feature_map 1.2.5 → 1.2.6
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/bundle +115 -0
- data/bin/docs +4 -4
- data/bin/featuremap +3 -0
- data/bin/jekyll +27 -0
- data/bin/readme +1 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/lib/feature_map/private/docs/index.html +52 -52
- data/lib/feature_map/private/test_pyramid/jest_mapper.rb +44 -0
- data/lib/feature_map/private/test_pyramid/mapper.rb +33 -0
- data/lib/feature_map/private/test_pyramid/rspec_mapper.rb +54 -0
- data/lib/feature_map/private/test_pyramid_file.rb +11 -56
- data/lib/feature_map/private.rb +11 -5
- metadata +9 -2
@@ -5,7 +5,7 @@
|
|
5
5
|
<meta charset="UTF-8" />
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7
7
|
<title>Feature Map Dashboard</title>
|
8
|
-
<style>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-\[-31px\]{left:-31px}.left-full{left:100%}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.-m-2\.5{margin:-.625rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-1{margin-right:.25rem}.mr-16{margin-right:4rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.size-1{width:.25rem;height:.25rem}.size-4{width:1rem;height:1rem}.size-48{width:12rem;height:12rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-full{width:100%;height:100%}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-1\.5{width:.375rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-0{max-width:0px}.max-w-56{max-width:14rem}.max-w-7xl{max-width:80rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-5{row-gap:1.25rem}.gap-y-7{row-gap:1.75rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-900\/80{background-color:#111827cc}.bg-green-100\/60{background-color:#dcfce799}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-red-100\/60{background-color:#fee2e299}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100\/60{background-color:#fef9c399}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\/6{font-size:.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xs\/6{font-size:.75rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-tight{line-height:1.25}.tracking-wider{letter-spacing:.05em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black\/5{--tw-ring-color: rgb(0 0 0 / .05)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.first\:rounded-l-md:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.last\:rounded-r-md:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:-outline-offset-2:focus{outline-offset:-2px}.focus\:outline-blue-600:focus{outline-color:#2563eb}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.data-\[closed\]\:-translate-x-full[data-closed]{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[checked\]\:bg-gray-200[data-checked]{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.data-\[focus\]\:bg-gray-100[data-focus]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.data-\[focus\]\:text-gray-900[data-focus]{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.data-\[closed\]\:opacity-0[data-closed]{opacity:0}@media (min-width: 640px){.sm\:w-auto{width:auto}.sm\:max-w-none{max-width:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 768px){.md\:table-cell{display:table-cell}.md\:w-\[26rem\]{width:26rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:p-8{padding:2rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\:fixed{position:fixed}.lg\:inset-y-0{top:0;bottom:0}.lg\:z-50{z-index:50}.lg\:flex{display:flex}.lg\:table-cell{display:table-cell}.lg\:hidden{display:none}.lg\:w-72{width:18rem}.lg\:flex-col{flex-direction:column}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:pl-72{padding-left:18rem}.lg\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1280px){.xl\:col-span-3{grid-column:span 3 / span 3}.xl\:col-span-9{grid-column:span 9 / span 9}.xl\:inline-block{display:inline-block}.xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
|
8
|
+
<style>/*! tailwindcss v4.0.14 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(.936 .032 17.717);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-500:oklch(.795 .184 86.047);--color-green-100:oklch(.962 .044 156.743);--color-green-500:oklch(.723 .219 149.579);--color-blue-100:oklch(.932 .032 255.585);--color-blue-300:oklch(.809 .105 251.813);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--leading-tight:1.25;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-\[-31px\]{left:-31px}.left-full{left:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.-m-2\.5{margin:calc(var(--spacing)*-2.5)}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-16{margin-right:calc(var(--spacing)*16)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-1{width:calc(var(--spacing)*1);height:calc(var(--spacing)*1)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-48{width:calc(var(--spacing)*48);height:calc(var(--spacing)*48)}.size-full{width:100%;height:100%}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-28{height:calc(var(--spacing)*28)}.h-48{height:calc(var(--spacing)*48)}.h-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-28{width:calc(var(--spacing)*28)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-full{width:100%}.max-w-0{max-width:calc(var(--spacing)*0)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-56{max-width:calc(var(--spacing)*56)}.max-w-xs{max-width:var(--container-xs)}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-12{gap:calc(var(--spacing)*12)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1\.5{column-gap:calc(var(--spacing)*1.5)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing)*1)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-5{row-gap:calc(var(--spacing)*5)}.gap-y-7{row-gap:calc(var(--spacing)*7)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-700{background-color:var(--color-blue-700)}.bg-blue-800{background-color:var(--color-blue-800)}.bg-blue-900{background-color:var(--color-blue-900)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-900\/80{background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}.bg-green-100\/60{background-color:color-mix(in oklab,var(--color-green-100)60%,transparent)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-100\/60{background-color:color-mix(in oklab,var(--color-red-100)60%,transparent)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100\/60{background-color:color-mix(in oklab,var(--color-yellow-100)60%,transparent)}.bg-yellow-500{background-color:var(--color-yellow-500)}.fill-current{fill:currentColor}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.pt-5{padding-top:calc(var(--spacing)*5)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-xs\/6{font-size:var(--text-xs);line-height:calc(var(--spacing)*6)}.text-\[10px\]{font-size:10px}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-blue-600{color:var(--color-blue-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-black\/5{--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:var(--color-gray-300)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}@media (hover:hover){.group-hover\:block:is(:where(.group):hover *){display:block}.group-hover\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\:text-gray-600:is(:where(.group):hover *){color:var(--color-gray-600)}.group-hover\:text-gray-900:is(:where(.group):hover *){color:var(--color-gray-900)}}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}.first\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\:-outline-offset-2:focus{outline-offset:-2px}.focus\:outline-blue-600:focus{outline-color:var(--color-blue-600)}.data-checked\:bg-gray-200[data-checked]{background-color:var(--color-gray-200)}.data-closed\:-translate-x-full[data-closed]{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-closed\:opacity-0[data-closed]{opacity:0}.data-focus\:bg-gray-100[data-focus]{background-color:var(--color-gray-100)}.data-focus\:text-gray-900[data-focus]{color:var(--color-gray-900)}@media (width>=40rem){.sm\:w-auto{width:auto}.sm\:max-w-none{max-width:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:gap-x-6{column-gap:calc(var(--spacing)*6)}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (width>=48rem){.md\:table-cell{display:table-cell}.md\:w-\[26rem\]{width:26rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:p-8{padding:calc(var(--spacing)*8)}.md\:py-8{padding-block:calc(var(--spacing)*8)}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (width>=64rem){.lg\:fixed{position:fixed}.lg\:inset-y-0{inset-block:calc(var(--spacing)*0)}.lg\:z-50{z-index:50}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:table-cell{display:table-cell}.lg\:w-72{width:calc(var(--spacing)*72)}.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\:pl-72{padding-left:calc(var(--spacing)*72)}.lg\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media (width>=80rem){.xl\:col-span-3{grid-column:span 3/span 3}.xl\:col-span-9{grid-column:span 9/span 9}.xl\:inline-block{display:inline-block}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}}@media (width>=96rem){.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
9
9
|
</style>
|
10
10
|
<!--
|
11
11
|
Running the `bin/featuremap docs` command within a particular codebase will generate a `feature-map-config.js` file in the `.featuremap/docs/` directory and
|
@@ -15,7 +15,7 @@
|
|
15
15
|
</head>
|
16
16
|
<body class="bg-gray-100">
|
17
17
|
<div id="root"></div>
|
18
|
-
<script>function sC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var
|
18
|
+
<script>function sC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xE={exports:{}},Gf={},bE={exports:{}},ae={};/**
|
19
19
|
* @license React
|
20
20
|
* react.production.min.js
|
21
21
|
*
|
@@ -23,7 +23,7 @@
|
|
23
23
|
*
|
24
24
|
* This source code is licensed under the MIT license found in the
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
26
|
-
*/var
|
26
|
+
*/var Fs=Symbol.for("react.element"),uC=Symbol.for("react.portal"),cC=Symbol.for("react.fragment"),fC=Symbol.for("react.strict_mode"),dC=Symbol.for("react.profiler"),pC=Symbol.for("react.provider"),hC=Symbol.for("react.context"),mC=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),gC=Symbol.for("react.memo"),yC=Symbol.for("react.lazy"),cx=Symbol.iterator;function xC(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var wE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_E=Object.assign,SE={};function Eo(e,t,n){this.props=e,this.context=t,this.refs=SE,this.updater=n||wE}Eo.prototype.isReactComponent={};Eo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EE(){}EE.prototype=Eo.prototype;function _g(e,t,n){this.props=e,this.context=t,this.refs=SE,this.updater=n||wE}var Sg=_g.prototype=new EE;Sg.constructor=_g;_E(Sg,Eo.prototype);Sg.isPureReactComponent=!0;var fx=Array.isArray,OE=Object.prototype.hasOwnProperty,Eg={current:null},$E={key:!0,ref:!0,__self:!0,__source:!0};function PE(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)OE.call(t,r)&&!$E.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Fs,type:e,key:a,ref:o,props:i,_owner:Eg.current}}function bC(e,t){return{$$typeof:Fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Og(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fs}function wC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dx=/\/+/g;function Sp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wC(""+e.key):t.toString(36)}function Zu(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Fs:case uC:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Sp(o,0):r,fx(i)?(n="",e!=null&&(n=e.replace(dx,"$&/")+"/"),Zu(i,t,n,"",function(u){return u})):i!=null&&(Og(i)&&(i=bC(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(dx,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",fx(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+Sp(a,l);o+=Zu(a,t,n,s,i)}else if(s=xC(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+Sp(a,l++),o+=Zu(a,t,n,s,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function vu(e,t,n){if(e==null)return e;var r=[],i=0;return Zu(e,r,"","",function(a){return t.call(n,a,i++)}),r}function _C(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $t={current:null},Ju={transition:null},SC={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Ju,ReactCurrentOwner:Eg};function jE(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:vu,forEach:function(e,t,n){vu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vu(e,function(){t++}),t},toArray:function(e){return vu(e,function(t){return t})||[]},only:function(e){if(!Og(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=Eo;ae.Fragment=cC;ae.Profiler=dC;ae.PureComponent=_g;ae.StrictMode=fC;ae.Suspense=vC;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SC;ae.act=jE;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_E({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Eg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)OE.call(t,s)&&!$E.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fs,type:e.type,key:i,ref:a,props:r,_owner:o}};ae.createContext=function(e){return e={$$typeof:hC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pC,_context:e},e.Consumer=e};ae.createElement=PE;ae.createFactory=function(e){var t=PE.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:mC,render:e}};ae.isValidElement=Og;ae.lazy=function(e){return{$$typeof:yC,_payload:{_status:-1,_result:e},_init:_C}};ae.memo=function(e,t){return{$$typeof:gC,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ju.transition;Ju.transition={};try{e()}finally{Ju.transition=t}};ae.unstable_act=jE;ae.useCallback=function(e,t){return $t.current.useCallback(e,t)};ae.useContext=function(e){return $t.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};ae.useEffect=function(e,t){return $t.current.useEffect(e,t)};ae.useId=function(){return $t.current.useId()};ae.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return $t.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};ae.useRef=function(e){return $t.current.useRef(e)};ae.useState=function(e){return $t.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return $t.current.useTransition()};ae.version="18.3.1";bE.exports=ae;var b=bE.exports;const j=me(b),mc=sC({__proto__:null,default:j},[b]);/**
|
27
27
|
* @license React
|
28
28
|
* react-jsx-runtime.production.min.js
|
29
29
|
*
|
@@ -31,7 +31,7 @@
|
|
31
31
|
*
|
32
32
|
* This source code is licensed under the MIT license found in the
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
34
|
-
*/var EC=b,OC=Symbol.for("react.element"),$C=Symbol.for("react.fragment"),PC=Object.prototype.hasOwnProperty,jC=EC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TC={key:!0,ref:!0,__self:!0,__source:!0};function TE(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)PC.call(t,r)&&!TC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:OC,type:e,key:a,ref:o,props:i,_owner:jC.current}}Gf.Fragment=$C;Gf.jsx=TE;Gf.jsxs=TE;xE.exports=Gf;var
|
34
|
+
*/var EC=b,OC=Symbol.for("react.element"),$C=Symbol.for("react.fragment"),PC=Object.prototype.hasOwnProperty,jC=EC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TC={key:!0,ref:!0,__self:!0,__source:!0};function TE(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)PC.call(t,r)&&!TC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:OC,type:e,key:a,ref:o,props:i,_owner:jC.current}}Gf.Fragment=$C;Gf.jsx=TE;Gf.jsxs=TE;xE.exports=Gf;var v=xE.exports,zh={},AE={exports:{}},Kt={},CE={exports:{}},kE={};/**
|
35
35
|
* @license React
|
36
36
|
* scheduler.production.min.js
|
37
37
|
*
|
@@ -39,7 +39,7 @@
|
|
39
39
|
*
|
40
40
|
* This source code is licensed under the MIT license found in the
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
42
|
-
*/(function(e){function t(P,k){var B=P.length;P.push(k);e:for(;0<B;){var L=B-1>>>1,U=P[L];if(0<i(U,k))P[L]=k,P[B]=U,B=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var k=P[0],B=P.pop();if(B!==k){P[0]=B;e:for(var L=0,U=P.length,V=U>>>1;L<V;){var re=2*(L+1)-1,ie=P[re],J=re+1,Ce=P[J];if(0>i(ie,B))J<U&&0>i(Ce,ie)?(P[L]=Ce,P[J]=B,L=J):(P[L]=ie,P[re]=B,L=re);else if(J<U&&0>i(Ce,B))P[L]=Ce,P[J]=B,L=J;else break e}}return k}function i(P,k){var B=P.sortIndex-k.sortIndex;return B!==0?B:P.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,
|
42
|
+
*/(function(e){function t(P,k){var B=P.length;P.push(k);e:for(;0<B;){var L=B-1>>>1,U=P[L];if(0<i(U,k))P[L]=k,P[B]=U,B=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var k=P[0],B=P.pop();if(B!==k){P[0]=B;e:for(var L=0,U=P.length,V=U>>>1;L<V;){var re=2*(L+1)-1,ie=P[re],J=re+1,Ce=P[J];if(0>i(ie,B))J<U&&0>i(Ce,ie)?(P[L]=Ce,P[J]=B,L=J):(P[L]=ie,P[re]=B,L=re);else if(J<U&&0>i(Ce,B))P[L]=Ce,P[J]=B,L=J;else break e}}return k}function i(P,k){var B=P.sortIndex-k.sortIndex;return B!==0?B:P.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=P)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function E(P){if(m=!1,x(P),!h)if(n(s)!==null)h=!0,F(_);else{var k=n(u);k!==null&&R(E,k.startTime-P)}}function _(P,k){h=!1,m&&(m=!1,y($),$=-1),p=!0;var B=d;try{for(x(k),f=n(s);f!==null&&(!(f.expirationTime>k)||P&&!A());){var L=f.callback;if(typeof L=="function"){f.callback=null,d=f.priorityLevel;var U=L(f.expirationTime<=k);k=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(s)&&r(s),x(k)}else r(s);f=n(s)}if(f!==null)var V=!0;else{var re=n(u);re!==null&&R(E,re.startTime-k),V=!1}return V}finally{f=null,d=B,p=!1}}var S=!1,O=null,$=-1,T=5,C=-1;function A(){return!(e.unstable_now()-C<T)}function N(){if(O!==null){var P=e.unstable_now();C=P;var k=!0;try{k=O(!0,P)}finally{k?I():(S=!1,O=null)}}else S=!1}var I;if(typeof g=="function")I=function(){g(N)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,M=D.port2;D.port1.onmessage=N,I=function(){M.postMessage(null)}}else I=function(){w(N,0)};function F(P){O=P,S||(S=!0,I())}function R(P,k){$=w(function(){P(e.unstable_now())},k)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,F(_))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var k=3;break;default:k=d}var B=d;d=k;try{return P()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,k){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=d;d=P;try{return k()}finally{d=B}},e.unstable_scheduleCallback=function(P,k,B){var L=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?L+B:L):B=L,P){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,P={id:c++,callback:k,priorityLevel:P,startTime:B,expirationTime:U,sortIndex:-1},B>L?(P.sortIndex=B,t(u,P),n(s)===null&&P===n(u)&&(m?(y($),$=-1):m=!0,R(E,B-L))):(P.sortIndex=U,t(s,P),h||p||(h=!0,F(_))),P},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(P){var k=d;return function(){var B=d;d=k;try{return P.apply(this,arguments)}finally{d=B}}}})(kE);CE.exports=kE;var AC=CE.exports;/**
|
43
43
|
* @license React
|
44
44
|
* react-dom.production.min.js
|
45
45
|
*
|
@@ -47,14 +47,14 @@
|
|
47
47
|
*
|
48
48
|
* This source code is licensed under the MIT license found in the
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
50
|
-
*/var CC=b,Wt=AC;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NE=new Set,
|
50
|
+
*/var CC=b,Wt=AC;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NE=new Set,Ll={};function ta(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(Ll[e]=t,e=0;e<t.length;e++)NE.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uh=Object.prototype.hasOwnProperty,kC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,px={},hx={};function NC(e){return Uh.call(hx,e)?!0:Uh.call(px,e)?!1:kC.test(e)?hx[e]=!0:(px[e]=!0,!1)}function MC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function IC(e,t,n,r){if(t===null||typeof t>"u"||MC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pt(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $g=/[\-:]([a-z])/g;function Pg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($g,Pg);dt[t]=new Pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($g,Pg);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($g,Pg);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function jg(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(IC(t,n,i,r)&&(n=null),r||i===null?NC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jr=CC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gu=Symbol.for("react.element"),va=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),Tg=Symbol.for("react.strict_mode"),Hh=Symbol.for("react.profiler"),ME=Symbol.for("react.provider"),IE=Symbol.for("react.context"),Ag=Symbol.for("react.forward_ref"),Wh=Symbol.for("react.suspense"),Vh=Symbol.for("react.suspense_list"),Cg=Symbol.for("react.memo"),Rr=Symbol.for("react.lazy"),RE=Symbol.for("react.offscreen"),mx=Symbol.iterator;function Go(e){return e===null||typeof e!="object"?null:(e=mx&&e[mx]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,Ep;function dl(e){if(Ep===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ep=t&&t[1]||""}return`
|
51
51
|
`+Ep+e}var Op=!1;function $p(e,t){if(!e||Op)return"";Op=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
52
52
|
`),a=r.stack.split(`
|
53
53
|
`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var s=`
|
54
|
-
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fl(e):""}function RC(e){switch(e.tag){case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 2:case 15:return e=$p(e.type,!1),e;case 11:return e=$p(e.type.render,!1),e;case 1:return e=$p(e.type,!0),e;default:return""}}function Kh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case va:return"Fragment";case ma:return"Portal";case Hh:return"Profiler";case Tg:return"StrictMode";case Wh:return"Suspense";case Vh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IE:return(e.displayName||"Context")+".Consumer";case ME:return(e._context.displayName||"Context")+".Provider";case Ag:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cg:return t=e.displayName||null,t!==null?t:Kh(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return Kh(e(t))}catch{}}return null}function LC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kh(t);case 8:return t===Tg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ii(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DC(e){var t=LE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vu(e){e._valueTracker||(e._valueTracker=DC(e))}function DE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gh(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ii(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FE(e,t){t=t.checked,t!=null&&jg(e,"checked",t,!1)}function qh(e,t){FE(e,t);var n=ii(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xh(e,t.type,ii(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xh(e,t,n){(t!=="number"||vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dl=Array.isArray;function Ca(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ii(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(dl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ii(n)}}function BE(e,t){var n=ii(t.value),r=ii(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zE(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gu,UE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gu=gu||document.createElement("div"),gu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FC=["Webkit","ms","Moz","O"];Object.keys(xl).forEach(function(e){FC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xl[t]=xl[e]})});function HE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xl.hasOwnProperty(e)&&xl[e]?(""+t).trim():t+"px"}function WE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var BC=Be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zh(e,t){if(t){if(BC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Jh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var em=null;function kg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tm=null,ka=null,Na=null;function bx(e){if(e=Bs(e)){if(typeof tm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Zf(t),tm(e.stateNode,e.type,t))}}function VE(e){ka?Na?Na.push(e):Na=[e]:ka=e}function KE(){if(ka){var e=ka,t=Na;if(Na=ka=null,bx(e),t)for(e=0;e<t.length;e++)bx(t[e])}}function GE(e,t){return e(t)}function qE(){}var Pp=!1;function XE(e,t,n){if(Pp)return e(t,n);Pp=!0;try{return GE(e,t,n)}finally{Pp=!1,(ka!==null||Na!==null)&&(qE(),KE())}}function Ll(e,t){var n=e.stateNode;if(n===null)return null;var r=Zf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var nm=!1;if(vr)try{var Go={};Object.defineProperty(Go,"passive",{get:function(){nm=!0}}),window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,Go)}catch{nm=!1}function zC(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var bl=!1,gc=null,yc=!1,rm=null,UC={onError:function(e){bl=!0,gc=e}};function HC(e,t,n,r,i,a,o,l,s){bl=!1,gc=null,zC.apply(UC,arguments)}function WC(e,t,n,r,i,a,o,l,s){if(HC.apply(this,arguments),bl){if(bl){var u=gc;bl=!1,gc=null}else throw Error(W(198));yc||(yc=!0,rm=u)}}function na(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function YE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wx(e){if(na(e)!==e)throw Error(W(188))}function VC(e){var t=e.alternate;if(!t){if(t=na(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return wx(i),e;if(a===r)return wx(i),t;a=a.sibling}throw Error(W(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function QE(e){return e=VC(e),e!==null?ZE(e):null}function ZE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ZE(e);if(t!==null)return t;e=e.sibling}return null}var JE=Wt.unstable_scheduleCallback,_x=Wt.unstable_cancelCallback,KC=Wt.unstable_shouldYield,GC=Wt.unstable_requestPaint,We=Wt.unstable_now,qC=Wt.unstable_getCurrentPriorityLevel,Ng=Wt.unstable_ImmediatePriority,eO=Wt.unstable_UserBlockingPriority,xc=Wt.unstable_NormalPriority,XC=Wt.unstable_LowPriority,tO=Wt.unstable_IdlePriority,qf=null,Fn=null;function YC(e){if(Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(qf,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:JC,QC=Math.log,ZC=Math.LN2;function JC(e){return e>>>=0,e===0?32:31-(QC(e)/ZC|0)|0}var yu=64,xu=4194304;function pl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=pl(l):(a&=o,a!==0&&(r=pl(a)))}else o=n&~i,o!==0?r=pl(o):a!==0&&(r=pl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function ek(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-_n(a),l=1<<o,s=i[o];s===-1?(!(l&n)||l&r)&&(i[o]=ek(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function im(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nO(){var e=yu;return yu<<=1,!(yu&4194240)&&(yu=64),e}function jp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function nk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Mg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function rO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iO,Ig,aO,oO,lO,am=!1,bu=[],Kr=null,Gr=null,qr=null,Dl=new Map,Fl=new Map,Fr=[],rk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sx(e,t){switch(e){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":Dl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(t.pointerId)}}function qo(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bs(t),t!==null&&Ig(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ik(e,t,n,r,i){switch(t){case"focusin":return Kr=qo(Kr,e,t,n,r,i),!0;case"dragenter":return Gr=qo(Gr,e,t,n,r,i),!0;case"mouseover":return qr=qo(qr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Dl.set(a,qo(Dl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Fl.set(a,qo(Fl.get(a)||null,e,t,n,r,i)),!0}return!1}function sO(e){var t=ji(e.target);if(t!==null){var n=na(t);if(n!==null){if(t=n.tag,t===13){if(t=YE(n),t!==null){e.blockedOn=t,lO(e.priority,function(){aO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=om(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);em=r,n.target.dispatchEvent(r),em=null}else return t=Bs(n),t!==null&&Ig(t),e.blockedOn=n,!1;t.shift()}return!0}function Ex(e,t,n){Ju(e)&&n.delete(t)}function ak(){am=!1,Kr!==null&&Ju(Kr)&&(Kr=null),Gr!==null&&Ju(Gr)&&(Gr=null),qr!==null&&Ju(qr)&&(qr=null),Dl.forEach(Ex),Fl.forEach(Ex)}function Xo(e,t){e.blockedOn===t&&(e.blockedOn=null,am||(am=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,ak)))}function Bl(e){function t(i){return Xo(i,e)}if(0<bu.length){Xo(bu[0],e);for(var n=1;n<bu.length;n++){var r=bu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Kr!==null&&Xo(Kr,e),Gr!==null&&Xo(Gr,e),qr!==null&&Xo(qr,e),Dl.forEach(t),Fl.forEach(t),n=0;n<Fr.length;n++)r=Fr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fr.length&&(n=Fr[0],n.blockedOn===null);)sO(n),n.blockedOn===null&&Fr.shift()}var Ma=Pr.ReactCurrentBatchConfig,wc=!0;function ok(e,t,n,r){var i=pe,a=Ma.transition;Ma.transition=null;try{pe=1,Rg(e,t,n,r)}finally{pe=i,Ma.transition=a}}function lk(e,t,n,r){var i=pe,a=Ma.transition;Ma.transition=null;try{pe=4,Rg(e,t,n,r)}finally{pe=i,Ma.transition=a}}function Rg(e,t,n,r){if(wc){var i=om(e,t,n,r);if(i===null)Dp(e,t,r,_c,n),Sx(e,r);else if(ik(i,e,t,n,r))r.stopPropagation();else if(Sx(e,r),t&4&&-1<rk.indexOf(e)){for(;i!==null;){var a=Bs(i);if(a!==null&&iO(a),a=om(e,t,n,r),a===null&&Dp(e,t,r,_c,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dp(e,t,r,null,n)}}var _c=null;function om(e,t,n,r){if(_c=null,e=kg(r),e=ji(e),e!==null)if(t=na(e),t===null)e=null;else if(n=t.tag,n===13){if(e=YE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _c=e,null}function uO(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qC()){case Ng:return 1;case eO:return 4;case xc:case XC:return 16;case tO:return 536870912;default:return 16}default:return 16}}var Ur=null,Lg=null,ec=null;function cO(){if(ec)return ec;var e,t=Lg,n=t.length,r,i="value"in Ur?Ur.value:Ur.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return ec=i.slice(e,1<r?1-r:void 0)}function tc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wu(){return!0}function Ox(){return!1}function Gt(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?wu:Ox,this.isPropagationStopped=Ox,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),t}var Eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dg=Gt(Eo),Fs=Be({},Eo,{view:0,detail:0}),sk=Gt(Fs),Tp,Ap,Yo,Xf=Be({},Fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(Tp=e.screenX-Yo.screenX,Ap=e.screenY-Yo.screenY):Ap=Tp=0,Yo=e),Tp)},movementY:function(e){return"movementY"in e?e.movementY:Ap}}),$x=Gt(Xf),uk=Be({},Xf,{dataTransfer:0}),ck=Gt(uk),fk=Be({},Fs,{relatedTarget:0}),Cp=Gt(fk),dk=Be({},Eo,{animationName:0,elapsedTime:0,pseudoElement:0}),pk=Gt(dk),hk=Be({},Eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mk=Gt(hk),vk=Be({},Eo,{data:0}),Px=Gt(vk),gk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xk[e])?!!t[e]:!1}function Fg(){return bk}var wk=Be({},Fs,{key:function(e){if(e.key){var t=gk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fg,charCode:function(e){return e.type==="keypress"?tc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_k=Gt(wk),Sk=Be({},Xf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jx=Gt(Sk),Ek=Be({},Fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fg}),Ok=Gt(Ek),$k=Be({},Eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pk=Gt($k),jk=Be({},Xf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tk=Gt(jk),Ak=[9,13,27,32],Bg=vr&&"CompositionEvent"in window,wl=null;vr&&"documentMode"in document&&(wl=document.documentMode);var Ck=vr&&"TextEvent"in window&&!wl,fO=vr&&(!Bg||wl&&8<wl&&11>=wl),Tx=" ",Ax=!1;function dO(e,t){switch(e){case"keyup":return Ak.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function kk(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(Ax=!0,Tx);case"textInput":return e=t.data,e===Tx&&Ax?null:e;default:return null}}function Nk(e,t){if(ga)return e==="compositionend"||!Bg&&dO(e,t)?(e=cO(),ec=Lg=Ur=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fO&&t.locale!=="ko"?null:t.data;default:return null}}var Mk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mk[e.type]:t==="textarea"}function hO(e,t,n,r){VE(r),t=Sc(t,"onChange"),0<t.length&&(n=new Dg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _l=null,zl=null;function Ik(e){OO(e,0)}function Yf(e){var t=ba(e);if(DE(t))return e}function Rk(e,t){if(e==="change")return t}var mO=!1;if(vr){var kp;if(vr){var Np="oninput"in document;if(!Np){var kx=document.createElement("div");kx.setAttribute("oninput","return;"),Np=typeof kx.oninput=="function"}kp=Np}else kp=!1;mO=kp&&(!document.documentMode||9<document.documentMode)}function Nx(){_l&&(_l.detachEvent("onpropertychange",vO),zl=_l=null)}function vO(e){if(e.propertyName==="value"&&Yf(zl)){var t=[];hO(t,zl,e,kg(e)),XE(Ik,t)}}function Lk(e,t,n){e==="focusin"?(Nx(),_l=t,zl=n,_l.attachEvent("onpropertychange",vO)):e==="focusout"&&Nx()}function Dk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yf(zl)}function Fk(e,t){if(e==="click")return Yf(t)}function Bk(e,t){if(e==="input"||e==="change")return Yf(t)}function zk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:zk;function Ul(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Uh.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Mx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ix(e,t){var n=Mx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mx(n)}}function gO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yO(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vc(e.document)}return t}function zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uk(e){var t=yO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gO(n.ownerDocument.documentElement,n)){if(r!==null&&zg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ix(n,a);var o=Ix(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hk=vr&&"documentMode"in document&&11>=document.documentMode,ya=null,lm=null,Sl=null,sm=!1;function Rx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sm||ya==null||ya!==vc(r)||(r=ya,"selectionStart"in r&&zg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Sl&&Ul(Sl,r)||(Sl=r,r=Sc(lm,"onSelect"),0<r.length&&(t=new Dg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ya)))}function _u(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xa={animationend:_u("Animation","AnimationEnd"),animationiteration:_u("Animation","AnimationIteration"),animationstart:_u("Animation","AnimationStart"),transitionend:_u("Transition","TransitionEnd")},Mp={},xO={};vr&&(xO=document.createElement("div").style,"AnimationEvent"in window||(delete xa.animationend.animation,delete xa.animationiteration.animation,delete xa.animationstart.animation),"TransitionEvent"in window||delete xa.transitionend.transition);function Qf(e){if(Mp[e])return Mp[e];if(!xa[e])return e;var t=xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xO)return Mp[e]=t[n];return e}var bO=Qf("animationend"),wO=Qf("animationiteration"),_O=Qf("animationstart"),SO=Qf("transitionend"),EO=new Map,Lx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function li(e,t){EO.set(e,t),ta(t,[e])}for(var Ip=0;Ip<Lx.length;Ip++){var Rp=Lx[Ip],Wk=Rp.toLowerCase(),Vk=Rp[0].toUpperCase()+Rp.slice(1);li(Wk,"on"+Vk)}li(bO,"onAnimationEnd");li(wO,"onAnimationIteration");li(_O,"onAnimationStart");li("dblclick","onDoubleClick");li("focusin","onFocus");li("focusout","onBlur");li(SO,"onTransitionEnd");za("onMouseEnter",["mouseout","mouseover"]);za("onMouseLeave",["mouseout","mouseover"]);za("onPointerEnter",["pointerout","pointerover"]);za("onPointerLeave",["pointerout","pointerover"]);ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kk=new Set("cancel close invalid load scroll toggle".split(" ").concat(hl));function Dx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,WC(r,t,void 0,e),e.currentTarget=null}function OO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}}}if(yc)throw e=rm,yc=!1,rm=null,e}function $e(e,t){var n=t[pm];n===void 0&&(n=t[pm]=new Set);var r=e+"__bubble";n.has(r)||($O(t,e,2,!1),n.add(r))}function Lp(e,t,n){var r=0;t&&(r|=4),$O(n,e,r,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Hl(e){if(!e[Su]){e[Su]=!0,NE.forEach(function(n){n!=="selectionchange"&&(Kk.has(n)||Lp(n,!1,e),Lp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,Lp("selectionchange",!1,t))}}function $O(e,t,n,r){switch(uO(t)){case 1:var i=ok;break;case 4:i=lk;break;default:i=Rg}n=i.bind(null,t,n,e),i=void 0,!nm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dp(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=ji(l),o===null)return;if(s=o.tag,s===5||s===6){r=a=o;continue e}l=l.parentNode}}r=r.return}XE(function(){var u=a,c=kg(n),f=[];e:{var d=EO.get(e);if(d!==void 0){var p=Dg,h=e;switch(e){case"keypress":if(tc(n)===0)break e;case"keydown":case"keyup":p=_k;break;case"focusin":h="focus",p=Cp;break;case"focusout":h="blur",p=Cp;break;case"beforeblur":case"afterblur":p=Cp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=$x;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ck;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Ok;break;case bO:case wO:case _O:p=pk;break;case SO:p=Pk;break;case"scroll":p=sk;break;case"wheel":p=Tk;break;case"copy":case"cut":case"paste":p=mk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jx}var m=(t&4)!==0,w=!m&&e==="scroll",y=m?d!==null?d+"Capture":null:d;m=[];for(var v=u,x;v!==null;){x=v;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,y!==null&&(E=Ll(v,y),E!=null&&m.push(Wl(v,E,x)))),w)break;v=v.return}0<m.length&&(d=new p(d,h,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==em&&(h=n.relatedTarget||n.fromElement)&&(ji(h)||h[gr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?ji(h):null,h!==null&&(w=na(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(m=$x,E="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=jx,E="onPointerLeave",y="onPointerEnter",v="pointer"),w=p==null?d:ba(p),x=h==null?d:ba(h),d=new m(E,v+"leave",p,n,c),d.target=w,d.relatedTarget=x,E=null,ji(c)===u&&(m=new m(y,v+"enter",h,n,c),m.target=x,m.relatedTarget=w,E=m),w=E,p&&h)t:{for(m=p,y=h,v=0,x=m;x;x=ca(x))v++;for(x=0,E=y;E;E=ca(E))x++;for(;0<v-x;)m=ca(m),v--;for(;0<x-v;)y=ca(y),x--;for(;v--;){if(m===y||y!==null&&m===y.alternate)break t;m=ca(m),y=ca(y)}m=null}else m=null;p!==null&&Fx(f,d,p,m,!1),h!==null&&w!==null&&Fx(f,w,h,m,!0)}}e:{if(d=u?ba(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var _=Rk;else if(Cx(d))if(mO)_=Bk;else{_=Dk;var S=Lk}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Fk);if(_&&(_=_(e,u))){hO(f,_,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Xh(d,"number",d.value)}switch(S=u?ba(u):window,e){case"focusin":(Cx(S)||S.contentEditable==="true")&&(ya=S,lm=u,Sl=null);break;case"focusout":Sl=lm=ya=null;break;case"mousedown":sm=!0;break;case"contextmenu":case"mouseup":case"dragend":sm=!1,Rx(f,n,c);break;case"selectionchange":if(Hk)break;case"keydown":case"keyup":Rx(f,n,c)}var O;if(Bg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else ga?dO(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(fO&&n.locale!=="ko"&&(ga||$!=="onCompositionStart"?$==="onCompositionEnd"&&ga&&(O=cO()):(Ur=c,Lg="value"in Ur?Ur.value:Ur.textContent,ga=!0)),S=Sc(u,$),0<S.length&&($=new Px($,e,null,n,c),f.push({event:$,listeners:S}),O?$.data=O:(O=pO(n),O!==null&&($.data=O)))),(O=Ck?kk(e,n):Nk(e,n))&&(u=Sc(u,"onBeforeInput"),0<u.length&&(c=new Px("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}OO(f,t)})}function Wl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Ll(e,n),a!=null&&r.unshift(Wl(e,a,i)),a=Ll(e,t),a!=null&&r.push(Wl(e,a,i))),e=e.return}return r}function ca(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fx(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,i?(s=Ll(n,a),s!=null&&o.unshift(Wl(n,s,l))):i||(s=Ll(n,a),s!=null&&o.push(Wl(n,s,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Gk=/\r\n?/g,qk=/\u0000|\uFFFD/g;function Bx(e){return(typeof e=="string"?e:""+e).replace(Gk,`
|
55
|
-
`).replace(qk,"")}function Eu(e,t,n){if(t=Bx(t),Bx(e)!==t&&n)throw Error(W(425))}function Ec(){}var um=null,cm=null;function fm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dm=typeof setTimeout=="function"?setTimeout:void 0,Xk=typeof clearTimeout=="function"?clearTimeout:void 0,zx=typeof Promise=="function"?Promise:void 0,Yk=typeof queueMicrotask=="function"?queueMicrotask:typeof zx<"u"?function(e){return zx.resolve(null).then(e).catch(Qk)}:dm;function Qk(e){setTimeout(function(){throw e})}function Fp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Bl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Bl(t)}function Xr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ux(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Oo=Math.random().toString(36).slice(2),Ln="__reactFiber$"+Oo,Vl="__reactProps$"+Oo,gr="__reactContainer$"+Oo,pm="__reactEvents$"+Oo,Zk="__reactListeners$"+Oo,Jk="__reactHandles$"+Oo;function ji(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ux(e);e!==null;){if(n=e[Ln])return n;e=Ux(e)}return t}e=n,n=e.parentNode}return null}function Bs(e){return e=e[Ln]||e[gr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ba(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Zf(e){return e[Vl]||null}var hm=[],wa=-1;function si(e){return{current:e}}function Ae(e){0>wa||(e.current=hm[wa],hm[wa]=null,wa--)}function _e(e,t){wa++,hm[wa]=e.current,e.current=t}var ai={},yt=si(ai),Mt=si(!1),zi=ai;function Ua(e,t){var n=e.type.contextTypes;if(!n)return ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function Oc(){Ae(Mt),Ae(yt)}function Hx(e,t,n){if(yt.current!==ai)throw Error(W(168));_e(yt,t),_e(Mt,n)}function PO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,LC(e)||"Unknown",i));return Be({},n,r)}function $c(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ai,zi=yt.current,_e(yt,e),_e(Mt,Mt.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=PO(e,t,zi),r.__reactInternalMemoizedMergedChildContext=e,Ae(Mt),Ae(yt),_e(yt,e)):Ae(Mt),_e(Mt,n)}var rr=null,Jf=!1,Bp=!1;function jO(e){rr===null?rr=[e]:rr.push(e)}function eN(e){Jf=!0,jO(e)}function ui(){if(!Bp&&rr!==null){Bp=!0;var e=0,t=pe;try{var n=rr;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rr=null,Jf=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),JE(Ng,ui),i}finally{pe=t,Bp=!1}}return null}var _a=[],Sa=0,Pc=null,jc=0,en=[],tn=0,Ui=null,ar=1,or="";function wi(e,t){_a[Sa++]=jc,_a[Sa++]=Pc,Pc=e,jc=t}function TO(e,t,n){en[tn++]=ar,en[tn++]=or,en[tn++]=Ui,Ui=e;var r=ar;e=or;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var a=32-_n(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ar=1<<32-_n(t)+i|n<<i|r,or=a+e}else ar=1<<a|n<<i|r,or=e}function Ug(e){e.return!==null&&(wi(e,1),TO(e,1,0))}function Hg(e){for(;e===Pc;)Pc=_a[--Sa],_a[Sa]=null,jc=_a[--Sa],_a[Sa]=null;for(;e===Ui;)Ui=en[--tn],en[tn]=null,or=en[--tn],en[tn]=null,ar=en[--tn],en[tn]=null}var Ut=null,zt=null,Me=!1,bn=null;function AO(e,t){var n=an(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Vx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ut=e,zt=Xr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ut=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ui!==null?{id:ar,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=an(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ut=e,zt=null,!0):!1;default:return!1}}function mm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vm(e){if(Me){var t=zt;if(t){var n=t;if(!Vx(e,t)){if(mm(e))throw Error(W(418));t=Xr(n.nextSibling);var r=Ut;t&&Vx(e,t)?AO(r,n):(e.flags=e.flags&-4097|2,Me=!1,Ut=e)}}else{if(mm(e))throw Error(W(418));e.flags=e.flags&-4097|2,Me=!1,Ut=e}}}function Kx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ut=e}function Ou(e){if(e!==Ut)return!1;if(!Me)return Kx(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fm(e.type,e.memoizedProps)),t&&(t=zt)){if(mm(e))throw CO(),Error(W(418));for(;t;)AO(e,t),t=Xr(t.nextSibling)}if(Kx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Xr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ut?Xr(e.stateNode.nextSibling):null;return!0}function CO(){for(var e=zt;e;)e=Xr(e.nextSibling)}function Ha(){zt=Ut=null,Me=!1}function Wg(e){bn===null?bn=[e]:bn.push(e)}var tN=Pr.ReactCurrentBatchConfig;function Qo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function $u(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gx(e){var t=e._init;return t(e._payload)}function kO(e){function t(y,v){if(e){var x=y.deletions;x===null?(y.deletions=[v],y.flags|=16):x.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function i(y,v){return y=Jr(y,v),y.index=0,y.sibling=null,y}function a(y,v,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<v?(y.flags|=2,v):x):(y.flags|=2,v)):(y.flags|=1048576,v)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,v,x,E){return v===null||v.tag!==6?(v=Gp(x,y.mode,E),v.return=y,v):(v=i(v,x),v.return=y,v)}function s(y,v,x,E){var _=x.type;return _===va?c(y,v,x.props.children,E,x.key):v!==null&&(v.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&Gx(_)===v.type)?(E=i(v,x.props),E.ref=Qo(y,v,x),E.return=y,E):(E=sc(x.type,x.key,x.props,null,y.mode,E),E.ref=Qo(y,v,x),E.return=y,E)}function u(y,v,x,E){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=qp(x,y.mode,E),v.return=y,v):(v=i(v,x.children||[]),v.return=y,v)}function c(y,v,x,E,_){return v===null||v.tag!==7?(v=Li(x,y.mode,E,_),v.return=y,v):(v=i(v,x),v.return=y,v)}function f(y,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Gp(""+v,y.mode,x),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case mu:return x=sc(v.type,v.key,v.props,null,y.mode,x),x.ref=Qo(y,null,v),x.return=y,x;case ma:return v=qp(v,y.mode,x),v.return=y,v;case Ir:var E=v._init;return f(y,E(v._payload),x)}if(dl(v)||Ko(v))return v=Li(v,y.mode,x,null),v.return=y,v;$u(y,v)}return null}function d(y,v,x,E){var _=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(y,v,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case mu:return x.key===_?s(y,v,x,E):null;case ma:return x.key===_?u(y,v,x,E):null;case Ir:return _=x._init,d(y,v,_(x._payload),E)}if(dl(x)||Ko(x))return _!==null?null:c(y,v,x,E,null);$u(y,x)}return null}function p(y,v,x,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(x)||null,l(v,y,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case mu:return y=y.get(E.key===null?x:E.key)||null,s(v,y,E,_);case ma:return y=y.get(E.key===null?x:E.key)||null,u(v,y,E,_);case Ir:var S=E._init;return p(y,v,x,S(E._payload),_)}if(dl(E)||Ko(E))return y=y.get(x)||null,c(v,y,E,_,null);$u(v,E)}return null}function h(y,v,x,E){for(var _=null,S=null,O=v,$=v=0,T=null;O!==null&&$<x.length;$++){O.index>$?(T=O,O=null):T=O.sibling;var C=d(y,O,x[$],E);if(C===null){O===null&&(O=T);break}e&&O&&C.alternate===null&&t(y,O),v=a(C,v,$),S===null?_=C:S.sibling=C,S=C,O=T}if($===x.length)return n(y,O),Me&&wi(y,$),_;if(O===null){for(;$<x.length;$++)O=f(y,x[$],E),O!==null&&(v=a(O,v,$),S===null?_=O:S.sibling=O,S=O);return Me&&wi(y,$),_}for(O=r(y,O);$<x.length;$++)T=p(O,y,$,x[$],E),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?$:T.key),v=a(T,v,$),S===null?_=T:S.sibling=T,S=T);return e&&O.forEach(function(A){return t(y,A)}),Me&&wi(y,$),_}function m(y,v,x,E){var _=Ko(x);if(typeof _!="function")throw Error(W(150));if(x=_.call(x),x==null)throw Error(W(151));for(var S=_=null,O=v,$=v=0,T=null,C=x.next();O!==null&&!C.done;$++,C=x.next()){O.index>$?(T=O,O=null):T=O.sibling;var A=d(y,O,C.value,E);if(A===null){O===null&&(O=T);break}e&&O&&A.alternate===null&&t(y,O),v=a(A,v,$),S===null?_=A:S.sibling=A,S=A,O=T}if(C.done)return n(y,O),Me&&wi(y,$),_;if(O===null){for(;!C.done;$++,C=x.next())C=f(y,C.value,E),C!==null&&(v=a(C,v,$),S===null?_=C:S.sibling=C,S=C);return Me&&wi(y,$),_}for(O=r(y,O);!C.done;$++,C=x.next())C=p(O,y,$,C.value,E),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?$:C.key),v=a(C,v,$),S===null?_=C:S.sibling=C,S=C);return e&&O.forEach(function(N){return t(y,N)}),Me&&wi(y,$),_}function w(y,v,x,E){if(typeof x=="object"&&x!==null&&x.type===va&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case mu:e:{for(var _=x.key,S=v;S!==null;){if(S.key===_){if(_=x.type,_===va){if(S.tag===7){n(y,S.sibling),v=i(S,x.props.children),v.return=y,y=v;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ir&&Gx(_)===S.type){n(y,S.sibling),v=i(S,x.props),v.ref=Qo(y,S,x),v.return=y,y=v;break e}n(y,S);break}else t(y,S);S=S.sibling}x.type===va?(v=Li(x.props.children,y.mode,E,x.key),v.return=y,y=v):(E=sc(x.type,x.key,x.props,null,y.mode,E),E.ref=Qo(y,v,x),E.return=y,y=E)}return o(y);case ma:e:{for(S=x.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),v=i(v,x.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=qp(x,y.mode,E),v.return=y,y=v}return o(y);case Ir:return S=x._init,w(y,v,S(x._payload),E)}if(dl(x))return h(y,v,x,E);if(Ko(x))return m(y,v,x,E);$u(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,x),v.return=y,y=v):(n(y,v),v=Gp(x,y.mode,E),v.return=y,y=v),o(y)):n(y,v)}return w}var Wa=kO(!0),NO=kO(!1),Tc=si(null),Ac=null,Ea=null,Vg=null;function Kg(){Vg=Ea=Ac=null}function Gg(e){var t=Tc.current;Ae(Tc),e._currentValue=t}function gm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ia(e,t){Ac=e,Vg=Ea=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(Vg!==e)if(e={context:e,memoizedValue:t,next:null},Ea===null){if(Ac===null)throw Error(W(308));Ea=e,Ac.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return t}var Ti=null;function qg(e){Ti===null?Ti=[e]:Ti.push(e)}function MO(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qg(t)):(n.next=i.next,i.next=n),t.interleaved=n,yr(e,r)}function yr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rr=!1;function Xg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yr(e,n)}return i=r.interleaved,i===null?(t.next=t,qg(r)):(t.next=i.next,i.next=t),r.interleaved=t,yr(e,n)}function nc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}function qx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cc(e,t,n,r){var i=e.updateQueue;Rr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,c=u=s=null,l=a;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,d=typeof h=="function"?h.call(p,f,d):h,d==null)break e;f=Be({},f,d);break e;case 2:Rr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,s=f):c=c.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Wi|=o,e.lanes=o,e.memoizedState=f}}function Xx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(W(191,i));i.call(r)}}}var zs={},Bn=si(zs),Kl=si(zs),Gl=si(zs);function Ai(e){if(e===zs)throw Error(W(174));return e}function Yg(e,t){switch(_e(Gl,t),_e(Kl,e),_e(Bn,zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qh(t,e)}Ae(Bn),_e(Bn,t)}function Va(){Ae(Bn),Ae(Kl),Ae(Gl)}function RO(e){Ai(Gl.current);var t=Ai(Bn.current),n=Qh(t,e.type);t!==n&&(_e(Kl,e),_e(Bn,n))}function Qg(e){Kl.current===e&&(Ae(Bn),Ae(Kl))}var Le=si(0);function kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zp=[];function Zg(){for(var e=0;e<zp.length;e++)zp[e]._workInProgressVersionPrimary=null;zp.length=0}var rc=Pr.ReactCurrentDispatcher,Up=Pr.ReactCurrentBatchConfig,Hi=0,De=null,Ye=null,nt=null,Nc=!1,El=!1,ql=0,nN=0;function pt(){throw Error(W(321))}function Jg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ey(e,t,n,r,i,a){if(Hi=a,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rc.current=e===null||e.memoizedState===null?oN:lN,e=n(r,i),El){a=0;do{if(El=!1,ql=0,25<=a)throw Error(W(301));a+=1,nt=Ye=null,t.updateQueue=null,rc.current=sN,e=n(r,i)}while(El)}if(rc.current=Mc,t=Ye!==null&&Ye.next!==null,Hi=0,nt=Ye=De=null,Nc=!1,t)throw Error(W(300));return e}function ty(){var e=ql!==0;return ql=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?De.memoizedState=nt=e:nt=nt.next=e,nt}function fn(){if(Ye===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=nt===null?De.memoizedState:nt.next;if(t!==null)nt=t,Ye=e;else{if(e===null)throw Error(W(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},nt===null?De.memoizedState=nt=e:nt=nt.next=e}return nt}function Xl(e,t){return typeof t=="function"?t(e):t}function Hp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var l=o=null,s=null,u=a;do{var c=u.lane;if((Hi&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,o=r):s=s.next=f,De.lanes|=c,Wi|=c}u=u.next}while(u!==null&&u!==a);s===null?o=r:s.next=l,$n(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,De.lanes|=a,Wi|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);$n(a,t.memoizedState)||(Ct=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function LO(){}function DO(e,t){var n=De,r=fn(),i=t(),a=!$n(r.memoizedState,i);if(a&&(r.memoizedState=i,Ct=!0),r=r.queue,ny(zO.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Yl(9,BO.bind(null,n,r,i,t),void 0,null),it===null)throw Error(W(349));Hi&30||FO(n,t,i)}return i}function FO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function BO(e,t,n,r){t.value=n,t.getSnapshot=r,UO(t)&&HO(e)}function zO(e,t,n){return n(function(){UO(t)&&HO(e)})}function UO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function HO(e){var t=yr(e,1);t!==null&&Sn(t,e,1,-1)}function Yx(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=aN.bind(null,De,e),[t.memoizedState,e]}function Yl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function WO(){return fn().memoizedState}function ic(e,t,n,r){var i=Rn();De.flags|=e,i.memoizedState=Yl(1|t,n,void 0,r===void 0?null:r)}function ed(e,t,n,r){var i=fn();r=r===void 0?null:r;var a=void 0;if(Ye!==null){var o=Ye.memoizedState;if(a=o.destroy,r!==null&&Jg(r,o.deps)){i.memoizedState=Yl(t,n,a,r);return}}De.flags|=e,i.memoizedState=Yl(1|t,n,a,r)}function Qx(e,t){return ic(8390656,8,e,t)}function ny(e,t){return ed(2048,8,e,t)}function VO(e,t){return ed(4,2,e,t)}function KO(e,t){return ed(4,4,e,t)}function GO(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qO(e,t,n){return n=n!=null?n.concat([e]):null,ed(4,4,GO.bind(null,t,e),n)}function ry(){}function XO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function YO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function QO(e,t,n){return Hi&21?($n(n,t)||(n=nO(),De.lanes|=n,Wi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function rN(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Up.transition;Up.transition={};try{e(!1),t()}finally{pe=n,Up.transition=r}}function ZO(){return fn().memoizedState}function iN(e,t,n){var r=Zr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JO(e))e$(t,n);else if(n=MO(e,t,n,r),n!==null){var i=Ot();Sn(n,e,r,i),t$(n,t,r)}}function aN(e,t,n){var r=Zr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JO(e))e$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,$n(l,o)){var s=t.interleaved;s===null?(i.next=i,qg(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=MO(e,t,i,r),n!==null&&(i=Ot(),Sn(n,e,r,i),t$(n,t,r))}}function JO(e){var t=e.alternate;return e===De||t!==null&&t===De}function e$(e,t){El=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}var Mc={readContext:cn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},oN={readContext:cn,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ic(4194308,4,GO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return ic(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iN.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Yx,useDebugValue:ry,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Yx(!1),t=e[0];return e=rN.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Rn();if(Me){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),it===null)throw Error(W(349));Hi&30||FO(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Qx(zO.bind(null,r,a,e),[e]),r.flags|=2048,Yl(9,BO.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Rn(),t=it.identifierPrefix;if(Me){var n=or,r=ar;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ql++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lN={readContext:cn,useCallback:XO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:YO,useReducer:Hp,useRef:WO,useState:function(){return Hp(Xl)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return QO(t,Ye.memoizedState,e)},useTransition:function(){var e=Hp(Xl)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1},sN={readContext:cn,useCallback:XO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:YO,useReducer:Wp,useRef:WO,useState:function(){return Wp(Xl)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return Ye===null?t.memoizedState=e:QO(t,Ye.memoizedState,e)},useTransition:function(){var e=Wp(Xl)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1};function yn(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ym(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var td={isMounted:function(e){return(e=e._reactInternals)?na(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=Zr(e),a=ur(r,i);a.payload=t,n!=null&&(a.callback=n),t=Yr(e,a,i),t!==null&&(Sn(t,e,i,r),nc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=Zr(e),a=ur(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Yr(e,a,i),t!==null&&(Sn(t,e,i,r),nc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=Zr(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Yr(e,i,r),t!==null&&(Sn(t,e,r,n),nc(t,e,r))}};function Zx(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,r)||!Ul(i,a):!0}function n$(e,t,n){var r=!1,i=ai,a=t.contextType;return typeof a=="object"&&a!==null?a=cn(a):(i=It(t)?zi:yt.current,r=t.contextTypes,a=(r=r!=null)?Ua(e,i):ai),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=td,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Jx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&td.enqueueReplaceState(t,t.state,null)}function xm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Xg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=cn(a):(a=It(t)?zi:yt.current,i.context=Ua(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ym(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&td.enqueueReplaceState(i,i.state,null),Cc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ka(e,t){try{var n="",r=t;do n+=RC(r),r=r.return;while(r);var i=n}catch(a){i=`
|
54
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dl(e):""}function RC(e){switch(e.tag){case 5:return dl(e.type);case 16:return dl("Lazy");case 13:return dl("Suspense");case 19:return dl("SuspenseList");case 0:case 2:case 15:return e=$p(e.type,!1),e;case 11:return e=$p(e.type.render,!1),e;case 1:return e=$p(e.type,!0),e;default:return""}}function Kh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ga:return"Fragment";case va:return"Portal";case Hh:return"Profiler";case Tg:return"StrictMode";case Wh:return"Suspense";case Vh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IE:return(e.displayName||"Context")+".Consumer";case ME:return(e._context.displayName||"Context")+".Provider";case Ag:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cg:return t=e.displayName||null,t!==null?t:Kh(e.type)||"Memo";case Rr:t=e._payload,e=e._init;try{return Kh(e(t))}catch{}}return null}function LC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kh(t);case 8:return t===Tg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DC(e){var t=LE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yu(e){e._valueTracker||(e._valueTracker=DC(e))}function DE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gh(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FE(e,t){t=t.checked,t!=null&&jg(e,"checked",t,!1)}function qh(e,t){FE(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xh(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xh(e,t,n){(t!=="number"||vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pl=Array.isArray;function ka(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ai(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(pl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ai(n)}}function BE(e,t){var n=ai(t.value),r=ai(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zE(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xu,UE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xu=xu||document.createElement("div"),xu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FC=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){FC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function HE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function WE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var BC=Be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zh(e,t){if(t){if(BC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Jh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var em=null;function kg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tm=null,Na=null,Ma=null;function bx(e){if(e=Us(e)){if(typeof tm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Zf(t),tm(e.stateNode,e.type,t))}}function VE(e){Na?Ma?Ma.push(e):Ma=[e]:Na=e}function KE(){if(Na){var e=Na,t=Ma;if(Ma=Na=null,bx(e),t)for(e=0;e<t.length;e++)bx(t[e])}}function GE(e,t){return e(t)}function qE(){}var Pp=!1;function XE(e,t,n){if(Pp)return e(t,n);Pp=!0;try{return GE(e,t,n)}finally{Pp=!1,(Na!==null||Ma!==null)&&(qE(),KE())}}function Fl(e,t){var n=e.stateNode;if(n===null)return null;var r=Zf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var nm=!1;if(vr)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){nm=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{nm=!1}function zC(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var wl=!1,gc=null,yc=!1,rm=null,UC={onError:function(e){wl=!0,gc=e}};function HC(e,t,n,r,i,a,o,l,s){wl=!1,gc=null,zC.apply(UC,arguments)}function WC(e,t,n,r,i,a,o,l,s){if(HC.apply(this,arguments),wl){if(wl){var u=gc;wl=!1,gc=null}else throw Error(W(198));yc||(yc=!0,rm=u)}}function na(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function YE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wx(e){if(na(e)!==e)throw Error(W(188))}function VC(e){var t=e.alternate;if(!t){if(t=na(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return wx(i),e;if(a===r)return wx(i),t;a=a.sibling}throw Error(W(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function QE(e){return e=VC(e),e!==null?ZE(e):null}function ZE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ZE(e);if(t!==null)return t;e=e.sibling}return null}var JE=Wt.unstable_scheduleCallback,_x=Wt.unstable_cancelCallback,KC=Wt.unstable_shouldYield,GC=Wt.unstable_requestPaint,We=Wt.unstable_now,qC=Wt.unstable_getCurrentPriorityLevel,Ng=Wt.unstable_ImmediatePriority,eO=Wt.unstable_UserBlockingPriority,xc=Wt.unstable_NormalPriority,XC=Wt.unstable_LowPriority,tO=Wt.unstable_IdlePriority,qf=null,Fn=null;function YC(e){if(Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(qf,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:JC,QC=Math.log,ZC=Math.LN2;function JC(e){return e>>>=0,e===0?32:31-(QC(e)/ZC|0)|0}var bu=64,wu=4194304;function hl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=hl(l):(a&=o,a!==0&&(r=hl(a)))}else o=n&~i,o!==0?r=hl(o):a!==0&&(r=hl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function ek(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-_n(a),l=1<<o,s=i[o];s===-1?(!(l&n)||l&r)&&(i[o]=ek(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function im(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nO(){var e=bu;return bu<<=1,!(bu&4194240)&&(bu=64),e}function jp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function nk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Mg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function rO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iO,Ig,aO,oO,lO,am=!1,_u=[],Gr=null,qr=null,Xr=null,Bl=new Map,zl=new Map,Br=[],rk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sx(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(t.pointerId)}}function Xo(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Us(t),t!==null&&Ig(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ik(e,t,n,r,i){switch(t){case"focusin":return Gr=Xo(Gr,e,t,n,r,i),!0;case"dragenter":return qr=Xo(qr,e,t,n,r,i),!0;case"mouseover":return Xr=Xo(Xr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Bl.set(a,Xo(Bl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,zl.set(a,Xo(zl.get(a)||null,e,t,n,r,i)),!0}return!1}function sO(e){var t=Ti(e.target);if(t!==null){var n=na(t);if(n!==null){if(t=n.tag,t===13){if(t=YE(n),t!==null){e.blockedOn=t,lO(e.priority,function(){aO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=om(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);em=r,n.target.dispatchEvent(r),em=null}else return t=Us(n),t!==null&&Ig(t),e.blockedOn=n,!1;t.shift()}return!0}function Ex(e,t,n){ec(e)&&n.delete(t)}function ak(){am=!1,Gr!==null&&ec(Gr)&&(Gr=null),qr!==null&&ec(qr)&&(qr=null),Xr!==null&&ec(Xr)&&(Xr=null),Bl.forEach(Ex),zl.forEach(Ex)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,am||(am=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,ak)))}function Ul(e){function t(i){return Yo(i,e)}if(0<_u.length){Yo(_u[0],e);for(var n=1;n<_u.length;n++){var r=_u[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gr!==null&&Yo(Gr,e),qr!==null&&Yo(qr,e),Xr!==null&&Yo(Xr,e),Bl.forEach(t),zl.forEach(t),n=0;n<Br.length;n++)r=Br[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Br.length&&(n=Br[0],n.blockedOn===null);)sO(n),n.blockedOn===null&&Br.shift()}var Ia=jr.ReactCurrentBatchConfig,wc=!0;function ok(e,t,n,r){var i=pe,a=Ia.transition;Ia.transition=null;try{pe=1,Rg(e,t,n,r)}finally{pe=i,Ia.transition=a}}function lk(e,t,n,r){var i=pe,a=Ia.transition;Ia.transition=null;try{pe=4,Rg(e,t,n,r)}finally{pe=i,Ia.transition=a}}function Rg(e,t,n,r){if(wc){var i=om(e,t,n,r);if(i===null)Dp(e,t,r,_c,n),Sx(e,r);else if(ik(i,e,t,n,r))r.stopPropagation();else if(Sx(e,r),t&4&&-1<rk.indexOf(e)){for(;i!==null;){var a=Us(i);if(a!==null&&iO(a),a=om(e,t,n,r),a===null&&Dp(e,t,r,_c,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dp(e,t,r,null,n)}}var _c=null;function om(e,t,n,r){if(_c=null,e=kg(r),e=Ti(e),e!==null)if(t=na(e),t===null)e=null;else if(n=t.tag,n===13){if(e=YE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _c=e,null}function uO(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qC()){case Ng:return 1;case eO:return 4;case xc:case XC:return 16;case tO:return 536870912;default:return 16}default:return 16}}var Hr=null,Lg=null,tc=null;function cO(){if(tc)return tc;var e,t=Lg,n=t.length,r,i="value"in Hr?Hr.value:Hr.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tc=i.slice(e,1<r?1-r:void 0)}function nc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Su(){return!0}function Ox(){return!1}function Gt(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Su:Ox,this.isPropagationStopped=Ox,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),t}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dg=Gt(Oo),zs=Be({},Oo,{view:0,detail:0}),sk=Gt(zs),Tp,Ap,Qo,Xf=Be({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qo&&(Qo&&e.type==="mousemove"?(Tp=e.screenX-Qo.screenX,Ap=e.screenY-Qo.screenY):Ap=Tp=0,Qo=e),Tp)},movementY:function(e){return"movementY"in e?e.movementY:Ap}}),$x=Gt(Xf),uk=Be({},Xf,{dataTransfer:0}),ck=Gt(uk),fk=Be({},zs,{relatedTarget:0}),Cp=Gt(fk),dk=Be({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),pk=Gt(dk),hk=Be({},Oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mk=Gt(hk),vk=Be({},Oo,{data:0}),Px=Gt(vk),gk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xk[e])?!!t[e]:!1}function Fg(){return bk}var wk=Be({},zs,{key:function(e){if(e.key){var t=gk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fg,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_k=Gt(wk),Sk=Be({},Xf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jx=Gt(Sk),Ek=Be({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fg}),Ok=Gt(Ek),$k=Be({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pk=Gt($k),jk=Be({},Xf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tk=Gt(jk),Ak=[9,13,27,32],Bg=vr&&"CompositionEvent"in window,_l=null;vr&&"documentMode"in document&&(_l=document.documentMode);var Ck=vr&&"TextEvent"in window&&!_l,fO=vr&&(!Bg||_l&&8<_l&&11>=_l),Tx=" ",Ax=!1;function dO(e,t){switch(e){case"keyup":return Ak.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function kk(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(Ax=!0,Tx);case"textInput":return e=t.data,e===Tx&&Ax?null:e;default:return null}}function Nk(e,t){if(ya)return e==="compositionend"||!Bg&&dO(e,t)?(e=cO(),tc=Lg=Hr=null,ya=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fO&&t.locale!=="ko"?null:t.data;default:return null}}var Mk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mk[e.type]:t==="textarea"}function hO(e,t,n,r){VE(r),t=Sc(t,"onChange"),0<t.length&&(n=new Dg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sl=null,Hl=null;function Ik(e){OO(e,0)}function Yf(e){var t=wa(e);if(DE(t))return e}function Rk(e,t){if(e==="change")return t}var mO=!1;if(vr){var kp;if(vr){var Np="oninput"in document;if(!Np){var kx=document.createElement("div");kx.setAttribute("oninput","return;"),Np=typeof kx.oninput=="function"}kp=Np}else kp=!1;mO=kp&&(!document.documentMode||9<document.documentMode)}function Nx(){Sl&&(Sl.detachEvent("onpropertychange",vO),Hl=Sl=null)}function vO(e){if(e.propertyName==="value"&&Yf(Hl)){var t=[];hO(t,Hl,e,kg(e)),XE(Ik,t)}}function Lk(e,t,n){e==="focusin"?(Nx(),Sl=t,Hl=n,Sl.attachEvent("onpropertychange",vO)):e==="focusout"&&Nx()}function Dk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yf(Hl)}function Fk(e,t){if(e==="click")return Yf(t)}function Bk(e,t){if(e==="input"||e==="change")return Yf(t)}function zk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:zk;function Wl(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Uh.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Mx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ix(e,t){var n=Mx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mx(n)}}function gO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yO(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vc(e.document)}return t}function zg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uk(e){var t=yO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gO(n.ownerDocument.documentElement,n)){if(r!==null&&zg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ix(n,a);var o=Ix(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hk=vr&&"documentMode"in document&&11>=document.documentMode,xa=null,lm=null,El=null,sm=!1;function Rx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sm||xa==null||xa!==vc(r)||(r=xa,"selectionStart"in r&&zg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),El&&Wl(El,r)||(El=r,r=Sc(lm,"onSelect"),0<r.length&&(t=new Dg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xa)))}function Eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ba={animationend:Eu("Animation","AnimationEnd"),animationiteration:Eu("Animation","AnimationIteration"),animationstart:Eu("Animation","AnimationStart"),transitionend:Eu("Transition","TransitionEnd")},Mp={},xO={};vr&&(xO=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Qf(e){if(Mp[e])return Mp[e];if(!ba[e])return e;var t=ba[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xO)return Mp[e]=t[n];return e}var bO=Qf("animationend"),wO=Qf("animationiteration"),_O=Qf("animationstart"),SO=Qf("transitionend"),EO=new Map,Lx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ui(e,t){EO.set(e,t),ta(t,[e])}for(var Ip=0;Ip<Lx.length;Ip++){var Rp=Lx[Ip],Wk=Rp.toLowerCase(),Vk=Rp[0].toUpperCase()+Rp.slice(1);ui(Wk,"on"+Vk)}ui(bO,"onAnimationEnd");ui(wO,"onAnimationIteration");ui(_O,"onAnimationStart");ui("dblclick","onDoubleClick");ui("focusin","onFocus");ui("focusout","onBlur");ui(SO,"onTransitionEnd");Ua("onMouseEnter",["mouseout","mouseover"]);Ua("onMouseLeave",["mouseout","mouseover"]);Ua("onPointerEnter",["pointerout","pointerover"]);Ua("onPointerLeave",["pointerout","pointerover"]);ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));function Dx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,WC(r,t,void 0,e),e.currentTarget=null}function OO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}}}if(yc)throw e=rm,yc=!1,rm=null,e}function $e(e,t){var n=t[pm];n===void 0&&(n=t[pm]=new Set);var r=e+"__bubble";n.has(r)||($O(t,e,2,!1),n.add(r))}function Lp(e,t,n){var r=0;t&&(r|=4),$O(n,e,r,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Vl(e){if(!e[Ou]){e[Ou]=!0,NE.forEach(function(n){n!=="selectionchange"&&(Kk.has(n)||Lp(n,!1,e),Lp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,Lp("selectionchange",!1,t))}}function $O(e,t,n,r){switch(uO(t)){case 1:var i=ok;break;case 4:i=lk;break;default:i=Rg}n=i.bind(null,t,n,e),i=void 0,!nm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dp(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Ti(l),o===null)return;if(s=o.tag,s===5||s===6){r=a=o;continue e}l=l.parentNode}}r=r.return}XE(function(){var u=a,c=kg(n),f=[];e:{var d=EO.get(e);if(d!==void 0){var p=Dg,h=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":p=_k;break;case"focusin":h="focus",p=Cp;break;case"focusout":h="blur",p=Cp;break;case"beforeblur":case"afterblur":p=Cp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=$x;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=ck;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Ok;break;case bO:case wO:case _O:p=pk;break;case SO:p=Pk;break;case"scroll":p=sk;break;case"wheel":p=Tk;break;case"copy":case"cut":case"paste":p=mk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jx}var m=(t&4)!==0,w=!m&&e==="scroll",y=m?d!==null?d+"Capture":null:d;m=[];for(var g=u,x;g!==null;){x=g;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,y!==null&&(E=Fl(g,y),E!=null&&m.push(Kl(g,E,x)))),w)break;g=g.return}0<m.length&&(d=new p(d,h,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==em&&(h=n.relatedTarget||n.fromElement)&&(Ti(h)||h[gr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?Ti(h):null,h!==null&&(w=na(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(m=$x,E="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=jx,E="onPointerLeave",y="onPointerEnter",g="pointer"),w=p==null?d:wa(p),x=h==null?d:wa(h),d=new m(E,g+"leave",p,n,c),d.target=w,d.relatedTarget=x,E=null,Ti(c)===u&&(m=new m(y,g+"enter",h,n,c),m.target=x,m.relatedTarget=w,E=m),w=E,p&&h)t:{for(m=p,y=h,g=0,x=m;x;x=ca(x))g++;for(x=0,E=y;E;E=ca(E))x++;for(;0<g-x;)m=ca(m),g--;for(;0<x-g;)y=ca(y),x--;for(;g--;){if(m===y||y!==null&&m===y.alternate)break t;m=ca(m),y=ca(y)}m=null}else m=null;p!==null&&Fx(f,d,p,m,!1),h!==null&&w!==null&&Fx(f,w,h,m,!0)}}e:{if(d=u?wa(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var _=Rk;else if(Cx(d))if(mO)_=Bk;else{_=Dk;var S=Lk}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Fk);if(_&&(_=_(e,u))){hO(f,_,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Xh(d,"number",d.value)}switch(S=u?wa(u):window,e){case"focusin":(Cx(S)||S.contentEditable==="true")&&(xa=S,lm=u,El=null);break;case"focusout":El=lm=xa=null;break;case"mousedown":sm=!0;break;case"contextmenu":case"mouseup":case"dragend":sm=!1,Rx(f,n,c);break;case"selectionchange":if(Hk)break;case"keydown":case"keyup":Rx(f,n,c)}var O;if(Bg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else ya?dO(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(fO&&n.locale!=="ko"&&(ya||$!=="onCompositionStart"?$==="onCompositionEnd"&&ya&&(O=cO()):(Hr=c,Lg="value"in Hr?Hr.value:Hr.textContent,ya=!0)),S=Sc(u,$),0<S.length&&($=new Px($,e,null,n,c),f.push({event:$,listeners:S}),O?$.data=O:(O=pO(n),O!==null&&($.data=O)))),(O=Ck?kk(e,n):Nk(e,n))&&(u=Sc(u,"onBeforeInput"),0<u.length&&(c=new Px("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}OO(f,t)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Fl(e,n),a!=null&&r.unshift(Kl(e,a,i)),a=Fl(e,t),a!=null&&r.push(Kl(e,a,i))),e=e.return}return r}function ca(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fx(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,i?(s=Fl(n,a),s!=null&&o.unshift(Kl(n,s,l))):i||(s=Fl(n,a),s!=null&&o.push(Kl(n,s,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Gk=/\r\n?/g,qk=/\u0000|\uFFFD/g;function Bx(e){return(typeof e=="string"?e:""+e).replace(Gk,`
|
55
|
+
`).replace(qk,"")}function $u(e,t,n){if(t=Bx(t),Bx(e)!==t&&n)throw Error(W(425))}function Ec(){}var um=null,cm=null;function fm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dm=typeof setTimeout=="function"?setTimeout:void 0,Xk=typeof clearTimeout=="function"?clearTimeout:void 0,zx=typeof Promise=="function"?Promise:void 0,Yk=typeof queueMicrotask=="function"?queueMicrotask:typeof zx<"u"?function(e){return zx.resolve(null).then(e).catch(Qk)}:dm;function Qk(e){setTimeout(function(){throw e})}function Fp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ul(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ul(t)}function Yr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ux(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $o=Math.random().toString(36).slice(2),Ln="__reactFiber$"+$o,Gl="__reactProps$"+$o,gr="__reactContainer$"+$o,pm="__reactEvents$"+$o,Zk="__reactListeners$"+$o,Jk="__reactHandles$"+$o;function Ti(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ux(e);e!==null;){if(n=e[Ln])return n;e=Ux(e)}return t}e=n,n=e.parentNode}return null}function Us(e){return e=e[Ln]||e[gr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Zf(e){return e[Gl]||null}var hm=[],_a=-1;function ci(e){return{current:e}}function Ae(e){0>_a||(e.current=hm[_a],hm[_a]=null,_a--)}function _e(e,t){_a++,hm[_a]=e.current,e.current=t}var oi={},yt=ci(oi),Mt=ci(!1),Ui=oi;function Ha(e,t){var n=e.type.contextTypes;if(!n)return oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function Oc(){Ae(Mt),Ae(yt)}function Hx(e,t,n){if(yt.current!==oi)throw Error(W(168));_e(yt,t),_e(Mt,n)}function PO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,LC(e)||"Unknown",i));return Be({},n,r)}function $c(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oi,Ui=yt.current,_e(yt,e),_e(Mt,Mt.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=PO(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Ae(Mt),Ae(yt),_e(yt,e)):Ae(Mt),_e(Mt,n)}var rr=null,Jf=!1,Bp=!1;function jO(e){rr===null?rr=[e]:rr.push(e)}function eN(e){Jf=!0,jO(e)}function fi(){if(!Bp&&rr!==null){Bp=!0;var e=0,t=pe;try{var n=rr;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rr=null,Jf=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),JE(Ng,fi),i}finally{pe=t,Bp=!1}}return null}var Sa=[],Ea=0,Pc=null,jc=0,en=[],tn=0,Hi=null,ar=1,or="";function _i(e,t){Sa[Ea++]=jc,Sa[Ea++]=Pc,Pc=e,jc=t}function TO(e,t,n){en[tn++]=ar,en[tn++]=or,en[tn++]=Hi,Hi=e;var r=ar;e=or;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var a=32-_n(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ar=1<<32-_n(t)+i|n<<i|r,or=a+e}else ar=1<<a|n<<i|r,or=e}function Ug(e){e.return!==null&&(_i(e,1),TO(e,1,0))}function Hg(e){for(;e===Pc;)Pc=Sa[--Ea],Sa[Ea]=null,jc=Sa[--Ea],Sa[Ea]=null;for(;e===Hi;)Hi=en[--tn],en[tn]=null,or=en[--tn],en[tn]=null,ar=en[--tn],en[tn]=null}var Ut=null,zt=null,Me=!1,bn=null;function AO(e,t){var n=an(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Vx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ut=e,zt=Yr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ut=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Hi!==null?{id:ar,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=an(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ut=e,zt=null,!0):!1;default:return!1}}function mm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vm(e){if(Me){var t=zt;if(t){var n=t;if(!Vx(e,t)){if(mm(e))throw Error(W(418));t=Yr(n.nextSibling);var r=Ut;t&&Vx(e,t)?AO(r,n):(e.flags=e.flags&-4097|2,Me=!1,Ut=e)}}else{if(mm(e))throw Error(W(418));e.flags=e.flags&-4097|2,Me=!1,Ut=e}}}function Kx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ut=e}function Pu(e){if(e!==Ut)return!1;if(!Me)return Kx(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fm(e.type,e.memoizedProps)),t&&(t=zt)){if(mm(e))throw CO(),Error(W(418));for(;t;)AO(e,t),t=Yr(t.nextSibling)}if(Kx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Yr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ut?Yr(e.stateNode.nextSibling):null;return!0}function CO(){for(var e=zt;e;)e=Yr(e.nextSibling)}function Wa(){zt=Ut=null,Me=!1}function Wg(e){bn===null?bn=[e]:bn.push(e)}var tN=jr.ReactCurrentBatchConfig;function Zo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function ju(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gx(e){var t=e._init;return t(e._payload)}function kO(e){function t(y,g){if(e){var x=y.deletions;x===null?(y.deletions=[g],y.flags|=16):x.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=ei(y,g),y.index=0,y.sibling=null,y}function a(y,g,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<g?(y.flags|=2,g):x):(y.flags|=2,g)):(y.flags|=1048576,g)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,g,x,E){return g===null||g.tag!==6?(g=Gp(x,y.mode,E),g.return=y,g):(g=i(g,x),g.return=y,g)}function s(y,g,x,E){var _=x.type;return _===ga?c(y,g,x.props.children,E,x.key):g!==null&&(g.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Rr&&Gx(_)===g.type)?(E=i(g,x.props),E.ref=Zo(y,g,x),E.return=y,E):(E=uc(x.type,x.key,x.props,null,y.mode,E),E.ref=Zo(y,g,x),E.return=y,E)}function u(y,g,x,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=qp(x,y.mode,E),g.return=y,g):(g=i(g,x.children||[]),g.return=y,g)}function c(y,g,x,E,_){return g===null||g.tag!==7?(g=Di(x,y.mode,E,_),g.return=y,g):(g=i(g,x),g.return=y,g)}function f(y,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Gp(""+g,y.mode,x),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case gu:return x=uc(g.type,g.key,g.props,null,y.mode,x),x.ref=Zo(y,null,g),x.return=y,x;case va:return g=qp(g,y.mode,x),g.return=y,g;case Rr:var E=g._init;return f(y,E(g._payload),x)}if(pl(g)||Go(g))return g=Di(g,y.mode,x,null),g.return=y,g;ju(y,g)}return null}function d(y,g,x,E){var _=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(y,g,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:return x.key===_?s(y,g,x,E):null;case va:return x.key===_?u(y,g,x,E):null;case Rr:return _=x._init,d(y,g,_(x._payload),E)}if(pl(x)||Go(x))return _!==null?null:c(y,g,x,E,null);ju(y,x)}return null}function p(y,g,x,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(x)||null,l(g,y,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case gu:return y=y.get(E.key===null?x:E.key)||null,s(g,y,E,_);case va:return y=y.get(E.key===null?x:E.key)||null,u(g,y,E,_);case Rr:var S=E._init;return p(y,g,x,S(E._payload),_)}if(pl(E)||Go(E))return y=y.get(x)||null,c(g,y,E,_,null);ju(g,E)}return null}function h(y,g,x,E){for(var _=null,S=null,O=g,$=g=0,T=null;O!==null&&$<x.length;$++){O.index>$?(T=O,O=null):T=O.sibling;var C=d(y,O,x[$],E);if(C===null){O===null&&(O=T);break}e&&O&&C.alternate===null&&t(y,O),g=a(C,g,$),S===null?_=C:S.sibling=C,S=C,O=T}if($===x.length)return n(y,O),Me&&_i(y,$),_;if(O===null){for(;$<x.length;$++)O=f(y,x[$],E),O!==null&&(g=a(O,g,$),S===null?_=O:S.sibling=O,S=O);return Me&&_i(y,$),_}for(O=r(y,O);$<x.length;$++)T=p(O,y,$,x[$],E),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?$:T.key),g=a(T,g,$),S===null?_=T:S.sibling=T,S=T);return e&&O.forEach(function(A){return t(y,A)}),Me&&_i(y,$),_}function m(y,g,x,E){var _=Go(x);if(typeof _!="function")throw Error(W(150));if(x=_.call(x),x==null)throw Error(W(151));for(var S=_=null,O=g,$=g=0,T=null,C=x.next();O!==null&&!C.done;$++,C=x.next()){O.index>$?(T=O,O=null):T=O.sibling;var A=d(y,O,C.value,E);if(A===null){O===null&&(O=T);break}e&&O&&A.alternate===null&&t(y,O),g=a(A,g,$),S===null?_=A:S.sibling=A,S=A,O=T}if(C.done)return n(y,O),Me&&_i(y,$),_;if(O===null){for(;!C.done;$++,C=x.next())C=f(y,C.value,E),C!==null&&(g=a(C,g,$),S===null?_=C:S.sibling=C,S=C);return Me&&_i(y,$),_}for(O=r(y,O);!C.done;$++,C=x.next())C=p(O,y,$,C.value,E),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?$:C.key),g=a(C,g,$),S===null?_=C:S.sibling=C,S=C);return e&&O.forEach(function(N){return t(y,N)}),Me&&_i(y,$),_}function w(y,g,x,E){if(typeof x=="object"&&x!==null&&x.type===ga&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:e:{for(var _=x.key,S=g;S!==null;){if(S.key===_){if(_=x.type,_===ga){if(S.tag===7){n(y,S.sibling),g=i(S,x.props.children),g.return=y,y=g;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Rr&&Gx(_)===S.type){n(y,S.sibling),g=i(S,x.props),g.ref=Zo(y,S,x),g.return=y,y=g;break e}n(y,S);break}else t(y,S);S=S.sibling}x.type===ga?(g=Di(x.props.children,y.mode,E,x.key),g.return=y,y=g):(E=uc(x.type,x.key,x.props,null,y.mode,E),E.ref=Zo(y,g,x),E.return=y,y=E)}return o(y);case va:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(y,g.sibling),g=i(g,x.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=qp(x,y.mode,E),g.return=y,y=g}return o(y);case Rr:return S=x._init,w(y,g,S(x._payload),E)}if(pl(x))return h(y,g,x,E);if(Go(x))return m(y,g,x,E);ju(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,x),g.return=y,y=g):(n(y,g),g=Gp(x,y.mode,E),g.return=y,y=g),o(y)):n(y,g)}return w}var Va=kO(!0),NO=kO(!1),Tc=ci(null),Ac=null,Oa=null,Vg=null;function Kg(){Vg=Oa=Ac=null}function Gg(e){var t=Tc.current;Ae(Tc),e._currentValue=t}function gm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ra(e,t){Ac=e,Vg=Oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(Vg!==e)if(e={context:e,memoizedValue:t,next:null},Oa===null){if(Ac===null)throw Error(W(308));Oa=e,Ac.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var Ai=null;function qg(e){Ai===null?Ai=[e]:Ai.push(e)}function MO(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qg(t)):(n.next=i.next,i.next=n),t.interleaved=n,yr(e,r)}function yr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Lr=!1;function Xg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yr(e,n)}return i=r.interleaved,i===null?(t.next=t,qg(r)):(t.next=i.next,i.next=t),r.interleaved=t,yr(e,n)}function rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}function qx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cc(e,t,n,r){var i=e.updateQueue;Lr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,c=u=s=null,l=a;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,d=typeof h=="function"?h.call(p,f,d):h,d==null)break e;f=Be({},f,d);break e;case 2:Lr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,s=f):c=c.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Vi|=o,e.lanes=o,e.memoizedState=f}}function Xx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(W(191,i));i.call(r)}}}var Hs={},Bn=ci(Hs),ql=ci(Hs),Xl=ci(Hs);function Ci(e){if(e===Hs)throw Error(W(174));return e}function Yg(e,t){switch(_e(Xl,t),_e(ql,e),_e(Bn,Hs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qh(t,e)}Ae(Bn),_e(Bn,t)}function Ka(){Ae(Bn),Ae(ql),Ae(Xl)}function RO(e){Ci(Xl.current);var t=Ci(Bn.current),n=Qh(t,e.type);t!==n&&(_e(ql,e),_e(Bn,n))}function Qg(e){ql.current===e&&(Ae(Bn),Ae(ql))}var Le=ci(0);function kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zp=[];function Zg(){for(var e=0;e<zp.length;e++)zp[e]._workInProgressVersionPrimary=null;zp.length=0}var ic=jr.ReactCurrentDispatcher,Up=jr.ReactCurrentBatchConfig,Wi=0,De=null,Ye=null,nt=null,Nc=!1,Ol=!1,Yl=0,nN=0;function pt(){throw Error(W(321))}function Jg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ey(e,t,n,r,i,a){if(Wi=a,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ic.current=e===null||e.memoizedState===null?oN:lN,e=n(r,i),Ol){a=0;do{if(Ol=!1,Yl=0,25<=a)throw Error(W(301));a+=1,nt=Ye=null,t.updateQueue=null,ic.current=sN,e=n(r,i)}while(Ol)}if(ic.current=Mc,t=Ye!==null&&Ye.next!==null,Wi=0,nt=Ye=De=null,Nc=!1,t)throw Error(W(300));return e}function ty(){var e=Yl!==0;return Yl=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?De.memoizedState=nt=e:nt=nt.next=e,nt}function fn(){if(Ye===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=nt===null?De.memoizedState:nt.next;if(t!==null)nt=t,Ye=e;else{if(e===null)throw Error(W(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},nt===null?De.memoizedState=nt=e:nt=nt.next=e}return nt}function Ql(e,t){return typeof t=="function"?t(e):t}function Hp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var l=o=null,s=null,u=a;do{var c=u.lane;if((Wi&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,o=r):s=s.next=f,De.lanes|=c,Vi|=c}u=u.next}while(u!==null&&u!==a);s===null?o=r:s.next=l,$n(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,De.lanes|=a,Vi|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);$n(a,t.memoizedState)||(Ct=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function LO(){}function DO(e,t){var n=De,r=fn(),i=t(),a=!$n(r.memoizedState,i);if(a&&(r.memoizedState=i,Ct=!0),r=r.queue,ny(zO.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Zl(9,BO.bind(null,n,r,i,t),void 0,null),it===null)throw Error(W(349));Wi&30||FO(n,t,i)}return i}function FO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function BO(e,t,n,r){t.value=n,t.getSnapshot=r,UO(t)&&HO(e)}function zO(e,t,n){return n(function(){UO(t)&&HO(e)})}function UO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function HO(e){var t=yr(e,1);t!==null&&Sn(t,e,1,-1)}function Yx(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t.queue=e,e=e.dispatch=aN.bind(null,De,e),[t.memoizedState,e]}function Zl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function WO(){return fn().memoizedState}function ac(e,t,n,r){var i=Rn();De.flags|=e,i.memoizedState=Zl(1|t,n,void 0,r===void 0?null:r)}function ed(e,t,n,r){var i=fn();r=r===void 0?null:r;var a=void 0;if(Ye!==null){var o=Ye.memoizedState;if(a=o.destroy,r!==null&&Jg(r,o.deps)){i.memoizedState=Zl(t,n,a,r);return}}De.flags|=e,i.memoizedState=Zl(1|t,n,a,r)}function Qx(e,t){return ac(8390656,8,e,t)}function ny(e,t){return ed(2048,8,e,t)}function VO(e,t){return ed(4,2,e,t)}function KO(e,t){return ed(4,4,e,t)}function GO(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qO(e,t,n){return n=n!=null?n.concat([e]):null,ed(4,4,GO.bind(null,t,e),n)}function ry(){}function XO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function YO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function QO(e,t,n){return Wi&21?($n(n,t)||(n=nO(),De.lanes|=n,Vi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function rN(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Up.transition;Up.transition={};try{e(!1),t()}finally{pe=n,Up.transition=r}}function ZO(){return fn().memoizedState}function iN(e,t,n){var r=Jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JO(e))e$(t,n);else if(n=MO(e,t,n,r),n!==null){var i=Ot();Sn(n,e,r,i),t$(n,t,r)}}function aN(e,t,n){var r=Jr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JO(e))e$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,n);if(i.hasEagerState=!0,i.eagerState=l,$n(l,o)){var s=t.interleaved;s===null?(i.next=i,qg(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=MO(e,t,i,r),n!==null&&(i=Ot(),Sn(n,e,r,i),t$(n,t,r))}}function JO(e){var t=e.alternate;return e===De||t!==null&&t===De}function e$(e,t){Ol=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}var Mc={readContext:cn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},oN={readContext:cn,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ac(4194308,4,GO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ac(4194308,4,e,t)},useInsertionEffect:function(e,t){return ac(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iN.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Yx,useDebugValue:ry,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Yx(!1),t=e[0];return e=rN.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Rn();if(Me){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),it===null)throw Error(W(349));Wi&30||FO(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Qx(zO.bind(null,r,a,e),[e]),r.flags|=2048,Zl(9,BO.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Rn(),t=it.identifierPrefix;if(Me){var n=or,r=ar;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lN={readContext:cn,useCallback:XO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:YO,useReducer:Hp,useRef:WO,useState:function(){return Hp(Ql)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return QO(t,Ye.memoizedState,e)},useTransition:function(){var e=Hp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1},sN={readContext:cn,useCallback:XO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:YO,useReducer:Wp,useRef:WO,useState:function(){return Wp(Ql)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return Ye===null?t.memoizedState=e:QO(t,Ye.memoizedState,e)},useTransition:function(){var e=Wp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1};function yn(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ym(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var td={isMounted:function(e){return(e=e._reactInternals)?na(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=Jr(e),a=ur(r,i);a.payload=t,n!=null&&(a.callback=n),t=Qr(e,a,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=Jr(e),a=ur(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Qr(e,a,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=Jr(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Qr(e,i,r),t!==null&&(Sn(t,e,r,n),rc(t,e,r))}};function Zx(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,r)||!Wl(i,a):!0}function n$(e,t,n){var r=!1,i=oi,a=t.contextType;return typeof a=="object"&&a!==null?a=cn(a):(i=It(t)?Ui:yt.current,r=t.contextTypes,a=(r=r!=null)?Ha(e,i):oi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=td,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Jx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&td.enqueueReplaceState(t,t.state,null)}function xm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Xg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=cn(a):(a=It(t)?Ui:yt.current,i.context=Ha(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ym(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&td.enqueueReplaceState(i,i.state,null),Cc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ga(e,t){try{var n="",r=t;do n+=RC(r),r=r.return;while(r);var i=n}catch(a){i=`
|
56
56
|
Error generating stack: `+a.message+`
|
57
|
-
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Vp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uN=typeof WeakMap=="function"?WeakMap:Map;function r$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rc||(Rc=!0,Am=r),bm(e,t)},n}function i$(e,t,n){n=ur(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){bm(e,t),typeof r!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function eb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=SN.bind(null,e,t,n),t.then(e,e))}function tb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ur(-1,1),t.tag=2,Yr(n,t,1))),n.lanes|=1),e)}var cN=Pr.ReactCurrentOwner,Ct=!1;function xt(e,t,n,r){t.child=e===null?NO(t,null,n,r):Wa(t,e.child,n,r)}function rb(e,t,n,r,i){n=n.render;var a=t.ref;return Ia(t,i),r=ey(e,t,n,r,a,i),n=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&n&&Ug(t),t.flags|=1,xt(e,t,r,i),t.child)}function ib(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!fy(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a$(e,t,a,r,i)):(e=sc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(o,r)&&e.ref===t.ref)return xr(e,t,i)}return t.flags|=1,e=Jr(a,r),e.ref=t.ref,e.return=t,t.child=e}function a$(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ul(a,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,xr(e,t,i)}return wm(e,t,n,r,i)}function o$(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e($a,Ft),Ft|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e($a,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,_e($a,Ft),Ft|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,_e($a,Ft),Ft|=r;return xt(e,t,i,n),t.child}function l$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wm(e,t,n,r,i){var a=It(n)?zi:yt.current;return a=Ua(t,a),Ia(t,i),n=ey(e,t,n,r,a,i),r=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&r&&Ug(t),t.flags|=1,xt(e,t,n,i),t.child)}function ab(e,t,n,r,i){if(It(n)){var a=!0;$c(t)}else a=!1;if(Ia(t,i),t.stateNode===null)ac(e,t),n$(t,n,r),xm(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=It(n)?zi:yt.current,u=Ua(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Jx(t,o,r,u),Rr=!1;var d=t.memoizedState;o.state=d,Cc(t,r,o,i),s=t.memoizedState,l!==r||d!==s||Mt.current||Rr?(typeof c=="function"&&(ym(t,n,c,r),s=t.memoizedState),(l=Rr||Zx(t,n,l,r,d,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,IO(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yn(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=cn(s):(s=It(n)?zi:yt.current,s=Ua(t,s));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&Jx(t,o,r,s),Rr=!1,d=t.memoizedState,o.state=d,Cc(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||Mt.current||Rr?(typeof p=="function"&&(ym(t,n,p,r),h=t.memoizedState),(u=Rr||Zx(t,n,u,r,d,h,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _m(e,t,n,r,a,i)}function _m(e,t,n,r,i,a){l$(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wx(t,n,!1),xr(e,t,a);r=t.stateNode,cN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wa(t,e.child,null,a),t.child=Wa(t,null,l,a)):xt(e,t,l,a),t.memoizedState=r.state,i&&Wx(t,n,!0),t.child}function s$(e){var t=e.stateNode;t.pendingContext?Hx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hx(e,t.context,!1),Yg(e,t.containerInfo)}function ob(e,t,n,r,i){return Ha(),Wg(i),t.flags|=256,xt(e,t,n,r),t.child}var Sm={dehydrated:null,treeContext:null,retryLane:0};function Em(e){return{baseLanes:e,cachePool:null,transitions:null}}function u$(e,t,n){var r=t.pendingProps,i=Le.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Le,i&1),e===null)return vm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=id(o,r,0,null),e=Li(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Em(n),t.memoizedState=Sm,e):iy(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return fN(e,t,o,r,l,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Jr(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=Jr(l,a):(a=Li(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Em(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Sm,r}return a=e.child,e=a.sibling,r=Jr(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function iy(e,t){return t=id({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,n,r){return r!==null&&Wg(r),Wa(t,e.child,null,n),e=iy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fN(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=Vp(Error(W(422))),Pu(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=id({mode:"visible",children:r.children},i,0,null),a=Li(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Wa(t,e.child,null,o),t.child.memoizedState=Em(o),t.memoizedState=Sm,a);if(!(t.mode&1))return Pu(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(W(419)),r=Vp(a,r,void 0),Pu(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ct||l){if(r=it,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,yr(e,i),Sn(r,e,i,-1))}return cy(),r=Vp(Error(W(421))),Pu(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=EN.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zt=Xr(i.nextSibling),Ut=t,Me=!0,bn=null,e!==null&&(en[tn++]=ar,en[tn++]=or,en[tn++]=Ui,ar=e.id,or=e.overflow,Ui=t),t=iy(t,r.children),t.flags|=4096,t)}function lb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gm(e.return,t,n)}function Kp(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function c$(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xt(e,t,r.children,n),r=Le.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lb(e,n,t);else if(e.tag===19)lb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kp(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kp(t,!0,n,null,a);break;case"together":Kp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ac(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dN(e,t,n){switch(t.tag){case 3:s$(t),Ha();break;case 5:RO(t);break;case 1:It(t.type)&&$c(t);break;case 4:Yg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Tc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?u$(e,t,n):(_e(Le,Le.current&1),e=xr(e,t,n),e!==null?e.sibling:null);_e(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,o$(e,t,n)}return xr(e,t,n)}var f$,Om,d$,p$;f$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Om=function(){};d$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ai(Bn.current);var a=null;switch(n){case"input":i=Gh(e,i),r=Gh(e,r),a=[];break;case"select":i=Be({},i,{value:void 0}),r=Be({},r,{value:void 0}),a=[];break;case"textarea":i=Yh(e,i),r=Yh(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ec)}Zh(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Il.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(a||(a=[]),a.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Il.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&$e("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};p$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Zo(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pN(e,t,n){var r=t.pendingProps;switch(Hg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return It(t.type)&&Oc(),ht(t),null;case 3:return r=t.stateNode,Va(),Ae(Mt),Ae(yt),Zg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ou(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(Nm(bn),bn=null))),Om(e,t),ht(t),null;case 5:Qg(t);var i=Ai(Gl.current);if(n=t.type,e!==null&&t.stateNode!=null)d$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return ht(t),null}if(e=Ai(Bn.current),Ou(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ln]=t,r[Vl]=a,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(i=0;i<hl.length;i++)$e(hl[i],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":vx(r,a),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},$e("invalid",r);break;case"textarea":yx(r,a),$e("invalid",r)}Zh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&Eu(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Eu(r.textContent,l,e),i=["children",""+l]):Il.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$e("scroll",r)}switch(n){case"input":vu(r),gx(r,a,!0);break;case"textarea":vu(r),xx(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ec)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ln]=t,e[Vl]=r,f$(e,t,!1,!1),t.stateNode=e;e:{switch(o=Jh(n,r),n){case"dialog":$e("cancel",e),$e("close",e),i=r;break;case"iframe":case"object":case"embed":$e("load",e),i=r;break;case"video":case"audio":for(i=0;i<hl.length;i++)$e(hl[i],e);i=r;break;case"source":$e("error",e),i=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),i=r;break;case"details":$e("toggle",e),i=r;break;case"input":vx(e,r),i=Gh(e,r),$e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Be({},r,{value:void 0}),$e("invalid",e);break;case"textarea":yx(e,r),i=Yh(e,r),$e("invalid",e);break;default:i=r}Zh(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?WE(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&UE(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Rl(e,s):typeof s=="number"&&Rl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Il.hasOwnProperty(a)?s!=null&&a==="onScroll"&&$e("scroll",e):s!=null&&jg(e,a,s,o))}switch(n){case"input":vu(e),gx(e,r,!1);break;case"textarea":vu(e),xx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ii(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Ca(e,!!r.multiple,a,!1):r.defaultValue!=null&&Ca(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ec)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)p$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Ai(Gl.current),Ai(Bn.current),Ou(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(a=r.nodeValue!==n)&&(e=Ut,e!==null))switch(e.tag){case 3:Eu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Eu(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return ht(t),null;case 13:if(Ae(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&zt!==null&&t.mode&1&&!(t.flags&128))CO(),Ha(),t.flags|=98560,a=!1;else if(a=Ou(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(W(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[Ln]=t}else Ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),a=!1}else bn!==null&&(Nm(bn),bn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Le.current&1?Ze===0&&(Ze=3):cy())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Va(),Om(e,t),e===null&&Hl(t.stateNode.containerInfo),ht(t),null;case 10:return Gg(t.type._context),ht(t),null;case 17:return It(t.type)&&Oc(),ht(t),null;case 19:if(Ae(Le),a=t.memoizedState,a===null)return ht(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Zo(a,!1);else{if(Ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kc(e),o!==null){for(t.flags|=128,Zo(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Le,Le.current&1|2),t.child}e=e.sibling}a.tail!==null&&We()>Ga&&(t.flags|=128,r=!0,Zo(a,!1),t.lanes=4194304)}else{if(!r)if(e=kc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Me)return ht(t),null}else 2*We()-a.renderingStartTime>Ga&&n!==1073741824&&(t.flags|=128,r=!0,Zo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=We(),t.sibling=null,n=Le.current,_e(Le,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return uy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function hN(e,t){switch(Hg(t),t.tag){case 1:return It(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Va(),Ae(Mt),Ae(yt),Zg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Va(),null;case 10:return Gg(t.type._context),null;case 22:case 23:return uy(),null;case 24:return null;default:return null}}var ju=!1,mt=!1,mN=typeof WeakSet=="function"?WeakSet:Set,q=null;function Oa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function $m(e,t,n){try{n()}catch(r){ze(e,t,r)}}var sb=!1;function vN(e,t){if(um=wc,e=yO(),zg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==a||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===a&&++c===r&&(s=o),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cm={focusedElem:e,selectionRange:n},wc=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,w=h.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:yn(t.type,m),w);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=sb,sb=!1,h}function Ol(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&$m(t,n,a)}i=i.next}while(i!==r)}}function nd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function h$(e){var t=e.alternate;t!==null&&(e.alternate=null,h$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[Vl],delete t[pm],delete t[Zk],delete t[Jk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function m$(e){return e.tag===5||e.tag===3||e.tag===4}function ub(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ec));else if(r!==4&&(e=e.child,e!==null))for(jm(e,t,n),e=e.sibling;e!==null;)jm(e,t,n),e=e.sibling}function Tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tm(e,t,n),e=e.sibling;e!==null;)Tm(e,t,n),e=e.sibling}var st=null,xn=!1;function Mr(e,t,n){for(n=n.child;n!==null;)v$(e,t,n),n=n.sibling}function v$(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(qf,n)}catch{}switch(n.tag){case 5:mt||Oa(n,t);case 6:var r=st,i=xn;st=null,Mr(e,t,n),st=r,xn=i,st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?Fp(e.parentNode,n):e.nodeType===1&&Fp(e,n),Bl(e)):Fp(st,n.stateNode));break;case 4:r=st,i=xn,st=n.stateNode.containerInfo,xn=!0,Mr(e,t,n),st=r,xn=i;break;case 0:case 11:case 14:case 15:if(!mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&$m(n,t,o),i=i.next}while(i!==r)}Mr(e,t,n);break;case 1:if(!mt&&(Oa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Mr(e,t,n);break;case 21:Mr(e,t,n);break;case 22:n.mode&1?(mt=(r=mt)||n.memoizedState!==null,Mr(e,t,n),mt=r):Mr(e,t,n);break;default:Mr(e,t,n)}}function cb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mN),t.forEach(function(r){var i=ON.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:st=l.stateNode,xn=!1;break e;case 3:st=l.stateNode.containerInfo,xn=!0;break e;case 4:st=l.stateNode.containerInfo,xn=!0;break e}l=l.return}if(st===null)throw Error(W(160));v$(a,o,i),st=null,xn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g$(t,e),t=t.sibling}function g$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vn(t,e),Mn(e),r&4){try{Ol(3,e,e.return),nd(3,e)}catch(m){ze(e,e.return,m)}try{Ol(5,e,e.return)}catch(m){ze(e,e.return,m)}}break;case 1:vn(t,e),Mn(e),r&512&&n!==null&&Oa(n,n.return);break;case 5:if(vn(t,e),Mn(e),r&512&&n!==null&&Oa(n,n.return),e.flags&32){var i=e.stateNode;try{Rl(i,"")}catch(m){ze(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&FE(i,a),Jh(l,o);var u=Jh(l,a);for(o=0;o<s.length;o+=2){var c=s[o],f=s[o+1];c==="style"?WE(i,f):c==="dangerouslySetInnerHTML"?UE(i,f):c==="children"?Rl(i,f):jg(i,c,f,u)}switch(l){case"input":qh(i,a);break;case"textarea":BE(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Ca(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?Ca(i,!!a.multiple,a.defaultValue,!0):Ca(i,!!a.multiple,a.multiple?[]:"",!1))}i[Vl]=a}catch(m){ze(e,e.return,m)}}break;case 6:if(vn(t,e),Mn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){ze(e,e.return,m)}}break;case 3:if(vn(t,e),Mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bl(t.containerInfo)}catch(m){ze(e,e.return,m)}break;case 4:vn(t,e),Mn(e);break;case 13:vn(t,e),Mn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(ly=We())),r&4&&cb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(mt=(u=mt)||c,vn(t,e),mt=u):vn(t,e),Mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(q=e,c=e.child;c!==null;){for(f=q=c;q!==null;){switch(d=q,p=d.child,d.tag){case 0:case 11:case 14:case 15:Ol(4,d,d.return);break;case 1:Oa(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){ze(r,n,m)}}break;case 5:Oa(d,d.return);break;case 22:if(d.memoizedState!==null){db(f);continue}}p!==null?(p.return=d,q=p):db(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=HE("display",o))}catch(m){ze(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){ze(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vn(t,e),Mn(e),r&4&&cb(e);break;case 21:break;default:vn(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m$(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Rl(i,""),r.flags&=-33);var a=ub(e);Tm(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=ub(e);jm(e,l,o);break;default:throw Error(W(161))}}catch(s){ze(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gN(e,t,n){q=e,y$(e)}function y$(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var i=q,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ju;if(!o){var l=i.alternate,s=l!==null&&l.memoizedState!==null||mt;l=ju;var u=mt;if(ju=o,(mt=s)&&!u)for(q=i;q!==null;)o=q,s=o.child,o.tag===22&&o.memoizedState!==null?pb(i):s!==null?(s.return=o,q=s):pb(i);for(;a!==null;)q=a,y$(a),a=a.sibling;q=i,ju=l,mt=u}fb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,q=a):fb(e)}}function fb(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mt||nd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Xx(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Xx(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Bl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}mt||t.flags&512&&Pm(t)}catch(d){ze(t,t.return,d)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function db(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function pb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nd(4,t)}catch(s){ze(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ze(t,i,s)}}var a=t.return;try{Pm(t)}catch(s){ze(t,a,s)}break;case 5:var o=t.return;try{Pm(t)}catch(s){ze(t,o,s)}}}catch(s){ze(t,t.return,s)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var yN=Math.ceil,Ic=Pr.ReactCurrentDispatcher,ay=Pr.ReactCurrentOwner,un=Pr.ReactCurrentBatchConfig,se=0,it=null,Ke=null,ft=0,Ft=0,$a=si(0),Ze=0,Ql=null,Wi=0,rd=0,oy=0,$l=null,At=null,ly=0,Ga=1/0,er=null,Rc=!1,Am=null,Qr=null,Tu=!1,Hr=null,Lc=0,Pl=0,Cm=null,oc=-1,lc=0;function Ot(){return se&6?We():oc!==-1?oc:oc=We()}function Zr(e){return e.mode&1?se&2&&ft!==0?ft&-ft:tN.transition!==null?(lc===0&&(lc=nO()),lc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:uO(e.type)),e):1}function Sn(e,t,n,r){if(50<Pl)throw Pl=0,Cm=null,Error(W(185));Ds(e,n,r),(!(se&2)||e!==it)&&(e===it&&(!(se&2)&&(rd|=n),Ze===4&&Br(e,ft)),Rt(e,r),n===1&&se===0&&!(t.mode&1)&&(Ga=We()+500,Jf&&ui()))}function Rt(e,t){var n=e.callbackNode;tk(e,t);var r=bc(e,e===it?ft:0);if(r===0)n!==null&&_x(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_x(n),t===1)e.tag===0?eN(hb.bind(null,e)):jO(hb.bind(null,e)),Yk(function(){!(se&6)&&ui()}),n=null;else{switch(rO(r)){case 1:n=Ng;break;case 4:n=eO;break;case 16:n=xc;break;case 536870912:n=tO;break;default:n=xc}n=$$(n,x$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function x$(e,t){if(oc=-1,lc=0,se&6)throw Error(W(327));var n=e.callbackNode;if(Ra()&&e.callbackNode!==n)return null;var r=bc(e,e===it?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dc(e,r);else{t=r;var i=se;se|=2;var a=w$();(it!==e||ft!==t)&&(er=null,Ga=We()+500,Ri(e,t));do try{wN();break}catch(l){b$(e,l)}while(!0);Kg(),Ic.current=a,se=i,Ke!==null?t=0:(it=null,ft=0,t=Ze)}if(t!==0){if(t===2&&(i=im(e),i!==0&&(r=i,t=km(e,i))),t===1)throw n=Ql,Ri(e,0),Br(e,r),Rt(e,We()),n;if(t===6)Br(e,r);else{if(i=e.current.alternate,!(r&30)&&!xN(i)&&(t=Dc(e,r),t===2&&(a=im(e),a!==0&&(r=a,t=km(e,a))),t===1))throw n=Ql,Ri(e,0),Br(e,r),Rt(e,We()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:_i(e,At,er);break;case 3:if(Br(e,r),(r&130023424)===r&&(t=ly+500-We(),10<t)){if(bc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dm(_i.bind(null,e,At,er),t);break}_i(e,At,er);break;case 4:if(Br(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-_n(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yN(r/1960))-r,10<r){e.timeoutHandle=dm(_i.bind(null,e,At,er),r);break}_i(e,At,er);break;case 5:_i(e,At,er);break;default:throw Error(W(329))}}}return Rt(e,We()),e.callbackNode===n?x$.bind(null,e):null}function km(e,t){var n=$l;return e.current.memoizedState.isDehydrated&&(Ri(e,t).flags|=256),e=Dc(e,t),e!==2&&(t=At,At=n,t!==null&&Nm(t)),e}function Nm(e){At===null?At=e:At.push.apply(At,e)}function xN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!$n(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Br(e,t){for(t&=~oy,t&=~rd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(se&6)throw Error(W(327));Ra();var t=bc(e,0);if(!(t&1))return Rt(e,We()),null;var n=Dc(e,t);if(e.tag!==0&&n===2){var r=im(e);r!==0&&(t=r,n=km(e,r))}if(n===1)throw n=Ql,Ri(e,0),Br(e,t),Rt(e,We()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_i(e,At,er),Rt(e,We()),null}function sy(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(Ga=We()+500,Jf&&ui())}}function Vi(e){Hr!==null&&Hr.tag===0&&!(se&6)&&Ra();var t=se;se|=1;var n=un.transition,r=pe;try{if(un.transition=null,pe=1,e)return e()}finally{pe=r,un.transition=n,se=t,!(se&6)&&ui()}}function uy(){Ft=$a.current,Ae($a)}function Ri(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xk(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Hg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oc();break;case 3:Va(),Ae(Mt),Ae(yt),Zg();break;case 5:Qg(r);break;case 4:Va();break;case 13:Ae(Le);break;case 19:Ae(Le);break;case 10:Gg(r.type._context);break;case 22:case 23:uy()}n=n.return}if(it=e,Ke=e=Jr(e.current,null),ft=Ft=t,Ze=0,Ql=null,oy=rd=Wi=0,At=$l=null,Ti!==null){for(t=0;t<Ti.length;t++)if(n=Ti[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ti=null}return e}function b$(e,t){do{var n=Ke;try{if(Kg(),rc.current=Mc,Nc){for(var r=De.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nc=!1}if(Hi=0,nt=Ye=De=null,El=!1,ql=0,ay.current=null,n===null||n.return===null){Ze=1,Ql=t,Ke=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=ft,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=tb(o);if(p!==null){p.flags&=-257,nb(p,o,l,a,t),p.mode&1&&eb(a,u,t),t=p,s=u;var h=t.updateQueue;if(h===null){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}else{if(!(t&1)){eb(a,u,t),cy();break e}s=Error(W(426))}}else if(Me&&l.mode&1){var w=tb(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),nb(w,o,l,a,t),Wg(Ka(s,l));break e}}a=s=Ka(s,l),Ze!==4&&(Ze=2),$l===null?$l=[a]:$l.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=r$(a,s,t);qx(a,y);break e;case 1:l=s;var v=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Qr===null||!Qr.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var E=i$(a,l,t);qx(a,E);break e}}a=a.return}while(a!==null)}S$(n)}catch(_){t=_,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function w$(){var e=Ic.current;return Ic.current=Mc,e===null?Mc:e}function cy(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),it===null||!(Wi&268435455)&&!(rd&268435455)||Br(it,ft)}function Dc(e,t){var n=se;se|=2;var r=w$();(it!==e||ft!==t)&&(er=null,Ri(e,t));do try{bN();break}catch(i){b$(e,i)}while(!0);if(Kg(),se=n,Ic.current=r,Ke!==null)throw Error(W(261));return it=null,ft=0,Ze}function bN(){for(;Ke!==null;)_$(Ke)}function wN(){for(;Ke!==null&&!KC();)_$(Ke)}function _$(e){var t=O$(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?S$(e):Ke=t,ay.current=null}function S$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hN(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}else if(n=pN(n,t,Ft),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function _i(e,t,n){var r=pe,i=un.transition;try{un.transition=null,pe=1,_N(e,t,n,r)}finally{un.transition=i,pe=r}return null}function _N(e,t,n,r){do Ra();while(Hr!==null);if(se&6)throw Error(W(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(nk(e,a),e===it&&(Ke=it=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tu||(Tu=!0,$$(xc,function(){return Ra(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=un.transition,un.transition=null;var o=pe;pe=1;var l=se;se|=4,ay.current=null,vN(e,n),g$(n,e),Uk(cm),wc=!!um,cm=um=null,e.current=n,gN(n),GC(),se=l,pe=o,un.transition=a}else e.current=n;if(Tu&&(Tu=!1,Hr=e,Lc=i),a=e.pendingLanes,a===0&&(Qr=null),YC(n.stateNode),Rt(e,We()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Rc)throw Rc=!1,e=Am,Am=null,e;return Lc&1&&e.tag!==0&&Ra(),a=e.pendingLanes,a&1?e===Cm?Pl++:(Pl=0,Cm=e):Pl=0,ui(),null}function Ra(){if(Hr!==null){var e=rO(Lc),t=un.transition,n=pe;try{if(un.transition=null,pe=16>e?16:e,Hr===null)var r=!1;else{if(e=Hr,Hr=null,Lc=0,se&6)throw Error(W(331));var i=se;for(se|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(q=u;q!==null;){var c=q;switch(c.tag){case 0:case 11:case 15:Ol(8,c,a)}var f=c.child;if(f!==null)f.return=c,q=f;else for(;q!==null;){c=q;var d=c.sibling,p=c.return;if(h$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var h=a.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,q=o;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ol(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,q=y;break e}q=a.return}}var v=e.current;for(q=v;q!==null;){o=q;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,q=x;else e:for(o=v;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:nd(9,l)}}catch(_){ze(l,l.return,_)}if(l===o){q=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,q=E;break e}q=l.return}}if(se=i,ui(),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(qf,e)}catch{}r=!0}return r}finally{pe=n,un.transition=t}}return!1}function mb(e,t,n){t=Ka(n,t),t=r$(e,t,1),e=Yr(e,t,1),t=Ot(),e!==null&&(Ds(e,1,t),Rt(e,t))}function ze(e,t,n){if(e.tag===3)mb(e,e,n);else for(;t!==null;){if(t.tag===3){mb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qr===null||!Qr.has(r))){e=Ka(n,e),e=i$(t,e,1),t=Yr(t,e,1),e=Ot(),t!==null&&(Ds(t,1,e),Rt(t,e));break}}t=t.return}}function SN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,it===e&&(ft&n)===n&&(Ze===4||Ze===3&&(ft&130023424)===ft&&500>We()-ly?Ri(e,0):oy|=n),Rt(e,t)}function E$(e,t){t===0&&(e.mode&1?(t=xu,xu<<=1,!(xu&130023424)&&(xu=4194304)):t=1);var n=Ot();e=yr(e,t),e!==null&&(Ds(e,t,n),Rt(e,n))}function EN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E$(e,n)}function ON(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),E$(e,n)}var O$;O$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,dN(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Me&&t.flags&1048576&&TO(t,jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ac(e,t),e=t.pendingProps;var i=Ua(t,yt.current);Ia(t,n),i=ey(null,t,r,e,i,n);var a=ty();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(a=!0,$c(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xg(t),i.updater=td,t.stateNode=i,i._reactInternals=t,xm(t,r,e,n),t=_m(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&Ug(t),xt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ac(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=PN(r),e=yn(r,e),i){case 0:t=wm(null,t,r,e,n);break e;case 1:t=ab(null,t,r,e,n);break e;case 11:t=rb(null,t,r,e,n);break e;case 14:t=ib(null,t,r,yn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),wm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),ab(e,t,r,i,n);case 3:e:{if(s$(t),e===null)throw Error(W(387));r=t.pendingProps,a=t.memoizedState,i=a.element,IO(e,t),Cc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ka(Error(W(423)),t),t=ob(e,t,r,n,i);break e}else if(r!==i){i=Ka(Error(W(424)),t),t=ob(e,t,r,n,i);break e}else for(zt=Xr(t.stateNode.containerInfo.firstChild),Ut=t,Me=!0,bn=null,n=NO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),r===i){t=xr(e,t,n);break e}xt(e,t,r,n)}t=t.child}return t;case 5:return RO(t),e===null&&vm(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,fm(r,i)?o=null:a!==null&&fm(r,a)&&(t.flags|=32),l$(e,t),xt(e,t,o,n),t.child;case 6:return e===null&&vm(t),null;case 13:return u$(e,t,n);case 4:return Yg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(t,null,r,n):xt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),rb(e,t,r,i,n);case 7:return xt(e,t,t.pendingProps,n),t.child;case 8:return xt(e,t,t.pendingProps.children,n),t.child;case 12:return xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,_e(Tc,r._currentValue),r._currentValue=o,a!==null)if($n(a.value,o)){if(a.children===i.children&&!Mt.current){t=xr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ur(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),gm(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),gm(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}xt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ia(t,n),i=cn(i),r=r(i),t.flags|=1,xt(e,t,r,n),t.child;case 14:return r=t.type,i=yn(r,t.pendingProps),i=yn(r.type,i),ib(e,t,r,i,n);case 15:return a$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),ac(e,t),t.tag=1,It(r)?(e=!0,$c(t)):e=!1,Ia(t,n),n$(t,r,i),xm(t,r,i,n),_m(null,t,r,!0,e,n);case 19:return c$(e,t,n);case 22:return o$(e,t,n)}throw Error(W(156,t.tag))};function $$(e,t){return JE(e,t)}function $N(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,n,r){return new $N(e,t,n,r)}function fy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PN(e){if(typeof e=="function")return fy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ag)return 11;if(e===Cg)return 14}return 2}function Jr(e,t){var n=e.alternate;return n===null?(n=an(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sc(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")fy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case va:return Li(n.children,i,a,t);case Tg:o=8,i|=8;break;case Hh:return e=an(12,n,t,i|2),e.elementType=Hh,e.lanes=a,e;case Wh:return e=an(13,n,t,i),e.elementType=Wh,e.lanes=a,e;case Vh:return e=an(19,n,t,i),e.elementType=Vh,e.lanes=a,e;case RE:return id(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ME:o=10;break e;case IE:o=9;break e;case Ag:o=11;break e;case Cg:o=14;break e;case Ir:o=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=an(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Li(e,t,n,r){return e=an(7,e,r,t),e.lanes=n,e}function id(e,t,n,r){return e=an(22,e,r,t),e.elementType=RE,e.lanes=n,e.stateNode={isHidden:!1},e}function Gp(e,t,n){return e=an(6,e,null,t),e.lanes=n,e}function qp(e,t,n){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jN(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jp(0),this.expirationTimes=jp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dy(e,t,n,r,i,a,o,l,s){return e=new jN(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=an(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xg(a),e}function TN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ma,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function P$(e){if(!e)return ai;e=e._reactInternals;e:{if(na(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(It(n))return PO(e,n,t)}return t}function j$(e,t,n,r,i,a,o,l,s){return e=dy(n,r,!0,e,i,a,o,l,s),e.context=P$(null),n=e.current,r=Ot(),i=Zr(n),a=ur(r,i),a.callback=t??null,Yr(n,a,i),e.current.lanes=i,Ds(e,i,r),Rt(e,r),e}function ad(e,t,n,r){var i=t.current,a=Ot(),o=Zr(i);return n=P$(n),t.context===null?t.context=n:t.pendingContext=n,t=ur(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yr(i,t,o),e!==null&&(Sn(e,i,o,a),nc(e,i,o)),o}function Fc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function py(e,t){vb(e,t),(e=e.alternate)&&vb(e,t)}function AN(){return null}var T$=typeof reportError=="function"?reportError:function(e){console.error(e)};function hy(e){this._internalRoot=e}od.prototype.render=hy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));ad(e,t,null,null)};od.prototype.unmount=hy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vi(function(){ad(null,e,null,null)}),t[gr]=null}};function od(e){this._internalRoot=e}od.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fr.length&&t!==0&&t<Fr[n].priority;n++);Fr.splice(n,0,e),n===0&&sO(e)}};function my(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gb(){}function CN(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Fc(o);a.call(u)}}var o=j$(t,r,e,0,null,!1,!1,"",gb);return e._reactRootContainer=o,e[gr]=o.current,Hl(e.nodeType===8?e.parentNode:e),Vi(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Fc(s);l.call(u)}}var s=dy(e,0,!1,null,null,!1,!1,"",gb);return e._reactRootContainer=s,e[gr]=s.current,Hl(e.nodeType===8?e.parentNode:e),Vi(function(){ad(t,s,n,r)}),s}function sd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var s=Fc(o);l.call(s)}}ad(t,o,e,i)}else o=CN(n,t,e,i,r);return Fc(o)}iO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pl(t.pendingLanes);n!==0&&(Mg(t,n|1),Rt(t,We()),!(se&6)&&(Ga=We()+500,ui()))}break;case 13:Vi(function(){var r=yr(e,1);if(r!==null){var i=Ot();Sn(r,e,1,i)}}),py(e,1)}};Ig=function(e){if(e.tag===13){var t=yr(e,134217728);if(t!==null){var n=Ot();Sn(t,e,134217728,n)}py(e,134217728)}};aO=function(e){if(e.tag===13){var t=Zr(e),n=yr(e,t);if(n!==null){var r=Ot();Sn(n,e,t,r)}py(e,t)}};oO=function(){return pe};lO=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};tm=function(e,t,n){switch(t){case"input":if(qh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zf(r);if(!i)throw Error(W(90));DE(r),qh(r,i)}}}break;case"textarea":BE(e,n);break;case"select":t=n.value,t!=null&&Ca(e,!!n.multiple,t,!1)}};GE=sy;qE=Vi;var kN={usingClientEntryPoint:!1,Events:[Bs,ba,Zf,VE,KE,sy]},Jo={findFiberByHostInstance:ji,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},NN={bundleType:Jo.bundleType,version:Jo.version,rendererPackageName:Jo.rendererPackageName,rendererConfig:Jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QE(e),e===null?null:e.stateNode},findFiberByHostInstance:Jo.findFiberByHostInstance||AN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{qf=Au.inject(NN),Fn=Au}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kN;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!my(t))throw Error(W(200));return TN(e,t,null,n)};Kt.createRoot=function(e,t){if(!my(e))throw Error(W(299));var n=!1,r="",i=T$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dy(e,1,!1,null,null,n,!1,r,i),e[gr]=t.current,Hl(e.nodeType===8?e.parentNode:e),new hy(t)};Kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=QE(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Vi(e)};Kt.hydrate=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!my(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=T$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=j$(t,null,e,1,n??null,i,!1,a,o),e[gr]=t.current,Hl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new od(t)};Kt.render=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!ld(e))throw Error(W(40));return e._reactRootContainer?(Vi(function(){sd(null,null,e,!1,function(){e._reactRootContainer=null,e[gr]=null})}),!0):!1};Kt.unstable_batchedUpdates=sy;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return sd(e,t,n,!1,r)};Kt.version="18.3.1-next-f1338f8080-20240426";function A$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A$)}catch(e){console.error(e)}}A$(),AE.exports=Kt;var Ht=AE.exports,yb=Ht;zh.createRoot=yb.createRoot,zh.hydrateRoot=yb.hydrateRoot;var vy={};Object.defineProperty(vy,"__esModule",{value:!0});vy.parse=BN;vy.serialize=zN;const MN=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,IN=/^[\u0021-\u003A\u003C-\u007E]*$/,RN=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,LN=/^[\u0020-\u003A\u003D-\u007E]*$/,DN=Object.prototype.toString,FN=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function BN(e,t){const n=new FN,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||UN;let a=0;do{const o=e.indexOf("=",a);if(o===-1)break;const l=e.indexOf(";",a),s=l===-1?r:l;if(o>s){a=e.lastIndexOf(";",o-1)+1;continue}const u=xb(e,a,o),c=bb(e,o,u),f=e.slice(u,c);if(n[f]===void 0){let d=xb(e,o+1,s),p=bb(e,s,d);const h=i(e.slice(d,p));n[f]=h}a=s+1}while(a<r);return n}function xb(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function bb(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function zN(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!MN.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!IN.test(i))throw new TypeError(`argument val is invalid: ${t}`);let a=e+"="+i;if(!n)return a;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);a+="; Max-Age="+n.maxAge}if(n.domain){if(!RN.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);a+="; Domain="+n.domain}if(n.path){if(!LN.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);a+="; Path="+n.path}if(n.expires){if(!HN(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);a+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.partitioned&&(a+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return a}function UN(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function HN(e){return DN.call(e)==="[object Date]"}/**
|
57
|
+
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Vp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uN=typeof WeakMap=="function"?WeakMap:Map;function r$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rc||(Rc=!0,Am=r),bm(e,t)},n}function i$(e,t,n){n=ur(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){bm(e,t),typeof r!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function eb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=SN.bind(null,e,t,n),t.then(e,e))}function tb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ur(-1,1),t.tag=2,Qr(n,t,1))),n.lanes|=1),e)}var cN=jr.ReactCurrentOwner,Ct=!1;function xt(e,t,n,r){t.child=e===null?NO(t,null,n,r):Va(t,e.child,n,r)}function rb(e,t,n,r,i){n=n.render;var a=t.ref;return Ra(t,i),r=ey(e,t,n,r,a,i),n=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&n&&Ug(t),t.flags|=1,xt(e,t,r,i),t.child)}function ib(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!fy(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a$(e,t,a,r,i)):(e=uc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(o,r)&&e.ref===t.ref)return xr(e,t,i)}return t.flags|=1,e=ei(a,r),e.ref=t.ref,e.return=t,t.child=e}function a$(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Wl(a,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,xr(e,t,i)}return wm(e,t,n,r,i)}function o$(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Pa,Ft),Ft|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(Pa,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,_e(Pa,Ft),Ft|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,_e(Pa,Ft),Ft|=r;return xt(e,t,i,n),t.child}function l$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wm(e,t,n,r,i){var a=It(n)?Ui:yt.current;return a=Ha(t,a),Ra(t,i),n=ey(e,t,n,r,a,i),r=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&r&&Ug(t),t.flags|=1,xt(e,t,n,i),t.child)}function ab(e,t,n,r,i){if(It(n)){var a=!0;$c(t)}else a=!1;if(Ra(t,i),t.stateNode===null)oc(e,t),n$(t,n,r),xm(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=It(n)?Ui:yt.current,u=Ha(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Jx(t,o,r,u),Lr=!1;var d=t.memoizedState;o.state=d,Cc(t,r,o,i),s=t.memoizedState,l!==r||d!==s||Mt.current||Lr?(typeof c=="function"&&(ym(t,n,c,r),s=t.memoizedState),(l=Lr||Zx(t,n,l,r,d,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,IO(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yn(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=cn(s):(s=It(n)?Ui:yt.current,s=Ha(t,s));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&Jx(t,o,r,s),Lr=!1,d=t.memoizedState,o.state=d,Cc(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||Mt.current||Lr?(typeof p=="function"&&(ym(t,n,p,r),h=t.memoizedState),(u=Lr||Zx(t,n,u,r,d,h,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _m(e,t,n,r,a,i)}function _m(e,t,n,r,i,a){l$(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wx(t,n,!1),xr(e,t,a);r=t.stateNode,cN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Va(t,e.child,null,a),t.child=Va(t,null,l,a)):xt(e,t,l,a),t.memoizedState=r.state,i&&Wx(t,n,!0),t.child}function s$(e){var t=e.stateNode;t.pendingContext?Hx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hx(e,t.context,!1),Yg(e,t.containerInfo)}function ob(e,t,n,r,i){return Wa(),Wg(i),t.flags|=256,xt(e,t,n,r),t.child}var Sm={dehydrated:null,treeContext:null,retryLane:0};function Em(e){return{baseLanes:e,cachePool:null,transitions:null}}function u$(e,t,n){var r=t.pendingProps,i=Le.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Le,i&1),e===null)return vm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=id(o,r,0,null),e=Di(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Em(n),t.memoizedState=Sm,e):iy(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return fN(e,t,o,r,l,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ei(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=ei(l,a):(a=Di(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Em(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Sm,r}return a=e.child,e=a.sibling,r=ei(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function iy(e,t){return t=id({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tu(e,t,n,r){return r!==null&&Wg(r),Va(t,e.child,null,n),e=iy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fN(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=Vp(Error(W(422))),Tu(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=id({mode:"visible",children:r.children},i,0,null),a=Di(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Va(t,e.child,null,o),t.child.memoizedState=Em(o),t.memoizedState=Sm,a);if(!(t.mode&1))return Tu(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(W(419)),r=Vp(a,r,void 0),Tu(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ct||l){if(r=it,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,yr(e,i),Sn(r,e,i,-1))}return cy(),r=Vp(Error(W(421))),Tu(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=EN.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zt=Yr(i.nextSibling),Ut=t,Me=!0,bn=null,e!==null&&(en[tn++]=ar,en[tn++]=or,en[tn++]=Hi,ar=e.id,or=e.overflow,Hi=t),t=iy(t,r.children),t.flags|=4096,t)}function lb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gm(e.return,t,n)}function Kp(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function c$(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xt(e,t,r.children,n),r=Le.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lb(e,n,t);else if(e.tag===19)lb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kp(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kp(t,!0,n,null,a);break;case"together":Kp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dN(e,t,n){switch(t.tag){case 3:s$(t),Wa();break;case 5:RO(t);break;case 1:It(t.type)&&$c(t);break;case 4:Yg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Tc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?u$(e,t,n):(_e(Le,Le.current&1),e=xr(e,t,n),e!==null?e.sibling:null);_e(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,o$(e,t,n)}return xr(e,t,n)}var f$,Om,d$,p$;f$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Om=function(){};d$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ci(Bn.current);var a=null;switch(n){case"input":i=Gh(e,i),r=Gh(e,r),a=[];break;case"select":i=Be({},i,{value:void 0}),r=Be({},r,{value:void 0}),a=[];break;case"textarea":i=Yh(e,i),r=Yh(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ec)}Zh(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ll.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(a||(a=[]),a.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ll.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&$e("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};p$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Jo(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pN(e,t,n){var r=t.pendingProps;switch(Hg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return It(t.type)&&Oc(),ht(t),null;case 3:return r=t.stateNode,Ka(),Ae(Mt),Ae(yt),Zg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(Nm(bn),bn=null))),Om(e,t),ht(t),null;case 5:Qg(t);var i=Ci(Xl.current);if(n=t.type,e!==null&&t.stateNode!=null)d$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return ht(t),null}if(e=Ci(Bn.current),Pu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ln]=t,r[Gl]=a,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":vx(r,a),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},$e("invalid",r);break;case"textarea":yx(r,a),$e("invalid",r)}Zh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",""+l]):Ll.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$e("scroll",r)}switch(n){case"input":yu(r),gx(r,a,!0);break;case"textarea":yu(r),xx(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ec)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ln]=t,e[Gl]=r,f$(e,t,!1,!1),t.stateNode=e;e:{switch(o=Jh(n,r),n){case"dialog":$e("cancel",e),$e("close",e),i=r;break;case"iframe":case"object":case"embed":$e("load",e),i=r;break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],e);i=r;break;case"source":$e("error",e),i=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),i=r;break;case"details":$e("toggle",e),i=r;break;case"input":vx(e,r),i=Gh(e,r),$e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Be({},r,{value:void 0}),$e("invalid",e);break;case"textarea":yx(e,r),i=Yh(e,r),$e("invalid",e);break;default:i=r}Zh(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?WE(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&UE(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Dl(e,s):typeof s=="number"&&Dl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ll.hasOwnProperty(a)?s!=null&&a==="onScroll"&&$e("scroll",e):s!=null&&jg(e,a,s,o))}switch(n){case"input":yu(e),gx(e,r,!1);break;case"textarea":yu(e),xx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ai(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ka(e,!!r.multiple,a,!1):r.defaultValue!=null&&ka(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ec)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)p$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Ci(Xl.current),Ci(Bn.current),Pu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(a=r.nodeValue!==n)&&(e=Ut,e!==null))switch(e.tag){case 3:$u(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$u(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return ht(t),null;case 13:if(Ae(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&zt!==null&&t.mode&1&&!(t.flags&128))CO(),Wa(),t.flags|=98560,a=!1;else if(a=Pu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(W(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[Ln]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),a=!1}else bn!==null&&(Nm(bn),bn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Le.current&1?Ze===0&&(Ze=3):cy())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Ka(),Om(e,t),e===null&&Vl(t.stateNode.containerInfo),ht(t),null;case 10:return Gg(t.type._context),ht(t),null;case 17:return It(t.type)&&Oc(),ht(t),null;case 19:if(Ae(Le),a=t.memoizedState,a===null)return ht(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Jo(a,!1);else{if(Ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kc(e),o!==null){for(t.flags|=128,Jo(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Le,Le.current&1|2),t.child}e=e.sibling}a.tail!==null&&We()>qa&&(t.flags|=128,r=!0,Jo(a,!1),t.lanes=4194304)}else{if(!r)if(e=kc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Me)return ht(t),null}else 2*We()-a.renderingStartTime>qa&&n!==1073741824&&(t.flags|=128,r=!0,Jo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=We(),t.sibling=null,n=Le.current,_e(Le,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return uy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function hN(e,t){switch(Hg(t),t.tag){case 1:return It(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),Ae(Mt),Ae(yt),Zg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Ka(),null;case 10:return Gg(t.type._context),null;case 22:case 23:return uy(),null;case 24:return null;default:return null}}var Au=!1,mt=!1,mN=typeof WeakSet=="function"?WeakSet:Set,q=null;function $a(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function $m(e,t,n){try{n()}catch(r){ze(e,t,r)}}var sb=!1;function vN(e,t){if(um=wc,e=yO(),zg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==a||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===a&&++c===r&&(s=o),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cm={focusedElem:e,selectionRange:n},wc=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,w=h.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:yn(t.type,m),w);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=sb,sb=!1,h}function $l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&$m(t,n,a)}i=i.next}while(i!==r)}}function nd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function h$(e){var t=e.alternate;t!==null&&(e.alternate=null,h$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[Gl],delete t[pm],delete t[Zk],delete t[Jk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function m$(e){return e.tag===5||e.tag===3||e.tag===4}function ub(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ec));else if(r!==4&&(e=e.child,e!==null))for(jm(e,t,n),e=e.sibling;e!==null;)jm(e,t,n),e=e.sibling}function Tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tm(e,t,n),e=e.sibling;e!==null;)Tm(e,t,n),e=e.sibling}var st=null,xn=!1;function Ir(e,t,n){for(n=n.child;n!==null;)v$(e,t,n),n=n.sibling}function v$(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(qf,n)}catch{}switch(n.tag){case 5:mt||$a(n,t);case 6:var r=st,i=xn;st=null,Ir(e,t,n),st=r,xn=i,st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?Fp(e.parentNode,n):e.nodeType===1&&Fp(e,n),Ul(e)):Fp(st,n.stateNode));break;case 4:r=st,i=xn,st=n.stateNode.containerInfo,xn=!0,Ir(e,t,n),st=r,xn=i;break;case 0:case 11:case 14:case 15:if(!mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&$m(n,t,o),i=i.next}while(i!==r)}Ir(e,t,n);break;case 1:if(!mt&&($a(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Ir(e,t,n);break;case 21:Ir(e,t,n);break;case 22:n.mode&1?(mt=(r=mt)||n.memoizedState!==null,Ir(e,t,n),mt=r):Ir(e,t,n);break;default:Ir(e,t,n)}}function cb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mN),t.forEach(function(r){var i=ON.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:st=l.stateNode,xn=!1;break e;case 3:st=l.stateNode.containerInfo,xn=!0;break e;case 4:st=l.stateNode.containerInfo,xn=!0;break e}l=l.return}if(st===null)throw Error(W(160));v$(a,o,i),st=null,xn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g$(t,e),t=t.sibling}function g$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vn(t,e),Mn(e),r&4){try{$l(3,e,e.return),nd(3,e)}catch(m){ze(e,e.return,m)}try{$l(5,e,e.return)}catch(m){ze(e,e.return,m)}}break;case 1:vn(t,e),Mn(e),r&512&&n!==null&&$a(n,n.return);break;case 5:if(vn(t,e),Mn(e),r&512&&n!==null&&$a(n,n.return),e.flags&32){var i=e.stateNode;try{Dl(i,"")}catch(m){ze(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&FE(i,a),Jh(l,o);var u=Jh(l,a);for(o=0;o<s.length;o+=2){var c=s[o],f=s[o+1];c==="style"?WE(i,f):c==="dangerouslySetInnerHTML"?UE(i,f):c==="children"?Dl(i,f):jg(i,c,f,u)}switch(l){case"input":qh(i,a);break;case"textarea":BE(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?ka(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?ka(i,!!a.multiple,a.defaultValue,!0):ka(i,!!a.multiple,a.multiple?[]:"",!1))}i[Gl]=a}catch(m){ze(e,e.return,m)}}break;case 6:if(vn(t,e),Mn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){ze(e,e.return,m)}}break;case 3:if(vn(t,e),Mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(m){ze(e,e.return,m)}break;case 4:vn(t,e),Mn(e);break;case 13:vn(t,e),Mn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(ly=We())),r&4&&cb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(mt=(u=mt)||c,vn(t,e),mt=u):vn(t,e),Mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(q=e,c=e.child;c!==null;){for(f=q=c;q!==null;){switch(d=q,p=d.child,d.tag){case 0:case 11:case 14:case 15:$l(4,d,d.return);break;case 1:$a(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){ze(r,n,m)}}break;case 5:$a(d,d.return);break;case 22:if(d.memoizedState!==null){db(f);continue}}p!==null?(p.return=d,q=p):db(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=HE("display",o))}catch(m){ze(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){ze(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vn(t,e),Mn(e),r&4&&cb(e);break;case 21:break;default:vn(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m$(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Dl(i,""),r.flags&=-33);var a=ub(e);Tm(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=ub(e);jm(e,l,o);break;default:throw Error(W(161))}}catch(s){ze(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gN(e,t,n){q=e,y$(e)}function y$(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var i=q,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Au;if(!o){var l=i.alternate,s=l!==null&&l.memoizedState!==null||mt;l=Au;var u=mt;if(Au=o,(mt=s)&&!u)for(q=i;q!==null;)o=q,s=o.child,o.tag===22&&o.memoizedState!==null?pb(i):s!==null?(s.return=o,q=s):pb(i);for(;a!==null;)q=a,y$(a),a=a.sibling;q=i,Au=l,mt=u}fb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,q=a):fb(e)}}function fb(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mt||nd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Xx(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Xx(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ul(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}mt||t.flags&512&&Pm(t)}catch(d){ze(t,t.return,d)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function db(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function pb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nd(4,t)}catch(s){ze(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ze(t,i,s)}}var a=t.return;try{Pm(t)}catch(s){ze(t,a,s)}break;case 5:var o=t.return;try{Pm(t)}catch(s){ze(t,o,s)}}}catch(s){ze(t,t.return,s)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var yN=Math.ceil,Ic=jr.ReactCurrentDispatcher,ay=jr.ReactCurrentOwner,un=jr.ReactCurrentBatchConfig,se=0,it=null,Ke=null,ft=0,Ft=0,Pa=ci(0),Ze=0,Jl=null,Vi=0,rd=0,oy=0,Pl=null,At=null,ly=0,qa=1/0,er=null,Rc=!1,Am=null,Zr=null,Cu=!1,Wr=null,Lc=0,jl=0,Cm=null,lc=-1,sc=0;function Ot(){return se&6?We():lc!==-1?lc:lc=We()}function Jr(e){return e.mode&1?se&2&&ft!==0?ft&-ft:tN.transition!==null?(sc===0&&(sc=nO()),sc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:uO(e.type)),e):1}function Sn(e,t,n,r){if(50<jl)throw jl=0,Cm=null,Error(W(185));Bs(e,n,r),(!(se&2)||e!==it)&&(e===it&&(!(se&2)&&(rd|=n),Ze===4&&zr(e,ft)),Rt(e,r),n===1&&se===0&&!(t.mode&1)&&(qa=We()+500,Jf&&fi()))}function Rt(e,t){var n=e.callbackNode;tk(e,t);var r=bc(e,e===it?ft:0);if(r===0)n!==null&&_x(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_x(n),t===1)e.tag===0?eN(hb.bind(null,e)):jO(hb.bind(null,e)),Yk(function(){!(se&6)&&fi()}),n=null;else{switch(rO(r)){case 1:n=Ng;break;case 4:n=eO;break;case 16:n=xc;break;case 536870912:n=tO;break;default:n=xc}n=$$(n,x$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function x$(e,t){if(lc=-1,sc=0,se&6)throw Error(W(327));var n=e.callbackNode;if(La()&&e.callbackNode!==n)return null;var r=bc(e,e===it?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dc(e,r);else{t=r;var i=se;se|=2;var a=w$();(it!==e||ft!==t)&&(er=null,qa=We()+500,Li(e,t));do try{wN();break}catch(l){b$(e,l)}while(!0);Kg(),Ic.current=a,se=i,Ke!==null?t=0:(it=null,ft=0,t=Ze)}if(t!==0){if(t===2&&(i=im(e),i!==0&&(r=i,t=km(e,i))),t===1)throw n=Jl,Li(e,0),zr(e,r),Rt(e,We()),n;if(t===6)zr(e,r);else{if(i=e.current.alternate,!(r&30)&&!xN(i)&&(t=Dc(e,r),t===2&&(a=im(e),a!==0&&(r=a,t=km(e,a))),t===1))throw n=Jl,Li(e,0),zr(e,r),Rt(e,We()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Si(e,At,er);break;case 3:if(zr(e,r),(r&130023424)===r&&(t=ly+500-We(),10<t)){if(bc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dm(Si.bind(null,e,At,er),t);break}Si(e,At,er);break;case 4:if(zr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-_n(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yN(r/1960))-r,10<r){e.timeoutHandle=dm(Si.bind(null,e,At,er),r);break}Si(e,At,er);break;case 5:Si(e,At,er);break;default:throw Error(W(329))}}}return Rt(e,We()),e.callbackNode===n?x$.bind(null,e):null}function km(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(Li(e,t).flags|=256),e=Dc(e,t),e!==2&&(t=At,At=n,t!==null&&Nm(t)),e}function Nm(e){At===null?At=e:At.push.apply(At,e)}function xN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!$n(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zr(e,t){for(t&=~oy,t&=~rd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(se&6)throw Error(W(327));La();var t=bc(e,0);if(!(t&1))return Rt(e,We()),null;var n=Dc(e,t);if(e.tag!==0&&n===2){var r=im(e);r!==0&&(t=r,n=km(e,r))}if(n===1)throw n=Jl,Li(e,0),zr(e,t),Rt(e,We()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Si(e,At,er),Rt(e,We()),null}function sy(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(qa=We()+500,Jf&&fi())}}function Ki(e){Wr!==null&&Wr.tag===0&&!(se&6)&&La();var t=se;se|=1;var n=un.transition,r=pe;try{if(un.transition=null,pe=1,e)return e()}finally{pe=r,un.transition=n,se=t,!(se&6)&&fi()}}function uy(){Ft=Pa.current,Ae(Pa)}function Li(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xk(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Hg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oc();break;case 3:Ka(),Ae(Mt),Ae(yt),Zg();break;case 5:Qg(r);break;case 4:Ka();break;case 13:Ae(Le);break;case 19:Ae(Le);break;case 10:Gg(r.type._context);break;case 22:case 23:uy()}n=n.return}if(it=e,Ke=e=ei(e.current,null),ft=Ft=t,Ze=0,Jl=null,oy=rd=Vi=0,At=Pl=null,Ai!==null){for(t=0;t<Ai.length;t++)if(n=Ai[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ai=null}return e}function b$(e,t){do{var n=Ke;try{if(Kg(),ic.current=Mc,Nc){for(var r=De.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nc=!1}if(Wi=0,nt=Ye=De=null,Ol=!1,Yl=0,ay.current=null,n===null||n.return===null){Ze=1,Jl=t,Ke=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=ft,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=tb(o);if(p!==null){p.flags&=-257,nb(p,o,l,a,t),p.mode&1&&eb(a,u,t),t=p,s=u;var h=t.updateQueue;if(h===null){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}else{if(!(t&1)){eb(a,u,t),cy();break e}s=Error(W(426))}}else if(Me&&l.mode&1){var w=tb(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),nb(w,o,l,a,t),Wg(Ga(s,l));break e}}a=s=Ga(s,l),Ze!==4&&(Ze=2),Pl===null?Pl=[a]:Pl.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=r$(a,s,t);qx(a,y);break e;case 1:l=s;var g=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Zr===null||!Zr.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var E=i$(a,l,t);qx(a,E);break e}}a=a.return}while(a!==null)}S$(n)}catch(_){t=_,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function w$(){var e=Ic.current;return Ic.current=Mc,e===null?Mc:e}function cy(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),it===null||!(Vi&268435455)&&!(rd&268435455)||zr(it,ft)}function Dc(e,t){var n=se;se|=2;var r=w$();(it!==e||ft!==t)&&(er=null,Li(e,t));do try{bN();break}catch(i){b$(e,i)}while(!0);if(Kg(),se=n,Ic.current=r,Ke!==null)throw Error(W(261));return it=null,ft=0,Ze}function bN(){for(;Ke!==null;)_$(Ke)}function wN(){for(;Ke!==null&&!KC();)_$(Ke)}function _$(e){var t=O$(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?S$(e):Ke=t,ay.current=null}function S$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hN(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}else if(n=pN(n,t,Ft),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function Si(e,t,n){var r=pe,i=un.transition;try{un.transition=null,pe=1,_N(e,t,n,r)}finally{un.transition=i,pe=r}return null}function _N(e,t,n,r){do La();while(Wr!==null);if(se&6)throw Error(W(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(nk(e,a),e===it&&(Ke=it=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cu||(Cu=!0,$$(xc,function(){return La(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=un.transition,un.transition=null;var o=pe;pe=1;var l=se;se|=4,ay.current=null,vN(e,n),g$(n,e),Uk(cm),wc=!!um,cm=um=null,e.current=n,gN(n),GC(),se=l,pe=o,un.transition=a}else e.current=n;if(Cu&&(Cu=!1,Wr=e,Lc=i),a=e.pendingLanes,a===0&&(Zr=null),YC(n.stateNode),Rt(e,We()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Rc)throw Rc=!1,e=Am,Am=null,e;return Lc&1&&e.tag!==0&&La(),a=e.pendingLanes,a&1?e===Cm?jl++:(jl=0,Cm=e):jl=0,fi(),null}function La(){if(Wr!==null){var e=rO(Lc),t=un.transition,n=pe;try{if(un.transition=null,pe=16>e?16:e,Wr===null)var r=!1;else{if(e=Wr,Wr=null,Lc=0,se&6)throw Error(W(331));var i=se;for(se|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(q=u;q!==null;){var c=q;switch(c.tag){case 0:case 11:case 15:$l(8,c,a)}var f=c.child;if(f!==null)f.return=c,q=f;else for(;q!==null;){c=q;var d=c.sibling,p=c.return;if(h$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var h=a.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,q=o;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:$l(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,q=y;break e}q=a.return}}var g=e.current;for(q=g;q!==null;){o=q;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,q=x;else e:for(o=g;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:nd(9,l)}}catch(_){ze(l,l.return,_)}if(l===o){q=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,q=E;break e}q=l.return}}if(se=i,fi(),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(qf,e)}catch{}r=!0}return r}finally{pe=n,un.transition=t}}return!1}function mb(e,t,n){t=Ga(n,t),t=r$(e,t,1),e=Qr(e,t,1),t=Ot(),e!==null&&(Bs(e,1,t),Rt(e,t))}function ze(e,t,n){if(e.tag===3)mb(e,e,n);else for(;t!==null;){if(t.tag===3){mb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zr===null||!Zr.has(r))){e=Ga(n,e),e=i$(t,e,1),t=Qr(t,e,1),e=Ot(),t!==null&&(Bs(t,1,e),Rt(t,e));break}}t=t.return}}function SN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,it===e&&(ft&n)===n&&(Ze===4||Ze===3&&(ft&130023424)===ft&&500>We()-ly?Li(e,0):oy|=n),Rt(e,t)}function E$(e,t){t===0&&(e.mode&1?(t=wu,wu<<=1,!(wu&130023424)&&(wu=4194304)):t=1);var n=Ot();e=yr(e,t),e!==null&&(Bs(e,t,n),Rt(e,n))}function EN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E$(e,n)}function ON(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),E$(e,n)}var O$;O$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,dN(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Me&&t.flags&1048576&&TO(t,jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oc(e,t),e=t.pendingProps;var i=Ha(t,yt.current);Ra(t,n),i=ey(null,t,r,e,i,n);var a=ty();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(a=!0,$c(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xg(t),i.updater=td,t.stateNode=i,i._reactInternals=t,xm(t,r,e,n),t=_m(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&Ug(t),xt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=PN(r),e=yn(r,e),i){case 0:t=wm(null,t,r,e,n);break e;case 1:t=ab(null,t,r,e,n);break e;case 11:t=rb(null,t,r,e,n);break e;case 14:t=ib(null,t,r,yn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),wm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),ab(e,t,r,i,n);case 3:e:{if(s$(t),e===null)throw Error(W(387));r=t.pendingProps,a=t.memoizedState,i=a.element,IO(e,t),Cc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ga(Error(W(423)),t),t=ob(e,t,r,n,i);break e}else if(r!==i){i=Ga(Error(W(424)),t),t=ob(e,t,r,n,i);break e}else for(zt=Yr(t.stateNode.containerInfo.firstChild),Ut=t,Me=!0,bn=null,n=NO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=xr(e,t,n);break e}xt(e,t,r,n)}t=t.child}return t;case 5:return RO(t),e===null&&vm(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,fm(r,i)?o=null:a!==null&&fm(r,a)&&(t.flags|=32),l$(e,t),xt(e,t,o,n),t.child;case 6:return e===null&&vm(t),null;case 13:return u$(e,t,n);case 4:return Yg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):xt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),rb(e,t,r,i,n);case 7:return xt(e,t,t.pendingProps,n),t.child;case 8:return xt(e,t,t.pendingProps.children,n),t.child;case 12:return xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,_e(Tc,r._currentValue),r._currentValue=o,a!==null)if($n(a.value,o)){if(a.children===i.children&&!Mt.current){t=xr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ur(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),gm(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),gm(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}xt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ra(t,n),i=cn(i),r=r(i),t.flags|=1,xt(e,t,r,n),t.child;case 14:return r=t.type,i=yn(r,t.pendingProps),i=yn(r.type,i),ib(e,t,r,i,n);case 15:return a$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),oc(e,t),t.tag=1,It(r)?(e=!0,$c(t)):e=!1,Ra(t,n),n$(t,r,i),xm(t,r,i,n),_m(null,t,r,!0,e,n);case 19:return c$(e,t,n);case 22:return o$(e,t,n)}throw Error(W(156,t.tag))};function $$(e,t){return JE(e,t)}function $N(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,n,r){return new $N(e,t,n,r)}function fy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PN(e){if(typeof e=="function")return fy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ag)return 11;if(e===Cg)return 14}return 2}function ei(e,t){var n=e.alternate;return n===null?(n=an(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uc(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")fy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ga:return Di(n.children,i,a,t);case Tg:o=8,i|=8;break;case Hh:return e=an(12,n,t,i|2),e.elementType=Hh,e.lanes=a,e;case Wh:return e=an(13,n,t,i),e.elementType=Wh,e.lanes=a,e;case Vh:return e=an(19,n,t,i),e.elementType=Vh,e.lanes=a,e;case RE:return id(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ME:o=10;break e;case IE:o=9;break e;case Ag:o=11;break e;case Cg:o=14;break e;case Rr:o=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=an(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Di(e,t,n,r){return e=an(7,e,r,t),e.lanes=n,e}function id(e,t,n,r){return e=an(22,e,r,t),e.elementType=RE,e.lanes=n,e.stateNode={isHidden:!1},e}function Gp(e,t,n){return e=an(6,e,null,t),e.lanes=n,e}function qp(e,t,n){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jN(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jp(0),this.expirationTimes=jp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dy(e,t,n,r,i,a,o,l,s){return e=new jN(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=an(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xg(a),e}function TN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:va,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function P$(e){if(!e)return oi;e=e._reactInternals;e:{if(na(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(It(n))return PO(e,n,t)}return t}function j$(e,t,n,r,i,a,o,l,s){return e=dy(n,r,!0,e,i,a,o,l,s),e.context=P$(null),n=e.current,r=Ot(),i=Jr(n),a=ur(r,i),a.callback=t??null,Qr(n,a,i),e.current.lanes=i,Bs(e,i,r),Rt(e,r),e}function ad(e,t,n,r){var i=t.current,a=Ot(),o=Jr(i);return n=P$(n),t.context===null?t.context=n:t.pendingContext=n,t=ur(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qr(i,t,o),e!==null&&(Sn(e,i,o,a),rc(e,i,o)),o}function Fc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function py(e,t){vb(e,t),(e=e.alternate)&&vb(e,t)}function AN(){return null}var T$=typeof reportError=="function"?reportError:function(e){console.error(e)};function hy(e){this._internalRoot=e}od.prototype.render=hy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));ad(e,t,null,null)};od.prototype.unmount=hy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ki(function(){ad(null,e,null,null)}),t[gr]=null}};function od(e){this._internalRoot=e}od.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Br.length&&t!==0&&t<Br[n].priority;n++);Br.splice(n,0,e),n===0&&sO(e)}};function my(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gb(){}function CN(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Fc(o);a.call(u)}}var o=j$(t,r,e,0,null,!1,!1,"",gb);return e._reactRootContainer=o,e[gr]=o.current,Vl(e.nodeType===8?e.parentNode:e),Ki(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Fc(s);l.call(u)}}var s=dy(e,0,!1,null,null,!1,!1,"",gb);return e._reactRootContainer=s,e[gr]=s.current,Vl(e.nodeType===8?e.parentNode:e),Ki(function(){ad(t,s,n,r)}),s}function sd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var s=Fc(o);l.call(s)}}ad(t,o,e,i)}else o=CN(n,t,e,i,r);return Fc(o)}iO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hl(t.pendingLanes);n!==0&&(Mg(t,n|1),Rt(t,We()),!(se&6)&&(qa=We()+500,fi()))}break;case 13:Ki(function(){var r=yr(e,1);if(r!==null){var i=Ot();Sn(r,e,1,i)}}),py(e,1)}};Ig=function(e){if(e.tag===13){var t=yr(e,134217728);if(t!==null){var n=Ot();Sn(t,e,134217728,n)}py(e,134217728)}};aO=function(e){if(e.tag===13){var t=Jr(e),n=yr(e,t);if(n!==null){var r=Ot();Sn(n,e,t,r)}py(e,t)}};oO=function(){return pe};lO=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};tm=function(e,t,n){switch(t){case"input":if(qh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zf(r);if(!i)throw Error(W(90));DE(r),qh(r,i)}}}break;case"textarea":BE(e,n);break;case"select":t=n.value,t!=null&&ka(e,!!n.multiple,t,!1)}};GE=sy;qE=Ki;var kN={usingClientEntryPoint:!1,Events:[Us,wa,Zf,VE,KE,sy]},el={findFiberByHostInstance:Ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},NN={bundleType:el.bundleType,version:el.version,rendererPackageName:el.rendererPackageName,rendererConfig:el.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QE(e),e===null?null:e.stateNode},findFiberByHostInstance:el.findFiberByHostInstance||AN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{qf=ku.inject(NN),Fn=ku}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kN;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!my(t))throw Error(W(200));return TN(e,t,null,n)};Kt.createRoot=function(e,t){if(!my(e))throw Error(W(299));var n=!1,r="",i=T$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dy(e,1,!1,null,null,n,!1,r,i),e[gr]=t.current,Vl(e.nodeType===8?e.parentNode:e),new hy(t)};Kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=QE(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Ki(e)};Kt.hydrate=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!my(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=T$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=j$(t,null,e,1,n??null,i,!1,a,o),e[gr]=t.current,Vl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new od(t)};Kt.render=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!ld(e))throw Error(W(40));return e._reactRootContainer?(Ki(function(){sd(null,null,e,!1,function(){e._reactRootContainer=null,e[gr]=null})}),!0):!1};Kt.unstable_batchedUpdates=sy;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return sd(e,t,n,!1,r)};Kt.version="18.3.1-next-f1338f8080-20240426";function A$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A$)}catch(e){console.error(e)}}A$(),AE.exports=Kt;var Ht=AE.exports,yb=Ht;zh.createRoot=yb.createRoot,zh.hydrateRoot=yb.hydrateRoot;var vy={};Object.defineProperty(vy,"__esModule",{value:!0});vy.parse=BN;vy.serialize=zN;const MN=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,IN=/^[\u0021-\u003A\u003C-\u007E]*$/,RN=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,LN=/^[\u0020-\u003A\u003D-\u007E]*$/,DN=Object.prototype.toString,FN=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function BN(e,t){const n=new FN,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||UN;let a=0;do{const o=e.indexOf("=",a);if(o===-1)break;const l=e.indexOf(";",a),s=l===-1?r:l;if(o>s){a=e.lastIndexOf(";",o-1)+1;continue}const u=xb(e,a,o),c=bb(e,o,u),f=e.slice(u,c);if(n[f]===void 0){let d=xb(e,o+1,s),p=bb(e,s,d);const h=i(e.slice(d,p));n[f]=h}a=s+1}while(a<r);return n}function xb(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function bb(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function zN(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!MN.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!IN.test(i))throw new TypeError(`argument val is invalid: ${t}`);let a=e+"="+i;if(!n)return a;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);a+="; Max-Age="+n.maxAge}if(n.domain){if(!RN.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);a+="; Domain="+n.domain}if(n.path){if(!LN.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);a+="; Path="+n.path}if(n.expires){if(!HN(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);a+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.partitioned&&(a+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return a}function UN(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function HN(e){return DN.call(e)==="[object Date]"}/**
|
58
58
|
* react-router v7.0.2
|
59
59
|
*
|
60
60
|
* Copyright (c) Remix Software Inc.
|
@@ -63,9 +63,9 @@ Error generating stack: `+a.message+`
|
|
63
63
|
* LICENSE.md file in the root directory of this source tree.
|
64
64
|
*
|
65
65
|
* @license MIT
|
66
|
-
*/var wb="popstate";function WN(e={}){function t(i,a){let{pathname:o="/",search:l="",hash:s=""}=ra(i.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Mm("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let o=i.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let s=i.location.href,u=s.indexOf("#");l=u===-1?s:s.slice(0,u)}return l+"#"+(typeof a=="string"?a:Zl(a))}function r(i,a){Pn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return KN(t,n,r,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VN(){return Math.random().toString(36).substring(2,10)}function _b(e,t){return{usr:e.state,key:e.key,idx:t}}function Mm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ra(t):t,state:n,key:t&&t.key||r||VN()}}function Zl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ra(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function KN(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function f(){l="POP";let w=c(),y=w==null?null:w-u;u=w,s&&s({action:l,location:m.location,delta:y})}function d(w,y){l="PUSH";let v=Mm(m.location,w,y);n&&n(v,w),u=c()+1;let x=_b(v,u),E=m.createHref(v);try{o.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(E)}a&&s&&s({action:l,location:m.location,delta:1})}function p(w,y){l="REPLACE";let v=Mm(m.location,w,y);n&&n(v,w),u=c();let x=_b(v,u),E=m.createHref(v);o.replaceState(x,"",E),a&&s&&s({action:l,location:m.location,delta:0})}function h(w){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof w=="string"?w:Zl(w);return v=v.replace(/ $/,"%20"),Fe(y,`No window.location.(origin|href) available to create URL for href: ${v}`),new URL(v,y)}let m={get action(){return l},get location(){return e(i,o)},listen(w){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(wb,f),s=w,()=>{i.removeEventListener(wb,f),s=null}},createHref(w){return t(i,w)},createURL:h,encodeLocation(w){let y=h(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:p,go(w){return o.go(w)}};return m}function C$(e,t,n="/"){return GN(e,t,n,!1)}function GN(e,t,n,r){let i=typeof t=="string"?ra(t):t,a=oi(i.pathname||"/",n);if(a==null)return null;let o=k$(e);qN(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=aM(a);l=rM(o[s],u,r)}return l}function k$(e,t=[],n=[],r=""){let i=(a,o,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&(Fe(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length));let u=cr([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Fe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k$(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:tM(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let s of N$(a.path))i(a,o,s)}),t}function N$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=N$(r.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function qN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var XN=/^:[\w-]+$/,YN=3,QN=2,ZN=1,JN=10,eM=-2,Sb=e=>e==="*";function tM(e,t){let n=e.split("/"),r=n.length;return n.some(Sb)&&(r+=eM),t&&(r+=QN),n.filter(i=>!Sb(i)).reduce((i,a)=>i+(XN.test(a)?YN:a===""?ZN:JN),r)}function nM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function rM(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:cr([a,f.pathname]),pathnameBase:uM(cr([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=cr([a,f.pathnameBase]))}return o}function Bc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=iM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let h=l[d]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const p=l[d];return f&&!p?u[c]=void 0:u[c]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function iM(e,t=!1,n=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function aM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pn(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function oi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function oM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ra(e):e;return{pathname:n?n.startsWith("/")?n:lM(n,t):t,search:cM(r),hash:fM(i)}}function lM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function M$(e){let t=sM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function I$(e,t,n,r=!1){let i;typeof e=="string"?i=ra(e):(i={...e},Fe(!i.pathname||!i.pathname.includes("?"),Xp("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),Xp("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),Xp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=oM(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var cr=e=>e.join("/").replace(/\/\/+/g,"/"),uM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var R$=["POST","PUT","PATCH","DELETE"];new Set(R$);var pM=["GET",...R$];new Set(pM);var $o=b.createContext(null);$o.displayName="DataRouter";var ud=b.createContext(null);ud.displayName="DataRouterState";var L$=b.createContext({isTransitioning:!1});L$.displayName="ViewTransition";var hM=b.createContext(new Map);hM.displayName="Fetchers";var mM=b.createContext(null);mM.displayName="Await";var Yn=b.createContext(null);Yn.displayName="Navigation";var Us=b.createContext(null);Us.displayName="Location";var Tn=b.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var gy=b.createContext(null);gy.displayName="RouteError";function vM(e,{relative:t}={}){Fe(Hs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Yn),{hash:i,pathname:a,search:o}=Ws(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:cr([n,a])),r.createHref({pathname:l,search:o,hash:i})}function Hs(){return b.useContext(Us)!=null}function jr(){return Fe(Hs(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Us).location}var D$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F$(e){b.useContext(Yn).static||b.useLayoutEffect(e)}function gM(){let{isDataRoute:e}=b.useContext(Tn);return e?NM():yM()}function yM(){Fe(Hs(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext($o),{basename:t,navigator:n}=b.useContext(Yn),{matches:r}=b.useContext(Tn),{pathname:i}=jr(),a=JSON.stringify(M$(r)),o=b.useRef(!1);return F$(()=>{o.current=!0}),b.useCallback((s,u={})=>{if(Pn(o.current,D$),!o.current)return;if(typeof s=="number"){n.go(s);return}let c=I$(s,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,a,i,e])}var xM=b.createContext(null);function bM(e){let t=b.useContext(Tn).outlet;return t&&b.createElement(xM.Provider,{value:e},t)}function wM(){let{matches:e}=b.useContext(Tn),t=e[e.length-1];return t?t.params:{}}function Ws(e,{relative:t}={}){let{matches:n}=b.useContext(Tn),{pathname:r}=jr(),i=JSON.stringify(M$(n));return b.useMemo(()=>I$(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _M(e,t){return B$(e,t)}function B$(e,t,n,r){var y;Fe(Hs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(Yn),{matches:a}=b.useContext(Tn),o=a[a.length-1],l=o?o.params:{},s=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let v=c&&c.path||"";z$(s,!c||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
66
|
+
*/var wb="popstate";function WN(e={}){function t(i,a){let{pathname:o="/",search:l="",hash:s=""}=ra(i.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Mm("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let o=i.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let s=i.location.href,u=s.indexOf("#");l=u===-1?s:s.slice(0,u)}return l+"#"+(typeof a=="string"?a:es(a))}function r(i,a){Pn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return KN(t,n,r,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VN(){return Math.random().toString(36).substring(2,10)}function _b(e,t){return{usr:e.state,key:e.key,idx:t}}function Mm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ra(t):t,state:n,key:t&&t.key||r||VN()}}function es({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ra(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function KN(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function f(){l="POP";let w=c(),y=w==null?null:w-u;u=w,s&&s({action:l,location:m.location,delta:y})}function d(w,y){l="PUSH";let g=Mm(m.location,w,y);n&&n(g,w),u=c()+1;let x=_b(g,u),E=m.createHref(g);try{o.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(E)}a&&s&&s({action:l,location:m.location,delta:1})}function p(w,y){l="REPLACE";let g=Mm(m.location,w,y);n&&n(g,w),u=c();let x=_b(g,u),E=m.createHref(g);o.replaceState(x,"",E),a&&s&&s({action:l,location:m.location,delta:0})}function h(w){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof w=="string"?w:es(w);return g=g.replace(/ $/,"%20"),Fe(y,`No window.location.(origin|href) available to create URL for href: ${g}`),new URL(g,y)}let m={get action(){return l},get location(){return e(i,o)},listen(w){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(wb,f),s=w,()=>{i.removeEventListener(wb,f),s=null}},createHref(w){return t(i,w)},createURL:h,encodeLocation(w){let y=h(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:p,go(w){return o.go(w)}};return m}function C$(e,t,n="/"){return GN(e,t,n,!1)}function GN(e,t,n,r){let i=typeof t=="string"?ra(t):t,a=li(i.pathname||"/",n);if(a==null)return null;let o=k$(e);qN(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=aM(a);l=rM(o[s],u,r)}return l}function k$(e,t=[],n=[],r=""){let i=(a,o,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&(Fe(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length));let u=cr([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Fe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k$(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:tM(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let s of N$(a.path))i(a,o,s)}),t}function N$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=N$(r.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function qN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var XN=/^:[\w-]+$/,YN=3,QN=2,ZN=1,JN=10,eM=-2,Sb=e=>e==="*";function tM(e,t){let n=e.split("/"),r=n.length;return n.some(Sb)&&(r+=eM),t&&(r+=QN),n.filter(i=>!Sb(i)).reduce((i,a)=>i+(XN.test(a)?YN:a===""?ZN:JN),r)}function nM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function rM(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:cr([a,f.pathname]),pathnameBase:uM(cr([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=cr([a,f.pathnameBase]))}return o}function Bc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=iM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let h=l[d]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const p=l[d];return f&&!p?u[c]=void 0:u[c]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function iM(e,t=!1,n=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function aM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pn(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function li(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function oM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ra(e):e;return{pathname:n?n.startsWith("/")?n:lM(n,t):t,search:cM(r),hash:fM(i)}}function lM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function M$(e){let t=sM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function I$(e,t,n,r=!1){let i;typeof e=="string"?i=ra(e):(i={...e},Fe(!i.pathname||!i.pathname.includes("?"),Xp("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),Xp("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),Xp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=oM(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var cr=e=>e.join("/").replace(/\/\/+/g,"/"),uM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var R$=["POST","PUT","PATCH","DELETE"];new Set(R$);var pM=["GET",...R$];new Set(pM);var Po=b.createContext(null);Po.displayName="DataRouter";var ud=b.createContext(null);ud.displayName="DataRouterState";var L$=b.createContext({isTransitioning:!1});L$.displayName="ViewTransition";var hM=b.createContext(new Map);hM.displayName="Fetchers";var mM=b.createContext(null);mM.displayName="Await";var Yn=b.createContext(null);Yn.displayName="Navigation";var Ws=b.createContext(null);Ws.displayName="Location";var Tn=b.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var gy=b.createContext(null);gy.displayName="RouteError";function vM(e,{relative:t}={}){Fe(Vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Yn),{hash:i,pathname:a,search:o}=Ks(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:cr([n,a])),r.createHref({pathname:l,search:o,hash:i})}function Vs(){return b.useContext(Ws)!=null}function Tr(){return Fe(Vs(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Ws).location}var D$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F$(e){b.useContext(Yn).static||b.useLayoutEffect(e)}function gM(){let{isDataRoute:e}=b.useContext(Tn);return e?NM():yM()}function yM(){Fe(Vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Po),{basename:t,navigator:n}=b.useContext(Yn),{matches:r}=b.useContext(Tn),{pathname:i}=Tr(),a=JSON.stringify(M$(r)),o=b.useRef(!1);return F$(()=>{o.current=!0}),b.useCallback((s,u={})=>{if(Pn(o.current,D$),!o.current)return;if(typeof s=="number"){n.go(s);return}let c=I$(s,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,a,i,e])}var xM=b.createContext(null);function bM(e){let t=b.useContext(Tn).outlet;return t&&b.createElement(xM.Provider,{value:e},t)}function wM(){let{matches:e}=b.useContext(Tn),t=e[e.length-1];return t?t.params:{}}function Ks(e,{relative:t}={}){let{matches:n}=b.useContext(Tn),{pathname:r}=Tr(),i=JSON.stringify(M$(n));return b.useMemo(()=>I$(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _M(e,t){return B$(e,t)}function B$(e,t,n,r){var y;Fe(Vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=b.useContext(Yn),{matches:a}=b.useContext(Tn),o=a[a.length-1],l=o?o.params:{},s=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let g=c&&c.path||"";z$(s,!c||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
67
67
|
|
68
|
-
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=jr(),d;if(t){let v=typeof t=="string"?ra(t):t;Fe(u==="/"||((y=v.pathname)==null?void 0:y.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${v.pathname}" was given in the \`location\` prop.`),d=v}else d=f;let p=d.pathname||"/",h=p;if(u!=="/"){let v=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=C$(e,{pathname:h});Pn(c||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Pn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=PM(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:cr([u,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:cr([u,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return t&&w?b.createElement(Us.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...d},navigationType:"POP"}},w):w}function SM(){let e=kM(),t=dM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:a},"ErrorBoundary")," or"," ",b.createElement("code",{style:a},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,o)}var EM=b.createElement(SM,null),OM=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?b.createElement(Tn.Provider,{value:this.props.routeContext},b.createElement(gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $M({routeContext:e,match:t,children:n}){let r=b.useContext($o);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Tn.Provider,{value:e},n)}function PM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);Fe(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,s+1))}let o=!1,l=-1;if(n)for(let s=0;s<i.length;s++){let u=i[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:f}=n,d=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||d){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((s,u,c)=>{let f,d=!1,p=null,h=null;n&&(f=a&&u.route.id?a[u.route.id]:void 0,p=u.route.errorElement||EM,o&&(l<0&&c===0?(z$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):l===c&&(d=!0,h=u.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),w=()=>{let y;return f?y=p:d?y=h:u.route.Component?y=b.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=s,b.createElement($M,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?b.createElement(OM,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:w(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):w()},null)}function yy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jM(e){let t=b.useContext($o);return Fe(t,yy(e)),t}function TM(e){let t=b.useContext(ud);return Fe(t,yy(e)),t}function AM(e){let t=b.useContext(Tn);return Fe(t,yy(e)),t}function xy(e){let t=AM(e),n=t.matches[t.matches.length-1];return Fe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function CM(){return xy("useRouteId")}function kM(){var r;let e=b.useContext(gy),t=TM("useRouteError"),n=xy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function NM(){let{router:e}=jM("useNavigate"),t=xy("useNavigate"),n=b.useRef(!1);return F$(()=>{n.current=!0}),b.useCallback(async(i,a={})=>{Pn(n.current,D$),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var Eb={};function z$(e,t,n){!t&&!Eb[e]&&(Eb[e]=!0,Pn(!1,n))}b.memo(MM);function MM({routes:e,future:t,state:n}){return B$(e,void 0,n,t)}function IM(e){return bM(e.context)}function ml(e){Fe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function RM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){Fe(!Hs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=ra(n));let{pathname:s="/",search:u="",hash:c="",state:f=null,key:d="default"}=n,p=b.useMemo(()=>{let h=oi(s,o);return h==null?null:{location:{pathname:h,search:u,hash:c,state:f,key:d},navigationType:r}},[o,s,u,c,f,d,r]);return Pn(p!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:b.createElement(Yn.Provider,{value:l},b.createElement(Us.Provider,{children:t,value:p}))}function LM({children:e,location:t}){return _M(Im(e),t)}function Im(e,t=[]){let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let a=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Im(r.props.children,a));return}Fe(r.type===ml,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Im(r.props.children,a)),n.push(o)}),n}var uc="get",cc="application/x-www-form-urlencoded";function cd(e){return e!=null&&typeof e.tagName=="string"}function DM(e){return cd(e)&&e.tagName.toLowerCase()==="button"}function FM(e){return cd(e)&&e.tagName.toLowerCase()==="form"}function BM(e){return cd(e)&&e.tagName.toLowerCase()==="input"}function zM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UM(e,t){return e.button===0&&(!t||t==="_self")&&!zM(e)}var Cu=null;function HM(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var WM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yp(e){return e!=null&&!WM.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${cc}"`),null):e}function VM(e,t){let n,r,i,a,o;if(FM(e)){let l=e.getAttribute("action");r=l?oi(l,t):null,n=e.getAttribute("method")||uc,i=Yp(e.getAttribute("enctype"))||cc,a=new FormData(e)}else if(DM(e)||BM(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?oi(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||uc,i=Yp(e.getAttribute("formenctype"))||Yp(l.getAttribute("enctype"))||cc,a=new FormData(l,e),!HM()){let{name:u,type:c,value:f}=e;if(c==="image"){let d=u?`${u}.`:"";a.append(`${d}x`,"0"),a.append(`${d}y`,"0")}else u&&a.append(u,f)}}else{if(cd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=uc,r=null,i=cc,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function by(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function KM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GM(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 qM(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await KM(a,n);return o.links?o.links():[]}return[]}));return ZM(r.flat(1).filter(GM).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ob(e,t,n,r,i,a){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return a==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):a==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function XM(e,t){return YM(e.map(n=>{let r=t.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function YM(e){return[...new Set(e)]}function QM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ZM(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(QM(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function JM(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function eI(){let e=b.useContext($o);return by(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tI(){let e=b.useContext(ud);return by(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wy=b.createContext(void 0);wy.displayName="FrameworkContext";function U$(){let e=b.useContext(wy);return by(e,"You must render this element inside a <HydratedRouter> element"),e}function nI(e,t){let n=b.useContext(wy),[r,i]=b.useState(!1),[a,o]=b.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=b.useRef(null);b.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=y=>{y.forEach(v=>{o(v.isIntersecting)})},w=new IntersectionObserver(m,{threshold:.5});return d.current&&w.observe(d.current),()=>{w.disconnect()}}},[e]),b.useEffect(()=>{if(r){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,d,{}]:[a,d,{onFocus:el(l,p),onBlur:el(s,h),onMouseEnter:el(u,p),onMouseLeave:el(c,h),onTouchStart:el(f,p)}]:[!1,d,{}]}function el(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rI({page:e,...t}){let{router:n}=eI(),r=b.useMemo(()=>C$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(aI,{page:e,matches:r,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function iI(e){let{manifest:t,routeModules:n}=U$(),[r,i]=b.useState([]);return b.useEffect(()=>{let a=!1;return qM(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function aI({page:e,matches:t,...n}){let r=jr(),{manifest:i,routeModules:a}=U$(),{loaderData:o,matches:l}=tI(),s=b.useMemo(()=>Ob(e,t,l,i,r,"data"),[e,t,l,i,r]),u=b.useMemo(()=>Ob(e,t,l,i,r,"assets"),[e,t,l,i,r]),c=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,h=!1;if(t.forEach(w=>{var v;let y=i.routes[w.route.id];!y||!y.hasLoader||(!s.some(x=>x.route.id===w.route.id)&&w.route.id in o&&((v=a[w.route.id])!=null&&v.shouldRevalidate)||y.hasClientLoader?h=!0:p.add(w.route.id))}),p.size===0)return[];let m=JM(e);return h&&p.size>0&&m.searchParams.set("_routes",t.filter(w=>p.has(w.route.id)).map(w=>w.route.id).join(",")),[m.pathname+m.search]},[o,r,i,s,t,e,a]),f=b.useMemo(()=>XM(u,i),[u,i]),d=iI(u);return b.createElement(b.Fragment,null,c.map(p=>b.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),f.map(p=>b.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),d.map(({key:p,link:h})=>b.createElement("link",{key:p,...h})))}function oI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var H$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H$&&(window.__reactRouterVersion="7.0.2")}catch{}function lI({basename:e,children:t,window:n}){let r=b.useRef();r.current==null&&(r.current=WN({window:n,v5Compat:!0}));let i=r.current,[a,o]=b.useState({action:i.action,location:i.location}),l=b.useCallback(s=>{b.startTransition(()=>o(s))},[o]);return b.useLayoutEffect(()=>i.listen(l),[i,l]),b.createElement(RM,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var W$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,br=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:f,...d},p){let{basename:h}=b.useContext(Yn),m=typeof u=="string"&&W$.test(u),w,y=!1;if(typeof u=="string"&&m&&(w=u,H$))try{let T=new URL(window.location.href),C=u.startsWith("//")?new URL(T.protocol+u):new URL(u),A=oi(C.pathname,h);C.origin===T.origin&&A!=null?u=A+C.search+C.hash:y=!0}catch{Pn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=vM(u,{relative:i}),[x,E,_]=nI(r,d),S=fI(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f});function O(T){t&&t(T),T.defaultPrevented||S(T)}let $=b.createElement("a",{...d,..._,href:w||v,onClick:y||a?t:O,ref:oI(p,E),target:s,"data-discover":!m&&n==="render"?"true":void 0});return x&&!m?b.createElement(b.Fragment,null,$,b.createElement(rI,{page:v})):$});br.displayName="Link";var sI=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:s,...u},c){let f=Ws(o,{relative:u.relative}),d=jr(),p=b.useContext(ud),{navigator:h,basename:m}=b.useContext(Yn),w=p!=null&&vI(f)&&l===!0,y=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,v=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&m&&(x=oi(x,m)||x);const E=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let _=v===y||!i&&v.startsWith(y)&&v.charAt(E)==="/",S=x!=null&&(x===y||!i&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:_,isPending:S,isTransitioning:w},$=_?t:void 0,T;typeof r=="function"?T=r(O):T=[r,_?"active":null,S?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(O):a;return b.createElement(br,{...u,"aria-current":$,className:T,ref:c,style:C,to:o,viewTransition:l},typeof s=="function"?s(O):s)});sI.displayName="NavLink";var uI=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=uc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,...d},p)=>{let h=hI(),m=mI(l,{relative:u}),w=o.toLowerCase()==="get"?"get":"post",y=typeof l=="string"&&W$.test(l),v=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let E=x.nativeEvent.submitter,_=(E==null?void 0:E.getAttribute("formmethod"))||o;h(E||x.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:i,state:a,relative:u,preventScrollReset:c,viewTransition:f})};return b.createElement("form",{ref:p,method:w,action:m,onSubmit:r?s:v,...d,"data-discover":!y&&e==="render"?"true":void 0})});uI.displayName="Form";function cI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V$(e){let t=b.useContext($o);return Fe(t,cI(e)),t}function fI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=gM(),s=jr(),u=Ws(e,{relative:a});return b.useCallback(c=>{if(UM(c,t)){c.preventDefault();let f=n!==void 0?n:Zl(s)===Zl(u);l(e,{replace:f,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[s,l,u,n,r,t,e,i,a,o])}var dI=0,pI=()=>`__${String(++dI)}__`;function hI(){let{router:e}=V$("useSubmit"),{basename:t}=b.useContext(Yn),n=CM();return b.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:s,body:u}=VM(r,t);if(i.navigate===!1){let c=i.fetcherKey||pI();await e.fetch(c,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function mI(e,{relative:t}={}){let{basename:n}=b.useContext(Yn),r=b.useContext(Tn);Fe(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Ws(e||".",{relative:t})},o=jr();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let c=l.toString();a.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:cr([n,a.pathname])),Zl(a)}function vI(e,t={}){let n=b.useContext(L$);Fe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=V$("useViewTransitionState"),i=Ws(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Bc(i.pathname,o)!=null||Bc(i.pathname,a)!=null}new TextEncoder;const gI={features:{"Assignment Mapping":{description:"Various strategies for mapping features to code elements including directory-based assignments, glob patterns, and file annotation processing.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_mappers/directory_assignment.rb","lib/feature_map/private/assignment_mappers/feature_definition_assignment.rb","lib/feature_map/private/assignment_mappers/feature_globs.rb","lib/feature_map/private/assignment_mappers/file_annotations.rb","lib/feature_map/private/glob_cache.rb","spec/lib/feature_map/private/assignment_mappers/directory_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_definition_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_globs_spec.rb","spec/lib/feature_map/private/assignment_mappers/file_annotations_spec.rb"],teams:["Core Library"]},metrics:{abc_size:541.4,cyclomatic_complexity:38,lines_of_code:604,todo_locations:{},complexity_ratio:15.894736842105264,encapsulation_ratio:.014900662251655629},test_coverage:{lines:348,hits:346,misses:2,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:31.818181818181817,percent_of_max:42,score:15.894736842105264},encapsulation:{percentile:68.18181818181819,percent_of_max:39,score:.014900662251655629},feature_size:{percentile:40.90909090909091,percent_of_max:24,score:604},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.5909090909090908},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:6.818181818181818},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:93.4090909090909}}},"Code Features":{description:"Plugin system for defining code features and their relationships with extensible interfaces and identity management.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/code_features.rb","lib/feature_map/code_features/plugin.rb","lib/feature_map/code_features/plugins/identity.rb","lib/feature_map/private/feature_plugins/assignment.rb","spec/lib/feature_map/code_features/plugin_spec.rb","spec/lib/feature_map/code_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:416.79,cyclomatic_complexity:13,lines_of_code:373,todo_locations:{},complexity_ratio:28.692307692307693,encapsulation_ratio:.0160857908847185},test_coverage:{lines:236,hits:233,misses:3,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:59.09090909090909,percent_of_max:76,score:28.692307692307693},encapsulation:{percentile:77.27272727272727,percent_of_max:42,score:.0160857908847185},feature_size:{percentile:13.636363636363637,percent_of_max:15,score:373},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.9545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:7.727272727272727},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:95.68181818181819}}},"Core Library":{description:"The foundation of the feature_map library including main configuration interfaces, constants, and base functionality that orchestrates the overall system.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map.rb","lib/feature_map/cli.rb","lib/feature_map/commit.rb","lib/feature_map/configuration.rb","lib/feature_map/constants.rb","lib/feature_map/mapper.rb","lib/feature_map/output_color.rb","lib/feature_map/private.rb","lib/feature_map/validator.rb","spec/lib/feature_map/cli_spec.rb","spec/lib/feature_map/commit_spec.rb","spec/lib/feature_map_spec.rb","spec/spec_helper.rb"],teams:["Core Library"]},metrics:{abc_size:1528.37,cyclomatic_complexity:83,lines_of_code:1596,todo_locations:{"lib/feature_map.rb:37":"what if there are multiple features? Should we respond with an error instead of the first match?"},complexity_ratio:19.228915662650603,encapsulation_ratio:.008145363408521303},test_coverage:{lines:930,hits:883,misses:47,coverage_ratio:95},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:50,percent_of_max:51,score:19.228915662650603},encapsulation:{percentile:13.636363636363637,percent_of_max:21,score:.008145363408521303},feature_size:{percentile:86.36363636363636,percent_of_max:64,score:1596},test_coverage:{percentile:31.818181818181817,percent_of_max:95,score:95},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:1.3636363636363635},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Documentation Content":{description:"Written documentation in Markdown format covering usage instructions, configuration, public interfaces, and examples for users.",dashboard_link:null,documentation_link:null,assignments:{files:["readme/_layouts/default.html","readme/artifacts/assignments.md","readme/artifacts/docs.md","readme/artifacts/metrics.md","readme/artifacts/overview.md","readme/artifacts/test-coverage.md","readme/artifacts/test-pyramid.md","readme/continuous-integration/pr-tags.md","readme/continuous-integration/release-notification.md","readme/continuous-integration/validation.md","readme/documentation-site/overview.md","readme/getting-started/configuration.md","readme/getting-started/feature-assignment.md","readme/getting-started/feature-definition.md","readme/getting-started/inline-execution.md","readme/getting-started/with-code-ownership.md","readme/index.md","readme/public-interface/apply-assignments.md","readme/public-interface/docs.md","readme/public-interface/for-backtrace.md","readme/public-interface/for-class.md","readme/public-interface/for-feature.md","readme/public-interface/for-file.md","readme/public-interface/overview.md","readme/public-interface/test-coverage.md","readme/public-interface/test-pyramid.md","readme/public-interface/validate.md"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:709,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.0380818053596615},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:95.45454545454545,percent_of_max:100,score:.0380818053596615},feature_size:{percentile:59.09090909090909,percent_of_max:28,score:709},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!0,health_score:10},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:25.454545454545453}}},"Documentation UI":{description:"Frontend React components that render the visualization of features, metrics, and code relationships in an interactive web interface.",dashboard_link:null,documentation_link:null,assignments:{files:["docs/src/App.jsx","docs/src/components/CircularProgress.jsx","docs/src/components/DigestHealthScoreCard.jsx","docs/src/components/DigestTestCoverageCard.jsx","docs/src/components/DigestTestPyramidCard.jsx","docs/src/components/DigestTestPyramidDetails.jsx","docs/src/components/FeatureCard.jsx","docs/src/components/FeatureDetails.jsx","docs/src/components/FeatureSizeDataCard.jsx","docs/src/components/FeatureTestPyramidCard.jsx","docs/src/components/FeaturesTable.jsx","docs/src/components/FeaturesTreemap.jsx","docs/src/components/FileExplorer.jsx","docs/src/components/HealthScoreDataCard.jsx","docs/src/components/Layout.jsx","docs/src/components/LayoutSidebar.jsx","docs/src/components/MetricCard.jsx","docs/src/components/SearchBox.jsx","docs/src/components/TestCoverageDataCard.jsx","docs/src/components/Tooltip.jsx","docs/src/components/ui/Dropdown.jsx","docs/src/components/ui/Switcher.jsx","docs/src/components/ui/index.js","docs/src/main.jsx","docs/src/pages/Dashboard.jsx","docs/src/pages/Digest.jsx","docs/src/pages/Feature.jsx","docs/src/scripts/app.js","docs/src/styles/app.css","docs/src/utils/config.js","docs/src/utils/feature-helpers.jsx","docs/src/utils/health-score.js"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:2496,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.01282051282051282},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:50,percent_of_max:34,score:.01282051282051282},feature_size:{percentile:95.45454545454545,percent_of_max:100,score:2496},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:20.454545454545453}}},"Extension System":{description:"Framework for loading extensions, building documentation sites, and generating release notifications to extend core functionality.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/documentation_site.rb","lib/feature_map/private/extension_loader.rb","lib/feature_map/private/release_notification_builder.rb","spec/lib/feature_map/private/documentation_site_spec.rb","spec/lib/feature_map/private/extension_loader_spec.rb","spec/lib/feature_map/private/release_notification_builder_spec.rb"],teams:["Core Library"]},metrics:{abc_size:376.97,cyclomatic_complexity:15,lines_of_code:566,todo_locations:{"spec/lib/feature_map/private/extension_loader_spec.rb:3":"This was failing without cache busting. It seems like the code_ownership gem has some"},complexity_ratio:37.733333333333334,encapsulation_ratio:.01060070671378092},test_coverage:{lines:189,hits:188,misses:1,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:95.45454545454545,percent_of_max:100,score:37.733333333333334},encapsulation:{percentile:40.90909090909091,percent_of_max:28,score:.01060070671378092},feature_size:{percentile:31.818181818181817,percent_of_max:23,score:566},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:4.090909090909091},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:94.0909090909091}}},"Feature Assignment":{description:"Core functionality that handles the assignment of features to files and code elements with storage and application mechanisms.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_applicator.rb","lib/feature_map/private/assignments_file.rb","lib/feature_map/private/feature_assigner.rb","spec/lib/feature_map/private/assignment_applicator_spec.rb","spec/lib/feature_map/private/assignments_file_spec.rb","spec/lib/feature_map/private/feature_assigner_spec.rb"],teams:["Core Library"]},metrics:{abc_size:710.48,cyclomatic_complexity:33,lines_of_code:1070,todo_locations:{},complexity_ratio:32.42424242424242,encapsulation_ratio:.005607476635514018},test_coverage:{lines:380,hits:379,misses:1,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:68.18181818181819,percent_of_max:86,score:32.42424242424242},encapsulation:{percentile:4.545454545454546,percent_of_max:15,score:.005607476635514018},feature_size:{percentile:68.18181818181819,percent_of_max:43,score:1070},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.409090909090909},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:.4545454545454546},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Metrics Calculation":{description:"Analytical components that calculate code health metrics including complexity, size, and percentile-based measurements across features.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/cyclomatic_complexity_calculator.rb","lib/feature_map/private/feature_metrics_calculator.rb","lib/feature_map/private/health_calculator.rb","lib/feature_map/private/lines_of_code_calculator.rb","lib/feature_map/private/percentile_metrics_calculator.rb","spec/lib/feature_map/private/cyclomatic_complexity_calculator_spec.rb","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb","spec/lib/feature_map/private/health_calculator_spec.rb","spec/lib/feature_map/private/lines_of_code_calculator_spec.rb","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb"],teams:["Core Library"]},metrics:{abc_size:1360.32,cyclomatic_complexity:35,lines_of_code:1203,todo_locations:{"spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:99":"Fix this method","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:107":"Refactor later","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:108":"Add error handling","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:116":"First todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:117":"Second todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:118":"Third todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:120":"Fourth todo","spec/lib/feature_map/private/health_calculator_spec.rb:105":"count - inverse percentile is used for calculation","spec/lib/feature_map/private/health_calculator_spec.rb:109":"count (inverted: 100-70 = 30)","spec/lib/feature_map/private/health_calculator_spec.rb:110":"s (inverted: 100-80 = 20, below 95 threshold)","spec/lib/feature_map/private/health_calculator_spec.rb:143":"count formula (inverse):","spec/lib/feature_map/private/health_calculator_spec.rb:186":"count - inverted, but still above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:187":"count, we need the inverse to be above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:256":"count below threshold","spec/lib/feature_map/private/health_calculator_spec.rb:277":"count gets partial points (score is inverted, so 80% of points)","spec/lib/feature_map/private/health_calculator_spec.rb:278":"_count_component']['health_score']).to be_within(0.1).of(12) # (100-20)% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:286":"_count = 12 # 80% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:316":"s","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb:265":"_count_for' do"},complexity_ratio:34.371428571428574,encapsulation_ratio:.00831255195344971},test_coverage:{lines:575,hits:573,misses:2,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:86.36363636363636,percent_of_max:91,score:34.371428571428574},encapsulation:{percentile:22.727272727272727,percent_of_max:22,score:.00831255195344971},feature_size:{percentile:77.27272727272727,percent_of_max:48,score:1203},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:86.36363636363636,percent_of_max:76,score:19},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:2.2727272727272725},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:3.5999999999999996},overall:80.87272727272727}}},"Metrics Storage":{description:"Persistence and retrieval mechanisms for metrics data with support for base metrics and additional/custom metrics.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/additional_metrics_file.rb","lib/feature_map/private/metrics_file.rb","spec/lib/feature_map/private/additional_metrics_file_spec.rb","spec/lib/feature_map/private/metrics_file_spec.rb"],teams:["Core Library"]},metrics:{abc_size:235.98000000000002,cyclomatic_complexity:12,lines_of_code:400,todo_locations:{},complexity_ratio:33.333333333333336,encapsulation_ratio:.01},test_coverage:{lines:135,hits:135,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:77.27272727272727,percent_of_max:88,score:33.333333333333336},encapsulation:{percentile:31.818181818181817,percent_of_max:26,score:.01},feature_size:{percentile:22.727272727272727,percent_of_max:16,score:400},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.8636363636363633},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:3.1818181818181817},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:92.04545454545455}}},"Testing Tools":{description:"Components for analyzing test coverage, maintaining a test pyramid, and integrating with testing libraries like SimpleCov and CodeCov.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/code_cov.rb","lib/feature_map/private/simple_cov_resultsets.rb","lib/feature_map/private/test_coverage_file.rb","lib/feature_map/private/test_pyramid_file.rb","lib/feature_map/private/todo_inspector.rb","spec/lib/feature_map/private/code_cov_spec.rb","spec/lib/feature_map/private/test_coverage_file_spec.rb","spec/lib/feature_map/private/test_pyramid_file_spec.rb","spec/lib/feature_map/private/todo_inspector_spec.rb"],teams:["Core Library"]},metrics:{abc_size:643.16,cyclomatic_complexity:40,lines_of_code:694,todo_locations:{"lib/feature_map/private/code_cov.rb:46":"Move these values to config.","lib/feature_map/private/todo_inspector.rb:16":"?\\s* # TODO with optional colon with whitespace","lib/feature_map/private/todo_inspector.rb:17":"content","lib/feature_map/private/todo_inspector.rb:34":'s["#{@file_path}:#{index + 1}"] = match[:content].strip',"spec/lib/feature_map/private/todo_inspector_spec.rb:14":"Fix this method","spec/lib/feature_map/private/todo_inspector_spec.rb:18":"Make this better","spec/lib/feature_map/private/todo_inspector_spec.rb:32":"Update API endpoint","spec/lib/feature_map/private/todo_inspector_spec.rb:34":"Fix error handling","spec/lib/feature_map/private/todo_inspector_spec.rb:49":"Implement caching","spec/lib/feature_map/private/todo_inspector_spec.rb:53":"Another todo here","spec/lib/feature_map/private/todo_inspector_spec.rb:61":"here'","spec/lib/feature_map/private/todo_inspector_spec.rb:67":"Add responsive styles","spec/lib/feature_map/private/todo_inspector_spec.rb:69":"Fix accessibility","spec/lib/feature_map/private/todo_inspector_spec.rb:99":"First todo","spec/lib/feature_map/private/todo_inspector_spec.rb:100":"Second todo","spec/lib/feature_map/private/todo_inspector_spec.rb:101":"Third todo","spec/lib/feature_map/private/todo_inspector_spec.rb:103":"Fourth todo","spec/lib/feature_map/private/todo_inspector_spec.rb:110":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:111":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:112":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:113":"'","spec/lib/feature_map/private/todo_inspector_spec.rb:138":"fix this')","spec/lib/feature_map/private/todo_inspector_spec.rb:142":`s).to include("#{path}:1" => 'fix this')`,"spec/lib/feature_map/private/todo_inspector_spec.rb:146":"spacing test ')","spec/lib/feature_map/private/todo_inspector_spec.rb:150":`s).to include("#{path}:1" => 'spacing test')`},complexity_ratio:17.35,encapsulation_ratio:.012968299711815562},test_coverage:{lines:349,hits:349,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:40.90909090909091,percent_of_max:46,score:17.35},encapsulation:{percentile:59.09090909090909,percent_of_max:34,score:.012968299711815562},feature_size:{percentile:50,percent_of_max:28,score:694},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:95.45454545454545,percent_of_max:100,score:25},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.0454545454545454},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5.909090909090909},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:0},overall:77.95454545454545}}},Validation:{description:"Rules and checks that ensure code adheres to feature mapping standards by validating feature assignments and detecting issues.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/validations/features_up_to_date.rb","lib/feature_map/private/validations/files_have_features.rb","lib/feature_map/private/validations/files_have_unique_features.rb","spec/lib/feature_map/private/validations/files_have_features_spec.rb","spec/lib/feature_map/private/validations/files_have_unique_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:228.63,cyclomatic_complexity:20,lines_of_code:298,todo_locations:{},complexity_ratio:14.9,encapsulation_ratio:.016778523489932886},test_coverage:{lines:163,hits:145,misses:18,coverage_ratio:89},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:22.727272727272727,percent_of_max:39,score:14.9},encapsulation:{percentile:86.36363636363636,percent_of_max:44,score:.016778523489932886},feature_size:{percentile:4.545454545454546,percent_of_max:12,score:298},test_coverage:{percentile:22.727272727272727,percent_of_max:89,score:89},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:62.300000000000004},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.1363636363636362},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:8.636363636363637},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:87.07272727272728}}}},environment:{git_ref:"main"},project:{assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}}},yI={assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},xI={...gI,project:yI,environment:{git_ref:"main"}},ci=window.FEATURE_MAP_CONFIG||xI;/**
|
68
|
+
Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=Tr(),d;if(t){let g=typeof t=="string"?ra(t):t;Fe(u==="/"||((y=g.pathname)==null?void 0:y.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${g.pathname}" was given in the \`location\` prop.`),d=g}else d=f;let p=d.pathname||"/",h=p;if(u!=="/"){let g=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=C$(e,{pathname:h});Pn(c||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Pn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=PM(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:cr([u,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:cr([u,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,n,r);return t&&w?b.createElement(Ws.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...d},navigationType:"POP"}},w):w}function SM(){let e=kM(),t=dM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:a},"ErrorBoundary")," or"," ",b.createElement("code",{style:a},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,o)}var EM=b.createElement(SM,null),OM=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?b.createElement(Tn.Provider,{value:this.props.routeContext},b.createElement(gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $M({routeContext:e,match:t,children:n}){let r=b.useContext(Po);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Tn.Provider,{value:e},n)}function PM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);Fe(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,s+1))}let o=!1,l=-1;if(n)for(let s=0;s<i.length;s++){let u=i[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:f}=n,d=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||d){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((s,u,c)=>{let f,d=!1,p=null,h=null;n&&(f=a&&u.route.id?a[u.route.id]:void 0,p=u.route.errorElement||EM,o&&(l<0&&c===0?(z$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):l===c&&(d=!0,h=u.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),w=()=>{let y;return f?y=p:d?y=h:u.route.Component?y=b.createElement(u.route.Component,null):u.route.element?y=u.route.element:y=s,b.createElement($M,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:y})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?b.createElement(OM,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:w(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):w()},null)}function yy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jM(e){let t=b.useContext(Po);return Fe(t,yy(e)),t}function TM(e){let t=b.useContext(ud);return Fe(t,yy(e)),t}function AM(e){let t=b.useContext(Tn);return Fe(t,yy(e)),t}function xy(e){let t=AM(e),n=t.matches[t.matches.length-1];return Fe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function CM(){return xy("useRouteId")}function kM(){var r;let e=b.useContext(gy),t=TM("useRouteError"),n=xy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function NM(){let{router:e}=jM("useNavigate"),t=xy("useNavigate"),n=b.useRef(!1);return F$(()=>{n.current=!0}),b.useCallback(async(i,a={})=>{Pn(n.current,D$),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var Eb={};function z$(e,t,n){!t&&!Eb[e]&&(Eb[e]=!0,Pn(!1,n))}b.memo(MM);function MM({routes:e,future:t,state:n}){return B$(e,void 0,n,t)}function IM(e){return bM(e.context)}function vl(e){Fe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function RM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){Fe(!Vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=ra(n));let{pathname:s="/",search:u="",hash:c="",state:f=null,key:d="default"}=n,p=b.useMemo(()=>{let h=li(s,o);return h==null?null:{location:{pathname:h,search:u,hash:c,state:f,key:d},navigationType:r}},[o,s,u,c,f,d,r]);return Pn(p!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:b.createElement(Yn.Provider,{value:l},b.createElement(Ws.Provider,{children:t,value:p}))}function LM({children:e,location:t}){return _M(Im(e),t)}function Im(e,t=[]){let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let a=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Im(r.props.children,a));return}Fe(r.type===vl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Im(r.props.children,a)),n.push(o)}),n}var cc="get",fc="application/x-www-form-urlencoded";function cd(e){return e!=null&&typeof e.tagName=="string"}function DM(e){return cd(e)&&e.tagName.toLowerCase()==="button"}function FM(e){return cd(e)&&e.tagName.toLowerCase()==="form"}function BM(e){return cd(e)&&e.tagName.toLowerCase()==="input"}function zM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UM(e,t){return e.button===0&&(!t||t==="_self")&&!zM(e)}var Nu=null;function HM(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var WM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yp(e){return e!=null&&!WM.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fc}"`),null):e}function VM(e,t){let n,r,i,a,o;if(FM(e)){let l=e.getAttribute("action");r=l?li(l,t):null,n=e.getAttribute("method")||cc,i=Yp(e.getAttribute("enctype"))||fc,a=new FormData(e)}else if(DM(e)||BM(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?li(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||cc,i=Yp(e.getAttribute("formenctype"))||Yp(l.getAttribute("enctype"))||fc,a=new FormData(l,e),!HM()){let{name:u,type:c,value:f}=e;if(c==="image"){let d=u?`${u}.`:"";a.append(`${d}x`,"0"),a.append(`${d}y`,"0")}else u&&a.append(u,f)}}else{if(cd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cc,r=null,i=fc,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function by(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function KM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GM(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 qM(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await KM(a,n);return o.links?o.links():[]}return[]}));return ZM(r.flat(1).filter(GM).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ob(e,t,n,r,i,a){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return a==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):a==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function XM(e,t){return YM(e.map(n=>{let r=t.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function YM(e){return[...new Set(e)]}function QM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ZM(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(QM(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function JM(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function eI(){let e=b.useContext(Po);return by(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tI(){let e=b.useContext(ud);return by(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wy=b.createContext(void 0);wy.displayName="FrameworkContext";function U$(){let e=b.useContext(wy);return by(e,"You must render this element inside a <HydratedRouter> element"),e}function nI(e,t){let n=b.useContext(wy),[r,i]=b.useState(!1),[a,o]=b.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=b.useRef(null);b.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=y=>{y.forEach(g=>{o(g.isIntersecting)})},w=new IntersectionObserver(m,{threshold:.5});return d.current&&w.observe(d.current),()=>{w.disconnect()}}},[e]),b.useEffect(()=>{if(r){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,d,{}]:[a,d,{onFocus:tl(l,p),onBlur:tl(s,h),onMouseEnter:tl(u,p),onMouseLeave:tl(c,h),onTouchStart:tl(f,p)}]:[!1,d,{}]}function tl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rI({page:e,...t}){let{router:n}=eI(),r=b.useMemo(()=>C$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(aI,{page:e,matches:r,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function iI(e){let{manifest:t,routeModules:n}=U$(),[r,i]=b.useState([]);return b.useEffect(()=>{let a=!1;return qM(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function aI({page:e,matches:t,...n}){let r=Tr(),{manifest:i,routeModules:a}=U$(),{loaderData:o,matches:l}=tI(),s=b.useMemo(()=>Ob(e,t,l,i,r,"data"),[e,t,l,i,r]),u=b.useMemo(()=>Ob(e,t,l,i,r,"assets"),[e,t,l,i,r]),c=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,h=!1;if(t.forEach(w=>{var g;let y=i.routes[w.route.id];!y||!y.hasLoader||(!s.some(x=>x.route.id===w.route.id)&&w.route.id in o&&((g=a[w.route.id])!=null&&g.shouldRevalidate)||y.hasClientLoader?h=!0:p.add(w.route.id))}),p.size===0)return[];let m=JM(e);return h&&p.size>0&&m.searchParams.set("_routes",t.filter(w=>p.has(w.route.id)).map(w=>w.route.id).join(",")),[m.pathname+m.search]},[o,r,i,s,t,e,a]),f=b.useMemo(()=>XM(u,i),[u,i]),d=iI(u);return b.createElement(b.Fragment,null,c.map(p=>b.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),f.map(p=>b.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),d.map(({key:p,link:h})=>b.createElement("link",{key:p,...h})))}function oI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var H$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H$&&(window.__reactRouterVersion="7.0.2")}catch{}function lI({basename:e,children:t,window:n}){let r=b.useRef();r.current==null&&(r.current=WN({window:n,v5Compat:!0}));let i=r.current,[a,o]=b.useState({action:i.action,location:i.location}),l=b.useCallback(s=>{b.startTransition(()=>o(s))},[o]);return b.useLayoutEffect(()=>i.listen(l),[i,l]),b.createElement(RM,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var W$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,br=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:f,...d},p){let{basename:h}=b.useContext(Yn),m=typeof u=="string"&&W$.test(u),w,y=!1;if(typeof u=="string"&&m&&(w=u,H$))try{let T=new URL(window.location.href),C=u.startsWith("//")?new URL(T.protocol+u):new URL(u),A=li(C.pathname,h);C.origin===T.origin&&A!=null?u=A+C.search+C.hash:y=!0}catch{Pn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=vM(u,{relative:i}),[x,E,_]=nI(r,d),S=fI(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f});function O(T){t&&t(T),T.defaultPrevented||S(T)}let $=b.createElement("a",{...d,..._,href:w||g,onClick:y||a?t:O,ref:oI(p,E),target:s,"data-discover":!m&&n==="render"?"true":void 0});return x&&!m?b.createElement(b.Fragment,null,$,b.createElement(rI,{page:g})):$});br.displayName="Link";var sI=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:s,...u},c){let f=Ks(o,{relative:u.relative}),d=Tr(),p=b.useContext(ud),{navigator:h,basename:m}=b.useContext(Yn),w=p!=null&&vI(f)&&l===!0,y=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,g=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&m&&(x=li(x,m)||x);const E=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let _=g===y||!i&&g.startsWith(y)&&g.charAt(E)==="/",S=x!=null&&(x===y||!i&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:_,isPending:S,isTransitioning:w},$=_?t:void 0,T;typeof r=="function"?T=r(O):T=[r,_?"active":null,S?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(O):a;return b.createElement(br,{...u,"aria-current":$,className:T,ref:c,style:C,to:o,viewTransition:l},typeof s=="function"?s(O):s)});sI.displayName="NavLink";var uI=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=cc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,...d},p)=>{let h=hI(),m=mI(l,{relative:u}),w=o.toLowerCase()==="get"?"get":"post",y=typeof l=="string"&&W$.test(l),g=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let E=x.nativeEvent.submitter,_=(E==null?void 0:E.getAttribute("formmethod"))||o;h(E||x.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:i,state:a,relative:u,preventScrollReset:c,viewTransition:f})};return b.createElement("form",{ref:p,method:w,action:m,onSubmit:r?s:g,...d,"data-discover":!y&&e==="render"?"true":void 0})});uI.displayName="Form";function cI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V$(e){let t=b.useContext(Po);return Fe(t,cI(e)),t}function fI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=gM(),s=Tr(),u=Ks(e,{relative:a});return b.useCallback(c=>{if(UM(c,t)){c.preventDefault();let f=n!==void 0?n:es(s)===es(u);l(e,{replace:f,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[s,l,u,n,r,t,e,i,a,o])}var dI=0,pI=()=>`__${String(++dI)}__`;function hI(){let{router:e}=V$("useSubmit"),{basename:t}=b.useContext(Yn),n=CM();return b.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:s,body:u}=VM(r,t);if(i.navigate===!1){let c=i.fetcherKey||pI();await e.fetch(c,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function mI(e,{relative:t}={}){let{basename:n}=b.useContext(Yn),r=b.useContext(Tn);Fe(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Ks(e||".",{relative:t})},o=Tr();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let c=l.toString();a.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:cr([n,a.pathname])),es(a)}function vI(e,t={}){let n=b.useContext(L$);Fe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=V$("useViewTransitionState"),i=Ks(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=li(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=li(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Bc(i.pathname,o)!=null||Bc(i.pathname,a)!=null}new TextEncoder;const gI={features:{"Assignment Mapping":{description:"Various strategies for mapping features to code elements including directory-based assignments, glob patterns, and file annotation processing.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_mappers/directory_assignment.rb","lib/feature_map/private/assignment_mappers/feature_definition_assignment.rb","lib/feature_map/private/assignment_mappers/feature_globs.rb","lib/feature_map/private/assignment_mappers/file_annotations.rb","lib/feature_map/private/glob_cache.rb","spec/lib/feature_map/private/assignment_mappers/directory_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_definition_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_globs_spec.rb","spec/lib/feature_map/private/assignment_mappers/file_annotations_spec.rb"],teams:["Core Library"]},metrics:{abc_size:541.4,cyclomatic_complexity:38,lines_of_code:604,todo_locations:{},complexity_ratio:15.894736842105264,encapsulation_ratio:.014900662251655629},test_coverage:{lines:348,hits:346,misses:2,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:31.818181818181817,percent_of_max:42,score:15.894736842105264},encapsulation:{percentile:68.18181818181819,percent_of_max:39,score:.014900662251655629},feature_size:{percentile:40.90909090909091,percent_of_max:23,score:604},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.5909090909090908},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:6.818181818181818},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:93.4090909090909}}},"Code Features":{description:"Plugin system for defining code features and their relationships with extensible interfaces and identity management.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/code_features.rb","lib/feature_map/code_features/plugin.rb","lib/feature_map/code_features/plugins/identity.rb","lib/feature_map/private/feature_plugins/assignment.rb","spec/lib/feature_map/code_features/plugin_spec.rb","spec/lib/feature_map/code_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:416.79,cyclomatic_complexity:13,lines_of_code:373,todo_locations:{},complexity_ratio:28.692307692307693,encapsulation_ratio:.0160857908847185},test_coverage:{lines:236,hits:233,misses:3,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:59.09090909090909,percent_of_max:76,score:28.692307692307693},encapsulation:{percentile:77.27272727272727,percent_of_max:42,score:.0160857908847185},feature_size:{percentile:13.636363636363637,percent_of_max:14,score:373},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.9545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:7.727272727272727},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:95.68181818181819}}},"Core Library":{description:"The foundation of the feature_map library including main configuration interfaces, constants, and base functionality that orchestrates the overall system.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map.rb","lib/feature_map/cli.rb","lib/feature_map/commit.rb","lib/feature_map/configuration.rb","lib/feature_map/constants.rb","lib/feature_map/mapper.rb","lib/feature_map/output_color.rb","lib/feature_map/private.rb","lib/feature_map/validator.rb","spec/lib/feature_map/cli_spec.rb","spec/lib/feature_map/commit_spec.rb","spec/lib/feature_map_spec.rb","spec/spec_helper.rb"],teams:["Core Library"]},metrics:{abc_size:1528.37,cyclomatic_complexity:83,lines_of_code:1596,todo_locations:{"lib/feature_map.rb:37":"what if there are multiple features? Should we respond with an error instead of the first match?"},complexity_ratio:19.228915662650603,encapsulation_ratio:.008145363408521303},test_coverage:{lines:930,hits:883,misses:47,coverage_ratio:95},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:50,percent_of_max:51,score:19.228915662650603},encapsulation:{percentile:13.636363636363637,percent_of_max:21,score:.008145363408521303},feature_size:{percentile:86.36363636363636,percent_of_max:60,score:1596},test_coverage:{percentile:31.818181818181817,percent_of_max:95,score:95},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:1.3636363636363635},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Documentation Content":{description:"Written documentation in Markdown format covering usage instructions, configuration, public interfaces, and examples for users.",dashboard_link:null,documentation_link:null,assignments:{files:["readme/_layouts/default.html","readme/artifacts/assignments.md","readme/artifacts/docs.md","readme/artifacts/metrics.md","readme/artifacts/overview.md","readme/artifacts/test-coverage.md","readme/artifacts/test-pyramid.md","readme/continuous-integration/pr-tags.md","readme/continuous-integration/release-notification.md","readme/continuous-integration/validation.md","readme/documentation-site/overview.md","readme/getting-started/configuration.md","readme/getting-started/feature-assignment.md","readme/getting-started/feature-definition.md","readme/getting-started/inline-execution.md","readme/getting-started/with-code-ownership.md","readme/index.md","readme/public-interface/apply-assignments.md","readme/public-interface/docs.md","readme/public-interface/for-backtrace.md","readme/public-interface/for-class.md","readme/public-interface/for-feature.md","readme/public-interface/for-file.md","readme/public-interface/overview.md","readme/public-interface/test-coverage.md","readme/public-interface/test-pyramid.md","readme/public-interface/validate.md"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:709,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.0380818053596615},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:95.45454545454545,percent_of_max:100,score:.0380818053596615},feature_size:{percentile:59.09090909090909,percent_of_max:27,score:709},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!0,health_score:10},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:25.454545454545453}}},"Documentation UI":{description:"Frontend React components that render the visualization of features, metrics, and code relationships in an interactive web interface.",dashboard_link:null,documentation_link:null,assignments:{files:["docs/src/App.jsx","docs/src/components/CircularProgress.jsx","docs/src/components/DigestHealthScoreCard.jsx","docs/src/components/DigestTestCoverageCard.jsx","docs/src/components/DigestTestPyramidCard.jsx","docs/src/components/DigestTestPyramidDetails.jsx","docs/src/components/FeatureCard.jsx","docs/src/components/FeatureDetails.jsx","docs/src/components/FeatureSizeDataCard.jsx","docs/src/components/FeatureTestPyramidCard.jsx","docs/src/components/FeaturesTable.jsx","docs/src/components/FeaturesTreemap.jsx","docs/src/components/FileExplorer.jsx","docs/src/components/HealthScoreDataCard.jsx","docs/src/components/Layout.jsx","docs/src/components/LayoutSidebar.jsx","docs/src/components/MetricCard.jsx","docs/src/components/SearchBox.jsx","docs/src/components/TestCoverageDataCard.jsx","docs/src/components/Tooltip.jsx","docs/src/components/ui/Dropdown.jsx","docs/src/components/ui/Switcher.jsx","docs/src/components/ui/index.js","docs/src/main.jsx","docs/src/pages/Dashboard.jsx","docs/src/pages/Digest.jsx","docs/src/pages/Feature.jsx","docs/src/scripts/app.js","docs/src/styles/app.css","docs/src/utils/config.js","docs/src/utils/feature-helpers.jsx","docs/src/utils/health-score.js"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:2667,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.011998500187476566},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:50,percent_of_max:32,score:.011998500187476566},feature_size:{percentile:95.45454545454545,percent_of_max:100,score:2667},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:20.454545454545453}}},"Extension System":{description:"Framework for loading extensions, building documentation sites, and generating release notifications to extend core functionality.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/documentation_site.rb","lib/feature_map/private/extension_loader.rb","lib/feature_map/private/release_notification_builder.rb","spec/lib/feature_map/private/documentation_site_spec.rb","spec/lib/feature_map/private/extension_loader_spec.rb","spec/lib/feature_map/private/release_notification_builder_spec.rb"],teams:["Core Library"]},metrics:{abc_size:376.97,cyclomatic_complexity:15,lines_of_code:566,todo_locations:{"spec/lib/feature_map/private/extension_loader_spec.rb:3":"This was failing without cache busting. It seems like the code_ownership gem has some"},complexity_ratio:37.733333333333334,encapsulation_ratio:.01060070671378092},test_coverage:{lines:189,hits:188,misses:1,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:95.45454545454545,percent_of_max:100,score:37.733333333333334},encapsulation:{percentile:40.90909090909091,percent_of_max:28,score:.01060070671378092},feature_size:{percentile:31.818181818181817,percent_of_max:21,score:566},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:4.090909090909091},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:94.0909090909091}}},"Feature Assignment":{description:"Core functionality that handles the assignment of features to files and code elements with storage and application mechanisms.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_applicator.rb","lib/feature_map/private/assignments_file.rb","lib/feature_map/private/feature_assigner.rb","spec/lib/feature_map/private/assignment_applicator_spec.rb","spec/lib/feature_map/private/assignments_file_spec.rb","spec/lib/feature_map/private/feature_assigner_spec.rb"],teams:["Core Library"]},metrics:{abc_size:710.48,cyclomatic_complexity:33,lines_of_code:1070,todo_locations:{},complexity_ratio:32.42424242424242,encapsulation_ratio:.005607476635514018},test_coverage:{lines:380,hits:379,misses:1,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:68.18181818181819,percent_of_max:86,score:32.42424242424242},encapsulation:{percentile:4.545454545454546,percent_of_max:15,score:.005607476635514018},feature_size:{percentile:68.18181818181819,percent_of_max:40,score:1070},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.409090909090909},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:.4545454545454546},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Metrics Calculation":{description:"Analytical components that calculate code health metrics including complexity, size, and percentile-based measurements across features.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/cyclomatic_complexity_calculator.rb","lib/feature_map/private/feature_metrics_calculator.rb","lib/feature_map/private/health_calculator.rb","lib/feature_map/private/lines_of_code_calculator.rb","lib/feature_map/private/percentile_metrics_calculator.rb","spec/lib/feature_map/private/cyclomatic_complexity_calculator_spec.rb","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb","spec/lib/feature_map/private/health_calculator_spec.rb","spec/lib/feature_map/private/lines_of_code_calculator_spec.rb","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb"],teams:["Core Library"]},metrics:{abc_size:1360.32,cyclomatic_complexity:35,lines_of_code:1203,todo_locations:{"spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:99":"Fix this method","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:107":"Refactor later","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:108":"Add error handling","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:116":"First todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:117":"Second todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:118":"Third todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:120":"Fourth todo","spec/lib/feature_map/private/health_calculator_spec.rb:105":"count - inverse percentile is used for calculation","spec/lib/feature_map/private/health_calculator_spec.rb:109":"count (inverted: 100-70 = 30)","spec/lib/feature_map/private/health_calculator_spec.rb:110":"s (inverted: 100-80 = 20, below 95 threshold)","spec/lib/feature_map/private/health_calculator_spec.rb:143":"count formula (inverse):","spec/lib/feature_map/private/health_calculator_spec.rb:186":"count - inverted, but still above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:187":"count, we need the inverse to be above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:256":"count below threshold","spec/lib/feature_map/private/health_calculator_spec.rb:277":"count gets partial points (score is inverted, so 80% of points)","spec/lib/feature_map/private/health_calculator_spec.rb:278":"_count_component']['health_score']).to be_within(0.1).of(12) # (100-20)% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:286":"_count = 12 # 80% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:316":"s","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb:265":"_count_for' do"},complexity_ratio:34.371428571428574,encapsulation_ratio:.00831255195344971},test_coverage:{lines:575,hits:573,misses:2,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:86.36363636363636,percent_of_max:91,score:34.371428571428574},encapsulation:{percentile:22.727272727272727,percent_of_max:22,score:.00831255195344971},feature_size:{percentile:77.27272727272727,percent_of_max:45,score:1203},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:86.36363636363636,percent_of_max:76,score:19},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:2.2727272727272725},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:3.5999999999999996},overall:80.87272727272727}}},"Metrics Storage":{description:"Persistence and retrieval mechanisms for metrics data with support for base metrics and additional/custom metrics.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/additional_metrics_file.rb","lib/feature_map/private/metrics_file.rb","spec/lib/feature_map/private/additional_metrics_file_spec.rb","spec/lib/feature_map/private/metrics_file_spec.rb"],teams:["Core Library"]},metrics:{abc_size:235.98000000000002,cyclomatic_complexity:12,lines_of_code:400,todo_locations:{},complexity_ratio:33.333333333333336,encapsulation_ratio:.01},test_coverage:{lines:135,hits:135,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:77.27272727272727,percent_of_max:88,score:33.333333333333336},encapsulation:{percentile:31.818181818181817,percent_of_max:26,score:.01},feature_size:{percentile:22.727272727272727,percent_of_max:15,score:400},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.8636363636363633},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:3.1818181818181817},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:92.04545454545455}}},"Testing Tools":{description:"Components for analyzing test coverage, maintaining a test pyramid, and integrating with testing libraries like SimpleCov and CodeCov.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/code_cov.rb","lib/feature_map/private/simple_cov_resultsets.rb","lib/feature_map/private/test_coverage_file.rb","lib/feature_map/private/test_pyramid_file.rb","lib/feature_map/private/todo_inspector.rb","spec/lib/feature_map/private/code_cov_spec.rb","spec/lib/feature_map/private/test_coverage_file_spec.rb","spec/lib/feature_map/private/test_pyramid_file_spec.rb","spec/lib/feature_map/private/todo_inspector_spec.rb"],teams:["Core Library"]},metrics:{abc_size:643.16,cyclomatic_complexity:40,lines_of_code:694,todo_locations:{"lib/feature_map/private/code_cov.rb:46":"Move these values to config.","lib/feature_map/private/todo_inspector.rb:16":"?\\s* # TODO with optional colon with whitespace","lib/feature_map/private/todo_inspector.rb:17":"content","lib/feature_map/private/todo_inspector.rb:34":'s["#{@file_path}:#{index + 1}"] = match[:content].strip',"spec/lib/feature_map/private/todo_inspector_spec.rb:14":"Fix this method","spec/lib/feature_map/private/todo_inspector_spec.rb:18":"Make this better","spec/lib/feature_map/private/todo_inspector_spec.rb:32":"Update API endpoint","spec/lib/feature_map/private/todo_inspector_spec.rb:34":"Fix error handling","spec/lib/feature_map/private/todo_inspector_spec.rb:49":"Implement caching","spec/lib/feature_map/private/todo_inspector_spec.rb:53":"Another todo here","spec/lib/feature_map/private/todo_inspector_spec.rb:61":"here'","spec/lib/feature_map/private/todo_inspector_spec.rb:67":"Add responsive styles","spec/lib/feature_map/private/todo_inspector_spec.rb:69":"Fix accessibility","spec/lib/feature_map/private/todo_inspector_spec.rb:99":"First todo","spec/lib/feature_map/private/todo_inspector_spec.rb:100":"Second todo","spec/lib/feature_map/private/todo_inspector_spec.rb:101":"Third todo","spec/lib/feature_map/private/todo_inspector_spec.rb:103":"Fourth todo","spec/lib/feature_map/private/todo_inspector_spec.rb:110":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:111":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:112":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:113":"'","spec/lib/feature_map/private/todo_inspector_spec.rb:138":"fix this')","spec/lib/feature_map/private/todo_inspector_spec.rb:142":`s).to include("#{path}:1" => 'fix this')`,"spec/lib/feature_map/private/todo_inspector_spec.rb:146":"spacing test ')","spec/lib/feature_map/private/todo_inspector_spec.rb:150":`s).to include("#{path}:1" => 'spacing test')`},complexity_ratio:17.35,encapsulation_ratio:.012968299711815562},test_coverage:{lines:349,hits:349,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:40.90909090909091,percent_of_max:46,score:17.35},encapsulation:{percentile:59.09090909090909,percent_of_max:34,score:.012968299711815562},feature_size:{percentile:50,percent_of_max:26,score:694},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:95.45454545454545,percent_of_max:100,score:25},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.0454545454545454},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5.909090909090909},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:0},overall:77.95454545454545}}},Validation:{description:"Rules and checks that ensure code adheres to feature mapping standards by validating feature assignments and detecting issues.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/validations/features_up_to_date.rb","lib/feature_map/private/validations/files_have_features.rb","lib/feature_map/private/validations/files_have_unique_features.rb","spec/lib/feature_map/private/validations/files_have_features_spec.rb","spec/lib/feature_map/private/validations/files_have_unique_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:228.63,cyclomatic_complexity:20,lines_of_code:298,todo_locations:{},complexity_ratio:14.9,encapsulation_ratio:.016778523489932886},test_coverage:{lines:163,hits:145,misses:18,coverage_ratio:89},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:22.727272727272727,percent_of_max:39,score:14.9},encapsulation:{percentile:86.36363636363636,percent_of_max:44,score:.016778523489932886},feature_size:{percentile:4.545454545454546,percent_of_max:11,score:298},test_coverage:{percentile:22.727272727272727,percent_of_max:89,score:89},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:62.300000000000004},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.1363636363636362},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:8.636363636363637},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:87.07272727272728}}}},environment:{git_ref:"main"},project:{assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}}},yI={assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],internal_resources:[{name:"Feature Management Docs",url:"https://notion.com"},{name:"Feature Map Docs",url:"https://example.github.io/feature_map"},{name:"New Relic Dashboard",url:"https://newrelic.com"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},xI={...gI,project:yI,environment:{git_ref:"main"}},wr=window.FEATURE_MAP_CONFIG||xI;/**
|
69
69
|
* @license lucide-react v0.468.0 - ISC
|
70
70
|
*
|
71
71
|
* This source code is licensed under the ISC license.
|
@@ -110,7 +110,7 @@ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}
|
|
110
110
|
*
|
111
111
|
* This source code is licensed under the ISC license.
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
113
|
-
*/const
|
113
|
+
*/const Tl=Ve("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
114
114
|
* @license lucide-react v0.468.0 - ISC
|
115
115
|
*
|
116
116
|
* This source code is licensed under the ISC license.
|
@@ -155,7 +155,7 @@ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}
|
|
155
155
|
*
|
156
156
|
* This source code is licensed under the ISC license.
|
157
157
|
* See the LICENSE file in the root directory of this source tree.
|
158
|
-
*/const
|
158
|
+
*/const _r=Ve("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
159
159
|
* @license lucide-react v0.468.0 - ISC
|
160
160
|
*
|
161
161
|
* This source code is licensed under the ISC license.
|
@@ -190,7 +190,7 @@ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}
|
|
190
190
|
*
|
191
191
|
* This source code is licensed under the ISC license.
|
192
192
|
* See the LICENSE file in the root directory of this source tree.
|
193
|
-
*/const
|
193
|
+
*/const Gi=Ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Y$(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=Y$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Y$(e))&&(r&&(r+=" "),r+=t);return r}var MI=Array.isArray,jt=MI,II=typeof mu=="object"&&mu&&mu.Object===Object&&mu,Q$=II,RI=Q$,LI=typeof self=="object"&&self&&self.Object===Object&&self,DI=RI||LI||Function("return this")(),An=DI,FI=An,BI=FI.Symbol,jo=BI,$b=jo,Z$=Object.prototype,zI=Z$.hasOwnProperty,UI=Z$.toString,nl=$b?$b.toStringTag:void 0;function HI(e){var t=zI.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch{}var i=UI.call(e);return r&&(t?e[nl]=n:delete e[nl]),i}var WI=HI,VI=Object.prototype,KI=VI.toString;function GI(e){return KI.call(e)}var qI=GI,Pb=jo,XI=WI,YI=qI,QI="[object Null]",ZI="[object Undefined]",jb=Pb?Pb.toStringTag:void 0;function JI(e){return e==null?e===void 0?ZI:QI:jb&&jb in Object(e)?XI(e):YI(e)}var Ar=JI;function eR(e){return e!=null&&typeof e=="object"}var Cn=eR,tR=Ar,nR=Cn,rR="[object Symbol]";function iR(e){return typeof e=="symbol"||nR(e)&&tR(e)==rR}var To=iR,aR=jt,oR=To,lR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sR=/^\w*$/;function uR(e,t){if(aR(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||oR(e)?!0:sR.test(e)||!lR.test(e)||t!=null&&e in Object(t)}var Oy=uR;function cR(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kn=cR;const Ao=me(kn);var fR=Ar,dR=kn,pR="[object AsyncFunction]",hR="[object Function]",mR="[object GeneratorFunction]",vR="[object Proxy]";function gR(e){if(!dR(e))return!1;var t=fR(e);return t==hR||t==mR||t==pR||t==vR}var $y=gR;const te=me($y);var yR=An,xR=yR["__core-js_shared__"],bR=xR,Qp=bR,Tb=function(){var e=/[^.]+$/.exec(Qp&&Qp.keys&&Qp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wR(e){return!!Tb&&Tb in e}var _R=wR,SR=Function.prototype,ER=SR.toString;function OR(e){if(e!=null){try{return ER.call(e)}catch{}try{return e+""}catch{}}return""}var J$=OR,$R=$y,PR=_R,jR=kn,TR=J$,AR=/[\\^$.*+?()[\]{}|]/g,CR=/^\[object .+?Constructor\]$/,kR=Function.prototype,NR=Object.prototype,MR=kR.toString,IR=NR.hasOwnProperty,RR=RegExp("^"+MR.call(IR).replace(AR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function LR(e){if(!jR(e)||PR(e))return!1;var t=$R(e)?RR:CR;return t.test(TR(e))}var DR=LR;function FR(e,t){return e==null?void 0:e[t]}var BR=FR,zR=DR,UR=BR;function HR(e,t){var n=UR(e,t);return zR(n)?n:void 0}var ia=HR,WR=ia,VR=WR(Object,"create"),fd=VR,Ab=fd;function KR(){this.__data__=Ab?Ab(null):{},this.size=0}var GR=KR;function qR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XR=qR,YR=fd,QR="__lodash_hash_undefined__",ZR=Object.prototype,JR=ZR.hasOwnProperty;function e3(e){var t=this.__data__;if(YR){var n=t[e];return n===QR?void 0:n}return JR.call(t,e)?t[e]:void 0}var t3=e3,n3=fd,r3=Object.prototype,i3=r3.hasOwnProperty;function a3(e){var t=this.__data__;return n3?t[e]!==void 0:i3.call(t,e)}var o3=a3,l3=fd,s3="__lodash_hash_undefined__";function u3(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=l3&&t===void 0?s3:t,this}var c3=u3,f3=GR,d3=XR,p3=t3,h3=o3,m3=c3;function Co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Co.prototype.clear=f3;Co.prototype.delete=d3;Co.prototype.get=p3;Co.prototype.has=h3;Co.prototype.set=m3;var v3=Co;function g3(){this.__data__=[],this.size=0}var y3=g3;function x3(e,t){return e===t||e!==e&&t!==t}var dd=x3,b3=dd;function w3(e,t){for(var n=e.length;n--;)if(b3(e[n][0],t))return n;return-1}var pd=w3,_3=pd,S3=Array.prototype,E3=S3.splice;function O3(e){var t=this.__data__,n=_3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():E3.call(t,n,1),--this.size,!0}var $3=O3,P3=pd;function j3(e){var t=this.__data__,n=P3(t,e);return n<0?void 0:t[n][1]}var T3=j3,A3=pd;function C3(e){return A3(this.__data__,e)>-1}var k3=C3,N3=pd;function M3(e,t){var n=this.__data__,r=N3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var I3=M3,R3=y3,L3=$3,D3=T3,F3=k3,B3=I3;function ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ko.prototype.clear=R3;ko.prototype.delete=L3;ko.prototype.get=D3;ko.prototype.has=F3;ko.prototype.set=B3;var hd=ko,z3=ia,U3=An,H3=z3(U3,"Map"),Py=H3,Cb=v3,W3=hd,V3=Py;function K3(){this.size=0,this.__data__={hash:new Cb,map:new(V3||W3),string:new Cb}}var G3=K3;function q3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var X3=q3,Y3=X3;function Q3(e,t){var n=e.__data__;return Y3(t)?n[typeof t=="string"?"string":"hash"]:n.map}var md=Q3,Z3=md;function J3(e){var t=Z3(this,e).delete(e);return this.size-=t?1:0,t}var e5=J3,t5=md;function n5(e){return t5(this,e).get(e)}var r5=n5,i5=md;function a5(e){return i5(this,e).has(e)}var o5=a5,l5=md;function s5(e,t){var n=l5(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var u5=s5,c5=G3,f5=e5,d5=r5,p5=o5,h5=u5;function No(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}No.prototype.clear=c5;No.prototype.delete=f5;No.prototype.get=d5;No.prototype.has=p5;No.prototype.set=h5;var jy=No,eP=jy,m5="Expected a function";function Ty(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m5);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ty.Cache||eP),n}Ty.Cache=eP;var tP=Ty;const v5=me(tP);var g5=tP,y5=500;function x5(e){var t=g5(e,function(r){return n.size===y5&&n.clear(),r}),n=t.cache;return t}var b5=x5,w5=b5,_5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S5=/\\(\\)?/g,E5=w5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_5,function(n,r,i,a){t.push(i?a.replace(S5,"$1"):r||n)}),t}),O5=E5;function $5(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var vd=$5,kb=jo,P5=vd,j5=jt,T5=To,A5=1/0,Nb=kb?kb.prototype:void 0,Mb=Nb?Nb.toString:void 0;function nP(e){if(typeof e=="string")return e;if(j5(e))return P5(e,nP)+"";if(T5(e))return Mb?Mb.call(e):"";var t=e+"";return t=="0"&&1/e==-A5?"-0":t}var C5=nP,k5=C5;function N5(e){return e==null?"":k5(e)}var rP=N5,M5=jt,I5=Oy,R5=O5,L5=rP;function D5(e,t){return M5(e)?e:I5(e,t)?[e]:R5(L5(e))}var gd=D5,F5=To,B5=1/0;function z5(e){if(typeof e=="string"||F5(e))return e;var t=e+"";return t=="0"&&1/e==-B5?"-0":t}var Gs=z5,U5=gd,H5=Gs;function W5(e,t){t=U5(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[H5(t[n++])];return n&&n==r?e:void 0}var yd=W5,V5=yd;function K5(e,t,n){var r=e==null?void 0:V5(e,t);return r===void 0?n:r}var iP=K5;const En=me(iP);function G5(e){return e==null}var q5=G5;const le=me(q5);var X5=Ar,Y5=jt,Q5=Cn,Z5="[object String]";function J5(e){return typeof e=="string"||!Y5(e)&&Q5(e)&&X5(e)==Z5}var eL=J5;const Mo=me(eL);var aP={exports:{}},ve={};/**
|
194
194
|
* @license React
|
195
195
|
* react-is.production.min.js
|
196
196
|
*
|
@@ -198,52 +198,52 @@ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}
|
|
198
198
|
*
|
199
199
|
* This source code is licensed under the MIT license found in the
|
200
200
|
* LICENSE file in the root directory of this source tree.
|
201
|
-
*/var Ay=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),xd=Symbol.for("react.fragment"),bd=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Sd=Symbol.for("react.context"),tL=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),Od=Symbol.for("react.suspense"),$d=Symbol.for("react.suspense_list"),Pd=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),nL=Symbol.for("react.offscreen"),oP;oP=Symbol.for("react.module.reference");function hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ay:switch(e=e.type,e){case xd:case wd:case bd:case Od:case $d:return e;default:switch(e=e&&e.$$typeof,e){case tL:case Sd:case Ed:case jd:case Pd:case _d:return e;default:return t}}case Cy:return t}}}ve.ContextConsumer=Sd;ve.ContextProvider=_d;ve.Element=Ay;ve.ForwardRef=Ed;ve.Fragment=xd;ve.Lazy=jd;ve.Memo=Pd;ve.Portal=Cy;ve.Profiler=wd;ve.StrictMode=bd;ve.Suspense=Od;ve.SuspenseList=$d;ve.isAsyncMode=function(){return!1};ve.isConcurrentMode=function(){return!1};ve.isContextConsumer=function(e){return hn(e)===Sd};ve.isContextProvider=function(e){return hn(e)===_d};ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay};ve.isForwardRef=function(e){return hn(e)===Ed};ve.isFragment=function(e){return hn(e)===xd};ve.isLazy=function(e){return hn(e)===jd};ve.isMemo=function(e){return hn(e)===Pd};ve.isPortal=function(e){return hn(e)===Cy};ve.isProfiler=function(e){return hn(e)===wd};ve.isStrictMode=function(e){return hn(e)===bd};ve.isSuspense=function(e){return hn(e)===Od};ve.isSuspenseList=function(e){return hn(e)===$d};ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xd||e===wd||e===bd||e===Od||e===$d||e===nL||typeof e=="object"&&e!==null&&(e.$$typeof===jd||e.$$typeof===Pd||e.$$typeof===_d||e.$$typeof===Sd||e.$$typeof===Ed||e.$$typeof===oP||e.getModuleId!==void 0)};ve.typeOf=hn;aP.exports=ve;var rL=aP.exports,iL=Tr,aL=Cn,oL="[object Number]";function lL(e){return typeof e=="number"||aL(e)&&iL(e)==oL}var lP=lL;const sP=me(lP);var sL=lP;function uL(e){return sL(e)&&e!=+e}var cL=uL;const Ks=me(cL);var on=function(t){return t===0?0:t>0?1:-1},Ci=function(t){return No(t)&&t.indexOf("%")===t.length-1},G=function(t){return sP(t)&&!Ks(t)},Je=function(t){return G(t)||No(t)},fL=0,Td=function(t){var n=++fL;return"".concat(t||"").concat(n)},kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!No(t))return r;var a;if(Ci(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Ks(a)&&(a=r),i&&a>n&&(a=n),a},pa=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},dL=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Zt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):En(r,t))===n})}function Dm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Fm(e){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}var pL=["viewBox","children"],hL=["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"],Ib=["points","pathLength"],Zp={svg:pL,polygon:Ib,polyline:Ib},ky=["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"],zc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(b.isValidElement(t)&&(r=t.props),!To(r))return null;var i={};return Object.keys(r).forEach(function(a){ky.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},mL=function(t,n,r){return function(i){return t(n,r,i),null}},Gs=function(t,n,r){if(!To(t)||Fm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];ky.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=mL(o,n,r))}),i},vL=["children"],gL=["children"];function Rb(e,t){if(e==null)return{};var n=yL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Lb={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},fr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Db=null,Jp=null,Ny=function e(t){if(t===Db&&Array.isArray(Jp))return Jp;var n=[];return b.Children.forEach(t,function(r){le(r)||(rL.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Jp=n,Db=t,n};function On(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return fr(i)}):r=[fr(t)],Ny(e).forEach(function(i){var a=En(i,"type.displayName")||En(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function Jt(e,t){var n=On(e,t);return n&&n[0]}var Fb=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!G(r)||r<=0||!G(i)||i<=0)},xL=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],bL=function(t){return t&&t.type&&No(t.type)&&xL.indexOf(t.type)>=0},wL=function(t,n,r,i){var a,o=(a=Zp==null?void 0:Zp[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(n)||hL.includes(n))||r&&ky.includes(n)},ne=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(b.isValidElement(t)&&(i=t.props),!To(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;wL((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},Bm=function e(t,n){if(t===n)return!0;var r=b.Children.count(t);if(r!==b.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Bb(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Bb(a,o))return!1}return!0},Bb=function(t,n){if(le(t)&&le(n))return!0;if(!le(t)&&!le(n)){var r=t.props||{},i=r.children,a=Rb(r,vL),o=n.props||{},l=o.children,s=Rb(o,gL);return i&&l?Dm(a,s)&&Bm(i,l):!i&&!l?Dm(a,s):!1}return!1},zb=function(t,n){var r=[],i={};return Ny(t).forEach(function(a,o){if(bL(a))r.push(a);else if(a){var l=fr(a.type),s=n[l]||{},u=s.handler,c=s.once;if(u&&(!c||!i[l])){var f=u(a,l,o);r.push(f),i[l]=!0}}}),r},_L=function(t){var n=t&&t.type;return n&&Lb[n]?Lb[n]:null},SL=function(t,n){return Ny(n).indexOf(t)},EL=["children","width","height","viewBox","className","style","title","desc"];function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}function OL(e,t){if(e==null)return{};var n=$L(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $L(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Um(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,s=e.desc,u=OL(e,EL),c=i||{width:n,height:r,x:0,y:0},f=ue("recharts-surface",a);return j.createElement("svg",zm({},ne(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),j.createElement("title",null,l),j.createElement("desc",null,s),t)}var PL=["children","className"];function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}function jL(e,t){if(e==null)return{};var n=TL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Te=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=jL(e,PL),a=ue("recharts-layer",r);return j.createElement("g",Hm({className:a},ne(i,!0),{ref:t}),n)}),dr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]};function AL(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var uP=AL,CL=uP;function kL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CL(e,t,n)}var NL=kL,ML="\\ud800-\\udfff",IL="\\u0300-\\u036f",RL="\\ufe20-\\ufe2f",LL="\\u20d0-\\u20ff",DL=IL+RL+LL,FL="\\ufe0e\\ufe0f",BL="\\u200d",zL=RegExp("["+BL+ML+DL+FL+"]");function UL(e){return zL.test(e)}var cP=UL;function HL(e){return e.split("")}var WL=HL,fP="\\ud800-\\udfff",VL="\\u0300-\\u036f",KL="\\ufe20-\\ufe2f",GL="\\u20d0-\\u20ff",qL=VL+KL+GL,XL="\\ufe0e\\ufe0f",YL="["+fP+"]",Wm="["+qL+"]",Vm="\\ud83c[\\udffb-\\udfff]",QL="(?:"+Wm+"|"+Vm+")",dP="[^"+fP+"]",pP="(?:\\ud83c[\\udde6-\\uddff]){2}",hP="[\\ud800-\\udbff][\\udc00-\\udfff]",ZL="\\u200d",mP=QL+"?",vP="["+XL+"]?",JL="(?:"+ZL+"(?:"+[dP,pP,hP].join("|")+")"+vP+mP+")*",eD=vP+mP+JL,tD="(?:"+[dP+Wm+"?",Wm,pP,hP,YL].join("|")+")",nD=RegExp(Vm+"(?="+Vm+")|"+tD+eD,"g");function rD(e){return e.match(nD)||[]}var iD=rD,aD=WL,oD=cP,lD=iD;function sD(e){return oD(e)?lD(e):aD(e)}var uD=sD,cD=NL,fD=cP,dD=uD,pD=rP;function hD(e){return function(t){t=pD(t);var n=fD(t)?dD(t):void 0,r=n?n[0]:t.charAt(0),i=n?cD(n,1).join(""):t.slice(1);return r[e]()+i}}var mD=hD,vD=mD,gD=vD("toUpperCase"),yD=gD;const Ad=me(yD);function we(e){return function(){return e}}const gP=Math.cos,Uc=Math.sin,Nn=Math.sqrt,Hc=Math.PI,Cd=2*Hc,Km=Math.PI,Gm=2*Km,Si=1e-6,xD=Gm-Si;function yP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function bD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return yP;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class wD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?yP:bD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,u=i-n,c=o-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Si)if(!(Math.abs(f*s-u*c)>Si)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,h=i-l,m=s*s+u*u,w=p*p+h*h,y=Math.sqrt(m),v=Math.sqrt(d),x=a*Math.tan((Km-Math.acos((m+d-w)/(2*y*v)))/2),E=x/v,_=x/y;Math.abs(E-1)>Si&&this._append`L${t+E*c},${n+E*f}`,this._append`A${a},${a},0,0,${+(f*p>c*h)},${this._x1=t+_*s},${this._y1=n+_*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Si||Math.abs(this._y1-c)>Si)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Gm+Gm),d>xD?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Si&&this._append`A${r},${r},0,${+(d>=Km)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function My(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new wD(t)}function Iy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xP(e){this._context=e}xP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function kd(e){return new xP(e)}function bP(e){return e[0]}function wP(e){return e[1]}function _P(e,t){var n=we(!0),r=null,i=kd,a=null,o=My(l);e=typeof e=="function"?e:e===void 0?bP:we(e),t=typeof t=="function"?t:t===void 0?wP:we(t);function l(s){var u,c=(s=Iy(s)).length,f,d=!1,p;for(r==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&n(f=s[u],u,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,s),+t(f,u,s));if(p)return a=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:we(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:we(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:we(!!s),l):n},l.curve=function(s){return arguments.length?(i=s,r!=null&&(a=i(r)),l):i},l.context=function(s){return arguments.length?(s==null?r=a=null:a=i(r=s),l):r},l}function ku(e,t,n){var r=null,i=we(!0),a=null,o=kd,l=null,s=My(u);e=typeof e=="function"?e:e===void 0?bP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?wP:we(+n);function u(f){var d,p,h,m=(f=Iy(f)).length,w,y=!1,v,x=new Array(m),E=new Array(m);for(a==null&&(l=o(v=s())),d=0;d<=m;++d){if(!(d<m&&i(w=f[d],d,f))===y)if(y=!y)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=d-1;h>=p;--h)l.point(x[h],E[h]);l.lineEnd(),l.areaEnd()}y&&(x[d]=+e(w,d,f),E[d]=+t(w,d,f),l.point(r?+r(w,d,f):x[d],n?+n(w,d,f):E[d]))}if(v)return l=null,v+""||null}function c(){return _P().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:we(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class SP{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _D(e){return new SP(e,!0)}function SD(e){return new SP(e,!1)}const Ry={draw(e,t){const n=Nn(t/Hc);e.moveTo(n,0),e.arc(0,0,n,0,Cd)}},ED={draw(e,t){const n=Nn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},EP=Nn(1/3),OD=EP*2,$D={draw(e,t){const n=Nn(t/OD),r=n*EP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},PD={draw(e,t){const n=Nn(t),r=-n/2;e.rect(r,r,n,n)}},jD=.8908130915292852,OP=Uc(Hc/10)/Uc(7*Hc/10),TD=Uc(Cd/10)*OP,AD=-gP(Cd/10)*OP,CD={draw(e,t){const n=Nn(t*jD),r=TD*n,i=AD*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Cd*a/5,l=gP(o),s=Uc(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},eh=Nn(3),kD={draw(e,t){const n=-Nn(t/(eh*3));e.moveTo(0,n*2),e.lineTo(-eh*n,-n),e.lineTo(eh*n,-n),e.closePath()}},Xt=-.5,Yt=Nn(3)/2,qm=1/Nn(12),ND=(qm/2+1)*3,MD={draw(e,t){const n=Nn(t/ND),r=n/2,i=n*qm,a=r,o=n*qm+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Xt*r-Yt*i,Yt*r+Xt*i),e.lineTo(Xt*a-Yt*o,Yt*a+Xt*o),e.lineTo(Xt*l-Yt*s,Yt*l+Xt*s),e.lineTo(Xt*r+Yt*i,Xt*i-Yt*r),e.lineTo(Xt*a+Yt*o,Xt*o-Yt*a),e.lineTo(Xt*l+Yt*s,Xt*s-Yt*l),e.closePath()}};function ID(e,t){let n=null,r=My(i);e=typeof e=="function"?e:we(e||Ry),t=typeof t=="function"?t:we(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:we(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:we(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Wc(){}function Vc(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 $P(e){this._context=e}$P.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:Vc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RD(e){return new $P(e)}function PP(e){this._context=e}PP.prototype={areaStart:Wc,areaEnd:Wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LD(e){return new PP(e)}function jP(e){this._context=e}jP.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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DD(e){return new jP(e)}function TP(e){this._context=e}TP.prototype={areaStart:Wc,areaEnd:Wc,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 FD(e){return new TP(e)}function Ub(e){return e<0?-1:1}function Hb(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),l=(a*i+o*r)/(r+i);return(Ub(a)+Ub(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Wb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function th(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Kc(e){this._context=e}Kc.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:th(this,this._t0,Wb(this,this._t0));break}(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,th(this,Wb(this,n=Hb(this,e,t)),n);break;default:th(this,this._t0,n=Hb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function AP(e){this._context=new CP(e)}(AP.prototype=Object.create(Kc.prototype)).point=function(e,t){Kc.prototype.point.call(this,t,e)};function CP(e){this._context=e}CP.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 BD(e){return new Kc(e)}function zD(e){return new AP(e)}function kP(e){this._context=e}kP.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=Vb(e),i=Vb(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 Vb(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new 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 UD(e){return new kP(e)}function Nd(e,t){this._context=e,this._t=t}Nd.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)}break}}this._x=e,this._y=t}};function HD(e){return new Nd(e,.5)}function WD(e){return new Nd(e,0)}function VD(e){return new Nd(e,1)}function qa(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Xm(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function KD(e,t){return e[t]}function GD(e){const t=[];return t.key=e,t}function qD(){var e=we([]),t=Xm,n=qa,r=KD;function i(a){var o=Array.from(e.apply(this,arguments),GD),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,a)]).data=f;for(l=0,c=Iy(t(o));l<s;++l)o[c[l]].index=l;return n(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:we(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:we(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Xm:typeof a=="function"?a:we(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??qa,i):n},i}function XD(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}qa(e,t)}}function YD(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,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}qa(e,t)}}function QD(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 l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,p=(f-d)/2,h=0;h<l;++h){var m=e[t[h]],w=m[r][1]||0,y=m[r-1][1]||0;p+=w-y}s+=f,u+=p*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,qa(e,t)}}function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}var ZD=["type","size","sizeType"];function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(n),!0).forEach(function(r){JD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JD(e,t,n){return t=e4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4(e){var t=t4(e,"string");return Jl(t)=="symbol"?t:t+""}function t4(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n4(e,t){if(e==null)return{};var n=r4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var NP={symbolCircle:Ry,symbolCross:ED,symbolDiamond:$D,symbolSquare:PD,symbolStar:CD,symbolTriangle:kD,symbolWye:MD},i4=Math.PI/180,a4=function(t){var n="symbol".concat(Ad(t));return NP[n]||Ry},o4=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*i4;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},l4=function(t,n){NP["symbol".concat(Ad(t))]=n},Ly=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,s=n4(t,ZD),u=Gb(Gb({},s),{},{type:r,size:a,sizeType:l}),c=function(){var w=a4(r),y=ID().type(w).size(o4(a,l,r));return y()},f=u.className,d=u.cx,p=u.cy,h=ne(u,!0);return d===+d&&p===+p&&a===+a?j.createElement("path",Ym({},h,{className:ue("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Ly.registerSymbol=l4;function Xa(e){"@babel/helpers - typeof";return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xa(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(r){es(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IP(r.key),r)}}function f4(e,t,n){return t&&c4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d4(e,t,n){return t=Gc(t),p4(e,MP()?Reflect.construct(t,n||[],Gc(e).constructor):t.apply(e,n))}function p4(e,t){if(t&&(Xa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h4(e)}function h4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MP=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gc(e)}function m4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zm(e,t)}function Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zm(e,t)}function es(e,t,n){return t=IP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(e){var t=v4(e,"string");return Xa(t)=="symbol"?t:t+""}function v4(e,t){if(Xa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qt=32,Dy=function(e){function t(){return u4(this,t),d4(this,t,arguments)}return m4(t,e),f4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Qt/2,o=Qt/6,l=Qt/3,s=r.inactive?i:r.color;if(r.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Qt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(l,`
|
201
|
+
*/var Ay=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),xd=Symbol.for("react.fragment"),bd=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Sd=Symbol.for("react.context"),tL=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),Od=Symbol.for("react.suspense"),$d=Symbol.for("react.suspense_list"),Pd=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),nL=Symbol.for("react.offscreen"),oP;oP=Symbol.for("react.module.reference");function hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ay:switch(e=e.type,e){case xd:case wd:case bd:case Od:case $d:return e;default:switch(e=e&&e.$$typeof,e){case tL:case Sd:case Ed:case jd:case Pd:case _d:return e;default:return t}}case Cy:return t}}}ve.ContextConsumer=Sd;ve.ContextProvider=_d;ve.Element=Ay;ve.ForwardRef=Ed;ve.Fragment=xd;ve.Lazy=jd;ve.Memo=Pd;ve.Portal=Cy;ve.Profiler=wd;ve.StrictMode=bd;ve.Suspense=Od;ve.SuspenseList=$d;ve.isAsyncMode=function(){return!1};ve.isConcurrentMode=function(){return!1};ve.isContextConsumer=function(e){return hn(e)===Sd};ve.isContextProvider=function(e){return hn(e)===_d};ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay};ve.isForwardRef=function(e){return hn(e)===Ed};ve.isFragment=function(e){return hn(e)===xd};ve.isLazy=function(e){return hn(e)===jd};ve.isMemo=function(e){return hn(e)===Pd};ve.isPortal=function(e){return hn(e)===Cy};ve.isProfiler=function(e){return hn(e)===wd};ve.isStrictMode=function(e){return hn(e)===bd};ve.isSuspense=function(e){return hn(e)===Od};ve.isSuspenseList=function(e){return hn(e)===$d};ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xd||e===wd||e===bd||e===Od||e===$d||e===nL||typeof e=="object"&&e!==null&&(e.$$typeof===jd||e.$$typeof===Pd||e.$$typeof===_d||e.$$typeof===Sd||e.$$typeof===Ed||e.$$typeof===oP||e.getModuleId!==void 0)};ve.typeOf=hn;aP.exports=ve;var rL=aP.exports,iL=Ar,aL=Cn,oL="[object Number]";function lL(e){return typeof e=="number"||aL(e)&&iL(e)==oL}var lP=lL;const sP=me(lP);var sL=lP;function uL(e){return sL(e)&&e!=+e}var cL=uL;const qs=me(cL);var on=function(t){return t===0?0:t>0?1:-1},ki=function(t){return Mo(t)&&t.indexOf("%")===t.length-1},G=function(t){return sP(t)&&!qs(t)},Je=function(t){return G(t)||Mo(t)},fL=0,Td=function(t){var n=++fL;return"".concat(t||"").concat(n)},kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!Mo(t))return r;var a;if(ki(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return qs(a)&&(a=r),i&&a>n&&(a=n),a},ha=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},dL=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Zt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):En(r,t))===n})}function Dm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Fm(e){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}var pL=["viewBox","children"],hL=["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"],Ib=["points","pathLength"],Zp={svg:pL,polygon:Ib,polyline:Ib},ky=["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"],zc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(b.isValidElement(t)&&(r=t.props),!Ao(r))return null;var i={};return Object.keys(r).forEach(function(a){ky.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},mL=function(t,n,r){return function(i){return t(n,r,i),null}},Xs=function(t,n,r){if(!Ao(t)||Fm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];ky.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=mL(o,n,r))}),i},vL=["children"],gL=["children"];function Rb(e,t){if(e==null)return{};var n=yL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Lb={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},fr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Db=null,Jp=null,Ny=function e(t){if(t===Db&&Array.isArray(Jp))return Jp;var n=[];return b.Children.forEach(t,function(r){le(r)||(rL.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Jp=n,Db=t,n};function On(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return fr(i)}):r=[fr(t)],Ny(e).forEach(function(i){var a=En(i,"type.displayName")||En(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function Jt(e,t){var n=On(e,t);return n&&n[0]}var Fb=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!G(r)||r<=0||!G(i)||i<=0)},xL=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],bL=function(t){return t&&t.type&&Mo(t.type)&&xL.indexOf(t.type)>=0},wL=function(t,n,r,i){var a,o=(a=Zp==null?void 0:Zp[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(n)||hL.includes(n))||r&&ky.includes(n)},ne=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(b.isValidElement(t)&&(i=t.props),!Ao(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;wL((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},Bm=function e(t,n){if(t===n)return!0;var r=b.Children.count(t);if(r!==b.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Bb(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Bb(a,o))return!1}return!0},Bb=function(t,n){if(le(t)&&le(n))return!0;if(!le(t)&&!le(n)){var r=t.props||{},i=r.children,a=Rb(r,vL),o=n.props||{},l=o.children,s=Rb(o,gL);return i&&l?Dm(a,s)&&Bm(i,l):!i&&!l?Dm(a,s):!1}return!1},zb=function(t,n){var r=[],i={};return Ny(t).forEach(function(a,o){if(bL(a))r.push(a);else if(a){var l=fr(a.type),s=n[l]||{},u=s.handler,c=s.once;if(u&&(!c||!i[l])){var f=u(a,l,o);r.push(f),i[l]=!0}}}),r},_L=function(t){var n=t&&t.type;return n&&Lb[n]?Lb[n]:null},SL=function(t,n){return Ny(n).indexOf(t)},EL=["children","width","height","viewBox","className","style","title","desc"];function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}function OL(e,t){if(e==null)return{};var n=$L(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $L(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Um(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,s=e.desc,u=OL(e,EL),c=i||{width:n,height:r,x:0,y:0},f=ue("recharts-surface",a);return j.createElement("svg",zm({},ne(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),j.createElement("title",null,l),j.createElement("desc",null,s),t)}var PL=["children","className"];function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}function jL(e,t){if(e==null)return{};var n=TL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Te=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=jL(e,PL),a=ue("recharts-layer",r);return j.createElement("g",Hm({className:a},ne(i,!0),{ref:t}),n)}),dr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]};function AL(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var uP=AL,CL=uP;function kL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CL(e,t,n)}var NL=kL,ML="\\ud800-\\udfff",IL="\\u0300-\\u036f",RL="\\ufe20-\\ufe2f",LL="\\u20d0-\\u20ff",DL=IL+RL+LL,FL="\\ufe0e\\ufe0f",BL="\\u200d",zL=RegExp("["+BL+ML+DL+FL+"]");function UL(e){return zL.test(e)}var cP=UL;function HL(e){return e.split("")}var WL=HL,fP="\\ud800-\\udfff",VL="\\u0300-\\u036f",KL="\\ufe20-\\ufe2f",GL="\\u20d0-\\u20ff",qL=VL+KL+GL,XL="\\ufe0e\\ufe0f",YL="["+fP+"]",Wm="["+qL+"]",Vm="\\ud83c[\\udffb-\\udfff]",QL="(?:"+Wm+"|"+Vm+")",dP="[^"+fP+"]",pP="(?:\\ud83c[\\udde6-\\uddff]){2}",hP="[\\ud800-\\udbff][\\udc00-\\udfff]",ZL="\\u200d",mP=QL+"?",vP="["+XL+"]?",JL="(?:"+ZL+"(?:"+[dP,pP,hP].join("|")+")"+vP+mP+")*",eD=vP+mP+JL,tD="(?:"+[dP+Wm+"?",Wm,pP,hP,YL].join("|")+")",nD=RegExp(Vm+"(?="+Vm+")|"+tD+eD,"g");function rD(e){return e.match(nD)||[]}var iD=rD,aD=WL,oD=cP,lD=iD;function sD(e){return oD(e)?lD(e):aD(e)}var uD=sD,cD=NL,fD=cP,dD=uD,pD=rP;function hD(e){return function(t){t=pD(t);var n=fD(t)?dD(t):void 0,r=n?n[0]:t.charAt(0),i=n?cD(n,1).join(""):t.slice(1);return r[e]()+i}}var mD=hD,vD=mD,gD=vD("toUpperCase"),yD=gD;const Ad=me(yD);function we(e){return function(){return e}}const gP=Math.cos,Uc=Math.sin,Nn=Math.sqrt,Hc=Math.PI,Cd=2*Hc,Km=Math.PI,Gm=2*Km,Ei=1e-6,xD=Gm-Ei;function yP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function bD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return yP;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class wD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?yP:bD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,u=i-n,c=o-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Ei)if(!(Math.abs(f*s-u*c)>Ei)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,h=i-l,m=s*s+u*u,w=p*p+h*h,y=Math.sqrt(m),g=Math.sqrt(d),x=a*Math.tan((Km-Math.acos((m+d-w)/(2*y*g)))/2),E=x/g,_=x/y;Math.abs(E-1)>Ei&&this._append`L${t+E*c},${n+E*f}`,this._append`A${a},${a},0,0,${+(f*p>c*h)},${this._x1=t+_*s},${this._y1=n+_*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ei||Math.abs(this._y1-c)>Ei)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Gm+Gm),d>xD?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Ei&&this._append`A${r},${r},0,${+(d>=Km)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function My(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new wD(t)}function Iy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xP(e){this._context=e}xP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function kd(e){return new xP(e)}function bP(e){return e[0]}function wP(e){return e[1]}function _P(e,t){var n=we(!0),r=null,i=kd,a=null,o=My(l);e=typeof e=="function"?e:e===void 0?bP:we(e),t=typeof t=="function"?t:t===void 0?wP:we(t);function l(s){var u,c=(s=Iy(s)).length,f,d=!1,p;for(r==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&n(f=s[u],u,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,s),+t(f,u,s));if(p)return a=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:we(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:we(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:we(!!s),l):n},l.curve=function(s){return arguments.length?(i=s,r!=null&&(a=i(r)),l):i},l.context=function(s){return arguments.length?(s==null?r=a=null:a=i(r=s),l):r},l}function Mu(e,t,n){var r=null,i=we(!0),a=null,o=kd,l=null,s=My(u);e=typeof e=="function"?e:e===void 0?bP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?wP:we(+n);function u(f){var d,p,h,m=(f=Iy(f)).length,w,y=!1,g,x=new Array(m),E=new Array(m);for(a==null&&(l=o(g=s())),d=0;d<=m;++d){if(!(d<m&&i(w=f[d],d,f))===y)if(y=!y)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=d-1;h>=p;--h)l.point(x[h],E[h]);l.lineEnd(),l.areaEnd()}y&&(x[d]=+e(w,d,f),E[d]=+t(w,d,f),l.point(r?+r(w,d,f):x[d],n?+n(w,d,f):E[d]))}if(g)return l=null,g+""||null}function c(){return _P().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:we(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class SP{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _D(e){return new SP(e,!0)}function SD(e){return new SP(e,!1)}const Ry={draw(e,t){const n=Nn(t/Hc);e.moveTo(n,0),e.arc(0,0,n,0,Cd)}},ED={draw(e,t){const n=Nn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},EP=Nn(1/3),OD=EP*2,$D={draw(e,t){const n=Nn(t/OD),r=n*EP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},PD={draw(e,t){const n=Nn(t),r=-n/2;e.rect(r,r,n,n)}},jD=.8908130915292852,OP=Uc(Hc/10)/Uc(7*Hc/10),TD=Uc(Cd/10)*OP,AD=-gP(Cd/10)*OP,CD={draw(e,t){const n=Nn(t*jD),r=TD*n,i=AD*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Cd*a/5,l=gP(o),s=Uc(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},eh=Nn(3),kD={draw(e,t){const n=-Nn(t/(eh*3));e.moveTo(0,n*2),e.lineTo(-eh*n,-n),e.lineTo(eh*n,-n),e.closePath()}},Xt=-.5,Yt=Nn(3)/2,qm=1/Nn(12),ND=(qm/2+1)*3,MD={draw(e,t){const n=Nn(t/ND),r=n/2,i=n*qm,a=r,o=n*qm+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Xt*r-Yt*i,Yt*r+Xt*i),e.lineTo(Xt*a-Yt*o,Yt*a+Xt*o),e.lineTo(Xt*l-Yt*s,Yt*l+Xt*s),e.lineTo(Xt*r+Yt*i,Xt*i-Yt*r),e.lineTo(Xt*a+Yt*o,Xt*o-Yt*a),e.lineTo(Xt*l+Yt*s,Xt*s-Yt*l),e.closePath()}};function ID(e,t){let n=null,r=My(i);e=typeof e=="function"?e:we(e||Ry),t=typeof t=="function"?t:we(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:we(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:we(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Wc(){}function Vc(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 $P(e){this._context=e}$P.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:Vc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RD(e){return new $P(e)}function PP(e){this._context=e}PP.prototype={areaStart:Wc,areaEnd:Wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LD(e){return new PP(e)}function jP(e){this._context=e}jP.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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DD(e){return new jP(e)}function TP(e){this._context=e}TP.prototype={areaStart:Wc,areaEnd:Wc,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 FD(e){return new TP(e)}function Ub(e){return e<0?-1:1}function Hb(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),l=(a*i+o*r)/(r+i);return(Ub(a)+Ub(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Wb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function th(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Kc(e){this._context=e}Kc.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:th(this,this._t0,Wb(this,this._t0));break}(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,th(this,Wb(this,n=Hb(this,e,t)),n);break;default:th(this,this._t0,n=Hb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function AP(e){this._context=new CP(e)}(AP.prototype=Object.create(Kc.prototype)).point=function(e,t){Kc.prototype.point.call(this,t,e)};function CP(e){this._context=e}CP.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 BD(e){return new Kc(e)}function zD(e){return new AP(e)}function kP(e){this._context=e}kP.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=Vb(e),i=Vb(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 Vb(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new 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 UD(e){return new kP(e)}function Nd(e,t){this._context=e,this._t=t}Nd.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)}break}}this._x=e,this._y=t}};function HD(e){return new Nd(e,.5)}function WD(e){return new Nd(e,0)}function VD(e){return new Nd(e,1)}function Xa(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Xm(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function KD(e,t){return e[t]}function GD(e){const t=[];return t.key=e,t}function qD(){var e=we([]),t=Xm,n=Xa,r=KD;function i(a){var o=Array.from(e.apply(this,arguments),GD),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,a)]).data=f;for(l=0,c=Iy(t(o));l<s;++l)o[c[l]].index=l;return n(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:we(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:we(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Xm:typeof a=="function"?a:we(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Xa,i):n},i}function XD(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}Xa(e,t)}}function YD(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,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Xa(e,t)}}function QD(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 l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,p=(f-d)/2,h=0;h<l;++h){var m=e[t[h]],w=m[r][1]||0,y=m[r-1][1]||0;p+=w-y}s+=f,u+=p*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,Xa(e,t)}}function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}var ZD=["type","size","sizeType"];function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(n),!0).forEach(function(r){JD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JD(e,t,n){return t=e4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4(e){var t=t4(e,"string");return ts(t)=="symbol"?t:t+""}function t4(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n4(e,t){if(e==null)return{};var n=r4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var NP={symbolCircle:Ry,symbolCross:ED,symbolDiamond:$D,symbolSquare:PD,symbolStar:CD,symbolTriangle:kD,symbolWye:MD},i4=Math.PI/180,a4=function(t){var n="symbol".concat(Ad(t));return NP[n]||Ry},o4=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*i4;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},l4=function(t,n){NP["symbol".concat(Ad(t))]=n},Ly=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,s=n4(t,ZD),u=Gb(Gb({},s),{},{type:r,size:a,sizeType:l}),c=function(){var w=a4(r),y=ID().type(w).size(o4(a,l,r));return y()},f=u.className,d=u.cx,p=u.cy,h=ne(u,!0);return d===+d&&p===+p&&a===+a?j.createElement("path",Ym({},h,{className:ue("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Ly.registerSymbol=l4;function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(r){ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IP(r.key),r)}}function f4(e,t,n){return t&&c4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d4(e,t,n){return t=Gc(t),p4(e,MP()?Reflect.construct(t,n||[],Gc(e).constructor):t.apply(e,n))}function p4(e,t){if(t&&(Ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h4(e)}function h4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MP=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gc(e)}function m4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zm(e,t)}function Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zm(e,t)}function ns(e,t,n){return t=IP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(e){var t=v4(e,"string");return Ya(t)=="symbol"?t:t+""}function v4(e,t){if(Ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qt=32,Dy=function(e){function t(){return u4(this,t),d4(this,t,arguments)}return m4(t,e),f4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Qt/2,o=Qt/6,l=Qt/3,s=r.inactive?i:r.color;if(r.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Qt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(l,`
|
202
202
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
|
203
203
|
H`).concat(Qt,"M").concat(2*l,",").concat(a,`
|
204
|
-
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return j.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Qt/8,"h").concat(Qt,"v").concat(Qt*3/4,"h").concat(-Qt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=s4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Ly,{fill:s,cx:a,cy:a,size:Qt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,s=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Qt,height:Qt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,h){var m=p.formatter||s,w=ue(es(es({"recharts-legend-item":!0},"legend-item-".concat(h),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=te(p.value)?null:p.value;dr(!te(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var v=p.inactive?u:p.color;return j.createElement("li",Qm({className:w,style:f,key:"legend-item-".concat(h)},Gs(r.props,p,h)),j.createElement(Um,{width:o,height:o,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(y,p,h):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(b.PureComponent);es(Dy,"displayName","Legend");es(Dy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var g4=hd;function y4(){this.__data__=new g4,this.size=0}var x4=y4;function b4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var w4=b4;function _4(e){return this.__data__.get(e)}var S4=_4;function E4(e){return this.__data__.has(e)}var O4=E4,$4=hd,P4=Py,j4=jy,T4=200;function A4(e,t){var n=this.__data__;if(n instanceof $4){var r=n.__data__;if(!P4||r.length<T4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new j4(r)}return n.set(e,t),this.size=n.size,this}var C4=A4,k4=hd,N4=x4,M4=w4,I4=S4,R4=O4,L4=C4;function Mo(e){var t=this.__data__=new k4(e);this.size=t.size}Mo.prototype.clear=N4;Mo.prototype.delete=M4;Mo.prototype.get=I4;Mo.prototype.has=R4;Mo.prototype.set=L4;var Fy=Mo,D4="__lodash_hash_undefined__";function F4(e){return this.__data__.set(e,D4),this}var B4=F4;function z4(e){return this.__data__.has(e)}var U4=z4,H4=jy,W4=B4,V4=U4;function qc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new H4;++t<n;)this.add(e[t])}qc.prototype.add=qc.prototype.push=W4;qc.prototype.has=V4;var RP=qc;function K4(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var LP=K4;function G4(e,t){return e.has(t)}var DP=G4,q4=RP,X4=LP,Y4=DP,Q4=1,Z4=2;function J4(e,t,n,r,i,a){var o=n&Q4,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=n&Z4?new q4:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var h=e[f],m=t[f];if(r)var w=o?r(m,h,f,t,e,a):r(h,m,f,e,t,a);if(w!==void 0){if(w)continue;d=!1;break}if(p){if(!X4(t,function(y,v){if(!Y4(p,v)&&(h===y||i(h,y,n,r,a)))return p.push(v)})){d=!1;break}}else if(!(h===m||i(h,m,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var FP=J4,e8=An,t8=e8.Uint8Array,BP=t8;function n8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var r8=n8;function i8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var By=i8,Xb=Po,Yb=BP,a8=dd,o8=FP,l8=r8,s8=By,u8=1,c8=2,f8="[object Boolean]",d8="[object Date]",p8="[object Error]",h8="[object Map]",m8="[object Number]",v8="[object RegExp]",g8="[object Set]",y8="[object String]",x8="[object Symbol]",b8="[object ArrayBuffer]",w8="[object DataView]",Qb=Xb?Xb.prototype:void 0,nh=Qb?Qb.valueOf:void 0;function _8(e,t,n,r,i,a,o){switch(n){case w8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b8:return!(e.byteLength!=t.byteLength||!a(new Yb(e),new Yb(t)));case f8:case d8:case m8:return a8(+e,+t);case p8:return e.name==t.name&&e.message==t.message;case v8:case y8:return e==t+"";case h8:var l=l8;case g8:var s=r&u8;if(l||(l=s8),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=c8,o.set(e,t);var c=o8(l(e),l(t),r,i,a,o);return o.delete(e),c;case x8:if(nh)return nh.call(e)==nh.call(t)}return!1}var S8=_8;function E8(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zy=E8,O8=zy,$8=jt;function P8(e,t,n){var r=t(e);return $8(e)?r:O8(r,n(e))}var zP=P8;function j8(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var T8=j8;function A8(){return[]}var UP=A8,C8=T8,k8=UP,N8=Object.prototype,M8=N8.propertyIsEnumerable,Zb=Object.getOwnPropertySymbols,I8=Zb?function(e){return e==null?[]:(e=Object(e),C8(Zb(e),function(t){return M8.call(e,t)}))}:k8,Uy=I8;function R8(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var L8=R8,D8=Tr,F8=Cn,B8="[object Arguments]";function z8(e){return F8(e)&&D8(e)==B8}var U8=z8,Jb=U8,H8=Cn,HP=Object.prototype,W8=HP.hasOwnProperty,V8=HP.propertyIsEnumerable,K8=Jb(function(){return arguments}())?Jb:function(e){return H8(e)&&W8.call(e,"callee")&&!V8.call(e,"callee")},Hy=K8,Xc={exports:{}};function G8(){return!1}var q8=G8;Xc.exports;(function(e,t){var n=An,r=q8,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Xc,Xc.exports);var Wy=Xc.exports,X8=9007199254740991,Y8=/^(?:0|[1-9]\d*)$/;function Q8(e,t){var n=typeof e;return t=t??X8,!!t&&(n=="number"||n!="symbol"&&Y8.test(e))&&e>-1&&e%1==0&&e<t}var Vy=Q8,Z8=9007199254740991;function J8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Z8}var Ky=J8,eF=Tr,tF=Ky,nF=Cn,rF="[object Arguments]",iF="[object Array]",aF="[object Boolean]",oF="[object Date]",lF="[object Error]",sF="[object Function]",uF="[object Map]",cF="[object Number]",fF="[object Object]",dF="[object RegExp]",pF="[object Set]",hF="[object String]",mF="[object WeakMap]",vF="[object ArrayBuffer]",gF="[object DataView]",yF="[object Float32Array]",xF="[object Float64Array]",bF="[object Int8Array]",wF="[object Int16Array]",_F="[object Int32Array]",SF="[object Uint8Array]",EF="[object Uint8ClampedArray]",OF="[object Uint16Array]",$F="[object Uint32Array]",Pe={};Pe[yF]=Pe[xF]=Pe[bF]=Pe[wF]=Pe[_F]=Pe[SF]=Pe[EF]=Pe[OF]=Pe[$F]=!0;Pe[rF]=Pe[iF]=Pe[vF]=Pe[aF]=Pe[gF]=Pe[oF]=Pe[lF]=Pe[sF]=Pe[uF]=Pe[cF]=Pe[fF]=Pe[dF]=Pe[pF]=Pe[hF]=Pe[mF]=!1;function PF(e){return nF(e)&&tF(e.length)&&!!Pe[eF(e)]}var jF=PF;function TF(e){return function(t){return e(t)}}var Md=TF,Yc={exports:{}};Yc.exports;(function(e,t){var n=Q$,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Yc,Yc.exports);var Gy=Yc.exports,AF=jF,CF=Md,e1=Gy,t1=e1&&e1.isTypedArray,kF=t1?CF(t1):AF,WP=kF,NF=L8,MF=Hy,IF=jt,RF=Wy,LF=Vy,DF=WP,FF=Object.prototype,BF=FF.hasOwnProperty;function zF(e,t){var n=IF(e),r=!n&&MF(e),i=!n&&!r&&RF(e),a=!n&&!r&&!i&&DF(e),o=n||r||i||a,l=o?NF(e.length,String):[],s=l.length;for(var u in e)(t||BF.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||LF(u,s)))&&l.push(u);return l}var VP=zF,UF=Object.prototype;function HF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||UF;return e===n}var qy=HF;function WF(e,t){return function(n){return e(t(n))}}var KP=WF,VF=KP,KF=VF(Object.keys,Object),GF=KF,qF=qy,XF=GF,YF=Object.prototype,QF=YF.hasOwnProperty;function ZF(e){if(!qF(e))return XF(e);var t=[];for(var n in Object(e))QF.call(e,n)&&n!="constructor"&&t.push(n);return t}var JF=ZF,e6=$y,t6=Ky;function n6(e){return e!=null&&t6(e.length)&&!e6(e)}var qs=n6,r6=VP,i6=JF,a6=qs;function o6(e){return a6(e)?r6(e):i6(e)}var Xs=o6,l6=zP,s6=Uy,u6=Xs;function c6(e){return l6(e,u6,s6)}var GP=c6,n1=GP,f6=1,d6=Object.prototype,p6=d6.hasOwnProperty;function h6(e,t,n,r,i,a){var o=n&f6,l=n1(e),s=l.length,u=n1(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:p6.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var w=o;++f<s;){d=l[f];var y=e[d],v=t[d];if(r)var x=o?r(v,y,d,t,e,a):r(y,v,d,e,t,a);if(!(x===void 0?y===v||i(y,v,n,r,a):x)){m=!1;break}w||(w=d=="constructor")}if(m&&!w){var E=e.constructor,_=t.constructor;E!=_&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(e),a.delete(t),m}var m6=h6,v6=ia,g6=An,y6=v6(g6,"DataView"),x6=y6,b6=ia,w6=An,_6=b6(w6,"Promise"),S6=_6,E6=ia,O6=An,$6=E6(O6,"Set"),qP=$6,P6=ia,j6=An,T6=P6(j6,"WeakMap"),A6=T6,Jm=x6,ev=Py,tv=S6,nv=qP,rv=A6,XP=Tr,Io=J$,r1="[object Map]",C6="[object Object]",i1="[object Promise]",a1="[object Set]",o1="[object WeakMap]",l1="[object DataView]",k6=Io(Jm),N6=Io(ev),M6=Io(tv),I6=Io(nv),R6=Io(rv),Ei=XP;(Jm&&Ei(new Jm(new ArrayBuffer(1)))!=l1||ev&&Ei(new ev)!=r1||tv&&Ei(tv.resolve())!=i1||nv&&Ei(new nv)!=a1||rv&&Ei(new rv)!=o1)&&(Ei=function(e){var t=XP(e),n=t==C6?e.constructor:void 0,r=n?Io(n):"";if(r)switch(r){case k6:return l1;case N6:return r1;case M6:return i1;case I6:return a1;case R6:return o1}return t});var Id=Ei,rh=Fy,L6=FP,D6=S8,F6=m6,s1=Id,u1=jt,c1=Wy,B6=WP,z6=1,f1="[object Arguments]",d1="[object Array]",Nu="[object Object]",U6=Object.prototype,p1=U6.hasOwnProperty;function H6(e,t,n,r,i,a){var o=u1(e),l=u1(t),s=o?d1:s1(e),u=l?d1:s1(t);s=s==f1?Nu:s,u=u==f1?Nu:u;var c=s==Nu,f=u==Nu,d=s==u;if(d&&c1(e)){if(!c1(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new rh),o||B6(e)?L6(e,t,n,r,i,a):D6(e,t,s,n,r,i,a);if(!(n&z6)){var p=c&&p1.call(e,"__wrapped__"),h=f&&p1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,w=h?t.value():t;return a||(a=new rh),i(m,w,n,r,a)}}return d?(a||(a=new rh),F6(e,t,n,r,i,a)):!1}var W6=H6,V6=W6,h1=Cn;function YP(e,t,n,r,i){return e===t?!0:e==null||t==null||!h1(e)&&!h1(t)?e!==e&&t!==t:V6(e,t,n,r,YP,i)}var Xy=YP,K6=Fy,G6=Xy,q6=1,X6=2;function Y6(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],u=e[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new K6;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?G6(c,u,q6|X6,r,f):d))return!1}}return!0}var Q6=Y6,Z6=kn;function J6(e){return e===e&&!Z6(e)}var QP=J6,eB=QP,tB=Xs;function nB(e){for(var t=tB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eB(i)]}return t}var rB=nB;function iB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var ZP=iB,aB=Q6,oB=rB,lB=ZP;function sB(e){var t=oB(e);return t.length==1&&t[0][2]?lB(t[0][0],t[0][1]):function(n){return n===e||aB(n,e,t)}}var uB=sB;function cB(e,t){return e!=null&&t in Object(e)}var fB=cB,dB=gd,pB=Hy,hB=jt,mB=Vy,vB=Ky,gB=Vs;function yB(e,t,n){t=dB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&vB(i)&&mB(o,i)&&(hB(e)||pB(e)))}var xB=yB,bB=fB,wB=xB;function _B(e,t){return e!=null&&wB(e,t,bB)}var SB=_B,EB=Xy,OB=iP,$B=SB,PB=Oy,jB=QP,TB=ZP,AB=Vs,CB=1,kB=2;function NB(e,t){return PB(e)&&jB(t)?TB(AB(e),t):function(n){var r=OB(n,e);return r===void 0&&r===t?$B(n,e):EB(t,r,CB|kB)}}var MB=NB;function IB(e){return e}var Ro=IB;function RB(e){return function(t){return t==null?void 0:t[e]}}var LB=RB,DB=yd;function FB(e){return function(t){return DB(t,e)}}var BB=FB,zB=LB,UB=BB,HB=Oy,WB=Vs;function VB(e){return HB(e)?zB(WB(e)):UB(e)}var KB=VB,GB=uB,qB=MB,XB=Ro,YB=jt,QB=KB;function ZB(e){return typeof e=="function"?e:e==null?XB:typeof e=="object"?YB(e)?qB(e[0],e[1]):GB(e):QB(e)}var fi=ZB;function JB(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var e7=JB;function t7(e){return e!==e}var n7=t7;function r7(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var i7=r7,a7=e7,o7=n7,l7=i7;function s7(e,t,n){return t===t?l7(e,t,n):a7(e,o7,n)}var u7=s7,c7=u7;function f7(e,t){var n=e==null?0:e.length;return!!n&&c7(e,t,0)>-1}var d7=f7;function p7(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var h7=p7;function m7(){}var v7=m7,ih=qP,g7=v7,y7=By,x7=1/0,b7=ih&&1/y7(new ih([,-0]))[1]==x7?function(e){return new ih(e)}:g7,w7=b7,_7=RP,S7=d7,E7=h7,O7=DP,$7=w7,P7=By,j7=200;function T7(e,t,n){var r=-1,i=S7,a=e.length,o=!0,l=[],s=l;if(n)o=!1,i=E7;else if(a>=j7){var u=t?null:$7(e);if(u)return P7(u);o=!1,i=O7,s=new _7}else s=t?[]:l;e:for(;++r<a;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else i(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}var A7=T7,C7=fi,k7=A7;function N7(e,t){return e&&e.length?k7(e,C7(t)):[]}var M7=N7;const m1=me(M7);function JP(e,t,n){return t===!0?m1(e,n):te(t)?m1(e,t):e}function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}var I7=["ref"];function v1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){Rd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,t2(r.key),r)}}function L7(e,t,n){return t&&g1(e.prototype,t),n&&g1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D7(e,t,n){return t=Qc(t),F7(e,e2()?Reflect.construct(t,n||[],Qc(e).constructor):t.apply(e,n))}function F7(e,t){if(t&&(Ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B7(e)}function B7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e2=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qc(e)}function z7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iv(e,t)}function Rd(e,t,n){return t=t2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(e){var t=U7(e,"string");return Ya(t)=="symbol"?t:t+""}function U7(e,t){if(Ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H7(e,t){if(e==null)return{};var n=W7(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V7(e){return e.value}function K7(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=H7(t,I7);return j.createElement(Dy,n)}var y1=1,La=function(e){function t(){var n;R7(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=D7(this,t,[].concat(i)),Rd(n,"lastBoundingBox",{width:-1,height:-1}),n}return z7(t,e),L7(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>y1||Math.abs(i.height-this.lastBoundingBox.height)>y1)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Jn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,s=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((c||0)-h.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Jn(Jn({},f),d)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Jn(Jn({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return j.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},K7(a,Jn(Jn({},this.props),{},{payload:JP(c,u,V7)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Jn(Jn({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&G(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(b.PureComponent);Rd(La,"displayName","Legend");Rd(La,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var x1=Po,G7=Hy,q7=jt,b1=x1?x1.isConcatSpreadable:void 0;function X7(e){return q7(e)||G7(e)||!!(b1&&e&&e[b1])}var Y7=X7,Q7=zy,Z7=Y7;function n2(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Z7),i||(i=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?n2(l,t-1,n,r,i):Q7(i,l):r||(i[i.length]=l)}return i}var Yy=n2;function J7(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var e9=J7,t9=e9,n9=t9(),r9=n9,i9=r9,a9=Xs;function o9(e,t){return e&&i9(e,t,a9)}var r2=o9,l9=qs;function s9(e,t){return function(n,r){if(n==null)return n;if(!l9(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var u9=s9,c9=r2,f9=u9,d9=f9(c9),Qy=d9,p9=Qy,h9=qs;function m9(e,t){var n=-1,r=h9(e)?Array(e.length):[];return p9(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var i2=m9;function v9(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var g9=v9,w1=jo;function y9(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=w1(e),o=t!==void 0,l=t===null,s=t===t,u=w1(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var x9=y9,b9=x9;function w9(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=b9(i[r],a[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var _9=w9,ah=vd,S9=yd,E9=fi,O9=i2,$9=g9,P9=Md,j9=_9,T9=Ro,A9=jt;function C9(e,t,n){t.length?t=ah(t,function(a){return A9(a)?function(o){return S9(o,a.length===1?a[0]:a)}:a}):t=[T9];var r=-1;t=ah(t,P9(E9));var i=O9(e,function(a,o,l){var s=ah(t,function(u){return u(a)});return{criteria:s,index:++r,value:a}});return $9(i,function(a,o){return j9(a,o,n)})}var k9=C9;function N9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var M9=N9,I9=M9,_1=Math.max;function R9(e,t,n){return t=_1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(o),I9(e,this,l)}}var a2=R9;function L9(e){return function(){return e}}var D9=L9,F9=ia,B9=function(){try{var e=F9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),o2=B9,z9=D9,S1=o2,U9=Ro,H9=S1?function(e,t){return S1(e,"toString",{configurable:!0,enumerable:!1,value:z9(t),writable:!0})}:U9,W9=H9,V9=800,K9=16,G9=Date.now;function q9(e){var t=0,n=0;return function(){var r=G9(),i=K9-(r-n);if(n=r,i>0){if(++t>=V9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var X9=q9,Y9=W9,Q9=X9,Z9=Q9(Y9),l2=Z9,J9=Ro,ez=a2,tz=l2;function nz(e,t){return tz(ez(e,t,J9),e+"")}var rz=nz,iz=dd,az=qs,oz=Vy,lz=kn;function sz(e,t,n){if(!lz(n))return!1;var r=typeof t;return(r=="number"?az(n)&&oz(t,n.length):r=="string"&&t in n)?iz(n[t],e):!1}var Ld=sz,uz=Yy,cz=k9,fz=rz,E1=Ld,dz=fz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&E1(e,t[0],t[1])?t=[]:n>2&&E1(t[0],t[1],t[2])&&(t=[t[0]]),cz(e,uz(t,1),[])}),pz=dz;const Zy=me(pz);function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}function hz(e,t){return yz(e)||gz(e,t)||vz(e,t)||mz()}function mz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
205
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vz(e,t){if(e){if(typeof e=="string")return O1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O1(e,t)}}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function yz(e){if(Array.isArray(e))return e}function $1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(n),!0).forEach(function(r){xz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xz(e,t,n){return t=bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=wz(e,"string");return ts(t)=="symbol"?t:t+""}function wz(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _z(e){return Array.isArray(e)&&Je(e[0])&&Je(e[1])?e.join(" ~ "):e}var Sz=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,c=t.payload,f=t.formatter,d=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,m=t.label,w=t.labelFormatter,y=t.accessibilityLayer,v=y===void 0?!1:y,x=function(){if(c&&c.length){var N={padding:0,margin:0},I=(d?Zy(c,d):c).map(function(D,M){if(D.type==="none")return null;var F=oh({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),R=D.formatter||f||_z,P=D.value,k=D.name,B=P,L=k;if(R&&B!=null&&L!=null){var U=R(P,k,D,M,c);if(Array.isArray(U)){var V=hz(U,2);B=V[0],L=V[1]}else B=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:F},Je(L)?j.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Je(L)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},B),j.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:N},I)}return null},E=oh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=oh({margin:0},u),S=!le(m),O=S?m:"",$=ue("recharts-default-tooltip",p),T=ue("recharts-tooltip-label",h);S&&w&&c!==void 0&&c!==null&&(O=w(m,c));var C=v?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",av({className:$,style:E},C),j.createElement("p",{className:T,style:_},j.isValidElement(O)?O:"".concat(O)),x())};function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function Mu(e,t,n){return t=Ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ez(e){var t=Oz(e,"string");return ns(t)=="symbol"?t:t+""}function Oz(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nl="recharts-tooltip-wrapper",$z={visibility:"hidden"};function Pz(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ue(nl,Mu(Mu(Mu(Mu({},"".concat(nl,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(nl,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(nl,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(nl,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function P1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(a&&G(a[r]))return a[r];var c=n[r]-l-i,f=n[r]+i;if(t[r])return o[r]?c:f;if(o[r]){var d=c,p=s[r];return d<p?Math.max(f,s[r]):Math.max(c,s[r])}var h=f+l,m=s[r]+u;return h>m?Math.max(c,s[r]):Math.max(f,s[r])}function jz(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Tz(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,c,f;return o.height>0&&o.width>0&&n?(c=P1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=P1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=jz({translateX:c,translateY:f,useTranslate3d:l})):u=$z,{cssProperties:u,cssClasses:Pz({translateX:c,translateY:f,coordinate:n})}}function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function j1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j1(Object(n),!0).forEach(function(r){lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u2(r.key),r)}}function kz(e,t,n){return t&&Cz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nz(e,t,n){return t=Zc(t),Mz(e,s2()?Reflect.construct(t,n||[],Zc(e).constructor):t.apply(e,n))}function Mz(e,t){if(t&&(Qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iz(e)}function Iz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s2=function(){return!!e})()}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zc(e)}function Rz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ov(e,t)}function lv(e,t,n){return t=u2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u2(e){var t=Lz(e,"string");return Qa(t)=="symbol"?t:t+""}function Lz(e,t){if(Qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A1=1,Dz=function(e){function t(){var n;Az(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Nz(this,t,[].concat(i)),lv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),lv(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,c;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(c=n.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),n}return Rz(t,e),kz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>A1||Math.abs(r.height-this.state.lastBoundingBox.height)>A1)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,m=i.reverseDirection,w=i.useTranslate3d,y=i.viewBox,v=i.wrapperStyle,x=Tz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:h,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:y}),E=x.cssClasses,_=x.cssProperties,S=T1(T1({transition:d&&a?"transform ".concat(l,"ms ").concat(s):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},v);return j.createElement("div",{tabIndex:-1,className:E,style:S,ref:function($){r.wrapperNode=$}},u)}}])}(b.PureComponent),Fz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ei={isSsr:Fz(),get:function(t){return ei[t]},set:function(t,n){if(typeof t=="string")ei[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ei[i]=t[i]})}}};function Za(e){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){Jy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f2(r.key),r)}}function Uz(e,t,n){return t&&zz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hz(e,t,n){return t=Jc(t),Wz(e,c2()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function Wz(e,t){if(t&&(Za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vz(e)}function Vz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c2=function(){return!!e})()}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jc(e)}function Kz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sv(e,t)}function Jy(e,t,n){return t=f2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f2(e){var t=Gz(e,"string");return Za(t)=="symbol"?t:t+""}function Gz(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qz(e){return e.dataKey}function Xz(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(Sz,t)}var tr=function(e){function t(){return Bz(this,t),Hz(this,t,arguments)}return Kz(t,e),Uz(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,p=i.offset,h=i.payload,m=i.payloadUniqBy,w=i.position,y=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,E=i.wrapperStyle,_=h??[];f&&_.length&&(_=JP(h.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),m,qz));var S=_.length>0;return j.createElement(Dz,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:d,active:a,coordinate:c,hasPayload:S,offset:p,position:w,reverseDirection:y,useTranslate3d:v,viewBox:x,wrapperStyle:E},Xz(u,k1(k1({},this.props),{},{payload:_})))}}])}(b.PureComponent);Jy(tr,"displayName","Tooltip");Jy(tr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ei.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Yz=An,Qz=function(){return Yz.Date.now()},Zz=Qz,Jz=/\s/;function eU(e){for(var t=e.length;t--&&Jz.test(e.charAt(t)););return t}var tU=eU,nU=tU,rU=/^\s+/;function iU(e){return e&&e.slice(0,nU(e)+1).replace(rU,"")}var aU=iU,oU=aU,N1=kn,lU=jo,M1=NaN,sU=/^[-+]0x[0-9a-f]+$/i,uU=/^0b[01]+$/i,cU=/^0o[0-7]+$/i,fU=parseInt;function dU(e){if(typeof e=="number")return e;if(lU(e))return M1;if(N1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=N1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=oU(e);var n=uU.test(e);return n||cU.test(e)?fU(e.slice(2),n?2:8):sU.test(e)?M1:+e}var d2=dU,pU=kn,lh=Zz,I1=d2,hU="Expected a function",mU=Math.max,vU=Math.min;function gU(e,t,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(hU);t=I1(t)||0,pU(n)&&(c=!!n.leading,f="maxWait"in n,a=f?mU(I1(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function p(S){var O=r,$=i;return r=i=void 0,u=S,o=e.apply($,O),o}function h(S){return u=S,l=setTimeout(y,t),c?p(S):o}function m(S){var O=S-s,$=S-u,T=t-O;return f?vU(T,a-$):T}function w(S){var O=S-s,$=S-u;return s===void 0||O>=t||O<0||f&&$>=a}function y(){var S=lh();if(w(S))return v(S);l=setTimeout(y,m(S))}function v(S){return l=void 0,d&&r?p(S):(r=i=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function E(){return l===void 0?o:v(lh())}function _(){var S=lh(),O=w(S);if(r=arguments,i=this,s=S,O){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return _.cancel=x,_.flush=E,_}var yU=gU,xU=yU,bU=kn,wU="Expected a function";function _U(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(wU);return bU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xU(e,t,{leading:r,maxWait:t,trailing:i})}var SU=_U;const p2=me(SU);function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(n),!0).forEach(function(r){EU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EU(e,t,n){return t=OU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OU(e){var t=$U(e,"string");return rs(t)=="symbol"?t:t+""}function $U(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PU(e,t){return CU(e)||AU(e,t)||TU(e,t)||jU()}function jU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
206
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TU(e,t){if(e){if(typeof e=="string")return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(e,t)}}function L1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function CU(e){if(Array.isArray(e))return e}var
|
207
|
-
maybe you don't need to use a ResponsiveContainer.`,o,s),dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=
|
204
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return j.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Qt/8,"h").concat(Qt,"v").concat(Qt*3/4,"h").concat(-Qt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=s4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Ly,{fill:s,cx:a,cy:a,size:Qt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,s=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Qt,height:Qt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,h){var m=p.formatter||s,w=ue(ns(ns({"recharts-legend-item":!0},"legend-item-".concat(h),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=te(p.value)?null:p.value;dr(!te(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var g=p.inactive?u:p.color;return j.createElement("li",Qm({className:w,style:f,key:"legend-item-".concat(h)},Xs(r.props,p,h)),j.createElement(Um,{width:o,height:o,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m?m(y,p,h):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(b.PureComponent);ns(Dy,"displayName","Legend");ns(Dy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var g4=hd;function y4(){this.__data__=new g4,this.size=0}var x4=y4;function b4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var w4=b4;function _4(e){return this.__data__.get(e)}var S4=_4;function E4(e){return this.__data__.has(e)}var O4=E4,$4=hd,P4=Py,j4=jy,T4=200;function A4(e,t){var n=this.__data__;if(n instanceof $4){var r=n.__data__;if(!P4||r.length<T4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new j4(r)}return n.set(e,t),this.size=n.size,this}var C4=A4,k4=hd,N4=x4,M4=w4,I4=S4,R4=O4,L4=C4;function Io(e){var t=this.__data__=new k4(e);this.size=t.size}Io.prototype.clear=N4;Io.prototype.delete=M4;Io.prototype.get=I4;Io.prototype.has=R4;Io.prototype.set=L4;var Fy=Io,D4="__lodash_hash_undefined__";function F4(e){return this.__data__.set(e,D4),this}var B4=F4;function z4(e){return this.__data__.has(e)}var U4=z4,H4=jy,W4=B4,V4=U4;function qc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new H4;++t<n;)this.add(e[t])}qc.prototype.add=qc.prototype.push=W4;qc.prototype.has=V4;var RP=qc;function K4(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var LP=K4;function G4(e,t){return e.has(t)}var DP=G4,q4=RP,X4=LP,Y4=DP,Q4=1,Z4=2;function J4(e,t,n,r,i,a){var o=n&Q4,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=n&Z4?new q4:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var h=e[f],m=t[f];if(r)var w=o?r(m,h,f,t,e,a):r(h,m,f,e,t,a);if(w!==void 0){if(w)continue;d=!1;break}if(p){if(!X4(t,function(y,g){if(!Y4(p,g)&&(h===y||i(h,y,n,r,a)))return p.push(g)})){d=!1;break}}else if(!(h===m||i(h,m,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var FP=J4,e8=An,t8=e8.Uint8Array,BP=t8;function n8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var r8=n8;function i8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var By=i8,Xb=jo,Yb=BP,a8=dd,o8=FP,l8=r8,s8=By,u8=1,c8=2,f8="[object Boolean]",d8="[object Date]",p8="[object Error]",h8="[object Map]",m8="[object Number]",v8="[object RegExp]",g8="[object Set]",y8="[object String]",x8="[object Symbol]",b8="[object ArrayBuffer]",w8="[object DataView]",Qb=Xb?Xb.prototype:void 0,nh=Qb?Qb.valueOf:void 0;function _8(e,t,n,r,i,a,o){switch(n){case w8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b8:return!(e.byteLength!=t.byteLength||!a(new Yb(e),new Yb(t)));case f8:case d8:case m8:return a8(+e,+t);case p8:return e.name==t.name&&e.message==t.message;case v8:case y8:return e==t+"";case h8:var l=l8;case g8:var s=r&u8;if(l||(l=s8),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=c8,o.set(e,t);var c=o8(l(e),l(t),r,i,a,o);return o.delete(e),c;case x8:if(nh)return nh.call(e)==nh.call(t)}return!1}var S8=_8;function E8(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zy=E8,O8=zy,$8=jt;function P8(e,t,n){var r=t(e);return $8(e)?r:O8(r,n(e))}var zP=P8;function j8(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var T8=j8;function A8(){return[]}var UP=A8,C8=T8,k8=UP,N8=Object.prototype,M8=N8.propertyIsEnumerable,Zb=Object.getOwnPropertySymbols,I8=Zb?function(e){return e==null?[]:(e=Object(e),C8(Zb(e),function(t){return M8.call(e,t)}))}:k8,Uy=I8;function R8(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var L8=R8,D8=Ar,F8=Cn,B8="[object Arguments]";function z8(e){return F8(e)&&D8(e)==B8}var U8=z8,Jb=U8,H8=Cn,HP=Object.prototype,W8=HP.hasOwnProperty,V8=HP.propertyIsEnumerable,K8=Jb(function(){return arguments}())?Jb:function(e){return H8(e)&&W8.call(e,"callee")&&!V8.call(e,"callee")},Hy=K8,Xc={exports:{}};function G8(){return!1}var q8=G8;Xc.exports;(function(e,t){var n=An,r=q8,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Xc,Xc.exports);var Wy=Xc.exports,X8=9007199254740991,Y8=/^(?:0|[1-9]\d*)$/;function Q8(e,t){var n=typeof e;return t=t??X8,!!t&&(n=="number"||n!="symbol"&&Y8.test(e))&&e>-1&&e%1==0&&e<t}var Vy=Q8,Z8=9007199254740991;function J8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Z8}var Ky=J8,eF=Ar,tF=Ky,nF=Cn,rF="[object Arguments]",iF="[object Array]",aF="[object Boolean]",oF="[object Date]",lF="[object Error]",sF="[object Function]",uF="[object Map]",cF="[object Number]",fF="[object Object]",dF="[object RegExp]",pF="[object Set]",hF="[object String]",mF="[object WeakMap]",vF="[object ArrayBuffer]",gF="[object DataView]",yF="[object Float32Array]",xF="[object Float64Array]",bF="[object Int8Array]",wF="[object Int16Array]",_F="[object Int32Array]",SF="[object Uint8Array]",EF="[object Uint8ClampedArray]",OF="[object Uint16Array]",$F="[object Uint32Array]",Pe={};Pe[yF]=Pe[xF]=Pe[bF]=Pe[wF]=Pe[_F]=Pe[SF]=Pe[EF]=Pe[OF]=Pe[$F]=!0;Pe[rF]=Pe[iF]=Pe[vF]=Pe[aF]=Pe[gF]=Pe[oF]=Pe[lF]=Pe[sF]=Pe[uF]=Pe[cF]=Pe[fF]=Pe[dF]=Pe[pF]=Pe[hF]=Pe[mF]=!1;function PF(e){return nF(e)&&tF(e.length)&&!!Pe[eF(e)]}var jF=PF;function TF(e){return function(t){return e(t)}}var Md=TF,Yc={exports:{}};Yc.exports;(function(e,t){var n=Q$,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Yc,Yc.exports);var Gy=Yc.exports,AF=jF,CF=Md,e1=Gy,t1=e1&&e1.isTypedArray,kF=t1?CF(t1):AF,WP=kF,NF=L8,MF=Hy,IF=jt,RF=Wy,LF=Vy,DF=WP,FF=Object.prototype,BF=FF.hasOwnProperty;function zF(e,t){var n=IF(e),r=!n&&MF(e),i=!n&&!r&&RF(e),a=!n&&!r&&!i&&DF(e),o=n||r||i||a,l=o?NF(e.length,String):[],s=l.length;for(var u in e)(t||BF.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||LF(u,s)))&&l.push(u);return l}var VP=zF,UF=Object.prototype;function HF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||UF;return e===n}var qy=HF;function WF(e,t){return function(n){return e(t(n))}}var KP=WF,VF=KP,KF=VF(Object.keys,Object),GF=KF,qF=qy,XF=GF,YF=Object.prototype,QF=YF.hasOwnProperty;function ZF(e){if(!qF(e))return XF(e);var t=[];for(var n in Object(e))QF.call(e,n)&&n!="constructor"&&t.push(n);return t}var JF=ZF,e6=$y,t6=Ky;function n6(e){return e!=null&&t6(e.length)&&!e6(e)}var Ys=n6,r6=VP,i6=JF,a6=Ys;function o6(e){return a6(e)?r6(e):i6(e)}var Qs=o6,l6=zP,s6=Uy,u6=Qs;function c6(e){return l6(e,u6,s6)}var GP=c6,n1=GP,f6=1,d6=Object.prototype,p6=d6.hasOwnProperty;function h6(e,t,n,r,i,a){var o=n&f6,l=n1(e),s=l.length,u=n1(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:p6.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var w=o;++f<s;){d=l[f];var y=e[d],g=t[d];if(r)var x=o?r(g,y,d,t,e,a):r(y,g,d,e,t,a);if(!(x===void 0?y===g||i(y,g,n,r,a):x)){m=!1;break}w||(w=d=="constructor")}if(m&&!w){var E=e.constructor,_=t.constructor;E!=_&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(e),a.delete(t),m}var m6=h6,v6=ia,g6=An,y6=v6(g6,"DataView"),x6=y6,b6=ia,w6=An,_6=b6(w6,"Promise"),S6=_6,E6=ia,O6=An,$6=E6(O6,"Set"),qP=$6,P6=ia,j6=An,T6=P6(j6,"WeakMap"),A6=T6,Jm=x6,ev=Py,tv=S6,nv=qP,rv=A6,XP=Ar,Ro=J$,r1="[object Map]",C6="[object Object]",i1="[object Promise]",a1="[object Set]",o1="[object WeakMap]",l1="[object DataView]",k6=Ro(Jm),N6=Ro(ev),M6=Ro(tv),I6=Ro(nv),R6=Ro(rv),Oi=XP;(Jm&&Oi(new Jm(new ArrayBuffer(1)))!=l1||ev&&Oi(new ev)!=r1||tv&&Oi(tv.resolve())!=i1||nv&&Oi(new nv)!=a1||rv&&Oi(new rv)!=o1)&&(Oi=function(e){var t=XP(e),n=t==C6?e.constructor:void 0,r=n?Ro(n):"";if(r)switch(r){case k6:return l1;case N6:return r1;case M6:return i1;case I6:return a1;case R6:return o1}return t});var Id=Oi,rh=Fy,L6=FP,D6=S8,F6=m6,s1=Id,u1=jt,c1=Wy,B6=WP,z6=1,f1="[object Arguments]",d1="[object Array]",Iu="[object Object]",U6=Object.prototype,p1=U6.hasOwnProperty;function H6(e,t,n,r,i,a){var o=u1(e),l=u1(t),s=o?d1:s1(e),u=l?d1:s1(t);s=s==f1?Iu:s,u=u==f1?Iu:u;var c=s==Iu,f=u==Iu,d=s==u;if(d&&c1(e)){if(!c1(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new rh),o||B6(e)?L6(e,t,n,r,i,a):D6(e,t,s,n,r,i,a);if(!(n&z6)){var p=c&&p1.call(e,"__wrapped__"),h=f&&p1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,w=h?t.value():t;return a||(a=new rh),i(m,w,n,r,a)}}return d?(a||(a=new rh),F6(e,t,n,r,i,a)):!1}var W6=H6,V6=W6,h1=Cn;function YP(e,t,n,r,i){return e===t?!0:e==null||t==null||!h1(e)&&!h1(t)?e!==e&&t!==t:V6(e,t,n,r,YP,i)}var Xy=YP,K6=Fy,G6=Xy,q6=1,X6=2;function Y6(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],u=e[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new K6;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?G6(c,u,q6|X6,r,f):d))return!1}}return!0}var Q6=Y6,Z6=kn;function J6(e){return e===e&&!Z6(e)}var QP=J6,eB=QP,tB=Qs;function nB(e){for(var t=tB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eB(i)]}return t}var rB=nB;function iB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var ZP=iB,aB=Q6,oB=rB,lB=ZP;function sB(e){var t=oB(e);return t.length==1&&t[0][2]?lB(t[0][0],t[0][1]):function(n){return n===e||aB(n,e,t)}}var uB=sB;function cB(e,t){return e!=null&&t in Object(e)}var fB=cB,dB=gd,pB=Hy,hB=jt,mB=Vy,vB=Ky,gB=Gs;function yB(e,t,n){t=dB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&vB(i)&&mB(o,i)&&(hB(e)||pB(e)))}var xB=yB,bB=fB,wB=xB;function _B(e,t){return e!=null&&wB(e,t,bB)}var SB=_B,EB=Xy,OB=iP,$B=SB,PB=Oy,jB=QP,TB=ZP,AB=Gs,CB=1,kB=2;function NB(e,t){return PB(e)&&jB(t)?TB(AB(e),t):function(n){var r=OB(n,e);return r===void 0&&r===t?$B(n,e):EB(t,r,CB|kB)}}var MB=NB;function IB(e){return e}var Lo=IB;function RB(e){return function(t){return t==null?void 0:t[e]}}var LB=RB,DB=yd;function FB(e){return function(t){return DB(t,e)}}var BB=FB,zB=LB,UB=BB,HB=Oy,WB=Gs;function VB(e){return HB(e)?zB(WB(e)):UB(e)}var KB=VB,GB=uB,qB=MB,XB=Lo,YB=jt,QB=KB;function ZB(e){return typeof e=="function"?e:e==null?XB:typeof e=="object"?YB(e)?qB(e[0],e[1]):GB(e):QB(e)}var di=ZB;function JB(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var e7=JB;function t7(e){return e!==e}var n7=t7;function r7(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var i7=r7,a7=e7,o7=n7,l7=i7;function s7(e,t,n){return t===t?l7(e,t,n):a7(e,o7,n)}var u7=s7,c7=u7;function f7(e,t){var n=e==null?0:e.length;return!!n&&c7(e,t,0)>-1}var d7=f7;function p7(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var h7=p7;function m7(){}var v7=m7,ih=qP,g7=v7,y7=By,x7=1/0,b7=ih&&1/y7(new ih([,-0]))[1]==x7?function(e){return new ih(e)}:g7,w7=b7,_7=RP,S7=d7,E7=h7,O7=DP,$7=w7,P7=By,j7=200;function T7(e,t,n){var r=-1,i=S7,a=e.length,o=!0,l=[],s=l;if(n)o=!1,i=E7;else if(a>=j7){var u=t?null:$7(e);if(u)return P7(u);o=!1,i=O7,s=new _7}else s=t?[]:l;e:for(;++r<a;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else i(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}var A7=T7,C7=di,k7=A7;function N7(e,t){return e&&e.length?k7(e,C7(t)):[]}var M7=N7;const m1=me(M7);function JP(e,t,n){return t===!0?m1(e,n):te(t)?m1(e,t):e}function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}var I7=["ref"];function v1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){Rd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,t2(r.key),r)}}function L7(e,t,n){return t&&g1(e.prototype,t),n&&g1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D7(e,t,n){return t=Qc(t),F7(e,e2()?Reflect.construct(t,n||[],Qc(e).constructor):t.apply(e,n))}function F7(e,t){if(t&&(Qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B7(e)}function B7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e2=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qc(e)}function z7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iv(e,t)}function Rd(e,t,n){return t=t2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t2(e){var t=U7(e,"string");return Qa(t)=="symbol"?t:t+""}function U7(e,t){if(Qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H7(e,t){if(e==null)return{};var n=W7(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V7(e){return e.value}function K7(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=H7(t,I7);return j.createElement(Dy,n)}var y1=1,Da=function(e){function t(){var n;R7(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=D7(this,t,[].concat(i)),Rd(n,"lastBoundingBox",{width:-1,height:-1}),n}return z7(t,e),L7(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>y1||Math.abs(i.height-this.lastBoundingBox.height)>y1)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Jn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,s=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((c||0)-h.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Jn(Jn({},f),d)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Jn(Jn({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return j.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},K7(a,Jn(Jn({},this.props),{},{payload:JP(c,u,V7)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Jn(Jn({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&G(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(b.PureComponent);Rd(Da,"displayName","Legend");Rd(Da,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var x1=jo,G7=Hy,q7=jt,b1=x1?x1.isConcatSpreadable:void 0;function X7(e){return q7(e)||G7(e)||!!(b1&&e&&e[b1])}var Y7=X7,Q7=zy,Z7=Y7;function n2(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Z7),i||(i=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?n2(l,t-1,n,r,i):Q7(i,l):r||(i[i.length]=l)}return i}var Yy=n2;function J7(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var e9=J7,t9=e9,n9=t9(),r9=n9,i9=r9,a9=Qs;function o9(e,t){return e&&i9(e,t,a9)}var r2=o9,l9=Ys;function s9(e,t){return function(n,r){if(n==null)return n;if(!l9(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var u9=s9,c9=r2,f9=u9,d9=f9(c9),Qy=d9,p9=Qy,h9=Ys;function m9(e,t){var n=-1,r=h9(e)?Array(e.length):[];return p9(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var i2=m9;function v9(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var g9=v9,w1=To;function y9(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=w1(e),o=t!==void 0,l=t===null,s=t===t,u=w1(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var x9=y9,b9=x9;function w9(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=b9(i[r],a[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var _9=w9,ah=vd,S9=yd,E9=di,O9=i2,$9=g9,P9=Md,j9=_9,T9=Lo,A9=jt;function C9(e,t,n){t.length?t=ah(t,function(a){return A9(a)?function(o){return S9(o,a.length===1?a[0]:a)}:a}):t=[T9];var r=-1;t=ah(t,P9(E9));var i=O9(e,function(a,o,l){var s=ah(t,function(u){return u(a)});return{criteria:s,index:++r,value:a}});return $9(i,function(a,o){return j9(a,o,n)})}var k9=C9;function N9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var M9=N9,I9=M9,_1=Math.max;function R9(e,t,n){return t=_1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(o),I9(e,this,l)}}var a2=R9;function L9(e){return function(){return e}}var D9=L9,F9=ia,B9=function(){try{var e=F9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),o2=B9,z9=D9,S1=o2,U9=Lo,H9=S1?function(e,t){return S1(e,"toString",{configurable:!0,enumerable:!1,value:z9(t),writable:!0})}:U9,W9=H9,V9=800,K9=16,G9=Date.now;function q9(e){var t=0,n=0;return function(){var r=G9(),i=K9-(r-n);if(n=r,i>0){if(++t>=V9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var X9=q9,Y9=W9,Q9=X9,Z9=Q9(Y9),l2=Z9,J9=Lo,ez=a2,tz=l2;function nz(e,t){return tz(ez(e,t,J9),e+"")}var rz=nz,iz=dd,az=Ys,oz=Vy,lz=kn;function sz(e,t,n){if(!lz(n))return!1;var r=typeof t;return(r=="number"?az(n)&&oz(t,n.length):r=="string"&&t in n)?iz(n[t],e):!1}var Ld=sz,uz=Yy,cz=k9,fz=rz,E1=Ld,dz=fz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&E1(e,t[0],t[1])?t=[]:n>2&&E1(t[0],t[1],t[2])&&(t=[t[0]]),cz(e,uz(t,1),[])}),pz=dz;const Zy=me(pz);function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}function hz(e,t){return yz(e)||gz(e,t)||vz(e,t)||mz()}function mz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
205
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vz(e,t){if(e){if(typeof e=="string")return O1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O1(e,t)}}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function yz(e){if(Array.isArray(e))return e}function $1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(n),!0).forEach(function(r){xz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xz(e,t,n){return t=bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bz(e){var t=wz(e,"string");return rs(t)=="symbol"?t:t+""}function wz(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _z(e){return Array.isArray(e)&&Je(e[0])&&Je(e[1])?e.join(" ~ "):e}var Sz=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,c=t.payload,f=t.formatter,d=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,m=t.label,w=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,x=function(){if(c&&c.length){var N={padding:0,margin:0},I=(d?Zy(c,d):c).map(function(D,M){if(D.type==="none")return null;var F=oh({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),R=D.formatter||f||_z,P=D.value,k=D.name,B=P,L=k;if(R&&B!=null&&L!=null){var U=R(P,k,D,M,c);if(Array.isArray(U)){var V=hz(U,2);B=V[0],L=V[1]}else B=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:F},Je(L)?j.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Je(L)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},B),j.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:N},I)}return null},E=oh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=oh({margin:0},u),S=!le(m),O=S?m:"",$=ue("recharts-default-tooltip",p),T=ue("recharts-tooltip-label",h);S&&w&&c!==void 0&&c!==null&&(O=w(m,c));var C=g?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",av({className:$,style:E},C),j.createElement("p",{className:T,style:_},j.isValidElement(O)?O:"".concat(O)),x())};function is(e){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function Ru(e,t,n){return t=Ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ez(e){var t=Oz(e,"string");return is(t)=="symbol"?t:t+""}function Oz(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rl="recharts-tooltip-wrapper",$z={visibility:"hidden"};function Pz(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ue(rl,Ru(Ru(Ru(Ru({},"".concat(rl,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(rl,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(rl,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(rl,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function P1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(a&&G(a[r]))return a[r];var c=n[r]-l-i,f=n[r]+i;if(t[r])return o[r]?c:f;if(o[r]){var d=c,p=s[r];return d<p?Math.max(f,s[r]):Math.max(c,s[r])}var h=f+l,m=s[r]+u;return h>m?Math.max(c,s[r]):Math.max(f,s[r])}function jz(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Tz(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,c,f;return o.height>0&&o.width>0&&n?(c=P1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=P1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=jz({translateX:c,translateY:f,useTranslate3d:l})):u=$z,{cssProperties:u,cssClasses:Pz({translateX:c,translateY:f,coordinate:n})}}function Za(e){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}function j1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j1(Object(n),!0).forEach(function(r){lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u2(r.key),r)}}function kz(e,t,n){return t&&Cz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nz(e,t,n){return t=Zc(t),Mz(e,s2()?Reflect.construct(t,n||[],Zc(e).constructor):t.apply(e,n))}function Mz(e,t){if(t&&(Za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iz(e)}function Iz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s2=function(){return!!e})()}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zc(e)}function Rz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ov(e,t)}function lv(e,t,n){return t=u2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u2(e){var t=Lz(e,"string");return Za(t)=="symbol"?t:t+""}function Lz(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A1=1,Dz=function(e){function t(){var n;Az(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Nz(this,t,[].concat(i)),lv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),lv(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,c;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(c=n.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),n}return Rz(t,e),kz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>A1||Math.abs(r.height-this.state.lastBoundingBox.height)>A1)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,m=i.reverseDirection,w=i.useTranslate3d,y=i.viewBox,g=i.wrapperStyle,x=Tz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:h,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:y}),E=x.cssClasses,_=x.cssProperties,S=T1(T1({transition:d&&a?"transform ".concat(l,"ms ").concat(s):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return j.createElement("div",{tabIndex:-1,className:E,style:S,ref:function($){r.wrapperNode=$}},u)}}])}(b.PureComponent),Fz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ti={isSsr:Fz(),get:function(t){return ti[t]},set:function(t,n){if(typeof t=="string")ti[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ti[i]=t[i]})}}};function Ja(e){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){Jy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f2(r.key),r)}}function Uz(e,t,n){return t&&zz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hz(e,t,n){return t=Jc(t),Wz(e,c2()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function Wz(e,t){if(t&&(Ja(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vz(e)}function Vz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c2=function(){return!!e})()}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jc(e)}function Kz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sv(e,t)}function Jy(e,t,n){return t=f2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f2(e){var t=Gz(e,"string");return Ja(t)=="symbol"?t:t+""}function Gz(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qz(e){return e.dataKey}function Xz(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(Sz,t)}var tr=function(e){function t(){return Bz(this,t),Hz(this,t,arguments)}return Kz(t,e),Uz(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,p=i.offset,h=i.payload,m=i.payloadUniqBy,w=i.position,y=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,E=i.wrapperStyle,_=h??[];f&&_.length&&(_=JP(h.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),m,qz));var S=_.length>0;return j.createElement(Dz,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:d,active:a,coordinate:c,hasPayload:S,offset:p,position:w,reverseDirection:y,useTranslate3d:g,viewBox:x,wrapperStyle:E},Xz(u,k1(k1({},this.props),{},{payload:_})))}}])}(b.PureComponent);Jy(tr,"displayName","Tooltip");Jy(tr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ti.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Yz=An,Qz=function(){return Yz.Date.now()},Zz=Qz,Jz=/\s/;function eU(e){for(var t=e.length;t--&&Jz.test(e.charAt(t)););return t}var tU=eU,nU=tU,rU=/^\s+/;function iU(e){return e&&e.slice(0,nU(e)+1).replace(rU,"")}var aU=iU,oU=aU,N1=kn,lU=To,M1=NaN,sU=/^[-+]0x[0-9a-f]+$/i,uU=/^0b[01]+$/i,cU=/^0o[0-7]+$/i,fU=parseInt;function dU(e){if(typeof e=="number")return e;if(lU(e))return M1;if(N1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=N1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=oU(e);var n=uU.test(e);return n||cU.test(e)?fU(e.slice(2),n?2:8):sU.test(e)?M1:+e}var d2=dU,pU=kn,lh=Zz,I1=d2,hU="Expected a function",mU=Math.max,vU=Math.min;function gU(e,t,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(hU);t=I1(t)||0,pU(n)&&(c=!!n.leading,f="maxWait"in n,a=f?mU(I1(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function p(S){var O=r,$=i;return r=i=void 0,u=S,o=e.apply($,O),o}function h(S){return u=S,l=setTimeout(y,t),c?p(S):o}function m(S){var O=S-s,$=S-u,T=t-O;return f?vU(T,a-$):T}function w(S){var O=S-s,$=S-u;return s===void 0||O>=t||O<0||f&&$>=a}function y(){var S=lh();if(w(S))return g(S);l=setTimeout(y,m(S))}function g(S){return l=void 0,d&&r?p(S):(r=i=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function E(){return l===void 0?o:g(lh())}function _(){var S=lh(),O=w(S);if(r=arguments,i=this,s=S,O){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return _.cancel=x,_.flush=E,_}var yU=gU,xU=yU,bU=kn,wU="Expected a function";function _U(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(wU);return bU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xU(e,t,{leading:r,maxWait:t,trailing:i})}var SU=_U;const p2=me(SU);function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(n),!0).forEach(function(r){EU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EU(e,t,n){return t=OU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OU(e){var t=$U(e,"string");return as(t)=="symbol"?t:t+""}function $U(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PU(e,t){return CU(e)||AU(e,t)||TU(e,t)||jU()}function jU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
206
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TU(e,t){if(e){if(typeof e=="string")return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(e,t)}}function L1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function CU(e){if(Array.isArray(e))return e}var Do=b.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=h===void 0?0:h,w=e.id,y=e.className,g=e.onResize,x=e.style,E=x===void 0?{}:x,_=b.useRef(null),S=b.useRef();S.current=g,b.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var O=b.useState({containerWidth:i.width,containerHeight:i.height}),$=PU(O,2),T=$[0],C=$[1],A=b.useCallback(function(I,D){C(function(M){var F=Math.round(I),R=Math.round(D);return M.containerWidth===F&&M.containerHeight===R?M:{containerWidth:F,containerHeight:R}})},[]);b.useEffect(function(){var I=function(k){var B,L=k[0].contentRect,U=L.width,V=L.height;A(U,V),(B=S.current)===null||B===void 0||B.call(S,U,V)};m>0&&(I=p2(I,m,{trailing:!0,leading:!1}));var D=new ResizeObserver(I),M=_.current.getBoundingClientRect(),F=M.width,R=M.height;return A(F,R),D.observe(_.current),function(){D.disconnect()}},[A,m]);var N=b.useMemo(function(){var I=T.containerWidth,D=T.containerHeight;if(I<0||D<0)return null;dr(ki(o)||ki(s),`The width(%s) and height(%s) are both fixed numbers,
|
207
|
+
maybe you don't need to use a ResponsiveContainer.`,o,s),dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=ki(o)?I:o,F=ki(s)?D:s;n&&n>0&&(M?F=M/n:F&&(M=F*n),d&&F>d&&(F=d)),dr(M>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
208
208
|
please check the style of container, or the props width(%s) and height(%s),
|
209
209
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
210
|
-
height and width.`,M,F,o,s,c,f,n);var R=!Array.isArray(p)&&fr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?b.cloneElement(P,
|
211
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BU(e,t){if(e){if(typeof e=="string")return z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z1(e,t)}}function z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function UU(e){if(Array.isArray(e))return e}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VU(r.key),r)}}function WU(e,t,n){return t&&U1(e.prototype,t),n&&U1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VU(e){var t=KU(e,"string");return
|
212
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iH(e,t){if(e){if(typeof e=="string")return q1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q1(e,t)}}function q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function oH(e){if(Array.isArray(e))return e}var v2=/[ \f\n\r\t\v\u2028\u2029]+/,g2=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];le(n)||(r?a=n.toString().split(""):a=n.toString().split(v2));var o=a.map(function(s){return{word:s,width:B1(s,i).width}}),l=r?0:B1(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},lH=function(t,n,r,i,a){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=G(o),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(F,R){var P=R.word,k=R.width,B=F[F.length-1];if(B&&(i==null||a||B.width+k+r<Number(i)))B.words.push(P),B.width+=k+r;else{var L={words:[P],width:k};F.push(L)}return F},[])},p=d(n),h=function(M){return M.reduce(function(F,R){return F.width>R.width?F:R})};if(!c)return p;for(var m="…",w=function(M){var F=f.slice(0,M),R=g2({breakAll:u,style:s,children:F+m}).wordsWithComputedWidth,P=d(R),k=P.length>o||h(P).width>Number(i);return[k,P]},y=0,v=f.length-1,x=0,E;y<=v&&x<=f.length-1;){var _=Math.floor((y+v)/2),S=_-1,O=w(S),$=G1(O,2),T=$[0],C=$[1],A=w(_),N=G1(A,1),I=N[0];if(!T&&!I&&(y=_+1),T&&I&&(v=_-1),!T&&I){E=C;break}x++}return E||p},X1=function(t){var n=le(t)?[]:t.toString().split(v2);return[{words:n}]},sH=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!ei.isSsr){var s,u,c=g2({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return X1(i);return lH({breakAll:o,children:i,maxLines:l,style:a},s,u,n,r)}return X1(i)},Y1="#808080",Ja=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,m=h===void 0?"end":h,w=t.fill,y=w===void 0?Y1:w,v=K1(t,eH),x=b.useMemo(function(){return sH({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),E=v.dx,_=v.dy,S=v.angle,O=v.className,$=v.breakAll,T=K1(v,tH);if(!Je(r)||!Je(a))return null;var C=r+(G(E)?E:0),A=a+(G(_)?_:0),N;switch(m){case"start":N=sh("calc(".concat(u,")"));break;case"middle":N=sh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=sh("calc(".concat(x.length-1," * -").concat(l,")"));break}var I=[];if(f){var D=x[0].width,M=v.width;I.push("scale(".concat((G(M)?M/D:1)/D,")"))}return S&&I.push("rotate(".concat(S,", ").concat(C,", ").concat(A,")")),I.length&&(T.transform=I.join(" ")),j.createElement("text",cv({},ne(T,!0),{x:C,y:A,className:ue("recharts-text",O),textAnchor:p,fill:y.includes("url")?Y1:y}),x.map(function(F,R){var P=F.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:R===0?N:l,key:"".concat(P,"-").concat(R)},P)}))};function ti(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t0(e){let t,n,r;e.length!==2?(t=ti,n=(l,s)=>ti(e(l),s),r=(l,s)=>e(l)-s):(t=e===ti||e===uH?e:cH,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function cH(){return 0}function y2(e){return e===null?NaN:+e}function*fH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const dH=t0(ti),Ys=dH.right;t0(y2).center;class Q1 extends Map{constructor(t,n=mH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Z1(this,t))}has(t){return super.has(Z1(this,t))}set(t,n){return super.set(pH(this,t),n)}delete(t){return super.delete(hH(this,t))}}function Z1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function pH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vH(e=ti){if(e===ti)return x2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function x2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gH=Math.sqrt(50),yH=Math.sqrt(10),xH=Math.sqrt(2);function tf(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=gH?10:a>=yH?5:a>=xH?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?tf(e,t,n*2):[l,s,u]}function fv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?tf(t,e,n):tf(e,t,n);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(a-u)/-o;else for(let u=0;u<l;++u)s[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(i+u)/-o;else for(let u=0;u<l;++u)s[u]=(i+u)*o;return s}function dv(e,t,n){return t=+t,e=+e,n=+n,tf(e,t,n)[2]}function pv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?dv(t,e,n):dv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function J1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ew(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function b2(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?x2:vH(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+d)),h=Math.min(r,Math.floor(t+(s-u)*f/s+d));b2(e,t,p,h,i)}const a=e[t];let o=n,l=r;for(rl(e,n,t),i(e[r],a)>0&&rl(e,n,r);o<l;){for(rl(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?rl(e,n,l):(++l,rl(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function rl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bH(e,t,n){if(e=Float64Array.from(fH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ew(e);if(t>=1)return J1(e);var r,i=(r-1)*t,a=Math.floor(i),o=J1(b2(e,a).subarray(0,a+1)),l=ew(e.subarray(a+1));return o+(l-o)*(i-a)}}function wH(e,t,n=y2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function _H(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function mn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ar(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const hv=Symbol("implicit");function n0(){var e=new Q1,t=[],n=[],r=hv;function i(a){let o=e.get(a);if(o===void 0){if(r!==hv)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Q1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n0(t,n).unknown(r)},mn.apply(i,arguments),i}function os(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<r,h=p?i:r,m=p?r:i;a=(m-h)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),h+=(m-h-a*(d-s))*c,o=a*(1-s),l&&(h=Math.round(h),o=Math.round(o));var w=_H(d).map(function(y){return h+a*y});return n(p?w.reverse():w)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return os(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},mn.apply(f(),arguments)}function w2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return w2(t())},e}function jl(){return w2(os.apply(null,arguments).paddingInner(1))}function r0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qs(){}var ls=.7,nf=1/ls,Da="\\s*([+-]?\\d+)\\s*",ss="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SH=/^#([0-9a-f]{3,8})$/,EH=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),OH=new RegExp(`^rgb\\(${zn},${zn},${zn}\\)$`),$H=new RegExp(`^rgba\\(${Da},${Da},${Da},${ss}\\)$`),PH=new RegExp(`^rgba\\(${zn},${zn},${zn},${ss}\\)$`),jH=new RegExp(`^hsl\\(${ss},${zn},${zn}\\)$`),TH=new RegExp(`^hsla\\(${ss},${zn},${zn},${ss}\\)$`),tw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r0(Qs,us,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nw,formatHex:nw,formatHex8:AH,formatHsl:CH,formatRgb:rw,toString:rw});function nw(){return this.rgb().formatHex()}function AH(){return this.rgb().formatHex8()}function CH(){return S2(this).formatHsl()}function rw(){return this.rgb().formatRgb()}function us(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SH.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?iw(t):n===3?new Nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Lu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Lu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=EH.exec(e))?new Nt(t[1],t[2],t[3],1):(t=OH.exec(e))?new Nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$H.exec(e))?Lu(t[1],t[2],t[3],t[4]):(t=PH.exec(e))?Lu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jH.exec(e))?lw(t[1],t[2]/100,t[3]/100,1):(t=TH.exec(e))?lw(t[1],t[2]/100,t[3]/100,t[4]):tw.hasOwnProperty(e)?iw(tw[e]):e==="transparent"?new Nt(NaN,NaN,NaN,0):null}function iw(e){return new Nt(e>>16&255,e>>8&255,e&255,1)}function Lu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function kH(e){return e instanceof Qs||(e=us(e)),e?(e=e.rgb(),new Nt(e.r,e.g,e.b,e.opacity)):new Nt}function mv(e,t,n,r){return arguments.length===1?kH(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}r0(Nt,mv,_2(Qs,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ls:Math.pow(ls,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nt(Di(this.r),Di(this.g),Di(this.b),rf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aw,formatHex:aw,formatHex8:NH,formatRgb:ow,toString:ow}));function aw(){return`#${ki(this.r)}${ki(this.g)}${ki(this.b)}`}function NH(){return`#${ki(this.r)}${ki(this.g)}${ki(this.b)}${ki((isNaN(this.opacity)?1:this.opacity)*255)}`}function ow(){const e=rf(this.opacity);return`${e===1?"rgb(":"rgba("}${Di(this.r)}, ${Di(this.g)}, ${Di(this.b)}${e===1?")":`, ${e})`}`}function rf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Di(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ki(e){return e=Di(e),(e<16?"0":"")+e.toString(16)}function lw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,n,r)}function S2(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Qs||(e=us(e)),!e)return new wn;if(e instanceof wn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new wn(o,l,s,e.opacity)}function MH(e,t,n,r){return arguments.length===1?S2(e):new wn(e,t,n,r??1)}function wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}r0(wn,MH,_2(Qs,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ls:Math.pow(ls,e),new wn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nt(uh(e>=240?e-240:e+120,i,r),uh(e,i,r),uh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn(sw(this.h),Du(this.s),Du(this.l),rf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rf(this.opacity);return`${e===1?"hsl(":"hsla("}${sw(this.h)}, ${Du(this.s)*100}%, ${Du(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sw(e){return e=(e||0)%360,e<0?e+360:e}function Du(e){return Math.max(0,Math.min(1,e||0))}function uh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const i0=e=>()=>e;function IH(e,t){return function(n){return e+n*t}}function RH(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function LH(e){return(e=+e)==1?E2:function(t,n){return n-t?RH(t,n,e):i0(isNaN(t)?n:t)}}function E2(e,t){var n=t-e;return n?IH(e,n):i0(isNaN(e)?t:e)}const uw=function e(t){var n=LH(t);function r(i,a){var o=n((i=mv(i)).r,(a=mv(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=E2(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function DH(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function FH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BH(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Do(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function zH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function af(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function UH(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Do(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var vv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ch=new RegExp(vv.source,"g");function HH(e){return function(){return e}}function WH(e){return function(t){return e(t)+""}}function VH(e,t){var n=vv.lastIndex=ch.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=vv.exec(e))&&(i=ch.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:af(r,i)})),n=ch.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?WH(s[0].x):HH(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Do(e,t){var n=typeof t,r;return t==null||n==="boolean"?i0(t):(n==="number"?af:n==="string"?(r=us(t))?(t=r,uw):VH:t instanceof us?uw:t instanceof Date?zH:FH(t)?DH:Array.isArray(t)?BH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UH:af)(e,t)}function a0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function KH(e,t){t===void 0&&(t=e,e=Do);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function GH(e){return function(){return e}}function of(e){return+e}var cw=[0,1];function St(e){return e}function gv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:GH(isNaN(t)?NaN:.5)}function qH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function XH(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=gv(i,r),a=n(o,a)):(r=gv(r,i),a=n(a,o)),function(l){return a(r(l))}}function YH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=gv(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=Ys(e,l,1,r)-1;return a[s](i[s](l))}}function Zs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dd(){var e=cw,t=cw,n=Do,r,i,a,o=St,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==St&&(o=qH(e[0],e[d-1])),l=d>2?YH:XH,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(r),af)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,of),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=a0,c()},f.clamp=function(d){return arguments.length?(o=d?!0:St,c()):o!==St},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,p){return r=d,i=p,c()}}function o0(){return Dd()(St,St)}function QH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function eo(e){return e=lf(Math.abs(e)),e?e[1]:NaN}function ZH(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function JH(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var eW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(e){if(!(t=eW.exec(e)))throw new Error("invalid format: "+e);var t;return new l0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}cs.prototype=l0.prototype;function l0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}l0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var O2;function nW(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(O2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+lf(e,Math.max(0,t+a-1))[0]}function fw(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const dw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:QH,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fw(e*100,t),r:fw,s:nW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pw(e){return e}var hw=Array.prototype.map,mw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rW(e){var t=e.grouping===void 0||e.thousands===void 0?pw:ZH(hw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pw:JH(hw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=cs(f);var d=f.fill,p=f.align,h=f.sign,m=f.symbol,w=f.zero,y=f.width,v=f.comma,x=f.precision,E=f.trim,_=f.type;_==="n"?(v=!0,_="g"):dw[_]||(x===void 0&&(x=12),E=!0,_="g"),(w||d==="0"&&p==="=")&&(w=!0,d="0",p="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=m==="$"?r:/[%p]/.test(_)?o:"",$=dw[_],T=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(A){var N=S,I=O,D,M,F;if(_==="c")I=$(A)+I,A="";else{A=+A;var R=A<0||1/A<0;if(A=isNaN(A)?s:$(Math.abs(A),x),E&&(A=tW(A)),R&&+A==0&&h!=="+"&&(R=!1),N=(R?h==="("?h:l:h==="-"||h==="("?"":h)+N,I=(_==="s"?mw[8+O2/3]:"")+I+(R&&h==="("?")":""),T){for(D=-1,M=A.length;++D<M;)if(F=A.charCodeAt(D),48>F||F>57){I=(F===46?i+A.slice(D+1):A.slice(D))+I,A=A.slice(0,D);break}}}v&&!w&&(A=t(A,1/0));var P=N.length+A.length+I.length,k=P<y?new Array(y-P+1).join(d):"";switch(v&&w&&(A=t(k+A,k.length?y-I.length:1/0),k=""),p){case"<":A=N+A+I+k;break;case"=":A=N+k+A+I;break;case"^":A=k.slice(0,P=k.length>>1)+N+A+I+k.slice(P);break;default:A=k+N+A+I;break}return a(A)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=cs(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(eo(d)/3)))*3,m=Math.pow(10,-h),w=mw[8+h/3];return function(y){return p(m*y)+w}}return{format:u,formatPrefix:c}}var Fu,s0,$2;iW({thousands:",",grouping:[3],currency:["$",""]});function iW(e){return Fu=rW(e),s0=Fu.format,$2=Fu.formatPrefix,Fu}function aW(e){return Math.max(0,-eo(Math.abs(e)))}function oW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(eo(t)/3)))*3-eo(Math.abs(e)))}function lW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,eo(t)-eo(e))+1}function P2(e,t,n,r){var i=pv(e,t,n),a;switch(r=cs(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=oW(i,o))&&(r.precision=a),$2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=lW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=aW(i))&&(r.precision=a-(r.type==="%")*2);break}}return s0(r)}function di(e){var t=e.domain;return e.ticks=function(n){var r=t();return fv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return P2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=dv(o,l,n),u===s)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function sf(){var e=o0();return e.copy=function(){return Zs(e,sf())},mn.apply(e,arguments),di(e)}function j2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,of),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return j2(e).unknown(t)},e=arguments.length?Array.from(e,of):[0,1],di(n)}function T2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function vw(e){return Math.log(e)}function gw(e){return Math.exp(e)}function sW(e){return-Math.log(-e)}function uW(e){return-Math.exp(-e)}function cW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function fW(e){return e===10?cW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function dW(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function yw(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(vw,gw),n=t.domain;let r=10,i,a;function o(){return i=dW(r),a=fW(r),n()[0]<0?(i=yw(i),a=yw(a),e(sW,uW)):e(vw,gw),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),h,m;const w=l==null?10:+l;let y=[];if(!(r%1)&&p-d<w){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(h=1;h<r;++h)if(m=d<0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;y.push(m)}}else for(;d<=p;++d)for(h=r-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;y.push(m)}y.length*2<w&&(y=fv(u,c,w))}else y=fv(d,p,Math.min(p-d,w)).map(a);return f?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=cs(s)).precision==null&&(s.trim=!0),s=s0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(T2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function A2(){const e=u0(Dd()).domain([1,10]);return e.copy=()=>Zs(e,A2()).base(e.base()),mn.apply(e,arguments),e}function xw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(xw(t),bw(t));return n.constant=function(r){return arguments.length?e(xw(t=+r),bw(t)):t},di(n)}function C2(){var e=c0(Dd());return e.copy=function(){return Zs(e,C2()).constant(e.constant())},mn.apply(e,arguments)}function ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hW(e){return e<0?-e*e:e*e}function f0(e){var t=e(St,St),n=1;function r(){return n===1?e(St,St):n===.5?e(pW,hW):e(ww(n),ww(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},di(t)}function d0(){var e=f0(Dd());return e.copy=function(){return Zs(e,d0()).exponent(e.exponent())},mn.apply(e,arguments),e}function mW(){return d0.apply(null,arguments).exponent(.5)}function _w(e){return Math.sign(e)*e*e}function vW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function k2(){var e=o0(),t=[0,1],n=!1,r;function i(a){var o=vW(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(_w(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,of)).map(_w)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return k2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},mn.apply(i,arguments),di(i)}function N2(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=wH(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Ys(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ti),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return N2().domain(e).range(t).unknown(r)},mn.apply(a,arguments)}function M2(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ys(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return M2().domain([e,t]).range(i).unknown(a)},mn.apply(di(o),arguments)}function I2(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Ys(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return I2().domain(e).range(t).unknown(n)},mn.apply(i,arguments)}const fh=new Date,dh=new Date;function et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(fh.setTime(+a),dh.setTime(+o),e(fh),e(dh),Math.floor(n(fh,dh))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const uf=et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);uf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):uf);uf.range;const lr=1e3,ln=lr*60,sr=ln*60,_r=sr*24,p0=_r*7,Sw=_r*30,ph=_r*365,Ni=et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Ni.range;const h0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getMinutes());h0.range;const m0=et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getUTCMinutes());m0.range;const v0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*ln)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());v0.range;const g0=et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());g0.range;const Js=et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ln)/_r,e=>e.getDate()-1);Js.range;const Fd=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_r,e=>e.getUTCDate()-1);Fd.range;const R2=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_r,e=>Math.floor(e/_r));R2.range;function aa(e){return et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ln)/p0)}const Bd=aa(0),cf=aa(1),gW=aa(2),yW=aa(3),to=aa(4),xW=aa(5),bW=aa(6);Bd.range;cf.range;gW.range;yW.range;to.range;xW.range;bW.range;function oa(e){return et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p0)}const zd=oa(0),ff=oa(1),wW=oa(2),_W=oa(3),no=oa(4),SW=oa(5),EW=oa(6);zd.range;ff.range;wW.range;_W.range;no.range;SW.range;EW.range;const y0=et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());y0.range;const x0=et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());x0.range;const Sr=et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Sr.range;const Er=et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Er.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Er.range;function L2(e,t,n,r,i,a){const o=[[Ni,1,lr],[Ni,5,5*lr],[Ni,15,15*lr],[Ni,30,30*lr],[a,1,ln],[a,5,5*ln],[a,15,15*ln],[a,30,30*ln],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,_r],[r,2,2*_r],[n,1,p0],[t,1,Sw],[t,3,3*Sw],[e,1,ph]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:s(u,c,f),h=p?p.range(u,+c+1):[];return d?h.reverse():h}function s(u,c,f){const d=Math.abs(c-u)/f,p=t0(([,,w])=>w).right(o,d);if(p===o.length)return e.every(pv(u/ph,c/ph,f));if(p===0)return uf.every(Math.max(pv(u,c,f),1));const[h,m]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return h.every(m)}return[l,s]}const[OW,$W]=L2(Er,x0,zd,R2,g0,m0),[PW,jW]=L2(Sr,y0,Bd,Js,v0,h0);function hh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mh(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function il(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function TW(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=al(i),c=ol(i),f=al(a),d=ol(a),p=al(o),h=ol(o),m=al(l),w=ol(l),y=al(s),v=ol(s),x={a:R,A:P,b:k,B,c:null,d:Tw,e:Tw,f:ZW,g:sV,G:cV,H:XW,I:YW,j:QW,L:D2,m:JW,M:eV,p:L,q:U,Q:kw,s:Nw,S:tV,u:nV,U:rV,V:iV,w:aV,W:oV,x:null,X:null,y:lV,Y:uV,Z:fV,"%":Cw},E={a:V,A:re,b:ie,B:J,c:null,d:Aw,e:Aw,f:mV,g:OV,G:PV,H:dV,I:pV,j:hV,L:B2,m:vV,M:gV,p:Ce,q:Oe,Q:kw,s:Nw,S:yV,u:xV,U:bV,V:wV,w:_V,W:SV,x:null,X:null,y:EV,Y:$V,Z:jV,"%":Cw},_={a:C,A,b:N,B:I,c:D,d:Pw,e:Pw,f:VW,g:$w,G:Ow,H:jw,I:jw,j:zW,L:WW,m:BW,M:UW,p:T,q:FW,Q:GW,s:qW,S:HW,u:MW,U:IW,V:RW,w:NW,W:LW,x:M,X:F,y:$w,Y:Ow,Z:DW,"%":KW};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(K,Z){return function(ee){var H=[],ke=-1,oe=0,He=K.length,qe,Tt,Nr;for(ee instanceof Date||(ee=new Date(+ee));++ke<He;)K.charCodeAt(ke)===37&&(H.push(K.slice(oe,ke)),(Tt=Ew[qe=K.charAt(++ke)])!=null?qe=K.charAt(++ke):Tt=qe==="e"?" ":"0",(Nr=Z[qe])&&(qe=Nr(ee,Tt)),H.push(qe),oe=ke+1);return H.push(K.slice(oe,ke)),H.join("")}}function O(K,Z){return function(ee){var H=il(1900,void 0,1),ke=$(H,K,ee+="",0),oe,He;if(ke!=ee.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Z&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(oe=mh(il(H.y,0,1)),He=oe.getUTCDay(),oe=He>4||He===0?ff.ceil(oe):ff(oe),oe=Fd.offset(oe,(H.V-1)*7),H.y=oe.getUTCFullYear(),H.m=oe.getUTCMonth(),H.d=oe.getUTCDate()+(H.w+6)%7):(oe=hh(il(H.y,0,1)),He=oe.getDay(),oe=He>4||He===0?cf.ceil(oe):cf(oe),oe=Js.offset(oe,(H.V-1)*7),H.y=oe.getFullYear(),H.m=oe.getMonth(),H.d=oe.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),He="Z"in H?mh(il(H.y,0,1)).getUTCDay():hh(il(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(He+5)%7:H.w+H.U*7-(He+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,mh(H)):hh(H)}}function $(K,Z,ee,H){for(var ke=0,oe=Z.length,He=ee.length,qe,Tt;ke<oe;){if(H>=He)return-1;if(qe=Z.charCodeAt(ke++),qe===37){if(qe=Z.charAt(ke++),Tt=_[qe in Ew?Z.charAt(ke++):qe],!Tt||(H=Tt(K,ee,H))<0)return-1}else if(qe!=ee.charCodeAt(H++))return-1}return H}function T(K,Z,ee){var H=u.exec(Z.slice(ee));return H?(K.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(K,Z,ee){var H=p.exec(Z.slice(ee));return H?(K.w=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(K,Z,ee){var H=f.exec(Z.slice(ee));return H?(K.w=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function N(K,Z,ee){var H=y.exec(Z.slice(ee));return H?(K.m=v.get(H[0].toLowerCase()),ee+H[0].length):-1}function I(K,Z,ee){var H=m.exec(Z.slice(ee));return H?(K.m=w.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(K,Z,ee){return $(K,t,Z,ee)}function M(K,Z,ee){return $(K,n,Z,ee)}function F(K,Z,ee){return $(K,r,Z,ee)}function R(K){return o[K.getDay()]}function P(K){return a[K.getDay()]}function k(K){return s[K.getMonth()]}function B(K){return l[K.getMonth()]}function L(K){return i[+(K.getHours()>=12)]}function U(K){return 1+~~(K.getMonth()/3)}function V(K){return o[K.getUTCDay()]}function re(K){return a[K.getUTCDay()]}function ie(K){return s[K.getUTCMonth()]}function J(K){return l[K.getUTCMonth()]}function Ce(K){return i[+(K.getUTCHours()>=12)]}function Oe(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Z=S(K+="",x);return Z.toString=function(){return K},Z},parse:function(K){var Z=O(K+="",!1);return Z.toString=function(){return K},Z},utcFormat:function(K){var Z=S(K+="",E);return Z.toString=function(){return K},Z},utcParse:function(K){var Z=O(K+="",!0);return Z.toString=function(){return K},Z}}}var Ew={"-":"",_:" ",0:"0"},at=/^\s*\d+/,AW=/^%/,CW=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function kW(e){return e.replace(CW,"\\$&")}function al(e){return new RegExp("^(?:"+e.map(kW).join("|")+")","i")}function ol(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function NW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function MW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function IW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function RW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function LW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ow(e,t,n){var r=at.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $w(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function DW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function FW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function BW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function UW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VW(e,t,n){var r=at.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function KW(e,t,n){var r=AW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function GW(e,t,n){var r=at.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qW(e,t,n){var r=at.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Tw(e,t){return ce(e.getDate(),t,2)}function XW(e,t){return ce(e.getHours(),t,2)}function YW(e,t){return ce(e.getHours()%12||12,t,2)}function QW(e,t){return ce(1+Js.count(Sr(e),e),t,3)}function D2(e,t){return ce(e.getMilliseconds(),t,3)}function ZW(e,t){return D2(e,t)+"000"}function JW(e,t){return ce(e.getMonth()+1,t,2)}function eV(e,t){return ce(e.getMinutes(),t,2)}function tV(e,t){return ce(e.getSeconds(),t,2)}function nV(e){var t=e.getDay();return t===0?7:t}function rV(e,t){return ce(Bd.count(Sr(e)-1,e),t,2)}function F2(e){var t=e.getDay();return t>=4||t===0?to(e):to.ceil(e)}function iV(e,t){return e=F2(e),ce(to.count(Sr(e),e)+(Sr(e).getDay()===4),t,2)}function aV(e){return e.getDay()}function oV(e,t){return ce(cf.count(Sr(e)-1,e),t,2)}function lV(e,t){return ce(e.getFullYear()%100,t,2)}function sV(e,t){return e=F2(e),ce(e.getFullYear()%100,t,2)}function uV(e,t){return ce(e.getFullYear()%1e4,t,4)}function cV(e,t){var n=e.getDay();return e=n>=4||n===0?to(e):to.ceil(e),ce(e.getFullYear()%1e4,t,4)}function fV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Aw(e,t){return ce(e.getUTCDate(),t,2)}function dV(e,t){return ce(e.getUTCHours(),t,2)}function pV(e,t){return ce(e.getUTCHours()%12||12,t,2)}function hV(e,t){return ce(1+Fd.count(Er(e),e),t,3)}function B2(e,t){return ce(e.getUTCMilliseconds(),t,3)}function mV(e,t){return B2(e,t)+"000"}function vV(e,t){return ce(e.getUTCMonth()+1,t,2)}function gV(e,t){return ce(e.getUTCMinutes(),t,2)}function yV(e,t){return ce(e.getUTCSeconds(),t,2)}function xV(e){var t=e.getUTCDay();return t===0?7:t}function bV(e,t){return ce(zd.count(Er(e)-1,e),t,2)}function z2(e){var t=e.getUTCDay();return t>=4||t===0?no(e):no.ceil(e)}function wV(e,t){return e=z2(e),ce(no.count(Er(e),e)+(Er(e).getUTCDay()===4),t,2)}function _V(e){return e.getUTCDay()}function SV(e,t){return ce(ff.count(Er(e)-1,e),t,2)}function EV(e,t){return ce(e.getUTCFullYear()%100,t,2)}function OV(e,t){return e=z2(e),ce(e.getUTCFullYear()%100,t,2)}function $V(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function PV(e,t){var n=e.getUTCDay();return e=n>=4||n===0?no(e):no.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function jV(){return"+0000"}function Cw(){return"%"}function kw(e){return+e}function Nw(e){return Math.floor(+e/1e3)}var da,U2,H2;TV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function TV(e){return da=TW(e),U2=da.format,da.parse,H2=da.utcFormat,da.utcParse,da}function AV(e){return new Date(e)}function CV(e){return e instanceof Date?+e:+new Date(+e)}function b0(e,t,n,r,i,a,o,l,s,u){var c=o0(),f=c.invert,d=c.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),w=u("%I %p"),y=u("%a %d"),v=u("%b %d"),x=u("%B"),E=u("%Y");function _(S){return(s(S)<S?p:l(S)<S?h:o(S)<S?m:a(S)<S?w:r(S)<S?i(S)<S?y:v:n(S)<S?x:E)(S)}return c.invert=function(S){return new Date(f(S))},c.domain=function(S){return arguments.length?d(Array.from(S,CV)):d().map(AV)},c.ticks=function(S){var O=d();return e(O[0],O[O.length-1],S??10)},c.tickFormat=function(S,O){return O==null?_:u(O)},c.nice=function(S){var O=d();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?d(T2(O,S)):c},c.copy=function(){return Zs(c,b0(e,t,n,r,i,a,o,l,s,u))},c}function kV(){return mn.apply(b0(PW,jW,Sr,y0,Bd,Js,v0,h0,Ni,U2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NV(){return mn.apply(b0(OW,$W,Er,x0,zd,Fd,g0,m0,Ni,H2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ud(){var e=0,t=1,n,r,i,a,o=St,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var p,h;return arguments.length?([p,h]=d,o=f(p,h),u):[o(0),o(1)]}}return u.range=c(Do),u.rangeRound=c(a0),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function W2(){var e=di(Ud()(St));return e.copy=function(){return pi(e,W2())},Ar.apply(e,arguments)}function V2(){var e=u0(Ud()).domain([1,10]);return e.copy=function(){return pi(e,V2()).base(e.base())},Ar.apply(e,arguments)}function K2(){var e=c0(Ud());return e.copy=function(){return pi(e,K2()).constant(e.constant())},Ar.apply(e,arguments)}function w0(){var e=f0(Ud());return e.copy=function(){return pi(e,w0()).exponent(e.exponent())},Ar.apply(e,arguments)}function MV(){return w0.apply(null,arguments).exponent(.5)}function G2(){var e=[],t=St;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ys(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ti),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>bH(e,a/r))},n.copy=function(){return G2(t).domain(e)},Ar.apply(n,arguments)}function Hd(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=St,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(r*m<r*a?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),a=c(t=+t),o=c(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function h(m){return function(w){var y,v,x;return arguments.length?([y,v,x]=w,u=KH(m,[y,v,x]),p):[u(0),u(.5),u(1)]}}return p.range=h(Do),p.rangeRound=h(a0),p.unknown=function(m){return arguments.length?(d=m,p):d},function(m){return c=m,i=m(e),a=m(t),o=m(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function q2(){var e=di(Hd()(St));return e.copy=function(){return pi(e,q2())},Ar.apply(e,arguments)}function X2(){var e=u0(Hd()).domain([.1,1,10]);return e.copy=function(){return pi(e,X2()).base(e.base())},Ar.apply(e,arguments)}function Y2(){var e=c0(Hd());return e.copy=function(){return pi(e,Y2()).constant(e.constant())},Ar.apply(e,arguments)}function _0(){var e=f0(Hd());return e.copy=function(){return pi(e,_0()).exponent(e.exponent())},Ar.apply(e,arguments)}function IV(){return _0.apply(null,arguments).exponent(.5)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:os,scaleDiverging:q2,scaleDivergingLog:X2,scaleDivergingPow:_0,scaleDivergingSqrt:IV,scaleDivergingSymlog:Y2,scaleIdentity:j2,scaleImplicit:hv,scaleLinear:sf,scaleLog:A2,scaleOrdinal:n0,scalePoint:jl,scalePow:d0,scaleQuantile:N2,scaleQuantize:M2,scaleRadial:k2,scaleSequential:W2,scaleSequentialLog:V2,scaleSequentialPow:w0,scaleSequentialQuantile:G2,scaleSequentialSqrt:MV,scaleSequentialSymlog:K2,scaleSqrt:mW,scaleSymlog:C2,scaleThreshold:I2,scaleTime:kV,scaleUtc:NV,tickFormat:P2},Symbol.toStringTag,{value:"Module"}));var RV=jo;function LV(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(l===void 0?o===o&&!RV(o):n(o,l)))var l=o,s=a}return s}var Wd=LV;function DV(e,t){return e>t}var Q2=DV,FV=Wd,BV=Q2,zV=Ro;function UV(e){return e&&e.length?FV(e,zV,BV):void 0}var HV=UV;const Vd=me(HV);function WV(e,t){return e<t}var Z2=WV,VV=Wd,KV=Z2,GV=Ro;function qV(e){return e&&e.length?VV(e,GV,KV):void 0}var XV=qV;const Kd=me(XV);var YV=vd,QV=fi,ZV=i2,JV=jt;function eK(e,t){var n=JV(e)?YV:ZV;return n(e,QV(t))}var tK=eK,nK=Yy,rK=tK;function iK(e,t){return nK(rK(e,t),1)}var aK=iK;const oK=me(aK);var lK=Xy;function sK(e,t){return lK(e,t)}var uK=sK;const Gd=me(uK);var Fo=1e9,cK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},E0,Ie=!0,dn="[DecimalError] ",Fi=dn+"Invalid argument: ",S0=dn+"Exponent out of range: ",Bo=Math.floor,Oi=Math.pow,fK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Bt,tt=1e7,je=7,J2=9007199254740991,df=Bo(J2/je),X={};X.absoluteValue=X.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};X.comparedTo=X.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return pr(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return ye(pr(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return Ge(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Bt))throw Error(dn+"NaN");if(n.s<1)throw Error(dn+(n.s?"NaN":"-Infinity"));return n.eq(Bt)?new r(0):(Ie=!1,t=pr(fs(n,a),fs(e,a),a),Ie=!0,ye(t,i))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nj(t,e):ej(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(dn+"NaN");return n.s?(Ie=!1,t=pr(n,e,0,1).times(e),Ie=!0,n.minus(t)):ye(new r(n),i)};X.naturalExponential=X.exp=function(){return tj(this)};X.naturalLogarithm=X.ln=function(){return fs(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ej(t,e):nj(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Fi+e);if(t=Ge(i)+1,r=i.d.length-1,n=r*je+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};X.squareRoot=X.sqrt=function(){var e,t,n,r,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(dn+"NaN")}for(e=Ge(l),Ie=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Dn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Bo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(i.toString()),n=s.precision,i=o=n+3;;)if(a=r,r=a.plus(pr(l,a,o+2)).times(.5),Dn(a.d).slice(0,o)===(t=Dn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ye(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return Ie=!0,ye(r,n)};X.times=X.mul=function(e){var t,n,r,i,a,o,l,s,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,n=c.e+e.e,s=d.length,u=p.length,s<u&&(a=d,d=p,p=a,o=s,s=u,u=o),a=[],o=s+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=s+r;i>r;)l=a[i]+p[r]*d[i-r-1]+t,a[i--]=l%tt|0,t=l/tt|0;a[i]=(a[i]+t)%tt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,Ie?ye(e,f.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(qn(e,0,Fo),t===void 0?t=r.rounding:qn(t,0,8),ye(n,e+Ge(n)+1,t))};X.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Gi(r,!0):(qn(e,0,Fo),t===void 0?t=i.rounding:qn(t,0,8),r=ye(new i(r),e+1,t),n=Gi(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Gi(i):(qn(e,0,Fo),t===void 0?t=a.rounding:qn(t,0,8),r=ye(new a(i),e+Ge(i)+1,t),n=Gi(r.abs(),!1,e+Ge(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return ye(new t(e),Ge(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,i,a,o,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s(Bt);if(l=new s(l),!l.s){if(e.s<1)throw Error(dn+"Infinity");return l}if(l.eq(Bt))return l;if(r=s.precision,e.eq(Bt))return ye(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=c<0?-c:c)<=J2){for(i=new s(Bt),t=Math.ceil(r/je+4),Ie=!1;n%2&&(i=i.times(l),Rw(i.d,t)),n=Bo(n/2),n!==0;)l=l.times(l),Rw(l.d,t);return Ie=!0,e.s<0?new s(Bt).div(i):ye(i,r)}}else if(a<0)throw Error(dn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Ie=!1,i=e.times(fs(l,r+u)),Ie=!0,i=tj(i),i.s=a,i};X.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Ge(i),r=Gi(i,n<=a.toExpNeg||n>=a.toExpPos)):(qn(e,1,Fo),t===void 0?t=a.rounding:qn(t,0,8),i=ye(new a(i),e,t),n=Ge(i),r=Gi(i,e<=n||n<=a.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(qn(e,1,Fo),t===void 0?t=r.rounding:qn(t,0,8)),ye(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ge(e),n=e.constructor;return Gi(e,t<=n.toExpNeg||t>=n.toExpPos)};function ej(e,t){var n,r,i,a,o,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ie?ye(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(r=s,a=-a,l=u.length):(r=u,i=o,l=s.length),o=Math.ceil(f/je),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,r=u,u=s,s=r),n=0;a;)n=(s[--a]=s[a]+u[a]+n)/tt|0,s[a]%=tt;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,Ie?ye(t,f):t}function qn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Fi+e)}function Dn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=je-r.length,n&&(a+=Lr(n)),a+=r;o=e[t],r=o+"",n=je-r.length,n&&(a+=Lr(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var pr=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%tt|0,o=a/tt|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,s;if(a!=o)s=a>o?1:-1;else for(l=s=0;l<a;l++)if(r[l]!=i[l]){s=r[l]>i[l]?1:-1;break}return s}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*tt+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,s,u,c,f,d,p,h,m,w,y,v,x,E,_,S,O,$,T=r.constructor,C=r.s==i.s?1:-1,A=r.d,N=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(dn+"Division by zero");for(s=r.e-i.e,O=N.length,_=A.length,p=new T(C),h=p.d=[],u=0;N[u]==(A[u]||0);)++u;if(N[u]>(A[u]||0)&&--s,a==null?v=a=T.precision:o?v=a+(Ge(r)-Ge(i))+1:v=a,v<0)return new T(0);if(v=v/je+2|0,u=0,O==1)for(c=0,N=N[0],v++;(u<_||c)&&v--;u++)x=c*tt+(A[u]||0),h[u]=x/N|0,c=x%N|0;else{for(c=tt/(N[0]+1)|0,c>1&&(N=e(N,c),A=e(A,c),O=N.length,_=A.length),E=O,m=A.slice(0,O),w=m.length;w<O;)m[w++]=0;$=N.slice(),$.unshift(0),S=N[0],N[1]>=tt/2&&++S;do c=0,l=t(N,m,O,w),l<0?(y=m[0],O!=w&&(y=y*tt+(m[1]||0)),c=y/S|0,c>1?(c>=tt&&(c=tt-1),f=e(N,c),d=f.length,w=m.length,l=t(f,m,d,w),l==1&&(c--,n(f,O<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<w&&f.unshift(0),n(m,f,w),l==-1&&(w=m.length,l=t(N,m,O,w),l<1&&(c++,n(m,O<w?$:N,w))),w=m.length):l===0&&(c++,m=[0]),h[u++]=c,l&&m[0]?m[w++]=A[E]||0:(m=[A[E]],w=1);while((E++<_||m[0]!==void 0)&&v--)}return h[0]||h.shift(),p.e=s,ye(p,o?a+Ge(p)+1:a)}}();function tj(e,t){var n,r,i,a,o,l,s=0,u=0,c=e.constructor,f=c.precision;if(Ge(e)>16)throw Error(S0+Ge(e));if(!e.s)return new c(Bt);for(t==null?(Ie=!1,l=f):l=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Oi(2,u))/Math.LN10*2+5|0,l+=r,n=i=a=new c(Bt),c.precision=l;;){if(i=ye(i.times(e),l),n=n.times(++s),o=a.plus(pr(i,n,l)),Dn(o.d).slice(0,l)===Dn(a.d).slice(0,l)){for(;u--;)a=ye(a.times(a),l);return c.precision=f,t==null?(Ie=!0,ye(a,f)):a}a=o}}function Ge(e){for(var t=e.e*je,n=e.d[0];n>=10;n/=10)t++;return t}function vh(e,t,n){if(t>e.LN10.sd())throw Ie=!0,n&&(e.precision=n),Error(dn+"LN10 precision limit exceeded");return ye(new e(e.LN10),t)}function Lr(e){for(var t="";e--;)t+="0";return t}function fs(e,t){var n,r,i,a,o,l,s,u,c,f=1,d=10,p=e,h=p.d,m=p.constructor,w=m.precision;if(p.s<1)throw Error(dn+(p.s?"NaN":"-Infinity"));if(p.eq(Bt))return new m(0);if(t==null?(Ie=!1,u=w):u=t,p.eq(10))return t==null&&(Ie=!0),vh(m,u);if(u+=d,m.precision=u,n=Dn(h),r=n.charAt(0),a=Ge(p),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Dn(p.d),r=n.charAt(0),f++;a=Ge(p),r>1?(p=new m("0."+n),a++):p=new m(r+"."+n.slice(1))}else return s=vh(m,u+2,w).times(a+""),p=fs(new m(r+"."+n.slice(1)),u-d).plus(s),m.precision=w,t==null?(Ie=!0,ye(p,w)):p;for(l=o=p=pr(p.minus(Bt),p.plus(Bt),u),c=ye(p.times(p),u),i=3;;){if(o=ye(o.times(c),u),s=l.plus(pr(o,new m(i),u)),Dn(s.d).slice(0,u)===Dn(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(vh(m,u+2,w).times(a+""))),l=pr(l,new m(f),u),m.precision=w,t==null?(Ie=!0,ye(l,w)):l;l=s,i+=2}}function Iw(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Bo(n/je),e.d=[],r=(n+1)%je,n<0&&(r+=je),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=je;r<i;)e.d.push(+t.slice(r,r+=je));t=t.slice(r),r=je-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Ie&&(e.e>df||e.e<-df))throw Error(S0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ye(e,t,n){var r,i,a,o,l,s,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=je,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/je),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;r%=je,i=r-je+o}if(n!==void 0&&(a=Oi(10,o-i-1),l=u/a%10|0,s=t<0||f[c+1]!==void 0||u%a,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?i>0?u/Oi(10,o-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(a=Ge(e),f.length=1,t=t-a-1,f[0]=Oi(10,(je-t%je)%je),e.e=Bo(-t/je)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=c,a=1,c--):(f.length=c+1,a=Oi(10,je-r),f[c]=i>0?(u/Oi(10,o-i)%Oi(10,i)|0)*a:0),s)for(;;)if(c==0){(f[0]+=a)==tt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=tt)break;f[c--]=0,a=1}for(r=f.length;f[--r]===0;)f.pop();if(Ie&&(e.e>df||e.e<-df))throw Error(S0+Ge(e));return e}function nj(e,t){var n,r,i,a,o,l,s,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ie?ye(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(c=o<0,c?(n=s,o=-o,l=f.length):(n=f,r=u,l=s.length),i=Math.max(Math.ceil(p/je),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=s.length,l=f.length,c=i<l,c&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){c=s[i]<f[i];break}o=0}for(c&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=tt-1;--s[a],s[i]+=tt}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Ie?ye(t,p):t):new d(0)}function Gi(e,t,n){var r,i=Ge(e),a=Dn(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+Lr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Lr(-i-1)+a,n&&(r=n-o)>0&&(a+=Lr(r))):i>=o?(a+=Lr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Lr(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=Lr(r))),e.s<0?"-"+a:a}function Rw(e,t){if(e.length>t)return e.length=t,!0}function rj(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Fi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Iw(o,a.toString())}else if(typeof a!="string")throw Error(Fi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,fK.test(a))Iw(o,a);else throw Error(Fi+a)}if(i.prototype=X,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=rj,i.config=i.set=dK,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function dK(e){if(!e||typeof e!="object")throw Error(dn+"Object expected");var t,n,r,i=["precision",1,Fo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Bo(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Fi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Fi+n+": "+r);return this}var E0=rj(cK);Bt=new E0(1);const ge=E0;function pK(e){return gK(e)||vK(e)||mK(e)||hK()}function hK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
210
|
+
height and width.`,M,F,o,s,c,f,n);var R=!Array.isArray(p)&&fr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?b.cloneElement(P,Lu({width:M,height:F},R?{style:Lu({height:"100%",width:"100%",maxHeight:F,maxWidth:M},P.props.style)}:{})):P})},[n,p,s,d,f,c,T,o]);return j.createElement("div",{id:w?"".concat(w):void 0,className:ue("recharts-responsive-container",y),style:Lu(Lu({},E),{},{width:o,height:s,minWidth:c,minHeight:f,maxHeight:d}),ref:_},N)}),e0=function(t){return null};e0.displayName="Cell";function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){kU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kU(e,t,n){return t=NU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NU(e){var t=MU(e,"string");return os(t)=="symbol"?t:t+""}function MU(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fa={widthCache:{},cacheCount:0},IU=2e3,RU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},F1="recharts_measurement_span";function LU(e){var t=uv({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var B1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ti.isSsr)return{width:0,height:0};var r=LU(n),i=JSON.stringify({text:t,copyStyle:r});if(fa.widthCache[i])return fa.widthCache[i];try{var a=document.getElementById(F1);a||(a=document.createElement("span"),a.setAttribute("id",F1),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=uv(uv({},RU),r);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return fa.widthCache[i]=s,++fa.cacheCount>IU&&(fa.cacheCount=0,fa.widthCache={}),s}catch{return{width:0,height:0}}},DU=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(e)}function ef(e,t){return UU(e)||zU(e,t)||BU(e,t)||FU()}function FU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
211
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BU(e,t){if(e){if(typeof e=="string")return z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z1(e,t)}}function z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function UU(e){if(Array.isArray(e))return e}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VU(r.key),r)}}function WU(e,t,n){return t&&U1(e.prototype,t),n&&U1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VU(e){var t=KU(e,"string");return ls(t)=="symbol"?t:t+""}function KU(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var H1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,W1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,GU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,h2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XU=Object.keys(h2),ja="NaN";function YU(e,t){return e*h2[t]}var Du=function(){function e(t,n){HU(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!GU.test(n)&&(this.num=NaN,this.unit=""),XU.includes(n)&&(this.num=YU(t,n),this.unit="px")}return WU(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=qU.exec(n))!==null&&r!==void 0?r:[],a=ef(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function m2(e){if(e.includes(ja))return ja;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=H1.exec(t))!==null&&n!==void 0?n:[],i=ef(r,4),a=i[1],o=i[2],l=i[3],s=Du.parse(a??""),u=Du.parse(l??""),c=o==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return ja;t=t.replace(H1,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=W1.exec(t))!==null&&f!==void 0?f:[],p=ef(d,4),h=p[1],m=p[2],w=p[3],y=Du.parse(h??""),g=Du.parse(w??""),x=m==="+"?y.add(g):y.subtract(g);if(x.isNaN())return ja;t=t.replace(W1,x.toString())}return t}var V1=/\(([^()]*)\)/;function QU(e){for(var t=e;t.includes("(");){var n=V1.exec(t),r=ef(n,2),i=r[1];t=t.replace(V1,m2(i))}return t}function ZU(e){var t=e.replace(/\s+/g,"");return t=QU(t),t=m2(t),t}function JU(e){try{return ZU(e)}catch{return ja}}function sh(e){var t=JU(e.slice(5,-1));return t===ja?"":t}var eH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],tH=["dx","dy","angle","className","breakAll"];function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function K1(e,t){if(e==null)return{};var n=nH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G1(e,t){return oH(e)||aH(e,t)||iH(e,t)||rH()}function rH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
212
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iH(e,t){if(e){if(typeof e=="string")return q1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q1(e,t)}}function q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function oH(e){if(Array.isArray(e))return e}var v2=/[ \f\n\r\t\v\u2028\u2029]+/,g2=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];le(n)||(r?a=n.toString().split(""):a=n.toString().split(v2));var o=a.map(function(s){return{word:s,width:B1(s,i).width}}),l=r?0:B1(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},lH=function(t,n,r,i,a){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=G(o),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(F,R){var P=R.word,k=R.width,B=F[F.length-1];if(B&&(i==null||a||B.width+k+r<Number(i)))B.words.push(P),B.width+=k+r;else{var L={words:[P],width:k};F.push(L)}return F},[])},p=d(n),h=function(M){return M.reduce(function(F,R){return F.width>R.width?F:R})};if(!c)return p;for(var m="…",w=function(M){var F=f.slice(0,M),R=g2({breakAll:u,style:s,children:F+m}).wordsWithComputedWidth,P=d(R),k=P.length>o||h(P).width>Number(i);return[k,P]},y=0,g=f.length-1,x=0,E;y<=g&&x<=f.length-1;){var _=Math.floor((y+g)/2),S=_-1,O=w(S),$=G1(O,2),T=$[0],C=$[1],A=w(_),N=G1(A,1),I=N[0];if(!T&&!I&&(y=_+1),T&&I&&(g=_-1),!T&&I){E=C;break}x++}return E||p},X1=function(t){var n=le(t)?[]:t.toString().split(v2);return[{words:n}]},sH=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!ti.isSsr){var s,u,c=g2({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return X1(i);return lH({breakAll:o,children:i,maxLines:l,style:a},s,u,n,r)}return X1(i)},Y1="#808080",eo=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,m=h===void 0?"end":h,w=t.fill,y=w===void 0?Y1:w,g=K1(t,eH),x=b.useMemo(function(){return sH({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),E=g.dx,_=g.dy,S=g.angle,O=g.className,$=g.breakAll,T=K1(g,tH);if(!Je(r)||!Je(a))return null;var C=r+(G(E)?E:0),A=a+(G(_)?_:0),N;switch(m){case"start":N=sh("calc(".concat(u,")"));break;case"middle":N=sh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=sh("calc(".concat(x.length-1," * -").concat(l,")"));break}var I=[];if(f){var D=x[0].width,M=g.width;I.push("scale(".concat((G(M)?M/D:1)/D,")"))}return S&&I.push("rotate(".concat(S,", ").concat(C,", ").concat(A,")")),I.length&&(T.transform=I.join(" ")),j.createElement("text",cv({},ne(T,!0),{x:C,y:A,className:ue("recharts-text",O),textAnchor:p,fill:y.includes("url")?Y1:y}),x.map(function(F,R){var P=F.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:R===0?N:l,key:"".concat(P,"-").concat(R)},P)}))};function ni(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t0(e){let t,n,r;e.length!==2?(t=ni,n=(l,s)=>ni(e(l),s),r=(l,s)=>e(l)-s):(t=e===ni||e===uH?e:cH,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function cH(){return 0}function y2(e){return e===null?NaN:+e}function*fH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const dH=t0(ni),Zs=dH.right;t0(y2).center;class Q1 extends Map{constructor(t,n=mH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Z1(this,t))}has(t){return super.has(Z1(this,t))}set(t,n){return super.set(pH(this,t),n)}delete(t){return super.delete(hH(this,t))}}function Z1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function pH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vH(e=ni){if(e===ni)return x2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function x2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gH=Math.sqrt(50),yH=Math.sqrt(10),xH=Math.sqrt(2);function tf(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=gH?10:a>=yH?5:a>=xH?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?tf(e,t,n*2):[l,s,u]}function fv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?tf(t,e,n):tf(e,t,n);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(a-u)/-o;else for(let u=0;u<l;++u)s[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(i+u)/-o;else for(let u=0;u<l;++u)s[u]=(i+u)*o;return s}function dv(e,t,n){return t=+t,e=+e,n=+n,tf(e,t,n)[2]}function pv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?dv(t,e,n):dv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function J1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ew(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function b2(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?x2:vH(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+d)),h=Math.min(r,Math.floor(t+(s-u)*f/s+d));b2(e,t,p,h,i)}const a=e[t];let o=n,l=r;for(il(e,n,t),i(e[r],a)>0&&il(e,n,r);o<l;){for(il(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?il(e,n,l):(++l,il(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function il(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bH(e,t,n){if(e=Float64Array.from(fH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ew(e);if(t>=1)return J1(e);var r,i=(r-1)*t,a=Math.floor(i),o=J1(b2(e,a).subarray(0,a+1)),l=ew(e.subarray(a+1));return o+(l-o)*(i-a)}}function wH(e,t,n=y2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function _H(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function mn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Cr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const hv=Symbol("implicit");function n0(){var e=new Q1,t=[],n=[],r=hv;function i(a){let o=e.get(a);if(o===void 0){if(r!==hv)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Q1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n0(t,n).unknown(r)},mn.apply(i,arguments),i}function ss(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<r,h=p?i:r,m=p?r:i;a=(m-h)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),h+=(m-h-a*(d-s))*c,o=a*(1-s),l&&(h=Math.round(h),o=Math.round(o));var w=_H(d).map(function(y){return h+a*y});return n(p?w.reverse():w)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return ss(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},mn.apply(f(),arguments)}function w2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return w2(t())},e}function Al(){return w2(ss.apply(null,arguments).paddingInner(1))}function r0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Js(){}var us=.7,nf=1/us,Fa="\\s*([+-]?\\d+)\\s*",cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SH=/^#([0-9a-f]{3,8})$/,EH=new RegExp(`^rgb\\(${Fa},${Fa},${Fa}\\)$`),OH=new RegExp(`^rgb\\(${zn},${zn},${zn}\\)$`),$H=new RegExp(`^rgba\\(${Fa},${Fa},${Fa},${cs}\\)$`),PH=new RegExp(`^rgba\\(${zn},${zn},${zn},${cs}\\)$`),jH=new RegExp(`^hsl\\(${cs},${zn},${zn}\\)$`),TH=new RegExp(`^hsla\\(${cs},${zn},${zn},${cs}\\)$`),tw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r0(Js,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nw,formatHex:nw,formatHex8:AH,formatHsl:CH,formatRgb:rw,toString:rw});function nw(){return this.rgb().formatHex()}function AH(){return this.rgb().formatHex8()}function CH(){return S2(this).formatHsl()}function rw(){return this.rgb().formatRgb()}function fs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SH.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?iw(t):n===3?new Nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=EH.exec(e))?new Nt(t[1],t[2],t[3],1):(t=OH.exec(e))?new Nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$H.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=PH.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jH.exec(e))?lw(t[1],t[2]/100,t[3]/100,1):(t=TH.exec(e))?lw(t[1],t[2]/100,t[3]/100,t[4]):tw.hasOwnProperty(e)?iw(tw[e]):e==="transparent"?new Nt(NaN,NaN,NaN,0):null}function iw(e){return new Nt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function kH(e){return e instanceof Js||(e=fs(e)),e?(e=e.rgb(),new Nt(e.r,e.g,e.b,e.opacity)):new Nt}function mv(e,t,n,r){return arguments.length===1?kH(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}r0(Nt,mv,_2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nt(Fi(this.r),Fi(this.g),Fi(this.b),rf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:aw,formatHex:aw,formatHex8:NH,formatRgb:ow,toString:ow}));function aw(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}`}function NH(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}${Ni((isNaN(this.opacity)?1:this.opacity)*255)}`}function ow(){const e=rf(this.opacity);return`${e===1?"rgb(":"rgba("}${Fi(this.r)}, ${Fi(this.g)}, ${Fi(this.b)}${e===1?")":`, ${e})`}`}function rf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ni(e){return e=Fi(e),(e<16?"0":"")+e.toString(16)}function lw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,n,r)}function S2(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Js||(e=fs(e)),!e)return new wn;if(e instanceof wn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new wn(o,l,s,e.opacity)}function MH(e,t,n,r){return arguments.length===1?S2(e):new wn(e,t,n,r??1)}function wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}r0(wn,MH,_2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new wn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nt(uh(e>=240?e-240:e+120,i,r),uh(e,i,r),uh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn(sw(this.h),Bu(this.s),Bu(this.l),rf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rf(this.opacity);return`${e===1?"hsl(":"hsla("}${sw(this.h)}, ${Bu(this.s)*100}%, ${Bu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sw(e){return e=(e||0)%360,e<0?e+360:e}function Bu(e){return Math.max(0,Math.min(1,e||0))}function uh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const i0=e=>()=>e;function IH(e,t){return function(n){return e+n*t}}function RH(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function LH(e){return(e=+e)==1?E2:function(t,n){return n-t?RH(t,n,e):i0(isNaN(t)?n:t)}}function E2(e,t){var n=t-e;return n?IH(e,n):i0(isNaN(e)?t:e)}const uw=function e(t){var n=LH(t);function r(i,a){var o=n((i=mv(i)).r,(a=mv(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=E2(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function DH(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function FH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BH(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Fo(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function zH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function af(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function UH(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Fo(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var vv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ch=new RegExp(vv.source,"g");function HH(e){return function(){return e}}function WH(e){return function(t){return e(t)+""}}function VH(e,t){var n=vv.lastIndex=ch.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=vv.exec(e))&&(i=ch.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:af(r,i)})),n=ch.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?WH(s[0].x):HH(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Fo(e,t){var n=typeof t,r;return t==null||n==="boolean"?i0(t):(n==="number"?af:n==="string"?(r=fs(t))?(t=r,uw):VH:t instanceof fs?uw:t instanceof Date?zH:FH(t)?DH:Array.isArray(t)?BH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UH:af)(e,t)}function a0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function KH(e,t){t===void 0&&(t=e,e=Fo);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function GH(e){return function(){return e}}function of(e){return+e}var cw=[0,1];function St(e){return e}function gv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:GH(isNaN(t)?NaN:.5)}function qH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function XH(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=gv(i,r),a=n(o,a)):(r=gv(r,i),a=n(a,o)),function(l){return a(r(l))}}function YH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=gv(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=Zs(e,l,1,r)-1;return a[s](i[s](l))}}function eu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dd(){var e=cw,t=cw,n=Fo,r,i,a,o=St,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==St&&(o=qH(e[0],e[d-1])),l=d>2?YH:XH,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(r),af)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,of),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=a0,c()},f.clamp=function(d){return arguments.length?(o=d?!0:St,c()):o!==St},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,p){return r=d,i=p,c()}}function o0(){return Dd()(St,St)}function QH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function to(e){return e=lf(Math.abs(e)),e?e[1]:NaN}function ZH(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function JH(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var eW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ds(e){if(!(t=eW.exec(e)))throw new Error("invalid format: "+e);var t;return new l0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ds.prototype=l0.prototype;function l0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}l0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var O2;function nW(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(O2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+lf(e,Math.max(0,t+a-1))[0]}function fw(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const dw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:QH,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fw(e*100,t),r:fw,s:nW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pw(e){return e}var hw=Array.prototype.map,mw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rW(e){var t=e.grouping===void 0||e.thousands===void 0?pw:ZH(hw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pw:JH(hw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=ds(f);var d=f.fill,p=f.align,h=f.sign,m=f.symbol,w=f.zero,y=f.width,g=f.comma,x=f.precision,E=f.trim,_=f.type;_==="n"?(g=!0,_="g"):dw[_]||(x===void 0&&(x=12),E=!0,_="g"),(w||d==="0"&&p==="=")&&(w=!0,d="0",p="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=m==="$"?r:/[%p]/.test(_)?o:"",$=dw[_],T=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(A){var N=S,I=O,D,M,F;if(_==="c")I=$(A)+I,A="";else{A=+A;var R=A<0||1/A<0;if(A=isNaN(A)?s:$(Math.abs(A),x),E&&(A=tW(A)),R&&+A==0&&h!=="+"&&(R=!1),N=(R?h==="("?h:l:h==="-"||h==="("?"":h)+N,I=(_==="s"?mw[8+O2/3]:"")+I+(R&&h==="("?")":""),T){for(D=-1,M=A.length;++D<M;)if(F=A.charCodeAt(D),48>F||F>57){I=(F===46?i+A.slice(D+1):A.slice(D))+I,A=A.slice(0,D);break}}}g&&!w&&(A=t(A,1/0));var P=N.length+A.length+I.length,k=P<y?new Array(y-P+1).join(d):"";switch(g&&w&&(A=t(k+A,k.length?y-I.length:1/0),k=""),p){case"<":A=N+A+I+k;break;case"=":A=N+k+A+I;break;case"^":A=k.slice(0,P=k.length>>1)+N+A+I+k.slice(P);break;default:A=k+N+A+I;break}return a(A)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=ds(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(to(d)/3)))*3,m=Math.pow(10,-h),w=mw[8+h/3];return function(y){return p(m*y)+w}}return{format:u,formatPrefix:c}}var zu,s0,$2;iW({thousands:",",grouping:[3],currency:["$",""]});function iW(e){return zu=rW(e),s0=zu.format,$2=zu.formatPrefix,zu}function aW(e){return Math.max(0,-to(Math.abs(e)))}function oW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(to(t)/3)))*3-to(Math.abs(e)))}function lW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,to(t)-to(e))+1}function P2(e,t,n,r){var i=pv(e,t,n),a;switch(r=ds(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=oW(i,o))&&(r.precision=a),$2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=lW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=aW(i))&&(r.precision=a-(r.type==="%")*2);break}}return s0(r)}function pi(e){var t=e.domain;return e.ticks=function(n){var r=t();return fv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return P2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=dv(o,l,n),u===s)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function sf(){var e=o0();return e.copy=function(){return eu(e,sf())},mn.apply(e,arguments),pi(e)}function j2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,of),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return j2(e).unknown(t)},e=arguments.length?Array.from(e,of):[0,1],pi(n)}function T2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function vw(e){return Math.log(e)}function gw(e){return Math.exp(e)}function sW(e){return-Math.log(-e)}function uW(e){return-Math.exp(-e)}function cW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function fW(e){return e===10?cW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function dW(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function yw(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(vw,gw),n=t.domain;let r=10,i,a;function o(){return i=dW(r),a=fW(r),n()[0]<0?(i=yw(i),a=yw(a),e(sW,uW)):e(vw,gw),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),h,m;const w=l==null?10:+l;let y=[];if(!(r%1)&&p-d<w){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(h=1;h<r;++h)if(m=d<0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;y.push(m)}}else for(;d<=p;++d)for(h=r-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;y.push(m)}y.length*2<w&&(y=fv(u,c,w))}else y=fv(d,p,Math.min(p-d,w)).map(a);return f?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=ds(s)).precision==null&&(s.trim=!0),s=s0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(T2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function A2(){const e=u0(Dd()).domain([1,10]);return e.copy=()=>eu(e,A2()).base(e.base()),mn.apply(e,arguments),e}function xw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(xw(t),bw(t));return n.constant=function(r){return arguments.length?e(xw(t=+r),bw(t)):t},pi(n)}function C2(){var e=c0(Dd());return e.copy=function(){return eu(e,C2()).constant(e.constant())},mn.apply(e,arguments)}function ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hW(e){return e<0?-e*e:e*e}function f0(e){var t=e(St,St),n=1;function r(){return n===1?e(St,St):n===.5?e(pW,hW):e(ww(n),ww(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},pi(t)}function d0(){var e=f0(Dd());return e.copy=function(){return eu(e,d0()).exponent(e.exponent())},mn.apply(e,arguments),e}function mW(){return d0.apply(null,arguments).exponent(.5)}function _w(e){return Math.sign(e)*e*e}function vW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function k2(){var e=o0(),t=[0,1],n=!1,r;function i(a){var o=vW(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(_w(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,of)).map(_w)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return k2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},mn.apply(i,arguments),pi(i)}function N2(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=wH(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Zs(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ni),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return N2().domain(e).range(t).unknown(r)},mn.apply(a,arguments)}function M2(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Zs(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return M2().domain([e,t]).range(i).unknown(a)},mn.apply(pi(o),arguments)}function I2(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Zs(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return I2().domain(e).range(t).unknown(n)},mn.apply(i,arguments)}const fh=new Date,dh=new Date;function et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(fh.setTime(+a),dh.setTime(+o),e(fh),e(dh),Math.floor(n(fh,dh))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const uf=et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);uf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):uf);uf.range;const lr=1e3,ln=lr*60,sr=ln*60,Sr=sr*24,p0=Sr*7,Sw=Sr*30,ph=Sr*365,Mi=et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Mi.range;const h0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getMinutes());h0.range;const m0=et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getUTCMinutes());m0.range;const v0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*ln)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());v0.range;const g0=et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());g0.range;const tu=et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ln)/Sr,e=>e.getDate()-1);tu.range;const Fd=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>e.getUTCDate()-1);Fd.range;const R2=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>Math.floor(e/Sr));R2.range;function aa(e){return et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ln)/p0)}const Bd=aa(0),cf=aa(1),gW=aa(2),yW=aa(3),no=aa(4),xW=aa(5),bW=aa(6);Bd.range;cf.range;gW.range;yW.range;no.range;xW.range;bW.range;function oa(e){return et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p0)}const zd=oa(0),ff=oa(1),wW=oa(2),_W=oa(3),ro=oa(4),SW=oa(5),EW=oa(6);zd.range;ff.range;wW.range;_W.range;ro.range;SW.range;EW.range;const y0=et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());y0.range;const x0=et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());x0.range;const Er=et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Er.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Er.range;const Or=et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Or.range;function L2(e,t,n,r,i,a){const o=[[Mi,1,lr],[Mi,5,5*lr],[Mi,15,15*lr],[Mi,30,30*lr],[a,1,ln],[a,5,5*ln],[a,15,15*ln],[a,30,30*ln],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,Sr],[r,2,2*Sr],[n,1,p0],[t,1,Sw],[t,3,3*Sw],[e,1,ph]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:s(u,c,f),h=p?p.range(u,+c+1):[];return d?h.reverse():h}function s(u,c,f){const d=Math.abs(c-u)/f,p=t0(([,,w])=>w).right(o,d);if(p===o.length)return e.every(pv(u/ph,c/ph,f));if(p===0)return uf.every(Math.max(pv(u,c,f),1));const[h,m]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return h.every(m)}return[l,s]}const[OW,$W]=L2(Or,x0,zd,R2,g0,m0),[PW,jW]=L2(Er,y0,Bd,tu,v0,h0);function hh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mh(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function al(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function TW(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=ol(i),c=ll(i),f=ol(a),d=ll(a),p=ol(o),h=ll(o),m=ol(l),w=ll(l),y=ol(s),g=ll(s),x={a:R,A:P,b:k,B,c:null,d:Tw,e:Tw,f:ZW,g:sV,G:cV,H:XW,I:YW,j:QW,L:D2,m:JW,M:eV,p:L,q:U,Q:kw,s:Nw,S:tV,u:nV,U:rV,V:iV,w:aV,W:oV,x:null,X:null,y:lV,Y:uV,Z:fV,"%":Cw},E={a:V,A:re,b:ie,B:J,c:null,d:Aw,e:Aw,f:mV,g:OV,G:PV,H:dV,I:pV,j:hV,L:B2,m:vV,M:gV,p:Ce,q:Oe,Q:kw,s:Nw,S:yV,u:xV,U:bV,V:wV,w:_V,W:SV,x:null,X:null,y:EV,Y:$V,Z:jV,"%":Cw},_={a:C,A,b:N,B:I,c:D,d:Pw,e:Pw,f:VW,g:$w,G:Ow,H:jw,I:jw,j:zW,L:WW,m:BW,M:UW,p:T,q:FW,Q:GW,s:qW,S:HW,u:MW,U:IW,V:RW,w:NW,W:LW,x:M,X:F,y:$w,Y:Ow,Z:DW,"%":KW};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(K,Z){return function(ee){var H=[],ke=-1,oe=0,He=K.length,qe,Tt,Mr;for(ee instanceof Date||(ee=new Date(+ee));++ke<He;)K.charCodeAt(ke)===37&&(H.push(K.slice(oe,ke)),(Tt=Ew[qe=K.charAt(++ke)])!=null?qe=K.charAt(++ke):Tt=qe==="e"?" ":"0",(Mr=Z[qe])&&(qe=Mr(ee,Tt)),H.push(qe),oe=ke+1);return H.push(K.slice(oe,ke)),H.join("")}}function O(K,Z){return function(ee){var H=al(1900,void 0,1),ke=$(H,K,ee+="",0),oe,He;if(ke!=ee.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Z&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(oe=mh(al(H.y,0,1)),He=oe.getUTCDay(),oe=He>4||He===0?ff.ceil(oe):ff(oe),oe=Fd.offset(oe,(H.V-1)*7),H.y=oe.getUTCFullYear(),H.m=oe.getUTCMonth(),H.d=oe.getUTCDate()+(H.w+6)%7):(oe=hh(al(H.y,0,1)),He=oe.getDay(),oe=He>4||He===0?cf.ceil(oe):cf(oe),oe=tu.offset(oe,(H.V-1)*7),H.y=oe.getFullYear(),H.m=oe.getMonth(),H.d=oe.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),He="Z"in H?mh(al(H.y,0,1)).getUTCDay():hh(al(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(He+5)%7:H.w+H.U*7-(He+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,mh(H)):hh(H)}}function $(K,Z,ee,H){for(var ke=0,oe=Z.length,He=ee.length,qe,Tt;ke<oe;){if(H>=He)return-1;if(qe=Z.charCodeAt(ke++),qe===37){if(qe=Z.charAt(ke++),Tt=_[qe in Ew?Z.charAt(ke++):qe],!Tt||(H=Tt(K,ee,H))<0)return-1}else if(qe!=ee.charCodeAt(H++))return-1}return H}function T(K,Z,ee){var H=u.exec(Z.slice(ee));return H?(K.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(K,Z,ee){var H=p.exec(Z.slice(ee));return H?(K.w=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(K,Z,ee){var H=f.exec(Z.slice(ee));return H?(K.w=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function N(K,Z,ee){var H=y.exec(Z.slice(ee));return H?(K.m=g.get(H[0].toLowerCase()),ee+H[0].length):-1}function I(K,Z,ee){var H=m.exec(Z.slice(ee));return H?(K.m=w.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(K,Z,ee){return $(K,t,Z,ee)}function M(K,Z,ee){return $(K,n,Z,ee)}function F(K,Z,ee){return $(K,r,Z,ee)}function R(K){return o[K.getDay()]}function P(K){return a[K.getDay()]}function k(K){return s[K.getMonth()]}function B(K){return l[K.getMonth()]}function L(K){return i[+(K.getHours()>=12)]}function U(K){return 1+~~(K.getMonth()/3)}function V(K){return o[K.getUTCDay()]}function re(K){return a[K.getUTCDay()]}function ie(K){return s[K.getUTCMonth()]}function J(K){return l[K.getUTCMonth()]}function Ce(K){return i[+(K.getUTCHours()>=12)]}function Oe(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Z=S(K+="",x);return Z.toString=function(){return K},Z},parse:function(K){var Z=O(K+="",!1);return Z.toString=function(){return K},Z},utcFormat:function(K){var Z=S(K+="",E);return Z.toString=function(){return K},Z},utcParse:function(K){var Z=O(K+="",!0);return Z.toString=function(){return K},Z}}}var Ew={"-":"",_:" ",0:"0"},at=/^\s*\d+/,AW=/^%/,CW=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function kW(e){return e.replace(CW,"\\$&")}function ol(e){return new RegExp("^(?:"+e.map(kW).join("|")+")","i")}function ll(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function NW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function MW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function IW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function RW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function LW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ow(e,t,n){var r=at.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $w(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function DW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function FW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function BW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function UW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VW(e,t,n){var r=at.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function KW(e,t,n){var r=AW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function GW(e,t,n){var r=at.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qW(e,t,n){var r=at.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Tw(e,t){return ce(e.getDate(),t,2)}function XW(e,t){return ce(e.getHours(),t,2)}function YW(e,t){return ce(e.getHours()%12||12,t,2)}function QW(e,t){return ce(1+tu.count(Er(e),e),t,3)}function D2(e,t){return ce(e.getMilliseconds(),t,3)}function ZW(e,t){return D2(e,t)+"000"}function JW(e,t){return ce(e.getMonth()+1,t,2)}function eV(e,t){return ce(e.getMinutes(),t,2)}function tV(e,t){return ce(e.getSeconds(),t,2)}function nV(e){var t=e.getDay();return t===0?7:t}function rV(e,t){return ce(Bd.count(Er(e)-1,e),t,2)}function F2(e){var t=e.getDay();return t>=4||t===0?no(e):no.ceil(e)}function iV(e,t){return e=F2(e),ce(no.count(Er(e),e)+(Er(e).getDay()===4),t,2)}function aV(e){return e.getDay()}function oV(e,t){return ce(cf.count(Er(e)-1,e),t,2)}function lV(e,t){return ce(e.getFullYear()%100,t,2)}function sV(e,t){return e=F2(e),ce(e.getFullYear()%100,t,2)}function uV(e,t){return ce(e.getFullYear()%1e4,t,4)}function cV(e,t){var n=e.getDay();return e=n>=4||n===0?no(e):no.ceil(e),ce(e.getFullYear()%1e4,t,4)}function fV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Aw(e,t){return ce(e.getUTCDate(),t,2)}function dV(e,t){return ce(e.getUTCHours(),t,2)}function pV(e,t){return ce(e.getUTCHours()%12||12,t,2)}function hV(e,t){return ce(1+Fd.count(Or(e),e),t,3)}function B2(e,t){return ce(e.getUTCMilliseconds(),t,3)}function mV(e,t){return B2(e,t)+"000"}function vV(e,t){return ce(e.getUTCMonth()+1,t,2)}function gV(e,t){return ce(e.getUTCMinutes(),t,2)}function yV(e,t){return ce(e.getUTCSeconds(),t,2)}function xV(e){var t=e.getUTCDay();return t===0?7:t}function bV(e,t){return ce(zd.count(Or(e)-1,e),t,2)}function z2(e){var t=e.getUTCDay();return t>=4||t===0?ro(e):ro.ceil(e)}function wV(e,t){return e=z2(e),ce(ro.count(Or(e),e)+(Or(e).getUTCDay()===4),t,2)}function _V(e){return e.getUTCDay()}function SV(e,t){return ce(ff.count(Or(e)-1,e),t,2)}function EV(e,t){return ce(e.getUTCFullYear()%100,t,2)}function OV(e,t){return e=z2(e),ce(e.getUTCFullYear()%100,t,2)}function $V(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function PV(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ro(e):ro.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function jV(){return"+0000"}function Cw(){return"%"}function kw(e){return+e}function Nw(e){return Math.floor(+e/1e3)}var da,U2,H2;TV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function TV(e){return da=TW(e),U2=da.format,da.parse,H2=da.utcFormat,da.utcParse,da}function AV(e){return new Date(e)}function CV(e){return e instanceof Date?+e:+new Date(+e)}function b0(e,t,n,r,i,a,o,l,s,u){var c=o0(),f=c.invert,d=c.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),w=u("%I %p"),y=u("%a %d"),g=u("%b %d"),x=u("%B"),E=u("%Y");function _(S){return(s(S)<S?p:l(S)<S?h:o(S)<S?m:a(S)<S?w:r(S)<S?i(S)<S?y:g:n(S)<S?x:E)(S)}return c.invert=function(S){return new Date(f(S))},c.domain=function(S){return arguments.length?d(Array.from(S,CV)):d().map(AV)},c.ticks=function(S){var O=d();return e(O[0],O[O.length-1],S??10)},c.tickFormat=function(S,O){return O==null?_:u(O)},c.nice=function(S){var O=d();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?d(T2(O,S)):c},c.copy=function(){return eu(c,b0(e,t,n,r,i,a,o,l,s,u))},c}function kV(){return mn.apply(b0(PW,jW,Er,y0,Bd,tu,v0,h0,Mi,U2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NV(){return mn.apply(b0(OW,$W,Or,x0,zd,Fd,g0,m0,Mi,H2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ud(){var e=0,t=1,n,r,i,a,o=St,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var p,h;return arguments.length?([p,h]=d,o=f(p,h),u):[o(0),o(1)]}}return u.range=c(Fo),u.rangeRound=c(a0),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function W2(){var e=pi(Ud()(St));return e.copy=function(){return hi(e,W2())},Cr.apply(e,arguments)}function V2(){var e=u0(Ud()).domain([1,10]);return e.copy=function(){return hi(e,V2()).base(e.base())},Cr.apply(e,arguments)}function K2(){var e=c0(Ud());return e.copy=function(){return hi(e,K2()).constant(e.constant())},Cr.apply(e,arguments)}function w0(){var e=f0(Ud());return e.copy=function(){return hi(e,w0()).exponent(e.exponent())},Cr.apply(e,arguments)}function MV(){return w0.apply(null,arguments).exponent(.5)}function G2(){var e=[],t=St;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zs(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ni),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>bH(e,a/r))},n.copy=function(){return G2(t).domain(e)},Cr.apply(n,arguments)}function Hd(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=St,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(r*m<r*a?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),a=c(t=+t),o=c(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function h(m){return function(w){var y,g,x;return arguments.length?([y,g,x]=w,u=KH(m,[y,g,x]),p):[u(0),u(.5),u(1)]}}return p.range=h(Fo),p.rangeRound=h(a0),p.unknown=function(m){return arguments.length?(d=m,p):d},function(m){return c=m,i=m(e),a=m(t),o=m(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function q2(){var e=pi(Hd()(St));return e.copy=function(){return hi(e,q2())},Cr.apply(e,arguments)}function X2(){var e=u0(Hd()).domain([.1,1,10]);return e.copy=function(){return hi(e,X2()).base(e.base())},Cr.apply(e,arguments)}function Y2(){var e=c0(Hd());return e.copy=function(){return hi(e,Y2()).constant(e.constant())},Cr.apply(e,arguments)}function _0(){var e=f0(Hd());return e.copy=function(){return hi(e,_0()).exponent(e.exponent())},Cr.apply(e,arguments)}function IV(){return _0.apply(null,arguments).exponent(.5)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ss,scaleDiverging:q2,scaleDivergingLog:X2,scaleDivergingPow:_0,scaleDivergingSqrt:IV,scaleDivergingSymlog:Y2,scaleIdentity:j2,scaleImplicit:hv,scaleLinear:sf,scaleLog:A2,scaleOrdinal:n0,scalePoint:Al,scalePow:d0,scaleQuantile:N2,scaleQuantize:M2,scaleRadial:k2,scaleSequential:W2,scaleSequentialLog:V2,scaleSequentialPow:w0,scaleSequentialQuantile:G2,scaleSequentialSqrt:MV,scaleSequentialSymlog:K2,scaleSqrt:mW,scaleSymlog:C2,scaleThreshold:I2,scaleTime:kV,scaleUtc:NV,tickFormat:P2},Symbol.toStringTag,{value:"Module"}));var RV=To;function LV(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(l===void 0?o===o&&!RV(o):n(o,l)))var l=o,s=a}return s}var Wd=LV;function DV(e,t){return e>t}var Q2=DV,FV=Wd,BV=Q2,zV=Lo;function UV(e){return e&&e.length?FV(e,zV,BV):void 0}var HV=UV;const Vd=me(HV);function WV(e,t){return e<t}var Z2=WV,VV=Wd,KV=Z2,GV=Lo;function qV(e){return e&&e.length?VV(e,GV,KV):void 0}var XV=qV;const Kd=me(XV);var YV=vd,QV=di,ZV=i2,JV=jt;function eK(e,t){var n=JV(e)?YV:ZV;return n(e,QV(t))}var tK=eK,nK=Yy,rK=tK;function iK(e,t){return nK(rK(e,t),1)}var aK=iK;const oK=me(aK);var lK=Xy;function sK(e,t){return lK(e,t)}var uK=sK;const Gd=me(uK);var Bo=1e9,cK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},E0,Ie=!0,dn="[DecimalError] ",Bi=dn+"Invalid argument: ",S0=dn+"Exponent out of range: ",zo=Math.floor,$i=Math.pow,fK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Bt,tt=1e7,je=7,J2=9007199254740991,df=zo(J2/je),X={};X.absoluteValue=X.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};X.comparedTo=X.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return pr(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return ye(pr(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return Ge(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Bt))throw Error(dn+"NaN");if(n.s<1)throw Error(dn+(n.s?"NaN":"-Infinity"));return n.eq(Bt)?new r(0):(Ie=!1,t=pr(ps(n,a),ps(e,a),a),Ie=!0,ye(t,i))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nj(t,e):ej(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(dn+"NaN");return n.s?(Ie=!1,t=pr(n,e,0,1).times(e),Ie=!0,n.minus(t)):ye(new r(n),i)};X.naturalExponential=X.exp=function(){return tj(this)};X.naturalLogarithm=X.ln=function(){return ps(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ej(t,e):nj(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Bi+e);if(t=Ge(i)+1,r=i.d.length-1,n=r*je+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};X.squareRoot=X.sqrt=function(){var e,t,n,r,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(dn+"NaN")}for(e=Ge(l),Ie=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Dn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(i.toString()),n=s.precision,i=o=n+3;;)if(a=r,r=a.plus(pr(l,a,o+2)).times(.5),Dn(a.d).slice(0,o)===(t=Dn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ye(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return Ie=!0,ye(r,n)};X.times=X.mul=function(e){var t,n,r,i,a,o,l,s,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,n=c.e+e.e,s=d.length,u=p.length,s<u&&(a=d,d=p,p=a,o=s,s=u,u=o),a=[],o=s+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=s+r;i>r;)l=a[i]+p[r]*d[i-r-1]+t,a[i--]=l%tt|0,t=l/tt|0;a[i]=(a[i]+t)%tt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,Ie?ye(e,f.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(qn(e,0,Bo),t===void 0?t=r.rounding:qn(t,0,8),ye(n,e+Ge(n)+1,t))};X.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=qi(r,!0):(qn(e,0,Bo),t===void 0?t=i.rounding:qn(t,0,8),r=ye(new i(r),e+1,t),n=qi(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?qi(i):(qn(e,0,Bo),t===void 0?t=a.rounding:qn(t,0,8),r=ye(new a(i),e+Ge(i)+1,t),n=qi(r.abs(),!1,e+Ge(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return ye(new t(e),Ge(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,i,a,o,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s(Bt);if(l=new s(l),!l.s){if(e.s<1)throw Error(dn+"Infinity");return l}if(l.eq(Bt))return l;if(r=s.precision,e.eq(Bt))return ye(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=c<0?-c:c)<=J2){for(i=new s(Bt),t=Math.ceil(r/je+4),Ie=!1;n%2&&(i=i.times(l),Rw(i.d,t)),n=zo(n/2),n!==0;)l=l.times(l),Rw(l.d,t);return Ie=!0,e.s<0?new s(Bt).div(i):ye(i,r)}}else if(a<0)throw Error(dn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Ie=!1,i=e.times(ps(l,r+u)),Ie=!0,i=tj(i),i.s=a,i};X.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Ge(i),r=qi(i,n<=a.toExpNeg||n>=a.toExpPos)):(qn(e,1,Bo),t===void 0?t=a.rounding:qn(t,0,8),i=ye(new a(i),e,t),n=Ge(i),r=qi(i,e<=n||n<=a.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(qn(e,1,Bo),t===void 0?t=r.rounding:qn(t,0,8)),ye(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ge(e),n=e.constructor;return qi(e,t<=n.toExpNeg||t>=n.toExpPos)};function ej(e,t){var n,r,i,a,o,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ie?ye(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(r=s,a=-a,l=u.length):(r=u,i=o,l=s.length),o=Math.ceil(f/je),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,r=u,u=s,s=r),n=0;a;)n=(s[--a]=s[a]+u[a]+n)/tt|0,s[a]%=tt;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,Ie?ye(t,f):t}function qn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Bi+e)}function Dn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=je-r.length,n&&(a+=Dr(n)),a+=r;o=e[t],r=o+"",n=je-r.length,n&&(a+=Dr(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var pr=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%tt|0,o=a/tt|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,s;if(a!=o)s=a>o?1:-1;else for(l=s=0;l<a;l++)if(r[l]!=i[l]){s=r[l]>i[l]?1:-1;break}return s}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*tt+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,s,u,c,f,d,p,h,m,w,y,g,x,E,_,S,O,$,T=r.constructor,C=r.s==i.s?1:-1,A=r.d,N=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(dn+"Division by zero");for(s=r.e-i.e,O=N.length,_=A.length,p=new T(C),h=p.d=[],u=0;N[u]==(A[u]||0);)++u;if(N[u]>(A[u]||0)&&--s,a==null?g=a=T.precision:o?g=a+(Ge(r)-Ge(i))+1:g=a,g<0)return new T(0);if(g=g/je+2|0,u=0,O==1)for(c=0,N=N[0],g++;(u<_||c)&&g--;u++)x=c*tt+(A[u]||0),h[u]=x/N|0,c=x%N|0;else{for(c=tt/(N[0]+1)|0,c>1&&(N=e(N,c),A=e(A,c),O=N.length,_=A.length),E=O,m=A.slice(0,O),w=m.length;w<O;)m[w++]=0;$=N.slice(),$.unshift(0),S=N[0],N[1]>=tt/2&&++S;do c=0,l=t(N,m,O,w),l<0?(y=m[0],O!=w&&(y=y*tt+(m[1]||0)),c=y/S|0,c>1?(c>=tt&&(c=tt-1),f=e(N,c),d=f.length,w=m.length,l=t(f,m,d,w),l==1&&(c--,n(f,O<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<w&&f.unshift(0),n(m,f,w),l==-1&&(w=m.length,l=t(N,m,O,w),l<1&&(c++,n(m,O<w?$:N,w))),w=m.length):l===0&&(c++,m=[0]),h[u++]=c,l&&m[0]?m[w++]=A[E]||0:(m=[A[E]],w=1);while((E++<_||m[0]!==void 0)&&g--)}return h[0]||h.shift(),p.e=s,ye(p,o?a+Ge(p)+1:a)}}();function tj(e,t){var n,r,i,a,o,l,s=0,u=0,c=e.constructor,f=c.precision;if(Ge(e)>16)throw Error(S0+Ge(e));if(!e.s)return new c(Bt);for(t==null?(Ie=!1,l=f):l=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log($i(2,u))/Math.LN10*2+5|0,l+=r,n=i=a=new c(Bt),c.precision=l;;){if(i=ye(i.times(e),l),n=n.times(++s),o=a.plus(pr(i,n,l)),Dn(o.d).slice(0,l)===Dn(a.d).slice(0,l)){for(;u--;)a=ye(a.times(a),l);return c.precision=f,t==null?(Ie=!0,ye(a,f)):a}a=o}}function Ge(e){for(var t=e.e*je,n=e.d[0];n>=10;n/=10)t++;return t}function vh(e,t,n){if(t>e.LN10.sd())throw Ie=!0,n&&(e.precision=n),Error(dn+"LN10 precision limit exceeded");return ye(new e(e.LN10),t)}function Dr(e){for(var t="";e--;)t+="0";return t}function ps(e,t){var n,r,i,a,o,l,s,u,c,f=1,d=10,p=e,h=p.d,m=p.constructor,w=m.precision;if(p.s<1)throw Error(dn+(p.s?"NaN":"-Infinity"));if(p.eq(Bt))return new m(0);if(t==null?(Ie=!1,u=w):u=t,p.eq(10))return t==null&&(Ie=!0),vh(m,u);if(u+=d,m.precision=u,n=Dn(h),r=n.charAt(0),a=Ge(p),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Dn(p.d),r=n.charAt(0),f++;a=Ge(p),r>1?(p=new m("0."+n),a++):p=new m(r+"."+n.slice(1))}else return s=vh(m,u+2,w).times(a+""),p=ps(new m(r+"."+n.slice(1)),u-d).plus(s),m.precision=w,t==null?(Ie=!0,ye(p,w)):p;for(l=o=p=pr(p.minus(Bt),p.plus(Bt),u),c=ye(p.times(p),u),i=3;;){if(o=ye(o.times(c),u),s=l.plus(pr(o,new m(i),u)),Dn(s.d).slice(0,u)===Dn(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(vh(m,u+2,w).times(a+""))),l=pr(l,new m(f),u),m.precision=w,t==null?(Ie=!0,ye(l,w)):l;l=s,i+=2}}function Iw(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=zo(n/je),e.d=[],r=(n+1)%je,n<0&&(r+=je),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=je;r<i;)e.d.push(+t.slice(r,r+=je));t=t.slice(r),r=je-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Ie&&(e.e>df||e.e<-df))throw Error(S0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ye(e,t,n){var r,i,a,o,l,s,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=je,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/je),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;r%=je,i=r-je+o}if(n!==void 0&&(a=$i(10,o-i-1),l=u/a%10|0,s=t<0||f[c+1]!==void 0||u%a,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?i>0?u/$i(10,o-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(a=Ge(e),f.length=1,t=t-a-1,f[0]=$i(10,(je-t%je)%je),e.e=zo(-t/je)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=c,a=1,c--):(f.length=c+1,a=$i(10,je-r),f[c]=i>0?(u/$i(10,o-i)%$i(10,i)|0)*a:0),s)for(;;)if(c==0){(f[0]+=a)==tt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=tt)break;f[c--]=0,a=1}for(r=f.length;f[--r]===0;)f.pop();if(Ie&&(e.e>df||e.e<-df))throw Error(S0+Ge(e));return e}function nj(e,t){var n,r,i,a,o,l,s,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ie?ye(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(c=o<0,c?(n=s,o=-o,l=f.length):(n=f,r=u,l=s.length),i=Math.max(Math.ceil(p/je),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=s.length,l=f.length,c=i<l,c&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){c=s[i]<f[i];break}o=0}for(c&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=tt-1;--s[a],s[i]+=tt}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Ie?ye(t,p):t):new d(0)}function qi(e,t,n){var r,i=Ge(e),a=Dn(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+Dr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Dr(-i-1)+a,n&&(r=n-o)>0&&(a+=Dr(r))):i>=o?(a+=Dr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Dr(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=Dr(r))),e.s<0?"-"+a:a}function Rw(e,t){if(e.length>t)return e.length=t,!0}function rj(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Bi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Iw(o,a.toString())}else if(typeof a!="string")throw Error(Bi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,fK.test(a))Iw(o,a);else throw Error(Bi+a)}if(i.prototype=X,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=rj,i.config=i.set=dK,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function dK(e){if(!e||typeof e!="object")throw Error(dn+"Object expected");var t,n,r,i=["precision",1,Bo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(zo(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Bi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Bi+n+": "+r);return this}var E0=rj(cK);Bt=new E0(1);const ge=E0;function pK(e){return gK(e)||vK(e)||mK(e)||hK()}function hK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
213
213
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mK(e,t){if(e){if(typeof e=="string")return yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yv(e,t)}}function vK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gK(e){if(Array.isArray(e))return yv(e)}function yv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yK=function(t){return t},ij={"@@functional/placeholder":!0},aj=function(t){return t===ij},Lw=function(t){return function n(){return arguments.length===0||arguments.length===1&&aj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},xK=function e(t,n){return t===1?n:Lw(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==ij}).length;return o>=t?n.apply(void 0,i):e(t-o,Lw(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=i.map(function(f){return aj(f)?s.shift():f});return n.apply(void 0,pK(c).concat(s))}))})},qd=function(t){return xK(t.length,t)},xv=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},bK=qd(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),wK=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return yK;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,s){return s(l)},a.apply(void 0,arguments))}},bv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},oj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(l,s){return l===n[s]})||(n=a,r=t.apply(void 0,a)),r}};function _K(e){var t;return e===0?t=1:t=Math.floor(new ge(e).abs().log(10).toNumber())+1,t}function SK(e,t,n){for(var r=new ge(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var EK=qd(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),OK=qd(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),$K=qd(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Xd={rangeStep:SK,getDigitCount:_K,interpolateNumber:EK,uninterpolateNumber:OK,uninterpolateTruncation:$K};function wv(e){return TK(e)||jK(e)||lj(e)||PK()}function PK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
214
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TK(e){if(Array.isArray(e))return _v(e)}function
|
215
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lj(e,t){if(e){if(typeof e=="string")return _v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _v(e,t)}}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){i=!0,a=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function kK(e){if(Array.isArray(e))return e}function sj(e){var t=
|
216
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UK(e,t){if(e){if(typeof e=="string")return Dw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dw(e,t)}}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function WK(e){if(Array.isArray(e))return e}function VK(e,t){if(e==null)return{};var n=KK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pj(r.key),r)}}function XK(e,t,n){return t&&qK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YK(e,t,n){return t=hf(t),QK(e,fj()?Reflect.construct(t,n||[],hf(e).constructor):t.apply(e,n))}function QK(e,t){if(t&&(
|
217
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aG(e,t){if(e){if(typeof e=="string")return Ev(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ev(e,t)}}function oG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lG(e){if(Array.isArray(e))return Ev(e)}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fa(e,t,n){return t=sG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sG(e){var t=uG(e,"string");return hs(t)=="symbol"?t:t+""}function uG(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,n){return le(e)||le(t)?n:Je(t)?En(e,t,n):te(t)?t(e):n}function Tl(e,t,n,r){var i=oK(e,function(l){return ct(l,t)});if(n==="number"){var a=i.filter(function(l){return G(l)||parseFloat(l)});return a.length?[Kd(a),Vd(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!le(l)}):i;return o.map(function(l){return Je(l)||l instanceof Date?l:""})}var cG=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,u=0;u<l;u++){var c=u>0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,d=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(on(f-c)!==on(d-f)){var h=[];if(on(d-f)===on(s[1]-s[0])){p=d;var m=f+s[1]-s[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{p=c;var w=d+s[1]-s[0];h[0]=Math.min(f,(w+f)/2),h[1]=Math.max(f,(w+f)/2)}var y=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){o=i[u].index;break}}else{var v=Math.min(c,d),x=Math.max(c,d);if(t>(v+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){o=r[E].index;break}return o},$0=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},fG=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),s=0,u=l.length;s<u;s++)for(var c=a[l[s]].stackGroups,f=Object.keys(c),d=0,p=f.length;d<p;d++){var h=c[f[d]],m=h.items,w=h.cateAxisId,y=m.filter(function(O){return fr(O.type).indexOf("Bar")>=0});if(y&&y.length){var v=y[0].type.defaultProps,x=v!==void 0?Ue(Ue({},v),y[0].props):y[0].props,E=x.barSize,_=x[w];o[_]||(o[_]=[]);var S=le(E)?n:E;o[_].push({item:y[0],stackList:y.slice(1),barSize:le(S)?void 0:kt(S,r,0)})}}return o},dG=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=kt(n,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,h=o.reduce(function(E,_){return E+_.barSize||0},0);h+=(s-1)*u,h>=i&&(h-=(s-1)*u,u=0),h>=i&&p>0&&(d=!0,p*=.9,h=s*p);var m=(i-h)/2>>0,w={offset:m-u,size:0};c=o.reduce(function(E,_){var S={item:_.item,position:{offset:w.offset+w.size+u,size:d?p:_.barSize}},O=[].concat(Bw(E),[S]);return w=O[O.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:w})}),O},f)}else{var y=kt(r,i,0,!0);i-2*y-(s-1)*u<=0&&(u=0);var v=(i-2*y-(s-1)*u)/s;v>1&&(v>>=0);var x=l===+l?Math.min(v,l):v;c=o.reduce(function(E,_,S){var O=[].concat(Bw(E),[{item:_.item,position:{offset:y+(v+u)*S+(v-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:O[O.length-1].position})}),O},f)}return c},pG=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=hj({children:a,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,h=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&h==="middle")&&p!=="center"&&G(t[p]))return Ue(Ue({},t),{},Fa({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&h!=="middle"&&G(t[h]))return Ue(Ue({},t),{},Fa({},h,t[h]+(d||0)))}return t},hG=function(t,n,r){return le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},mj=function(t,n,r,i,a){var o=n.props.children,l=On(o,O0).filter(function(u){return hG(i,a,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=ct(c,r);if(le(f))return u;var d=Array.isArray(f)?[Kd(f),Vd(f)]:[f,f],p=s.reduce(function(h,m){var w=ct(c,m,0),y=d[0]-Math.abs(Array.isArray(w)?w[0]:w),v=d[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(y,h[0]),Math.max(v,h[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},mG=function(t,n,r,i,a){var o=n.map(function(l){return mj(t,l,r,a,i)}).filter(function(l){return!le(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},vj=function(t,n,r,i,a){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&mj(t,s,u,i)||Tl(t,u,r,a)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var c=0,f=u.length;c<f;c++)l[u[c]]||(l[u[c]]=!0,s.push(u[c]));return s},[])},gj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},vl=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?on(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!Ks(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},gh=new WeakMap,Bu=function(t,n){if(typeof n!="function")return t;gh.has(t)||gh.set(t,new WeakMap);var r=gh.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},vG=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:os(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:sf(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:jl(),realScaleType:"point"}:a==="category"?{scale:os(),realScaleType:"band"}:{scale:sf(),realScaleType:"linear"};if(No(i)){var s="scale".concat(Ad(i));return{scale:(Mw[s]||jl)(),realScaleType:Mw[s]?s:"point"}}return te(i)?{scale:i}:{scale:jl(),realScaleType:"point"}},Uw=1e-4,gG=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-Uw,o=Math.max(i[0],i[1])+Uw,l=t(n[0]),s=t(n[r-1]);(l<a||l>o||s<a||s>o)&&t.domain([n[0],n[r-1]])}},yG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var s=Ks(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=a,t[l][r][1]=a+s,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},xG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=Ks(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},bG={sign:yG,expand:XD,none:qa,silhouette:YD,wiggle:QD,positive:xG},wG=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=bG[r],o=qD().keys(i).value(function(l,s){return+ct(l,s,0)}).order(Xm).offset(a);return o(t)},_G=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ue(Ue({},d.type.defaultProps),d.props):d.props,m=h.stackId,w=h.hide;if(w)return f;var y=h[r],v=f[y]||{hasStack:!1,stackGroups:{}};if(Je(m)){var x=v.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),v.hasStack=!0,v.stackGroups[m]=x}else v.stackGroups[Td("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Ue(Ue({},f),{},Fa({},y,v))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,w){var y=p.stackGroups[w];return Ue(Ue({},m),{},Fa({},w,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:wG(t,y.items,a)}))},h)}return Ue(Ue({},f),{},Fa({},d,p))},c)},SG=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=RK(u,a,l);return t.domain([Kd(c),Vd(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=LK(f,a,l);return{niceTicks:d}}return null},EG=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Je(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},OG=function(t){return t.reduce(function(n,r){return[Kd(r.concat([n[0]]).filter(G)),Vd(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},yj=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,s=l.reduce(function(u,c){var f=OG(c.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Hw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ww=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ov=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(G(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Hw.test(t[0])){var a=+Hw.exec(t[0])[1];i[0]=n[0]-a}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(G(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ww.test(t[1])){var o=+Ww.exec(t[1])[1];i[1]=n[1]+o}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},$v=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Zy(n,function(f){return f.coordinate}),o=1/0,l=1,s=a.length;l<s;l++){var u=a[l],c=a[l-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Vw=function(t,n,r){return!t||!t.length||Gd(t,En(r,"type.defaultProps.domain"))?n:t},$G=function(t,n){var r=t.type.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,c=r.hide;return Ue(Ue({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:$0(t),value:ct(n,i),type:s,payload:n,chartType:u,hide:c})};function ms(e){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xj(e,t,n){return t=PG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PG(e){var t=jG(e,"string");return ms(t)=="symbol"?t:t+""}function jG(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TG(e,t){return NG(e)||kG(e,t)||CG(e,t)||AG()}function AG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
218
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CG(e,t){if(e){if(typeof e=="string")return Gw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gw(e,t)}}function Gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function NG(e){if(Array.isArray(e))return e}var mf=Math.PI/180,MG=function(t){return t*180/Math.PI},Se=function(t,n,r,i){return{x:t+Math.cos(-mf*i)*r,y:n+Math.sin(-mf*i)*r}},bj=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},IG=function(t,n,r,i,a){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=kt(t.cx,o,o/2),f=kt(t.cy,l,l/2),d=bj(o,l,r),p=kt(t.innerRadius,d,0),h=kt(t.outerRadius,d,d*.8),m=Object.keys(n);return m.reduce(function(w,y){var
|
219
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HG(e,t){if(e){if(typeof e=="string")return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}}function WG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VG(e){if(Array.isArray(e))return Pv(e)}function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KG(e,t){if(e==null)return{};var n=GG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(r){qG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qG(e,t,n){return t=XG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XG(e){var t=YG(e,"string");return
|
214
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TK(e){if(Array.isArray(e))return _v(e)}function hs(e,t){return kK(e)||CK(e,t)||lj(e,t)||AK()}function AK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
215
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lj(e,t){if(e){if(typeof e=="string")return _v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _v(e,t)}}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){i=!0,a=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function kK(e){if(Array.isArray(e))return e}function sj(e){var t=hs(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function uj(e,t,n){if(e.lte(0))return new ge(0);var r=Xd.getDigitCount(e.toNumber()),i=new ge(10).pow(r),a=e.div(i),o=r!==1?.05:.1,l=new ge(Math.ceil(a.div(o).toNumber())).add(n).mul(o),s=l.mul(i);return t?s:new ge(Math.ceil(s))}function NK(e,t,n){var r=1,i=new ge(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new ge(10).pow(Xd.getDigitCount(e)-1),i=new ge(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new ge(Math.floor(e)))}else e===0?i=new ge(Math.floor((t-1)/2)):n||(i=new ge(Math.floor(e)));var o=Math.floor((t-1)/2),l=wK(bK(function(s){return i.add(new ge(s-o).mul(r)).toNumber()}),xv);return l(0,t)}function cj(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ge(0),tickMin:new ge(0),tickMax:new ge(0)};var a=uj(new ge(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new ge(0):(o=new ge(e).add(t).div(2),o=o.sub(new ge(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ge(t).sub(o).div(a).toNumber()),u=l+s+1;return u>n?cj(e,t,n,r,i+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:a,tickMin:o.sub(new ge(l).mul(a)),tickMax:o.add(new ge(s).mul(a))})}function MK(e){var t=hs(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=sj([n,r]),s=hs(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(wv(xv(0,i-1).map(function(){return 1/0}))):[].concat(wv(xv(0,i-1).map(function(){return-1/0})),[c]);return n>r?bv(f):f}if(u===c)return NK(u,i,a);var d=cj(u,c,o,a),p=d.step,h=d.tickMin,m=d.tickMax,w=Xd.rangeStep(h,m.add(new ge(.1).mul(p)),p);return n>r?bv(w):w}function IK(e,t){var n=hs(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=sj([r,i]),l=hs(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,i];if(s===u)return[s];var c=Math.max(t,2),f=uj(new ge(u).sub(s).div(c-1),a,0),d=[].concat(wv(Xd.rangeStep(new ge(s),new ge(u).sub(new ge(.99).mul(f)),f)),[u]);return r>i?bv(d):d}var RK=oj(MK),LK=oj(IK),DK="Invariant failed";function io(e,t){throw new Error(DK)}var FK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pf.apply(this,arguments)}function BK(e,t){return WK(e)||HK(e,t)||UK(e,t)||zK()}function zK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
216
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UK(e,t){if(e){if(typeof e=="string")return Dw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dw(e,t)}}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function WK(e){if(Array.isArray(e))return e}function VK(e,t){if(e==null)return{};var n=KK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pj(r.key),r)}}function XK(e,t,n){return t&&qK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YK(e,t,n){return t=hf(t),QK(e,fj()?Reflect.construct(t,n||[],hf(e).constructor):t.apply(e,n))}function QK(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZK(e)}function ZK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fj=function(){return!!e})()}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function JK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sv(e,t)}function dj(e,t,n){return t=pj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pj(e){var t=eG(e,"string");return ao(t)=="symbol"?t:t+""}function eG(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O0=function(e){function t(){return GK(this,t),YK(this,t,arguments)}return JK(t,e),XK(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,c=r.xAxis,f=r.yAxis,d=VK(r,FK),p=ne(d,!1);this.props.direction==="x"&&c.type!=="number"&&io();var h=s.map(function(m){var w=u(m,l),y=w.x,g=w.y,x=w.value,E=w.errorVal;if(!E)return null;var _=[],S,O;if(Array.isArray(E)){var $=BK(E,2);S=$[0],O=$[1]}else S=O=E;if(a==="vertical"){var T=c.scale,C=g+i,A=C+o,N=C-o,I=T(x-S),D=T(x+O);_.push({x1:D,y1:A,x2:D,y2:N}),_.push({x1:I,y1:C,x2:D,y2:C}),_.push({x1:I,y1:A,x2:I,y2:N})}else if(a==="horizontal"){var M=f.scale,F=y+i,R=F-o,P=F+o,k=M(x-S),B=M(x+O);_.push({x1:R,y1:B,x2:P,y2:B}),_.push({x1:F,y1:k,x2:F,y2:B}),_.push({x1:R,y1:k,x2:P,y2:k})}return j.createElement(Te,pf({className:"recharts-errorBar",key:"bar-".concat(_.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},p),_.map(function(L){return j.createElement("line",pf({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return j.createElement(Te,{className:"recharts-errorBars"},h)}}])}(j.Component);dj(O0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});dj(O0,"displayName","ErrorBar");function ms(e){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(e)}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){tG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tG(e,t,n){return t=nG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nG(e){var t=rG(e,"string");return ms(t)=="symbol"?t:t+""}function rG(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Jt(n,Da);if(!o)return null;var l=Da.defaultProps,s=l!==void 0?xi(xi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(r||[]).reduce(function(c,f){var d=f.item,p=f.props,h=p.sectors||p.data||[];return c.concat(h.map(function(m){return{type:o.props.iconType||d.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?xi(xi({},d),f.props):{},h=p.dataKey,m=p.name,w=p.legendType,y=p.hide;return{inactive:y,dataKey:h,type:s.iconType||w||"square",color:$0(f),value:m||h,payload:p}}),xi(xi(xi({},s),Da.getWithHeight(o,i)),{},{payload:u,item:o})};function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function Bw(e){return lG(e)||oG(e)||aG(e)||iG()}function iG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
217
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aG(e,t){if(e){if(typeof e=="string")return Ev(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ev(e,t)}}function oG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lG(e){if(Array.isArray(e))return Ev(e)}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){Ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ba(e,t,n){return t=sG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sG(e){var t=uG(e,"string");return vs(t)=="symbol"?t:t+""}function uG(e,t){if(vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,n){return le(e)||le(t)?n:Je(t)?En(e,t,n):te(t)?t(e):n}function Cl(e,t,n,r){var i=oK(e,function(l){return ct(l,t)});if(n==="number"){var a=i.filter(function(l){return G(l)||parseFloat(l)});return a.length?[Kd(a),Vd(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!le(l)}):i;return o.map(function(l){return Je(l)||l instanceof Date?l:""})}var cG=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,u=0;u<l;u++){var c=u>0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,d=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(on(f-c)!==on(d-f)){var h=[];if(on(d-f)===on(s[1]-s[0])){p=d;var m=f+s[1]-s[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{p=c;var w=d+s[1]-s[0];h[0]=Math.min(f,(w+f)/2),h[1]=Math.max(f,(w+f)/2)}var y=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){o=i[u].index;break}}else{var g=Math.min(c,d),x=Math.max(c,d);if(t>(g+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){o=r[E].index;break}return o},$0=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},fG=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),s=0,u=l.length;s<u;s++)for(var c=a[l[s]].stackGroups,f=Object.keys(c),d=0,p=f.length;d<p;d++){var h=c[f[d]],m=h.items,w=h.cateAxisId,y=m.filter(function(O){return fr(O.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,x=g!==void 0?Ue(Ue({},g),y[0].props):y[0].props,E=x.barSize,_=x[w];o[_]||(o[_]=[]);var S=le(E)?n:E;o[_].push({item:y[0],stackList:y.slice(1),barSize:le(S)?void 0:kt(S,r,0)})}}return o},dG=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=kt(n,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,h=o.reduce(function(E,_){return E+_.barSize||0},0);h+=(s-1)*u,h>=i&&(h-=(s-1)*u,u=0),h>=i&&p>0&&(d=!0,p*=.9,h=s*p);var m=(i-h)/2>>0,w={offset:m-u,size:0};c=o.reduce(function(E,_){var S={item:_.item,position:{offset:w.offset+w.size+u,size:d?p:_.barSize}},O=[].concat(Bw(E),[S]);return w=O[O.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:w})}),O},f)}else{var y=kt(r,i,0,!0);i-2*y-(s-1)*u<=0&&(u=0);var g=(i-2*y-(s-1)*u)/s;g>1&&(g>>=0);var x=l===+l?Math.min(g,l):g;c=o.reduce(function(E,_,S){var O=[].concat(Bw(E),[{item:_.item,position:{offset:y+(g+u)*S+(g-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:O[O.length-1].position})}),O},f)}return c},pG=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=hj({children:a,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,h=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&h==="middle")&&p!=="center"&&G(t[p]))return Ue(Ue({},t),{},Ba({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&h!=="middle"&&G(t[h]))return Ue(Ue({},t),{},Ba({},h,t[h]+(d||0)))}return t},hG=function(t,n,r){return le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},mj=function(t,n,r,i,a){var o=n.props.children,l=On(o,O0).filter(function(u){return hG(i,a,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=ct(c,r);if(le(f))return u;var d=Array.isArray(f)?[Kd(f),Vd(f)]:[f,f],p=s.reduce(function(h,m){var w=ct(c,m,0),y=d[0]-Math.abs(Array.isArray(w)?w[0]:w),g=d[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(y,h[0]),Math.max(g,h[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},mG=function(t,n,r,i,a){var o=n.map(function(l){return mj(t,l,r,a,i)}).filter(function(l){return!le(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},vj=function(t,n,r,i,a){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&mj(t,s,u,i)||Cl(t,u,r,a)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var c=0,f=u.length;c<f;c++)l[u[c]]||(l[u[c]]=!0,s.push(u[c]));return s},[])},gj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},gl=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?on(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!qs(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},gh=new WeakMap,Uu=function(t,n){if(typeof n!="function")return t;gh.has(t)||gh.set(t,new WeakMap);var r=gh.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},vG=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:ss(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:sf(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Al(),realScaleType:"point"}:a==="category"?{scale:ss(),realScaleType:"band"}:{scale:sf(),realScaleType:"linear"};if(Mo(i)){var s="scale".concat(Ad(i));return{scale:(Mw[s]||Al)(),realScaleType:Mw[s]?s:"point"}}return te(i)?{scale:i}:{scale:Al(),realScaleType:"point"}},Uw=1e-4,gG=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-Uw,o=Math.max(i[0],i[1])+Uw,l=t(n[0]),s=t(n[r-1]);(l<a||l>o||s<a||s>o)&&t.domain([n[0],n[r-1]])}},yG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var s=qs(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=a,t[l][r][1]=a+s,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},xG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=qs(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},bG={sign:yG,expand:XD,none:Xa,silhouette:YD,wiggle:QD,positive:xG},wG=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=bG[r],o=qD().keys(i).value(function(l,s){return+ct(l,s,0)}).order(Xm).offset(a);return o(t)},_G=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ue(Ue({},d.type.defaultProps),d.props):d.props,m=h.stackId,w=h.hide;if(w)return f;var y=h[r],g=f[y]||{hasStack:!1,stackGroups:{}};if(Je(m)){var x=g.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[m]=x}else g.stackGroups[Td("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Ue(Ue({},f),{},Ba({},y,g))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,w){var y=p.stackGroups[w];return Ue(Ue({},m),{},Ba({},w,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:wG(t,y.items,a)}))},h)}return Ue(Ue({},f),{},Ba({},d,p))},c)},SG=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=RK(u,a,l);return t.domain([Kd(c),Vd(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=LK(f,a,l);return{niceTicks:d}}return null},EG=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Je(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},OG=function(t){return t.reduce(function(n,r){return[Kd(r.concat([n[0]]).filter(G)),Vd(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},yj=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,s=l.reduce(function(u,c){var f=OG(c.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Hw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ww=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ov=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(G(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Hw.test(t[0])){var a=+Hw.exec(t[0])[1];i[0]=n[0]-a}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(G(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ww.test(t[1])){var o=+Ww.exec(t[1])[1];i[1]=n[1]+o}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},$v=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Zy(n,function(f){return f.coordinate}),o=1/0,l=1,s=a.length;l<s;l++){var u=a[l],c=a[l-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Vw=function(t,n,r){return!t||!t.length||Gd(t,En(r,"type.defaultProps.domain"))?n:t},$G=function(t,n){var r=t.type.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,c=r.hide;return Ue(Ue({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:$0(t),value:ct(n,i),type:s,payload:n,chartType:u,hide:c})};function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xj(e,t,n){return t=PG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PG(e){var t=jG(e,"string");return gs(t)=="symbol"?t:t+""}function jG(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TG(e,t){return NG(e)||kG(e,t)||CG(e,t)||AG()}function AG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
218
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CG(e,t){if(e){if(typeof e=="string")return Gw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gw(e,t)}}function Gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function NG(e){if(Array.isArray(e))return e}var mf=Math.PI/180,MG=function(t){return t*180/Math.PI},Se=function(t,n,r,i){return{x:t+Math.cos(-mf*i)*r,y:n+Math.sin(-mf*i)*r}},bj=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},IG=function(t,n,r,i,a){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=kt(t.cx,o,o/2),f=kt(t.cy,l,l/2),d=bj(o,l,r),p=kt(t.innerRadius,d,0),h=kt(t.outerRadius,d,d*.8),m=Object.keys(n);return m.reduce(function(w,y){var g=n[y],x=g.domain,E=g.reversed,_;if(le(g.range))i==="angleAxis"?_=[s,u]:i==="radiusAxis"&&(_=[p,h]),E&&(_=[_[1],_[0]]);else{_=g.range;var S=_,O=TG(S,2);s=O[0],u=O[1]}var $=vG(g,a),T=$.realScaleType,C=$.scale;C.domain(x).range(_),gG(C);var A=SG(C,nr(nr({},g),{},{realScaleType:T})),N=nr(nr(nr({},g),A),{},{range:_,radius:h,realScaleType:T,scale:C,cx:c,cy:f,innerRadius:p,outerRadius:h,startAngle:s,endAngle:u});return nr(nr({},w),{},xj({},y,N))},{})},RG=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},LG=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,l=RG({x:r,y:i},{x:a,y:o});if(l<=0)return{radius:l};var s=(r-a)/l,u=Math.acos(s);return i>o&&(u=2*Math.PI-u),{radius:l,angle:MG(u),angleInRadian:u}},DG=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},FG=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},qw=function(t,n){var r=t.x,i=t.y,a=LG({x:r,y:i},n),o=a.radius,l=a.angle,s=n.innerRadius,u=n.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var c=DG(n),f=c.startAngle,d=c.endAngle,p=l,h;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;h=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;h=p>=d&&p<=f}return h?nr(nr({},n),{},{radius:o,angle:FG(p,n)}):null},wj=function(t){return!b.isValidElement(t)&&!te(t)&&typeof t!="boolean"?t.className:""};function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}var BG=["offset"];function zG(e){return VG(e)||WG(e)||HG(e)||UG()}function UG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
219
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HG(e,t){if(e){if(typeof e=="string")return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}}function WG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VG(e){if(Array.isArray(e))return Pv(e)}function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KG(e,t){if(e==null)return{};var n=GG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(r){qG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qG(e,t,n){return t=XG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XG(e){var t=YG(e,"string");return ys(t)=="symbol"?t:t+""}function YG(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(this,arguments)}var QG=function(t){var n=t.value,r=t.formatter,i=le(t.children)?n:t.children;return te(r)?r(i):i},ZG=function(t,n){var r=on(n-t),i=Math.min(Math.abs(n-t),360);return r*i},JG=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,s=a,u=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,h=s.endAngle,m=s.clockWise,w=(f+d)/2,y=ZG(p,h),g=y>=0?1:-1,x,E;i==="insideStart"?(x=p+g*o,E=m):i==="insideEnd"?(x=h-g*o,E=!m):i==="end"&&(x=h+g*o,E=m),E=y<=0?E:!E;var _=Se(u,c,w,x),S=Se(u,c,w,x+(E?1:-1)*359),O="M".concat(_.x,",").concat(_.y,`
|
220
220
|
A`).concat(w,",").concat(w,",0,1,").concat(E?0:1,`,
|
221
|
-
`).concat(S.x,",").concat(S.y),$=le(t.id)?Td("recharts-radial-line-"):t.id;return j.createElement("text",
|
222
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fq(e,t){if(e){if(typeof e=="string")return jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jv(e,t)}}function dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pq(e){if(Array.isArray(e))return jv(e)}function jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(this,arguments)}function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){hq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hq(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=vq(e,"string");return
|
221
|
+
`).concat(S.x,",").concat(S.y),$=le(t.id)?Td("recharts-radial-line-"):t.id;return j.createElement("text",xs({},r,{dominantBaseline:"central",className:ue("recharts-radial-bar-label",l)}),j.createElement("defs",null,j.createElement("path",{id:$,d:O})),j.createElement("textPath",{xlinkHref:"#".concat($)},n))},eq=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,l=a.cy,s=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var p=Se(o,l,u+r,d),h=p.x,m=p.y;return{x:h,y:m,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(s+u)/2,y=Se(o,l,w,d),g=y.x,x=y.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},tq=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,l=o.x,s=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,p=f>0?"end":"start",h=f>0?"start":"end",m=u>=0?1:-1,w=m*i,y=m>0?"end":"start",g=m>0?"start":"end";if(a==="top"){var x={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Xe(Xe({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(a==="bottom"){var E={x:l+u/2,y:s+c+d,textAnchor:"middle",verticalAnchor:h};return Xe(Xe({},E),r?{height:Math.max(r.y+r.height-(s+c),0),width:u}:{})}if(a==="left"){var _={x:l-w,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Xe(Xe({},_),r?{width:Math.max(_.x-r.x,0),height:c}:{})}if(a==="right"){var S={x:l+u+w,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Xe(Xe({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return a==="insideLeft"?Xe({x:l+w,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},O):a==="insideRight"?Xe({x:l+u-w,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},O):a==="insideTop"?Xe({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:h},O):a==="insideBottom"?Xe({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Xe({x:l+w,y:s+d,textAnchor:g,verticalAnchor:h},O):a==="insideTopRight"?Xe({x:l+u-w,y:s+d,textAnchor:y,verticalAnchor:h},O):a==="insideBottomLeft"?Xe({x:l+w,y:s+c-d,textAnchor:g,verticalAnchor:p},O):a==="insideBottomRight"?Xe({x:l+u-w,y:s+c-d,textAnchor:y,verticalAnchor:p},O):Ao(a)&&(G(a.x)||ki(a.x))&&(G(a.y)||ki(a.y))?Xe({x:l+kt(a.x,u),y:s+kt(a.y,c),textAnchor:"end",verticalAnchor:"end"},O):Xe({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},nq=function(t){return"cx"in t&&G(t.cx)};function ut(e){var t=e.offset,n=t===void 0?5:t,r=KG(e,BG),i=Xe({offset:n},r),a=i.viewBox,o=i.position,l=i.value,s=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||le(l)&&le(s)&&!b.isValidElement(u)&&!te(u))return null;if(b.isValidElement(u))return b.cloneElement(u,i);var p;if(te(u)){if(p=b.createElement(u,i),b.isValidElement(p))return p}else p=QG(i);var h=nq(a),m=ne(i,!0);if(h&&(o==="insideStart"||o==="insideEnd"||o==="end"))return JG(i,p,m);var w=h?eq(i):tq(i);return j.createElement(eo,xs({className:ue("recharts-label",f)},m,w,{breakAll:d}),p)}ut.displayName="Label";var _j=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,p=t.top,h=t.left,m=t.width,w=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(G(m)&&G(w)){if(G(f)&&G(d))return{x:f,y:d,width:m,height:w};if(G(p)&&G(h))return{x:p,y:h,width:m,height:w}}return G(f)&&G(d)?{x:f,y:d,width:0,height:0}:G(n)&&G(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},rq=function(t,n){return t?t===!0?j.createElement(ut,{key:"label-implicit",viewBox:n}):Je(t)?j.createElement(ut,{key:"label-implicit",viewBox:n,value:t}):b.isValidElement(t)?t.type===ut?b.cloneElement(t,{key:"label-implicit",viewBox:n}):j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):te(t)?j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):Ao(t)?j.createElement(ut,xs({viewBox:n},t,{key:"label-implicit"})):null:null},iq=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=_j(t),o=On(i,ut).map(function(s,u){return b.cloneElement(s,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var l=rq(t.label,n||a);return[l].concat(zG(o))};ut.parseViewBox=_j;ut.renderCallByParent=iq;function aq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Sj=aq;const oq=me(Sj);function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}var lq=["valueAccessor"],sq=["data","dataKey","clockWise","id","textBreakAll"];function uq(e){return pq(e)||dq(e)||fq(e)||cq()}function cq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
222
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fq(e,t){if(e){if(typeof e=="string")return jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jv(e,t)}}function dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pq(e){if(Array.isArray(e))return jv(e)}function jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(this,arguments)}function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){hq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hq(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=vq(e,"string");return bs(t)=="symbol"?t:t+""}function vq(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zw(e,t){if(e==null)return{};var n=gq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var yq=function(t){return Array.isArray(t.value)?oq(t.value):t.value};function Un(e){var t=e.valueAccessor,n=t===void 0?yq:t,r=Zw(e,lq),i=r.data,a=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Zw(r,sq);return!i||!i.length?null:j.createElement(Te,{className:"recharts-label-list"},i.map(function(c,f){var d=le(a)?n(c,f):ct(c&&c.payload,a),p=le(l)?{}:{id:"".concat(l,"-").concat(f)};return j.createElement(ut,vf({},ne(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:ut.parseViewBox(le(o)?c:Qw(Qw({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Un.displayName="LabelList";function xq(e,t){return e?e===!0?j.createElement(Un,{key:"labelList-implicit",data:t}):j.isValidElement(e)||te(e)?j.createElement(Un,{key:"labelList-implicit",data:t,content:e}):Ao(e)?j.createElement(Un,vf({data:t},e,{key:"labelList-implicit"})):null:null}function bq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=On(r,Un).map(function(o,l){return b.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=xq(e.label,t);return[a].concat(uq(i))}Un.renderCallByParent=bq;function ws(e){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ws(e)}function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){wq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wq(e,t,n){return t=_q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _q(e){var t=Sq(e,"string");return ws(t)=="symbol"?t:t+""}function Sq(e,t){if(ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eq=function(t,n){var r=on(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Hu=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,c=s*(l?1:-1)+i,f=Math.asin(s/c)/mf,d=u?a:a+o*f,p=Se(n,r,c,d),h=Se(n,r,i,d),m=u?a-o*f:a,w=Se(n,r,c*Math.cos(f*mf),m);return{center:p,circleTangency:h,lineTangency:w,theta:f}},Ej=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,s=Eq(o,l),u=o+s,c=Se(n,r,a,o),f=Se(n,r,a,u),d="M ".concat(c.x,",").concat(c.y,`
|
223
223
|
A `).concat(a,",").concat(a,`,0,
|
224
224
|
`).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
|
225
225
|
`).concat(f.x,",").concat(f.y,`
|
226
226
|
`);if(i>0){var p=Se(n,r,i,o),h=Se(n,r,i,u);d+="L ".concat(h.x,",").concat(h.y,`
|
227
227
|
A `).concat(i,",").concat(i,`,0,
|
228
228
|
`).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
|
229
|
-
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},Oq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=on(c-u),d=
|
229
|
+
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},Oq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=on(c-u),d=Hu({cx:n,cy:r,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,h=d.lineTangency,m=d.theta,w=Hu({cx:n,cy:r,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:s}),y=w.circleTangency,g=w.lineTangency,x=w.theta,E=s?Math.abs(u-c):Math.abs(u-c)-m-x;if(E<0)return l?"M ".concat(h.x,",").concat(h.y,`
|
230
230
|
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
231
231
|
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
232
232
|
`):Ej({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var _="M ".concat(h.x,",").concat(h.y,`
|
233
233
|
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
|
234
234
|
A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
|
235
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(
|
236
|
-
`);if(i>0){var S=
|
235
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
|
236
|
+
`);if(i>0){var S=Hu({cx:n,cy:r,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=S.circleTangency,$=S.lineTangency,T=S.theta,C=Hu({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=C.circleTangency,N=C.lineTangency,I=C.theta,D=s?Math.abs(u-c):Math.abs(u-c)-T-I;if(D<0&&o===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(N.x,",").concat(N.y,`
|
237
237
|
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,`
|
238
238
|
A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
|
239
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},$q={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Oj=function(t){var n=e_(e_({},$q),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,f=n.endAngle,d=n.className;if(o<a||c===f)return null;var p=ue("recharts-sector",d),h=o-a,m=kt(l,h,0,!0),w;return m>0&&Math.abs(c-f)<360?w=Oq({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):w=Ej({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),j.createElement("path",Tv({},ne(n,!0),{className:p,d:w,role:"img"}))};function
|
240
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fX(e,t){if(e){if(typeof e=="string")return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pX(e){if(Array.isArray(e))return e}function hX(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=uX(o),s=l[0],u=l.slice(1);if(typeof s=="number"){d_(i.bind(null,u),s);return}i(s),d_(i.bind(null,u));return}kv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function
|
239
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},$q={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Oj=function(t){var n=e_(e_({},$q),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,f=n.endAngle,d=n.className;if(o<a||c===f)return null;var p=ue("recharts-sector",d),h=o-a,m=kt(l,h,0,!0),w;return m>0&&Math.abs(c-f)<360?w=Oq({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):w=Ej({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),j.createElement("path",Tv({},ne(n,!0),{className:p,d:w,role:"img"}))};function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){Pq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pq(e,t,n){return t=jq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jq(e){var t=Tq(e,"string");return _s(t)=="symbol"?t:t+""}function Tq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r_={curveBasisClosed:LD,curveBasisOpen:DD,curveBasis:RD,curveBumpX:_D,curveBumpY:SD,curveLinearClosed:FD,curveLinear:kd,curveMonotoneX:BD,curveMonotoneY:zD,curveNatural:UD,curveStep:HD,curveStepAfter:VD,curveStepBefore:WD},Wu=function(t){return t.x===+t.x&&t.y===+t.y},sl=function(t){return t.x},ul=function(t){return t.y},Aq=function(t,n){if(te(t))return t;var r="curve".concat(Ad(t));return(r==="curveMonotone"||r==="curveBump")&&n?r_["".concat(r).concat(n==="vertical"?"Y":"X")]:r_[r]||kd},Cq=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,c=Aq(r,l),f=u?a.filter(function(m){return Wu(m)}):a,d;if(Array.isArray(o)){var p=u?o.filter(function(m){return Wu(m)}):o,h=f.map(function(m,w){return n_(n_({},m),{},{base:p[w]})});return l==="vertical"?d=Mu().y(ul).x1(sl).x0(function(m){return m.base.x}):d=Mu().x(sl).y1(ul).y0(function(m){return m.base.y}),d.defined(Wu).curve(c),d(h)}return l==="vertical"&&G(o)?d=Mu().y(ul).x1(sl).x0(o):G(o)?d=Mu().x(sl).y1(ul).y0(o):d=_P().x(sl).y(ul),d.defined(Wu).curve(c),d(f)},Cv=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?Cq(t):i;return j.createElement("path",Av({},ne(t,!1),zc(t),{className:ue("recharts-curve",n),d:o,ref:a}))},$j={exports:{}},kq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Nq=kq,Mq=Nq;function Pj(){}function jj(){}jj.resetWarningCache=Pj;var Iq=function(){function e(r,i,a,o,l,s){if(s!==Mq){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:jj,resetWarningCache:Pj};return n.PropTypes=n,n};$j.exports=Iq();var Rq=$j.exports;const fe=me(Rq);var Lq=Object.getOwnPropertyNames,Dq=Object.getOwnPropertySymbols,Fq=Object.prototype.hasOwnProperty;function i_(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Vu(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,o=a.get(n),l=a.get(r);if(o&&l)return o===r&&l===n;a.set(n,r),a.set(r,n);var s=e(n,r,i);return a.delete(n),a.delete(r),s}}function a_(e){return Lq(e).concat(Dq(e))}var Tj=Object.hasOwn||function(e,t){return Fq.call(e,t)};function Uo(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Aj="_owner",o_=Object.getOwnPropertyDescriptor,l_=Object.keys;function Bq(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function zq(e,t){return Uo(e.getTime(),t.getTime())}function s_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,l;(o=i.next())&&!o.done;){for(var s=t.entries(),u=!1,c=0;(l=s.next())&&!l.done;){var f=o.value,d=f[0],p=f[1],h=l.value,m=h[0],w=h[1];!u&&!r[c]&&(u=n.equals(d,m,a,c,e,t,n)&&n.equals(p,w,d,m,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;a++}return!0}function Uq(e,t,n){var r=l_(e),i=r.length;if(l_(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===Aj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Tj(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function cl(e,t,n){var r=a_(e),i=r.length;if(a_(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=r[i],a===Aj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Tj(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=o_(e,a),l=o_(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Hq(e,t){return Uo(e.valueOf(),t.valueOf())}function Wq(e,t){return e.source===t.source&&e.flags===t.flags}function u_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var l=t.values(),s=!1,u=0;(o=l.next())&&!o.done;)!s&&!r[u]&&(s=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!s)return!1}return!0}function Vq(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var Kq="[object Arguments]",Gq="[object Boolean]",qq="[object Date]",Xq="[object Map]",Yq="[object Number]",Qq="[object Object]",Zq="[object RegExp]",Jq="[object Set]",eX="[object String]",tX=Array.isArray,c_=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,f_=Object.assign,nX=Object.prototype.toString.call.bind(Object.prototype.toString);function rX(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var p=c.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(c,f,d);if(tX(c))return t(c,f,d);if(c_!=null&&c_(c))return s(c,f,d);if(p===Date)return n(c,f,d);if(p===RegExp)return o(c,f,d);if(p===Map)return r(c,f,d);if(p===Set)return l(c,f,d);var h=nX(c);return h===qq?n(c,f,d):h===Zq?o(c,f,d):h===Xq?r(c,f,d):h===Jq?l(c,f,d):h===Qq?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):h===Kq?i(c,f,d):h===Gq||h===Yq||h===eX?a(c,f,d):!1}}function iX(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?cl:Bq,areDatesEqual:zq,areMapsEqual:r?i_(s_,cl):s_,areObjectsEqual:r?cl:Uq,arePrimitiveWrappersEqual:Hq,areRegExpsEqual:Wq,areSetsEqual:r?i_(u_,cl):u_,areTypedArraysEqual:r?cl:Vq};if(n&&(i=f_({},i,n(i))),t){var a=Vu(i.areArraysEqual),o=Vu(i.areMapsEqual),l=Vu(i.areObjectsEqual),s=Vu(i.areSetsEqual);i=f_({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:s})}return i}function aX(e){return function(t,n,r,i,a,o,l){return e(t,n,l)}}function oX(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(s,u){var c=r(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return n(s,u,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,u){return n(s,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,u){return n(s,u,o)}}var lX=mi();mi({strict:!0});mi({circular:!0});mi({circular:!0,strict:!0});mi({createInternalComparator:function(){return Uo}});mi({strict:!0,createInternalComparator:function(){return Uo}});mi({circular:!0,createInternalComparator:function(){return Uo}});mi({circular:!0,createInternalComparator:function(){return Uo},strict:!0});function mi(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=iX(e),s=rX(l),u=r?r(s):aX(s);return oX({circular:n,comparator:s,createState:i,equals:u,strict:o})}function sX(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function d_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):sX(i)};requestAnimationFrame(r)}function kv(e){"@babel/helpers - typeof";return kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kv(e)}function uX(e){return pX(e)||dX(e)||fX(e)||cX()}function cX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
240
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fX(e,t){if(e){if(typeof e=="string")return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pX(e){if(Array.isArray(e))return e}function hX(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=uX(o),s=l[0],u=l.slice(1);if(typeof s=="number"){d_(i.bind(null,u),s);return}i(s),d_(i.bind(null,u));return}kv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ss(e)}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){Cj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cj(e,t,n){return t=mX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mX(e){var t=vX(e,"string");return Ss(t)==="symbol"?t:String(t)}function vX(e,t){if(Ss(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ss(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gX=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},yX=function(t){return t},xX=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},kl=function(t,n){return Object.keys(n).reduce(function(r,i){return m_(m_({},r),{},Cj({},i,t(i,n[i])))},{})},v_=function(t,n,r){return t.map(function(i){return"".concat(xX(i)," ").concat(n,"ms ").concat(r)}).join(",")};function bX(e,t){return SX(e)||_X(e,t)||kj(e,t)||wX()}function wX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
241
241
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _X(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function SX(e){if(Array.isArray(e))return e}function EX(e){return PX(e)||$X(e)||kj(e)||OX()}function OX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e=="string")return Nv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nv(e,t)}}function $X(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PX(e){if(Array.isArray(e))return Nv(e)}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gf=1e-4,Nj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Mj=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},g_=function(t,n){return function(r){var i=Nj(t,n);return Mj(i,r)}},jX=function(t,n){return function(r){var i=Nj(t,n),a=[].concat(EX(i.map(function(o,l){return o*l}).slice(1)),[0]);return Mj(a,r)}},y_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),c=bX(u,4);i=c[0],a=c[1],o=c[2],l=c[3]}}}var f=g_(i,o),d=g_(a,l),p=jX(i,o),h=function(y){return y>1?1:y<0?0:y},m=function(y){for(var
|
243
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NX(e){if(Array.isArray(e))return Iv(e)}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){Mv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mv(e,t,n){return t=MX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=IX(e,"string");return
|
244
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(e,t){if(e){if(typeof e=="string")return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iv(e,t)}}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function FX(e){if(Array.isArray(e))return e}var yf=function(t,n,r){return t+(n-t)*r},Rv=function(t){var n=t.from,r=t.to;return n!==r},BX=function e(t,n,r){var i=
|
245
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KX(e,t){if(e){if(typeof e=="string")return Lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lv(e,t)}}function GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qX(e){if(Array.isArray(e))return Lv(e)}function Lv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){
|
246
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iY(e,t){if(e){if(typeof e=="string")return __(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return __(e,t)}}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function oY(e){if(Array.isArray(e))return e}function S_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(n),!0).forEach(function(r){lY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lY(e,t,n){return t=sY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sY(e){var t=uY(e,"string");return
|
242
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e=="string")return Nv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nv(e,t)}}function $X(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PX(e){if(Array.isArray(e))return Nv(e)}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gf=1e-4,Nj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Mj=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},g_=function(t,n){return function(r){var i=Nj(t,n);return Mj(i,r)}},jX=function(t,n){return function(r){var i=Nj(t,n),a=[].concat(EX(i.map(function(o,l){return o*l}).slice(1)),[0]);return Mj(a,r)}},y_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),c=bX(u,4);i=c[0],a=c[1],o=c[2],l=c[3]}}}var f=g_(i,o),d=g_(a,l),p=jX(i,o),h=function(y){return y>1?1:y<0?0:y},m=function(y){for(var g=y>1?1:y,x=g,E=0;E<8;++E){var _=f(x)-g,S=p(x);if(Math.abs(_-g)<gf||S<gf)return d(x);x=h(x-_/S)}return d(x)};return m.isStepper=!1,m},TX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,s=function(c,f,d){var p=-(c-f)*r,h=d*a,m=d+(p-h)*l/1e3,w=d*l/1e3+c;return Math.abs(w-f)<gf&&Math.abs(m)<gf?[f,0]:[w,m]};return s.isStepper=!0,s.dt=l,s},AX=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return y_(i);case"spring":return TX();default:if(i.split("(")[0]==="cubic-bezier")return y_(i)}return typeof i=="function"?i:null};function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}function x_(e){return NX(e)||kX(e)||Ij(e)||CX()}function CX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
243
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NX(e){if(Array.isArray(e))return Iv(e)}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){Mv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mv(e,t,n){return t=MX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=IX(e,"string");return Es(t)==="symbol"?t:String(t)}function IX(e,t){if(Es(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Es(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RX(e,t){return FX(e)||DX(e,t)||Ij(e,t)||LX()}function LX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
244
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(e,t){if(e){if(typeof e=="string")return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iv(e,t)}}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function FX(e){if(Array.isArray(e))return e}var yf=function(t,n,r){return t+(n-t)*r},Rv=function(t){var n=t.from,r=t.to;return n!==r},BX=function e(t,n,r){var i=kl(function(a,o){if(Rv(o)){var l=t(o.from,o.to,o.velocity),s=RX(l,2),u=s[0],c=s[1];return lt(lt({},o),{},{from:u,velocity:c})}return o},n);return r<1?kl(function(a,o){return Rv(o)?lt(lt({},o),{},{velocity:yf(o.velocity,i[a].velocity,r),from:yf(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const zX=function(e,t,n,r,i){var a=gX(e,t),o=a.reduce(function(w,y){return lt(lt({},w),{},Mv({},y,[e[y],t[y]]))},{}),l=a.reduce(function(w,y){return lt(lt({},w),{},Mv({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,c,f=function(){return null},d=function(){return kl(function(y,g){return g.from},l)},p=function(){return!Object.values(l).filter(Rv).length},h=function(y){u||(u=y);var g=y-u,x=g/n.dt;l=BX(n,l,x),i(lt(lt(lt({},e),t),d())),u=y,p()||(s=requestAnimationFrame(f))},m=function(y){c||(c=y);var g=(y-c)/r,x=kl(function(_,S){return yf.apply(void 0,x_(S).concat([n(g)]))},o);if(i(lt(lt(lt({},e),t),x)),g<1)s=requestAnimationFrame(f);else{var E=kl(function(_,S){return yf.apply(void 0,x_(S).concat([n(1)]))},o);i(lt(lt(lt({},e),t),E))}};return f=n.isStepper?h:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}var UX=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function HX(e,t){if(e==null)return{};var n=WX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yh(e){return qX(e)||GX(e)||KX(e)||VX()}function VX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
245
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KX(e,t){if(e){if(typeof e=="string")return Lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lv(e,t)}}function GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qX(e){if(Array.isArray(e))return Lv(e)}function Lv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yl(e,t,n){return t=Rj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rj(r.key),r)}}function QX(e,t,n){return t&&YX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rj(e){var t=ZX(e,"string");return oo(t)==="symbol"?t:String(t)}function ZX(e,t){if(oo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dv(e,t)}function Dv(e,t){return Dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Dv(e,t)}function eY(e){var t=tY();return function(){var r=xf(e),i;if(t){var a=xf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Fv(this,i)}}function Fv(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bv(e)}function Bv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}var $r=function(e){JX(n,e);var t=eY(n);function n(r,i){var a;XX(this,n),a=t.call(this,r,i);var o=a.props,l=o.isActive,s=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Bv(a)),a.changeStyle=a.changeStyle.bind(Bv(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Fv(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Fv(a);a.state={style:s?yl({},s,u):u}}else a.state={style:{}};return a}return QX(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,s=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(l){if(!o){var p={style:s?yl({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(p);return}if(!(lX(i.to,c)&&i.canBegin&&i.isActive)){var h=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=h||u?f:i.to;if(this.state&&d){var w={style:s?yl({},s,m):m};(s&&d[s]!==m||!s&&d!==m)&&this.setState(w)}this.runAnimation(gn(gn({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=zX(o,l,AX(u),s,this.changeStyle),h=function(){a.stopJSAnimation=p()};this.manager.start([d,c,h,s,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,s=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,p=function(m,w,y){if(y===0)return m;var g=w.duration,x=w.easing,E=x===void 0?"ease":x,_=w.style,S=w.properties,O=w.onAnimationEnd,$=y>0?o[y-1]:w,T=S||Object.keys(_);if(typeof E=="function"||E==="spring")return[].concat(yh(m),[a.runJSAnimation.bind(a,{from:$.style,to:_,duration:g,easing:E}),g]);var C=v_(T,g,E),A=gn(gn(gn({},$.style),_),{},{transition:C});return[].concat(yh(m),[A,g,O]).filter(yX)};return this.manager.start([s].concat(yh(o.reduce(p,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=hX());var a=i.begin,o=i.duration,l=i.attributeName,s=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,p=i.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var m=l?yl({},l,s):s,w=v_(Object.keys(m),o,u);h.start([c,a,gn(gn({},m),{},{transition:w}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=HX(i,UX),u=b.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!l||u===0||o<=0)return a;var f=function(p){var h=p.props,m=h.style,w=m===void 0?{}:m,y=h.className,g=b.cloneElement(p,gn(gn({},s),{},{style:gn(gn({},w),c),className:y}));return g};return u===1?f(b.Children.only(a)):j.createElement("div",null,b.Children.map(a,function(d){return f(d)}))}}]),n}(b.PureComponent);$r.displayName="Animate";$r.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};$r.propTypes={from:fe.oneOfType([fe.object,fe.string]),to:fe.oneOfType([fe.object,fe.string]),attributeName:fe.string,duration:fe.number,begin:fe.number,easing:fe.oneOfType([fe.string,fe.func]),steps:fe.arrayOf(fe.shape({duration:fe.number.isRequired,style:fe.object.isRequired,easing:fe.oneOfType([fe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),fe.func]),properties:fe.arrayOf("string"),onAnimationEnd:fe.func})),children:fe.oneOfType([fe.node,fe.func]),isActive:fe.bool,canBegin:fe.bool,onAnimationEnd:fe.func,shouldReAnimate:fe.bool,onAnimationStart:fe.func,onAnimationReStart:fe.func};function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function nY(e,t){return oY(e)||aY(e,t)||iY(e,t)||rY()}function rY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
246
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iY(e,t){if(e){if(typeof e=="string")return __(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return __(e,t)}}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function oY(e){if(Array.isArray(e))return e}function S_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(n),!0).forEach(function(r){lY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lY(e,t,n){return t=sY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sY(e){var t=uY(e,"string");return Os(t)=="symbol"?t:t+""}function uY(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O_=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,s=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),c+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
|
247
247
|
`).concat(t+r,",").concat(n+l*f[1])),c+="L ".concat(t+r,",").concat(n+i-l*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
|
248
248
|
`).concat(t+r-s*f[2],",").concat(n+i)),c+="L ".concat(t+s*f[3],",").concat(n+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
|
249
249
|
`).concat(t,",").concat(n+i-l*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var h=Math.min(o,a);c="M ".concat(t,",").concat(n+l*h,`
|
@@ -253,23 +253,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
253
253
|
L `).concat(t+r,",").concat(n+i-l*h,`
|
254
254
|
A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t+r-s*h,",").concat(n+i,`
|
255
255
|
L `).concat(t+s*h,",").concat(n+i,`
|
256
|
-
A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*h," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},cY=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(a,a+l),c=Math.max(a,a+l),f=Math.min(o,o+s),d=Math.max(o,o+s);return r>=u&&r<=c&&i>=f&&i<=d}return!1},fY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P0=function(t){var n=E_(E_({},fY),t),r=b.useRef(),i=b.useState(-1),a=nY(i,2),o=a[0],l=a[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var s=n.x,u=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,y=n.isAnimationActive,
|
257
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vY(e,t){if(e){if(typeof e=="string")return zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(e,t)}}function gY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yY(e){if(Array.isArray(e))return zv(e)}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P_=function(t){return t&&t.x===+t.x&&t.y===+t.y},xY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){P_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),P_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Cl=function(t,n){var r=xY(t);n&&(r=[r.reduce(function(a,o){return[].concat($_(a),$_(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},bY=function(t,n,r){var i=Cl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Cl(n.reverse(),r).slice(1))},wY=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=pY(t,dY);if(!n||!n.length)return null;var l=ue("recharts-polygon",r);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",u=bY(n,i,a);return j.createElement("g",{className:l},j.createElement("path",ja({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?j.createElement("path",ja({},ne(o,!0),{fill:"none",d:Cl(n,a)})):null,s?j.createElement("path",ja({},ne(o,!0),{fill:"none",d:Cl(i,a)})):null)}var c=Cl(n,a);return j.createElement("path",ja({},ne(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:l,d:c}))};function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}var j0=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=ue("recharts-dot",a);return n===+n&&r===+r&&i===+i?j.createElement("circle",Uv({},ne(t,!1),zc(t),{className:o,cx:n,cy:r,r:i})):null};function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}var _Y=["x","y","top","left","width","height","className"];function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){EY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EY(e,t,n){return t=OY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OY(e){var t=$Y(e,"string");return Es(t)=="symbol"?t:t+""}function $Y(e,t){if(Es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PY(e,t){if(e==null)return{};var n=jY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var TY=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},AY=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,h=t.className,m=PY(t,_Y),w=SY({x:r,y:a,top:l,left:u,width:f,height:p},m);return!G(r)||!G(a)||!G(f)||!G(p)||!G(l)||!G(u)?null:j.createElement("path",Hv({},ne(w,!0),{className:ue("recharts-cross",h),d:TY(r,a,f,p,l,u)}))},CY=Wd,kY=Q2,NY=fi;function MY(e,t){return e&&e.length?CY(e,NY(t),kY):void 0}var IY=MY;const RY=me(IY);var LY=Wd,DY=fi,FY=Z2;function BY(e,t){return e&&e.length?LY(e,DY(t),FY):void 0}var zY=BY;const UY=me(zY);var HY=["cx","cy","angle","ticks","axisLine"],WY=["ticks","tick","angle","tickFormatter","stroke"];function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(r){Yd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A_(e,t){if(e==null)return{};var n=VY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dj(r.key),r)}}function GY(e,t,n){return t&&C_(e.prototype,t),n&&C_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qY(e,t,n){return t=wf(t),XY(e,Lj()?Reflect.construct(t,n||[],wf(e).constructor):t.apply(e,n))}function XY(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YY(e)}function YY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lj=function(){return!!e})()}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function QY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wv(e,t)}function Yd(e,t,n){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dj(e){var t=ZY(e,"string");return oo(t)=="symbol"?t:t+""}function ZY(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qd=function(e){function t(){return KY(this,t),qY(this,t,arguments)}return QY(t,e),GY(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,s=a.cy;return Se(l,s,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=RY(l,function(c){return c.coordinate||0}),u=UY(l,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=A_(r,HY),c=l.reduce(function(h,m){return[Math.min(h[0],m.coordinate),Math.max(h[1],m.coordinate)]},[1/0,-1/0]),f=Se(i,a,c[0],o),d=Se(i,a,c[1],o),p=xi(xi(xi({},ne(u,!1)),{},{fill:"none"},ne(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",kl({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,s=i.tickFormatter,u=i.stroke,c=A_(i,WY),f=this.getTickTextAnchor(),d=ne(c,!1),p=ne(o,!1),h=a.map(function(m,w){var y=r.getTickValueCoord(m),v=xi(xi(xi(xi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:w},y),{},{payload:m});return j.createElement(Te,kl({className:ue("recharts-polar-radius-axis-tick",wj(o)),key:"tick-".concat(m.coordinate)},Gs(r.props,m,w)),t.renderTickItem(o,v,s?s(m.value,w):m.value))});return j.createElement(Te,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),ut.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(Ja,kl({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(b.PureComponent);Yd(Qd,"displayName","PolarRadiusAxis");Yd(Qd,"axisType","radiusAxis");Yd(Qd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i.apply(this,arguments)}function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(n),!0).forEach(function(r){Zd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bj(r.key),r)}}function eQ(e,t,n){return t&&N_(e.prototype,t),n&&N_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tQ(e,t,n){return t=_f(t),nQ(e,Fj()?Reflect.construct(t,n||[],_f(e).constructor):t.apply(e,n))}function nQ(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rQ(e)}function rQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fj=function(){return!!e})()}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function iQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vv(e,t)}function Zd(e,t,n){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bj(e){var t=aQ(e,"string");return lo(t)=="symbol"?t:t+""}function aQ(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oQ=Math.PI/180,M_=1e-5,Jd=function(e){function t(){return JY(this,t),tQ(this,t,arguments)}return iQ(t,e),eQ(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,s=i.orientation,u=i.tickSize,c=u||8,f=Se(a,o,l,r.coordinate),d=Se(a,o,l+(s==="inner"?-1:1)*c,r.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*oQ),o;return a>M_?o=i==="outer"?"start":"end":a<-M_?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=bi(bi({},ne(this.props,!1)),{},{fill:"none"},ne(l,!1));if(s==="circle")return j.createElement(j0,$i({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return Se(i,a,o,d.coordinate)});return j.createElement(wY,$i({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,s=i.tickFormatter,u=i.stroke,c=ne(this.props,!1),f=ne(o,!1),d=bi(bi({},c),{},{fill:"none"},ne(l,!1)),p=a.map(function(h,m){var w=r.getTickLineCoord(h),y=r.getTickTextAnchor(h),v=bi(bi(bi({textAnchor:y},c),{},{stroke:"none",fill:u},f),{},{index:m,payload:h,x:w.x2,y:w.y2});return j.createElement(Te,$i({className:ue("recharts-polar-angle-axis-tick",wj(o)),key:"tick-".concat(h.coordinate)},Gs(r.props,h,m)),l&&j.createElement("line",$i({className:"recharts-polar-angle-axis-tick-line"},d,w)),o&&t.renderTickItem(o,v,s?s(h.value,m):h.value))});return j.createElement(Te,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(Ja,$i({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(b.PureComponent);Zd(Jd,"displayName","PolarAngleAxis");Zd(Jd,"axisType","angleAxis");Zd(Jd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var lQ=KP,sQ=lQ(Object.getPrototypeOf,Object),T0=sQ,uQ=Tr,cQ=T0,fQ=Cn,dQ="[object Object]",pQ=Function.prototype,hQ=Object.prototype,zj=pQ.toString,mQ=hQ.hasOwnProperty,vQ=zj.call(Object);function gQ(e){if(!fQ(e)||uQ(e)!=dQ)return!1;var t=cQ(e);if(t===null)return!0;var n=mQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zj.call(n)==vQ}var Uj=gQ;const yQ=me(Uj);var xQ=Tr,bQ=Cn,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||bQ(e)&&xQ(e)==wQ}var SQ=_Q;const EQ=me(SQ);function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}function OQ(e,t){return TQ(e)||jQ(e,t)||PQ(e,t)||$Q()}function $Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
258
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PQ(e,t){if(e){if(typeof e=="string")return I_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I_(e,t)}}function I_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function TQ(e){if(Array.isArray(e))return e}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){AQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AQ(e,t,n){return t=CQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CQ(e){var t=kQ(e,"string");return Os(t)=="symbol"?t:t+""}function kQ(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D_=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},NQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MQ=function(t){var n=L_(L_({},NQ),t),r=b.useRef(),i=b.useState(-1),a=OQ(i,2),o=a[0],l=a[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,c=n.upperWidth,f=n.lowerWidth,d=n.height,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var v=ue("recharts-trapezoid",p);return y?j.createElement(Or,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:s,y:u},duration:m,animationEasing:h,isActive:y},function(x){var E=x.upperWidth,_=x.lowerWidth,S=x.height,O=x.x,$=x.y;return j.createElement(Or,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:m,easing:h},j.createElement("path",Sf({},ne(n,!0),{className:v,d:D_(O,$,E,_,S),ref:r})))}):j.createElement("g",null,j.createElement("path",Sf({},ne(n,!0),{className:v,d:D_(s,u,c,f,d)})))},IQ=["option","shapeType","propTransformer","activeClassName","isActive"];function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function RQ(e,t){if(e==null)return{};var n=LQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(n),!0).forEach(function(r){DQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DQ(e,t,n){return t=FQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQ(e){var t=BQ(e,"string");return $s(t)=="symbol"?t:t+""}function BQ(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zQ(e,t){return Ef(Ef({},t),e)}function UQ(e,t){return e==="symbols"}function B_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(P0,n);case"trapezoid":return j.createElement(MQ,n);case"sector":return j.createElement(Oj,n);case"symbols":if(UQ(t))return j.createElement(Ly,n);break;default:return null}}function Hj(e){return b.isValidElement(e)?e.props:e}function Wj(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?zQ:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,s=RQ(e,IQ),u;if(b.isValidElement(t))u=b.cloneElement(t,Ef(Ef({},s),Hj(t)));else if(te(t))u=t(s);else if(yQ(t)&&!EQ(t)){var c=i(t,s);u=j.createElement(B_,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(B_,{shapeType:n,elementProps:f})}return l?j.createElement(Te,{className:o},u):u}function ep(e,t){return t!=null&&"trapezoids"in e.props}function tp(e,t){return t!=null&&"sectors"in e.props}function Ps(e,t){return t!=null&&"points"in e.props}function HQ(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function WQ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function VQ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function KQ(e,t){var n;return ep(e,t)?n=HQ:tp(e,t)?n=WQ:Ps(e,t)&&(n=VQ),n}function GQ(e,t){var n;return ep(e,t)?n="trapezoids":tp(e,t)?n="sectors":Ps(e,t)&&(n="points"),n}function qQ(e,t){if(ep(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(tp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Ps(e,t)?t.payload:{}}function XQ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=GQ(n,t),a=qQ(n,t),o=r.filter(function(s,u){var c=Gd(a,s),f=n.props[i].filter(function(h){var m=KQ(n,t);return m(h,t)}),d=n.props[i].indexOf(f[f.length-1]),p=u===d;return c&&p}),l=r.indexOf(o[o.length-1]);return l}var dc;function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ta.apply(this,arguments)}function z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?z_(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kj(r.key),r)}}function QQ(e,t,n){return t&&U_(e.prototype,t),n&&U_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZQ(e,t,n){return t=Of(t),JQ(e,Vj()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function JQ(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eZ(e)}function eZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vj=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function tZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function rn(e,t,n){return t=Kj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){var t=nZ(e,"string");return so(t)=="symbol"?t:t+""}function nZ(e,t){if(so(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qt=function(e){function t(n){var r;return YQ(this,t),r=ZQ(this,t,[n]),rn(r,"pieRef",null),rn(r,"sectorRefs",[]),rn(r,"id",Td("recharts-pie-")),rn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),te(i)&&i()}),rn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),te(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return tZ(t,e),QQ(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,s=a.dataKey,u=a.valueKey,c=ne(this.props,!1),f=ne(o,!1),d=ne(l,!1),p=o&&o.offsetRadius||20,h=r.map(function(m,w){var y=(m.startAngle+m.endAngle)/2,v=Se(m.cx,m.cy,m.outerRadius+p,y),x=be(be(be(be({},c),m),{},{stroke:"none"},f),{},{index:w,textAnchor:t.getTextAnchor(v.x,m.cx)},v),E=be(be(be(be({},c),m),{},{fill:"none",stroke:m.fill},d),{},{index:w,points:[Se(m.cx,m.cy,m.outerRadius,y),v]}),_=s;return le(s)&&le(u)?_="value":le(s)&&(_=u),j.createElement(Te,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(w)},l&&t.renderLabelLineItem(l,E,"line"),t.renderLabelItem(o,x,ct(m,_)))});return j.createElement(Te,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,s=a.inactiveShape;return r.map(function(u,c){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=i.isActiveIndex(c),d=s&&i.hasActiveIndex()?s:null,p=f?o:d,h=be(be({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement(Te,Ta({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Gs(i.props,u,c),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(c)}),j.createElement(Wj,Ta({option:p,isActive:f,shapeType:"sector"},h)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return j.createElement(Or,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(h){var m=h.t,w=[],y=a&&a[0],v=y.startAngle;return a.forEach(function(x,E){var _=d&&d[E],S=E>0?En(x,"paddingAngle",0):0;if(_){var O=Zt(_.endAngle-_.startAngle,x.endAngle-x.startAngle),$=be(be({},x),{},{startAngle:v+S,endAngle:v+O(m)+S});w.push($),v=$.endAngle}else{var T=x.endAngle,C=x.startAngle,A=Zt(0,T-C),N=A(m),I=be(be({},x),{},{startAngle:v+S,endAngle:v+N+S});w.push(I),v=I.endAngle}}),j.createElement(Te,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,s=i.label,u=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(a||!o||!o.length||!G(u)||!G(c)||!G(f)||!G(d))return null;var m=ue("recharts-pie",l);return j.createElement(Te,{tabIndex:this.props.rootTabIndex,className:m,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),ut.renderCallByParent(this.props,null,!1),(!p||h)&&Un.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);if(te(r))return r(i);var o=ue("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(Cv,Ta({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);var o=a;if(te(r)&&(o=r(i),j.isValidElement(o)))return o;var l=ue("recharts-pie-label-text",typeof r!="boolean"&&!te(r)?r.className:"");return j.createElement(Ja,Ta({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(b.PureComponent);dc=qt;rn(qt,"displayName","Pie");rn(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ei.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});rn(qt,"parseDeltaAngle",function(e,t){var n=on(t-e),r=Math.min(Math.abs(t-e),360);return n*r});rn(qt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ne(e,!1),i=On(n,e0);return t&&t.length?t.map(function(a,o){return be(be(be({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return be(be({},r),a.props)}):[]});rn(qt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=bj(i,a),l=r+kt(e.cx,i,i/2),s=n+kt(e.cy,a,a/2),u=kt(e.innerRadius,o,0),c=kt(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:c,maxRadius:f}});rn(qt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?be(be({},t.type.defaultProps),t.props):t.props,i=dc.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,c=r.nameKey,f=r.valueKey,d=r.tooltipType,p=Math.abs(r.minAngle),h=dc.parseCoordinateOfPie(r,n),m=dc.parseDeltaAngle(o,l),w=Math.abs(m),y=u;le(u)&&le(f)?(dr(!1,`Use "dataKey" to specify the value of pie,
|
256
|
+
A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*h," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},cY=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(a,a+l),c=Math.max(a,a+l),f=Math.min(o,o+s),d=Math.max(o,o+s);return r>=u&&r<=c&&i>=f&&i<=d}return!1},fY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P0=function(t){var n=E_(E_({},fY),t),r=b.useRef(),i=b.useState(-1),a=nY(i,2),o=a[0],l=a[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var s=n.x,u=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,y=n.isAnimationActive,g=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=ue("recharts-rectangle",p);return g?j.createElement($r,{canBegin:o>0,from:{width:c,height:f,x:s,y:u},to:{width:c,height:f,x:s,y:u},duration:m,animationEasing:h,isActive:g},function(E){var _=E.width,S=E.height,O=E.x,$=E.y;return j.createElement($r,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:m,isActive:y,easing:h},j.createElement("path",bf({},ne(n,!0),{className:x,d:O_(O,$,_,S,d),ref:r})))}):j.createElement("path",bf({},ne(n,!0),{className:x,d:O_(s,u,c,f,d)}))},dY=["points","className","baseLinePoints","connectNulls"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ta.apply(this,arguments)}function pY(e,t){if(e==null)return{};var n=hY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $_(e){return yY(e)||gY(e)||vY(e)||mY()}function mY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
257
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vY(e,t){if(e){if(typeof e=="string")return zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(e,t)}}function gY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yY(e){if(Array.isArray(e))return zv(e)}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P_=function(t){return t&&t.x===+t.x&&t.y===+t.y},xY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){P_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),P_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Nl=function(t,n){var r=xY(t);n&&(r=[r.reduce(function(a,o){return[].concat($_(a),$_(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},bY=function(t,n,r){var i=Nl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Nl(n.reverse(),r).slice(1))},wY=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=pY(t,dY);if(!n||!n.length)return null;var l=ue("recharts-polygon",r);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",u=bY(n,i,a);return j.createElement("g",{className:l},j.createElement("path",Ta({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?j.createElement("path",Ta({},ne(o,!0),{fill:"none",d:Nl(n,a)})):null,s?j.createElement("path",Ta({},ne(o,!0),{fill:"none",d:Nl(i,a)})):null)}var c=Nl(n,a);return j.createElement("path",Ta({},ne(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:l,d:c}))};function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}var j0=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=ue("recharts-dot",a);return n===+n&&r===+r&&i===+i?j.createElement("circle",Uv({},ne(t,!1),zc(t),{className:o,cx:n,cy:r,r:i})):null};function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}var _Y=["x","y","top","left","width","height","className"];function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){EY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EY(e,t,n){return t=OY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OY(e){var t=$Y(e,"string");return $s(t)=="symbol"?t:t+""}function $Y(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PY(e,t){if(e==null)return{};var n=jY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var TY=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},AY=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,h=t.className,m=PY(t,_Y),w=SY({x:r,y:a,top:l,left:u,width:f,height:p},m);return!G(r)||!G(a)||!G(f)||!G(p)||!G(l)||!G(u)?null:j.createElement("path",Hv({},ne(w,!0),{className:ue("recharts-cross",h),d:TY(r,a,f,p,l,u)}))},CY=Wd,kY=Q2,NY=di;function MY(e,t){return e&&e.length?CY(e,NY(t),kY):void 0}var IY=MY;const RY=me(IY);var LY=Wd,DY=di,FY=Z2;function BY(e,t){return e&&e.length?LY(e,DY(t),FY):void 0}var zY=BY;const UY=me(zY);var HY=["cx","cy","angle","ticks","axisLine"],WY=["ticks","tick","angle","tickFormatter","stroke"];function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(r){Yd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A_(e,t){if(e==null)return{};var n=VY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dj(r.key),r)}}function GY(e,t,n){return t&&C_(e.prototype,t),n&&C_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qY(e,t,n){return t=wf(t),XY(e,Lj()?Reflect.construct(t,n||[],wf(e).constructor):t.apply(e,n))}function XY(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YY(e)}function YY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lj=function(){return!!e})()}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function QY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wv(e,t)}function Yd(e,t,n){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dj(e){var t=ZY(e,"string");return lo(t)=="symbol"?t:t+""}function ZY(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qd=function(e){function t(){return KY(this,t),qY(this,t,arguments)}return QY(t,e),GY(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,s=a.cy;return Se(l,s,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=RY(l,function(c){return c.coordinate||0}),u=UY(l,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=A_(r,HY),c=l.reduce(function(h,m){return[Math.min(h[0],m.coordinate),Math.max(h[1],m.coordinate)]},[1/0,-1/0]),f=Se(i,a,c[0],o),d=Se(i,a,c[1],o),p=bi(bi(bi({},ne(u,!1)),{},{fill:"none"},ne(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Ml({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,s=i.tickFormatter,u=i.stroke,c=A_(i,WY),f=this.getTickTextAnchor(),d=ne(c,!1),p=ne(o,!1),h=a.map(function(m,w){var y=r.getTickValueCoord(m),g=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:w},y),{},{payload:m});return j.createElement(Te,Ml({className:ue("recharts-polar-radius-axis-tick",wj(o)),key:"tick-".concat(m.coordinate)},Xs(r.props,m,w)),t.renderTickItem(o,g,s?s(m.value,w):m.value))});return j.createElement(Te,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),ut.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(eo,Ml({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(b.PureComponent);Yd(Qd,"displayName","PolarRadiusAxis");Yd(Qd,"axisType","radiusAxis");Yd(Qd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(n),!0).forEach(function(r){Zd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bj(r.key),r)}}function eQ(e,t,n){return t&&N_(e.prototype,t),n&&N_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tQ(e,t,n){return t=_f(t),nQ(e,Fj()?Reflect.construct(t,n||[],_f(e).constructor):t.apply(e,n))}function nQ(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rQ(e)}function rQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fj=function(){return!!e})()}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function iQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vv(e,t)}function Zd(e,t,n){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bj(e){var t=aQ(e,"string");return so(t)=="symbol"?t:t+""}function aQ(e,t){if(so(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oQ=Math.PI/180,M_=1e-5,Jd=function(e){function t(){return JY(this,t),tQ(this,t,arguments)}return iQ(t,e),eQ(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,s=i.orientation,u=i.tickSize,c=u||8,f=Se(a,o,l,r.coordinate),d=Se(a,o,l+(s==="inner"?-1:1)*c,r.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*oQ),o;return a>M_?o=i==="outer"?"start":"end":a<-M_?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=wi(wi({},ne(this.props,!1)),{},{fill:"none"},ne(l,!1));if(s==="circle")return j.createElement(j0,Pi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return Se(i,a,o,d.coordinate)});return j.createElement(wY,Pi({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,s=i.tickFormatter,u=i.stroke,c=ne(this.props,!1),f=ne(o,!1),d=wi(wi({},c),{},{fill:"none"},ne(l,!1)),p=a.map(function(h,m){var w=r.getTickLineCoord(h),y=r.getTickTextAnchor(h),g=wi(wi(wi({textAnchor:y},c),{},{stroke:"none",fill:u},f),{},{index:m,payload:h,x:w.x2,y:w.y2});return j.createElement(Te,Pi({className:ue("recharts-polar-angle-axis-tick",wj(o)),key:"tick-".concat(h.coordinate)},Xs(r.props,h,m)),l&&j.createElement("line",Pi({className:"recharts-polar-angle-axis-tick-line"},d,w)),o&&t.renderTickItem(o,g,s?s(h.value,m):h.value))});return j.createElement(Te,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(eo,Pi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(b.PureComponent);Zd(Jd,"displayName","PolarAngleAxis");Zd(Jd,"axisType","angleAxis");Zd(Jd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var lQ=KP,sQ=lQ(Object.getPrototypeOf,Object),T0=sQ,uQ=Ar,cQ=T0,fQ=Cn,dQ="[object Object]",pQ=Function.prototype,hQ=Object.prototype,zj=pQ.toString,mQ=hQ.hasOwnProperty,vQ=zj.call(Object);function gQ(e){if(!fQ(e)||uQ(e)!=dQ)return!1;var t=cQ(e);if(t===null)return!0;var n=mQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zj.call(n)==vQ}var Uj=gQ;const yQ=me(Uj);var xQ=Ar,bQ=Cn,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||bQ(e)&&xQ(e)==wQ}var SQ=_Q;const EQ=me(SQ);function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}function OQ(e,t){return TQ(e)||jQ(e,t)||PQ(e,t)||$Q()}function $Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
258
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PQ(e,t){if(e){if(typeof e=="string")return I_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I_(e,t)}}function I_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function TQ(e){if(Array.isArray(e))return e}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){AQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AQ(e,t,n){return t=CQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CQ(e){var t=kQ(e,"string");return Ps(t)=="symbol"?t:t+""}function kQ(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D_=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},NQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MQ=function(t){var n=L_(L_({},NQ),t),r=b.useRef(),i=b.useState(-1),a=OQ(i,2),o=a[0],l=a[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,c=n.upperWidth,f=n.lowerWidth,d=n.height,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var g=ue("recharts-trapezoid",p);return y?j.createElement($r,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:s,y:u},duration:m,animationEasing:h,isActive:y},function(x){var E=x.upperWidth,_=x.lowerWidth,S=x.height,O=x.x,$=x.y;return j.createElement($r,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:m,easing:h},j.createElement("path",Sf({},ne(n,!0),{className:g,d:D_(O,$,E,_,S),ref:r})))}):j.createElement("g",null,j.createElement("path",Sf({},ne(n,!0),{className:g,d:D_(s,u,c,f,d)})))},IQ=["option","shapeType","propTransformer","activeClassName","isActive"];function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function RQ(e,t){if(e==null)return{};var n=LQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(n),!0).forEach(function(r){DQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DQ(e,t,n){return t=FQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQ(e){var t=BQ(e,"string");return js(t)=="symbol"?t:t+""}function BQ(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zQ(e,t){return Ef(Ef({},t),e)}function UQ(e,t){return e==="symbols"}function B_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(P0,n);case"trapezoid":return j.createElement(MQ,n);case"sector":return j.createElement(Oj,n);case"symbols":if(UQ(t))return j.createElement(Ly,n);break;default:return null}}function Hj(e){return b.isValidElement(e)?e.props:e}function Wj(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?zQ:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,s=RQ(e,IQ),u;if(b.isValidElement(t))u=b.cloneElement(t,Ef(Ef({},s),Hj(t)));else if(te(t))u=t(s);else if(yQ(t)&&!EQ(t)){var c=i(t,s);u=j.createElement(B_,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(B_,{shapeType:n,elementProps:f})}return l?j.createElement(Te,{className:o},u):u}function ep(e,t){return t!=null&&"trapezoids"in e.props}function tp(e,t){return t!=null&&"sectors"in e.props}function Ts(e,t){return t!=null&&"points"in e.props}function HQ(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function WQ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function VQ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function KQ(e,t){var n;return ep(e,t)?n=HQ:tp(e,t)?n=WQ:Ts(e,t)&&(n=VQ),n}function GQ(e,t){var n;return ep(e,t)?n="trapezoids":tp(e,t)?n="sectors":Ts(e,t)&&(n="points"),n}function qQ(e,t){if(ep(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(tp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Ts(e,t)?t.payload:{}}function XQ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=GQ(n,t),a=qQ(n,t),o=r.filter(function(s,u){var c=Gd(a,s),f=n.props[i].filter(function(h){var m=KQ(n,t);return m(h,t)}),d=n.props[i].indexOf(f[f.length-1]),p=u===d;return c&&p}),l=r.indexOf(o[o.length-1]);return l}var dc;function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}function z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?z_(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kj(r.key),r)}}function QQ(e,t,n){return t&&U_(e.prototype,t),n&&U_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZQ(e,t,n){return t=Of(t),JQ(e,Vj()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function JQ(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eZ(e)}function eZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vj=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function tZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function rn(e,t,n){return t=Kj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){var t=nZ(e,"string");return uo(t)=="symbol"?t:t+""}function nZ(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qt=function(e){function t(n){var r;return YQ(this,t),r=ZQ(this,t,[n]),rn(r,"pieRef",null),rn(r,"sectorRefs",[]),rn(r,"id",Td("recharts-pie-")),rn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),te(i)&&i()}),rn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),te(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return tZ(t,e),QQ(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,s=a.dataKey,u=a.valueKey,c=ne(this.props,!1),f=ne(o,!1),d=ne(l,!1),p=o&&o.offsetRadius||20,h=r.map(function(m,w){var y=(m.startAngle+m.endAngle)/2,g=Se(m.cx,m.cy,m.outerRadius+p,y),x=be(be(be(be({},c),m),{},{stroke:"none"},f),{},{index:w,textAnchor:t.getTextAnchor(g.x,m.cx)},g),E=be(be(be(be({},c),m),{},{fill:"none",stroke:m.fill},d),{},{index:w,points:[Se(m.cx,m.cy,m.outerRadius,y),g]}),_=s;return le(s)&&le(u)?_="value":le(s)&&(_=u),j.createElement(Te,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(w)},l&&t.renderLabelLineItem(l,E,"line"),t.renderLabelItem(o,x,ct(m,_)))});return j.createElement(Te,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,s=a.inactiveShape;return r.map(function(u,c){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=i.isActiveIndex(c),d=s&&i.hasActiveIndex()?s:null,p=f?o:d,h=be(be({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement(Te,Aa({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Xs(i.props,u,c),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(c)}),j.createElement(Wj,Aa({option:p,isActive:f,shapeType:"sector"},h)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return j.createElement($r,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(h){var m=h.t,w=[],y=a&&a[0],g=y.startAngle;return a.forEach(function(x,E){var _=d&&d[E],S=E>0?En(x,"paddingAngle",0):0;if(_){var O=Zt(_.endAngle-_.startAngle,x.endAngle-x.startAngle),$=be(be({},x),{},{startAngle:g+S,endAngle:g+O(m)+S});w.push($),g=$.endAngle}else{var T=x.endAngle,C=x.startAngle,A=Zt(0,T-C),N=A(m),I=be(be({},x),{},{startAngle:g+S,endAngle:g+N+S});w.push(I),g=I.endAngle}}),j.createElement(Te,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,s=i.label,u=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(a||!o||!o.length||!G(u)||!G(c)||!G(f)||!G(d))return null;var m=ue("recharts-pie",l);return j.createElement(Te,{tabIndex:this.props.rootTabIndex,className:m,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),ut.renderCallByParent(this.props,null,!1),(!p||h)&&Un.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);if(te(r))return r(i);var o=ue("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(Cv,Aa({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);var o=a;if(te(r)&&(o=r(i),j.isValidElement(o)))return o;var l=ue("recharts-pie-label-text",typeof r!="boolean"&&!te(r)?r.className:"");return j.createElement(eo,Aa({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(b.PureComponent);dc=qt;rn(qt,"displayName","Pie");rn(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ti.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});rn(qt,"parseDeltaAngle",function(e,t){var n=on(t-e),r=Math.min(Math.abs(t-e),360);return n*r});rn(qt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ne(e,!1),i=On(n,e0);return t&&t.length?t.map(function(a,o){return be(be(be({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return be(be({},r),a.props)}):[]});rn(qt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=bj(i,a),l=r+kt(e.cx,i,i/2),s=n+kt(e.cy,a,a/2),u=kt(e.innerRadius,o,0),c=kt(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:c,maxRadius:f}});rn(qt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?be(be({},t.type.defaultProps),t.props):t.props,i=dc.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,c=r.nameKey,f=r.valueKey,d=r.tooltipType,p=Math.abs(r.minAngle),h=dc.parseCoordinateOfPie(r,n),m=dc.parseDeltaAngle(o,l),w=Math.abs(m),y=u;le(u)&&le(f)?(dr(!1,`Use "dataKey" to specify the value of pie,
|
259
259
|
the props "valueKey" will be deprecated in 1.1.0`),y="value"):le(u)&&(dr(!1,`Use "dataKey" to specify the value of pie,
|
260
|
-
the props "valueKey" will be deprecated in 1.1.0`),y=f);var v=i.filter(function($){return ct($,y,0)!==0}).length,x=(w>=360?v:v-1)*s,E=w-v*p-x,_=i.reduce(function($,T){var C=ct(T,y,0);return $+(G(C)?C:0)},0),S;if(_>0){var O;S=i.map(function($,T){var C=ct($,y,0),A=ct($,c,T),N=(G(C)?C:0)/_,I;T?I=O.endAngle+on(m)*s*(C!==0?1:0):I=o;var D=I+on(m)*((C!==0?p:0)+N*E),M=(I+D)/2,F=(h.innerRadius+h.outerRadius)/2,R=[{name:A,value:C,payload:$,dataKey:y,type:d}],P=Se(h.cx,h.cy,F,M);return O=be(be(be({percent:N,cornerRadius:a,name:A,tooltipPayload:R,midAngle:M,middleRadius:F,tooltipPosition:P},$),h),{},{value:ct($,y),startAngle:I,endAngle:D,payload:$,paddingAngle:on(m)*s}),O})}return be(be({},h),{},{sectors:S,data:i})});var rZ=Math.ceil,iZ=Math.max;function aZ(e,t,n,r){for(var i=-1,a=iZ(rZ((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var oZ=aZ,lZ=d2,H_=1/0,sZ=17976931348623157e292;function uZ(e){if(!e)return e===0?e:0;if(e=lZ(e),e===H_||e===-H_){var t=e<0?-1:1;return t*sZ}return e===e?e:0}var cZ=uZ,fZ=oZ,dZ=Ld,xh=cZ;function pZ(e){return function(t,n,r){return r&&typeof r!="number"&&dZ(t,n,r)&&(n=r=void 0),t=xh(t),n===void 0?(n=t,t=0):n=xh(n),r=r===void 0?t<n?1:-1:xh(r),fZ(t,n,r,e)}}var hZ=pZ,mZ=hZ,vZ=mZ(),gZ=vZ;const $f=me(gZ);function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(n),!0).forEach(function(r){Gj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gj(e,t,n){return t=yZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(e){var t=xZ(e,"string");return js(t)=="symbol"?t:t+""}function xZ(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bZ=["Webkit","Moz","O","ms"],wZ=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=bZ.reduce(function(a,o){return V_(V_({},a),{},Gj({},o+r,n))},{});return i[t]=n,i};function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xj(r.key),r)}}function SZ(e,t,n){return t&&G_(e.prototype,t),n&&G_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EZ(e,t,n){return t=jf(t),OZ(e,qj()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function OZ(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $Z(e)}function $Z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qj=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jf(e)}function PZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gv(e,t)}function Dt(e,t,n){return t=Xj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){var t=jZ(e,"string");return uo(t)=="symbol"?t:t+""}function jZ(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TZ=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=jl().domain($f(0,s)).range([a,a+o-l]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:c}},q_=function(t){return t.changedTouches&&!!t.changedTouches.length},co=function(e){function t(n){var r;return _Z(this,t),r=EZ(this,t,[n]),Dt(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Dt(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Dt(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),Dt(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Dt(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Dt(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Dt(r,"handleSlideDragStart",function(i){var a=q_(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return PZ(t,e),SZ(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,f),h=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:h===c?c:h-h%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,s=ct(a[r],l,r);return te(o)?o(s,r):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,s=this.props,u=s.x,c=s.width,f=s.travellerWidth,d=s.startIndex,p=s.endIndex,h=s.onChange,m=r.pageX-a;m>0?m=Math.min(m,u+c-f-l,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-l));var w=this.getIndex({startX:o+m,endX:l+m});(w.startIndex!==d||w.endIndex!==p)&&h&&h(w),this.setState({startX:o+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=q_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,s=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,h=c.onChange,m=c.gap,w=c.data,y={startX:this.state.startX,endX:this.state.endX},v=r.pageX-a;v>0?v=Math.min(v,f+d-p-u):v<0&&(v=Math.max(v,f-u)),y[o]=u+v;var x=this.getIndex(y),E=x.startIndex,_=x.endIndex,S=function(){var $=w.length-1;return o==="startX"&&(l>s?E%m===0:_%m===0)||l<s&&_===$||o==="endX"&&(l>s?_%m===0:E%m===0)||l>s&&_===$};this.setState(Dt(Dt({},o,u+v),"brushMoveStartX",r.pageX),function(){h&&S()&&h(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,c=this.state[i],f=l.indexOf(c);if(f!==-1){var d=f+r;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=u||i==="endX"&&p<=s||this.setState(Dt({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return j.createElement("rect",{stroke:u,fill:s,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.data,u=r.children,c=r.padding,f=b.Children.only(u);return f?j.cloneElement(f,{x:i,y:a,width:o,height:l,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,s=this.props,u=s.y,c=s.travellerWidth,f=s.height,d=s.traveller,p=s.ariaLabel,h=s.data,m=s.startIndex,w=s.endIndex,y=Math.max(r,this.props.x),v=bh(bh({},ne(this.props,!1)),{},{x:y,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=h[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=h[w])===null||o===void 0?void 0:o.name);return j.createElement(Te,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),l.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,s=a.stroke,u=a.travellerWidth,c=Math.min(r,i)+u,f=Math.max(Math.abs(i-r)-u,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:c,y:o,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,c=this.state,f=c.startX,d=c.endX,p=5,h={pointerEvents:"none",fill:u};return j.createElement(Te,{className:"recharts-brush-texts"},j.createElement(Ja,Pf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+l/2},h),this.getTextOfTick(i)),j.createElement(Ja,Pf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:o+l/2},h),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,s=r.y,u=r.width,c=r.height,f=r.alwaysShowText,d=this.state,p=d.startX,h=d.endX,m=d.isTextActive,w=d.isSlideMoving,y=d.isTravellerMoving,v=d.isTravellerFocused;if(!i||!i.length||!G(l)||!G(s)||!G(u)||!G(c)||u<=0||c<=0)return null;var x=ue("recharts-brush",a),E=j.Children.count(o)===1,_=wZ("userSelect","none");return j.createElement(Te,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(m||w||y||v||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(a+l/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:a,width:o,height:l,fill:s,stroke:"none"}),j.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):te(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,c=r.startIndex,f=r.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return bh({prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},a&&a.length?TZ({data:a,width:o,x:l,travellerWidth:s,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([l,l+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>i?l=s:o=s}return i>=r[l]?l:o}}])}(b.PureComponent);Dt(co,"displayName","Brush");Dt(co,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var AZ=Qy;function CZ(e,t){var n;return AZ(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var kZ=CZ,NZ=LP,MZ=fi,IZ=kZ,RZ=jt,LZ=Ld;function DZ(e,t,n){var r=RZ(e)?NZ:IZ;return n&&LZ(e,t,n)&&(t=void 0),r(e,MZ(t))}var FZ=DZ;const BZ=me(FZ);var Hn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},X_=o2;function zZ(e,t,n){t=="__proto__"&&X_?X_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var A0=zZ,UZ=A0,HZ=r2,WZ=fi;function VZ(e,t){var n={};return t=WZ(t),HZ(e,function(r,i,a){UZ(n,i,t(r,i,a))}),n}var KZ=VZ;const GZ=me(KZ);function qZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var XZ=qZ,YZ=Qy;function QZ(e,t){var n=!0;return YZ(e,function(r,i,a){return n=!!t(r,i,a),n}),n}var ZZ=QZ,JZ=XZ,eJ=ZZ,tJ=fi,nJ=jt,rJ=Ld;function iJ(e,t,n){var r=nJ(e)?JZ:eJ;return n&&rJ(e,t,n)&&(t=void 0),r(e,tJ(t))}var aJ=iJ;const oJ=me(aJ);function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}function lJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yj(r.key),r)}}function sJ(e,t,n){return t&&Y_(e.prototype,t),n&&Y_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C0(e,t,n){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e){var t=uJ(e,"string");return Ts(t)=="symbol"?t:t+""}function uJ(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qj=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},cJ=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Qj({x:n,y:r},{x:i,y:a})},Zj=function(){function e(t){lJ(this,e),this.scale=t}return sJ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();C0(Zj,"EPS",1e-4);var k0=function(t){var n=Object.keys(t).reduce(function(r,i){return Wu(Wu({},r),{},C0({},i,Zj.create(t[i])))},{});return Wu(Wu({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return GZ(i,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(i){return oJ(i,function(a,o){return n[o].isInRange(a)})}})},fJ=v5(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Jj=b.createContext(void 0),eT=b.createContext(void 0),tT=b.createContext(void 0),dJ=b.createContext({}),nT=b.createContext(void 0),pJ=b.createContext(0),hJ=b.createContext(0),Z_=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,c=fJ(a);return j.createElement(Jj.Provider,{value:r},j.createElement(eT.Provider,{value:i},j.createElement(dJ.Provider,{value:a},j.createElement(tT.Provider,{value:c},j.createElement(nT.Provider,{value:o},j.createElement(pJ.Provider,{value:u},j.createElement(hJ.Provider,{value:s},l)))))))},mJ=function(){return b.useContext(nT)},vJ=function(t){var n=b.useContext(Jj);n==null&&ro();var r=n[t];return r==null&&ro(),r},gJ=function(t){var n=b.useContext(eT);n==null&&ro();var r=n[t];return r==null&&ro(),r},yJ=function(){var t=b.useContext(tT);return t};function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}function xJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iT(r.key),r)}}function wJ(e,t,n){return t&&bJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _J(e,t,n){return t=Tf(t),SJ(e,rT()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function SJ(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EJ(e)}function EJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rT=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function OJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qv(e,t)}function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t=iT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iT(e){var t=$J(e,"string");return fo(t)=="symbol"?t:t+""}function $J(e,t){if(fo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PJ(e,t){return CJ(e)||AJ(e,t)||TJ(e,t)||jJ()}function jJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
261
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TJ(e,t){if(e){if(typeof e=="string")return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(e,t)}}function tS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function CJ(e){if(Array.isArray(e))return e}function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xv.apply(this,arguments)}var kJ=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):te(t)?r=t(n):r=j.createElement("line",Xv({},n,{className:"recharts-reference-line-line"})),r},NJ=function(t,n,r,i,a,o,l,s,u){var c=a.x,f=a.y,d=a.width,p=a.height;if(r){var h=u.y,m=t.y.apply(h,{position:o});if(Hn(u,"discard")&&!t.y.isInRange(m))return null;var w=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?w.reverse():w}if(n){var y=u.x,v=t.x.apply(y,{position:o});if(Hn(u,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:f+p},{x:v,y:f}];return l==="top"?x.reverse():x}if(i){var E=u.segment,_=E.map(function(S){return t.apply(S,{position:o})});return Hn(u,"discard")&&BZ(_,function(S){return!t.isInRange(S)})?null:_}return null};function MJ(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=mJ(),c=vJ(i),f=gJ(a),d=yJ();if(!u||!d)return null;dr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),h=Je(t),m=Je(n),w=r&&r.length===2,y=NJ(p,h,m,w,d,e.position,c.orientation,f.orientation,e);if(!y)return null;var v=PJ(y,2),x=v[0],E=x.x,_=x.y,S=v[1],O=S.x,$=S.y,T=Hn(e,"hidden")?"url(#".concat(u,")"):void 0,C=eS(eS({clipPath:T},ne(e,!0)),{},{x1:E,y1:_,x2:O,y2:$});return j.createElement(Te,{className:ue("recharts-reference-line",l)},kJ(o,C),ut.renderCallByParent(e,cJ({x1:E,y1:_,x2:O,y2:$})))}var M0=function(e){function t(){return xJ(this,t),_J(this,t,arguments)}return OJ(t,e),wJ(t,[{key:"render",value:function(){return j.createElement(MJ,this.props)}}])}(j.Component);N0(M0,"displayName","ReferenceLine");N0(M0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(this,arguments)}function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function nS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?nS(Object(n),!0).forEach(function(r){np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oT(r.key),r)}}function LJ(e,t,n){return t&&RJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DJ(e,t,n){return t=Af(t),FJ(e,aT()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function FJ(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BJ(e)}function BJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aT=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Af(e)}function zJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qv(e,t)}function Qv(e,t){return Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qv(e,t)}function np(e,t,n){return t=oT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(e){var t=UJ(e,"string");return po(t)=="symbol"?t:t+""}function UJ(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HJ=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=k0({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Hn(t,"discard")&&!o.isInRange(l)?null:l},rp=function(e){function t(){return IJ(this,t),DJ(this,t,arguments)}return zJ(t,e),LJ(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=Je(i),c=Je(a);if(dr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=HJ(this.props);if(!f)return null;var d=f.x,p=f.y,h=this.props,m=h.shape,w=h.className,y=Hn(this.props,"hidden")?"url(#".concat(s,")"):void 0,v=rS(rS({clipPath:y},ne(this.props,!0)),{},{cx:d,cy:p});return j.createElement(Te,{className:ue("recharts-reference-dot",w)},t.renderDot(m,v),ut.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(j.Component);np(rp,"displayName","ReferenceDot");np(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});np(rp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(j0,Yv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sT(r.key),r)}}function KJ(e,t,n){return t&&VJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GJ(e,t,n){return t=Cf(t),qJ(e,lT()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function qJ(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XJ(e)}function XJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lT=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function YJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jv(e,t)}function ip(e,t,n){return t=sT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sT(e){var t=QJ(e,"string");return ho(t)=="symbol"?t:t+""}function QJ(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZJ=function(t,n,r,i,a){var o=a.x1,l=a.x2,s=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=k0({x:c.scale,y:f.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(s,{position:"start"}):d.y.rangeMin},h={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Hn(a,"discard")&&(!d.isInRange(p)||!d.isInRange(h))?null:Qj(p,h)},ap=function(e){function t(){return WJ(this,t),GJ(this,t,arguments)}return YJ(t,e),KJ(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,c=r.clipPathId;dr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Je(i),d=Je(a),p=Je(o),h=Je(l),m=this.props.shape;if(!f&&!d&&!p&&!h&&!m)return null;var w=ZJ(f,d,p,h,this.props);if(!w&&!m)return null;var y=Hn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement(Te,{className:ue("recharts-reference-area",s)},t.renderRect(m,aS(aS({clipPath:y},ne(this.props,!0)),w)),ut.renderCallByParent(this.props,w))}}])}(j.Component);ip(ap,"displayName","ReferenceArea");ip(ap,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ip(ap,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(P0,Zv({},t,{className:"recharts-reference-area-rect"})),n});function oS(e){return nee(e)||tee(e)||eee(e)||JJ()}function JJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
262
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eee(e,t){if(e){if(typeof e=="string")return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}}function tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nee(e){if(Array.isArray(e))return eg(e)}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tg=function(t,n,r,i,a){var o=On(t,M0),l=On(t,rp),s=[].concat(oS(o),oS(l)),u=On(t,ap),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(m,w){if(w.props[c]===r&&Hn(w.props,"extendDomain")&&G(w.props[f])){var y=w.props[f];return[Math.min(m[0],y),Math.max(m[1],y)]}return m},d)),u.length){var p="".concat(f,"1"),h="".concat(f,"2");d=u.reduce(function(m,w){if(w.props[c]===r&&Hn(w.props,"extendDomain")&&G(w.props[p])&&G(w.props[h])){var y=w.props[p],v=w.props[h];return[Math.min(m[0],y,v),Math.max(m[1],y,v)]}return m},d)}return a&&a.length&&(d=a.reduce(function(m,w){return G(w)?[Math.min(m[0],w),Math.max(m[1],w)]:m},d)),d},uT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(s,u,c){this.fn=s,this.context=u,this.once=c||!1}function a(s,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||s,d),h=n?n+u:u;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],p]:s._events[h].push(p):(s._events[h]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,h=new Array(p);d<p;d++)h[d]=f[d].fn;return h},l.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,p,h){var m=n?n+u:u;if(!this._events[m])return!1;var w=this._events[m],y=arguments.length,v,x;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),y){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,c),!0;case 3:return w.fn.call(w.context,c,f),!0;case 4:return w.fn.call(w.context,c,f,d),!0;case 5:return w.fn.call(w.context,c,f,d,p),!0;case 6:return w.fn.call(w.context,c,f,d,p,h),!0}for(x=1,v=new Array(y-1);x<y;x++)v[x-1]=arguments[x];w.fn.apply(w.context,v)}else{var E=w.length,_;for(x=0;x<E;x++)switch(w[x].once&&this.removeListener(u,w[x].fn,void 0,!0),y){case 1:w[x].fn.call(w[x].context);break;case 2:w[x].fn.call(w[x].context,c);break;case 3:w[x].fn.call(w[x].context,c,f);break;case 4:w[x].fn.call(w[x].context,c,f,d);break;default:if(!v)for(_=1,v=new Array(y-1);_<y;_++)v[_-1]=arguments[_];w[x].fn.apply(w[x].context,v)}}return!0},l.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var h=this._events[p];if(h.fn)h.fn===c&&(!d||h.once)&&(!f||h.context===f)&&o(this,p);else{for(var m=0,w=[],y=h.length;m<y;m++)(h[m].fn!==c||d&&!h[m].once||f&&h[m].context!==f)&&w.push(h[m]);w.length?this._events[p]=w.length===1?w[0]:w:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(uT);var ree=uT.exports;const iee=me(ree);var wh=new iee,_h="recharts.syncMouseEvents";function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function aee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cT(r.key),r)}}function lee(e,t,n){return t&&oee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e,t,n){return t=cT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cT(e){var t=see(e,"string");return As(t)=="symbol"?t:t+""}function see(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uee=function(){function e(){aee(this,e),Sh(this,"activeIndex",0),Sh(this,"coordinateList",[]),Sh(this,"layout","horizontal")}return lee(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,c=n.offset,f=c===void 0?null:c,d=n.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,c=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=a+s+u,d=o+this.offset.top+l/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function cee(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&G(r)&&G(i))return!0}return!1}function fee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function fT(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=Se(t,n,r,i),l=Se(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function dee(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=Se(l,s,u,f),p=Se(l,s,c,f);r=d.x,i=d.y,a=p.x,o=p.y}else return fT(t);return[{x:r,y:i},{x:a,y:o}]}function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lS(Object(n),!0).forEach(function(r){pee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pee(e,t,n){return t=hee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hee(e){var t=mee(e,"string");return Cs(t)=="symbol"?t:t+""}function mee(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vee(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var h,m=Cv;if(d==="ScatterChart")h=o,m=AY;else if(d==="BarChart")h=fee(f,o,s,c),m=P0;else if(f==="radial"){var w=fT(o),y=w.cx,v=w.cy,x=w.radius,E=w.startAngle,_=w.endAngle;h={cx:y,cy:v,startAngle:E,endAngle:_,innerRadius:x,outerRadius:x},m=Oj}else h={points:dee(f,o,s)},m=Cv;var S=Vu(Vu(Vu(Vu({stroke:"#ccc",pointerEvents:"none"},s),h),ne(p,!1)),{},{payload:l,payloadIndex:u,className:ue("recharts-tooltip-cursor",p.className)});return b.isValidElement(p)?b.cloneElement(p,S):b.createElement(m,S)}var gee=["item"],yee=["children","className","width","height","style","compact","title","desc"];function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}function sS(e,t){return wee(e)||bee(e,t)||pT(e,t)||xee()}function xee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
263
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function wee(e){if(Array.isArray(e))return e}function uS(e,t){if(e==null)return{};var n=_ee(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function See(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hT(r.key),r)}}function Oee(e,t,n){return t&&Eee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ee(e,t,n){return t=kf(t),Pee(e,dT()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function Pee(e,t){if(t&&(
|
264
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pT(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}function Cee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kee(e){if(Array.isArray(e))return rg(e)}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y(e,t,n){return t=hT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e){var t=Nee(e,"string");return mo(t)=="symbol"?t:t+""}function Nee(e,t){if(mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mee={xAxis:["bottom","top"],yAxis:["left","right"]},Iee={width:"100%",height:"100%"},mT={x:0,y:0};function Ku(e){return e}var Ree=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Lee=function(t,n,r,i){var a=n.find(function(c){return c&&c.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return z(z(z({},i),Se(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var s=a.coordinate,u=i.angle;return z(z(z({},i),Se(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return mT},op=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(vo(l),vo(u)):l},[]);return o.length>0?o:t&&t.length&&G(i)&&G(a)?t.slice(i,a+1):[]};function vT(e){return e==="number"?[0,"auto"]:void 0}var ig=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=op(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(s,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;d=Lm(p,o.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(vo(s),[$G(u,d)]):s},[])},fS=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=Ree(a,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=cG(o,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=ig(t,n,c,f),p=Lee(r,l,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},Dee=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=gj(c,a);return r.reduce(function(h,m){var w,y=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,v=y.type,x=y.dataKey,E=y.allowDataOverflow,_=y.allowDuplicatedCategory,S=y.scale,O=y.ticks,$=y.includeHidden,T=y[o];if(h[T])return h;var C=op(t.data,{graphicalItems:i.filter(function(U){var V,re=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o];return re===T}),dataStartIndex:s,dataEndIndex:u}),A=C.length,N,I,D;cee(y.domain,E,v)&&(N=Ov(y.domain,null,E),p&&(v==="number"||S!=="auto")&&(D=Tl(C,x,"category")));var M=vT(v);if(!N||N.length===0){var F,R=(F=y.domain)!==null&&F!==void 0?F:M;if(x){if(N=Tl(C,x,v),v==="category"&&p){var P=dL(N);_&&P?(I=N,N=$f(0,A)):_||(N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(vo(U),[V])},[]))}else if(v==="category")_?N=N.filter(function(U){return U!==""&&!le(U)}):N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0||V===""||le(V)?U:[].concat(vo(U),[V])},[]);else if(v==="number"){var k=mG(C,i.filter(function(U){var V,re,ie=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o],J="hide"in U.props?U.props.hide:(re=U.type.defaultProps)===null||re===void 0?void 0:re.hide;return ie===T&&($||!J)}),x,a,c);k&&(N=k)}p&&(v==="number"||S!=="auto")&&(D=Tl(C,x,"category"))}else p?N=$f(0,A):l&&l[T]&&l[T].hasStack&&v==="number"?N=d==="expand"?[0,1]:yj(l[T].stackGroups,s,u):N=vj(C,i.filter(function(U){var V=o in U.props?U.props[o]:U.type.defaultProps[o],re="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===T&&($||!re)}),v,c,!0);if(v==="number")N=tg(f,N,T,a,O),R&&(N=Ov(R,N,E));else if(v==="category"&&R){var B=R,L=N.every(function(U){return B.indexOf(U)>=0});L&&(N=B)}}return z(z({},h),{},Y({},T,z(z({},y),{},{axisType:a,domain:N,categoricalDomain:D,duplicateDomain:I,originalDomain:(w=y.domain)!==null&&w!==void 0?w:M,isCategorical:p,layout:c})))},{})},Fee=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=op(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,h=gj(c,a),m=-1;return r.reduce(function(w,y){var v=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,x=v[o],E=vT("number");if(!w[x]){m++;var _;return h?_=$f(0,p):l&&l[x]&&l[x].hasStack?(_=yj(l[x].stackGroups,s,u),_=tg(f,_,x,a)):(_=Ov(E,vj(d,r.filter(function(S){var O,$,T=o in S.props?S.props[o]:(O=S.type.defaultProps)===null||O===void 0?void 0:O[o],C="hide"in S.props?S.props.hide:($=S.type.defaultProps)===null||$===void 0?void 0:$.hide;return T===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),_=tg(f,_,x,a)),z(z({},w),{},Y({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:En(Mee,"".concat(a,".").concat(m%2),null),domain:_,originalDomain:E,isCategorical:h,layout:c})))}return w},{})},Bee=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=On(c,a),p={};return d&&d.length?p=Dee(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Fee(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},zee=function(t){var n=pa(t),r=vl(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Zy(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:$v(n,r)}},dS=function(t){var n=t.children,r=t.defaultShowTooltip,i=Jt(n,co),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Uee=function(t){return!t||!t.length?!1:t.some(function(n){var r=fr(n&&n.type);return r&&r.indexOf("Bar")>=0})},pS=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Hee=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,c=r.height,f=r.children,d=r.margin||{},p=Jt(f,co),h=Jt(f,La),m=Object.keys(s).reduce(function(_,S){var O=s[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,_[$]+O.width)):_},{left:d.left||0,right:d.right||0}),w=Object.keys(o).reduce(function(_,S){var O=o[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,En(_,"".concat($))+O.height)):_},{top:d.top||0,bottom:d.bottom||0}),y=z(z({},w),m),v=y.bottom;p&&(y.bottom+=p.props.height||co.defaultProps.height),h&&n&&(y=pG(y,i,r,n));var x=u-y.left-y.right,E=c-y.top-y.bottom;return z(z({brushBottom:v},y),{},{width:Math.max(x,0),height:Math.max(E,0)})},Wee=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},gT=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(y,v){var x=v.graphicalItems,E=v.stackGroups,_=v.offset,S=v.updateId,O=v.dataStartIndex,$=v.dataEndIndex,T=y.barSize,C=y.layout,A=y.barGap,N=y.barCategoryGap,I=y.maxBarSize,D=pS(C),M=D.numericAxisName,F=D.cateAxisName,R=Uee(x),P=[];return x.forEach(function(k,B){var L=op(y.data,{graphicalItems:[k],dataStartIndex:O,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,V=U.dataKey,re=U.maxBarSize,ie=U["".concat(M,"Id")],J=U["".concat(F,"Id")],Ce={},Oe=s.reduce(function(vi,gi){var _p=v["".concat(gi.axisType,"Map")],sx=U["".concat(gi.axisType,"Id")];_p&&_p[sx]||gi.axisType==="zAxis"||ro();var ux=_p[sx];return z(z({},vi),{},Y(Y({},gi.axisType,ux),"".concat(gi.axisType,"Ticks"),vl(ux)))},Ce),K=Oe[F],Z=Oe["".concat(F,"Ticks")],ee=E&&E[ie]&&E[ie].hasStack&&EG(k,E[ie].stackGroups),H=fr(k.type).indexOf("Bar")>=0,ke=$v(K,Z),oe=[],He=R&&fG({barSize:T,stackGroups:E,totalSize:Wee(Oe,F)});if(H){var qe,Tt,Nr=le(re)?I:re,ua=(qe=(Tt=$v(K,Z,!0))!==null&&Tt!==void 0?Tt:Nr)!==null&&qe!==void 0?qe:0;oe=dG({barGap:A,barCategoryGap:N,bandSize:ua!==ke?ua:ke,sizeList:He[J],maxBarSize:Nr}),ua!==ke&&(oe=oe.map(function(vi){return z(z({},vi),{},{position:z(z({},vi.position),{},{offset:vi.position.offset-ua/2})})}))}var du=k&&k.type&&k.type.getComposedData;du&&P.push({props:z(z({},du(z(z({},Oe),{},{displayedData:L,props:y,dataKey:V,item:k,bandSize:ke,barPosition:oe,offset:_,stackedData:ee,layout:C,dataStartIndex:O,dataEndIndex:$}))),{},Y(Y(Y({key:k.key||"item-".concat(B)},M,Oe[M]),F,Oe[F]),"animationId",S)),childIndex:SL(k,y.children),item:k})}),P},p=function(y,v){var x=y.props,E=y.dataStartIndex,_=y.dataEndIndex,S=y.updateId;if(!Fb({props:x}))return null;var O=x.children,$=x.layout,T=x.stackOffset,C=x.data,A=x.reverseStackOrder,N=pS($),I=N.numericAxisName,D=N.cateAxisName,M=On(O,r),F=_G(C,M,"".concat(I,"Id"),"".concat(D,"Id"),T,A),R=s.reduce(function(U,V){var re="".concat(V.axisType,"Map");return z(z({},U),{},Y({},re,Bee(x,z(z({},V),{},{graphicalItems:M,stackGroups:V.axisType===I&&F,dataStartIndex:E,dataEndIndex:_}))))},{}),P=Hee(z(z({},R),{},{props:x,graphicalItems:M}),v==null?void 0:v.legendBBox);Object.keys(R).forEach(function(U){R[U]=c(x,R[U],P,U.replace("Map",""),n)});var k=R["".concat(D,"Map")],B=zee(k),L=d(x,z(z({},R),{},{dataStartIndex:E,dataEndIndex:_,updateId:S,graphicalItems:M,stackGroups:F,offset:P}));return z(z({formattedGraphicalItems:L,graphicalItems:M,offset:P,stackGroups:F},B),R)},h=function(w){function y(v){var x,E,_;return See(this,y),_=$ee(this,y,[v]),Y(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(_,"accessibilityManager",new uee),Y(_,"handleLegendBBoxUpdate",function(S){if(S){var O=_.state,$=O.dataStartIndex,T=O.dataEndIndex,C=O.updateId;_.setState(z({legendBBox:S},p({props:_.props,dataStartIndex:$,dataEndIndex:T,updateId:C},z(z({},_.state),{},{legendBBox:S}))))}}),Y(_,"handleReceiveSyncEvent",function(S,O,$){if(_.props.syncId===S){if($===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(O)}}),Y(_,"handleBrushChange",function(S){var O=S.startIndex,$=S.endIndex;if(O!==_.state.dataStartIndex||$!==_.state.dataEndIndex){var T=_.state.updateId;_.setState(function(){return z({dataStartIndex:O,dataEndIndex:$},p({props:_.props,dataStartIndex:O,dataEndIndex:$,updateId:T},_.state))}),_.triggerSyncEvent({dataStartIndex:O,dataEndIndex:$})}}),Y(_,"handleMouseEnter",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseEnter;te(T)&&T($,S)}}),Y(_,"triggeredAfterMouseMove",function(S){var O=_.getMouseInfo(S),$=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseMove;te(T)&&T($,S)}),Y(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Y(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),Y(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),Y(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};_.setState(O),_.triggerSyncEvent(O);var $=_.props.onMouseLeave;te($)&&$(O,S)}),Y(_,"handleOuterEvent",function(S){var O=_L(S),$=En(_.props,"".concat(O));if(O&&te($)){var T,C;/.*touch.*/i.test(O)?C=_.getMouseInfo(S.changedTouches[0]):C=_.getMouseInfo(S),$((T=C)!==null&&T!==void 0?T:{},S)}}),Y(_,"handleClick",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onClick;te(T)&&T($,S)}}),Y(_,"handleMouseDown",function(S){var O=_.props.onMouseDown;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleMouseUp",function(S){var O=_.props.onMouseUp;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Y(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),Y(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),Y(_,"handleDoubleClick",function(S){var O=_.props.onDoubleClick;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleContextMenu",function(S){var O=_.props.onContextMenu;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&wh.emit(_h,_.props.syncId,S,_.eventEmitterSymbol)}),Y(_,"applySyncEvent",function(S){var O=_.props,$=O.layout,T=O.syncMethod,C=_.state.updateId,A=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(z({dataStartIndex:A,dataEndIndex:N},p({props:_.props,dataStartIndex:A,dataEndIndex:N,updateId:C},_.state)));else if(S.activeTooltipIndex!==void 0){var I=S.chartX,D=S.chartY,M=S.activeTooltipIndex,F=_.state,R=F.offset,P=F.tooltipTicks;if(!R)return;if(typeof T=="function")M=T(P,S);else if(T==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===S.activeLabel){M=k;break}}var B=z(z({},R),{},{x:R.left,y:R.top}),L=Math.min(I,B.x+B.width),U=Math.min(D,B.y+B.height),V=P[M]&&P[M].value,re=ig(_.state,_.props.data,M),ie=P[M]?{x:$==="horizontal"?P[M].coordinate:L,y:$==="horizontal"?U:P[M].coordinate}:mT;_.setState(z(z({},S),{},{activeLabel:V,activeCoordinate:ie,activePayload:re,activeTooltipIndex:M}))}else _.setState(S)}),Y(_,"renderCursor",function(S){var O,$=_.state,T=$.isTooltipActive,C=$.activeCoordinate,A=$.activePayload,N=$.offset,I=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=_.getTooltipEventType(),F=(O=S.props.active)!==null&&O!==void 0?O:T,R=_.props.layout,P=S.key||"_recharts-cursor";return j.createElement(vee,{key:P,activeCoordinate:C,activePayload:A,activeTooltipIndex:I,chartName:n,element:S,isActive:F,layout:R,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),Y(_,"renderPolarAxis",function(S,O,$){var T=En(S,"type.axisType"),C=En(_.state,"".concat(T,"Map")),A=S.type.defaultProps,N=A!==void 0?z(z({},A),S.props):S.props,I=C&&C[N["".concat(T,"Id")]];return b.cloneElement(S,z(z({},I),{},{className:ue(T,I.className),key:S.key||"".concat(O,"-").concat($),ticks:vl(I,!0)}))}),Y(_,"renderPolarGrid",function(S){var O=S.props,$=O.radialLines,T=O.polarAngles,C=O.polarRadius,A=_.state,N=A.radiusAxisMap,I=A.angleAxisMap,D=pa(N),M=pa(I),F=M.cx,R=M.cy,P=M.innerRadius,k=M.outerRadius;return b.cloneElement(S,{polarAngles:Array.isArray(T)?T:vl(M,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(C)?C:vl(D,!0).map(function(B){return B.coordinate}),cx:F,cy:R,innerRadius:P,outerRadius:k,key:S.key||"polar-grid",radialLines:$})}),Y(_,"renderLegend",function(){var S=_.state.formattedGraphicalItems,O=_.props,$=O.children,T=O.width,C=O.height,A=_.props.margin||{},N=T-(A.left||0)-(A.right||0),I=hj({children:$,formattedGraphicalItems:S,legendWidth:N,legendContent:u});if(!I)return null;var D=I.item,M=uS(I,gee);return b.cloneElement(D,z(z({},M),{},{chartWidth:T,chartHeight:C,margin:A,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),Y(_,"renderTooltip",function(){var S,O=_.props,$=O.children,T=O.accessibilityLayer,C=Jt($,tr);if(!C)return null;var A=_.state,N=A.isTooltipActive,I=A.activeCoordinate,D=A.activePayload,M=A.activeLabel,F=A.offset,R=(S=C.props.active)!==null&&S!==void 0?S:N;return b.cloneElement(C,{viewBox:z(z({},F),{},{x:F.left,y:F.top}),active:R,label:M,payload:R?D:[],coordinate:I,accessibilityLayer:T})}),Y(_,"renderBrush",function(S){var O=_.props,$=O.margin,T=O.data,C=_.state,A=C.offset,N=C.dataStartIndex,I=C.dataEndIndex,D=C.updateId;return b.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Bu(_.handleBrushChange,S.props.onChange),data:T,x:G(S.props.x)?S.props.x:A.left,y:G(S.props.y)?S.props.y:A.top+A.height+A.brushBottom-($.bottom||0),width:G(S.props.width)?S.props.width:A.width,startIndex:N,endIndex:I,updateId:"brush-".concat(D)})}),Y(_,"renderReferenceElement",function(S,O,$){if(!S)return null;var T=_,C=T.clipPathId,A=_.state,N=A.xAxisMap,I=A.yAxisMap,D=A.offset,M=S.type.defaultProps||{},F=S.props,R=F.xAxisId,P=R===void 0?M.xAxisId:R,k=F.yAxisId,B=k===void 0?M.yAxisId:k;return b.cloneElement(S,{key:S.key||"".concat(O,"-").concat($),xAxis:N[P],yAxis:I[B],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),Y(_,"renderActivePoints",function(S){var O=S.item,$=S.activePoint,T=S.basePoint,C=S.childIndex,A=S.isRange,N=[],I=O.props.key,D=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,M=D.activeDot,F=D.dataKey,R=z(z({index:C,dataKey:F,cx:$.x,cy:$.y,r:4,fill:$0(O.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ne(M,!1)),zc(M));return N.push(y.renderActiveDot(M,R,"".concat(I,"-activePoint-").concat(C))),T?N.push(y.renderActiveDot(M,z(z({},R),{},{cx:T.x,cy:T.y}),"".concat(I,"-basePoint-").concat(C))):A&&N.push(null),N}),Y(_,"renderGraphicChild",function(S,O,$){var T=_.filterFormatItem(S,O,$);if(!T)return null;var C=_.getTooltipEventType(),A=_.state,N=A.isTooltipActive,I=A.tooltipAxis,D=A.activeTooltipIndex,M=A.activeLabel,F=_.props.children,R=Jt(F,tr),P=T.props,k=P.points,B=P.isRange,L=P.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,V=U.activeDot,re=U.hide,ie=U.activeBar,J=U.activeShape,Ce=!!(!re&&N&&R&&(V||ie||J)),Oe={};C!=="axis"&&R&&R.props.trigger==="click"?Oe={onClick:Bu(_.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(Oe={onMouseLeave:Bu(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Bu(_.handleItemMouseEnter,S.props.onMouseEnter)});var K=b.cloneElement(S,z(z({},T.props),Oe));function Z(gi){return typeof I.dataKey=="function"?I.dataKey(gi.payload):null}if(Ce)if(D>=0){var ee,H;if(I.dataKey&&!I.allowDuplicatedCategory){var ke=typeof I.dataKey=="function"?Z:"payload.".concat(I.dataKey.toString());ee=Lm(k,ke,M),H=B&&L&&Lm(L,ke,M)}else ee=k==null?void 0:k[D],H=B&&L&&L[D];if(J||ie){var oe=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[b.cloneElement(S,z(z(z({},T.props),Oe),{},{activeIndex:oe})),null,null]}if(!le(ee))return[K].concat(vo(_.renderActivePoints({item:T,activePoint:ee,basePoint:H,childIndex:D,isRange:B})))}else{var He,qe=(He=_.getItemByXY(_.state.activeCoordinate))!==null&&He!==void 0?He:{graphicalItem:K},Tt=qe.graphicalItem,Nr=Tt.item,ua=Nr===void 0?S:Nr,du=Tt.childIndex,vi=z(z(z({},T.props),Oe),{},{activeIndex:du});return[b.cloneElement(ua,vi),null,null]}return B?[K,null,null]:[K,null]}),Y(_,"renderCustomized",function(S,O,$){return b.cloneElement(S,z(z({key:"recharts-customized-".concat($)},_.props),_.state))}),Y(_,"renderMap",{CartesianGrid:{handler:Ku,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:Ku},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:Ku},YAxis:{handler:Ku},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:Td("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=p2(_.triggeredAfterMouseMove,(E=v.throttleDelay)!==null&&E!==void 0?E:1e3/60),_.state={},_}return Tee(y,w),Oee(y,[{key:"componentDidMount",value:function(){var x,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,E=x.children,_=x.data,S=x.height,O=x.layout,$=Jt(E,tr);if($){var T=$.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,A=ig(this.state,_,T,C),N=this.state.tooltipTicks[T].coordinate,I=(this.state.offset.top+S)/2,D=O==="horizontal",M=D?{x:N,y:I}:{y:N,x:I},F=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});F&&(M=z(z({},M),F.props.points[T].tooltipPosition),A=F.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:A,activeCoordinate:M};this.setState(R),this.renderCursor($),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){Bm([Jt(x.children,tr)],[Jt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Jt(this.props.children,tr);if(x&&typeof x.props.shared=="boolean"){var E=x.props.shared?"axis":"item";return l.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var E=this.container,_=E.getBoundingClientRect(),S=DU(_),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},$=_.width/E.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,$);if(!T)return null;var C=this.state,A=C.xAxisMap,N=C.yAxisMap,I=this.getTooltipEventType();if(I!=="axis"&&A&&N){var D=pa(A).scale,M=pa(N).scale,F=D&&D.invert?D.invert(O.chartX):null,R=M&&M.invert?M.invert(O.chartY):null;return z(z({},O),{},{xValue:F,yValue:R})}var P=fS(this.state,this.props.data,this.props.layout,T);return P?z(z({},O),P):null}},{key:"inRange",value:function(x,E){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/_,$=E/_;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,C=O>=T.left&&O<=T.left+T.width&&$>=T.top&&$<=T.top+T.height;return C?{x:O,y:$}:null}var A=this.state,N=A.angleAxisMap,I=A.radiusAxisMap;if(N&&I){var D=pa(N);return qw({x:O,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,E=this.getTooltipEventType(),_=Jt(x,tr),S={};_&&E==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=zc(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){wh.on(_h,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wh.removeListener(_h,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,E,_){for(var S=this.state.formattedGraphicalItems,O=0,$=S.length;O<$;O++){var T=S[O];if(T.item===x||T.props.key===x.key||E===fr(T.item.type)&&_===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,E=this.state.offset,_=E.left,S=E.top,O=E.height,$=E.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:_,y:S,height:O,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(x){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(x){var E=this.state,_=E.formattedGraphicalItems,S=E.activeItem;if(_&&_.length)for(var O=0,$=_.length;O<$;O++){var T=_[O],C=T.props,A=T.item,N=A.type.defaultProps!==void 0?z(z({},A.type.defaultProps),A.props):A.props,I=fr(A.type);if(I==="Bar"){var D=(C.data||[]).find(function(P){return cY(x,P)});if(D)return{graphicalItem:T,payload:D}}else if(I==="RadialBar"){var M=(C.data||[]).find(function(P){return qw(x,P)});if(M)return{graphicalItem:T,payload:M}}else if(ep(T,S)||tp(T,S)||Ps(T,S)){var F=XQ({graphicalItem:T,activeTooltipItem:S,itemData:N.data}),R=N.activeIndex===void 0?F:N.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:R}),payload:Ps(T,S)?N.data[F]:T.props.data[F]}}}return null}},{key:"render",value:function(){var x=this;if(!Fb(this))return null;var E=this.props,_=E.children,S=E.className,O=E.width,$=E.height,T=E.style,C=E.compact,A=E.title,N=E.desc,I=uS(E,yee),D=ne(I,!1);if(C)return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Um,Aa({},D,{width:O,height:$,title:A,desc:N}),this.renderClipPath(),zb(_,this.renderMap)));if(this.props.accessibilityLayer){var M,F;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(F=this.props.role)!==null&&F!==void 0?F:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",Aa({className:ue("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:$},T)},R,{ref:function(k){x.container=k}}),j.createElement(Um,Aa({},D,{width:O,height:$,title:A,desc:N,style:Iee}),this.renderClipPath(),zb(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(b.Component);Y(h,"displayName",n),Y(h,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Y(h,"getDerivedStateFromProps",function(w,y){var v=w.dataKey,x=w.data,E=w.children,_=w.width,S=w.height,O=w.layout,$=w.stackOffset,T=w.margin,C=y.dataStartIndex,A=y.dataEndIndex;if(y.updateId===void 0){var N=dS(w);return z(z(z({},N),{},{updateId:0},p(z(z({props:w},N),{},{updateId:0}),y)),{},{prevDataKey:v,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(v!==y.prevDataKey||x!==y.prevData||_!==y.prevWidth||S!==y.prevHeight||O!==y.prevLayout||$!==y.prevStackOffset||!Dm(T,y.prevMargin)){var I=dS(w),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},M=z(z({},fS(y,x,O)),{},{updateId:y.updateId+1}),F=z(z(z({},I),D),M);return z(z(z({},F),p(z({props:w},F),y)),{},{prevDataKey:v,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(!Bm(E,y.prevChildren)){var R,P,k,B,L=Jt(E,co),U=L&&(R=(P=L.props)===null||P===void 0?void 0:P.startIndex)!==null&&R!==void 0?R:C,V=L&&(k=(B=L.props)===null||B===void 0?void 0:B.endIndex)!==null&&k!==void 0?k:A,re=U!==C||V!==A,ie=!le(x),J=ie&&!re?y.updateId:y.updateId+1;return z(z({updateId:J},p(z(z({props:w},y),{},{updateId:J,dataStartIndex:U,dataEndIndex:V}),y)),{},{prevChildren:E,dataStartIndex:U,dataEndIndex:V})}return null}),Y(h,"renderActiveDot",function(w,y,v){var x;return b.isValidElement(w)?x=b.cloneElement(w,y):te(w)?x=w(y):x=j.createElement(j0,y),j.createElement(Te,{className:"recharts-active-dot",key:v},x)});var m=b.forwardRef(function(y,v){return j.createElement(h,Aa({},y,{ref:v}))});return m.displayName=h.displayName,m},eu=gT({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jd},{axisType:"radiusAxis",AxisComp:Qd}],formatAxisMap:IG,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Vee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Kee=Vee,Gee=A0,qee=dd,Xee=Object.prototype,Yee=Xee.hasOwnProperty;function Qee(e,t,n){var r=e[t];(!(Yee.call(e,t)&&qee(r,n))||n===void 0&&!(t in e))&&Gee(e,t,n)}var yT=Qee,Zee=yT,Jee=A0;function ete(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),i?Jee(n,l,s):Zee(n,l,s)}return n}var tu=ete,tte=tu,nte=Xs;function rte(e,t){return e&&tte(t,nte(t),e)}var ite=rte;function ate(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ote=ate,lte=kn,ste=qy,ute=ote,cte=Object.prototype,fte=cte.hasOwnProperty;function dte(e){if(!lte(e))return ute(e);var t=ste(e),n=[];for(var r in e)r=="constructor"&&(t||!fte.call(e,r))||n.push(r);return n}var pte=dte,hte=VP,mte=pte,vte=qs;function gte(e){return vte(e)?hte(e,!0):mte(e)}var I0=gte,yte=tu,xte=I0;function bte(e,t){return e&&yte(t,xte(t),e)}var wte=bte,Nf={exports:{}};Nf.exports;(function(e,t){var n=An,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,d=l?l(f):new u.constructor(f);return u.copy(d),d}e.exports=s})(Nf,Nf.exports);var _te=Nf.exports;function Ste(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ete=Ste,Ote=tu,$te=Uy;function Pte(e,t){return Ote(e,$te(e),t)}var jte=Pte,Tte=zy,Ate=T0,Cte=Uy,kte=UP,Nte=Object.getOwnPropertySymbols,Mte=Nte?function(e){for(var t=[];e;)Tte(t,Cte(e)),e=Ate(e);return t}:kte,xT=Mte,Ite=tu,Rte=xT;function Lte(e,t){return Ite(e,Rte(e),t)}var Dte=Lte,Fte=zP,Bte=xT,zte=I0;function Ute(e){return Fte(e,zte,Bte)}var bT=Ute,Hte=Object.prototype,Wte=Hte.hasOwnProperty;function Vte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Wte.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Kte=Vte,hS=BP;function Gte(e){var t=new e.constructor(e.byteLength);return new hS(t).set(new hS(e)),t}var R0=Gte,qte=R0;function Xte(e,t){var n=t?qte(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Yte=Xte,Qte=/\w*$/;function Zte(e){var t=new e.constructor(e.source,Qte.exec(e));return t.lastIndex=e.lastIndex,t}var Jte=Zte,mS=Po,vS=mS?mS.prototype:void 0,gS=vS?vS.valueOf:void 0;function ene(e){return gS?Object(gS.call(e)):{}}var tne=ene,nne=R0;function rne(e,t){var n=t?nne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ine=rne,ane=R0,one=Yte,lne=Jte,sne=tne,une=ine,cne="[object Boolean]",fne="[object Date]",dne="[object Map]",pne="[object Number]",hne="[object RegExp]",mne="[object Set]",vne="[object String]",gne="[object Symbol]",yne="[object ArrayBuffer]",xne="[object DataView]",bne="[object Float32Array]",wne="[object Float64Array]",_ne="[object Int8Array]",Sne="[object Int16Array]",Ene="[object Int32Array]",One="[object Uint8Array]",$ne="[object Uint8ClampedArray]",Pne="[object Uint16Array]",jne="[object Uint32Array]";function Tne(e,t,n){var r=e.constructor;switch(t){case yne:return ane(e);case cne:case fne:return new r(+e);case xne:return one(e,n);case bne:case wne:case _ne:case Sne:case Ene:case One:case $ne:case Pne:case jne:return une(e,n);case dne:return new r;case pne:case vne:return new r(e);case hne:return lne(e);case mne:return new r;case gne:return sne(e)}}var Ane=Tne,Cne=kn,yS=Object.create,kne=function(){function e(){}return function(t){if(!Cne(t))return{};if(yS)return yS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Nne=kne,Mne=Nne,Ine=T0,Rne=qy;function Lne(e){return typeof e.constructor=="function"&&!Rne(e)?Mne(Ine(e)):{}}var Dne=Lne,Fne=Id,Bne=Cn,zne="[object Map]";function Une(e){return Bne(e)&&Fne(e)==zne}var Hne=Une,Wne=Hne,Vne=Md,xS=Gy,bS=xS&&xS.isMap,Kne=bS?Vne(bS):Wne,Gne=Kne,qne=Id,Xne=Cn,Yne="[object Set]";function Qne(e){return Xne(e)&&qne(e)==Yne}var Zne=Qne,Jne=Zne,ere=Md,wS=Gy,_S=wS&&wS.isSet,tre=_S?ere(_S):Jne,nre=tre,rre=Fy,ire=Kee,are=yT,ore=ite,lre=wte,sre=_te,ure=Ete,cre=jte,fre=Dte,dre=GP,pre=bT,hre=Id,mre=Kte,vre=Ane,gre=Dne,yre=jt,xre=Wy,bre=Gne,wre=kn,_re=nre,Sre=Xs,Ere=I0,Ore=1,$re=2,Pre=4,wT="[object Arguments]",jre="[object Array]",Tre="[object Boolean]",Are="[object Date]",Cre="[object Error]",_T="[object Function]",kre="[object GeneratorFunction]",Nre="[object Map]",Mre="[object Number]",ST="[object Object]",Ire="[object RegExp]",Rre="[object Set]",Lre="[object String]",Dre="[object Symbol]",Fre="[object WeakMap]",Bre="[object ArrayBuffer]",zre="[object DataView]",Ure="[object Float32Array]",Hre="[object Float64Array]",Wre="[object Int8Array]",Vre="[object Int16Array]",Kre="[object Int32Array]",Gre="[object Uint8Array]",qre="[object Uint8ClampedArray]",Xre="[object Uint16Array]",Yre="[object Uint32Array]",xe={};xe[wT]=xe[jre]=xe[Bre]=xe[zre]=xe[Tre]=xe[Are]=xe[Ure]=xe[Hre]=xe[Wre]=xe[Vre]=xe[Kre]=xe[Nre]=xe[Mre]=xe[ST]=xe[Ire]=xe[Rre]=xe[Lre]=xe[Dre]=xe[Gre]=xe[qre]=xe[Xre]=xe[Yre]=!0;xe[Cre]=xe[_T]=xe[Fre]=!1;function pc(e,t,n,r,i,a){var o,l=t&Ore,s=t&$re,u=t&Pre;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!wre(e))return e;var c=yre(e);if(c){if(o=mre(e),!l)return ure(e,o)}else{var f=hre(e),d=f==_T||f==kre;if(xre(e))return sre(e,l);if(f==ST||f==wT||d&&!i){if(o=s||d?{}:gre(e),!l)return s?fre(e,lre(o,e)):cre(e,ore(o,e))}else{if(!xe[f])return i?e:{};o=vre(e,f,l)}}a||(a=new rre);var p=a.get(e);if(p)return p;a.set(e,o),_re(e)?e.forEach(function(w){o.add(pc(w,t,n,w,e,a))}):bre(e)&&e.forEach(function(w,y){o.set(y,pc(w,t,n,y,e,a))});var h=u?s?pre:dre:s?Ere:Sre,m=c?void 0:h(e);return ire(m||e,function(w,y){m&&(y=w,w=e[y]),are(o,y,pc(w,t,n,y,e,a))}),o}var Qre=pc,Zre=yd,Jre=uP;function eie(e,t){return t.length<2?e:Zre(e,Jre(t,0,-1))}var tie=eie,nie=gd,rie=Sj,iie=tie,aie=Vs;function oie(e,t){return t=nie(t,e),e=iie(e,t),e==null||delete e[aie(rie(t))]}var lie=oie,sie=Uj;function uie(e){return sie(e)?void 0:e}var cie=uie,fie=Yy;function die(e){var t=e==null?0:e.length;return t?fie(e,1):[]}var pie=die,hie=pie,mie=a2,vie=l2;function gie(e){return vie(mie(e,void 0,hie),e+"")}var yie=gie,xie=vd,bie=Qre,wie=lie,_ie=gd,Sie=tu,Eie=cie,Oie=yie,$ie=bT,Pie=1,jie=2,Tie=4,Aie=Oie(function(e,t){var n={};if(e==null)return n;var r=!1;t=xie(t,function(a){return a=_ie(a,e),r||(r=a.length>1),a}),Sie(e,$ie(e),n),r&&(n=bie(n,Pie|jie|Tie,Eie));for(var i=t.length;i--;)wie(n,t[i]);return n}),Cie=Aie;const kie=me(Cie);function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(this,arguments)}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SS(Object(n),!0).forEach(function(r){Nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t,n){return t=Mie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mie(e){var t=Iie(e,"string");return ks(t)=="symbol"?t:t+""}function Iie(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rie(e,t){var n="".concat(t.x||e.x),r=parseInt(n,10),i="".concat(t.y||e.y),a=parseInt(i,10),o="".concat((t==null?void 0:t.height)||(e==null?void 0:e.height)),l=parseInt(o,10);return Eh(Eh(Eh({},t),Hj(e)),{},{height:l,x:r,y:a})}function Lie(e){return j.createElement(Wj,ag({shapeType:"trapezoid",propTransformer:Rie},e))}var og;function ES(e,t){return zie(e)||Bie(e,t)||Fie(e,t)||Die()}function Die(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
265
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fie(e,t){if(e){if(typeof e=="string")return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function zie(e){if(Array.isArray(e))return e}function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mf.apply(this,arguments)}function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(n),!0).forEach(function(r){hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OT(r.key),r)}}function Hie(e,t,n){return t&&PS(e.prototype,t),n&&PS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wie(e,t,n){return t=If(t),Vie(e,ET()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function Vie(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kie(e)}function Kie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ET(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ET=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function Gie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lg(e,t)}function hr(e,t,n){return t=OT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OT(e){var t=qie(e,"string");return go(t)=="symbol"?t:t+""}function qie(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cr=function(e){function t(){var n;Uie(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Wie(this,t,[].concat(i)),hr(n,"state",{isAnimationFinished:!1}),hr(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),te(o)&&o()}),hr(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),te(o)&&o()}),n}return Gie(t,e),Hie(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"renderTrapezoidsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape;return r.map(function(s,u){var c=i.isActiveIndex(u)?l:o,f=Qe(Qe({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement(Te,Mf({className:"recharts-funnel-trapezoid"},Gs(i.props,s,u),{key:"trapezoid-".concat(s==null?void 0:s.x,"-").concat(s==null?void 0:s.y,"-").concat(s==null?void 0:s.name,"-").concat(s==null?void 0:s.value),role:"img"}),j.createElement(Lie,Mf({option:c},f)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var r=this,i=this.props,a=i.trapezoids,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevTrapezoids;return j.createElement(Or,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var p=d.t,h=a.map(function(m,w){var y=f&&f[w];if(y){var v=Zt(y.x,m.x),x=Zt(y.y,m.y),E=Zt(y.upperWidth,m.upperWidth),_=Zt(y.lowerWidth,m.lowerWidth),S=Zt(y.height,m.height);return Qe(Qe({},m),{},{x:v(p),y:x(p),upperWidth:E(p),lowerWidth:_(p),height:S(p)})}var O=Zt(m.x+m.upperWidth/2,m.x),$=Zt(m.y+m.height/2,m.y),T=Zt(0,m.upperWidth),C=Zt(0,m.lowerWidth),A=Zt(0,m.height);return Qe(Qe({},m),{},{x:O(p),y:$(p),upperWidth:T(p),lowerWidth:C(p),height:A(p)})});return j.createElement(Te,null,r.renderTrapezoidsStatically(h))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,a=r.isAnimationActive,o=this.state.prevTrapezoids;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.trapezoids,o=r.className,l=r.isAnimationActive,s=this.state.isAnimationFinished;if(i||!a||!a.length)return null;var u=ue("recharts-trapezoids",o);return j.createElement(Te,{className:u},this.renderTrapezoids(),(!l||s)&&Un.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curTrapezoids:r.trapezoids,prevTrapezoids:i.curTrapezoids}:r.trapezoids!==i.curTrapezoids?{curTrapezoids:r.trapezoids}:null}}])}(b.PureComponent);og=Cr;hr(Cr,"displayName","Funnel");hr(Cr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ei.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});hr(Cr,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ne(e.props,!1),a=On(r,e0);return n&&n.length?n.map(function(o,l){return Qe(Qe(Qe({payload:o},i),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return Qe(Qe({},i),o.props)}):[]});hr(Cr,"getRealWidthHeight",function(e,t){var n=e.props.width,r=t.width,i=t.height,a=t.left,o=t.right,l=t.top,s=t.bottom,u=i,c=r;return sP(n)?c=n:No(n)&&(c=c*parseFloat(n)/100),{realWidth:c-a-o-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});hr(Cr,"getComposedData",function(e){var t=e.item,n=e.offset,r=og.getRealFunnelData(t),i=t.props,a=i.dataKey,o=i.nameKey,l=i.tooltipType,s=i.lastShapeType,u=i.reversed,c=n.left,f=n.top,d=og.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,m=d.offsetX,w=d.offsetY,y=Math.max.apply(null,r.map(function(S){return ct(S,a,0)})),v=r.length,x=p/v,E={x:n.left,y:n.top,width:n.width,height:n.height},_=r.map(function(S,O){var $=ct(S,a,0),T=ct(S,o,O),C=$,A;if(O!==v-1){if(A=ct(r[O+1],a,0),A instanceof Array){var N=A,I=ES(N,1);A=I[0]}}else if($ instanceof Array&&$.length===2){var D=ES($,2);C=D[0],A=D[1]}else s==="rectangle"?A=C:A=0;var M=(y-C)*h/(2*y)+f+25+m,F=x*O+c+w,R=C/y*h,P=A/y*h,k=[{name:T,value:C,payload:S,dataKey:a,type:l}],B={x:M+R/2,y:F+x/2};return Qe(Qe({x:M,y:F,width:Math.max(R,P),upperWidth:R,lowerWidth:P,height:x,name:T,val:C,tooltipPayload:k,tooltipPosition:B},kie(S,"width")),{},{payload:S,parentViewBox:E,labelViewBox:{x:M+(R-P)/4,y:F,width:Math.abs(R-P)/2+Math.min(R,P),height:x}})});return u&&(_=_.map(function(S,O){var $=S.y-O*x+(v-1-O)*x;return Qe(Qe({},S),{},{upperWidth:S.lowerWidth,lowerWidth:S.upperWidth,x:S.x-(S.lowerWidth-S.upperWidth)/2,y:S.y-O*x+(v-1-O)*x,tooltipPosition:Qe(Qe({},S.tooltipPosition),{},{y:$+x/2}),labelViewBox:Qe(Qe({},S.labelViewBox),{},{y:$})})})),{trapezoids:_,data:r}});var $T=gT({chartName:"FunnelChart",GraphicalChild:Cr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:sn},test_coverage:{minimum_thresholds:Rf}}=ci.project.documentation_site,In=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=sn.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=sn.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=sn.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=sn.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},yo=e=>e>=sn.xl?"xl":e>=sn.l?"l":e>=sn.m?"m":e>=sn.s?"s":"xs",Ns=e=>e>=sn.xl?5:e>=sn.l?4:e>=sn.m?3:e>=sn.s?2:1,bt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=Rf.good?{hex:"#22c55e",class:"bg-green-500"}:e>=Rf.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},PT=e=>e>=Rf.good?"good":e>=Rf.fair?"fair":"poor",Xie=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,Lf=e=>!e||e.length===0?g.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?g.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):g.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function lp(){return typeof window<"u"}function Uo(e){return jT(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(jT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jT(e){return lp()?e instanceof Node||e instanceof Lt(e).Node:!1}function de(e){return lp()?e instanceof Element||e instanceof Lt(e).Element:!1}function Vt(e){return lp()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function sg(e){return!lp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function nu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Yie(e){return["table","td","th"].includes(Uo(e))}function sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function L0(e){const t=up(),n=de(e)?pn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qie(e){let t=$r(e);for(;Vt(t)&&!mr(t);){if(L0(t))return t;if(sp(t))return null;t=$r(t)}return null}function up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(Uo(e))}function pn(e){return Lt(e).getComputedStyle(e)}function cp(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sg(e)&&e.host||Qn(e);return sg(t)?t.host:t}function TT(e){const t=$r(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&nu(t)?t:TT(t)}function ni(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=TT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Lt(i);if(a){const l=ug(o);return t.concat(o,o.visualViewport||[],nu(i)?i:[],l&&n?ni(l):[])}return t.concat(i,ni(i,[],n))}function ug(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cg(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function xo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function AT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function CT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Zie(e){return eae()?!1:!jS()&&e.width===0&&e.height===0||jS()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function kT(){return/apple/i.test(navigator.vendor)}function jS(){const e=/android/i;return e.test(AT())||e.test(CT())}function Jie(){return AT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eae(){return CT().includes("jsdom/")}function fg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function tae(e){return"nativeEvent"in e}function nae(e){return e.matches("html,body")}function Wr(e){return(e==null?void 0:e.ownerDocument)||document}function Oh(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ha(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rae="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function iae(e){return Vt(e)&&e.matches(rae)}const aae=["top","right","bottom","left"],TS=["start","end"],AS=aae.reduce((e,t)=>e.concat(t,t+"-"+TS[0],t+"-"+TS[1]),[]),qi=Math.min,vt=Math.max,Ms=Math.round,Gu=Math.floor,Wn=e=>({x:e,y:e}),oae={left:"right",right:"left",bottom:"top",top:"bottom"},lae={start:"end",end:"start"};function CS(e,t,n){return vt(e,qi(t,n))}function la(e,t){return typeof e=="function"?e(t):e}function Xn(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function NT(e){return e==="x"?"y":"x"}function MT(e){return e==="y"?"height":"width"}function Xi(e){return["top","bottom"].includes(Xn(e))?"y":"x"}function IT(e){return NT(Xi(e))}function RT(e,t,n){n===void 0&&(n=!1);const r=Vn(e),i=IT(e),a=MT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ff(o)),[o,Ff(o)]}function sae(e){const t=Ff(e);return[Df(e),t,Df(t)]}function Df(e){return e.replace(/start|end/g,t=>lae[t])}function uae(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function cae(e,t,n,r){const i=Vn(e);let a=uae(Xn(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Df)))),a}function Ff(e){return e.replace(/left|right|bottom|top/g,t=>oae[t])}function fae(e){return{top:0,right:0,bottom:0,left:0,...e}}function dae(e){return typeof e!="number"?fae(e):{top:e,right:e,bottom:e,left:e}}function Bf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
260
|
+
the props "valueKey" will be deprecated in 1.1.0`),y=f);var g=i.filter(function($){return ct($,y,0)!==0}).length,x=(w>=360?g:g-1)*s,E=w-g*p-x,_=i.reduce(function($,T){var C=ct(T,y,0);return $+(G(C)?C:0)},0),S;if(_>0){var O;S=i.map(function($,T){var C=ct($,y,0),A=ct($,c,T),N=(G(C)?C:0)/_,I;T?I=O.endAngle+on(m)*s*(C!==0?1:0):I=o;var D=I+on(m)*((C!==0?p:0)+N*E),M=(I+D)/2,F=(h.innerRadius+h.outerRadius)/2,R=[{name:A,value:C,payload:$,dataKey:y,type:d}],P=Se(h.cx,h.cy,F,M);return O=be(be(be({percent:N,cornerRadius:a,name:A,tooltipPayload:R,midAngle:M,middleRadius:F,tooltipPosition:P},$),h),{},{value:ct($,y),startAngle:I,endAngle:D,payload:$,paddingAngle:on(m)*s}),O})}return be(be({},h),{},{sectors:S,data:i})});var rZ=Math.ceil,iZ=Math.max;function aZ(e,t,n,r){for(var i=-1,a=iZ(rZ((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var oZ=aZ,lZ=d2,H_=1/0,sZ=17976931348623157e292;function uZ(e){if(!e)return e===0?e:0;if(e=lZ(e),e===H_||e===-H_){var t=e<0?-1:1;return t*sZ}return e===e?e:0}var cZ=uZ,fZ=oZ,dZ=Ld,xh=cZ;function pZ(e){return function(t,n,r){return r&&typeof r!="number"&&dZ(t,n,r)&&(n=r=void 0),t=xh(t),n===void 0?(n=t,t=0):n=xh(n),r=r===void 0?t<n?1:-1:xh(r),fZ(t,n,r,e)}}var hZ=pZ,mZ=hZ,vZ=mZ(),gZ=vZ;const $f=me(gZ);function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(n),!0).forEach(function(r){Gj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gj(e,t,n){return t=yZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(e){var t=xZ(e,"string");return As(t)=="symbol"?t:t+""}function xZ(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bZ=["Webkit","Moz","O","ms"],wZ=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=bZ.reduce(function(a,o){return V_(V_({},a),{},Gj({},o+r,n))},{});return i[t]=n,i};function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xj(r.key),r)}}function SZ(e,t,n){return t&&G_(e.prototype,t),n&&G_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EZ(e,t,n){return t=jf(t),OZ(e,qj()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function OZ(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $Z(e)}function $Z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qj=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jf(e)}function PZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gv(e,t)}function Dt(e,t,n){return t=Xj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){var t=jZ(e,"string");return co(t)=="symbol"?t:t+""}function jZ(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TZ=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=Al().domain($f(0,s)).range([a,a+o-l]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:c}},q_=function(t){return t.changedTouches&&!!t.changedTouches.length},fo=function(e){function t(n){var r;return _Z(this,t),r=EZ(this,t,[n]),Dt(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Dt(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Dt(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),Dt(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Dt(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Dt(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Dt(r,"handleSlideDragStart",function(i){var a=q_(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return PZ(t,e),SZ(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,f),h=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:h===c?c:h-h%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,s=ct(a[r],l,r);return te(o)?o(s,r):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,s=this.props,u=s.x,c=s.width,f=s.travellerWidth,d=s.startIndex,p=s.endIndex,h=s.onChange,m=r.pageX-a;m>0?m=Math.min(m,u+c-f-l,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-l));var w=this.getIndex({startX:o+m,endX:l+m});(w.startIndex!==d||w.endIndex!==p)&&h&&h(w),this.setState({startX:o+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=q_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,s=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,h=c.onChange,m=c.gap,w=c.data,y={startX:this.state.startX,endX:this.state.endX},g=r.pageX-a;g>0?g=Math.min(g,f+d-p-u):g<0&&(g=Math.max(g,f-u)),y[o]=u+g;var x=this.getIndex(y),E=x.startIndex,_=x.endIndex,S=function(){var $=w.length-1;return o==="startX"&&(l>s?E%m===0:_%m===0)||l<s&&_===$||o==="endX"&&(l>s?_%m===0:E%m===0)||l>s&&_===$};this.setState(Dt(Dt({},o,u+g),"brushMoveStartX",r.pageX),function(){h&&S()&&h(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,c=this.state[i],f=l.indexOf(c);if(f!==-1){var d=f+r;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=u||i==="endX"&&p<=s||this.setState(Dt({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return j.createElement("rect",{stroke:u,fill:s,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.data,u=r.children,c=r.padding,f=b.Children.only(u);return f?j.cloneElement(f,{x:i,y:a,width:o,height:l,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,s=this.props,u=s.y,c=s.travellerWidth,f=s.height,d=s.traveller,p=s.ariaLabel,h=s.data,m=s.startIndex,w=s.endIndex,y=Math.max(r,this.props.x),g=bh(bh({},ne(this.props,!1)),{},{x:y,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=h[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=h[w])===null||o===void 0?void 0:o.name);return j.createElement(Te,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),l.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,s=a.stroke,u=a.travellerWidth,c=Math.min(r,i)+u,f=Math.max(Math.abs(i-r)-u,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:c,y:o,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,c=this.state,f=c.startX,d=c.endX,p=5,h={pointerEvents:"none",fill:u};return j.createElement(Te,{className:"recharts-brush-texts"},j.createElement(eo,Pf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+l/2},h),this.getTextOfTick(i)),j.createElement(eo,Pf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:o+l/2},h),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,s=r.y,u=r.width,c=r.height,f=r.alwaysShowText,d=this.state,p=d.startX,h=d.endX,m=d.isTextActive,w=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!G(l)||!G(s)||!G(u)||!G(c)||u<=0||c<=0)return null;var x=ue("recharts-brush",a),E=j.Children.count(o)===1,_=wZ("userSelect","none");return j.createElement(Te,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(m||w||y||g||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(a+l/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:a,width:o,height:l,fill:s,stroke:"none"}),j.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):te(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,c=r.startIndex,f=r.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return bh({prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},a&&a.length?TZ({data:a,width:o,x:l,travellerWidth:s,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([l,l+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>i?l=s:o=s}return i>=r[l]?l:o}}])}(b.PureComponent);Dt(fo,"displayName","Brush");Dt(fo,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var AZ=Qy;function CZ(e,t){var n;return AZ(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var kZ=CZ,NZ=LP,MZ=di,IZ=kZ,RZ=jt,LZ=Ld;function DZ(e,t,n){var r=RZ(e)?NZ:IZ;return n&&LZ(e,t,n)&&(t=void 0),r(e,MZ(t))}var FZ=DZ;const BZ=me(FZ);var Hn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},X_=o2;function zZ(e,t,n){t=="__proto__"&&X_?X_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var A0=zZ,UZ=A0,HZ=r2,WZ=di;function VZ(e,t){var n={};return t=WZ(t),HZ(e,function(r,i,a){UZ(n,i,t(r,i,a))}),n}var KZ=VZ;const GZ=me(KZ);function qZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var XZ=qZ,YZ=Qy;function QZ(e,t){var n=!0;return YZ(e,function(r,i,a){return n=!!t(r,i,a),n}),n}var ZZ=QZ,JZ=XZ,eJ=ZZ,tJ=di,nJ=jt,rJ=Ld;function iJ(e,t,n){var r=nJ(e)?JZ:eJ;return n&&rJ(e,t,n)&&(t=void 0),r(e,tJ(t))}var aJ=iJ;const oJ=me(aJ);function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function lJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yj(r.key),r)}}function sJ(e,t,n){return t&&Y_(e.prototype,t),n&&Y_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C0(e,t,n){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e){var t=uJ(e,"string");return Cs(t)=="symbol"?t:t+""}function uJ(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qj=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},cJ=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Qj({x:n,y:r},{x:i,y:a})},Zj=function(){function e(t){lJ(this,e),this.scale=t}return sJ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();C0(Zj,"EPS",1e-4);var k0=function(t){var n=Object.keys(t).reduce(function(r,i){return Ku(Ku({},r),{},C0({},i,Zj.create(t[i])))},{});return Ku(Ku({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return GZ(i,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(i){return oJ(i,function(a,o){return n[o].isInRange(a)})}})},fJ=v5(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Jj=b.createContext(void 0),eT=b.createContext(void 0),tT=b.createContext(void 0),dJ=b.createContext({}),nT=b.createContext(void 0),pJ=b.createContext(0),hJ=b.createContext(0),Z_=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,c=fJ(a);return j.createElement(Jj.Provider,{value:r},j.createElement(eT.Provider,{value:i},j.createElement(dJ.Provider,{value:a},j.createElement(tT.Provider,{value:c},j.createElement(nT.Provider,{value:o},j.createElement(pJ.Provider,{value:u},j.createElement(hJ.Provider,{value:s},l)))))))},mJ=function(){return b.useContext(nT)},vJ=function(t){var n=b.useContext(Jj);n==null&&io();var r=n[t];return r==null&&io(),r},gJ=function(t){var n=b.useContext(eT);n==null&&io();var r=n[t];return r==null&&io(),r},yJ=function(){var t=b.useContext(tT);return t};function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function xJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iT(r.key),r)}}function wJ(e,t,n){return t&&bJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _J(e,t,n){return t=Tf(t),SJ(e,rT()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function SJ(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EJ(e)}function EJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rT=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function OJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qv(e,t)}function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t=iT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iT(e){var t=$J(e,"string");return po(t)=="symbol"?t:t+""}function $J(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PJ(e,t){return CJ(e)||AJ(e,t)||TJ(e,t)||jJ()}function jJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
261
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TJ(e,t){if(e){if(typeof e=="string")return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(e,t)}}function tS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function CJ(e){if(Array.isArray(e))return e}function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xv.apply(this,arguments)}var kJ=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):te(t)?r=t(n):r=j.createElement("line",Xv({},n,{className:"recharts-reference-line-line"})),r},NJ=function(t,n,r,i,a,o,l,s,u){var c=a.x,f=a.y,d=a.width,p=a.height;if(r){var h=u.y,m=t.y.apply(h,{position:o});if(Hn(u,"discard")&&!t.y.isInRange(m))return null;var w=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?w.reverse():w}if(n){var y=u.x,g=t.x.apply(y,{position:o});if(Hn(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+p},{x:g,y:f}];return l==="top"?x.reverse():x}if(i){var E=u.segment,_=E.map(function(S){return t.apply(S,{position:o})});return Hn(u,"discard")&&BZ(_,function(S){return!t.isInRange(S)})?null:_}return null};function MJ(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=mJ(),c=vJ(i),f=gJ(a),d=yJ();if(!u||!d)return null;dr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),h=Je(t),m=Je(n),w=r&&r.length===2,y=NJ(p,h,m,w,d,e.position,c.orientation,f.orientation,e);if(!y)return null;var g=PJ(y,2),x=g[0],E=x.x,_=x.y,S=g[1],O=S.x,$=S.y,T=Hn(e,"hidden")?"url(#".concat(u,")"):void 0,C=eS(eS({clipPath:T},ne(e,!0)),{},{x1:E,y1:_,x2:O,y2:$});return j.createElement(Te,{className:ue("recharts-reference-line",l)},kJ(o,C),ut.renderCallByParent(e,cJ({x1:E,y1:_,x2:O,y2:$})))}var M0=function(e){function t(){return xJ(this,t),_J(this,t,arguments)}return OJ(t,e),wJ(t,[{key:"render",value:function(){return j.createElement(MJ,this.props)}}])}(j.Component);N0(M0,"displayName","ReferenceLine");N0(M0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(this,arguments)}function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function nS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?nS(Object(n),!0).forEach(function(r){np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oT(r.key),r)}}function LJ(e,t,n){return t&&RJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DJ(e,t,n){return t=Af(t),FJ(e,aT()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function FJ(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BJ(e)}function BJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aT=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Af(e)}function zJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qv(e,t)}function Qv(e,t){return Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qv(e,t)}function np(e,t,n){return t=oT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(e){var t=UJ(e,"string");return ho(t)=="symbol"?t:t+""}function UJ(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HJ=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=k0({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Hn(t,"discard")&&!o.isInRange(l)?null:l},rp=function(e){function t(){return IJ(this,t),DJ(this,t,arguments)}return zJ(t,e),LJ(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=Je(i),c=Je(a);if(dr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=HJ(this.props);if(!f)return null;var d=f.x,p=f.y,h=this.props,m=h.shape,w=h.className,y=Hn(this.props,"hidden")?"url(#".concat(s,")"):void 0,g=rS(rS({clipPath:y},ne(this.props,!0)),{},{cx:d,cy:p});return j.createElement(Te,{className:ue("recharts-reference-dot",w)},t.renderDot(m,g),ut.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(j.Component);np(rp,"displayName","ReferenceDot");np(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});np(rp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(j0,Yv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sT(r.key),r)}}function KJ(e,t,n){return t&&VJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GJ(e,t,n){return t=Cf(t),qJ(e,lT()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function qJ(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XJ(e)}function XJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lT=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function YJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jv(e,t)}function ip(e,t,n){return t=sT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sT(e){var t=QJ(e,"string");return mo(t)=="symbol"?t:t+""}function QJ(e,t){if(mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZJ=function(t,n,r,i,a){var o=a.x1,l=a.x2,s=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=k0({x:c.scale,y:f.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(s,{position:"start"}):d.y.rangeMin},h={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Hn(a,"discard")&&(!d.isInRange(p)||!d.isInRange(h))?null:Qj(p,h)},ap=function(e){function t(){return WJ(this,t),GJ(this,t,arguments)}return YJ(t,e),KJ(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,c=r.clipPathId;dr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Je(i),d=Je(a),p=Je(o),h=Je(l),m=this.props.shape;if(!f&&!d&&!p&&!h&&!m)return null;var w=ZJ(f,d,p,h,this.props);if(!w&&!m)return null;var y=Hn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement(Te,{className:ue("recharts-reference-area",s)},t.renderRect(m,aS(aS({clipPath:y},ne(this.props,!0)),w)),ut.renderCallByParent(this.props,w))}}])}(j.Component);ip(ap,"displayName","ReferenceArea");ip(ap,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ip(ap,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(P0,Zv({},t,{className:"recharts-reference-area-rect"})),n});function oS(e){return nee(e)||tee(e)||eee(e)||JJ()}function JJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
262
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eee(e,t){if(e){if(typeof e=="string")return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}}function tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nee(e){if(Array.isArray(e))return eg(e)}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tg=function(t,n,r,i,a){var o=On(t,M0),l=On(t,rp),s=[].concat(oS(o),oS(l)),u=On(t,ap),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(m,w){if(w.props[c]===r&&Hn(w.props,"extendDomain")&&G(w.props[f])){var y=w.props[f];return[Math.min(m[0],y),Math.max(m[1],y)]}return m},d)),u.length){var p="".concat(f,"1"),h="".concat(f,"2");d=u.reduce(function(m,w){if(w.props[c]===r&&Hn(w.props,"extendDomain")&&G(w.props[p])&&G(w.props[h])){var y=w.props[p],g=w.props[h];return[Math.min(m[0],y,g),Math.max(m[1],y,g)]}return m},d)}return a&&a.length&&(d=a.reduce(function(m,w){return G(w)?[Math.min(m[0],w),Math.max(m[1],w)]:m},d)),d},uT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(s,u,c){this.fn=s,this.context=u,this.once=c||!1}function a(s,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||s,d),h=n?n+u:u;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],p]:s._events[h].push(p):(s._events[h]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,h=new Array(p);d<p;d++)h[d]=f[d].fn;return h},l.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,p,h){var m=n?n+u:u;if(!this._events[m])return!1;var w=this._events[m],y=arguments.length,g,x;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),y){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,c),!0;case 3:return w.fn.call(w.context,c,f),!0;case 4:return w.fn.call(w.context,c,f,d),!0;case 5:return w.fn.call(w.context,c,f,d,p),!0;case 6:return w.fn.call(w.context,c,f,d,p,h),!0}for(x=1,g=new Array(y-1);x<y;x++)g[x-1]=arguments[x];w.fn.apply(w.context,g)}else{var E=w.length,_;for(x=0;x<E;x++)switch(w[x].once&&this.removeListener(u,w[x].fn,void 0,!0),y){case 1:w[x].fn.call(w[x].context);break;case 2:w[x].fn.call(w[x].context,c);break;case 3:w[x].fn.call(w[x].context,c,f);break;case 4:w[x].fn.call(w[x].context,c,f,d);break;default:if(!g)for(_=1,g=new Array(y-1);_<y;_++)g[_-1]=arguments[_];w[x].fn.apply(w[x].context,g)}}return!0},l.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var h=this._events[p];if(h.fn)h.fn===c&&(!d||h.once)&&(!f||h.context===f)&&o(this,p);else{for(var m=0,w=[],y=h.length;m<y;m++)(h[m].fn!==c||d&&!h[m].once||f&&h[m].context!==f)&&w.push(h[m]);w.length?this._events[p]=w.length===1?w[0]:w:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(uT);var ree=uT.exports;const iee=me(ree);var wh=new iee,_h="recharts.syncMouseEvents";function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function aee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cT(r.key),r)}}function lee(e,t,n){return t&&oee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e,t,n){return t=cT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cT(e){var t=see(e,"string");return ks(t)=="symbol"?t:t+""}function see(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uee=function(){function e(){aee(this,e),Sh(this,"activeIndex",0),Sh(this,"coordinateList",[]),Sh(this,"layout","horizontal")}return lee(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,c=n.offset,f=c===void 0?null:c,d=n.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,c=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=a+s+u,d=o+this.offset.top+l/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function cee(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&G(r)&&G(i))return!0}return!1}function fee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function fT(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=Se(t,n,r,i),l=Se(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function dee(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=Se(l,s,u,f),p=Se(l,s,c,f);r=d.x,i=d.y,a=p.x,o=p.y}else return fT(t);return[{x:r,y:i},{x:a,y:o}]}function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lS(Object(n),!0).forEach(function(r){pee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pee(e,t,n){return t=hee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hee(e){var t=mee(e,"string");return Ns(t)=="symbol"?t:t+""}function mee(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vee(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var h,m=Cv;if(d==="ScatterChart")h=o,m=AY;else if(d==="BarChart")h=fee(f,o,s,c),m=P0;else if(f==="radial"){var w=fT(o),y=w.cx,g=w.cy,x=w.radius,E=w.startAngle,_=w.endAngle;h={cx:y,cy:g,startAngle:E,endAngle:_,innerRadius:x,outerRadius:x},m=Oj}else h={points:dee(f,o,s)},m=Cv;var S=Gu(Gu(Gu(Gu({stroke:"#ccc",pointerEvents:"none"},s),h),ne(p,!1)),{},{payload:l,payloadIndex:u,className:ue("recharts-tooltip-cursor",p.className)});return b.isValidElement(p)?b.cloneElement(p,S):b.createElement(m,S)}var gee=["item"],yee=["children","className","width","height","style","compact","title","desc"];function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}function sS(e,t){return wee(e)||bee(e,t)||pT(e,t)||xee()}function xee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
263
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function wee(e){if(Array.isArray(e))return e}function uS(e,t){if(e==null)return{};var n=_ee(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function See(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hT(r.key),r)}}function Oee(e,t,n){return t&&Eee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ee(e,t,n){return t=kf(t),Pee(e,dT()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function Pee(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jee(e)}function jee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dT=function(){return!!e})()}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Tee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ng(e,t)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ng(e,t)}function go(e){return kee(e)||Cee(e)||pT(e)||Aee()}function Aee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
264
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pT(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}function Cee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kee(e){if(Array.isArray(e))return rg(e)}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y(e,t,n){return t=hT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e){var t=Nee(e,"string");return vo(t)=="symbol"?t:t+""}function Nee(e,t){if(vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mee={xAxis:["bottom","top"],yAxis:["left","right"]},Iee={width:"100%",height:"100%"},mT={x:0,y:0};function qu(e){return e}var Ree=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Lee=function(t,n,r,i){var a=n.find(function(c){return c&&c.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return z(z(z({},i),Se(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var s=a.coordinate,u=i.angle;return z(z(z({},i),Se(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return mT},op=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(go(l),go(u)):l},[]);return o.length>0?o:t&&t.length&&G(i)&&G(a)?t.slice(i,a+1):[]};function vT(e){return e==="number"?[0,"auto"]:void 0}var ig=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=op(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(s,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;d=Lm(p,o.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(go(s),[$G(u,d)]):s},[])},fS=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=Ree(a,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=cG(o,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=ig(t,n,c,f),p=Lee(r,l,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},Dee=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=gj(c,a);return r.reduce(function(h,m){var w,y=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,g=y.type,x=y.dataKey,E=y.allowDataOverflow,_=y.allowDuplicatedCategory,S=y.scale,O=y.ticks,$=y.includeHidden,T=y[o];if(h[T])return h;var C=op(t.data,{graphicalItems:i.filter(function(U){var V,re=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o];return re===T}),dataStartIndex:s,dataEndIndex:u}),A=C.length,N,I,D;cee(y.domain,E,g)&&(N=Ov(y.domain,null,E),p&&(g==="number"||S!=="auto")&&(D=Cl(C,x,"category")));var M=vT(g);if(!N||N.length===0){var F,R=(F=y.domain)!==null&&F!==void 0?F:M;if(x){if(N=Cl(C,x,g),g==="category"&&p){var P=dL(N);_&&P?(I=N,N=$f(0,A)):_||(N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(go(U),[V])},[]))}else if(g==="category")_?N=N.filter(function(U){return U!==""&&!le(U)}):N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0||V===""||le(V)?U:[].concat(go(U),[V])},[]);else if(g==="number"){var k=mG(C,i.filter(function(U){var V,re,ie=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o],J="hide"in U.props?U.props.hide:(re=U.type.defaultProps)===null||re===void 0?void 0:re.hide;return ie===T&&($||!J)}),x,a,c);k&&(N=k)}p&&(g==="number"||S!=="auto")&&(D=Cl(C,x,"category"))}else p?N=$f(0,A):l&&l[T]&&l[T].hasStack&&g==="number"?N=d==="expand"?[0,1]:yj(l[T].stackGroups,s,u):N=vj(C,i.filter(function(U){var V=o in U.props?U.props[o]:U.type.defaultProps[o],re="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===T&&($||!re)}),g,c,!0);if(g==="number")N=tg(f,N,T,a,O),R&&(N=Ov(R,N,E));else if(g==="category"&&R){var B=R,L=N.every(function(U){return B.indexOf(U)>=0});L&&(N=B)}}return z(z({},h),{},Y({},T,z(z({},y),{},{axisType:a,domain:N,categoricalDomain:D,duplicateDomain:I,originalDomain:(w=y.domain)!==null&&w!==void 0?w:M,isCategorical:p,layout:c})))},{})},Fee=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=op(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,h=gj(c,a),m=-1;return r.reduce(function(w,y){var g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,x=g[o],E=vT("number");if(!w[x]){m++;var _;return h?_=$f(0,p):l&&l[x]&&l[x].hasStack?(_=yj(l[x].stackGroups,s,u),_=tg(f,_,x,a)):(_=Ov(E,vj(d,r.filter(function(S){var O,$,T=o in S.props?S.props[o]:(O=S.type.defaultProps)===null||O===void 0?void 0:O[o],C="hide"in S.props?S.props.hide:($=S.type.defaultProps)===null||$===void 0?void 0:$.hide;return T===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),_=tg(f,_,x,a)),z(z({},w),{},Y({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:En(Mee,"".concat(a,".").concat(m%2),null),domain:_,originalDomain:E,isCategorical:h,layout:c})))}return w},{})},Bee=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=On(c,a),p={};return d&&d.length?p=Dee(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Fee(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},zee=function(t){var n=ha(t),r=gl(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Zy(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:$v(n,r)}},dS=function(t){var n=t.children,r=t.defaultShowTooltip,i=Jt(n,fo),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Uee=function(t){return!t||!t.length?!1:t.some(function(n){var r=fr(n&&n.type);return r&&r.indexOf("Bar")>=0})},pS=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Hee=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,c=r.height,f=r.children,d=r.margin||{},p=Jt(f,fo),h=Jt(f,Da),m=Object.keys(s).reduce(function(_,S){var O=s[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,_[$]+O.width)):_},{left:d.left||0,right:d.right||0}),w=Object.keys(o).reduce(function(_,S){var O=o[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,En(_,"".concat($))+O.height)):_},{top:d.top||0,bottom:d.bottom||0}),y=z(z({},w),m),g=y.bottom;p&&(y.bottom+=p.props.height||fo.defaultProps.height),h&&n&&(y=pG(y,i,r,n));var x=u-y.left-y.right,E=c-y.top-y.bottom;return z(z({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(E,0)})},Wee=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},gT=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(y,g){var x=g.graphicalItems,E=g.stackGroups,_=g.offset,S=g.updateId,O=g.dataStartIndex,$=g.dataEndIndex,T=y.barSize,C=y.layout,A=y.barGap,N=y.barCategoryGap,I=y.maxBarSize,D=pS(C),M=D.numericAxisName,F=D.cateAxisName,R=Uee(x),P=[];return x.forEach(function(k,B){var L=op(y.data,{graphicalItems:[k],dataStartIndex:O,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,V=U.dataKey,re=U.maxBarSize,ie=U["".concat(M,"Id")],J=U["".concat(F,"Id")],Ce={},Oe=s.reduce(function(gi,yi){var _p=g["".concat(yi.axisType,"Map")],sx=U["".concat(yi.axisType,"Id")];_p&&_p[sx]||yi.axisType==="zAxis"||io();var ux=_p[sx];return z(z({},gi),{},Y(Y({},yi.axisType,ux),"".concat(yi.axisType,"Ticks"),gl(ux)))},Ce),K=Oe[F],Z=Oe["".concat(F,"Ticks")],ee=E&&E[ie]&&E[ie].hasStack&&EG(k,E[ie].stackGroups),H=fr(k.type).indexOf("Bar")>=0,ke=$v(K,Z),oe=[],He=R&&fG({barSize:T,stackGroups:E,totalSize:Wee(Oe,F)});if(H){var qe,Tt,Mr=le(re)?I:re,ua=(qe=(Tt=$v(K,Z,!0))!==null&&Tt!==void 0?Tt:Mr)!==null&&qe!==void 0?qe:0;oe=dG({barGap:A,barCategoryGap:N,bandSize:ua!==ke?ua:ke,sizeList:He[J],maxBarSize:Mr}),ua!==ke&&(oe=oe.map(function(gi){return z(z({},gi),{},{position:z(z({},gi.position),{},{offset:gi.position.offset-ua/2})})}))}var hu=k&&k.type&&k.type.getComposedData;hu&&P.push({props:z(z({},hu(z(z({},Oe),{},{displayedData:L,props:y,dataKey:V,item:k,bandSize:ke,barPosition:oe,offset:_,stackedData:ee,layout:C,dataStartIndex:O,dataEndIndex:$}))),{},Y(Y(Y({key:k.key||"item-".concat(B)},M,Oe[M]),F,Oe[F]),"animationId",S)),childIndex:SL(k,y.children),item:k})}),P},p=function(y,g){var x=y.props,E=y.dataStartIndex,_=y.dataEndIndex,S=y.updateId;if(!Fb({props:x}))return null;var O=x.children,$=x.layout,T=x.stackOffset,C=x.data,A=x.reverseStackOrder,N=pS($),I=N.numericAxisName,D=N.cateAxisName,M=On(O,r),F=_G(C,M,"".concat(I,"Id"),"".concat(D,"Id"),T,A),R=s.reduce(function(U,V){var re="".concat(V.axisType,"Map");return z(z({},U),{},Y({},re,Bee(x,z(z({},V),{},{graphicalItems:M,stackGroups:V.axisType===I&&F,dataStartIndex:E,dataEndIndex:_}))))},{}),P=Hee(z(z({},R),{},{props:x,graphicalItems:M}),g==null?void 0:g.legendBBox);Object.keys(R).forEach(function(U){R[U]=c(x,R[U],P,U.replace("Map",""),n)});var k=R["".concat(D,"Map")],B=zee(k),L=d(x,z(z({},R),{},{dataStartIndex:E,dataEndIndex:_,updateId:S,graphicalItems:M,stackGroups:F,offset:P}));return z(z({formattedGraphicalItems:L,graphicalItems:M,offset:P,stackGroups:F},B),R)},h=function(w){function y(g){var x,E,_;return See(this,y),_=$ee(this,y,[g]),Y(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(_,"accessibilityManager",new uee),Y(_,"handleLegendBBoxUpdate",function(S){if(S){var O=_.state,$=O.dataStartIndex,T=O.dataEndIndex,C=O.updateId;_.setState(z({legendBBox:S},p({props:_.props,dataStartIndex:$,dataEndIndex:T,updateId:C},z(z({},_.state),{},{legendBBox:S}))))}}),Y(_,"handleReceiveSyncEvent",function(S,O,$){if(_.props.syncId===S){if($===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(O)}}),Y(_,"handleBrushChange",function(S){var O=S.startIndex,$=S.endIndex;if(O!==_.state.dataStartIndex||$!==_.state.dataEndIndex){var T=_.state.updateId;_.setState(function(){return z({dataStartIndex:O,dataEndIndex:$},p({props:_.props,dataStartIndex:O,dataEndIndex:$,updateId:T},_.state))}),_.triggerSyncEvent({dataStartIndex:O,dataEndIndex:$})}}),Y(_,"handleMouseEnter",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseEnter;te(T)&&T($,S)}}),Y(_,"triggeredAfterMouseMove",function(S){var O=_.getMouseInfo(S),$=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseMove;te(T)&&T($,S)}),Y(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Y(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),Y(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),Y(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};_.setState(O),_.triggerSyncEvent(O);var $=_.props.onMouseLeave;te($)&&$(O,S)}),Y(_,"handleOuterEvent",function(S){var O=_L(S),$=En(_.props,"".concat(O));if(O&&te($)){var T,C;/.*touch.*/i.test(O)?C=_.getMouseInfo(S.changedTouches[0]):C=_.getMouseInfo(S),$((T=C)!==null&&T!==void 0?T:{},S)}}),Y(_,"handleClick",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onClick;te(T)&&T($,S)}}),Y(_,"handleMouseDown",function(S){var O=_.props.onMouseDown;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleMouseUp",function(S){var O=_.props.onMouseUp;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Y(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),Y(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),Y(_,"handleDoubleClick",function(S){var O=_.props.onDoubleClick;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleContextMenu",function(S){var O=_.props.onContextMenu;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&wh.emit(_h,_.props.syncId,S,_.eventEmitterSymbol)}),Y(_,"applySyncEvent",function(S){var O=_.props,$=O.layout,T=O.syncMethod,C=_.state.updateId,A=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(z({dataStartIndex:A,dataEndIndex:N},p({props:_.props,dataStartIndex:A,dataEndIndex:N,updateId:C},_.state)));else if(S.activeTooltipIndex!==void 0){var I=S.chartX,D=S.chartY,M=S.activeTooltipIndex,F=_.state,R=F.offset,P=F.tooltipTicks;if(!R)return;if(typeof T=="function")M=T(P,S);else if(T==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===S.activeLabel){M=k;break}}var B=z(z({},R),{},{x:R.left,y:R.top}),L=Math.min(I,B.x+B.width),U=Math.min(D,B.y+B.height),V=P[M]&&P[M].value,re=ig(_.state,_.props.data,M),ie=P[M]?{x:$==="horizontal"?P[M].coordinate:L,y:$==="horizontal"?U:P[M].coordinate}:mT;_.setState(z(z({},S),{},{activeLabel:V,activeCoordinate:ie,activePayload:re,activeTooltipIndex:M}))}else _.setState(S)}),Y(_,"renderCursor",function(S){var O,$=_.state,T=$.isTooltipActive,C=$.activeCoordinate,A=$.activePayload,N=$.offset,I=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=_.getTooltipEventType(),F=(O=S.props.active)!==null&&O!==void 0?O:T,R=_.props.layout,P=S.key||"_recharts-cursor";return j.createElement(vee,{key:P,activeCoordinate:C,activePayload:A,activeTooltipIndex:I,chartName:n,element:S,isActive:F,layout:R,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),Y(_,"renderPolarAxis",function(S,O,$){var T=En(S,"type.axisType"),C=En(_.state,"".concat(T,"Map")),A=S.type.defaultProps,N=A!==void 0?z(z({},A),S.props):S.props,I=C&&C[N["".concat(T,"Id")]];return b.cloneElement(S,z(z({},I),{},{className:ue(T,I.className),key:S.key||"".concat(O,"-").concat($),ticks:gl(I,!0)}))}),Y(_,"renderPolarGrid",function(S){var O=S.props,$=O.radialLines,T=O.polarAngles,C=O.polarRadius,A=_.state,N=A.radiusAxisMap,I=A.angleAxisMap,D=ha(N),M=ha(I),F=M.cx,R=M.cy,P=M.innerRadius,k=M.outerRadius;return b.cloneElement(S,{polarAngles:Array.isArray(T)?T:gl(M,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(C)?C:gl(D,!0).map(function(B){return B.coordinate}),cx:F,cy:R,innerRadius:P,outerRadius:k,key:S.key||"polar-grid",radialLines:$})}),Y(_,"renderLegend",function(){var S=_.state.formattedGraphicalItems,O=_.props,$=O.children,T=O.width,C=O.height,A=_.props.margin||{},N=T-(A.left||0)-(A.right||0),I=hj({children:$,formattedGraphicalItems:S,legendWidth:N,legendContent:u});if(!I)return null;var D=I.item,M=uS(I,gee);return b.cloneElement(D,z(z({},M),{},{chartWidth:T,chartHeight:C,margin:A,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),Y(_,"renderTooltip",function(){var S,O=_.props,$=O.children,T=O.accessibilityLayer,C=Jt($,tr);if(!C)return null;var A=_.state,N=A.isTooltipActive,I=A.activeCoordinate,D=A.activePayload,M=A.activeLabel,F=A.offset,R=(S=C.props.active)!==null&&S!==void 0?S:N;return b.cloneElement(C,{viewBox:z(z({},F),{},{x:F.left,y:F.top}),active:R,label:M,payload:R?D:[],coordinate:I,accessibilityLayer:T})}),Y(_,"renderBrush",function(S){var O=_.props,$=O.margin,T=O.data,C=_.state,A=C.offset,N=C.dataStartIndex,I=C.dataEndIndex,D=C.updateId;return b.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Uu(_.handleBrushChange,S.props.onChange),data:T,x:G(S.props.x)?S.props.x:A.left,y:G(S.props.y)?S.props.y:A.top+A.height+A.brushBottom-($.bottom||0),width:G(S.props.width)?S.props.width:A.width,startIndex:N,endIndex:I,updateId:"brush-".concat(D)})}),Y(_,"renderReferenceElement",function(S,O,$){if(!S)return null;var T=_,C=T.clipPathId,A=_.state,N=A.xAxisMap,I=A.yAxisMap,D=A.offset,M=S.type.defaultProps||{},F=S.props,R=F.xAxisId,P=R===void 0?M.xAxisId:R,k=F.yAxisId,B=k===void 0?M.yAxisId:k;return b.cloneElement(S,{key:S.key||"".concat(O,"-").concat($),xAxis:N[P],yAxis:I[B],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),Y(_,"renderActivePoints",function(S){var O=S.item,$=S.activePoint,T=S.basePoint,C=S.childIndex,A=S.isRange,N=[],I=O.props.key,D=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,M=D.activeDot,F=D.dataKey,R=z(z({index:C,dataKey:F,cx:$.x,cy:$.y,r:4,fill:$0(O.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ne(M,!1)),zc(M));return N.push(y.renderActiveDot(M,R,"".concat(I,"-activePoint-").concat(C))),T?N.push(y.renderActiveDot(M,z(z({},R),{},{cx:T.x,cy:T.y}),"".concat(I,"-basePoint-").concat(C))):A&&N.push(null),N}),Y(_,"renderGraphicChild",function(S,O,$){var T=_.filterFormatItem(S,O,$);if(!T)return null;var C=_.getTooltipEventType(),A=_.state,N=A.isTooltipActive,I=A.tooltipAxis,D=A.activeTooltipIndex,M=A.activeLabel,F=_.props.children,R=Jt(F,tr),P=T.props,k=P.points,B=P.isRange,L=P.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,V=U.activeDot,re=U.hide,ie=U.activeBar,J=U.activeShape,Ce=!!(!re&&N&&R&&(V||ie||J)),Oe={};C!=="axis"&&R&&R.props.trigger==="click"?Oe={onClick:Uu(_.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(Oe={onMouseLeave:Uu(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Uu(_.handleItemMouseEnter,S.props.onMouseEnter)});var K=b.cloneElement(S,z(z({},T.props),Oe));function Z(yi){return typeof I.dataKey=="function"?I.dataKey(yi.payload):null}if(Ce)if(D>=0){var ee,H;if(I.dataKey&&!I.allowDuplicatedCategory){var ke=typeof I.dataKey=="function"?Z:"payload.".concat(I.dataKey.toString());ee=Lm(k,ke,M),H=B&&L&&Lm(L,ke,M)}else ee=k==null?void 0:k[D],H=B&&L&&L[D];if(J||ie){var oe=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[b.cloneElement(S,z(z(z({},T.props),Oe),{},{activeIndex:oe})),null,null]}if(!le(ee))return[K].concat(go(_.renderActivePoints({item:T,activePoint:ee,basePoint:H,childIndex:D,isRange:B})))}else{var He,qe=(He=_.getItemByXY(_.state.activeCoordinate))!==null&&He!==void 0?He:{graphicalItem:K},Tt=qe.graphicalItem,Mr=Tt.item,ua=Mr===void 0?S:Mr,hu=Tt.childIndex,gi=z(z(z({},T.props),Oe),{},{activeIndex:hu});return[b.cloneElement(ua,gi),null,null]}return B?[K,null,null]:[K,null]}),Y(_,"renderCustomized",function(S,O,$){return b.cloneElement(S,z(z({key:"recharts-customized-".concat($)},_.props),_.state))}),Y(_,"renderMap",{CartesianGrid:{handler:qu,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:qu},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:qu},YAxis:{handler:qu},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:Td("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=p2(_.triggeredAfterMouseMove,(E=g.throttleDelay)!==null&&E!==void 0?E:1e3/60),_.state={},_}return Tee(y,w),Oee(y,[{key:"componentDidMount",value:function(){var x,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,E=x.children,_=x.data,S=x.height,O=x.layout,$=Jt(E,tr);if($){var T=$.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,A=ig(this.state,_,T,C),N=this.state.tooltipTicks[T].coordinate,I=(this.state.offset.top+S)/2,D=O==="horizontal",M=D?{x:N,y:I}:{y:N,x:I},F=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});F&&(M=z(z({},M),F.props.points[T].tooltipPosition),A=F.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:A,activeCoordinate:M};this.setState(R),this.renderCursor($),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){Bm([Jt(x.children,tr)],[Jt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Jt(this.props.children,tr);if(x&&typeof x.props.shared=="boolean"){var E=x.props.shared?"axis":"item";return l.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var E=this.container,_=E.getBoundingClientRect(),S=DU(_),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},$=_.width/E.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,$);if(!T)return null;var C=this.state,A=C.xAxisMap,N=C.yAxisMap,I=this.getTooltipEventType();if(I!=="axis"&&A&&N){var D=ha(A).scale,M=ha(N).scale,F=D&&D.invert?D.invert(O.chartX):null,R=M&&M.invert?M.invert(O.chartY):null;return z(z({},O),{},{xValue:F,yValue:R})}var P=fS(this.state,this.props.data,this.props.layout,T);return P?z(z({},O),P):null}},{key:"inRange",value:function(x,E){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/_,$=E/_;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,C=O>=T.left&&O<=T.left+T.width&&$>=T.top&&$<=T.top+T.height;return C?{x:O,y:$}:null}var A=this.state,N=A.angleAxisMap,I=A.radiusAxisMap;if(N&&I){var D=ha(N);return qw({x:O,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,E=this.getTooltipEventType(),_=Jt(x,tr),S={};_&&E==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=zc(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){wh.on(_h,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wh.removeListener(_h,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,E,_){for(var S=this.state.formattedGraphicalItems,O=0,$=S.length;O<$;O++){var T=S[O];if(T.item===x||T.props.key===x.key||E===fr(T.item.type)&&_===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,E=this.state.offset,_=E.left,S=E.top,O=E.height,$=E.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:_,y:S,height:O,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(x){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(x){var E=this.state,_=E.formattedGraphicalItems,S=E.activeItem;if(_&&_.length)for(var O=0,$=_.length;O<$;O++){var T=_[O],C=T.props,A=T.item,N=A.type.defaultProps!==void 0?z(z({},A.type.defaultProps),A.props):A.props,I=fr(A.type);if(I==="Bar"){var D=(C.data||[]).find(function(P){return cY(x,P)});if(D)return{graphicalItem:T,payload:D}}else if(I==="RadialBar"){var M=(C.data||[]).find(function(P){return qw(x,P)});if(M)return{graphicalItem:T,payload:M}}else if(ep(T,S)||tp(T,S)||Ts(T,S)){var F=XQ({graphicalItem:T,activeTooltipItem:S,itemData:N.data}),R=N.activeIndex===void 0?F:N.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:R}),payload:Ts(T,S)?N.data[F]:T.props.data[F]}}}return null}},{key:"render",value:function(){var x=this;if(!Fb(this))return null;var E=this.props,_=E.children,S=E.className,O=E.width,$=E.height,T=E.style,C=E.compact,A=E.title,N=E.desc,I=uS(E,yee),D=ne(I,!1);if(C)return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Um,Ca({},D,{width:O,height:$,title:A,desc:N}),this.renderClipPath(),zb(_,this.renderMap)));if(this.props.accessibilityLayer){var M,F;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(F=this.props.role)!==null&&F!==void 0?F:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",Ca({className:ue("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:$},T)},R,{ref:function(k){x.container=k}}),j.createElement(Um,Ca({},D,{width:O,height:$,title:A,desc:N,style:Iee}),this.renderClipPath(),zb(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(b.Component);Y(h,"displayName",n),Y(h,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Y(h,"getDerivedStateFromProps",function(w,y){var g=w.dataKey,x=w.data,E=w.children,_=w.width,S=w.height,O=w.layout,$=w.stackOffset,T=w.margin,C=y.dataStartIndex,A=y.dataEndIndex;if(y.updateId===void 0){var N=dS(w);return z(z(z({},N),{},{updateId:0},p(z(z({props:w},N),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(g!==y.prevDataKey||x!==y.prevData||_!==y.prevWidth||S!==y.prevHeight||O!==y.prevLayout||$!==y.prevStackOffset||!Dm(T,y.prevMargin)){var I=dS(w),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},M=z(z({},fS(y,x,O)),{},{updateId:y.updateId+1}),F=z(z(z({},I),D),M);return z(z(z({},F),p(z({props:w},F),y)),{},{prevDataKey:g,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(!Bm(E,y.prevChildren)){var R,P,k,B,L=Jt(E,fo),U=L&&(R=(P=L.props)===null||P===void 0?void 0:P.startIndex)!==null&&R!==void 0?R:C,V=L&&(k=(B=L.props)===null||B===void 0?void 0:B.endIndex)!==null&&k!==void 0?k:A,re=U!==C||V!==A,ie=!le(x),J=ie&&!re?y.updateId:y.updateId+1;return z(z({updateId:J},p(z(z({props:w},y),{},{updateId:J,dataStartIndex:U,dataEndIndex:V}),y)),{},{prevChildren:E,dataStartIndex:U,dataEndIndex:V})}return null}),Y(h,"renderActiveDot",function(w,y,g){var x;return b.isValidElement(w)?x=b.cloneElement(w,y):te(w)?x=w(y):x=j.createElement(j0,y),j.createElement(Te,{className:"recharts-active-dot",key:g},x)});var m=b.forwardRef(function(y,g){return j.createElement(h,Ca({},y,{ref:g}))});return m.displayName=h.displayName,m},nu=gT({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jd},{axisType:"radiusAxis",AxisComp:Qd}],formatAxisMap:IG,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Vee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Kee=Vee,Gee=A0,qee=dd,Xee=Object.prototype,Yee=Xee.hasOwnProperty;function Qee(e,t,n){var r=e[t];(!(Yee.call(e,t)&&qee(r,n))||n===void 0&&!(t in e))&&Gee(e,t,n)}var yT=Qee,Zee=yT,Jee=A0;function ete(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),i?Jee(n,l,s):Zee(n,l,s)}return n}var ru=ete,tte=ru,nte=Qs;function rte(e,t){return e&&tte(t,nte(t),e)}var ite=rte;function ate(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ote=ate,lte=kn,ste=qy,ute=ote,cte=Object.prototype,fte=cte.hasOwnProperty;function dte(e){if(!lte(e))return ute(e);var t=ste(e),n=[];for(var r in e)r=="constructor"&&(t||!fte.call(e,r))||n.push(r);return n}var pte=dte,hte=VP,mte=pte,vte=Ys;function gte(e){return vte(e)?hte(e,!0):mte(e)}var I0=gte,yte=ru,xte=I0;function bte(e,t){return e&&yte(t,xte(t),e)}var wte=bte,Nf={exports:{}};Nf.exports;(function(e,t){var n=An,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,d=l?l(f):new u.constructor(f);return u.copy(d),d}e.exports=s})(Nf,Nf.exports);var _te=Nf.exports;function Ste(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ete=Ste,Ote=ru,$te=Uy;function Pte(e,t){return Ote(e,$te(e),t)}var jte=Pte,Tte=zy,Ate=T0,Cte=Uy,kte=UP,Nte=Object.getOwnPropertySymbols,Mte=Nte?function(e){for(var t=[];e;)Tte(t,Cte(e)),e=Ate(e);return t}:kte,xT=Mte,Ite=ru,Rte=xT;function Lte(e,t){return Ite(e,Rte(e),t)}var Dte=Lte,Fte=zP,Bte=xT,zte=I0;function Ute(e){return Fte(e,zte,Bte)}var bT=Ute,Hte=Object.prototype,Wte=Hte.hasOwnProperty;function Vte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Wte.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Kte=Vte,hS=BP;function Gte(e){var t=new e.constructor(e.byteLength);return new hS(t).set(new hS(e)),t}var R0=Gte,qte=R0;function Xte(e,t){var n=t?qte(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Yte=Xte,Qte=/\w*$/;function Zte(e){var t=new e.constructor(e.source,Qte.exec(e));return t.lastIndex=e.lastIndex,t}var Jte=Zte,mS=jo,vS=mS?mS.prototype:void 0,gS=vS?vS.valueOf:void 0;function ene(e){return gS?Object(gS.call(e)):{}}var tne=ene,nne=R0;function rne(e,t){var n=t?nne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ine=rne,ane=R0,one=Yte,lne=Jte,sne=tne,une=ine,cne="[object Boolean]",fne="[object Date]",dne="[object Map]",pne="[object Number]",hne="[object RegExp]",mne="[object Set]",vne="[object String]",gne="[object Symbol]",yne="[object ArrayBuffer]",xne="[object DataView]",bne="[object Float32Array]",wne="[object Float64Array]",_ne="[object Int8Array]",Sne="[object Int16Array]",Ene="[object Int32Array]",One="[object Uint8Array]",$ne="[object Uint8ClampedArray]",Pne="[object Uint16Array]",jne="[object Uint32Array]";function Tne(e,t,n){var r=e.constructor;switch(t){case yne:return ane(e);case cne:case fne:return new r(+e);case xne:return one(e,n);case bne:case wne:case _ne:case Sne:case Ene:case One:case $ne:case Pne:case jne:return une(e,n);case dne:return new r;case pne:case vne:return new r(e);case hne:return lne(e);case mne:return new r;case gne:return sne(e)}}var Ane=Tne,Cne=kn,yS=Object.create,kne=function(){function e(){}return function(t){if(!Cne(t))return{};if(yS)return yS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Nne=kne,Mne=Nne,Ine=T0,Rne=qy;function Lne(e){return typeof e.constructor=="function"&&!Rne(e)?Mne(Ine(e)):{}}var Dne=Lne,Fne=Id,Bne=Cn,zne="[object Map]";function Une(e){return Bne(e)&&Fne(e)==zne}var Hne=Une,Wne=Hne,Vne=Md,xS=Gy,bS=xS&&xS.isMap,Kne=bS?Vne(bS):Wne,Gne=Kne,qne=Id,Xne=Cn,Yne="[object Set]";function Qne(e){return Xne(e)&&qne(e)==Yne}var Zne=Qne,Jne=Zne,ere=Md,wS=Gy,_S=wS&&wS.isSet,tre=_S?ere(_S):Jne,nre=tre,rre=Fy,ire=Kee,are=yT,ore=ite,lre=wte,sre=_te,ure=Ete,cre=jte,fre=Dte,dre=GP,pre=bT,hre=Id,mre=Kte,vre=Ane,gre=Dne,yre=jt,xre=Wy,bre=Gne,wre=kn,_re=nre,Sre=Qs,Ere=I0,Ore=1,$re=2,Pre=4,wT="[object Arguments]",jre="[object Array]",Tre="[object Boolean]",Are="[object Date]",Cre="[object Error]",_T="[object Function]",kre="[object GeneratorFunction]",Nre="[object Map]",Mre="[object Number]",ST="[object Object]",Ire="[object RegExp]",Rre="[object Set]",Lre="[object String]",Dre="[object Symbol]",Fre="[object WeakMap]",Bre="[object ArrayBuffer]",zre="[object DataView]",Ure="[object Float32Array]",Hre="[object Float64Array]",Wre="[object Int8Array]",Vre="[object Int16Array]",Kre="[object Int32Array]",Gre="[object Uint8Array]",qre="[object Uint8ClampedArray]",Xre="[object Uint16Array]",Yre="[object Uint32Array]",xe={};xe[wT]=xe[jre]=xe[Bre]=xe[zre]=xe[Tre]=xe[Are]=xe[Ure]=xe[Hre]=xe[Wre]=xe[Vre]=xe[Kre]=xe[Nre]=xe[Mre]=xe[ST]=xe[Ire]=xe[Rre]=xe[Lre]=xe[Dre]=xe[Gre]=xe[qre]=xe[Xre]=xe[Yre]=!0;xe[Cre]=xe[_T]=xe[Fre]=!1;function pc(e,t,n,r,i,a){var o,l=t&Ore,s=t&$re,u=t&Pre;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!wre(e))return e;var c=yre(e);if(c){if(o=mre(e),!l)return ure(e,o)}else{var f=hre(e),d=f==_T||f==kre;if(xre(e))return sre(e,l);if(f==ST||f==wT||d&&!i){if(o=s||d?{}:gre(e),!l)return s?fre(e,lre(o,e)):cre(e,ore(o,e))}else{if(!xe[f])return i?e:{};o=vre(e,f,l)}}a||(a=new rre);var p=a.get(e);if(p)return p;a.set(e,o),_re(e)?e.forEach(function(w){o.add(pc(w,t,n,w,e,a))}):bre(e)&&e.forEach(function(w,y){o.set(y,pc(w,t,n,y,e,a))});var h=u?s?pre:dre:s?Ere:Sre,m=c?void 0:h(e);return ire(m||e,function(w,y){m&&(y=w,w=e[y]),are(o,y,pc(w,t,n,y,e,a))}),o}var Qre=pc,Zre=yd,Jre=uP;function eie(e,t){return t.length<2?e:Zre(e,Jre(t,0,-1))}var tie=eie,nie=gd,rie=Sj,iie=tie,aie=Gs;function oie(e,t){return t=nie(t,e),e=iie(e,t),e==null||delete e[aie(rie(t))]}var lie=oie,sie=Uj;function uie(e){return sie(e)?void 0:e}var cie=uie,fie=Yy;function die(e){var t=e==null?0:e.length;return t?fie(e,1):[]}var pie=die,hie=pie,mie=a2,vie=l2;function gie(e){return vie(mie(e,void 0,hie),e+"")}var yie=gie,xie=vd,bie=Qre,wie=lie,_ie=gd,Sie=ru,Eie=cie,Oie=yie,$ie=bT,Pie=1,jie=2,Tie=4,Aie=Oie(function(e,t){var n={};if(e==null)return n;var r=!1;t=xie(t,function(a){return a=_ie(a,e),r||(r=a.length>1),a}),Sie(e,$ie(e),n),r&&(n=bie(n,Pie|jie|Tie,Eie));for(var i=t.length;i--;)wie(n,t[i]);return n}),Cie=Aie;const kie=me(Cie);function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(this,arguments)}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SS(Object(n),!0).forEach(function(r){Nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t,n){return t=Mie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mie(e){var t=Iie(e,"string");return Ms(t)=="symbol"?t:t+""}function Iie(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rie(e,t){var n="".concat(t.x||e.x),r=parseInt(n,10),i="".concat(t.y||e.y),a=parseInt(i,10),o="".concat((t==null?void 0:t.height)||(e==null?void 0:e.height)),l=parseInt(o,10);return Eh(Eh(Eh({},t),Hj(e)),{},{height:l,x:r,y:a})}function Lie(e){return j.createElement(Wj,ag({shapeType:"trapezoid",propTransformer:Rie},e))}var og;function ES(e,t){return zie(e)||Bie(e,t)||Fie(e,t)||Die()}function Die(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
265
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fie(e,t){if(e){if(typeof e=="string")return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function zie(e){if(Array.isArray(e))return e}function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mf.apply(this,arguments)}function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(n),!0).forEach(function(r){hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OT(r.key),r)}}function Hie(e,t,n){return t&&PS(e.prototype,t),n&&PS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wie(e,t,n){return t=If(t),Vie(e,ET()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function Vie(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kie(e)}function Kie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ET(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ET=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function Gie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lg(e,t)}function hr(e,t,n){return t=OT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OT(e){var t=qie(e,"string");return yo(t)=="symbol"?t:t+""}function qie(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kr=function(e){function t(){var n;Uie(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Wie(this,t,[].concat(i)),hr(n,"state",{isAnimationFinished:!1}),hr(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),te(o)&&o()}),hr(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),te(o)&&o()}),n}return Gie(t,e),Hie(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"renderTrapezoidsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape;return r.map(function(s,u){var c=i.isActiveIndex(u)?l:o,f=Qe(Qe({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement(Te,Mf({className:"recharts-funnel-trapezoid"},Xs(i.props,s,u),{key:"trapezoid-".concat(s==null?void 0:s.x,"-").concat(s==null?void 0:s.y,"-").concat(s==null?void 0:s.name,"-").concat(s==null?void 0:s.value),role:"img"}),j.createElement(Lie,Mf({option:c},f)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var r=this,i=this.props,a=i.trapezoids,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevTrapezoids;return j.createElement($r,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var p=d.t,h=a.map(function(m,w){var y=f&&f[w];if(y){var g=Zt(y.x,m.x),x=Zt(y.y,m.y),E=Zt(y.upperWidth,m.upperWidth),_=Zt(y.lowerWidth,m.lowerWidth),S=Zt(y.height,m.height);return Qe(Qe({},m),{},{x:g(p),y:x(p),upperWidth:E(p),lowerWidth:_(p),height:S(p)})}var O=Zt(m.x+m.upperWidth/2,m.x),$=Zt(m.y+m.height/2,m.y),T=Zt(0,m.upperWidth),C=Zt(0,m.lowerWidth),A=Zt(0,m.height);return Qe(Qe({},m),{},{x:O(p),y:$(p),upperWidth:T(p),lowerWidth:C(p),height:A(p)})});return j.createElement(Te,null,r.renderTrapezoidsStatically(h))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,a=r.isAnimationActive,o=this.state.prevTrapezoids;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.trapezoids,o=r.className,l=r.isAnimationActive,s=this.state.isAnimationFinished;if(i||!a||!a.length)return null;var u=ue("recharts-trapezoids",o);return j.createElement(Te,{className:u},this.renderTrapezoids(),(!l||s)&&Un.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curTrapezoids:r.trapezoids,prevTrapezoids:i.curTrapezoids}:r.trapezoids!==i.curTrapezoids?{curTrapezoids:r.trapezoids}:null}}])}(b.PureComponent);og=kr;hr(kr,"displayName","Funnel");hr(kr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ti.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});hr(kr,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ne(e.props,!1),a=On(r,e0);return n&&n.length?n.map(function(o,l){return Qe(Qe(Qe({payload:o},i),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return Qe(Qe({},i),o.props)}):[]});hr(kr,"getRealWidthHeight",function(e,t){var n=e.props.width,r=t.width,i=t.height,a=t.left,o=t.right,l=t.top,s=t.bottom,u=i,c=r;return sP(n)?c=n:Mo(n)&&(c=c*parseFloat(n)/100),{realWidth:c-a-o-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});hr(kr,"getComposedData",function(e){var t=e.item,n=e.offset,r=og.getRealFunnelData(t),i=t.props,a=i.dataKey,o=i.nameKey,l=i.tooltipType,s=i.lastShapeType,u=i.reversed,c=n.left,f=n.top,d=og.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,m=d.offsetX,w=d.offsetY,y=Math.max.apply(null,r.map(function(S){return ct(S,a,0)})),g=r.length,x=p/g,E={x:n.left,y:n.top,width:n.width,height:n.height},_=r.map(function(S,O){var $=ct(S,a,0),T=ct(S,o,O),C=$,A;if(O!==g-1){if(A=ct(r[O+1],a,0),A instanceof Array){var N=A,I=ES(N,1);A=I[0]}}else if($ instanceof Array&&$.length===2){var D=ES($,2);C=D[0],A=D[1]}else s==="rectangle"?A=C:A=0;var M=(y-C)*h/(2*y)+f+25+m,F=x*O+c+w,R=C/y*h,P=A/y*h,k=[{name:T,value:C,payload:S,dataKey:a,type:l}],B={x:M+R/2,y:F+x/2};return Qe(Qe({x:M,y:F,width:Math.max(R,P),upperWidth:R,lowerWidth:P,height:x,name:T,val:C,tooltipPayload:k,tooltipPosition:B},kie(S,"width")),{},{payload:S,parentViewBox:E,labelViewBox:{x:M+(R-P)/4,y:F,width:Math.abs(R-P)/2+Math.min(R,P),height:x}})});return u&&(_=_.map(function(S,O){var $=S.y-O*x+(g-1-O)*x;return Qe(Qe({},S),{},{upperWidth:S.lowerWidth,lowerWidth:S.upperWidth,x:S.x-(S.lowerWidth-S.upperWidth)/2,y:S.y-O*x+(g-1-O)*x,tooltipPosition:Qe(Qe({},S.tooltipPosition),{},{y:$+x/2}),labelViewBox:Qe(Qe({},S.labelViewBox),{},{y:$})})})),{trapezoids:_,data:r}});var $T=gT({chartName:"FunnelChart",GraphicalChild:kr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:sn},test_coverage:{minimum_thresholds:Rf}}=wr.project.documentation_site,In=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=sn.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=sn.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=sn.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=sn.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},xo=e=>e>=sn.xl?"xl":e>=sn.l?"l":e>=sn.m?"m":e>=sn.s?"s":"xs",Is=e=>e>=sn.xl?5:e>=sn.l?4:e>=sn.m?3:e>=sn.s?2:1,bt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=Rf.good?{hex:"#22c55e",class:"bg-green-500"}:e>=Rf.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},PT=e=>e>=Rf.good?"good":e>=Rf.fair?"fair":"poor",Xie=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,Lf=e=>!e||e.length===0?v.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?v.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):v.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function lp(){return typeof window<"u"}function Ho(e){return jT(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(jT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jT(e){return lp()?e instanceof Node||e instanceof Lt(e).Node:!1}function de(e){return lp()?e instanceof Element||e instanceof Lt(e).Element:!1}function Vt(e){return lp()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function sg(e){return!lp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function iu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Yie(e){return["table","td","th"].includes(Ho(e))}function sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function L0(e){const t=up(),n=de(e)?pn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qie(e){let t=Pr(e);for(;Vt(t)&&!mr(t);){if(L0(t))return t;if(sp(t))return null;t=Pr(t)}return null}function up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(Ho(e))}function pn(e){return Lt(e).getComputedStyle(e)}function cp(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pr(e){if(Ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sg(e)&&e.host||Qn(e);return sg(t)?t.host:t}function TT(e){const t=Pr(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&iu(t)?t:TT(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=TT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Lt(i);if(a){const l=ug(o);return t.concat(o,o.visualViewport||[],iu(i)?i:[],l&&n?ri(l):[])}return t.concat(i,ri(i,[],n))}function ug(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cg(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function bo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function AT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function CT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Zie(e){return eae()?!1:!jS()&&e.width===0&&e.height===0||jS()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function kT(){return/apple/i.test(navigator.vendor)}function jS(){const e=/android/i;return e.test(AT())||e.test(CT())}function Jie(){return AT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eae(){return CT().includes("jsdom/")}function fg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function tae(e){return"nativeEvent"in e}function nae(e){return e.matches("html,body")}function Vr(e){return(e==null?void 0:e.ownerDocument)||document}function Oh(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ma(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rae="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function iae(e){return Vt(e)&&e.matches(rae)}const aae=["top","right","bottom","left"],TS=["start","end"],AS=aae.reduce((e,t)=>e.concat(t,t+"-"+TS[0],t+"-"+TS[1]),[]),Xi=Math.min,vt=Math.max,Rs=Math.round,Xu=Math.floor,Wn=e=>({x:e,y:e}),oae={left:"right",right:"left",bottom:"top",top:"bottom"},lae={start:"end",end:"start"};function CS(e,t,n){return vt(e,Xi(t,n))}function la(e,t){return typeof e=="function"?e(t):e}function Xn(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function NT(e){return e==="x"?"y":"x"}function MT(e){return e==="y"?"height":"width"}function Yi(e){return["top","bottom"].includes(Xn(e))?"y":"x"}function IT(e){return NT(Yi(e))}function RT(e,t,n){n===void 0&&(n=!1);const r=Vn(e),i=IT(e),a=MT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ff(o)),[o,Ff(o)]}function sae(e){const t=Ff(e);return[Df(e),t,Df(t)]}function Df(e){return e.replace(/start|end/g,t=>lae[t])}function uae(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function cae(e,t,n,r){const i=Vn(e);let a=uae(Xn(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Df)))),a}function Ff(e){return e.replace(/left|right|bottom|top/g,t=>oae[t])}function fae(e){return{top:0,right:0,bottom:0,left:0,...e}}function dae(e){return typeof e!="number"?fae(e):{top:e,right:e,bottom:e,left:e}}function Bf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
266
266
|
* tabbable 6.2.0
|
267
267
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
268
|
-
*/var pae=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],dg=pae.join(","),LT=typeof Element>"u",Is=LT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zf=!LT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uf=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},hae=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},mae=function(t,n,r){if(Uf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(dg));return n&&Is.call(t,dg)&&i.unshift(t),i=i.filter(r),i},vae=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Uf(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=Is.call(o,dg);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!Uf(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var p=e(f===!0?o.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:o,candidates:p})}else a.unshift.apply(a,o.children)}}return i},DT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},FT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||hae(t))&&!DT(t)?0:t.tabIndex},gae=function(t,n){var r=FT(t);return r<0&&n&&!DT(t)?0:r},yae=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},BT=function(t){return t.tagName==="INPUT"},xae=function(t){return BT(t)&&t.type==="hidden"},bae=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wae=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},_ae=function(t){if(!t.name)return!0;var n=t.form||zf(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=wae(i,t.form);return!a||a===t},Sae=function(t){return BT(t)&&t.type==="radio"},Eae=function(t){return Sae(t)&&!_ae(t)},Oae=function(t){var n,r=t&&zf(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,l,s;for(a=!!((o=i)!==null&&o!==void 0&&(l=o.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!a&&i;){var u,c,f;r=zf(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return a},kS=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},$ae=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=Is.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(Is.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var s=t.parentElement,u=zf(t);if(s&&!s.shadowRoot&&i(s)===!0)return kS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(Oae(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return kS(t);return!1},Pae=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Is.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},jae=function(t,n){return!(n.disabled||Uf(n)||xae(n)||$ae(n,t)||bae(n)||Pae(n))},NS=function(t,n){return!(Eae(n)||FT(n)<0||!jae(t,n))},Tae=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Aae=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,l=o?i.scopeParent:i,s=gae(l,o),u=o?e(i.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:a,tabIndex:s,item:i,isScope:o,content:u})}),r.sort(yae).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},zT=function(t,n){n=n||{};var r;return n.getShadowRoot?r=vae([t],n.includeContainer,{filter:NS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Tae}):r=mae(t,n.includeContainer,NS.bind(null,n)),Aae(r)};function MS(e,t,n){let{reference:r,floating:i}=e;const a=Xi(t),o=IT(t),l=MT(o),s=Xn(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Vn(t)){case"start":p[o]-=d*(n&&u?-1:1);break;case"end":p[o]+=d*(n&&u?-1:1);break}return p}const Cae=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=MS(u,r,s),d=r,p={},h=0;for(let m=0;m<l.length;m++){const{name:w,fn:y}=l[m],{x:v,y:x,data:E,reset:_}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=v??c,f=x??f,p={...p,[w]:{...p[w],...E}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=MS(u,d,s)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function ru(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=la(t,e),h=dae(p),w=l[d?f==="floating"?"reference":"floating":f],y=Bf(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Bf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:x,strategy:s}):v);return{top:(y.top-_.top+h.top)/E.y,bottom:(_.bottom-y.bottom+h.bottom)/E.y,left:(y.left-_.left+h.left)/E.x,right:(_.right-y.right+h.right)/E.x}}function kae(e,t,n){return(e?[...n.filter(i=>Vn(i)===e),...n.filter(i=>Vn(i)!==e)]:n.filter(i=>Xn(i)===i)).filter(i=>e?Vn(i)===e||(t?Df(i)!==i:!1):!0)}const Nae=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:l,platform:s,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=AS,autoAlignment:p=!0,...h}=la(e,t),m=f!==void 0||d===AS?kae(f||null,p,d):d,w=await ru(t,h),y=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[y];if(v==null)return{};const x=RT(v,a,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==v)return{reset:{placement:m[0]}};const E=[w[Xn(v)],w[x[0]],w[x[1]]],_=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:E}],S=m[y+1];if(S)return{data:{index:y+1,overflows:_},reset:{placement:S}};const O=_.map(C=>{const A=Vn(C.placement);return[C.placement,A&&c?C.overflows.slice(0,2).reduce((N,I)=>N+I,0):C.overflows[0],C.overflows]}).sort((C,A)=>C[1]-A[1]),T=((i=O.filter(C=>C[2].slice(0,Vn(C[0])?2:3).every(A=>A<=0))[0])==null?void 0:i[0])||O[0][0];return T!==l?{data:{index:y+1,overflows:_},reset:{placement:T}}:{}}}},Mae=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...w}=la(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Xn(i),v=Xi(l),x=Xn(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),_=d||(x||!m?[Ff(l)]:sae(l)),S=h!=="none";!d&&S&&_.push(...cae(l,m,h,E));const O=[l,..._],$=await ru(t,w),T=[];let C=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&T.push($[y]),f){const D=RT(i,o,E);T.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:T}],!T.every(D=>D<=0)){var A,N;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,M=O[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let F=(N=C.filter(R=>R.overflows[0]<=0).sort((R,P)=>R.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(p){case"bestFit":{var I;const R=(I=C.filter(P=>{if(S){const k=Xi(P.placement);return k===v||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,B)=>k+B,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:I[0];R&&(F=R);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function Iae(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xn(n),l=Vn(n),s=Xi(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&s?-1:1,f=la(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Rae=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:l}=t,s=await Iae(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:o}}}}},Lae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...s}=la(e,t),u={x:n,y:r},c=await ru(t,s),f=Xi(Xn(i)),d=NT(f);let p=u[d],h=u[f];if(a){const w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=p+c[w],x=p-c[y];p=CS(v,p,x)}if(o){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=h+c[w],x=h-c[y];h=CS(v,h,x)}const m=l.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:a,[f]:o}}}}}},Dae=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:s=()=>{},...u}=la(e,t),c=await ru(t,u),f=Xn(i),d=Vn(i),p=Xi(i)==="y",{width:h,height:m}=a.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,w=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,x=h-c.left-c.right,E=qi(m-c[w],v),_=qi(h-c[y],x),S=!t.middlewareData.shift;let O=E,$=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=v),S&&!d){const C=vt(c.left,0),A=vt(c.right,0),N=vt(c.top,0),I=vt(c.bottom,0);p?$=h-2*(C!==0||A!==0?C+A:vt(c.left,c.right)):O=m-2*(N!==0||I!==0?N+I:vt(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:O});const T=await o.getDimensions(l.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function UT(e){const t=pn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=Ms(n)!==a||Ms(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function D0(e){return de(e)?e:e.contextElement}function Ba(e){const t=D0(e);if(!Vt(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=UT(t);let o=(a?Ms(n.width):n.width)/r,l=(a?Ms(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Fae=Wn(0);function HT(e){const t=Lt(e);return!up()||!t.visualViewport?Fae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Yi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=D0(e);let o=Wn(1);t&&(r?de(r)&&(o=Ba(r)):o=Ba(e));const l=Bae(a,n,r)?HT(a):Wn(0);let s=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=Lt(a),p=r&&de(r)?Lt(r):r;let h=d,m=ug(h);for(;m&&r&&p!==h;){const w=Ba(m),y=m.getBoundingClientRect(),v=pn(m),x=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,E=y.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;s*=w.x,u*=w.y,c*=w.x,f*=w.y,s+=x,u+=E,h=Lt(m),m=ug(h)}}return Bf({width:c,height:f,x:s,y:u})}function F0(e,t){const n=cp(e).scrollLeft;return t?t.left+n:Yi(Qn(e)).left+n}function WT(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:F0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function zae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Qn(r),l=t?sp(t.floating):!1;if(r===o||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=Wn(1);const c=Wn(0),f=Vt(r);if((f||!f&&!a)&&((Uo(r)!=="body"||nu(o))&&(s=cp(r)),Vt(r))){const p=Yi(r);u=Ba(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=o&&!f&&!a?WT(o,s,!0):Wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function Uae(e){return Array.from(e.getClientRects())}function Hae(e){const t=Qn(e),n=cp(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+F0(e);const l=-n.scrollTop;return pn(r).direction==="rtl"&&(o+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function Wae(e,t){const n=Lt(e),r=Qn(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;const u=up();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l,y:s}}function Vae(e,t){const n=Yi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vt(e)?Ba(e):Wn(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,s=i*a.x,u=r*a.y;return{width:o,height:l,x:s,y:u}}function IS(e,t,n){let r;if(t==="viewport")r=Wae(e,n);else if(t==="document")r=Hae(Qn(e));else if(de(t))r=Vae(t,n);else{const i=HT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bf(r)}function VT(e,t){const n=$r(e);return n===t||!de(n)||mr(n)?!1:pn(n).position==="fixed"||VT(n,t)}function Kae(e,t){const n=t.get(e);if(n)return n;let r=ni(e,[],!1).filter(l=>de(l)&&Uo(l)!=="body"),i=null;const a=pn(e).position==="fixed";let o=a?$r(e):e;for(;de(o)&&!mr(o);){const l=pn(o),s=L0(o);!s&&l.position==="fixed"&&(i=null),(a?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||nu(o)&&!s&&VT(e,o))?r=r.filter(c=>c!==o):i=l,o=$r(o)}return t.set(e,r),r}function Gae(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sp(t)?[]:Kae(t,this._c):[].concat(n),r],l=o[0],s=o.reduce((u,c)=>{const f=IS(t,c,i);return u.top=vt(f.top,u.top),u.right=qi(f.right,u.right),u.bottom=qi(f.bottom,u.bottom),u.left=vt(f.left,u.left),u},IS(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function qae(e){const{width:t,height:n}=UT(e);return{width:t,height:n}}function Xae(e,t,n){const r=Vt(t),i=Qn(t),a=n==="fixed",o=Yi(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Wn(0);if(r||!r&&!a)if((Uo(t)!=="body"||nu(i))&&(l=cp(t)),r){const d=Yi(t,!0,a,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else i&&(s.x=F0(i));const u=i&&!r&&!a?WT(i,l):Wn(0),c=o.left+l.scrollLeft-s.x-u.x,f=o.top+l.scrollTop-s.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function $h(e){return pn(e).position==="static"}function RS(e,t){if(!Vt(e)||pn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function KT(e,t){const n=Lt(e);if(sp(e))return n;if(!Vt(e)){let i=$r(e);for(;i&&!mr(i);){if(de(i)&&!$h(i))return i;i=$r(i)}return n}let r=RS(e,t);for(;r&&Yie(r)&&$h(r);)r=RS(r,t);return r&&mr(r)&&$h(r)&&!L0(r)?n:r||Qie(e)||n}const Yae=async function(e){const t=this.getOffsetParent||KT,n=this.getDimensions,r=await n(e.floating);return{reference:Xae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qae(e){return pn(e).direction==="rtl"}const Zae={convertOffsetParentRelativeRectToViewportRelativeRect:zae,getDocumentElement:Qn,getClippingRect:Gae,getOffsetParent:KT,getElementRects:Yae,getClientRects:Uae,getDimensions:qae,getScale:Ba,isElement:de,isRTL:Qae};function GT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jae(e,t){let n=null,r;const i=Qn(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const h=Gu(f),m=Gu(i.clientWidth-(c+d)),w=Gu(i.clientHeight-(f+p)),y=Gu(c),x={rootMargin:-h+"px "+-m+"px "+-w+"px "+-y+"px",threshold:vt(0,qi(1,s))||1};let E=!0;function _(S){const O=S[0].intersectionRatio;if(O!==s){if(!E)return o();O?o(!1,O):r=setTimeout(()=>{o(!1,1e-7)},1e3)}O===1&&!GT(u,e.getBoundingClientRect())&&o(),E=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return o(!0),a}function qT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=D0(e),c=i||a?[...u?ni(u):[],...ni(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&l?Jae(u,n):null;let d=-1,p=null;o&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let h,m=s?Yi(e):null;s&&w();function w(){const y=Yi(e);m&&!GT(m,y)&&n(),m=y,h=requestAnimationFrame(w)}return n(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const Ph=ru,eoe=Rae,toe=Nae,noe=Lae,roe=Mae,ioe=Dae,aoe=(e,t,n)=>{const r=new Map,i={platform:Zae,...n},a={...i.platform,_c:r};return Cae(e,t,{...i,platform:a})};var hc=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Hf(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function XT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function LS(e,t){const n=XT(e);return Math.round(t*n)/n}function jh(e){const t=b.useRef(e);return hc(()=>{t.current=e}),t}function YT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=b.useState(r);Hf(d,r)||p(r);const[h,m]=b.useState(null),[w,y]=b.useState(null),v=b.useCallback(P=>{P!==S.current&&(S.current=P,m(P))},[]),x=b.useCallback(P=>{P!==O.current&&(O.current=P,y(P))},[]),E=a||h,_=o||w,S=b.useRef(null),O=b.useRef(null),$=b.useRef(c),T=s!=null,C=jh(s),A=jh(i),N=jh(u),I=b.useCallback(()=>{if(!S.current||!O.current)return;const P={placement:t,strategy:n,middleware:d};A.current&&(P.platform=A.current),aoe(S.current,O.current,P).then(k=>{const B={...k,isPositioned:N.current!==!1};D.current&&!Hf($.current,B)&&($.current=B,Ht.flushSync(()=>{f(B)}))})},[d,t,n,A,N]);hc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=b.useRef(!1);hc(()=>(D.current=!0,()=>{D.current=!1}),[]),hc(()=>{if(E&&(S.current=E),_&&(O.current=_),E&&_){if(C.current)return C.current(E,_,I);I()}},[E,_,I,C,T]);const M=b.useMemo(()=>({reference:S,floating:O,setReference:v,setFloating:x}),[v,x]),F=b.useMemo(()=>({reference:E,floating:_}),[E,_]),R=b.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const k=LS(F.floating,c.x),B=LS(F.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+B+"px)",...XT(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:B}},[n,l,F.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:I,refs:M,elements:F,floatingStyles:R}),[c,I,M,F,R])}const B0=(e,t)=>({...eoe(e),options:[e,t]}),QT=(e,t)=>({...noe(e),options:[e,t]}),ooe=(e,t)=>({...roe(e),options:[e,t]}),loe=(e,t)=>({...ioe(e),options:[e,t]}),soe=(e,t)=>({...toe(e),options:[e,t]}),ZT={...mc},uoe=ZT.useInsertionEffect,coe=uoe||(e=>e());function ir(e){const t=b.useRef(()=>{});return coe(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Kn=typeof document<"u"?b.useLayoutEffect:b.useEffect;let DS=!1,foe=0;const FS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+foe++;function doe(){const[e,t]=b.useState(()=>DS?FS():void 0);return Kn(()=>{e==null&&t(FS())},[]),b.useEffect(()=>{DS=!0},[]),e}const poe=ZT.useId,z0=poe||doe;function hoe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const moe=b.createContext(null),voe=b.createContext(null),U0=()=>{var e;return((e=b.useContext(moe))==null?void 0:e.id)||null},H0=()=>b.useContext(voe);function iu(e){return"data-floating-ui-"+e}function Th(e){const t=b.useRef(e);return Kn(()=>{t.current=e}),t}const BS=iu("safe-polygon");function Ah(e,t,n){return n&&!fg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function goe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:l=!0,delay:s=0,handleClose:u=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=t,p=H0(),h=U0(),m=Th(u),w=Th(s),y=Th(n),v=b.useRef(),x=b.useRef(-1),E=b.useRef(),_=b.useRef(-1),S=b.useRef(!0),O=b.useRef(!1),$=b.useRef(()=>{}),T=b.useRef(!1),C=b.useCallback(()=>{var R;const P=(R=i.current.openEvent)==null?void 0:R.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[i]);b.useEffect(()=>{if(!l)return;function R(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0,T.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[l,a]),b.useEffect(()=>{if(!l||!m.current||!n)return;function R(k){C()&&r(!1,k,"hover")}const P=Wr(o.floating).documentElement;return P.addEventListener("mouseleave",R),()=>{P.removeEventListener("mouseleave",R)}},[o.floating,n,r,l,m,C]);const A=b.useCallback(function(R,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const B=Ah(w.current,"close",v.current);B&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,R,k),B)):P&&(clearTimeout(x.current),r(!1,R,k))},[w,r]),N=ir(()=>{$.current(),E.current=void 0}),I=ir(()=>{if(O.current){const R=Wr(o.floating).body;R.style.pointerEvents="",R.removeAttribute(BS),O.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);b.useEffect(()=>{if(!l)return;function R(L){if(clearTimeout(x.current),S.current=!1,c&&!fg(v.current)||f>0&&!Ah(w.current,"open"))return;const U=Ah(w.current,"open",v.current);U?x.current=window.setTimeout(()=>{y.current||r(!0,L,"hover")},U):n||r(!0,L,"hover")}function P(L){if(D())return;$.current();const U=Wr(o.floating);if(clearTimeout(_.current),T.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(x.current),E.current=m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L,!0,"safe-polygon")}});const re=E.current;U.addEventListener("mousemove",re),$.current=()=>{U.removeEventListener("mousemove",re)};return}(v.current==="touch"?!xo(o.floating,L.relatedTarget):!0)&&A(L)}function k(L){D()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L)}})(L))}if(de(o.domReference)){var B;const L=o.domReference;return n&&L.addEventListener("mouseleave",k),(B=o.floating)==null||B.addEventListener("mouseleave",k),d&&L.addEventListener("mousemove",R,{once:!0}),L.addEventListener("mouseenter",R),L.addEventListener("mouseleave",P),()=>{var U;n&&L.removeEventListener("mouseleave",k),(U=o.floating)==null||U.removeEventListener("mouseleave",k),d&&L.removeEventListener("mousemove",R),L.removeEventListener("mouseenter",R),L.removeEventListener("mouseleave",P)}}},[o,l,e,c,f,d,A,N,I,r,n,y,p,w,m,i,D]),Kn(()=>{var R;if(l&&n&&(R=m.current)!=null&&R.__options.blockPointerEvents&&C()){O.current=!0;const k=o.floating;if(de(o.domReference)&&k){var P;const B=Wr(o.floating).body;B.setAttribute(BS,"");const L=o.domReference,U=p==null||(P=p.nodesRef.current.find(V=>V.id===h))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),B.style.pointerEvents="none",L.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{B.style.pointerEvents="",L.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,h,o,p,m,C]),Kn(()=>{n||(v.current=void 0,T.current=!1,N(),I())},[n,N,I]),b.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(_.current),I()},[l,o.domReference,N,I]);const M=b.useMemo(()=>{function R(P){v.current=P.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(P){const{nativeEvent:k}=P;function B(){!S.current&&!y.current&&r(!0,k,"hover")}c&&!fg(v.current)||n||f===0||T.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(_.current),v.current==="touch"?B():(T.current=!0,_.current=window.setTimeout(B,f)))}}},[c,r,n,y,f]),F=b.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(R){D()||A(R.nativeEvent,!1)}}),[A,D]);return b.useMemo(()=>l?{reference:M,floating:F}:{},[l,M,F])}function Ch(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var l;return i.parentId===o.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const JT=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eA(e,t){const n=zT(e,JT());t==="prev"&&n.reverse();const r=n.indexOf(cg(Wr(e)));return n.slice(r+1)[0]}function yoe(){return eA(document.body,"next")}function xoe(){return eA(document.body,"prev")}function kh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!xo(n,r)}function boe(e){zT(e,JT()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zS(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const tA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let woe;function US(e){e.key==="Tab"&&(e.target,clearTimeout(woe))}const HS=b.forwardRef(function(t,n){const[r,i]=b.useState();Kn(()=>(kT()&&i("button"),document.addEventListener("keydown",US),()=>{document.removeEventListener("keydown",US)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[iu("focus-guard")]:"",style:tA};return g.jsx("span",{...t,...a})}),nA=b.createContext(null),WS=iu("portal");function _oe(e){e===void 0&&(e={});const{id:t,root:n}=e,r=z0(),i=Eoe(),[a,o]=b.useState(null),l=b.useRef(null);return Kn(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{l.current=null})},[a]),Kn(()=>{if(!r||l.current)return;const s=t?document.getElementById(t):null;if(!s)return;const u=document.createElement("div");u.id=r,u.setAttribute(WS,""),s.appendChild(u),l.current=u,o(u)},[t,r]),Kn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!de(s)&&(s=s.current),s=s||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,s.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(WS,""),s=u||s,s.appendChild(c),l.current=c,o(c)},[t,n,r,i]),a}function Soe(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,a=_oe({id:n,root:r}),[o,l]=b.useState(null),s=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),d=o==null?void 0:o.modal,p=o==null?void 0:o.open,h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return b.useEffect(()=>{if(!a||!i||d)return;function m(w){a&&kh(w)&&(w.type==="focusin"?zS:boe)(a)}return a.addEventListener("focusin",m,!0),a.addEventListener("focusout",m,!0),()=>{a.removeEventListener("focusin",m,!0),a.removeEventListener("focusout",m,!0)}},[a,i,d]),b.useEffect(()=>{a&&(p||zS(a))},[p,a]),g.jsxs(nA.Provider,{value:b.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:l}),[i,a]),children:[h&&a&&g.jsx(HS,{"data-type":"outside",ref:s,onFocus:m=>{if(kh(m,a)){var w;(w=c.current)==null||w.focus()}else{const y=xoe()||(o==null?void 0:o.domReference);y==null||y.focus()}}}),h&&a&&g.jsx("span",{"aria-owns":a.id,style:tA}),a&&Ht.createPortal(t,a),h&&a&&g.jsx(HS,{"data-type":"outside",ref:u,onFocus:m=>{if(kh(m,a)){var w;(w=f.current)==null||w.focus()}else{const y=yoe()||(o==null?void 0:o.domReference);y==null||y.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,m.nativeEvent,"focus-out"))}}})]})}const Eoe=()=>b.useContext(nA),Ooe="data-floating-ui-focusable",$oe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Poe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},VS=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function joe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,m=H0(),w=ir(typeof s=="function"?s:()=>!1),y=typeof s=="function"?w:s,v=b.useRef(!1),x=b.useRef(!1),{escapeKey:E,outsidePress:_}=VS(p),{escapeKey:S,outsidePress:O}=VS(h),$=b.useRef(!1),T=ir(M=>{var F;if(!n||!o||!l||M.key!=="Escape"||$.current)return;const R=(F=a.current.floatingContext)==null?void 0:F.nodeId,P=m?Ch(m.nodesRef.current,R):[];if(!E&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(B=>{var L;if((L=B.context)!=null&&L.open&&!B.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,tae(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var F;const R=()=>{var P;T(M),(P=ha(M))==null||P.removeEventListener("keydown",R)};(F=ha(M))==null||F.addEventListener("keydown",R)}),A=ir(M=>{var F;const R=v.current;v.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||R||typeof y=="function"&&!y(M))return;const k=ha(M),B="["+iu("inert")+"]",L=Wr(i.floating).querySelectorAll(B);let U=de(k)?k:null;for(;U&&!mr(U);){const J=$r(U);if(mr(J)||!de(J))break;U=J}if(L.length&&de(k)&&!nae(k)&&!xo(k,i.floating)&&Array.from(L).every(J=>!xo(U,J)))return;if(Vt(k)&&D){const J=mr(k),Ce=pn(k),Oe=/auto|scroll/,K=J||Oe.test(Ce.overflowX),Z=J||Oe.test(Ce.overflowY),ee=K&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Z&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,ke=Ce.direction==="rtl",oe=H&&(ke?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),He=ee&&M.offsetY>k.clientHeight;if(oe||He)return}const V=(F=a.current.floatingContext)==null?void 0:F.nodeId,re=m&&Ch(m.nodesRef.current,V).some(J=>{var Ce;return Oh(M,(Ce=J.context)==null?void 0:Ce.elements.floating)});if(Oh(M,i.floating)||Oh(M,i.domReference)||re)return;const ie=m?Ch(m.nodesRef.current,V):[];if(ie.length>0){let J=!0;if(ie.forEach(Ce=>{var Oe;if((Oe=Ce.context)!=null&&Oe.open&&!Ce.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,M,"outside-press")}),N=ir(M=>{var F;const R=()=>{var P;A(M),(P=ha(M))==null||P.removeEventListener(u,R)};(F=ha(M))==null||F.addEventListener(u,R)});b.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=E,a.current.__outsidePressBubbles=_;let M=-1;function F(L){r(!1,L,"ancestor-scroll")}function R(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},up()?5:0)}const k=Wr(i.floating);l&&(k.addEventListener("keydown",S?C:T,S),k.addEventListener("compositionstart",R),k.addEventListener("compositionend",P)),y&&k.addEventListener(u,O?N:A,O);let B=[];return d&&(de(i.domReference)&&(B=ni(i.domReference)),de(i.floating)&&(B=B.concat(ni(i.floating))),!de(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(ni(i.reference.contextElement)))),B=B.filter(L=>{var U;return L!==((U=k.defaultView)==null?void 0:U.visualViewport)}),B.forEach(L=>{L.addEventListener("scroll",F,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",S?C:T,S),k.removeEventListener("compositionstart",R),k.removeEventListener("compositionend",P)),y&&k.removeEventListener(u,O?N:A,O),B.forEach(L=>{L.removeEventListener("scroll",F)}),window.clearTimeout(M)}},[a,i,l,y,u,n,r,d,o,E,_,T,S,C,A,O,N]),b.useEffect(()=>{v.current=!1},[y,u]);const I=b.useMemo(()=>({onKeyDown:T,...c&&{[$oe[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[T,r,c,f]),D=b.useMemo(()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Poe[u]]:()=>{v.current=!0}}),[T,u]);return b.useMemo(()=>o?{reference:I,floating:D}:{},[o,I,D])}function Toe(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=z0(),a=b.useRef({}),[o]=b.useState(()=>hoe()),l=U0()!=null,[s,u]=b.useState(r.reference),c=ir((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Aoe(e){e===void 0&&(e={});const{nodeId:t}=e,n=Toe({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||a,f=b.useRef(null),d=H0();Kn(()=>{c&&(f.current=c)},[c]);const p=YT({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),y=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=b.useMemo(()=>({...p,...r,refs:w,elements:y,nodeId:t}),[p,w,y,t,r]);return Kn(()=>{r.dataRef.current.floatingContext=v;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=v)}),b.useMemo(()=>({...p,context:v,refs:w,elements:y}),[p,w,y,v])}function Coe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:l=!0,visibleOnly:s=!0}=t,u=b.useRef(!1),c=b.useRef(),f=b.useRef(!0);b.useEffect(()=>{if(!l)return;const p=Lt(o.domReference);function h(){!n&&Vt(o.domReference)&&o.domReference===cg(Wr(o.domReference))&&(u.current=!0)}function m(){f.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[o.domReference,n,l]),b.useEffect(()=>{if(!l)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),b.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=b.useMemo(()=>({onPointerDown(p){Zie(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ha(p.nativeEvent);if(s&&de(h))try{if(kT()&&Jie())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!f.current&&!iae(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,w=de(h)&&h.hasAttribute(iu("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var y;const v=cg(o.domReference?o.domReference.ownerDocument:document);!h&&v===o.domReference||xo((y=a.current.floatingContext)==null?void 0:y.refs.floating.current,v)||xo(o.domReference,v)||w||r(!1,m,"focus")})}}),[a,o.domReference,r,s]);return b.useMemo(()=>l?{reference:d}:{},[l,d])}const KS="active",GS="selected";function Nh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[KS]:o,[GS]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[Ooe]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[KS,GS].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else o[u]=c}),o),{})}}function koe(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Nh(l,e,"reference"),t),a=b.useCallback(l=>Nh(l,e,"floating"),n),o=b.useCallback(l=>Nh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const Noe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Moe(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,l=(n=Noe.get(o))!=null?n:o,s=z0(),c=U0()!=null,f=b.useMemo(()=>l==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:s},...l==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[l,i,c,r,s,o]),d=b.useMemo(()=>{const h={id:i,...l&&{role:l}};return l==="tooltip"||o==="label"?h:{...h,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,o]),p=b.useCallback(h=>{let{active:m,selected:w}=h;const y={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...y,"aria-selected":m&&w};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,o]);return b.useMemo(()=>a?{reference:f,floating:d,item:p}:{},[a,f,d,p])}const bo=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded p-2",children:n})=>{const[r,i]=b.useState(!1),{refs:a,floatingStyles:o,context:l}=Aoe({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:qT,middleware:[B0(5),soe({fallbackAxisSideDirection:"start"}),QT()]}),s=goe(l,{move:!1}),u=Coe(l),c=joe(l),f=Moe(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=koe([s,u,c,f]),h=j.Children.toArray(n).find(w=>w.type===Qi),m=j.Children.toArray(n).find(w=>w.type===Zi);return g.jsxs(g.Fragment,{children:[h&&g.jsx("div",{ref:a.setReference,...d(),className:"relative",children:b.cloneElement(h,{ref:a.setReference})}),g.jsx(Soe,{children:r&&m&&g.jsx("div",{className:`${e} ${t}`,ref:a.setFloating,style:o,...p(),children:m})})]})},Qi=b.forwardRef(({children:e,...t},n)=>g.jsx("button",{ref:n,...t,children:e})),Zi=({children:e,...t})=>g.jsx("div",{...t,children:e}),Ioe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.feature_size.percent_of_max||0;if(o!=null){const l=yo(o);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=ci.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[In(n.xs).hex,In(n.s).hex,In(n.m).hex,In(n.l).hex,In(n.xl).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(q$,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),g.jsxs(bo,{width:"w-72",children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx(eu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${In(n.xs).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),g.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${In(n.s).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${In(n.m).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${In(n.l).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${In(n.xl).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),g.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},rt={needsAttention:50,needsImprovement:80,healthy:100},wt=e=>e?e<=rt.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=rt.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},rA=e=>e<rt.needsAttention?"needsAttention":e<rt.needsImprovement?"needsImprovement":"healthy",iA=e=>e?e<rt.needsAttention?"bg-red-100/60":e<rt.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",Roe=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall||0;if(a!=null){const o=rA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Ey,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),g.jsxs(bo,{children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx(eu,{children:g.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),g.jsxs("p",{className:"text-xs text-gray-500",children:[g.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),g.jsxs("p",{className:"text-xs text-gray-500",children:[g.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${wt(rt.healthy).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},Loe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score||0;if(o!=null){const l=PT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=ci.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(_y,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),g.jsxs(bo,{children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx(eu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(n.poor).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(n.fair).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(n.good).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function Doe({features:e,searchTerm:t=""}){const[n,r]=b.useState({key:null,direction:"asc"}),i=j.useMemo(()=>Object.entries(e).filter(([s,u])=>{var f,d;const c=t.toLowerCase();return s.toLowerCase().includes(c)||((d=(f=u.assignments)==null?void 0:f.teams)==null?void 0:d.some(p=>p.toLowerCase().includes(c)))}).sort((s,u)=>{var w,y,v,x,E,_,S,O,$,T,C,A,N,I;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let h,m;switch(n.key){case"team":const D=((w=f==null?void 0:f.assignments)==null?void 0:w.teams)||[],M=((y=p==null?void 0:p.assignments)==null?void 0:y.teams)||[];h=D[0]||"",m=M[0]||"";break;case"size":h=((x=(v=f==null?void 0:f.additional_metrics)==null?void 0:v.feature_size)==null?void 0:x.percent_of_max)||0,m=((_=(E=p==null?void 0:p.additional_metrics)==null?void 0:E.feature_size)==null?void 0:_.percent_of_max)||0;break;case"health_score":h=((O=(S=f==null?void 0:f.additional_metrics)==null?void 0:S.health)==null?void 0:O.overall)||0,m=((T=($=p==null?void 0:p.additional_metrics)==null?void 0:$.health)==null?void 0:T.overall)||0;break;case"test_coverage":h=((A=(C=f==null?void 0:f.additional_metrics)==null?void 0:C.test_coverage)==null?void 0:A.score)??-1,m=((I=(N=p==null?void 0:p.additional_metrics)==null?void 0:N.test_coverage)==null?void 0:I.score)??-1;break;default:h=c,m=d}return h<m?n.direction==="asc"?-1:1:h>m?n.direction==="asc"?1:-1:0}),[e,n,t]),a=l=>{r(s=>({key:l,direction:s.key===l&&s.direction==="asc"?"desc":"asc"}))},o=({title:l,sortKey:s,className:u="",hideOn:c=""})=>g.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider ${c} ${u}`,onClick:()=>a(s),children:g.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return g.jsx("div",{className:"overflow-scroll shadow-sm border border-gray-200 rounded-lg relative",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:g.jsxs("tr",{children:[g.jsx(o,{title:"Feature",sortKey:"name"}),g.jsx(o,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),g.jsx(o,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),g.jsx(o,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),g.jsx(o,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{var p,h,m,w,y,v;const u=((h=(p=s==null?void 0:s.additional_metrics)==null?void 0:p.feature_size)==null?void 0:h.percent_of_max)||0,c=yo(u),f=((w=(m=s==null?void 0:s.additional_metrics)==null?void 0:m.health)==null?void 0:w.overall)||0,d=((v=(y=s==null?void 0:s.additional_metrics)==null?void 0:y.test_coverage)==null?void 0:v.score)||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),g.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[g.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),g.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((x,E)=>g.jsxs(j.Fragment,{children:[g.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:x}),E<s.assignments.teams.length-1&&g.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:g.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},x))})]})]})})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ki,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams||[])]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(x=>g.jsx("div",{className:`h-5 w-1.5 rounded ${x<=Ns(u)?"bg-blue-500":"bg-gray-200"}`},x))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${iA(f)}`,children:g.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),g.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:g.jsx("div",{className:`h-full rounded-full ${bt(d).class}`,style:{width:`${d}%`}})}),g.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(br,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})}const aA=typeof document<"u"?j.useLayoutEffect:()=>{};function Foe(e){const t=b.useRef(null);return aA(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const au=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Mi=e=>e&&"window"in e&&e.window===e?e:au(e).defaultView||window;function Boe(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function zoe(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oA(e){let t=null;return()=>(t==null&&(t=e()),t)}const Uoe=oA(function(){return zoe(/^Mac/i)}),Hoe=oA(function(){return Boe(/Android/i)});function Woe(e){return e.mozInputSource===0&&e.isTrusted?!0:Hoe()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Voe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function lA(e){let t=b.useRef({isFocused:!1,observer:null});aA(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Foe(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Voe("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Koe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=b.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),o=lA(a),l=b.useCallback(s=>{const u=au(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),o(s))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?a:void 0}}}let ou=null,pg=new Set,Nl=new Map,Ji=!1,hg=!1;const Goe={Tab:!0,Escape:!0};function W0(e,t){for(let n of pg)n(e,t)}function qoe(e){return!(e.metaKey||!Uoe()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wf(e){Ji=!0,qoe(e)&&(ou="keyboard",W0("keyboard",e))}function nn(e){ou="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,W0("pointer",e))}function sA(e){Woe(e)&&(Ji=!0,ou="virtual")}function uA(e){e.target===window||e.target===document||(!Ji&&!hg&&(ou="virtual",W0("virtual",e)),Ji=!1,hg=!1)}function cA(){Ji=!1,hg=!0}function mg(e){if(typeof window>"u"||Nl.get(Mi(e)))return;const t=Mi(e),n=au(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wf,!0),n.addEventListener("keyup",Wf,!0),n.addEventListener("click",sA,!0),t.addEventListener("focus",uA,!0),t.addEventListener("blur",cA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",nn,!0),n.addEventListener("pointermove",nn,!0),n.addEventListener("pointerup",nn,!0)):(n.addEventListener("mousedown",nn,!0),n.addEventListener("mousemove",nn,!0),n.addEventListener("mouseup",nn,!0)),t.addEventListener("beforeunload",()=>{fA(e)},{once:!0}),Nl.set(t,{focus:r})}const fA=(e,t)=>{const n=Mi(e),r=au(e);t&&r.removeEventListener("DOMContentLoaded",t),Nl.has(n)&&(n.HTMLElement.prototype.focus=Nl.get(n).focus,r.removeEventListener("keydown",Wf,!0),r.removeEventListener("keyup",Wf,!0),r.removeEventListener("click",sA,!0),n.removeEventListener("focus",uA,!0),n.removeEventListener("blur",cA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",nn,!0),r.removeEventListener("pointermove",nn,!0),r.removeEventListener("pointerup",nn,!0)):(r.removeEventListener("mousedown",nn,!0),r.removeEventListener("mousemove",nn,!0),r.removeEventListener("mouseup",nn,!0)),Nl.delete(n))};function Xoe(e){const t=au(e);let n;return t.readyState!=="loading"?mg(e):(n=()=>{mg(e)},t.addEventListener("DOMContentLoaded",n)),()=>fA(e,n)}typeof document<"u"&&Xoe();function dA(){return ou!=="pointer"}const Yoe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Qoe(e,t,n){var r;const i=typeof window<"u"?Mi(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Mi(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Mi(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Mi(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Yoe.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!Goe[n.key])}function Zoe(e,t,n){mg(),b.useEffect(()=>{let r=(i,a)=>{Qoe(!!(n!=null&&n.isTextInput),i,a)&&e(dA())};return pg.add(r),()=>{pg.delete(r)}},t)}function Joe(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=b.useRef({isFocusWithin:!1}),o=b.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),l=lA(o),s=b.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let Vf=!1,Mh=0;function vg(){Vf=!0,setTimeout(()=>{Vf=!1},50)}function qS(e){e.pointerType==="touch"&&vg()}function ele(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",qS):document.addEventListener("touchend",vg),Mh++,()=>{Mh--,!(Mh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",qS):document.removeEventListener("touchend",vg))}}function V0(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=b.useState(!1),l=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(ele,[]);let{hoverProps:s,triggerHoverEnd:u}=b.useMemo(()=>{let c=(p,h)=>{if(l.pointerType=h,i||h==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let m=p.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),n&&n(!0),o(!0)},f=(p,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let m=p.currentTarget;r&&r({type:"hoverend",target:m,pointerType:h}),n&&n(!1),o(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Vf&&p.pointerType==="mouse"||c(p,p.pointerType)},d.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(d.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=p=>{!l.ignoreEmulatedMouseEvents&&!Vf&&c(p,"mouse"),l.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,l]);return b.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:a}}function K0(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=b.useRef({isFocused:!1,isFocusVisible:t||dA()}),[a,o]=b.useState(!1),[l,s]=b.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=b.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=b.useCallback(p=>{i.current.isFocused=p,o(p),u()},[u]);Zoe(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=Koe({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Joe({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:r?d:f}}var tle=Object.defineProperty,nle=(e,t,n)=>t in e?tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ih=(e,t,n)=>(nle(e,typeof t!="symbol"?t+"":t,n),n);let rle=class{constructor(){Ih(this,"current",this.detect()),Ih(this,"handoffState","pending"),Ih(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Bi=new rle;function mi(e){return Bi.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function fp(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zn(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return fp(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Zn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function sa(){let[e]=b.useState(Zn);return b.useEffect(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{Bi.isServer?b.useEffect(e,t):b.useLayoutEffect(e,t)};function kr(e){let t=b.useRef(e);return he(()=>{t.current=e},[e]),t}let Q=function(e){let t=kr(e);return j.useCallback((...n)=>t.current(...n),[t])};function ile(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ale(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function ole({disabled:e=!1}={}){let t=b.useRef(null),[n,r]=b.useState(!1),i=sa(),a=Q(()=>{t.current=null,r(!1),i.dispose()}),o=Q(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=mi(l.currentTarget);i.addEventListener(s,"pointerup",a,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=ile(u);r(ale(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}let pA=b.createContext(void 0);function lu(){return b.useContext(pA)}function lle({value:e,children:t}){return j.createElement(pA.Provider,{value:e},t)}function gg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function jn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jn),r}var wo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(wo||{}),Vr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Vr||{});function Re(){let e=ule();return b.useCallback(t=>sle({mergeRefs:e,...t}),[e])}function sle({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:l}){l=l??cle;let s=hA(t,e);if(a)return qu(s,n,r,o,l);let u=i??0;if(u&2){let{static:c=!1,...f}=s;if(c)return qu(f,n,r,o,l)}if(u&1){let{unmount:c=!0,...f}=s;return jn(c?0:1,{0(){return null},1(){return qu({...f,hidden:!0,style:{display:"none"}},n,r,o,l)}})}return qu(s,n,r,o,l)}function qu(e,t={},n,r,i){let{as:a=n,children:o,refName:l="ref",...s}=Rh(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},c=typeof o=="function"?o(t):o;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(a===b.Fragment&&(Object.keys(Dr(s)).length>0||Object.keys(Dr(f)).length>0))if(!b.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Dr(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Dr(s)).concat(Object.keys(Dr(f))).map(d=>` - ${d}`).join(`
|
268
|
+
*/var pae=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],dg=pae.join(","),LT=typeof Element>"u",Ls=LT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zf=!LT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uf=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},hae=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},mae=function(t,n,r){if(Uf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(dg));return n&&Ls.call(t,dg)&&i.unshift(t),i=i.filter(r),i},vae=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Uf(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=Ls.call(o,dg);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!Uf(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var p=e(f===!0?o.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:o,candidates:p})}else a.unshift.apply(a,o.children)}}return i},DT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},FT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||hae(t))&&!DT(t)?0:t.tabIndex},gae=function(t,n){var r=FT(t);return r<0&&n&&!DT(t)?0:r},yae=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},BT=function(t){return t.tagName==="INPUT"},xae=function(t){return BT(t)&&t.type==="hidden"},bae=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wae=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},_ae=function(t){if(!t.name)return!0;var n=t.form||zf(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=wae(i,t.form);return!a||a===t},Sae=function(t){return BT(t)&&t.type==="radio"},Eae=function(t){return Sae(t)&&!_ae(t)},Oae=function(t){var n,r=t&&zf(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,l,s;for(a=!!((o=i)!==null&&o!==void 0&&(l=o.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!a&&i;){var u,c,f;r=zf(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return a},kS=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},$ae=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=Ls.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(Ls.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var s=t.parentElement,u=zf(t);if(s&&!s.shadowRoot&&i(s)===!0)return kS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(Oae(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return kS(t);return!1},Pae=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ls.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},jae=function(t,n){return!(n.disabled||Uf(n)||xae(n)||$ae(n,t)||bae(n)||Pae(n))},NS=function(t,n){return!(Eae(n)||FT(n)<0||!jae(t,n))},Tae=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Aae=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,l=o?i.scopeParent:i,s=gae(l,o),u=o?e(i.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:a,tabIndex:s,item:i,isScope:o,content:u})}),r.sort(yae).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},zT=function(t,n){n=n||{};var r;return n.getShadowRoot?r=vae([t],n.includeContainer,{filter:NS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Tae}):r=mae(t,n.includeContainer,NS.bind(null,n)),Aae(r)};function MS(e,t,n){let{reference:r,floating:i}=e;const a=Yi(t),o=IT(t),l=MT(o),s=Xn(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Vn(t)){case"start":p[o]-=d*(n&&u?-1:1);break;case"end":p[o]+=d*(n&&u?-1:1);break}return p}const Cae=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=MS(u,r,s),d=r,p={},h=0;for(let m=0;m<l.length;m++){const{name:w,fn:y}=l[m],{x:g,y:x,data:E,reset:_}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=g??c,f=x??f,p={...p,[w]:{...p[w],...E}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=MS(u,d,s)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function au(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=la(t,e),h=dae(p),w=l[d?f==="floating"?"reference":"floating":f],y=Bf(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Bf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:s}):g);return{top:(y.top-_.top+h.top)/E.y,bottom:(_.bottom-y.bottom+h.bottom)/E.y,left:(y.left-_.left+h.left)/E.x,right:(_.right-y.right+h.right)/E.x}}function kae(e,t,n){return(e?[...n.filter(i=>Vn(i)===e),...n.filter(i=>Vn(i)!==e)]:n.filter(i=>Xn(i)===i)).filter(i=>e?Vn(i)===e||(t?Df(i)!==i:!1):!0)}const Nae=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:l,platform:s,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=AS,autoAlignment:p=!0,...h}=la(e,t),m=f!==void 0||d===AS?kae(f||null,p,d):d,w=await au(t,h),y=((n=o.autoPlacement)==null?void 0:n.index)||0,g=m[y];if(g==null)return{};const x=RT(g,a,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==g)return{reset:{placement:m[0]}};const E=[w[Xn(g)],w[x[0]],w[x[1]]],_=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:g,overflows:E}],S=m[y+1];if(S)return{data:{index:y+1,overflows:_},reset:{placement:S}};const O=_.map(C=>{const A=Vn(C.placement);return[C.placement,A&&c?C.overflows.slice(0,2).reduce((N,I)=>N+I,0):C.overflows[0],C.overflows]}).sort((C,A)=>C[1]-A[1]),T=((i=O.filter(C=>C[2].slice(0,Vn(C[0])?2:3).every(A=>A<=0))[0])==null?void 0:i[0])||O[0][0];return T!==l?{data:{index:y+1,overflows:_},reset:{placement:T}}:{}}}},Mae=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...w}=la(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Xn(i),g=Yi(l),x=Xn(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),_=d||(x||!m?[Ff(l)]:sae(l)),S=h!=="none";!d&&S&&_.push(...cae(l,m,h,E));const O=[l,..._],$=await au(t,w),T=[];let C=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&T.push($[y]),f){const D=RT(i,o,E);T.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:T}],!T.every(D=>D<=0)){var A,N;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,M=O[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let F=(N=C.filter(R=>R.overflows[0]<=0).sort((R,P)=>R.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(p){case"bestFit":{var I;const R=(I=C.filter(P=>{if(S){const k=Yi(P.placement);return k===g||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,B)=>k+B,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:I[0];R&&(F=R);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function Iae(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xn(n),l=Vn(n),s=Yi(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&s?-1:1,f=la(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Rae=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:l}=t,s=await Iae(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:o}}}}},Lae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:y,y:g}=w;return{x:y,y:g}}},...s}=la(e,t),u={x:n,y:r},c=await au(t,s),f=Yi(Xn(i)),d=NT(f);let p=u[d],h=u[f];if(a){const w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",g=p+c[w],x=p-c[y];p=CS(g,p,x)}if(o){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",g=h+c[w],x=h-c[y];h=CS(g,h,x)}const m=l.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:a,[f]:o}}}}}},Dae=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:s=()=>{},...u}=la(e,t),c=await au(t,u),f=Xn(i),d=Vn(i),p=Yi(i)==="y",{width:h,height:m}=a.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,w=d==="end"?"top":"bottom");const g=m-c.top-c.bottom,x=h-c.left-c.right,E=Xi(m-c[w],g),_=Xi(h-c[y],x),S=!t.middlewareData.shift;let O=E,$=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=g),S&&!d){const C=vt(c.left,0),A=vt(c.right,0),N=vt(c.top,0),I=vt(c.bottom,0);p?$=h-2*(C!==0||A!==0?C+A:vt(c.left,c.right)):O=m-2*(N!==0||I!==0?N+I:vt(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:O});const T=await o.getDimensions(l.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function UT(e){const t=pn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=Rs(n)!==a||Rs(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function D0(e){return de(e)?e:e.contextElement}function za(e){const t=D0(e);if(!Vt(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=UT(t);let o=(a?Rs(n.width):n.width)/r,l=(a?Rs(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Fae=Wn(0);function HT(e){const t=Lt(e);return!up()||!t.visualViewport?Fae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=D0(e);let o=Wn(1);t&&(r?de(r)&&(o=za(r)):o=za(e));const l=Bae(a,n,r)?HT(a):Wn(0);let s=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=Lt(a),p=r&&de(r)?Lt(r):r;let h=d,m=ug(h);for(;m&&r&&p!==h;){const w=za(m),y=m.getBoundingClientRect(),g=pn(m),x=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*w.x,E=y.top+(m.clientTop+parseFloat(g.paddingTop))*w.y;s*=w.x,u*=w.y,c*=w.x,f*=w.y,s+=x,u+=E,h=Lt(m),m=ug(h)}}return Bf({width:c,height:f,x:s,y:u})}function F0(e,t){const n=cp(e).scrollLeft;return t?t.left+n:Qi(Qn(e)).left+n}function WT(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:F0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function zae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Qn(r),l=t?sp(t.floating):!1;if(r===o||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=Wn(1);const c=Wn(0),f=Vt(r);if((f||!f&&!a)&&((Ho(r)!=="body"||iu(o))&&(s=cp(r)),Vt(r))){const p=Qi(r);u=za(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=o&&!f&&!a?WT(o,s,!0):Wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function Uae(e){return Array.from(e.getClientRects())}function Hae(e){const t=Qn(e),n=cp(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+F0(e);const l=-n.scrollTop;return pn(r).direction==="rtl"&&(o+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function Wae(e,t){const n=Lt(e),r=Qn(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;const u=up();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l,y:s}}function Vae(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vt(e)?za(e):Wn(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,s=i*a.x,u=r*a.y;return{width:o,height:l,x:s,y:u}}function IS(e,t,n){let r;if(t==="viewport")r=Wae(e,n);else if(t==="document")r=Hae(Qn(e));else if(de(t))r=Vae(t,n);else{const i=HT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bf(r)}function VT(e,t){const n=Pr(e);return n===t||!de(n)||mr(n)?!1:pn(n).position==="fixed"||VT(n,t)}function Kae(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(l=>de(l)&&Ho(l)!=="body"),i=null;const a=pn(e).position==="fixed";let o=a?Pr(e):e;for(;de(o)&&!mr(o);){const l=pn(o),s=L0(o);!s&&l.position==="fixed"&&(i=null),(a?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||iu(o)&&!s&&VT(e,o))?r=r.filter(c=>c!==o):i=l,o=Pr(o)}return t.set(e,r),r}function Gae(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sp(t)?[]:Kae(t,this._c):[].concat(n),r],l=o[0],s=o.reduce((u,c)=>{const f=IS(t,c,i);return u.top=vt(f.top,u.top),u.right=Xi(f.right,u.right),u.bottom=Xi(f.bottom,u.bottom),u.left=vt(f.left,u.left),u},IS(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function qae(e){const{width:t,height:n}=UT(e);return{width:t,height:n}}function Xae(e,t,n){const r=Vt(t),i=Qn(t),a=n==="fixed",o=Qi(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Wn(0);if(r||!r&&!a)if((Ho(t)!=="body"||iu(i))&&(l=cp(t)),r){const d=Qi(t,!0,a,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else i&&(s.x=F0(i));const u=i&&!r&&!a?WT(i,l):Wn(0),c=o.left+l.scrollLeft-s.x-u.x,f=o.top+l.scrollTop-s.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function $h(e){return pn(e).position==="static"}function RS(e,t){if(!Vt(e)||pn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function KT(e,t){const n=Lt(e);if(sp(e))return n;if(!Vt(e)){let i=Pr(e);for(;i&&!mr(i);){if(de(i)&&!$h(i))return i;i=Pr(i)}return n}let r=RS(e,t);for(;r&&Yie(r)&&$h(r);)r=RS(r,t);return r&&mr(r)&&$h(r)&&!L0(r)?n:r||Qie(e)||n}const Yae=async function(e){const t=this.getOffsetParent||KT,n=this.getDimensions,r=await n(e.floating);return{reference:Xae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qae(e){return pn(e).direction==="rtl"}const Zae={convertOffsetParentRelativeRectToViewportRelativeRect:zae,getDocumentElement:Qn,getClippingRect:Gae,getOffsetParent:KT,getElementRects:Yae,getClientRects:Uae,getDimensions:qae,getScale:za,isElement:de,isRTL:Qae};function GT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jae(e,t){let n=null,r;const i=Qn(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const h=Xu(f),m=Xu(i.clientWidth-(c+d)),w=Xu(i.clientHeight-(f+p)),y=Xu(c),x={rootMargin:-h+"px "+-m+"px "+-w+"px "+-y+"px",threshold:vt(0,Xi(1,s))||1};let E=!0;function _(S){const O=S[0].intersectionRatio;if(O!==s){if(!E)return o();O?o(!1,O):r=setTimeout(()=>{o(!1,1e-7)},1e3)}O===1&&!GT(u,e.getBoundingClientRect())&&o(),E=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return o(!0),a}function qT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=D0(e),c=i||a?[...u?ri(u):[],...ri(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&l?Jae(u,n):null;let d=-1,p=null;o&&(p=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let h,m=s?Qi(e):null;s&&w();function w(){const y=Qi(e);m&&!GT(m,y)&&n(),m=y,h=requestAnimationFrame(w)}return n(),()=>{var y;c.forEach(g=>{i&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const Ph=au,eoe=Rae,toe=Nae,noe=Lae,roe=Mae,ioe=Dae,aoe=(e,t,n)=>{const r=new Map,i={platform:Zae,...n},a={...i.platform,_c:r};return Cae(e,t,{...i,platform:a})};var hc=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Hf(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function XT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function LS(e,t){const n=XT(e);return Math.round(t*n)/n}function jh(e){const t=b.useRef(e);return hc(()=>{t.current=e}),t}function YT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=b.useState(r);Hf(d,r)||p(r);const[h,m]=b.useState(null),[w,y]=b.useState(null),g=b.useCallback(P=>{P!==S.current&&(S.current=P,m(P))},[]),x=b.useCallback(P=>{P!==O.current&&(O.current=P,y(P))},[]),E=a||h,_=o||w,S=b.useRef(null),O=b.useRef(null),$=b.useRef(c),T=s!=null,C=jh(s),A=jh(i),N=jh(u),I=b.useCallback(()=>{if(!S.current||!O.current)return;const P={placement:t,strategy:n,middleware:d};A.current&&(P.platform=A.current),aoe(S.current,O.current,P).then(k=>{const B={...k,isPositioned:N.current!==!1};D.current&&!Hf($.current,B)&&($.current=B,Ht.flushSync(()=>{f(B)}))})},[d,t,n,A,N]);hc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=b.useRef(!1);hc(()=>(D.current=!0,()=>{D.current=!1}),[]),hc(()=>{if(E&&(S.current=E),_&&(O.current=_),E&&_){if(C.current)return C.current(E,_,I);I()}},[E,_,I,C,T]);const M=b.useMemo(()=>({reference:S,floating:O,setReference:g,setFloating:x}),[g,x]),F=b.useMemo(()=>({reference:E,floating:_}),[E,_]),R=b.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const k=LS(F.floating,c.x),B=LS(F.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+B+"px)",...XT(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:B}},[n,l,F.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:I,refs:M,elements:F,floatingStyles:R}),[c,I,M,F,R])}const B0=(e,t)=>({...eoe(e),options:[e,t]}),QT=(e,t)=>({...noe(e),options:[e,t]}),ooe=(e,t)=>({...roe(e),options:[e,t]}),loe=(e,t)=>({...ioe(e),options:[e,t]}),soe=(e,t)=>({...toe(e),options:[e,t]}),ZT={...mc},uoe=ZT.useInsertionEffect,coe=uoe||(e=>e());function ir(e){const t=b.useRef(()=>{});return coe(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Kn=typeof document<"u"?b.useLayoutEffect:b.useEffect;let DS=!1,foe=0;const FS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+foe++;function doe(){const[e,t]=b.useState(()=>DS?FS():void 0);return Kn(()=>{e==null&&t(FS())},[]),b.useEffect(()=>{DS=!0},[]),e}const poe=ZT.useId,z0=poe||doe;function hoe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const moe=b.createContext(null),voe=b.createContext(null),U0=()=>{var e;return((e=b.useContext(moe))==null?void 0:e.id)||null},H0=()=>b.useContext(voe);function ou(e){return"data-floating-ui-"+e}function Th(e){const t=b.useRef(e);return Kn(()=>{t.current=e}),t}const BS=ou("safe-polygon");function Ah(e,t,n){return n&&!fg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function goe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:l=!0,delay:s=0,handleClose:u=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=t,p=H0(),h=U0(),m=Th(u),w=Th(s),y=Th(n),g=b.useRef(),x=b.useRef(-1),E=b.useRef(),_=b.useRef(-1),S=b.useRef(!0),O=b.useRef(!1),$=b.useRef(()=>{}),T=b.useRef(!1),C=b.useCallback(()=>{var R;const P=(R=i.current.openEvent)==null?void 0:R.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[i]);b.useEffect(()=>{if(!l)return;function R(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0,T.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[l,a]),b.useEffect(()=>{if(!l||!m.current||!n)return;function R(k){C()&&r(!1,k,"hover")}const P=Vr(o.floating).documentElement;return P.addEventListener("mouseleave",R),()=>{P.removeEventListener("mouseleave",R)}},[o.floating,n,r,l,m,C]);const A=b.useCallback(function(R,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const B=Ah(w.current,"close",g.current);B&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,R,k),B)):P&&(clearTimeout(x.current),r(!1,R,k))},[w,r]),N=ir(()=>{$.current(),E.current=void 0}),I=ir(()=>{if(O.current){const R=Vr(o.floating).body;R.style.pointerEvents="",R.removeAttribute(BS),O.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);b.useEffect(()=>{if(!l)return;function R(L){if(clearTimeout(x.current),S.current=!1,c&&!fg(g.current)||f>0&&!Ah(w.current,"open"))return;const U=Ah(w.current,"open",g.current);U?x.current=window.setTimeout(()=>{y.current||r(!0,L,"hover")},U):n||r(!0,L,"hover")}function P(L){if(D())return;$.current();const U=Vr(o.floating);if(clearTimeout(_.current),T.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(x.current),E.current=m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L,!0,"safe-polygon")}});const re=E.current;U.addEventListener("mousemove",re),$.current=()=>{U.removeEventListener("mousemove",re)};return}(g.current==="touch"?!bo(o.floating,L.relatedTarget):!0)&&A(L)}function k(L){D()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L)}})(L))}if(de(o.domReference)){var B;const L=o.domReference;return n&&L.addEventListener("mouseleave",k),(B=o.floating)==null||B.addEventListener("mouseleave",k),d&&L.addEventListener("mousemove",R,{once:!0}),L.addEventListener("mouseenter",R),L.addEventListener("mouseleave",P),()=>{var U;n&&L.removeEventListener("mouseleave",k),(U=o.floating)==null||U.removeEventListener("mouseleave",k),d&&L.removeEventListener("mousemove",R),L.removeEventListener("mouseenter",R),L.removeEventListener("mouseleave",P)}}},[o,l,e,c,f,d,A,N,I,r,n,y,p,w,m,i,D]),Kn(()=>{var R;if(l&&n&&(R=m.current)!=null&&R.__options.blockPointerEvents&&C()){O.current=!0;const k=o.floating;if(de(o.domReference)&&k){var P;const B=Vr(o.floating).body;B.setAttribute(BS,"");const L=o.domReference,U=p==null||(P=p.nodesRef.current.find(V=>V.id===h))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),B.style.pointerEvents="none",L.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{B.style.pointerEvents="",L.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,h,o,p,m,C]),Kn(()=>{n||(g.current=void 0,T.current=!1,N(),I())},[n,N,I]),b.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(_.current),I()},[l,o.domReference,N,I]);const M=b.useMemo(()=>{function R(P){g.current=P.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(P){const{nativeEvent:k}=P;function B(){!S.current&&!y.current&&r(!0,k,"hover")}c&&!fg(g.current)||n||f===0||T.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(_.current),g.current==="touch"?B():(T.current=!0,_.current=window.setTimeout(B,f)))}}},[c,r,n,y,f]),F=b.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(R){D()||A(R.nativeEvent,!1)}}),[A,D]);return b.useMemo(()=>l?{reference:M,floating:F}:{},[l,M,F])}function Ch(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var l;return i.parentId===o.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const JT=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eA(e,t){const n=zT(e,JT());t==="prev"&&n.reverse();const r=n.indexOf(cg(Vr(e)));return n.slice(r+1)[0]}function yoe(){return eA(document.body,"next")}function xoe(){return eA(document.body,"prev")}function kh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!bo(n,r)}function boe(e){zT(e,JT()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zS(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const tA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let woe;function US(e){e.key==="Tab"&&(e.target,clearTimeout(woe))}const HS=b.forwardRef(function(t,n){const[r,i]=b.useState();Kn(()=>(kT()&&i("button"),document.addEventListener("keydown",US),()=>{document.removeEventListener("keydown",US)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ou("focus-guard")]:"",style:tA};return v.jsx("span",{...t,...a})}),nA=b.createContext(null),WS=ou("portal");function _oe(e){e===void 0&&(e={});const{id:t,root:n}=e,r=z0(),i=Eoe(),[a,o]=b.useState(null),l=b.useRef(null);return Kn(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{l.current=null})},[a]),Kn(()=>{if(!r||l.current)return;const s=t?document.getElementById(t):null;if(!s)return;const u=document.createElement("div");u.id=r,u.setAttribute(WS,""),s.appendChild(u),l.current=u,o(u)},[t,r]),Kn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!de(s)&&(s=s.current),s=s||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,s.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(WS,""),s=u||s,s.appendChild(c),l.current=c,o(c)},[t,n,r,i]),a}function Soe(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,a=_oe({id:n,root:r}),[o,l]=b.useState(null),s=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),d=o==null?void 0:o.modal,p=o==null?void 0:o.open,h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return b.useEffect(()=>{if(!a||!i||d)return;function m(w){a&&kh(w)&&(w.type==="focusin"?zS:boe)(a)}return a.addEventListener("focusin",m,!0),a.addEventListener("focusout",m,!0),()=>{a.removeEventListener("focusin",m,!0),a.removeEventListener("focusout",m,!0)}},[a,i,d]),b.useEffect(()=>{a&&(p||zS(a))},[p,a]),v.jsxs(nA.Provider,{value:b.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:l}),[i,a]),children:[h&&a&&v.jsx(HS,{"data-type":"outside",ref:s,onFocus:m=>{if(kh(m,a)){var w;(w=c.current)==null||w.focus()}else{const y=xoe()||(o==null?void 0:o.domReference);y==null||y.focus()}}}),h&&a&&v.jsx("span",{"aria-owns":a.id,style:tA}),a&&Ht.createPortal(t,a),h&&a&&v.jsx(HS,{"data-type":"outside",ref:u,onFocus:m=>{if(kh(m,a)){var w;(w=f.current)==null||w.focus()}else{const y=yoe()||(o==null?void 0:o.domReference);y==null||y.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,m.nativeEvent,"focus-out"))}}})]})}const Eoe=()=>b.useContext(nA),Ooe="data-floating-ui-focusable",$oe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Poe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},VS=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function joe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,m=H0(),w=ir(typeof s=="function"?s:()=>!1),y=typeof s=="function"?w:s,g=b.useRef(!1),x=b.useRef(!1),{escapeKey:E,outsidePress:_}=VS(p),{escapeKey:S,outsidePress:O}=VS(h),$=b.useRef(!1),T=ir(M=>{var F;if(!n||!o||!l||M.key!=="Escape"||$.current)return;const R=(F=a.current.floatingContext)==null?void 0:F.nodeId,P=m?Ch(m.nodesRef.current,R):[];if(!E&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(B=>{var L;if((L=B.context)!=null&&L.open&&!B.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,tae(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var F;const R=()=>{var P;T(M),(P=ma(M))==null||P.removeEventListener("keydown",R)};(F=ma(M))==null||F.addEventListener("keydown",R)}),A=ir(M=>{var F;const R=g.current;g.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||R||typeof y=="function"&&!y(M))return;const k=ma(M),B="["+ou("inert")+"]",L=Vr(i.floating).querySelectorAll(B);let U=de(k)?k:null;for(;U&&!mr(U);){const J=Pr(U);if(mr(J)||!de(J))break;U=J}if(L.length&&de(k)&&!nae(k)&&!bo(k,i.floating)&&Array.from(L).every(J=>!bo(U,J)))return;if(Vt(k)&&D){const J=mr(k),Ce=pn(k),Oe=/auto|scroll/,K=J||Oe.test(Ce.overflowX),Z=J||Oe.test(Ce.overflowY),ee=K&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Z&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,ke=Ce.direction==="rtl",oe=H&&(ke?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),He=ee&&M.offsetY>k.clientHeight;if(oe||He)return}const V=(F=a.current.floatingContext)==null?void 0:F.nodeId,re=m&&Ch(m.nodesRef.current,V).some(J=>{var Ce;return Oh(M,(Ce=J.context)==null?void 0:Ce.elements.floating)});if(Oh(M,i.floating)||Oh(M,i.domReference)||re)return;const ie=m?Ch(m.nodesRef.current,V):[];if(ie.length>0){let J=!0;if(ie.forEach(Ce=>{var Oe;if((Oe=Ce.context)!=null&&Oe.open&&!Ce.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,M,"outside-press")}),N=ir(M=>{var F;const R=()=>{var P;A(M),(P=ma(M))==null||P.removeEventListener(u,R)};(F=ma(M))==null||F.addEventListener(u,R)});b.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=E,a.current.__outsidePressBubbles=_;let M=-1;function F(L){r(!1,L,"ancestor-scroll")}function R(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},up()?5:0)}const k=Vr(i.floating);l&&(k.addEventListener("keydown",S?C:T,S),k.addEventListener("compositionstart",R),k.addEventListener("compositionend",P)),y&&k.addEventListener(u,O?N:A,O);let B=[];return d&&(de(i.domReference)&&(B=ri(i.domReference)),de(i.floating)&&(B=B.concat(ri(i.floating))),!de(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(ri(i.reference.contextElement)))),B=B.filter(L=>{var U;return L!==((U=k.defaultView)==null?void 0:U.visualViewport)}),B.forEach(L=>{L.addEventListener("scroll",F,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",S?C:T,S),k.removeEventListener("compositionstart",R),k.removeEventListener("compositionend",P)),y&&k.removeEventListener(u,O?N:A,O),B.forEach(L=>{L.removeEventListener("scroll",F)}),window.clearTimeout(M)}},[a,i,l,y,u,n,r,d,o,E,_,T,S,C,A,O,N]),b.useEffect(()=>{g.current=!1},[y,u]);const I=b.useMemo(()=>({onKeyDown:T,...c&&{[$oe[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[T,r,c,f]),D=b.useMemo(()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Poe[u]]:()=>{g.current=!0}}),[T,u]);return b.useMemo(()=>o?{reference:I,floating:D}:{},[o,I,D])}function Toe(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=z0(),a=b.useRef({}),[o]=b.useState(()=>hoe()),l=U0()!=null,[s,u]=b.useState(r.reference),c=ir((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Aoe(e){e===void 0&&(e={});const{nodeId:t}=e,n=Toe({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||a,f=b.useRef(null),d=H0();Kn(()=>{c&&(f.current=c)},[c]);const p=YT({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),y=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=b.useMemo(()=>({...p,...r,refs:w,elements:y,nodeId:t}),[p,w,y,t,r]);return Kn(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=g)}),b.useMemo(()=>({...p,context:g,refs:w,elements:y}),[p,w,y,g])}function Coe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:l=!0,visibleOnly:s=!0}=t,u=b.useRef(!1),c=b.useRef(),f=b.useRef(!0);b.useEffect(()=>{if(!l)return;const p=Lt(o.domReference);function h(){!n&&Vt(o.domReference)&&o.domReference===cg(Vr(o.domReference))&&(u.current=!0)}function m(){f.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[o.domReference,n,l]),b.useEffect(()=>{if(!l)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),b.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=b.useMemo(()=>({onPointerDown(p){Zie(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ma(p.nativeEvent);if(s&&de(h))try{if(kT()&&Jie())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!f.current&&!iae(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,w=de(h)&&h.hasAttribute(ou("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var y;const g=cg(o.domReference?o.domReference.ownerDocument:document);!h&&g===o.domReference||bo((y=a.current.floatingContext)==null?void 0:y.refs.floating.current,g)||bo(o.domReference,g)||w||r(!1,m,"focus")})}}),[a,o.domReference,r,s]);return b.useMemo(()=>l?{reference:d}:{},[l,d])}const KS="active",GS="selected";function Nh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[KS]:o,[GS]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[Ooe]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[KS,GS].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else o[u]=c}),o),{})}}function koe(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Nh(l,e,"reference"),t),a=b.useCallback(l=>Nh(l,e,"floating"),n),o=b.useCallback(l=>Nh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const Noe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Moe(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,l=(n=Noe.get(o))!=null?n:o,s=z0(),c=U0()!=null,f=b.useMemo(()=>l==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:s},...l==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[l,i,c,r,s,o]),d=b.useMemo(()=>{const h={id:i,...l&&{role:l}};return l==="tooltip"||o==="label"?h:{...h,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,o]),p=b.useCallback(h=>{let{active:m,selected:w}=h;const y={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...y,"aria-selected":m&&w};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,o]);return b.useMemo(()=>a?{reference:f,floating:d,item:p}:{},[a,f,d,p])}const wo=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded-sm p-2",children:n})=>{const[r,i]=b.useState(!1),{refs:a,floatingStyles:o,context:l}=Aoe({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:qT,middleware:[B0(5),soe({fallbackAxisSideDirection:"start"}),QT()]}),s=goe(l,{move:!1}),u=Coe(l),c=joe(l),f=Moe(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=koe([s,u,c,f]),h=j.Children.toArray(n).find(w=>w.type===si),m=j.Children.toArray(n).find(w=>w.type===Zi);return v.jsxs(v.Fragment,{children:[h&&v.jsx("div",{ref:a.setReference,...d(),className:"relative",children:b.cloneElement(h,{ref:a.setReference})}),v.jsx(Soe,{children:r&&m&&v.jsx("div",{className:`${e} ${t}`,ref:a.setFloating,style:o,...p(),children:m})})]})},si=b.forwardRef(({children:e,...t},n)=>v.jsx("button",{ref:n,...t,children:e}));si.displayName="TooltipButton";const Zi=({children:e,...t})=>v.jsx("div",{...t,children:e}),Ioe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.feature_size.percent_of_max||0;if(o!=null){const l=xo(o);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=wr.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[In(n.xs).hex,In(n.s).hex,In(n.m).hex,In(n.l).hex,In(n.xl).hex][o]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(q$,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),v.jsxs(wo,{width:"w-72",children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xs).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),v.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.s).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.m).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.l).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xl).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),v.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},rt={needsAttention:50,needsImprovement:80,healthy:100},wt=e=>e?e<=rt.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=rt.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},rA=e=>e<rt.needsAttention?"needsAttention":e<rt.needsImprovement?"needsImprovement":"healthy",iA=e=>e?e<rt.needsAttention?"bg-red-100/60":e<rt.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",Roe=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall||0;if(a!=null){const o=rA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Ey,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),v.jsxs(wo,{children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),v.jsxs("p",{className:"text-xs text-gray-500",children:[v.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),v.jsxs("p",{className:"text-xs text-gray-500",children:[v.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.healthy).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},Loe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score||0;if(o!=null){const l=PT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=wr.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(_y,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),v.jsxs(wo,{children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.poor).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.fair).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.good).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function Doe({features:e,searchTerm:t=""}){const[n,r]=b.useState({key:null,direction:"asc"}),i=j.useMemo(()=>Object.entries(e).filter(([s,u])=>{var f,d;const c=t.toLowerCase();return s.toLowerCase().includes(c)||((d=(f=u.assignments)==null?void 0:f.teams)==null?void 0:d.some(p=>p.toLowerCase().includes(c)))}).sort((s,u)=>{var w,y,g,x,E,_,S,O,$,T,C,A,N,I,D,M;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let h,m;switch(n.key){case"team":h=((y=(w=f==null?void 0:f.assignments)==null?void 0:w.teams)==null?void 0:y[0])||"",m=((x=(g=p==null?void 0:p.assignments)==null?void 0:g.teams)==null?void 0:x[0])||"";break;case"size":h=((_=(E=f==null?void 0:f.additional_metrics)==null?void 0:E.feature_size)==null?void 0:_.percent_of_max)||0,m=((O=(S=p==null?void 0:p.additional_metrics)==null?void 0:S.feature_size)==null?void 0:O.percent_of_max)||0;break;case"health_score":h=((T=($=f==null?void 0:f.additional_metrics)==null?void 0:$.health)==null?void 0:T.overall)||0,m=((A=(C=p==null?void 0:p.additional_metrics)==null?void 0:C.health)==null?void 0:A.overall)||0;break;case"test_coverage":h=((I=(N=f==null?void 0:f.additional_metrics)==null?void 0:N.test_coverage)==null?void 0:I.score)??-1,m=((M=(D=p==null?void 0:p.additional_metrics)==null?void 0:D.test_coverage)==null?void 0:M.score)??-1;break;default:h=c,m=d}return h<m?n.direction==="asc"?-1:1:h>m?n.direction==="asc"?1:-1:0}),[e,n,t]),a=l=>{r(s=>({key:l,direction:s.key===l&&s.direction==="asc"?"desc":"asc"}))},o=({title:l,sortKey:s,className:u="",hideOn:c=""})=>v.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider ${c} ${u}`,onClick:()=>a(s),children:v.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return v.jsx("div",{className:"overflow-scroll shadow-xs border border-gray-200 rounded-lg relative",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:v.jsxs("tr",{children:[v.jsx(o,{title:"Feature",sortKey:"name"}),v.jsx(o,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),v.jsx(o,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),v.jsx(o,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),v.jsx(o,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{var p,h,m,w,y,g;const u=((h=(p=s==null?void 0:s.additional_metrics)==null?void 0:p.feature_size)==null?void 0:h.percent_of_max)||0,c=xo(u),f=((w=(m=s==null?void 0:s.additional_metrics)==null?void 0:m.health)==null?void 0:w.overall)||0,d=((g=(y=s==null?void 0:s.additional_metrics)==null?void 0:y.test_coverage)==null?void 0:g.score)||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),v.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[v.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),v.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((x,E)=>v.jsxs(j.Fragment,{children:[v.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:x}),E<s.assignments.teams.length-1&&v.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:v.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},x))})]})]})})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams||[])]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(x=>v.jsx("div",{className:`h-5 w-1.5 rounded ${x<=Is(u)?"bg-blue-500":"bg-gray-200"}`},x))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${iA(f)}`,children:v.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),v.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:v.jsx("div",{className:`h-full rounded-full ${bt(d).class}`,style:{width:`${d}%`}})}),v.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(br,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})}const aA=typeof document<"u"?j.useLayoutEffect:()=>{};function Foe(e){const t=b.useRef(null);return aA(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const lu=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ii=e=>e&&"window"in e&&e.window===e?e:lu(e).defaultView||window;function Boe(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function zoe(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oA(e){let t=null;return()=>(t==null&&(t=e()),t)}const Uoe=oA(function(){return zoe(/^Mac/i)}),Hoe=oA(function(){return Boe(/Android/i)});function Woe(e){return e.mozInputSource===0&&e.isTrusted?!0:Hoe()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Voe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function lA(e){let t=b.useRef({isFocused:!1,observer:null});aA(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Foe(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Voe("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Koe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=b.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),o=lA(a),l=b.useCallback(s=>{const u=lu(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),o(s))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?a:void 0}}}let su=null,pg=new Set,Il=new Map,Ji=!1,hg=!1;const Goe={Tab:!0,Escape:!0};function W0(e,t){for(let n of pg)n(e,t)}function qoe(e){return!(e.metaKey||!Uoe()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wf(e){Ji=!0,qoe(e)&&(su="keyboard",W0("keyboard",e))}function nn(e){su="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,W0("pointer",e))}function sA(e){Woe(e)&&(Ji=!0,su="virtual")}function uA(e){e.target===window||e.target===document||(!Ji&&!hg&&(su="virtual",W0("virtual",e)),Ji=!1,hg=!1)}function cA(){Ji=!1,hg=!0}function mg(e){if(typeof window>"u"||Il.get(Ii(e)))return;const t=Ii(e),n=lu(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wf,!0),n.addEventListener("keyup",Wf,!0),n.addEventListener("click",sA,!0),t.addEventListener("focus",uA,!0),t.addEventListener("blur",cA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",nn,!0),n.addEventListener("pointermove",nn,!0),n.addEventListener("pointerup",nn,!0)):(n.addEventListener("mousedown",nn,!0),n.addEventListener("mousemove",nn,!0),n.addEventListener("mouseup",nn,!0)),t.addEventListener("beforeunload",()=>{fA(e)},{once:!0}),Il.set(t,{focus:r})}const fA=(e,t)=>{const n=Ii(e),r=lu(e);t&&r.removeEventListener("DOMContentLoaded",t),Il.has(n)&&(n.HTMLElement.prototype.focus=Il.get(n).focus,r.removeEventListener("keydown",Wf,!0),r.removeEventListener("keyup",Wf,!0),r.removeEventListener("click",sA,!0),n.removeEventListener("focus",uA,!0),n.removeEventListener("blur",cA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",nn,!0),r.removeEventListener("pointermove",nn,!0),r.removeEventListener("pointerup",nn,!0)):(r.removeEventListener("mousedown",nn,!0),r.removeEventListener("mousemove",nn,!0),r.removeEventListener("mouseup",nn,!0)),Il.delete(n))};function Xoe(e){const t=lu(e);let n;return t.readyState!=="loading"?mg(e):(n=()=>{mg(e)},t.addEventListener("DOMContentLoaded",n)),()=>fA(e,n)}typeof document<"u"&&Xoe();function dA(){return su!=="pointer"}const Yoe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Qoe(e,t,n){var r;const i=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ii(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Yoe.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!Goe[n.key])}function Zoe(e,t,n){mg(),b.useEffect(()=>{let r=(i,a)=>{Qoe(!!(n!=null&&n.isTextInput),i,a)&&e(dA())};return pg.add(r),()=>{pg.delete(r)}},t)}function Joe(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=b.useRef({isFocusWithin:!1}),o=b.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),l=lA(o),s=b.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let Vf=!1,Mh=0;function vg(){Vf=!0,setTimeout(()=>{Vf=!1},50)}function qS(e){e.pointerType==="touch"&&vg()}function ele(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",qS):document.addEventListener("touchend",vg),Mh++,()=>{Mh--,!(Mh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",qS):document.removeEventListener("touchend",vg))}}function V0(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=b.useState(!1),l=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(ele,[]);let{hoverProps:s,triggerHoverEnd:u}=b.useMemo(()=>{let c=(p,h)=>{if(l.pointerType=h,i||h==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let m=p.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),n&&n(!0),o(!0)},f=(p,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let m=p.currentTarget;r&&r({type:"hoverend",target:m,pointerType:h}),n&&n(!1),o(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Vf&&p.pointerType==="mouse"||c(p,p.pointerType)},d.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(d.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=p=>{!l.ignoreEmulatedMouseEvents&&!Vf&&c(p,"mouse"),l.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,l]);return b.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:a}}function K0(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=b.useRef({isFocused:!1,isFocusVisible:t||dA()}),[a,o]=b.useState(!1),[l,s]=b.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=b.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=b.useCallback(p=>{i.current.isFocused=p,o(p),u()},[u]);Zoe(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=Koe({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Joe({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:r?d:f}}var tle=Object.defineProperty,nle=(e,t,n)=>t in e?tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ih=(e,t,n)=>(nle(e,typeof t!="symbol"?t+"":t,n),n);let rle=class{constructor(){Ih(this,"current",this.detect()),Ih(this,"handoffState","pending"),Ih(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},zi=new rle;function vi(e){return zi.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function fp(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zn(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return fp(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Zn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function sa(){let[e]=b.useState(Zn);return b.useEffect(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{zi.isServer?b.useEffect(e,t):b.useLayoutEffect(e,t)};function Nr(e){let t=b.useRef(e);return he(()=>{t.current=e},[e]),t}let Q=function(e){let t=Nr(e);return j.useCallback((...n)=>t.current(...n),[t])};function ile(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ale(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function ole({disabled:e=!1}={}){let t=b.useRef(null),[n,r]=b.useState(!1),i=sa(),a=Q(()=>{t.current=null,r(!1),i.dispose()}),o=Q(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=vi(l.currentTarget);i.addEventListener(s,"pointerup",a,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=ile(u);r(ale(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}let pA=b.createContext(void 0);function uu(){return b.useContext(pA)}function lle({value:e,children:t}){return j.createElement(pA.Provider,{value:e},t)}function gg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function jn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jn),r}var _o=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_o||{}),Kr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Kr||{});function Re(){let e=ule();return b.useCallback(t=>sle({mergeRefs:e,...t}),[e])}function sle({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:l}){l=l??cle;let s=hA(t,e);if(a)return Yu(s,n,r,o,l);let u=i??0;if(u&2){let{static:c=!1,...f}=s;if(c)return Yu(f,n,r,o,l)}if(u&1){let{unmount:c=!0,...f}=s;return jn(c?0:1,{0(){return null},1(){return Yu({...f,hidden:!0,style:{display:"none"}},n,r,o,l)}})}return Yu(s,n,r,o,l)}function Yu(e,t={},n,r,i){let{as:a=n,children:o,refName:l="ref",...s}=Rh(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},c=typeof o=="function"?o(t):o;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(a===b.Fragment&&(Object.keys(Fr(s)).length>0||Object.keys(Fr(f)).length>0))if(!b.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Fr(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Fr(s)).concat(Object.keys(Fr(f))).map(d=>` - ${d}`).join(`
|
269
269
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
270
270
|
`)].join(`
|
271
|
-
`))}else{let d=c.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>gg(p(...y),s.className):gg(p,s.className),m=h?{className:h}:{},w=hA(c.props,Dr(Rh(s,["ref"])));for(let y in f)y in w&&delete f[y];return b.cloneElement(c,Object.assign({},w,f,u,{ref:i(fle(c),u.ref)},m))}return b.createElement(a,Object.assign({},Rh(s,["ref"]),a!==b.Fragment&&u,a!==b.Fragment&&f),c)}function ule(){let e=b.useRef([]),t=b.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function cle(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function hA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var a;return(a=i==null?void 0:i.preventDefault)==null?void 0:a.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let l of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return t}function dp(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let a=n[r];for(let o of a)o==null||o(...i)}});return t}function Ee(e){var t;return Object.assign(b.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Dr(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function fle(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function dle(e,t,n){let[r,i]=b.useState(n),a=e!==void 0,o=b.useRef(a),l=b.useRef(!1),s=b.useRef(!1);return a&&!o.current&&!l.current?(l.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!s.current&&(s.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Q(u=>(a||i(u),t==null?void 0:t(u)))]}function ple(e){let[t]=b.useState(e);return t}function mA(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))gA(n,vA(t,r),i);return n}function vA(e,t){return e?e+"["+t+"]":t}function gA(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())gA(e,vA(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):mA(n,t,e)}function hle(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let mle="span";var ea=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ea||{});function vle(e,t){var n;let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Re()({ourProps:a,theirProps:i,slot:{},defaultTag:mle,name:"Hidden"})}let _o=Ee(vle),yA=b.createContext(null);function gle(e){let[t,n]=b.useState(null);return j.createElement(yA.Provider,{value:{target:t}},e.children,j.createElement(_o,{features:ea.Hidden,ref:n}))}function yle({children:e}){let t=b.useContext(yA);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Ht.createPortal(j.createElement(j.Fragment,null,e),n):null}function xle({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[a,o]=b.useState(null),l=sa();return b.useEffect(()=>{if(r&&a)return l.addEventListener(a,"reset",r)},[a,t,r]),j.createElement(yle,null,j.createElement(ble,{setForm:o,formId:t}),mA(e).map(([s,u])=>j.createElement(_o,{features:ea.Hidden,...Dr({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function ble({setForm:e,formId:t}){return b.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(_o,{features:ea.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let xA=b.createContext(void 0);function bA(){return b.useContext(xA)}function wle({id:e,children:t}){return j.createElement(xA.Provider,{value:e},t)}function G0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&_le(n)?!1:r}function _le(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let wA=Symbol();function Sle(e,t=!0){return Object.assign(e,{[wA]:t})}function ot(...e){let t=b.useRef(e);b.useEffect(()=>{t.current=e},[e]);let n=Q(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[wA]))?void 0:n}let pp=b.createContext(null);pp.displayName="DescriptionContext";function _A(){let e=b.useContext(pp);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,_A),t}return e}function Ele(){var e,t;return(t=(e=b.useContext(pp))==null?void 0:e.value)!=null?t:void 0}function su(){let[e,t]=b.useState([]);return[e.length>0?e.join(" "):void 0,b.useMemo(()=>function(n){let r=Q(a=>(t(o=>[...o,a]),()=>t(o=>{let l=o.slice(),s=l.indexOf(a);return s!==-1&&l.splice(s,1),l}))),i=b.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return j.createElement(pp.Provider,{value:i},n.children)},[t])]}let Ole="p";function $le(e,t){let n=b.useId(),r=lu(),{id:i=`headlessui-description-${n}`,...a}=e,o=_A(),l=ot(t);he(()=>o.register(i),[i,o.register]);let s=r||!1,u=b.useMemo(()=>({...o.slot,disabled:s}),[o.slot,s]),c={ref:l,...o.props,id:i};return Re()({ourProps:c,theirProps:a,slot:u,defaultTag:Ole,name:o.name||"Description"})}let Ple=Ee($le),SA=Object.assign(Ple,{});var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});let hp=b.createContext(null);hp.displayName="LabelContext";function q0(){let e=b.useContext(hp);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,q0),t}return e}function EA(e){var t,n,r;let i=(n=(t=b.useContext(hp))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function uu({inherit:e=!1}={}){let t=EA(),[n,r]=b.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,b.useMemo(()=>function(a){let o=Q(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=b.useMemo(()=>({register:o,slot:a.slot,name:a.name,props:a.props,value:a.value}),[o,a.slot,a.name,a.props,a.value]);return j.createElement(hp.Provider,{value:l},a.children)},[r])]}let jle="label";function Tle(e,t){var n;let r=b.useId(),i=q0(),a=bA(),o=lu(),{id:l=`headlessui-label-${r}`,htmlFor:s=a??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=ot(t);he(()=>i.register(l),[l,i.register]);let d=Q(w=>{let y=w.currentTarget;if(y instanceof HTMLLabelElement&&w.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(w),y instanceof HTMLLabelElement){let v=document.getElementById(y.htmlFor);if(v){let x=v.getAttribute("disabled");if(x==="true"||x==="")return;let E=v.getAttribute("aria-disabled");if(E==="true"||E==="")return;(v instanceof HTMLInputElement&&(v.type==="radio"||v.type==="checkbox")||v.role==="radio"||v.role==="checkbox"||v.role==="switch")&&v.click(),v.focus({preventScroll:!0})}}}),p=o||!1,h=b.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),m={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),Re()({ourProps:m,theirProps:c,slot:h,defaultTag:s?jle:"div",name:i.name||"Label"})}let Ale=Ee(Tle),Cle=Object.assign(Ale,{}),kle=b.createContext(()=>{});function Nle({value:e,children:t}){return j.createElement(kle.Provider,{value:e},t)}function Mle(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Ile(e=Mle){return b.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Rle(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Lle(e,t=!1){let[n,r]=b.useReducer(()=>({}),{}),i=b.useMemo(()=>Rle(e),[e,n]);return he(()=>{if(!e)return;let a=new ResizeObserver(r);return a.observe(e),()=>{a.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Dle=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function OA(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(l=>l()))}}}function $A(e){return b.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let Fle=new Dle(()=>OA(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Ho(e,t){let n=Fle.get(t),r=b.useId(),i=$A(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let a=i.indexOf(r),o=i.length;return a===-1&&(a=o,o+=1),a===o-1}let yg=new Map,Ml=new Map;function XS(e){var t;let n=(t=Ml.get(e))!=null?t:0;return Ml.set(e,n+1),n!==0?()=>YS(e):(yg.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>YS(e))}function YS(e){var t;let n=(t=Ml.get(e))!=null?t:1;if(n===1?Ml.delete(e):Ml.set(e,n-1),n!==1)return;let r=yg.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,yg.delete(e))}function PA(e,{allowed:t,disallowed:n}={}){let r=Ho(e,"inert-others");he(()=>{var i,a;if(!r)return;let o=Zn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&o.add(XS(s));let l=(a=t==null?void 0:t())!=null?a:[];for(let s of l){if(!s)continue;let u=mi(s);if(!u)continue;let c=s.parentElement;for(;c&&c!==u.body;){for(let f of c.children)l.some(d=>f.contains(d))||o.add(XS(f));c=c.parentElement}}return o.dispose},[r,t,n])}function jA(e,t,n){let r=kr(i=>{let a=i.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});b.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let a=Zn();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}return()=>a.dispose()},[t,r,e])}let Kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ble=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var _t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(_t||{}),Rs=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Rs||{}),zle=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(zle||{});function TA(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Kf)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Ule(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ble)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var X0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X0||{});function Y0(e,t=0){var n;return e===((n=mi(e))==null?void 0:n.body)?!1:jn(t,{0(){return e.matches(Kf)},1(){let r=e;for(;r!==null;){if(r.matches(Kf))return!0;r=r.parentElement}return!1}})}function AA(e){let t=mi(e);Zn().nextFrame(()=>{t&&!Y0(t.activeElement,0)&&Gn(e)})}var Hle=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Hle||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Gn(e){e==null||e.focus({preventScroll:!0})}let Wle=["textarea","input"].join(",");function Vle(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Wle))!=null?n:!1}function Q0(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Kle(e,t){return ri(TA(),t,{relativeTo:e})}function ri(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?Q0(e):e:t&64?Ule(e):TA(e);i.length>0&&o.length>1&&(o=o.filter(p=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===p:h===p))),r=r??a.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=o.length,d;do{if(c>=f||c+f<=0)return 0;let p=s+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=o[p],d==null||d.focus(u),c+=l}while(d!==a.activeElement);return t&6&&Vle(d)&&d.select(),2}function CA(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Gle(){return/Android/gi.test(window.navigator.userAgent)}function qle(){return CA()||Gle()}function cl(e,t,n,r){let i=kr(n);b.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function kA(e,t,n,r){let i=kr(n);b.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const QS=30;function NA(e,t,n){let r=Ho(e,"outside-click"),i=kr(n),a=b.useCallback(function(s,u){if(s.defaultPrevented)return;let c=u(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(t);for(let d of f)if(d!==null&&(d.contains(c)||s.composed&&s.composedPath().includes(d)))return;return!Y0(c,X0.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),o=b.useRef(null);cl(r,"pointerdown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),cl(r,"mousedown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),cl(r,"click",s=>{qle()||o.current&&(a(s,()=>o.current),o.current=null)},!0);let l=b.useRef({x:0,y:0});cl(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),cl(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=QS||Math.abs(u.y-l.current.y)>=QS))return a(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),kA(r,"blur",s=>a(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Wo(...e){return b.useMemo(()=>mi(...e),[...e])}function MA(e,t,n,r){let i=kr(n);b.useEffect(()=>{e=e??window;function a(o){i.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Xle(e,t){return b.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Yle(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-i);n.style(r,"paddingRight",`${a}px`)}}}function Qle(){return CA()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(a=>a()).some(a=>a.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Zn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=e.querySelector(u);c&&!r(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let s=l.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(r(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;a!==s&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Zle(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Jle(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ii=OA(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Zn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Jle(n)},i=[Qle(),Yle(),Zle()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ii.subscribe(()=>{let e=Ii.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Ii.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ii.dispatch("TEARDOWN",n)}});function ese(e,t,n=()=>({containers:[]})){let r=$A(Ii),i=t?r.get(t):void 0,a=i?i.count>0:!1;return he(()=>{if(!(!t||!e))return Ii.dispatch("PUSH",t,n),()=>Ii.dispatch("POP",t,n)},[e,t]),a}function IA(e,t,n=()=>[document.body]){let r=Ho(e,"scroll-lock");ese(r,t,i=>{var a;return{containers:[...(a=i.containers)!=null?a:[],n]}})}function ZS(e){return[e.screenX,e.screenY]}function tse(){let e=b.useRef([-1,-1]);return{wasMoved(t){let n=ZS(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=ZS(t)}}}function nse(e=0){let[t,n]=b.useState(e),r=b.useCallback(s=>n(s),[t]),i=b.useCallback(s=>n(u=>u|s),[t]),a=b.useCallback(s=>(t&s)===s,[t]),o=b.useCallback(s=>n(u=>u&~s),[n]),l=b.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:l}}var rse={},JS,eE;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((JS=process==null?void 0:rse)==null?void 0:JS.NODE_ENV)==="test"&&typeof((eE=Element==null?void 0:Element.prototype)==null?void 0:eE.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
272
|
-
`)),[]});var ise=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ise||{});function RA(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function LA(e,t,n,r){let[i,a]=b.useState(n),{hasFlag:o,addFlag:l,removeFlag:s}=nse(e&&i?3:0),u=b.useRef(!1),c=b.useRef(!1),f=sa();return he(()=>{var d;if(e){if(n&&a(!0),!t){n&&l(3);return}return(d=r==null?void 0:r.start)==null||d.call(r,n),ase(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(l(3),s(4)):(l(4),s(2)))},run(){c.current?n?(s(3),l(4)):(s(4),l(3)):n?s(1):l(1)},done(){var p;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,s(7),n||a(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function ase(e,{prepare:t,run:n,done:r,inFlight:i}){let a=Zn();return lse(e,{prepare:t,inFlight:i}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(ose(e,r))})}),a.dispose}function ose(e,t){var n,r;let i=Zn();if(!e)return i.dispose;let a=!1;i.add(()=>{a=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(l=>l.finished)).then(()=>{a||t()}),i.dispose)}function lse(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function sse(e,{container:t,accept:n,walk:r}){let i=b.useRef(n),a=b.useRef(r);b.useEffect(()=>{i.current=n,a.current=r},[n,r]),he(()=>{if(!t||!e)return;let o=mi(t);if(!o)return;let l=i.current,s=a.current,u=Object.assign(f=>l(f),{acceptNode:l}),c=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)s(c.currentNode)},[t,e,i,a])}function Z0(e,t){let n=b.useRef([]),r=Q(e);b.useEffect(()=>{let i=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let l=r(t,i);return n.current=t,l}},[r,...t])}function use(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const DA={...mc},cse=DA.useInsertionEffect,fse=cse||(e=>e());function FA(e){const t=b.useRef(()=>{});return fse(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var xg=typeof document<"u"?b.useLayoutEffect:b.useEffect;let tE=!1,dse=0;const nE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dse++;function pse(){const[e,t]=b.useState(()=>tE?nE():void 0);return xg(()=>{e==null&&t(nE())},[]),b.useEffect(()=>{tE=!0},[]),e}const hse=DA.useId,mse=hse||pse;function vse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const gse=b.createContext(null),yse=b.createContext(null),xse=()=>{var e;return((e=b.useContext(gse))==null?void 0:e.id)||null},bse=()=>b.useContext(yse),wse="data-floating-ui-focusable";function _se(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=mse(),a=b.useRef({}),[o]=b.useState(()=>vse()),l=xse()!=null,[s,u]=b.useState(r.reference),c=FA((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Sse(e){e===void 0&&(e={});const{nodeId:t}=e,n=_se({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||a,f=b.useRef(null),d=bse();xg(()=>{c&&(f.current=c)},[c]);const p=YT({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),y=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=b.useMemo(()=>({...p,...r,refs:w,elements:y,nodeId:t}),[p,w,y,t,r]);return xg(()=>{r.dataRef.current.floatingContext=v;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=v)}),b.useMemo(()=>({...p,context:v,refs:w,elements:y}),[p,w,y,v])}const rE="active",iE="selected";function Lh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[rE]:o,[iE]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[wse]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[rE,iE].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else o[u]=c}),o),{})}}function Ese(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Lh(l,e,"reference"),t),a=b.useCallback(l=>Lh(l,e,"floating"),n),o=b.useCallback(l=>Lh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}function aE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Ose=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:a=0,index:o=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=la(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[o],h=(u==null?void 0:u.current)||d,m=d.clientTop||h.clientTop,w=d.clientTop!==0,y=h.clientTop!==0,v=d===h;if(!p)return{};const x={...t,...await B0(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-a).fn(t)},E=await Ph(aE(x,h.scrollHeight+m+d.clientTop),c),_=await Ph(x,{...c,elementContext:"reference"}),S=vt(0,E.top),O=x.y+S,C=(h.scrollHeight>h.clientHeight?A=>A:Ms)(vt(0,h.scrollHeight+(w&&v||y?m*2:0)-S-vt(0,E.bottom)));if(h.style.maxHeight=C+"px",h.scrollTop=S,i){const A=h.offsetHeight<p.offsetHeight*qi(l,n.current.length)-1||_.top>=-s||_.bottom>=-s;Ht.flushSync(()=>i(A))}return r&&(r.current=await Ph(aE({...x,y:O},h.offsetHeight+m+d.clientTop),c)),{y:O}}});function $se(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:a,scrollRef:o,onChange:l}=t,s=FA(l),u=b.useRef(!1),c=b.useRef(null),f=b.useRef(null);b.useEffect(()=>{if(!i)return;function p(m){if(m.ctrlKey||!h||a.current==null)return;const w=m.deltaY,y=a.current.top>=-.5,v=a.current.bottom>=-.5,x=h.scrollHeight-h.clientHeight,E=w<0?-1:1,_=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!y&&w>0||!v&&w<0?(m.preventDefault(),Ht.flushSync(()=>{s(S=>S+Math[_](w,x*E))})):/firefox/i.test(use())&&(h.scrollTop+=w))}const h=(o==null?void 0:o.current)||r.floating;if(n&&h)return h.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=h.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{c.current=null,f.current=null,h.removeEventListener("wheel",p)}},[i,n,r.floating,a,o,s]);const d=b.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(o==null?void 0:o.current)||r.floating;if(!(!a.current||!p||!u.current)){if(c.current!==null){const h=p.scrollTop-c.current;(a.current.bottom<-.5&&h<-1||a.current.top<-.5&&h>1)&&Ht.flushSync(()=>s(m=>m+h))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,a,o]);return b.useMemo(()=>i?{floating:d}:{},[i,d])}let Vo=b.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Vo.displayName="FloatingContext";let J0=b.createContext(null);J0.displayName="PlacementContext";function Pse(e){return b.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function jse(){return b.useContext(Vo).setReference}function Tse(){return b.useContext(Vo).getReferenceProps}function Ase(){let{getFloatingProps:e,slot:t}=b.useContext(Vo);return b.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Cse(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=b.useContext(J0),n=b.useMemo(()=>e,[JSON.stringify(e,(i,a)=>{var o;return(o=a==null?void 0:a.outerHTML)!=null?o:a})]);he(()=>{t==null||t(n??null)},[t,n]);let r=b.useContext(Vo);return b.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let oE=4;function kse({children:e,enabled:t=!0}){let[n,r]=b.useState(null),[i,a]=b.useState(0),o=b.useRef(null),[l,s]=b.useState(null);Nse(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:h}=Mse(n,l),[m,w="center"]=c.split(" ");he(()=>{u&&a(0)},[u]);let{refs:y,floatingStyles:v,context:x}=Sse({open:u,placement:m==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${m}`:`${m}-${w}`,strategy:"absolute",transform:!1,middleware:[B0({mainAxis:m==="selection"?0:f,crossAxis:d}),QT({padding:p}),m!=="selection"&&ooe({padding:p}),m==="selection"&&h?Ose({...h,padding:p,overflowRef:o,offset:i,minItemsVisible:oE,referenceOverflowThreshold:p,onFallbackChange(A){var N,I;if(!A)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,F=Math.min(oE,D.childElementCount),R=0,P=0;for(let k of(I=(N=x.elements.floating)==null?void 0:N.childNodes)!=null?I:[])if(k instanceof HTMLElement){let B=k.offsetTop,L=B+k.clientHeight+M,U=D.scrollTop,V=U+D.clientHeight;if(B>=U&&L<=V)F--;else{P=Math.max(0,Math.min(L,V)-Math.max(B,U)),R=k.clientHeight;break}}F>=1&&a(k=>{let B=R*F-P+M;return k>=B?k:B})}}):null,loe({padding:p,apply({availableWidth:A,availableHeight:N,elements:I}){Object.assign(I.floating.style,{overflow:"auto",maxWidth:`${A}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:qT}),[E=m,_=w]=x.placement.split("-");m==="selection"&&(E="selection");let S=b.useMemo(()=>({anchor:[E,_].filter(Boolean).join(" ")}),[E,_]),O=$se(x,{overflowRef:o,onChange:a}),{getReferenceProps:$,getFloatingProps:T}=Ese([O]),C=Q(A=>{s(A),y.setFloating(A)});return b.createElement(J0.Provider,{value:r},b.createElement(Vo.Provider,{value:{setFloating:C,setReference:y.setReference,styles:v,getReferenceProps:$,getFloatingProps:T,slot:S}},e))}function Nse(e){he(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Mse(e,t){var n,r,i;let a=Dh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),o=Dh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Dh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:o,padding:l}}function Dh(e,t,n=void 0){let r=sa(),i=Q((s,u)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!u)return[n,null];let c=lE(s,u);return[c,f=>{let d=BA(s);{let p=d.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let m=!1;for(let[y,v]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(v);if(p[y]!==x){p[y]=x,m=!0;break}}if(!m)return;let w=lE(s,u);c!==w&&(f(w),c=w)})}return r.dispose}]}return[n,null]}),a=b.useMemo(()=>i(e,t)[0],[e,t]),[o=a,l]=b.useState();return he(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),o}function BA(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...BA(i)]:[r]}return[]}function lE(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let mp=b.createContext(null);mp.displayName="OpenClosedContext";var Et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Et||{});function cu(){return b.useContext(mp)}function zA({value:e,children:t}){return j.createElement(mp.Provider,{value:e},t)}function Ise({children:e}){return j.createElement(mp.Provider,{value:null},e)}function Rse(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let zr=[];Rse(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||zr[0]===t.target)return;let n=t.target;n=n.closest(Kf),zr.unshift(n??t.target),zr=zr.filter(r=>r!=null&&r.isConnected),zr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Lse(e){throw new Error("Unexpected object: "+e)}var gt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gt||{});function Fh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{i===-1&&(i=n.length);for(let a=i-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=i+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:Lse(e)}}function UA(e){let t=Q(e),n=b.useRef(!1);b.useEffect(()=>(n.current=!1,()=>{n.current=!0,fp(()=>{n.current&&t()})}),[t])}function Dse(){let e=typeof document>"u";return"useSyncExternalStore"in mc?(t=>t.useSyncExternalStore)(mc)(()=>()=>{},()=>!1,()=>!e):!1}function fu(){let e=Dse(),[t,n]=b.useState(Bi.isHandoffComplete);return t&&Bi.isHandoffComplete===!1&&n(!1),b.useEffect(()=>{t!==!0&&n(!0)},[t]),b.useEffect(()=>Bi.handoff(),[]),e?!1:t}let HA=b.createContext(!1);function Fse(){return b.useContext(HA)}function sE(e){return j.createElement(HA.Provider,{value:e.force},e.children)}function Bse(e){let t=Fse(),n=b.useContext(VA),r=Wo(e),[i,a]=b.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(Bi.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return b.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),b.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),i}let WA=b.Fragment,zse=Ee(function(e,t){let n=e,r=b.useRef(null),i=ot(Sle(f=>{r.current=f}),t),a=Wo(r),o=Bse(r),[l]=b.useState(()=>{var f;return Bi.isServer?null:(f=a==null?void 0:a.createElement("div"))!=null?f:null}),s=b.useContext(bg),u=fu();he(()=>{!o||!l||o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l))},[o,l]),he(()=>{if(l&&s)return s.register(l)},[s,l]),UA(()=>{var f;!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&((f=o.parentElement)==null||f.removeChild(o)))});let c=Re();return u?!o||!l?null:Ht.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:WA,name:"Portal"}),l):null});function Use(e,t){let n=ot(t),{enabled:r=!0,...i}=e,a=Re();return r?j.createElement(zse,{...i,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:WA,name:"Portal"})}let Hse=b.Fragment,VA=b.createContext(null);function Wse(e,t){let{target:n,...r}=e,i={ref:ot(t)},a=Re();return j.createElement(VA.Provider,{value:n},a({ourProps:i,theirProps:r,defaultTag:Hse,name:"Popover.Group"}))}let bg=b.createContext(null);function Vse(){let e=b.useContext(bg),t=b.useRef([]),n=Q(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=Q(a=>{let o=t.current.indexOf(a);o!==-1&&t.current.splice(o,1),e&&e.unregister(a)}),i=b.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,b.useMemo(()=>function({children:a}){return j.createElement(bg.Provider,{value:i},a)},[i])]}let Kse=Ee(Use),KA=Ee(Wse),GA=Object.assign(Kse,{Group:KA});function Gse(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ho(e,"escape");MA(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===Ne.Escape&&n(i))})}function qse(){var e;let[t]=b.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=b.useState((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function i(a){r(a.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Xse({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Wo(n),i=Q(()=>{var a,o;let l=[];for(let s of e)s!==null&&(s instanceof HTMLElement?l.push(s):"current"in s&&s.current instanceof HTMLElement&&l.push(s.current));if(t!=null&&t.current)for(let s of t.current)l.push(s);for(let s of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(n&&(s.contains(n)||s.contains((o=n==null?void 0:n.getRootNode())==null?void 0:o.host))||l.some(u=>s.contains(u))||l.push(s));return l});return{resolveContainers:i,contains:Q(a=>i().some(o=>o.contains(a)))}}let qA=b.createContext(null);function uE({children:e,node:t}){let[n,r]=b.useState(null),i=XA(t??n);return j.createElement(qA.Provider,{value:i},e,i===null&&j.createElement(_o,{features:ea.Hidden,ref:a=>{var o,l;if(a){for(let s of(l=(o=mi(a))==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])if(s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s!=null&&s.contains(a)){r(s);break}}}}))}function XA(e=null){var t;return(t=b.useContext(qA))!=null?t:e}function ex(){let e=b.useRef(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var yl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(yl||{});function Yse(){let e=b.useRef(0);return kA(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function YA(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Qse="div";var Pi=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Pi||{});function Zse(e,t){let n=b.useRef(null),r=ot(n,t),{initialFocus:i,initialFocusFallback:a,containers:o,features:l=15,...s}=e;fu()||(l=0);let u=Wo(n);nue(l,{ownerDocument:u});let c=rue(l,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:a});iue(l,{ownerDocument:u,container:n,containers:o,previousActiveElement:c});let f=Yse(),d=Q(v=>{let x=n.current;x&&(E=>E())(()=>{jn(f.current,{[yl.Forwards]:()=>{ri(x,_t.First,{skipElements:[v.relatedTarget,a]})},[yl.Backwards]:()=>{ri(x,_t.Last,{skipElements:[v.relatedTarget,a]})}})})}),p=Ho(!!(l&2),"focus-trap#tab-lock"),h=sa(),m=b.useRef(!1),w={ref:r,onKeyDown(v){v.key=="Tab"&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(v){if(!(l&4))return;let x=YA(o);n.current instanceof HTMLElement&&x.add(n.current);let E=v.relatedTarget;E instanceof HTMLElement&&E.dataset.headlessuiFocusGuard!=="true"&&(QA(x,E)||(m.current?ri(n.current,jn(f.current,{[yl.Forwards]:()=>_t.Next,[yl.Backwards]:()=>_t.Previous})|_t.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&Gn(v.target)))}},y=Re();return j.createElement(j.Fragment,null,p&&j.createElement(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}),y({ourProps:w,theirProps:s,defaultTag:Qse,name:"FocusTrap"}),p&&j.createElement(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}))}let Jse=Ee(Zse),eue=Object.assign(Jse,{features:Pi});function tue(e=!0){let t=b.useRef(zr.slice());return Z0(([n],[r])=>{r===!0&&n===!1&&fp(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=zr.slice())},[e,zr,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function nue(e,{ownerDocument:t}){let n=!!(e&8),r=tue(n);Z0(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Gn(r())},[n]),UA(()=>{n&&Gn(r())})}function rue(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let a=b.useRef(null),o=Ho(!!(e&1),"focus-trap#initial-focus"),l=ex();return Z0(()=>{if(e===0)return;if(!o){i!=null&&i.current&&Gn(i.current);return}let s=n.current;s&&fp(()=>{if(!l.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){a.current=u;return}}else if(s.contains(u)){a.current=u;return}if(r!=null&&r.current)Gn(r.current);else{if(e&16){if(ri(s,_t.First|_t.AutoFocus)!==Rs.Error)return}else if(ri(s,_t.First)!==Rs.Error)return;if(i!=null&&i.current&&(Gn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t==null?void 0:t.activeElement})},[i,o,e]),a}function iue(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let a=ex(),o=!!(e&4);MA(t==null?void 0:t.defaultView,"focus",l=>{if(!o||!a.current)return;let s=YA(r);n.current instanceof HTMLElement&&s.add(n.current);let u=i.current;if(!u)return;let c=l.target;c&&c instanceof HTMLElement?QA(s,c)?(i.current=c,Gn(c)):(l.preventDefault(),l.stopPropagation(),Gn(u)):Gn(i.current)},!0)}function QA(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function ZA(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:eC)!==b.Fragment||j.Children.count(e.children)===1}let vp=b.createContext(null);vp.displayName="TransitionContext";var aue=(e=>(e.Visible="visible",e.Hidden="hidden",e))(aue||{});function oue(){let e=b.useContext(vp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function lue(){let e=b.useContext(gp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gp=b.createContext(null);gp.displayName="NestingContext";function yp(e){return"children"in e?yp(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function JA(e,t){let n=kr(e),r=b.useRef([]),i=ex(),a=sa(),o=Q((p,h=Vr.Hidden)=>{let m=r.current.findIndex(({el:w})=>w===p);m!==-1&&(jn(h,{[Vr.Unmount](){r.current.splice(m,1)},[Vr.Hidden](){r.current[m].state="hidden"}}),a.microTask(()=>{var w;!yp(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),l=Q(p=>{let h=r.current.find(({el:m})=>m===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,Vr.Unmount)}),s=b.useRef([]),u=b.useRef(Promise.resolve()),c=b.useRef({enter:[],leave:[]}),f=Q((p,h,m)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{s.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(c.current[h].map(([y,v])=>v)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(h)):m(h)}),d=Q((p,h,m)=>{Promise.all(c.current[h].splice(0).map(([w,y])=>y)).then(()=>{var w;(w=s.current.shift())==null||w()}).then(()=>m(h))});return b.useMemo(()=>({children:r,register:l,unregister:o,onStart:f,onStop:d,wait:u,chains:c}),[l,o,r,f,d,c,u])}let eC=b.Fragment,tC=wo.RenderStrategy;function sue(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:o,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:f,entered:d,leave:p,leaveFrom:h,leaveTo:m,...w}=e,[y,v]=b.useState(null),x=b.useRef(null),E=ZA(e),_=ot(...E?[x,t,v]:t===null?[]:[t]),S=(n=w.unmount)==null||n?Vr.Unmount:Vr.Hidden,{show:O,appear:$,initial:T}=oue(),[C,A]=b.useState(O?"visible":"hidden"),N=lue(),{register:I,unregister:D}=N;he(()=>I(x),[I,x]),he(()=>{if(S===Vr.Hidden&&x.current){if(O&&C!=="visible"){A("visible");return}return jn(C,{hidden:()=>D(x),visible:()=>I(x)})}},[C,x,I,D,O,S]);let M=fu();he(()=>{if(E&&M&&C==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,C,M,E]);let F=T&&!$,R=$&&O&&T,P=b.useRef(!1),k=JA(()=>{P.current||(A("hidden"),D(x))},N),B=Q(Ce=>{P.current=!0;let Oe=Ce?"enter":"leave";k.onStart(x,Oe,K=>{K==="enter"?a==null||a():K==="leave"&&(l==null||l())})}),L=Q(Ce=>{let Oe=Ce?"enter":"leave";P.current=!1,k.onStop(x,Oe,K=>{K==="enter"?o==null||o():K==="leave"&&(s==null||s())}),Oe==="leave"&&!yp(k)&&(A("hidden"),D(x))});b.useEffect(()=>{E&&i||(B(O),L(O))},[O,E,i]);let U=!(!i||!E||!M||F),[,V]=LA(U,y,O,{start:B,end:L}),re=Dr({ref:_,className:((r=gg(w.className,R&&u,R&&c,V.enter&&u,V.enter&&V.closed&&c,V.enter&&!V.closed&&f,V.leave&&p,V.leave&&!V.closed&&h,V.leave&&V.closed&&m,!V.transition&&O&&d))==null?void 0:r.trim())||void 0,...RA(V)}),ie=0;C==="visible"&&(ie|=Et.Open),C==="hidden"&&(ie|=Et.Closed),V.enter&&(ie|=Et.Opening),V.leave&&(ie|=Et.Closing);let J=Re();return j.createElement(gp.Provider,{value:k},j.createElement(zA,{value:ie},J({ourProps:re,theirProps:w,defaultTag:eC,features:tC,visible:C==="visible",name:"Transition.Child"})))}function uue(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=b.useRef(null),l=ZA(e),s=ot(...l?[o,t]:t===null?[]:[t]);fu();let u=cu();if(n===void 0&&u!==null&&(n=(u&Et.Open)===Et.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=b.useState(n?"visible":"hidden"),d=JA(()=>{n||f("hidden")}),[p,h]=b.useState(!0),m=b.useRef([n]);he(()=>{p!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))},[m,n]);let w=b.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);he(()=>{n?f("visible"):!yp(d)&&o.current!==null&&f("hidden")},[n,d]);let y={unmount:i},v=Q(()=>{var _;p&&h(!1),(_=e.beforeEnter)==null||_.call(e)}),x=Q(()=>{var _;p&&h(!1),(_=e.beforeLeave)==null||_.call(e)}),E=Re();return j.createElement(gp.Provider,{value:d},j.createElement(vp.Provider,{value:w},E({ourProps:{...y,as:b.Fragment,children:j.createElement(nC,{ref:s,...y,...a,beforeEnter:v,beforeLeave:x})},theirProps:{},defaultTag:b.Fragment,features:tC,visible:c==="visible",name:"Transition"})))}function cue(e,t){let n=b.useContext(vp)!==null,r=cu()!==null;return j.createElement(j.Fragment,null,!n&&r?j.createElement(wg,{ref:t,...e}):j.createElement(nC,{ref:t,...e}))}let wg=Ee(uue),nC=Ee(sue),xp=Ee(cue),fue=Object.assign(wg,{Child:xp,Root:wg});var due=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(due||{}),pue=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(pue||{});let hue={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},tx=b.createContext(null);tx.displayName="DialogContext";function bp(e){let t=b.useContext(tx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bp),n}return t}function mue(e,t){return jn(t.type,hue,e,t)}let cE=Ee(function(e,t){let n=b.useId(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:a,initialFocus:o,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...f}=e,d=b.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(d.current||(d.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=cu();i===void 0&&p!==null&&(i=(p&Et.Open)===Et.Open);let h=b.useRef(null),m=ot(h,t),w=Wo(h),y=i?0:1,[v,x]=b.useReducer(mue,{titleId:null,descriptionId:null,panelRef:b.createRef()}),E=Q(()=>a(!1)),_=Q(L=>x({type:0,id:L})),S=fu()?y===0:!1,[O,$]=Vse(),T={get current(){var L;return(L=v.panelRef.current)!=null?L:h.current}},C=XA(),{resolveContainers:A}=Xse({mainTreeNode:C,portals:O,defaultContainers:[T]}),N=p!==null?(p&Et.Closing)===Et.Closing:!1;PA(u||N?!1:S,{allowed:Q(()=>{var L,U;return[(U=(L=h.current)==null?void 0:L.closest("[data-headlessui-portal]"))!=null?U:null]}),disallowed:Q(()=>{var L;return[(L=C==null?void 0:C.closest("body > *:not(#headlessui-portal-root)"))!=null?L:null]})}),NA(S,A,L=>{L.preventDefault(),E()}),Gse(S,w==null?void 0:w.defaultView,L=>{L.preventDefault(),L.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),IA(u||N?!1:S,w,A),jA(S,h,E);let[I,D]=su(),M=b.useMemo(()=>[{dialogState:y,close:E,setTitleId:_,unmount:c},v],[y,v,E,_,c]),F=b.useMemo(()=>({open:y===0}),[y]),R={ref:m,id:r,role:l,tabIndex:-1,"aria-modal":u?void 0:y===0?!0:void 0,"aria-labelledby":v.titleId,"aria-describedby":I,unmount:c},P=!qse(),k=Pi.None;S&&!u&&(k|=Pi.RestoreFocus,k|=Pi.TabLock,s&&(k|=Pi.AutoFocus),P&&(k|=Pi.InitialFocus));let B=Re();return j.createElement(Ise,null,j.createElement(sE,{force:!0},j.createElement(GA,null,j.createElement(tx.Provider,{value:M},j.createElement(KA,{target:h},j.createElement(sE,{force:!1},j.createElement(D,{slot:F},j.createElement($,null,j.createElement(eue,{initialFocus:o,initialFocusFallback:h,containers:A,features:k},j.createElement(Nle,{value:E},B({ourProps:R,theirProps:f,slot:F,defaultTag:vue,features:gue,visible:y===0,name:"Dialog"})))))))))))}),vue="div",gue=wo.RenderStrategy|wo.Static;function yue(e,t){let{transition:n=!1,open:r,...i}=e,a=cu(),o=e.hasOwnProperty("open")||a!==null,l=e.hasOwnProperty("onClose");if(!o&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?j.createElement(uE,null,j.createElement(fue,{show:r,transition:n,unmount:i.unmount},j.createElement(cE,{ref:t,...i}))):j.createElement(uE,null,j.createElement(cE,{ref:t,open:r,...i}))}let xue="div";function bue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...a}=e,[{dialogState:o,unmount:l},s]=bp("Dialog.Panel"),u=ot(t,s.panelRef),c=b.useMemo(()=>({open:o===0}),[o]),f=Q(w=>{w.stopPropagation()}),d={ref:u,id:r,onClick:f},p=i?xp:b.Fragment,h=i?{unmount:l}:{},m=Re();return j.createElement(p,{...h},m({ourProps:d,theirProps:a,slot:c,defaultTag:xue,name:"Dialog.Panel"}))}let wue="div";function _ue(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:a}]=bp("Dialog.Backdrop"),o=b.useMemo(()=>({open:i===0}),[i]),l={ref:t,"aria-hidden":!0},s=n?xp:b.Fragment,u=n?{unmount:a}:{},c=Re();return j.createElement(s,{...u},c({ourProps:l,theirProps:r,slot:o,defaultTag:wue,name:"Dialog.Backdrop"}))}let Sue="h2";function Eue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:a,setTitleId:o}]=bp("Dialog.Title"),l=ot(t);b.useEffect(()=>(o(r),()=>o(null)),[r,o]);let s=b.useMemo(()=>({open:a===0}),[a]),u={ref:l,id:r};return Re()({ourProps:u,theirProps:i,slot:s,defaultTag:Sue,name:"Dialog.Title"})}let Oue=Ee(yue),rC=Ee(bue),$ue=Ee(_ue),Pue=Ee(Eue),jue=Object.assign(Oue,{Panel:rC,Title:Pue,Description:SA}),Tue="div";function Aue(e,t){let n=`headlessui-control-${b.useId()}`,[r,i]=uu(),[a,o]=su(),l=lu(),{disabled:s=l||!1,...u}=e,c=b.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=Re();return j.createElement(lle,{value:s},j.createElement(i,{value:r},j.createElement(o,{value:a},j.createElement(wle,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(gle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Tue,name:"Field"})))))}let Cue=Ee(Aue);function kue(e,t){let n=b.useRef({left:0,top:0});if(he(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let fE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function dE(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return fE.test(o)&&(o=o.replace(fE,"")),o}function Nue(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():dE(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return dE(e).trim()}function Mue(e){let t=b.useRef(""),n=b.useRef("");return Q(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=Nue(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var Iue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Iue||{}),Rue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Rue||{}),Lue=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Lue||{});function Bh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Q0(t(e.items.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}let Due={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n,r,i,a,o;if(e.menuState===1)return e;let l={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===gt.Nothing)return{...l,activeItemIndex:null};if(t.focus===gt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===gt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===p.current||((i=p.current)==null?void 0:i.previousElementSibling)===null)return{...l,activeItemIndex:d}}}}else if(t.focus===gt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((a=f.current)==null?void 0:a.nextElementSibling)===p.current||((o=p.current)==null?void 0:o.nextElementSibling)===null)return{...l,activeItemIndex:d}}}}let s=Bh(e),u=Fh(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var l;return((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!o.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=Bh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=Bh(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},nx=b.createContext(null);nx.displayName="MenuContext";function wp(e){let t=b.useContext(nx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,wp),n}return t}function Fue(e,t){return jn(t.type,Due,e,t)}let Bue=b.Fragment;function zue(e,t){let{__demoMode:n=!1,...r}=e,i=b.useReducer(Fue,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsElement:o,buttonElement:l},s]=i,u=ot(t);NA(a===0,[l,o],(h,m)=>{s({type:1}),Y0(m,X0.Loose)||(h.preventDefault(),l==null||l.focus())});let c=Q(()=>{s({type:1})}),f=b.useMemo(()=>({open:a===0,close:c}),[a,c]),d={ref:u},p=Re();return j.createElement(kse,null,j.createElement(nx.Provider,{value:i},j.createElement(zA,{value:jn(a,{0:Et.Open,1:Et.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:Bue,name:"Menu"}))))}let Uue="button";function Hue(e,t){var n;let r=b.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:a=!1,autoFocus:o=!1,...l}=e,[s,u]=wp("Menu.Button"),c=Tse(),f=ot(t,jse(),Q(O=>u({type:7,element:O}))),d=Q(O=>{switch(O.key){case Ne.Space:case Ne.Enter:case Ne.ArrowDown:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.First});break;case Ne.ArrowUp:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.Last});break}}),p=Q(O=>{switch(O.key){case Ne.Space:O.preventDefault();break}}),h=Q(O=>{var $;if(G0(O.currentTarget))return O.preventDefault();a||(s.menuState===0?(Ht.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(O.preventDefault(),u({type:0})))}),{isFocusVisible:m,focusProps:w}=K0({autoFocus:o}),{isHovered:y,hoverProps:v}=V0({isDisabled:a}),{pressed:x,pressProps:E}=ole({disabled:a}),_=b.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:a,hover:y,focus:m,autofocus:o}),[s,y,m,x,a,o]),S=dp(c(),{ref:f,id:i,type:Xle(e,s.buttonElement),"aria-haspopup":"menu","aria-controls":(n=s.itemsElement)==null?void 0:n.id,"aria-expanded":s.menuState===0,disabled:a||void 0,autoFocus:o,onKeyDown:d,onKeyUp:p,onClick:h},w,v,E);return Re()({ourProps:S,theirProps:l,slot:_,defaultTag:Uue,name:"Menu.Button"})}let Wue="div",Vue=wo.RenderStrategy|wo.Static;function Kue(e,t){var n,r;let i=b.useId(),{id:a=`headlessui-menu-items-${i}`,anchor:o,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=Pse(o),[d,p]=wp("Menu.Items"),[h,m]=Cse(f),w=Ase(),[y,v]=b.useState(null),x=ot(t,f?h:null,Q(P=>p({type:8,element:P})),v),E=Wo(d.itemsElement);f&&(l=!0);let _=cu(),[S,O]=LA(u,y,_!==null?(_&Et.Open)===Et.Open:d.menuState===0);jA(S,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;IA($,E);let T=d.__demoMode?!1:s&&d.menuState===0;PA(T,{allowed:b.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,A=kue(C,d.buttonElement)?!1:S;b.useEffect(()=>{let P=d.itemsElement;P&&d.menuState===0&&P!==(E==null?void 0:E.activeElement)&&P.focus({preventScroll:!0})},[d.menuState,d.itemsElement,E]),sse(d.menuState===0,{container:d.itemsElement,accept(P){return P.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:P.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(P){P.setAttribute("role","none")}});let N=sa(),I=Q(P=>{var k,B,L;switch(N.dispose(),P.key){case Ne.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ne.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(B=(k=U.current)==null?void 0:k.domRef.current)==null||B.click()}AA(d.buttonElement);break;case Ne.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Next});case Ne.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Previous});case Ne.Home:case Ne.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.First});case Ne.End:case Ne.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Last});case Ne.Escape:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),(L=d.buttonElement)==null||L.focus({preventScroll:!0});break;case Ne.Tab:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),Kle(d.buttonElement,P.shiftKey?_t.Previous:_t.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=Q(P=>{switch(P.key){case Ne.Space:P.preventDefault();break}}),M=b.useMemo(()=>({open:d.menuState===0}),[d.menuState]),F=dp(f?w():{},{"aria-activedescendant":d.activeItemIndex===null||(n=d.items[d.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=d.buttonElement)==null?void 0:r.id,id:a,onKeyDown:I,onKeyUp:D,role:"menu",tabIndex:d.menuState===0?0:void 0,ref:x,style:{...c.style,...m,"--button-width":Lle(d.buttonElement,!0).width},...RA(O)}),R=Re();return j.createElement(GA,{enabled:l?e.static||S:!1},R({ourProps:F,theirProps:c,slot:M,defaultTag:Wue,features:Vue,visible:A,name:"Menu.Items"}))}let Gue=b.Fragment;function que(e,t){let n=b.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[o,l]=wp("Menu.Item"),s=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,u=b.useRef(null),c=ot(t,u);he(()=>{if(!o.__demoMode&&o.menuState===0&&s&&o.activationTrigger!==0)return Zn().requestAnimationFrame(()=>{var A,N;(N=(A=u.current)==null?void 0:A.scrollIntoView)==null||N.call(A,{block:"nearest"})})},[o.__demoMode,u,s,o.menuState,o.activationTrigger,o.activeItemIndex]);let f=Mue(u),d=b.useRef({disabled:i,domRef:u,get textValue(){return f()}});he(()=>{d.current.disabled=i},[d,i]),he(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=Q(()=>{l({type:1})}),h=Q(A=>{if(i)return A.preventDefault();l({type:1}),AA(o.buttonElement)}),m=Q(()=>{if(i)return l({type:2,focus:gt.Nothing});l({type:2,focus:gt.Specific,id:r})}),w=tse(),y=Q(A=>{w.update(A),!i&&(s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),v=Q(A=>{w.wasMoved(A)&&(i||s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),x=Q(A=>{w.wasMoved(A)&&(i||s&&l({type:2,focus:gt.Nothing}))}),[E,_]=uu(),[S,O]=su(),$=b.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),T={id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":E,"aria-describedby":S,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:y,onMouseEnter:y,onPointerMove:v,onMouseMove:v,onPointerLeave:x,onMouseLeave:x},C=Re();return j.createElement(_,null,j.createElement(O,null,C({ourProps:T,theirProps:a,slot:$,defaultTag:Gue,name:"Menu.Item"})))}let Xue="div";function Yue(e,t){let[n,r]=uu(),i=e,a={ref:t,"aria-labelledby":n,role:"group"},o=Re();return j.createElement(r,null,o({ourProps:a,theirProps:i,slot:{},defaultTag:Xue,name:"Menu.Section"}))}let Que="header";function Zue(e,t){let n=b.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,a=q0();he(()=>a.register(r),[r,a.register]);let o={id:r,ref:t,role:"presentation",...a.props};return Re()({ourProps:o,theirProps:i,slot:{},defaultTag:Que,name:"Menu.Heading"})}let Jue="div";function ece(e,t){let n=e,r={ref:t,role:"separator"};return Re()({ourProps:r,theirProps:n,slot:{},defaultTag:Jue,name:"Menu.Separator"})}let tce=Ee(zue),iC=Ee(Hue),aC=Ee(Kue),oC=Ee(que),nce=Ee(Yue),rce=Ee(Zue),ice=Ee(ece),ace=Object.assign(tce,{Button:iC,Items:aC,Item:oC,Section:nce,Heading:rce,Separator:ice});var oce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(oce||{});let lce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Q0(n,r=>r.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(i=>i.id===t.id);return r===-1?e:(n.splice(r,1),{...e,options:n})}},rx=b.createContext(null);rx.displayName="RadioGroupDataContext";function ix(e){let t=b.useContext(rx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ix),n}return t}let ax=b.createContext(null);ax.displayName="RadioGroupActionsContext";function ox(e){let t=b.useContext(ax);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ox),n}return t}function sce(e,t){return jn(t.type,lce,e,t)}let uce="div";function cce(e,t){let n=b.useId(),r=lu(),{id:i=`headlessui-radiogroup-${n}`,value:a,form:o,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=Ile(u),[h,m]=b.useReducer(sce,{options:[]}),w=h.options,[y,v]=uu(),[x,E]=su(),_=b.useRef(null),S=ot(_,t),O=ple(f),[$,T]=dle(a,s,O),C=b.useMemo(()=>w.find(L=>!L.propsRef.current.disabled),[w]),A=b.useMemo(()=>w.some(L=>p(L.propsRef.current.value,$)),[w,$]),N=Q(L=>{var U;if(c||p(L,$))return!1;let V=(U=w.find(re=>p(re.propsRef.current.value,L)))==null?void 0:U.propsRef.current;return V!=null&&V.disabled?!1:(T==null||T(L),!0)}),I=Q(L=>{let U=_.current;if(!U)return;let V=mi(U),re=w.filter(ie=>ie.propsRef.current.disabled===!1).map(ie=>ie.element.current);switch(L.key){case Ne.Enter:hle(L.currentTarget);break;case Ne.ArrowLeft:case Ne.ArrowUp:if(L.preventDefault(),L.stopPropagation(),ri(re,_t.Previous|_t.WrapAround)===Rs.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.ArrowRight:case Ne.ArrowDown:if(L.preventDefault(),L.stopPropagation(),ri(re,_t.Next|_t.WrapAround)===Rs.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.Space:{L.preventDefault(),L.stopPropagation();let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break}}),D=Q(L=>(m({type:0,...L}),()=>m({type:1,id:L.id}))),M=b.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:A,disabled:c,compare:p,...h}),[$,C,A,c,p,h]),F=b.useMemo(()=>({registerOption:D,change:N}),[D,N]),R={ref:S,id:i,role:"radiogroup","aria-labelledby":y,"aria-describedby":x,onKeyDown:I},P=b.useMemo(()=>({value:$}),[$]),k=b.useCallback(()=>{if(O!==void 0)return N(O)},[N,O]),B=Re();return j.createElement(E,{name:"RadioGroup.Description"},j.createElement(v,{name:"RadioGroup.Label"},j.createElement(ax.Provider,{value:F},j.createElement(rx.Provider,{value:M},l!=null&&j.createElement(xle,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:o,onReset:k}),B({ourProps:R,theirProps:d,slot:P,defaultTag:uce,name:"RadioGroup"})))))}let fce="div";function dce(e,t){var n;let r=ix("RadioGroup.Option"),i=ox("RadioGroup.Option"),a=b.useId(),{id:o=`headlessui-radiogroup-option-${a}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=b.useRef(null),d=ot(f,t),[p,h]=uu(),[m,w]=su(),y=kr({value:l,disabled:s});he(()=>i.registerOption({id:o,element:f,propsRef:y}),[o,i,f,y]);let v=Q(N=>{var I;if(G0(N.currentTarget))return N.preventDefault();i.change(l)&&((I=f.current)==null||I.focus())}),x=((n=r.firstOption)==null?void 0:n.id)===o,{isFocusVisible:E,focusProps:_}=K0({autoFocus:u}),{isHovered:S,hoverProps:O}=V0({isDisabled:s}),$=r.compare(r.value,l),T=dp({ref:d,id:o,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":m,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:v,autoFocus:u},_,O),C=b.useMemo(()=>({checked:$,disabled:s,active:E,hover:S,focus:E,autofocus:u}),[$,s,S,E,u]),A=Re();return j.createElement(w,{name:"RadioGroup.Description"},j.createElement(h,{name:"RadioGroup.Label"},A({ourProps:T,theirProps:c,slot:C,defaultTag:fce,name:"RadioGroup.Option"})))}let pce="span";function hce(e,t){var n;let r=ix("Radio"),i=ox("Radio"),a=b.useId(),o=bA(),l=lu(),{id:s=o||`headlessui-radio-${a}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=b.useRef(null),h=ot(p,t),m=EA(),w=Ele(),y=kr({value:u,disabled:c});he(()=>i.registerOption({id:s,element:p,propsRef:y}),[s,i,p,y]);let v=Q(A=>{var N;if(G0(A.currentTarget))return A.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:E}=K0({autoFocus:f}),{isHovered:_,hoverProps:S}=V0({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),T=dp({ref:h,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":m,"aria-describedby":w,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&O?0:-1,autoFocus:f,onClick:c?void 0:v},E,S),C=b.useMemo(()=>({checked:$,disabled:c,hover:_,focus:x,autofocus:f}),[$,c,_,x,f]);return Re()({ourProps:T,theirProps:d,slot:C,defaultTag:pce,name:"Radio"})}let mce=Ee(cce),vce=Ee(dce),lC=Ee(hce),gce=Cle,yce=SA,xce=Object.assign(mce,{Option:vce,Radio:lC,Label:gce,Description:yce});const lx=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>g.jsx("div",{className:"relative h-full",children:g.jsxs(ace,{children:[g.jsxs(iC,{className:`inline-flex h-full w-48 justify-between items-center gap-x-1.5 rounded-md bg-white px-3 text-${r} font-medium text-gray-900 shadow-sm ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,g.jsx(G$,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),g.jsx(aC,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-none",children:g.jsx("div",{className:"py-1",children:e.map(i=>g.jsx(oC,{children:g.jsx("button",{onClick:()=>n(i),className:`block w-full px-4 py-2 text-left text-${r} data-[focus]:bg-gray-100 data-[focus]:text-gray-900 text-gray-700`,children:i})},i))})})]})}),bce=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>g.jsx(xce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-sm ring-1 ring-gray-300`,children:e.map(i=>g.jsx(Cue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:g.jsx(lC,{value:i,className:"cursor-pointer h-full data-[checked]:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-sm",children:i})},i))});function wce({onSearch:e}){return g.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5 text-gray-400",children:g.jsx("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})})}),g.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium text-gray-900 shadow-sm rounded-md hover:bg-gray-50 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const _ce=({features:e})=>{const[t,n]=b.useState("All Teams"),[r,i]=b.useState(""),a=b.useMemo(()=>{const l=new Set;return l.add("All Teams"),Object.values(e).forEach(s=>{var u;(u=s.assignments)!=null&&u.teams&&s.assignments.teams.forEach(c=>l.add(c))}),Array.from(l)},[e]),o=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([l,s])=>{var u,c;return(c=(u=s.assignments)==null?void 0:u.teams)==null?void 0:c.includes(t)})),[e,t]);return Object.entries(e).length,a.length-1,g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),g.jsx(lx,{items:a,selectedItem:t,onItemSelect:n})]}),g.jsx("div",{children:g.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:[g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:g.jsx(Ioe,{features:o})}),g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:g.jsx(Roe,{features:o})}),g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:g.jsx(Loe,{features:o})})]})}),g.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[g.jsxs("div",{className:"flex items-center justify-between gap-12",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ki,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),g.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Features: ",Object.entries(o).length]})]}),g.jsx("div",{children:g.jsx(wce,{onSearch:i})})]}),g.jsx(Doe,{features:o,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},Sce=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall;if(a!=null){const o=rA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Ey,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),g.jsxs("div",{className:"relative flex-shrink-0 group",children:[g.jsx(wr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2 w-48",children:"Health Score distribution by category: shows how many features fall into each level from low (needs attention) to good (healthy)"})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative size-48",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx(eu,{children:g.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${wt(rt.healthy).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},Ece=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score;if(o!=null){const l=PT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=ci.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(_y,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),g.jsxs("div",{className:"relative flex-shrink-0 group",children:[g.jsx(wr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative size-48",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx(eu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(n.poor).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(n.fair).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(n.good).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},Oce=({features:e})=>{const t=Object.entries(e).reduce((r,[i,a])=>{const{integration_count:o,integration_pending:l,regression_count:s,regression_pending:u,unit_count:c,unit_pending:f}=a.test_pyramid||{};return{unit_count:r.unit_count+(c||0),unit_pending:r.unit_pending+(f||0),integration_count:r.integration_count+(o||0),integration_pending:r.integration_pending+(l||0),regression_count:r.regression_count+(s||0),regression_pending:r.regression_pending+(u||0)}},{unit_count:0,unit_pending:0,integration_count:0,integration_pending:0,regression_count:0,regression_pending:0}),n=[{value:Math.max(Math.log(t.unit_count+t.unit_pending),0),fill:"#1d4ed8"},{value:Math.max(Math.log(t.integration_count+t.integration_pending),0),fill:"#2563eb"},{value:Math.max(Math.log(t.regression_count+t.regression_pending),0),fill:"#3b82f6"}];return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(X$,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),g.jsxs("div",{className:"relative flex-shrink-0 group",children:[g.jsx(wr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded py-1 px-2 w-48",children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative h-48 w-72",children:g.jsx(Lo,{width:"100%",height:"100%",children:g.jsx($T,{width:730,height:250,children:g.jsx(Cr,{dataKey:"value",data:n,reversed:!0,children:g.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-600",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-700",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Xu=({title:e})=>g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsx("div",{className:"flex items-center gap-x-2",children:e})}),pE=({features:e,metric:t,sortDirection:n="ASC"})=>Object.entries(e).sort(([r,i],[a,o])=>{const l=i.test_pyramid&&i.test_pyramid[t]||0,s=o.test_pyramid&&o.test_pyramid[t]||0;return l===s?o.additional_metrics.feature_size.score-i.additional_metrics.feature_size.score:n==="ASC"?l-s:s-l}).slice(0,5).map(([r,i])=>({featureName:r,score:i.test_pyramid&&i.test_pyramid[t]||0,feature:i})),hE=["Regression","Integration","Unit"],mE=["Missing","Pending"],vE={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},$ce={Pending:{Unit:"Top 5 features with pending unit tests",Integration:"Top 5 features with pending integration tests",Regression:"Top 5 features with pending regression tests"},Missing:{Unit:"Bottom 5 features missing unit test coverage",Integration:"Bottom 5 features missing integration tests",Regression:"Bottom 5 features missing regression tests"}},Pce=({features:e})=>{const[t,n]=b.useState(mE[0]),[r,i]=b.useState(hE[0]),[a,o]=b.useState(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}));return b.useEffect(()=>{o(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:$ce[t][r]}),g.jsxs("div",{className:"flex h-8",children:[g.jsx(bce,{items:mE,selectedItem:t,onItemSelect:n,size:"xs"}),g.jsx("span",{className:"mx-2"}),g.jsx(lx,{items:hE,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(Xu,{title:"Feature"}),g.jsx(Xu,{title:"Team"}),g.jsx(Xu,{title:"Size"}),g.jsx(Xu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(({featureName:l,feature:s,score:u})=>{const c=s.additional_metrics.feature_size.percent_of_max,f=yo(c);return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:l})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ki,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Ns(c)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),g.jsx("td",{className:"px-4 py-4 text-sm",children:g.jsx("div",{className:"flex items-center gap-x-2",children:u})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(br,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})})})]})};function jce({features:e}){const[t,n]=b.useState("All Teams"),r=b.useMemo(()=>{const s=new Set;return s.add("All Teams"),Object.values(e).forEach(u=>{var c;(c=u.assignments)!=null&&c.teams&&u.assignments.teams.forEach(f=>s.add(f))}),Array.from(s)},[e]),i=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([s,u])=>{var c,f;return(f=(c=u.assignments)==null?void 0:c.teams)==null?void 0:f.includes(t)})),[e,t]),a=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,health:u.additional_metrics.health.overall||0})).sort((s,u)=>s.health-u.health).slice(0,5),[i]),o=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,score:u.additional_metrics.test_coverage.score||0})).sort((s,u)=>s.score-u.score).slice(0,5),[i]),l=({title:s})=>g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsx("div",{className:"flex items-center gap-x-2",children:s})});return g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Digest"}),g.jsx(lx,{items:r,selectedItem:t,onItemSelect:n})]}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg h-full",children:g.jsx("div",{className:"px-4 py-6 h-fit",children:g.jsx(Sce,{features:i})})}),g.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[g.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(l,{title:"Feature"}),g.jsx(l,{title:"Team"}),g.jsx(l,{title:"Size"}),g.jsx(l,{title:"Health Score"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=yo(u),f=s.data.additional_metrics.health.score||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:s.name})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ki,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Ns(u)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${iA(f)}`,children:g.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),g.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(br,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:g.jsx("div",{className:"px-4 py-6",children:g.jsx(Ece,{features:i})})}),g.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[g.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(l,{title:"Feature"}),g.jsx(l,{title:"Team"}),g.jsx(l,{title:"Size"}),g.jsx(l,{title:"Test Coverage"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=yo(u),f=s.data.additional_metrics.test_coverage.score||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:s.name})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ki,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Ns(u)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"px-4 py-4 text-sm",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:g.jsx("div",{className:`h-full rounded-full ${bt(f).class}`,style:{width:`${f}%`}})}),g.jsx("span",{className:"text-sm text-gray-500",children:f?`${f.toFixed(0)}%`:"No Data"})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(br,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:g.jsx("div",{className:"px-4 py-6",children:g.jsx(Oce,{features:i})})}),g.jsx("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:g.jsx(Pce,{features:i})})]})})]})}const Tce=({files:e})=>{const{project:t,environment:n}=ci,r=`${t.repository.url}/blob/${n.git_ref}`,{fileTree:i,directoryCounts:a}=b.useMemo(()=>{const v={},x={};return e.forEach(E=>{const _=E.split("/");let S=v;_.forEach((O,$)=>{if($===_.length-1){S[O]={type:"file",path:E};let T="";_.slice(0,-1).forEach(C=>{T=T?`${T}/${C}`:C,x[T]=(x[T]||0)+1})}else S[O]=S[O]||{type:"directory",children:{}},S=S[O].children})}),{fileTree:v,directoryCounts:x}},[e]),o=b.useMemo(()=>{const v=new Set;return e.forEach(x=>{const E=x.split("/");let _="";E.slice(0,-1).forEach(S=>{_=_?`${_}/${S}`:S,v.add(_)})}),v},[e]),[l,s]=b.useState("tree"),[u,c]=b.useState(o),[f,d]=b.useState({key:null,direction:"asc"}),p=b.useMemo(()=>[...e].sort((v,x)=>f.key?v<x?f.direction==="asc"?-1:1:v>x?f.direction==="asc"?1:-1:0:0),[e,f]),h=v=>{c(x=>{const E=new Set(x);return E.has(v)?E.delete(v):E.add(v),E})},m=v=>{d(x=>({key:v,direction:x.key===v&&x.direction==="asc"?"desc":"asc"}))},w=(v,x="",E=0)=>v?Object.entries(v).map(([_,S])=>{const O=x?`${x}/${_}`:_,$=u.has(O),T=a[O]||0;return S.type==="directory"?g.jsxs(j.Fragment,{children:[g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:g.jsx("div",{className:"flex items-center justify-between",children:g.jsxs("button",{onClick:()=>h(O),className:"flex items-center group gap-x-2",style:{paddingLeft:`${E*16}px`},children:[g.jsxs("div",{className:"flex items-center group",children:[$?g.jsx(G$,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}):g.jsx(SI,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}),g.jsx($I,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),g.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:_})]}),g.jsx("span",{className:"flex items-center justify-center text-xs font-medium text-gray-500 bg-gray-200 rounded-full h-5 w-5",children:T})]})})})}),$&&w(S.children,O,E+1)]},O):g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:g.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${E*16+20}px`},children:[g.jsx(Rm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),g.jsx("a",{href:`${r}/${O}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:_})]})})},O)}):null,y=({title:v,sortKey:x,className:E=""})=>g.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${E}`,onClick:()=>m(x),children:g.jsxs("div",{className:"flex items-center gap-x-2 group",children:[v,g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return g.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:g.jsx("div",{className:"overflow-hidden rounded-lg",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[g.jsx("thead",{className:"bg-gray-50",children:g.jsxs("tr",{children:[g.jsx(y,{title:l==="tree"?"File Path":"Name",sortKey:"path"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsxs("div",{className:"flex items-center justify-end gap-2",children:[g.jsx("button",{onClick:()=>s("tree"),className:`p-1 rounded ${l==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:g.jsx(Sy,{className:"size-4"})}),g.jsx("button",{onClick:()=>s("list"),className:`p-1 rounded ${l==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:g.jsx(AI,{className:"size-4"})})]})})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200",children:l==="list"?p.map(v=>g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),g.jsx("a",{href:`${r}/${v}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:v})]})})},v)):w(i)})]})})})};function Ace({name:e,feature:t}){const{project:n}=ci,i=`is:pr label:"${`Feature ${e}`}"`,a=encodeURIComponent(i),o=`${n.repository.url}/pulls?q=${a}`;return g.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Description"}),t.description&&g.jsx("p",{className:"text-sm md:text-base text-gray-600",children:t.description})]}),g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),g.jsxs("ul",{className:"mb-6 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(Sy,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[t.assignments.files?t.assignments.files.length:0," Total Files"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(kI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[(t.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(Rm,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.lines_of_code||0," Lines of Code"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(PI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(jI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.todo_locations?Object.keys(t.metrics.todo_locations).length:0," TODO Comments"]})]})]}),g.jsx("div",{className:"space-y-4 mb-6",children:g.jsxs("div",{children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),g.jsx("ul",{className:"flex flex-col gap-y-1",children:t.assignments.teams?t.assignments.teams.map(l=>g.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[g.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:g.jsx(Ki,{className:"size-4 text-gray-500"})}),l]},l)):g.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[g.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:g.jsx(Ki,{className:"size-4 text-gray-500"})}),g.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),g.jsxs("div",{className:"mb",children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),g.jsxs("ul",{className:"mb-6 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(fc,{className:"size-4 text-gray-500"})}),g.jsx("a",{href:o,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Pull Requests"})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(fc,{className:"size-4 text-gray-500"})}),t.documentation_link?g.jsx("a",{href:t.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Documentation"}):g.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(fc,{className:"size-4 text-gray-500"})}),t.dashboard_link?g.jsx("a",{href:t.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"New Relic Dashboard"}):g.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing New Relic Dashboard"})]})]})]})]})}const Cce=({value:e,suffix:t="",color:n="#ef4444"})=>{const r=e===0?"transparent":n;return g.jsxs("div",{className:"relative h-20 w-20",children:[g.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[g.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#eee",strokeWidth:"2"}),g.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:r,strokeWidth:"2",strokeDasharray:`${e}, 100`})]}),g.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[g.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),g.jsx("span",{className:"text-sm",children:t})]})]})},gE=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:a,color:o})=>g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),g.jsx("span",{className:"flex pl-2",children:t})]}),a&&g.jsxs(bo,{children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:a})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Cce,{value:n,suffix:r,color:o}),g.jsx("div",{className:"flex flex-col flex-1",children:e})]})]}),kce=({feature:e})=>{const{integration_count:t=0,integration_pending:n=0,regression_count:r=0,regression_pending:i=0,unit_count:a=0,unit_pending:o=0}=(e==null?void 0:e.test_pyramid)||{},l=[{type:"Unit Tests",count:a,pending:o,color:"blue-700",fill:"#1d4ed8"},{type:"Integration Tests",count:t,pending:n,color:"blue-500",fill:"#3b82f6"},{type:"Regression Tests",count:r,pending:i,color:"blue-300",fill:"#93c5fd"}],s=l.map(u=>({value:Math.max(Math.log(u.count+u.pending),0),fill:u.fill}));return g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-20 w-20",children:s.every(u=>u.value===0)?g.jsx("div",{className:"flex flex-col flex-shrink-0 items-center justify-center size-full bg-gray-100 rounded-full shadow text-gray-500 mb-4",children:g.jsx(NI,{})}):g.jsx("div",{className:"absolute left-[-31px] top-0 bottom-0",children:g.jsx($T,{width:150,height:80,children:g.jsx(Cr,{dataKey:"value",data:s,reversed:!0,isAnimationActive:!1,children:g.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),g.jsx("ul",{className:"flex flex-col flex-1 gap-y-1",children:l.reverse().map((u,c)=>g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-3 h-3 rounded-full bg-${u.color}`}),g.jsxs("p",{className:"text-xs text-gray-500",children:[u.type,": ",g.jsx("span",{className:"font-medium",children:u.count})," (",u.pending," pending)"]})]},c))})]})};function Nce({features:e}){const{name:t}=wM(),n=e[t];if(!n)return g.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:g.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[g.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),g.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),g.jsx(br,{to:"/",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Features"})]})});const r=n.additional_metrics.health.overall,i=n.additional_metrics.feature_size.percent_of_max,a=Ns(i);return g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-6 py-4 md:py-8",children:[g.jsx("div",{className:"flex justify-between items-center",children:g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:t})}),g.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6",children:[g.jsx("div",{className:"col-span-1 xl:col-span-3",children:g.jsx(Ace,{name:t,feature:n})}),g.jsxs("div",{className:"col-span-1 xl:col-span-9",children:[g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8",children:[g.jsx(gE,{title:"Health Score",value:r.toFixed(0),suffix:"%",tooltip:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`.",icon:g.jsx(Ey,{}),color:wt(r).hex,children:g.jsxs("ul",{className:"flex flex-col gap-y-1",children:[g.jsxs("li",{className:"text-xs text-gray-500",children:["Coverage: ",n.additional_metrics.health.test_coverage_component.health_score.toFixed(0)," / ",n.additional_metrics.health.test_coverage_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Complexity: ",n.additional_metrics.health.cyclomatic_complexity_component.health_score.toFixed(0)," / ",n.additional_metrics.health.cyclomatic_complexity_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Encapsulation: ",n.additional_metrics.health.encapsulation_component.health_score.toFixed(0)," / ",n.additional_metrics.health.encapsulation_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Todos: ",n.additional_metrics.health.todo_count_component.health_score.toFixed(0)," / ",n.additional_metrics.health.todo_count_component.awardable_points]})]})}),g.jsx(gE,{title:"Test Coverage",value:n.additional_metrics.test_coverage.score,suffix:"%",tooltip:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`.",icon:g.jsx(_y,{}),color:bt(n.additional_metrics.test_coverage.score).hex,children:g.jsxs("ul",{className:"flex flex-col gap-y-1",children:[g.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(q$,{})}),g.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),g.jsxs(bo,{children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-20 flex items-center",children:g.jsx("div",{className:"text-2xl font-bold uppercase",children:yo(i)})}),g.jsx("div",{className:"flex flex-col gap-y-2",children:g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(o=>g.jsx("div",{className:`h-6 w-1.5 rounded ${o<=a?"bg-blue-500":"bg-gray-300"}`},o))})}),g.jsxs("div",{children:[g.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),g.jsxs("div",{className:"text-[10px] text-gray-500",children:[Xie(n.metrics.lines_of_code)," lines"]})]})]})]}),g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(X$,{})}),g.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),g.jsxs(bo,{children:[g.jsx(Qi,{children:g.jsx(wr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),g.jsx(kce,{feature:n})]})]}),n.assignments.files&&n.assignments.files.length>0?g.jsx(g.Fragment,{children:g.jsx(Tce,{files:n.assignments.files})}):g.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-sm mb-8",children:g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[g.jsx("div",{className:"flex items-center justify-center flex-shrink-0 h-16 w-16 bg-gray-100 rounded-full shadow text-gray-500 mb-4",children:g.jsx(Sy,{})}),g.jsx("p",{children:"No files found for this feature"})]})})]})]})]})}const Mce=[{name:"Dashboard",pathname:"",icon:TI},{name:"Digest",pathname:"Digest",icon:OI}];function Yu(...e){return e.filter(Boolean).join(" ")}function yE(){const e=jr(),{linked_sites:t,title:n}=ci.project.documentation_site;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex h-16 shrink-0 items-center",children:g.jsx(br,{to:"/",children:"Feature Documentation"})}),g.jsx("nav",{className:"flex flex-1 flex-col",children:g.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[g.jsxs("li",{children:[g.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:n}),g.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:Mce.map(r=>g.jsx("li",{children:g.jsxs(br,{to:r.pathname,className:Yu(e.pathname===`/${r.pathname}`?"text-blue-600":"text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),children:[g.jsx(r.icon,{"aria-hidden":"true",className:Yu("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),r.name]})},r.name))})]}),t&&t.length>0&&g.jsxs("li",{children:[g.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Linked Feature Documentation"}),g.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:t.map(r=>g.jsx("li",{children:g.jsxs("a",{href:r.url,target:"_blank",className:Yu("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),children:[g.jsx(fc,{"aria-hidden":"true",className:Yu("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),r.name]})},r.name))})]})]})})]})}function Ice(){const[e,t]=b.useState(!1);return g.jsxs("div",{children:[g.jsxs(jue,{open:e,onClose:t,className:"relative z-50 lg:hidden",children:[g.jsx($ue,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-[closed]:opacity-0"}),g.jsx("div",{className:"fixed inset-0 flex",children:g.jsxs(rC,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-[closed]:-translate-x-full",children:[g.jsx(xp,{children:g.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5 duration-300 ease-in-out data-[closed]:opacity-0",children:g.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[g.jsx("span",{className:"sr-only",children:"Close sidebar"}),g.jsx(EI,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),g.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:g.jsx(yE,{})})]})})]}),g.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:g.jsx("div",{className:"flex grow flex-col overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4",children:g.jsx(yE,{})})}),g.jsxs("div",{className:"lg:pl-72",children:[g.jsx("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white lg:hidden px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8",children:g.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",children:[g.jsx("span",{className:"sr-only",children:"Open sidebar"}),g.jsx(CI,{"aria-hidden":"true",className:"size-6"})]})}),g.jsx("main",{className:"",children:g.jsx("div",{className:"px-4 sm:px-6 lg:px-8",children:g.jsx(IM,{})})})]})]})}function Rce(){const{features:e}=ci,t=jr();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),g.jsx(LM,{children:g.jsxs(ml,{element:g.jsx(Ice,{}),children:[g.jsx(ml,{path:"",element:g.jsx(_ce,{features:e})}),g.jsx(ml,{path:"digest",element:g.jsx(jce,{features:e})}),g.jsx(ml,{path:":name",element:g.jsx(Nce,{features:e})})]})})}zh.createRoot(document.getElementById("root")).render(g.jsx(j.StrictMode,{children:g.jsx(lI,{children:g.jsx(Rce,{})})}));
|
271
|
+
`))}else{let d=c.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...y)=>gg(p(...y),s.className):gg(p,s.className),m=h?{className:h}:{},w=hA(c.props,Fr(Rh(s,["ref"])));for(let y in f)y in w&&delete f[y];return b.cloneElement(c,Object.assign({},w,f,u,{ref:i(fle(c),u.ref)},m))}return b.createElement(a,Object.assign({},Rh(s,["ref"]),a!==b.Fragment&&u,a!==b.Fragment&&f),c)}function ule(){let e=b.useRef([]),t=b.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function cle(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function hA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var a;return(a=i==null?void 0:i.preventDefault)==null?void 0:a.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let l of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return t}function dp(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let a=n[r];for(let o of a)o==null||o(...i)}});return t}function Ee(e){var t;return Object.assign(b.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Fr(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function fle(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function dle(e,t,n){let[r,i]=b.useState(n),a=e!==void 0,o=b.useRef(a),l=b.useRef(!1),s=b.useRef(!1);return a&&!o.current&&!l.current?(l.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!s.current&&(s.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Q(u=>(a||i(u),t==null?void 0:t(u)))]}function ple(e){let[t]=b.useState(e);return t}function mA(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))gA(n,vA(t,r),i);return n}function vA(e,t){return e?e+"["+t+"]":t}function gA(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())gA(e,vA(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):mA(n,t,e)}function hle(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let mle="span";var ea=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ea||{});function vle(e,t){var n;let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Re()({ourProps:a,theirProps:i,slot:{},defaultTag:mle,name:"Hidden"})}let So=Ee(vle),yA=b.createContext(null);function gle(e){let[t,n]=b.useState(null);return j.createElement(yA.Provider,{value:{target:t}},e.children,j.createElement(So,{features:ea.Hidden,ref:n}))}function yle({children:e}){let t=b.useContext(yA);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Ht.createPortal(j.createElement(j.Fragment,null,e),n):null}function xle({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[a,o]=b.useState(null),l=sa();return b.useEffect(()=>{if(r&&a)return l.addEventListener(a,"reset",r)},[a,t,r]),j.createElement(yle,null,j.createElement(ble,{setForm:o,formId:t}),mA(e).map(([s,u])=>j.createElement(So,{features:ea.Hidden,...Fr({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function ble({setForm:e,formId:t}){return b.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(So,{features:ea.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let xA=b.createContext(void 0);function bA(){return b.useContext(xA)}function wle({id:e,children:t}){return j.createElement(xA.Provider,{value:e},t)}function G0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&_le(n)?!1:r}function _le(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let wA=Symbol();function Sle(e,t=!0){return Object.assign(e,{[wA]:t})}function ot(...e){let t=b.useRef(e);b.useEffect(()=>{t.current=e},[e]);let n=Q(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[wA]))?void 0:n}let pp=b.createContext(null);pp.displayName="DescriptionContext";function _A(){let e=b.useContext(pp);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,_A),t}return e}function Ele(){var e,t;return(t=(e=b.useContext(pp))==null?void 0:e.value)!=null?t:void 0}function cu(){let[e,t]=b.useState([]);return[e.length>0?e.join(" "):void 0,b.useMemo(()=>function(n){let r=Q(a=>(t(o=>[...o,a]),()=>t(o=>{let l=o.slice(),s=l.indexOf(a);return s!==-1&&l.splice(s,1),l}))),i=b.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return j.createElement(pp.Provider,{value:i},n.children)},[t])]}let Ole="p";function $le(e,t){let n=b.useId(),r=uu(),{id:i=`headlessui-description-${n}`,...a}=e,o=_A(),l=ot(t);he(()=>o.register(i),[i,o.register]);let s=r||!1,u=b.useMemo(()=>({...o.slot,disabled:s}),[o.slot,s]),c={ref:l,...o.props,id:i};return Re()({ourProps:c,theirProps:a,slot:u,defaultTag:Ole,name:o.name||"Description"})}let Ple=Ee($le),SA=Object.assign(Ple,{});var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});let hp=b.createContext(null);hp.displayName="LabelContext";function q0(){let e=b.useContext(hp);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,q0),t}return e}function EA(e){var t,n,r;let i=(n=(t=b.useContext(hp))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function fu({inherit:e=!1}={}){let t=EA(),[n,r]=b.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,b.useMemo(()=>function(a){let o=Q(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=b.useMemo(()=>({register:o,slot:a.slot,name:a.name,props:a.props,value:a.value}),[o,a.slot,a.name,a.props,a.value]);return j.createElement(hp.Provider,{value:l},a.children)},[r])]}let jle="label";function Tle(e,t){var n;let r=b.useId(),i=q0(),a=bA(),o=uu(),{id:l=`headlessui-label-${r}`,htmlFor:s=a??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=ot(t);he(()=>i.register(l),[l,i.register]);let d=Q(w=>{let y=w.currentTarget;if(y instanceof HTMLLabelElement&&w.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(w),y instanceof HTMLLabelElement){let g=document.getElementById(y.htmlFor);if(g){let x=g.getAttribute("disabled");if(x==="true"||x==="")return;let E=g.getAttribute("aria-disabled");if(E==="true"||E==="")return;(g instanceof HTMLInputElement&&(g.type==="radio"||g.type==="checkbox")||g.role==="radio"||g.role==="checkbox"||g.role==="switch")&&g.click(),g.focus({preventScroll:!0})}}}),p=o||!1,h=b.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),m={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),Re()({ourProps:m,theirProps:c,slot:h,defaultTag:s?jle:"div",name:i.name||"Label"})}let Ale=Ee(Tle),Cle=Object.assign(Ale,{}),kle=b.createContext(()=>{});function Nle({value:e,children:t}){return j.createElement(kle.Provider,{value:e},t)}function Mle(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Ile(e=Mle){return b.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Rle(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Lle(e,t=!1){let[n,r]=b.useReducer(()=>({}),{}),i=b.useMemo(()=>Rle(e),[e,n]);return he(()=>{if(!e)return;let a=new ResizeObserver(r);return a.observe(e),()=>{a.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Dle=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function OA(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(l=>l()))}}}function $A(e){return b.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let Fle=new Dle(()=>OA(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Wo(e,t){let n=Fle.get(t),r=b.useId(),i=$A(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let a=i.indexOf(r),o=i.length;return a===-1&&(a=o,o+=1),a===o-1}let yg=new Map,Rl=new Map;function XS(e){var t;let n=(t=Rl.get(e))!=null?t:0;return Rl.set(e,n+1),n!==0?()=>YS(e):(yg.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>YS(e))}function YS(e){var t;let n=(t=Rl.get(e))!=null?t:1;if(n===1?Rl.delete(e):Rl.set(e,n-1),n!==1)return;let r=yg.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,yg.delete(e))}function PA(e,{allowed:t,disallowed:n}={}){let r=Wo(e,"inert-others");he(()=>{var i,a;if(!r)return;let o=Zn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&o.add(XS(s));let l=(a=t==null?void 0:t())!=null?a:[];for(let s of l){if(!s)continue;let u=vi(s);if(!u)continue;let c=s.parentElement;for(;c&&c!==u.body;){for(let f of c.children)l.some(d=>f.contains(d))||o.add(XS(f));c=c.parentElement}}return o.dispose},[r,t,n])}function jA(e,t,n){let r=Nr(i=>{let a=i.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});b.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let a=Zn();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}return()=>a.dispose()},[t,r,e])}let Kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ble=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var _t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(_t||{}),Ds=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ds||{}),zle=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(zle||{});function TA(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Kf)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Ule(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ble)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var X0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X0||{});function Y0(e,t=0){var n;return e===((n=vi(e))==null?void 0:n.body)?!1:jn(t,{0(){return e.matches(Kf)},1(){let r=e;for(;r!==null;){if(r.matches(Kf))return!0;r=r.parentElement}return!1}})}function AA(e){let t=vi(e);Zn().nextFrame(()=>{t&&!Y0(t.activeElement,0)&&Gn(e)})}var Hle=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Hle||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Gn(e){e==null||e.focus({preventScroll:!0})}let Wle=["textarea","input"].join(",");function Vle(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Wle))!=null?n:!1}function Q0(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Kle(e,t){return ii(TA(),t,{relativeTo:e})}function ii(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?Q0(e):e:t&64?Ule(e):TA(e);i.length>0&&o.length>1&&(o=o.filter(p=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===p:h===p))),r=r??a.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=o.length,d;do{if(c>=f||c+f<=0)return 0;let p=s+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=o[p],d==null||d.focus(u),c+=l}while(d!==a.activeElement);return t&6&&Vle(d)&&d.select(),2}function CA(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Gle(){return/Android/gi.test(window.navigator.userAgent)}function qle(){return CA()||Gle()}function fl(e,t,n,r){let i=Nr(n);b.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function kA(e,t,n,r){let i=Nr(n);b.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const QS=30;function NA(e,t,n){let r=Wo(e,"outside-click"),i=Nr(n),a=b.useCallback(function(s,u){if(s.defaultPrevented)return;let c=u(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(t);for(let d of f)if(d!==null&&(d.contains(c)||s.composed&&s.composedPath().includes(d)))return;return!Y0(c,X0.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),o=b.useRef(null);fl(r,"pointerdown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"mousedown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"click",s=>{qle()||o.current&&(a(s,()=>o.current),o.current=null)},!0);let l=b.useRef({x:0,y:0});fl(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),fl(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=QS||Math.abs(u.y-l.current.y)>=QS))return a(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),kA(r,"blur",s=>a(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Vo(...e){return b.useMemo(()=>vi(...e),[...e])}function MA(e,t,n,r){let i=Nr(n);b.useEffect(()=>{e=e??window;function a(o){i.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Xle(e,t){return b.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Yle(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-i);n.style(r,"paddingRight",`${a}px`)}}}function Qle(){return CA()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(a=>a()).some(a=>a.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Zn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=e.querySelector(u);c&&!r(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let s=l.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(r(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;a!==s&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Zle(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Jle(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ri=OA(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Zn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Jle(n)},i=[Qle(),Yle(),Zle()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ri.subscribe(()=>{let e=Ri.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Ri.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ri.dispatch("TEARDOWN",n)}});function ese(e,t,n=()=>({containers:[]})){let r=$A(Ri),i=t?r.get(t):void 0,a=i?i.count>0:!1;return he(()=>{if(!(!t||!e))return Ri.dispatch("PUSH",t,n),()=>Ri.dispatch("POP",t,n)},[e,t]),a}function IA(e,t,n=()=>[document.body]){let r=Wo(e,"scroll-lock");ese(r,t,i=>{var a;return{containers:[...(a=i.containers)!=null?a:[],n]}})}function ZS(e){return[e.screenX,e.screenY]}function tse(){let e=b.useRef([-1,-1]);return{wasMoved(t){let n=ZS(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=ZS(t)}}}function nse(e=0){let[t,n]=b.useState(e),r=b.useCallback(s=>n(s),[t]),i=b.useCallback(s=>n(u=>u|s),[t]),a=b.useCallback(s=>(t&s)===s,[t]),o=b.useCallback(s=>n(u=>u&~s),[n]),l=b.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:l}}var rse={},JS,eE;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((JS=process==null?void 0:rse)==null?void 0:JS.NODE_ENV)==="test"&&typeof((eE=Element==null?void 0:Element.prototype)==null?void 0:eE.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
272
|
+
`)),[]});var ise=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ise||{});function RA(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function LA(e,t,n,r){let[i,a]=b.useState(n),{hasFlag:o,addFlag:l,removeFlag:s}=nse(e&&i?3:0),u=b.useRef(!1),c=b.useRef(!1),f=sa();return he(()=>{var d;if(e){if(n&&a(!0),!t){n&&l(3);return}return(d=r==null?void 0:r.start)==null||d.call(r,n),ase(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(l(3),s(4)):(l(4),s(2)))},run(){c.current?n?(s(3),l(4)):(s(4),l(3)):n?s(1):l(1)},done(){var p;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,s(7),n||a(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function ase(e,{prepare:t,run:n,done:r,inFlight:i}){let a=Zn();return lse(e,{prepare:t,inFlight:i}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(ose(e,r))})}),a.dispose}function ose(e,t){var n,r;let i=Zn();if(!e)return i.dispose;let a=!1;i.add(()=>{a=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(l=>l.finished)).then(()=>{a||t()}),i.dispose)}function lse(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function sse(e,{container:t,accept:n,walk:r}){let i=b.useRef(n),a=b.useRef(r);b.useEffect(()=>{i.current=n,a.current=r},[n,r]),he(()=>{if(!t||!e)return;let o=vi(t);if(!o)return;let l=i.current,s=a.current,u=Object.assign(f=>l(f),{acceptNode:l}),c=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)s(c.currentNode)},[t,e,i,a])}function Z0(e,t){let n=b.useRef([]),r=Q(e);b.useEffect(()=>{let i=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let l=r(t,i);return n.current=t,l}},[r,...t])}function use(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const DA={...mc},cse=DA.useInsertionEffect,fse=cse||(e=>e());function FA(e){const t=b.useRef(()=>{});return fse(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var xg=typeof document<"u"?b.useLayoutEffect:b.useEffect;let tE=!1,dse=0;const nE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dse++;function pse(){const[e,t]=b.useState(()=>tE?nE():void 0);return xg(()=>{e==null&&t(nE())},[]),b.useEffect(()=>{tE=!0},[]),e}const hse=DA.useId,mse=hse||pse;function vse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const gse=b.createContext(null),yse=b.createContext(null),xse=()=>{var e;return((e=b.useContext(gse))==null?void 0:e.id)||null},bse=()=>b.useContext(yse),wse="data-floating-ui-focusable";function _se(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=mse(),a=b.useRef({}),[o]=b.useState(()=>vse()),l=xse()!=null,[s,u]=b.useState(r.reference),c=FA((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Sse(e){e===void 0&&(e={});const{nodeId:t}=e,n=_se({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||a,f=b.useRef(null),d=bse();xg(()=>{c&&(f.current=c)},[c]);const p=YT({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),y=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=b.useMemo(()=>({...p,...r,refs:w,elements:y,nodeId:t}),[p,w,y,t,r]);return xg(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=g)}),b.useMemo(()=>({...p,context:g,refs:w,elements:y}),[p,w,y,g])}const rE="active",iE="selected";function Lh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[rE]:o,[iE]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[wse]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[rE,iE].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else o[u]=c}),o),{})}}function Ese(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Lh(l,e,"reference"),t),a=b.useCallback(l=>Lh(l,e,"floating"),n),o=b.useCallback(l=>Lh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}function aE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Ose=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:a=0,index:o=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=la(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[o],h=(u==null?void 0:u.current)||d,m=d.clientTop||h.clientTop,w=d.clientTop!==0,y=h.clientTop!==0,g=d===h;if(!p)return{};const x={...t,...await B0(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-a).fn(t)},E=await Ph(aE(x,h.scrollHeight+m+d.clientTop),c),_=await Ph(x,{...c,elementContext:"reference"}),S=vt(0,E.top),O=x.y+S,C=(h.scrollHeight>h.clientHeight?A=>A:Rs)(vt(0,h.scrollHeight+(w&&g||y?m*2:0)-S-vt(0,E.bottom)));if(h.style.maxHeight=C+"px",h.scrollTop=S,i){const A=h.offsetHeight<p.offsetHeight*Xi(l,n.current.length)-1||_.top>=-s||_.bottom>=-s;Ht.flushSync(()=>i(A))}return r&&(r.current=await Ph(aE({...x,y:O},h.offsetHeight+m+d.clientTop),c)),{y:O}}});function $se(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:a,scrollRef:o,onChange:l}=t,s=FA(l),u=b.useRef(!1),c=b.useRef(null),f=b.useRef(null);b.useEffect(()=>{if(!i)return;function p(m){if(m.ctrlKey||!h||a.current==null)return;const w=m.deltaY,y=a.current.top>=-.5,g=a.current.bottom>=-.5,x=h.scrollHeight-h.clientHeight,E=w<0?-1:1,_=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!y&&w>0||!g&&w<0?(m.preventDefault(),Ht.flushSync(()=>{s(S=>S+Math[_](w,x*E))})):/firefox/i.test(use())&&(h.scrollTop+=w))}const h=(o==null?void 0:o.current)||r.floating;if(n&&h)return h.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=h.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{c.current=null,f.current=null,h.removeEventListener("wheel",p)}},[i,n,r.floating,a,o,s]);const d=b.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(o==null?void 0:o.current)||r.floating;if(!(!a.current||!p||!u.current)){if(c.current!==null){const h=p.scrollTop-c.current;(a.current.bottom<-.5&&h<-1||a.current.top<-.5&&h>1)&&Ht.flushSync(()=>s(m=>m+h))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,a,o]);return b.useMemo(()=>i?{floating:d}:{},[i,d])}let Ko=b.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ko.displayName="FloatingContext";let J0=b.createContext(null);J0.displayName="PlacementContext";function Pse(e){return b.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function jse(){return b.useContext(Ko).setReference}function Tse(){return b.useContext(Ko).getReferenceProps}function Ase(){let{getFloatingProps:e,slot:t}=b.useContext(Ko);return b.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Cse(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=b.useContext(J0),n=b.useMemo(()=>e,[JSON.stringify(e,(i,a)=>{var o;return(o=a==null?void 0:a.outerHTML)!=null?o:a})]);he(()=>{t==null||t(n??null)},[t,n]);let r=b.useContext(Ko);return b.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let oE=4;function kse({children:e,enabled:t=!0}){let[n,r]=b.useState(null),[i,a]=b.useState(0),o=b.useRef(null),[l,s]=b.useState(null);Nse(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:h}=Mse(n,l),[m,w="center"]=c.split(" ");he(()=>{u&&a(0)},[u]);let{refs:y,floatingStyles:g,context:x}=Sse({open:u,placement:m==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${m}`:`${m}-${w}`,strategy:"absolute",transform:!1,middleware:[B0({mainAxis:m==="selection"?0:f,crossAxis:d}),QT({padding:p}),m!=="selection"&&ooe({padding:p}),m==="selection"&&h?Ose({...h,padding:p,overflowRef:o,offset:i,minItemsVisible:oE,referenceOverflowThreshold:p,onFallbackChange(A){var N,I;if(!A)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,F=Math.min(oE,D.childElementCount),R=0,P=0;for(let k of(I=(N=x.elements.floating)==null?void 0:N.childNodes)!=null?I:[])if(k instanceof HTMLElement){let B=k.offsetTop,L=B+k.clientHeight+M,U=D.scrollTop,V=U+D.clientHeight;if(B>=U&&L<=V)F--;else{P=Math.max(0,Math.min(L,V)-Math.max(B,U)),R=k.clientHeight;break}}F>=1&&a(k=>{let B=R*F-P+M;return k>=B?k:B})}}):null,loe({padding:p,apply({availableWidth:A,availableHeight:N,elements:I}){Object.assign(I.floating.style,{overflow:"auto",maxWidth:`${A}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:qT}),[E=m,_=w]=x.placement.split("-");m==="selection"&&(E="selection");let S=b.useMemo(()=>({anchor:[E,_].filter(Boolean).join(" ")}),[E,_]),O=$se(x,{overflowRef:o,onChange:a}),{getReferenceProps:$,getFloatingProps:T}=Ese([O]),C=Q(A=>{s(A),y.setFloating(A)});return b.createElement(J0.Provider,{value:r},b.createElement(Ko.Provider,{value:{setFloating:C,setReference:y.setReference,styles:g,getReferenceProps:$,getFloatingProps:T,slot:S}},e))}function Nse(e){he(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Mse(e,t){var n,r,i;let a=Dh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),o=Dh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Dh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:o,padding:l}}function Dh(e,t,n=void 0){let r=sa(),i=Q((s,u)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!u)return[n,null];let c=lE(s,u);return[c,f=>{let d=BA(s);{let p=d.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let m=!1;for(let[y,g]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(g);if(p[y]!==x){p[y]=x,m=!0;break}}if(!m)return;let w=lE(s,u);c!==w&&(f(w),c=w)})}return r.dispose}]}return[n,null]}),a=b.useMemo(()=>i(e,t)[0],[e,t]),[o=a,l]=b.useState();return he(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),o}function BA(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...BA(i)]:[r]}return[]}function lE(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let mp=b.createContext(null);mp.displayName="OpenClosedContext";var Et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Et||{});function du(){return b.useContext(mp)}function zA({value:e,children:t}){return j.createElement(mp.Provider,{value:e},t)}function Ise({children:e}){return j.createElement(mp.Provider,{value:null},e)}function Rse(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ur=[];Rse(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Ur[0]===t.target)return;let n=t.target;n=n.closest(Kf),Ur.unshift(n??t.target),Ur=Ur.filter(r=>r!=null&&r.isConnected),Ur.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Lse(e){throw new Error("Unexpected object: "+e)}var gt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gt||{});function Fh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{i===-1&&(i=n.length);for(let a=i-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=i+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:Lse(e)}}function UA(e){let t=Q(e),n=b.useRef(!1);b.useEffect(()=>(n.current=!1,()=>{n.current=!0,fp(()=>{n.current&&t()})}),[t])}function Dse(){let e=typeof document>"u";return"useSyncExternalStore"in mc?(t=>t.useSyncExternalStore)(mc)(()=>()=>{},()=>!1,()=>!e):!1}function pu(){let e=Dse(),[t,n]=b.useState(zi.isHandoffComplete);return t&&zi.isHandoffComplete===!1&&n(!1),b.useEffect(()=>{t!==!0&&n(!0)},[t]),b.useEffect(()=>zi.handoff(),[]),e?!1:t}let HA=b.createContext(!1);function Fse(){return b.useContext(HA)}function sE(e){return j.createElement(HA.Provider,{value:e.force},e.children)}function Bse(e){let t=Fse(),n=b.useContext(VA),r=Vo(e),[i,a]=b.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(zi.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return b.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),b.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),i}let WA=b.Fragment,zse=Ee(function(e,t){let n=e,r=b.useRef(null),i=ot(Sle(f=>{r.current=f}),t),a=Vo(r),o=Bse(r),[l]=b.useState(()=>{var f;return zi.isServer?null:(f=a==null?void 0:a.createElement("div"))!=null?f:null}),s=b.useContext(bg),u=pu();he(()=>{!o||!l||o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l))},[o,l]),he(()=>{if(l&&s)return s.register(l)},[s,l]),UA(()=>{var f;!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&((f=o.parentElement)==null||f.removeChild(o)))});let c=Re();return u?!o||!l?null:Ht.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:WA,name:"Portal"}),l):null});function Use(e,t){let n=ot(t),{enabled:r=!0,...i}=e,a=Re();return r?j.createElement(zse,{...i,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:WA,name:"Portal"})}let Hse=b.Fragment,VA=b.createContext(null);function Wse(e,t){let{target:n,...r}=e,i={ref:ot(t)},a=Re();return j.createElement(VA.Provider,{value:n},a({ourProps:i,theirProps:r,defaultTag:Hse,name:"Popover.Group"}))}let bg=b.createContext(null);function Vse(){let e=b.useContext(bg),t=b.useRef([]),n=Q(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=Q(a=>{let o=t.current.indexOf(a);o!==-1&&t.current.splice(o,1),e&&e.unregister(a)}),i=b.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,b.useMemo(()=>function({children:a}){return j.createElement(bg.Provider,{value:i},a)},[i])]}let Kse=Ee(Use),KA=Ee(Wse),GA=Object.assign(Kse,{Group:KA});function Gse(e,t=typeof document<"u"?document.defaultView:null,n){let r=Wo(e,"escape");MA(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===Ne.Escape&&n(i))})}function qse(){var e;let[t]=b.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=b.useState((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function i(a){r(a.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Xse({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Vo(n),i=Q(()=>{var a,o;let l=[];for(let s of e)s!==null&&(s instanceof HTMLElement?l.push(s):"current"in s&&s.current instanceof HTMLElement&&l.push(s.current));if(t!=null&&t.current)for(let s of t.current)l.push(s);for(let s of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(n&&(s.contains(n)||s.contains((o=n==null?void 0:n.getRootNode())==null?void 0:o.host))||l.some(u=>s.contains(u))||l.push(s));return l});return{resolveContainers:i,contains:Q(a=>i().some(o=>o.contains(a)))}}let qA=b.createContext(null);function uE({children:e,node:t}){let[n,r]=b.useState(null),i=XA(t??n);return j.createElement(qA.Provider,{value:i},e,i===null&&j.createElement(So,{features:ea.Hidden,ref:a=>{var o,l;if(a){for(let s of(l=(o=vi(a))==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])if(s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s!=null&&s.contains(a)){r(s);break}}}}))}function XA(e=null){var t;return(t=b.useContext(qA))!=null?t:e}function ex(){let e=b.useRef(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var xl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(xl||{});function Yse(){let e=b.useRef(0);return kA(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function YA(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Qse="div";var ji=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ji||{});function Zse(e,t){let n=b.useRef(null),r=ot(n,t),{initialFocus:i,initialFocusFallback:a,containers:o,features:l=15,...s}=e;pu()||(l=0);let u=Vo(n);nue(l,{ownerDocument:u});let c=rue(l,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:a});iue(l,{ownerDocument:u,container:n,containers:o,previousActiveElement:c});let f=Yse(),d=Q(g=>{let x=n.current;x&&(E=>E())(()=>{jn(f.current,{[xl.Forwards]:()=>{ii(x,_t.First,{skipElements:[g.relatedTarget,a]})},[xl.Backwards]:()=>{ii(x,_t.Last,{skipElements:[g.relatedTarget,a]})}})})}),p=Wo(!!(l&2),"focus-trap#tab-lock"),h=sa(),m=b.useRef(!1),w={ref:r,onKeyDown(g){g.key=="Tab"&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(g){if(!(l&4))return;let x=YA(o);n.current instanceof HTMLElement&&x.add(n.current);let E=g.relatedTarget;E instanceof HTMLElement&&E.dataset.headlessuiFocusGuard!=="true"&&(QA(x,E)||(m.current?ii(n.current,jn(f.current,{[xl.Forwards]:()=>_t.Next,[xl.Backwards]:()=>_t.Previous})|_t.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Gn(g.target)))}},y=Re();return j.createElement(j.Fragment,null,p&&j.createElement(So,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}),y({ourProps:w,theirProps:s,defaultTag:Qse,name:"FocusTrap"}),p&&j.createElement(So,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}))}let Jse=Ee(Zse),eue=Object.assign(Jse,{features:ji});function tue(e=!0){let t=b.useRef(Ur.slice());return Z0(([n],[r])=>{r===!0&&n===!1&&fp(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ur.slice())},[e,Ur,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function nue(e,{ownerDocument:t}){let n=!!(e&8),r=tue(n);Z0(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Gn(r())},[n]),UA(()=>{n&&Gn(r())})}function rue(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let a=b.useRef(null),o=Wo(!!(e&1),"focus-trap#initial-focus"),l=ex();return Z0(()=>{if(e===0)return;if(!o){i!=null&&i.current&&Gn(i.current);return}let s=n.current;s&&fp(()=>{if(!l.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){a.current=u;return}}else if(s.contains(u)){a.current=u;return}if(r!=null&&r.current)Gn(r.current);else{if(e&16){if(ii(s,_t.First|_t.AutoFocus)!==Ds.Error)return}else if(ii(s,_t.First)!==Ds.Error)return;if(i!=null&&i.current&&(Gn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t==null?void 0:t.activeElement})},[i,o,e]),a}function iue(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let a=ex(),o=!!(e&4);MA(t==null?void 0:t.defaultView,"focus",l=>{if(!o||!a.current)return;let s=YA(r);n.current instanceof HTMLElement&&s.add(n.current);let u=i.current;if(!u)return;let c=l.target;c&&c instanceof HTMLElement?QA(s,c)?(i.current=c,Gn(c)):(l.preventDefault(),l.stopPropagation(),Gn(u)):Gn(i.current)},!0)}function QA(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function ZA(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:eC)!==b.Fragment||j.Children.count(e.children)===1}let vp=b.createContext(null);vp.displayName="TransitionContext";var aue=(e=>(e.Visible="visible",e.Hidden="hidden",e))(aue||{});function oue(){let e=b.useContext(vp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function lue(){let e=b.useContext(gp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gp=b.createContext(null);gp.displayName="NestingContext";function yp(e){return"children"in e?yp(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function JA(e,t){let n=Nr(e),r=b.useRef([]),i=ex(),a=sa(),o=Q((p,h=Kr.Hidden)=>{let m=r.current.findIndex(({el:w})=>w===p);m!==-1&&(jn(h,{[Kr.Unmount](){r.current.splice(m,1)},[Kr.Hidden](){r.current[m].state="hidden"}}),a.microTask(()=>{var w;!yp(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),l=Q(p=>{let h=r.current.find(({el:m})=>m===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,Kr.Unmount)}),s=b.useRef([]),u=b.useRef(Promise.resolve()),c=b.useRef({enter:[],leave:[]}),f=Q((p,h,m)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{s.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(c.current[h].map(([y,g])=>g)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(h)):m(h)}),d=Q((p,h,m)=>{Promise.all(c.current[h].splice(0).map(([w,y])=>y)).then(()=>{var w;(w=s.current.shift())==null||w()}).then(()=>m(h))});return b.useMemo(()=>({children:r,register:l,unregister:o,onStart:f,onStop:d,wait:u,chains:c}),[l,o,r,f,d,c,u])}let eC=b.Fragment,tC=_o.RenderStrategy;function sue(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:o,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:f,entered:d,leave:p,leaveFrom:h,leaveTo:m,...w}=e,[y,g]=b.useState(null),x=b.useRef(null),E=ZA(e),_=ot(...E?[x,t,g]:t===null?[]:[t]),S=(n=w.unmount)==null||n?Kr.Unmount:Kr.Hidden,{show:O,appear:$,initial:T}=oue(),[C,A]=b.useState(O?"visible":"hidden"),N=lue(),{register:I,unregister:D}=N;he(()=>I(x),[I,x]),he(()=>{if(S===Kr.Hidden&&x.current){if(O&&C!=="visible"){A("visible");return}return jn(C,{hidden:()=>D(x),visible:()=>I(x)})}},[C,x,I,D,O,S]);let M=pu();he(()=>{if(E&&M&&C==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,C,M,E]);let F=T&&!$,R=$&&O&&T,P=b.useRef(!1),k=JA(()=>{P.current||(A("hidden"),D(x))},N),B=Q(Ce=>{P.current=!0;let Oe=Ce?"enter":"leave";k.onStart(x,Oe,K=>{K==="enter"?a==null||a():K==="leave"&&(l==null||l())})}),L=Q(Ce=>{let Oe=Ce?"enter":"leave";P.current=!1,k.onStop(x,Oe,K=>{K==="enter"?o==null||o():K==="leave"&&(s==null||s())}),Oe==="leave"&&!yp(k)&&(A("hidden"),D(x))});b.useEffect(()=>{E&&i||(B(O),L(O))},[O,E,i]);let U=!(!i||!E||!M||F),[,V]=LA(U,y,O,{start:B,end:L}),re=Fr({ref:_,className:((r=gg(w.className,R&&u,R&&c,V.enter&&u,V.enter&&V.closed&&c,V.enter&&!V.closed&&f,V.leave&&p,V.leave&&!V.closed&&h,V.leave&&V.closed&&m,!V.transition&&O&&d))==null?void 0:r.trim())||void 0,...RA(V)}),ie=0;C==="visible"&&(ie|=Et.Open),C==="hidden"&&(ie|=Et.Closed),V.enter&&(ie|=Et.Opening),V.leave&&(ie|=Et.Closing);let J=Re();return j.createElement(gp.Provider,{value:k},j.createElement(zA,{value:ie},J({ourProps:re,theirProps:w,defaultTag:eC,features:tC,visible:C==="visible",name:"Transition.Child"})))}function uue(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=b.useRef(null),l=ZA(e),s=ot(...l?[o,t]:t===null?[]:[t]);pu();let u=du();if(n===void 0&&u!==null&&(n=(u&Et.Open)===Et.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=b.useState(n?"visible":"hidden"),d=JA(()=>{n||f("hidden")}),[p,h]=b.useState(!0),m=b.useRef([n]);he(()=>{p!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))},[m,n]);let w=b.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);he(()=>{n?f("visible"):!yp(d)&&o.current!==null&&f("hidden")},[n,d]);let y={unmount:i},g=Q(()=>{var _;p&&h(!1),(_=e.beforeEnter)==null||_.call(e)}),x=Q(()=>{var _;p&&h(!1),(_=e.beforeLeave)==null||_.call(e)}),E=Re();return j.createElement(gp.Provider,{value:d},j.createElement(vp.Provider,{value:w},E({ourProps:{...y,as:b.Fragment,children:j.createElement(nC,{ref:s,...y,...a,beforeEnter:g,beforeLeave:x})},theirProps:{},defaultTag:b.Fragment,features:tC,visible:c==="visible",name:"Transition"})))}function cue(e,t){let n=b.useContext(vp)!==null,r=du()!==null;return j.createElement(j.Fragment,null,!n&&r?j.createElement(wg,{ref:t,...e}):j.createElement(nC,{ref:t,...e}))}let wg=Ee(uue),nC=Ee(sue),xp=Ee(cue),fue=Object.assign(wg,{Child:xp,Root:wg});var due=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(due||{}),pue=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(pue||{});let hue={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},tx=b.createContext(null);tx.displayName="DialogContext";function bp(e){let t=b.useContext(tx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bp),n}return t}function mue(e,t){return jn(t.type,hue,e,t)}let cE=Ee(function(e,t){let n=b.useId(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:a,initialFocus:o,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...f}=e,d=b.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(d.current||(d.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=du();i===void 0&&p!==null&&(i=(p&Et.Open)===Et.Open);let h=b.useRef(null),m=ot(h,t),w=Vo(h),y=i?0:1,[g,x]=b.useReducer(mue,{titleId:null,descriptionId:null,panelRef:b.createRef()}),E=Q(()=>a(!1)),_=Q(L=>x({type:0,id:L})),S=pu()?y===0:!1,[O,$]=Vse(),T={get current(){var L;return(L=g.panelRef.current)!=null?L:h.current}},C=XA(),{resolveContainers:A}=Xse({mainTreeNode:C,portals:O,defaultContainers:[T]}),N=p!==null?(p&Et.Closing)===Et.Closing:!1;PA(u||N?!1:S,{allowed:Q(()=>{var L,U;return[(U=(L=h.current)==null?void 0:L.closest("[data-headlessui-portal]"))!=null?U:null]}),disallowed:Q(()=>{var L;return[(L=C==null?void 0:C.closest("body > *:not(#headlessui-portal-root)"))!=null?L:null]})}),NA(S,A,L=>{L.preventDefault(),E()}),Gse(S,w==null?void 0:w.defaultView,L=>{L.preventDefault(),L.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),IA(u||N?!1:S,w,A),jA(S,h,E);let[I,D]=cu(),M=b.useMemo(()=>[{dialogState:y,close:E,setTitleId:_,unmount:c},g],[y,g,E,_,c]),F=b.useMemo(()=>({open:y===0}),[y]),R={ref:m,id:r,role:l,tabIndex:-1,"aria-modal":u?void 0:y===0?!0:void 0,"aria-labelledby":g.titleId,"aria-describedby":I,unmount:c},P=!qse(),k=ji.None;S&&!u&&(k|=ji.RestoreFocus,k|=ji.TabLock,s&&(k|=ji.AutoFocus),P&&(k|=ji.InitialFocus));let B=Re();return j.createElement(Ise,null,j.createElement(sE,{force:!0},j.createElement(GA,null,j.createElement(tx.Provider,{value:M},j.createElement(KA,{target:h},j.createElement(sE,{force:!1},j.createElement(D,{slot:F},j.createElement($,null,j.createElement(eue,{initialFocus:o,initialFocusFallback:h,containers:A,features:k},j.createElement(Nle,{value:E},B({ourProps:R,theirProps:f,slot:F,defaultTag:vue,features:gue,visible:y===0,name:"Dialog"})))))))))))}),vue="div",gue=_o.RenderStrategy|_o.Static;function yue(e,t){let{transition:n=!1,open:r,...i}=e,a=du(),o=e.hasOwnProperty("open")||a!==null,l=e.hasOwnProperty("onClose");if(!o&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?j.createElement(uE,null,j.createElement(fue,{show:r,transition:n,unmount:i.unmount},j.createElement(cE,{ref:t,...i}))):j.createElement(uE,null,j.createElement(cE,{ref:t,open:r,...i}))}let xue="div";function bue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...a}=e,[{dialogState:o,unmount:l},s]=bp("Dialog.Panel"),u=ot(t,s.panelRef),c=b.useMemo(()=>({open:o===0}),[o]),f=Q(w=>{w.stopPropagation()}),d={ref:u,id:r,onClick:f},p=i?xp:b.Fragment,h=i?{unmount:l}:{},m=Re();return j.createElement(p,{...h},m({ourProps:d,theirProps:a,slot:c,defaultTag:xue,name:"Dialog.Panel"}))}let wue="div";function _ue(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:a}]=bp("Dialog.Backdrop"),o=b.useMemo(()=>({open:i===0}),[i]),l={ref:t,"aria-hidden":!0},s=n?xp:b.Fragment,u=n?{unmount:a}:{},c=Re();return j.createElement(s,{...u},c({ourProps:l,theirProps:r,slot:o,defaultTag:wue,name:"Dialog.Backdrop"}))}let Sue="h2";function Eue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:a,setTitleId:o}]=bp("Dialog.Title"),l=ot(t);b.useEffect(()=>(o(r),()=>o(null)),[r,o]);let s=b.useMemo(()=>({open:a===0}),[a]),u={ref:l,id:r};return Re()({ourProps:u,theirProps:i,slot:s,defaultTag:Sue,name:"Dialog.Title"})}let Oue=Ee(yue),rC=Ee(bue),$ue=Ee(_ue),Pue=Ee(Eue),jue=Object.assign(Oue,{Panel:rC,Title:Pue,Description:SA}),Tue="div";function Aue(e,t){let n=`headlessui-control-${b.useId()}`,[r,i]=fu(),[a,o]=cu(),l=uu(),{disabled:s=l||!1,...u}=e,c=b.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=Re();return j.createElement(lle,{value:s},j.createElement(i,{value:r},j.createElement(o,{value:a},j.createElement(wle,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(gle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Tue,name:"Field"})))))}let Cue=Ee(Aue);function kue(e,t){let n=b.useRef({left:0,top:0});if(he(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let fE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function dE(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return fE.test(o)&&(o=o.replace(fE,"")),o}function Nue(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():dE(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return dE(e).trim()}function Mue(e){let t=b.useRef(""),n=b.useRef("");return Q(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=Nue(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var Iue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Iue||{}),Rue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Rue||{}),Lue=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Lue||{});function Bh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Q0(t(e.items.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}let Due={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n,r,i,a,o;if(e.menuState===1)return e;let l={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===gt.Nothing)return{...l,activeItemIndex:null};if(t.focus===gt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===gt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===p.current||((i=p.current)==null?void 0:i.previousElementSibling)===null)return{...l,activeItemIndex:d}}}}else if(t.focus===gt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((a=f.current)==null?void 0:a.nextElementSibling)===p.current||((o=p.current)==null?void 0:o.nextElementSibling)===null)return{...l,activeItemIndex:d}}}}let s=Bh(e),u=Fh(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var l;return((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!o.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=Bh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=Bh(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},nx=b.createContext(null);nx.displayName="MenuContext";function wp(e){let t=b.useContext(nx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,wp),n}return t}function Fue(e,t){return jn(t.type,Due,e,t)}let Bue=b.Fragment;function zue(e,t){let{__demoMode:n=!1,...r}=e,i=b.useReducer(Fue,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsElement:o,buttonElement:l},s]=i,u=ot(t);NA(a===0,[l,o],(h,m)=>{s({type:1}),Y0(m,X0.Loose)||(h.preventDefault(),l==null||l.focus())});let c=Q(()=>{s({type:1})}),f=b.useMemo(()=>({open:a===0,close:c}),[a,c]),d={ref:u},p=Re();return j.createElement(kse,null,j.createElement(nx.Provider,{value:i},j.createElement(zA,{value:jn(a,{0:Et.Open,1:Et.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:Bue,name:"Menu"}))))}let Uue="button";function Hue(e,t){var n;let r=b.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:a=!1,autoFocus:o=!1,...l}=e,[s,u]=wp("Menu.Button"),c=Tse(),f=ot(t,jse(),Q(O=>u({type:7,element:O}))),d=Q(O=>{switch(O.key){case Ne.Space:case Ne.Enter:case Ne.ArrowDown:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.First});break;case Ne.ArrowUp:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.Last});break}}),p=Q(O=>{switch(O.key){case Ne.Space:O.preventDefault();break}}),h=Q(O=>{var $;if(G0(O.currentTarget))return O.preventDefault();a||(s.menuState===0?(Ht.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(O.preventDefault(),u({type:0})))}),{isFocusVisible:m,focusProps:w}=K0({autoFocus:o}),{isHovered:y,hoverProps:g}=V0({isDisabled:a}),{pressed:x,pressProps:E}=ole({disabled:a}),_=b.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:a,hover:y,focus:m,autofocus:o}),[s,y,m,x,a,o]),S=dp(c(),{ref:f,id:i,type:Xle(e,s.buttonElement),"aria-haspopup":"menu","aria-controls":(n=s.itemsElement)==null?void 0:n.id,"aria-expanded":s.menuState===0,disabled:a||void 0,autoFocus:o,onKeyDown:d,onKeyUp:p,onClick:h},w,g,E);return Re()({ourProps:S,theirProps:l,slot:_,defaultTag:Uue,name:"Menu.Button"})}let Wue="div",Vue=_o.RenderStrategy|_o.Static;function Kue(e,t){var n,r;let i=b.useId(),{id:a=`headlessui-menu-items-${i}`,anchor:o,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=Pse(o),[d,p]=wp("Menu.Items"),[h,m]=Cse(f),w=Ase(),[y,g]=b.useState(null),x=ot(t,f?h:null,Q(P=>p({type:8,element:P})),g),E=Vo(d.itemsElement);f&&(l=!0);let _=du(),[S,O]=LA(u,y,_!==null?(_&Et.Open)===Et.Open:d.menuState===0);jA(S,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;IA($,E);let T=d.__demoMode?!1:s&&d.menuState===0;PA(T,{allowed:b.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,A=kue(C,d.buttonElement)?!1:S;b.useEffect(()=>{let P=d.itemsElement;P&&d.menuState===0&&P!==(E==null?void 0:E.activeElement)&&P.focus({preventScroll:!0})},[d.menuState,d.itemsElement,E]),sse(d.menuState===0,{container:d.itemsElement,accept(P){return P.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:P.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(P){P.setAttribute("role","none")}});let N=sa(),I=Q(P=>{var k,B,L;switch(N.dispose(),P.key){case Ne.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ne.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(B=(k=U.current)==null?void 0:k.domRef.current)==null||B.click()}AA(d.buttonElement);break;case Ne.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Next});case Ne.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Previous});case Ne.Home:case Ne.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.First});case Ne.End:case Ne.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Last});case Ne.Escape:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),(L=d.buttonElement)==null||L.focus({preventScroll:!0});break;case Ne.Tab:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),Kle(d.buttonElement,P.shiftKey?_t.Previous:_t.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=Q(P=>{switch(P.key){case Ne.Space:P.preventDefault();break}}),M=b.useMemo(()=>({open:d.menuState===0}),[d.menuState]),F=dp(f?w():{},{"aria-activedescendant":d.activeItemIndex===null||(n=d.items[d.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=d.buttonElement)==null?void 0:r.id,id:a,onKeyDown:I,onKeyUp:D,role:"menu",tabIndex:d.menuState===0?0:void 0,ref:x,style:{...c.style,...m,"--button-width":Lle(d.buttonElement,!0).width},...RA(O)}),R=Re();return j.createElement(GA,{enabled:l?e.static||S:!1},R({ourProps:F,theirProps:c,slot:M,defaultTag:Wue,features:Vue,visible:A,name:"Menu.Items"}))}let Gue=b.Fragment;function que(e,t){let n=b.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[o,l]=wp("Menu.Item"),s=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,u=b.useRef(null),c=ot(t,u);he(()=>{if(!o.__demoMode&&o.menuState===0&&s&&o.activationTrigger!==0)return Zn().requestAnimationFrame(()=>{var A,N;(N=(A=u.current)==null?void 0:A.scrollIntoView)==null||N.call(A,{block:"nearest"})})},[o.__demoMode,u,s,o.menuState,o.activationTrigger,o.activeItemIndex]);let f=Mue(u),d=b.useRef({disabled:i,domRef:u,get textValue(){return f()}});he(()=>{d.current.disabled=i},[d,i]),he(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=Q(()=>{l({type:1})}),h=Q(A=>{if(i)return A.preventDefault();l({type:1}),AA(o.buttonElement)}),m=Q(()=>{if(i)return l({type:2,focus:gt.Nothing});l({type:2,focus:gt.Specific,id:r})}),w=tse(),y=Q(A=>{w.update(A),!i&&(s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),g=Q(A=>{w.wasMoved(A)&&(i||s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),x=Q(A=>{w.wasMoved(A)&&(i||s&&l({type:2,focus:gt.Nothing}))}),[E,_]=fu(),[S,O]=cu(),$=b.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),T={id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":E,"aria-describedby":S,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:y,onMouseEnter:y,onPointerMove:g,onMouseMove:g,onPointerLeave:x,onMouseLeave:x},C=Re();return j.createElement(_,null,j.createElement(O,null,C({ourProps:T,theirProps:a,slot:$,defaultTag:Gue,name:"Menu.Item"})))}let Xue="div";function Yue(e,t){let[n,r]=fu(),i=e,a={ref:t,"aria-labelledby":n,role:"group"},o=Re();return j.createElement(r,null,o({ourProps:a,theirProps:i,slot:{},defaultTag:Xue,name:"Menu.Section"}))}let Que="header";function Zue(e,t){let n=b.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,a=q0();he(()=>a.register(r),[r,a.register]);let o={id:r,ref:t,role:"presentation",...a.props};return Re()({ourProps:o,theirProps:i,slot:{},defaultTag:Que,name:"Menu.Heading"})}let Jue="div";function ece(e,t){let n=e,r={ref:t,role:"separator"};return Re()({ourProps:r,theirProps:n,slot:{},defaultTag:Jue,name:"Menu.Separator"})}let tce=Ee(zue),iC=Ee(Hue),aC=Ee(Kue),oC=Ee(que),nce=Ee(Yue),rce=Ee(Zue),ice=Ee(ece),ace=Object.assign(tce,{Button:iC,Items:aC,Item:oC,Section:nce,Heading:rce,Separator:ice});var oce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(oce||{});let lce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Q0(n,r=>r.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(i=>i.id===t.id);return r===-1?e:(n.splice(r,1),{...e,options:n})}},rx=b.createContext(null);rx.displayName="RadioGroupDataContext";function ix(e){let t=b.useContext(rx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ix),n}return t}let ax=b.createContext(null);ax.displayName="RadioGroupActionsContext";function ox(e){let t=b.useContext(ax);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ox),n}return t}function sce(e,t){return jn(t.type,lce,e,t)}let uce="div";function cce(e,t){let n=b.useId(),r=uu(),{id:i=`headlessui-radiogroup-${n}`,value:a,form:o,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=Ile(u),[h,m]=b.useReducer(sce,{options:[]}),w=h.options,[y,g]=fu(),[x,E]=cu(),_=b.useRef(null),S=ot(_,t),O=ple(f),[$,T]=dle(a,s,O),C=b.useMemo(()=>w.find(L=>!L.propsRef.current.disabled),[w]),A=b.useMemo(()=>w.some(L=>p(L.propsRef.current.value,$)),[w,$]),N=Q(L=>{var U;if(c||p(L,$))return!1;let V=(U=w.find(re=>p(re.propsRef.current.value,L)))==null?void 0:U.propsRef.current;return V!=null&&V.disabled?!1:(T==null||T(L),!0)}),I=Q(L=>{let U=_.current;if(!U)return;let V=vi(U),re=w.filter(ie=>ie.propsRef.current.disabled===!1).map(ie=>ie.element.current);switch(L.key){case Ne.Enter:hle(L.currentTarget);break;case Ne.ArrowLeft:case Ne.ArrowUp:if(L.preventDefault(),L.stopPropagation(),ii(re,_t.Previous|_t.WrapAround)===Ds.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.ArrowRight:case Ne.ArrowDown:if(L.preventDefault(),L.stopPropagation(),ii(re,_t.Next|_t.WrapAround)===Ds.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.Space:{L.preventDefault(),L.stopPropagation();let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break}}),D=Q(L=>(m({type:0,...L}),()=>m({type:1,id:L.id}))),M=b.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:A,disabled:c,compare:p,...h}),[$,C,A,c,p,h]),F=b.useMemo(()=>({registerOption:D,change:N}),[D,N]),R={ref:S,id:i,role:"radiogroup","aria-labelledby":y,"aria-describedby":x,onKeyDown:I},P=b.useMemo(()=>({value:$}),[$]),k=b.useCallback(()=>{if(O!==void 0)return N(O)},[N,O]),B=Re();return j.createElement(E,{name:"RadioGroup.Description"},j.createElement(g,{name:"RadioGroup.Label"},j.createElement(ax.Provider,{value:F},j.createElement(rx.Provider,{value:M},l!=null&&j.createElement(xle,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:o,onReset:k}),B({ourProps:R,theirProps:d,slot:P,defaultTag:uce,name:"RadioGroup"})))))}let fce="div";function dce(e,t){var n;let r=ix("RadioGroup.Option"),i=ox("RadioGroup.Option"),a=b.useId(),{id:o=`headlessui-radiogroup-option-${a}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=b.useRef(null),d=ot(f,t),[p,h]=fu(),[m,w]=cu(),y=Nr({value:l,disabled:s});he(()=>i.registerOption({id:o,element:f,propsRef:y}),[o,i,f,y]);let g=Q(N=>{var I;if(G0(N.currentTarget))return N.preventDefault();i.change(l)&&((I=f.current)==null||I.focus())}),x=((n=r.firstOption)==null?void 0:n.id)===o,{isFocusVisible:E,focusProps:_}=K0({autoFocus:u}),{isHovered:S,hoverProps:O}=V0({isDisabled:s}),$=r.compare(r.value,l),T=dp({ref:d,id:o,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":m,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:g,autoFocus:u},_,O),C=b.useMemo(()=>({checked:$,disabled:s,active:E,hover:S,focus:E,autofocus:u}),[$,s,S,E,u]),A=Re();return j.createElement(w,{name:"RadioGroup.Description"},j.createElement(h,{name:"RadioGroup.Label"},A({ourProps:T,theirProps:c,slot:C,defaultTag:fce,name:"RadioGroup.Option"})))}let pce="span";function hce(e,t){var n;let r=ix("Radio"),i=ox("Radio"),a=b.useId(),o=bA(),l=uu(),{id:s=o||`headlessui-radio-${a}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=b.useRef(null),h=ot(p,t),m=EA(),w=Ele(),y=Nr({value:u,disabled:c});he(()=>i.registerOption({id:s,element:p,propsRef:y}),[s,i,p,y]);let g=Q(A=>{var N;if(G0(A.currentTarget))return A.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:E}=K0({autoFocus:f}),{isHovered:_,hoverProps:S}=V0({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),T=dp({ref:h,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":m,"aria-describedby":w,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&O?0:-1,autoFocus:f,onClick:c?void 0:g},E,S),C=b.useMemo(()=>({checked:$,disabled:c,hover:_,focus:x,autofocus:f}),[$,c,_,x,f]);return Re()({ourProps:T,theirProps:d,slot:C,defaultTag:pce,name:"Radio"})}let mce=Ee(cce),vce=Ee(dce),lC=Ee(hce),gce=Cle,yce=SA,xce=Object.assign(mce,{Option:vce,Radio:lC,Label:gce,Description:yce});const lx=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>v.jsx("div",{className:"relative h-full",children:v.jsxs(ace,{children:[v.jsxs(iC,{className:`inline-flex h-full w-48 justify-between items-center gap-x-1.5 rounded-md bg-white px-3 text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,v.jsx(G$,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),v.jsx(aC,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-hidden",children:v.jsx("div",{className:"py-1",children:e.map(i=>v.jsx(oC,{children:v.jsx("button",{onClick:()=>n(i),className:`block w-full px-4 py-2 text-left text-${r} data-focus:bg-gray-100 data-focus:text-gray-900 text-gray-700`,children:i})},i))})})]})}),bce=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>v.jsx(xce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300`,children:e.map(i=>v.jsx(Cue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:v.jsx(lC,{value:i,className:"cursor-pointer h-full data-checked:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-xs",children:i})},i))});function wce({onSearch:e}){return v.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5 text-gray-400",children:v.jsx("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})})}),v.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium bg-white text-gray-900 shadow-xs rounded-md outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const _ce=({features:e})=>{const[t,n]=b.useState("All Teams"),[r,i]=b.useState(""),a=b.useMemo(()=>{const l=new Set;return l.add("All Teams"),Object.values(e).forEach(s=>{var u;(u=s.assignments)!=null&&u.teams&&s.assignments.teams.forEach(c=>l.add(c))}),Array.from(l)},[e]),o=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([l,s])=>{var u,c;return(c=(u=s.assignments)==null?void 0:u.teams)==null?void 0:c.includes(t)})),[e,t]);return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),v.jsx(lx,{items:a,selectedItem:t,onItemSelect:n})]}),v.jsx("div",{children:v.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 xl:grid-cols-2 2xl:grid-cols-3 gap-6",children:[v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(Ioe,{features:o})}),v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(Roe,{features:o})}),v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(Loe,{features:o})})]})}),v.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[v.jsxs("div",{className:"flex items-center justify-between gap-12",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),v.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Features: ",Object.entries(o).length]})]}),v.jsx("div",{children:v.jsx(wce,{onSearch:i})})]}),v.jsx(Doe,{features:o,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},Sce=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall;if(a!=null){const o=rA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Ey,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(_r,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Health Score distribution by category: shows how many features fall into each level from low (needs attention) to good (healthy)"})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative size-48",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.healthy).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},Ece=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score;if(o!=null){const l=PT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=wr.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(_y,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(_r,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative size-48",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.poor).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.fair).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.good).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},Oce=({features:e})=>{const t=Object.entries(e).reduce((r,[i,a])=>{const{integration_count:o,integration_pending:l,regression_count:s,regression_pending:u,unit_count:c,unit_pending:f}=a.test_pyramid||{};return{unit_count:r.unit_count+(c||0),unit_pending:r.unit_pending+(f||0),integration_count:r.integration_count+(o||0),integration_pending:r.integration_pending+(l||0),regression_count:r.regression_count+(s||0),regression_pending:r.regression_pending+(u||0)}},{unit_count:0,unit_pending:0,integration_count:0,integration_pending:0,regression_count:0,regression_pending:0}),n=[{value:Math.max(Math.log(t.unit_count+t.unit_pending),0),fill:"#1d4ed8"},{value:Math.max(Math.log(t.integration_count+t.integration_pending),0),fill:"#2563eb"},{value:Math.max(Math.log(t.regression_count+t.regression_pending),0),fill:"#3b82f6"}];return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(X$,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(_r,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative h-48 w-72",children:v.jsx(Do,{width:"100%",height:"100%",children:v.jsx($T,{width:730,height:250,children:v.jsx(kr,{dataKey:"value",data:n,reversed:!0,children:v.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-600",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-700",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Qu=({title:e})=>v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsx("div",{className:"flex items-center gap-x-2",children:e})}),pE=({features:e,metric:t,sortDirection:n="ASC"})=>Object.entries(e).sort(([r,i],[a,o])=>{const l=i.test_pyramid&&i.test_pyramid[t]||0,s=o.test_pyramid&&o.test_pyramid[t]||0;return l===s?o.additional_metrics.feature_size.score-i.additional_metrics.feature_size.score:n==="ASC"?l-s:s-l}).slice(0,5).map(([r,i])=>({featureName:r,score:i.test_pyramid&&i.test_pyramid[t]||0,feature:i})),hE=["Regression","Integration","Unit"],mE=["Missing","Pending"],vE={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},$ce={Pending:{Unit:"Top 5 features with pending unit tests",Integration:"Top 5 features with pending integration tests",Regression:"Top 5 features with pending regression tests"},Missing:{Unit:"Bottom 5 features missing unit test coverage",Integration:"Bottom 5 features missing integration tests",Regression:"Bottom 5 features missing regression tests"}},Pce=({features:e})=>{const[t,n]=b.useState(mE[0]),[r,i]=b.useState(hE[0]),[a,o]=b.useState(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}));return b.useEffect(()=>{o(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:$ce[t][r]}),v.jsxs("div",{className:"flex h-8",children:[v.jsx(bce,{items:mE,selectedItem:t,onItemSelect:n,size:"xs"}),v.jsx("span",{className:"mx-2"}),v.jsx(lx,{items:hE,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(Qu,{title:"Feature"}),v.jsx(Qu,{title:"Team"}),v.jsx(Qu,{title:"Size"}),v.jsx(Qu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(({featureName:l,feature:s,score:u})=>{const c=s.additional_metrics.feature_size.percent_of_max,f=xo(c);return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:l})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(c)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),v.jsx("td",{className:"px-4 py-4 text-sm",children:v.jsx("div",{className:"flex items-center gap-x-2",children:u})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(br,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})})})]})};function jce({features:e}){const[t,n]=b.useState("All Teams"),r=b.useMemo(()=>{const s=new Set;return s.add("All Teams"),Object.values(e).forEach(u=>{var c;(c=u.assignments)!=null&&c.teams&&u.assignments.teams.forEach(f=>s.add(f))}),Array.from(s)},[e]),i=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([s,u])=>{var c,f;return(f=(c=u.assignments)==null?void 0:c.teams)==null?void 0:f.includes(t)})),[e,t]),a=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,health:u.additional_metrics.health.overall||0})).sort((s,u)=>s.health-u.health).slice(0,5),[i]),o=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,score:u.additional_metrics.test_coverage.score||0})).sort((s,u)=>s.score-u.score).slice(0,5),[i]),l=({title:s})=>v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsx("div",{className:"flex items-center gap-x-2",children:s})});return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Digest"}),v.jsx(lx,{items:r,selectedItem:t,onItemSelect:n})]}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg h-full",children:v.jsx("div",{className:"px-4 py-6 h-fit",children:v.jsx(Sce,{features:i})})}),v.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[v.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(l,{title:"Feature"}),v.jsx(l,{title:"Team"}),v.jsx(l,{title:"Size"}),v.jsx(l,{title:"Health Score"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xo(u),f=s.data.additional_metrics.health.overall||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:s.name})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(u)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${iA(f)}`,children:v.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),v.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(br,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx("div",{className:"px-4 py-6",children:v.jsx(Ece,{features:i})})}),v.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[v.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(l,{title:"Feature"}),v.jsx(l,{title:"Team"}),v.jsx(l,{title:"Size"}),v.jsx(l,{title:"Test Coverage"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xo(u),f=s.data.additional_metrics.test_coverage.score||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:s.name})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(u)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"px-4 py-4 text-sm",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:v.jsx("div",{className:`h-full rounded-full ${bt(f).class}`,style:{width:`${f}%`}})}),v.jsx("span",{className:"text-sm text-gray-500",children:f?`${f.toFixed(0)}%`:"No Data"})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(br,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx("div",{className:"px-4 py-6",children:v.jsx(Oce,{features:i})})}),v.jsx("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:v.jsx(Pce,{features:i})})]})})]})}const Tce=({files:e})=>{const{project:t,environment:n}=wr,r=`${t.repository.url}/blob/${n.git_ref}`,{fileTree:i,directoryCounts:a}=b.useMemo(()=>{const g={},x={};return e.forEach(E=>{const _=E.split("/");let S=g;_.forEach((O,$)=>{if($===_.length-1){S[O]={type:"file",path:E};let T="";_.slice(0,-1).forEach(C=>{T=T?`${T}/${C}`:C,x[T]=(x[T]||0)+1})}else S[O]=S[O]||{type:"directory",children:{}},S=S[O].children})}),{fileTree:g,directoryCounts:x}},[e]),o=b.useMemo(()=>{const g=new Set;return e.forEach(x=>{const E=x.split("/");let _="";E.slice(0,-1).forEach(S=>{_=_?`${_}/${S}`:S,g.add(_)})}),g},[e]),[l,s]=b.useState("tree"),[u,c]=b.useState(o),[f,d]=b.useState({key:null,direction:"asc"}),p=b.useMemo(()=>[...e].sort((g,x)=>f.key?g<x?f.direction==="asc"?-1:1:g>x?f.direction==="asc"?1:-1:0:0),[e,f]),h=g=>{c(x=>{const E=new Set(x);return E.has(g)?E.delete(g):E.add(g),E})},m=g=>{d(x=>({key:g,direction:x.key===g&&x.direction==="asc"?"desc":"asc"}))},w=(g,x="",E=0)=>g?Object.entries(g).map(([_,S])=>{const O=x?`${x}/${_}`:_,$=u.has(O),T=a[O]||0;return S.type==="directory"?v.jsxs(j.Fragment,{children:[v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("button",{onClick:()=>h(O),className:"flex items-center group gap-x-2",style:{paddingLeft:`${E*16}px`},children:[v.jsxs("div",{className:"flex items-center group",children:[$?v.jsx(G$,{className:"size-4 text-gray-400 mr-1 shrink-0"}):v.jsx(SI,{className:"size-4 text-gray-400 mr-1 shrink-0"}),v.jsx($I,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:_})]}),v.jsx("span",{className:"flex items-center justify-center text-xs font-medium text-gray-500 bg-gray-200 rounded-full h-5 w-5",children:T})]})})})}),$&&w(S.children,O,E+1)]},O):v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:v.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${E*16+20}px`},children:[v.jsx(Rm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("a",{href:`${r}/${O}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:_})]})})},O)}):null,y=({title:g,sortKey:x,className:E=""})=>v.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${E}`,onClick:()=>m(x),children:v.jsxs("div",{className:"flex items-center gap-x-2 group",children:[g,v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return v.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:v.jsx("div",{className:"overflow-hidden rounded-lg",children:v.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[v.jsx("thead",{className:"bg-gray-50",children:v.jsxs("tr",{children:[v.jsx(y,{title:l==="tree"?"File Path":"Name",sortKey:"path"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsxs("div",{className:"flex items-center justify-end gap-2",children:[v.jsx("button",{onClick:()=>s("tree"),className:`p-1 rounded ${l==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:v.jsx(Sy,{className:"size-4"})}),v.jsx("button",{onClick:()=>s("list"),className:`p-1 rounded ${l==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:v.jsx(AI,{className:"size-4"})})]})})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200",children:l==="list"?p.map(g=>v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:v.jsxs("div",{className:"flex items-center",children:[v.jsx(Rm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("a",{href:`${r}/${g}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:g})]})})},g)):w(i)})]})})})};function Ace({name:e,feature:t}){const{project:n}=wr,i=`is:pr label:"${`Feature ${e}`}"`,a=encodeURIComponent(i),o=`${n.repository.url}/pulls?q=${a}`;return v.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Description"}),t.description&&v.jsx("p",{className:"text-sm md:text-base text-gray-600",children:t.description})]}),v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),v.jsxs("ul",{className:"mb-6 space-y-2",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Sy,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[t.assignments.files?t.assignments.files.length:0," Total Files"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(kI,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[(t.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Rm,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.lines_of_code||0," Lines of Code"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(PI,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(jI,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.todo_locations?Object.keys(t.metrics.todo_locations).length:0," ","TODO Comments"]})]})]}),v.jsx("div",{className:"space-y-4 mb-6",children:v.jsxs("div",{children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),v.jsx("ul",{className:"flex flex-col gap-y-1",children:t.assignments.teams?t.assignments.teams.map(l=>v.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0",children:v.jsx(Gi,{className:"size-4 text-gray-500"})}),l]},l)):v.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0",children:v.jsx(Gi,{className:"size-4 text-gray-500"})}),v.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),v.jsxs("div",{className:"mb",children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),v.jsxs("ul",{className:"mb-6 space-y-2",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),v.jsx("a",{href:o,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Pull Requests"})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),t.documentation_link?v.jsx("a",{href:t.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Documentation"}):v.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),t.dashboard_link?v.jsx("a",{href:t.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"New Relic Dashboard"}):v.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing New Relic Dashboard"})]})]})]})]})}const Cce=({value:e,suffix:t="",color:n="#ef4444"})=>{const r=e===0?"transparent":n;return v.jsxs("div",{className:"relative h-20 w-20",children:[v.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[v.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#eee",strokeWidth:"2"}),v.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:r,strokeWidth:"2",strokeDasharray:`${e}, 100`})]}),v.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[v.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),v.jsx("span",{className:"text-sm",children:t})]})]})},gE=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:a,color:o})=>v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),v.jsx("span",{className:"flex pl-2",children:t})]}),a&&v.jsxs(wo,{children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:a})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Cce,{value:n,suffix:r,color:o}),v.jsx("div",{className:"flex flex-col flex-1",children:e})]})]}),kce=({feature:e})=>{const{integration_count:t=0,integration_pending:n=0,regression_count:r=0,regression_pending:i=0,unit_count:a=0,unit_pending:o=0}=(e==null?void 0:e.test_pyramid)||{},l=[{type:"Unit Tests",count:a,pending:o,color:"blue-700",fill:"#1d4ed8"},{type:"Integration Tests",count:t,pending:n,color:"blue-500",fill:"#3b82f6"},{type:"Regression Tests",count:r,pending:i,color:"blue-300",fill:"#93c5fd"}],s=l.map(u=>({value:Math.max(Math.log(u.count+u.pending),0),fill:u.fill}));return v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-20 w-20",children:s.every(u=>u.value===0)?v.jsx("div",{className:"flex flex-col shrink-0 items-center justify-center size-full bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:v.jsx(NI,{})}):v.jsx("div",{className:"absolute left-[-31px] top-0 bottom-0",children:v.jsx($T,{width:150,height:80,children:v.jsx(kr,{dataKey:"value",data:s,reversed:!0,isAnimationActive:!1,children:v.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),v.jsx("ul",{className:"flex flex-col flex-1 gap-y-1",children:l.reverse().map((u,c)=>v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-3 h-3 rounded-full bg-${u.color}`}),v.jsxs("p",{className:"text-xs text-gray-500",children:[u.type,": ",v.jsx("span",{className:"font-medium",children:u.count})," (",u.pending," ","pending)"]})]},c))})]})};function Nce({features:e}){const{name:t}=wM(),n=e[t];if(!n)return v.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:v.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[v.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),v.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),v.jsx(br,{to:"/",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Features"})]})});const r=n.additional_metrics.health.overall,i=n.additional_metrics.feature_size.percent_of_max,a=Is(i);return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-6 py-4 md:py-8",children:[v.jsx("div",{className:"flex justify-between items-center",children:v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:t})}),v.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6",children:[v.jsx("div",{className:"col-span-1 xl:col-span-3",children:v.jsx(Ace,{name:t,feature:n})}),v.jsxs("div",{className:"col-span-1 xl:col-span-9",children:[v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8",children:[v.jsx(gE,{title:"Health Score",value:r.toFixed(0),suffix:"%",tooltip:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`.",icon:v.jsx(Ey,{}),color:wt(r).hex,children:v.jsxs("ul",{className:"flex flex-col gap-y-1",children:[v.jsxs("li",{className:"text-xs text-gray-500",children:["Coverage:"," ",n.additional_metrics.health.test_coverage_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.test_coverage_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Complexity:"," ",n.additional_metrics.health.cyclomatic_complexity_component.health_score.toFixed(0)," ","/"," ",n.additional_metrics.health.cyclomatic_complexity_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Encapsulation:"," ",n.additional_metrics.health.encapsulation_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.encapsulation_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Todos:"," ",n.additional_metrics.health.todo_count_component.health_score.toFixed(0)," /"," ",n.additional_metrics.health.todo_count_component.awardable_points]})]})}),v.jsx(gE,{title:"Test Coverage",value:n.additional_metrics.test_coverage.score,suffix:"%",tooltip:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`.",icon:v.jsx(_y,{}),color:bt(n.additional_metrics.test_coverage.score).hex,children:v.jsxs("ul",{className:"flex flex-col gap-y-1",children:[v.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(q$,{})}),v.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),v.jsxs(wo,{children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-20 flex items-center",children:v.jsx("div",{className:"text-2xl font-bold uppercase",children:xo(i)})}),v.jsx("div",{className:"flex flex-col gap-y-2",children:v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(o=>v.jsx("div",{className:`h-6 w-1.5 rounded-sm ${o<=a?"bg-blue-500":"bg-gray-300"}`},o))})}),v.jsxs("div",{children:[v.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),v.jsxs("div",{className:"text-[10px] text-gray-500",children:[Xie(n.metrics.lines_of_code)," lines"]})]})]})]}),v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(X$,{})}),v.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),v.jsxs(wo,{children:[v.jsx(si,{children:v.jsx(_r,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),v.jsx(kce,{feature:n})]})]}),n.assignments.files&&n.assignments.files.length>0?v.jsx(v.Fragment,{children:v.jsx(Tce,{files:n.assignments.files})}):v.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-xs mb-8",children:v.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0 h-16 w-16 bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:v.jsx(Sy,{})}),v.jsx("p",{children:"No files found for this feature"})]})})]})]})]})}const Mce=[{name:"Dashboard",pathname:"",icon:TI},{name:"Digest",pathname:"Digest",icon:OI}];function pa(...e){return e.filter(Boolean).join(" ")}function yE(){const e=Tr(),{linked_sites:t,title:n}=wr.project.documentation_site,{internal_resources:r}=wr.project.documentation_site;return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"flex h-16 shrink-0 items-center",children:v.jsx(br,{to:"/",children:"Feature Documentation"})}),v.jsx("nav",{className:"flex flex-1 flex-col",children:v.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:n}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:Mce.map(i=>v.jsx("li",{children:v.jsxs(br,{to:i.pathname,className:pa(e.pathname===`/${i.pathname}`?"text-blue-600":"text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),children:[v.jsx(i.icon,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),t&&t.length>0&&v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Linked Feature Documentation"}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:t.map(i=>v.jsx("li",{children:v.jsxs("a",{href:i.url,target:"_blank",className:pa("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[v.jsx(Tl,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),r&&r.length>0&&v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Internal Resources"}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:r.map(i=>v.jsx("li",{children:v.jsxs("a",{href:i.url,target:"_blank",className:pa("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[v.jsx(Tl,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]})]})})]})}function Ice(){const[e,t]=b.useState(!1);return v.jsxs("div",{children:[v.jsxs(jue,{open:e,onClose:t,className:"relative z-50 lg:hidden",children:[v.jsx($ue,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"}),v.jsx("div",{className:"fixed inset-0 flex",children:v.jsxs(rC,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",children:[v.jsx(xp,{children:v.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0",children:v.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[v.jsx("span",{className:"sr-only",children:"Close sidebar"}),v.jsx(EI,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),v.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:v.jsx(yE,{})})]})})]}),v.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:v.jsx("div",{className:"flex grow flex-col overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4",children:v.jsx(yE,{})})}),v.jsxs("div",{className:"lg:pl-72",children:[v.jsx("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white lg:hidden px-4 shadow-xs sm:gap-x-6 sm:px-6 lg:px-8",children:v.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",children:[v.jsx("span",{className:"sr-only",children:"Open sidebar"}),v.jsx(CI,{"aria-hidden":"true",className:"size-6"})]})}),v.jsx("main",{className:"",children:v.jsx("div",{className:"px-4 sm:px-6 lg:px-8",children:v.jsx(IM,{})})})]})]})}function Rce(){const{features:e}=wr,t=Tr();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),v.jsx(LM,{children:v.jsxs(vl,{element:v.jsx(Ice,{}),children:[v.jsx(vl,{path:"",element:v.jsx(_ce,{features:e})}),v.jsx(vl,{path:"digest",element:v.jsx(jce,{features:e})}),v.jsx(vl,{path:":name",element:v.jsx(Nce,{features:e})})]})})}zh.createRoot(document.getElementById("root")).render(v.jsx(j.StrictMode,{children:v.jsx(lI,{children:v.jsx(Rce,{})})}));
|
273
273
|
</script>
|
274
274
|
</body>
|
275
275
|
</html>
|