diff --git a/b/0021c105dabfacd2f8e7fc1c2c1b9afecda88860dcedd89faf262d6c98ef7efc b/b/0021c105dabfacd2f8e7fc1c2c1b9afecda88860dcedd89faf262d6c98ef7efc index 540ecaaf4fae3da90dc54fe84e522446df97f51e..ed37641ef3007a23fdc22c5faf2961362eeb893d 100644 --- a/b/0021c105dabfacd2f8e7fc1c2c1b9afecda88860dcedd89faf262d6c98ef7efc +++ b/b/0021c105dabfacd2f8e7fc1c2c1b9afecda88860dcedd89faf262d6c98ef7efc @@ -1,160 +1,3 @@ -/* eslint-disable react/no-children-prop */ -"use client" - -import { useForm } from "@tanstack/react-form" -import { toast } from "sonner" -import * as z from "zod" - -import { Button } from "@/registry/new-york-v4/ui/button" -import { - Card, - CardContent, - CardDescription, - CardFooter, - CardHeader, - CardTitle, -} from "@/registry/new-york-v4/ui/card" -import { - Field, - FieldContent, - FieldDescription, - FieldError, - FieldGroup, - FieldLabel, - FieldLegend, - FieldSet, - FieldTitle, -} from "@/registry/new-york-v4/ui/field" -import { - RadioGroup, - RadioGroupItem, -} from "@/registry/new-york-v4/ui/radio-group" - -const plans = [ - { - id: "starter", - title: "Starter (100K tokens/month)", - description: "For everyday use with basic features.", - }, - { - id: "pro", - title: "Pro (1M tokens/month)", - description: "For advanced AI usage with more features.", - }, - { - id: "enterprise", - title: "Enterprise (Unlimited tokens)", - description: "For large teams and heavy usage.", - }, -] as const - -const formSchema = z.object({ - plan: z.string().min(1, "You must select a subscription plan to continue."), -}) - -export default function FormTanstackRadioGroup() { - const form = useForm({ - defaultValues: { - plan: "", - }, - validators: { - onSubmit: formSchema, - }, - onSubmit: async ({ value }) => { - toast("You submitted the following values:", { - description: ( -
-            {JSON.stringify(value, null, 2)}
-          
- ), - position: "bottom-right", - classNames: { - content: "flex flex-col gap-2", - }, - style: { - "--border-radius": "calc(var(--radius) + 4px)", - } as React.CSSProperties, - }) - }, - }) - - return ( - - - Subscription Plan - - See pricing and features for each plan. - - - -
{ - e.preventDefault() - form.handleSubmit() - }} - > - - { - const isInvalid = - field.state.meta.isTouched && !field.state.meta.isValid - return ( -
- Plan - - You can upgrade or downgrade your plan at any time. - - - {plans.map((plan) => ( - - - - {plan.title} - - {plan.description} - - - - - - ))} - - {isInvalid && ( - - )} -
- ) - }} - /> -
-
-
- - - - - - -
- ) -} +version https://git-lfs.github.com/spec/v1 +oid sha256:8bfab881f32a1525e1f6f41d66122c965eec061d430c07ff601134f738c02cd7 +size 4643 diff --git a/b/004375ae38f8f60df30d1aa79b049df17a4d2419a8477b9f0ab6d9f9111d3632 b/b/004375ae38f8f60df30d1aa79b049df17a4d2419a8477b9f0ab6d9f9111d3632 index 97739ca23264697fed567f52145b469ed8582d3b..cc3f1b0e1184619946cfa04458489ac9b202cde4 100644 --- a/b/004375ae38f8f60df30d1aa79b049df17a4d2419a8477b9f0ab6d9f9111d3632 +++ b/b/004375ae38f8f60df30d1aa79b049df17a4d2419a8477b9f0ab6d9f9111d3632 @@ -1 +1,3 @@ -{"tapes": [{"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 16, 15, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 1044, 449, 14791, 1414, 1558, 1973, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 198, 9, 256, 2972, 1860, 264, 16893], "text": "set a 10 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 20, 15, 15823, 310, 222352, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 20, 15, 387, 2995, 310, 36637, 53525, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 198, 12, 220, 16, 207853, 283, 220, 17, 13, 17, 15, 19, 21, 17, 15823], "text": "convert 50 pounds to kilos"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 1441, 279, 9039, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 328, 404, 1441, 279, 9039, 1288, 694, 353, 1459, 914, 599, 2528, 310, 678, 71550, 11, 9682, 2444, 1785, 11, 466, 866, 11810, 11241, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16, 13, 2972], "text": "turn down the temperature"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2919, 279, 10462, 303, 449, 6258, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 716, 264, 25680, 11, 694, 353, 1459, 914, 599, 279, 21610, 310, 3502, 21292, 466, 3627, 854, 3808, 15243, 13, 271, 332, 3710, 353, 628, 635, 64700, 198, 12, 11150, 488, 1791, 264, 25680, 1785, 318, 4650], "text": "remind me to water the plants in an hour"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 974, 279, 71550, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 5774, 2444, 678, 71550, 1521, 353, 1459, 914, 599, 2528, 310, 678, 2046, 579, 7539, 7370, 466, 6745, 5757, 13, 271, 10883, 11, 1532, 513, 1010, 5337, 488, 628, 2404, 424, 974, 25, 271, 16, 13, 2972, 2592, 424, 579, 264, 7539], "text": "turn off the thermostat"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 10939, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 264, 2050, 1560, 310, 1562, 1208, 13, 353, 2688, 449, 14791, 1414, 17313, 11, 748, 353, 628, 914, 1236, 4392, 6526, 13, 271, 2592, 488, 2224, 4313, 310, 5372, 4184, 6725, 10939, 11, 488, 3172, 1144, 310, 958, 678, 4392], "text": "call Chris"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 854, 369, 424, 303, 6924, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 1928, 11, 2583, 279, 1428, 854, 303, 6924, 13, 2921, 6337, 369, 6973, 310, 1092, 557, 3766, 303, 1004, 10125, 2193, 11, 321, 1017, 579, 874, 11112, 466, 854, 795, 5064, 13, 271, 1206, 1423, 279], "text": "what time is it in London"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 851, 728, 279, 8831, 29102, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1301, 8831, 29102, 364, 488, 0, 4213, 11, 353, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 466, 1428, 3543, 33254, 13, 271, 1206, 615, 1428, 8831, 29102, 11, 353, 4035, 6718, 25, 271, 16, 13, 2972, 28034], "text": "read me the weather headlines"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 48502, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 48502, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13, 2972, 5708], "text": "what's the weather in Seoul"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 974, 279, 43167, 3000, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 2444, 6745, 7370, 466, 12346, 303, 678, 2046, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 1206, 2404, 974, 678, 43167, 3000, 11, 488, 3172, 1144, 310, 25, 198, 12, 5272, 279, 3000, 3289, 383], "text": "turn off the porch light"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 14211, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 14211, 11, 353, 6718, 25, 271, 16, 13, 2972, 14030, 21926, 332, 471, 7304, 328, 68916, 8831, 1, 364, 264, 3841, 22527, 198, 17, 13, 2972, 12358], "text": "what's the weather in Toronto"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 79825, 506, 35915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 4439, 728, 310, 328, 27695, 264, 6236, 440, 79825, 506, 35915, 1288, 694, 411, 7701, 310, 381, 264, 4204, 3274, 4598, 1056, 264, 3377, 353, 628, 11290, 440, 31626, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16], "text": "schedule a meeting with grandma at noon"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 17230, 1118, 3065, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4204, 12786, 466, 2902, 9412, 11, 748, 353, 628, 914, 3404, 2236, 264, 6236, 364, 488, 13, 271, 10883, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 264, 1876, 332, 310, 3502, 310, 678], "text": "schedule a meeting with dad first thing tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 15, 3161, 314, 220, 23, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 15, 4, 314, 220, 23, 15, 25, 271, 332, 3407, 220, 16, 25, 11747, 279, 11086, 14377, 332, 198, 13682, 16, 15, 59, 4, 1088, 1272, 90, 314, 333, 220, 23, 15, 283, 1088, 35790, 90, 16], "text": "what's 10 percent of 80"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 16586, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 3766, 264, 3108, 310, 3502, 264, 1876, 11, 694, 353, 2688, 524, 2858, 310, 5774, 3522, 1208, 466, 3502, 21306, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 11, 524, 264, 28560, 878, 13, 271, 10883, 11, 353, 628, 1438], "text": "text Jordan that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 17, 15, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 1044, 449, 14791, 1414, 1558, 1973, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 16, 13, 220, 2972, 1860, 678], "text": "set a 20 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1603, 6353, 1083, 5753, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 1, 38, 12778, 189260, 175267, 271, 4277, 271, 332, 60239, 64700, 198, 12, 189551, 38643, 5753, 16629, 364, 328, 17981, 6353, 1, 198, 12, 189551, 11851, 494, 61665, 2980, 2094, 35915, 198, 12, 189551, 191981, 6804, 4252], "text": "translate good morning into German"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 1040, 17377, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 1428, 3602, 466, 1865, 7019, 8831, 795, 13, 1946, 615, 449, 12995, 17071, 364, 17377, 11, 4338, 25, 271, 16, 13, 4109, 264, 8831, 3779, 466, 878, 318, 4650, 21926, 877, 11, 11101, 84, 28034, 11, 466], "text": "what's the weather like tonight"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 821, 12553, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 513, 264, 2342, 2519, 11313, 383, 279, 6331, 25, 271, 332, 47585, 899, 64700, 198, 1, 18103, 11, 4162, 264, 2612, 3200, 11, 668, 381, 1017, 303, 498, 55, 60, 4276, 1149, 271, 332, 12115, 594, 6916, 64700, 198, 1, 18417, 3200, 11], "text": "text my sister that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 3788, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 1423, 3788, 4477, 0, 5514, 513, 1010, 2172, 2519, 25, 271, 332, 61193, 18593, 10401, 64700, 198, 12, 2972, 33, 595, 332, 471, 351, 4638, 73411, 466, 236108, 45123, 428, 198, 12, 2972, 44, 9230, 461, 332], "text": "play some study music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 20, 3161, 314, 220, 17, 19, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 20, 4, 314, 220, 17, 19, 15, 25, 271, 332, 3407, 220, 16, 25, 6943, 11086, 310, 11778, 332, 198, 13682, 20, 59, 4, 283, 1088, 35790, 90, 20, 14728, 16, 15, 15, 92, 283, 220, 15, 13], "text": "what's 5 percent of 240"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 15957, 303, 449, 6258, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 5774, 9412, 15782, 440, 8976, 9389, 1040, 15957, 13, 4213, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 264, 6236, 1622, 2469, 332, 310, 3502, 310, 15957, 198, 17, 13, 2972, 3886, 264, 6236], "text": "schedule a meeting with Taylor in an hour"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 3772, 264, 10793, 364, 41674, 15530, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 369, 264, 11088, 11, 14294, 10793, 364, 73233, 47398, 13, 1061, 10793, 5533, 279, 328, 76, 3690, 290, 13696, 1, 1654, 11, 864, 11121, 264, 19882, 1505, 3434, 321, 264, 20117, 38300, 13, 271, 13962, 2972, 61193, 78887, 73233, 47398, 332, 271, 332], "text": "find a recipe for banana bread"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 10482, 321, 13671, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 24329, 243, 25245, 198, 12, 10838, 98, 249, 42374, 271, 4277, 271, 332, 8839, 64700, 353, 2688, 264, 1414, 5792, 14791, 11, 748, 353, 1459, 914, 599, 2528, 310, 678, 4880, 11580, 1103], "text": "add coffee and milk to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 1248, 1503, 424, 1831, 310, 19695, 19052, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 3251, 6267, 28554, 3984, 12347, 271, 13962, 16743, 21134, 198, 91, 28554, 3856, 735, 3251, 6267, 3984, 735, 198, 91, 17549, 91, 37363, 91, 198, 91, 5626, 19052, 735, 220, 16, 20, 4006, 17, 15, 4276, 735, 198, 91, 10158, 19052, 735, 220], "text": "how long does it take to steam rice"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 20, 3161, 314, 220, 20, 15, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 20, 4, 314, 220, 20, 15, 15, 25, 271, 332, 3407, 220, 16, 25, 6943, 11086, 310, 11778, 332, 198, 13682, 20, 59, 4, 283, 1088, 35790, 90, 20, 14728, 16, 15, 15, 92, 283, 220, 15, 13], "text": "what's 5 percent of 500"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 821, 13005, 17377, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 12786, 11, 678, 13005, 579, 9412, 11, 466, 866, 36602, 7141, 488, 2493, 958, 13, 271, 332, 1206, 3404, 9412, 411, 6236, 11, 488, 3172, 1144, 310, 64700, 271, 16, 13, 2972, 3840, 678, 13005, 579, 17509], "text": "schedule a meeting with my boss tonight"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 279, 1844, 12611, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 1423, 1844, 12611, 0, 4213, 11, 353, 5125, 488, 8719, 914, 5024, 25, 271, 16, 13, 2972, 3710, 913, 314, 4477, 332, 513, 488, 3221, 364, 30, 318, 11265, 11, 6730, 11, 17603, 47093, 11, 3046, 11], "text": "play the top hits"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1438, 728, 1083, 79915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 1, 12325, 728, 175267, 11069, 173976, 112523, 175267, 318, 65, 29656, 938, 288, 131, 240, 8, 271, 332, 21825, 2829, 64700, 198, 12, 2972, 96598, 332, 318, 65, 29656, 938, 8, 283, 310, 1438, 198, 12, 2972, 95815, 332], "text": "translate help me into Mandarin"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 20, 15, 8491, 310, 39229, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 332, 46629, 7911, 64700, 220, 16, 14167, 283, 220, 16, 13, 21, 15, 24, 18, 19, 39229, 271, 332, 45593, 2820, 64700, 198, 13682, 20, 15, 1088, 1272, 90, 8491, 92, 1088, 14695, 220, 16, 13, 21, 15, 24, 18, 19], "text": "convert 50 miles to kilometers"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 43119, 321, 13696, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 4212, 310, 884, 64700, 198, 12, 2972, 1860, 880, 332, 198, 12, 2972, 3850, 455, 332, 271, 4277, 271, 332, 60239, 64700, 198, 12, 189551, 11396, 3470, 513, 28620, 3436, 83831, 198, 12, 189551, 11396, 513, 16138, 1429], "text": "add onions and butter to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 9414, 488, 303, 10452, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 1379, 4047, 321, 30894, 1560, 310, 1910, 328, 55495, 488, 1, 303, 10452, 369, 25, 271, 332, 6737, 339, 266, 282, 332, 318, 82730, 8, 271, 1919, 369, 1429, 303, 1379, 17248, 14314, 13, 271, 4277, 271, 332, 28072, 2193, 64700, 271, 91], "text": "how do you say thank you in Japanese"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6472, 17230, 264, 1876, 5315, 6051, 14756, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 513, 264, 2342, 2519, 364, 264, 14756, 1876, 310, 678, 17230, 11, 11313, 383, 678, 1647, 25, 271, 332, 5173, 220, 16, 25, 10382, 594, 25739, 332, 198, 1, 31759, 35042, 11, 31448, 0, 457, 10655, 488, 264, 1834, 9896, 440, 15420, 321], "text": "send dad a message saying happy birthday"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 20, 15, 24569, 310, 89668, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 20, 15, 75430, 310, 36983, 382, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 271, 760, 5129, 13996, 369, 25, 198, 12, 2972, 16, 10212, 283, 220, 15, 13, 17], "text": "convert 50 cups to liters"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 17, 15, 15823, 310, 222352, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 17, 15, 387, 2995, 310, 36637, 53525, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 198, 12, 220, 16, 207853, 283, 220, 17, 13, 17, 15, 19, 21, 17, 15823], "text": "convert 20 pounds to kilos"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 7967, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 3766, 264, 3108, 310, 3502, 264, 1876, 11, 694, 353, 1459, 914, 599, 2528, 310, 678, 4204, 17954, 466, 28560, 10187, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16, 13, 2972, 48401, 264, 1876, 364, 488, 310], "text": "text Sam that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 18, 15, 3161, 314, 220, 23, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 18, 15, 4, 314, 220, 23, 15, 25, 271, 332, 3407, 220, 16, 25, 6943, 11086, 310, 11778, 332, 198, 13682, 18, 15, 59, 4, 283, 220, 15, 13, 18, 15, 13682, 198, 13682, 15, 13, 18, 15], "text": "what's 30 percent of 80"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 2388, 264, 220, 17, 15, 9104, 5077, 3669, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 26760, 4465, 220, 17, 15, 5084, 258, 1035, 24985, 8891, 271, 332, 14951, 279, 21427, 64700, 271, 16, 13, 2972, 13606, 678, 26622, 332, 471, 10466, 73834, 11, 3160, 24366, 21700, 198, 17, 13, 2972, 10570, 3274, 1132, 332, 471, 3648, 3065, 11], "text": "start a 20 minute focus session"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 50779, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 50779, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13, 2972, 5708], "text": "what's the weather in Cairo"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 685, 279, 31143, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 328, 404, 685, 279, 31143, 1288, 694, 411, 369, 264, 2940, 6047, 383, 678, 3545, 11, 524, 2414, 353, 628, 2444, 5774, 13, 271, 332, 1206, 7265, 31143, 383, 678, 3545, 64700, 271, 12, 2972, 12782, 92217], "text": "turn up the brightness"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 21, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 6am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 854, 369, 424, 303, 32910, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 1928, 11, 2583, 279, 1428, 854, 303, 32910, 13, 271, 70705, 2075, 25224, 383, 2972, 38, 13898, 11429, 3984, 318, 72943, 221719, 864, 369, 2972, 20533, 10, 19, 332, 1007, 20372, 318, 2083, 50273, 13595, 854], "text": "what time is it in Dubai"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 32910, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 32910, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 877, 198, 17, 13, 2972, 5708], "text": "what's the weather in Dubai"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 36408, 1372, 400, 558, 477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 50, 13044, 10592, 13044, 10923, 9141, 20819, 9023, 20819, 9009, 28184, 332], "text": "spell serendipity"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 16, 17, 15823, 310, 222352, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 16, 17, 387, 2995, 310, 36637, 53525, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 198, 12, 220, 16, 29040, 318, 20476, 8, 283, 220, 15, 13, 19, 20, 18], "text": "convert 12 pounds to kilos"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 15957, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 3766, 264, 3108, 310, 3502, 264, 1876, 11, 694, 353, 2688, 524, 2858, 310, 5774, 3522, 1208, 466, 3502, 21306, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 11, 524, 264, 28560, 878, 13, 271, 10883, 11, 353, 628, 1438], "text": "text Taylor that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2236, 264, 1898, 1238, 15322, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 23226, 488, 310, 2236, 264, 1898, 1238, 15322, 11, 694, 353, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3627, 854, 1881, 1004, 20319, 13, 271, 332, 3710, 353, 628, 635, 64700, 198, 12, 38256, 18252], "text": "remind me to book a table after lunch"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2216, 279, 7765, 506, 220, 21, 5022, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 716, 264, 25680, 11, 694, 353, 1459, 914, 599, 279, 5548, 310, 1791, 466, 9791, 12786, 4216, 466, 21292, 13, 271, 332, 3710, 353, 628, 635, 64700, 198, 12, 11150, 488, 9665, 264, 7903, 18944, 1876, 198], "text": "remind me to pay the rent at 6pm"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 23, 3161, 314, 220, 20, 15, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 23, 4, 314, 220, 20, 15, 15, 25, 271, 332, 8046, 220, 16, 64700, 6943, 279, 11086, 310, 264, 11778, 198, 13682, 16, 23, 59, 4, 283, 1088, 35790, 90, 16, 23, 14728, 16, 15, 15, 92], "text": "what's 18 percent of 500"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 16586, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4392, 579, 17954, 466, 7842, 14512, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 1206, 1562, 16586, 11, 488, 3172, 1144, 310, 25, 198, 12, 5097, 678, 4392, 579, 4392, 878, 198, 12, 8919, 685], "text": "call Jordan"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 6511, 314, 8071, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 6511, 314, 8071, 369, 2972, 6503, 60241, 159034, 271, 2064, 369, 7172, 303, 279, 12982, 17828, 46483, 318, 6609, 681, 864, 557, 3354, 11352, 310, 3626, 279, 5145, 6511, 11, 29099, 1881, 279, 1330, 7526, 9432, 11, 20620, 321, 25592, 13], "text": "what's the capital of Australia"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 854, 369, 424, 303, 48502, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 1928, 11, 2583, 279, 1428, 854, 303, 48502, 13, 1946, 1423, 680, 279, 1428, 854, 303, 48502, 11, 353, 6718, 25, 271, 16, 13, 44555, 678, 3545, 579, 1814, 8598, 4416, 198, 17, 13, 77140, 328], "text": "what time is it in Seoul"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 1040, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 449, 12995, 17071, 364, 16089, 11, 353, 6718, 25, 271, 16, 13, 2972, 3840, 264, 8831, 3779, 332, 1040, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17], "text": "what's the weather like tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 2388, 264, 220, 16, 20, 9104, 5077, 3669, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 26760, 4465, 220, 16, 20, 5084, 258, 1035, 24985, 8891, 271, 332, 14951, 279, 21427, 64700, 271, 16, 13, 2972, 13606, 678, 26622, 332, 471, 10466, 73834, 11, 3160, 24366, 21700, 198, 17, 13, 2972, 10570, 3274, 1132, 332, 471, 3648, 3065, 11], "text": "start a 15 minute focus session"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 65069, 321, 19052, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 7525, 5860, 1103, 64700, 198, 12, 22023, 25080, 198, 12, 28554, 271, 4277, 271, 332, 60239, 64700, 198, 12, 189551, 17158, 328, 6636, 25080, 1, 310, 279, 1103, 198, 12, 189551, 17158, 328, 22399, 1, 310, 279, 1103], "text": "add bananas and rice to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 20, 3161, 314, 220, 16, 20, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 20, 4, 314, 220, 16, 20, 15, 25, 271, 332, 8046, 220, 16, 64700, 6943, 279, 11086, 310, 264, 11778, 198, 13682, 16, 20, 59, 4, 283, 1088, 35790, 90, 16, 20, 14728, 16, 15, 15, 92], "text": "what's 15 percent of 150"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 821, 12553, 1238, 15322, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4204, 12786, 466, 36602, 1785, 11, 748, 353, 628, 914, 5774, 2236, 264, 6236, 364, 488, 13, 271, 10883, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 264, 1876, 332, 310, 3502, 310, 678], "text": "schedule a meeting with my sister after lunch"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 17, 3161, 314, 220, 21, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 17, 4, 314, 220, 21, 15, 25, 271, 332, 8046, 220, 16, 64700, 6943, 279, 11086, 310, 264, 11778, 198, 13682, 16, 17, 59, 4, 283, 1088, 35790, 90, 16, 17, 14728, 16, 15, 15, 92, 283], "text": "what's 12 percent of 60"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 16, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 430, 353, 1044, 264, 1414, 5792, 14791, 13, 4213, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 332, 1860, 16893, 64700, 198, 12, 8185, 1510, 14567, 478, 25662, 478, 345, 63, 318, 12782, 91070, 8], "text": "set a 1 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1603, 3603, 1083, 10452, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 49732, 14053, 64700, 271, 332, 12512, 31171, 152259, 60896, 10119, 318, 46, 78645, 23572, 31230, 271, 332, 47, 2176, 44767, 64700, 13616, 11691, 1413, 1284, 47409, 1395, 2059, 271, 332, 28072, 2193, 64700, 198, 12, 1061, 369, 279, 1379, 4047, 321, 5629, 1560], "text": "translate good night into Japanese"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 2414, 491, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 12804, 2414, 491, 0, 4213, 11, 353, 5125, 488, 8719, 914, 5024, 1092, 2993, 314, 328, 902, 1, 3039, 488, 2224, 3221, 364, 13, 271, 12525, 488, 35932, 1092, 488, 4035, 1040, 728, 310, 635, 30, 1690], "text": "play something new"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1436, 488, 4970, 303, 15659, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 36783, 25, 328, 9538, 1394, 30720, 1, 303, 15659, 271, 13962, 24298, 36783, 271, 332, 1, 220450, 18803, 191931, 34530, 8687, 332, 318, 35, 5734, 1395, 8739, 263, 1402, 9696, 11691, 78, 15836, 271, 332, 47, 2176, 44767, 64700, 50721, 1395, 88, 129], "text": "how do you say see you soon in Korean"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 17, 15, 24569, 310, 89668, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 17, 15, 24569, 310, 89668, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 271, 760, 5129, 13996, 1881, 24569, 321, 89668, 369, 25, 198, 12, 2972, 16, 10212, 283, 220], "text": "convert 20 cups to liters"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 19, 20, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 635, 524, 599, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 16, 13, 220, 2972, 1860, 678, 13897, 64700, 5097], "text": "set a 45 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 6511, 314, 6124, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 6511, 314, 6124, 369, 2972, 51076, 15560, 159034, 271, 51076, 15560, 682, 978, 279, 6511, 2394, 279, 2088, 33716, 64568, 303, 220, 16, 23, 21, 23, 11, 948, 33178, 2088, 33716, 7481, 279, 33145, 5300, 494, 78229, 310, 458, 2887, 318, 7949, 557], "text": "what's the capital of Japan"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 23327, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 23327, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13, 2972, 5708], "text": "what's the weather in Madrid"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2216, 279, 7765, 1118, 3065, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3502, 21292, 310, 488, 13, 353, 2688, 264, 1414, 5792, 14791, 421, 628, 1132, 1817, 321, 5707, 310, 279, 1928, 488, 3300, 303, 1004, 10125, 13, 271, 332, 3710, 353, 628, 635, 64700, 198], "text": "remind me to pay the rent first thing tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6472, 821, 13005, 264, 1876, 5315, 6051, 14756, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 513, 264, 2342, 2519, 364, 264, 14756, 1876, 310, 678, 13005, 11, 11313, 383, 678, 4864, 321, 279, 2724, 7431, 25, 271, 332, 5173, 220, 16, 25, 20586, 594, 3526, 614, 318, 24845, 364, 1379, 14314, 31230, 198, 29, 328, 31759, 35042, 11], "text": "send my boss a message saying happy birthday"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 9414, 488, 1083, 5753, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 1, 12684, 488, 1, 11069, 328, 36769, 432, 175267, 318, 39102, 278, 8, 466, 328, 36769, 432, 72219, 1, 318, 6183, 46193, 8, 271, 332, 60239, 64700, 198, 12, 50615, 328, 36769, 432, 1, 369, 279, 5129, 11, 58391], "text": "translate thank you into German"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 974, 279, 5214, 2956, 12346, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 2444, 6745, 7370, 466, 12346, 303, 678, 2046, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 321, 1459, 914, 599, 2528, 310, 678, 7539, 2046, 1785, 466, 866, 8173, 7370, 13, 271, 1206, 2404, 974, 678, 5214], "text": "turn off the living room lights"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 16, 20, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 1044, 449, 14791, 1414, 1558, 1973, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 16, 13, 220, 2972, 1860, 678], "text": "set a 15 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1603, 3603, 303, 32988, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 6737, 65982, 64700, 328, 43, 347, 75, 295, 1644, 277, 31434, 1, 318, 148335, 155440, 22639, 149544, 28850, 149798, 8, 271, 332, 47, 2176, 44767, 64700, 328, 43, 347, 2759, 308, 11495, 48683, 1413, 12, 1413, 1, 271, 332, 60239, 64700, 198, 12], "text": "how do you say good night in Arabic"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1603, 6353, 303, 79915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 14773, 6353, 303, 79915, 369, 25, 220, 130328, 318, 89, 131, 236, 8992, 512, 304, 131, 236, 78, 31230, 271, 332, 21825, 2829, 64700, 198, 12, 220, 96614, 318, 89, 131, 236, 78, 8, 283, 3988, 3082, 76833, 198, 12, 220, 95802, 318], "text": "how do you say good morning in Mandarin"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 2944, 369, 25358, 494, 1532, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 1366, 1332, 328, 6527, 1, 369, 1521, 488, 8719, 914, 3766, 678, 1428, 3602, 13, 271, 1206, 10724, 279, 5821, 310, 25358, 11, 353, 1144, 25, 198, 12, 4465, 1428, 3177, 5350, 754, 466, 13534, 198, 12, 12757, 488, 2977, 25358], "text": "how far is Tokyo from here"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1438, 728, 303, 15659, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 36783, 25, 328, 12325, 728, 1, 303, 15659, 271, 13962, 24298, 36783, 271, 332, 1, 196759, 88509, 1, 318, 67, 358, 327, 1573, 784, 15560, 31230, 271, 1919, 369, 279, 1379, 4047, 321, 5629, 1560, 310, 1910, 328, 8389, 728, 1, 303, 15659], "text": "how do you say help me in Korean"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 9414, 488, 303, 8323, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 8323, 16629, 364, 328, 55495, 488, 1, 369, 173976, 1134, 5674, 1, 159034, 271, 12, 2972, 47, 2176, 44767, 92217, 593, 76, 133, 249, 134, 223, 87992, 14, 318, 76, 1264, 12, 3924, 8, 198, 12, 2972, 14354, 92217, 11851, 303, 660, 14314], "text": "how do you say thank you in French"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 1142, 685, 821, 3425, 506, 35915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 23226, 488, 883, 23891, 685, 678, 3425, 506, 35915, 13, 4213, 11, 353, 1459, 914, 599, 279, 5548, 310, 716, 4880, 63383, 466, 21292, 364, 488, 13, 271, 332, 3710, 353, 628, 635, 64700, 198, 12, 38256], "text": "remind me to back up my files at noon"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1244, 91893, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 44, 5130, 13148, 332, 3254, 8755, 2172, 6326, 310, 7472, 26, 1546, 16097, 321, 22825, 13, 271, 332, 1536, 13173, 64700, 198, 12, 2972, 969, 14025, 2022, 92217, 31245, 5562, 2414, 15060, 321, 6379, 198, 12, 2972, 53639, 92217, 11142, 286, 3160, 6326], "text": "define meticulous"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 23, 3161, 314, 220, 17, 15, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 23, 4, 314, 220, 17, 15, 15, 25, 271, 332, 8046, 220, 16, 64700, 6943, 279, 11086, 310, 264, 11778, 198, 13682, 16, 23, 59, 4, 283, 1088, 35790, 90, 16, 23, 14728, 16, 15, 15, 92], "text": "what's 18 percent of 200"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1204, 513, 488, 1083, 79915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 1, 4199, 513, 488, 7285, 332, 11069, 173976, 109266, 98179, 10992, 175267, 318, 45, 131, 238, 304, 131, 236, 78, 7256, 9868, 271, 4277, 271, 332, 60239, 64700, 271, 91, 5403, 735, 387, 59431, 735, 46499, 735, 198, 91], "text": "translate how are you into Mandarin"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 81751, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 14952, 279, 1622, 11, 694, 353, 2688, 524, 2858, 310, 1432, 4477, 5774, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 10883, 11, 353, 628, 1438, 488, 1423, 81751, 4477, 18005, 0, 5514, 513, 1010, 17683, 25, 271, 332, 61193, 81751], "text": "play some upbeat music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1438, 728, 1083, 14712, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 1, 347, 204394, 368, 1, 271, 332, 60239, 64700, 198, 12, 328, 13642, 1, 283, 328, 45456, 1692, 396, 1, 50615, 198, 12, 328, 8389, 1, 283, 328, 347, 170905, 1, 50615, 198, 12, 328, 2573, 1, 283, 328, 2573], "text": "translate help me into Spanish"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1603, 6353, 303, 15659, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 15666, 64700, 271, 332, 1, 2014, 240052, 626, 71, 507, 15560, 175267, 318, 148924, 154982, 88005, 8, 271, 1919, 369, 279, 5129, 11, 46193, 40719, 1429, 6600, 279, 1834, 303, 15659, 13, 1049, 15433, 3254, 328, 14556, 1, 321, 4138, 364, 6353, 11], "text": "how do you say good morning in Korean"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1603, 6353, 1083, 10452, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 14773, 6353, 303, 10452, 64700, 271, 332, 31171, 14876, 148564, 318, 11569, 347, 282, 31230, 271, 332, 47, 2176, 44767, 64700, 13616, 2741, 347, 12, 2194, 271, 332, 28072, 8129, 64700, 198, 12, 1061, 369, 279, 15855, 1304, 1429, 4082, 4627, 11, 2902], "text": "translate good morning into Japanese"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1436, 488, 4970, 303, 42524, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 36783, 25, 328, 9538, 1394, 30720, 1, 303, 42524, 271, 13962, 24298, 36783, 25, 271, 332, 149106, 159607, 148651, 194508, 150929, 179638, 332, 318, 41, 4594, 14167, 81576, 8, 271, 332, 47, 2176, 44767, 64700, 348, 41, 4594, 14167, 80100, 347, 9, 271], "text": "how do you say see you soon in Hindi"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 17230, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4392, 466, 5548, 310, 1236, 4392, 6526, 13, 4558, 2592, 488, 2224, 3221, 310, 1562, 678, 17230, 11, 488, 3172, 1144, 310, 25, 198, 12, 5272, 678, 4392, 579, 26956, 261, 198, 12, 5272, 264, 28560, 878], "text": "call dad"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 19052, 321, 13671, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 4212, 310, 2604, 64700, 198, 12, 28554, 198, 12, 42374, 271, 4277, 271, 332, 8839, 64700, 353, 2688, 264, 31626, 4560, 11, 524, 264, 11580, 1103, 6436, 13, 1946, 3404, 884, 3470, 310, 678, 4204, 11580, 1103, 11], "text": "add rice and milk to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6472, 16586, 264, 1876, 5315, 6051, 14756, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 3502, 264, 1876, 310, 4184, 6725, 16586, 11, 694, 353, 1459, 914, 599, 279, 5548, 310, 3502, 6397, 310, 8976, 32658, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16, 13, 2972, 48401, 264, 14756], "text": "send Jordan a message saying happy birthday"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 16, 17, 7303, 310, 19434, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 332, 21365, 64700, 220, 16, 17, 7303, 271, 332, 46629, 7911, 64700, 220, 16, 4330, 283, 220, 15, 13, 18, 15, 19, 23, 19434, 318, 44839, 8, 271, 332, 45593, 2820, 64700, 198, 13682, 16, 17, 1088, 1272, 90, 7303, 92], "text": "convert 12 feet to meters"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 15957, 506, 35915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 12786, 466, 279, 5548, 310, 3404, 9412, 15782, 13, 4213, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 449, 2469, 332, 310, 28647, 279, 6236, 854, 198, 17, 13, 2972, 3886, 264, 3683, 332], "text": "schedule a meeting with Taylor at noon"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1332, 369, 279, 7803, 303, 14382, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 1, 35, 833, 6, 4311, 1147, 199274, 7285, 332, 271, 4277, 271, 332, 21825, 2829, 64700, 198, 12, 2972, 35, 833, 6, 4311, 332, 283, 328, 8791, 369, 1, 318, 7965, 1265, 314, 348, 67, 962, 9, 478, 348, 4311, 3636, 198, 12], "text": "how do you say where is the station in Italian"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1603, 6353, 1083, 32988, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 6737, 65982, 64700, 182709, 215066, 271, 332, 47, 2176, 44767, 64700, 348, 73765, 29656, 157, 116, 98, 444, 12283, 65041, 81, 9, 271, 332, 21825, 2829, 64700, 198, 12, 2972, 40218, 156514, 332, 318, 73765, 29656, 157, 116, 98], "text": "translate good morning into Arabic"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 6511, 314, 30466, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 6511, 314, 30466, 369, 2972, 27925, 379, 159034, 271, 27925, 379, 369, 7172, 383, 279, 10663, 13255, 314, 30466, 321, 16545, 430, 279, 3046, 579, 4788, 11, 6739, 11, 321, 12387, 3990, 13, 1049, 682, 978, 279, 6511, 2394, 279, 632, 2325, 314], "text": "what's the capital of Norway"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 22, 25, 18, 15, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 7:30am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2216, 279, 7765, 411, 12967, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3627, 854, 3808, 15243, 13, 3095, 488, 3160, 411, 6040, 11, 353, 2677, 914, 5909, 411, 1622, 13, 271, 332, 1206, 3404, 381, 29171, 11, 488, 1220, 64700, 198, 12, 2488, 449, 16136, 383], "text": "remind me to pay the rent this afternoon"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 13696, 321, 35243, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 4212, 310, 2604, 64700, 198, 12, 10838, 100, 230, 29368, 198, 12, 10838, 235, 251, 93988, 271, 4277, 271, 332, 60239, 64700, 198, 91, 5561, 735, 7848, 735, 198, 91, 16077, 91, 502, 91, 198, 91, 29368, 735], "text": "add butter and pasta to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 26882, 7509, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4392, 579, 17954, 466, 7842, 14512, 13, 353, 2688, 449, 14791, 1414, 17313, 11, 524, 264, 4392, 878, 13, 271, 1206, 1562, 26882, 7509, 11, 488, 3172, 1144, 310, 25, 198, 12, 5097, 678, 4392, 579, 4392], "text": "call Priya"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 24441, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 1432, 4477, 5774, 13, 4213, 11, 353, 628, 1438, 488, 1423, 2172, 24441, 4477, 18005, 0, 271, 332, 56480, 24441, 34465, 64700, 198, 12, 2972, 1425, 44, 24828, 742, 8111, 332, 471, 4962, 4649, 11, 2172, 364], "text": "play some workout music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 35243, 321, 19052, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 93988, 198, 12, 28554, 271, 4277, 271, 332, 8839, 64700, 353, 2688, 264, 31626, 4560, 11, 524, 264, 3274, 6436, 13, 1368, 488, 1144, 728, 310, 25, 198, 12, 19182, 449, 4880, 11580], "text": "add pasta and rice to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 13474, 821, 24651, 303, 449, 6258, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 63383, 466, 60212, 364, 488, 13, 1577, 449, 14791, 11, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 11208, 1785, 13, 271, 5328, 716, 264, 8749, 466, 16136, 383, 678, 4392, 466, 6165, 364, 799, 6258, 494, 1381], "text": "remind me to renew my passport in an hour"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 1040, 3242, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 3242, 579, 8831, 17071, 11, 353, 6718, 25, 271, 16, 13, 2972, 3840, 264, 8831, 3779, 332, 1040, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13], "text": "what's the weather like today"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 15530, 321, 43119, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 47398, 198, 12, 1848, 880, 271, 4277, 271, 332, 8839, 64700, 353, 1459, 914, 599, 2528, 310, 678, 6149, 11580, 1103, 13, 1368, 488, 4035, 1040, 728, 310, 1438, 488, 25, 271, 16], "text": "add bread and onions to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 79825, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 513, 264, 2342, 2519, 11313, 383, 678, 6331, 25, 271, 332, 15893, 594, 6916, 64700, 198, 1, 18103, 94587, 11, 353, 2688, 4162, 264, 2612, 3200, 13, 353, 3172, 381, 1017, 4970, 8687, 271, 332, 2278, 264, 25905, 64700, 198, 1, 12675, 94587], "text": "text grandma that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 23, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 8am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 15530, 321, 65416, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 47398, 198, 12, 39341, 595, 271, 4277, 271, 332, 8839, 64700, 353, 1459, 914, 599, 2528, 310, 678, 6149, 11580, 1103, 13, 1368, 488, 4035, 1040, 728, 310, 1438, 488, 25, 271, 16], "text": "add bread and spinach to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 2944, 369, 23327, 494, 1532, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 1366, 1332, 328, 6527, 1, 369, 1521, 488, 8719, 914, 3766, 678, 1428, 3602, 13, 271, 1206, 10724, 279, 5821, 310, 23327, 11, 353, 1144, 25, 198, 12, 4465, 1428, 3177, 5350, 754, 466, 13534, 198, 12, 12757, 488, 1318, 279], "text": "how far is Madrid from here"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1204, 513, 488, 1083, 15659, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 15666, 64700, 271, 332, 1, 4199, 513, 488, 7285, 303, 15659, 369, 25, 328, 148924, 154982, 88005, 7285, 318, 2014, 240052, 626, 71, 507, 15560, 9868, 332, 271, 1919, 369, 279, 5129, 11, 46193, 40719, 1429, 303, 17248, 14314, 13], "text": "translate how are you into Korean"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 1478, 4121, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 1478, 4121, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13, 2972], "text": "what's the weather in New York"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 32729, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 1423, 32729, 4477, 0, 5514, 513, 1010, 18005, 25, 271, 332, 1890, 908, 64700, 198, 12, 34288, 13060, 471, 328, 4904, 1264, 401, 239224, 1, 198, 12, 12795, 627, 471, 328, 38, 1544, 60698, 14643, 536, 1], "text": "play some relaxing music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 36408, 56696, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 4252, 41019, 369, 2972, 408, 319, 1128, 159034, 271, 8160, 369, 279, 29006, 25, 198, 9, 256, 2972, 81, 5478, 1284, 17076, 2759, 17076, 5478, 5111, 2308, 332, 271, 332, 44, 68379, 64700, 20500, 314, 279, 3299, 430, 2972, 265, 1284, 319, 1128], "text": "spell resilient"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 6924, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 6924, 11, 353, 6718, 25, 271, 16, 13, 2972, 14030, 21926, 332, 471, 7304, 328, 38261, 8831, 1, 364, 264, 3841, 22527, 198, 17, 13, 2972, 33525], "text": "what's the weather in London"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 2388, 264, 220, 18, 15, 9104, 31676, 3669, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 2, 220, 18, 15, 5084, 258, 1035, 73855, 8891, 271, 550, 19427, 279, 21427, 271, 332, 12358, 18065, 64700, 198, 12, 7145, 264, 11012, 3433, 1845, 494, 73834, 198, 12, 27480, 43187, 383, 264, 43158, 11, 10183, 11, 466, 6220, 198, 12, 13262, 678], "text": "start a 30 minute meditation session"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 9414, 488, 303, 32988, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 36783, 25, 328, 12684, 1394, 1, 303, 32988, 271, 13962, 24298, 36783, 271, 91, 32988, 735, 3922, 75, 35504, 735, 83915, 44767, 735, 198, 91, 502, 91, 746, 12, 91, 37363, 91, 198, 91, 2972, 31704, 30055, 171508, 332, 735, 348, 1948, 3001], "text": "how do you say thank you in Arabic"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 20, 7303, 310, 19434, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 332, 21365, 64700, 220, 20, 7303, 271, 332, 46629, 7911, 64700, 220, 16, 4330, 283, 220, 15, 13, 18, 15, 19, 23, 19434, 318, 44839, 8, 271, 332, 45593, 2820, 64700, 198, 13682, 20, 1088, 1272, 90, 7303, 92, 1088, 14695], "text": "convert 5 feet to meters"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 10482, 321, 65416, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 24329, 243, 25245, 198, 12, 10838, 98, 105, 39341, 595, 271, 4277, 271, 332, 8839, 64700, 353, 2688, 264, 31626, 4560, 11, 524, 264, 3274, 6436, 48952, 1459, 914, 599, 24207, 4779, 314], "text": "add coffee and spinach to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1332, 369, 279, 7803, 1083, 14712, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 1, 29197, 35, 180165, 15012, 1147, 202288, 7285, 332, 271, 4277, 271, 332, 21825, 2829, 64700, 271, 91, 6163, 735, 14712, 735, 198, 91, 22031, 91, 22031, 91, 198, 91, 10646, 735, 27368, 35, 180165, 735, 198, 91, 369], "text": "translate where is the station into Spanish"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 43119, 321, 19052, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 4212, 310, 2604, 64700, 198, 12, 1848, 880, 198, 12, 28554, 271, 4277, 271, 332, 8839, 64700, 353, 2688, 264, 31626, 4560, 11, 524, 264, 11580, 1103, 6436, 13, 1368, 488, 1144, 1438, 440, 25, 198, 12, 24500], "text": "add onions and rice to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 15957, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 264, 2050, 1560, 310, 1562, 1208, 13, 4213, 11, 353, 628, 1438, 488, 1423, 15957, 579, 4392, 1324, 413, 488, 3300, 728, 440, 25, 271, 16, 13, 15957, 579, 2400, 803, 198, 17, 13, 5586, 9468, 2193, 318, 2777, 488], "text": "call Taylor"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 43494, 264, 9414, 488, 5020, 310, 411, 2469, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 9665, 264, 9414, 488, 5020, 0, 4213, 11, 353, 5125, 488, 8719, 914, 5064, 279, 3889, 2469, 488, 4035, 1040, 728, 310, 5707, 310, 13, 271, 5328, 4191, 25, 198, 16, 13, 561, 2469, 488, 3816, 198], "text": "draft a thank you note to this email"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 16, 15, 15, 24569, 310, 89668, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 41096, 25, 220, 16, 15, 15, 75430, 310, 36983, 382, 271, 13962, 14392, 13909, 12, 8046, 12121, 271, 332, 8046, 220, 16, 25, 62366, 279, 13996, 7911, 332, 271, 760, 5129, 13996, 369, 25, 198, 12, 2972, 16, 10212, 283, 220, 15, 13], "text": "convert 100 cups to liters"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 16, 17, 3161, 314, 220, 16, 20, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 16, 17, 4, 314, 220, 16, 20, 15, 25, 271, 332, 8046, 220, 16, 64700, 6943, 279, 11086, 310, 264, 11778, 198, 13682, 16, 17, 59, 4, 283, 1088, 35790, 90, 16, 17, 14728, 16, 15, 15, 92], "text": "what's 12 percent of 150"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 854, 369, 424, 303, 11751, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 1928, 11, 2583, 279, 1428, 854, 303, 11751, 13, 2921, 6337, 369, 6973, 310, 1092, 557, 3766, 303, 1004, 10125, 3712, 11, 864, 3070, 914, 6435, 866, 854, 795, 13, 271, 1206, 1423, 279, 1428, 854], "text": "what time is it in Paris"}]} \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:6e396793edd6565f130c77e1d82f26641a2ba7d8dabe33283c7893d0bad4e3c4 +size 62641 diff --git a/b/00800b27d3271fdf5c10f0d098b7e6b07b527f6fab38ed8b3ba03f981481fcad b/b/00800b27d3271fdf5c10f0d098b7e6b07b527f6fab38ed8b3ba03f981481fcad index acfcf7dd1ff0fe16b81fea0234428a5f78a00fcd..0ea8ee07b4c7ae917520fcc3b74fb12a4ad01c66 100644 --- a/b/00800b27d3271fdf5c10f0d098b7e6b07b527f6fab38ed8b3ba03f981481fcad +++ b/b/00800b27d3271fdf5c10f0d098b7e6b07b527f6fab38ed8b3ba03f981481fcad @@ -1,92 +1,3 @@ -"use client";var Y0=Object.create;var ds=Object.defineProperty;var Z0=Object.getOwnPropertyDescriptor;var J0=Object.getOwnPropertyNames;var Q0=Object.getPrototypeOf,eC=Object.prototype.hasOwnProperty;var dp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tC=(e,t)=>{for(var r in t)ds(e,r,{get:t[r],enumerable:!0})},rC=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of J0(t))!eC.call(e,o)&&o!==r&&ds(e,o,{get:()=>t[o],enumerable:!(a=Z0(t,o))||a.enumerable});return e};var ps=(e,t,r)=>(r=e!=null?Y0(Q0(e)):{},rC(t||!e||!e.__esModule?ds(r,"default",{value:e,enumerable:!0}):r,e));var Nf=dp((Lv,yl)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",n=o+"Invalid argument: ",i=o+"Exponent out of range: ",l=Math.floor,u=Math.pow,s=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f,c=1e7,d=7,m=9007199254740991,h=l(m/d),p={};p.absoluteValue=p.abs=function(){var x=new this.constructor(this);return x.s&&(x.s=1),x},p.comparedTo=p.cmp=function(x){var b,P,I,y,C=this;if(x=new C.constructor(x),C.s!==x.s)return C.s||-x.s;if(C.e!==x.e)return C.e>x.e^C.s<0?1:-1;for(I=C.d.length,y=x.d.length,b=0,P=Ix.d[b]^C.s<0?1:-1;return I===y?0:I>y^C.s<0?1:-1},p.decimalPlaces=p.dp=function(){var x=this,b=x.d.length-1,P=(b-x.e)*d;if(b=x.d[b],b)for(;b%10==0;b/=10)P--;return P<0?0:P},p.dividedBy=p.div=function(x){return w(this,new this.constructor(x))},p.dividedToIntegerBy=p.idiv=function(x){var b=this,P=b.constructor;return F(w(b,new P(x),0,1),P.precision)},p.equals=p.eq=function(x){return!this.cmp(x)},p.exponent=function(){return S(this)},p.greaterThan=p.gt=function(x){return this.cmp(x)>0},p.greaterThanOrEqualTo=p.gte=function(x){return this.cmp(x)>=0},p.isInteger=p.isint=function(){return this.e>this.d.length-2},p.isNegative=p.isneg=function(){return this.s<0},p.isPositive=p.ispos=function(){return this.s>0},p.isZero=function(){return this.s===0},p.lessThan=p.lt=function(x){return this.cmp(x)<0},p.lessThanOrEqualTo=p.lte=function(x){return this.cmp(x)<1},p.logarithm=p.log=function(x){var b,P=this,I=P.constructor,y=I.precision,C=y+5;if(x===void 0)x=new I(10);else if(x=new I(x),x.s<1||x.eq(f))throw Error(o+"NaN");if(P.s<1)throw Error(o+(P.s?"NaN":"-Infinity"));return P.eq(f)?new I(0):(a=!1,b=w(k(P,C),k(x,C),C),a=!0,F(b,y))},p.minus=p.sub=function(x){var b=this;return x=new b.constructor(x),b.s==x.s?W(b,x):g(b,(x.s=-x.s,x))},p.modulo=p.mod=function(x){var b,P=this,I=P.constructor,y=I.precision;if(x=new I(x),!x.s)throw Error(o+"NaN");return P.s?(a=!1,b=w(P,x,0,1).times(x),a=!0,P.minus(b)):F(new I(P),y)},p.naturalExponential=p.exp=function(){return A(this)},p.naturalLogarithm=p.ln=function(){return k(this)},p.negated=p.neg=function(){var x=new this.constructor(this);return x.s=-x.s||0,x},p.plus=p.add=function(x){var b=this;return x=new b.constructor(x),b.s==x.s?g(b,x):W(b,(x.s=-x.s,x))},p.precision=p.sd=function(x){var b,P,I,y=this;if(x!==void 0&&x!==!!x&&x!==1&&x!==0)throw Error(n+x);if(b=S(y)+1,I=y.d.length-1,P=I*d+1,I=y.d[I],I){for(;I%10==0;I/=10)P--;for(I=y.d[0];I>=10;I/=10)P++}return x&&b>P?b:P},p.squareRoot=p.sqrt=function(){var x,b,P,I,y,C,D,T=this,N=T.constructor;if(T.s<1){if(!T.s)return new N(0);throw Error(o+"NaN")}for(x=S(T),a=!1,y=Math.sqrt(+T),y==0||y==1/0?(b=L(T.d),(b.length+x)%2==0&&(b+="0"),y=Math.sqrt(b),x=l((x+1)/2)-(x<0||x%2),y==1/0?b="5e"+x:(b=y.toExponential(),b=b.slice(0,b.indexOf("e")+1)+x),I=new N(b)):I=new N(y.toString()),P=N.precision,y=D=P+3;;)if(C=I,I=C.plus(w(T,C,D+2)).times(.5),L(C.d).slice(0,D)===(b=L(I.d)).slice(0,D)){if(b=b.slice(D-3,D+1),y==D&&b=="4999"){if(F(C,P+1,0),C.times(C).eq(T)){I=C;break}}else if(b!="9999")break;D+=4}return a=!0,F(I,P)},p.times=p.mul=function(x){var b,P,I,y,C,D,T,N,U,z=this,V=z.constructor,oe=z.d,R=(x=new V(x)).d;if(!z.s||!x.s)return new V(0);for(x.s*=z.s,P=z.e+x.e,N=oe.length,U=R.length,N=0;){for(b=0,y=N+I;y>I;)T=C[y]+R[I]*oe[y-I-1]+b,C[y--]=T%c|0,b=T/c|0;C[y]=(C[y]+b)%c|0}for(;!C[--D];)C.pop();return b?++P:C.shift(),x.d=C,x.e=P,a?F(x,V.precision):x},p.toDecimalPlaces=p.todp=function(x,b){var P=this,I=P.constructor;return P=new I(P),x===void 0?P:(v(x,0,t),b===void 0?b=I.rounding:v(b,0,8),F(P,x+S(P)+1,b))},p.toExponential=function(x,b){var P,I=this,y=I.constructor;return x===void 0?P=B(I,!0):(v(x,0,t),b===void 0?b=y.rounding:v(b,0,8),I=F(new y(I),x+1,b),P=B(I,!0,x+1)),P},p.toFixed=function(x,b){var P,I,y=this,C=y.constructor;return x===void 0?B(y):(v(x,0,t),b===void 0?b=C.rounding:v(b,0,8),I=F(new C(y),x+S(y)+1,b),P=B(I.abs(),!1,x+S(I)+1),y.isneg()&&!y.isZero()?"-"+P:P)},p.toInteger=p.toint=function(){var x=this,b=x.constructor;return F(new b(x),S(x)+1,b.rounding)},p.toNumber=function(){return+this},p.toPower=p.pow=function(x){var b,P,I,y,C,D,T=this,N=T.constructor,U=12,z=+(x=new N(x));if(!x.s)return new N(f);if(T=new N(T),!T.s){if(x.s<1)throw Error(o+"Infinity");return T}if(T.eq(f))return T;if(I=N.precision,x.eq(f))return F(T,I);if(b=x.e,P=x.d.length-1,D=b>=P,C=T.s,D){if((P=z<0?-z:z)<=m){for(y=new N(f),b=Math.ceil(I/d+4),a=!1;P%2&&(y=y.times(T),Y(y.d,b)),P=l(P/2),P!==0;)T=T.times(T),Y(T.d,b);return a=!0,x.s<0?new N(f).div(y):F(y,I)}}else if(C<0)throw Error(o+"NaN");return C=C<0&&x.d[Math.max(b,P)]&1?-1:1,T.s=1,a=!1,y=x.times(k(T,I+U)),a=!0,y=A(y),y.s=C,y},p.toPrecision=function(x,b){var P,I,y=this,C=y.constructor;return x===void 0?(P=S(y),I=B(y,P<=C.toExpNeg||P>=C.toExpPos)):(v(x,1,t),b===void 0?b=C.rounding:v(b,0,8),y=F(new C(y),x,b),P=S(y),I=B(y,x<=P||P<=C.toExpNeg,x)),I},p.toSignificantDigits=p.tosd=function(x,b){var P=this,I=P.constructor;return x===void 0?(x=I.precision,b=I.rounding):(v(x,1,t),b===void 0?b=I.rounding:v(b,0,8)),F(new I(P),x,b)},p.toString=p.valueOf=p.val=p.toJSON=function(){var x=this,b=S(x),P=x.constructor;return B(x,b<=P.toExpNeg||b>=P.toExpPos)};function g(x,b){var P,I,y,C,D,T,N,U,z=x.constructor,V=z.precision;if(!x.s||!b.s)return b.s||(b=new z(x)),a?F(b,V):b;if(N=x.d,U=b.d,D=x.e,y=b.e,N=N.slice(),C=D-y,C){for(C<0?(I=N,C=-C,T=U.length):(I=U,y=D,T=N.length),D=Math.ceil(V/d),T=D>T?D+1:T+1,C>T&&(C=T,I.length=1),I.reverse();C--;)I.push(0);I.reverse()}for(T=N.length,C=U.length,T-C<0&&(C=T,I=U,U=N,N=I),P=0;C;)P=(N[--C]=N[C]+U[C]+P)/c|0,N[C]%=c;for(P&&(N.unshift(P),++y),T=N.length;N[--T]==0;)N.pop();return b.d=N,b.e=y,a?F(b,V):b}function v(x,b,P){if(x!==~~x||xP)throw Error(n+x)}function L(x){var b,P,I,y=x.length-1,C="",D=x[0];if(y>0){for(C+=D,b=1;bD?1:-1;else for(T=N=0;Ty[T]?1:-1;break}return N}function P(I,y,C){for(var D=0;C--;)I[C]-=D,D=I[C]1;)I.shift()}return function(I,y,C,D){var T,N,U,z,V,oe,R,q,G,_,be,re,qe,ze,Lt,Oa,_t,Zn,Jn=I.constructor,X0=I.s==y.s?1:-1,qt=I.d,Me=y.d;if(!I.s)return new Jn(I);if(!y.s)throw Error(o+"Division by zero");for(N=I.e-y.e,_t=Me.length,Lt=qt.length,R=new Jn(X0),q=R.d=[],U=0;Me[U]==(qt[U]||0);)++U;if(Me[U]>(qt[U]||0)&&--N,C==null?re=C=Jn.precision:D?re=C+(S(I)-S(y))+1:re=C,re<0)return new Jn(0);if(re=re/d+2|0,U=0,_t==1)for(z=0,Me=Me[0],re++;(U1&&(Me=x(Me,z),qt=x(qt,z),_t=Me.length,Lt=qt.length),ze=_t,G=qt.slice(0,_t),_=G.length;_<_t;)G[_++]=0;Zn=Me.slice(),Zn.unshift(0),Oa=Me[0],Me[1]>=c/2&&++Oa;do z=0,T=b(Me,G,_t,_),T<0?(be=G[0],_t!=_&&(be=be*c+(G[1]||0)),z=be/Oa|0,z>1?(z>=c&&(z=c-1),V=x(Me,z),oe=V.length,_=G.length,T=b(V,G,oe,_),T==1&&(z--,P(V,_t16)throw Error(i+S(x));if(!x.s)return new z(f);for(b==null?(a=!1,T=V):T=b,D=new z(.03125);x.abs().gte(.1);)x=x.times(D),U+=5;for(I=Math.log(u(2,U))/Math.LN10*2+5|0,T+=I,P=y=C=new z(f),z.precision=T;;){if(y=F(y.times(x),T),P=P.times(++N),D=C.plus(w(y,P,T)),L(D.d).slice(0,T)===L(C.d).slice(0,T)){for(;U--;)C=F(C.times(C),T);return z.precision=V,b==null?(a=!0,F(C,V)):C}C=D}}function S(x){for(var b=x.e*d,P=x.d[0];P>=10;P/=10)b++;return b}function O(x,b,P){if(b>x.LN10.sd())throw a=!0,P&&(x.precision=P),Error(o+"LN10 precision limit exceeded");return F(new x(x.LN10),b)}function M(x){for(var b="";x--;)b+="0";return b}function k(x,b){var P,I,y,C,D,T,N,U,z,V=1,oe=10,R=x,q=R.d,G=R.constructor,_=G.precision;if(R.s<1)throw Error(o+(R.s?"NaN":"-Infinity"));if(R.eq(f))return new G(0);if(b==null?(a=!1,U=_):U=b,R.eq(10))return b==null&&(a=!0),O(G,U);if(U+=oe,G.precision=U,P=L(q),I=P.charAt(0),C=S(R),Math.abs(C)<15e14){for(;I<7&&I!=1||I==1&&P.charAt(1)>3;)R=R.times(x),P=L(R.d),I=P.charAt(0),V++;C=S(R),I>1?(R=new G("0."+P),C++):R=new G(I+"."+P.slice(1))}else return N=O(G,U+2,_).times(C+""),R=k(new G(I+"."+P.slice(1)),U-oe).plus(N),G.precision=_,b==null?(a=!0,F(R,_)):R;for(T=D=R=w(R.minus(f),R.plus(f),U),z=F(R.times(R),U),y=3;;){if(D=F(D.times(z),U),N=T.plus(w(D,new G(y),U)),L(N.d).slice(0,U)===L(T.d).slice(0,U))return T=T.times(2),C!==0&&(T=T.plus(O(G,U+2,_).times(C+""))),T=w(T,new G(V),U),G.precision=_,b==null?(a=!0,F(T,_)):T;T=N,y+=2}}function j(x,b){var P,I,y;for((P=b.indexOf("."))>-1&&(b=b.replace(".","")),(I=b.search(/e/i))>0?(P<0&&(P=I),P+=+b.slice(I+1),b=b.substring(0,I)):P<0&&(P=b.length),I=0;b.charCodeAt(I)===48;)++I;for(y=b.length;b.charCodeAt(y-1)===48;)--y;if(b=b.slice(I,y),b){if(y-=I,P=P-I-1,x.e=l(P/d),x.d=[],I=(P+1)%d,P<0&&(I+=d),Ih||x.e<-h))throw Error(i+P)}else x.s=0,x.e=0,x.d=[0];return x}function F(x,b,P){var I,y,C,D,T,N,U,z,V=x.d;for(D=1,C=V[0];C>=10;C/=10)D++;if(I=b-D,I<0)I+=d,y=b,U=V[z=0];else{if(z=Math.ceil((I+1)/d),C=V.length,z>=C)return x;for(U=C=V[z],D=1;C>=10;C/=10)D++;I%=d,y=I-d+D}if(P!==void 0&&(C=u(10,D-y-1),T=U/C%10|0,N=b<0||V[z+1]!==void 0||U%C,N=P<4?(T||N)&&(P==0||P==(x.s<0?3:2)):T>5||T==5&&(P==4||N||P==6&&(I>0?y>0?U/u(10,D-y):0:V[z-1])%10&1||P==(x.s<0?8:7))),b<1||!V[0])return N?(C=S(x),V.length=1,b=b-C-1,V[0]=u(10,(d-b%d)%d),x.e=l(-b/d)||0):(V.length=1,V[0]=x.e=x.s=0),x;if(I==0?(V.length=z,C=1,z--):(V.length=z+1,C=u(10,d-I),V[z]=y>0?(U/u(10,D-y)%u(10,y)|0)*C:0),N)for(;;)if(z==0){(V[0]+=C)==c&&(V[0]=1,++x.e);break}else{if(V[z]+=C,V[z]!=c)break;V[z--]=0,C=1}for(I=V.length;V[--I]===0;)V.pop();if(a&&(x.e>h||x.e<-h))throw Error(i+S(x));return x}function W(x,b){var P,I,y,C,D,T,N,U,z,V,oe=x.constructor,R=oe.precision;if(!x.s||!b.s)return b.s?b.s=-b.s:b=new oe(x),a?F(b,R):b;if(N=x.d,V=b.d,I=b.e,U=x.e,N=N.slice(),D=U-I,D){for(z=D<0,z?(P=N,D=-D,T=V.length):(P=V,I=U,T=N.length),y=Math.max(Math.ceil(R/d),T)+2,D>y&&(D=y,P.length=1),P.reverse(),y=D;y--;)P.push(0);P.reverse()}else{for(y=N.length,T=V.length,z=y0;--y)N[T++]=0;for(y=V.length;y>D;){if(N[--y]0?C=C.charAt(0)+"."+C.slice(1)+M(I):D>1&&(C=C.charAt(0)+"."+C.slice(1)),C=C+(y<0?"e":"e+")+y):y<0?(C="0."+M(-y-1)+C,P&&(I=P-D)>0&&(C+=M(I))):y>=D?(C+=M(y+1-D),P&&(I=P-y-1)>0&&(C=C+"."+M(I))):((I=y+1)0&&(y+1===D&&(C+="."),C+=M(I))),x.s<0?"-"+C:C}function Y(x,b){if(x.length>b)return x.length=b,!0}function Z(x){var b,P,I;function y(C){var D=this;if(!(D instanceof y))return new y(C);if(D.constructor=y,C instanceof y){D.s=C.s,D.e=C.e,D.d=(C=C.d)?C.slice():C;return}if(typeof C=="number"){if(C*0!==0)throw Error(n+C);if(C>0)D.s=1;else if(C<0)C=-C,D.s=-1;else{D.s=0,D.e=0,D.d=[0];return}if(C===~~C&&C<1e7){D.e=0,D.d=[C];return}return j(D,C.toString())}else if(typeof C!="string")throw Error(n+C);if(C.charCodeAt(0)===45?(C=C.slice(1),D.s=-1):D.s=1,s.test(C))j(D,C);else throw Error(n+C)}if(y.prototype=p,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.clone=Z,y.config=y.set=te,x===void 0&&(x={}),x)for(I=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=y[b+1]&&I<=y[b+2])this[P]=I;else throw Error(n+P+": "+I);if((I=x[P="LN10"])!==void 0)if(I==Math.LN10)this[P]=new this(I);else throw Error(n+P+": "+I);return this}r=Z(r),r.default=r.Decimal=r,f=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof yl<"u"&&yl.exports?yl.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Lv)});var xb=dp((dY,Ad)=>{"use strict";var fD=Object.prototype.hasOwnProperty,it="~";function Rn(){}Object.create&&(Rn.prototype=Object.create(null),new Rn().__proto__||(it=!1));function cD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function vb(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new cD(r,a||e,o),i=it?it+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function _u(e,t){--e._eventsCount===0?e._events=new Rn:delete e._events[t]}function Ze(){this._events=new Rn,this._eventsCount=0}Ze.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)fD.call(r,a)&&t.push(it?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Ze.prototype.listeners=function(t){var r=it?it+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,i=new Array(n);oe.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qn=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();import{forwardRef as aC,createElement as hp}from"react";var mp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var gp=aC(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...l},u)=>hp("svg",{ref:u,...mp,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Qn("lucide",o),...l},[...i.map(([s,f])=>hp(s,f)),...Array.isArray(n)?n:[n]]));var vp=(e,t)=>{let r=oC(({className:a,...o},n)=>nC(gp,{ref:n,iconNode:t,className:Qn(`lucide-${pp(e)}`,a),...o}));return r.displayName=`${e}`,r};var To=vp("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);import*as ei from"react";import{forwardRef as mC}from"react";function xp(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:a,height:o,viewBox:n,className:i,style:l,title:u,desc:s}=e,f=dC(e,cC),c=n||{width:a,height:o,x:0,y:0},d=ee("recharts-surface",i);return ei.createElement("svg",gs({},Ae(f),{className:d,width:a,height:o,style:l,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height),ref:t}),ei.createElement("title",null,u),ei.createElement("desc",null,s),r)});import*as ti from"react";var hC=["children","className"];function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:a}=e,o=gC(e,hC),n=ee("recharts-layer",a);return ti.createElement("g",xs({className:n},Ae(o),{ref:t}),r)});import{createContext as xC,useContext as xB}from"react";var bp=xC(null);function pe(e){return function(){return e}}var ys=Math.PI,bs=2*ys,qr=1e-6,yC=bs-qr;function Ip(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ip;let r=10**t;return function(a){this._+=a[0];for(let o=1,n=a.length;oqr)if(!(Math.abs(c*u-s*f)>qr)||!n)this._append`L${this._x1=t},${this._y1=r}`;else{let m=a-i,h=o-l,p=u*u+s*s,g=m*m+h*h,v=Math.sqrt(p),L=Math.sqrt(d),w=n*Math.tan((ys-Math.acos((p+d-g)/(2*v*L)))/2),A=w/L,S=w/v;Math.abs(A-1)>qr&&this._append`L${t+A*f},${r+A*c}`,this._append`A${n},${n},0,0,${+(c*m>f*h)},${this._x1=t+S*u},${this._y1=r+S*s}`}}arc(t,r,a,o,n,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(o),u=a*Math.sin(o),s=t+l,f=r+u,c=1^i,d=i?o-n:n-o;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>qr||Math.abs(this._y1-f)>qr)&&this._append`L${s},${f}`,a&&(d<0&&(d=d%bs+bs),d>yC?this._append`A${a},${a},0,1,${c},${t-l},${r-u}A${a},${a},0,1,${c},${this._x1=s},${this._y1=f}`:d>qr&&this._append`A${a},${a},0,${+(d>=ys)},${c},${this._x1=t+a*Math.cos(n)},${this._y1=r+a*Math.sin(n)}`)}rect(t,r,a,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}};function wp(){return new Hr}wp.prototype=Hr.prototype;function ri(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new Hr(t)}var AB=Array.prototype.slice;function Ea(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Cp(e){this._context=e}Cp.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 Ir(e){return new Cp(e)}function ai(e){return e[0]}function oi(e){return e[1]}function _o(e,t){var r=pe(!0),a=null,o=Ir,n=null,i=ri(l);e=typeof e=="function"?e:e===void 0?ai:pe(e),t=typeof t=="function"?t:t===void 0?oi:pe(t);function l(u){var s,f=(u=Ea(u)).length,c,d=!1,m;for(a==null&&(n=o(m=i())),s=0;s<=f;++s)!(s=m;--h)l.point(w[h],A[h]);l.lineEnd(),l.areaEnd()}v&&(w[d]=+e(g,d,c),A[d]=+t(g,d,c),l.point(a?+a(g,d,c):w[d],r?+r(g,d,c):A[d]))}if(L)return l=null,L+""||null}function f(){return _o().defined(o).curve(i).context(n)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:pe(+c),a=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:pe(+c),s):e},s.x1=function(c){return arguments.length?(a=c==null?null:typeof c=="function"?c:pe(+c),s):a},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:pe(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:pe(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:pe(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(a).y(t)},s.defined=function(c){return arguments.length?(o=typeof c=="function"?c:pe(!!c),s):o},s.curve=function(c){return arguments.length?(i=c,n!=null&&(l=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=l=null:l=i(n=c),s):n},s}var ni=class{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Is(e){return new ni(e,!0)}function ws(e){return new ni(e,!1)}function Da(){}function Ta(e,t,r){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+r)/6)}function Lp(e){this._context=e}Lp.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:Ta(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:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cs(e){return new Lp(e)}function Sp(e){this._context=e}Sp.prototype={areaStart:Da,areaEnd:Da,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:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ls(e){return new Sp(e)}function Pp(e){this._context=e}Pp.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 r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ss(e){return new Pp(e)}function Ap(e){this._context=e}Ap.prototype={areaStart:Da,areaEnd:Da,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 Ps(e){return new Ap(e)}function kp(e){return e<0?-1:1}function Op(e,t,r){var a=e._x1-e._x0,o=t-e._x1,n=(e._y1-e._y0)/(a||o<0&&-0),i=(r-e._y1)/(o||a<0&&-0),l=(n*o+i*a)/(a+o);return(kp(n)+kp(i))*Math.min(Math.abs(n),Math.abs(i),.5*Math.abs(l))||0}function Ep(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function As(e,t,r){var a=e._x0,o=e._y0,n=e._x1,i=e._y1,l=(n-a)/3;e._context.bezierCurveTo(a+l,o+l*t,n-l,i-l*r,n,i)}function ii(e){this._context=e}ii.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:As(this,this._t0,Ep(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 r=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,As(this,Ep(this,r=Op(this,e,t)),r);break;default:As(this,this._t0,r=Op(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Mp(e){this._context=new Dp(e)}(Mp.prototype=Object.create(ii.prototype)).point=function(e,t){ii.prototype.point.call(this,t,e)};function Dp(e){this._context=e}Dp.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,r,a,o,n){this._context.bezierCurveTo(t,e,a,r,n,o)}};function ks(e){return new ii(e)}function Os(e){return new Mp(e)}function Rp(e){this._context=e}Rp.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=Tp(e),o=Tp(t),n=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/n[t];for(n[r-1]=(e[r]+o[r-1])/2,t=0;t=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Ms(e){return new li(e,.5)}function Ds(e){return new li(e,0)}function Ts(e){return new li(e,1)}function pt(e,t){if((i=e.length)>1)for(var r=1,a,o,n=e[t[0]],i,l=n.length;r=0;)r[t]=t;return r}function IC(e,t){return e[t]}function wC(e){let t=[];return t.key=e,t}function Rs(){var e=pe([]),t=Ra,r=pt,a=IC;function o(n){var i=Array.from(e.apply(this,arguments),wC),l,u=i.length,s=-1,f;for(let c of n)for(l=0,++s;l0){for(var r,a,o=0,n=e[0].length,i;o0){for(var r=0,a=e[t[0]],o,n=a.length;r0)||!((n=(o=e[t[0]]).length)>0))){for(var r=0,a=1,o,n,i;a1&&arguments[1]!==void 0?arguments[1]:LC,r=10**t,a=Math.round(e*r)/r;return Object.is(a,-0)?0:a}function Te(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{var l=r[i-1];return typeof l=="string"?o+l+n:l!==void 0?o+Ht(l)+n:o+n},"")}var Re=e=>e===0?0:e>0?1:-1,$e=e=>typeof e=="number"&&e!=+e,rr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,H=e=>(typeof e=="number"||e instanceof Number)&&!$e(e),tt=e=>H(e)||typeof e=="string",SC=0,ar=e=>{var t=++SC;return"".concat(e||"").concat(t)},St=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&typeof t!="string")return a;var n;if(rr(t)){if(r==null)return a;var i=t.indexOf("%");n=r*parseFloat(t.slice(0,i))/100}else n=+t;return $e(n)&&(n=a),o&&r!=null&&n>r&&(n=r),n},js=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;aa&&(typeof t=="function"?t(a):mt(a,t))===r)}var ge=e=>e===null||typeof e>"u",Ba=e=>ge(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function We(e){return e!=null}function ht(){}import{isValidElement as PC}from"react";var ci=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Fa=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(PC(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(o=>{Ro(o)&&typeof r[o]=="function"&&(a[o]=t||(n=>r[o](r,n)))}),a},AC=(e,t,r)=>a=>(e(t,r,a),null),_p=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(o=>{var n=e[o];Ro(o)&&typeof n=="function"&&(a||(a={}),a[o]=AC(n,t,r))}),a};function Np(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function kC(e){for(var t=1;t(i[l]===void 0&&a[l]!==void 0&&(i[l]=a[l]),i),r);return n}function Bp(e,t){let r=new Map;for(let a=0;aObject.prototype.propertyIsEnumerable.call(e,t))}function ja(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var qp="[object RegExp]",pi="[object String]",mi="[object Number]",hi="[object Boolean]",gi="[object Arguments]",Hp="[object Symbol]",Wp="[object Date]",Vp="[object Map]",Gp="[object Set]",Kp="[object Array]";var $p="[object ArrayBuffer]",Xp="[object Object]";var Yp="[object DataView]",Zp="[object Uint8Array]",Jp="[object Uint8ClampedArray]",Qp="[object Uint16Array]",em="[object Uint32Array]";var tm="[object Int8Array]",rm="[object Int16Array]",am="[object Int32Array]";var om="[object Float32Array]",nm="[object Float64Array]";var zs=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function im(e){return typeof zs.Buffer<"u"&&zs.Buffer.isBuffer(e)}function lm(e,t){return wr(e,void 0,e,new Map,t)}function wr(e,t,r,a=new Map,o=void 0){let n=o?.(e,t,r,a);if(n!==void 0)return n;if(No(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let i=new Array(e.length);a.set(e,i);for(let l=0;l{}):Us(e,t,function a(o,n,i,l,u,s){let f=r(o,n,i,l,u,s);return f!==void 0?!!f:Us(o,n,a,s)},new Map)}function Us(e,t,r,a){if(t===e)return!0;switch(typeof t){case"object":return TC(e,t,r,a);case"function":return Object.keys(t).length>0?Us(e,{...t},r,a):Bo(e,t);default:return vi(e)?typeof t=="string"?t==="":!0:Bo(e,t)}}function TC(e,t,r,a){if(t==null)return!0;if(Array.isArray(t))return sm(e,t,r,a);if(t instanceof Map)return RC(e,t,r,a);if(t instanceof Set)return _C(e,t,r,a);let o=Object.keys(t);if(e==null||No(e))return o.length===0;if(o.length===0)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let n=0;n{})}function fm(e){return e=um(e),t=>xi(t,e)}function cm(e,t){return lm(e,(r,a,o,n)=>{let i=t?.(r,a,o,n);if(i!==void 0)return i;if(typeof e=="object"){if(ja(e)==="[object Object]"&&typeof e.constructor!="function"){let l={};return n.set(e,l),At(l,e,o,n),l}switch(Object.prototype.toString.call(e)){case mi:case pi:case hi:{let l=new e.constructor(e?.valueOf());return At(l,e),l}case gi:{let l={};return At(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}function dm(e){return cm(e)}var NC=/^(?:0|[1-9]\d*)$/;function yi(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function bi(e){return e!=null&&typeof e!="function"&&vm(e.length)}function xm(e){return typeof e=="object"&&e!==null}function ym(e){return xm(e)&&bi(e)}function Ii(e,t=di){return ym(e)?Bp(Array.from(e),Fp(gm(t),1)):[]}function bm(e,t,r){return t===!0?Ii(e,r):typeof t=="function"?Ii(e,t):e}import*as Hs from"react";var{useRef:BC,useEffect:FC,useMemo:jC,useDebugValue:zC}=Hs;function Ws(e,t,r,a,o){let n=BC(null),i;n.current===null?(i={hasValue:!1,value:null},n.current=i):i=n.current;let[l,u]=jC(()=>{let f=!1,c,d,m=v=>{if(!f){f=!0,c=v;let S=a(v);if(o!==void 0&&i.hasValue){let O=i.value;if(o(O,S))return d=O,O}return d=S,S}let L=c,w=d;if(Object.is(L,v))return w;let A=a(v);return o!==void 0&&o(w,A)?(c=v,w):(c=v,d=A,A)},h=r===void 0?null:r;return[()=>m(t()),h===null?void 0:()=>m(h())]},[t,r,a,o]),s=Hs.useSyncExternalStore(e,l,u);return FC(()=>{i.hasValue=!0,i.value=s},[s]),zC(s),s}import{useContext as Im,useMemo as qC}from"react";import{createContext as UC}from"react";var Fo=UC(null);var HC=e=>e,ne=()=>{var e=Im(Fo);return e?e.store.dispatch:HC},wi=()=>{},WC=()=>wi,VC=(e,t)=>e===t;function K(e){var t=Im(Fo),r=qC(()=>t?a=>{if(a!=null)return e(a)}:wi,[t,e]);return Ws(t?t.subscription.addNestedSub:WC,t?t.store.getState:wi,t?t.store.getState:wi,r,VC)}function GC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function KC(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $C(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var wm=e=>Array.isArray(e)?e:[e];function XC(e){let t=Array.isArray(e[0])?e[0]:e;return $C(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function YC(e,t){let r=[],{length:a}=e;for(let o=0;o{r=Ci(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function eL(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...o)=>{let n=0,i=0,l,u={},s=o.pop();typeof s=="object"&&(u=s,s=o.pop()),GC(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let f={...r,...u},{memoize:c,memoizeOptions:d=[],argsMemoize:m=Lm,argsMemoizeOptions:h=[],devModeChecks:p={}}=f,g=wm(d),v=wm(h),L=XC(o),w=c(function(){return n++,s.apply(null,arguments)},...g),A=!0,S=m(function(){i++;let M=YC(L,arguments);return l=w.apply(null,M),l},...v);return Object.assign(S,{resultFunc:s,memoizedResultFunc:w,dependencies:L,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>l,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:m})};return Object.assign(a,{withTypes:()=>a}),a}var E=eL(Lm),tL=Object.assign((e,t=E)=>{KC(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),a=r.map(n=>e[n]);return t(a,(...n)=>n.reduce((i,l,u)=>(i[r[u]]=l,i),{}))},{withTypes:()=>tL});function Sm(e,t=1){let r=[],a=Math.floor(t),o=(n,i)=>{for(let l=0;l{if(e!==t){let a=Pm(e),o=Pm(t);if(a===o&&a===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-a:a-o}return 0};function Li(e){return typeof e=="symbol"||e instanceof Symbol}var rL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aL=/^\w*$/;function km(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Li(e)?!0:typeof e=="string"&&(aL.test(e)||!rL.test(e))||t!=null&&Object.hasOwn(t,e)}function Om(e,t,r,a){if(e==null)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));let o=(l,u)=>{let s=l;for(let f=0;fu==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:o(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?o(u,l):typeof u=="object"?u[l]:u,i=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||km(l)?l:{key:l,path:Na(l)}));return e.map(l=>({original:l,criteria:i.map(u=>n(u,l))})).slice().sort((l,u)=>{for(let s=0;sl.original)}function or(e,...t){let r=t.length;return r>1&&jo(e,t[0],t[1])?t=[]:r>2&&jo(t[0],t[1],t[2])&&(t=[t[0]]),Om(e,Sm(t),["asc"])}var Vs=e=>e.legend.settings,Em=e=>e.legend.size,oL=e=>e.legend.payload,oz=E([oL,Vs],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?or(a,r):a});import{useCallback as nL,useState as iL}from"react";var Si=1;function Mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=iL({height:0,left:0,top:0,width:0}),a=nL(o=>{if(o!=null){var n=o.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>Si||Math.abs(i.left-t.left)>Si||Math.abs(i.top-t.top)>Si||Math.abs(i.width-t.width)>Si)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}import{useEffect as qS}from"react";function Ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dm=lL,Gs=()=>Math.random().toString(36).substring(7).split("").join("."),uL={INIT:`@@redux/INIT${Gs()}`,REPLACE:`@@redux/REPLACE${Gs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gs()}`},Pi=uL;function Ai(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ks(e,t,r){if(typeof e!="function")throw new Error(Ve(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ve(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ve(1));return r(Ks)(e,t)}let a=e,o=t,n=new Map,i=n,l=0,u=!1;function s(){i===n&&(i=new Map,n.forEach((g,v)=>{i.set(v,g)}))}function f(){if(u)throw new Error(Ve(3));return o}function c(g){if(typeof g!="function")throw new Error(Ve(4));if(u)throw new Error(Ve(5));let v=!0;s();let L=l++;return i.set(L,g),function(){if(v){if(u)throw new Error(Ve(6));v=!1,s(),i.delete(L),n=null}}}function d(g){if(!Ai(g))throw new Error(Ve(7));if(typeof g.type>"u")throw new Error(Ve(8));if(typeof g.type!="string")throw new Error(Ve(17));if(u)throw new Error(Ve(9));try{u=!0,o=a(o,g)}finally{u=!1}return(n=i).forEach(L=>{L()}),g}function m(g){if(typeof g!="function")throw new Error(Ve(10));a=g,d({type:Pi.REPLACE})}function h(){let g=c;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ve(11));function L(){let A=v;A.next&&A.next(f())}return L(),{unsubscribe:g(L)}},[Dm](){return this}}}return d({type:Pi.INIT}),{dispatch:d,subscribe:c,getState:f,replaceReducer:m,[Dm]:h}}function sL(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Pi.INIT})>"u")throw new Error(Ve(12));if(typeof r(void 0,{type:Pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ve(13))})}function ki(e){let t=Object.keys(e),r={};for(let i=0;i"u"){let g=u&&u.type;throw new Error(Ve(14))}f[d]=p,s=s||p!==h}return s=s||a.length!==Object.keys(l).length,s?f:l}}function zo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function Tm(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(Ve(15))},i={getState:o.getState,dispatch:(u,...s)=>n(u,...s)},l=e.map(u=>u(i));return n=zo(...l)(o.dispatch),{...o,dispatch:n}}}function $s(e){return Ai(e)&&"type"in e&&typeof e.type=="string"}var Hm=Symbol.for("immer-nothing"),Rm=Symbol.for("immer-draftable"),rt=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gt=Object,Ua=gt.getPrototypeOf,Di="constructor",Fi="prototype",Zs="configurable",Ti="enumerable",Ei="writable",Uo="value",Wt=e=>!!e&&!!e[rt];function kt(e){return e?Wm(e)||zi(e)||!!e[Rm]||!!e[Di]?.[Rm]||Ui(e)||qi(e):!1}var fL=gt[Fi][Di].toString(),_m=new WeakMap;function Wm(e){if(!e||!nf(e))return!1;let t=Ua(e);if(t===null||t===gt[Fi])return!0;let r=gt.hasOwnProperty.call(t,Di)&&t[Di];if(r===Object)return!0;if(!za(r))return!1;let a=_m.get(r);return a===void 0&&(a=Function.toString.call(r),_m.set(r,a)),a===fL}function ji(e,t,r=!0){Wo(e)===0?(r?Reflect.ownKeys(e):gt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function Wo(e){let t=e[rt];return t?t.type_:zi(e)?1:Ui(e)?2:qi(e)?3:0}var Nm=(e,t,r=Wo(e))=>r===2?e.has(t):gt[Fi].hasOwnProperty.call(e,t),Js=(e,t,r=Wo(e))=>r===2?e.get(t):e[t],Ri=(e,t,r,a=Wo(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function cL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var zi=Array.isArray,Ui=e=>e instanceof Map,qi=e=>e instanceof Set,nf=e=>typeof e=="object",za=e=>typeof e=="function",Xs=e=>typeof e=="boolean";function dL(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var nr=e=>e.copy_||e.base_;var lf=e=>e.modified_?e.copy_:e.base_;function Qs(e,t){if(Ui(e))return new Map(e);if(qi(e))return new Set(e);if(zi(e))return Array[Fi].slice.call(e);let r=Wm(e);if(t===!0||t==="class_only"&&!r){let a=gt.getOwnPropertyDescriptors(e);delete a[rt];let o=Reflect.ownKeys(a);for(let n=0;n1&>.defineProperties(e,{set:Oi,add:Oi,clear:Oi,delete:Oi}),gt.freeze(e),t&&ji(e,(r,a)=>{uf(a,!0)},!1)),e}function pL(){Nt(2)}var Oi={[Uo]:pL};function Hi(e){return e===null||!nf(e)?!0:gt.isFrozen(e)}var _i="MapSet",ef="Patches",Bm="ArrayMethods",Vm={};function Wr(e){let t=Vm[e];return t||Nt(0,e),t}var Fm=e=>!!Vm[e];var qo,Gm=()=>qo,mL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Fm(_i)?Wr(_i):void 0,arrayMethodsPlugin_:Fm(Bm)?Wr(Bm):void 0});function jm(e,t){t&&(e.patchPlugin_=Wr(ef),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tf(e){rf(e),e.drafts_.forEach(hL),e.drafts_=null}function rf(e){e===qo&&(qo=e.parent_)}var zm=e=>qo=mL(qo,e);function hL(e){let t=e[rt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Um(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[rt].modified_&&(tf(t),Nt(4)),kt(e)&&(e=qm(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[rt].base_,e,t)}else e=qm(t,r);return gL(t,e,!0),tf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Hm?e:void 0}function qm(e,t){if(Hi(t))return t;let r=t[rt];if(!r)return Ni(t,e.handledSet_,e);if(!Wi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);Xm(r,e)}return r.copy_}function gL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&uf(t,r)}function Km(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Wi=(e,t)=>e.scope_===t,vL=[];function $m(e,t,r,a){let o=nr(e),n=e.type_;if(a!==void 0&&Js(o,a,n)===t){Ri(o,a,r,n);return}if(!e.draftLocations_){let l=e.draftLocations_=new Map;ji(o,(u,s)=>{if(Wt(s)){let f=l.get(s)||[];f.push(u),l.set(s,f)}})}let i=e.draftLocations_.get(t)??vL;for(let l of i)Ri(o,l,r,n)}function xL(e,t,r){e.callbacks_.push(function(o){let n=t;if(!n||!Wi(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let i=lf(n);$m(e,n.draft_??n,i,r),Xm(n,o)})}function Xm(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:a}=t;if(a){let o=a.getPath(e);o&&a.generatePatches_(e,o,t)}Km(e)}}function yL(e,t,r){let{scope_:a}=e;if(Wt(r)){let o=r[rt];Wi(o,a)&&o.callbacks_.push(function(){Mi(e);let i=lf(o);$m(e,r,i,t)})}else kt(r)&&e.callbacks_.push(function(){let n=nr(e);e.type_===3?n.has(r)&&Ni(r,a.handledSet_,a):Js(n,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ni(Js(e.copy_,t,e.type_),a.handledSet_,a)})}function Ni(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Wt(e)||t.has(e)||!kt(e)||Hi(e)||(t.add(e),ji(e,(a,o)=>{if(Wt(o)){let n=o[rt];if(Wi(n,r)){let i=lf(n);Ri(e,a,i,e.type_),Km(n)}}else kt(o)&&Ni(o,t,r)})),e}function bL(e,t){let r=zi(e),a={type_:r?1:0,scope_:t?t.scope_:Gm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=a,n=Bi;r&&(o=[a],n=Ho);let{revoke:i,proxy:l}=Proxy.revocable(o,n);return a.draft_=l,a.revoke_=i,[l,a]}var Bi={get(e,t){if(t===rt)return e;let r=e.scope_.arrayMethodsPlugin_,a=e.type_===1&&typeof t=="string";if(a&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=nr(e);if(!Nm(o,t,e.type_))return IL(e,o,t);let n=o[t];if(e.finalized_||!kt(n)||a&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&dL(t))return n;if(n===Ys(e.base_,t)){Mi(e);let i=e.type_===1?+t:t,l=of(e.scope_,n,e,i);return e.copy_[i]=l}return n},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,r){let a=Ym(nr(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){let o=Ys(nr(e),t),n=o?.[rt];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(cL(r,o)&&(r!==void 0||Nm(e.base_,t,e.type_)))return!0;Mi(e),af(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),yL(e,t,r)),!0},deleteProperty(e,t){return Mi(e),Ys(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),af(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=nr(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Ei]:!0,[Zs]:e.type_!==1||t!=="length",[Ti]:a[Ti],[Uo]:r[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Ua(e.base_)},setPrototypeOf(){Nt(12)}},Ho={};for(let e in Bi){let t=Bi[e];Ho[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Ho.deleteProperty=function(e,t){return Ho.set.call(this,e,t,void 0)};Ho.set=function(e,t,r){return Bi.set.call(this,e[0],t,r,e[0])};function Ys(e,t){let r=e[rt];return(r?nr(r):e)[t]}function IL(e,t,r){let a=Ym(t,r);return a?Uo in a?a[Uo]:a.get?.call(e.draft_):void 0}function Ym(e,t){if(!(t in e))return;let r=Ua(e);for(;r;){let a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Ua(r)}}function af(e){e.modified_||(e.modified_=!0,e.parent_&&af(e.parent_))}function Mi(e){e.copy_||(e.assigned_=new Map,e.copy_=Qs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,a)=>{if(za(t)&&!za(r)){let n=r;r=t;let i=this;return function(u=n,...s){return i.produce(u,f=>r.call(this,f,...s))}}za(r)||Nt(6),a!==void 0&&!za(a)&&Nt(7);let o;if(kt(t)){let n=zm(this),i=of(n,t,void 0),l=!0;try{o=r(i),l=!1}finally{l?tf(n):rf(n)}return jm(n,a),Um(o,n)}else if(!t||!nf(t)){if(o=r(t),o===void 0&&(o=t),o===Hm&&(o=void 0),this.autoFreeze_&&uf(o,!0),a){let n=[],i=[];Wr(ef).generateReplacementPatches_(t,o,{patches_:n,inversePatches_:i}),a(n,i)}return o}else Nt(1,t)},this.produceWithPatches=(t,r)=>{if(za(t))return(i,...l)=>this.produceWithPatches(i,u=>t(u,...l));let a,o;return[this.produce(t,r,(i,l)=>{a=i,o=l}),a,o]},Xs(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Xs(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Xs(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){kt(e)||Nt(8),Wt(e)&&(e=Ge(e));let t=zm(this),r=of(t,e,void 0);return r[rt].isManual_=!0,rf(t),r}finishDraft(e,t){let r=e&&e[rt];(!r||!r.isManual_)&&Nt(9);let{scope_:a}=r;return jm(a,t),Um(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let a=Wr(ef).applyPatches_;return Wt(e)?a(e,t):this.produce(e,o=>a(o,t))}};function of(e,t,r,a){let[o,n]=Ui(t)?Wr(_i).proxyMap_(t,r):qi(t)?Wr(_i).proxySet_(t,r):bL(t,r);return(r?.scope_??Gm()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=a,r&&a!==void 0?xL(r,n,a):n.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:s}=u;n.modified_&&s&&s.generatePatches_(n,[],u)}),o}function Ge(e){return Wt(e)||Nt(10,e),Zm(e)}function Zm(e){if(!kt(e)||Hi(e))return e;let t=e[rt],r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qs(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Qs(e,!0);return ji(r,(o,n)=>{Ri(r,o,Zm(n))},a),t&&(t.finalized_=!1),r}var CL=new wL,sf=CL.produce;function Jm(e){return({dispatch:r,getState:a})=>o=>n=>typeof n=="function"?n(r,a,e):o(n)}var Qm=Jm(),eh=Jm;var LL=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zo:zo.apply(null,arguments)},hz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},SL=e=>e&&typeof e.match=="function";function De(e,t){function r(...a){if(t){let o=t(...a);if(!o)throw new Error(vt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>$s(a)&&a.type===e,r}var uh=class Vo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Vo.prototype)}static get[Symbol.species](){return Vo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Vo(...t[0].concat(this)):new Vo(...t.concat(this))}};function th(e){return kt(e)?sf(e,()=>{}):e}function Vi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function PL(e){return typeof e=="boolean"}var AL=()=>function(t){let{thunk:r=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=t??{},i=new uh;return r&&(PL(r)?i.push(Qm):i.push(eh(r.extraArgument))),i},sh="RTK_autoBatch",fe=()=>e=>({payload:e,meta:{[sh]:!0}}),rh=e=>t=>{setTimeout(t,e)},kL=(e,t)=>r=>{let a=!1,o=()=>{a||(a=!0,cancelAnimationFrame(n),clearTimeout(i),r())},n=e(o),i=setTimeout(o,t)},pf=(e={type:"raf"})=>t=>(...r)=>{let a=t(...r),o=!0,n=!1,i=!1,l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?kL(window.requestAnimationFrame,100):rh(10):e.type==="callback"?e.queueNotification:rh(e.timeout),s=()=>{i=!1,n&&(n=!1,l.forEach(f=>f()))};return Object.assign({},a,{subscribe(f){let c=()=>o&&f(),d=a.subscribe(c);return l.add(f),()=>{d(),l.delete(f)}},dispatch(f){try{return o=!f?.meta?.[sh],n=!o,n&&(i||(i=!0,u(s))),a.dispatch(f)}finally{o=!0}}})},OL=e=>function(r){let{autoBatch:a=!0}=r??{},o=new uh(e);return a&&o.push(pf(typeof a=="object"?a:void 0)),o};function fh(e){let t=AL(),{reducer:r=void 0,middleware:a,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{},u;if(typeof r=="function")u=r;else if(Ai(r))u=ki(r);else throw new Error(vt(1));let s;typeof a=="function"?s=a(t):s=t();let f=zo;o&&(f=LL({trace:!1,...typeof o=="object"&&o}));let c=Tm(...s),d=OL(c),m=typeof l=="function"?l(d):d(),h=f(...m);return Ks(u,i,h)}function ch(e){let t={},r=[],a,o={addCase(n,i){let l=typeof n=="string"?n:n.type;if(!l)throw new Error(vt(28));if(l in t)throw new Error(vt(29));return t[l]=i,o},addAsyncThunk(n,i){return i.pending&&(t[n.pending.type]=i.pending),i.rejected&&(t[n.rejected.type]=i.rejected),i.fulfilled&&(t[n.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:n.settled,reducer:i.settled}),o},addMatcher(n,i){return r.push({matcher:n,reducer:i}),o},addDefaultCase(n){return a=n,o}};return e(o),[t,r,a]}function EL(e){return typeof e=="function"}function ML(e,t){let[r,a,o]=ch(t),n;if(EL(e))n=()=>th(e());else{let l=th(e);n=()=>l}function i(l=n(),u){let s=[r[u.type],...a.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return s.filter(f=>!!f).length===0&&(s=[o]),s.reduce((f,c)=>{if(c)if(Wt(f)){let m=c(f,u);return m===void 0?f:m}else{if(kt(f))return sf(f,d=>c(d,u));{let d=c(f,u);if(d===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return f},l)}return i.getInitialState=n,i}var DL=(e,t)=>SL(e)?e.match(t):e(t);function TL(...e){return t=>e.some(r=>DL(r,t))}var RL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dh=(e=21)=>{let t="",r=e;for(;r--;)t+=RL[Math.random()*64|0];return t},_L=["name","message","stack","code"],ff=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ah=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},NL=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of _L)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},oh="External signal was aborted",BL=(()=>{function e(t,r,a){let o=De(t+"/fulfilled",(u,s,f,c)=>({payload:u,meta:{...c||{},arg:f,requestId:s,requestStatus:"fulfilled"}})),n=De(t+"/pending",(u,s,f)=>({payload:void 0,meta:{...f||{},arg:s,requestId:u,requestStatus:"pending"}})),i=De(t+"/rejected",(u,s,f,c,d)=>({payload:c,error:(a&&a.serializeError||NL)(u||"Rejected"),meta:{...d||{},arg:f,requestId:s,rejectedWithValue:!!c,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function l(u,{signal:s}={}){return(f,c,d)=>{let m=a?.idGenerator?a.idGenerator(u):dh(),h=new AbortController,p,g;function v(w){g=w,h.abort()}s&&(s.aborted?v(oh):s.addEventListener("abort",()=>v(oh),{once:!0}));let L=async function(){let w;try{let S=a?.condition?.(u,{getState:c,extra:d});if(jL(S)&&(S=await S),S===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let O=new Promise((M,k)=>{p=()=>{k({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",p,{once:!0})});f(n(m,u,a?.getPendingMeta?.({requestId:m,arg:u},{getState:c,extra:d}))),w=await Promise.race([O,Promise.resolve(r(u,{dispatch:f,getState:c,extra:d,requestId:m,signal:h.signal,abort:v,rejectWithValue:(M,k)=>new ff(M,k),fulfillWithValue:(M,k)=>new ah(M,k)})).then(M=>{if(M instanceof ff)throw M;return M instanceof ah?o(M.payload,m,u,M.meta):o(M,m,u)})])}catch(S){w=S instanceof ff?i(null,m,u,S.payload,S.meta):i(S,m,u)}finally{p&&h.signal.removeEventListener("abort",p)}return a&&!a.dispatchConditionRejection&&i.match(w)&&w.meta.condition||f(w),w}();return Object.assign(L,{abort:v,requestId:m,arg:u,unwrap(){return L.then(FL)}})}}return Object.assign(l,{pending:n,rejected:i,fulfilled:o,settled:TL(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function FL(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jL(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ph=Symbol.for("rtk-slice-createasyncthunk"),vz={[ph]:BL};function zL(e,t){return`${e}/${t}`}function UL({creators:e}={}){let t=e?.asyncThunk?.[ph];return function(a){let{name:o,reducerPath:n=o}=a;if(!o)throw new Error(vt(11));typeof process<"u";let i=(typeof a.reducers=="function"?a.reducers(HL()):a.reducers)||{},l=Object.keys(i),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(w,A){let S=typeof w=="string"?w:w.type;if(!S)throw new Error(vt(12));if(S in u.sliceCaseReducersByType)throw new Error(vt(13));return u.sliceCaseReducersByType[S]=A,s},addMatcher(w,A){return u.sliceMatchers.push({matcher:w,reducer:A}),s},exposeAction(w,A){return u.actionCreators[w]=A,s},exposeCaseReducer(w,A){return u.sliceCaseReducersByName[w]=A,s}};l.forEach(w=>{let A=i[w],S={reducerName:w,type:zL(o,w),createNotation:typeof a.reducers=="function"};VL(A)?KL(S,A,s,t):WL(S,A,s)});function f(){let[w={},A=[],S=void 0]=typeof a.extraReducers=="function"?ch(a.extraReducers):[a.extraReducers],O={...w,...u.sliceCaseReducersByType};return ML(a.initialState,M=>{for(let k in O)M.addCase(k,O[k]);for(let k of u.sliceMatchers)M.addMatcher(k.matcher,k.reducer);for(let k of A)M.addMatcher(k.matcher,k.reducer);S&&M.addDefaultCase(S)})}let c=w=>w,d=new Map,m=new WeakMap,h;function p(w,A){return h||(h=f()),h(w,A)}function g(){return h||(h=f()),h.getInitialState()}function v(w,A=!1){function S(M){let k=M[w];return typeof k>"u"&&A&&(k=Vi(m,S,g)),k}function O(M=c){let k=Vi(d,A,()=>new WeakMap);return Vi(k,M,()=>{let j={};for(let[F,W]of Object.entries(a.selectors??{}))j[F]=qL(W,M,()=>Vi(m,M,g),A);return j})}return{reducerPath:w,getSelectors:O,get selectors(){return O(S)},selectSlice:S}}let L={name:o,reducer:p,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:g,...v(n),injectInto(w,{reducerPath:A,...S}={}){let O=A??n;return w.inject({reducerPath:O,reducer:p},S),{...L,...v(O,!0)}}};return L}}function qL(e,t,r,a){function o(n,...i){let l=t(n);return typeof l>"u"&&a&&(l=r()),e(l,...i)}return o.unwrapped=e,o}var le=UL();function HL(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function WL({type:e,reducerName:t,createNotation:r},a,o){let n,i;if("reducer"in a){if(r&&!GL(a))throw new Error(vt(17));n=a.reducer,i=a.prepare}else n=a;o.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?De(e,i):De(e))}function VL(e){return e._reducerDefinitionType==="asyncThunk"}function GL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function KL({type:e,reducerName:t},r,a,o){if(!o)throw new Error(vt(18));let{payloadCreator:n,fulfilled:i,pending:l,rejected:u,settled:s,options:f}=r,c=o(e,n,f);a.exposeAction(t,c),i&&a.addCase(c.fulfilled,i),l&&a.addCase(c.pending,l),u&&a.addCase(c.rejected,u),s&&a.addMatcher(c.settled,s),a.exposeCaseReducer(t,{fulfilled:i||Gi,pending:l||Gi,rejected:u||Gi,settled:s||Gi})}function Gi(){}var $L="task",mh="listener",hh="completed",mf="cancelled",XL=`task-${mf}`,YL=`task-${hh}`,cf=`${mh}-${mf}`,ZL=`${mh}-${hh}`,Xi=class{constructor(e){this.code=e,this.message=`${$L} ${mf} (reason: ${e})`}code;name="TaskAbortError";message},hf=(e,t)=>{if(typeof e!="function")throw new TypeError(vt(32))},Ki=()=>{},gh=(e,t=Ki)=>(e.catch(t),e),vh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Vr=e=>{if(e.aborted)throw new Xi(e.reason)};function xh(e,t){let r=Ki;return new Promise((a,o)=>{let n=()=>o(new Xi(e.reason));if(e.aborted){n();return}r=vh(e,n),t.finally(()=>r()).then(a,o)}).finally(()=>{r=Ki})}var JL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Xi?"cancelled":"rejected",error:r}}finally{t?.()}},$i=e=>t=>gh(xh(e,t).then(r=>(Vr(e),r))),yh=e=>{let t=$i(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:qa}=Object,nh={},Yi="listenerMiddleware",QL=(e,t)=>{let r=a=>vh(e,()=>a.abort(e.reason));return(a,o)=>{hf(a,"taskExecutor");let n=new AbortController;r(n);let i=JL(async()=>{Vr(e),Vr(n.signal);let l=await a({pause:$i(n.signal),delay:yh(n.signal),signal:n.signal});return Vr(n.signal),l},()=>n.abort(YL));return o?.autoJoin&&t.push(i.catch(Ki)),{result:$i(e)(i),cancel(){n.abort(XL)}}}},eS=(e,t)=>{let r=async(a,o)=>{Vr(t);let n=()=>{},l=[new Promise((u,s)=>{let f=e({predicate:a,effect:(c,d)=>{d.unsubscribe(),u([c,d.getState(),d.getOriginalState()])}});n=()=>{f(),s()}})];o!=null&&l.push(new Promise(u=>setTimeout(u,o,null)));try{let u=await xh(t,Promise.race(l));return Vr(t),u}finally{n()}};return(a,o)=>gh(r(a,o))},bh=e=>{let{type:t,actionCreator:r,matcher:a,predicate:o,effect:n}=e;if(t)o=De(t).match;else if(r)t=r.type,o=r.match;else if(a)o=a;else if(!o)throw new Error(vt(21));return hf(n,"options.listener"),{predicate:o,type:t,effect:n}},Ih=qa(e=>{let{type:t,predicate:r,effect:a}=bh(e);return{id:dh(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(vt(22))}}},{withTypes:()=>Ih}),ih=(e,t)=>{let{type:r,effect:a,predicate:o}=bh(t);return Array.from(e.values()).find(n=>(typeof r=="string"?n.type===r:n.predicate===o)&&n.effect===a)},df=e=>{e.pending.forEach(t=>{t.abort(cf)})},tS=(e,t)=>()=>{for(let r of t.keys())df(r);e.clear()},lh=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},wh=qa(De(`${Yi}/add`),{withTypes:()=>wh}),rS=De(`${Yi}/removeAll`),Ch=qa(De(`${Yi}/remove`),{withTypes:()=>Ch}),aS=(...e)=>{console.error(`${Yi}/error`,...e)},ir=(e={})=>{let t=new Map,r=new Map,a=m=>{let h=r.get(m)??0;r.set(m,h+1)},o=m=>{let h=r.get(m)??1;h===1?r.delete(m):r.set(m,h-1)},{extra:n,onError:i=aS}=e;hf(i,"onError");let l=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),h=>{m.unsubscribe(),h?.cancelActive&&df(m)}),u=m=>{let h=ih(t,m)??Ih(m);return l(h)};qa(u,{withTypes:()=>u});let s=m=>{let h=ih(t,m);return h&&(h.unsubscribe(),m.cancelActive&&df(h)),!!h};qa(s,{withTypes:()=>s});let f=async(m,h,p,g)=>{let v=new AbortController,L=eS(u,v.signal),w=[];try{m.pending.add(v),a(m),await Promise.resolve(m.effect(h,qa({},p,{getOriginalState:g,condition:(A,S)=>L(A,S).then(Boolean),take:L,delay:yh(v.signal),pause:$i(v.signal),extra:n,signal:v.signal,fork:QL(v.signal,w),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((A,S,O)=>{A!==v&&(A.abort(cf),O.delete(A))})},cancel:()=>{v.abort(cf),m.pending.delete(v)},throwIfCancelled:()=>{Vr(v.signal)}})))}catch(A){A instanceof Xi||lh(i,A,{raisedBy:"effect"})}finally{await Promise.all(w),v.abort(ZL),o(m),m.pending.delete(v)}},c=tS(t,r);return{middleware:m=>h=>p=>{if(!$s(p))return h(p);if(wh.match(p))return u(p.payload);if(rS.match(p)){c();return}if(Ch.match(p))return s(p.payload);let g=m.getState(),v=()=>{if(g===nh)throw new Error(vt(23));return g},L;try{if(L=h(p),t.size>0){let w=m.getState(),A=Array.from(t.values());for(let S of A){let O=!1;try{O=S.predicate(p,w,g)}catch(M){O=!1,lh(i,M,{raisedBy:"predicate"})}O&&f(S,p,m,v)}}}finally{g=nh}return L},startListening:u,stopListening:s,clearListeners:c}};function vt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oS={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Lh=le({name:"chartLayout",initialState:oS,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,a,o,n;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(a=t.payload.right)!==null&&a!==void 0?a:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(n=t.payload.left)!==null&&n!==void 0?n:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:gf,setLayout:Sh,setChartSize:Ph,setScale:Ah}=Lh.actions,kh=Lh.reducer;function Zi(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Q(e){return Number.isFinite(e)}function ut(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ha(e){for(var t=1;t{if(t&&r){var{width:a,height:o}=r,{align:n,verticalAlign:i,layout:l}=t;if((l==="vertical"||l==="horizontal"&&i==="middle")&&n!=="center"&&H(e[n]))return Ha(Ha({},e),{},{[n]:e[n]+(a||0)});if((l==="horizontal"||l==="vertical"&&n==="center")&&i!=="middle"&&H(e[i]))return Ha(Ha({},e),{},{[i]:e[i]+(o||0)})}return e},st=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",vf=(e,t,r,a)=>{if(a)return e.map(l=>l.coordinate);var o,n,i=e.map(l=>(l.coordinate===t&&(o=!0),l.coordinate===r&&(n=!0),l.coordinate));return o||i.push(t),n||i.push(r),i},xf=(e,t,r)=>{if(!e)return null;var{duplicateDomain:a,type:o,range:n,scale:i,realScaleType:l,isCategorical:u,categoricalDomain:s,tickCount:f,ticks:c,niceTicks:d,axisType:m}=e;if(!i)return null;var h=l==="scaleBand"&&i.bandwidth?i.bandwidth()/2:2,p=(t||r)&&o==="category"&&i.bandwidth?i.bandwidth()/h:0;if(p=m==="angleAxis"&&n&&n.length>=2?Re(n[0]-n[1])*2*p:p,t&&(c||d)){var g=(c||d||[]).map((v,L)=>{var w=a?a.indexOf(v):v,A=i.map(w);return Q(A)?{coordinate:A+p,value:v,offset:p,index:L}:null}).filter(We);return g}return u&&s?s.map((v,L)=>{var w=i.map(v);return Q(w)?{coordinate:w+p,value:v,index:L,offset:p}:null}).filter(We):i.ticks&&!r&&f!=null?i.ticks(f).map((v,L)=>{var w=i.map(v);return Q(w)?{coordinate:w+p,value:v,index:L,offset:p}:null}).filter(We):i.domain().map((v,L)=>{var w=i.map(v);return Q(w)?{coordinate:w+p,value:a?a[v]:v,index:L,offset:p}:null}).filter(We)};var uS=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(s[0]=n,n+=d,s[1]=n):(s[0]=i,i+=d,s[1]=i)}}}},sS=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(u[0]=n,n+=s,u[1]=n):(u[0]=0,u[1]=0)}}}},fS={sign:uS,expand:_s,none:pt,silhouette:Ns,wiggle:Bs,positive:sS},Mh=(e,t,r)=>{var a,o=(a=fS[r])!==null&&a!==void 0?a:pt,n=Rs().keys(t).value((l,u)=>Number(Ie(l,u,0))).order(Ra).offset(o),i=n(e);return i.forEach((l,u)=>{l.forEach((s,f)=>{var c=Ie(e[f],t[u],0);Array.isArray(c)&&c.length===2&&H(c[0])&&H(c[1])&&(s[0]=c[0],s[1]=c[1])})}),i};function Dh(e){return e==null?void 0:String(e)}function yf(e){var{axis:t,ticks:r,bandSize:a,entry:o,index:n,dataKey:i}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ge(o[t.dataKey])){var l=fi(r,"value",o[t.dataKey]);if(l)return l.coordinate+a/2}return r!=null&&r[n]?r[n].coordinate+a/2:null}var u=Ie(o,ge(i)?t.dataKey:i),s=t.scale.map(u);return H(s)?s:null}var cS=e=>{var t=e.flat(2).filter(H);return[Math.min(...t),Math.max(...t)]},dS=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Th=(e,t,r)=>{if(e!=null)return dS(Object.keys(e).reduce((a,o)=>{var n=e[o];if(!n)return a;var{stackedData:i}=n,l=i.reduce((u,s)=>{var f=Zi(s,t,r),c=cS(f);return!Q(c[0])||!Q(c[1])?u:[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]))},bf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,If=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wa=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var o=or(t,f=>f.coordinate),n=1/0,i=1,l=o.length;i{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},_h=(e,t)=>t==="centric"?e.angle:e.radius;var Xe=e=>e.layout.width,Ye=e=>e.layout.height,Nh=e=>e.layout.scale,Ji=e=>e.layout.margin;var Va=E(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ga=E(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Bh="data-recharts-item-index",Fh="data-recharts-item-id",Gr=60;function jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Qi(e){for(var t=1;te.brush.height;function vS(e){var t=Ga(e);return t.reduce((r,a)=>{if(a.orientation==="left"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Gr;return r+o}return r},0)}function xS(e){var t=Ga(e);return t.reduce((r,a)=>{if(a.orientation==="right"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Gr;return r+o}return r},0)}function yS(e){var t=Va(e);return t.reduce((r,a)=>a.orientation==="top"&&!a.mirror&&!a.hide?r+a.height:r,0)}function bS(e){var t=Va(e);return t.reduce((r,a)=>a.orientation==="bottom"&&!a.mirror&&!a.hide?r+a.height:r,0)}var me=E([Xe,Ye,Ji,gS,vS,xS,yS,bS,Vs,Em],(e,t,r,a,o,n,i,l,u,s)=>{var f={left:(r.left||0)+o,right:(r.right||0)+n},c={top:(r.top||0)+i,bottom:(r.bottom||0)+l},d=Qi(Qi({},c),f),m=d.bottom;d.bottom+=a,d=Eh(d,u,s);var h=e-d.left-d.right,p=t-d.top-d.bottom;return Qi(Qi({brushBottom:m},d),{},{width:Math.max(h,0),height:Math.max(p,0)})}),zh=E(me,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Uh=E(Xe,Ye,(e,t)=>({x:0,y:0,width:e,height:t}));import*as IS from"react";import{createContext as wS,useContext as CS}from"react";var LS=wS(null),ve=()=>CS(LS)!=null;var Ka=e=>e.brush,Kr=E([Ka,me,Ji],(e,t,r)=>({height:e.height,x:H(e.x)?e.x:t.left,y:H(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:H(e.width)?e.width:t.width}));import*as $r from"react";import{createContext as TS,forwardRef as Xh,useCallback as RS,useContext as _S,useEffect as NS,useImperativeHandle as BS,useMemo as FS,useRef as $h,useState as jS}from"react";function qh(e,t,{signal:r,edges:a}={}){let o,n=null,i=a!=null&&a.includes("leading"),l=a==null||a.includes("trailing"),u=()=>{n!==null&&(e.apply(o,n),o=void 0,n=null)},s=()=>{l&&u(),m()},f=null,c=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},d=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{d(),o=void 0,n=null},h=()=>{u()},p=function(...g){if(r?.aborted)return;o=this,n=g;let v=f==null;c(),i&&v&&u()};return p.schedule=c,p.cancel=m,p.flush=h,r?.addEventListener("abort",m,{once:!0}),p}function Hh(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:a=!1,trailing:o=!0,maxWait:n}=r,i=Array(2);a&&(i[0]="leading"),o&&(i[1]="trailing");let l,u=null,s=qh(function(...d){l=e.apply(this,d),u=null},t,{edges:i}),f=function(...d){return n!=null&&(u===null&&(u=Date.now()),Date.now()-u>=n)?(l=e.apply(this,d),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,d),l)},c=()=>(s.flush(),l);return f.cancel=s.cancel,f.flush=c,f}function Lf(e,t=0,r={}){let{leading:a=!0,trailing:o=!0}=r;return Hh(e,t,{leading:a,maxWait:t,trailing:o})}var SS=!0,$a=function(t,r){for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;no[i++]))}};var Bt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Sf=(e,t,r)=>{var{width:a=Bt.width,height:o=Bt.height,aspect:n,maxHeight:i}=r,l=rr(a)?e:Number(a),u=rr(o)?t:Number(o);return n&&n>0&&(l?u=l/n:u&&(l=u*n),i&&u!=null&&u>i&&(u=i)),{calculatedWidth:l,calculatedHeight:u}},PS={width:0,height:0,overflow:"visible"},AS={width:0,overflowX:"visible"},kS={height:0,overflowY:"visible"},OS={},Wh=e=>{var{width:t,height:r}=e,a=rr(t),o=rr(r);return a&&o?PS:a?AS:o?kS:OS};function Vh(e){var{width:t,height:r,aspect:a}=e,o=t,n=r;return o===void 0&&n===void 0?(o=Bt.width,n=Bt.height):o===void 0?o=a&&a>0?void 0:Bt.width:n===void 0&&(n=a&&a>0?void 0:Bt.height),{width:o,height:n}}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:a}),[r,a]);return zS(o)?$r.createElement(Yh.Provider,{value:o},t):null}var Go=()=>_S(Yh),US=Xh((e,t)=>{var{aspect:r,initialDimension:a=Bt.initialDimension,width:o,height:n,minWidth:i=Bt.minWidth,minHeight:l,maxHeight:u,children:s,debounce:f=Bt.debounce,id:c,className:d,onResize:m,style:h={}}=e,p=$h(null),g=$h();g.current=m,BS(t,()=>p.current);var[v,L]=jS({containerWidth:a.width,containerHeight:a.height}),w=RS((k,j)=>{L(F=>{var W=Math.round(k),B=Math.round(j);return F.containerWidth===W&&F.containerHeight===B?F:{containerWidth:W,containerHeight:B}})},[]);NS(()=>{if(p.current==null||typeof ResizeObserver>"u")return ht;var k=B=>{var Y,Z=B[0];if(Z!=null){var{width:te,height:x}=Z.contentRect;w(te,x),(Y=g.current)===null||Y===void 0||Y.call(g,te,x)}};f>0&&(k=Lf(k,f,{trailing:!0,leading:!1}));var j=new ResizeObserver(k),{width:F,height:W}=p.current.getBoundingClientRect();return w(F,W),j.observe(p.current),()=>{j.disconnect()}},[w,f]);var{containerWidth:A,containerHeight:S}=v;$a(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:M}=Sf(A,S,{width:o,height:n,aspect:r,maxHeight:u});return $a(O!=null&&O>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,O,M,o,n,i,l,r),$r.createElement("div",{id:c?"".concat(c):void 0,className:ee("recharts-responsive-container",d),style:Kh(Kh({},h),{},{width:o,height:n,minWidth:i,minHeight:l,maxHeight:u}),ref:p},$r.createElement("div",{style:Wh({width:o,height:n})},$r.createElement(Zh,{width:O,height:M},s)))}),Af=Xh((e,t)=>{var r=Go();if(ut(r.width)&&ut(r.height))return e.children;var{width:a,height:o}=Vh({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:n,calculatedHeight:i}=Sf(void 0,void 0,{width:a,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return H(n)&&H(i)?$r.createElement(Zh,{width:n,height:i},e.children):$r.createElement(US,Pf({},e,{width:a,height:o,ref:t}))});function Ko(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Xr=()=>{var e,t=ve(),r=K(zh),a=K(Kr),o=(e=K(Ka))===null||e===void 0?void 0:e.padding;return!t||!a||!o?r:{width:a.width-o.left-o.right,height:a.height-o.top-o.bottom,x:o.left,y:o.top}},HS={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},el=()=>{var e;return(e=K(me))!==null&&e!==void 0?e:HS},tl=()=>K(Xe),rl=()=>K(Ye);var se=e=>e.layout.layoutType,Vt=()=>K(se),al=()=>{var e=Vt();if(e==="horizontal"||e==="vertical")return e},kf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Jh=()=>{var e=Vt();return e!==void 0},Yr=e=>{var t=ne(),r=ve(),{width:a,height:o}=e,n=Go(),i=a,l=o;return n&&(i=n.width>0?n.width:a,l=n.height>0?n.height:o),qS(()=>{!r&&ut(i)&&ut(l)&&t(Ph({width:i,height:l}))},[t,r,i,l]),null};var WS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Qh=le({name:"legend",initialState:WS,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:fe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ge(e).payload.indexOf(r);o>-1&&(e.payload[o]=a)},prepare:fe()},removeLegendPayload:{reducer(e,t){var r=Ge(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:fe()}}}),{setLegendSize:AU,setLegendSettings:kU,addLegendPayload:eg,replaceLegendPayload:tg,removeLegendPayload:rg}=Qh.actions,ag=Qh.reducer;import*as Ce from"react";var VS=Symbol.for("react.forward_ref");var GS=Symbol.for("react.memo");var KS=VS,$S=GS;function XS(e){e()}function YS(){let e=null,t=null;return{clear(){e=null,t=null},notify(){XS(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var og={notify(){},get:()=>[]};function ZS(e,t){let r,a=og,o=0,n=!1;function i(p){f();let g=a.subscribe(p),v=!1;return()=>{v||(v=!0,g(),c())}}function l(){a.notify()}function u(){h.onStateChange&&h.onStateChange()}function s(){return n}function f(){o++,r||(r=t?t.addNestedSub(u):e.subscribe(u),a=YS())}function c(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=og)}function d(){n||(n=!0,f())}function m(){n&&(n=!1,c())}let h={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:s,trySubscribe:d,tryUnsubscribe:m,getListeners:()=>a};return h}var JS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QS=JS(),eP=()=>typeof navigator<"u"&&navigator.product==="ReactNative",tP=eP(),rP=()=>QS||tP?Ce.useLayoutEffect:Ce.useEffect,aP=rP();function ng(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function ig(e,t){if(ng(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o{let u=ZS(o);return{store:o,subscription:u,getServerState:a?()=>a:void 0}},[o,a]),i=Ce.useMemo(()=>o.getState(),[o]);return aP(()=>{let{subscription:u}=n;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[n,i]),Ce.createElement((r||sP).Provider,{value:n},t)}var lg=fP;var cP=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function dP(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Cr(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of r)if(cP.has(a)){if(e[a]==null&&t[a]==null)continue;if(!ig(e[a],t[a]))return!1}else if(!dP(e[a],t[a]))return!1;return!0}import*as Tt from"react";import{useEffect as PD}from"react";import{createPortal as AD}from"react-dom";import*as Ft from"react";function Of(){return Of=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=Xa.separator,contentStyle:r,itemStyle:a,labelStyle:o=Xa.labelStyle,payload:n,formatter:i,itemSorter:l,wrapperClassName:u,labelClassName:s,label:f,labelFormatter:c,accessibilityLayer:d=Xa.accessibilityLayer}=e,m=()=>{if(n&&n.length){var S={padding:0,margin:0},O=vP(n,l),M=O.map((k,j)=>{if(k.type==="none")return null;var F=k.formatter||i||gP,{value:W,name:B}=k,Y=W,Z=B;if(F){var te=F(W,B,k,j,n);if(Array.isArray(te))[Y,Z]=te;else if(te!=null)Y=te;else return null}var x=$o($o({},Xa.itemStyle),{},{color:k.color||Xa.itemStyle.color},a);return Ft.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:x},tt(Z)?Ft.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,tt(Z)?Ft.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Ft.createElement("span",{className:"recharts-tooltip-item-value"},Y),Ft.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return Ft.createElement("ul",{className:"recharts-tooltip-item-list",style:S},M)}return null},h=$o($o({},Xa.contentStyle),r),p=$o({margin:0},o),g=!ge(f),v=g?f:"",L=ee("recharts-default-tooltip",u),w=ee("recharts-tooltip-label",s);g&&c&&n!==void 0&&n!==null&&(v=c(f,n));var A=d?{role:"status","aria-live":"assertive"}:{};return Ft.createElement("div",Of({className:L,style:h},A),Ft.createElement("p",{className:w,style:p},Ft.isValidElement(v)?v:"".concat(v)),m())};import*as Lr from"react";var Xo="recharts-tooltip-wrapper",xP={visibility:"hidden"};function yP(e){var{coordinate:t,translateX:r,translateY:a}=e;return ee(Xo,{["".concat(Xo,"-right")]:H(r)&&t&&H(t.x)&&r>=t.x,["".concat(Xo,"-left")]:H(r)&&t&&H(t.x)&&r=t.y,["".concat(Xo,"-top")]:H(a)&&t&&H(t.y)&&a0?o:0),c=r[a]+o;if(t[a])return i[a]?f:c;var d=u[a];if(d==null)return 0;if(i[a]){var m=f,h=d;return mg?Math.max(f,d):Math.max(c,d)}function bP(e){var{translateX:t,translateY:r,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function cg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:a,offsetLeft:o,position:n,reverseDirection:i,tooltipBox:l,useTranslate3d:u,viewBox:s}=e,f,c,d;return l.height>0&&l.width>0&&r?(c=fg({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:n,reverseDirection:i,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),d=fg({allowEscapeViewBox:t,coordinate:r,key:"y",offset:a,position:n,reverseDirection:i,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),f=bP({translateX:c,translateY:d,useTranslate3d:u})):f=xP,{cssProperties:f,cssClasses:yP({translateX:c,translateY:d,coordinate:r})}}import{useEffect as wP,useState as CP}from"react";var IP=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ot={devToolsEnabled:!0,isSsr:IP()};function ol(){var[e,t]=CP(()=>Ot.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return wP(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}}},[]),e}function dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ya(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));Lr.useEffect(()=>{var h=p=>{if(p.key==="Escape"){var g,v,L,w;s({dismissed:!0,dismissedAtCoordinate:{x:(g=(v=e.coordinate)===null||v===void 0?void 0:v.x)!==null&&g!==void 0?g:0,y:(L=(w=e.coordinate)===null||w===void 0?void 0:w.y)!==null&&L!==void 0?L:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),u.dismissed&&(((a=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&a!==void 0?a:0)!==u.dismissedAtCoordinate.x||((n=(i=e.coordinate)===null||i===void 0?void 0:i.y)!==null&&n!==void 0?n:0)!==u.dismissedAtCoordinate.y)&&s(Ya(Ya({},u),{},{dismissed:!1}));var{cssClasses:f,cssProperties:c}=cg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:Ya(Ya({transition:AP({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},c),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),m=Ya(Ya({},d),{},{visibility:!u.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return Lr.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:m,ref:e.innerRef},e.children)}var pg=Lr.memo(kP);var nl=()=>{var e;return(e=K(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as Ru from"react";import{cloneElement as aD,createElement as oD,isValidElement as nD}from"react";import*as yg from"react";function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;tQ(e.x)&&Q(e.y),vg=e=>e.base!=null&&il(e.base)&&il(e),Yo=e=>e.x,Zo=e=>e.y,DP=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ba(e));if((r==="curveMonotone"||r==="curveBump")&&t){var a=gg["".concat(r).concat(t==="vertical"?"Y":"X")];if(a)return a}return gg[r]||Ir},xg={connectNulls:!1,type:"linear"},TP=e=>{var{type:t=xg.type,points:r=[],baseLine:a,layout:o,connectNulls:n=xg.connectNulls}=e,i=DP(t,o),l=n?r.filter(il):r;if(Array.isArray(a)){var u,s=r.map((h,p)=>hg(hg({},h),{},{base:a[p]}));o==="vertical"?u=Ma().y(Zo).x1(Yo).x0(h=>h.base.x):u=Ma().x(Yo).y1(Zo).y0(h=>h.base.y);var f=u.defined(vg).curve(i),c=n?s.filter(vg):s;return f(c)}var d;o==="vertical"&&H(a)?d=Ma().y(Zo).x1(Yo).x0(a):H(a)?d=Ma().x(Yo).y1(Zo).y0(a):d=_o().x(Yo).y(Zo);var m=d.defined(il).curve(i);return m(l)},Za=e=>{var{className:t,points:r,path:a,pathRef:o}=e,n=Vt();if((!r||!r.length)&&!a)return null;var i={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||n,connectNulls:e.connectNulls},l=r&&r.length?TP(i):a;return yg.createElement("path",Ef({},He(e),Fa(e),{className:ee("recharts-curve",t),d:l===null?void 0:l,ref:o}))};import*as Ig from"react";var RP=["x","y","top","left","width","height","className"];function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(a,"M").concat(n,",").concat(t,"h").concat(r),wg=e=>{var{x:t=0,y:r=0,top:a=0,left:o=0,width:n=0,height:i=0,className:l}=e,u=jP(e,RP),s=_P({x:t,y:r,top:a,left:o,width:n,height:i},u);return!H(t)||!H(r)||!H(n)||!H(i)||!H(a)||!H(o)?null:Ig.createElement("path",Mf({},Ae(s),{className:ee("recharts-cross",l),d:UP(t,r,n,i,a,o)}))};function Cg(e,t,r,a){var o=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}import*as dl from"react";import{useEffect as hA,useMemo as gA,useRef as Jo,useState as vA}from"react";import{useEffect as jg,useRef as iA,useState as lA}from"react";function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Sg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Pg=(e,t,r)=>e.map(a=>"".concat(VP(a)," ").concat(t,"ms ").concat(r)).join(","),Ag=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(o=>a.includes(o))),Ja=(e,t)=>Object.keys(t).reduce((r,a)=>Sg(Sg({},r),{},{[a]:e(a,t[a])}),{});function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function _e(e){for(var t=1;te+(t-e)*r,Df=e=>{var{from:t,to:r}=e;return t!==r},Og=(e,t,r)=>{var a=Ja((o,n)=>{if(Df(n)){var[i,l]=e(n.from,n.to,n.velocity);return _e(_e({},n),{},{from:i,velocity:l})}return n},t);return r<1?Ja((o,n)=>Df(n)&&a[o]!=null?_e(_e({},n),{},{velocity:ll(n.velocity,a[o].velocity,r),from:ll(n.from,a[o].from,r)}):n,t):Og(e,a,r-1)};function XP(e,t,r,a,o,n){var i,l=a.reduce((d,m)=>_e(_e({},d),{},{[m]:{from:e[m],velocity:0,to:t[m]}}),{}),u=()=>Ja((d,m)=>m.from,l),s=()=>!Object.values(l).filter(Df).length,f=null,c=d=>{i||(i=d);var m=d-i,h=m/r.dt;l=Og(r,l,h),o(_e(_e(_e({},e),t),u())),i=d,s()||(f=n.setTimeout(c))};return()=>(f=n.setTimeout(c),()=>{var d;(d=f)===null||d===void 0||d()})}function YP(e,t,r,a,o,n,i){var l=null,u=o.reduce((c,d)=>{var m=e[d],h=t[d];return m==null||h==null?c:_e(_e({},c),{},{[d]:[m,h]})},{}),s,f=c=>{s||(s=c);var d=(c-s)/a,m=Ja((p,g)=>ll(...g,r(d)),u);if(n(_e(_e(_e({},e),t),m)),d<1)l=i.setTimeout(f);else{var h=Ja((p,g)=>ll(...g,r(1)),u);n(_e(_e(_e({},e),t),h))}};return()=>(l=i.setTimeout(f),()=>{var c;(c=l)===null||c===void 0||c()})}var Eg=(e,t,r,a,o,n)=>{var i=Ag(e,t);return r==null?()=>(o(_e(_e({},e),t)),()=>{}):r.isStepper===!0?XP(e,t,r,i,o,n):YP(e,t,r,a,i,o,n)};var ul=1e-4,Tg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Rg=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),Mg=(e,t)=>r=>{var a=Tg(e,t);return Rg(a,r)},ZP=(e,t)=>r=>{var a=Tg(e,t),o=[...a.map((n,i)=>n*i).slice(1),0];return Rg(o,r)},JP=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var a=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(a==null||a.length!==4)return null;var o=a.map(n=>parseFloat(n));return[o[0],o[1],o[2],o[3]]},QP=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var o=Mg(e,r),n=Mg(t,a),i=ZP(e,r),l=s=>s>1?1:s<0?0:s,u=s=>{for(var f=s>1?1:s,c=f,d=0;d<8;++d){var m=o(c)-f,h=i(c);if(Math.abs(m-f)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:o=17}=t,n=(i,l,u)=>{var s=-(i-l)*r,f=u*a,c=u+(s-f)*o/1e3,d=u*o/1e3+i;return Math.abs(d-l){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Dg(e);case"spring":return tA();default:if(e.split("(")[0]==="cubic-bezier")return Dg(e)}return typeof e=="function"?e:null};import{createContext as rA,useContext as aA,useMemo as oA}from"react";function Ng(e){var t,r=()=>null,a=!1,o=null,n=i=>{if(!a){if(Array.isArray(i)){if(!i.length)return;var l=i,[u,...s]=l;if(typeof u=="number"){o=e.setTimeout(n.bind(null,s),u);return}n(u),o=e.setTimeout(n.bind(null,s));return}typeof i=="string"&&(t=i,r(t)),typeof i=="object"&&(t=i,r(t)),typeof i=="function"&&i()}};return{stop:()=>{a=!0},start:i=>{a=!1,o&&(o(),o=null),n(i)},subscribe:i=>(r=i,()=>{r=()=>null}),getTimeoutController:()=>e}}var sl=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),o=null,n=i=>{i-a>=r?t(i):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(n))};return o=requestAnimationFrame(n),()=>{o!=null&&cancelAnimationFrame(o)}}};function Bg(){return Ng(new sl)}var nA=rA(Bg);function Fg(e,t){var r=aA(nA);return oA(()=>t??r(e),[e,t,r])}var uA={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},zg={t:0},Tf={t:1};function fl(e){var t=we(e,uA),{isActive:r,canBegin:a,duration:o,easing:n,begin:i,onAnimationEnd:l,onAnimationStart:u,children:s}=t,f=ol(),c=r==="auto"?!Ot.isSsr&&!f:r,d=Fg(t.animationId,t.animationManager),[m,h]=lA(c?zg:Tf),p=iA(null);return jg(()=>{c||h(Tf)},[c]),jg(()=>{if(!c||!a)return ht;var g=Eg(zg,Tf,_g(n),o,h,d.getTimeoutController()),v=()=>{p.current=g()};return d.start([u,i,v,o,l]),()=>{d.stop(),p.current&&p.current(),l()}},[c,a,o,n,i,u,l,d]),s(m.t)}import{useRef as Ug}from"react";function cl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=Ug(ar(t)),a=Ug(e);return a.current!==e&&(r.current=ar(t),a.current=e),r.current}var sA=["radius"],fA=["radius"],qg,Hg,Wg,Vg,Gg,Kg,$g,Xg,Yg,Zg;function Jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Qg(e){for(var t=1;t{var n=Ht(r),i=Ht(a),l=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,f=i>=0&&n>=0||i<0&&n<0?1:0,c;if(l>0&&Array.isArray(o)){for(var d=[0,0,0,0],m=0,h=4;ml?l:g}c=Te(qg||(qg=Gt(["M",",",""])),e,t+u*d[0]),d[0]>0&&(c+=Te(Hg||(Hg=Gt(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+s*d[0],t)),c+=Te(Wg||(Wg=Gt(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(c+=Te(Vg||(Vg=Gt(["A ",",",",0,0,",`, - `,",",""])),d[1],d[1],f,e+r,t+u*d[1])),c+=Te(Gg||(Gg=Gt(["L ",",",""])),e+r,t+a-u*d[2]),d[2]>0&&(c+=Te(Kg||(Kg=Gt(["A ",",",",0,0,",`, - `,",",""])),d[2],d[2],f,e+r-s*d[2],t+a)),c+=Te($g||($g=Gt(["L ",",",""])),e+s*d[3],t+a),d[3]>0&&(c+=Te(Xg||(Xg=Gt(["A ",",",",0,0,",`, - `,",",""])),d[3],d[3],f,e,t+a-u*d[3])),c+="Z"}else if(l>0&&o===+o&&o>0){var v=Math.min(l,o);c=Te(Yg||(Yg=Gt(["M ",",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",","," Z"])),e,t+u*v,v,v,f,e+s*v,t,e+r-s*v,t,v,v,f,e+r,t+u*v,e+r,t+a-u*v,v,v,f,e+r-s*v,t+a,e+s*v,t+a,v,v,f,e,t+a-u*v)}else c=Te(Zg||(Zg=Gt(["M ",","," h "," v "," h "," Z"])),e,t,r,a,-r);return c},rv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},av=e=>{var t=we(e,rv),r=Jo(null),[a,o]=vA(-1);hA(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:n,y:i,width:l,height:u,radius:s,className:f}=t,{animationEasing:c,animationDuration:d,animationBegin:m,isAnimationActive:h,isUpdateAnimationActive:p}=t,g=Jo(l),v=Jo(u),L=Jo(n),w=Jo(i),A=gA(()=>({x:n,y:i,width:l,height:u,radius:s}),[n,i,l,u,s]),S=cl(A,"rectangle-");if(n!==+n||i!==+i||l!==+l||u!==+u||l===0||u===0)return null;var O=ee("recharts-rectangle",f);if(!p){var M=Ae(t),{radius:k}=M,j=ev(M,sA);return dl.createElement("path",pl({},j,{x:Ht(n),y:Ht(i),width:Ht(l),height:Ht(u),radius:typeof s=="number"?s:void 0,className:O,d:tv(n,i,l,u,s)}))}var F=g.current,W=v.current,B=L.current,Y=w.current,Z="0px ".concat(a===-1?1:a,"px"),te="".concat(a,"px ").concat(a,"px"),x=Pg(["strokeDasharray"],d,typeof c=="string"?c:rv.animationEasing);return dl.createElement(fl,{animationId:S,key:S,canBegin:a>0,duration:d,easing:c,isActive:p,begin:m},b=>{var P=Pt(F,l,b),I=Pt(W,u,b),y=Pt(B,n,b),C=Pt(Y,i,b);r.current&&(g.current=P,v.current=I,L.current=y,w.current=C);var D;h?b>0?D={transition:x,strokeDasharray:te}:D={strokeDasharray:Z}:D={strokeDasharray:te};var T=Ae(t),{radius:N}=T,U=ev(T,fA);return dl.createElement("path",pl({},U,{radius:typeof s=="number"?s:void 0,className:O,d:tv(y,C,P,I,s),ref:r,style:Qg(Qg({},D),t.style)}))})};function ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function nv(e){for(var t=1;te*180/Math.PI,Le=(e,t,r,a)=>({x:e+Math.cos(-Qo*a)*r,y:t+Math.sin(-Qo*a)*r}),iv=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},wA=(e,t)=>{var{x:r,y:a}=e,{x:o,y:n}=t;return Math.sqrt((r-o)**2+(a-n)**2)},CA=(e,t)=>{var{x:r,y:a}=e,{cx:o,cy:n}=t,i=wA({x:r,y:a},{x:o,y:n});if(i<=0)return{radius:i,angle:0};var l=(r-o)/i,u=Math.acos(l);return a>n&&(u=2*Math.PI-u),{radius:i,angle:IA(u),angleInRadian:u}},LA=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),o=Math.floor(r/360),n=Math.min(a,o);return{startAngle:t-n*360,endAngle:r-n*360}},SA=(e,t)=>{var{startAngle:r,endAngle:a}=t,o=Math.floor(r/360),n=Math.floor(a/360),i=Math.min(o,n);return e+i*360},lv=(e,t)=>{var{relativeX:r,relativeY:a}=e,{radius:o,angle:n}=CA({x:r,y:a},t),{innerRadius:i,outerRadius:l}=t;if(ol||o===0)return null;var{startAngle:u,endAngle:s}=LA(t),f=n,c;if(u<=s){for(;f>s;)f-=360;for(;f=u&&f<=s}else{for(;f>u;)f-=360;for(;f=s&&f<=u}return c?nv(nv({},t),{},{radius:o,angle:SA(f,t)}):null};function ml(e){var{cx:t,cy:r,radius:a,startAngle:o,endAngle:n}=e,i=Le(t,r,a,o),l=Le(t,r,a,n);return{points:[i,l],cx:t,cy:r,radius:a,startAngle:o,endAngle:n}}import*as hv from"react";var uv,sv,fv,cv,dv,pv,mv;function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Re(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},hl=e=>{var{cx:t,cy:r,radius:a,angle:o,sign:n,isExternal:i,cornerRadius:l,cornerIsExternal:u}=e,s=l*(i?1:-1)+a,f=Math.asin(l/s)/Qo,c=u?o:o+n*f,d=Le(t,r,s,c),m=Le(t,r,a,c),h=u?o-n*f:o,p=Le(t,r,s*Math.cos(f*Qo),h);return{center:d,circleTangency:m,lineTangency:p,theta:f}},gv=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i}=e,l=PA(n,i),u=n+l,s=Le(t,r,o,n),f=Le(t,r,o,u),c=Te(uv||(uv=Zr(["M ",",",` - A `,",",`,0, - `,",",`, - `,",",` - `])),s.x,s.y,o,o,+(Math.abs(l)>180),+(n>u),f.x,f.y);if(a>0){var d=Le(t,r,a,n),m=Le(t,r,a,u);c+=Te(sv||(sv=Zr(["L ",",",` - A `,",",`,0, - `,",",`, - `,","," Z"])),m.x,m.y,a,a,+(Math.abs(l)>180),+(n<=u),d.x,d.y)}else c+=Te(fv||(fv=Zr(["L ",","," Z"])),t,r);return c},AA=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,cornerRadius:n,forceCornerRadius:i,cornerIsExternal:l,startAngle:u,endAngle:s}=e,f=Re(s-u),{circleTangency:c,lineTangency:d,theta:m}=hl({cx:t,cy:r,radius:o,angle:u,sign:f,cornerRadius:n,cornerIsExternal:l}),{circleTangency:h,lineTangency:p,theta:g}=hl({cx:t,cy:r,radius:o,angle:s,sign:-f,cornerRadius:n,cornerIsExternal:l}),v=l?Math.abs(u-s):Math.abs(u-s)-m-g;if(v<0)return i?Te(cv||(cv=Zr(["M ",",",` - a`,",",",0,0,1,",`,0 - a`,",",",0,0,1,",`,0 - `])),d.x,d.y,n,n,n*2,n,n,-n*2):gv({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:u,endAngle:s});var L=Te(dv||(dv=Zr(["M ",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",",` - `])),d.x,d.y,n,n,+(f<0),c.x,c.y,o,o,+(v>180),+(f<0),h.x,h.y,n,n,+(f<0),p.x,p.y);if(a>0){var{circleTangency:w,lineTangency:A,theta:S}=hl({cx:t,cy:r,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:n,cornerIsExternal:l}),{circleTangency:O,lineTangency:M,theta:k}=hl({cx:t,cy:r,radius:a,angle:s,sign:-f,isExternal:!0,cornerRadius:n,cornerIsExternal:l}),j=l?Math.abs(u-s):Math.abs(u-s)-S-k;if(j<0&&n===0)return"".concat(L,"L").concat(t,",").concat(r,"Z");L+=Te(pv||(pv=Zr(["L",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",","Z"])),M.x,M.y,n,n,+(f<0),O.x,O.y,a,a,+(j>180),+(f>0),w.x,w.y,n,n,+(f<0),A.x,A.y)}else L+=Te(mv||(mv=Zr(["L",",","Z"])),t,r);return L},kA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vv=e=>{var t=we(e,kA),{cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:i,forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f,className:c}=t;if(n0&&Math.abs(s-f)<360?p=AA({cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:Math.min(h,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f}):p=gv({cx:r,cy:a,innerRadius:o,outerRadius:n,startAngle:s,endAngle:f}),hv.createElement("path",Rf({},Ae(t),{className:d,d:p}))};function xv(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(ci(t)){if(e==="centric"){var{cx:a,cy:o,innerRadius:n,outerRadius:i,angle:l}=t,u=Le(a,o,n,l),s=Le(a,o,i,l);return[{x:u.x,y:u.y},{x:s.x,y:s.y}]}return ml(t)}}function yv(e){return Li(e)?NaN:Number(e)}function gl(e){return e?(e=yv(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function vl(e,t,r){r&&typeof r!="number"&&jo(e,t,r)&&(t=r=void 0),e=gl(e),t===void 0?(t=e,e=0):t=gl(t),r=r===void 0?ee.chartData,bv=E([Et],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),_f=(e,t,r,a)=>a?bv(e):Et(e),Iv=(e,t,r)=>r?bv(e):Et(e);function xt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Q(t)&&Q(r))return!0}return!1}function wv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function xl(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,o,n;if(Q(r))o=r;else if(typeof r=="function")return;if(Q(a))n=a;else if(typeof a=="function")return;var i=[o,n];if(xt(i))return i}}function Cv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(xt(a))return wv(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,n]=e,i,l;if(o==="auto")t!=null&&(i=Math.min(...t));else if(H(o))i=o;else if(typeof o=="function")try{t!=null&&(i=o(t?.[0]))}catch{}else if(typeof o=="string"&&bf.test(o)){var u=bf.exec(o);if(u==null||u[1]==null||t==null)i=void 0;else{var s=+u[1];i=t[0]-s}}else i=t?.[0];if(n==="auto")t!=null&&(l=Math.max(...t));else if(H(n))l=n;else if(typeof n=="function")try{t!=null&&(l=n(t?.[1]))}catch{}else if(typeof n=="string"&&If.test(n)){var f=If.exec(n);if(f==null||f[1]==null||t==null)l=void 0;else{var c=+f[1];l=t[1]+c}}else l=t?.[1];var d=[i,l];if(xt(d))return t==null?d:wv(d,t,r)}}}var ie=ps(Nf());var Bf=ps(Nf());function Ff(e){var t;return e===0?t=1:t=Math.floor(new Bf.default(e).abs().log(10).toNumber())+1,t}function jf(e,t,r){for(var a=new Bf.default(e),o=0,n=[];a.lt(t)&&o<1e5;)n.push(a.toNumber()),a=a.add(r),o++;return n}var Sv=e=>{var[t,r]=e,[a,o]=[t,r];return t>r&&([a,o]=[r,t]),[a,o]},zf=(e,t,r)=>{if(e.lte(0))return new ie.default(0);var a=Ff(e.toNumber()),o=new ie.default(10).pow(a),n=e.div(o),i=a!==1?.05:.1,l=new ie.default(Math.ceil(n.div(i).toNumber())).add(r).mul(i),u=l.mul(o);return t?new ie.default(u.toNumber()):new ie.default(Math.ceil(u.toNumber()))},Pv=(e,t,r)=>{var a;if(e.lte(0))return new ie.default(0);var o=[1,2,2.5,5],n=e.toNumber(),i=Math.floor(new ie.default(n).abs().log(10).toNumber()),l=new ie.default(10).pow(i),u=e.div(l).toNumber(),s=o.findIndex(m=>m>=u-1e-10);if(s===-1&&(l=l.mul(10),s=0),s+=r,s>=o.length){var f=Math.floor(s/o.length);s%=o.length,l=l.mul(new ie.default(10).pow(f))}var c=(a=o[s])!==null&&a!==void 0?a:1,d=new ie.default(c).mul(l);return t?d:new ie.default(Math.ceil(d.toNumber()))},OA=(e,t,r)=>{var a=new ie.default(1),o=new ie.default(e);if(!o.isint()&&r){var n=Math.abs(e);n<1?(a=new ie.default(10).pow(Ff(e)-1),o=new ie.default(Math.floor(o.div(a).toNumber())).mul(a)):n>1&&(o=new ie.default(Math.floor(e)))}else e===0?o=new ie.default(Math.floor((t-1)/2)):r||(o=new ie.default(Math.floor(e)));for(var i=Math.floor((t-1)/2),l=[],u=0;u4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:zf;if(!Number.isFinite((r-t)/(a-1)))return{step:new ie.default(0),tickMin:new ie.default(0),tickMax:new ie.default(0)};var l=i(new ie.default(r).sub(t).div(a-1),o,n),u;t<=0&&r>=0?u=new ie.default(0):(u=new ie.default(t).add(r).div(2),u=u.sub(new ie.default(u).mod(l)));var s=Math.ceil(u.sub(t).div(l).toNumber()),f=Math.ceil(new ie.default(r).sub(u).div(l).toNumber()),c=s+f+1;return c>a?Av(t,r,a,o,n+1,i):(c0?f+(a-c):f,s=r>0?s:s+(a-c)),{step:l,tickMin:u.sub(new ie.default(s).mul(l)),tickMax:u.add(new ie.default(f).mul(l))})};var bl=function(t){var[r,a]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",l=Math.max(o,2),[u,s]=Sv([r,a]);if(u===-1/0||s===1/0){var f=s===1/0?[u,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),s];return r>a?f.reverse():f}if(u===s)return OA(u,o,n);var c=i==="snap125"?Pv:zf,{step:d,tickMin:m,tickMax:h}=Av(u,s,l,n,0,c),p=jf(m,h.add(new ie.default(.1).mul(d)),d);return r>a?p.reverse():p},Il=function(t,r){var[a,o]=t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[l,u]=Sv([a,o]);if(l===-1/0||u===1/0)return[a,o];if(l===u)return[l];var s=i==="snap125"?Pv:zf,f=Math.max(r,2),c=s(new ie.default(u).sub(l).div(f-1),n,0),d=[...jf(new ie.default(l),new ie.default(u),c),u];return n===!1&&(d=d.map(m=>Math.round(m))),a>o?d.reverse():d};var kv=e=>e.rootProps.barCategoryGap;var Qa=e=>e.rootProps.stackOffset,wl=e=>e.rootProps.reverseStackOrder,eo=e=>e.options.chartName,Cl=e=>e.rootProps.syncId,Uf=e=>e.rootProps.syncMethod,Ll=e=>e.options.eventEmitter,Ov=e=>e.rootProps.baseValue;var ce={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Sr={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:ce.axis};var jt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:ce.axis};var Jr=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function en(e,t,r){if(r!=="auto")return r;if(e!=null)return st(e,t)?"category":"number"}function Ev(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Sl(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Pl=E([TA,kf],(e,t)=>{var r;if(e!=null)return e;var a=(r=en(t,"angleAxis",Mv.type))!==null&&r!==void 0?r:"category";return Sl(Sl({},Mv),{},{type:a})}),RA=(e,t)=>e.polarAxis.radiusAxis[t],Al=E([RA,kf],(e,t)=>{var r;if(e!=null)return e;var a=(r=en(t,"radiusAxis",Dv.type))!==null&&r!==void 0?r:"category";return Sl(Sl({},Dv),{},{type:a})}),kl=e=>e.polarOptions,qf=E([Xe,Ye,me],iv),Tv=E([kl,qf],(e,t)=>{if(e!=null)return St(e.innerRadius,t,0)}),Rv=E([kl,qf],(e,t)=>{if(e!=null)return St(e.outerRadius,t,t*.8)}),_A=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Hf=E([kl],_A),WH=E([Pl,Hf],Jr),Wf=E([qf,Tv,Rv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),VH=E([Al,Wf],Jr),Ol=E([se,kl,Tv,Rv,Xe,Ye],(e,t,r,a,o,n)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:i,cy:l,startAngle:u,endAngle:s}=t;return{cx:St(i,o,o/2),cy:St(l,n,n/2),innerRadius:r,outerRadius:a,startAngle:u,endAngle:s,clockWise:!1}}});var Ne=(e,t)=>t;var tn=(e,t,r)=>r;function to(e){return e?.id}function El(e,t,r){var{chartData:a=[]}=t,{allowDuplicatedCategory:o,dataKey:n}=r,i=new Map;return e.forEach(l=>{var u,s=(u=l.data)!==null&&u!==void 0?u:a;if(!(s==null||s.length===0)){var f=to(l);s.forEach((c,d)=>{var m=n==null||o?d:String(Ie(c,n,null)),h=Ie(c,l.dataKey,0),p;i.has(m)?p=i.get(m):p={},Object.assign(p,{[f]:h}),i.set(m,p)})}}),Array.from(i.values())}function rn(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var ro=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ao(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function _v(e,t){if(e.length===t.length){for(var r=0;r{var t=se(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Pr=e=>e.tooltip.settings.axisId;function an(e){if(e!=null){var t=e.ticks,r=e.bandwidth,a=e.range(),o=[Math.min(...a),Math.max(...a)];return{domain:()=>e.domain(),range:function(n){function i(){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(n){var i=o[0],l=o[1];return i<=l?n>=i&&n<=l:n>=l&&n<=i},bandwidth:r?()=>r.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(n,i)=>{var l=e(n);if(l!=null){if(e.bandwidth&&i!==null&&i!==void 0&&i.position){var u=e.bandwidth();switch(i.position){case"middle":l+=u/2;break;case"end":l+=u;break;default:break}}return l}}}}}var Nv=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!xt(t)){for(var r,a,o=0;oa)&&(a=n))}return r!==void 0&&a!==void 0?[r,a]:void 0}return t}default:return t}};var Dr={};tC(Dr,{scaleBand:()=>un,scaleDiverging:()=>cu,scaleDivergingLog:()=>Cc,scaleDivergingPow:()=>du,scaleDivergingSqrt:()=>oy,scaleDivergingSymlog:()=>Lc,scaleIdentity:()=>Xl,scaleImplicit:()=>Bl,scaleLinear:()=>$l,scaleLog:()=>Yl,scaleOrdinal:()=>io,scalePoint:()=>Hv,scalePow:()=>yn,scaleQuantile:()=>Ql,scaleQuantize:()=>eu,scaleRadial:()=>Jl,scaleSequential:()=>lu,scaleSequentialLog:()=>Ic,scaleSequentialPow:()=>uu,scaleSequentialQuantile:()=>su,scaleSequentialSqrt:()=>ay,scaleSequentialSymlog:()=>wc,scaleSqrt:()=>Sx,scaleSymlog:()=>Zl,scaleThreshold:()=>tu,scaleTime:()=>yc,scaleUtc:()=>bc,tickFormat:()=>mn});function at(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function Vf(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Qr(e){let t,r,a;e.length!==2?(t=at,r=(l,u)=>at(e(l),u),a=(l,u)=>e(l)-u):(t=e===at||e===Vf?e:NA,r=e,a=e);function o(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&a(l[c-1],u)>-a(l[c],u)?c-1:c}return{left:o,center:i,right:n}}function NA(){return 0}function on(e){return e===null?NaN:+e}function*Bv(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var Fv=Qr(at),jv=Fv.right,BA=Fv.left,FA=Qr(on).center,zt=jv;var oo=class extends Map{constructor(t,r=UA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,o]of t)this.set(a,o)}get(t){return super.get(zv(this,t))}has(t){return super.has(zv(this,t))}set(t,r){return super.set(jA(this,t),r)}delete(t){return super.delete(zA(this,t))}};function zv({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function jA({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function zA({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function UA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Uv(e=at){if(e===at)return Gf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function Gf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var qA=Math.sqrt(50),HA=Math.sqrt(10),WA=Math.sqrt(2);function Ml(e,t,r){let a=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(a)),n=a/Math.pow(10,o),i=n>=qA?10:n>=HA?5:n>=WA?2:1,l,u,s;return o<0?(s=Math.pow(10,-o)/i,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,o)*i,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];let a=t=o))return[];let l=n-o+1,u=new Array(l);if(a)if(i<0)for(let s=0;s=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r=o)&&(r=o)}return r}function Tl(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Rl(e,t,r=0,a=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(o=o===void 0?Gf:Uv(o);a>r;){if(a-r>600){let u=a-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),m=Math.max(r,Math.floor(t-s*c/u+d)),h=Math.min(a,Math.floor(t+(u-s)*c/u+d));Rl(e,t,m,h,o)}let n=e[t],i=r,l=a;for(ln(e,r,t),o(e[a],n)>0&&ln(e,r,a);i0;)--l}o(e[r],n)===0?ln(e,r,l):(++l,ln(e,l,a)),l<=t&&(r=l+1),t<=l&&(a=l-1)}return e}function ln(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function _l(e,t,r){if(e=Float64Array.from(Bv(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return Tl(e);if(t>=1)return Dl(e);var a,o=(a-1)*t,n=Math.floor(o),i=Dl(Rl(e,n).subarray(0,n+1)),l=Tl(e.subarray(n+1));return i+(l-i)*(o-n)}}function Kf(e,t,r=on){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,o=(a-1)*t,n=Math.floor(o),i=+r(e[n],n,e),l=+r(e[n+1],n+1,e);return i+(l-i)*(o-n)}}function Nl(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,n=new Array(o);++a>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jl(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=GA.exec(e))?new ft(t[1],t[2],t[3],1):(t=KA.exec(e))?new ft(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$A.exec(e))?jl(t[1],t[2],t[3],t[4]):(t=XA.exec(e))?jl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=YA.exec(e))?Yv(t[1],t[2]/100,t[3]/100,1):(t=ZA.exec(e))?Yv(t[1],t[2]/100,t[3]/100,t[4]):Wv.hasOwnProperty(e)?Kv(Wv[e]):e==="transparent"?new ft(NaN,NaN,NaN,0):null}function Kv(e){return new ft(e>>16&255,e>>8&255,e&255,1)}function jl(e,t,r,a){return a<=0&&(e=t=r=NaN),new ft(e,t,r,a)}function ek(e){return e instanceof cn||(e=Ar(e)),e?(e=e.rgb(),new ft(e.r,e.g,e.b,e.opacity)):new ft}function uo(e,t,r,a){return arguments.length===1?ek(e):new ft(e,t,r,a??1)}function ft(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Fl(ft,uo,$f(cn,{brighter(e){return e=e==null?Ul:Math.pow(Ul,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ft(ra(this.r),ra(this.g),ra(this.b),ql(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:$v,formatHex:$v,formatHex8:tk,formatRgb:Xv,toString:Xv}));function $v(){return`#${ta(this.r)}${ta(this.g)}${ta(this.b)}`}function tk(){return`#${ta(this.r)}${ta(this.g)}${ta(this.b)}${ta((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xv(){let e=ql(this.opacity);return`${e===1?"rgb(":"rgba("}${ra(this.r)}, ${ra(this.g)}, ${ra(this.b)}${e===1?")":`, ${e})`}`}function ql(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ra(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ta(e){return e=ra(e),(e<16?"0":"")+e.toString(16)}function Yv(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ut(e,t,r,a)}function Jv(e){if(e instanceof Ut)return new Ut(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=Ar(e)),!e)return new Ut;if(e instanceof Ut)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),n=Math.max(t,r,a),i=NaN,l=n-o,u=(n+o)/2;return l?(t===n?i=(r-a)/l+(r0&&u<1?0:i,new Ut(i,l,u,e.opacity)}function Qv(e,t,r,a){return arguments.length===1?Jv(e):new Ut(e,t,r,a??1)}function Ut(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Fl(Ut,Qv,$f(cn,{brighter(e){return e=e==null?Ul:Math.pow(Ul,e),new Ut(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new Ut(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,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new ft(Xf(e>=240?e-240:e+120,o,a),Xf(e,o,a),Xf(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new Ut(Zv(this.h),zl(this.s),zl(this.l),ql(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(){let e=ql(this.opacity);return`${e===1?"hsl(":"hsla("}${Zv(this.h)}, ${zl(this.s)*100}%, ${zl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zv(e){return e=(e||0)%360,e<0?e+360:e}function zl(e){return Math.max(0,Math.min(1,e||0))}function Xf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Yf(e,t,r,a,o){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*r+(1+3*e+3*n-3*i)*a+i*o)/6}function ex(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],n=e[a+1],i=a>0?e[a-1]:2*o-n,l=a()=>e;function rk(e,t){return function(r){return e+r*t}}function ak(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function rx(e){return(e=+e)==1?Hl:function(t,r){return r-t?ak(t,r,e):dn(isNaN(t)?r:t)}}function Hl(e,t){var r=t-e;return r?rk(e,r):dn(isNaN(e)?t:e)}var Zf=function e(t){var r=rx(t);function a(o,n){var i=r((o=uo(o)).r,(n=uo(n)).r),l=r(o.g,n.g),u=r(o.b,n.b),s=Hl(o.opacity,n.opacity);return function(f){return o.r=i(f),o.g=l(f),o.b=u(f),o.opacity=s(f),o+""}}return a.gamma=e,a}(1);function ax(e){return function(t){var r=t.length,a=new Array(r),o=new Array(r),n=new Array(r),i,l;for(i=0;ir&&(n=t.slice(r,n),l[i]?l[i]+=n:l[++i]=n),(a=a[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,u.push({i,x:kr(a,o)})),r=Jf.lastIndex;return rt&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function lk(e,t,r){var a=e[0],o=e[1],n=t[0],i=t[1];return o2?uk:lk,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?n:(u||(u=l(e.map(a),t,r)))(a(i(d)))}return c.invert=function(d){return i(o((s||(s=l(t,e.map(a),kr)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Or),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=aa,f()},c.clamp=function(d){return arguments.length?(i=d?!0:Be,f()):i!==Be},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(n=d,c):n},function(d,m){return a=d,o=m,f()}}function na(){return oa()(Be,Be)}function cx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ia(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Xt(e){return e=ia(Math.abs(e)),e?e[1]:NaN}function dx(e,t){return function(r,a){for(var o=r.length,n=[],i=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>a&&(l=Math.max(1,a-u)),n.push(r.substring(o-=l,o+l)),!((u+=l+1)>a));)l=e[i=(i+1)%e.length];return n.reverse().join(t)}}function px(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yt(e){if(!(t=sk.exec(e)))throw new Error("invalid format: "+e);var t;return new Vl({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]})}Yt.prototype=Vl.prototype;function Vl(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+""}Vl.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 mx(e){e:for(var t=e.length,r=1,a=-1,o;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var pn;function hx(e,t){var r=ia(e,t);if(!r)return pn=void 0,e.toPrecision(t);var a=r[0],o=r[1],n=o-(pn=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return n===i?a:n>i?a+new Array(n-i+1).join("0"):n>0?a.slice(0,n)+"."+a.slice(n):"0."+new Array(1-n).join("0")+ia(e,Math.max(0,t+n-1))[0]}function rc(e,t){var r=ia(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var ac={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cx,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)=>rc(e*100,t),r:rc,s:hx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function oc(e){return e}var gx=Array.prototype.map,vx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function xx(e){var t=e.grouping===void 0||e.thousands===void 0?oc:dx(gx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",n=e.numerals===void 0?oc:px(gx.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c,d){c=Yt(c);var m=c.fill,h=c.align,p=c.sign,g=c.symbol,v=c.zero,L=c.width,w=c.comma,A=c.precision,S=c.trim,O=c.type;O==="n"?(w=!0,O="g"):ac[O]||(A===void 0&&(A=12),S=!0,O="g"),(v||m==="0"&&h==="=")&&(v=!0,m="0",h="=");var M=(d&&d.prefix!==void 0?d.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),k=(g==="$"?a:/[%p]/.test(O)?i:"")+(d&&d.suffix!==void 0?d.suffix:""),j=ac[O],F=/[defgprs%]/.test(O);A=A===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function W(B){var Y=M,Z=k,te,x,b;if(O==="c")Z=j(B)+Z,B="";else{B=+B;var P=B<0||1/B<0;if(B=isNaN(B)?u:j(Math.abs(B),A),S&&(B=mx(B)),P&&+B==0&&p!=="+"&&(P=!1),Y=(P?p==="("?p:l:p==="-"||p==="("?"":p)+Y,Z=(O==="s"&&!isNaN(B)&&pn!==void 0?vx[8+pn/3]:"")+Z+(P&&p==="("?")":""),F){for(te=-1,x=B.length;++teb||b>57){Z=(b===46?o+B.slice(te+1):B.slice(te))+Z,B=B.slice(0,te);break}}}w&&!v&&(B=t(B,1/0));var I=Y.length+B.length+Z.length,y=I>1)+Y+B+Z+y.slice(I);break;default:B=y+Y+B+Z;break}return n(B)}return W.toString=function(){return c+""},W}function f(c,d){var m=Math.max(-8,Math.min(8,Math.floor(Xt(d)/3)))*3,h=Math.pow(10,-m),p=s((c=Yt(c),c.type="f",c),{suffix:vx[8+m/3]});return function(g){return p(h*g)}}return{format:s,formatPrefix:f}}var Gl,so,Kl;nc({thousands:",",grouping:[3],currency:["$",""]});function nc(e){return Gl=xx(e),so=Gl.format,Kl=Gl.formatPrefix,Gl}function ic(e){return Math.max(0,-Xt(Math.abs(e)))}function lc(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xt(t)/3)))*3-Xt(Math.abs(e)))}function uc(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xt(t)-Xt(e))+1}function mn(e,t,r,a){var o=no(e,t,r),n;switch(a=Yt(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(n=lc(o,i))&&(a.precision=n),Kl(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(n=uc(o,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=n-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(n=ic(o))&&(a.precision=n-(a.type==="%")*2);break}}return so(a)}function ot(e){var t=e.domain;return e.ticks=function(r){var a=t();return ea(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var o=t();return mn(o[0],o[o.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),o=0,n=a.length-1,i=a[o],l=a[n],u,s,f=10;for(l0;){if(s=nn(i,l,r),s===u)return a[o]=i,a[n]=l,t(a);if(s>0)i=Math.floor(i/s)*s,l=Math.ceil(l/s)*s;else if(s<0)i=Math.ceil(i*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function $l(){var e=na();return e.copy=function(){return $t(e,$l())},xe.apply(e,arguments),ot(e)}function Xl(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,Or),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return Xl(e).unknown(t)},e=arguments.length?Array.from(e,Or):[0,1],ot(r)}function hn(e,t){e=e.slice();var r=0,a=e.length-1,o=e[r],n=e[a],i;return nMath.pow(e,t)}function mk(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 Ix(e){return(t,r)=>-e(-t,r)}function gn(e){let t=e(yx,bx),r=t.domain,a=10,o,n;function i(){return o=mk(a),n=pk(a),r()[0]<0?(o=Ix(o),n=Ix(n),e(fk,ck)):e(yx,bx),t}return t.base=function(l){return arguments.length?(a=+l,i()):a},t.domain=function(l){return arguments.length?(r(l),i()):r()},t.ticks=l=>{let u=r(),s=u[0],f=u[u.length-1],c=f0){for(;d<=m;++d)for(h=1;hf)break;v.push(p)}}else for(;d<=m;++d)for(h=a-1;h>=1;--h)if(p=d>0?h/n(-d):h*n(d),!(pf)break;v.push(p)}v.length*2{if(l==null&&(l=10),u==null&&(u=a===10?"s":","),typeof u!="function"&&(!(a%1)&&(u=Yt(u)).precision==null&&(u.trim=!0),u=so(u)),l===1/0)return u;let s=Math.max(1,a*l/t.ticks().length);return f=>{let c=f/n(Math.round(o(f)));return c*ar(hn(r(),{floor:l=>n(Math.floor(o(l))),ceil:l=>n(Math.ceil(o(l)))})),t}function Yl(){let e=gn(oa()).domain([1,10]);return e.copy=()=>$t(e,Yl()).base(e.base()),xe.apply(e,arguments),e}function wx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Cx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vn(e){var t=1,r=e(wx(t),Cx(t));return r.constant=function(a){return arguments.length?e(wx(t=+a),Cx(t)):t},ot(r)}function Zl(){var e=vn(oa());return e.copy=function(){return $t(e,Zl()).constant(e.constant())},xe.apply(e,arguments)}function Lx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gk(e){return e<0?-e*e:e*e}function xn(e){var t=e(Be,Be),r=1;function a(){return r===1?e(Be,Be):r===.5?e(hk,gk):e(Lx(r),Lx(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,a()):r},ot(t)}function yn(){var e=xn(oa());return e.copy=function(){return $t(e,yn()).exponent(e.exponent())},xe.apply(e,arguments),e}function Sx(){return yn.apply(null,arguments).exponent(.5)}function Px(e){return Math.sign(e)*e*e}function vk(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Jl(){var e=na(),t=[0,1],r=!1,a;function o(n){var i=vk(e(n));return isNaN(i)?a:r?Math.round(i):i}return o.invert=function(n){return e.invert(Px(n))},o.domain=function(n){return arguments.length?(e.domain(n),o):e.domain()},o.range=function(n){return arguments.length?(e.range((t=Array.from(n,Or)).map(Px)),o):t.slice()},o.rangeRound=function(n){return o.range(n).round(!0)},o.round=function(n){return arguments.length?(r=!!n,o):r},o.clamp=function(n){return arguments.length?(e.clamp(n),o):e.clamp()},o.unknown=function(n){return arguments.length?(a=n,o):a},o.copy=function(){return Jl(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},xe.apply(o,arguments),ot(o)}function Ql(){var e=[],t=[],r=[],a;function o(){var i=0,l=Math.max(1,t.length);for(r=new Array(l-1);++i0?r[l-1]:e[0],l=r?[a[r-1],t]:[a[s-1],a[s]]},i.unknown=function(u){return arguments.length&&(n=u),i},i.thresholds=function(){return a.slice()},i.copy=function(){return eu().domain([e,t]).range(o).unknown(n)},xe.apply(ot(i),arguments)}function tu(){var e=[.5],t=[0,1],r,a=1;function o(n){return n!=null&&n<=n?t[zt(e,n,0,a)]:r}return o.domain=function(n){return arguments.length?(e=Array.from(n),a=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(n){return arguments.length?(t=Array.from(n),a=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},o.unknown=function(n){return arguments.length?(r=n,o):r},o.copy=function(){return tu().domain(e).range(t).unknown(r)},xe.apply(o,arguments)}var sc=new Date,fc=new Date;function de(e,t,r,a){function o(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(e(n=new Date(+n)),n),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=n=>{let i=o(n),l=o.ceil(n);return n-i(t(n=new Date(+n),i==null?1:Math.floor(i)),n),o.range=(n,i,l)=>{let u=[];if(n=o.ceil(n),l=l==null?1:Math.floor(l),!(n0))return u;let s;do u.push(s=new Date(+n)),t(n,l),e(n);while(sde(i=>{if(i>=i)for(;e(i),!n(i);)i.setTime(i-1)},(i,l)=>{if(i>=i)if(l<0)for(;++l<=0;)for(;t(i,-1),!n(i););else for(;--l>=0;)for(;t(i,1),!n(i););}),r&&(o.count=(n,i)=>(sc.setTime(+n),fc.setTime(+i),e(sc),e(fc),Math.floor(r(sc,fc))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(a?i=>a(i)%n===0:i=>o.count(0,i)%n===0):o)),o}var bn=de(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?de(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bn);var C3=bn.range;var Dt=de(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Ax=Dt.range;var fo=de(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),xk=fo.range,co=de(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),yk=co.range;var po=de(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),bk=po.range,mo=de(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),Ik=mo.range;var lr=de(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),wk=lr.range,sa=de(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),Ck=sa.range,ru=de(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),Lk=ru.range;function fa(e){return de(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var ur=fa(0),ho=fa(1),Ox=fa(2),Ex=fa(3),Er=fa(4),Mx=fa(5),Dx=fa(6),Tx=ur.range,Sk=ho.range,Pk=Ox.range,Ak=Ex.range,kk=Er.range,Ok=Mx.range,Ek=Dx.range;function ca(e){return de(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var sr=ca(0),go=ca(1),Rx=ca(2),_x=ca(3),Mr=ca(4),Nx=ca(5),Bx=ca(6),Fx=sr.range,Mk=go.range,Dk=Rx.range,Tk=_x.range,Rk=Mr.range,_k=Nx.range,Nk=Bx.range;var vo=de(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()),Bk=vo.range,xo=de(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()),Fk=xo.range;var bt=de(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());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:de(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var jk=bt.range,It=de(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());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:de(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var zk=It.range;function zx(e,t,r,a,o,n){let i=[[Dt,1,1e3],[Dt,5,5*1e3],[Dt,15,15*1e3],[Dt,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(s,f,c){let d=fg).right(i,d);if(m===i.length)return e.every(no(s/31536e6,f/31536e6,c));if(m===0)return bn.every(Math.max(no(s,f,c),1));let[h,p]=i[d/i[m-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(re=gc(wn(_.y,0,1)),qe=re.getUTCDay(),re=qe>4||qe===0?go.ceil(re):go(re),re=sa.offset(re,(_.V-1)*7),_.y=re.getUTCFullYear(),_.m=re.getUTCMonth(),_.d=re.getUTCDate()+(_.w+6)%7):(re=hc(wn(_.y,0,1)),qe=re.getDay(),re=qe>4||qe===0?ho.ceil(re):ho(re),re=lr.offset(re,(_.V-1)*7),_.y=re.getFullYear(),_.m=re.getMonth(),_.d=re.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),qe="Z"in _?gc(wn(_.y,0,1)).getUTCDay():hc(wn(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(qe+5)%7:_.w+_.U*7-(qe+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,gc(_)):hc(_)}}function k(R,q,G,_){for(var be=0,re=q.length,qe=G.length,ze,Lt;be=qe)return-1;if(ze=q.charCodeAt(be++),ze===37){if(ze=q.charAt(be++),Lt=S[ze in Ux?q.charAt(be++):ze],!Lt||(_=Lt(R,G,_))<0)return-1}else if(ze!=G.charCodeAt(_++))return-1}return _}function j(R,q,G){var _=s.exec(q.slice(G));return _?(R.p=f.get(_[0].toLowerCase()),G+_[0].length):-1}function F(R,q,G){var _=m.exec(q.slice(G));return _?(R.w=h.get(_[0].toLowerCase()),G+_[0].length):-1}function W(R,q,G){var _=c.exec(q.slice(G));return _?(R.w=d.get(_[0].toLowerCase()),G+_[0].length):-1}function B(R,q,G){var _=v.exec(q.slice(G));return _?(R.m=L.get(_[0].toLowerCase()),G+_[0].length):-1}function Y(R,q,G){var _=p.exec(q.slice(G));return _?(R.m=g.get(_[0].toLowerCase()),G+_[0].length):-1}function Z(R,q,G){return k(R,t,q,G)}function te(R,q,G){return k(R,r,q,G)}function x(R,q,G){return k(R,a,q,G)}function b(R){return i[R.getDay()]}function P(R){return n[R.getDay()]}function I(R){return u[R.getMonth()]}function y(R){return l[R.getMonth()]}function C(R){return o[+(R.getHours()>=12)]}function D(R){return 1+~~(R.getMonth()/3)}function T(R){return i[R.getUTCDay()]}function N(R){return n[R.getUTCDay()]}function U(R){return u[R.getUTCMonth()]}function z(R){return l[R.getUTCMonth()]}function V(R){return o[+(R.getUTCHours()>=12)]}function oe(R){return 1+~~(R.getUTCMonth()/3)}return{format:function(R){var q=O(R+="",w);return q.toString=function(){return R},q},parse:function(R){var q=M(R+="",!1);return q.toString=function(){return R},q},utcFormat:function(R){var q=O(R+="",A);return q.toString=function(){return R},q},utcParse:function(R){var q=M(R+="",!0);return q.toString=function(){return R},q}}}var Ux={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,qk=/^%/,Hk=/[\\^$*+?|[\]().{}]/g;function ue(e,t,r){var a=e<0?"-":"",o=(a?-e:e)+"",n=o.length;return a+(n[t.toLowerCase(),r]))}function Vk(e,t,r){var a=Ue.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function Gk(e,t,r){var a=Ue.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function Kk(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function $k(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function Xk(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function qx(e,t,r){var a=Ue.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function Hx(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function Yk(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function Zk(e,t,r){var a=Ue.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function Jk(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Wx(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function Qk(e,t,r){var a=Ue.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function Vx(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function eO(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function tO(e,t,r){var a=Ue.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function rO(e,t,r){var a=Ue.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function aO(e,t,r){var a=Ue.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function oO(e,t,r){var a=qk.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function nO(e,t,r){var a=Ue.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function iO(e,t,r){var a=Ue.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Gx(e,t){return ue(e.getDate(),t,2)}function lO(e,t){return ue(e.getHours(),t,2)}function uO(e,t){return ue(e.getHours()%12||12,t,2)}function sO(e,t){return ue(1+lr.count(bt(e),e),t,3)}function Zx(e,t){return ue(e.getMilliseconds(),t,3)}function fO(e,t){return Zx(e,t)+"000"}function cO(e,t){return ue(e.getMonth()+1,t,2)}function dO(e,t){return ue(e.getMinutes(),t,2)}function pO(e,t){return ue(e.getSeconds(),t,2)}function mO(e){var t=e.getDay();return t===0?7:t}function hO(e,t){return ue(ur.count(bt(e)-1,e),t,2)}function Jx(e){var t=e.getDay();return t>=4||t===0?Er(e):Er.ceil(e)}function gO(e,t){return e=Jx(e),ue(Er.count(bt(e),e)+(bt(e).getDay()===4),t,2)}function vO(e){return e.getDay()}function xO(e,t){return ue(ho.count(bt(e)-1,e),t,2)}function yO(e,t){return ue(e.getFullYear()%100,t,2)}function bO(e,t){return e=Jx(e),ue(e.getFullYear()%100,t,2)}function IO(e,t){return ue(e.getFullYear()%1e4,t,4)}function wO(e,t){var r=e.getDay();return e=r>=4||r===0?Er(e):Er.ceil(e),ue(e.getFullYear()%1e4,t,4)}function CO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function Kx(e,t){return ue(e.getUTCDate(),t,2)}function LO(e,t){return ue(e.getUTCHours(),t,2)}function SO(e,t){return ue(e.getUTCHours()%12||12,t,2)}function PO(e,t){return ue(1+sa.count(It(e),e),t,3)}function Qx(e,t){return ue(e.getUTCMilliseconds(),t,3)}function AO(e,t){return Qx(e,t)+"000"}function kO(e,t){return ue(e.getUTCMonth()+1,t,2)}function OO(e,t){return ue(e.getUTCMinutes(),t,2)}function EO(e,t){return ue(e.getUTCSeconds(),t,2)}function MO(e){var t=e.getUTCDay();return t===0?7:t}function DO(e,t){return ue(sr.count(It(e)-1,e),t,2)}function ey(e){var t=e.getUTCDay();return t>=4||t===0?Mr(e):Mr.ceil(e)}function TO(e,t){return e=ey(e),ue(Mr.count(It(e),e)+(It(e).getUTCDay()===4),t,2)}function RO(e){return e.getUTCDay()}function _O(e,t){return ue(go.count(It(e)-1,e),t,2)}function NO(e,t){return ue(e.getUTCFullYear()%100,t,2)}function BO(e,t){return e=ey(e),ue(e.getUTCFullYear()%100,t,2)}function FO(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function jO(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Mr(e):Mr.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function zO(){return"+0000"}function $x(){return"%"}function Xx(e){return+e}function Yx(e){return Math.floor(+e/1e3)}var yo,au,ty,ou,ry;xc({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 xc(e){return yo=vc(e),au=yo.format,ty=yo.parse,ou=yo.utcFormat,ry=yo.utcParse,yo}function UO(e){return new Date(e)}function qO(e){return e instanceof Date?+e:+new Date(+e)}function nu(e,t,r,a,o,n,i,l,u,s){var f=na(),c=f.invert,d=f.domain,m=s(".%L"),h=s(":%S"),p=s("%I:%M"),g=s("%I %p"),v=s("%a %d"),L=s("%b %d"),w=s("%B"),A=s("%Y");function S(O){return(u(O)t(o/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,n)=>_l(e,n/a))},r.copy=function(){return su(t).domain(e)},Mt.apply(r,arguments)}function fu(){var e=0,t=.5,r=1,a=1,o,n,i,l,u,s=Be,f,c=!1,d;function m(p){return isNaN(p=+p)?d:(p=.5+((p=+f(p))-n)*(a*p{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof a=="string")return VO(a)?a:"point"}};function GO(e,t){for(var r=0,a=e.length,o=e[0]t)?r=n+1:a=n}return r}function mu(e,t){if(e){var r=t??e.domain(),a=r.map(n=>{var i;return(i=e(n))!==null&&i!==void 0?i:0}),o=e.range();if(!(r.length===0||o.length<2))return n=>{var i,l,u=GO(a,n);if(u<=0)return r[0];if(u>=r.length)return r[r.length-1];var s=(i=a[u-1])!==null&&i!==void 0?i:0,f=(l=a[u])!==null&&l!==void 0?l:0;return Math.abs(n-s)<=Math.abs(n-f)?r[u-1]:r[u]}}}function iy(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):mu(e,void 0)}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function hu(e){for(var t=1;te.cartesianAxis.xAxis[t],Jt=(e,t)=>{var r=Pc(e,t);return r??Oe},Ac={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Sc,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Gr},YO=(e,t)=>e.cartesianAxis.yAxis[t],Qt=(e,t)=>{var r=YO(e,t);return r??Ac},ZO={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},kc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??ZO},nt=(e,t,r)=>{switch(t){case"xAxis":return Jt(e,r);case"yAxis":return Qt(e,r);case"zAxis":return kc(e,r);case"angleAxis":return Pl(e,r);case"radiusAxis":return Al(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},JO=(e,t,r)=>{switch(t){case"xAxis":return Jt(e,r);case"yAxis":return Qt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},An=(e,t,r)=>{switch(t){case"xAxis":return Jt(e,r);case"yAxis":return Qt(e,r);case"angleAxis":return Pl(e,r);case"radiusAxis":return Al(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Oc=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Ec(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Mc=e=>e.graphicalItems.cartesianItems,QO=E([Ne,tn],Ec),Dc=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),kn=E([Mc,nt,QO],Dc,{memoizeOptions:{resultEqualityCheck:ao}}),sy=E([kn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(rn)),Tc=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),eE=E([kn],Tc),Rc=e=>e.map(t=>t.data).filter(Boolean).flat(1),tE=E([kn],Rc,{memoizeOptions:{resultEqualityCheck:ao}}),_c=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:o}=t;return e.length>0?e:r.slice(a,o+1)},Nc=E([tE,_f],_c),Bc=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:Ie(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(o=>({value:Ie(o,a)}))):e.map(a=>({value:a})),On=E([Nc,nt,kn],Bc);function bo(e){if(tt(e)||e instanceof Date){var t=Number(e);if(Q(t))return t}}function uy(e){if(Array.isArray(e)){var t=[bo(e[0]),bo(e[1])];return xt(t)?t:void 0}var r=bo(e);if(r!=null)return[r,r]}function cr(e){return e.map(bo).filter(We)}function rE(e,t){var r=bo(e),a=bo(t);return r==null&&a==null?0:r==null?-1:a==null?1:r-a}var aE=E([On],e=>e?.map(t=>t.value).sort(rE));function fy(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function oE(e,t,r){return!r||typeof t!="number"||$e(t)?[]:r.length?cr(r.flatMap(a=>{var o=Ie(e,a.dataKey),n,i;if(Array.isArray(o)?[n,i]=o:n=i=o,!(!Q(n)||!Q(i)))return[t-n,t+i]})):[]}var Ee=e=>{var t=ke(e),r=Pr(e);return An(e,t,r)},Tr=E([Ee],e=>e?.dataKey),nE=E([sy,_f,Ee],El),Fc=(e,t,r,a)=>{var o={},n=t.reduce((i,l)=>{if(l.stackId==null)return i;var u=i[l.stackId];return u==null&&(u=[]),u.push(l),i[l.stackId]=u,i},o);return Object.fromEntries(Object.entries(n).map(i=>{var[l,u]=i,s=a?[...u].reverse():u,f=s.map(to);return[l,{stackedData:Mh(e,f,r),graphicalItems:s}]}))},jc=E([nE,sy,Qa,wl],Fc),zc=(e,t,r,a)=>{var{dataStartIndex:o,dataEndIndex:n}=t;if(a==null&&r!=="zAxis"){var i=Th(e,o,n);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},iE=E([nt],e=>e.allowDataOverflow),gu=e=>{var t;if(e==null||!("domain"in e))return Sc;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=cr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Sc},cy=E([nt],gu),dy=E([cy,iE],xl),lE=E([jc,Et,Ne,dy],zc,{memoizeOptions:{resultEqualityCheck:ro}}),vu=e=>e.errorBars,uE=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>fy(r,a)),Pn=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var n,i;if(r.length>0&&e.forEach(l=>{r.forEach(u=>{var s,f,c=(s=a[u.id])===null||s===void 0?void 0:s.filter(v=>fy(o,v)),d=Ie(l,(f=t.dataKey)!==null&&f!==void 0?f:u.dataKey),m=oE(l,d,c);if(m.length>=2){var h=Math.min(...m),p=Math.max(...m);(n==null||hi)&&(i=p)}var g=uy(d);g!=null&&(n=n==null?g[0]:Math.min(n,g[0]),i=i==null?g[1]:Math.max(i,g[1]))})}),t?.dataKey!=null&&e.forEach(l=>{var u=uy(Ie(l,t.dataKey));u!=null&&(n=n==null?u[0]:Math.min(n,u[0]),i=i==null?u[1]:Math.max(i,u[1]))}),Q(n)&&Q(i))return[n,i]},sE=E([Nc,nt,eE,vu,Ne],Uc,{memoizeOptions:{resultEqualityCheck:ro}});function fE(e){var{value:t}=e;if(tt(t)||t instanceof Date)return t}var cE=(e,t,r)=>{var a=e.map(fE).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&js(a))?vl(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},qc=e=>e.referenceElements.dots,da=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),dE=E([qc,Ne,tn],da),Hc=e=>e.referenceElements.areas,pE=E([Hc,Ne,tn],da),Wc=e=>e.referenceElements.lines,mE=E([Wc,Ne,tn],da),Vc=(e,t)=>{if(e!=null){var r=cr(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},hE=E(dE,Ne,Vc),Gc=(e,t)=>{if(e!=null){var r=cr(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},gE=E([pE,Ne],Gc);function vE(e){var t;if(e.x!=null)return cr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.x);return r==null||r.length===0?[]:cr(r)}function xE(e){var t;if(e.y!=null)return cr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.y);return r==null||r.length===0?[]:cr(r)}var Kc=(e,t)=>{if(e!=null){var r=e.flatMap(a=>t==="xAxis"?vE(a):xE(a));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},yE=E([mE,Ne],Kc),bE=E(hE,yE,gE,(e,t,r)=>Pn(e,r,t)),$c=(e,t,r,a,o,n,i,l)=>{if(r!=null)return r;var u=i==="vertical"&&l==="xAxis"||i==="horizontal"&&l==="yAxis",s=u?Pn(a,n,o):Pn(n,o);return Cv(t,s,e.allowDataOverflow)},IE=E([nt,cy,dy,lE,sE,bE,se,Ne],$c,{memoizeOptions:{resultEqualityCheck:ro}}),wE=[0,1],Xc=(e,t,r,a,o,n,i)=>{if(!((e==null||r==null||r.length===0)&&i===void 0)){var{dataKey:l,type:u}=e,s=st(t,n);if(s&&l==null){var f;return vl(0,(f=r?.length)!==null&&f!==void 0?f:0)}return u==="category"?cE(a,e,s):o==="expand"?wE:i}},Yc=E([nt,se,Nc,On,Qa,Ne,IE],Xc),Io=E([nt,Oc,eo],pu),Zc=(e,t,r)=>{var{niceTicks:a}=t;if(a!=="none"){var o=gu(t),n=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((a==="snap125"||a==="adaptive")&&t!=null&&t.tickCount&&xt(e)){if(n)return bl(e,t.tickCount,t.allowDecimals,a);if(t.type==="number")return Il(e,t.tickCount,t.allowDecimals,a)}if(a==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(n&&xt(e))return bl(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&xt(e))return Il(e,t.tickCount,t.allowDecimals,"adaptive")}}},Jc=E([Yc,An,Io],Zc),Qc=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&xt(t)&&Array.isArray(r)&&r.length>0){var o,n,i=t[0],l=(o=r[0])!==null&&o!==void 0?o:0,u=t[1],s=(n=r[r.length-1])!==null&&n!==void 0?n:0;return[Math.min(i,l),Math.max(u,s)]}return t},CE=E([nt,Yc,Jc,Ne],Qc),LE=E(On,nt,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(cr(e.map(c=>c.value))).sort((c,d)=>c-d),o=a[0],n=a[a.length-1];if(o==null||n==null)return 1/0;var i=n-o;if(i===0)return 1/0;for(var l=0;lo,(e,t,r,a,o)=>{if(!Q(e))return 0;var n=t==="vertical"?a.height:a.width;if(o==="gap")return e*n/2;if(o==="no-gap"){var i=St(r,e*n),l=e*n/2;return l-i-(l-i)/n*i}return 0}),SE=(e,t,r)=>{var a=Jt(e,t);return a==null||typeof a.padding!="string"?0:py(e,"xAxis",t,r,a.padding)},PE=(e,t,r)=>{var a=Qt(e,t);return a==null||typeof a.padding!="string"?0:py(e,"yAxis",t,r,a.padding)},AE=E(Jt,SE,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((a=o.right)!==null&&a!==void 0?a:0)+t}}),kE=E(Qt,PE,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((a=o.bottom)!==null&&a!==void 0?a:0)+t}}),OE=E([me,AE,Kr,Ka,(e,t,r)=>r],(e,t,r,a,o)=>{var{padding:n}=a;return o?[n.left,r.width-n.right]:[e.left+t.left,e.left+e.width-t.right]}),EE=E([me,se,kE,Kr,Ka,(e,t,r)=>r],(e,t,r,a,o,n)=>{var{padding:i}=o;return n?[a.height-i.bottom,i.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),wo=(e,t,r,a)=>{var o;switch(t){case"xAxis":return OE(e,r,a);case"yAxis":return EE(e,r,a);case"zAxis":return(o=kc(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return Hf(e);case"radiusAxis":return Wf(e,r);default:return}},my=E([nt,wo],Jr),ME=E([Io,CE],Nv),ed=E([nt,Io,ME,my],Sn),td=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:n}=r,i=st(e,a);if(i&&(o==="number"||n!=="auto"))return t.map(l=>l.value)}},rd=E([se,On,An,Ne],td),xu=E([ed],an),G$=E([ed],iy),K$=E([ed,aE],mu),$$=E([kn,vu,Ne],uE);function hy(e,t){return e.idt.id?1:0}var yu=(e,t)=>t,bu=(e,t,r)=>r,DE=E(Va,yu,bu,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(hy)),TE=E(Ga,yu,bu,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(hy)),gy=(e,t)=>({width:e.width,height:t.height}),RE=(e,t)=>{var r=typeof t.width=="number"?t.width:Gr;return{width:r,height:e.height}},vy=E(me,Jt,gy),_E=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},NE=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},BE=E(Ye,me,DE,yu,bu,(e,t,r,a,o)=>{var n={},i;return r.forEach(l=>{var u=gy(t,l);i==null&&(i=_E(t,a,e));var s=a==="top"&&!o||a==="bottom"&&o;n[l.id]=i-Number(s)*u.height,i+=(s?-1:1)*u.height}),n}),FE=E(Xe,me,TE,yu,bu,(e,t,r,a,o)=>{var n={},i;return r.forEach(l=>{var u=RE(t,l);i==null&&(i=NE(t,a,e));var s=a==="left"&&!o||a==="right"&&o;n[l.id]=i-Number(s)*u.width,i+=(s?-1:1)*u.width}),n}),jE=(e,t)=>{var r=Jt(e,t);if(r!=null)return BE(e,r.orientation,r.mirror)},xy=E([me,Jt,jE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),zE=(e,t)=>{var r=Qt(e,t);if(r!=null)return FE(e,r.orientation,r.mirror)},X$=E([me,Qt,zE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),Y$=E(me,Qt,(e,t)=>{var r=typeof t.width=="number"?t.width:Gr;return{width:r,height:e.height}});var ad=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:o,type:n,dataKey:i}=r,l=st(e,a),u=t.map(s=>s.value);if(i&&l&&n==="category"&&o&&js(u))return u}},od=E([se,On,nt,Ne],ad),nd=E([se,JO,Io,xu,od,rd,wo,Jc,Ne],(e,t,r,a,o,n,i,l,u)=>{if(t!=null){var s=st(e,u);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:u,categoricalDomain:n,duplicateDomain:o,isCategorical:s,niceTicks:l,range:i,realScaleType:r,scale:a}}}),UE=(e,t,r,a,o,n,i,l,u)=>{if(!(t==null||a==null)){var s=st(e,u),{type:f,ticks:c,tickCount:d}=t,m=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,h=f==="category"&&a.bandwidth?a.bandwidth()/m:0;h=u==="angleAxis"&&n!=null&&n.length>=2?Re(n[0]-n[1])*2*h:h;var p=c||o;return p?p.map((g,v)=>{var L=i?i.indexOf(g):g,w=a.map(L);return Q(w)?{index:v,coordinate:w+h,value:g,offset:h}:null}).filter(We):s&&l?l.map((g,v)=>{var L=a.map(g);return Q(L)?{coordinate:L+h,value:g,index:v,offset:h}:null}).filter(We):a.ticks?a.ticks(d).map((g,v)=>{var L=a.map(g);return Q(L)?{coordinate:L+h,value:g,index:v,offset:h}:null}).filter(We):a.domain().map((g,v)=>{var L=a.map(g);return Q(L)?{coordinate:L+h,value:i?i[g]:g,index:v,offset:h}:null}).filter(We)}},yy=E([se,An,Io,xu,Jc,wo,od,rd,Ne],UE),qE=(e,t,r,a,o,n,i)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var l=st(e,i),{tickCount:u}=t,s=0;return s=i==="angleAxis"&&a?.length>=2?Re(a[0]-a[1])*2*s:s,l&&n?n.map((f,c)=>{var d=r.map(f);return Q(d)?{coordinate:d+s,value:f,index:c,offset:s}:null}).filter(We):r.ticks?r.ticks(u).map((f,c)=>{var d=r.map(f);return Q(d)?{coordinate:d+s,value:f,index:c,offset:s}:null}).filter(We):r.domain().map((f,c)=>{var d=r.map(f);return Q(d)?{coordinate:d+s,value:o?o[f]:f,index:c,offset:s}:null}).filter(We)}},id=E([se,An,xu,wo,od,rd,Ne],qE),ld=E(nt,xu,(e,t)=>{if(!(e==null||t==null))return hu(hu({},e),{},{scale:t})}),HE=E([nt,Io,Yc,my],Sn),WE=E([HE],an),Z$=E((e,t,r)=>kc(e,r),WE,(e,t)=>{if(!(e==null||t==null))return hu(hu({},e),{},{scale:t})}),by=E([se,Va,Ga],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),VE=(e,t,r)=>{var a;return(a=e.renderedTicks[t])===null||a===void 0?void 0:a[r]},J$=E([VE],e=>{if(!(!e||e.length===0))return t=>{var r,a=1/0,o=e[0];for(var n of e){var i=Math.abs(n.coordinate-t);ie.options.defaultTooltipEventType,sd=e=>e.options.validateTooltipEventTypes;function fd(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function En(e,t){var r=ud(e),a=sd(e);return fd(t,r,a)}function Iy(e){return K(t=>En(t,e))}var Iu=(e,t)=>{var r,a=Number(t);if(!($e(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0};var wy=e=>e.tooltip.settings;var dr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},GE={itemInteraction:{click:dr,hover:dr},axisInteraction:{click:dr,hover:dr},keyboardInteraction:dr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Cy=le({name:"tooltip",initialState:GE,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:fe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ge(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=a)},prepare:fe()},removeTooltipEntrySettings:{reducer(e,t){var r=Ge(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:fe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Ly,replaceTooltipEntrySettings:Sy,removeTooltipEntrySettings:Py,setTooltipSettingsState:Ay,setActiveMouseOverItemIndex:ky,mouseLeaveItem:iX,mouseLeaveChart:wu,setActiveClickItemIndex:lX,setMouseOverAxisIndex:Cu,setMouseClickAxisIndex:Oy,setSyncInteraction:Lu,setKeyboardInteraction:Mn}=Cy.actions,Ey=Cy.reducer;function My(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Su(e){for(var t=1;t{if(t==null)return dr;var o=YE(e,t,r);if(o==null)return dr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var n=e.settings.active===!0;if(ZE(o)){if(n)return Su(Su({},o),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return Su(Su({},dr),{},{coordinate:o.coordinate})};function JE(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function QE(e,t){var r=JE(e),a=t[0],o=t[1];if(r===void 0)return!1;var n=Math.min(a,o),i=Math.max(a,o);return r>=n&&r<=i}function eM(e,t,r){if(r==null||t==null)return!0;var a=Ie(e,t);return a==null||!xt(r)?!0:QE(a,r)}var Co=(e,t,r,a)=>{var o=e?.index;if(o==null)return null;var n=Number(o);if(!Q(n))return o;var i=0,l=1/0;t.length>0&&(l=t.length-1);var u=Math.max(i,Math.min(n,l)),s=t[u];return s==null||eM(s,r,a)?String(u):null};var Au=(e,t,r,a,o,n,i)=>{if(n!=null){var l=i[0],u=l?.getPosition(n);if(u!=null)return u;var s=o?.[Number(n)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:s.coordinate}}}};var ku=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&a!=null){var n=e.tooltipItemPayloads[0];return n!=null?[n]:[]}return e.tooltipItemPayloads.filter(i=>{var l;return((l=i.settings)===null||l===void 0?void 0:l.graphicalItemId)===o})};var Ou=e=>e.options.tooltipPayloadSearcher;var pr=e=>e.tooltip;function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ty(e){for(var t=1;te(t)}function Ry(e){if(typeof e=="string")return e}function lM(e){if(!(e==null||typeof e!="object")){var t="name"in e?oM(e.name):void 0,r="unit"in e?nM(e.unit):void 0,a="dataKey"in e?iM(e.dataKey):void 0,o="payload"in e?e.payload:void 0,n="color"in e?Ry(e.color):void 0,i="fill"in e?Ry(e.fill):void 0;return{name:t,unit:r,dataKey:a,payload:o,color:n,fill:i}}}function uM(e,t){return e??t}var Eu=(e,t,r,a,o,n,i)=>{if(!(t==null||n==null)){var{chartData:l,computedData:u,dataStartIndex:s,dataEndIndex:f}=r,c=[];return e.reduce((d,m)=>{var h,{dataDefinedOnItem:p,settings:g}=m,v=uM(p,l),L=Array.isArray(v)?Zi(v,s,f):v,w=(h=g?.dataKey)!==null&&h!==void 0?h:a,A=g?.nameKey,S;if(a&&Array.isArray(L)&&!Array.isArray(L[0])&&i==="axis"?S=fi(L,a,o):S=n(L,t,u,A),Array.isArray(S))S.forEach(M=>{var k,j,F=lM(M),W=F?.name,B=F?.dataKey,Y=F?.payload,Z=Ty(Ty({},g),{},{name:W,unit:F?.unit,color:(k=F?.color)!==null&&k!==void 0?k:g?.color,fill:(j=F?.fill)!==null&&j!==void 0?j:g?.fill});d.push(wf({tooltipEntrySettings:Z,dataKey:B,payload:Y,value:Ie(Y,B),name:W==null?void 0:String(W)}))});else{var O;d.push(wf({tooltipEntrySettings:g,dataKey:w,payload:S,value:Ie(S,w),name:(O=Ie(S,A))!==null&&O!==void 0?O:g?.name}))}return d},c)}};var cd=E([Ee,Oc,eo],pu),sM=E([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),fM=E([ke,Pr],Ec),pa=E([sM,Ee,fM],Dc,{memoizeOptions:{resultEqualityCheck:ao}}),cM=E([pa],e=>e.filter(rn)),dM=E([pa],Rc,{memoizeOptions:{resultEqualityCheck:ao}}),Rr=E([dM,Et],_c),pM=E([cM,Et,Ee],El),dd=E([Rr,Ee,pa],Bc),_y=E([Ee],gu),mM=E([Ee],e=>e.allowDataOverflow),Ny=E([_y,mM],xl),hM=E([pa],e=>e.filter(rn)),gM=E([pM,hM,Qa,wl],Fc),vM=E([gM,Et,ke,Ny],zc),xM=E([pa],Tc),yM=E([Rr,Ee,xM,vu,ke],Uc,{memoizeOptions:{resultEqualityCheck:ro}}),bM=E([qc,ke,Pr],da),IM=E([bM,ke],Vc),wM=E([Hc,ke,Pr],da),CM=E([wM,ke],Gc),LM=E([Wc,ke,Pr],da),SM=E([LM,ke],Kc),PM=E([IM,SM,CM],Pn),AM=E([Ee,_y,Ny,vM,yM,PM,se,ke],$c),ma=E([Ee,se,Rr,dd,Qa,ke,AM],Xc),kM=E([ma,Ee,cd],Zc),OM=E([Ee,ma,kM,ke],Qc),By=e=>{var t=ke(e),r=Pr(e),a=!1;return wo(e,t,r,a)},pd=E([Ee,By],Jr),EM=E([Ee,cd,OM,pd],Sn),md=E([EM],an),MM=E([se,dd,Ee,ke],ad),DM=E([se,dd,Ee,ke],td),TM=(e,t,r,a,o,n,i,l)=>{if(t){var{type:u}=t,s=st(e,l);if(a){var f=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,c=u==="category"&&a.bandwidth?a.bandwidth()/f:0;return c=l==="angleAxis"&&o!=null&&o?.length>=2?Re(o[0]-o[1])*2*c:c,s&&i?i.map((d,m)=>{var h=a.map(d);return Q(h)?{coordinate:h+c,value:d,index:m,offset:c}:null}).filter(We):a.domain().map((d,m)=>{var h=a.map(d);return Q(h)?{coordinate:h+c,value:n?n[d]:d,index:m,offset:c}:null}).filter(We)}}},ct=E([se,Ee,cd,md,By,MM,DM,ke],TM),hd=E([ud,sd,wy],(e,t,r)=>fd(r.shared,e,t)),Fy=e=>e.tooltip.settings.trigger,gd=e=>e.tooltip.settings.defaultIndex,Dn=E([pr,hd,Fy,gd],Pu),ha=E([Dn,Rr,Tr,ma],Co),Mu=E([ct,ha],Iu),jy=E([Dn],e=>{if(e)return e.dataKey}),zy=E([Dn],e=>{if(e)return e.graphicalItemId}),Uy=E([pr,hd,Fy,gd],ku),RM=E([Xe,Ye,se,me,ct,gd,Uy],Au),vd=E([Dn,RM],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),xd=E([Dn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),_M=E([Uy,ha,Et,Tr,Mu,Ou,hd],Eu),qy=E([_M],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Wy(e){for(var t=1;tK(Ee),Vy=()=>{var e=jM(),t=K(ct),r=K(md);return!e||!r?Wa(void 0,t):Wa(Wy(Wy({},e),{},{scale:r}),t)};function Gy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Lo(e){for(var t=1;t{var o=t.find(n=>n&&n.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:a.relativeY};if(e==="vertical")return{x:a.relativeX,y:o.coordinate}}return{x:0,y:0}},$y=(e,t,r,a)=>{var o=t.find(s=>s&&s.index===r);if(o){if(e==="centric"){var n=o.coordinate,{radius:i}=a;return Lo(Lo(Lo({},a),Le(a.cx,a.cy,i,n)),{},{angle:n,radius:i})}var l=o.coordinate,{angle:u}=a;return Lo(Lo(Lo({},a),Le(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Xy(e,t){var{relativeX:r,relativeY:a}=e;return r>=t.left&&r<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}var yd=(e,t,r,a,o)=>{var n,i=(n=t?.length)!==null&&n!==void 0?n:0;if(i<=1||e==null)return 0;if(a==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var l=0;l0?(u=r[l-1])===null||u===void 0?void 0:u.coordinate:(s=r[i-1])===null||s===void 0?void 0:s.coordinate,h=(f=r[l])===null||f===void 0?void 0:f.coordinate,p=l>=i-1?(c=r[0])===null||c===void 0?void 0:c.coordinate:(d=r[l+1])===null||d===void 0?void 0:d.coordinate,g=void 0;if(!(m==null||h==null||p==null))if(Re(h-m)!==Re(p-h)){var v=[];if(Re(p-h)===Re(o[1]-o[0])){g=p;var L=h+o[1]-o[0];v[0]=Math.min(L,(L+m)/2),v[1]=Math.max(L,(L+m)/2)}else{g=m;var w=p+o[1]-o[0];v[0]=Math.min(h,(w+h)/2),v[1]=Math.max(h,(w+h)/2)}var A=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(e>A[0]&&e<=A[1]||e>=v[0]&&e<=v[1]){var S;return(S=r[l])===null||S===void 0?void 0:S.index}}else{var O=Math.min(m,p),M=Math.max(m,p);if(e>(O+h)/2&&e<=(M+h)/2){var k;return(k=r[l])===null||k===void 0?void 0:k.index}}}else if(t)for(var j=0;j(F.coordinate+B.coordinate)/2||j>0&&j(F.coordinate+B.coordinate)/2&&e<=(F.coordinate+W.coordinate)/2)return F.index}}return-1};var Du=()=>K(eo),bd=(e,t)=>t,Yy=(e,t,r)=>r,Id=(e,t,r,a)=>a,Zy=E(ct,e=>or(e,t=>t.coordinate)),wd=E([pr,bd,Yy,Id],Pu),Cd=E([wd,Rr,Tr,ma],Co),Jy=(e,t,r)=>{if(t!=null){var a=pr(e);return t==="axis"?r==="hover"?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:r==="hover"?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}},Qy=E([pr,bd,Yy,Id],ku),Tn=E([Xe,Ye,se,me,ct,Id,Qy],Au),eb=E([wd,Tn],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Ld=E([ct,Cd],Iu),tb=E([Qy,Cd,Et,Tr,Ld,Ou,bd],Eu),rb=E([wd,Cd],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),HM=(e,t,r,a,o,n,i)=>{if(!(!e||!r||!a||!o)&&Xy(e,i)){var l=Rh(e,t),u=yd(l,n,o,r,a),s=Ky(t,o,u,e);return{activeIndex:String(u),activeCoordinate:s}}},WM=(e,t,r,a,o,n,i)=>{if(!(!e||!a||!o||!n||!r)){var l=lv(e,r);if(l){var u=_h(l,t),s=yd(u,i,n,a,o),f=$y(t,n,s,l);return{activeIndex:String(s),activeCoordinate:f}}}},ab=(e,t,r,a,o,n,i,l)=>{if(!(!e||!t||!a||!o||!n))return t==="horizontal"||t==="vertical"?HM(e,t,a,o,n,i,l):WM(e,t,r,a,o,n,i)};import{useLayoutEffect as JM}from"react";import{createPortal as QM}from"react-dom";var ob=E(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var a=e[t];if(a!=null)return r?a.panoramaElement:a.element}}),nb=E(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(a=>parseInt(a,10)).concat(Object.values(ce)),r=Array.from(new Set(t));return r.sort((a,o)=>a-o)},{memoizeOptions:{resultEqualityCheck:_v}});function ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function lb(e){for(var t=1;tlb(lb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),$M)},YM=new Set(Object.values(ce));function ZM(e){return YM.has(e)}var ub=le({name:"zIndex",initialState:XM,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:fe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!ZM(r)&&delete e.zIndexMap[r])},prepare:fe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:a,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=a:e.zIndexMap[r].element=a:e.zIndexMap[r]={consumers:0,element:o?void 0:a,panoramaElement:o?a:void 0}},prepare:fe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:fe()}}}),{registerZIndexPortal:sb,unregisterZIndexPortal:fb,registerZIndexPortalElement:cb,unregisterZIndexPortalElement:db}=ub.actions,pb=ub.reducer;function Ke(e){var{zIndex:t,children:r}=e,a=Jh(),o=a&&t!==void 0&&t!==0,n=ve(),i=ne();JM(()=>o?(i(sb({zIndex:t})),()=>{i(fb({zIndex:t}))}):ht,[i,t,o]);var l=K(u=>ob(u,t,n));return o?l?QM(r,l):null:r}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;tsD(Pd);import{useEffect as Bu}from"react";var yb=ps(xb(),1);var bb=yb.default;var So=new bb;var Nu="recharts.syncEvent.tooltip",kd="recharts.syncEvent.brush";var Ib=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!$e(r))return e[r]}},dD={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},wb=le({name:"options",initialState:dD,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Cb=wb.reducer,{createEventEmitter:Lb}=wb.actions;function Sb(e){return e.tooltip.syncInteraction}var pD={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Pb=le({name:"chartData",initialState:pD,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:Od,setDataStartEndIndexes:Ab,setComputedData:mD}=Pb.actions,kb=Pb.reducer;var hD=["x","y"];function Ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Po(e){for(var t=1;tu.rootProps.className);Bu(()=>{if(e==null)return ht;var u=(s,f,c)=>{if(t!==c&&e===s){if(a==="index"){var d;if(i&&f!==null&&f!==void 0&&(d=f.payload)!==null&&d!==void 0&&d.coordinate&&f.payload.sourceViewBox){var m=f.payload.coordinate,{x:h,y:p}=m,g=yD(m,hD),{x:v,y:L,width:w,height:A}=f.payload.sourceViewBox,S=Po(Po({},g),{},{x:i.x+(w?(h-v)/w:0)*i.width,y:i.y+(A?(p-L)/A:0)*i.height});r(Po(Po({},f),{},{payload:Po(Po({},f.payload),{},{coordinate:S})}))}else r(f);return}if(o!=null){var O;if(typeof a=="function"){var M={activeTooltipIndex:f.payload.index==null?void 0:Number(f.payload.index),isTooltipActive:f.payload.active,activeIndex:f.payload.index==null?void 0:Number(f.payload.index),activeLabel:f.payload.label,activeDataKey:f.payload.dataKey,activeCoordinate:f.payload.coordinate},k=a(o,M);O=o[k]}else a==="value"&&(O=o.find(x=>String(x.value)===f.payload.label));var{coordinate:j}=f.payload;if(O==null||f.payload.active===!1||j==null||i==null){r(Lu({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:F,y:W}=j,B=Math.min(F,i.x+i.width),Y=Math.min(W,i.y+i.height),Z={x:n==="horizontal"?O.coordinate:B,y:n==="horizontal"?Y:O.coordinate},te=Lu({active:f.payload.active,coordinate:Z,dataKey:f.payload.dataKey,index:String(O.index),label:f.payload.label,sourceViewBox:f.payload.sourceViewBox,graphicalItemId:f.payload.graphicalItemId});r(te)}}};return So.on(Nu,u),()=>{So.off(Nu,u)}},[l,r,t,e,a,o,n,i])}function wD(){var e=K(Cl),t=K(Ll),r=ne();Bu(()=>{if(e==null)return ht;var a=(o,n,i)=>{t!==i&&e===o&&r(Ab(n))};return So.on(kd,a),()=>{So.off(kd,a)}},[r,t,e])}function Eb(){var e=ne();Bu(()=>{e(Lb())},[e]),ID(),wD()}function Mb(e,t,r,a,o,n){var i=K(h=>Jy(h,e,t)),l=K(zy),u=K(Ll),s=K(Cl),f=K(Uf),c=K(Sb),d=c?.active,m=Xr();Bu(()=>{if(!d&&s!=null&&u!=null){var h=Lu({active:n,coordinate:r,dataKey:i,index:o,label:typeof a=="number"?String(a):a,sourceViewBox:m,graphicalItemId:l});So.emit(Nu,s,h,u)}},[d,r,i,l,o,a,u,s,f,n,m])}function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Tb(e){for(var t=1;t{M(Ay({shared:L,trigger:w,axisId:O,active:o,defaultIndex:k}))},[M,L,w,O,o,k]);var j=Xr(),F=nl(),W=Iy(L),{activeIndex:B,isActive:Y}=(t=K(oe=>rb(oe,W,w,k)))!==null&&t!==void 0?t:{},Z=K(oe=>tb(oe,W,w,k)),te=K(oe=>Ld(oe,W,w,k)),x=K(oe=>eb(oe,W,w,k)),b=Z,P=gb(),I=(r=o??Y)!==null&&r!==void 0?r:!1,[y,C]=Mm([b,I]),D=W==="axis"?te:void 0;Mb(W,w,x,D,B,I);var T=S??P;if(T==null||j==null||W==null)return null;var N=b??Rb;I||(N=Rb),s&&N.length&&(N=bm(N.filter(oe=>oe.value!=null&&(oe.hide!==!0||a.includeHidden)),d,kD));var U=N.length>0,z=Tb(Tb({},a),{},{payload:N,label:D,active:I,activeIndex:B,coordinate:x,accessibilityLayer:F}),V=Tt.createElement(pg,{allowEscapeViewBox:n,animationDuration:i,animationEasing:l,isAnimationActive:f,active:I,coordinate:x,hasPayload:U,offset:c,position:m,reverseDirection:h,useTranslate3d:p,viewBox:j,wrapperStyle:g,lastBoundingBox:y,innerRef:C,hasPortalFromProps:!!S},OD(u,z));return Tt.createElement(Tt.Fragment,null,AD(V,T),I&&Tt.createElement(hb,{cursor:v,tooltipEventType:W,coordinate:x,payload:N,index:B}))}import*as Dd from"react";import{useMemo as rT,forwardRef as aT}from"react";function MD(e,t,r){return(t=DD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DD(e){var t=TD(e,"string");return typeof t=="symbol"?t:t+""}function TD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fu=class{constructor(t){MD(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;a!=null&&this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function RD(e){for(var t=1;t{try{var r=document.getElementById(Bb);r||(r=document.createElement("span"),r.setAttribute("id",Bb),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,jD,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},ga=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ot.isSsr)return{width:0,height:0};if(!jb.enableCache)return Fb(t,r);var a=zD(t,r),o=Nb.get(a);if(o)return o;var n=Fb(t,r);return Nb.set(a,n),n};var Hb;function UD(e,t,r){return(t=qD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qD(e){var t=HD(e,"string");return typeof t=="symbol"?t:t+""}function HD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ub=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WD=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,VD=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,GD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},KD=["cm","mm","pt","pc","in","Q","px"];function $D(e){return KD.includes(e)}var Ao="NaN";function XD(e,t){return e*GD[t]}var _r=class e{static parse(t){var r,[,a,o]=(r=VD.exec(t))!==null&&r!==void 0?r:[];return a==null?e.NaN:new e(parseFloat(a),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,$e(t)&&(this.unit=""),r!==""&&!WD.test(r)&&(this.num=NaN,this.unit=""),$D(r)&&(this.num=XD(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return $e(this.num)}};Hb=_r;UD(_r,"NaN",new Hb(NaN,""));function Wb(e){if(e==null||e.includes(Ao))return Ao;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,o,n]=(r=zb.exec(t))!==null&&r!==void 0?r:[],i=_r.parse(a??""),l=_r.parse(n??""),u=o==="*"?i.multiply(l):i.divide(l);if(u.isNaN())return Ao;t=t.replace(zb,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,f,c,d]=(s=Ub.exec(t))!==null&&s!==void 0?s:[],m=_r.parse(f??""),h=_r.parse(d??""),p=c==="+"?m.add(h):m.subtract(h);if(p.isNaN())return Ao;t=t.replace(Ub,p.toString())}return t}var qb=/\(([^()]*)\)/;function YD(e){for(var t=e,r;(r=qb.exec(t))!=null;){var[,a]=r;t=t.replace(qb,Wb(a))}return t}function ZD(e){var t=e.replace(/\s+/g,"");return t=YD(t),t=Wb(t),t}function JD(e){try{return ZD(e)}catch{return Ao}}function ju(e){var t=JD(e.slice(5,-1));return t===Ao?"":t}var QD=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],eT=["dx","dy","angle","className","breakAll"];function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:a}=e;try{var o=[];ge(t)||(r?o=t.toString().split(""):o=t.toString().split($b));var n=o.map(l=>({word:l,width:ga(l,a).width})),i=r?0:ga("\xA0",a).width;return{wordsWithComputedWidth:n,spaceWidth:i}}catch{return null}};function zu(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Yb(e){return ge(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Zb=(e,t,r,a)=>e.reduce((o,n)=>{var{word:i,width:l}=n,u=o[o.length-1];if(u&&l!=null&&(t==null||a||u.width+l+re.reduce((t,r)=>t.width>r.width?t:r),oT="\u2026",Gb=(e,t,r,a,o,n,i,l)=>{var u=e.slice(0,t),s=Xb({breakAll:r,style:a,children:u+oT});if(!s)return[!1,[]];var f=Zb(s.wordsWithComputedWidth,n,i,l),c=f.length>o||Jb(f).width>Number(n);return[c,f]},nT=(e,t,r,a,o)=>{var{maxLines:n,children:i,style:l,breakAll:u}=e,s=H(n),f=String(i),c=Zb(t,a,r,o);if(!s||o)return c;var d=c.length>n||Jb(c).width>Number(a);if(!d)return c;for(var m=0,h=f.length-1,p=0,g;m<=h&&p<=f.length-1;){var v=Math.floor((m+h)/2),L=v-1,[w,A]=Gb(f,L,u,l,n,a,r,o),[S]=Gb(f,v,u,l,n,a,r,o);if(!w&&!S&&(m=v+1),w&&S&&(h=v-1),!w&&S){g=A;break}p++}return g||c},Kb=e=>{var t=ge(e)?[]:e.toString().split($b);return[{words:t,width:void 0}]},iT=e=>{var{width:t,scaleToFit:r,children:a,style:o,breakAll:n,maxLines:i}=e;if((t||r)&&!Ot.isSsr){var l,u,s=Xb({breakAll:n,children:a,style:o});if(s){var{wordsWithComputedWidth:f,spaceWidth:c}=s;l=f,u=c}else return Kb(a);return nT({breakAll:n,children:a,maxLines:i,style:o},l,u,t,!!r)}return Kb(a)},Qb="#808080",lT={angle:0,breakAll:!1,capHeight:"0.71em",fill:Qb,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},_n=aT((e,t)=>{var r=we(e,lT),{x:a,y:o,lineHeight:n,capHeight:i,fill:l,scaleToFit:u,textAnchor:s,verticalAnchor:f}=r,c=Vb(r,QD),d=rT(()=>iT({breakAll:c.breakAll,children:c.children,maxLines:c.maxLines,scaleToFit:u,style:c.style,width:c.width}),[c.breakAll,c.children,c.maxLines,u,c.style,c.width]),{dx:m,dy:h,angle:p,className:g,breakAll:v}=c,L=Vb(c,eT);if(!tt(a)||!tt(o)||d.length===0)return null;var w=Number(a)+(H(m)?m:0),A=Number(o)+(H(h)?h:0);if(!Q(w)||!Q(A))return null;var S;switch(f){case"start":S=ju("calc(".concat(i,")"));break;case"middle":S=ju("calc(".concat((d.length-1)/2," * -").concat(n," + (").concat(i," / 2))"));break;default:S=ju("calc(".concat(d.length-1," * -").concat(n,")"));break}var O=[],M=d[0];if(u&&M!=null){var k=M.width,{width:j}=c;O.push("scale(".concat(H(j)&&H(k)?j/k:1,")"))}return p&&O.push("rotate(".concat(p,", ").concat(w,", ").concat(A,")")),O.length&&(L.transform=O.join(" ")),Dd.createElement("text",Md({},Ae(L),{ref:t,x:w,y:A,className:ee("recharts-text",g),textAnchor:s,fill:l.includes("url")?Qb:l}),d.map((F,W)=>{var B=F.words.join(v?"":" ");return Dd.createElement("tspan",{x:w,dy:W===0?S:n,key:"".concat(B,"-").concat(W)},B)}))});_n.displayName="Text";import*as wt from"react";import{cloneElement as oI,createContext as nI,createElement as vT,isValidElement as Uu,useContext as iI,useMemo as xT}from"react";function eI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function er(e){for(var t=1;t{var{viewBox:t,position:r,offset:a=0,parentViewBox:o,clamp:n}=e,{x:i,y:l,height:u,upperWidth:s,lowerWidth:f}=Ko(t),c=i,d=i+(s-f)/2,m=(c+d)/2,h=(s+f)/2,p=c+s/2,g=u>=0?1:-1,v=g*a,L=g>0?"end":"start",w=g>0?"start":"end",A=s>=0?1:-1,S=A*a,O=A>0?"end":"start",M=A>0?"start":"end",k=o;if(r==="top"){var j={x:c+s/2,y:l-v,horizontalAnchor:"middle",verticalAnchor:L};return n&&k&&(j.height=Math.max(l-k.y,0),j.width=s),j}if(r==="bottom"){var F={x:d+f/2,y:l+u+v,horizontalAnchor:"middle",verticalAnchor:w};return n&&k&&(F.height=Math.max(k.y+k.height-(l+u),0),F.width=f),F}if(r==="left"){var W={x:m-S,y:l+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return n&&k&&(W.width=Math.max(W.x-k.x,0),W.height=u),W}if(r==="right"){var B={x:m+h+S,y:l+u/2,horizontalAnchor:M,verticalAnchor:"middle"};return n&&k&&(B.width=Math.max(k.x+k.width-B.x,0),B.height=u),B}var Y=n&&k?{width:h,height:u}:{};return r==="insideLeft"?er({x:m+S,y:l+u/2,horizontalAnchor:M,verticalAnchor:"middle"},Y):r==="insideRight"?er({x:m+h-S,y:l+u/2,horizontalAnchor:O,verticalAnchor:"middle"},Y):r==="insideTop"?er({x:c+s/2,y:l+v,horizontalAnchor:"middle",verticalAnchor:w},Y):r==="insideBottom"?er({x:d+f/2,y:l+u-v,horizontalAnchor:"middle",verticalAnchor:L},Y):r==="insideTopLeft"?er({x:c+S,y:l+v,horizontalAnchor:M,verticalAnchor:w},Y):r==="insideTopRight"?er({x:c+s-S,y:l+v,horizontalAnchor:O,verticalAnchor:w},Y):r==="insideBottomLeft"?er({x:d+S,y:l+u-v,horizontalAnchor:M,verticalAnchor:L},Y):r==="insideBottomRight"?er({x:d+f-S,y:l+u-v,horizontalAnchor:O,verticalAnchor:L},Y):r&&typeof r=="object"&&(H(r.x)||rr(r.x))&&(H(r.y)||rr(r.y))?er({x:i+St(r.x,h),y:l+St(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},Y):er({x:p,y:l+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},Y)};var cT=["labelRef"],dT=["content"];function rI(e,t){if(e==null)return{};var r,a,o=pT(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{x:t,y:r,upperWidth:a,lowerWidth:o,width:n,height:i,children:l}=e,u=xT(()=>({x:t,y:r,upperWidth:a,lowerWidth:o,width:n,height:i}),[t,r,a,o,n,i]);return wt.createElement(lI.Provider,{value:u},l)},sI=()=>{var e=iI(lI),t=Xr();return e||(t?Ko(t):void 0)},yT=nI(null);var bT=()=>{var e=iI(yT),t=K(Ol);return e||t},IT=e=>{var{value:t,formatter:r}=e,a=ge(e.children)?t:e.children;return typeof r=="function"?r(a):a},Td=e=>e!=null&&typeof e=="function",wT=(e,t)=>{var r=Re(t-e),a=Math.min(Math.abs(t-e),360);return r*a},CT=(e,t,r,a,o)=>{var{offset:n,className:i}=e,{cx:l,cy:u,innerRadius:s,outerRadius:f,startAngle:c,endAngle:d,clockWise:m}=o,h=(s+f)/2,p=wT(c,d),g=p>=0?1:-1,v,L;switch(t){case"insideStart":v=c+g*n,L=m;break;case"insideEnd":v=d-g*n,L=!m;break;case"end":v=d+g*n,L=m;break;default:throw new Error("Unsupported position ".concat(t))}L=p<=0?L:!L;var w=Le(l,u,h,v),A=Le(l,u,h,v+(L?1:-1)*359),S="M".concat(w.x,",").concat(w.y,` - A`).concat(h,",").concat(h,",0,1,").concat(L?0:1,`, - `).concat(A.x,",").concat(A.y),O=ge(e.id)?ar("recharts-radial-line-"):e.id;return wt.createElement("text",hr({},a,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",i)}),wt.createElement("defs",null,wt.createElement("path",{id:O,d:S})),wt.createElement("textPath",{xlinkHref:"#".concat(O)},r))},LT=(e,t,r)=>{var{cx:a,cy:o,innerRadius:n,outerRadius:i,startAngle:l,endAngle:u}=e,s=(l+u)/2;if(r==="outside"){var{x:f,y:c}=Le(a,o,i+t,s);return{x:f,y:c,textAnchor:f>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(n+i)/2,{x:m,y:h}=Le(a,o,d,s);return{x:m,y:h,textAnchor:"middle",verticalAnchor:"middle"}},qu=e=>e!=null&&"cx"in e&&H(e.cx),ST={angle:0,offset:5,zIndex:ce.label,position:"middle",textBreakAll:!1};function PT(e){if(!qu(e))return e;var{cx:t,cy:r,outerRadius:a}=e,o=a*2;return{x:t-a,y:r-a,width:o,upperWidth:o,lowerWidth:o,height:o}}function mr(e){var t=we(e,ST),{viewBox:r,parentViewBox:a,position:o,value:n,children:i,content:l,className:u="",textBreakAll:s,labelRef:f}=t,c=bT(),d=sI(),m=o==="center"?d:c??d,h,p,g;r==null?h=m:qu(r)?h=r:h=Ko(r);var v=PT(h);if(!h||ge(n)&&ge(i)&&!Uu(l)&&typeof l!="function")return null;var L=Nn(Nn({},t),{},{viewBox:h});if(Uu(l)){var{labelRef:w}=L,A=rI(L,cT);return oI(l,A)}if(typeof l=="function"){var{content:S}=L,O=rI(L,dT);if(p=vT(l,O),Uu(p))return p}else p=IT(t);var M=Ae(t);if(qu(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return CT(t,o,p,M,h);g=LT(h,t.offset,t.position)}else{if(!v)return null;var k=tI({viewBox:v,position:o,offset:t.offset,parentViewBox:qu(a)?void 0:a,clamp:!0});g=Nn(Nn({x:k.x,y:k.y,textAnchor:k.horizontalAnchor,verticalAnchor:k.verticalAnchor},k.width!==void 0?{width:k.width}:{}),k.height!==void 0?{height:k.height}:{})}return wt.createElement(Ke,{zIndex:t.zIndex},wt.createElement(_n,hr({ref:f,className:ee("recharts-label",u)},M,g,{textAnchor:zu(M.textAnchor)?M.textAnchor:g.textAnchor,breakAll:s}),p))}mr.displayName="Label";var AT=(e,t,r)=>{if(!e)return null;var a={viewBox:t,labelRef:r};return e===!0?wt.createElement(mr,hr({key:"label-implicit"},a)):tt(e)?wt.createElement(mr,hr({key:"label-implicit",value:e},a)):Uu(e)?e.type===mr?oI(e,Nn({key:"label-implicit"},a)):wt.createElement(mr,hr({key:"label-implicit",content:e},a)):Td(e)?wt.createElement(mr,hr({key:"label-implicit",content:e},a)):e&&typeof e=="object"?wt.createElement(mr,hr({},e,{key:"label-implicit"},a)):null};function fI(e){var{label:t,labelRef:r}=e,a=sI();return AT(t,a,r)||null}import*as gr from"react";import{createContext as dI,useContext as pI}from"react";var kT=["valueAccessor"],OT=["dataKey","clockWise","id","textBreakAll","zIndex"];function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Yb(t))return t},mI=dI(void 0),hI=mI.Provider,gI=dI(void 0),z4=gI.Provider;function DT(){return pI(mI)}function TT(){return pI(gI)}function Hu(e){var{valueAccessor:t=MT}=e,r=cI(e,kT),{dataKey:a,clockWise:o,id:n,textBreakAll:i,zIndex:l}=r,u=cI(r,OT),s=DT(),f=TT(),c=s||f;return!c||!c.length?null:gr.createElement(Ke,{zIndex:l??ce.label},gr.createElement(et,{className:"recharts-label-list"},c.map((d,m)=>{var h,p=ge(a)?t(d,m):Ie(d.payload,a),g=ge(n)?{}:{id:"".concat(n,"-").concat(m)};return gr.createElement(mr,Wu({key:"label-".concat(m)},Ae(d),u,g,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:p,textBreakAll:i,viewBox:d.viewBox,index:m,zIndex:0}))})))}Hu.displayName="LabelList";function vI(e){var{label:t}=e;return t?t===!0?gr.createElement(Hu,{key:"labelList-implicit"}):gr.isValidElement(t)||Td(t)?gr.createElement(Hu,{key:"labelList-implicit",content:t}):typeof t=="object"?gr.createElement(Hu,Wu({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}import*as xI from"react";function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{cx:t,cy:r,r:a,className:o}=e,n=ee("recharts-dot",o);return H(t)&&H(r)&&H(a)?xI.createElement("circle",Rd({},He(e),Fa(e),{className:n,cx:t,cy:r,r:a})):null};var RT={radiusAxis:{},angleAxis:{}},yI=le({name:"polarAxis",initialState:RT,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:$4,removeRadiusAxis:X4,addAngleAxis:Y4,removeAngleAxis:Z4}=yI.actions,bI=yI.reducer;function II(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}import{Children as t6}from"react";var Gu=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;import{useLayoutEffect as wI,useRef as _T}from"react";function CI(e){var{tooltipEntrySettings:t}=e,r=ne(),a=ve(),o=_T(null);return wI(()=>{a||(o.current===null?r(Ly(t)):o.current!==t&&r(Sy({prev:o.current,next:t})),o.current=t)},[t,r,a]),wI(()=>()=>{o.current&&(r(Py(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as LI,useRef as NT}from"react";function SI(e){var{legendPayload:t}=e,r=ne(),a=ve(),o=NT(null);return LI(()=>{a||(o.current===null?r(eg(t)):o.current!==t&&r(tg({prev:o.current,next:t})),o.current=t)},[r,a,t]),LI(()=>()=>{o.current&&(r(rg(o.current)),o.current=null)},[r]),null}import*as kI from"react";import{createContext as FT,useContext as x6}from"react";import*as Ku from"react";var _d,BT=()=>{var[e]=Ku.useState(()=>ar("uid-"));return e},PI=(_d=Ku.useId)!==null&&_d!==void 0?_d:BT;function AI(e,t){var r=PI();return t||(e?"".concat(e,"-").concat(r):r)}var jT=FT(void 0),OI=e=>{var{id:t,type:r,children:a}=e,o=AI("recharts-".concat(r),t);return kI.createElement(jT.Provider,{value:o},a(o))};import{memo as WT,useLayoutEffect as _I,useRef as VT}from"react";var zT={cartesianItems:[],polarItems:[]},EI=le({name:"graphicalItems",initialState:zT,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:fe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ge(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=a)},prepare:fe()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ge(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:fe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:fe()},removePolarGraphicalItem:{reducer(e,t){var r=Ge(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:fe()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ge(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=a)},prepare:fe()}}}),{addCartesianGraphicalItem:MI,replaceCartesianGraphicalItem:DI,removeCartesianGraphicalItem:TI,addPolarGraphicalItem:UT,removePolarGraphicalItem:qT,replacePolarGraphicalItem:HT}=EI.actions,RI=EI.reducer;var GT=e=>{var t=ne(),r=VT(null);return _I(()=>{r.current===null?t(MI(e)):r.current!==e&&t(DI({prev:r.current,next:e})),r.current=e},[t,e]),_I(()=>()=>{r.current&&(t(TI(r.current)),r.current=null)},[t]),null},NI=WT(GT);import*as Bn from"react";import{cloneElement as QT,isValidElement as eR}from"react";var KT=["points"];function BI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Nd(e){for(var t=1;t{var g,v,L=Nd(Nd(Nd({r:3},i),c),{},{index:p,cx:(g=h.x)!==null&&g!==void 0?g:void 0,cy:(v=h.y)!==null&&v!==void 0?v:void 0,dataKey:n,value:h.value,payload:h.payload,points:t});return Bn.createElement(tR,{key:"dot-".concat(p),option:r,dotProps:L,className:o})}),m={};return l&&u!=null&&(m.clipPath="url(#clipPath-".concat(f?"":"dots-").concat(u,")")),Bn.createElement(Ke,{zIndex:s},Bn.createElement(et,$u({className:a},m),d))}import*as Fn from"react";import{cloneElement as fR,isValidElement as cR}from"react";function jI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function zI(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var KI=E([GI,Xe,Ye],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var ko=()=>K(KI),$I=()=>K(qy);function XI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Fd(e){for(var t=1;t{var{point:t,childIndex:r,mainColor:a,activeDot:o,dataKey:n,clipPath:i}=e;if(o===!1||t.x==null||t.y==null)return null;var l={index:r,dataKey:n,cx:t.x,cy:t.y,r:4,fill:a??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},u=Fd(Fd(Fd({},l),br(o)),Fa(o)),s;return cR(o)?s=fR(o,u):typeof o=="function"?s=o(u):s=Fn.createElement(Vu,u),Fn.createElement(et,{className:"recharts-active-dot",clipPath:i},s)};function jd(e){var{points:t,mainColor:r,activeDot:a,itemDataKey:o,clipPath:n,zIndex:i=ce.activeDot}=e,l=K(ha),u=$I();if(t==null||u==null)return null;var s=t.find(f=>u.includes(f.payload));return ge(s)?null:Fn.createElement(Ke,{zIndex:i},Fn.createElement(dR,{point:s,childIndex:Number(l),mainColor:r,dataKey:o,activeDot:a,clipPath:n}))}import{useEffect as pR}from"react";var YI=e=>{var{chartData:t}=e,r=ne(),a=ve();return pR(()=>a?()=>{}:(r(Od(t)),()=>{r(Od(void 0))}),[t,r,a]),null};var ZI={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},JI=le({name:"brush",initialState:ZI,reducers:{setBrushSettings(e,t){return t.payload==null?ZI:t.payload}}}),{setBrushSettings:b8}=JI.actions,QI=JI.reducer;function mR(e){return(e%180+180)%180}var ew=function(t){var{width:r,height:a}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=mR(o),i=n*Math.PI/180,l=Math.atan(a/r),u=i>l&&i{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ge(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ge(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ge(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:L8,removeDot:S8,addArea:P8,removeArea:A8,addLine:k8,removeLine:O8}=tw.actions,rw=tw.reducer;import*as jn from"react";import{createContext as gR,useContext as D8,useState as vR}from"react";var xR=gR(void 0),aw=e=>{var{children:t}=e,[r]=vR("".concat(ar("recharts"),"-clip")),a=ko();if(a==null)return null;var{x:o,y:n,width:i,height:l}=a;return jn.createElement(xR.Provider,{value:r},jn.createElement("defs",null,jn.createElement("clipPath",{id:r},jn.createElement("rect",{x:o,y:n,height:l,width:i}))),t)};import*as he from"react";import{useState as gw,useRef as MR,useCallback as DR,forwardRef as vw,useImperativeHandle as TR,useEffect as RR}from"react";function Xu(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],a=0;ae*o)return!1;var n=r();return e*(t-e*n/2-a)>=0&&e*(t+e*n/2-o)<=0}function iw(e,t){return Xu(e,t+1)}function lw(e,t,r,a,o){for(var n=(a||[]).slice(),{start:i,end:l}=t,u=0,s=1,f=i,c=function(){var h=a?.[u];if(h===void 0)return{v:Xu(a,s)};var p=u,g,v=()=>(g===void 0&&(g=r(h,p)),g),L=h.coordinate,w=u===0||va(e,L,v,f,l);w||(u=0,f=i,s+=1),w&&(f=L+e*(v()/2+o),u+=s)},d;s<=n.length;)if(d=c(),d)return d.v;return[]}function uw(e,t,r,a,o){var n=(a||[]).slice(),i=n.length;if(i===0)return[];for(var{start:l,end:u}=t,s=1;s<=i;s++){for(var f=(i-1)%s,c=l,d=!0,m=function(){var A=a[p];if(A==null)return 0;var S=p,O,M=()=>(O===void 0&&(O=r(A,S)),O),k=A.coordinate,j=p===f||va(e,k,M,c,u);if(!j)return d=!1,1;j&&(c=k+e*(M()/2+o))},h,p=f;p(p===void 0&&(p=r(m,d)),p);if(d===i-1){var v=e*(h.coordinate+e*g()/2-u);n[d]=h=Je(Je({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else n[d]=h=Je(Je({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var L=va(e,h.tickCoord,g,l,u);L&&(u=h.tickCoord-e*(g()/2+o),n[d]=Je(Je({},h),{},{isShow:!0}))}},f=i-1;f>=0;f--)s(f);return n}function CR(e,t,r,a,o,n){var i=(a||[]).slice(),l=i.length,{start:u,end:s}=t;if(n){var f=a[l-1];if(f!=null){var c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);if(i[l-1]=f=Je(Je({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate}),f.tickCoord!=null){var m=va(e,f.tickCoord,()=>c,u,s);m&&(s=f.tickCoord-e*(c/2+o),i[l-1]=Je(Je({},f),{},{isShow:!0}))}}}for(var h=n?l-1:l,p=function(L){var w=i[L];if(w==null)return 1;var A=w,S,O=()=>(S===void 0&&(S=r(w,L)),S);if(L===0){var M=e*(A.coordinate-e*O()/2-u);i[L]=A=Je(Je({},A),{},{tickCoord:M<0?A.coordinate-M*e:A.coordinate})}else i[L]=A=Je(Je({},A),{},{tickCoord:A.coordinate});if(A.tickCoord!=null){var k=va(e,A.tickCoord,O,u,s);k&&(u=A.tickCoord+e*(O()/2+o),i[L]=Je(Je({},A),{},{isShow:!0}))}},g=0;g{var M=typeof s=="function"?s(S.value,O):S.value;return h==="width"?ow(ga(M,{fontSize:t,letterSpacing:r}),p,c):ga(M,{fontSize:t,letterSpacing:r})[h]},v=o[0],L=o[1],w=o.length>=2&&v!=null&&L!=null?Re(L.coordinate-v.coordinate):1,A=nw(n,w,h);return u==="equidistantPreserveStart"?lw(w,A,g,o,i):u==="equidistantPreserveEnd"?uw(w,A,g,o,i):(u==="preserveStart"||u==="preserveStartEnd"?m=CR(w,A,g,o,i,u==="preserveStartEnd"):m=wR(w,A,g,o,i),m.filter(S=>S.isShow))}var fw=e=>{var{ticks:t,label:r,labelGapWithTick:a=5,tickSize:o=0,tickMargin:n=0}=e,i=0;if(t){Array.from(t).forEach(f=>{if(f){var c=f.getBoundingClientRect();c.width>i&&(i=c.width)}});var l=r?r.getBoundingClientRect().width:0,u=o+n,s=i+u+l+(r?a:0);return Math.round(s)}return 0};var LR={xAxis:{},yAxis:{}},cw=le({name:"renderedTicks",initialState:LR,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:a,ticks:o}=t.payload;e[r][a]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:a}=t.payload;delete e[r][a]}}}),{setRenderedTicks:dw,removeRenderedTicks:pw}=cw.actions,mw=cw.reducer;var SR=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function PR(e,t){if(e==null)return{};var r,a,o=AR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{if(a==null||r==null)return ht;var n=t.map(i=>({value:i.value,coordinate:i.coordinate,offset:i.offset,index:i.index}));return o(dw({ticks:n,axisId:a,axisType:r})),()=>{o(pw({axisId:a,axisType:r}))}},[o,t,a,r]),null}var UR=vw((e,t)=>{var{ticks:r=[],tick:a,tickLine:o,stroke:n,tickFormatter:i,unit:l,padding:u,tickTextProps:s,orientation:f,mirror:c,x:d,y:m,width:h,height:p,tickSize:g,tickMargin:v,fontSize:L,letterSpacing:w,getTicksConfig:A,events:S,axisType:O,axisId:M}=e,k=zn(Se(Se({},A),{},{ticks:r}),L,w),j=He(A),F=br(a),W=zu(j.textAnchor)?j.textAnchor:BR(f,c),B=FR(f,c),Y={};typeof o=="object"&&(Y=o);var Z=Se(Se({},j),{},{fill:"none"},Y),te=k.map(P=>Se({entry:P},NR(P,d,m,h,p,f,g,c,v))),x=te.map(P=>{var{entry:I,line:y}=P;return he.createElement(et,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(I.value,"-").concat(I.coordinate,"-").concat(I.tickCoord)},o&&he.createElement("line",xa({},Z,y,{className:ee("recharts-cartesian-axis-tick-line",mt(o,"className"))})))}),b=te.map((P,I)=>{var y,C,{entry:D,tick:T}=P,N=Se(Se(Se(Se({verticalAnchor:B},j),{},{textAnchor:W,stroke:"none",fill:n},T),{},{index:I,payload:D,visibleTicksCount:k.length,tickFormatter:i,padding:u},s),{},{angle:(y=(C=s?.angle)!==null&&C!==void 0?C:j.angle)!==null&&y!==void 0?y:0}),U=Se(Se({},N),F);return he.createElement(et,xa({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(D.value,"-").concat(D.coordinate,"-").concat(D.tickCoord)},_p(S,D,I)),a&&he.createElement(jR,{option:a,tickProps:U,value:"".concat(typeof i=="function"?i(D.value,I):D.value).concat(l||"")}))});return he.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},he.createElement(zR,{ticks:k,axisId:M,axisType:O}),b.length>0&&he.createElement(Ke,{zIndex:ce.label},he.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},b)),x.length>0&&he.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},x))}),qR=vw((e,t)=>{var{axisLine:r,width:a,height:o,className:n,hide:i,ticks:l,axisType:u,axisId:s}=e,f=PR(e,SR),[c,d]=gw(""),[m,h]=gw(""),p=MR(null);TR(t,()=>({getCalculatedWidth:()=>{var v;return fw({ticks:p.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=DR(v=>{if(v){var L=v.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=L;var w=L[0];if(w){var A=window.getComputedStyle(w),S=A.fontSize,O=A.letterSpacing;(S!==c||O!==m)&&(d(S),h(O))}}},[c,m]);return i||a!=null&&a<=0||o!=null&&o<=0?null:he.createElement(Ke,{zIndex:e.zIndex},he.createElement(et,{className:ee("recharts-cartesian-axis",n)},he.createElement(_R,{x:e.x,y:e.y,width:a,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:He(e)}),he.createElement(UR,{ref:g,axisType:u,events:f,fontSize:c,getTicksConfig:e,height:e.height,letterSpacing:m,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:s}),he.createElement(uI,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},he.createElement(fI,{label:e.label,labelRef:e.labelRef}),e.children)))}),zd=he.forwardRef((e,t)=>{var r=we(e,Nr);return he.createElement(qR,xa({},r,{ref:t}))});zd.displayName="CartesianAxis";import*as Pe from"react";var HR=["x1","y1","x2","y2","key"],WR=["offset"],VR=["xAxisId","yAxisId"],GR=["xAxisId","yAxisId"];function xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Qe(e){for(var t=1;t{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:a,y:o,width:n,height:i,ry:l}=e;return Pe.createElement("rect",{x:a,y:o,ry:l,width:n,height:i,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function yw(e){var{option:t,lineItemProps:r}=e,a;if(Pe.isValidElement(t))a=Pe.cloneElement(t,r);else if(typeof t=="function")a=t(r);else{var o,{x1:n,y1:i,x2:l,y2:u,key:s}=r,f=Yu(r,HR),c=(o=He(f))!==null&&o!==void 0?o:{},{offset:d}=c,m=Yu(c,WR);a=Pe.createElement("line",ya({},m,{x1:n,y1:i,x2:l,y2:u,fill:"none",key:s}))}return a}function JR(e){var{x:t,width:r,horizontal:a=!0,horizontalPoints:o}=e;if(!a||!o||!o.length)return null;var{xAxisId:n,yAxisId:i}=e,l=Yu(e,VR),u=o.map((s,f)=>{var c=Qe(Qe({},l),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(f),index:f});return Pe.createElement(yw,{key:"line-".concat(f),option:a,lineItemProps:c})});return Pe.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function QR(e){var{y:t,height:r,vertical:a=!0,verticalPoints:o}=e;if(!a||!o||!o.length)return null;var{xAxisId:n,yAxisId:i}=e,l=Yu(e,GR),u=o.map((s,f)=>{var c=Qe(Qe({},l),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(f),index:f});return Pe.createElement(yw,{option:a,lineItemProps:c,key:"line-".concat(f)})});return Pe.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function e1(e){var{horizontalFill:t,fillOpacity:r,x:a,y:o,width:n,height:i,horizontalPoints:l,horizontal:u=!0}=e;if(!u||!t||!t.length||l==null)return null;var s=l.map(c=>Math.round(c+o-o)).sort((c,d)=>c-d);o!==s[0]&&s.unshift(0);var f=s.map((c,d)=>{var m=s[d+1],h=m==null,p=h?o+i-c:m-c;if(p<=0)return null;var g=d%t.length;return Pe.createElement("rect",{key:"react-".concat(d),y:c,x:a,height:p,width:n,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Pe.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function t1(e){var{vertical:t=!0,verticalFill:r,fillOpacity:a,x:o,y:n,width:i,height:l,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var s=u.map(c=>Math.round(c+o-o)).sort((c,d)=>c-d);o!==s[0]&&s.unshift(0);var f=s.map((c,d)=>{var m=s[d+1],h=m==null,p=h?o+i-c:m-c;if(p<=0)return null;var g=d%r.length;return Pe.createElement("rect",{key:"react-".concat(d),x:c,y:n,width:p,height:l,stroke:"none",fill:r[g],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return Pe.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var r1=(e,t)=>{var{xAxis:r,width:a,height:o,offset:n}=e;return vf(zn(Qe(Qe(Qe({},Nr),r),{},{ticks:xf(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),n.left,n.left+n.width,t)},a1=(e,t)=>{var{yAxis:r,width:a,height:o,offset:n}=e;return vf(zn(Qe(Qe(Qe({},Nr),r),{},{ticks:xf(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),n.top,n.top+n.height,t)},o1={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ce.grid};function Zu(e){var t=tl(),r=rl(),a=el(),o=Qe(Qe({},we(e,o1)),{},{x:H(e.x)?e.x:a.left,y:H(e.y)?e.y:a.top,width:H(e.width)?e.width:a.width,height:H(e.height)?e.height:a.height}),{xAxisId:n,yAxisId:i,x:l,y:u,width:s,height:f,syncWithTicks:c,horizontalValues:d,verticalValues:m}=o,h=ve(),p=K(j=>nd(j,"xAxis",n,h)),g=K(j=>nd(j,"yAxis",i,h));if(!ut(s)||!ut(f)||!H(l)||!H(u))return null;var v=o.verticalCoordinatesGenerator||r1,L=o.horizontalCoordinatesGenerator||a1,{horizontalPoints:w,verticalPoints:A}=o;if((!w||!w.length)&&typeof L=="function"){var S=d&&d.length,O=L({yAxis:g?Qe(Qe({},g),{},{ticks:S?d:g.ticks}):void 0,width:t??s,height:r??f,offset:a},S?!0:c);$a(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(w=O)}if((!A||!A.length)&&typeof v=="function"){var M=m&&m.length,k=v({xAxis:p?Qe(Qe({},p),{},{ticks:M?m:p.ticks}):void 0,width:t??s,height:r??f,offset:a},M?!0:c);$a(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(A=k)}return Pe.createElement(Ke,{zIndex:o.zIndex},Pe.createElement("g",{className:"recharts-cartesian-grid"},Pe.createElement(ZR,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),Pe.createElement(e1,ya({},o,{horizontalPoints:w})),Pe.createElement(t1,ya({},o,{verticalPoints:A})),Pe.createElement(JR,ya({},o,{offset:a,horizontalPoints:w,xAxis:p,yAxis:g})),Pe.createElement(QR,ya({},o,{offset:a,verticalPoints:A,xAxis:p,yAxis:g}))))}Zu.displayName="CartesianGrid";var n1={},bw=le({name:"errorBars",initialState:n1,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:a,next:o}=t.payload;e[r]&&(e[r]=e[r].map(n=>n.dataKey===a.dataKey&&n.direction===a.direction?o:n))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==a.dataKey||o.direction!==a.direction))}}}),{addErrorBar:DZ,replaceErrorBar:TZ,removeErrorBar:RZ}=bw.actions,Iw=bw.reducer;import*as Ud from"react";function qd(e,t){var r,a,o=K(s=>Jt(s,e)),n=K(s=>Qt(s,t)),i=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Oe.allowDataOverflow,l=(a=n?.allowDataOverflow)!==null&&a!==void 0?a:Ac.allowDataOverflow,u=i||l;return{needClip:u,needClipX:i,needClipY:l}}function ww(e){var{xAxisId:t,yAxisId:r,clipPathId:a}=e,o=ko(),{needClipX:n,needClipY:i,needClip:l}=qd(t,r);if(!l||!o)return null;var{x:u,y:s,width:f,height:c}=o;return Ud.createElement("clipPath",{id:"clipPath-".concat(a)},Ud.createElement("rect",{x:n?u:u-f/2,y:i?s:s-c/2,width:n?f:f*2,height:i?c:c*2}))}function Cw(e){var t=br(e),r=3,a=2;if(t!=null){var{r:o,strokeWidth:n}=t,i=Number(o),l=Number(n);return(Number.isNaN(i)||i<0)&&(i=r),(Number.isNaN(l)||l<0)&&(l=a),{r:i,strokeWidth:l}}return{r,strokeWidth:a}}import*as J from"react";import{PureComponent as v1,useCallback as Tw,useMemo as x1,useRef as Rw,useState as y1}from"react";function Ju(e,t){var r,a;return(r=(a=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||a===void 0?void 0:a.xAxisId)!==null&&r!==void 0?r:Bd}function Qu(e,t){var r,a;return(r=(a=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||a===void 0?void 0:a.yAxisId)!==null&&r!==void 0?r:Bd}var Lw=(e,t,r)=>ld(e,"xAxis",Ju(e,t),r),Sw=(e,t,r)=>id(e,"xAxis",Ju(e,t),r),Pw=(e,t,r)=>ld(e,"yAxis",Qu(e,t),r),Aw=(e,t,r)=>id(e,"yAxis",Qu(e,t),r),i1=E([se,Lw,Pw,Sw,Aw],(e,t,r,a,o)=>st(e,"xAxis")?Wa(t,a,!1):Wa(r,o,!1)),l1=(e,t)=>t,kw=E([Mc,l1],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),Ow=e=>{var t=se(e),r=st(t,"xAxis");return r?"yAxis":"xAxis"},u1=(e,t)=>{var r=Ow(e);return r==="yAxis"?Qu(e,t):Ju(e,t)},s1=(e,t,r)=>jc(e,Ow(e),u1(e,t),r),f1=E([kw,s1],(e,t)=>{var r;if(!(e==null||t==null)){var{stackId:a}=e,o=to(e);if(!(a==null||o==null)){var n=(r=t[a])===null||r===void 0?void 0:r.stackedData,i=n?.find(l=>l.key===o);if(i!=null)return i.map(l=>[l[0],l[1]])}}}),Ew=E([se,Lw,Pw,Sw,Aw,f1,Iv,i1,kw,Ov],(e,t,r,a,o,n,i,l,u,s)=>{var{chartData:f,dataStartIndex:c,dataEndIndex:d}=i;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||a==null||o==null||a.length===0||o.length===0||l==null)){var{data:m}=u,h;if(m&&m.length>0?h=m:h=f?.slice(c,d+1),h!=null)return Mw({layout:e,xAxis:t,yAxis:r,xAxisTicks:a,yAxisTicks:o,dataStartIndex:c,areaSettings:u,stackedData:n,displayedData:h,chartBaseValue:s,bandSize:l})}});var c1=["id"],d1=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,stroke:a,fill:o,legendType:n,hide:i}=e;return[{inactive:i,dataKey:t,type:n,color:es(a,o),value:Cf(r,t),payload:e}]},I1=J.memo(e=>{var{dataKey:t,data:r,stroke:a,strokeWidth:o,fill:n,name:i,hide:l,unit:u,tooltipType:s,id:f}=e,c={dataDefinedOnItem:r,getPosition:ht,settings:{stroke:a,strokeWidth:o,fill:n,dataKey:t,nameKey:void 0,name:Cf(i,t),hide:l,type:s,color:es(a,n),unit:u,graphicalItemId:f}};return J.createElement(CI,{tooltipEntrySettings:c})});function w1(e){var{clipPathId:t,points:r,props:a}=e,{needClip:o,dot:n,dataKey:i}=a,l=He(a);return J.createElement(FI,{points:r,dot:n,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:i,baseProps:l,needClip:o,clipPathId:t})}function C1(e){var{showLabels:t,children:r,points:a}=e,o=a.map(n=>{var i,l,u={x:(i=n.x)!==null&&i!==void 0?i:0,y:(l=n.y)!==null&&l!==void 0?l:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Oo(Oo({},u),{},{value:n.value,payload:n.payload,parentViewBox:void 0,viewBox:u,fill:void 0})});return J.createElement(hI,{value:t?o:void 0},r)}function _w(e){var{points:t,baseLine:r,needClip:a,clipPathId:o,props:n}=e,{layout:i,type:l,stroke:u,connectNulls:s,isRange:f}=n,{id:c}=n,d=Nw(n,c1),m=He(d),h=Ae(d);return J.createElement(J.Fragment,null,t?.length>1&&J.createElement(et,{clipPath:a?"url(#clipPath-".concat(o,")"):void 0},J.createElement(Za,ba({},h,{id:c,points:t,connectNulls:s,type:l,baseLine:r,layout:i,stroke:"none",className:"recharts-area-area"})),u!=="none"&&J.createElement(Za,ba({},m,{className:"recharts-area-curve",layout:i,type:l,connectNulls:s,fill:"none",points:t})),u!=="none"&&f&&Array.isArray(r)&&J.createElement(Za,ba({},m,{className:"recharts-area-curve",layout:i,type:l,connectNulls:s,fill:"none",points:r}))),J.createElement(w1,{points:t,props:d,clipPathId:o}))}function L1(e){var t,r,{alpha:a,baseLine:o,points:n,strokeWidth:i}=e,l=(t=n[0])===null||t===void 0?void 0:t.y,u=(r=n[n.length-1])===null||r===void 0?void 0:r.y;if(!Q(l)||!Q(u))return null;var s=a*Math.abs(l-u),f=Math.max(...n.map(c=>c.x||0));return H(o)?f=Math.max(o,f):o&&Array.isArray(o)&&o.length&&(f=Math.max(...o.map(c=>c.x||0),f)),H(f)?J.createElement("rect",{x:0,y:lc.y||0));return H(o)?f=Math.max(o,f):o&&Array.isArray(o)&&o.length&&(f=Math.max(...o.map(c=>c.y||0),f)),H(f)?J.createElement("rect",{x:l({points:i,baseLine:l}),[i,l]),p=cl(h,"recharts-area-"),g=al(),[v,L]=y1(!1),w=!v,A=Tw(()=>{typeof m=="function"&&m(),L(!1)},[m]),S=Tw(()=>{typeof d=="function"&&d(),L(!0)},[d]);if(g==null)return null;var O=o.current,M=n.current;return J.createElement(C1,{showLabels:w,points:i},a.children,J.createElement(fl,{animationId:p,begin:s,duration:f,isActive:u,easing:c,onAnimationEnd:A,onAnimationStart:S,key:p},k=>{if(O){var j=O.length/i.length,F=k===1?i:i.map((B,Y)=>{var Z=Math.floor(Y*j);if(O[Z]){var te=O[Z];return Oo(Oo({},B),{},{x:Pt(te.x,B.x,k),y:Pt(te.y,B.y,k)})}return B}),W;return H(l)?W=Pt(M,l,k):ge(l)||$e(l)?W=Pt(M,0,k):W=l.map((B,Y)=>{var Z=Math.floor(Y*j);if(Array.isArray(M)&&M[Z]){var te=M[Z];return Oo(Oo({},B),{},{x:Pt(te.x,B.x,k),y:Pt(te.y,B.y,k)})}return B}),k>0&&(o.current=F,n.current=W),J.createElement(_w,{points:F,baseLine:W,needClip:t,clipPathId:r,props:a})}return k>0&&(o.current=i,n.current=l),J.createElement(et,null,u&&J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(r)},J.createElement(P1,{alpha:k,points:i,baseLine:l,layout:g,strokeWidth:a.strokeWidth}))),J.createElement(et,{clipPath:"url(#animationClipPath-".concat(r,")")},J.createElement(_w,{points:i,baseLine:l,needClip:t,clipPathId:r,props:a})))}),J.createElement(vI,{label:a.label}))}function k1(e){var{needClip:t,clipPathId:r,props:a}=e,o=Rw(null),n=Rw();return J.createElement(A1,{needClip:t,clipPathId:r,props:a,previousPointsRef:o,previousBaselineRef:n})}var Hd=class extends v1{render(){var{hide:t,dot:r,points:a,className:o,top:n,left:i,needClip:l,xAxisId:u,yAxisId:s,width:f,height:c,id:d,baseLine:m,zIndex:h}=this.props;if(t)return null;var p=ee("recharts-area",o),g=d,{r:v,strokeWidth:L}=Cw(r),w=Gu(r),A=v*2+L,S=l?"url(#clipPath-".concat(w?"":"dots-").concat(g,")"):void 0;return J.createElement(Ke,{zIndex:h},J.createElement(et,{className:p},l&&J.createElement("defs",null,J.createElement(ww,{clipPathId:g,xAxisId:u,yAxisId:s}),!w&&J.createElement("clipPath",{id:"clipPath-dots-".concat(g)},J.createElement("rect",{x:i-A/2,y:n-A/2,width:f+A,height:c+A}))),J.createElement(k1,{needClip:l,clipPathId:g,props:this.props})),J.createElement(jd,{points:a,mainColor:es(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}),this.props.isRange&&Array.isArray(m)&&J.createElement(jd,{points:m,mainColor:es(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}))}},O1={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ce.area};function E1(e){var t,{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:n,connectNulls:i,dot:l,fill:u,fillOpacity:s,hide:f,isAnimationActive:c,legendType:d,stroke:m,xAxisId:h,yAxisId:p}=e,g=Nw(e,d1),v=Vt(),L=Du(),{needClip:w}=qd(h,p),A=ve(),{points:S,isRange:O,baseLine:M}=(t=K(Y=>Ew(Y,e.id,A)))!==null&&t!==void 0?t:{},k=ko();if(v!=="horizontal"&&v!=="vertical"||k==null||L!=="AreaChart"&&L!=="ComposedChart")return null;var{height:j,width:F,x:W,y:B}=k;return!S||!S.length?null:J.createElement(Hd,ba({},g,{activeDot:r,animationBegin:a,animationDuration:o,animationEasing:n,baseLine:M,connectNulls:i,dot:l,fill:u,fillOpacity:s,height:j,hide:f,layout:v,isAnimationActive:c,isRange:O,legendType:d,needClip:w,points:S,stroke:m,width:F,left:W,top:B,xAxisId:h,yAxisId:p}))}var M1=(e,t,r,a,o)=>{var n=r??t;if(H(n))return n;var i=e==="horizontal"?o:a,l=i.scale.domain();if(i.type==="number"){var u=Math.max(l[0],l[1]),s=Math.min(l[0],l[1]);return n==="dataMin"?s:n==="dataMax"||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return n==="dataMin"?l[0]:n==="dataMax"?l[1]:l[0]};function Mw(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:a},stackedData:o,layout:n,chartBaseValue:i,xAxis:l,yAxis:u,displayedData:s,dataStartIndex:f,xAxisTicks:c,yAxisTicks:d,bandSize:m}=e,h=o&&o.length,p=M1(n,i,r,l,u),g=n==="horizontal",v=!1,L=s.map((A,S)=>{var O,M,k,j;if(h)j=o[f+S];else{var F=Ie(A,a);Array.isArray(F)?(j=F,v=!0):j=[p,F]}var W=(O=(M=j)===null||M===void 0?void 0:M[1])!==null&&O!==void 0?O:null,B=W==null||h&&!t&&Ie(A,a)==null;if(g){var Y;return{x:yf({axis:l,ticks:c,bandSize:m,entry:A,index:S}),y:B?null:(Y=u.scale.map(W))!==null&&Y!==void 0?Y:null,value:j,payload:A}}return{x:B?null:(k=l.scale.map(W))!==null&&k!==void 0?k:null,y:yf({axis:u,ticks:d,bandSize:m,entry:A,index:S}),value:j,payload:A}}),w;return h||v?w=L.map(A=>{var S,O=Array.isArray(A.value)?A.value[0]:null;if(g){var M;return{x:A.x,y:O!=null&&A.y!=null&&(M=u.scale.map(O))!==null&&M!==void 0?M:null,payload:A.payload}}return{x:O!=null&&(S=l.scale.map(O))!==null&&S!==void 0?S:null,y:A.y,payload:A.payload}}):w=g?u.scale.map(p):l.scale.map(p),{points:L,baseLine:w??0,isRange:v}}function D1(e){var t=we(e,O1),r=ve();return J.createElement(OI,{id:t.id,type:"area"},a=>J.createElement(J.Fragment,null,J.createElement(SI,{legendPayload:b1(t)}),J.createElement(I1,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:a}),J.createElement(NI,{type:"area",id:a,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Dh(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),J.createElement(E1,ba({},t,{id:a}))))}var Un=J.memo(D1,Cr);Un.displayName="Area";import*as vr from"react";import{useLayoutEffect as qw,useMemo as H1,useRef as W1}from"react";var T1=["domain","range"],R1=["domain","range"];function Bw(e,t){if(e==null)return{};var r,a,o=_1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{if(i!=null)return Uw(Uw({},n),{},{type:i})},[n,i]);return qw(()=>{l!=null&&(r.current===null?t(qI(l)):r.current!==l&&t(HI({prev:r.current,next:l})),r.current=l)},[l,t]),qw(()=>()=>{r.current&&(t(WI(r.current)),r.current=null)},[t]),null}var G1=e=>{var{xAxisId:t,className:r}=e,a=K(Uh),o=ve(),n="xAxis",i=K(v=>yy(v,n,t,o)),l=K(v=>vy(v,t)),u=K(v=>xy(v,t)),s=K(v=>Pc(v,t));if(l==null||u==null||s==null)return null;var{dangerouslySetInnerHTML:f,ticks:c,scale:d}=e,m=Vd(e,B1),{id:h,scale:p}=s,g=Vd(s,F1);return vr.createElement(zd,Wd({},m,g,{x:u.x,y:u.y,width:l.width,height:l.height,className:ee("recharts-".concat(n," ").concat(n),r),viewBox:a,ticks:i,axisType:n,axisId:t}))},K1={allowDataOverflow:Oe.allowDataOverflow,allowDecimals:Oe.allowDecimals,allowDuplicatedCategory:Oe.allowDuplicatedCategory,angle:Oe.angle,axisLine:Nr.axisLine,height:Oe.height,hide:!1,includeHidden:Oe.includeHidden,interval:Oe.interval,label:!1,minTickGap:Oe.minTickGap,mirror:Oe.mirror,orientation:Oe.orientation,padding:Oe.padding,reversed:Oe.reversed,scale:Oe.scale,tick:Oe.tick,tickCount:Oe.tickCount,tickLine:Nr.tickLine,tickSize:Nr.tickSize,type:Oe.type,niceTicks:Oe.niceTicks,xAxisId:0},$1=e=>{var t=we(e,K1);return vr.createElement(vr.Fragment,null,vr.createElement(V1,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),vr.createElement(G1,t))},ts=vr.memo($1,jw);ts.displayName="XAxis";import*as Pa from"react";import{forwardRef as F_}from"react";import*as r0 from"react";import{useRef as t_}from"react";var X1=(e,t)=>t,qn=E([X1,se,Ol,ke,pd,ct,Zy,me],ab);function Y1(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Hn(e){var t=e.currentTarget.getBoundingClientRect(),r,a;if(Y1(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,a=o.height>0?t.height/o.height:1}else{var n=e.currentTarget;r=n.offsetWidth>0?t.width/n.offsetWidth:1,a=n.offsetHeight>0?t.height/n.offsetHeight:1}var i=(l,u)=>({relativeX:Math.round((l-t.left)/r),relativeY:Math.round((u-t.top)/a)});return"touches"in e?Array.from(e.touches).map(l=>i(l.clientX,l.clientY)):i(e.clientX,e.clientY)}var Kd=De("mouseClick"),$d=ir();$d.startListening({actionCreator:Kd,effect:(e,t)=>{var r=e.payload,a=qn(t.getState(),Hn(r));a?.activeIndex!=null&&t.dispatch(Oy({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var rs=De("mouseMove"),Xd=ir(),Eo=null,Ia=null,Gd=null;Xd.startListening({actionCreator:rs,effect:(e,t)=>{var r=e.payload,a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n?.includes("mousemove");Eo!==null&&(cancelAnimationFrame(Eo),Eo=null),Ia!==null&&(typeof o!="number"||!i)&&(clearTimeout(Ia),Ia=null),Gd=Hn(r);var l=()=>{var u=t.getState(),s=En(u,u.tooltip.settings.shared);if(!Gd){Eo=null,Ia=null;return}if(s==="axis"){var f=qn(u,Gd);f?.activeIndex!=null?t.dispatch(Cu({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate})):t.dispatch(wu())}Eo=null,Ia=null};if(!i){l();return}o==="raf"?Eo=requestAnimationFrame(l):typeof o=="number"&&Ia===null&&(Ia=setTimeout(l,o))}});function Hw(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var Ww={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Vw=le({name:"rootProps",initialState:Ww,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Ww.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Gw=Vw.reducer,{updateOptions:Kw}=Vw.actions;var Z1=null,J1={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},$w=le({name:"polarOptions",initialState:Z1,reducers:J1}),{updatePolarOptions:d7}=$w.actions,Xw=$w.reducer;var Yd=De("keyDown"),Zd=De("focus"),Jd=De("blur"),Wn=ir(),Mo=null,wa=null,as=null;Wn.startListening({actionCreator:Yd,effect:(e,t)=>{as=e.payload,Mo!==null&&(cancelAnimationFrame(Mo),Mo=null);var r=t.getState(),{throttleDelay:a,throttledEvents:o}=r.eventSettings,n=o==="all"||o.includes("keydown");wa!==null&&(typeof a!="number"||!n)&&(clearTimeout(wa),wa=null);var i=()=>{try{var l=t.getState(),u=l.rootProps.accessibilityLayer!==!1;if(!u)return;var{keyboardInteraction:s}=l.tooltip,f=as;if(f!=="ArrowRight"&&f!=="ArrowLeft"&&f!=="Enter")return;var c=Co(s,Rr(l),Tr(l),ma(l)),d=c==null?-1:Number(c);if(!Number.isFinite(d)||d<0)return;var m=ct(l);if(f==="Enter"){var h=Tn(l,"axis","hover",String(s.index));t.dispatch(Mn({active:!s.active,activeIndex:s.index,activeCoordinate:h}));return}var p=by(l),g=p==="left-to-right"?1:-1,v=f==="ArrowRight"?1:-1,L=d+v*g;if(m==null||L>=m.length||L<0)return;var w=Tn(l,"axis","hover",String(L));t.dispatch(Mn({active:!0,activeIndex:L.toString(),activeCoordinate:w}))}finally{Mo=null,wa=null}};if(!n){i();return}a==="raf"?Mo=requestAnimationFrame(i):typeof a=="number"&&wa===null&&(i(),as=null,wa=setTimeout(()=>{as?i():(wa=null,Mo=null)},a))}});Wn.startListening({actionCreator:Zd,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var n="0",i=Tn(r,"axis","hover",String(n));t.dispatch(Mn({active:!0,activeIndex:n,activeCoordinate:i}))}}}});Wn.startListening({actionCreator:Jd,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Mn({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function os(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,a)=>{if(a==="currentTarget")return t;var o=Reflect.get(r,a);return typeof o=="function"?o.bind(r):o}})}var Ct=De("externalEvent"),ep=ir(),ns=new Map,Vn=new Map,Qd=new Map;ep.startListening({actionCreator:Ct,effect:(e,t)=>{var{handler:r,reactEvent:a}=e.payload;if(r!=null){var o=a.type,n=os(a);Qd.set(o,{handler:r,reactEvent:n});var i=ns.get(o);i!==void 0&&(cancelAnimationFrame(i),ns.delete(o));var l=t.getState(),{throttleDelay:u,throttledEvents:s}=l.eventSettings,f=s,c=f==="all"||f?.includes(o),d=Vn.get(o);d!==void 0&&(typeof u!="number"||!c)&&(clearTimeout(d),Vn.delete(o));var m=()=>{var g=Qd.get(o);try{if(!g)return;var{handler:v,reactEvent:L}=g,w=t.getState(),A={activeCoordinate:vd(w),activeDataKey:jy(w),activeIndex:ha(w),activeLabel:Mu(w),activeTooltipIndex:ha(w),isTooltipActive:xd(w)};v&&v(A,L)}finally{ns.delete(o),Vn.delete(o),Qd.delete(o)}};if(!c){m();return}if(u==="raf"){var h=requestAnimationFrame(m);ns.set(o,h)}else if(typeof u=="number"){if(!Vn.has(o)){m();var p=setTimeout(m,u);Vn.set(o,p)}}else m()}}});var Q1=E([pr],e=>e.tooltipItemPayloads),Yw=E([Q1,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var a=e.find(n=>n.settings.graphicalItemId===r);if(a!=null){var{getPosition:o}=a;if(o!=null)return o(t)}}});var tp=De("touchMove"),rp=ir(),Ca=null,Br=null,Zw=null,Gn=null;rp.startListening({actionCreator:tp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){Gn=os(r);var a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n.includes("touchmove");Ca!==null&&(cancelAnimationFrame(Ca),Ca=null),Br!==null&&(typeof o!="number"||!i)&&(clearTimeout(Br),Br=null),Zw=Array.from(r.touches).map(u=>Hn({clientX:u.clientX,clientY:u.clientY,currentTarget:r.currentTarget}));var l=()=>{if(Gn!=null){var u=t.getState(),s=En(u,u.tooltip.settings.shared);if(s==="axis"){var f,c=(f=Zw)===null||f===void 0?void 0:f[0];if(c==null){Ca=null,Br=null;return}var d=qn(u,c);d?.activeIndex!=null&&t.dispatch(Cu({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(s==="item"){var m,h=Gn.touches[0];if(document.elementFromPoint==null||h==null)return;var p=document.elementFromPoint(h.clientX,h.clientY);if(!p||!p.getAttribute)return;var g=p.getAttribute(Bh),v=(m=p.getAttribute(Fh))!==null&&m!==void 0?m:void 0,L=pa(u).find(S=>S.id===v);if(g==null||L==null||v==null)return;var{dataKey:w}=L,A=Yw(u,g,v);t.dispatch(ky({activeDataKey:w,activeIndex:g,activeCoordinate:A,activeGraphicalItemId:v}))}Ca=null,Br=null}};if(!i){l();return}o==="raf"?Ca=requestAnimationFrame(l):typeof o=="number"&&Br===null&&(l(),Gn=null,Br=setTimeout(()=>{Gn?l():(Br=null,Ca=null)},o))}}});var ap={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},Jw=le({name:"eventSettings",initialState:ap,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:Qw}=Jw.actions,e0=Jw.reducer;var e_=ki({brush:QI,cartesianAxis:VI,chartData:kb,errorBars:Iw,eventSettings:e0,graphicalItems:RI,layout:kh,legend:ag,options:Cb,polarAxis:bI,polarOptions:Xw,referenceElements:rw,renderedTicks:mw,rootProps:Gw,tooltip:Ey,zIndex:pb}),t0=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return fh({reducer:e_,preloadedState:t,middleware:a=>{var o;return a({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([$d.middleware,Xd.middleware,Wn.middleware,ep.middleware,rp.middleware])},enhancers:a=>{var o=a;return typeof a=="function"&&(o=a()),o.concat(pf({type:"raf"}))},devTools:Ot.devToolsEnabled&&{serialize:{replacer:Hw},name:"recharts-".concat(r)}})};function a0(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,o=ve(),n=t_(null);if(o)return r;n.current==null&&(n.current=t0(t,a));var i=Fo;return r0.createElement(lg,{context:i,store:n.current},r)}import{memo as r_,useEffect as a_}from"react";function o_(e){var{layout:t,margin:r}=e,a=ne(),o=ve();return a_(()=>{o||(a(Sh(t)),a(gf(r)))},[a,o,t,r]),null}var o0=r_(o_,Cr);import{useEffect as n_}from"react";function n0(e){var t=ne();return n_(()=>{t(Kw(e))},[t,e]),null}import{useEffect as i_,memo as l_}from"react";var u_=e=>{var t=ne();return i_(()=>{t(Qw(e))},[t,e]),null},i0=l_(u_,Cr);import*as xr from"react";import{forwardRef as T_}from"react";import*as Sa from"react";import{forwardRef as u0}from"react";import*as La from"react";import{useLayoutEffect as s_,useRef as f_}from"react";function l0(e){var{zIndex:t,isPanorama:r}=e,a=f_(null),o=ne();return s_(()=>(a.current&&o(cb({zIndex:t,element:a.current,isPanorama:r})),()=>{o(db({zIndex:t,isPanorama:r}))}),[o,t,r]),La.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function op(e){var{children:t,isPanorama:r}=e,a=K(nb);if(!a||a.length===0)return t;var o=a.filter(i=>i<0),n=a.filter(i=>i>0);return La.createElement(La.Fragment,null,o.map(i=>La.createElement(l0,{key:i,zIndex:i,isPanorama:r})),t,n.map(i=>La.createElement(l0,{key:i,zIndex:i,isPanorama:r})))}var c_=["children"];function d_(e,t){if(e==null)return{};var r,a,o=p_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var r=tl(),a=rl(),o=nl();if(!ut(r)||!ut(a))return null;var{children:n,otherAttributes:i,title:l,desc:u}=e,s,f;return i!=null&&(typeof i.tabIndex=="number"?s=i.tabIndex:s=o?0:void 0,typeof i.role=="string"?f=i.role:f=o?"application":void 0),Sa.createElement(vs,is({},i,{title:l,desc:u,role:f,tabIndex:s,width:r,height:a,style:m_,ref:t}),n)}),g_=e=>{var{children:t}=e,r=K(Kr);if(!r)return null;var{width:a,height:o,y:n,x:i}=r;return Sa.createElement(vs,{width:a,height:o,x:i,y:n},t)},np=u0((e,t)=>{var{children:r}=e,a=d_(e,c_),o=ve();return o?Sa.createElement(g_,null,Sa.createElement(op,{isPanorama:!0},r)):Sa.createElement(h_,is({ref:t},a),Sa.createElement(op,{isPanorama:!1},r))});import*as ye from"react";import{forwardRef as Kn,useCallback as Fe,useEffect as C_,useRef as c0,useState as ls}from"react";import{useEffect as v_,useState as x_}from"react";function s0(){var e=ne(),[t,r]=x_(null),a=K(Nh);return v_(()=>{if(t!=null){var o=t.getBoundingClientRect(),n=o.width/t.offsetWidth;Q(n)&&n!==a&&e(Ah(n))}},[t,e,a]),r}function f0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function y_(e){for(var t=1;t(Eb(),null);function us(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var S_=Kn((e,t)=>{var r,a,o=c0(null),[n,i]=ls({containerWidth:us((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:us((a=e.style)===null||a===void 0?void 0:a.height)}),l=Fe((s,f)=>{i(c=>{var d=Math.round(s),m=Math.round(f);return c.containerWidth===d&&c.containerHeight===m?c:{containerWidth:d,containerHeight:m}})},[]),u=Fe(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:f,height:c}=s.getBoundingClientRect();l(f,c);var d=h=>{var p=h[0];if(p!=null){var{width:g,height:v}=p.contentRect;l(g,v)}},m=new ResizeObserver(d);m.observe(s),o.current=m}},[t,l]);return C_(()=>()=>{var s=o.current;s?.disconnect()},[l]),ye.createElement(ye.Fragment,null,ye.createElement(Yr,{width:n.containerWidth,height:n.containerHeight}),ye.createElement("div",Fr({ref:u},e)))}),P_=Kn((e,t)=>{var{width:r,height:a}=e,[o,n]=ls({containerWidth:us(r),containerHeight:us(a)}),i=Fe((u,s)=>{n(f=>{var c=Math.round(u),d=Math.round(s);return f.containerWidth===c&&f.containerHeight===d?f:{containerWidth:c,containerHeight:d}})},[]),l=Fe(u=>{if(typeof t=="function"&&t(u),u!=null){var{width:s,height:f}=u.getBoundingClientRect();i(s,f)}},[t,i]);return ye.createElement(ye.Fragment,null,ye.createElement(Yr,{width:o.containerWidth,height:o.containerHeight}),ye.createElement("div",Fr({ref:l},e)))}),A_=Kn((e,t)=>{var{width:r,height:a}=e;return ye.createElement(ye.Fragment,null,ye.createElement(Yr,{width:r,height:a}),ye.createElement("div",Fr({ref:t},e)))}),k_=Kn((e,t)=>{var{width:r,height:a}=e;return typeof r=="string"||typeof a=="string"?ye.createElement(P_,Fr({},e,{ref:t})):typeof r=="number"&&typeof a=="number"?ye.createElement(A_,Fr({},e,{width:r,height:a,ref:t})):ye.createElement(ye.Fragment,null,ye.createElement(Yr,{width:r,height:a}),ye.createElement("div",Fr({ref:t},e)))});function O_(e){return e?S_:k_}var d0=Kn((e,t)=>{var{children:r,className:a,height:o,onClick:n,onContextMenu:i,onDoubleClick:l,onMouseDown:u,onMouseEnter:s,onMouseLeave:f,onMouseMove:c,onMouseUp:d,onTouchEnd:m,onTouchMove:h,onTouchStart:p,style:g,width:v,responsive:L,dispatchTouchEvents:w=!0}=e,A=c0(null),S=ne(),[O,M]=ls(null),[k,j]=ls(null),F=s0(),W=Go(),B=W?.width>0?W.width:v,Y=W?.height>0?W.height:o,Z=Fe(q=>{F(q),typeof t=="function"&&t(q),M(q),j(q),q!=null&&(A.current=q)},[F,t,M,j]),te=Fe(q=>{S(Kd(q)),S(Ct({handler:n,reactEvent:q}))},[S,n]),x=Fe(q=>{S(rs(q)),S(Ct({handler:s,reactEvent:q}))},[S,s]),b=Fe(q=>{S(wu()),S(Ct({handler:f,reactEvent:q}))},[S,f]),P=Fe(q=>{S(rs(q)),S(Ct({handler:c,reactEvent:q}))},[S,c]),I=Fe(()=>{S(Zd())},[S]),y=Fe(()=>{S(Jd())},[S]),C=Fe(q=>{S(Yd(q.key))},[S]),D=Fe(q=>{S(Ct({handler:i,reactEvent:q}))},[S,i]),T=Fe(q=>{S(Ct({handler:l,reactEvent:q}))},[S,l]),N=Fe(q=>{S(Ct({handler:u,reactEvent:q}))},[S,u]),U=Fe(q=>{S(Ct({handler:d,reactEvent:q}))},[S,d]),z=Fe(q=>{S(Ct({handler:p,reactEvent:q}))},[S,p]),V=Fe(q=>{w&&S(tp(q)),S(Ct({handler:h,reactEvent:q}))},[S,w,h]),oe=Fe(q=>{S(Ct({handler:m,reactEvent:q}))},[S,m]),R=O_(L);return ye.createElement(Pd.Provider,{value:O},ye.createElement(bp.Provider,{value:k},ye.createElement(R,{width:B??g?.width,height:Y??g?.height,className:ee("recharts-wrapper",a),style:y_({position:"relative",cursor:"default",width:B,height:Y},g),onClick:te,onContextMenu:D,onDoubleClick:T,onFocus:I,onBlur:y,onKeyDown:C,onMouseDown:N,onMouseEnter:x,onMouseLeave:b,onMouseMove:P,onMouseUp:U,onTouchEnd:oe,onTouchMove:V,onTouchStart:z,ref:Z},ye.createElement(L_,null),r)))});var E_=["width","height","responsive","children","className","style","compact","title","desc"];function M_(e,t){if(e==null)return{};var r,a,o=D_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{width:r,height:a,responsive:o,children:n,className:i,style:l,compact:u,title:s,desc:f}=e,c=M_(e,E_),d=He(c);return u?xr.createElement(xr.Fragment,null,xr.createElement(Yr,{width:r,height:a}),xr.createElement(np,{otherAttributes:d,title:s,desc:f},n)):xr.createElement(d0,{className:i,style:l,width:r,height:a,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},xr.createElement(np,{otherAttributes:d,title:s,desc:f,ref:t},xr.createElement(aw,null,n)))});function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;tg0.createElement(h0,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:q_,tooltipPayloadSearcher:Ib,categoricalChartProps:e,ref:t}));var W_=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),C0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),cs="-",v0=[],G_="arbitrary..",K_=e=>{let t=X_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return $_(i);let l=i.split(cs),u=l[0]===""&&l.length>1?1:0;return L0(l,u,t)},getConflictingClassGroupIds:(i,l)=>{if(l){let u=a[i],s=r[i];return u?s?W_(s,u):u:s||v0}return r[i]||v0}}},L0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let s=L0(e,t+1,n);if(s)return s}let i=r.validators;if(i===null)return;let l=t===0?e.join(cs):e.slice(t).join(cs),u=i.length;for(let s=0;se.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?G_+a:void 0})(),X_=e=>{let{theme:t,classGroups:r}=e;return Y_(r,t)},Y_=(e,t)=>{let r=C0();for(let a in e){let o=e[a];fp(o,r,a,t)}return r},fp=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){J_(e,t,r);return}if(typeof e=="function"){Q_(e,t,r,a);return}eN(e,t,r,a)},J_=(e,t,r)=>{let a=e===""?t:S0(t,e);a.classGroupId=r},Q_=(e,t,r,a)=>{if(tN(e)){fp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(V_(r,e))},eN=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let r=e,a=t.split(cs),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,rN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,i)=>{r[n]=i,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let i=r[n];if(i!==void 0)return i;if((i=a[n])!==void 0)return o(n,i),i},set(n,i){n in r?r[n]=i:o(n,i)}}},sp="!",x0=":",aN=[],y0=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),oN=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],i=0,l=0,u=0,s,f=o.length;for(let p=0;pu?s-u:void 0;return y0(n,m,d,h)};if(t){let o=t+x0,n=a;a=i=>i.startsWith(o)?n(i.slice(o.length)):y0(aN,!1,i,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},nN=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(i)):o.push(i)}return o.length>0&&(o.sort(),a.push(...o)),a}},iN=e=>({cache:rN(e.cacheSize),parseClassName:oN(e),sortModifiers:nN(e),postfixLookupClassGroupIds:lN(e),...K_(e)}),lN=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=t,l=[],u=e.trim().split(uN),s="";for(let f=u.length-1;f>=0;f-=1){let c=u[f],{isExternal:d,modifiers:m,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:g}=r(c);if(d){s=c+(s.length>0?" "+s:s);continue}let v=!!g,L;if(v){let M=p.substring(0,g);L=a(M);let k=L&&i[L]?a(p):void 0;k&&k!==L&&(L=k,v=!1)}else L=a(p);if(!L){if(!v){s=c+(s.length>0?" "+s:s);continue}if(L=a(p),!L){s=c+(s.length>0?" "+s:s);continue}v=!1}let w=m.length===0?"":m.length===1?m[0]:n(m).join(":"),A=h?w+sp:w,S=A+L;if(l.indexOf(S)>-1)continue;l.push(S);let O=o(L,v);for(let M=0;M0?" "+s:s)}return s},fN=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,i=u=>{let s=t.reduce((f,c)=>c(f),e());return r=iN(s),a=r.cache.get,o=r.cache.set,n=l,l(u)},l=u=>{let s=a(u);if(s)return s;let f=sN(u,r);return o(u,f),f};return n=i,(...u)=>n(fN(...u))},dN=[],je=e=>{let t=r=>r[e]||dN;return t.isThemeGetter=!0,t},A0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jr=e=>pN.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>!!e&&Number.isInteger(Number(e)),up=e=>e.endsWith("%")&&ae(e.slice(0,-1)),yr=e=>mN.test(e),O0=()=>!0,yN=e=>hN.test(e)&&!gN.test(e),cp=()=>!1,bN=e=>vN.test(e),IN=e=>xN.test(e),wN=e=>!$(e)&&!X(e),CN=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),LN=e=>zr(e,D0,cp),$=e=>A0.test(e),Aa=e=>zr(e,T0,yN),b0=e=>zr(e,DN,ae),SN=e=>zr(e,_0,O0),PN=e=>zr(e,R0,cp),I0=e=>zr(e,E0,cp),AN=e=>zr(e,M0,IN),ss=e=>zr(e,N0,bN),X=e=>k0.test(e),$n=e=>ka(e,T0),kN=e=>ka(e,R0),w0=e=>ka(e,E0),ON=e=>ka(e,D0),EN=e=>ka(e,M0),fs=e=>ka(e,N0,!0),MN=e=>ka(e,_0,!0),zr=(e,t,r)=>{let a=A0.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},ka=(e,t,r=!1)=>{let a=k0.exec(e);return a?a[1]?t(a[1]):r:!1},E0=e=>e==="position"||e==="percentage",M0=e=>e==="image"||e==="url",D0=e=>e==="length"||e==="size"||e==="bg-size",T0=e=>e==="length",DN=e=>e==="number",R0=e=>e==="family-name",_0=e=>e==="number"||e==="weight",N0=e=>e==="shadow";var TN=()=>{let e=je("color"),t=je("font"),r=je("text"),a=je("font-weight"),o=je("tracking"),n=je("leading"),i=je("breakpoint"),l=je("container"),u=je("spacing"),s=je("radius"),f=je("shadow"),c=je("inset-shadow"),d=je("text-shadow"),m=je("drop-shadow"),h=je("blur"),p=je("perspective"),g=je("aspect"),v=je("ease"),L=je("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...A(),X,$],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],k=()=>[X,$,u],j=()=>[jr,"full","auto",...k()],F=()=>[tr,"none","subgrid",X,$],W=()=>["auto",{span:["full",tr,X,$]},tr,X,$],B=()=>[tr,"auto",X,$],Y=()=>["auto","min","max","fr",X,$],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],x=()=>["auto",...k()],b=()=>[jr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],P=()=>[jr,"screen","full","dvw","lvw","svw","min","max","fit",...k()],I=()=>[jr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],y=()=>[e,X,$],C=()=>[...A(),w0,I0,{position:[X,$]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",ON,LN,{size:[X,$]}],N=()=>[up,$n,Aa],U=()=>["","none","full",s,X,$],z=()=>["",ae,$n,Aa],V=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[ae,up,w0,I0],q=()=>["","none",h,X,$],G=()=>["none",ae,X,$],_=()=>["none",ae,X,$],be=()=>[ae,X,$],re=()=>[jr,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yr],breakpoint:[yr],color:[O0],container:[yr],"drop-shadow":[yr],ease:["in","out","in-out"],font:[wN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yr],shadow:[yr],spacing:["px",ae],text:[yr],"text-shadow":[yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jr,$,X,g]}],container:["container"],"container-type":[{"@container":["","normal","size",X,$]}],"container-named":[CN],columns:[{columns:[ae,$,X,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[tr,"auto",X,$]}],basis:[{basis:[jr,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,jr,"auto","initial","none",$]}],grow:[{grow:["",ae,X,$]}],shrink:[{shrink:["",ae,X,$]}],order:[{order:[tr,"first","last","none",X,$]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:x()}],mx:[{mx:x()}],my:[{my:x()}],ms:[{ms:x()}],me:[{me:x()}],mbs:[{mbs:x()}],mbe:[{mbe:x()}],mt:[{mt:x()}],mr:[{mr:x()}],mb:[{mb:x()}],ml:[{ml:x()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[l,"screen",...b()]}],"min-w":[{"min-w":[l,"screen","none",...b()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",r,$n,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,MN,SN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",up,$]}],"font-family":[{font:[kN,PN,t]}],"font-features":[{"font-features":[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,X,$]}],"line-clamp":[{"line-clamp":[ae,"none",X,b0]}],leading:[{leading:[n,...k()]}],"list-image":[{"list-image":["none",X,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",X,Aa]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[ae,"auto",X,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[tr,X,$]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tr,X,$],radial:["",X,$],conic:[tr,X,$]},EN,AN]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,X,$]}],"outline-w":[{outline:["",ae,$n,Aa]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,fs,ss]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",c,fs,ss]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[ae,Aa]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",d,fs,ss]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[ae,X,$]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[X,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,$]}],filter:[{filter:["","none",X,$]}],blur:[{blur:q()}],brightness:[{brightness:[ae,X,$]}],contrast:[{contrast:[ae,X,$]}],"drop-shadow":[{"drop-shadow":["","none",m,fs,ss]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",ae,X,$]}],"hue-rotate":[{"hue-rotate":[ae,X,$]}],invert:[{invert:["",ae,X,$]}],saturate:[{saturate:[ae,X,$]}],sepia:[{sepia:["",ae,X,$]}],"backdrop-filter":[{"backdrop-filter":["","none",X,$]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[ae,X,$]}],"backdrop-contrast":[{"backdrop-contrast":[ae,X,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,X,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,X,$]}],"backdrop-invert":[{"backdrop-invert":["",ae,X,$]}],"backdrop-opacity":[{"backdrop-opacity":[ae,X,$]}],"backdrop-saturate":[{"backdrop-saturate":[ae,X,$]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,X,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",X,$]}],ease:[{ease:["linear","initial",v,X,$]}],delay:[{delay:[ae,X,$]}],animate:[{animate:["none",L,X,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,X,$]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[X,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],zoom:[{zoom:[tr,X,$]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,$]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[ae,$n,Aa,b0]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var B0=cN(TN);function lt(...e){return B0(ee(e))}import{jsx as Do}from"react/jsx-runtime";function F0({className:e,...t}){return Do("div",{"data-slot":"card",className:lt("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function j0({className:e,...t}){return Do("div",{"data-slot":"card-header",className:lt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function z0({className:e,...t}){return Do("div",{"data-slot":"card-title",className:lt("leading-none font-semibold",e),...t})}function U0({className:e,...t}){return Do("div",{"data-slot":"card-description",className:lt("text-sm text-muted-foreground",e),...t})}function q0({className:e,...t}){return Do("div",{"data-slot":"card-content",className:lt("px-6",e),...t})}function H0({className:e,...t}){return Do("div",{"data-slot":"card-footer",className:lt("flex items-center px-6 [.border-t]:pt-6",e),...t})}import*as Ur from"react";import{Fragment as FN,jsx as Rt,jsxs as Xn}from"react/jsx-runtime";var RN={light:"",dark:".dark"},_N={width:320,height:200},V0=Ur.createContext(null);function NN(){let e=Ur.useContext(V0);if(!e)throw new Error("useChart must be used within a ");return e}function G0({id:e,className:t,children:r,config:a,initialDimension:o=_N,...n}){let i=Ur.useId(),l=`chart-${e??i.replace(/:/g,"")}`;return Rt(V0.Provider,{value:{config:a},children:Xn("div",{"data-slot":"chart","data-chart":l,className:lt("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...n,children:[Rt(BN,{id:l,config:a}),Rt(Af,{initialDimension:o,children:r})]})})}var BN=({id:e,config:t})=>{let r=Object.entries(t).filter(([,a])=>a.theme??a.color);return r.length?Rt("style",{dangerouslySetInnerHTML:{__html:Object.entries(RN).map(([a,o])=>` -${o} [data-chart=${e}] { -${r.map(([n,i])=>{let l=i.theme?.[a]??i.color;return l?` --color-${n}: ${l};`:null}).join(` -`)} -} -`).join(` -`)}}):null},K0=Ed;function $0({active:e,payload:t,className:r,indicator:a="dot",hideLabel:o=!1,hideIndicator:n=!1,label:i,labelFormatter:l,labelClassName:u,formatter:s,color:f,nameKey:c,labelKey:d}){let{config:m}=NN(),h=Ur.useMemo(()=>{if(o||!t?.length)return null;let[g]=t,v=`${d??g?.dataKey??g?.name??"value"}`,L=W0(m,g,v),w=!d&&typeof i=="string"?m[i]?.label??i:L?.label;return l?Rt("div",{className:lt("font-medium",u),children:l(w,t)}):w?Rt("div",{className:lt("font-medium",u),children:w}):null},[i,l,t,o,u,m,d]);if(!e||!t?.length)return null;let p=t.length===1&&a!=="dot";return Xn("div",{className:lt("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[p?null:h,Rt("div",{className:"grid gap-1.5",children:t.filter(g=>g.type!=="none").map((g,v)=>{let L=`${c??g.name??g.dataKey??"value"}`,w=W0(m,g,L),A=f??g.payload?.fill??g.color;return Rt("div",{className:lt("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",a==="dot"&&"items-center"),children:s&&g?.value!==void 0&&g.name?s(g.value,g.name,g,v,g.payload):Xn(FN,{children:[w?.icon?Rt(w.icon,{}):!n&&Rt("div",{className:lt("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":a==="dot","w-1":a==="line","w-0 border-[1.5px] border-dashed bg-transparent":a==="dashed","my-0.5":p&&a==="dashed"}),style:{"--color-bg":A,"--color-border":A}}),Xn("div",{className:lt("flex flex-1 justify-between leading-none",p?"items-end":"items-center"),children:[Xn("div",{className:"grid gap-1.5",children:[p?h:null,Rt("span",{className:"text-muted-foreground",children:w?.label??g.name})]}),g.value!=null&&Rt("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof g.value=="number"?g.value.toLocaleString():String(g.value)})]})]})},v)})})]})}function W0(e,t,r){if(typeof t!="object"||t===null)return;let a="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:a&&r in a&&typeof a[r]=="string"&&(o=a[r]),o in e?e[o]:e[r]}import{jsx as dt,jsxs as Yn}from"react/jsx-runtime";var ree="A stacked area chart",jN=[{month:"January",desktop:186,mobile:80},{month:"February",desktop:305,mobile:200},{month:"March",desktop:237,mobile:120},{month:"April",desktop:73,mobile:190},{month:"May",desktop:209,mobile:130},{month:"June",desktop:214,mobile:140}],zN={desktop:{label:"Desktop",color:"var(--chart-1)"},mobile:{label:"Mobile",color:"var(--chart-2)"}};function aee(){return Yn(F0,{children:[Yn(j0,{children:[dt(z0,{children:"Area Chart - Stacked"}),dt(U0,{children:"Showing total visitors for the last 6 months"})]}),dt(q0,{children:dt(G0,{config:zN,children:Yn(lp,{accessibilityLayer:!0,data:jN,margin:{left:12,right:12},children:[dt(Zu,{vertical:!1}),dt(ts,{dataKey:"month",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,3)}),dt(K0,{cursor:!1,content:dt($0,{indicator:"dot"})}),dt(Un,{dataKey:"mobile",type:"natural",fill:"var(--color-mobile)",fillOpacity:.4,stroke:"var(--color-mobile)",stackId:"a"}),dt(Un,{dataKey:"desktop",type:"natural",fill:"var(--color-desktop)",fillOpacity:.4,stroke:"var(--color-desktop)",stackId:"a"})]})})}),dt(H0,{children:dt("div",{className:"flex w-full items-start gap-2 text-sm",children:Yn("div",{className:"grid gap-2",children:[Yn("div",{className:"flex items-center gap-2 leading-none font-medium",children:["Trending up by 5.2% this month ",dt(To,{className:"h-4 w-4"})]}),dt("div",{className:"flex items-center gap-2 leading-none text-muted-foreground",children:"January - June 2024"})]})})})]})}export{aee as ChartAreaStacked,ree as description}; -/*! Bundled license information: - -decimal.js-light/decimal.js: - (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/trending-up.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:f84585b793d89ca27f854793469fb0626874faef9b05742295745fa8c3f157eb +size 362863 diff --git a/b/009ad37fa607d681b03e1574c1afd0e22b60b6f9cf2f2d02a914aaf709a67eaf b/b/009ad37fa607d681b03e1574c1afd0e22b60b6f9cf2f2d02a914aaf709a67eaf index 2ba1d466eaf070685fbecb01ec092199d1394abf..2a19f6456ddc69d4aa807e0cbfe843820ef69e49 100644 --- a/b/009ad37fa607d681b03e1574c1afd0e22b60b6f9cf2f2d02a914aaf709a67eaf +++ b/b/009ad37fa607d681b03e1574c1afd0e22b60b6f9cf2f2d02a914aaf709a67eaf @@ -1,154 +1,3 @@ -"use client" - -import * as React from "react" -import { Form, Field as FormischField, reset, useForm } from "@formisch/react" -import type { SubmitHandler } from "@formisch/react" -import { toast } from "sonner" -import * as v from "valibot" - -import { Button } from "@/registry/new-york-v4/ui/button" -import { - Card, - CardContent, - CardDescription, - CardFooter, - CardHeader, - CardTitle, -} from "@/registry/new-york-v4/ui/card" -import { - Field, - FieldDescription, - FieldError, - FieldGroup, - FieldLabel, -} from "@/registry/new-york-v4/ui/field" -import { Input } from "@/registry/new-york-v4/ui/input" -import { - InputGroup, - InputGroupAddon, - InputGroupText, - InputGroupTextarea, -} from "@/registry/new-york-v4/ui/input-group" - -const FormSchema = v.object({ - title: v.pipe( - v.string(), - v.minLength(5, "Bug title must be at least 5 characters."), - v.maxLength(32, "Bug title must be at most 32 characters.") - ), - description: v.pipe( - v.string(), - v.minLength(20, "Description must be at least 20 characters."), - v.maxLength(100, "Description must be at most 100 characters.") - ), -}) - -export default function BugReportForm() { - const form = useForm({ - schema: FormSchema, - initialInput: { - title: "", - description: "", - }, - }) - - const handleSubmit: SubmitHandler = (output) => { - toast("You submitted the following values:", { - description: ( -
-          {JSON.stringify(output, null, 2)}
-        
- ), - position: "bottom-right", - classNames: { - content: "flex flex-col gap-2", - }, - style: { - "--border-radius": "calc(var(--radius) + 4px)", - } as React.CSSProperties, - }) - } - - return ( - - - Bug Report - - Help us improve by reporting bugs you encounter. - - - -
- - - {(field) => ( - - - Bug Title - - - {field.errors && ( - ({ message }))} - /> - )} - - )} - - - {(field) => ( - - - Description - - - - - - {(field.input ?? "").length}/100 characters - - - - - Include steps to reproduce, expected behavior, and what - actually happened. - - {field.errors && ( - ({ message }))} - /> - )} - - )} - - -
-
- - - - - - -
- ) -} +version https://git-lfs.github.com/spec/v1 +oid sha256:50f25e605015cf2f08103639e25b43b92f99cc768b0635ec6d72b3da796b6307 +size 4958 diff --git a/b/00a2ea64f8f1b8baeaae695436c9816469e015112e451abacf6dfe4b683ccc23 b/b/00a2ea64f8f1b8baeaae695436c9816469e015112e451abacf6dfe4b683ccc23 index d2dc2dd5f2cb038f32c1176f4da05998d99605fb..5e7aa69535cde6ab70f11a1d6fc4948b10c640a4 100644 --- a/b/00a2ea64f8f1b8baeaae695436c9816469e015112e451abacf6dfe4b683ccc23 +++ b/b/00a2ea64f8f1b8baeaae695436c9816469e015112e451abacf6dfe4b683ccc23 @@ -1,59 +1,3 @@ -var ga=Object.defineProperty;var Ca=(e,t)=>{for(var a in t)ga(e,a,{get:t[a],enumerable:!0})};import{forwardRef as Sa,createElement as wa}from"react";var De=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oe=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as ha,createElement as ve}from"react";var Re={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Te=ha(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:u,...c},p)=>ve("svg",{ref:p,...Re,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:oe("lucide",l),...c},[...u.map(([f,L])=>ve(f,L)),...Array.isArray(r)?r:[r]]));var le=(e,t)=>{let a=Sa(({className:o,...l},r)=>wa(Te,{ref:r,iconNode:t,className:oe(`lucide-${De(e)}`,o),...l}));return a.displayName=`${e}`,a};var Z=le("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);var T=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function qe(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Oe=re,J=(e,t)=>a=>{var o;if(t?.variants==null)return Oe(e,a?.class,a?.className);let{variants:l,defaultVariants:r}=t,u=Object.keys(l).map(f=>{let L=a?.[f],x=r?.[f];if(L===null)return null;let g=Ue(L)||Ue(x);return l[f][g]}),c=a&&Object.entries(a).reduce((f,L)=>{let[x,g]=L;return g===void 0||(f[x]=g),f},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,L)=>{let{class:x,className:g,...h}=L;return Object.entries(h).every(M=>{let[w,k]=M;return Array.isArray(k)?k.includes({...r,...c}[w]):{...r,...c}[w]===k})?[...f,x,g]:f},[]);return Oe(e,u,p,a?.class,a?.className)};var ka=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ne=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),se="-",He=[],Pa="arbitrary..",Aa=e=>{let t=Ba(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return ya(u);let c=u.split(se),p=c[0]===""&&c.length>1?1:0;return Xe(c,p,t)},getConflictingClassGroupIds:(u,c)=>{if(c){let p=o[u],f=a[u];return p?f?ka(f,p):p:f||He}return a[u]||He}}},Xe=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],r=a.nextPart.get(l);if(r){let f=Xe(e,t+1,r);if(f)return f}let u=a.validators;if(u===null)return;let c=t===0?e.join(se):e.slice(t).join(se),p=u.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Pa+o:void 0})(),Ba=e=>{let{theme:t,classGroups:a}=e;return Ma(a,t)},Ma=(e,t)=>{let a=Ne();for(let o in e){let l=e[o];ge(l,a,o,t)}return a},ge=(e,t,a,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){Da(e,t,a);return}if(typeof e=="function"){Ra(e,t,a,o);return}va(e,t,a,o)},Da=(e,t,a)=>{let o=e===""?t:Ke(t,e);o.classGroupId=a},Ra=(e,t,a,o)=>{if(Ta(e)){ge(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ba(a,e))},va=(e,t,a,o)=>{let l=Object.entries(e),r=l.length;for(let u=0;u{let a=e,o=t.split(se),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,qa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(r,u)=>{a[r]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let u=a[r];if(u!==void 0)return u;if((u=o[r])!==void 0)return l(r,u),u},set(r,u){r in a?a[r]=u:l(r,u)}}},Ie="!",Ge=":",Ua=[],ze=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),Oa=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let r=[],u=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return ze(r,h,g,M)};if(t){let l=t+Ge,r=o;o=u=>u.startsWith(l)?r(u.slice(l.length)):ze(Ua,!1,u,void 0,!0)}if(a){let l=o;o=r=>a({className:r,parseClassName:l})}return o},Ha=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},Ga=e=>({cache:qa(e.cacheSize),parseClassName:Oa(e),sortModifiers:Ha(e),postfixLookupClassGroupIds:za(e),...Aa(e)}),za=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:u}=t,c=[],p=e.trim().split(Va),f="";for(let L=p.length-1;L>=0;L-=1){let x=p[L],{isExternal:g,modifiers:h,hasImportantModifier:M,baseClassName:w,maybePostfixModifierPosition:k}=a(x);if(g){f=x+(f.length>0?" "+f:f);continue}let O=!!k,y;if(O){let R=w.substring(0,k);y=o(R);let i=y&&u[y]?o(w):void 0;i&&i!==y&&(y=i,O=!1)}else y=o(w);if(!y){if(!O){f=x+(f.length>0?" "+f:f);continue}if(y=o(w),!y){f=x+(f.length>0?" "+f:f);continue}O=!1}let K=h.length===0?"":h.length===1?h[0]:r(h).join(":"),E=M?K+Ie:K,W=E+y;if(c.indexOf(W)>-1)continue;c.push(W);let N=l(y,O);for(let R=0;R0?" "+f:f)}return f},Wa=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,r,u=p=>{let f=t.reduce((L,x)=>x(L),e());return a=Ga(f),o=a.cache.get,l=a.cache.set,r=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=Ea(p,a);return l(p,L),L};return r=u,(...p)=>r(Wa(...p))},Xa=[],I=e=>{let t=a=>a[e]||Xa;return t.isThemeGetter=!0,t},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ka=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Za=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ja=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_a=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ja=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>Ka.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&m(e.slice(0,-1)),v=e=>Za.test(e),Qe=()=>!0,$a=e=>Ja.test(e)&&!_a.test(e),Ce=()=>!1,Ya=e=>Qa.test(e),et=e=>ja.test(e),at=e=>!d(e)&&!s(e),tt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ot=e=>U(e,Ye,Ce),d=e=>Je.test(e),G=e=>U(e,ea,$a),Ve=e=>U(e,nt,m),lt=e=>U(e,ta,Qe),rt=e=>U(e,aa,Ce),Ee=e=>U(e,je,Ce),ut=e=>U(e,$e,et),ue=e=>U(e,oa,Ya),s=e=>_e.test(e),_=e=>z(e,ea),dt=e=>z(e,aa),We=e=>z(e,je),st=e=>z(e,Ye),ft=e=>z(e,$e),de=e=>z(e,oa,!0),it=e=>z(e,ta,!0),U=(e,t,a)=>{let o=Je.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},z=(e,t,a=!1)=>{let o=_e.exec(e);return o?o[1]?t(o[1]):a:!1},je=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",Ye=e=>e==="length"||e==="size"||e==="bg-size",ea=e=>e==="length",nt=e=>e==="number",aa=e=>e==="family-name",ta=e=>e==="number"||e==="weight",oa=e=>e==="shadow";var ct=()=>{let e=I("color"),t=I("font"),a=I("text"),o=I("font-weight"),l=I("tracking"),r=I("leading"),u=I("breakpoint"),c=I("container"),p=I("spacing"),f=I("radius"),L=I("shadow"),x=I("inset-shadow"),g=I("text-shadow"),h=I("drop-shadow"),M=I("blur"),w=I("perspective"),k=I("aspect"),O=I("ease"),y=I("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...E(),s,d],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],i=()=>[s,d,p],B=()=>[q,"full","auto",...i()],ke=()=>[D,"none","subgrid",s,d],be=()=>["auto",{span:["full",D,s,d]},D,s,d],$=()=>[D,"auto",s,d],Pe=()=>["auto","min","max","fr",s,d],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...i()],H=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],ce=()=>[q,"screen","full","dvw","lvw","svw","min","max","fit",...i()],pe=()=>[q,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,d],Ae=()=>[...E(),We,Ee,{position:[s,d]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Be=()=>["auto","cover","contain",st,ot,{size:[s,d]}],me=()=>[xe,_,G],b=()=>["","none","full",f,s,d],P=()=>["",m,_,G],Y=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[m,xe,We,Ee],Fe=()=>["","none",M,s,d],ee=()=>["none",m,s,d],ae=()=>["none",m,s,d],Le=()=>[m,s,d],te=()=>[q,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[v],breakpoint:[v],color:[Qe],container:[v],"drop-shadow":[v],ease:["in","out","in-out"],font:[at],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[v],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[v],shadow:[v],spacing:["px",m],text:[v],"text-shadow":[v],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[tt],columns:[{columns:[m,d,s,c]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",s,d]}],basis:[{basis:[q,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,q,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[D,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":ke()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ke()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,_,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,it,lt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,d]}],"font-family":[{font:[dt,rt,t]}],"font-features":[{"font-features":[d]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,Ve]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,G]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[D,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:Be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,s,d],radial:["",s,d],conic:[D,s,d]},ft,ut]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,_,G]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,de,ue]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",x,de,ue]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,G]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",g,de,ue]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:Be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:Fe()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",h,de,ue]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",O,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",y,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,d]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[D,s,d]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,d]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,_,G,Ve]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var la=Na(ct);function A(...e){return la(re(e))}var ie={};Ca(ie,{Root:()=>mt,Slot:()=>mt,Slottable:()=>Lt,createSlot:()=>fa,createSlottable:()=>na});import*as S from"react";import*as ua from"react";function ra(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pt(...e){return t=>{let a=!1,o=e.map(l=>{let r=ra(l,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let l=0;l{let{children:l,...r}=a,u=null,c=!1,p=[];sa(l)&&typeof fe=="function"&&(l=fe(l._payload)),S.Children.forEach(l,g=>{if(Ct(g)){c=!0;let h=g,M="child"in h.props?h.props.child:h.props.children;sa(M)&&typeof fe=="function"&&(M=fe(M._payload)),u=xt(h,M),p.push(u?.props?.children)}else p.push(g)}),u?u=S.cloneElement(u,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(u=l);let f=u?gt(u):void 0,L=da(o,f);if(!u){if(l||l===0)throw new Error(c?kt(e):wt(e));return l}let x=It(r,u.props??{});return u.type!==S.Fragment&&(x.ref=o?L:f),S.cloneElement(u,x)});return t.displayName=`${e}.Slot`,t}var mt=fa("Slot"),ia=Symbol.for("radix.slottable");function na(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=ia,t}var Lt=na("Slottable"),xt=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function It(e,t){let a={...t};for(let o in t){let l=e[o],r=t[o];/^on[A-Z]/.test(o)?l&&r?a[o]=(...c)=>{let p=r(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...r}:o==="className"&&(a[o]=[l,r].filter(Boolean).join(" "))}return{...e,...a}}function gt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Ct(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ia}var ht=Symbol.for("react.lazy");function sa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ht&&"_payload"in e&&St(e._payload)}function St(e){return typeof e=="object"&&e!==null&&"then"in e}var wt=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,kt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,fe=S[" use ".trim().toString()];import{jsx as Pt}from"react/jsx-runtime";var bt=J("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ca({className:e,variant:t="default",size:a="default",asChild:o=!1,...l}){let r=o?ie.Root:"button";return Pt(r,{"data-slot":"button","data-variant":t,"data-size":a,className:A(bt({variant:t,size:a,className:e})),...l})}import{jsx as At}from"react/jsx-runtime";function pa({className:e,type:t,...a}){return At("input",{type:t,"data-slot":"input",className:A("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}import{jsx as yt}from"react/jsx-runtime";function ma({className:e,...t}){return yt("textarea",{"data-slot":"textarea",className:A("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...t})}import{jsx as Q}from"react/jsx-runtime";function he({className:e,...t}){return Q("div",{"data-slot":"input-group",role:"group",className:A("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50","has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var Bt=J("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function Se({className:e,align:t="inline-start",...a}){return Q("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:A(Bt({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}var Mt=J("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function La({className:e,type:t="button",variant:a="ghost",size:o="xs",...l}){return Q(ca,{type:t,"data-size":o,variant:a,className:A(Mt({size:o}),e),...l})}function xa({className:e,...t}){return Q(pa,{"data-slot":"input-group-control",className:A("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function Ia({className:e,...t}){return Q(ma,{"data-slot":"input-group-control",className:A("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}import{jsx as Ft}from"react/jsx-runtime";function we({className:e,...t}){return Ft(T,{role:"status","aria-label":"Loading",className:A("size-4 animate-spin",e),...t})}import{jsx as V,jsxs as j}from"react/jsx-runtime";function Dt(){return j("div",{className:"flex w-full max-w-md flex-col gap-4",children:[j(he,{children:[V(xa,{placeholder:"Send a message...",disabled:!0}),V(Se,{align:"inline-end",children:V(we,{})})]}),j(he,{children:[V(Ia,{placeholder:"Send a message...",disabled:!0}),j(Se,{align:"block-end",children:[V(we,{})," Validating...",j(La,{className:"ml-auto",variant:"default",children:[V(Z,{}),V("span",{className:"sr-only",children:"Send"})]})]})]})]})}export{Dt as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/arrow-up.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/loader-circle.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:152e15516635b1f8ce937fe10fbd7b55a0b369fd554c15b8ee6d721f683dde00 +size 40226 diff --git a/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e b/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e index ad8979a11b38a05ac154eb9891a388b992b256b1..679edf18412dc767753df777092a7fca512262c0 100644 --- a/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e +++ b/b/00d2212e26a720b895d884b125c12686911c8f05f012d9d435c793f5d30eec2e @@ -1,55 +1,3 @@ -"use client";var nA=Object.create;var Mc=Object.defineProperty;var oA=Object.getOwnPropertyDescriptor;var iA=Object.getOwnPropertyNames;var aA=Object.getPrototypeOf,sA=Object.prototype.hasOwnProperty;var ca=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lA=(e,t)=>{for(var r in t)Mc(e,r,{get:t[r],enumerable:!0})},cA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iA(t))!sA.call(e,o)&&o!==r&&Mc(e,o,{get:()=>t[o],enumerable:!(n=oA(t,o))||n.enumerable});return e};var ua=(e,t,r)=>(r=e!=null?nA(aA(e)):{},cA(t||!e||!e.__esModule?Mc(r,"default",{value:e,enumerable:!0}):r,e));var df=ca((uy,_s)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,o="[DecimalError] ",i=o+"Invalid argument: ",a=o+"Exponent out of range: ",s=Math.floor,l=Math.pow,c=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u,f=1e7,d=7,p=9007199254740991,h=s(p/d),m={};m.absoluteValue=m.abs=function(){var y=new this.constructor(this);return y.s&&(y.s=1),y},m.comparedTo=m.cmp=function(y){var b,E,w,x,S=this;if(y=new S.constructor(y),S.s!==y.s)return S.s||-y.s;if(S.e!==y.e)return S.e>y.e^S.s<0?1:-1;for(w=S.d.length,x=y.d.length,b=0,E=wy.d[b]^S.s<0?1:-1;return w===x?0:w>x^S.s<0?1:-1},m.decimalPlaces=m.dp=function(){var y=this,b=y.d.length-1,E=(b-y.e)*d;if(b=y.d[b],b)for(;b%10==0;b/=10)E--;return E<0?0:E},m.dividedBy=m.div=function(y){return A(this,new this.constructor(y))},m.dividedToIntegerBy=m.idiv=function(y){var b=this,E=b.constructor;return j(A(b,new E(y),0,1),E.precision)},m.equals=m.eq=function(y){return!this.cmp(y)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(y){return this.cmp(y)>0},m.greaterThanOrEqualTo=m.gte=function(y){return this.cmp(y)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(y){return this.cmp(y)<0},m.lessThanOrEqualTo=m.lte=function(y){return this.cmp(y)<1},m.logarithm=m.log=function(y){var b,E=this,w=E.constructor,x=w.precision,S=x+5;if(y===void 0)y=new w(10);else if(y=new w(y),y.s<1||y.eq(u))throw Error(o+"NaN");if(E.s<1)throw Error(o+(E.s?"NaN":"-Infinity"));return E.eq(u)?new w(0):(n=!1,b=A(k(E,S),k(y,S),S),n=!0,j(b,x))},m.minus=m.sub=function(y){var b=this;return y=new b.constructor(y),b.s==y.s?U(b,y):g(b,(y.s=-y.s,y))},m.modulo=m.mod=function(y){var b,E=this,w=E.constructor,x=w.precision;if(y=new w(y),!y.s)throw Error(o+"NaN");return E.s?(n=!1,b=A(E,y,0,1).times(y),n=!0,E.minus(b)):j(new w(E),x)},m.naturalExponential=m.exp=function(){return C(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var y=new this.constructor(this);return y.s=-y.s||0,y},m.plus=m.add=function(y){var b=this;return y=new b.constructor(y),b.s==y.s?g(b,y):U(b,(y.s=-y.s,y))},m.precision=m.sd=function(y){var b,E,w,x=this;if(y!==void 0&&y!==!!y&&y!==1&&y!==0)throw Error(i+y);if(b=O(x)+1,w=x.d.length-1,E=w*d+1,w=x.d[w],w){for(;w%10==0;w/=10)E--;for(w=x.d[0];w>=10;w/=10)E++}return y&&b>E?b:E},m.squareRoot=m.sqrt=function(){var y,b,E,w,x,S,M,R=this,L=R.constructor;if(R.s<1){if(!R.s)return new L(0);throw Error(o+"NaN")}for(y=O(R),n=!1,x=Math.sqrt(+R),x==0||x==1/0?(b=P(R.d),(b.length+y)%2==0&&(b+="0"),x=Math.sqrt(b),y=s((y+1)/2)-(y<0||y%2),x==1/0?b="5e"+y:(b=x.toExponential(),b=b.slice(0,b.indexOf("e")+1)+y),w=new L(b)):w=new L(x.toString()),E=L.precision,x=M=E+3;;)if(S=w,w=S.plus(A(R,S,M+2)).times(.5),P(S.d).slice(0,M)===(b=P(w.d)).slice(0,M)){if(b=b.slice(M-3,M+1),x==M&&b=="4999"){if(j(S,E+1,0),S.times(S).eq(R)){w=S;break}}else if(b!="9999")break;M+=4}return n=!0,j(w,E)},m.times=m.mul=function(y){var b,E,w,x,S,M,R,L,W,F=this,$=F.constructor,ie=F.d,D=(y=new $(y)).d;if(!F.s||!y.s)return new $(0);for(y.s*=F.s,E=F.e+y.e,L=ie.length,W=D.length,L=0;){for(b=0,x=L+w;x>w;)R=S[x]+D[w]*ie[x-w-1]+b,S[x--]=R%f|0,b=R/f|0;S[x]=(S[x]+b)%f|0}for(;!S[--M];)S.pop();return b?++E:S.shift(),y.d=S,y.e=E,n?j(y,$.precision):y},m.toDecimalPlaces=m.todp=function(y,b){var E=this,w=E.constructor;return E=new w(E),y===void 0?E:(v(y,0,t),b===void 0?b=w.rounding:v(b,0,8),j(E,y+O(E)+1,b))},m.toExponential=function(y,b){var E,w=this,x=w.constructor;return y===void 0?E=z(w,!0):(v(y,0,t),b===void 0?b=x.rounding:v(b,0,8),w=j(new x(w),y+1,b),E=z(w,!0,y+1)),E},m.toFixed=function(y,b){var E,w,x=this,S=x.constructor;return y===void 0?z(x):(v(y,0,t),b===void 0?b=S.rounding:v(b,0,8),w=j(new S(x),y+O(x)+1,b),E=z(w.abs(),!1,y+O(w)+1),x.isneg()&&!x.isZero()?"-"+E:E)},m.toInteger=m.toint=function(){var y=this,b=y.constructor;return j(new b(y),O(y)+1,b.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(y){var b,E,w,x,S,M,R=this,L=R.constructor,W=12,F=+(y=new L(y));if(!y.s)return new L(u);if(R=new L(R),!R.s){if(y.s<1)throw Error(o+"Infinity");return R}if(R.eq(u))return R;if(w=L.precision,y.eq(u))return j(R,w);if(b=y.e,E=y.d.length-1,M=b>=E,S=R.s,M){if((E=F<0?-F:F)<=p){for(x=new L(u),b=Math.ceil(w/d+4),n=!1;E%2&&(x=x.times(R),Z(x.d,b)),E=s(E/2),E!==0;)R=R.times(R),Z(R.d,b);return n=!0,y.s<0?new L(u).div(x):j(x,w)}}else if(S<0)throw Error(o+"NaN");return S=S<0&&y.d[Math.max(b,E)]&1?-1:1,R.s=1,n=!1,x=y.times(k(R,w+W)),n=!0,x=C(x),x.s=S,x},m.toPrecision=function(y,b){var E,w,x=this,S=x.constructor;return y===void 0?(E=O(x),w=z(x,E<=S.toExpNeg||E>=S.toExpPos)):(v(y,1,t),b===void 0?b=S.rounding:v(b,0,8),x=j(new S(x),y,b),E=O(x),w=z(x,y<=E||E<=S.toExpNeg,y)),w},m.toSignificantDigits=m.tosd=function(y,b){var E=this,w=E.constructor;return y===void 0?(y=w.precision,b=w.rounding):(v(y,1,t),b===void 0?b=w.rounding:v(b,0,8)),j(new w(E),y,b)},m.toString=m.valueOf=m.val=m.toJSON=function(){var y=this,b=O(y),E=y.constructor;return z(y,b<=E.toExpNeg||b>=E.toExpPos)};function g(y,b){var E,w,x,S,M,R,L,W,F=y.constructor,$=F.precision;if(!y.s||!b.s)return b.s||(b=new F(y)),n?j(b,$):b;if(L=y.d,W=b.d,M=y.e,x=b.e,L=L.slice(),S=M-x,S){for(S<0?(w=L,S=-S,R=W.length):(w=W,x=M,R=L.length),M=Math.ceil($/d),R=M>R?M+1:R+1,S>R&&(S=R,w.length=1),w.reverse();S--;)w.push(0);w.reverse()}for(R=L.length,S=W.length,R-S<0&&(S=R,w=W,W=L,L=w),E=0;S;)E=(L[--S]=L[S]+W[S]+E)/f|0,L[S]%=f;for(E&&(L.unshift(E),++x),R=L.length;L[--R]==0;)L.pop();return b.d=L,b.e=x,n?j(b,$):b}function v(y,b,E){if(y!==~~y||yE)throw Error(i+y)}function P(y){var b,E,w,x=y.length-1,S="",M=y[0];if(x>0){for(S+=M,b=1;bM?1:-1;else for(R=L=0;Rx[R]?1:-1;break}return L}function E(w,x,S){for(var M=0;S--;)w[S]-=M,M=w[S]1;)w.shift()}return function(w,x,S,M){var R,L,W,F,$,ie,D,V,K,N,we,te,$e,We,Pt,Bn,jt,sa,la=w.constructor,rA=w.s==x.s?1:-1,Kt=w.d,Re=x.d;if(!w.s)return new la(w);if(!x.s)throw Error(o+"Division by zero");for(L=w.e-x.e,jt=Re.length,Pt=Kt.length,D=new la(rA),V=D.d=[],W=0;Re[W]==(Kt[W]||0);)++W;if(Re[W]>(Kt[W]||0)&&--L,S==null?te=S=la.precision:M?te=S+(O(w)-O(x))+1:te=S,te<0)return new la(0);if(te=te/d+2|0,W=0,jt==1)for(F=0,Re=Re[0],te++;(W1&&(Re=y(Re,F),Kt=y(Kt,F),jt=Re.length,Pt=Kt.length),We=jt,K=Kt.slice(0,jt),N=K.length;N=f/2&&++Bn;do F=0,R=b(Re,K,jt,N),R<0?(we=K[0],jt!=N&&(we=we*f+(K[1]||0)),F=we/Bn|0,F>1?(F>=f&&(F=f-1),$=y(Re,F),ie=$.length,N=K.length,R=b($,K,ie,N),R==1&&(F--,E($,jt16)throw Error(a+O(y));if(!y.s)return new F(u);for(b==null?(n=!1,R=$):R=b,M=new F(.03125);y.abs().gte(.1);)y=y.times(M),W+=5;for(w=Math.log(l(2,W))/Math.LN10*2+5|0,R+=w,E=x=S=new F(u),F.precision=R;;){if(x=j(x.times(y),R),E=E.times(++L),M=S.plus(A(x,E,R)),P(M.d).slice(0,R)===P(S.d).slice(0,R)){for(;W--;)S=j(S.times(S),R);return F.precision=$,b==null?(n=!0,j(S,$)):S}S=M}}function O(y){for(var b=y.e*d,E=y.d[0];E>=10;E/=10)b++;return b}function _(y,b,E){if(b>y.LN10.sd())throw n=!0,E&&(y.precision=E),Error(o+"LN10 precision limit exceeded");return j(new y(y.LN10),b)}function T(y){for(var b="";y--;)b+="0";return b}function k(y,b){var E,w,x,S,M,R,L,W,F,$=1,ie=10,D=y,V=D.d,K=D.constructor,N=K.precision;if(D.s<1)throw Error(o+(D.s?"NaN":"-Infinity"));if(D.eq(u))return new K(0);if(b==null?(n=!1,W=N):W=b,D.eq(10))return b==null&&(n=!0),_(K,W);if(W+=ie,K.precision=W,E=P(V),w=E.charAt(0),S=O(D),Math.abs(S)<15e14){for(;w<7&&w!=1||w==1&&E.charAt(1)>3;)D=D.times(y),E=P(D.d),w=E.charAt(0),$++;S=O(D),w>1?(D=new K("0."+E),S++):D=new K(w+"."+E.slice(1))}else return L=_(K,W+2,N).times(S+""),D=k(new K(w+"."+E.slice(1)),W-ie).plus(L),K.precision=N,b==null?(n=!0,j(D,N)):D;for(R=M=D=A(D.minus(u),D.plus(u),W),F=j(D.times(D),W),x=3;;){if(M=j(M.times(F),W),L=R.plus(A(M,new K(x),W)),P(L.d).slice(0,W)===P(R.d).slice(0,W))return R=R.times(2),S!==0&&(R=R.plus(_(K,W+2,N).times(S+""))),R=A(R,new K($),W),K.precision=N,b==null?(n=!0,j(R,N)):R;R=L,x+=2}}function B(y,b){var E,w,x;for((E=b.indexOf("."))>-1&&(b=b.replace(".","")),(w=b.search(/e/i))>0?(E<0&&(E=w),E+=+b.slice(w+1),b=b.substring(0,w)):E<0&&(E=b.length),w=0;b.charCodeAt(w)===48;)++w;for(x=b.length;b.charCodeAt(x-1)===48;)--x;if(b=b.slice(w,x),b){if(x-=w,E=E-w-1,y.e=s(E/d),y.d=[],w=(E+1)%d,E<0&&(w+=d),wh||y.e<-h))throw Error(a+E)}else y.s=0,y.e=0,y.d=[0];return y}function j(y,b,E){var w,x,S,M,R,L,W,F,$=y.d;for(M=1,S=$[0];S>=10;S/=10)M++;if(w=b-M,w<0)w+=d,x=b,W=$[F=0];else{if(F=Math.ceil((w+1)/d),S=$.length,F>=S)return y;for(W=S=$[F],M=1;S>=10;S/=10)M++;w%=d,x=w-d+M}if(E!==void 0&&(S=l(10,M-x-1),R=W/S%10|0,L=b<0||$[F+1]!==void 0||W%S,L=E<4?(R||L)&&(E==0||E==(y.s<0?3:2)):R>5||R==5&&(E==4||L||E==6&&(w>0?x>0?W/l(10,M-x):0:$[F-1])%10&1||E==(y.s<0?8:7))),b<1||!$[0])return L?(S=O(y),$.length=1,b=b-S-1,$[0]=l(10,(d-b%d)%d),y.e=s(-b/d)||0):($.length=1,$[0]=y.e=y.s=0),y;if(w==0?($.length=F,S=1,F--):($.length=F+1,S=l(10,d-w),$[F]=x>0?(W/l(10,M-x)%l(10,x)|0)*S:0),L)for(;;)if(F==0){($[0]+=S)==f&&($[0]=1,++y.e);break}else{if($[F]+=S,$[F]!=f)break;$[F--]=0,S=1}for(w=$.length;$[--w]===0;)$.pop();if(n&&(y.e>h||y.e<-h))throw Error(a+O(y));return y}function U(y,b){var E,w,x,S,M,R,L,W,F,$,ie=y.constructor,D=ie.precision;if(!y.s||!b.s)return b.s?b.s=-b.s:b=new ie(y),n?j(b,D):b;if(L=y.d,$=b.d,w=b.e,W=y.e,L=L.slice(),M=W-w,M){for(F=M<0,F?(E=L,M=-M,R=$.length):(E=$,w=W,R=L.length),x=Math.max(Math.ceil(D/d),R)+2,M>x&&(M=x,E.length=1),E.reverse(),x=M;x--;)E.push(0);E.reverse()}else{for(x=L.length,R=$.length,F=x0;--x)L[R++]=0;for(x=$.length;x>M;){if(L[--x]<$[x]){for(S=x;S&&L[--S]===0;)L[S]=f-1;--L[S],L[x]+=f}L[x]-=$[x]}for(;L[--R]===0;)L.pop();for(;L[0]===0;L.shift())--w;return L[0]?(b.d=L,b.e=w,n?j(b,D):b):new ie(0)}function z(y,b,E){var w,x=O(y),S=P(y.d),M=S.length;return b?(E&&(w=E-M)>0?S=S.charAt(0)+"."+S.slice(1)+T(w):M>1&&(S=S.charAt(0)+"."+S.slice(1)),S=S+(x<0?"e":"e+")+x):x<0?(S="0."+T(-x-1)+S,E&&(w=E-M)>0&&(S+=T(w))):x>=M?(S+=T(x+1-M),E&&(w=E-x-1)>0&&(S=S+"."+T(w))):((w=x+1)0&&(x+1===M&&(S+="."),S+=T(w))),y.s<0?"-"+S:S}function Z(y,b){if(y.length>b)return y.length=b,!0}function X(y){var b,E,w;function x(S){var M=this;if(!(M instanceof x))return new x(S);if(M.constructor=x,S instanceof x){M.s=S.s,M.e=S.e,M.d=(S=S.d)?S.slice():S;return}if(typeof S=="number"){if(S*0!==0)throw Error(i+S);if(S>0)M.s=1;else if(S<0)S=-S,M.s=-1;else{M.s=0,M.e=0,M.d=[0];return}if(S===~~S&&S<1e7){M.e=0,M.d=[S];return}return B(M,S.toString())}else if(typeof S!="string")throw Error(i+S);if(S.charCodeAt(0)===45?(S=S.slice(1),M.s=-1):M.s=1,c.test(S))B(M,S);else throw Error(i+S)}if(x.prototype=m,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.clone=X,x.config=x.set=Q,y===void 0&&(y={}),y)for(w=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=x[b+1]&&w<=x[b+2])this[E]=w;else throw Error(i+E+": "+w);if((w=y[E="LN10"])!==void 0)if(w==Math.LN10)this[E]=new this(w);else throw Error(i+E+": "+w);return this}r=X(r),r.default=r.Decimal=r,u=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof _s<"u"&&_s.exports?_s.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(uy)});var i0=ca((h8,ep)=>{"use strict";var IM=Object.prototype.hasOwnProperty,at="~";function Ui(){}Object.create&&(Ui.prototype=Object.create(null),new Ui().__proto__||(at=!1));function TM(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o0(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new TM(r,n||e,o),a=at?at+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Yl(e,t){--e._eventsCount===0?e._events=new Ui:delete e._events[t]}function Qe(){this._events=new Ui,this._eventsCount=0}Qe.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)IM.call(r,n)&&t.push(at?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Qe.prototype.listeners=function(t){var r=at?at+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o{"use strict";var lp=Symbol.for("react.transitional.element"),cp=Symbol.for("react.portal"),nc=Symbol.for("react.fragment"),oc=Symbol.for("react.strict_mode"),ic=Symbol.for("react.profiler"),ac=Symbol.for("react.consumer"),sc=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),uc=Symbol.for("react.suspense_list"),fc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),tD=Symbol.for("react.view_transition"),rD=Symbol.for("react.client.reference");function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lp:switch(e=e.type,e){case nc:case ic:case oc:case cc:case uc:case tD:return e;default:switch(e=e&&e.$$typeof,e){case sc:case lc:case dc:case fc:return e;case ac:return e;default:return t}}case cp:return t}}}he.ContextConsumer=ac;he.ContextProvider=sc;he.Element=lp;he.ForwardRef=lc;he.Fragment=nc;he.Lazy=dc;he.Memo=fc;he.Portal=cp;he.Profiler=ic;he.StrictMode=oc;he.Suspense=cc;he.SuspenseList=uc;he.isContextConsumer=function(e){return Dt(e)===ac};he.isContextProvider=function(e){return Dt(e)===sc};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lp};he.isForwardRef=function(e){return Dt(e)===lc};he.isFragment=function(e){return Dt(e)===nc};he.isLazy=function(e){return Dt(e)===dc};he.isMemo=function(e){return Dt(e)===fc};he.isPortal=function(e){return Dt(e)===cp};he.isProfiler=function(e){return Dt(e)===ic};he.isStrictMode=function(e){return Dt(e)===oc};he.isSuspense=function(e){return Dt(e)===cc};he.isSuspenseList=function(e){return Dt(e)===uc};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nc||e===ic||e===oc||e===cc||e===uc||typeof e=="object"&&e!==null&&(e.$$typeof===dc||e.$$typeof===fc||e.$$typeof===sc||e.$$typeof===ac||e.$$typeof===lc||e.$$typeof===rD||e.getModuleId!==void 0)};he.typeOf=Dt});var uw=ca((e9,cw)=>{"use strict";cw.exports=lw()});import*as fa from"react";import{forwardRef as gA}from"react";function Zp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=hA(e,mA),f=i||{width:n,height:o,x:0,y:0},d=J("recharts-surface",a);return fa.createElement("svg",Nc({},Pe(u),{className:d,width:n,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),fa.createElement("title",null,l),fa.createElement("desc",null,c),r)});import*as da from"react";var yA=["children","className"];function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,o=xA(e,yA),i=J("recharts-layer",n);return da.createElement("g",Lc({className:i},Pe(o),{ref:t}),r)});import{createContext as wA,useContext as V2}from"react";var Qp=wA(null);import*as gm from"react";function ue(e){return function(){return e}}var zc=Math.cos;var $o=Math.sin,Ve=Math.sqrt;var Xr=Math.PI,K2=Xr/2,Wn=2*Xr;var Bc=Math.PI,Fc=2*Bc,Zr=1e-6,SA=Fc-Zr;function Jp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Jp;let r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;oZr)if(!(Math.abs(f*l-c*u)>Zr)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-a,h=o-s,m=l*l+c*c,g=p*p+h*h,v=Math.sqrt(m),P=Math.sqrt(d),A=i*Math.tan((Bc-Math.acos((m+d-g)/(2*v*P)))/2),C=A/P,O=A/v;Math.abs(C-1)>Zr&&this._append`L${t+C*u},${r+C*f}`,this._append`A${i},${i},0,0,${+(f*p>u*h)},${this._x1=t+O*l},${this._y1=r+O*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,f=1^a,d=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Zr||Math.abs(this._y1-u)>Zr)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Fc+Fc),d>SA?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Zr&&this._append`A${n},${n},0,${+(d>=Bc)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}};function em(){return new Qr}em.prototype=Qr.prototype;function Vn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Qr(t)}var J2=Array.prototype.slice;function Un(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tm(e){this._context=e}tm.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 Er(e){return new tm(e)}function pa(e){return e[0]}function ma(e){return e[1]}function Ko(e,t){var r=ue(!0),n=null,o=Er,i=null,a=Vn(s);e=typeof e=="function"?e:e===void 0?pa:ue(e),t=typeof t=="function"?t:t===void 0?ma:ue(t);function s(l){var c,u=(l=Un(l)).length,f,d=!1,p;for(n==null&&(i=o(p=a())),c=0;c<=u;++c)!(c=p;--h)s.point(A[h],C[h]);s.lineEnd(),s.areaEnd()}v&&(A[d]=+e(g,d,f),C[d]=+t(g,d,f),s.point(n?+n(g,d,f):A[d],r?+r(g,d,f):C[d]))}if(P)return s=null,P+""||null}function u(){return Ko().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ue(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ue(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ue(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ue(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ue(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ue(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:ue(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}var ha=class{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Wc(e){return new ha(e,!0)}function Vc(e){return new ha(e,!1)}var Kn={draw(e,t){let r=Ve(t/Xr);e.moveTo(r,0),e.arc(0,0,r,0,Wn)}};var Uc={draw(e,t){let r=Ve(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var rm=Ve(1/3),AA=rm*2,$c={draw(e,t){let r=Ve(t/AA),n=r*rm;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var Kc={draw(e,t){let r=Ve(t),n=-r/2;e.rect(n,n,r,r)}};var OA=.8908130915292852,nm=$o(Xr/10)/$o(7*Xr/10),EA=$o(Wn/10)*nm,CA=-zc(Wn/10)*nm,qc={draw(e,t){let r=Ve(t*OA),n=EA*r,o=CA*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){let a=Wn*i/5,s=zc(a),l=$o(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}};var Yc=Ve(3),Gc={draw(e,t){let r=-Ve(t/(Yc*3));e.moveTo(0,r*2),e.lineTo(-Yc*r,-r),e.lineTo(Yc*r,-r),e.closePath()}};var Ot=-.5,Et=Ve(3)/2,Hc=1/Ve(12),_A=(Hc/2+1)*3,Xc={draw(e,t){let r=Ve(t/_A),n=r/2,o=r*Hc,i=n,a=r*Hc+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Ot*n-Et*o,Et*n+Ot*o),e.lineTo(Ot*i-Et*a,Et*i+Ot*a),e.lineTo(Ot*s-Et*l,Et*s+Ot*l),e.lineTo(Ot*n+Et*o,Ot*o-Et*n),e.lineTo(Ot*i+Et*a,Ot*a-Et*i),e.lineTo(Ot*s+Et*l,Ot*l-Et*s),e.closePath()}};function va(e,t){let r=null,n=Vn(o);e=typeof e=="function"?e:ue(e||Kn),t=typeof t=="function"?t:ue(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:ue(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:ue(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function qn(){}function Yn(e,t,r){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+r)/6)}function om(e){this._context=e}om.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:Yn(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:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zc(e){return new om(e)}function im(e){this._context=e}im.prototype={areaStart:qn,areaEnd:qn,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:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qc(e){return new im(e)}function am(e){this._context=e}am.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Yn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jc(e){return new am(e)}function sm(e){this._context=e}sm.prototype={areaStart:qn,areaEnd:qn,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 eu(e){return new sm(e)}function lm(e){return e<0?-1:1}function cm(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(lm(i)+lm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function um(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function tu(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function ga(e){this._context=e}ga.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:tu(this,this._t0,um(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 r=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,tu(this,um(this,r=cm(this,e,t)),r);break;default:tu(this,this._t0,r=cm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function fm(e){this._context=new dm(e)}(fm.prototype=Object.create(ga.prototype)).point=function(e,t){ga.prototype.point.call(this,t,e)};function dm(e){this._context=e}dm.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,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function ru(e){return new ga(e)}function nu(e){return new fm(e)}function mm(e){this._context=e}mm.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=pm(e),o=pm(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function iu(e){return new ya(e,.5)}function au(e){return new ya(e,0)}function su(e){return new ya(e,1)}function ft(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r=0;)r[t]=t;return r}function kA(e,t){return e[t]}function IA(e){let t=[];return t.key=e,t}function lu(){var e=ue([]),t=Gn,r=ft,n=kA;function o(i){var a=Array.from(e.apply(this,arguments),IA),s,l=a.length,c=-1,u;for(let f of i)for(s=0,++c;s0){for(var r,n,o=0,i=e[0].length,a;o0){for(var r=0,n=e[t[0]],o,i=n.length;r0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n1&&arguments[1]!==void 0?arguments[1]:RA,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+qt(s)+i:o+i},"")}var ke=e=>e===0?0:e>0?1:-1,He=e=>typeof e=="number"&&e!=+e,ar=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!He(e),tt=e=>q(e)||typeof e=="string",DA=0,sr=e=>{var t=++DA;return"".concat(e||"").concat(t)},Ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(ar(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return He(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},pu=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):Ge(n,t))===r)}var de=e=>e===null||typeof e>"u",lr=e=>de(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function dt(e){return e!=null}function pt(){}var NA=["type","size","sizeType"];function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(lr(e));return ym[t]||Kn},UA=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*WA;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},$A=(e,t)=>{ym["symbol".concat(lr(e))]=t},vu=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=BA(e,NA),i=vm(vm({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var d=VA(a),p=va().type(d).size(UA(r,n,a)),h=p();if(h!==null)return h},{className:l,cx:c,cy:u}=i,f=Pe(i);return q(c)&&q(u)&&q(r)?gm.createElement("path",hu({},f,{className:J("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};vu.registerSymbol=$A;import{isValidElement as KA}from"react";var wa=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,xm=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(KA(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Uo(o)&&typeof r[o]=="function"&&(n[o]=t||(i=>r[o](r,i)))}),n},qA=(e,t,r)=>n=>(e(t,r,n),null),qo=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];Uo(o)&&typeof i=="function"&&(n||(n={}),n[o]=qA(i,t,r))}),n};function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function wm(e,t){let r=new Map;for(let n=0;nObject.prototype.propertyIsEnumerable.call(e,t))}function Zn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Em="[object RegExp]",Pa="[object String]",Aa="[object Number]",Oa="[object Boolean]",Ea="[object Arguments]",Cm="[object Symbol]",_m="[object Date]",km="[object Map]",Im="[object Set]",Tm="[object Array]";var Mm="[object ArrayBuffer]",Rm="[object Object]";var Dm="[object DataView]",Nm="[object Uint8Array]",jm="[object Uint8ClampedArray]",Lm="[object Uint16Array]",zm="[object Uint32Array]";var Bm="[object Int8Array]",Fm="[object Int16Array]",Wm="[object Int32Array]";var Vm="[object Float32Array]",Um="[object Float64Array]";var gu=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function $m(e){return typeof gu.Buffer<"u"&&gu.Buffer.isBuffer(e)}function Km(e,t){return Cr(e,void 0,e,new Map,t)}function Cr(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if(Yo(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let s=0;s{}):yu(e,t,function n(o,i,a,s,l,c){let u=r(o,i,a,s,l,c);return u!==void 0?!!u:yu(o,i,n,c)},new Map)}function yu(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return QA(e,t,r,n);case"function":return Object.keys(t).length>0?yu(e,{...t},r,n):Go(e,t);default:return Ca(e)?typeof t=="string"?t==="":!0:Go(e,t)}}function QA(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Ym(e,t,r,n);if(t instanceof Map)return JA(e,t,r,n);if(t instanceof Set)return eO(e,t,r,n);let o=Object.keys(t);if(e==null||Yo(e))return o.length===0;if(o.length===0)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let i=0;i{})}function Gm(e){return e=qm(e),t=>_a(t,e)}function Hm(e,t){return Km(e,(r,n,o,i)=>{let a=t?.(r,n,o,i);if(a!==void 0)return a;if(typeof e=="object"){if(Zn(e)==="[object Object]"&&typeof e.constructor!="function"){let s={};return i.set(e,s),Ct(s,e,o,i),s}switch(Object.prototype.toString.call(e)){case Aa:case Pa:case Oa:{let s=new e.constructor(e?.valueOf());return Ct(s,e),s}case Ea:{let s={};return Ct(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function Xm(e){return Hm(e)}var tO=/^(?:0|[1-9]\d*)$/;function ka(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Ia(e){return e!=null&&typeof e!="function"&&th(e.length)}function rh(e){return typeof e=="object"&&e!==null}function nh(e){return rh(e)&&Ia(e)}function Ta(e,t=Sa){return nh(e)?wm(Array.from(e),Sm(eh(t),1)):[]}function oh(e,t,r){return t===!0?Ta(e,r):typeof t=="function"?Ta(e,t):e}import*as bu from"react";var{useRef:rO,useEffect:nO,useMemo:oO,useDebugValue:iO}=bu;function wu(e,t,r,n,o){let i=rO(null),a;i.current===null?(a={hasValue:!1,value:null},i.current=a):a=i.current;let[s,l]=oO(()=>{let u=!1,f,d,p=v=>{if(!u){u=!0,f=v;let O=n(v);if(o!==void 0&&a.hasValue){let _=a.value;if(o(_,O))return d=_,_}return d=O,O}let P=f,A=d;if(Object.is(P,v))return A;let C=n(v);return o!==void 0&&o(A,C)?(f=v,A):(f=v,d=C,C)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,n,o]),c=bu.useSyncExternalStore(e,s,l);return nO(()=>{a.hasValue=!0,a.value=c},[c]),iO(c),c}import{useContext as ih,useMemo as sO}from"react";import{createContext as aO}from"react";var Ho=aO(null);var lO=e=>e,oe=()=>{var e=ih(Ho);return e?e.store.dispatch:lO},Ma=()=>{},cO=()=>Ma,uO=(e,t)=>e===t;function H(e){var t=ih(Ho),r=sO(()=>t?n=>{if(n!=null)return e(n)}:Ma,[t,e]);return wu(t?t.subscription.addNestedSub:cO,t?t.store.getState:Ma,t?t.store.getState:Ma,r,uO)}function fO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function dO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function pO(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var ah=e=>Array.isArray(e)?e:[e];function mO(e){let t=Array.isArray(e[0])?e[0]:e;return pO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hO(e,t){let r=[],{length:n}=e;for(let o=0;o{r=Ra(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function xO(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),fO(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=lh,argsMemoizeOptions:h=[],devModeChecks:m={}}=u,g=ah(d),v=ah(h),P=mO(o),A=f(function(){return i++,c.apply(null,arguments)},...g),C=!0,O=p(function(){a++;let T=hO(P,arguments);return s=A.apply(null,T),s},...v);return Object.assign(O,{resultFunc:c,memoizedResultFunc:A,dependencies:P,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var I=xO(lh),bO=Object.assign((e,t=I)=>{dO(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>bO});function ch(e,t=1){let r=[],n=Math.floor(t),o=(i,a)=>{for(let s=0;s{if(e!==t){let n=uh(e),o=uh(t);if(n===o&&n===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-n:n-o}return 0};function Da(e){return typeof e=="symbol"||e instanceof Symbol}var wO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SO=/^\w*$/;function dh(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Da(e)?!0:typeof e=="string"&&(SO.test(e)||!wO.test(e))||t!=null&&Object.hasOwn(t,e)}function ph(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(s=>String(s));let o=(s,l)=>{let c=s;for(let u=0;ul==null||s==null?l:typeof s=="object"&&"key"in s?Object.hasOwn(l,s.key)?l[s.key]:o(l,s.path):typeof s=="function"?s(l):Array.isArray(s)?o(l,s):typeof l=="object"?l[s]:l,a=t.map(s=>(Array.isArray(s)&&s.length===1&&(s=s[0]),s==null||typeof s=="function"||Array.isArray(s)||dh(s)?s:{key:s,path:Xn(s)}));return e.map(s=>({original:s,criteria:a.map(l=>i(l,s))})).slice().sort((s,l)=>{for(let c=0;cs.original)}function cr(e,...t){let r=t.length;return r>1&&Xo(e,t[0],t[1])?t=[]:r>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ph(e,ch(t),["asc"])}var Su=e=>e.legend.settings,mh=e=>e.legend.size,PO=e=>e.legend.payload,lV=I([PO,Su],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?cr(n,r):n});import{useCallback as AO,useState as OO}from"react";var Na=1;function hh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=OO({height:0,left:0,top:0,width:0}),n=AO(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>Na||Math.abs(a.left-t.left)>Na||Math.abs(a.top-t.top)>Na||Math.abs(a.width-t.width)>Na)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}import{useEffect as sC}from"react";function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EO=typeof Symbol=="function"&&Symbol.observable||"@@observable",vh=EO,Pu=()=>Math.random().toString(36).substring(7).split("").join("."),CO={INIT:`@@redux/INIT${Pu()}`,REPLACE:`@@redux/REPLACE${Pu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pu()}`},ja=CO;function La(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Au(e,t,r){if(typeof e!="function")throw new Error(qe(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(qe(1));return r(Au)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((g,v)=>{a.set(v,g)}))}function u(){if(l)throw new Error(qe(3));return o}function f(g){if(typeof g!="function")throw new Error(qe(4));if(l)throw new Error(qe(5));let v=!0;c();let P=s++;return a.set(P,g),function(){if(v){if(l)throw new Error(qe(6));v=!1,c(),a.delete(P),i=null}}}function d(g){if(!La(g))throw new Error(qe(7));if(typeof g.type>"u")throw new Error(qe(8));if(typeof g.type!="string")throw new Error(qe(17));if(l)throw new Error(qe(9));try{l=!0,o=n(o,g)}finally{l=!1}return(i=a).forEach(P=>{P()}),g}function p(g){if(typeof g!="function")throw new Error(qe(10));n=g,d({type:ja.REPLACE})}function h(){let g=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(qe(11));function P(){let C=v;C.next&&C.next(u())}return P(),{unsubscribe:g(P)}},[vh](){return this}}}return d({type:ja.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:p,[vh]:h}}function _O(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ja.INIT})>"u")throw new Error(qe(12));if(typeof r(void 0,{type:ja.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function za(e){let t=Object.keys(e),r={};for(let a=0;a"u"){let g=l&&l.type;throw new Error(qe(14))}u[d]=m,c=c||m!==h}return c=c||n.length!==Object.keys(s).length,c?u:s}}function Zo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function gh(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(qe(15))},a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=Zo(...s)(o.dispatch),{...o,dispatch:i}}}function Ou(e){return La(e)&&"type"in e&&typeof e.type=="string"}var Ch=Symbol.for("immer-nothing"),yh=Symbol.for("immer-draftable"),rt=Symbol.for("immer-state");function Lt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object,Jn=mt.getPrototypeOf,Va="constructor",Ga="prototype",_u="configurable",Ua="enumerable",Fa="writable",Qo="value",Yt=e=>!!e&&!!e[rt];function _t(e){return e?_h(e)||Xa(e)||!!e[yh]||!!e[Va]?.[yh]||Za(e)||Qa(e):!1}var kO=mt[Ga][Va].toString(),xh=new WeakMap;function _h(e){if(!e||!ju(e))return!1;let t=Jn(e);if(t===null||t===mt[Ga])return!0;let r=mt.hasOwnProperty.call(t,Va)&&t[Va];if(r===Object)return!0;if(!Qn(r))return!1;let n=xh.get(r);return n===void 0&&(n=Function.toString.call(r),xh.set(r,n)),n===kO}function Ha(e,t,r=!0){ti(e)===0?(r?Reflect.ownKeys(e):mt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function ti(e){let t=e[rt];return t?t.type_:Xa(e)?1:Za(e)?2:Qa(e)?3:0}var bh=(e,t,r=ti(e))=>r===2?e.has(t):mt[Ga].hasOwnProperty.call(e,t),ku=(e,t,r=ti(e))=>r===2?e.get(t):e[t],$a=(e,t,r,n=ti(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function IO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Xa=Array.isArray,Za=e=>e instanceof Map,Qa=e=>e instanceof Set,ju=e=>typeof e=="object",Qn=e=>typeof e=="function",Eu=e=>typeof e=="boolean";function TO(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ur=e=>e.copy_||e.base_;var Lu=e=>e.modified_?e.copy_:e.base_;function Iu(e,t){if(Za(e))return new Map(e);if(Qa(e))return new Set(e);if(Xa(e))return Array[Ga].slice.call(e);let r=_h(e);if(t===!0||t==="class_only"&&!r){let n=mt.getOwnPropertyDescriptors(e);delete n[rt];let o=Reflect.ownKeys(n);for(let i=0;i1&&mt.defineProperties(e,{set:Ba,add:Ba,clear:Ba,delete:Ba}),mt.freeze(e),t&&Ha(e,(r,n)=>{zu(n,!0)},!1)),e}function MO(){Lt(2)}var Ba={[Qo]:MO};function Ja(e){return e===null||!ju(e)?!0:mt.isFrozen(e)}var Ka="MapSet",Tu="Patches",wh="ArrayMethods",kh={};function Jr(e){let t=kh[e];return t||Lt(0,e),t}var Sh=e=>!!kh[e];var Jo,Ih=()=>Jo,RO=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sh(Ka)?Jr(Ka):void 0,arrayMethodsPlugin_:Sh(wh)?Jr(wh):void 0});function Ph(e,t){t&&(e.patchPlugin_=Jr(Tu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mu(e){Ru(e),e.drafts_.forEach(DO),e.drafts_=null}function Ru(e){e===Jo&&(Jo=e.parent_)}var Ah=e=>Jo=RO(Jo,e);function DO(e){let t=e[rt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Oh(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[rt].modified_&&(Mu(t),Lt(4)),_t(e)&&(e=Eh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[rt].base_,e,t)}else e=Eh(t,r);return NO(t,e,!0),Mu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ch?e:void 0}function Eh(e,t){if(Ja(t))return t;let r=t[rt];if(!r)return qa(t,e.handledSet_,e);if(!es(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Rh(r,e)}return r.copy_}function NO(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zu(t,r)}function Th(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var es=(e,t)=>e.scope_===t,jO=[];function Mh(e,t,r,n){let o=ur(e),i=e.type_;if(n!==void 0&&ku(o,n,i)===t){$a(o,n,r,i);return}if(!e.draftLocations_){let s=e.draftLocations_=new Map;Ha(o,(l,c)=>{if(Yt(c)){let u=s.get(c)||[];u.push(l),s.set(c,u)}})}let a=e.draftLocations_.get(t)??jO;for(let s of a)$a(o,s,r,i)}function LO(e,t,r){e.callbacks_.push(function(o){let i=t;if(!i||!es(i,o))return;o.mapSetPlugin_?.fixSetContents(i);let a=Lu(i);Mh(e,i.draft_??i,a,r),Rh(i,o)})}function Rh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Th(e)}}function zO(e,t,r){let{scope_:n}=e;if(Yt(r)){let o=r[rt];es(o,n)&&o.callbacks_.push(function(){Wa(e);let a=Lu(o);Mh(e,r,a,t)})}else _t(r)&&e.callbacks_.push(function(){let i=ur(e);e.type_===3?i.has(r)&&qa(r,n.handledSet_,n):ku(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&qa(ku(e.copy_,t,e.type_),n.handledSet_,n)})}function qa(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Yt(e)||t.has(e)||!_t(e)||Ja(e)||(t.add(e),Ha(e,(n,o)=>{if(Yt(o)){let i=o[rt];if(es(i,r)){let a=Lu(i);$a(e,n,a,e.type_),Th(i)}}else _t(o)&&qa(o,t,r)})),e}function BO(e,t){let r=Xa(e),n={type_:r?1:0,scope_:t?t.scope_:Ih(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=n,i=Ya;r&&(o=[n],i=ei);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var Ya={get(e,t){if(t===rt)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=ur(e);if(!bh(o,t,e.type_))return FO(e,o,t);let i=o[t];if(e.finalized_||!_t(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&TO(t))return i;if(i===Cu(e.base_,t)){Wa(e);let a=e.type_===1?+t:t,s=Nu(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in ur(e)},ownKeys(e){return Reflect.ownKeys(ur(e))},set(e,t,r){let n=Dh(ur(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=Cu(ur(e),t),i=o?.[rt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(IO(r,o)&&(r!==void 0||bh(e.base_,t,e.type_)))return!0;Wa(e),Du(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),zO(e,t,r)),!0},deleteProperty(e,t){return Wa(e),Cu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Du(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ur(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Fa]:!0,[_u]:e.type_!==1||t!=="length",[Ua]:n[Ua],[Qo]:r[t]}},defineProperty(){Lt(11)},getPrototypeOf(e){return Jn(e.base_)},setPrototypeOf(){Lt(12)}},ei={};for(let e in Ya){let t=Ya[e];ei[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ei.deleteProperty=function(e,t){return ei.set.call(this,e,t,void 0)};ei.set=function(e,t,r){return Ya.set.call(this,e[0],t,r,e[0])};function Cu(e,t){let r=e[rt];return(r?ur(r):e)[t]}function FO(e,t,r){let n=Dh(t,r);return n?Qo in n?n[Qo]:n.get?.call(e.draft_):void 0}function Dh(e,t){if(!(t in e))return;let r=Jn(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Jn(r)}}function Du(e){e.modified_||(e.modified_=!0,e.parent_&&Du(e.parent_))}function Wa(e){e.copy_||(e.assigned_=new Map,e.copy_=Iu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var WO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Qn(t)&&!Qn(r)){let i=r;r=t;let a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}Qn(r)||Lt(6),n!==void 0&&!Qn(n)&&Lt(7);let o;if(_t(t)){let i=Ah(this),a=Nu(i,t,void 0),s=!0;try{o=r(a),s=!1}finally{s?Mu(i):Ru(i)}return Ph(i,n),Oh(o,i)}else if(!t||!ju(t)){if(o=r(t),o===void 0&&(o=t),o===Ch&&(o=void 0),this.autoFreeze_&&zu(o,!0),n){let i=[],a=[];Jr(Tu).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:a}),n(i,a)}return o}else Lt(1,t)},this.produceWithPatches=(t,r)=>{if(Qn(t))return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},Eu(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Eu(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Eu(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){_t(e)||Lt(8),Yt(e)&&(e=Ye(e));let t=Ah(this),r=Nu(t,e,void 0);return r[rt].isManual_=!0,Ru(t),r}finishDraft(e,t){let r=e&&e[rt];(!r||!r.isManual_)&&Lt(9);let{scope_:n}=r;return Ph(n,t),Oh(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Jr(Tu).applyPatches_;return Yt(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Nu(e,t,r,n){let[o,i]=Za(t)?Jr(Ka).proxyMap_(t,r):Qa(t)?Jr(Ka).proxySet_(t,r):BO(t,r);return(r?.scope_??Ih()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?LO(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Ye(e){return Yt(e)||Lt(10,e),Nh(e)}function Nh(e){if(!_t(e)||Ja(e))return e;let t=e[rt],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Iu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Iu(e,!0);return Ha(r,(o,i)=>{$a(r,o,Nh(i))},n),t&&(t.finalized_=!1),r}var VO=new WO,Bu=VO.produce;function jh(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Lh=jh(),zh=jh;var UO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},xV=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},$O=e=>e&&typeof e.match=="function";function Ne(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(ht(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Ou(n)&&n.type===e,r}var qh=class ri extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ri.prototype)}static get[Symbol.species](){return ri}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ri(...t[0].concat(this)):new ri(...t.concat(this))}};function Bh(e){return _t(e)?Bu(e,()=>{}):e}function ts(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function KO(e){return typeof e=="boolean"}var qO=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},a=new qh;return r&&(KO(r)?a.push(Lh):a.push(zh(r.extraArgument))),a},Yh="RTK_autoBatch",fe=()=>e=>({payload:e,meta:{[Yh]:!0}}),Fh=e=>t=>{setTimeout(t,e)},YO=(e,t)=>r=>{let n=!1,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(o),a=setTimeout(o,t)},Uu=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,a=!1,s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?YO(window.requestAnimationFrame,100):Fh(10):e.type==="callback"?e.queueNotification:Fh(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let f=()=>o&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Yh],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},GO=e=>function(r){let{autoBatch:n=!0}=r??{},o=new qh(e);return n&&o.push(Uu(typeof n=="object"?n:void 0)),o};function Gh(e){let t=qO(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{},l;if(typeof r=="function")l=r;else if(La(r))l=za(r);else throw new Error(ht(1));let c;typeof n=="function"?c=n(t):c=t();let u=Zo;o&&(u=UO({trace:!1,...typeof o=="object"&&o}));let f=gh(...c),d=GO(f),p=typeof s=="function"?s(d):d(),h=u(...p);return Au(l,a,h)}function Hh(e){let t={},r=[],n,o={addCase(i,a){let s=typeof i=="string"?i:i.type;if(!s)throw new Error(ht(28));if(s in t)throw new Error(ht(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function HO(e){return typeof e=="function"}function XO(e,t){let[r,n,o]=Hh(t),i;if(HO(e))i=()=>Bh(e());else{let s=Bh(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,f)=>{if(f)if(Yt(u)){let p=f(u,l);return p===void 0?u:p}else{if(_t(u))return Bu(u,d=>f(d,l));{let d=f(u,l);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return a.getInitialState=i,a}var ZO=(e,t)=>$O(e)?e.match(t):e(t);function QO(...e){return t=>e.some(r=>ZO(r,t))}var JO="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xh=(e=21)=>{let t="",r=e;for(;r--;)t+=JO[Math.random()*64|0];return t},eE=["name","message","stack","code"],Fu=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Wh=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},tE=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of eE)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Vh="External signal was aborted",rE=(()=>{function e(t,r,n){let o=Ne(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=Ne(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Ne(t+"/rejected",(l,c,u,f,d)=>({payload:f,error:(n&&n.serializeError||tE)(l||"Rejected"),meta:{...d||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function s(l,{signal:c}={}){return(u,f,d)=>{let p=n?.idGenerator?n.idGenerator(l):Xh(),h=new AbortController,m,g;function v(A){g=A,h.abort()}c&&(c.aborted?v(Vh):c.addEventListener("abort",()=>v(Vh),{once:!0}));let P=async function(){let A;try{let O=n?.condition?.(l,{getState:f,extra:d});if(oE(O)&&(O=await O),O===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((T,k)=>{m=()=>{k({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});u(i(p,l,n?.getPendingMeta?.({requestId:p,arg:l},{getState:f,extra:d}))),A=await Promise.race([_,Promise.resolve(r(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:h.signal,abort:v,rejectWithValue:(T,k)=>new Fu(T,k),fulfillWithValue:(T,k)=>new Wh(T,k)})).then(T=>{if(T instanceof Fu)throw T;return T instanceof Wh?o(T.payload,p,l,T.meta):o(T,p,l)})])}catch(O){A=O instanceof Fu?a(null,p,l,O.payload,O.meta):a(O,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&a.match(A)&&A.meta.condition||u(A),A}();return Object.assign(P,{abort:v,requestId:p,arg:l,unwrap(){return P.then(nE)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:QO(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function nE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function oE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Zh=Symbol.for("rtk-slice-createasyncthunk"),wV={[Zh]:rE};function iE(e,t){return`${e}/${t}`}function aE({creators:e}={}){let t=e?.asyncThunk?.[Zh];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(ht(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(lE()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(A,C){let O=typeof A=="string"?A:A.type;if(!O)throw new Error(ht(12));if(O in l.sliceCaseReducersByType)throw new Error(ht(13));return l.sliceCaseReducersByType[O]=C,c},addMatcher(A,C){return l.sliceMatchers.push({matcher:A,reducer:C}),c},exposeAction(A,C){return l.actionCreators[A]=C,c},exposeCaseReducer(A,C){return l.sliceCaseReducersByName[A]=C,c}};s.forEach(A=>{let C=a[A],O={reducerName:A,type:iE(o,A),createNotation:typeof n.reducers=="function"};uE(C)?dE(O,C,c,t):cE(O,C,c)});function u(){let[A={},C=[],O=void 0]=typeof n.extraReducers=="function"?Hh(n.extraReducers):[n.extraReducers],_={...A,...l.sliceCaseReducersByType};return XO(n.initialState,T=>{for(let k in _)T.addCase(k,_[k]);for(let k of l.sliceMatchers)T.addMatcher(k.matcher,k.reducer);for(let k of C)T.addMatcher(k.matcher,k.reducer);O&&T.addDefaultCase(O)})}let f=A=>A,d=new Map,p=new WeakMap,h;function m(A,C){return h||(h=u()),h(A,C)}function g(){return h||(h=u()),h.getInitialState()}function v(A,C=!1){function O(T){let k=T[A];return typeof k>"u"&&C&&(k=ts(p,O,g)),k}function _(T=f){let k=ts(d,C,()=>new WeakMap);return ts(k,T,()=>{let B={};for(let[j,U]of Object.entries(n.selectors??{}))B[j]=sE(U,T,()=>ts(p,T,g),C);return B})}return{reducerPath:A,getSelectors:_,get selectors(){return _(O)},selectSlice:O}}let P={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...v(i),injectInto(A,{reducerPath:C,...O}={}){let _=C??i;return A.inject({reducerPath:_,reducer:m},O),{...P,...v(_,!0)}}};return P}}function sE(e,t,r,n){function o(i,...a){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return o.unwrapped=e,o}var le=aE();function lE(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function cE({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!fE(n))throw new Error(ht(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Ne(e,a):Ne(e))}function uE(e){return e._reducerDefinitionType==="asyncThunk"}function fE(e){return e._reducerDefinitionType==="reducerWithPrepare"}function dE({type:e,reducerName:t},r,n,o){if(!o)throw new Error(ht(18));let{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,f=o(e,i,u);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:a||rs,pending:s||rs,rejected:l||rs,settled:c||rs})}function rs(){}var pE="task",Qh="listener",Jh="completed",$u="cancelled",mE=`task-${$u}`,hE=`task-${Jh}`,Wu=`${Qh}-${$u}`,vE=`${Qh}-${Jh}`,is=class{constructor(e){this.code=e,this.message=`${pE} ${$u} (reason: ${e})`}code;name="TaskAbortError";message},Ku=(e,t)=>{if(typeof e!="function")throw new TypeError(ht(32))},ns=()=>{},ev=(e,t=ns)=>(e.catch(t),e),tv=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),en=e=>{if(e.aborted)throw new is(e.reason)};function rv(e,t){let r=ns;return new Promise((n,o)=>{let i=()=>o(new is(e.reason));if(e.aborted){i();return}r=tv(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=ns})}var gE=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof is?"cancelled":"rejected",error:r}}finally{t?.()}},os=e=>t=>ev(rv(e,t).then(r=>(en(e),r))),nv=e=>{let t=os(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:eo}=Object,Uh={},as="listenerMiddleware",yE=(e,t)=>{let r=n=>tv(e,()=>n.abort(e.reason));return(n,o)=>{Ku(n,"taskExecutor");let i=new AbortController;r(i);let a=gE(async()=>{en(e),en(i.signal);let s=await n({pause:os(i.signal),delay:nv(i.signal),signal:i.signal});return en(i.signal),s},()=>i.abort(hE));return o?.autoJoin&&t.push(a.catch(ns)),{result:os(e)(a),cancel(){i.abort(mE)}}}},xE=(e,t)=>{let r=async(n,o)=>{en(t);let i=()=>{},s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await rv(t,Promise.race(s));return en(t),l}finally{i()}};return(n,o)=>ev(r(n,o))},ov=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Ne(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(ht(21));return Ku(i,"options.listener"),{predicate:o,type:t,effect:i}},iv=eo(e=>{let{type:t,predicate:r,effect:n}=ov(e);return{id:Xh(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(ht(22))}}},{withTypes:()=>iv}),$h=(e,t)=>{let{type:r,effect:n,predicate:o}=ov(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Vu=e=>{e.pending.forEach(t=>{t.abort(Wu)})},bE=(e,t)=>()=>{for(let r of t.keys())Vu(r);e.clear()},Kh=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},av=eo(Ne(`${as}/add`),{withTypes:()=>av}),wE=Ne(`${as}/removeAll`),sv=eo(Ne(`${as}/remove`),{withTypes:()=>sv}),SE=(...e)=>{console.error(`${as}/error`,...e)},fr=(e={})=>{let t=new Map,r=new Map,n=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:i,onError:a=SE}=e;Ku(a,"onError");let s=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&Vu(p)}),l=p=>{let h=$h(t,p)??iv(p);return s(h)};eo(l,{withTypes:()=>l});let c=p=>{let h=$h(t,p);return h&&(h.unsubscribe(),p.cancelActive&&Vu(h)),!!h};eo(c,{withTypes:()=>c});let u=async(p,h,m,g)=>{let v=new AbortController,P=xE(l,v.signal),A=[];try{p.pending.add(v),n(p),await Promise.resolve(p.effect(h,eo({},m,{getOriginalState:g,condition:(C,O)=>P(C,O).then(Boolean),take:P,delay:nv(v.signal),pause:os(v.signal),extra:i,signal:v.signal,fork:yE(v.signal,A),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((C,O,_)=>{C!==v&&(C.abort(Wu),_.delete(C))})},cancel:()=>{v.abort(Wu),p.pending.delete(v)},throwIfCancelled:()=>{en(v.signal)}})))}catch(C){C instanceof is||Kh(a,C,{raisedBy:"effect"})}finally{await Promise.all(A),v.abort(vE),o(p),p.pending.delete(v)}},f=bE(t,r);return{middleware:p=>h=>m=>{if(!Ou(m))return h(m);if(av.match(m))return l(m.payload);if(wE.match(m)){f();return}if(sv.match(m))return c(m.payload);let g=p.getState(),v=()=>{if(g===Uh)throw new Error(ht(23));return g},P;try{if(P=h(m),t.size>0){let A=p.getState(),C=Array.from(t.values());for(let O of C){let _=!1;try{_=O.predicate(m,A,g)}catch(T){_=!1,Kh(a,T,{raisedBy:"predicate"})}_&&u(O,m,p,v)}}}finally{g=Uh}return P},startListening:l,stopListening:c,clearListeners:f}};function ht(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var PE={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},lv=le({name:"chartLayout",initialState:PE,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:qu,setLayout:cv,setChartSize:uv,setScale:fv}=lv.actions,dv=lv.reducer;function ss(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ee(e){return Number.isFinite(e)}function zt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return to(to({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return to(to({},e),{},{[a]:e[a]+(o||0)})}return e},Bt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis";var hv=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(c[0]=i,i+=d,c[1]=i):(c[0]=a,a+=d,c[1]=a)}}}},_E=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},kE={sign:CE,expand:cu,none:ft,silhouette:uu,wiggle:fu,positive:_E},vv=(e,t,r)=>{var n,o=(n=kE[r])!==null&&n!==void 0?n:ft,i=lu().keys(t).value((s,l)=>Number(Se(s,l,0))).order(Gn).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var f=Se(e[u],t[l],0);Array.isArray(f)&&f.length===2&&q(f[0])&&q(f[1])&&(c[0]=f[0],c[1]=f[1])})}),a};function gv(e){return e==null?void 0:String(e)}var Yu=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=Se(i,t.dataKey,t.scale.domain()[a]);if(de(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},yv=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},IE=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},TE=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],xv=(e,t,r)=>{if(e!=null)return TE(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=ss(c,t,r),f=IE(u);return!ee(f[0])||!ee(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},Gu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ro=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=cr(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},wv=(e,t)=>t==="centric"?e.angle:e.radius;var Xe=e=>e.layout.width,Ze=e=>e.layout.height,Sv=e=>e.layout.scale,ls=e=>e.layout.margin;var no=I(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),oo=I(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Pv="data-recharts-item-index",Av="data-recharts-item-id",tn=60;function Ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;te.brush.height;function jE(e){var t=oo(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:tn;return r+o}return r},0)}function LE(e){var t=oo(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:tn;return r+o}return r},0)}function zE(e){var t=no(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function BE(e){var t=no(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var pe=I([Xe,Ze,ls,NE,jE,LE,zE,BE,Su,mh],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},f={top:(r.top||0)+a,bottom:(r.bottom||0)+s},d=cs(cs({},f),u),p=d.bottom;d.bottom+=n,d=mv(d,l,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return cs(cs({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Ev=I(pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),us=I(Xe,Ze,(e,t)=>({x:0,y:0,width:e,height:t}));import*as FE from"react";import{createContext as WE,useContext as VE}from"react";var UE=WE(null),Oe=()=>VE(UE)!=null;var io=e=>e.brush,rn=I([io,pe,ls],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width}));import*as nn from"react";import{createContext as QE,forwardRef as Dv,useCallback as JE,useContext as eC,useEffect as tC,useImperativeHandle as rC,useMemo as nC,useRef as Rv,useState as oC}from"react";function Cv(e,t,{signal:r,edges:n}={}){let o,i=null,a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},c=()=>{s&&l(),p()},u=null,f=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,c()},t)},d=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{d(),o=void 0,i=null},h=()=>{l()},m=function(...g){if(r?.aborted)return;o=this,i=g;let v=u==null;f(),a&&v&&l()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function _v(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:n=!1,trailing:o=!0,maxWait:i}=r,a=Array(2);n&&(a[0]="leading"),o&&(a[1]="trailing");let s,l=null,c=Cv(function(...d){s=e.apply(this,d),l=null},t,{edges:a}),u=function(...d){return i!=null&&(l===null&&(l=Date.now()),Date.now()-l>=i)?(s=e.apply(this,d),l=Date.now(),c.cancel(),c.schedule(),s):(c.apply(this,d),s)},f=()=>(c.flush(),s);return u.cancel=c.cancel,u.flush=f,u}function Qu(e,t=0,r={}){let{leading:n=!0,trailing:o=!0}=r;return _v(e,t,{leading:n,maxWait:t,trailing:o})}var $E=!0,Ju=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;io[a++]))}};var Ft={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ef=(e,t,r)=>{var{width:n=Ft.width,height:o=Ft.height,aspect:i,maxHeight:a}=r,s=ar(n)?e:Number(n),l=ar(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},KE={width:0,height:0,overflow:"visible"},qE={width:0,overflowX:"visible"},YE={height:0,overflowY:"visible"},GE={},kv=e=>{var{width:t,height:r}=e,n=ar(t),o=ar(r);return n&&o?KE:n?qE:o?YE:GE};function Iv(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Ft.width,i=Ft.height):o===void 0?o=n&&n>0?void 0:Ft.width:i===void 0&&(i=n&&n>0?void 0:Ft.height),{width:o,height:i}}function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return iC(o)?nn.createElement(Nv.Provider,{value:o},t):null}var ni=()=>eC(Nv),aC=Dv((e,t)=>{var{aspect:r,initialDimension:n=Ft.initialDimension,width:o,height:i,minWidth:a=Ft.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Ft.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=Rv(null),g=Rv();g.current=p,rC(t,()=>m.current);var[v,P]=oC({containerWidth:n.width,containerHeight:n.height}),A=JE((k,B)=>{P(j=>{var U=Math.round(k),z=Math.round(B);return j.containerWidth===U&&j.containerHeight===z?j:{containerWidth:U,containerHeight:z}})},[]);tC(()=>{if(m.current==null||typeof ResizeObserver>"u")return pt;var k=z=>{var Z,X=z[0];if(X!=null){var{width:Q,height:y}=X.contentRect;A(Q,y),(Z=g.current)===null||Z===void 0||Z.call(g,Q,y)}};u>0&&(k=Qu(k,u,{trailing:!0,leading:!1}));var B=new ResizeObserver(k),{width:j,height:U}=m.current.getBoundingClientRect();return A(j,U),B.observe(m.current),()=>{B.disconnect()}},[A,u]);var{containerWidth:C,containerHeight:O}=v;Ju(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:_,calculatedHeight:T}=ef(C,O,{width:o,height:i,aspect:r,maxHeight:l});return Ju(_!=null&&_>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,_,T,o,i,a,s,r),nn.createElement("div",{id:f?"".concat(f):void 0,className:J("recharts-responsive-container",d),style:Mv(Mv({},h),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},nn.createElement("div",{style:kv({width:o,height:i})},nn.createElement(jv,{width:_,height:T},c)))}),rf=Dv((e,t)=>{var r=ni();if(zt(r.width)&&zt(r.height))return e.children;var{width:n,height:o}=Iv({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=ef(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?nn.createElement(jv,{width:i,height:a},e.children):nn.createElement(aC,tf({},e,{width:n,height:o,ref:t}))});function oi(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var on=()=>{var e,t=Oe(),r=H(Ev),n=H(rn),o=(e=H(io))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},lC={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Lv=()=>{var e;return(e=H(pe))!==null&&e!==void 0?e:lC},zv=()=>H(Xe),Bv=()=>H(Ze);var ae=e=>e.layout.layoutType,Gt=()=>H(ae),Fv=()=>{var e=Gt();if(e==="horizontal"||e==="vertical")return e},nf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Wv=()=>{var e=Gt();return e!==void 0},an=e=>{var t=oe(),r=Oe(),{width:n,height:o}=e,i=ni(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),sC(()=>{!r&&zt(a)&&zt(s)&&t(uv({width:a,height:s}))},[t,r,a,s]),null};var cC={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Vv=le({name:"legend",initialState:cC,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:fe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:fe()},removeLegendPayload:{reducer(e,t){var r=Ye(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:fe()}}}),{setLegendSize:TU,setLegendSettings:MU,addLegendPayload:Uv,replaceLegendPayload:$v,removeLegendPayload:Kv}=Vv.actions,qv=Vv.reducer;import*as Ee from"react";var uC=Symbol.for("react.forward_ref");var fC=Symbol.for("react.memo");var dC=uC,pC=fC;function mC(e){e()}function hC(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mC(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Yv={notify(){},get:()=>[]};function vC(e,t){let r,n=Yv,o=0,i=!1;function a(m){u();let g=n.subscribe(m),v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return i}function u(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=hC())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Yv)}function d(){i||(i=!0,u())}function p(){i&&(i=!1,f())}let h={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>n};return h}var gC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yC=gC(),xC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bC=xC(),wC=()=>yC||bC?Ee.useLayoutEffect:Ee.useEffect,SC=wC();function Gv(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Hv(e,t){if(Gv(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o{let l=vC(o);return{store:o,subscription:l,getServerState:n?()=>n:void 0}},[o,n]),a=Ee.useMemo(()=>o.getState(),[o]);return SC(()=>{let{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]),Ee.createElement((r||_C).Provider,{value:i},t)}var Xv=kC;var IC=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function TC(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function _r(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(IC.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Hv(e[n],t[n]))return!1}else if(!TC(e[n],t[n]))return!1;return!0}import*as Rt from"react";import{useEffect as qM}from"react";import{createPortal as YM}from"react-dom";import*as Wt from"react";function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=ao.separator,contentStyle:r,itemStyle:n,labelStyle:o=ao.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:d=ao.accessibilityLayer}=e,p=()=>{if(i&&i.length){var O={padding:0,margin:0},_=jC(i,s),T=_.map((k,B)=>{if(k.type==="none")return null;var j=k.formatter||a||NC,{value:U,name:z}=k,Z=U,X=z;if(j){var Q=j(U,z,k,B,i);if(Array.isArray(Q))[Z,X]=Q;else if(Q!=null)Z=Q;else return null}var y=ii(ii({},ao.itemStyle),{},{color:k.color||ao.itemStyle.color},n);return Wt.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(B),style:y},tt(X)?Wt.createElement("span",{className:"recharts-tooltip-item-name"},X):null,tt(X)?Wt.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Wt.createElement("span",{className:"recharts-tooltip-item-value"},Z),Wt.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return Wt.createElement("ul",{className:"recharts-tooltip-item-list",style:O},T)}return null},h=ii(ii({},ao.contentStyle),r),m=ii({margin:0},o),g=!de(u),v=g?u:"",P=J("recharts-default-tooltip",l),A=J("recharts-tooltip-label",c);g&&f&&i!==void 0&&i!==null&&(v=f(u,i));var C=d?{role:"status","aria-live":"assertive"}:{};return Wt.createElement("div",of({className:P,style:h},C),Wt.createElement("p",{className:A,style:m},Wt.isValidElement(v)?v:"".concat(v)),p())};import*as kr from"react";var ai="recharts-tooltip-wrapper",LC={visibility:"hidden"};function zC(e){var{coordinate:t,translateX:r,translateY:n}=e;return J(ai,{["".concat(ai,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(ai,"-left")]:q(r)&&t&&q(t.x)&&r=t.y,["".concat(ai,"-top")]:q(n)&&t&&q(t.y)&&n0?o:0),f=r[n]+o;if(t[n])return a[n]?u:f;var d=l[n];if(d==null)return 0;if(a[n]){var p=u,h=d;return pg?Math.max(u,d):Math.max(f,d)}function BC(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function eg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,f,d;return s.height>0&&s.width>0&&r?(f=Jv({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),d=Jv({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=BC({translateX:f,translateY:d,useTranslate3d:l})):u=LC,{cssProperties:u,cssClasses:zC({translateX:f,translateY:d,coordinate:r})}}import{useEffect as WC,useState as VC}from"react";var FC=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),kt={devToolsEnabled:!0,isSsr:FC()};function fs(){var[e,t]=VC(()=>kt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return WC(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function so(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));kr.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var g,v,P,A;c({dismissed:!0,dismissedAtCoordinate:{x:(g=(v=e.coordinate)===null||v===void 0?void 0:v.x)!==null&&g!==void 0?g:0,y:(P=(A=e.coordinate)===null||A===void 0?void 0:A.y)!==null&&P!==void 0?P:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((n=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.x||((i=(a=e.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)!==l.dismissedAtCoordinate.y)&&c(so(so({},l),{},{dismissed:!1}));var{cssClasses:u,cssProperties:f}=eg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:so(so({transition:qC({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=so(so({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return kr.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:p,ref:e.innerRef},e.children)}var rg=kr.memo(YC);var ds=()=>{var e;return(e=H(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as ql from"react";import{cloneElement as PM,createElement as AM,isValidElement as OM}from"react";import*as lg from"react";function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;tee(e.x)&&ee(e.y),ag=e=>e.base!=null&&ps(e.base)&&ps(e),si=e=>e.x,li=e=>e.y,ZC=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(lr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=ig["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return ig[r]||Er},sg={connectNulls:!1,type:"linear"},QC=e=>{var{type:t=sg.type,points:r=[],baseLine:n,layout:o,connectNulls:i=sg.connectNulls}=e,a=ZC(t,o),s=i?r.filter(ps):r;if(Array.isArray(n)){var l,c=r.map((h,m)=>og(og({},h),{},{base:n[m]}));o==="vertical"?l=$n().y(li).x1(si).x0(h=>h.base.x):l=$n().x(si).y1(li).y0(h=>h.base.y);var u=l.defined(ag).curve(a),f=i?c.filter(ag):c;return u(f)}var d;o==="vertical"&&q(n)?d=$n().y(li).x1(si).x0(n):q(n)?d=$n().x(si).y1(li).y0(n):d=Ko().x(si).y(li);var p=d.defined(ps).curve(a);return p(s)},ms=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Gt();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?QC(a):n;return lg.createElement("path",af({},At(e),xm(e),{className:J("recharts-curve",t),d:s===null?void 0:s,ref:o}))};import*as ug from"react";var JC=["x","y","top","left","width","height","className"];function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),fg=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=o1(e,JC),c=e1({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:ug.createElement("path",sf({},Pe(c),{className:J("recharts-cross",s),d:a1(t,r,i,a,n,o)}))};function dg(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}import*as xs from"react";import{useEffect as D1,useMemo as N1,useRef as ci,useState as j1}from"react";import{useEffect as Cg,useRef as O1,useState as E1}from"react";function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),hs=(e,t,r)=>e.map(n=>"".concat(u1(n)," ").concat(t,"ms ").concat(r)).join(","),hg=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),lo=(e,t)=>Object.keys(t).reduce((r,n)=>mg(mg({},r),{},{[n]:e(n,t[n])}),{});function vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;te+(t-e)*r,lf=e=>{var{from:t,to:r}=e;return t!==r},gg=(e,t,r)=>{var n=lo((o,i)=>{if(lf(i)){var[a,s]=e(i.from,i.to,i.velocity);return je(je({},i),{},{from:a,velocity:s})}return i},t);return r<1?lo((o,i)=>lf(i)&&n[o]!=null?je(je({},i),{},{velocity:vs(i.velocity,n[o].velocity,r),from:vs(i.from,n[o].from,r)}):i,t):gg(e,n,r-1)};function m1(e,t,r,n,o,i){var a,s=n.reduce((d,p)=>je(je({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>lo((d,p)=>p.from,s),c=()=>!Object.values(s).filter(lf).length,u=null,f=d=>{a||(a=d);var p=d-a,h=p/r.dt;s=gg(r,s,h),o(je(je(je({},e),t),l())),a=d,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{var d;(d=u)===null||d===void 0||d()})}function h1(e,t,r,n,o,i,a){var s=null,l=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:je(je({},f),{},{[d]:[p,h]})},{}),c,u=f=>{c||(c=f);var d=(f-c)/n,p=lo((m,g)=>vs(...g,r(d)),l);if(i(je(je(je({},e),t),p)),d<1)s=a.setTimeout(u);else{var h=lo((m,g)=>vs(...g,r(1)),l);i(je(je(je({},e),t),h))}};return()=>(s=a.setTimeout(u),()=>{var f;(f=s)===null||f===void 0||f()})}var yg=(e,t,r,n,o,i)=>{var a=hg(e,t);return r==null?()=>(o(je(je({},e),t)),()=>{}):r.isStepper===!0?m1(e,t,r,a,o,i):h1(e,t,r,n,a,o,i)};var gs=1e-4,wg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Sg=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),xg=(e,t)=>r=>{var n=wg(e,t);return Sg(n,r)},v1=(e,t)=>r=>{var n=wg(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return Sg(o,r)},g1=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},y1=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var o=xg(e,r),i=xg(t,n),a=v1(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,f=u,d=0;d<8;++d){var p=o(f)-u,h=a(f);if(Math.abs(p-u)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,f=l+(c-u)*o/1e3,d=l*o/1e3+a;return Math.abs(d-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return bg(e);case"spring":return b1();default:if(e.split("(")[0]==="cubic-bezier")return bg(e)}return typeof e=="function"?e:null};import{createContext as w1,useContext as S1,useMemo as P1}from"react";function Ag(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}var ys=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}};function Og(){return Ag(new ys)}var A1=w1(Og);function Eg(e,t){var r=S1(A1);return P1(()=>t??r(e),[e,t,r])}var C1={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},_g={t:0},cf={t:1};function co(e){var t=Ae(e,C1),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=fs(),f=r==="auto"?!kt.isSsr&&!u:r,d=Eg(t.animationId,t.animationManager),[p,h]=E1(f?_g:cf),m=O1(null);return Cg(()=>{f||h(cf)},[f]),Cg(()=>{if(!f||!n)return pt;var g=yg(_g,cf,Pg(i),o,h,d.getTimeoutController()),v=()=>{m.current=g()};return d.start([l,a,v,o,s]),()=>{d.stop(),m.current&&m.current(),s()}},[f,n,o,i,a,l,s,d]),c(p.t)}import{useRef as kg}from"react";function uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=kg(sr(t)),n=kg(e);return n.current!==e&&(r.current=sr(t),n.current=e),r.current}var _1=["radius"],k1=["radius"],Ig,Tg,Mg,Rg,Dg,Ng,jg,Lg,zg,Bg;function Fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wg(e){for(var t=1;t{var i=qt(r),a=qt(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,f;if(s>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;ps?s:g}f=ve(Ig||(Ig=Ht(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=ve(Tg||(Tg=Ht(["A ",",",",0,0,",",",",",""])),d[0],d[0],u,e+c*d[0],t)),f+=ve(Mg||(Mg=Ht(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=ve(Rg||(Rg=Ht(["A ",",",",0,0,",`, - `,",",""])),d[1],d[1],u,e+r,t+l*d[1])),f+=ve(Dg||(Dg=Ht(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=ve(Ng||(Ng=Ht(["A ",",",",0,0,",`, - `,",",""])),d[2],d[2],u,e+r-c*d[2],t+n)),f+=ve(jg||(jg=Ht(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=ve(Lg||(Lg=Ht(["A ",",",",0,0,",`, - `,",",""])),d[3],d[3],u,e,t+n-l*d[3])),f+="Z"}else if(s>0&&o===+o&&o>0){var v=Math.min(s,o);f=ve(zg||(zg=Ht(["M ",",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",","," Z"])),e,t+l*v,v,v,u,e+c*v,t,e+r-c*v,t,v,v,u,e+r,t+l*v,e+r,t+n-l*v,v,v,u,e+r-c*v,t+n,e+c*v,t+n,v,v,u,e,t+n-l*v)}else f=ve(Bg||(Bg=Ht(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},$g={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ws=e=>{var t=Ae(e,$g),r=ci(null),[n,o]=j1(-1);D1(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,g=ci(s),v=ci(l),P=ci(i),A=ci(a),C=N1(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),O=uo(C,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var _=J("recharts-rectangle",u);if(!m){var T=Pe(t),{radius:k}=T,B=Vg(T,_1);return xs.createElement("path",bs({},B,{x:qt(i),y:qt(a),width:qt(s),height:qt(l),radius:typeof c=="number"?c:void 0,className:_,d:Ug(i,a,s,l,c)}))}var j=g.current,U=v.current,z=P.current,Z=A.current,X="0px ".concat(n===-1?1:n,"px"),Q="".concat(n,"px ").concat(n,"px"),y=hs(["strokeDasharray"],d,typeof f=="string"?f:$g.animationEasing);return xs.createElement(co,{animationId:O,key:O,canBegin:n>0,duration:d,easing:f,isActive:m,begin:p},b=>{var E=De(j,s,b),w=De(U,l,b),x=De(z,i,b),S=De(Z,a,b);r.current&&(g.current=E,v.current=w,P.current=x,A.current=S);var M;h?b>0?M={transition:y,strokeDasharray:Q}:M={strokeDasharray:X}:M={strokeDasharray:Q};var R=Pe(t),{radius:L}=R,W=Vg(R,k1);return xs.createElement("path",bs({},W,{radius:typeof c=="number"?c:void 0,className:_,d:Ug(x,S,E,w,c),ref:r,style:Wg(Wg({},M),t.style)}))})};function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qg(e){for(var t=1;te*180/Math.PI,Ce=(e,t,r,n)=>({x:e+Math.cos(-ui*n)*r,y:t+Math.sin(-ui*n)*r}),Yg=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},W1=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},V1=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=W1({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:F1(l),angleInRadian:l}},U1=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},$1=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},Gg=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:o,angle:i}=V1({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(os||o===0)return null;var{startAngle:l,endAngle:c}=U1(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u=l&&u<=c}else{for(;u>l;)u-=360;for(;u=c&&u<=l}return f?qg(qg({},t),{},{radius:o,angle:$1(u,t)}):null};function Ss(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Ce(t,r,n,o),s=Ce(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}import*as ry from"react";var Hg,Xg,Zg,Qg,Jg,ey,ty;function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=ke(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Ps=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/ui,f=l?o:o+i*u,d=Ce(t,r,c,f),p=Ce(t,r,n,f),h=l?o-i*u:o,m=Ce(t,r,c*Math.cos(u*ui),h);return{center:d,circleTangency:p,lineTangency:m,theta:u}},ny=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=K1(i,a),l=i+s,c=Ce(t,r,o,i),u=Ce(t,r,o,l),f=ve(Hg||(Hg=sn(["M ",",",` - A `,",",`,0, - `,",",`, - `,",",` - `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var d=Ce(t,r,n,i),p=Ce(t,r,n,l);f+=ve(Xg||(Xg=sn(["L ",",",` - A `,",",`,0, - `,",",`, - `,","," Z"])),p.x,p.y,n,n,+(Math.abs(s)>180),+(i<=l),d.x,d.y)}else f+=ve(Zg||(Zg=sn(["L ",","," Z"])),t,r);return f},q1=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=ke(c-l),{circleTangency:f,lineTangency:d,theta:p}=Ps({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:h,lineTangency:m,theta:g}=Ps({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-p-g;if(v<0)return a?ve(Qg||(Qg=sn(["M ",",",` - a`,",",",0,0,1,",`,0 - a`,",",",0,0,1,",`,0 - `])),d.x,d.y,i,i,i*2,i,i,-i*2):ny({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var P=ve(Jg||(Jg=sn(["M ",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",",` - `])),d.x,d.y,i,i,+(u<0),f.x,f.y,o,o,+(v>180),+(u<0),h.x,h.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:A,lineTangency:C,theta:O}=Ps({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:_,lineTangency:T,theta:k}=Ps({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),B=s?Math.abs(l-c):Math.abs(l-c)-O-k;if(B<0&&i===0)return"".concat(P,"L").concat(t,",").concat(r,"Z");P+=ve(ey||(ey=sn(["L",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",","Z"])),T.x,T.y,i,i,+(u<0),_.x,_.y,n,n,+(B>180),+(u>0),A.x,A.y,i,i,+(u<0),C.x,C.y)}else P+=ve(ty||(ty=sn(["L",",","Z"])),t,r);return P},Y1={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},As=e=>{var t=Ae(e,Y1),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i0&&Math.abs(c-u)<360?m=q1({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,p/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=ny({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),ry.createElement("path",uf({},Pe(t),{className:d,d:m}))};function oy(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(wa(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Ce(n,o,i,s),c=Ce(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return Ss(t)}}function iy(e){return Da(e)?NaN:Number(e)}function Os(e){return e?(e=iy(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Es(e,t,r){r&&typeof r!="number"&&Xo(e,t,r)&&(t=r=void 0),e=Os(e),t===void 0?(t=e,e=0):t=Os(t),r=r===void 0?ee.chartData,ay=I([It],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ff=(e,t,r,n)=>n?ay(e):It(e),sy=(e,t,r)=>r?ay(e):It(e);function vt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ee(t)&&ee(r))return!0}return!1}function ly(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cs(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ee(r))o=r;else if(typeof r=="function")return;if(ee(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(vt(a))return a}}function cy(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(vt(n))return ly(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&Gu.test(o)){var l=Gu.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Hu.test(i)){var u=Hu.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var d=[a,s];if(vt(d))return t==null?d:ly(d,t,r)}}}var se=ua(df());var pf=ua(df());function mf(e){var t;return e===0?t=1:t=Math.floor(new pf.default(e).abs().log(10).toNumber())+1,t}function hf(e,t,r){for(var n=new pf.default(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var fy=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},vf=(e,t,r)=>{if(e.lte(0))return new se.default(0);var n=mf(e.toNumber()),o=new se.default(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new se.default(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new se.default(l.toNumber()):new se.default(Math.ceil(l.toNumber()))},dy=(e,t,r)=>{var n;if(e.lte(0))return new se.default(0);var o=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new se.default(i).abs().log(10).toNumber()),s=new se.default(10).pow(a),l=e.div(s).toNumber(),c=o.findIndex(p=>p>=l-1e-10);if(c===-1&&(s=s.mul(10),c=0),c+=r,c>=o.length){var u=Math.floor(c/o.length);c%=o.length,s=s.mul(new se.default(10).pow(u))}var f=(n=o[c])!==null&&n!==void 0?n:1,d=new se.default(f).mul(s);return t?d:new se.default(Math.ceil(d.toNumber()))},G1=(e,t,r)=>{var n=new se.default(1),o=new se.default(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new se.default(10).pow(mf(e)-1),o=new se.default(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new se.default(Math.floor(e)))}else e===0?o=new se.default(Math.floor((t-1)/2)):r||(o=new se.default(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:vf;if(!Number.isFinite((r-t)/(n-1)))return{step:new se.default(0),tickMin:new se.default(0),tickMax:new se.default(0)};var s=a(new se.default(r).sub(t).div(n-1),o,i),l;t<=0&&r>=0?l=new se.default(0):(l=new se.default(t).add(r).div(2),l=l.sub(new se.default(l).mod(s)));var c=Math.ceil(l.sub(t).div(s).toNumber()),u=Math.ceil(new se.default(r).sub(l).div(s).toNumber()),f=c+u+1;return f>n?py(t,r,n,o,i+1,a):(f0?u+(n-f):u,c=r>0?c:c+(n-f)),{step:s,tickMin:l.sub(new se.default(c).mul(s)),tickMax:l.add(new se.default(u).mul(s))})};var ks=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(o,2),[l,c]=fy([r,n]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),c];return r>n?u.reverse():u}if(l===c)return G1(l,o,i);var f=a==="snap125"?dy:vf,{step:d,tickMin:p,tickMax:h}=py(l,c,s,i,0,f),m=hf(p,h.add(new se.default(.1).mul(d)),d);return r>n?m.reverse():m},Is=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,l]=fy([n,o]);if(s===-1/0||l===1/0)return[n,o];if(s===l)return[s];var c=a==="snap125"?dy:vf,u=Math.max(r,2),f=c(new se.default(l).sub(s).div(u-1),i,0),d=[...hf(new se.default(s),new se.default(l),f),l];return i===!1&&(d=d.map(p=>Math.round(p))),n>o?d.reverse():d};var gf=e=>e.rootProps.maxBarSize,my=e=>e.rootProps.barGap,Ts=e=>e.rootProps.barCategoryGap,hy=e=>e.rootProps.barSize,fo=e=>e.rootProps.stackOffset,Ms=e=>e.rootProps.reverseStackOrder,po=e=>e.options.chartName,Rs=e=>e.rootProps.syncId,yf=e=>e.rootProps.syncMethod,Ds=e=>e.options.eventEmitter;var ge={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Ir={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:ge.axis};var Vt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:ge.axis};var ln=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function fi(e,t,r){if(r!=="auto")return r;if(e!=null)return Bt(e,t)?"category":"number"}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ns(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},js=I([Q1,nf],(e,t)=>{var r;if(e!=null)return e;var n=(r=fi(t,"angleAxis",gy.type))!==null&&r!==void 0?r:"category";return Ns(Ns({},gy),{},{type:n})}),J1=(e,t)=>e.polarAxis.radiusAxis[t],Ls=I([J1,nf],(e,t)=>{var r;if(e!=null)return e;var n=(r=fi(t,"radiusAxis",yy.type))!==null&&r!==void 0?r:"category";return Ns(Ns({},yy),{},{type:n})}),zs=e=>e.polarOptions,xf=I([Xe,Ze,pe],Yg),xy=I([zs,xf],(e,t)=>{if(e!=null)return Ke(e.innerRadius,t,0)}),by=I([zs,xf],(e,t)=>{if(e!=null)return Ke(e.outerRadius,t,t*.8)}),e_=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},bf=I([zs],e_),GK=I([js,bf],ln),wf=I([xf,xy,by],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),HK=I([Ls,wf],ln),Bs=I([ae,zs,xy,by,Xe,Ze],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:Ke(a,o,o/2),cy:Ke(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}});var Le=(e,t)=>t;var di=(e,t,r)=>r;function mo(e){return e?.id}function Fs(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=mo(s);c.forEach((f,d)=>{var p=i==null||o?d:String(Se(f,i,null)),h=Se(f,s.dataKey,0),m;a.has(p)?m=a.get(p):m={},Object.assign(m,{[u]:h}),a.set(p,m)})}}),Array.from(a.values())}function cn(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var ho=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function vo(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function wy(e,t){if(e.length===t.length){for(var r=0;r{var t=ae(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Tr=e=>e.tooltip.settings.axisId;function pi(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break;default:break}}return s}}}}}var Sy=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!vt(t)){for(var r,n,o=0;on)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};var Lr={};lA(Lr,{scaleBand:()=>gi,scaleDiverging:()=>wl,scaleDivergingLog:()=>ed,scaleDivergingPow:()=>Sl,scaleDivergingSqrt:()=>$x,scaleDivergingSymlog:()=>td,scaleIdentity:()=>il,scaleImplicit:()=>Ys,scaleLinear:()=>ol,scaleLog:()=>al,scaleOrdinal:()=>xo,scalePoint:()=>ky,scalePow:()=>_i,scaleQuantile:()=>cl,scaleQuantize:()=>ul,scaleRadial:()=>ll,scaleSequential:()=>gl,scaleSequentialLog:()=>Qf,scaleSequentialPow:()=>yl,scaleSequentialQuantile:()=>xl,scaleSequentialSqrt:()=>Ux,scaleSequentialSymlog:()=>Jf,scaleSqrt:()=>fx,scaleSymlog:()=>sl,scaleThreshold:()=>fl,scaleTime:()=>Xf,scaleUtc:()=>Zf,tickFormat:()=>Pi});function nt(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function Sf(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function un(e){let t,r,n;e.length!==2?(t=nt,r=(s,l)=>nt(e(s),l),n=(s,l)=>e(s)-l):(t=e===nt||e===Sf?e:t_,r=e,n=e);function o(s,l,c=0,u=s.length){if(c>>1;r(s[f],l)<0?c=f+1:u=f}while(c>>1;r(s[f],l)<=0?c=f+1:u=f}while(cc&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function t_(){return 0}function mi(e){return e===null?NaN:+e}function*Py(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var Ay=un(nt),Oy=Ay.right,r_=Ay.left,n_=un(mi).center,Ut=Oy;var go=class extends Map{constructor(t,r=a_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,o]of t)this.set(n,o)}get(t){return super.get(Ey(this,t))}has(t){return super.has(Ey(this,t))}set(t,r){return super.set(o_(this,t),r)}delete(t){return super.delete(i_(this,t))}};function Ey({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function o_({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function i_({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function a_(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Cy(e=nt){if(e===nt)return Pf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Pf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var s_=Math.sqrt(50),l_=Math.sqrt(10),c_=Math.sqrt(2);function Ws(e,t,r){let n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=s_?10:i>=l_?5:i>=c_?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];let n=t=o))return[];let s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function Us(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function $s(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?Pf:Cy(o);n>r;){if(n-r>600){let l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),p=Math.max(r,Math.floor(t-c*f/l+d)),h=Math.min(n,Math.floor(t+(l-c)*f/l+d));$s(e,t,p,h,o)}let i=e[t],a=r,s=n;for(vi(e,r,t),o(e[n],i)>0&&vi(e,r,n);a0;)--s}o(e[r],i)===0?vi(e,r,s):(++s,vi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function vi(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function Ks(e,t,r){if(e=Float64Array.from(Py(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Us(e);if(t>=1)return Vs(e);var n,o=(n-1)*t,i=Math.floor(o),a=Vs($s(e,i).subarray(0,i+1)),s=Us(e.subarray(i+1));return a+(s-a)*(o-i)}}function Af(e,t,r=mi){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function qs(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Hs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Hs(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=f_.exec(e))?new lt(t[1],t[2],t[3],1):(t=d_.exec(e))?new lt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=p_.exec(e))?Hs(t[1],t[2],t[3],t[4]):(t=m_.exec(e))?Hs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=h_.exec(e))?jy(t[1],t[2]/100,t[3]/100,1):(t=v_.exec(e))?jy(t[1],t[2]/100,t[3]/100,t[4]):Iy.hasOwnProperty(e)?Ry(Iy[e]):e==="transparent"?new lt(NaN,NaN,NaN,0):null}function Ry(e){return new lt(e>>16&255,e>>8&255,e&255,1)}function Hs(e,t,r,n){return n<=0&&(e=t=r=NaN),new lt(e,t,r,n)}function x_(e){return e instanceof bi||(e=Mr(e)),e?(e=e.rgb(),new lt(e.r,e.g,e.b,e.opacity)):new lt}function wo(e,t,r,n){return arguments.length===1?x_(e):new lt(e,t,r,n??1)}function lt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Gs(lt,wo,Of(bi,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new lt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lt(pn(this.r),pn(this.g),pn(this.b),Qs(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:Dy,formatHex:Dy,formatHex8:b_,formatRgb:Ny,toString:Ny}));function Dy(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}`}function b_(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}${dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ny(){let e=Qs(this.opacity);return`${e===1?"rgb(":"rgba("}${pn(this.r)}, ${pn(this.g)}, ${pn(this.b)}${e===1?")":`, ${e})`}`}function Qs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dn(e){return e=pn(e),(e<16?"0":"")+e.toString(16)}function jy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new $t(e,t,r,n)}function zy(e){if(e instanceof $t)return new $t(e.h,e.s,e.l,e.opacity);if(e instanceof bi||(e=Mr(e)),!e)return new $t;if(e instanceof $t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r0&&l<1?0:a,new $t(a,s,l,e.opacity)}function By(e,t,r,n){return arguments.length===1?zy(e):new $t(e,t,r,n??1)}function $t(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Gs($t,By,Of(bi,{brighter(e){return e=e==null?Zs:Math.pow(Zs,e),new $t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new $t(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new lt(Ef(e>=240?e-240:e+120,o,n),Ef(e,o,n),Ef(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new $t(Ly(this.h),Xs(this.s),Xs(this.l),Qs(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(){let e=Qs(this.opacity);return`${e===1?"hsl(":"hsla("}${Ly(this.h)}, ${Xs(this.s)*100}%, ${Xs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ly(e){return e=(e||0)%360,e<0?e+360:e}function Xs(e){return Math.max(0,Math.min(1,e||0))}function Ef(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Cf(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}function Fy(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],i=e[n+1],a=n>0?e[n-1]:2*o-i,s=n()=>e;function w_(e,t){return function(r){return e+r*t}}function S_(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Vy(e){return(e=+e)==1?Js:function(t,r){return r-t?S_(t,r,e):wi(isNaN(t)?r:t)}}function Js(e,t){var r=t-e;return r?w_(e,r):wi(isNaN(e)?t:e)}var _f=function e(t){var r=Vy(t);function n(o,i){var a=r((o=wo(o)).r,(i=wo(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=Js(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n}(1);function Uy(e){return function(t){var r=t.length,n=new Array(r),o=new Array(r),i=new Array(r),a,s;for(a=0;ar&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Rr(n,o)})),r=kf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function E_(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o2?C_:E_,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return f.invert=function(d){return a(o((c||(c=s(t,e.map(n),Rr)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Dr),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=mn,u()},f.clamp=function(d){return arguments.length?(a=d?!0:ze,u()):a!==ze},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,p){return n=d,o=p,u()}}function vn(){return hn()(ze,ze)}function Zy(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gn(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Qt(e){return e=gn(Math.abs(e)),e?e[1]:NaN}function Qy(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function Jy(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var __=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jt(e){if(!(t=__.exec(e)))throw new Error("invalid format: "+e);var t;return new tl({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]})}Jt.prototype=tl.prototype;function tl(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+""}tl.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 ex(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Si;function tx(e,t){var r=gn(e,t);if(!r)return Si=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Si=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+gn(e,Math.max(0,t+i-1))[0]}function Rf(e,t){var r=gn(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var Df={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Zy,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)=>Rf(e*100,t),r:Rf,s:tx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nf(e){return e}var rx=Array.prototype.map,nx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ox(e){var t=e.grouping===void 0||e.thousands===void 0?Nf:Qy(rx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Nf:Jy(rx.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=Jt(f);var p=f.fill,h=f.align,m=f.sign,g=f.symbol,v=f.zero,P=f.width,A=f.comma,C=f.precision,O=f.trim,_=f.type;_==="n"?(A=!0,_="g"):Df[_]||(C===void 0&&(C=12),O=!0,_="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),k=(g==="$"?n:/[%p]/.test(_)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),B=Df[_],j=/[defgprs%]/.test(_);C=C===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function U(z){var Z=T,X=k,Q,y,b;if(_==="c")X=B(z)+X,z="";else{z=+z;var E=z<0||1/z<0;if(z=isNaN(z)?l:B(Math.abs(z),C),O&&(z=ex(z)),E&&+z==0&&m!=="+"&&(E=!1),Z=(E?m==="("?m:s:m==="-"||m==="("?"":m)+Z,X=(_==="s"&&!isNaN(z)&&Si!==void 0?nx[8+Si/3]:"")+X+(E&&m==="("?")":""),j){for(Q=-1,y=z.length;++Qb||b>57){X=(b===46?o+z.slice(Q+1):z.slice(Q))+X,z=z.slice(0,Q);break}}}A&&!v&&(z=t(z,1/0));var w=Z.length+z.length+X.length,x=w>1)+Z+z+X+x.slice(w);break;default:z=x+Z+z+X;break}return i(z)}return U.toString=function(){return f+""},U}function u(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Qt(d)/3)))*3,h=Math.pow(10,-p),m=c((f=Jt(f),f.type="f",f),{suffix:nx[8+p/3]});return function(g){return m(h*g)}}return{format:c,formatPrefix:u}}var rl,So,nl;jf({thousands:",",grouping:[3],currency:["$",""]});function jf(e){return rl=ox(e),So=rl.format,nl=rl.formatPrefix,rl}function Lf(e){return Math.max(0,-Qt(Math.abs(e)))}function zf(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qt(t)/3)))*3-Qt(Math.abs(e)))}function Bf(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qt(t)-Qt(e))+1}function Pi(e,t,r,n){var o=yo(e,t,r),i;switch(n=Jt(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=zf(o,a))&&(n.precision=i),nl(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Bf(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Lf(o))&&(n.precision=i-(n.type==="%")*2);break}}return So(n)}function ot(e){var t=e.domain;return e.ticks=function(r){var n=t();return fn(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Pi(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s0;){if(c=hi(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ol(){var e=vn();return e.copy=function(){return Zt(e,ol())},xe.apply(e,arguments),ot(e)}function il(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Dr),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return il(e).unknown(t)},e=arguments.length?Array.from(e,Dr):[0,1],ot(r)}function Ai(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return iMath.pow(e,t)}function R_(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 sx(e){return(t,r)=>-e(-t,r)}function Oi(e){let t=e(ix,ax),r=t.domain,n=10,o,i;function a(){return o=R_(n),i=M_(n),r()[0]<0?(o=sx(o),i=sx(i),e(k_,I_)):e(ix,ax),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{let l=r(),c=l[0],u=l[l.length-1],f=u0){for(;d<=p;++d)for(h=1;hu)break;v.push(m)}}else for(;d<=p;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/i(-d):h*i(d),!(mu)break;v.push(m)}v.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Jt(l)).precision==null&&(l.trim=!0),l=So(l)),s===1/0)return l;let c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*nr(Ai(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function al(){let e=Oi(hn()).domain([1,10]);return e.copy=()=>Zt(e,al()).base(e.base()),xe.apply(e,arguments),e}function lx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ei(e){var t=1,r=e(lx(t),cx(t));return r.constant=function(n){return arguments.length?e(lx(t=+n),cx(t)):t},ot(r)}function sl(){var e=Ei(hn());return e.copy=function(){return Zt(e,sl()).constant(e.constant())},xe.apply(e,arguments)}function ux(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function D_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function N_(e){return e<0?-e*e:e*e}function Ci(e){var t=e(ze,ze),r=1;function n(){return r===1?e(ze,ze):r===.5?e(D_,N_):e(ux(r),ux(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},ot(t)}function _i(){var e=Ci(hn());return e.copy=function(){return Zt(e,_i()).exponent(e.exponent())},xe.apply(e,arguments),e}function fx(){return _i.apply(null,arguments).exponent(.5)}function dx(e){return Math.sign(e)*e*e}function j_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ll(){var e=vn(),t=[0,1],r=!1,n;function o(i){var a=j_(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(dx(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Dr)).map(dx)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return ll(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},xe.apply(o,arguments),ot(o)}function cl(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return ul().domain([e,t]).range(o).unknown(i)},xe.apply(ot(a),arguments)}function fl(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Ut(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return fl().domain(e).range(t).unknown(r)},xe.apply(o,arguments)}var Ff=new Date,Wf=new Date;function me(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{let a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{let l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cme(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Ff.setTime(+i),Wf.setTime(+a),e(Ff),e(Wf),Math.floor(r(Ff,Wf))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var ki=me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ki.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ki);var C5=ki.range;var Mt=me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),px=Mt.range;var Po=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),L_=Po.range,Ao=me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),z_=Ao.range;var Oo=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),B_=Oo.range,Eo=me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),F_=Eo.range;var dr=me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),W_=dr.range,bn=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),V_=bn.range,dl=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),U_=dl.range;function wn(e){return me(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var pr=wn(0),Co=wn(1),hx=wn(2),vx=wn(3),Nr=wn(4),gx=wn(5),yx=wn(6),xx=pr.range,$_=Co.range,K_=hx.range,q_=vx.range,Y_=Nr.range,G_=gx.range,H_=yx.range;function Sn(e){return me(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var mr=Sn(0),_o=Sn(1),bx=Sn(2),wx=Sn(3),jr=Sn(4),Sx=Sn(5),Px=Sn(6),Ax=mr.range,X_=_o.range,Z_=bx.range,Q_=wx.range,J_=jr.range,ek=Sx.range,tk=Px.range;var ko=me(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()),rk=ko.range,Io=me(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()),nk=Io.range;var yt=me(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());yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var ok=yt.range,xt=me(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());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var ik=xt.range;function Ex(e,t,r,n,o,i){let a=[[Mt,1,1e3],[Mt,5,5*1e3],[Mt,15,15*1e3],[Mt,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(c,u,f){let d=ug).right(a,d);if(p===a.length)return e.every(yo(c/31536e6,u/31536e6,f));if(p===0)return ki.every(Math.max(yo(c,u,f),1));let[h,m]=a[d/a[p-1][2]53)return null;"w"in N||(N.w=1),"Z"in N?(te=Yf(Ti(N.y,0,1)),$e=te.getUTCDay(),te=$e>4||$e===0?_o.ceil(te):_o(te),te=bn.offset(te,(N.V-1)*7),N.y=te.getUTCFullYear(),N.m=te.getUTCMonth(),N.d=te.getUTCDate()+(N.w+6)%7):(te=qf(Ti(N.y,0,1)),$e=te.getDay(),te=$e>4||$e===0?Co.ceil(te):Co(te),te=dr.offset(te,(N.V-1)*7),N.y=te.getFullYear(),N.m=te.getMonth(),N.d=te.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),$e="Z"in N?Yf(Ti(N.y,0,1)).getUTCDay():qf(Ti(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-($e+5)%7:N.w+N.U*7-($e+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Yf(N)):qf(N)}}function k(D,V,K,N){for(var we=0,te=V.length,$e=K.length,We,Pt;we=$e)return-1;if(We=V.charCodeAt(we++),We===37){if(We=V.charAt(we++),Pt=O[We in Cx?V.charAt(we++):We],!Pt||(N=Pt(D,K,N))<0)return-1}else if(We!=K.charCodeAt(N++))return-1}return N}function B(D,V,K){var N=c.exec(V.slice(K));return N?(D.p=u.get(N[0].toLowerCase()),K+N[0].length):-1}function j(D,V,K){var N=p.exec(V.slice(K));return N?(D.w=h.get(N[0].toLowerCase()),K+N[0].length):-1}function U(D,V,K){var N=f.exec(V.slice(K));return N?(D.w=d.get(N[0].toLowerCase()),K+N[0].length):-1}function z(D,V,K){var N=v.exec(V.slice(K));return N?(D.m=P.get(N[0].toLowerCase()),K+N[0].length):-1}function Z(D,V,K){var N=m.exec(V.slice(K));return N?(D.m=g.get(N[0].toLowerCase()),K+N[0].length):-1}function X(D,V,K){return k(D,t,V,K)}function Q(D,V,K){return k(D,r,V,K)}function y(D,V,K){return k(D,n,V,K)}function b(D){return a[D.getDay()]}function E(D){return i[D.getDay()]}function w(D){return l[D.getMonth()]}function x(D){return s[D.getMonth()]}function S(D){return o[+(D.getHours()>=12)]}function M(D){return 1+~~(D.getMonth()/3)}function R(D){return a[D.getUTCDay()]}function L(D){return i[D.getUTCDay()]}function W(D){return l[D.getUTCMonth()]}function F(D){return s[D.getUTCMonth()]}function $(D){return o[+(D.getUTCHours()>=12)]}function ie(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var V=_(D+="",A);return V.toString=function(){return D},V},parse:function(D){var V=T(D+="",!1);return V.toString=function(){return D},V},utcFormat:function(D){var V=_(D+="",C);return V.toString=function(){return D},V},utcParse:function(D){var V=T(D+="",!0);return V.toString=function(){return D},V}}}var Cx={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,sk=/^%/,lk=/[\\^$*+?|[\]().{}]/g;function ce(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i[t.toLowerCase(),r]))}function uk(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function fk(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function dk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function pk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function mk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _x(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kx(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hk(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function vk(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function gk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ix(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yk(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Tx(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function xk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bk(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wk(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Sk(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Pk(e,t,r){var n=sk.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Ak(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Ok(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Mx(e,t){return ce(e.getDate(),t,2)}function Ek(e,t){return ce(e.getHours(),t,2)}function Ck(e,t){return ce(e.getHours()%12||12,t,2)}function _k(e,t){return ce(1+dr.count(yt(e),e),t,3)}function Lx(e,t){return ce(e.getMilliseconds(),t,3)}function kk(e,t){return Lx(e,t)+"000"}function Ik(e,t){return ce(e.getMonth()+1,t,2)}function Tk(e,t){return ce(e.getMinutes(),t,2)}function Mk(e,t){return ce(e.getSeconds(),t,2)}function Rk(e){var t=e.getDay();return t===0?7:t}function Dk(e,t){return ce(pr.count(yt(e)-1,e),t,2)}function zx(e){var t=e.getDay();return t>=4||t===0?Nr(e):Nr.ceil(e)}function Nk(e,t){return e=zx(e),ce(Nr.count(yt(e),e)+(yt(e).getDay()===4),t,2)}function jk(e){return e.getDay()}function Lk(e,t){return ce(Co.count(yt(e)-1,e),t,2)}function zk(e,t){return ce(e.getFullYear()%100,t,2)}function Bk(e,t){return e=zx(e),ce(e.getFullYear()%100,t,2)}function Fk(e,t){return ce(e.getFullYear()%1e4,t,4)}function Wk(e,t){var r=e.getDay();return e=r>=4||r===0?Nr(e):Nr.ceil(e),ce(e.getFullYear()%1e4,t,4)}function Vk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Rx(e,t){return ce(e.getUTCDate(),t,2)}function Uk(e,t){return ce(e.getUTCHours(),t,2)}function $k(e,t){return ce(e.getUTCHours()%12||12,t,2)}function Kk(e,t){return ce(1+bn.count(xt(e),e),t,3)}function Bx(e,t){return ce(e.getUTCMilliseconds(),t,3)}function qk(e,t){return Bx(e,t)+"000"}function Yk(e,t){return ce(e.getUTCMonth()+1,t,2)}function Gk(e,t){return ce(e.getUTCMinutes(),t,2)}function Hk(e,t){return ce(e.getUTCSeconds(),t,2)}function Xk(e){var t=e.getUTCDay();return t===0?7:t}function Zk(e,t){return ce(mr.count(xt(e)-1,e),t,2)}function Fx(e){var t=e.getUTCDay();return t>=4||t===0?jr(e):jr.ceil(e)}function Qk(e,t){return e=Fx(e),ce(jr.count(xt(e),e)+(xt(e).getUTCDay()===4),t,2)}function Jk(e){return e.getUTCDay()}function eI(e,t){return ce(_o.count(xt(e)-1,e),t,2)}function tI(e,t){return ce(e.getUTCFullYear()%100,t,2)}function rI(e,t){return e=Fx(e),ce(e.getUTCFullYear()%100,t,2)}function nI(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function oI(e,t){var r=e.getUTCDay();return e=r>=4||r===0?jr(e):jr.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function iI(){return"+0000"}function Dx(){return"%"}function Nx(e){return+e}function jx(e){return Math.floor(+e/1e3)}var To,pl,Wx,ml,Vx;Hf({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 Hf(e){return To=Gf(e),pl=To.format,Wx=To.parse,ml=To.utcFormat,Vx=To.utcParse,To}function aI(e){return new Date(e)}function sI(e){return e instanceof Date?+e:+new Date(+e)}function hl(e,t,r,n,o,i,a,s,l,c){var u=vn(),f=u.invert,d=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),P=c("%b %d"),A=c("%B"),C=c("%Y");function O(_){return(l(_)<_?p:s(_)<_?h:a(_)<_?m:i(_)<_?g:n(_)<_?o(_)<_?v:P:r(_)<_?A:C)(_)}return u.invert=function(_){return new Date(f(_))},u.domain=function(_){return arguments.length?d(Array.from(_,sI)):d().map(aI)},u.ticks=function(_){var T=d();return e(T[0],T[T.length-1],_??10)},u.tickFormat=function(_,T){return T==null?O:c(T)},u.nice=function(_){var T=d();return(!_||typeof _.range!="function")&&(_=t(T[0],T[T.length-1],_??10)),_?d(Ai(T,_)):u},u.copy=function(){return Zt(u,hl(e,t,r,n,o,i,a,s,l,c))},u}function Xf(){return xe.apply(hl($f,Kf,yt,ko,pr,dr,Oo,Po,Mt,pl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Zf(){return xe.apply(hl(Vf,Uf,xt,Io,mr,bn,Eo,Ao,Mt,ml).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vl(){var e=0,t=1,r,n,o,i,a=ze,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:a(o===0?.5:(f=(i(f)-r)*o,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(a=f,c):a};function u(f){return function(d){var p,h;return arguments.length?([p,h]=d,a=f(p,h),c):[a(0),a(1)]}}return c.range=u(gt),c.rangeRound=u(mn),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return i=f,r=f(e),n=f(t),o=r===n?0:1/(n-r),c}}function hr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gl(){var e=ot(vl()(ze));return e.copy=function(){return hr(e,gl())},Tt.apply(e,arguments)}function Qf(){var e=Oi(vl()).domain([1,10]);return e.copy=function(){return hr(e,Qf()).base(e.base())},Tt.apply(e,arguments)}function Jf(){var e=Ei(vl());return e.copy=function(){return hr(e,Jf()).constant(e.constant())},Tt.apply(e,arguments)}function yl(){var e=Ci(vl());return e.copy=function(){return hr(e,yl()).exponent(e.exponent())},Tt.apply(e,arguments)}function Ux(){return yl.apply(null,arguments).exponent(.5)}function xl(){var e=[],t=ze;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ut(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(nt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>Ks(e,i/n))},r.copy=function(){return xl(t).domain(e)},Tt.apply(r,arguments)}function bl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=ze,u,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+u(m))-i)*(n*m{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string")return uI(n)?n:"point"}};function fI(e,t){for(var r=0,n=e.length,o=e[0]t)?r=i+1:n=i}return r}function Al(e,t){if(e){var r=t??e.domain(),n=r.map(i=>{var a;return(a=e(i))!==null&&a!==void 0?a:0}),o=e.range();if(!(r.length===0||o.length<2))return i=>{var a,s,l=fI(n,i);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var c=(a=n[l-1])!==null&&a!==void 0?a:0,u=(s=n[l])!==null&&s!==void 0?s:0;return Math.abs(i-c)<=Math.abs(i-u)?r[l-1]:r[l]}}}function qx(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Al(e,void 0)}function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ol(e){for(var t=1;te.cartesianAxis.xAxis[t],tr=(e,t)=>{var r=nd(e,t);return r??Te},od={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:rd,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:tn},hI=(e,t)=>e.cartesianAxis.yAxis[t],rr=(e,t)=>{var r=hI(e,t);return r??od},vI={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},id=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??vI},it=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"zAxis":return id(e,r);case"angleAxis":return js(e,r);case"radiusAxis":return Ls(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},gI=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},ji=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"angleAxis":return js(e,r);case"radiusAxis":return Ls(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},ad=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function sd(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var El=e=>e.graphicalItems.cartesianItems,yI=I([Le,di],sd),ld=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Li=I([El,it,yI],ld,{memoizeOptions:{resultEqualityCheck:vo}}),Hx=I([Li],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(cn)),cd=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),xI=I([Li],cd),ud=e=>e.map(t=>t.data).filter(Boolean).flat(1),bI=I([Li],ud,{memoizeOptions:{resultEqualityCheck:vo}}),fd=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},dd=I([bI,ff],fd),pd=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Se(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:Se(o,n)}))):e.map(n=>({value:n})),zi=I([dd,it,Li],pd);function Mo(e){if(tt(e)||e instanceof Date){var t=Number(e);if(ee(t))return t}}function Gx(e){if(Array.isArray(e)){var t=[Mo(e[0]),Mo(e[1])];return vt(t)?t:void 0}var r=Mo(e);if(r!=null)return[r,r]}function vr(e){return e.map(Mo).filter(dt)}function wI(e,t){var r=Mo(e),n=Mo(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var SI=I([zi],e=>e?.map(t=>t.value).sort(wI));function Xx(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function PI(e,t,r){return!r||typeof t!="number"||He(t)?[]:r.length?vr(r.flatMap(n=>{var o=Se(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ee(i)||!ee(a)))return[t-i,t+a]})):[]}var Me=e=>{var t=Ie(e),r=Tr(e);return ji(e,t,r)},zr=I([Me],e=>e?.dataKey),AI=I([Hx,ff,Me],Fs),md=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(mo);return[s,{stackedData:vv(e,u,r),graphicalItems:c}]}))},Cl=I([AI,Hx,fo,Ms],md),hd=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=xv(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},OI=I([it],e=>e.allowDataOverflow),_l=e=>{var t;if(e==null||!("domain"in e))return rd;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=vr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:rd},Zx=I([it],_l),Qx=I([Zx,OI],Cs),EI=I([Cl,It,Le,Qx],hd,{memoizeOptions:{resultEqualityCheck:ho}}),kl=e=>e.errorBars,CI=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Xx(r,n)),Ni=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,f=(c=n[l.id])===null||c===void 0?void 0:c.filter(v=>Xx(o,v)),d=Se(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),p=PI(s,d,f);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(i==null||ha)&&(a=m)}var g=Gx(d);g!=null&&(i=i==null?g[0]:Math.min(i,g[0]),a=a==null?g[1]:Math.max(a,g[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=Gx(Se(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),ee(i)&&ee(a))return[i,a]},_I=I([dd,it,xI,kl,Le],vd,{memoizeOptions:{resultEqualityCheck:ho}});function kI(e){var{value:t}=e;if(tt(t)||t instanceof Date)return t}var II=(e,t,r)=>{var n=e.map(kI).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&pu(n))?Es(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},gd=e=>e.referenceElements.dots,Pn=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),TI=I([gd,Le,di],Pn),yd=e=>e.referenceElements.areas,MI=I([yd,Le,di],Pn),xd=e=>e.referenceElements.lines,RI=I([xd,Le,di],Pn),bd=(e,t)=>{if(e!=null){var r=vr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},DI=I(TI,Le,bd),wd=(e,t)=>{if(e!=null){var r=vr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},NI=I([MI,Le],wd);function jI(e){var t;if(e.x!=null)return vr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:vr(r)}function LI(e){var t;if(e.y!=null)return vr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:vr(r)}var Sd=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?jI(n):LI(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},zI=I([RI,Le],Sd),BI=I(DI,zI,NI,(e,t,r)=>Ni(e,r,t)),Pd=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Ni(n,i,o):Ni(i,o);return cy(t,c,e.allowDataOverflow)},FI=I([it,Zx,Qx,EI,_I,BI,ae,Le],Pd,{memoizeOptions:{resultEqualityCheck:ho}}),WI=[0,1],Ad=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=Bt(t,i);if(c&&s==null){var u;return Es(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?II(n,e,c):o==="expand"?WI:a}},Od=I([it,ae,dd,zi,fo,Le,FI],Ad),Ro=I([it,ad,po],Pl),Ed=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var o=_l(t),i=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&vt(e)){if(i)return ks(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return Is(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(i&&vt(e))return ks(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&vt(e))return Is(e,t.tickCount,t.allowDecimals,"adaptive")}}},Cd=I([Od,ji,Ro],Ed),_d=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&vt(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},VI=I([it,Od,Cd,Le],_d),UI=I(zi,it,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(vr(e.map(f=>f.value))).sort((f,d)=>f-d),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;so,(e,t,r,n,o)=>{if(!ee(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=Ke(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),$I=(e,t,r)=>{var n=tr(e,t);return n==null||typeof n.padding!="string"?0:Jx(e,"xAxis",t,r,n.padding)},KI=(e,t,r)=>{var n=rr(e,t);return n==null||typeof n.padding!="string"?0:Jx(e,"yAxis",t,r,n.padding)},qI=I(tr,$I,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),YI=I(rr,KI,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),GI=I([pe,qI,rn,io,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),HI=I([pe,ae,YI,rn,io,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Do=(e,t,r,n)=>{var o;switch(t){case"xAxis":return GI(e,r,n);case"yAxis":return HI(e,r,n);case"zAxis":return(o=id(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return bf(e);case"radiusAxis":return wf(e,r);default:return}},eb=I([it,Do],ln),XI=I([Ro,VI],Sy),kd=I([it,Ro,XI,eb],Di),Id=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=Bt(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Td=I([ae,zi,ji,Le],Id),Il=I([kd],pi),XH=I([kd],qx),ZH=I([kd,SI],Al),QH=I([Li,kl,Le],CI);function tb(e,t){return e.idt.id?1:0}var Tl=(e,t)=>t,Ml=(e,t,r)=>r,ZI=I(no,Tl,Ml,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tb)),QI=I(oo,Tl,Ml,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tb)),rb=(e,t)=>({width:e.width,height:t.height}),JI=(e,t)=>{var r=typeof t.width=="number"?t.width:tn;return{width:r,height:e.height}},Md=I(pe,tr,rb),eT=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},tT=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},rT=I(Ze,pe,ZI,Tl,Ml,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=rb(t,s);a==null&&(a=eT(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),nT=I(Xe,pe,QI,Tl,Ml,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=JI(t,s);a==null&&(a=tT(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),oT=(e,t)=>{var r=tr(e,t);if(r!=null)return rT(e,r.orientation,r.mirror)},nb=I([pe,tr,oT,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),iT=(e,t)=>{var r=rr(e,t);if(r!=null)return nT(e,r.orientation,r.mirror)},JH=I([pe,rr,iT,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),aT=I(pe,rr,(e,t)=>{var r=typeof t.width=="number"?t.width:tn;return{width:r,height:e.height}}),Rd=(e,t,r)=>{switch(t){case"xAxis":return Md(e,r).width;case"yAxis":return aT(e,r).height;default:return}},Dd=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=Bt(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&pu(l))return l}},Nd=I([ae,zi,it,Le],Dd),e4=I([ae,gI,Ro,Il,Nd,Td,Do,Cd,Le],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=Bt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),sT=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=Bt(e,l),{type:u,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=u==="category"&&n.bandwidth?n.bandwidth()/p:0;h=l==="angleAxis"&&i!=null&&i.length>=2?ke(i[0]-i[1])*2*h:h;var m=f||o;return m?m.map((g,v)=>{var P=a?a.indexOf(g):g,A=n.map(P);return ee(A)?{index:v,coordinate:A+h,value:g,offset:h}:null}).filter(dt):c&&s?s.map((g,v)=>{var P=n.map(g);return ee(P)?{coordinate:P+h,value:g,index:v,offset:h}:null}).filter(dt):n.ticks?n.ticks(d).map((g,v)=>{var P=n.map(g);return ee(P)?{coordinate:P+h,value:g,index:v,offset:h}:null}).filter(dt):n.domain().map((g,v)=>{var P=n.map(g);return ee(P)?{coordinate:P+h,value:a?a[g]:g,index:v,offset:h}:null}).filter(dt)}},ob=I([ae,ji,Ro,Il,Cd,Do,Nd,Td,Le],sT),lT=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=Bt(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?ke(n[0]-n[1])*2*c:c,s&&i?i.map((u,f)=>{var d=r.map(u);return ee(d)?{coordinate:d+c,value:u,index:f,offset:c}:null}).filter(dt):r.ticks?r.ticks(l).map((u,f)=>{var d=r.map(u);return ee(d)?{coordinate:d+c,value:u,index:f,offset:c}:null}).filter(dt):r.domain().map((u,f)=>{var d=r.map(u);return ee(d)?{coordinate:d+c,value:o?o[u]:u,index:f,offset:c}:null}).filter(dt)}},An=I([ae,ji,Il,Do,Nd,Td,Le],lT),On=I(it,Il,(e,t)=>{if(!(e==null||t==null))return Ol(Ol({},e),{},{scale:t})}),cT=I([it,Ro,Od,eb],Di),uT=I([cT],pi),t4=I((e,t,r)=>id(e,r),uT,(e,t)=>{if(!(e==null||t==null))return Ol(Ol({},e),{},{scale:t})}),ib=I([ae,no,oo],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),fT=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]},r4=I([fT],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,o=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);ae.options.defaultTooltipEventType,Ld=e=>e.options.validateTooltipEventTypes;function zd(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Bi(e,t){var r=jd(e),n=Ld(e);return zd(t,r,n)}function ab(e){return H(t=>Bi(t,e))}var Rl=(e,t)=>{var r,n=Number(t);if(!(He(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0};var sb=e=>e.tooltip.settings;var gr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},dT={itemInteraction:{click:gr,hover:gr},axisInteraction:{click:gr,hover:gr},keyboardInteraction:gr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},lb=le({name:"tooltip",initialState:dT,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:fe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:fe()},removeTooltipEntrySettings:{reducer(e,t){var r=Ye(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:fe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:cb,replaceTooltipEntrySettings:ub,removeTooltipEntrySettings:fb,setTooltipSettingsState:db,setActiveMouseOverItemIndex:Dl,mouseLeaveItem:pb,mouseLeaveChart:Nl,setActiveClickItemIndex:mb,setMouseOverAxisIndex:jl,setMouseClickAxisIndex:hb,setSyncInteraction:Ll,setKeyboardInteraction:Fi}=lb.actions,vb=lb.reducer;function gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zl(e){for(var t=1;t{if(t==null)return gr;var o=vT(e,t,r);if(o==null)return gr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(gT(o)){if(i)return zl(zl({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return zl(zl({},gr),{},{coordinate:o.coordinate})};function yT(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function xT(e,t){var r=yT(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function bT(e,t,r){if(r==null||t==null)return!0;var n=Se(e,t);return n==null||!vt(r)?!0:xT(n,r)}var No=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ee(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||bT(c,r,n)?String(l):null};var Fl=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}};var Wl=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})};var Vl=e=>e.options.tooltipPayloadSearcher;var yr=e=>e.tooltip;function yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xb(e){for(var t=1;te(t)}function bb(e){if(typeof e=="string")return e}function CT(e){if(!(e==null||typeof e!="object")){var t="name"in e?AT(e.name):void 0,r="unit"in e?OT(e.unit):void 0,n="dataKey"in e?ET(e.dataKey):void 0,o="payload"in e?e.payload:void 0,i="color"in e?bb(e.color):void 0,a="fill"in e?bb(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:o,color:i,fill:a}}}function _T(e,t){return e??t}var Ul=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:g}=p,v=_T(m,s),P=Array.isArray(v)?ss(v,c,u):v,A=(h=g?.dataKey)!==null&&h!==void 0?h:n,C=g?.nameKey,O;if(n&&Array.isArray(P)&&!Array.isArray(P[0])&&a==="axis"?O=mu(P,n,o):O=i(P,t,l,C),Array.isArray(O))O.forEach(T=>{var k,B,j=CT(T),U=j?.name,z=j?.dataKey,Z=j?.payload,X=xb(xb({},g),{},{name:U,unit:j?.unit,color:(k=j?.color)!==null&&k!==void 0?k:g?.color,fill:(B=j?.fill)!==null&&B!==void 0?B:g?.fill});d.push(Xu({tooltipEntrySettings:X,dataKey:z,payload:Z,value:Se(Z,z),name:U==null?void 0:String(U)}))});else{var _;d.push(Xu({tooltipEntrySettings:g,dataKey:A,payload:O,value:Se(O,A),name:(_=Se(O,C))!==null&&_!==void 0?_:g?.name}))}return d},f)}};var Bd=I([Me,ad,po],Pl),kT=I([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),IT=I([Ie,Tr],sd),En=I([kT,Me,IT],ld,{memoizeOptions:{resultEqualityCheck:vo}}),TT=I([En],e=>e.filter(cn)),MT=I([En],ud,{memoizeOptions:{resultEqualityCheck:vo}}),Br=I([MT,It],fd),RT=I([TT,It,Me],Fs),Fd=I([Br,Me,En],pd),wb=I([Me],_l),DT=I([Me],e=>e.allowDataOverflow),Sb=I([wb,DT],Cs),NT=I([En],e=>e.filter(cn)),jT=I([RT,NT,fo,Ms],md),LT=I([jT,It,Ie,Sb],hd),zT=I([En],cd),BT=I([Br,Me,zT,kl,Ie],vd,{memoizeOptions:{resultEqualityCheck:ho}}),FT=I([gd,Ie,Tr],Pn),WT=I([FT,Ie],bd),VT=I([yd,Ie,Tr],Pn),UT=I([VT,Ie],wd),$T=I([xd,Ie,Tr],Pn),KT=I([$T,Ie],Sd),qT=I([WT,KT,UT],Ni),YT=I([Me,wb,Sb,LT,BT,qT,ae,Ie],Pd),Cn=I([Me,ae,Br,Fd,fo,Ie,YT],Ad),GT=I([Cn,Me,Bd],Ed),HT=I([Me,Cn,GT,Ie],_d),Pb=e=>{var t=Ie(e),r=Tr(e),n=!1;return Do(e,t,r,n)},Wd=I([Me,Pb],ln),XT=I([Me,Bd,HT,Wd],Di),Vd=I([XT],pi),ZT=I([ae,Fd,Me,Ie],Dd),QT=I([ae,Fd,Me,Ie],Id),JT=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=Bt(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&o!=null&&o?.length>=2?ke(o[0]-o[1])*2*f:f,c&&a?a.map((d,p)=>{var h=n.map(d);return ee(h)?{coordinate:h+f,value:d,index:p,offset:f}:null}).filter(dt):n.domain().map((d,p)=>{var h=n.map(d);return ee(h)?{coordinate:h+f,value:i?i[d]:d,index:p,offset:f}:null}).filter(dt)}}},ct=I([ae,Me,Bd,Vd,Pb,ZT,QT,Ie],JT),Ud=I([jd,Ld,sb],(e,t,r)=>zd(r.shared,e,t)),Ab=e=>e.tooltip.settings.trigger,$d=e=>e.tooltip.settings.defaultIndex,Wi=I([yr,Ud,Ab,$d],Bl),Fr=I([Wi,Br,zr,Cn],No),Kd=I([ct,Fr],Rl),$l=I([Wi],e=>{if(e)return e.dataKey}),Ob=I([Wi],e=>{if(e)return e.graphicalItemId}),Eb=I([yr,Ud,Ab,$d],Wl),eM=I([Xe,Ze,ae,pe,ct,$d,Eb],Fl),Cb=I([Wi,eM],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),_b=I([Wi],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),tM=I([Eb,Fr,It,zr,Kd,Vl,Ud],Ul),r6=I([tM],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ib(e){for(var t=1;tH(Me),Tb=()=>{var e=iM(),t=H(ct),r=H(Vd);return!e||!r?ro(void 0,t):ro(Ib(Ib({},e),{},{scale:r}),t)};function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function jo(e){for(var t=1;t{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:o.coordinate}}return{x:0,y:0}},Db=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return jo(jo(jo({},n),Ce(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return jo(jo(jo({},n),Ce(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Nb(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var qd=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,h=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[s+1])===null||d===void 0?void 0:d.coordinate,g=void 0;if(!(p==null||h==null||m==null))if(ke(h-p)!==ke(m-h)){var v=[];if(ke(m-h)===ke(o[1]-o[0])){g=m;var P=h+o[1]-o[0];v[0]=Math.min(P,(P+p)/2),v[1]=Math.max(P,(P+p)/2)}else{g=p;var A=m+o[1]-o[0];v[0]=Math.min(h,(A+h)/2),v[1]=Math.max(h,(A+h)/2)}var C=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(e>C[0]&&e<=C[1]||e>=v[0]&&e<=v[1]){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}else{var _=Math.min(p,m),T=Math.max(p,m);if(e>(_+h)/2&&e<=(T+h)/2){var k;return(k=r[s])===null||k===void 0?void 0:k.index}}}else if(t)for(var B=0;B(j.coordinate+z.coordinate)/2||B>0&&B(j.coordinate+z.coordinate)/2&&e<=(j.coordinate+U.coordinate)/2)return j.index}}return-1};var jb=()=>H(po),Yd=(e,t)=>t,Lb=(e,t,r)=>r,Gd=(e,t,r,n)=>n,zb=I(ct,e=>cr(e,t=>t.coordinate)),Hd=I([yr,Yd,Lb,Gd],Bl),Xd=I([Hd,Br,zr,Cn],No),Bb=(e,t,r)=>{if(t!=null){var n=yr(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Fb=I([yr,Yd,Lb,Gd],Wl),Vi=I([Xe,Ze,ae,pe,ct,Gd,Fb],Fl),Wb=I([Hd,Vi],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Zd=I([ct,Xd],Rl),Vb=I([Fb,Xd,It,zr,Zd,Vl,Yd],Ul),Ub=I([Hd,Xd],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),cM=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&Nb(e,a)){var s=bv(e,t),l=qd(s,i,o,r,n),c=Rb(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},uM=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=Gg(e,r);if(s){var l=wv(s,t),c=qd(l,a,i,n,o),u=Db(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},$b=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?cM(e,t,n,o,i,a,s):uM(e,t,r,n,o,i,a)};import{useLayoutEffect as yM}from"react";import{createPortal as xM}from"react-dom";var Kb=I(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),qb=I(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(ge)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:wy}});function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Gb(e){for(var t=1;tGb(Gb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),mM)},vM=new Set(Object.values(ge));function gM(e){return vM.has(e)}var Hb=le({name:"zIndex",initialState:hM,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:fe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!gM(r)&&delete e.zIndexMap[r])},prepare:fe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:fe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:fe()}}}),{registerZIndexPortal:Xb,unregisterZIndexPortal:Zb,registerZIndexPortalElement:Qb,unregisterZIndexPortalElement:Jb}=Hb.actions,e0=Hb.reducer;function bt(e){var{zIndex:t,children:r}=e,n=Wv(),o=n&&t!==void 0&&t!==0,i=Oe(),a=oe();yM(()=>o?(a(Xb({zIndex:t})),()=>{a(Zb({zIndex:t}))}):pt,[a,t,o]);var s=H(l=>Kb(l,t,i));return o?s?xM(r,s):null:r}function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;tkM(Jd);import{useEffect as Hl}from"react";var a0=ua(i0(),1);var s0=a0.default;var Lo=new s0;var Gl="recharts.syncEvent.tooltip",tp="recharts.syncEvent.brush";var l0=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!He(r))return e[r]}},MM={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},c0=le({name:"options",initialState:MM,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),u0=c0.reducer,{createEventEmitter:f0}=c0.actions;function d0(e){return e.tooltip.syncInteraction}var RM={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},p0=le({name:"chartData",initialState:RM,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:rp,setDataStartEndIndexes:m0,setComputedData:DM}=p0.actions,h0=p0.reducer;var NM=["x","y"];function v0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zo(e){for(var t=1;tl.rootProps.className);Hl(()=>{if(e==null)return pt;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(a&&u!==null&&u!==void 0&&(d=u.payload)!==null&&d!==void 0&&d.coordinate&&u.payload.sourceViewBox){var p=u.payload.coordinate,{x:h,y:m}=p,g=BM(p,NM),{x:v,y:P,width:A,height:C}=u.payload.sourceViewBox,O=zo(zo({},g),{},{x:a.x+(A?(h-v)/A:0)*a.width,y:a.y+(C?(m-P)/C:0)*a.height});r(zo(zo({},u),{},{payload:zo(zo({},u.payload),{},{coordinate:O})}))}else r(u);return}if(o!=null){var _;if(typeof n=="function"){var T={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},k=n(o,T);_=o[k]}else n==="value"&&(_=o.find(y=>String(y.value)===u.payload.label));var{coordinate:B}=u.payload;if(_==null||u.payload.active===!1||B==null||a==null){r(Ll({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:j,y:U}=B,z=Math.min(j,a.x+a.width),Z=Math.min(U,a.y+a.height),X={x:i==="horizontal"?_.coordinate:z,y:i==="horizontal"?Z:_.coordinate},Q=Ll({active:u.payload.active,coordinate:X,dataKey:u.payload.dataKey,index:String(_.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(Q)}}};return Lo.on(Gl,l),()=>{Lo.off(Gl,l)}},[s,r,t,e,n,o,i,a])}function VM(){var e=H(Rs),t=H(Ds),r=oe();Hl(()=>{if(e==null)return pt;var n=(o,i,a)=>{t!==a&&e===o&&r(m0(i))};return Lo.on(tp,n),()=>{Lo.off(tp,n)}},[r,t,e])}function g0(){var e=oe();Hl(()=>{e(f0())},[e]),WM(),VM()}function y0(e,t,r,n,o,i){var a=H(h=>Bb(h,e,t)),s=H(Ob),l=H(Ds),c=H(Rs),u=H(yf),f=H(d0),d=f?.active,p=on();Hl(()=>{if(!d&&c!=null&&l!=null){var h=Ll({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:s});Lo.emit(Gl,c,h,l)}},[d,r,a,s,o,n,l,c,u,i,p])}function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function b0(e){for(var t=1;t{T(db({shared:P,trigger:A,axisId:_,active:o,defaultIndex:k}))},[T,P,A,_,o,k]);var B=on(),j=ds(),U=ab(P),{activeIndex:z,isActive:Z}=(t=H(ie=>Ub(ie,U,A,k)))!==null&&t!==void 0?t:{},X=H(ie=>Vb(ie,U,A,k)),Q=H(ie=>Zd(ie,U,A,k)),y=H(ie=>Wb(ie,U,A,k)),b=X,E=n0(),w=(r=o??Z)!==null&&r!==void 0?r:!1,[x,S]=hh([b,w]),M=U==="axis"?Q:void 0;y0(U,A,y,M,z,w);var R=O??E;if(R==null||B==null||U==null)return null;var L=b??w0;w||(L=w0),c&&L.length&&(L=oh(L.filter(ie=>ie.value!=null&&(ie.hide!==!0||n.includeHidden)),d,GM));var W=L.length>0,F=b0(b0({},n),{},{payload:L,label:M,active:w,activeIndex:z,coordinate:y,accessibilityLayer:j}),$=Rt.createElement(rg,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:w,coordinate:y,hasPayload:W,offset:f,position:p,reverseDirection:h,useTranslate3d:m,viewBox:B,wrapperStyle:g,lastBoundingBox:x,innerRef:S,hasPortalFromProps:!!O},HM(l,F));return Rt.createElement(Rt.Fragment,null,YM($,R),w&&Rt.createElement(r0,{cursor:v,tooltipEventType:U,coordinate:y,payload:L,index:z}))}var op=e=>null;op.displayName="Cell";import*as ap from"react";import{useMemo as SR,forwardRef as PR}from"react";function ZM(e,t,r){return(t=QM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QM(e){var t=JM(e,"string");return typeof t=="symbol"?t:t+""}function JM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xl=class{constructor(t){ZM(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function S0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eR(e){for(var t=1;t{try{var r=document.getElementById(A0);r||(r=document.createElement("span"),r.setAttribute("id",A0),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,iR,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},_n=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||kt.isSsr)return{width:0,height:0};if(!E0.enableCache)return O0(t,r);var n=aR(t,r),o=P0.get(n);if(o)return o;var i=O0(t,r);return P0.set(n,i),i};var I0;function sR(e,t,r){return(t=lR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lR(e){var t=cR(e,"string");return typeof t=="symbol"?t:t+""}function cR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C0=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_0=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uR=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,fR=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,dR={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pR=["cm","mm","pt","pc","in","Q","px"];function mR(e){return pR.includes(e)}var Bo="NaN";function hR(e,t){return e*dR[t]}var Wr=class e{static parse(t){var r,[,n,o]=(r=fR.exec(t))!==null&&r!==void 0?r:[];return n==null?e.NaN:new e(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,He(t)&&(this.unit=""),r!==""&&!uR.test(r)&&(this.num=NaN,this.unit=""),mR(r)&&(this.num=hR(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return He(this.num)}};I0=Wr;sR(Wr,"NaN",new I0(NaN,""));function T0(e){if(e==null||e.includes(Bo))return Bo;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=C0.exec(t))!==null&&r!==void 0?r:[],a=Wr.parse(n??""),s=Wr.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return Bo;t=t.replace(C0,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,d]=(c=_0.exec(t))!==null&&c!==void 0?c:[],p=Wr.parse(u??""),h=Wr.parse(d??""),m=f==="+"?p.add(h):p.subtract(h);if(m.isNaN())return Bo;t=t.replace(_0,m.toString())}return t}var k0=/\(([^()]*)\)/;function vR(e){for(var t=e,r;(r=k0.exec(t))!=null;){var[,n]=r;t=t.replace(k0,T0(n))}return t}function gR(e){var t=e.replace(/\s+/g,"");return t=vR(t),t=T0(t),t}function yR(e){try{return gR(e)}catch{return Bo}}function Zl(e){var t=yR(e.slice(5,-1));return t===Bo?"":t}var xR=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],bR=["dx","dy","angle","className","breakAll"];function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var o=[];de(t)||(r?o=t.toString().split(""):o=t.toString().split(N0));var i=o.map(s=>({word:s,width:_n(s,n).width})),a=r?0:_n("\xA0",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function Ql(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function L0(e){return de(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var z0=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+re.reduce((t,r)=>t.width>r.width?t:r),AR="\u2026",R0=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=j0({breakAll:r,style:n,children:l+AR});if(!c)return[!1,[]];var u=z0(c.wordsWithComputedWidth,i,a,s),f=u.length>o||B0(u).width>Number(i);return[f,u]},OR=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),f=z0(t,n,r,o);if(!c||o)return f;var d=f.length>i||B0(f).width>Number(n);if(!d)return f;for(var p=0,h=u.length-1,m=0,g;p<=h&&m<=u.length-1;){var v=Math.floor((p+h)/2),P=v-1,[A,C]=R0(u,P,l,s,i,n,r,o),[O]=R0(u,v,l,s,i,n,r,o);if(!A&&!O&&(p=v+1),A&&O&&(h=v-1),!A&&O){g=C;break}m++}return g||f},D0=e=>{var t=de(e)?[]:e.toString().split(N0);return[{words:t,width:void 0}]},ER=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!kt.isSsr){var s,l,c=j0({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return D0(n);return OR({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return D0(n)},F0="#808080",CR={angle:0,breakAll:!1,capHeight:"0.71em",fill:F0,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},$i=PR((e,t)=>{var r=Ae(e,CR),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,f=M0(r,xR),d=SR(()=>ER({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:p,dy:h,angle:m,className:g,breakAll:v}=f,P=M0(f,bR);if(!tt(n)||!tt(o)||d.length===0)return null;var A=Number(n)+(q(p)?p:0),C=Number(o)+(q(h)?h:0);if(!ee(A)||!ee(C))return null;var O;switch(u){case"start":O=Zl("calc(".concat(a,")"));break;case"middle":O=Zl("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:O=Zl("calc(".concat(d.length-1," * -").concat(i,")"));break}var _=[],T=d[0];if(l&&T!=null){var k=T.width,{width:B}=f;_.push("scale(".concat(q(B)&&q(k)?B/k:1,")"))}return m&&_.push("rotate(".concat(m,", ").concat(A,", ").concat(C,")")),_.length&&(P.transform=_.join(" ")),ap.createElement("text",ip({},Pe(P),{ref:t,x:A,y:C,className:J("recharts-text",g),textAnchor:c,fill:s.includes("url")?F0:s}),d.map((j,U)=>{var z=j.words.join(v?"":" ");return ap.createElement("tspan",{x:A,dy:U===0?O:i,key:"".concat(z,"-").concat(U)},z)}))});$i.displayName="Text";import*as wt from"react";import{cloneElement as K0,createContext as q0,createElement as LR,isValidElement as Jl,useContext as Y0,useMemo as zR}from"react";function W0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t{var{viewBox:t,position:r,offset:n=0,parentViewBox:o,clamp:i}=e,{x:a,y:s,height:l,upperWidth:c,lowerWidth:u}=oi(t),f=a,d=a+(c-u)/2,p=(f+d)/2,h=(c+u)/2,m=f+c/2,g=l>=0?1:-1,v=g*n,P=g>0?"end":"start",A=g>0?"start":"end",C=c>=0?1:-1,O=C*n,_=C>0?"end":"start",T=C>0?"start":"end",k=o;if(r==="top"){var B={x:f+c/2,y:s-v,horizontalAnchor:"middle",verticalAnchor:P};return i&&k&&(B.height=Math.max(s-k.y,0),B.width=c),B}if(r==="bottom"){var j={x:d+u/2,y:s+l+v,horizontalAnchor:"middle",verticalAnchor:A};return i&&k&&(j.height=Math.max(k.y+k.height-(s+l),0),j.width=u),j}if(r==="left"){var U={x:p-O,y:s+l/2,horizontalAnchor:_,verticalAnchor:"middle"};return i&&k&&(U.width=Math.max(U.x-k.x,0),U.height=l),U}if(r==="right"){var z={x:p+h+O,y:s+l/2,horizontalAnchor:T,verticalAnchor:"middle"};return i&&k&&(z.width=Math.max(k.x+k.width-z.x,0),z.height=l),z}var Z=i&&k?{width:h,height:l}:{};return r==="insideLeft"?nr({x:p+O,y:s+l/2,horizontalAnchor:T,verticalAnchor:"middle"},Z):r==="insideRight"?nr({x:p+h-O,y:s+l/2,horizontalAnchor:_,verticalAnchor:"middle"},Z):r==="insideTop"?nr({x:f+c/2,y:s+v,horizontalAnchor:"middle",verticalAnchor:A},Z):r==="insideBottom"?nr({x:d+u/2,y:s+l-v,horizontalAnchor:"middle",verticalAnchor:P},Z):r==="insideTopLeft"?nr({x:f+O,y:s+v,horizontalAnchor:T,verticalAnchor:A},Z):r==="insideTopRight"?nr({x:f+c-O,y:s+v,horizontalAnchor:_,verticalAnchor:A},Z):r==="insideBottomLeft"?nr({x:d+O,y:s+l-v,horizontalAnchor:T,verticalAnchor:P},Z):r==="insideBottomRight"?nr({x:d+u-O,y:s+l-v,horizontalAnchor:_,verticalAnchor:P},Z):r&&typeof r=="object"&&(q(r.x)||ar(r.x))&&(q(r.y)||ar(r.y))?nr({x:a+Ke(r.x,h),y:s+Ke(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},Z):nr({x:m,y:s+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},Z)};var TR=["labelRef"],MR=["content"];function U0(e,t){if(e==null)return{};var r,n,o=RR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=zR(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return wt.createElement(G0.Provider,{value:l},s)},X0=()=>{var e=Y0(G0),t=on();return e||(t?oi(t):void 0)},BR=q0(null);var FR=()=>{var e=Y0(BR),t=H(Bs);return e||t},WR=e=>{var{value:t,formatter:r}=e,n=de(e.children)?t:e.children;return typeof r=="function"?r(n):n},sp=e=>e!=null&&typeof e=="function",VR=(e,t)=>{var r=ke(t-e),n=Math.min(Math.abs(t-e),360);return r*n},UR=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:d,clockWise:p}=o,h=(c+u)/2,m=VR(f,d),g=m>=0?1:-1,v,P;switch(t){case"insideStart":v=f+g*i,P=p;break;case"insideEnd":v=d-g*i,P=!p;break;case"end":v=d+g*i,P=p;break;default:throw new Error("Unsupported position ".concat(t))}P=m<=0?P:!P;var A=Ce(s,l,h,v),C=Ce(s,l,h,v+(P?1:-1)*359),O="M".concat(A.x,",").concat(A.y,` - A`).concat(h,",").concat(h,",0,1,").concat(P?0:1,`, - `).concat(C.x,",").concat(C.y),_=de(e.id)?sr("recharts-radial-line-"):e.id;return wt.createElement("text",br({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",a)}),wt.createElement("defs",null,wt.createElement("path",{id:_,d:O})),wt.createElement("textPath",{xlinkHref:"#".concat(_)},r))},$R=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=Ce(n,o,a+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(i+a)/2,{x:p,y:h}=Ce(n,o,d,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},ec=e=>e!=null&&"cx"in e&&q(e.cx),KR={angle:0,offset:5,zIndex:ge.label,position:"middle",textBreakAll:!1};function qR(e){if(!ec(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function xr(e){var t=Ae(e,KR),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,f=FR(),d=X0(),p=o==="center"?d:f??d,h,m,g;r==null?h=p:ec(r)?h=r:h=oi(r);var v=qR(h);if(!h||de(i)&&de(a)&&!Jl(s)&&typeof s!="function")return null;var P=Ki(Ki({},t),{},{viewBox:h});if(Jl(s)){var{labelRef:A}=P,C=U0(P,TR);return K0(s,C)}if(typeof s=="function"){var{content:O}=P,_=U0(P,MR);if(m=LR(s,_),Jl(m))return m}else m=WR(t);var T=Pe(t);if(ec(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return UR(t,o,m,T,h);g=$R(h,t.offset,t.position)}else{if(!v)return null;var k=V0({viewBox:v,position:o,offset:t.offset,parentViewBox:ec(n)?void 0:n,clamp:!0});g=Ki(Ki({x:k.x,y:k.y,textAnchor:k.horizontalAnchor,verticalAnchor:k.verticalAnchor},k.width!==void 0?{width:k.width}:{}),k.height!==void 0?{height:k.height}:{})}return wt.createElement(bt,{zIndex:t.zIndex},wt.createElement($i,br({ref:u,className:J("recharts-label",l)},T,g,{textAnchor:Ql(T.textAnchor)?T.textAnchor:g.textAnchor,breakAll:c}),m))}xr.displayName="Label";var YR=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?wt.createElement(xr,br({key:"label-implicit"},n)):tt(e)?wt.createElement(xr,br({key:"label-implicit",value:e},n)):Jl(e)?e.type===xr?K0(e,Ki({key:"label-implicit"},n)):wt.createElement(xr,br({key:"label-implicit",content:e},n)):sp(e)?wt.createElement(xr,br({key:"label-implicit",content:e},n)):e&&typeof e=="object"?wt.createElement(xr,br({},e,{key:"label-implicit"},n)):null};function Z0(e){var{label:t,labelRef:r}=e,n=X0();return YR(t,n,r)||null}import*as wr from"react";import{createContext as J0,useContext as ew}from"react";var GR=["valueAccessor"],HR=["dataKey","clockWise","id","textBreakAll","zIndex"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(L0(t))return t},tw=J0(void 0),rw=tw.Provider,nw=J0(void 0),$X=nw.Provider;function QR(){return ew(tw)}function JR(){return ew(nw)}function tc(e){var{valueAccessor:t=ZR}=e,r=Q0(e,GR),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Q0(r,HR),c=QR(),u=JR(),f=c||u;return!f||!f.length?null:wr.createElement(bt,{zIndex:s??ge.label},wr.createElement(et,{className:"recharts-label-list"},f.map((d,p)=>{var h,m=de(n)?t(d,p):Se(d.payload,n),g=de(i)?{}:{id:"".concat(i,"-").concat(p)};return wr.createElement(xr,rc({key:"label-".concat(p)},Pe(d),l,g,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:a,viewBox:d.viewBox,index:p,zIndex:0}))})))}tc.displayName="LabelList";function ow(e){var{label:t}=e;return t?t===!0?wr.createElement(tc,{key:"labelList-implicit"}):wr.isValidElement(t)||sp(t)?wr.createElement(tc,{key:"labelList-implicit",content:t}):typeof t=="object"?wr.createElement(tc,rc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var eD={radiusAxis:{},angleAxis:{}},iw=le({name:"polarAxis",initialState:eD,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:YX,removeRadiusAxis:GX,addAngleAxis:HX,removeAngleAxis:XX}=iw.actions,aw=iw.reducer;function sw(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var pw=ua(uw());import{Children as nD}from"react";var fw=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",dw=null,up=null,mw=e=>{if(e===dw&&Array.isArray(up))return up;var t=[];return nD.forEach(e,r=>{de(r)||((0,pw.isFragment)(r)?t=t.concat(mw(r.props.children)):t.push(r))}),up=t,dw=e,t};function hw(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>fw(o)):n=[fw(t)],mw(e).forEach(o=>{var i=Ge(o,"type.displayName")||Ge(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}import*as or from"react";import{cloneElement as vD,isValidElement as Cw}from"react";function fp(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as Yi from"react";import{useEffect as sD,useRef as Fo,useState as lD}from"react";var vw,gw,yw,xw,bw;function ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sw(e){for(var t=1;t{var i=r-n,a;return a=ve(vw||(vw=qi(["M ",",",""])),e,t),a+=ve(gw||(gw=qi(["L ",",",""])),e+r,t),a+=ve(yw||(yw=qi(["L ",",",""])),e+r-i/2,t+o),a+=ve(xw||(xw=qi(["L ",",",""])),e+r-i/2-n,t+o),a+=ve(bw||(bw=qi(["L ",","," Z"])),e,t),a},cD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Aw=e=>{var t=Ae(e,cD),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,d=Fo(null),[p,h]=lD(-1),m=Fo(o),g=Fo(i),v=Fo(a),P=Fo(r),A=Fo(n),C=uo(e,"trapezoid-");if(sD(()=>{if(d.current&&d.current.getTotalLength)try{var X=d.current.getTotalLength();X&&h(X)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var O=J("recharts-trapezoid",s);if(!f)return Yi.createElement("g",null,Yi.createElement("path",pc({},Pe(t),{className:O,d:Pw(r,n,o,i,a)})));var _=m.current,T=g.current,k=v.current,B=P.current,j=A.current,U="0px ".concat(p===-1?1:p,"px"),z="".concat(p,"px ").concat(p,"px"),Z=hs(["strokeDasharray"],c,l);return Yi.createElement(co,{animationId:C,key:C,canBegin:p>0,duration:c,easing:l,isActive:f,begin:u},X=>{var Q=De(_,o,X),y=De(T,i,X),b=De(k,a,X),E=De(B,r,X),w=De(j,n,X);d.current&&(m.current=Q,g.current=y,v.current=b,P.current=E,A.current=w);var x=X>0?{transition:Z,strokeDasharray:z}:{strokeDasharray:U};return Yi.createElement("path",pc({},Pe(t),{className:O,d:Pw(E,w,Q,y,b),ref:d,style:Sw(Sw({},x),t.style)}))})};var uD=["option","shapeType","activeClassName","inActiveClassName"];function fD(e,t){if(e==null)return{};var r,n,o=dD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var n=oe();return(o,i)=>a=>{e?.(o,i,a),n(Dl({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},pp=e=>{var t=oe();return(r,n)=>o=>{e?.(r,n,o),t(pb())}},mp=(e,t,r)=>{var n=oe();return(o,i)=>a=>{e?.(o,i,a),n(mb({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as kw,useRef as bD}from"react";function Iw(e){var{tooltipEntrySettings:t}=e,r=oe(),n=Oe(),o=bD(null);return kw(()=>{n||(o.current===null?r(cb(t)):o.current!==t&&r(ub({prev:o.current,next:t})),o.current=t)},[t,r,n]),kw(()=>()=>{o.current&&(r(fb(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as Tw,useRef as wD}from"react";function Mw(e){var{legendPayload:t}=e,r=oe(),n=Oe(),o=wD(null);return Tw(()=>{n||(o.current===null?r(Uv(t)):o.current!==t&&r($v({prev:o.current,next:t})),o.current=t)},[r,n,t]),Tw(()=>()=>{o.current&&(r(Kv(o.current)),o.current=null)},[r]),null}import*as Nw from"react";import{createContext as PD,useContext as K9}from"react";import*as hc from"react";var hp,SD=()=>{var[e]=hc.useState(()=>sr("uid-"));return e},Rw=(hp=hc.useId)!==null&&hp!==void 0?hp:SD;function Dw(e,t){var r=Rw();return t||(e?"".concat(e,"-").concat(r):r)}var AD=PD(void 0),jw=e=>{var{id:t,type:r,children:n}=e,o=Dw("recharts-".concat(r),t);return Nw.createElement(AD.Provider,{value:o},n(o))};import{memo as kD,useLayoutEffect as Vw,useRef as ID}from"react";var OD={cartesianItems:[],polarItems:[]},Lw=le({name:"graphicalItems",initialState:OD,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:fe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:fe()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ye(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:fe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:fe()},removePolarGraphicalItem:{reducer(e,t){var r=Ye(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:fe()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=n)},prepare:fe()}}}),{addCartesianGraphicalItem:zw,replaceCartesianGraphicalItem:Bw,removeCartesianGraphicalItem:Fw,addPolarGraphicalItem:ED,removePolarGraphicalItem:CD,replacePolarGraphicalItem:_D}=Lw.actions,Ww=Lw.reducer;var TD=e=>{var t=oe(),r=ID(null);return Vw(()=>{r.current===null?t(zw(e)):r.current!==e&&t(Bw({prev:r.current,next:e})),r.current=e},[t,e]),Vw(()=>()=>{r.current&&(t(Fw(r.current)),r.current=null)},[t]),null},Uw=kD(TD);function $w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Kw(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var Qw=I([Zw,Xe,Ze],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var vc=()=>H(Qw);var Jw=(e,t,r)=>{var n=r??e;if(!de(n))return Ke(n,t,0)},eS=(e,t,r)=>{var n={},o=e.filter(cn),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>{var f=c[u.stackId];return f==null&&(f=[]),f.push(u),c[u.stackId]=f,c},n),s=Object.entries(a).map(c=>{var u,[f,d]=c,p=d.map(m=>m.dataKey),h=Jw(t,r,(u=d[0])===null||u===void 0?void 0:u.barSize);return{stackId:f,dataKeys:p,barSize:h}}),l=i.map(c=>{var u=[c.dataKey].filter(d=>d!=null),f=Jw(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...s,...l]};function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gc(e){for(var t=1;tP+(A.barSize||0),0);d+=(a-1)*s,d>=r&&(d-=(a-1)*s,s=0),d>=r&&f>0&&(u=!0,f*=.9,d=a*f);var p=(r-d)/2>>0,h={offset:p-s,size:0};l=n.reduce((P,A)=>{var C,O={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:h.offset+h.size+s,size:u?f:(C=A.barSize)!==null&&C!==void 0?C:0}},_=[...P,O];return h=O.position,_},c)}else{var m=Ke(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var g=(r-2*m-(a-1)*s)/a;g>1&&(g>>=0);var v=ee(o)?Math.min(g,o):g;l=n.reduce((P,A,C)=>[...P,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:m+(g+s)*C+(g-v)/2,size:v}}],c)}return l}}var rS=(e,t,r,n,o,i,a)=>{var s=de(a)?t:a,l=BD(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>gc(gc({},c),{},{position:gc(gc({},c.position),{},{offset:c.position.offset-o/2})}))),l};var nS=(e,t)=>{var r=mo(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}};var oS=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function iS(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ee(e.zIndex)?e.zIndex:t}import{useEffect as FD}from"react";var aS=e=>{var{chartData:t}=e,r=oe(),n=Oe();return FD(()=>n?()=>{}:(r(rp(t)),()=>{r(rp(void 0))}),[t,r,n]),null};var sS={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},lS=le({name:"brush",initialState:sS,reducers:{setBrushSettings(e,t){return t.payload==null?sS:t.payload}}}),{setBrushSettings:j7}=lS.actions,cS=lS.reducer;function WD(e){return(e%180+180)%180}var uS=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=WD(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ye(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ye(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ye(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:F7,removeDot:W7,addArea:V7,removeArea:U7,addLine:$7,removeLine:K7}=fS.actions,dS=fS.reducer;import*as Gi from"react";import{createContext as UD,useContext as G7,useState as $D}from"react";var KD=UD(void 0),pS=e=>{var{children:t}=e,[r]=$D("".concat(sr("recharts"),"-clip")),n=vc();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return Gi.createElement(KD.Provider,{value:r},Gi.createElement("defs",null,Gi.createElement("clipPath",{id:r},Gi.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};import*as ye from"react";import{useState as CS,useRef as oN,useCallback as iN,forwardRef as _S,useImperativeHandle as aN,useEffect as sN}from"react";function yc(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;ne*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function vS(e,t){return yc(e,t+1)}function gS(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,f=function(){var h=n?.[l];if(h===void 0)return{v:yc(n,c)};var m=l,g,v=()=>(g===void 0&&(g=r(h,m)),g),P=h.coordinate,A=l===0||kn(e,P,v,u,s);A||(l=0,u=a,c+=1),A&&(u=P+e*(v()/2+o),l+=c)},d;c<=i.length;)if(d=f(),d)return d.v;return[]}function yS(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,f=s,d=!0,p=function(){var C=n[m];if(C==null)return 0;var O=m,_,T=()=>(_===void 0&&(_=r(C,O)),_),k=C.coordinate,B=m===u||kn(e,k,T,f,l);if(!B)return d=!1,1;B&&(f=k+e*(T()/2+o))},h,m=u;m(m===void 0&&(m=r(p,d)),m);if(d===a-1){var v=e*(h.coordinate+e*g()/2-l);i[d]=h=Je(Je({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else i[d]=h=Je(Je({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var P=kn(e,h.tickCoord,g,s,l);P&&(l=h.tickCoord-e*(g()/2+o),i[d]=Je(Je({},h),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function XD(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);if(a[s-1]=u=Je(Je({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),u.tickCoord!=null){var p=kn(e,u.tickCoord,()=>f,l,c);p&&(c=u.tickCoord-e*(f/2+o),a[s-1]=Je(Je({},u),{},{isShow:!0}))}}}for(var h=i?s-1:s,m=function(P){var A=a[P];if(A==null)return 1;var C=A,O,_=()=>(O===void 0&&(O=r(A,P)),O);if(P===0){var T=e*(C.coordinate-e*_()/2-l);a[P]=C=Je(Je({},C),{},{tickCoord:T<0?C.coordinate-T*e:C.coordinate})}else a[P]=C=Je(Je({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var k=kn(e,C.tickCoord,_,l,c);k&&(l=C.tickCoord+e*(_()/2+o),a[P]=Je(Je({},C),{},{isShow:!0}))}},g=0;g{var T=typeof c=="function"?c(O.value,_):O.value;return h==="width"?mS(_n(T,{fontSize:t,letterSpacing:r}),m,f):_n(T,{fontSize:t,letterSpacing:r})[h]},v=o[0],P=o[1],A=o.length>=2&&v!=null&&P!=null?ke(P.coordinate-v.coordinate):1,C=hS(i,A,h);return l==="equidistantPreserveStart"?gS(A,C,g,o,a):l==="equidistantPreserveEnd"?yS(A,C,g,o,a):(l==="preserveStart"||l==="preserveStartEnd"?p=XD(A,C,g,o,a,l==="preserveStartEnd"):p=HD(A,C,g,o,a),p.filter(O=>O.isShow))}var wS=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>a&&(a=f.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0};var ZD={xAxis:{},yAxis:{}},SS=le({name:"renderedTicks",initialState:ZD,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:o}=t.payload;e[r][n]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:PS,removeRenderedTicks:AS}=SS.actions,OS=SS.reducer;var QD=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function JD(e,t){if(e==null)return{};var r,n,o=eN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(n==null||r==null)return pt;var i=t.map(a=>({value:a.value,coordinate:a.coordinate,offset:a.offset,index:a.index}));return o(PS({ticks:i,axisId:n,axisType:r})),()=>{o(AS({axisId:n,axisType:r}))}},[o,t,n,r]),null}var mN=_S((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:f,x:d,y:p,width:h,height:m,tickSize:g,tickMargin:v,fontSize:P,letterSpacing:A,getTicksConfig:C,events:O,axisType:_,axisId:T}=e,k=bS(_e(_e({},C),{},{ticks:r}),P,A),B=At(C),j=Fn(n),U=Ql(B.textAnchor)?B.textAnchor:uN(u,f),z=fN(u,f),Z={};typeof o=="object"&&(Z=o);var X=_e(_e({},B),{},{fill:"none"},Z),Q=k.map(E=>_e({entry:E},cN(E,d,p,h,m,u,g,f,v))),y=Q.map(E=>{var{entry:w,line:x}=E;return ye.createElement(et,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},o&&ye.createElement("line",In({},X,x,{className:J("recharts-cartesian-axis-tick-line",Ge(o,"className"))})))}),b=Q.map((E,w)=>{var x,S,{entry:M,tick:R}=E,L=_e(_e(_e(_e({verticalAnchor:z},B),{},{textAnchor:U,stroke:"none",fill:i},R),{},{index:w,payload:M,visibleTicksCount:k.length,tickFormatter:a,padding:l},c),{},{angle:(x=(S=c?.angle)!==null&&S!==void 0?S:B.angle)!==null&&x!==void 0?x:0}),W=_e(_e({},L),j);return ye.createElement(et,In({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},qo(O,M,w)),n&&ye.createElement(dN,{option:n,tickProps:W,value:"".concat(typeof a=="function"?a(M.value,w):M.value).concat(s||"")}))});return ye.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(_,"-ticks")},ye.createElement(pN,{ticks:k,axisId:T,axisType:_}),b.length>0&&ye.createElement(bt,{zIndex:ge.label},ye.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(_,"-tick-labels"),ref:t},b)),y.length>0&&ye.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(_,"-tick-lines")},y))}),hN=_S((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l,axisId:c}=e,u=JD(e,QD),[f,d]=CS(""),[p,h]=CS(""),m=oN(null);aN(t,()=>({getCalculatedWidth:()=>{var v;return wS({ticks:m.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=iN(v=>{if(v){var P=v.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=P;var A=P[0];if(A){var C=window.getComputedStyle(A),O=C.fontSize,_=C.letterSpacing;(O!==f||_!==p)&&(d(O),h(_))}}},[f,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:ye.createElement(bt,{zIndex:e.zIndex},ye.createElement(et,{className:J("recharts-cartesian-axis",i)},ye.createElement(lN,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:At(e)}),ye.createElement(mN,{ref:g,axisType:l,events:u,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:c}),ye.createElement(H0,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},ye.createElement(Z0,{label:e.label,labelRef:e.labelRef}),e.children)))}),gp=ye.forwardRef((e,t)=>{var r=Ae(e,Hi);return ye.createElement(hN,In({},r,{ref:t}))});gp.displayName="CartesianAxis";import*as TS from"react";import{createContext as bN,useContext as zZ,useEffect as BZ,useRef as FZ}from"react";var vN={},kS=le({name:"errorBars",initialState:vN,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:RZ,replaceErrorBar:DZ,removeErrorBar:NZ}=kS.actions,IS=kS.reducer;var gN=["children"];function yN(e,t){if(e==null)return{};var r,n,o=xN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n({x:0,y:0,value:0}),errorBarOffset:0},SN=bN(wN);function MS(e){var{children:t}=e,r=yN(e,gN);return TS.createElement(SN.Provider,{value:r},t)}import*as yp from"react";function xp(e,t){var r,n,o=H(c=>tr(c,e)),i=H(c=>rr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Te.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:od.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function RS(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=vc(),{needClipX:i,needClipY:a,needClip:s}=xp(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:f}=o;return yp.createElement("clipPath",{id:"clipPath-".concat(n)},yp.createElement("rect",{x:i?l:l-u/2,y:a?c:c-f/2,width:i?u:u*2,height:a?f:f*2}))}function Vr(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:vp}function Ur(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:vp}import*as re from"react";import{PureComponent as ej,useCallback as Op,useEffect as tj,useRef as rj,useState as Ep}from"react";import*as NS from"react";var PN=!0,bp="Invariant failed";function DS(e,t){if(!e){if(PN)throw new Error(bp);var r=typeof t=="function"?t():t,n=r?"".concat(bp,": ").concat(r):bp;throw new Error(n)}}function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||de(n);return i?t(n,o):(i||DS(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}};var AN=(e,t,r)=>r,ON=(e,t)=>t,Xi=I([El,ON],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),EN=I([Xi],e=>e?.maxBarSize),CN=(e,t,r,n)=>n,_N=I([ae,El,Vr,Ur,AN],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),kN=(e,t,r)=>{var n=ae(e),o=Vr(e,t),i=Ur(e,t);if(!(o==null||i==null))return n==="horizontal"?Cl(e,"yAxis",i,r):Cl(e,"xAxis",o,r)},IN=(e,t)=>{var r=ae(e),n=Vr(e,t),o=Ur(e,t);if(!(n==null||o==null))return r==="horizontal"?Rd(e,"xAxis",n):Rd(e,"yAxis",o)},TN=I([_N,hy,IN],eS),MN=(e,t,r)=>{var n,o,i=Xi(e,t);if(i==null)return 0;var a=Vr(e,t),s=Ur(e,t);if(a==null||s==null)return 0;var l=ae(e),c=gf(e),{maxBarSize:u}=i,f=de(u)?c:u,d,p;return l==="horizontal"?(d=On(e,"xAxis",a,r),p=An(e,"xAxis",a,r)):(d=On(e,"yAxis",s,r),p=An(e,"yAxis",s,r)),(n=(o=ro(d,p,!0))!==null&&o!==void 0?o:f)!==null&&n!==void 0?n:0},LS=(e,t,r)=>{var n=ae(e),o=Vr(e,t),i=Ur(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=On(e,"xAxis",o,r),s=An(e,"xAxis",o,r)):(a=On(e,"yAxis",i,r),s=An(e,"yAxis",i,r)),ro(a,s)}},RN=I([TN,gf,my,Ts,MN,LS,EN],rS),DN=(e,t,r)=>{var n=Vr(e,t);if(n!=null)return On(e,"xAxis",n,r)},NN=(e,t,r)=>{var n=Ur(e,t);if(n!=null)return On(e,"yAxis",n,r)},jN=(e,t,r)=>{var n=Vr(e,t);if(n!=null)return An(e,"xAxis",n,r)},LN=(e,t,r)=>{var n=Ur(e,t);if(n!=null)return An(e,"yAxis",n,r)},zN=I([RN,Xi],oS),BN=I([kN,Xi],nS),zS=I([pe,us,DN,NN,jN,LN,zN,ae,sy,LS,BN,Xi,CN],(e,t,r,n,o,i,a,s,l,c,u,f,d)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:m}=l;if(!(f==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:g}=f,v;if(g!=null&&g.length>0?v=g:v=p?.slice(h,m+1),v!=null)return BS({layout:s,barSettings:f,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:v,offset:e,cells:d,dataStartIndex:h})}});import*as Pp from"react";import{createContext as UN,useContext as FS,useMemo as hQ}from"react";var FN=["index"];function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=FS(WS);if(t!=null)return t.stackId;if(e!=null)return gv(e)};var $N=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),KN=e=>{var t=FS(WS);if(t!=null){var{stackId:r}=t;return"url(#".concat($N(r,e),")")}},Ap=e=>{var{index:t}=e,r=WN(e,FN),n=KN(t);return Pp.createElement(et,Sp({className:"recharts-bar-stack-layer",clipPath:n},r))};var qN=["onMouseEnter","onMouseLeave","onClick"],YN=["value","background","tooltipPosition"],GN=["id"],HN=["onMouseEnter","onClick","onMouseLeave"];function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Zu(r,t),payload:e}]},oj=re.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:pt,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:Zu(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return re.createElement(Iw,{tooltipEntrySettings:u})});function ij(e){var t=H(Fr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=bc(i,qN),u=dp(a,n,i.id),f=pp(s),d=mp(l,n,i.id);if(!o||r==null)return null;var p=Fn(o);return re.createElement(bt,{zIndex:iS(o,ge.barBackground)},r.map((h,m)=>{var{value:g,background:v,tooltipPosition:P}=h,A=bc(h,YN);if(!v)return null;var C=u(h,m),O=f(h,m),_=d(h,m),T=st(st(st(st(st({option:o,isActive:String(m)===t},A),{},{fill:"#eee"},v),p),qo(c,h,m)),{},{onMouseEnter:C,onMouseLeave:O,onClick:_,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return re.createElement(xc,$r({key:"background-bar-".concat(m)},T))}))}function aj(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return st(st({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return re.createElement(rw,{value:t?o:void 0},r)}function sj(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=H(Fr),l=H($l),c=r&&String(o.originalDataIndex)===s&&(l==null||a===l),[u,f]=Ep(!1),[d,p]=Ep(!1);tj(()=>{var A;return c?(f(!0),A=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(A)}},[c]);var h=Op(()=>{c||f(!1)},[c]),m=c&&d,g=c||u,v;c?r===!0?v=t:v=r:v=t;var P=re.createElement(xc,$r({},n,{name:String(n.name)},o,{isActive:m,option:v,index:i,dataKey:a,onTransitionEnd:h}));return g?re.createElement(bt,{zIndex:ge.activeBar},re.createElement(Ap,{index:o.originalDataIndex},P)):P}function lj(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return re.createElement(xc,$r({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function cj(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=bc(o,GN),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:f,onMouseLeave:d}=n,p=bc(n,HN),h=dp(u,l,i),m=pp(d),g=mp(f,l,i);return r?re.createElement(re.Fragment,null,r.map((v,P)=>re.createElement(Ap,$r({index:v.originalDataIndex,key:"rectangle-".concat(v?.x,"-").concat(v?.y,"-").concat(v?.value,"-").concat(P),className:"recharts-bar-rectangle"},qo(p,v,P),{onMouseEnter:h(v,P),onMouseLeave:m(v,P),onClick:g(v,P)}),c?re.createElement(sj,{shape:s,activeBar:c,baseProps:a,entry:v,index:P,dataKey:l}):re.createElement(lj,{shape:s,baseProps:a,entry:v,index:P,dataKey:l})))):null}function uj(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,f=r.current,d=uo(t,"recharts-bar-"),[p,h]=Ep(!1),m=!p,g=Op(()=>{typeof c=="function"&&c(),h(!1)},[c]),v=Op(()=>{typeof u=="function"&&u(),h(!0)},[u]);return re.createElement(aj,{showLabels:m,rects:n},re.createElement(co,{animationId:d,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:g,onAnimationStart:v,key:d},P=>{var A=P===1?n:n?.map((C,O)=>{var _=f&&f[O];if(_)return st(st({},C),{},{x:De(_.x,C.x,P),y:De(_.y,C.y,P),width:De(_.width,C.width,P),height:De(_.height,C.height,P)});if(o==="horizontal"){var T=De(0,C.height,P),k=De(C.stackedBarStart,C.y,P);return st(st({},C),{},{y:k,height:T})}var B=De(0,C.width,P),j=De(C.stackedBarStart,C.x,P);return st(st({},C),{},{width:B,x:j})});return P>0&&(r.current=A??null),A==null?null:re.createElement(et,null,re.createElement(cj,{props:t,data:A}))}),re.createElement(ow,{label:t.label}),t.children)}function fj(e){var t=rj(null);return re.createElement(uj,{previousRectanglesRef:t,props:e})}var $S=0,dj=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Se(e,t)}},Cp=class extends ej{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=J("recharts-bar",o),f=c;return re.createElement(et,{className:u,id:c},s&&re.createElement("defs",null,re.createElement(RS,{clipPathId:f,xAxisId:i,yAxisId:a})),re.createElement(et,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},re.createElement(ij,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),re.createElement(fj,this.props)))}},pj={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:$S,xAxisId:0,yAxisId:0,zIndex:ge.bar};function mj(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:f}=xp(t,r),d=Gt(),p=Oe(),h=hw(e.children,op),m=H(P=>zS(P,e.id,p,h));if(d!=="vertical"&&d!=="horizontal")return null;var g,v=m?.[0];return v==null||v.height==null||v.width==null?g=0:g=d==="vertical"?v.height/2:v.width/2,re.createElement(MS,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:dj,errorBarOffset:g},re.createElement(Cp,$r({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function BS(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:o},pos:i,bandSize:a,xAxis:s,yAxis:l,xAxisTicks:c,yAxisTicks:u,stackedData:f,displayedData:d,offset:p,cells:h,parentViewBox:m,dataStartIndex:g}=e,v=t==="horizontal"?l:s,P=f?v.scale.domain():null,A=yv({numericAxis:v}),C=v.scale.map(A);return d.map((O,_)=>{var T,k,B,j,U,z;if(f){var Z=f[_+g];if(Z==null)return null;T=hv(Z,P)}else T=Se(O,r),Array.isArray(T)||(T=[A,T]);var X=jS(n,$S)(T[1],_);if(t==="horizontal"){var Q,y=l.scale.map(T[0]),b=l.scale.map(T[1]);if(y==null||b==null)return null;k=Yu({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:O,index:_}),B=(Q=b??y)!==null&&Q!==void 0?Q:void 0,j=i.size;var E=y-b;if(U=He(E)?0:E,z={x:k,y:p.top,width:j,height:p.height},Math.abs(X)>0&&Math.abs(U)0&&Math.abs(j)re.createElement(re.Fragment,null,re.createElement(Mw,{legendPayload:nj(t)}),re.createElement(oj,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),re.createElement(Uw,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n,hasCustomShape:t.shape!=null}),re.createElement(bt,{zIndex:t.zIndex},re.createElement(mj,$r({},t,{id:o})))))}var Zi=re.memo(hj,_r);Zi.displayName="Bar";import*as Sr from"react";import{useLayoutEffect as XS,useMemo as Ej,useRef as Cj}from"react";var vj=["domain","range"],gj=["domain","range"];function KS(e,t){if(e==null)return{};var r,n,o=yj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(a!=null)return HS(HS({},i),{},{type:a})},[i,a]);return XS(()=>{s!=null&&(r.current===null?t(Yw(s)):r.current!==s&&t(Gw({prev:r.current,next:s})),r.current=s)},[s,t]),XS(()=>()=>{r.current&&(t(Hw(r.current)),r.current=null)},[t]),null}var kj=e=>{var{xAxisId:t,className:r}=e,n=H(us),o=Oe(),i="xAxis",a=H(v=>ob(v,i,t,o)),s=H(v=>Md(v,t)),l=H(v=>nb(v,t)),c=H(v=>nd(v,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:f,scale:d}=e,p=kp(e,bj),{id:h,scale:m}=c,g=kp(c,wj);return Sr.createElement(gp,_p({},p,g,{x:l.x,y:l.y,width:s.width,height:s.height,className:J("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i,axisId:t}))},Ij={allowDataOverflow:Te.allowDataOverflow,allowDecimals:Te.allowDecimals,allowDuplicatedCategory:Te.allowDuplicatedCategory,angle:Te.angle,axisLine:Hi.axisLine,height:Te.height,hide:!1,includeHidden:Te.includeHidden,interval:Te.interval,label:!1,minTickGap:Te.minTickGap,mirror:Te.mirror,orientation:Te.orientation,padding:Te.padding,reversed:Te.reversed,scale:Te.scale,tick:Te.tick,tickCount:Te.tickCount,tickLine:Hi.tickLine,tickSize:Hi.tickSize,type:Te.type,niceTicks:Te.niceTicks,xAxisId:0},Tj=e=>{var t=Ae(e,Ij);return Sr.createElement(Sr.Fragment,null,Sr.createElement(_j,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),Sr.createElement(kj,t))},wc=Sr.memo(Tj,YS);wc.displayName="XAxis";import*as jn from"react";import{forwardRef as wL}from"react";import*as uP from"react";import{useRef as zj}from"react";var Mj=(e,t)=>t,Qi=I([Mj,ae,Bs,Ie,Wd,ct,zb,pe],$b);function Rj(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Ji(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(Rj(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,n=o.height>0?t.height/o.height:1}else{var i=e.currentTarget;r=i.offsetWidth>0?t.width/i.offsetWidth:1,n=i.offsetHeight>0?t.height/i.offsetHeight:1}var a=(s,l)=>({relativeX:Math.round((s-t.left)/r),relativeY:Math.round((l-t.top)/n)});return"touches"in e?Array.from(e.touches).map(s=>a(s.clientX,s.clientY)):a(e.clientX,e.clientY)}var Tp=Ne("mouseClick"),Mp=fr();Mp.startListening({actionCreator:Tp,effect:(e,t)=>{var r=e.payload,n=Qi(t.getState(),Ji(r));n?.activeIndex!=null&&t.dispatch(hb({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Sc=Ne("mouseMove"),Rp=fr(),Wo=null,Tn=null,Ip=null;Rp.startListening({actionCreator:Sc,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i?.includes("mousemove");Wo!==null&&(cancelAnimationFrame(Wo),Wo=null),Tn!==null&&(typeof o!="number"||!a)&&(clearTimeout(Tn),Tn=null),Ip=Ji(r);var s=()=>{var l=t.getState(),c=Bi(l,l.tooltip.settings.shared);if(!Ip){Wo=null,Tn=null;return}if(c==="axis"){var u=Qi(l,Ip);u?.activeIndex!=null?t.dispatch(jl({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(Nl())}Wo=null,Tn=null};if(!a){s();return}o==="raf"?Wo=requestAnimationFrame(s):typeof o=="number"&&Tn===null&&(Tn=setTimeout(s,o))}});function ZS(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var QS={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},JS=le({name:"rootProps",initialState:QS,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:QS.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),eP=JS.reducer,{updateOptions:tP}=JS.actions;var Dj=null,Nj={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},rP=le({name:"polarOptions",initialState:Dj,reducers:Nj}),{updatePolarOptions:TJ}=rP.actions,nP=rP.reducer;var Dp=Ne("keyDown"),Np=Ne("focus"),jp=Ne("blur"),ea=fr(),Vo=null,Mn=null,Pc=null;ea.startListening({actionCreator:Dp,effect:(e,t)=>{Pc=e.payload,Vo!==null&&(cancelAnimationFrame(Vo),Vo=null);var r=t.getState(),{throttleDelay:n,throttledEvents:o}=r.eventSettings,i=o==="all"||o.includes("keydown");Mn!==null&&(typeof n!="number"||!i)&&(clearTimeout(Mn),Mn=null);var a=()=>{try{var s=t.getState(),l=s.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:c}=s.tooltip,u=Pc;if(u!=="ArrowRight"&&u!=="ArrowLeft"&&u!=="Enter")return;var f=No(c,Br(s),zr(s),Cn(s)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var p=ct(s);if(u==="Enter"){var h=Vi(s,"axis","hover",String(c.index));t.dispatch(Fi({active:!c.active,activeIndex:c.index,activeCoordinate:h}));return}var m=ib(s),g=m==="left-to-right"?1:-1,v=u==="ArrowRight"?1:-1,P=d+v*g;if(p==null||P>=p.length||P<0)return;var A=Vi(s,"axis","hover",String(P));t.dispatch(Fi({active:!0,activeIndex:P.toString(),activeCoordinate:A}))}finally{Vo=null,Mn=null}};if(!i){a();return}n==="raf"?Vo=requestAnimationFrame(a):typeof n=="number"&&Mn===null&&(a(),Pc=null,Mn=setTimeout(()=>{Pc?a():(Mn=null,Vo=null)},n))}});ea.startListening({actionCreator:Np,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=Vi(r,"axis","hover",String(i));t.dispatch(Fi({active:!0,activeIndex:i,activeCoordinate:a}))}}}});ea.startListening({actionCreator:jp,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Fi({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function Ac(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var o=Reflect.get(r,n);return typeof o=="function"?o.bind(r):o}})}var St=Ne("externalEvent"),zp=fr(),Oc=new Map,ta=new Map,Lp=new Map;zp.startListening({actionCreator:St,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var o=n.type,i=Ac(n);Lp.set(o,{handler:r,reactEvent:i});var a=Oc.get(o);a!==void 0&&(cancelAnimationFrame(a),Oc.delete(o));var s=t.getState(),{throttleDelay:l,throttledEvents:c}=s.eventSettings,u=c,f=u==="all"||u?.includes(o),d=ta.get(o);d!==void 0&&(typeof l!="number"||!f)&&(clearTimeout(d),ta.delete(o));var p=()=>{var g=Lp.get(o);try{if(!g)return;var{handler:v,reactEvent:P}=g,A=t.getState(),C={activeCoordinate:Cb(A),activeDataKey:$l(A),activeIndex:Fr(A),activeLabel:Kd(A),activeTooltipIndex:Fr(A),isTooltipActive:_b(A)};v&&v(C,P)}finally{Oc.delete(o),ta.delete(o),Lp.delete(o)}};if(!f){p();return}if(l==="raf"){var h=requestAnimationFrame(p);Oc.set(o,h)}else if(typeof l=="number"){if(!ta.has(o)){p();var m=setTimeout(p,l);ta.set(o,m)}}else p()}}});var jj=I([yr],e=>e.tooltipItemPayloads),oP=I([jj,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}});var Bp=Ne("touchMove"),Fp=fr(),Rn=null,Kr=null,iP=null,ra=null;Fp.startListening({actionCreator:Bp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){ra=Ac(r);var n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("touchmove");Rn!==null&&(cancelAnimationFrame(Rn),Rn=null),Kr!==null&&(typeof o!="number"||!a)&&(clearTimeout(Kr),Kr=null),iP=Array.from(r.touches).map(l=>Ji({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var s=()=>{if(ra!=null){var l=t.getState(),c=Bi(l,l.tooltip.settings.shared);if(c==="axis"){var u,f=(u=iP)===null||u===void 0?void 0:u[0];if(f==null){Rn=null,Kr=null;return}var d=Qi(l,f);d?.activeIndex!=null&&t.dispatch(jl({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(c==="item"){var p,h=ra.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var g=m.getAttribute(Pv),v=(p=m.getAttribute(Av))!==null&&p!==void 0?p:void 0,P=En(l).find(O=>O.id===v);if(g==null||P==null||v==null)return;var{dataKey:A}=P,C=oP(l,g,v);t.dispatch(Dl({activeDataKey:A,activeIndex:g,activeCoordinate:C,activeGraphicalItemId:v}))}Rn=null,Kr=null}};if(!a){s();return}o==="raf"?Rn=requestAnimationFrame(s):typeof o=="number"&&Kr===null&&(s(),ra=null,Kr=setTimeout(()=>{ra?s():(Kr=null,Rn=null)},o))}}});var Wp={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},aP=le({name:"eventSettings",initialState:Wp,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:sP}=aP.actions,lP=aP.reducer;var Lj=za({brush:cS,cartesianAxis:Xw,chartData:h0,errorBars:IS,eventSettings:lP,graphicalItems:Ww,layout:dv,legend:qv,options:u0,polarAxis:aw,polarOptions:nP,referenceElements:dS,renderedTicks:OS,rootProps:eP,tooltip:vb,zIndex:e0}),cP=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Gh({reducer:Lj,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([Mp.middleware,Rp.middleware,ea.middleware,zp.middleware,Fp.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(Uu({type:"raf"}))},devTools:kt.devToolsEnabled&&{serialize:{replacer:ZS},name:"recharts-".concat(r)}})};function fP(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=Oe(),i=zj(null);if(o)return r;i.current==null&&(i.current=cP(t,n));var a=Ho;return uP.createElement(Xv,{context:a,store:i.current},r)}import{memo as Bj,useEffect as Fj}from"react";function Wj(e){var{layout:t,margin:r}=e,n=oe(),o=Oe();return Fj(()=>{o||(n(cv(t)),n(qu(r)))},[n,o,t,r]),null}var dP=Bj(Wj,_r);import{useEffect as Vj}from"react";function pP(e){var t=oe();return Vj(()=>{t(tP(e))},[t,e]),null}import{useEffect as Uj,memo as $j}from"react";var Kj=e=>{var t=oe();return Uj(()=>{t(sP(e))},[t,e]),null},mP=$j(Kj,_r);import*as Pr from"react";import{forwardRef as vL}from"react";import*as Nn from"react";import{forwardRef as vP}from"react";import*as Dn from"react";import{useLayoutEffect as qj,useRef as Yj}from"react";function hP(e){var{zIndex:t,isPanorama:r}=e,n=Yj(null),o=oe();return qj(()=>(n.current&&o(Qb({zIndex:t,element:n.current,isPanorama:r})),()=>{o(Jb({zIndex:t,isPanorama:r}))}),[o,t,r]),Dn.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function Vp(e){var{children:t,isPanorama:r}=e,n=H(qb);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return Dn.createElement(Dn.Fragment,null,o.map(a=>Dn.createElement(hP,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>Dn.createElement(hP,{key:a,zIndex:a,isPanorama:r})))}var Gj=["children"];function Hj(e,t){if(e==null)return{};var r,n,o=Xj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var r=zv(),n=Bv(),o=ds();if(!zt(r)||!zt(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),Nn.createElement(jc,Ec({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:Zj,ref:t}),i)}),Jj=e=>{var{children:t}=e,r=H(rn);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return Nn.createElement(jc,{width:n,height:o,x:a,y:i},t)},Up=vP((e,t)=>{var{children:r}=e,n=Hj(e,Gj),o=Oe();return o?Nn.createElement(Jj,null,Nn.createElement(Vp,{isPanorama:!0},r)):Nn.createElement(Qj,Ec({ref:t},n),Nn.createElement(Vp,{isPanorama:!1},r))});import*as be from"react";import{forwardRef as na,useCallback as Be,useEffect as aL,useRef as xP,useState as Cc}from"react";import{useEffect as eL,useState as tL}from"react";function gP(){var e=oe(),[t,r]=tL(null),n=H(Sv);return eL(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ee(i)&&i!==n&&e(fv(i))}},[t,e,n]),r}function yP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rL(e){for(var t=1;t(g0(),null);function _c(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var lL=na((e,t)=>{var r,n,o=xP(null),[i,a]=Cc({containerWidth:_c((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:_c((n=e.style)===null||n===void 0?void 0:n.height)}),s=Be((c,u)=>{a(f=>{var d=Math.round(c),p=Math.round(u);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),l=Be(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=c.getBoundingClientRect();s(u,f);var d=h=>{var m=h[0];if(m!=null){var{width:g,height:v}=m.contentRect;s(g,v)}},p=new ResizeObserver(d);p.observe(c),o.current=p}},[t,s]);return aL(()=>()=>{var c=o.current;c?.disconnect()},[s]),be.createElement(be.Fragment,null,be.createElement(an,{width:i.containerWidth,height:i.containerHeight}),be.createElement("div",qr({ref:l},e)))}),cL=na((e,t)=>{var{width:r,height:n}=e,[o,i]=Cc({containerWidth:_c(r),containerHeight:_c(n)}),a=Be((l,c)=>{i(u=>{var f=Math.round(l),d=Math.round(c);return u.containerWidth===f&&u.containerHeight===d?u:{containerWidth:f,containerHeight:d}})},[]),s=Be(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return be.createElement(be.Fragment,null,be.createElement(an,{width:o.containerWidth,height:o.containerHeight}),be.createElement("div",qr({ref:s},e)))}),uL=na((e,t)=>{var{width:r,height:n}=e;return be.createElement(be.Fragment,null,be.createElement(an,{width:r,height:n}),be.createElement("div",qr({ref:t},e)))}),fL=na((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?be.createElement(cL,qr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?be.createElement(uL,qr({},e,{width:r,height:n,ref:t})):be.createElement(be.Fragment,null,be.createElement(an,{width:r,height:n}),be.createElement("div",qr({ref:t},e)))});function dL(e){return e?lL:fL}var bP=na((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:g,width:v,responsive:P,dispatchTouchEvents:A=!0}=e,C=xP(null),O=oe(),[_,T]=Cc(null),[k,B]=Cc(null),j=gP(),U=ni(),z=U?.width>0?U.width:v,Z=U?.height>0?U.height:o,X=Be(V=>{j(V),typeof t=="function"&&t(V),T(V),B(V),V!=null&&(C.current=V)},[j,t,T,B]),Q=Be(V=>{O(Tp(V)),O(St({handler:i,reactEvent:V}))},[O,i]),y=Be(V=>{O(Sc(V)),O(St({handler:c,reactEvent:V}))},[O,c]),b=Be(V=>{O(Nl()),O(St({handler:u,reactEvent:V}))},[O,u]),E=Be(V=>{O(Sc(V)),O(St({handler:f,reactEvent:V}))},[O,f]),w=Be(()=>{O(Np())},[O]),x=Be(()=>{O(jp())},[O]),S=Be(V=>{O(Dp(V.key))},[O]),M=Be(V=>{O(St({handler:a,reactEvent:V}))},[O,a]),R=Be(V=>{O(St({handler:s,reactEvent:V}))},[O,s]),L=Be(V=>{O(St({handler:l,reactEvent:V}))},[O,l]),W=Be(V=>{O(St({handler:d,reactEvent:V}))},[O,d]),F=Be(V=>{O(St({handler:m,reactEvent:V}))},[O,m]),$=Be(V=>{A&&O(Bp(V)),O(St({handler:h,reactEvent:V}))},[O,A,h]),ie=Be(V=>{O(St({handler:p,reactEvent:V}))},[O,p]),D=dL(P);return be.createElement(Jd.Provider,{value:_},be.createElement(Qp.Provider,{value:k},be.createElement(D,{width:z??g?.width,height:Z??g?.height,className:J("recharts-wrapper",n),style:rL({position:"relative",cursor:"default",width:z,height:Z},g),onClick:Q,onContextMenu:M,onDoubleClick:R,onFocus:w,onBlur:x,onKeyDown:S,onMouseDown:L,onMouseEnter:y,onMouseLeave:b,onMouseMove:E,onMouseUp:W,onTouchEnd:ie,onTouchMove:$,onTouchStart:F,ref:X},be.createElement(sL,null),r)))});var pL=["width","height","responsive","children","className","style","compact","title","desc"];function mL(e,t){if(e==null)return{};var r,n,o=hL(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,f=mL(e,pL),d=At(f);return l?Pr.createElement(Pr.Fragment,null,Pr.createElement(an,{width:r,height:n}),Pr.createElement(Up,{otherAttributes:d,title:c,desc:u},i)):Pr.createElement(bP,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},Pr.createElement(Up,{otherAttributes:d,title:c,desc:u,ref:t},Pr.createElement(pS,null,i)))});function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;tAP.createElement(PP,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:OL,tooltipPayloadSearcher:l0,categoricalChartProps:e,ref:t}));var CL=(e,t)=>{let r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),TP=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Tc="-",OP=[],kL="arbitrary..",IL=e=>{let t=ML(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return TL(a);let s=a.split(Tc),l=s[0]===""&&s.length>1?1:0;return MP(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=n[a],c=r[a];return l?c?CL(c,l):l:c||OP}return r[a]||OP}}},MP=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let c=MP(e,t+1,i);if(c)return c}let a=r.validators;if(a===null)return;let s=t===0?e.join(Tc):e.slice(t).join(Tc),l=a.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?kL+n:void 0})(),ML=e=>{let{theme:t,classGroups:r}=e;return RL(r,t)},RL=(e,t)=>{let r=TP();for(let n in e){let o=e[n];Gp(o,r,n,t)}return r},Gp=(e,t,r,n)=>{let o=e.length;for(let i=0;i{if(typeof e=="string"){NL(e,t,r);return}if(typeof e=="function"){jL(e,t,r,n);return}LL(e,t,r,n)},NL=(e,t,r)=>{let n=e===""?t:RP(t,e);n.classGroupId=r},jL=(e,t,r,n)=>{if(zL(e)){Gp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(_L(r,e))},LL=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let a=0;a{let r=e,n=t.split(Tc),o=n.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,BL=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Yp="!",EP=":",FL=[],CP=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),WL=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=o=>{let i=[],a=0,s=0,l=0,c,u=o.length;for(let m=0;ml?c-l:void 0;return CP(i,p,d,h)};if(t){let o=t+EP,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):CP(FL,!1,a,void 0,!0)}if(r){let o=n;n=i=>r({className:i,parseClassName:o})}return n},VL=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{let n=[],o=[];for(let i=0;i0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},UL=e=>({cache:BL(e.cacheSize),parseClassName:WL(e),sortModifiers:VL(e),postfixLookupClassGroupIds:$L(e),...IL(e)}),$L=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(KL),c="";for(let u=l.length-1;u>=0;u-=1){let f=l[u],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=r(f);if(d){c=f+(c.length>0?" "+c:c);continue}let v=!!g,P;if(v){let T=m.substring(0,g);P=n(T);let k=P&&a[P]?n(m):void 0;k&&k!==P&&(P=k,v=!1)}else P=n(m);if(!P){if(!v){c=f+(c.length>0?" "+c:c);continue}if(P=n(m),!P){c=f+(c.length>0?" "+c:c);continue}v=!1}let A=p.length===0?"":p.length===1?p[0]:i(p).join(":"),C=h?A+Yp:A,O=C+P;if(s.indexOf(O)>-1)continue;s.push(O);let _=o(P,v);for(let T=0;T<_.length;++T){let k=_[T];s.push(C+k)}c=f+(c.length>0?" "+c:c)}return c},YL=(...e)=>{let t=0,r,n,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,o,i,a=l=>{let c=t.reduce((u,f)=>f(u),e());return r=UL(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{let c=n(l);if(c)return c;let u=qL(l,r);return o(l,u),u};return i=a,(...l)=>i(YL(...l))},HL=[],Fe=e=>{let t=r=>r[e]||HL;return t.isThemeGetter=!0,t},NP=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jP=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XL=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ZL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,JL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,e2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yr=e=>XL.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),ir=e=>!!e&&Number.isInteger(Number(e)),qp=e=>e.endsWith("%")&&ne(e.slice(0,-1)),Ar=e=>ZL.test(e),LP=()=>!0,r2=e=>QL.test(e)&&!JL.test(e),Hp=()=>!1,n2=e=>e2.test(e),o2=e=>t2.test(e),i2=e=>!Y(e)&&!G(e),a2=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),s2=e=>Gr(e,FP,Hp),Y=e=>NP.test(e),Ln=e=>Gr(e,WP,r2),_P=e=>Gr(e,h2,ne),l2=e=>Gr(e,UP,LP),c2=e=>Gr(e,VP,Hp),kP=e=>Gr(e,zP,Hp),u2=e=>Gr(e,BP,o2),kc=e=>Gr(e,$P,n2),G=e=>jP.test(e),oa=e=>zn(e,WP),f2=e=>zn(e,VP),IP=e=>zn(e,zP),d2=e=>zn(e,FP),p2=e=>zn(e,BP),Ic=e=>zn(e,$P,!0),m2=e=>zn(e,UP,!0),Gr=(e,t,r)=>{let n=NP.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},zn=(e,t,r=!1)=>{let n=jP.exec(e);return n?n[1]?t(n[1]):r:!1},zP=e=>e==="position"||e==="percentage",BP=e=>e==="image"||e==="url",FP=e=>e==="length"||e==="size"||e==="bg-size",WP=e=>e==="length",h2=e=>e==="number",VP=e=>e==="family-name",UP=e=>e==="number"||e==="weight",$P=e=>e==="shadow";var v2=()=>{let e=Fe("color"),t=Fe("font"),r=Fe("text"),n=Fe("font-weight"),o=Fe("tracking"),i=Fe("leading"),a=Fe("breakpoint"),s=Fe("container"),l=Fe("spacing"),c=Fe("radius"),u=Fe("shadow"),f=Fe("inset-shadow"),d=Fe("text-shadow"),p=Fe("drop-shadow"),h=Fe("blur"),m=Fe("perspective"),g=Fe("aspect"),v=Fe("ease"),P=Fe("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...C(),G,Y],_=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],k=()=>[G,Y,l],B=()=>[Yr,"full","auto",...k()],j=()=>[ir,"none","subgrid",G,Y],U=()=>["auto",{span:["full",ir,G,Y]},ir,G,Y],z=()=>[ir,"auto",G,Y],Z=()=>["auto","min","max","fr",G,Y],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],y=()=>["auto",...k()],b=()=>[Yr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],E=()=>[Yr,"screen","full","dvw","lvw","svw","min","max","fit",...k()],w=()=>[Yr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],x=()=>[e,G,Y],S=()=>[...C(),IP,kP,{position:[G,Y]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",d2,s2,{size:[G,Y]}],L=()=>[qp,oa,Ln],W=()=>["","none","full",c,G,Y],F=()=>["",ne,oa,Ln],$=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>[ne,qp,IP,kP],V=()=>["","none",h,G,Y],K=()=>["none",ne,G,Y],N=()=>["none",ne,G,Y],we=()=>[ne,G,Y],te=()=>[Yr,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ar],breakpoint:[Ar],color:[LP],container:[Ar],"drop-shadow":[Ar],ease:["in","out","in-out"],font:[i2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ar],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ar],shadow:[Ar],spacing:["px",ne],text:[Ar],"text-shadow":[Ar],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yr,Y,G,g]}],container:["container"],"container-type":[{"@container":["","normal","size",G,Y]}],"container-named":[a2],columns:[{columns:[ne,Y,G,s]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ir,"auto",G,Y]}],basis:[{basis:[Yr,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,Yr,"auto","initial","none",Y]}],grow:[{grow:["",ne,G,Y]}],shrink:[{shrink:["",ne,G,Y]}],order:[{order:[ir,"first","last","none",G,Y]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:y()}],mx:[{mx:y()}],my:[{my:y()}],ms:[{ms:y()}],me:[{me:y()}],mbs:[{mbs:y()}],mbe:[{mbe:y()}],mt:[{mt:y()}],mr:[{mr:y()}],mb:[{mb:y()}],ml:[{ml:y()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],"inline-size":[{inline:["auto",...E()]}],"min-inline-size":[{"min-inline":["auto",...E()]}],"max-inline-size":[{"max-inline":["none",...E()]}],"block-size":[{block:["auto",...w()]}],"min-block-size":[{"min-block":["auto",...w()]}],"max-block-size":[{"max-block":["none",...w()]}],w:[{w:[s,"screen",...b()]}],"min-w":[{"min-w":[s,"screen","none",...b()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",r,oa,Ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m2,l2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qp,Y]}],"font-family":[{font:[f2,c2,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,Y]}],"line-clamp":[{"line-clamp":[ne,"none",G,_P]}],leading:[{leading:[i,...k()]}],"list-image":[{"list-image":["none",G,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",G,Ln]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[ne,"auto",G,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[ir,G,Y]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ir,G,Y],radial:["",G,Y],conic:[ir,G,Y]},p2,u2]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,G,Y]}],"outline-w":[{outline:["",ne,oa,Ln]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",u,Ic,kc]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Ic,kc]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[ne,Ln]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",d,Ic,kc]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[ne,G,Y]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[G,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,Y]}],filter:[{filter:["","none",G,Y]}],blur:[{blur:V()}],brightness:[{brightness:[ne,G,Y]}],contrast:[{contrast:[ne,G,Y]}],"drop-shadow":[{"drop-shadow":["","none",p,Ic,kc]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",ne,G,Y]}],"hue-rotate":[{"hue-rotate":[ne,G,Y]}],invert:[{invert:["",ne,G,Y]}],saturate:[{saturate:[ne,G,Y]}],sepia:[{sepia:["",ne,G,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",G,Y]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[ne,G,Y]}],"backdrop-contrast":[{"backdrop-contrast":[ne,G,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,G,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,G,Y]}],"backdrop-invert":[{"backdrop-invert":["",ne,G,Y]}],"backdrop-opacity":[{"backdrop-opacity":[ne,G,Y]}],"backdrop-saturate":[{"backdrop-saturate":[ne,G,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,G,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",G,Y]}],ease:[{ease:["linear","initial",v,G,Y]}],delay:[{delay:[ne,G,Y]}],animate:[{animate:["none",P,G,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,G,Y]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[G,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[ir,G,Y]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,Y]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[ne,oa,Ln,_P]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var KP=GL(v2);function ut(...e){return KP(J(e))}import{jsx as ia}from"react/jsx-runtime";function qP({className:e,...t}){return ia("div",{"data-slot":"card",className:ut("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function YP({className:e,...t}){return ia("div",{"data-slot":"card-header",className:ut("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function GP({className:e,...t}){return ia("div",{"data-slot":"card-title",className:ut("leading-none font-semibold",e),...t})}function HP({className:e,...t}){return ia("div",{"data-slot":"card-description",className:ut("text-sm text-muted-foreground",e),...t})}function XP({className:e,...t}){return ia("div",{"data-slot":"card-content",className:ut("px-6",e),...t})}import*as Hr from"react";import{Fragment as w2,jsx as Nt,jsxs as aa}from"react/jsx-runtime";var g2={light:"",dark:".dark"},y2={width:320,height:200},QP=Hr.createContext(null);function x2(){let e=Hr.useContext(QP);if(!e)throw new Error("useChart must be used within a ");return e}function JP({id:e,className:t,children:r,config:n,initialDimension:o=y2,...i}){let a=Hr.useId(),s=`chart-${e??a.replace(/:/g,"")}`;return Nt(QP.Provider,{value:{config:n},children:aa("div",{"data-slot":"chart","data-chart":s,className:ut("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...i,children:[Nt(b2,{id:s,config:n}),Nt(rf,{initialDimension:o,children:r})]})})}var b2=({id:e,config:t})=>{let r=Object.entries(t).filter(([,n])=>n.theme??n.color);return r.length?Nt("style",{dangerouslySetInnerHTML:{__html:Object.entries(g2).map(([n,o])=>` -${o} [data-chart=${e}] { -${r.map(([i,a])=>{let s=a.theme?.[n]??a.color;return s?` --color-${i}: ${s};`:null}).join(` -`)} -} -`).join(` -`)}}):null},eA=np;function tA({active:e,payload:t,className:r,indicator:n="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:f,labelKey:d}){let{config:p}=x2(),h=Hr.useMemo(()=>{if(o||!t?.length)return null;let[g]=t,v=`${d??g?.dataKey??g?.name??"value"}`,P=ZP(p,g,v),A=!d&&typeof a=="string"?p[a]?.label??a:P?.label;return s?Nt("div",{className:ut("font-medium",l),children:s(A,t)}):A?Nt("div",{className:ut("font-medium",l),children:A}):null},[a,s,t,o,l,p,d]);if(!e||!t?.length)return null;let m=t.length===1&&n!=="dot";return aa("div",{className:ut("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[m?null:h,Nt("div",{className:"grid gap-1.5",children:t.filter(g=>g.type!=="none").map((g,v)=>{let P=`${f??g.name??g.dataKey??"value"}`,A=ZP(p,g,P),C=u??g.payload?.fill??g.color;return Nt("div",{className:ut("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:c&&g?.value!==void 0&&g.name?c(g.value,g.name,g,v,g.payload):aa(w2,{children:[A?.icon?Nt(A.icon,{}):!i&&Nt("div",{className:ut("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":m&&n==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),aa("div",{className:ut("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[aa("div",{className:"grid gap-1.5",children:[m?h:null,Nt("span",{className:"text-muted-foreground",children:A?.label??g.name})]}),g.value!=null&&Nt("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof g.value=="number"?g.value.toLocaleString():String(g.value)})]})]})},v)})})]})}function ZP(e,t,r){if(typeof t!="object"||t===null)return;let n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:n&&r in n&&typeof n[r]=="string"&&(o=n[r]),o in e?e[o]:e[r]}import{jsx as Or,jsxs as Xp}from"react/jsx-runtime";var xre="A stacked bar chart with a legend",bre="600px",wre="[&>div]:w-full [&>div]:max-w-md flex items-center justify-center min-h-svh",S2=[{date:"2024-07-15",running:450,swimming:300},{date:"2024-07-16",running:380,swimming:420},{date:"2024-07-17",running:520,swimming:120},{date:"2024-07-18",running:140,swimming:550},{date:"2024-07-19",running:600,swimming:350},{date:"2024-07-20",running:480,swimming:400}],P2={running:{label:"Running",color:"var(--chart-1)"},swimming:{label:"Swimming",color:"var(--chart-2)"}};function Sre(){return Xp(qP,{children:[Xp(YP,{children:[Or(GP,{children:"Tooltip - Line Indicator"}),Or(HP,{children:"Tooltip with line indicator."})]}),Or(XP,{children:Or(JP,{config:P2,children:Xp(Kp,{accessibilityLayer:!0,data:S2,children:[Or(wc,{dataKey:"date",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:e=>new Date(e).toLocaleDateString("en-US",{weekday:"short"})}),Or(Zi,{dataKey:"running",stackId:"a",fill:"var(--color-running)",radius:[0,0,4,4]}),Or(Zi,{dataKey:"swimming",stackId:"a",fill:"var(--color-swimming)",radius:[4,4,0,0]}),Or(eA,{content:Or(tA,{indicator:"line"}),cursor:!1,defaultIndex:1})]})})})]})}export{Sre as ChartTooltipIndicatorLine,wre as containerClassName,xre as description,bre as iframeHeight}; -/*! Bundled license information: - -decimal.js-light/decimal.js: - (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) - -react-is/cjs/react-is.production.js: - (** - * @license React - * react-is.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb57ba2c6f1440be2136b8ae2f21122da32a2963ee0055b397200b8699101787 +size 366372 diff --git a/b/00e8b665b233ebe3d2c2115dc7dd5fd4f2c1245608d3bcadd8ae35329669a298 b/b/00e8b665b233ebe3d2c2115dc7dd5fd4f2c1245608d3bcadd8ae35329669a298 index 1af9b4e4d39aa8196e8dbdc2a2f79ad9a2614d37..40d398774c8b607e3bba3402dc99f080ef8a1231 100644 --- a/b/00e8b665b233ebe3d2c2115dc7dd5fd4f2c1245608d3bcadd8ae35329669a298 +++ b/b/00e8b665b233ebe3d2c2115dc7dd5fd4f2c1245608d3bcadd8ae35329669a298 @@ -1,338 +1,3 @@ -// compile2bit.mjs — the OFFLINE 2-bit compiler (the "compile" half of the 7B infra). Decouples COMPILE from -// LOAD: a Q8 GGUF is re-quantized ONCE, offline, into a content-addressed native-2-bit κ-object the browser -// downloads and runs directly (no hour-class re-quant at load; hosting = serve the block dir, κ-store/κ-disk -// verify per-sector). Reuses the engine's EXACT ingestion (qvac-ingest makeDiskFetcher). -// -// DEFAULT mode = "ldlq": codebook-aware LDLQ to the 2-bit scalar grid (NO incoherence ⇒ no power-of-2 -// padding, no runtime Hadamard) + fp16 scales ⇒ ~2.5 bits/weight. LDLQ uses a PROXY input Hessian H=EᵀE from -// the token embeddings (real per-layer calibration needs running the model — a GPU-box job); applied to every -// K=d matrix, scalar fallback for the FFN down-proj (K=ff). Resumable: re-running skips tensors already done. -// Usage: node compile2bit.mjs [ldlq|incoherent] -import { readHeader, parseGgufHeader, buildManifest, makeDiskFetcher, ggufNameFor } from "./qvac-ingest.mjs"; -import { requant2bit, ldlqRound2bit, f32ToF16 } from "./qvac-2bit.mjs"; -import { ldlDecompose } from "./e8-quant.mjs"; -import { buildE8LUT, packE8, lutNormIndex } from "./e8-lut.mjs"; -import { createHash } from "node:crypto"; -import { gzipSync } from "node:zlib"; -import { mkdirSync, writeFileSync, existsSync, readFileSync } from "node:fs"; -import { stampFrame } from "./holo-model-frame.mjs"; // A1: born-stamped shared-frame descriptor + conformance fingerprint - -// friendly model registry → Q8_0 GGUF source (or pass a full URL). Add your own here. -const REGISTRY = { - "smollm2-135m": "https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q8_0.gguf", - "qwen2.5-0.5b": "https://huggingface.co/bartowski/Qwen2.5-0.5B-Instruct-GGUF/resolve/main/Qwen2.5-0.5B-Instruct-Q8_0.gguf", - "qwen2.5-1.5b": "https://huggingface.co/bartowski/Qwen2.5-1.5B-Instruct-GGUF/resolve/main/Qwen2.5-1.5B-Instruct-Q8_0.gguf", - "qwen2.5-3b": "https://huggingface.co/bartowski/Qwen2.5-3B-Instruct-GGUF/resolve/main/Qwen2.5-3B-Instruct-Q8_0.gguf", - "qwen2.5-7b": "https://huggingface.co/bartowski/Qwen2.5-7B-Instruct-GGUF/resolve/main/Qwen2.5-7B-Instruct-Q8_0.gguf", - "llama-3.2-1b": "https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q8_0.gguf", - "llama-3.2-3b": "https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q8_0.gguf", -}; -const arg = process.argv[2]; -if (!arg || arg === "--help" || arg === "-h") { - console.log(`usage: npm run compile2bit [mode] [out-dir] - mode : q4 (default, coherent) | ldlq | incoherent (2-bit, research) - model : ${Object.keys(REGISTRY).join(", ")}\n …or a full Q8_0 GGUF URL - out : default ./models/- (a content-addressed κ-object dir: manifest.json + b/<κ>.gz) -example: npm run compile2bit qwen2.5-7b → ./models/qwen2.5-7b-q4`); - process.exit(arg ? 0 : 1); -} -const isUrl = /^https?:\/\//.test(arg); -const isLocal = !isUrl && existsSync(arg); // a local GGUF path (browser-downloaded — sidesteps HF throttle) -const URL = isUrl || isLocal ? arg : REGISTRY[arg]; -if (!URL) { console.error(`unknown model "${arg}". known: ${Object.keys(REGISTRY).join(", ")} (or pass a GGUF URL / local path)`); process.exit(1); } -const name = isUrl ? "model" : arg; -const MODE = process.argv[3] || "q4"; // q4 = coherent default -const OUT = process.argv[4] || `./models/${name}-${MODE}`; -// local-file OR http range reader: a non-http arg is treated as a path on disk (sidesteps the -// HF throttle — download the GGUF in a browser, point us at the file). -let _localFd = null; -const readRange = async (url, start, len) => { - if (!/^https?:\/\//.test(url)) { - const fs = await import("node:fs"); - if (_localFd === null) _localFd = fs.openSync(url, "r"); - const buf = Buffer.allocUnsafe(len); - let got = 0; - while (got < len) { const n = fs.readSync(_localFd, buf, got, len - got, start + got); if (n <= 0) break; got += n; } - return new Uint8Array(buf.buffer, buf.byteOffset, got); - } - for (let a = 0; a < 8; a++) { try { const r = await fetch(url, { headers: { Range: `bytes=${start}-${start + len - 1}` }, redirect: "follow" }); if (r.ok || r.status === 206) return new Uint8Array(await r.arrayBuffer()); } catch {} await new Promise(z => setTimeout(z, 500 * (a + 1))); } throw new Error("range fetch failed @" + start); -}; -const sha = (b) => "sha256:" + createHash("sha256").update(b).digest("hex"); -const MB = (n) => (n / 1e6).toFixed(1); - -console.log(`compiling [${MODE}] ${URL}`); -const { dataOffset, tensors, headerBytes } = await readHeader(URL, readRange); -const meta = parseGgufHeader(headerBytes).meta; -const manifest = buildManifest(meta, tensors, 8); -// MoE (G5): buildManifest enumerates only the router per layer (experts are too many to stream-name); -// the κ-object compiler DOES enumerate every expert slice so each is packed + content-addressed. The -// expert FFN runs in the engine's Q4 path (ExpQ/ExpS expect engine-Q4 [nibbles][f32 scales]), so MoE -// compiles in q4 mode only. makeDiskFetcher resolves `l{i}.e{e}.{role}` → the e-th slab of ffn_*_exps. -if (manifest.moe) { - if (MODE !== "q4") throw new Error(`MoE compiles in q4 mode only (got "${MODE}") — the resident expert FFN runs the engine's Q4 GEMV`); - const { n_experts } = manifest.moe, { d: dM, ff: ffM, n_layers: nL } = manifest; - const exp = []; - for (let i = 0; i < nL; i++) for (let e = 0; e < n_experts; e++) { - exp.push({ name: `l${i}.e${e}.gate`, N: ffM, K: dM, blk: true }); - exp.push({ name: `l${i}.e${e}.up`, N: ffM, K: dM, blk: true }); - exp.push({ name: `l${i}.e${e}.down`, N: dM, K: ffM, blk: true }); - } - manifest.tensors = manifest.tensors.concat(exp); - console.log(` MoE: ${n_experts} experts × ${nL} layers × 3 = ${exp.length} expert matrices enumerated (+ routers)`); -} -const BITS = (MODE === "q4" || MODE === "q3" || MODE === "e8") ? 4 : 8; // q4/q3/e8 source from Q4 (fast relayout); old 2-bit modes from Q8 -// 3-bit bit-plane packer: per 32-block, 3 u32 planes (low/mid/high bit) + one f32 scale; level = 2q−7 ∈ {−7…7}. -function packQ3(W, N, K) { - const nb = K / 32, planes = new Uint32Array(N * nb * 3), sc = new Float32Array(N * nb); - for (let n = 0; n < N; n++) for (let b = 0; b < nb; b++) { - const o = n * K + b * 32; let mx = 0; for (let i = 0; i < 32; i++) { const a = Math.abs(W[o + i]); if (a > mx) mx = a; } - // MSE-optimal scale (k-quant trick): search the step that minimises block reconstruction error on the zero-centered grid {−3…4}. - let s = (mx / 3) || 1e-12, bestMse = Infinity; - for (let c = 0; c < 9; c++) { const sc2 = (mx * (0.22 + c * 0.035)) || 1e-12; let mse = 0; for (let i = 0; i < 32; i++) { let q = Math.round(W[o + i] / sc2) + 3; if (q < 0) q = 0; else if (q > 7) q = 7; const d = W[o + i] - (q - 3) * sc2; mse += d * d; } if (mse < bestMse) { bestMse = mse; s = sc2; } } - sc[n * nb + b] = s; - // FIELD layout ("q3f"): 10×3-bit direct fields per u32 (w0-9→p0, w10-19→p1, w20-29→p2); w30/w31 - // ride the three spare 2-bit stubs (sp6 = q30|q31<<3, split 2+2+2 across the word tops). Same - // 12 B/block as the old bit-planes, but the GPU unpack is ONE shift+and per weight (~½ the ALU). - let p0 = 0, p1 = 0, p2 = 0, sp6 = 0; - for (let i = 0; i < 32; i++) { - let q = Math.round(W[o + i] / s) + 3; if (q < 0) q = 0; else if (q > 7) q = 7; - if (i < 10) p0 |= q << (i * 3); - else if (i < 20) p1 |= q << ((i - 10) * 3); - else if (i < 30) p2 |= q << ((i - 20) * 3); - else sp6 |= q << ((i - 30) * 3); - } - p0 |= (sp6 & 3) << 30; p1 |= ((sp6 >> 2) & 3) << 30; p2 |= ((sp6 >> 4) & 3) << 30; - const bp = (n * nb + b) * 3; planes[bp] = p0 >>> 0; planes[bp + 1] = p1 >>> 0; planes[bp + 2] = p2 >>> 0; - } - return { q: new Uint8Array(planes.buffer), s: sc }; -} -// ── bitnet raw fetch: i2_s (ternary), f16, f32 read straight off the GGUF (makeDiskFetcher -// doesn't know i2_s). i2_s layout (ground-truthed vs the bf16 master, 0 non-boundary misses): -// 128-weight blocks → 32 bytes; weight j of a block lives in byte (j mod 32) at bit-pair -// (j div 32), MSB-first (shift = 6−2·plane); codes {0,1,2} = {−1,0,+1}; ONE f32 tensor scale -// in a 32-byte tail. We re-pack to the engine's canonical t2 order: 16 codes per u32, LSB-first. -const GGML_I2S_BYTES = (el) => el / 4 + 32; -const rawFetch = async (name) => { - const gname = ggufNameFor(name, !manifest.tied); const t = tensors.find((x) => x.name === gname); - if (!t) throw new Error("no gguf tensor for " + name); - const el = t.dims.reduce((a, b) => a * b, 1); - const ty = t.ggmlType; - const len = ty === 0 ? el * 4 : ty === 1 ? el * 2 : ty === 35 ? el / 256 * 66 : ty === 12 ? el / 256 * 144 : ty === 14 ? el / 256 * 210 : GGML_I2S_BYTES(el); - return { t, el, ty, bytes: await readRange(URL, dataOffset + Number(t.offset), len) }; -}; -const f16f = (u) => { const s = (u >> 15) & 1, e = (u >> 10) & 31, m = u & 1023; const v = e === 0 ? m / 1024 * 2 ** -14 : e === 31 ? (m ? NaN : Infinity) : (1 + m / 1024) * 2 ** (e - 15); return s ? -v : v; }; -const decodeT = (bytes, el) => { // i2_s → codes {0,1,2} in natural order + scale - const dv = new DataView(bytes.buffer, bytes.byteOffset + el / 4, 32); - const scale = dv.getFloat32(0, true); - const codes = new Uint8Array(el); - let bad = 0; - for (let i = 0; i < el; i++) { const blk = (i / 128) | 0, j = i % 128; const c = (bytes[blk * 32 + (j % 32)] >> (6 - 2 * ((j / 32) | 0))) & 3; if (c === 3) bad++; codes[i] = c; } - if (bad > 0) throw new Error(`i2_s alphabet violation: ${bad} fields decode to 3 — layout differs for this model`); - if (!(scale > 0 && scale < 1e3)) throw new Error(`implausible i2_s scale ${scale}`); - return { codes, scale }; -}; -const packT2 = (codes, el) => { // canonical t2: 16 codes/u32, LSB-first - const w = new Uint32Array(el / 16); - for (let i = 0; i < el; i++) w[i >> 4] |= codes[i] << ((i & 15) * 2); - return new Uint8Array(w.buffer); -}; -// TQ2_0 (mainline llama.cpp ternary, type 35): 256-w blocks of 66 B = qs[64] (four 32-byte planes, -// LSB-first: trit j of a 128-w half in byte (j mod 32) at bit-pair (j div 32)) + ONE f16 scale/block. -// Returns codes {0,1,2} + the per-block scales (collapsed to per-tensor upstream when uniform). -const decodeTQ2 = (bytes, el) => { - const nb = el / 256, codes = new Uint8Array(el), scales = new Float32Array(nb); - let bad = 0; - for (let b = 0; b < nb; b++) { - const o = b * 66; - for (let i = 0; i < 256; i++) { - const half = (i / 128) | 0, j = i % 128; - const c = (bytes[o + half * 32 + (j % 32)] >> (2 * ((j / 32) | 0))) & 3; - if (c === 3) bad++; - codes[b * 256 + i] = c; - } - scales[b] = f16f(bytes[o + 64] | (bytes[o + 65] << 8)); - } - if (bad > 0) throw new Error(`TQ2_0 alphabet violation: ${bad} fields = 3`); - return { codes, scales }; -}; -// K-quant dequant (verbatim ggml layouts) — for the 8B's Q4_K embed / Q6_K output -const decodeQ4K = (bytes, el) => { - const nb = el / 256, W = new Float32Array(el); - for (let b = 0; b < nb; b++) { - const o = b * 144, d = f16f(bytes[o] | (bytes[o + 1] << 8)), dmin = f16f(bytes[o + 2] | (bytes[o + 3] << 8)); - const sc = bytes.subarray(o + 4, o + 16), qs = bytes.subarray(o + 16, o + 144); - const sm = (j) => j < 4 ? [sc[j] & 63, sc[j + 4] & 63] : [(sc[j + 4] & 0xF) | ((sc[j - 4] >> 6) << 4), (sc[j + 4] >> 4) | ((sc[j] >> 6) << 4)]; - let y = b * 256, is = 0, q = 0; - for (let j = 0; j < 256; j += 64) { - const [s1, m1] = sm(is), [s2, m2] = sm(is + 1); - for (let l = 0; l < 32; l++) W[y + l] = d * s1 * (qs[q + l] & 0xF) - dmin * m1; - for (let l = 0; l < 32; l++) W[y + 32 + l] = d * s2 * (qs[q + l] >> 4) - dmin * m2; - y += 64; q += 32; is += 2; - } - } - return W; -}; -const decodeQ6K = (bytes, el) => { - const nb = el / 256, W = new Float32Array(el); - for (let b = 0; b < nb; b++) { - const o = b * 210, ql = bytes.subarray(o, o + 128), qh = bytes.subarray(o + 128, o + 192); - const sc = new Int8Array(bytes.buffer, bytes.byteOffset + o + 192, 16), d = f16f(bytes[o + 208] | (bytes[o + 209] << 8)); - let y = b * 256, pql = 0, pqh = 0, psc = 0; - for (let n = 0; n < 256; n += 128) { - for (let l = 0; l < 32; l++) { - const is = (l / 16) | 0; - W[y + l] = d * sc[psc + is] * (((ql[pql + l] & 0xF) | (((qh[pqh + l] >> 0) & 3) << 4)) - 32); - W[y + l + 32] = d * sc[psc + is + 2] * (((ql[pql + l + 32] & 0xF) | (((qh[pqh + l] >> 2) & 3) << 4)) - 32); - W[y + l + 64] = d * sc[psc + is + 4] * (((ql[pql + l] >> 4) | (((qh[pqh + l] >> 4) & 3) << 4)) - 32); - W[y + l + 96] = d * sc[psc + is + 6] * (((ql[pql + l + 32] >> 4) | (((qh[pqh + l] >> 6) & 3) << 4)) - 32); - } - y += 128; pql += 64; pqh += 32; psc += 8; - } - } - return W; -}; -const fetchTensor = MODE === "bitnet" ? null : makeDiskFetcher({ url: URL, readRange, dataOffset, tensors, manifest, bits: BITS }); -const { d, ff, vocab } = manifest, nbD = d / 32; - -mkdirSync(OUT + "/b", { recursive: true }); -// self-contained tokenizer: bundle the GGUF header (tokenizer + arch kv) into the κ-object so the -// browser loader needs NO external source URL (works offline / when HF is unreachable). -const LOCAL_SRC = !/^https?:\/\//.test(URL); -if (LOCAL_SRC) writeFileSync(OUT + "/tokenizer.gguf", headerBytes); -const progPath = OUT + "/progress.json"; -const index = existsSync(progPath) ? JSON.parse(readFileSync(progPath, "utf8")) : {}; -const saveProg = () => writeFileSync(progPath, JSON.stringify(index)); -const writeBlock = (bytes) => { const gz = gzipSync(bytes, { level: 6 }); const k = sha(gz); const f = `${OUT}/b/${k.replace(":", "_")}.gz`; if (!existsSync(f)) writeFileSync(f, gz); return { kappa: k, stored: gz.length }; }; -const packScales = (sc) => { const u = new Uint16Array(sc.length); for (let i = 0; i < sc.length; i++) u[i] = f32ToF16(sc[i]); return new Uint8Array(u.buffer); }; - -// LDLQ proxy Hessian: H = Σ_t e_t e_tᵀ over a token subset of the embedding table → L (for every K=d matrix). -// L is cached to disk so a resume skips the 543 MB embed re-fetch + the O(d³) decompose (and the memory peak). -let Ld = null; const Lpath = OUT + "/_L.bin"; -if (MODE === "ldlq") { - if (existsSync(Lpath)) { const buf = readFileSync(Lpath); Ld = new Float64Array(buf.buffer, buf.byteOffset, buf.length / 8); console.log(" loaded cached proxy L (" + (buf.length / 1e6).toFixed(0) + "MB)"); } - else { - process.stdout.write(" building proxy Hessian (embed EᵀE)… "); - let eb = await fetchTensor("embed"); const eq = new Int8Array(eb.buffer, eb.byteOffset, vocab * d), es = new Float32Array(eb.buffer, eb.byteOffset + vocab * d, vocab * nbD); - const T = 4000, H = new Float64Array(d * d), e = new Float64Array(d); let s = 12345; const rnd = () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296; - for (let n = 0; n < T; n++) { const tk = (rnd() * vocab) | 0; for (let a = 0; a < d; a++) e[a] = eq[tk * d + a] * es[tk * nbD + (a >> 5)]; for (let a = 0; a < d; a++) { const ea = e[a], row = a * d; for (let b = a; b < d; b++) H[row + b] += ea * e[b]; } } - eb = null; const es2 = null; // release the 543 MB embed before the decompose - for (let a = 0; a < d; a++) for (let b = a + 1; b < d; b++) H[b * d + a] = H[a * d + b]; - let tr = 0; for (let a = 0; a < d; a++) tr += H[a * d + a]; const dmp = 0.01 * tr / d; for (let a = 0; a < d; a++) H[a * d + a] += dmp; - Ld = ldlDecompose(H, d).L; writeFileSync(Lpath, Buffer.from(Ld.buffer)); console.log("done (cached L)"); - } -} - -let tIn = 0, tOut = 0, t0 = Date.now(), nLdlq = 0, E8 = null, embedQ3 = null; -const tlist = manifest.tensors; -for (let ti = 0; ti < tlist.length; ti++) { - const t = tlist[ti]; if (index[t.name]) { tOut += index[t.name].stored || 0; continue; } // resume - if (MODE === "bitnet") { - const { el, ty, bytes } = await rawFetch(t.name); - let rec; - if (t.name === "embed" || t.name === "lm_head") { // f16/Q4_K/Q6_K → q3f pack (tied models reuse ONE block — content-address dedups) - let blk3 = manifest.tied ? embedQ3 : null; - if (!blk3) { - let W; - if (ty === 1) { W = new Float32Array(el); const u16 = new Uint16Array(bytes.buffer, bytes.byteOffset, el); for (let i = 0; i < el; i++) W[i] = f16f(u16[i]); } - else if (ty === 12) W = decodeQ4K(bytes, el); - else if (ty === 14) W = decodeQ6K(bytes, el); - else throw new Error(`unsupported ${t.name} ggml type ${ty}`); - const r = packQ3(W, t.N, t.K); const blob = new Uint8Array(r.q.length + r.s.byteLength); blob.set(r.q, 0); blob.set(new Uint8Array(r.s.buffer), r.q.length); - blk3 = writeBlock(blob); - if (manifest.tied) embedQ3 = blk3; - } - rec = { fmt: "q3", N: t.N, K: t.K, ...blk3 }; - } else if (t.blk && ty === 35) { // TQ2_0 ternary: collapse per-block scales when uniform (trained per-tensor) → t2; else q3 fallback - const { codes, scales } = decodeTQ2(bytes, el); - // all-zero blocks quantize to d=0 with codes=1 — exact under ANY scale, so they don't break - // uniformity (TriLM has many; treating them as deviation forced 209 tensors into q3f). - let s0 = 0; for (const s of scales) if (s > s0) s0 = s; - let dev = 0, zeroOk = true; - for (let b = 0; b < scales.length; b++) { - const s = scales[b]; - if (s === 0) { for (let i = b * 256; i < (b + 1) * 256; i++) if (codes[i] !== 1) { zeroOk = false; break; } } - else dev = Math.max(dev, Math.abs(s - s0) / s0); - } - if (dev < 1e-3 && zeroOk) { - rec = { fmt: "t2", N: t.N, K: t.K, s: s0, ...writeBlock(packT2(codes, el)) }; - } else { // non-uniform (per-row/channel scale structure, e.g. TriLM): - // t2r = EXACT TQ2_0 re-layout — trit codes (the lattice residents) + per-256-block f32 - // scales. 2.125 bpw, runs the ternary kernel, and the atlas-bridge witness reads the codes. - const blob = new Uint8Array(el / 4 + scales.byteLength); - blob.set(packT2(codes, el), 0); blob.set(new Uint8Array(scales.buffer), el / 4); - rec = { fmt: "t2r", N: t.N, K: t.K, ...writeBlock(blob) }; - if (!rawFetch.warned) { console.log(`\n NOTE: ${t.name} has non-uniform TQ2_0 scales (dev ${dev.toFixed(4)}) → t2r (per-block scales)`); rawFetch.warned = true; } - } - } else if (t.blk) { // i2_s ternary matrix → canonical t2 + per-tensor scale in the manifest - const { codes, scale } = decodeT(bytes, el); - rec = { fmt: "t2", N: t.N, K: t.K, s: scale, ...writeBlock(packT2(codes, el)) }; - } else { // norms (f32) verbatim - if (ty !== 0) throw new Error(`expected f32 norm ${t.name}, got ggml type ${ty}`); - rec = { fmt: "f32", N: t.N, K: t.K, ...writeBlock(bytes) }; - } - index[t.name] = rec; tIn += bytes.length; tOut += rec.stored; - if (ti % 10 === 0) { saveProg(); process.stdout.write(`\r ${Object.keys(index).length}/${tlist.length} tensors · ${MB(tOut)}MB · ${((Date.now() - t0) / 1000).toFixed(0)}s `); } - continue; - } - const bytes = await fetchTensor(t.name); if (!bytes || bytes.length === 0) continue; - let rec; - if (MODE === "q4") { // native Q4: fetchTensor already returns engine [nibbles][f32 scales] — store verbatim - rec = { fmt: t.blk ? "q4" : "f32", N: t.N, K: t.K, ...writeBlock(bytes) }; - } else if (MODE === "q3" || MODE === "e8") { // q3: all → 3-bit fields. e8: layers → E₈ codewords (2.5 b/w); embed+lm_head stay q3f - if (!t.blk) { rec = { fmt: "f32", N: t.N, K: t.K, ...writeBlock(bytes) }; } - else { const N = t.N, K = t.K, qlen = N * K / 2, nb = K / 32; const q = bytes.subarray(0, qlen), s = new Float32Array(bytes.buffer, bytes.byteOffset + qlen, N * nb); - const W = new Float32Array(N * K); for (let i = 0; i < N * K; i++) { const nib = (q[i >> 1] >> ((i & 1) * 4)) & 0xf; W[i] = (nib - 8) * s[(((i / K) | 0) * nb) + (((i % K) >> 5))]; } - const e8only = process.env.E8_ONLY; // diagnostic bisect: "attn" | "ffn" restricts which tensor class goes e8q - const e8Eligible = !e8only || (e8only === "attn" ? /\.(wq|wk|wv|wo)$/.test(t.name) : /\.(w_gate|w_up|w_down)$/.test(t.name)); - if (MODE === "e8" && t.name !== "embed" && t.name !== "lm_head" && e8Eligible) { - if (!E8) { // build the codebook ONCE from this model's own weights (deterministic; resumable via _lut.bin) - const lutPath = OUT + "/_lut.bin"; - if (existsSync(lutPath)) { const b = readFileSync(lutPath); E8 = { lut: new Float32Array(b.buffer, b.byteOffset, 2048) }; } - else { const sample = W.subarray(0, Math.min(1 << 21, N * K)); E8 = buildE8LUT(sample); writeFileSync(lutPath, Buffer.from(E8.lut.buffer)); } - E8.index = E8.index || new Map(Array.from({ length: 256 }, (_, c) => [Array.from({ length: 8 }, (_, i) => Math.abs(Math.round(E8.lut[c * 8 + i] * 2))).join(",") + ",", c])); - E8.rec = writeBlock(new Uint8Array(E8.lut.buffer.slice(0))); // the LUT as a content-addressed block (the substrate anchor) - console.log(`\n E₈ LUT sealed: ${E8.rec.kappa.slice(0, 40)}…`); - } - const r = packE8(W, N, K, E8.lut, E8.index, f32ToF16); - rec = { fmt: "e8q", N, K, fp16: true, ...writeBlock(r.blob) }; - } else { - const r = packQ3(W, N, K); const blob = new Uint8Array(r.q.length + r.s.byteLength); blob.set(r.q, 0); blob.set(new Uint8Array(r.s.buffer), r.q.length); - rec = { fmt: "q3", N, K, ...writeBlock(blob) }; - } - } - } else if (t.blk && t.name !== "embed") { - const N = t.N, K = t.K, qlen = N * K, nb = K / 32; - const q = bytes.subarray(0, qlen), s = new Float32Array(bytes.buffer, bytes.byteOffset + qlen, N * nb); - const W = new Float32Array(qlen); for (let i = 0; i < qlen; i++) W[i] = (q[i] << 24 >> 24) * s[(((i / K) | 0) * nb) + (((i % K) >> 5))]; - if (MODE === "incoherent") { - const r = requant2bit(bytes.subarray(0, qlen), s, N, K); const blob = new Uint8Array(r.q.length + r.s.byteLength); blob.set(r.q, 0); blob.set(new Uint8Array(r.s.buffer), r.q.length); - rec = { fmt: "2bit", N, K, Kp: r.Kp, incoherent: true, ...writeBlock(blob) }; - } else { - const sc = new Float32Array(N * nb); for (let i = 0; i < N; i++) for (let b = 0; b < nb; b++) { let mx = 0; for (let j = 0; j < 32; j++) { const a = Math.abs(W[i * K + b * 32 + j]); if (a > mx) mx = a; } sc[i * nb + b] = (mx / 3) || 1e-12; } - const useL = (K === d) ? Ld : null; if (useL) nLdlq++; - const qw = ldlqRound2bit(W, N, K, useL, sc, 256); const f16 = packScales(sc); // banded LDLQ (256) — feasible at 7B scale - const blob = new Uint8Array(qw.byteLength + f16.length); blob.set(new Uint8Array(qw.buffer), 0); blob.set(f16, qw.byteLength); - rec = { fmt: "2bit", N, K, ldlq: !!useL, incoherent: false, fp16: true, ...writeBlock(blob) }; - } - nLdlq; - } else { - rec = { fmt: t.name === "embed" ? "q8" : "f32", N: t.N, K: t.K, ...writeBlock(bytes) }; - } - index[t.name] = rec; tIn += bytes.length; tOut += rec.stored; - if (ti % 10 === 0) { saveProg(); process.stdout.write(`\r ${Object.keys(index).length}/${tlist.length} tensors · ${MB(tOut)}MB · ${((Date.now() - t0) / 1000).toFixed(0)}s `); } -} -saveProg(); -if (MODE === "e8" && !E8 && existsSync(OUT + "/_lut.bin")) { // resume edge: all tensors journaled, LUT κ still needed - const b = readFileSync(OUT + "/_lut.bin"); - E8 = { lut: new Float32Array(b.buffer, b.byteOffset, 2048) }; E8.rec = writeBlock(new Uint8Array(E8.lut.buffer.slice(0))); -} -const root = sha(Buffer.from(Object.keys(index).sort().map(n => n + ":" + index[n].kappa).join("\n"))); -const { n_heads, n_kv_heads, n_layers, hd, rope_base, attn_bias, qk_norm, qk_norm_dim, tied, sub_norm, ffn_act } = manifest; -const NATIVE3 = MODE === "q3" || MODE === "e8" || MODE === "bitnet"; -const outBits = NATIVE3 ? 3 : MODE === "q4" ? 4 : 8; -const out = { format: "holo-2bit/1", mode: MODE, model: meta["general.name"] || "model", source: LOCAL_SRC ? "tokenizer.gguf" : URL, bits: outBits, ...(NATIVE3 ? { layout: "q3f" } : {}), ...(E8 ? { e8lut: E8.rec.kappa } : {}), ...(sub_norm ? { sub_norm: true } : {}), ...(ffn_act ? { ffn_act } : {}), ...(manifest.moe ? { moe: manifest.moe } : {}), twoBit: !NATIVE3 && MODE !== "q4", incoherent: MODE === "incoherent", root, d, n_heads, n_kv_heads, ff, vocab, n_layers, hd, rope_base, attn_bias, qk_norm, qk_norm_dim, tied, tensors: index }; -await stampFrame(out); // A1: stamp the frame (id + fingerprint) so the model is born conformant; root κ is over tensor blocks, so this does not change it -writeFileSync(`${OUT}/manifest.json`, JSON.stringify(out, null, 1)); -console.log(`\n\ncompiled → ${OUT} [${MODE}]`); -console.log(` ${Object.keys(index).length} tensors · κ-object ${MB(tOut)}MB · ${nLdlq} matrices LDLQ'd (proxy H), rest scalar`); -console.log(` root κ ${root.slice(0, 44)}… · ${((Date.now() - t0) / 1000).toFixed(1)}s`); +version https://git-lfs.github.com/spec/v1 +oid sha256:4e8da881f80047c4c002a5e2effb4d8496b8fa82ae0725744eb552fba6c15b50 +size 25383 diff --git a/b/00f304cc047e5fa68147f46a224914902c6c78072ee298cfc637adcc67c650f9 b/b/00f304cc047e5fa68147f46a224914902c6c78072ee298cfc637adcc67c650f9 index 41dc721dda58f7d42ae0a879f5467f95d635da84..87886e561b78c068d25be36c2c03d2a7ee3600ee 100644 --- a/b/00f304cc047e5fa68147f46a224914902c6c78072ee298cfc637adcc67c650f9 +++ b/b/00f304cc047e5fa68147f46a224914902c6c78072ee298cfc637adcc67c650f9 @@ -1,64 +1,3 @@ -import * as React from "react" -import { ChevronDownIcon } from "lucide-react" -import { Accordion as AccordionPrimitive } from "radix-ui" - -import { cn } from "@/lib/utils" - -function Accordion({ - ...props -}: React.ComponentProps) { - return -} - -function AccordionItem({ - className, - ...props -}: React.ComponentProps) { - return ( - - ) -} - -function AccordionTrigger({ - className, - children, - ...props -}: React.ComponentProps) { - return ( - - svg]:rotate-180", - className - )} - {...props} - > - {children} - - - - ) -} - -function AccordionContent({ - className, - children, - ...props -}: React.ComponentProps) { - return ( - -
{children}
-
- ) -} - -export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } +version https://git-lfs.github.com/spec/v1 +oid sha256:9c01f8d794065ebc8bc9ba81feb525c022b1c168fa3120bd2c81bbf6a9a1be95 +size 2034 diff --git a/b/0118fd81c3350ccbc74d636e535d1ed04fc66f2cc256c0011d7ba9b72bdbaca8 b/b/0118fd81c3350ccbc74d636e535d1ed04fc66f2cc256c0011d7ba9b72bdbaca8 index 9a427268dba47c4c7c90b72f81122ab814dffc20..c5e96632ea5d996d3a0e10daad551ed8cb79bf1e 100644 --- a/b/0118fd81c3350ccbc74d636e535d1ed04fc66f2cc256c0011d7ba9b72bdbaca8 +++ b/b/0118fd81c3350ccbc74d636e535d1ed04fc66f2cc256c0011d7ba9b72bdbaca8 @@ -1,176 +1,3 @@ - - -forge — browser κ-native GPU inference -
loading…
- +version https://git-lfs.github.com/spec/v1 +oid sha256:8c6f809744f0a2914935421bf922fa49a516b010520bbefbb49a6c1fc3e27407 +size 11873 diff --git a/b/0125b4aefcdf8a60f5f792080b5c7c3a2dc4e7d94b2944cc1f33b037e6f88422 b/b/0125b4aefcdf8a60f5f792080b5c7c3a2dc4e7d94b2944cc1f33b037e6f88422 index 0050ea0b4f9831599e91a419baed6fa440e24368..0b1685e8aa807e8a7399fd048d29f28fa78af92d 100644 --- a/b/0125b4aefcdf8a60f5f792080b5c7c3a2dc4e7d94b2944cc1f33b037e6f88422 +++ b/b/0125b4aefcdf8a60f5f792080b5c7c3a2dc4e7d94b2944cc1f33b037e6f88422 @@ -1,168 +1,3 @@ - - -KV-commons · prefix-pin TTFT bench (BitNet-2B, from HF) - - -

KV-commons · prefix-pin TTFT — BitNet-2B streamed from HuggingFace (serverless)

-
- The thesis: a shared prefix (system prompt / RAG context / few-shot block) should be prefilled - once, then reused — so TTFT depends only on the NEW query, not on the prefix length. - COLD = today's behavior when a new conversation reuses the same system prompt: reset() then - decode(prefix + query) re-prefills the whole prefix. WARM = the prefix is pinned - (sync(prefix) once, then truncateTo(|prefix|) per query); only the query is prefilled. - Gate = byte-identical first token COLD vs WARM (the reuse is sound, not approximate). Read window.__kv. -
- - -
- - - - -
shared prefix (tokens)query (tokens)identicalTTFT cold (ms)TTFT warm (ms)speedupprefill saved (ms)
- - +version https://git-lfs.github.com/spec/v1 +oid sha256:e64ce2827b15fecac91abfe39f882c69a38f99e21e4517f55a85e469e149ef2e +size 10303 diff --git a/b/012a523ffb16f2b547ba592431eadceb30694ad2fbac7808e9bad19816064244 b/b/012a523ffb16f2b547ba592431eadceb30694ad2fbac7808e9bad19816064244 index 35a31c321b85c37162169e7bfe7adbcdb3f95661..081df09e2e8e0b745ef3782242eaf01dfd1b0cb3 100644 --- a/b/012a523ffb16f2b547ba592431eadceb30694ad2fbac7808e9bad19816064244 +++ b/b/012a523ffb16f2b547ba592431eadceb30694ad2fbac7808e9bad19816064244 @@ -1,67 +1,3 @@ -var ut=Object.defineProperty;var st=(e,t)=>{for(var a in t)ut(e,a,{get:t[a],enumerable:!0})};import{forwardRef as ft,createElement as it}from"react";var la=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),we=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as dt,createElement as sa}from"react";var ua={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var da=dt(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:u,...s},n)=>sa("svg",{ref:n,...ua,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:we("lucide",r),...s},[...u.map(([d,p])=>sa(d,p)),...Array.isArray(l)?l:[l]]));var re=(e,t)=>{let a=ft(({className:o,...r},l)=>it(da,{ref:l,iconNode:t,className:we(`lucide-${la(e)}`,o),...r}));return a.displayName=`${e}`,a};var fe=re("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);var ie=re("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);var ne=re("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);import*as Oe from"react";import*as ca from"react";import*as St from"react-dom";import*as M from"react";import*as ia from"react";function fa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nt(...e){return t=>{let a=!1,o=e.map(r=>{let l=fa(r,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let r=0;r{let{children:r,...l}=a,u=null,s=!1,n=[];na(r)&&typeof ke=="function"&&(r=ke(r._payload)),M.Children.forEach(r,g=>{if(It(g)){s=!0;let h=g,k="child"in h.props?h.props.child:h.props.children;na(k)&&typeof ke=="function"&&(k=ke(k._payload)),u=pt(h,k),n.push(u?.props?.children)}else n.push(g)}),u?u=M.cloneElement(u,void 0,n):!s&&M.Children.count(r)===1&&M.isValidElement(r)&&(u=r);let d=u?Lt(u):void 0,p=$(o,d);if(!u){if(r||r===0)throw new Error(s?ht(e):Ct(e));return r}let m=mt(l,u.props??{});return u.type!==M.Fragment&&(m.ref=o?p:d),M.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}var ct=Symbol.for("radix.slottable");var pt=(e,t)=>{if("child"in e.props){let a=e.props.child;return M.isValidElement(a)?M.cloneElement(a,void 0,e.props.children(a.props.children)):null}return M.isValidElement(t)?t:null};function mt(e,t){let a={...t};for(let o in t){let r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?a[o]=(...s)=>{let n=l(...s);return r(...s),n}:r&&(a[o]=r):o==="style"?a[o]={...r,...l}:o==="className"&&(a[o]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}function Lt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function It(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ct}var xt=Symbol.for("react.lazy");function na(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xt&&"_payload"in e&>(e._payload)}function gt(e){return typeof e=="object"&&e!==null&&"then"in e}var Ct=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ht=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ke=M[" use ".trim().toString()];import{jsx as wt}from"react/jsx-runtime";var kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=kt.reduce((e,t)=>{let a=ce(`Primitive.${t}`),o=ca.forwardRef((r,l)=>{let{asChild:u,...s}=r,n=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),wt(n,{...s,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});import*as V from"react";import{jsx as bt}from"react/jsx-runtime";function le(e,t=[]){let a=[];function o(l,u){let s=V.createContext(u);s.displayName=l+"Context";let n=a.length;a=[...a,u];let d=m=>{let{scope:g,children:h,...k}=m,C=g?.[e]?.[n]||s,I=V.useMemo(()=>k,Object.values(k));return bt(C.Provider,{value:I,children:h})};d.displayName=l+"Provider";function p(m,g){let h=g?.[e]?.[n]||s,k=V.useContext(h);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[d,p]}let r=()=>{let l=a.map(u=>V.createContext(u));return function(s){let n=s?.[e]||l;return V.useMemo(()=>({[`__scope${e}`]:{...s,[e]:n}}),[s,n])}};return r.scopeName=e,[o,Pt(r,...t)]}function Pt(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let u=o.reduce((s,{useScope:n,scopeName:d})=>{let m=n(l)[`__scope${d}`];return{...s,...m}},{});return V.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return a.scopeName=t.scopeName,a}import*as E from"react";import{jsx as Ve}from"react/jsx-runtime";import*as be from"react";import{jsx as br}from"react/jsx-runtime";function pa(e){let t=e+"CollectionProvider",[a,o]=le(t),[r,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{let{scope:I,children:b}=C,S=E.useRef(null),w=E.useRef(new Map).current;return Ve(r,{scope:I,itemMap:w,collectionRef:S,children:b})};u.displayName=t;let s=e+"CollectionSlot",n=ce(s),d=E.forwardRef((C,I)=>{let{scope:b,children:S}=C,w=l(s,b),P=$(I,w.collectionRef);return Ve(n,{ref:P,children:S})});d.displayName=s;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=ce(p),h=E.forwardRef((C,I)=>{let{scope:b,children:S,...w}=C,P=E.useRef(null),U=$(I,P),H=l(p,b);return E.useEffect(()=>(H.itemMap.set(P,{ref:P,...w}),()=>void H.itemMap.delete(P))),Ve(g,{[m]:"",ref:U,children:S})});h.displayName=p;function k(C){let I=l(e+"CollectionConsumer",C);return E.useCallback(()=>{let S=I.collectionRef.current;if(!S)return[];let w=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(I.itemMap.values()).sort((H,q)=>w.indexOf(H.ref.current)-w.indexOf(q.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:u,Slot:d,ItemSlot:h},k,o]}var Rr=!!(typeof window<"u"&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as G from"react";import*as ma from"react";var Pe=globalThis?.document?ma.useLayoutEffect:()=>{};import*as Re from"react";var Rt=G[" useInsertionEffect ".trim().toString()]||Pe;function Q({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,l,u]=At({defaultProp:t,onChange:a}),s=e!==void 0,n=s?e:r;{let p=G.useRef(e!==void 0);G.useEffect(()=>{let m=p.current;m!==s&&console.warn(`${o} is changing from ${m?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=s},[s,o])}let d=G.useCallback(p=>{if(s){let m=yt(p)?p(e):p;m!==e&&u.current?.(m)}else l(p)},[s,e,l,u]);return[n,d]}function At({defaultProp:e,onChange:t}){let[a,o]=G.useState(e),r=G.useRef(a),l=G.useRef(t);return Rt(()=>{l.current=t},[t]),G.useEffect(()=>{r.current!==a&&(l.current?.(a),r.current=a)},[a,r]),[a,o,l]}function yt(e){return typeof e=="function"}var Mr=Symbol("RADIX:SYNC_STATE");import*as We from"react";var vt=We[" useId ".trim().toString()]||(()=>{}),Mt=0;function La(e){let[t,a]=We.useState(vt());return Pe(()=>{e||a(o=>o??String(Mt++))},[e]),e||(t?`radix-${t}`:"")}import*as Ae from"react";import{jsx as qr}from"react/jsx-runtime";var Ft=Ae.createContext(void 0);function ye(e){let t=Ae.useContext(Ft);return e||t||"ltr"}import*as ue from"react";function Ia(e){let t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as v from"react";import{jsx as Y}from"react/jsx-runtime";var Ne="rovingFocusGroup.onEntryFocus",Bt={bubbles:!1,cancelable:!0},pe="RovingFocusGroup",[Xe,xa,Dt]=pa(pe),[Tt,_e]=le(pe,[Dt]),[qt,Ot]=Tt(pe),ga=v.forwardRef((e,t)=>Y(Xe.Provider,{scope:e.__scopeRovingFocusGroup,children:Y(Xe.Slot,{scope:e.__scopeRovingFocusGroup,children:Y(Ut,{...e,ref:t})})}));ga.displayName=pe;var Ut=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:n,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=e,g=v.useRef(null),h=$(t,g),k=ye(l),[C,I]=Q({prop:u,defaultProp:s??null,onChange:n,caller:pe}),[b,S]=v.useState(!1),w=Ia(d),P=xa(a),U=v.useRef(!1),[H,q]=v.useState(0);return v.useEffect(()=>{let f=g.current;if(f)return f.addEventListener(Ne,w),()=>f.removeEventListener(Ne,w)},[w]),Y(qt,{scope:a,orientation:o,dir:k,loop:r,currentTabStopId:C,onItemFocus:v.useCallback(f=>I(f),[I]),onItemShiftTab:v.useCallback(()=>S(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(f=>f+1),[]),onFocusableItemRemove:v.useCallback(()=>q(f=>f-1),[]),children:Y(_.div,{tabIndex:b||H===0?-1:0,"data-orientation":o,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{U.current=!0}),onFocus:W(e.onFocus,f=>{let F=!U.current;if(f.target===f.currentTarget&&F&&!b){let de=new CustomEvent(Ne,Bt);if(f.currentTarget.dispatchEvent(de),!de.defaultPrevented){let te=P().filter(R=>R.focusable),oe=te.find(R=>R.active),Ie=te.find(R=>R.id===C),X=[oe,Ie,...te].filter(Boolean).map(R=>R.ref.current);Sa(X,p)}}U.current=!1}),onBlur:W(e.onBlur,()=>S(!1))})})}),Ca="RovingFocusGroupItem",ha=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:l,children:u,...s}=e,n=La(),d=l||n,p=Ot(Ca,a),m=p.currentTabStopId===d,g=xa(a),{onFocusableItemAdd:h,onFocusableItemRemove:k,currentTabStopId:C}=p;return v.useEffect(()=>{if(o)return h(),()=>k()},[o,h,k]),Y(Xe.ItemSlot,{scope:a,id:d,focusable:o,active:r,children:Y(_.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,I=>{o?p.onItemFocus(d):I.preventDefault()}),onFocus:W(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:W(e.onKeyDown,I=>{if(I.key==="Tab"&&I.shiftKey){p.onItemShiftTab();return}if(I.target!==I.currentTarget)return;let b=Et(I,p.orientation,p.dir);if(b!==void 0){if(I.metaKey||I.ctrlKey||I.altKey||I.shiftKey)return;I.preventDefault();let w=g().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();let P=w.indexOf(I.currentTarget);w=p.loop?zt(w,P+1):w.slice(P+1)}setTimeout(()=>Sa(w))}}),children:typeof u=="function"?u({isCurrentTabStop:m,hasTabStop:C!=null}):u})})});ha.displayName=Ca;var Ht={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Gt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Et(e,t,a){let o=Gt(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ht[o]}function Sa(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function zt(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var wa=ga,ka=ha;import*as ba from"react";import{jsx as Wt}from"react/jsx-runtime";var Pa="Toggle",Ke=ba.forwardRef((e,t)=>{let{pressed:a,defaultPressed:o,onPressedChange:r,...l}=e,[u,s]=Q({prop:a,onChange:r,defaultProp:o??!1,caller:Pa});return Wt(_.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:W(e.onClick,()=>{e.disabled||s(!u)})})});Ke.displayName=Pa;var me={};st(me,{Item:()=>Jt,Root:()=>Zt,ToggleGroup:()=>Me,ToggleGroupItem:()=>je,createToggleGroupScope:()=>Nt});import*as T from"react";import{jsx as O}from"react/jsx-runtime";var K="ToggleGroup",[Aa,Nt]=le(K,[_e]),ya=_e(),Me=T.forwardRef((e,t)=>{let{type:a,...o}=e;if(a==="single")return O(Xt,{...o,ref:t});if(a==="multiple")return O(_t,{...o,ref:t});throw new Error(`Missing prop \`type\` expected on \`${K}\``)});Me.displayName=K;var[va,Ma]=Aa(K),Xt=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??"",onChange:r,caller:K});return O(va,{scope:e.__scopeToggleGroup,type:"single",value:T.useMemo(()=>u?[u]:[],[u]),onItemActivate:s,onItemDeactivate:T.useCallback(()=>s(""),[s]),children:O(Fa,{...l,ref:t})})}),_t=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??[],onChange:r,caller:K}),n=T.useCallback(p=>s((m=[])=>[...m,p]),[s]),d=T.useCallback(p=>s((m=[])=>m.filter(g=>g!==p)),[s]);return O(va,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:n,onItemDeactivate:d,children:O(Fa,{...l,ref:t})})});Me.displayName=K;var[Kt,jt]=Aa(K),Fa=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,disabled:o=!1,rovingFocus:r=!0,orientation:l,dir:u,loop:s=!0,...n}=e,d=ya(a),p=ye(u),m={role:"group",dir:p,...n};return O(Kt,{scope:a,rovingFocus:r,disabled:o,children:r?O(wa,{asChild:!0,...d,orientation:l,dir:p,loop:s,children:O(_.div,{...m,ref:t})}):O(_.div,{...m,ref:t})})}),ve="ToggleGroupItem",je=T.forwardRef((e,t)=>{let a=Ma(ve,e.__scopeToggleGroup),o=jt(ve,e.__scopeToggleGroup),r=ya(e.__scopeToggleGroup),l=a.value.includes(e.value),u=o.disabled||e.disabled,s={...e,pressed:l,disabled:u},n=T.useRef(null);return o.rovingFocus?O(ka,{asChild:!0,...r,focusable:!u,active:l,ref:n,children:O(Ra,{...s,ref:t})}):O(Ra,{...s,ref:t})});je.displayName=ve;var Ra=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,value:o,...r}=e,l=Ma(ve,a),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=l.type==="single"?u:void 0;return O(Ke,{...s,...r,ref:t,onPressedChange:n=>{n?l.onItemActivate(o):l.onItemDeactivate(o)}})}),Zt=Me,Jt=je;function Ba(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ga=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Te="-",Da=[],Yt="arbitrary..",eo=e=>{let t=to(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return ao(u);let s=u.split(Te),n=s[0]===""&&s.length>1?1:0;return Ea(s,n,t)},getConflictingClassGroupIds:(u,s)=>{if(s){let n=o[u],d=a[u];return n?d?$t(d,n):n:d||Da}return a[u]||Da}}},Ea=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],l=a.nextPart.get(r);if(l){let d=Ea(e,t+1,l);if(d)return d}let u=a.validators;if(u===null)return;let s=t===0?e.join(Te):e.slice(t).join(Te),n=u.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Yt+o:void 0})(),to=e=>{let{theme:t,classGroups:a}=e;return oo(a,t)},oo=(e,t)=>{let a=Ga();for(let o in e){let r=e[o];$e(r,a,o,t)}return a},$e=(e,t,a,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){lo(e,t,a);return}if(typeof e=="function"){uo(e,t,a,o);return}so(e,t,a,o)},lo=(e,t,a)=>{let o=e===""?t:za(t,e);o.classGroupId=a},uo=(e,t,a,o)=>{if(fo(e)){$e(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Qt(a,e))},so=(e,t,a,o)=>{let r=Object.entries(e),l=r.length;for(let u=0;u{let a=e,o=t.split(Te),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(l,u)=>{a[l]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(l){let u=a[l];if(u!==void 0)return u;if((u=o[l])!==void 0)return r(l,u),u},set(l,u){l in a?a[l]=u:r(l,u)}}},Je="!",Ta=":",no=[],qa=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),co=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let l=[],u=0,s=0,n=0,d,p=r.length;for(let C=0;Cn?d-n:void 0;return qa(l,h,g,k)};if(t){let r=t+Ta,l=o;o=u=>u.startsWith(r)?l(u.slice(r.length)):qa(no,!1,u,void 0,!0)}if(a){let r=o;o=l=>a({className:l,parseClassName:r})}return o},po=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(u)):r.push(u)}return r.length>0&&(r.sort(),o.push(...r)),o}},mo=e=>({cache:io(e.cacheSize),parseClassName:co(e),sortModifiers:po(e),postfixLookupClassGroupIds:Lo(e),...eo(e)}),Lo=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:u}=t,s=[],n=e.trim().split(Io),d="";for(let p=n.length-1;p>=0;p-=1){let m=n[p],{isExternal:g,modifiers:h,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:I}=a(m);if(g){d=m+(d.length>0?" "+d:d);continue}let b=!!I,S;if(b){let q=C.substring(0,I);S=o(q);let f=S&&u[S]?o(C):void 0;f&&f!==S&&(S=f,b=!1)}else S=o(C);if(!S){if(!b){d=m+(d.length>0?" "+d:d);continue}if(S=o(C),!S){d=m+(d.length>0?" "+d:d);continue}b=!1}let w=h.length===0?"":h.length===1?h[0]:l(h).join(":"),P=k?w+Je:w,U=P+S;if(s.indexOf(U)>-1)continue;s.push(U);let H=r(S,b);for(let q=0;q0?" "+d:d)}return d},go=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,l,u=n=>{let d=t.reduce((p,m)=>m(p),e());return a=mo(d),o=a.cache.get,r=a.cache.set,l=s,s(n)},s=n=>{let d=o(n);if(d)return d;let p=xo(n,a);return r(n,p),p};return l=u,(...n)=>l(go(...n))},ho=[],A=e=>{let t=a=>a[e]||ho;return t.isThemeGetter=!0,t},Wa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Na=/^\((?:(\w[\w-]*):)?(.+)\)$/i,So=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>So.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),z=e=>!!e&&Number.isInteger(Number(e)),Ze=e=>e.endsWith("%")&&x(e.slice(0,-1)),N=e=>wo.test(e),Xa=()=>!0,Ao=e=>ko.test(e)&&!bo.test(e),Qe=()=>!1,yo=e=>Po.test(e),vo=e=>Ro.test(e),Mo=e=>!i(e)&&!c(e),Fo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Bo=e=>Z(e,ja,Qe),i=e=>Wa.test(e),ee=e=>Z(e,Za,Ao),Oa=e=>Z(e,Eo,x),Do=e=>Z(e,$a,Xa),To=e=>Z(e,Ja,Qe),Ua=e=>Z(e,_a,Qe),qo=e=>Z(e,Ka,vo),Be=e=>Z(e,Qa,yo),c=e=>Na.test(e),Le=e=>ae(e,Za),Oo=e=>ae(e,Ja),Ha=e=>ae(e,_a),Uo=e=>ae(e,ja),Ho=e=>ae(e,Ka),De=e=>ae(e,Qa,!0),Go=e=>ae(e,$a,!0),Z=(e,t,a)=>{let o=Wa.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},ae=(e,t,a=!1)=>{let o=Na.exec(e);return o?o[1]?t(o[1]):a:!1},_a=e=>e==="position"||e==="percentage",Ka=e=>e==="image"||e==="url",ja=e=>e==="length"||e==="size"||e==="bg-size",Za=e=>e==="length",Eo=e=>e==="number",Ja=e=>e==="family-name",$a=e=>e==="number"||e==="weight",Qa=e=>e==="shadow";var zo=()=>{let e=A("color"),t=A("font"),a=A("text"),o=A("font-weight"),r=A("tracking"),l=A("leading"),u=A("breakpoint"),s=A("container"),n=A("spacing"),d=A("radius"),p=A("shadow"),m=A("inset-shadow"),g=A("text-shadow"),h=A("drop-shadow"),k=A("blur"),C=A("perspective"),I=A("aspect"),b=A("ease"),S=A("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...P(),c,i],H=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],f=()=>[c,i,n],F=()=>[j,"full","auto",...f()],de=()=>[z,"none","subgrid",c,i],te=()=>["auto",{span:["full",z,c,i]},z,c,i],oe=()=>[z,"auto",c,i],Ie=()=>["auto","min","max","fr",c,i],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...f()],J=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],He=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...f()],Ge=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],L=()=>[e,c,i],ea=()=>[...P(),Ha,Ua,{position:[c,i]}],aa=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ta=()=>["auto","cover","contain",Uo,Bo,{size:[c,i]}],Ee=()=>[Ze,Le,ee],B=()=>["","none","full",d,c,i],D=()=>["",x,Le,ee],ge=()=>["solid","dashed","dotted","double"],oa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[x,Ze,Ha,Ua],ra=()=>["","none",k,c,i],Ce=()=>["none",x,c,i],he=()=>["none",x,c,i],ze=()=>[x,c,i],Se=()=>[j,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[Xa],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[Mo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",x],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,i,c,I]}],container:["container"],"container-type":[{"@container":["","normal","size",c,i]}],"container-named":[Fo],columns:[{columns:[x,i,c,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[z,"auto",c,i]}],basis:[{basis:[j,"full","auto",s,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,j,"auto","initial","none",i]}],grow:[{grow:["",x,c,i]}],shrink:[{shrink:["",x,c,i]}],order:[{order:[z,"first","last","none",c,i]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...He()]}],"min-inline-size":[{"min-inline":["auto",...He()]}],"max-inline-size":[{"max-inline":["none",...He()]}],"block-size":[{block:["auto",...Ge()]}],"min-block-size":[{"min-block":["auto",...Ge()]}],"max-block-size":[{"max-block":["none",...Ge()]}],w:[{w:[s,"screen",...J()]}],"min-w":[{"min-w":[s,"screen","none",...J()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[u]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",a,Le,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Go,Do]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ze,i]}],"font-family":[{font:[Oo,To,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,c,i]}],"line-clamp":[{"line-clamp":[x,"none",c,Oa]}],leading:[{leading:[l,...f()]}],"list-image":[{"list-image":["none",c,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",c,ee]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[x,"auto",c,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[z,c,i]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ea()}],"bg-repeat":[{bg:aa()}],"bg-size":[{bg:ta()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},z,c,i],radial:["",c,i],conic:[z,c,i]},Ho,qo]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,c,i]}],"outline-w":[{outline:["",x,Le,ee]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",p,De,Be]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",m,De,Be]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[x,ee]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",g,De,Be]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[x,c,i]}],"mix-blend":[{"mix-blend":[...oa(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oa()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[c,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ea()}],"mask-repeat":[{mask:aa()}],"mask-size":[{mask:ta()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,i]}],filter:[{filter:["","none",c,i]}],blur:[{blur:ra()}],brightness:[{brightness:[x,c,i]}],contrast:[{contrast:[x,c,i]}],"drop-shadow":[{"drop-shadow":["","none",h,De,Be]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",x,c,i]}],"hue-rotate":[{"hue-rotate":[x,c,i]}],invert:[{invert:["",x,c,i]}],saturate:[{saturate:[x,c,i]}],sepia:[{sepia:["",x,c,i]}],"backdrop-filter":[{"backdrop-filter":["","none",c,i]}],"backdrop-blur":[{"backdrop-blur":ra()}],"backdrop-brightness":[{"backdrop-brightness":[x,c,i]}],"backdrop-contrast":[{"backdrop-contrast":[x,c,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,c,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,c,i]}],"backdrop-invert":[{"backdrop-invert":["",x,c,i]}],"backdrop-opacity":[{"backdrop-opacity":[x,c,i]}],"backdrop-saturate":[{"backdrop-saturate":[x,c,i]}],"backdrop-sepia":[{"backdrop-sepia":["",x,c,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",c,i]}],ease:[{ease:["linear","initial",b,c,i]}],delay:[{delay:[x,c,i]}],animate:[{animate:["none",S,c,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,c,i]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[c,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[z,c,i]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,i]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[x,Le,ee,Oa]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ya=Co(zo);function qe(...e){return Ya(Fe(e))}var et=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,at=Fe,tt=(e,t)=>a=>{var o;if(t?.variants==null)return at(e,a?.class,a?.className);let{variants:r,defaultVariants:l}=t,u=Object.keys(r).map(d=>{let p=a?.[d],m=l?.[d];if(p===null)return null;let g=et(p)||et(m);return r[d][g]}),s=a&&Object.entries(a).reduce((d,p)=>{let[m,g]=p;return g===void 0||(d[m]=g),d},{}),n=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,p)=>{let{class:m,className:g,...h}=p;return Object.entries(h).every(k=>{let[C,I]=k;return Array.isArray(I)?I.includes({...l,...s}[C]):{...l,...s}[C]===I})?[...d,m,g]:d},[]);return at(e,u,n,a?.class,a?.className)};import{jsx as xl}from"react/jsx-runtime";var ot=tt("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});import{jsx as Ye}from"react/jsx-runtime";var rt=Oe.createContext({size:"default",variant:"default",spacing:0});function lt({className:e,variant:t,size:a,spacing:o=0,children:r,...l}){return Ye(me.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":o,style:{"--gap":o},className:qe("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",e),...l,children:Ye(rt.Provider,{value:{variant:t,size:a,spacing:o},children:r})})}function Ue({className:e,children:t,variant:a,size:o,...r}){let l=Oe.useContext(rt);return Ye(me.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||a,"data-size":l.size||o,"data-spacing":l.spacing,className:qe(ot({variant:l.variant||a,size:l.size||o}),"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",e),...r,children:t})}import{jsx as se,jsxs as Wo}from"react/jsx-runtime";function Vo(){return Wo(lt,{type:"multiple",variant:"outline",children:[se(Ue,{value:"bold","aria-label":"Toggle bold",children:se(fe,{className:"h-4 w-4"})}),se(Ue,{value:"italic","aria-label":"Toggle italic",children:se(ie,{className:"h-4 w-4"})}),se(Ue,{value:"strikethrough","aria-label":"Toggle strikethrough",children:se(ne,{className:"h-4 w-4"})})]})}export{Vo as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/bold.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/italic.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/underline.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9c0e8226aecbd320fd791f12c298f7ca8d25f908dd81d9913e283d7eadd48bd +size 46507 diff --git a/b/0161d18dd956c36090670735eb4e00301bc8094983043942fda308dd17f3a071 b/b/0161d18dd956c36090670735eb4e00301bc8094983043942fda308dd17f3a071 index b3edb755060af5aa5c36e97894e5021565670df1..6a9f32a2e6673fe94d6160a55221e4821681f5f3 100644 --- a/b/0161d18dd956c36090670735eb4e00301bc8094983043942fda308dd17f3a071 +++ b/b/0161d18dd956c36090670735eb4e00301bc8094983043942fda308dd17f3a071 @@ -1,95 +1,3 @@ -var Yo=Object.defineProperty;var ca=(e,a)=>{for(var t in a)Yo(e,t,{get:a[t],enumerable:!0})};function lt(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;atypeof e=="boolean"?`${e}`:e===0?"0":e,st=qe,dt=(e,a)=>t=>{var o;if(a?.variants==null)return st(e,t?.class,t?.className);let{variants:r,defaultVariants:l}=a,s=Object.keys(r).map(d=>{let n=t?.[d],c=l?.[d];if(n===null)return null;let x=ut(n)||ut(c);return r[d][x]}),u=t&&Object.entries(t).reduce((d,n)=>{let[c,x]=n;return x===void 0||(d[c]=x),d},{}),f=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((d,n)=>{let{class:c,className:x,...I}=n;return Object.entries(I).every(v=>{let[i,g]=v;return Array.isArray(g)?g.includes({...l,...u}[i]):{...l,...u}[i]===g})?[...d,c,x]:d},[]);return st(e,s,f,t?.class,t?.className)};import*as mt from"react";import*as Lt from"react-dom";var He={};ca(He,{Root:()=>er,Slot:()=>er,Slottable:()=>ar,createSlot:()=>he,createSlottable:()=>pt});import*as E from"react";import*as nt from"react";function ft(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function Qo(...e){return a=>{let t=!1,o=e.map(r=>{let l=ft(r,a);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let r=0;r{let{children:r,...l}=t,s=null,u=!1,f=[];it(r)&&typeof Ue=="function"&&(r=Ue(r._payload)),E.Children.forEach(r,x=>{if(lr(x)){u=!0;let I=x,v="child"in I.props?I.props.child:I.props.children;it(v)&&typeof Ue=="function"&&(v=Ue(v._payload)),s=tr(I,v),f.push(s?.props?.children)}else f.push(x)}),s?s=E.cloneElement(s,void 0,f):!u&&E.Children.count(r)===1&&E.isValidElement(r)&&(s=r);let d=s?rr(s):void 0,n=J(o,d);if(!s){if(r||r===0)throw new Error(u?fr(e):dr(e));return r}let c=or(l,s.props??{});return s.type!==E.Fragment&&(c.ref=o?n:d),E.cloneElement(s,c)});return a.displayName=`${e}.Slot`,a}var er=he("Slot"),ct=Symbol.for("radix.slottable");function pt(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=ct,a}var ar=pt("Slottable"),tr=(e,a)=>{if("child"in e.props){let t=e.props.child;return E.isValidElement(t)?E.cloneElement(t,void 0,e.props.children(t.props.children)):null}return E.isValidElement(a)?a:null};function or(e,a){let t={...a};for(let o in a){let r=e[o],l=a[o];/^on[A-Z]/.test(o)?r&&l?t[o]=(...u)=>{let f=l(...u);return r(...u),f}:r&&(t[o]=r):o==="style"?t[o]={...r,...l}:o==="className"&&(t[o]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}function rr(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function lr(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ct}var ur=Symbol.for("react.lazy");function it(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ur&&"_payload"in e&&sr(e._payload)}function sr(e){return typeof e=="object"&&e!==null&&"then"in e}var dr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,fr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ue=E[" use ".trim().toString()];import{jsx as nr}from"react/jsx-runtime";var ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=ir.reduce((e,a)=>{let t=he(`Primitive.${a}`),o=mt.forwardRef((r,l)=>{let{asChild:s,...u}=r,f=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),nr(f,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function xt(e,a){e&&Lt.flushSync(()=>e.dispatchEvent(a))}import*as X from"react";import{jsx as It}from"react/jsx-runtime";function gt(e,a){let t=X.createContext(a);t.displayName=e+"Context";let o=l=>{let{children:s,...u}=l,f=X.useMemo(()=>u,Object.values(u));return It(t.Provider,{value:f,children:s})};o.displayName=e+"Provider";function r(l){let s=X.useContext(t);if(s)return s;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,r]}function ht(e,a=[]){let t=[];function o(l,s){let u=X.createContext(s);u.displayName=l+"Context";let f=t.length;t=[...t,s];let d=c=>{let{scope:x,children:I,...v}=c,i=x?.[e]?.[f]||u,g=X.useMemo(()=>v,Object.values(v));return It(i.Provider,{value:g,children:I})};d.displayName=l+"Provider";function n(c,x){let I=x?.[e]?.[f]||u,v=X.useContext(I);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[d,n]}let r=()=>{let l=t.map(s=>X.createContext(s));return function(u){let f=u?.[e]||l;return X.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return r.scopeName=e,[o,cr(r,...a)]}function cr(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((u,{useScope:f,scopeName:d})=>{let c=f(l)[`__scope${d}`];return{...u,...c}},{});return X.useMemo(()=>({[`__scope${a.scopeName}`]:s}),[s])}};return t.scopeName=a.scopeName,t}var Wu=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q(e,a,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),t===!1||!r.defaultPrevented)return a?.(r)}}import*as K from"react";import*as Ct from"react";var ae=globalThis?.document?Ct.useLayoutEffect:()=>{};import*as Ne from"react";var pr=K[" useInsertionEffect ".trim().toString()]||ae;function St({prop:e,defaultProp:a,onChange:t=()=>{},caller:o}){let[r,l,s]=mr({defaultProp:a,onChange:t}),u=e!==void 0,f=u?e:r;{let n=K.useRef(e!==void 0);K.useEffect(()=>{let c=n.current;c!==u&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=u},[u,o])}let d=K.useCallback(n=>{if(u){let c=Lr(n)?n(e):n;c!==e&&s.current?.(c)}else l(n)},[u,e,l,s]);return[f,d]}function mr({defaultProp:e,onChange:a}){let[t,o]=K.useState(e),r=K.useRef(t),l=K.useRef(a);return pr(()=>{l.current=a},[a]),K.useEffect(()=>{r.current!==t&&(l.current?.(t),r.current=t)},[t,r]),[t,o,l]}function Lr(e){return typeof e=="function"}var Ku=Symbol("RADIX:SYNC_STATE");import*as q from"react";import*as bt from"react";function xr(e,a){return bt.useReducer((t,o)=>a[t][o]??t,e)}var ke=e=>{let{present:a,children:t}=e,o=Ir(a),r=typeof t=="function"?t({present:o.isPresent}):q.Children.only(t),l=gr(o.ref,hr(r));return typeof t=="function"||o.isPresent?q.cloneElement(r,{ref:l}):null};ke.displayName="Presence";function Ir(e){let[a,t]=q.useState(),o=q.useRef(null),r=q.useRef(e),l=q.useRef("none"),s=e?"mounted":"unmounted",[u,f]=xr(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q.useEffect(()=>{let d=Ge(o.current);l.current=u==="mounted"?d:"none"},[u]),ae(()=>{let d=o.current,n=r.current;if(n!==e){let x=l.current,I=Ge(d);e?f("MOUNT"):I==="none"||d?.display==="none"?f("UNMOUNT"):f(n&&x!==I?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),ae(()=>{if(a){let d,n=a.ownerDocument.defaultView??window,c=I=>{let i=Ge(o.current).includes(CSS.escape(I.animationName));if(I.target===a&&i&&(f("ANIMATION_END"),!r.current)){let g=a.style.animationFillMode;a.style.animationFillMode="forwards",d=n.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=g)})}},x=I=>{I.target===a&&(l.current=Ge(o.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",c),a.addEventListener("animationend",c),()=>{n.clearTimeout(d),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",c),a.removeEventListener("animationend",c)}}else f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:q.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function wt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function gr(...e){let a=q.useRef(e);return a.current=e,q.useCallback(t=>{let o=a.current,r=!1,l=o.map(s=>{let u=wt(s,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s{}),Sr=0;function ze(e){let[a,t]=pa.useState(Cr());return ae(()=>{e||t(o=>o??String(Sr++))},[e]),e||(a?`radix-${a}`:"")}var W={};ca(W,{Close:()=>Rl,Content:()=>yl,Description:()=>kl,Dialog:()=>Oa,DialogClose:()=>Va,DialogContent:()=>Na,DialogDescription:()=>Wa,DialogOverlay:()=>Ha,DialogPortal:()=>Ua,DialogTitle:()=>za,DialogTrigger:()=>Ea,Overlay:()=>vl,Portal:()=>bl,Root:()=>Sl,Title:()=>Pl,Trigger:()=>wl,WarningProvider:()=>Il,createDialogScope:()=>nl});import*as R from"react";import*as M from"react";import*as Ce from"react";function re(e){let a=Ce.useRef(e);return Ce.useEffect(()=>{a.current=e}),Ce.useMemo(()=>(...t)=>a.current?.(...t),[])}import*as vt from"react";function yt(e,a=globalThis?.document){let t=re(e);vt.useEffect(()=>{let o=r=>{r.key==="Escape"&&t(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[t,a])}import{jsx as Rt}from"react/jsx-runtime";var wr="DismissableLayer",ma="dismissableLayer.update",br="dismissableLayer.pointerDownOutside",vr="dismissableLayer.focusOutside",Pt,At=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),La=M.forwardRef((e,a)=>{let{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...f}=e,d=M.useContext(At),[n,c]=M.useState(null),x=n?.ownerDocument??globalThis?.document,[,I]=M.useState({}),v=J(a,C=>c(C)),i=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=i.indexOf(g),S=n?i.indexOf(n):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,k=S>=b,P=kr(C=>{let m=C.target,B=[...d.branches].some(oe=>oe.contains(m));!k||B||(r?.(C),s?.(C),C.defaultPrevented||u?.())},x),D=Rr(C=>{let m=C.target;[...d.branches].some(oe=>oe.contains(m))||(l?.(C),s?.(C),C.defaultPrevented||u?.())},x);return yt(C=>{S===d.layers.size-1&&(o?.(C),!C.defaultPrevented&&u&&(C.preventDefault(),u()))},x),M.useEffect(()=>{if(n)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Pt=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(n)),d.layers.add(n),kt(),()=>{t&&(d.layersWithOutsidePointerEventsDisabled.delete(n),d.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=Pt))}},[n,x,t,d]),M.useEffect(()=>()=>{n&&(d.layers.delete(n),d.layersWithOutsidePointerEventsDisabled.delete(n),kt())},[n,d]),M.useEffect(()=>{let C=()=>I({});return document.addEventListener(ma,C),()=>document.removeEventListener(ma,C)},[]),Rt(G.div,{...f,ref:v,style:{pointerEvents:y?k?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,P.onPointerDownCapture)})});La.displayName=wr;var yr="DismissableLayerBranch",Pr=M.forwardRef((e,a)=>{let t=M.useContext(At),o=M.useRef(null),r=J(a,o);return M.useEffect(()=>{let l=o.current;if(l)return t.branches.add(l),()=>{t.branches.delete(l)}},[t.branches]),Rt(G.div,{...e,ref:r})});Pr.displayName=yr;function kr(e,a=globalThis?.document){let t=re(e),o=M.useRef(!1),r=M.useRef(()=>{});return M.useEffect(()=>{let l=u=>{if(u.target&&!o.current){let d=function(){Dt(br,t,n,{discrete:!0})};var f=d;let n={originalEvent:u};u.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=d,a.addEventListener("click",r.current,{once:!0})):d()}else a.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{a.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",l),a.removeEventListener("click",r.current)}},[a,t]),{onPointerDownCapture:()=>o.current=!0}}function Rr(e,a=globalThis?.document){let t=re(e),o=M.useRef(!1);return M.useEffect(()=>{let r=l=>{l.target&&!o.current&&Dt(vr,t,{originalEvent:l},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function kt(){let e=new CustomEvent(ma);document.dispatchEvent(e)}function Dt(e,a,t,{discrete:o}){let r=t.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});a&&r.addEventListener(e,a,{once:!0}),o?xt(r,l):r.dispatchEvent(l)}import*as j from"react";import{jsx as Ar}from"react/jsx-runtime";var xa="focusScope.autoFocusOnMount",Ia="focusScope.autoFocusOnUnmount",Mt={bubbles:!1,cancelable:!0},Dr="FocusScope",ga=j.forwardRef((e,a)=>{let{loop:t=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[u,f]=j.useState(null),d=re(r),n=re(l),c=j.useRef(null),x=J(a,i=>f(i)),I=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(o){let S=function(D){if(I.paused||!u)return;let C=D.target;u.contains(C)?c.current=C:le(c.current,{select:!0})},y=function(D){if(I.paused||!u)return;let C=D.relatedTarget;C!==null&&(u.contains(C)||le(c.current,{select:!0}))},k=function(D){if(document.activeElement===document.body)for(let m of D)m.removedNodes.length>0&&le(u)};var i=S,g=y,b=k;document.addEventListener("focusin",S),document.addEventListener("focusout",y);let P=new MutationObserver(k);return u&&P.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",y),P.disconnect()}}},[o,u,I.paused]),j.useEffect(()=>{if(u){Bt.add(I);let i=document.activeElement;if(!u.contains(i)){let b=new CustomEvent(xa,Mt);u.addEventListener(xa,d),u.dispatchEvent(b),b.defaultPrevented||(Mr(Er(Ot(u)),{select:!0}),document.activeElement===i&&le(u))}return()=>{u.removeEventListener(xa,d),setTimeout(()=>{let b=new CustomEvent(Ia,Mt);u.addEventListener(Ia,n),u.dispatchEvent(b),b.defaultPrevented||le(i??document.body,{select:!0}),u.removeEventListener(Ia,n),Bt.remove(I)},0)}}},[u,d,n,I]);let v=j.useCallback(i=>{if(!t&&!o||I.paused)return;let g=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,b=document.activeElement;if(g&&b){let S=i.currentTarget,[y,k]=Fr(S);y&&k?!i.shiftKey&&b===k?(i.preventDefault(),t&&le(y,{select:!0})):i.shiftKey&&b===y&&(i.preventDefault(),t&&le(k,{select:!0})):b===S&&i.preventDefault()}},[t,o,I.paused]);return Ar(G.div,{tabIndex:-1,...s,ref:x,onKeyDown:v})});ga.displayName=Dr;function Mr(e,{select:a=!1}={}){let t=document.activeElement;for(let o of e)if(le(o,{select:a}),document.activeElement!==t)return}function Fr(e){let a=Ot(e),t=Ft(a,e),o=Ft(a.reverse(),e);return[t,o]}function Ot(e){let a=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)a.push(t.currentNode);return a}function Ft(e,a){for(let t of e)if(!Br(t,{upTo:a}))return t}function Br(e,{upTo:a}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(a!==void 0&&e===a)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Tr(e){return e instanceof HTMLInputElement&&"select"in e}function le(e,{select:a=!1}={}){if(e&&e.focus){let t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Tr(e)&&a&&e.select()}}var Bt=Or();function Or(){let e=[];return{add(a){let t=e[0];a!==t&&t?.pause(),e=Tt(e,a),e.unshift(a)},remove(a){e=Tt(e,a),e[0]?.resume()}}}function Tt(e,a){let t=[...e],o=t.indexOf(a);return o!==-1&&t.splice(o,1),t}function Er(e){return e.filter(a=>a.tagName!=="A")}import*as We from"react";import*as Et from"react-dom";import{jsx as qr}from"react/jsx-runtime";var Ur="Portal",ha=We.forwardRef((e,a)=>{let{container:t,...o}=e,[r,l]=We.useState(!1);ae(()=>l(!0),[]);let s=t||r&&globalThis?.document?.body;return s?Et.createPortal(qr(G.div,{...o,ref:a}),s):null});ha.displayName=Ur;import*as Ut from"react";var Ve=0,Se=null;function Ht(){Ut.useEffect(()=>{Se||(Se={start:qt(),end:qt()});let{start:e,end:a}=Se;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),Ve++,()=>{Ve===1&&(Se?.start.remove(),Se?.end.remove(),Se=null),Ve=Math.max(0,Ve-1)}},[])}function qt(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z=function(){return z=Object.assign||function(a){for(var t,o=1,r=arguments.length;o"u")return Xr;var a=Kr(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-t+a[2]-a[0])}};var jr=Ae(),we="data-scroll-locked",Zr=function(e,a,t,o){var r=e.left,l=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),` - .`.concat(Ca,` { - overflow: hidden `).concat(o,`; - padding-right: `).concat(u,"px ").concat(o,`; - } - body[`).concat(we,`] { - overflow: hidden `).concat(o,`; - overscroll-behavior: contain; - `).concat([a&&"position: relative ".concat(o,";"),t==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(o,`; - `),t==="padding"&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),` - } - - .`).concat(ie,` { - right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(ce,` { - margin-right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(ie," .").concat(ie,` { - right: 0 `).concat(o,`; - } - - .`).concat(ce," .").concat(ce,` { - margin-right: 0 `).concat(o,`; - } - - body[`).concat(we,`] { - `).concat(Sa,": ").concat(u,`px; - } -`)},jt=function(){var e=parseInt(document.body.getAttribute(we)||"0",10);return isFinite(e)?e:0},$r=function(){be.useEffect(function(){return document.body.setAttribute(we,(jt()+1).toString()),function(){var e=jt()-1;e<=0?document.body.removeAttribute(we):document.body.setAttribute(we,e.toString())}},[])},Da=function(e){var a=e.noRelative,t=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;$r();var l=be.useMemo(function(){return Aa(r)},[r]);return be.createElement(jr,{styles:Zr(l,!a,r,t?"":"!important")})};var Ma=!1;if(typeof window<"u")try{De=Object.defineProperty({},"passive",{get:function(){return Ma=!0,!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch{Ma=!1}var De,pe=Ma?{passive:!1}:!1;var Jr=function(e){return e.tagName==="TEXTAREA"},Zt=function(e,a){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[a]!=="hidden"&&!(t.overflowY===t.overflowX&&!Jr(e)&&t[a]==="visible")},Yr=function(e){return Zt(e,"overflowY")},Qr=function(e){return Zt(e,"overflowX")},Fa=function(e,a){var t=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=$t(e,o);if(r){var l=Jt(e,o),s=l[1],u=l[2];if(s>u)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},el=function(e){var a=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[a,t,o]},al=function(e){var a=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[a,t,o]},$t=function(e,a){return e==="v"?Yr(a):Qr(a)},Jt=function(e,a){return e==="v"?el(a):al(a)},tl=function(e,a){return e==="h"&&a==="rtl"?-1:1},Yt=function(e,a,t,o,r){var l=tl(e,window.getComputedStyle(a).direction),s=l*o,u=t.target,f=a.contains(u),d=!1,n=s>0,c=0,x=0;do{if(!u)break;var I=Jt(e,u),v=I[0],i=I[1],g=I[2],b=i-g-l*v;(v||b)&&$t(e,u)&&(c+=b,x+=v);var S=u.parentNode;u=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&u!==document.body||f&&(a.contains(u)||a===u));return(n&&(r&&Math.abs(c)<1||!r&&s>c)||!n&&(r&&Math.abs(x)<1||!r&&-s>x))&&(d=!0),d};var Ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qt=function(e){return[e.deltaX,e.deltaY]},eo=function(e){return e&&"current"in e?e.current:e},ol=function(e,a){return e[0]===a[0]&&e[1]===a[1]},rl=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},ll=0,ve=[];function ao(e){var a=A.useRef([]),t=A.useRef([0,0]),o=A.useRef(),r=A.useState(ll++)[0],l=A.useState(Ae)[0],s=A.useRef(e);A.useEffect(function(){s.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var i=Nt([e.lockRef.current],(e.shards||[]).map(eo),!0).filter(Boolean);return i.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),i.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=A.useCallback(function(i,g){if("touches"in i&&i.touches.length===2||i.type==="wheel"&&i.ctrlKey)return!s.current.allowPinchZoom;var b=Ze(i),S=t.current,y="deltaX"in i?i.deltaX:S[0]-b[0],k="deltaY"in i?i.deltaY:S[1]-b[1],P,D=i.target,C=Math.abs(y)>Math.abs(k)?"h":"v";if("touches"in i&&C==="h"&&D.type==="range")return!1;var m=window.getSelection(),B=m&&m.anchorNode,oe=B?B===D||B.contains(D):!1;if(oe)return!1;var de=Fa(C,D);if(!de)return!0;if(de?P=C:(P=C==="v"?"h":"v",de=Fa(C,D)),!de)return!1;if(!o.current&&"changedTouches"in i&&(y||k)&&(o.current=P),!P)return!0;var fe=o.current||P;return Yt(fe,g,i,fe==="h"?y:k,!0)},[]),f=A.useCallback(function(i){var g=i;if(!(!ve.length||ve[ve.length-1]!==l)){var b="deltaY"in g?Qt(g):Ze(g),S=a.current.filter(function(P){return P.name===g.type&&(P.target===g.target||g.target===P.shadowParent)&&ol(P.delta,b)})[0];if(S&&S.should){g.cancelable&&g.preventDefault();return}if(!S){var y=(s.current.shards||[]).map(eo).filter(Boolean).filter(function(P){return P.contains(g.target)}),k=y.length>0?u(g,y[0]):!s.current.noIsolation;k&&g.cancelable&&g.preventDefault()}}},[]),d=A.useCallback(function(i,g,b,S){var y={name:i,delta:g,target:b,should:S,shadowParent:ul(b)};a.current.push(y),setTimeout(function(){a.current=a.current.filter(function(k){return k!==y})},1)},[]),n=A.useCallback(function(i){t.current=Ze(i),o.current=void 0},[]),c=A.useCallback(function(i){d(i.type,Qt(i),i.target,u(i,e.lockRef.current))},[]),x=A.useCallback(function(i){d(i.type,Ze(i),i.target,u(i,e.lockRef.current))},[]);A.useEffect(function(){return ve.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:x}),document.addEventListener("wheel",f,pe),document.addEventListener("touchmove",f,pe),document.addEventListener("touchstart",n,pe),function(){ve=ve.filter(function(i){return i!==l}),document.removeEventListener("wheel",f,pe),document.removeEventListener("touchmove",f,pe),document.removeEventListener("touchstart",n,pe)}},[]);var I=e.removeScrollBar,v=e.inert;return A.createElement(A.Fragment,null,v?A.createElement(l,{styles:rl(r)}):null,I?A.createElement(Da,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ul(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}var to=va(je,ao);var oo=$e.forwardRef(function(e,a){return $e.createElement(Re,z({},e,{ref:a,sideCar:to}))});oo.classNames=Re.classNames;var Ba=oo;var sl=function(e){if(typeof document>"u")return null;var a=Array.isArray(e)?e[0]:e;return a.ownerDocument.body},ye=new WeakMap,Je=new WeakMap,Ye={},Ta=0,ro=function(e){return e&&(e.host||ro(e.parentNode))},dl=function(e,a){return a.map(function(t){if(e.contains(t))return t;var o=ro(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},fl=function(e,a,t,o){var r=dl(a,Array.isArray(e)?e:[e]);Ye[t]||(Ye[t]=new WeakMap);var l=Ye[t],s=[],u=new Set,f=new Set(r),d=function(c){!c||u.has(c)||(u.add(c),d(c.parentNode))};r.forEach(d);var n=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(x){if(u.has(x))n(x);else try{var I=x.getAttribute(o),v=I!==null&&I!=="false",i=(ye.get(x)||0)+1,g=(l.get(x)||0)+1;ye.set(x,i),l.set(x,g),s.push(x),i===1&&v&&Je.set(x,!0),g===1&&x.setAttribute(t,"true"),v||x.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",x,b)}})};return n(a),u.clear(),Ta++,function(){s.forEach(function(c){var x=ye.get(c)-1,I=l.get(c)-1;ye.set(c,x),l.set(c,I),x||(Je.has(c)||c.removeAttribute(o),Je.delete(c)),I||c.removeAttribute(t)}),Ta--,Ta||(ye=new WeakMap,ye=new WeakMap,Je=new WeakMap,Ye={})}},lo=function(e,a,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a||sl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),fl(o,r,t,"aria-hidden")):function(){return null}};import{Fragment as uo,jsx as F,jsxs as so}from"react/jsx-runtime";var ea="Dialog",[fo,nl]=ht(ea),[il,Y]=fo(ea),Oa=e=>{let{__scopeDialog:a,children:t,open:o,defaultOpen:r,onOpenChange:l,modal:s=!0}=e,u=R.useRef(null),f=R.useRef(null),[d,n]=St({prop:o,defaultProp:r??!1,onChange:l,caller:ea});return F(il,{scope:a,triggerRef:u,contentRef:f,contentId:ze(),titleId:ze(),descriptionId:ze(),open:d,onOpenChange:n,onOpenToggle:R.useCallback(()=>n(c=>!c),[n]),modal:s,children:t})};Oa.displayName=ea;var no="DialogTrigger",Ea=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(no,t),l=J(a,r.triggerRef);return F(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":_a(r.open),...o,ref:l,onClick:Q(e.onClick,r.onOpenToggle)})});Ea.displayName=no;var qa="DialogPortal",[cl,io]=fo(qa,{forceMount:void 0}),Ua=e=>{let{__scopeDialog:a,forceMount:t,children:o,container:r}=e,l=Y(qa,a);return F(cl,{scope:a,forceMount:t,children:R.Children.map(o,s=>F(ke,{present:t||l.open,children:F(ha,{asChild:!0,container:r,children:s})}))})};Ua.displayName=qa;var Qe="DialogOverlay",Ha=R.forwardRef((e,a)=>{let t=io(Qe,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Y(Qe,e.__scopeDialog);return l.modal?F(ke,{present:o||l.open,children:F(ml,{...r,ref:a})}):null});Ha.displayName=Qe;var pl=he("DialogOverlay.RemoveScroll"),ml=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(Qe,t);return F(Ba,{as:pl,allowPinchZoom:!0,shards:[r.contentRef],children:F(G.div,{"data-state":_a(r.open),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})}),me="DialogContent",Na=R.forwardRef((e,a)=>{let t=io(me,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Y(me,e.__scopeDialog);return F(ke,{present:o||l.open,children:l.modal?F(Ll,{...r,ref:a}):F(xl,{...r,ref:a})})});Na.displayName=me;var Ll=R.forwardRef((e,a)=>{let t=Y(me,e.__scopeDialog),o=R.useRef(null),r=J(a,t.contentRef,o);return R.useEffect(()=>{let l=o.current;if(l)return lo(l)},[]),F(co,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,onCloseAutoFocus:Q(e.onCloseAutoFocus,l=>{l.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,l=>{let s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0;(s.button===2||u)&&l.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,l=>l.preventDefault())})}),xl=R.forwardRef((e,a)=>{let t=Y(me,e.__scopeDialog),o=R.useRef(!1),r=R.useRef(!1);return F(co,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||t.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=l.target;t.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&r.current&&l.preventDefault()}})}),co=R.forwardRef((e,a)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:l,...s}=e,u=Y(me,t),f=R.useRef(null),d=J(a,f);return Ht(),so(uo,{children:[F(ga,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:l,children:F(La,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":_a(u.open),...s,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),so(uo,{children:[F(gl,{titleId:u.titleId}),F(Cl,{contentRef:f,descriptionId:u.descriptionId})]})]})}),Ga="DialogTitle",za=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(Ga,t);return F(G.h2,{id:r.titleId,...o,ref:a})});za.displayName=Ga;var po="DialogDescription",Wa=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(po,t);return F(G.p,{id:r.descriptionId,...o,ref:a})});Wa.displayName=po;var mo="DialogClose",Va=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(mo,t);return F(G.button,{type:"button",...o,ref:a,onClick:Q(e.onClick,()=>r.onOpenChange(!1))})});Va.displayName=mo;function _a(e){return e?"open":"closed"}var Lo="DialogTitleWarning",[Il,xo]=gt(Lo,{contentName:me,titleName:Ga,docsSlug:"dialog"}),gl=({titleId:e})=>{let a=xo(Lo),t=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return R.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},hl="DialogDescriptionWarning",Cl=({contentRef:e,descriptionId:a})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xo(hl).contentName}}.`;return R.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");a&&r&&(document.getElementById(a)||console.warn(o))},[o,e,a]),null},Sl=Oa,wl=Ea,bl=Ua,vl=Ha,yl=Na,Pl=za,kl=Wa,Rl=Va;var aa={};ca(aa,{Label:()=>Xa,Root:()=>Ml});import*as Io from"react";import{jsx as Al}from"react/jsx-runtime";var Dl="Label",Xa=Io.forwardRef((e,a)=>Al(G.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Xa.displayName=Dl;var Ml=Xa;var Fl=(e,a)=>{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),vo=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),ra="-",go=[],Tl="arbitrary..",Ol=e=>{let a=ql(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return El(s);let u=s.split(ra),f=u[0]===""&&u.length>1?1:0;return yo(u,f,a)},getConflictingClassGroupIds:(s,u)=>{if(u){let f=o[s],d=t[s];return f?d?Fl(d,f):f:d||go}return t[s]||go}}},yo=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],l=t.nextPart.get(r);if(l){let d=yo(e,a+1,l);if(d)return d}let s=t.validators;if(s===null)return;let u=a===0?e.join(ra):e.slice(a).join(ra),f=s.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?Tl+o:void 0})(),ql=e=>{let{theme:a,classGroups:t}=e;return Ul(t,a)},Ul=(e,a)=>{let t=vo();for(let o in e){let r=e[o];Za(r,t,o,a)}return t},Za=(e,a,t,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){Nl(e,a,t);return}if(typeof e=="function"){Gl(e,a,t,o);return}zl(e,a,t,o)},Nl=(e,a,t)=>{let o=e===""?a:Po(a,e);o.classGroupId=t},Gl=(e,a,t,o)=>{if(Wl(e)){Za(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(Bl(t,e))},zl=(e,a,t,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let t=e,o=a.split(ra),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,Vl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),r=(l,s)=>{t[l]=s,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let s=t[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in t?t[l]=s:r(l,s)}}},ja="!",ho=":",_l=[],Co=(e,a,t,o,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:r}),Xl=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=r=>{let l=[],s=0,u=0,f=0,d,n=r.length;for(let i=0;if?d-f:void 0;return Co(l,I,x,v)};if(a){let r=a+ho,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):Co(_l,!1,s,void 0,!0)}if(t){let r=o;o=l=>t({className:l,parseClassName:r})}return o},Kl=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},jl=e=>({cache:Vl(e.cacheSize),parseClassName:Xl(e),sortModifiers:Kl(e),postfixLookupClassGroupIds:Zl(e),...Ol(e)}),Zl=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],f=e.trim().split($l),d="";for(let n=f.length-1;n>=0;n-=1){let c=f[n],{isExternal:x,modifiers:I,hasImportantModifier:v,baseClassName:i,maybePostfixModifierPosition:g}=t(c);if(x){d=c+(d.length>0?" "+d:d);continue}let b=!!g,S;if(b){let C=i.substring(0,g);S=o(C);let m=S&&s[S]?o(i):void 0;m&&m!==S&&(S=m,b=!1)}else S=o(i);if(!S){if(!b){d=c+(d.length>0?" "+d:d);continue}if(S=o(i),!S){d=c+(d.length>0?" "+d:d);continue}b=!1}let y=I.length===0?"":I.length===1?I[0]:l(I).join(":"),k=v?y+ja:y,P=k+S;if(u.indexOf(P)>-1)continue;u.push(P);let D=r(S,b);for(let C=0;C0?" "+d:d)}return d},Yl=(...e)=>{let a=0,t,o,r="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,r,l,s=f=>{let d=a.reduce((n,c)=>c(n),e());return t=jl(d),o=t.cache.get,r=t.cache.set,l=u,u(f)},u=f=>{let d=o(f);if(d)return d;let n=Jl(f,t);return r(f,n),n};return l=s,(...f)=>l(Yl(...f))},eu=[],T=e=>{let a=t=>t[e]||eu;return a.isThemeGetter=!0,a},Ro=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,au=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ou=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ru=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=e=>au.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),Ka=e=>e.endsWith("%")&&w(e.slice(0,-1)),te=e=>tu.test(e),Do=()=>!0,su=e=>ou.test(e)&&!ru.test(e),$a=()=>!1,du=e=>lu.test(e),fu=e=>uu.test(e),nu=e=>!p(e)&&!L(e),iu=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),cu=e=>se(e,Bo,$a),p=e=>Ro.test(e),Le=e=>se(e,To,su),So=e=>se(e,Cu,w),pu=e=>se(e,Eo,Do),mu=e=>se(e,Oo,$a),wo=e=>se(e,Mo,$a),Lu=e=>se(e,Fo,fu),ta=e=>se(e,qo,du),L=e=>Ao.test(e),Me=e=>xe(e,To),xu=e=>xe(e,Oo),bo=e=>xe(e,Mo),Iu=e=>xe(e,Bo),gu=e=>xe(e,Fo),oa=e=>xe(e,qo,!0),hu=e=>xe(e,Eo,!0),se=(e,a,t)=>{let o=Ro.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},xe=(e,a,t=!1)=>{let o=Ao.exec(e);return o?o[1]?a(o[1]):t:!1},Mo=e=>e==="position"||e==="percentage",Fo=e=>e==="image"||e==="url",Bo=e=>e==="length"||e==="size"||e==="bg-size",To=e=>e==="length",Cu=e=>e==="number",Oo=e=>e==="family-name",Eo=e=>e==="number"||e==="weight",qo=e=>e==="shadow";var Su=()=>{let e=T("color"),a=T("font"),t=T("text"),o=T("font-weight"),r=T("tracking"),l=T("leading"),s=T("breakpoint"),u=T("container"),f=T("spacing"),d=T("radius"),n=T("shadow"),c=T("inset-shadow"),x=T("text-shadow"),I=T("drop-shadow"),v=T("blur"),i=T("perspective"),g=T("aspect"),b=T("ease"),S=T("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...k(),L,p],D=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],m=()=>[L,p,f],B=()=>[ue,"full","auto",...m()],oe=()=>[ee,"none","subgrid",L,p],de=()=>["auto",{span:["full",ee,L,p]},ee,L,p],fe=()=>[ee,"auto",L,p],Qa=()=>["auto","min","max","fr",L,p],sa=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...m()],ne=()=>[ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],da=()=>[ue,"screen","full","dvw","lvw","svw","min","max","fit",...m()],fa=()=>[ue,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],h=()=>[e,L,p],et=()=>[...k(),bo,wo,{position:[L,p]}],at=()=>["no-repeat",{repeat:["","x","y","space","round"]}],tt=()=>["auto","cover","contain",Iu,cu,{size:[L,p]}],na=()=>[Ka,Me,Le],H=()=>["","none","full",d,L,p],N=()=>["",w,Me,Le],Be=()=>["solid","dashed","dotted","double"],ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[w,Ka,bo,wo],rt=()=>["","none",v,L,p],Te=()=>["none",w,L,p],Oe=()=>["none",w,L,p],ia=()=>[w,L,p],Ee=()=>[ue,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[te],breakpoint:[te],color:[Do],container:[te],"drop-shadow":[te],ease:["in","out","in-out"],font:[nu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[te],shadow:[te],spacing:["px",w],text:[te],"text-shadow":[te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ue,p,L,g]}],container:["container"],"container-type":[{"@container":["","normal","size",L,p]}],"container-named":[iu],columns:[{columns:[w,p,L,u]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",L,p]}],basis:[{basis:[ue,"full","auto",u,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,ue,"auto","initial","none",p]}],grow:[{grow:["",w,L,p]}],shrink:[{shrink:["",w,L,p]}],order:[{order:[ee,"first","last","none",L,p]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Qa()}],"auto-rows":[{"auto-rows":Qa()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...sa(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...sa()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":sa()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...da()]}],"min-inline-size":[{"min-inline":["auto",...da()]}],"max-inline-size":[{"max-inline":["none",...da()]}],"block-size":[{block:["auto",...fa()]}],"min-block-size":[{"min-block":["auto",...fa()]}],"max-block-size":[{"max-block":["none",...fa()]}],w:[{w:[u,"screen",...ne()]}],"min-w":[{"min-w":[u,"screen","none",...ne()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",t,Me,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,hu,pu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ka,p]}],"font-family":[{font:[xu,mu,a]}],"font-features":[{"font-features":[p]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,L,p]}],"line-clamp":[{"line-clamp":[w,"none",L,So]}],leading:[{leading:[l,...m()]}],"list-image":[{"list-image":["none",L,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",L,Le]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[w,"auto",L,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[ee,L,p]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:et()}],"bg-repeat":[{bg:at()}],"bg-size":[{bg:tt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,L,p],radial:["",L,p],conic:[ee,L,p]},gu,Lu]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:na()}],"gradient-via-pos":[{via:na()}],"gradient-to-pos":[{to:na()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,L,p]}],"outline-w":[{outline:["",w,Me,Le]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",n,oa,ta]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",c,oa,ta]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[w,Le]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",x,oa,ta]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[w,L,p]}],"mix-blend":[{"mix-blend":[...ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ot()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[L,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:et()}],"mask-repeat":[{mask:at()}],"mask-size":[{mask:tt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,p]}],filter:[{filter:["","none",L,p]}],blur:[{blur:rt()}],brightness:[{brightness:[w,L,p]}],contrast:[{contrast:[w,L,p]}],"drop-shadow":[{"drop-shadow":["","none",I,oa,ta]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",w,L,p]}],"hue-rotate":[{"hue-rotate":[w,L,p]}],invert:[{invert:["",w,L,p]}],saturate:[{saturate:[w,L,p]}],sepia:[{sepia:["",w,L,p]}],"backdrop-filter":[{"backdrop-filter":["","none",L,p]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[w,L,p]}],"backdrop-contrast":[{"backdrop-contrast":[w,L,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,L,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,L,p]}],"backdrop-invert":[{"backdrop-invert":["",w,L,p]}],"backdrop-opacity":[{"backdrop-opacity":[w,L,p]}],"backdrop-saturate":[{"backdrop-saturate":[w,L,p]}],"backdrop-sepia":[{"backdrop-sepia":["",w,L,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",L,p]}],ease:[{ease:["linear","initial",b,L,p]}],delay:[{delay:[w,L,p]}],animate:[{animate:["none",S,L,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[i,L,p]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:ia()}],"skew-x":[{"skew-x":ia()}],"skew-y":[{"skew-y":ia()}],transform:[{transform:[L,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],zoom:[{zoom:[ee,L,p]}],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":h()}],"scrollbar-track-color":[{"scrollbar-track":h()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L,p]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[w,Me,Le,So]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Uo=Ql(Su);function V(...e){return Uo(qe(e))}import{jsx as bu}from"react/jsx-runtime";var wu=dt("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pe({className:e,variant:a="default",size:t="default",asChild:o=!1,...r}){let l=o?He.Root:"button";return bu(l,{"data-slot":"button","data-variant":a,"data-size":t,className:V(wu({variant:a,size:t,className:e})),...r})}import{forwardRef as yu,createElement as Pu}from"react";var Ho=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),la=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as vu,createElement as Go}from"react";var No={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var zo=vu(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},f)=>Go("svg",{ref:f,...No,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:la("lucide",r),...u},[...s.map(([d,n])=>Go(d,n)),...Array.isArray(l)?l:[l]]));var Wo=(e,a)=>{let t=yu(({className:o,...r},l)=>Pu(zo,{ref:l,iconNode:a,className:la(`lucide-${Ho(e)}`,o),...r}));return t.displayName=`${e}`,t};var Fe=Wo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);import{jsx as _,jsxs as ua}from"react/jsx-runtime";function Vo({...e}){return _(W.Root,{"data-slot":"dialog",...e})}function _o({...e}){return _(W.Trigger,{"data-slot":"dialog-trigger",...e})}function ku({...e}){return _(W.Portal,{"data-slot":"dialog-portal",...e})}function Xo({...e}){return _(W.Close,{"data-slot":"dialog-close",...e})}function Ru({className:e,...a}){return _(W.Overlay,{"data-slot":"dialog-overlay",className:V("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...a})}function Ko({className:e,children:a,showCloseButton:t=!0,...o}){return ua(ku,{"data-slot":"dialog-portal",children:[_(Ru,{}),ua(W.Content,{"data-slot":"dialog-content",className:V("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...o,children:[a,t&&ua(W.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[_(Fe,{}),_("span",{className:"sr-only",children:"Close"})]})]})]})}function jo({className:e,...a}){return _("div",{"data-slot":"dialog-header",className:V("flex flex-col gap-2 text-center sm:text-left",e),...a})}function Zo({className:e,showCloseButton:a=!1,children:t,...o}){return ua("div",{"data-slot":"dialog-footer",className:V("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...o,children:[t,a&&_(W.Close,{asChild:!0,children:_(Pe,{variant:"outline",children:"Close"})})]})}function $o({className:e,...a}){return _(W.Title,{"data-slot":"dialog-title",className:V("text-lg leading-none font-semibold",e),...a})}function Jo({className:e,...a}){return _(W.Description,{"data-slot":"dialog-description",className:V("text-sm text-muted-foreground",e),...a})}import{jsx as Au}from"react/jsx-runtime";function Ja({className:e,type:a,...t}){return Au("input",{type:a,"data-slot":"input",className:V("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...t})}import{jsx as Du}from"react/jsx-runtime";function Ya({className:e,...a}){return Du(aa.Root,{"data-slot":"label",className:V("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}import{jsx as Z,jsxs as Ie}from"react/jsx-runtime";function Mu(){return Z(Vo,{children:Ie("form",{children:[Z(_o,{asChild:!0,children:Z(Pe,{variant:"outline",children:"Open Dialog"})}),Ie(Ko,{className:"sm:max-w-[425px]",children:[Ie(jo,{children:[Z($o,{children:"Edit profile"}),Z(Jo,{children:"Make changes to your profile here. Click save when you're done."})]}),Ie("div",{className:"grid gap-4",children:[Ie("div",{className:"grid gap-3",children:[Z(Ya,{htmlFor:"name-1",children:"Name"}),Z(Ja,{id:"name-1",name:"name",defaultValue:"Pedro Duarte"})]}),Ie("div",{className:"grid gap-3",children:[Z(Ya,{htmlFor:"username-1",children:"Username"}),Z(Ja,{id:"username-1",name:"username",defaultValue:"@peduarte"})]})]}),Ie(Zo,{children:[Z(Xo,{asChild:!0,children:Z(Pe,{variant:"outline",children:"Cancel"})}),Z(Pe,{type:"submit",children:"Save changes"})]})]})]})})}export{Mu as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/x.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c6803f5a2a5068be7ba8572b312e3979d9f4d194be8874e9ce5369b87bd4719 +size 71645 diff --git a/b/01d871bb6ba230bc569f2317d0d9b66f261a2886212cea19dd4b9c6d2ea33e00 b/b/01d871bb6ba230bc569f2317d0d9b66f261a2886212cea19dd4b9c6d2ea33e00 index 4a65c86fb556052a0f8b522f50ecfb8d31fd117a..4341ce40aadc7b8ffed496fd41f6757084d0b4ed 100644 --- a/b/01d871bb6ba230bc569f2317d0d9b66f261a2886212cea19dd4b9c6d2ea33e00 +++ b/b/01d871bb6ba230bc569f2317d0d9b66f261a2886212cea19dd4b9c6d2ea33e00 @@ -1,21 +1,3 @@ -{ - "id": "org.hologram.ui.chart.chart-area-linear", - "name": "chart-area-linear", - "tier": "chart", - "library": "shadcn", - "category": "Charts · Area", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-area-linear.json", - "did": "did:holo:sha256:e06cd4187d0276396be6c4f3973d7a879ef4d2c8c075cc21868439074b7a37c2", - "import": "holo://sha256:7962c49906098cd10aee30b03130ea11226dff562ad0c865096e5e98b04482a5", - "integrity": "sha256-eWLEmQYJjNEK7jCwMTDqESJt/1Yq0MhlCW5emLBEgqU=", - "kappa": "sha256:e06cd4187d0276396be6c4f3973d7a879ef4d2c8c075cc21868439074b7a37c2", - "moduleKappa": "sha256:7962c49906098cd10aee30b03130ea11226dff562ad0c865096e5e98b04482a5", - "renderExport": "ChartAreaLinear", - "source": "registry/new-york-v4/charts/chart-area-linear.tsx", - "module": "vendor/components/chart-area-linear.js", - "exports": [ - "description", - "ChartAreaLinear" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:b5350b4aace037da75eaf7a2b9e8ec5adfe864fa6838173c75526695004f0af4 +size 914 diff --git a/b/01f614a14b04997f3d83e4c67b86c66cd9c8fd3e283e835a1f758b0dcb1b029f b/b/01f614a14b04997f3d83e4c67b86c66cd9c8fd3e283e835a1f758b0dcb1b029f index baa0a157a36fffe0c96ebf2ddc56eef0328b94b0..16f0c0eaf3d98ded077d504acfef0ae517b89617 100644 --- a/b/01f614a14b04997f3d83e4c67b86c66cd9c8fd3e283e835a1f758b0dcb1b029f +++ b/b/01f614a14b04997f3d83e4c67b86c66cd9c8fd3e283e835a1f758b0dcb1b029f @@ -1,22 +1,3 @@ -qwen35 WHOLE MODEL GPU parity - -

qwen35 whole model on WebGPU — vs HF/CPU fixture (argmax token-for-token)

-
running… (needs a WebGPU browser)
- +version https://git-lfs.github.com/spec/v1 +oid sha256:4a52a2d943fe73d49e191e3b9e91a6145927f079dfaf7b6f247ca60ccc099b48 +size 1883 diff --git a/b/0217f0be099e2a66784bbab908faae7dad5885b50bb3630484490f9d42976fcf b/b/0217f0be099e2a66784bbab908faae7dad5885b50bb3630484490f9d42976fcf index cfaa3bda59246b49e94298478d6de3b3208066c8..45c94a006de752bd55d3bae9825113c0eefea9e9 100644 Binary files a/b/0217f0be099e2a66784bbab908faae7dad5885b50bb3630484490f9d42976fcf and b/b/0217f0be099e2a66784bbab908faae7dad5885b50bb3630484490f9d42976fcf differ diff --git a/b/027ff96871dd509b63c900ac842c73b0653e40d2b94ef81fbaaad24828ce4a8d b/b/027ff96871dd509b63c900ac842c73b0653e40d2b94ef81fbaaad24828ce4a8d index cd834509df8ecbcc970c84cf9083344533225a21..e6c17a7e3f9138a58d2df8335f39366a9969a90b 100644 --- a/b/027ff96871dd509b63c900ac842c73b0653e40d2b94ef81fbaaad24828ce4a8d +++ b/b/027ff96871dd509b63c900ac842c73b0653e40d2b94ef81fbaaad24828ce4a8d @@ -1,20 +1,3 @@ -{ - "id": "org.hologram.ui.example.input-otp-controlled", - "name": "input-otp-controlled", - "tier": "example", - "library": "shadcn", - "category": "Examples", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/input-otp-controlled.json", - "did": "did:holo:sha256:a318d5989c9d3240ab24438d3040af471d448622905794abbacacc3ef0caca60", - "import": "holo://sha256:27d855004c7cef7dd519a60312af2d664f07cc374aa0657500e79978d8ff5033", - "integrity": "sha256-J9hVAEx8733VGaYDEq8tZk8HzDdKoGV1AOeZeNj/UDM=", - "kappa": "sha256:a318d5989c9d3240ab24438d3040af471d448622905794abbacacc3ef0caca60", - "moduleKappa": "sha256:27d855004c7cef7dd519a60312af2d664f07cc374aa0657500e79978d8ff5033", - "renderExport": "default", - "source": "registry/new-york-v4/examples/input-otp-controlled.tsx", - "module": "vendor/components/input-otp-controlled.js", - "exports": [ - "default" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:b13ed974cf12ea0a341cf5ac4da3e39b6adbf2133cb61f9bc5f4310fc1fdfe4c +size 894 diff --git a/b/02a423c729adb6d0091355b4fa1fa90353e30d86d401053b38f9a8db197fabdc b/b/02a423c729adb6d0091355b4fa1fa90353e30d86d401053b38f9a8db197fabdc index e44586059ea1b2e5838895a757ac7b8f2e66ba3d..4e987202bea67bb0dc98cfc887b934f500505ace 100644 --- a/b/02a423c729adb6d0091355b4fa1fa90353e30d86d401053b38f9a8db197fabdc +++ b/b/02a423c729adb6d0091355b4fa1fa90353e30d86d401053b38f9a8db197fabdc @@ -1,7 +1,3 @@ -import aqua from './object.js'; -import { addPrefix } from '../../functions/addPrefix.js'; - -export default ({ addBase, prefix = '' }) => { - const prefixedaqua = addPrefix(aqua, prefix); - addBase({ ...prefixedaqua }); -}; +version https://git-lfs.github.com/spec/v1 +oid sha256:7a70c8ee987050e754349a7a7dd9eb5030e3f0e741403579a7668fade62ab2d8 +size 221 diff --git a/b/02b6d27c31aee0165976995733210ac10b4ff5aa6e7327d6b1335f5c07647dc4 b/b/02b6d27c31aee0165976995733210ac10b4ff5aa6e7327d6b1335f5c07647dc4 index dc4c4a8c7621fc07da9c7815692d02753899be5c..05c4f07ab25c35541ad861d5d43c247f304f6fb7 100644 --- a/b/02b6d27c31aee0165976995733210ac10b4ff5aa6e7327d6b1335f5c07647dc4 +++ b/b/02b6d27c31aee0165976995733210ac10b4ff5aa6e7327d6b1335f5c07647dc4 @@ -1,97 +1,3 @@ -"use client";var Ul=Object.defineProperty;var ja=(e,a)=>{for(var t in a)Ul(e,t,{get:a[t],enumerable:!0})};import*as bl from"react";function ro(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),co=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),ba="-",lo=[],zl="arbitrary..",Gl=e=>{let a=_l(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Wl(s);let u=s.split(ba),n=u[0]===""&&u.length>1?1:0;return po(u,n,a)},getConflictingClassGroupIds:(s,u)=>{if(u){let n=o[s],d=t[s];return n?d?Hl(d,n):n:d||lo}return t[s]||lo}}},po=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],l=t.nextPart.get(r);if(l){let d=po(e,a+1,l);if(d)return d}let s=t.validators;if(s===null)return;let u=a===0?e.join(ba):e.slice(a).join(ba),n=s.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?zl+o:void 0})(),_l=e=>{let{theme:a,classGroups:t}=e;return Vl(t,a)},Vl=(e,a)=>{let t=co();for(let o in e){let r=e[o];Ya(r,t,o,a)}return t},Ya=(e,a,t,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){$l(e,a,t);return}if(typeof e=="function"){jl(e,a,t,o);return}Kl(e,a,t,o)},$l=(e,a,t)=>{let o=e===""?a:mo(a,e);o.classGroupId=t},jl=(e,a,t,o)=>{if(Zl(e)){Ya(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(Nl(t,e))},Kl=(e,a,t,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let t=e,o=a.split(ba),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,Yl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),r=(l,s)=>{t[l]=s,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let s=t[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in t?t[l]=s:r(l,s)}}},Za="!",uo=":",Jl=[],so=(e,a,t,o,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:r}),Ql=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=r=>{let l=[],s=0,u=0,n=0,d,f=r.length;for(let c=0;cn?d-n:void 0;return so(l,h,p,P)};if(a){let r=a+uo,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):so(Jl,!1,s,void 0,!0)}if(t){let r=o;o=l=>t({className:l,parseClassName:r})}return o},eu=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},au=e=>({cache:Yl(e.cacheSize),parseClassName:Ql(e),sortModifiers:eu(e),postfixLookupClassGroupIds:tu(e),...Gl(e)}),tu=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],n=e.trim().split(ou),d="";for(let f=n.length-1;f>=0;f-=1){let i=n[f],{isExternal:p,modifiers:h,hasImportantModifier:P,baseClassName:c,maybePostfixModifierPosition:I}=t(i);if(p){d=i+(d.length>0?" "+d:d);continue}let g=!!I,b;if(g){let L=c.substring(0,I);b=o(L);let m=b&&s[b]?o(c):void 0;m&&m!==b&&(b=m,g=!1)}else b=o(c);if(!b){if(!g){d=i+(d.length>0?" "+d:d);continue}if(b=o(c),!b){d=i+(d.length>0?" "+d:d);continue}g=!1}let D=h.length===0?"":h.length===1?h[0]:l(h).join(":"),C=P?D+Za:D,T=C+b;if(u.indexOf(T)>-1)continue;u.push(T);let F=r(b,g);for(let L=0;L0?" "+d:d)}return d},lu=(...e)=>{let a=0,t,o,r="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,r,l,s=n=>{let d=a.reduce((f,i)=>i(f),e());return t=au(d),o=t.cache.get,r=t.cache.set,l=u,u(n)},u=n=>{let d=o(n);if(d)return d;let f=ru(n,t);return r(n,f),f};return l=s,(...n)=>l(lu(...n))},su=[],ee=e=>{let a=t=>t[e]||su;return a.isThemeGetter=!0,a},go=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ho=/^\((?:(\w[\w-]*):)?(.+)\)$/i,du=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ee=e=>du.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),be=e=>!!e&&Number.isInteger(Number(e)),Ka=e=>e.endsWith("%")&&M(e.slice(0,-1)),ke=e=>nu.test(e),xo=()=>!0,mu=e=>fu.test(e)&&!iu.test(e),Ja=()=>!1,Lu=e=>cu.test(e),gu=e=>pu.test(e),hu=e=>!w(e)&&!S(e),xu=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Iu=e=>qe(e,wo,Ja),w=e=>go.test(e),Ge=e=>qe(e,So,mu),no=e=>qe(e,Ru,M),Cu=e=>qe(e,bo,xo),wu=e=>qe(e,vo,Ja),fo=e=>qe(e,Io,Ja),Su=e=>qe(e,Co,gu),Sa=e=>qe(e,yo,Lu),S=e=>ho.test(e),fa=e=>We(e,So),vu=e=>We(e,vo),io=e=>We(e,Io),bu=e=>We(e,wo),yu=e=>We(e,Co),va=e=>We(e,yo,!0),Pu=e=>We(e,bo,!0),qe=(e,a,t)=>{let o=go.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},We=(e,a,t=!1)=>{let o=ho.exec(e);return o?o[1]?a(o[1]):t:!1},Io=e=>e==="position"||e==="percentage",Co=e=>e==="image"||e==="url",wo=e=>e==="length"||e==="size"||e==="bg-size",So=e=>e==="length",Ru=e=>e==="number",vo=e=>e==="family-name",bo=e=>e==="number"||e==="weight",yo=e=>e==="shadow";var ku=()=>{let e=ee("color"),a=ee("font"),t=ee("text"),o=ee("font-weight"),r=ee("tracking"),l=ee("leading"),s=ee("breakpoint"),u=ee("container"),n=ee("spacing"),d=ee("radius"),f=ee("shadow"),i=ee("inset-shadow"),p=ee("text-shadow"),h=ee("drop-shadow"),P=ee("blur"),c=ee("perspective"),I=ee("aspect"),g=ee("ease"),b=ee("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...C(),S,w],F=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],m=()=>[S,w,n],y=()=>[Ee,"full","auto",...m()],H=()=>[be,"none","subgrid",S,w],N=()=>["auto",{span:["full",be,S,w]},be,S,w],Z=()=>[be,"auto",S,w],R=()=>["auto","min","max","fr",S,w],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...m()],G=()=>[Ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],ie=()=>[Ee,"screen","full","dvw","lvw","svw","min","max","fit",...m()],ce=()=>[Ee,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],v=()=>[e,S,w],xa=()=>[...C(),io,fo,{position:[S,w]}],sa=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",bu,Iu,{size:[S,w]}],Te=()=>[Ka,fa,Ge],J=()=>["","none","full",d,S,w],Q=()=>["",M,fa,Ge],Se=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[M,Ka,io,fo],Ke=()=>["","none",P,S,w],he=()=>["none",M,S,w],Ne=()=>["none",M,S,w],Ze=()=>[M,S,w],A=()=>[Ee,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[xo],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[hu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",M],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ee,w,S,I]}],container:["container"],"container-type":[{"@container":["","normal","size",S,w]}],"container-named":[xu],columns:[{columns:[M,w,S,u]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{"inset-s":y(),start:y()}],end:[{"inset-e":y(),end:y()}],"inset-bs":[{"inset-bs":y()}],"inset-be":[{"inset-be":y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[be,"auto",S,w]}],basis:[{basis:[Ee,"full","auto",u,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,Ee,"auto","initial","none",w]}],grow:[{grow:["",M,S,w]}],shrink:[{shrink:["",M,S,w]}],order:[{order:[be,"first","last","none",S,w]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[u,"screen",...G()]}],"min-w":[{"min-w":[u,"screen","none",...G()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",t,fa,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Pu,Cu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ka,w]}],"font-family":[{font:[vu,wu,a]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,S,w]}],"line-clamp":[{"line-clamp":[M,"none",S,no]}],leading:[{leading:[l,...m()]}],"list-image":[{"list-image":["none",S,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",S,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",S,Ge]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[M,"auto",S,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[be,S,w]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xa()}],"bg-repeat":[{bg:sa()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},be,S,w],radial:["",S,w],conic:[be,S,w]},yu,Su]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,S,w]}],"outline-w":[{outline:["",M,fa,Ge]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",f,va,Sa]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",i,va,Sa]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[M,Ge]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",p,va,Sa]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[M,S,w]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[S,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xa()}],"mask-repeat":[{mask:sa()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",S,w]}],filter:[{filter:["","none",S,w]}],blur:[{blur:Ke()}],brightness:[{brightness:[M,S,w]}],contrast:[{contrast:[M,S,w]}],"drop-shadow":[{"drop-shadow":["","none",h,va,Sa]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",M,S,w]}],"hue-rotate":[{"hue-rotate":[M,S,w]}],invert:[{invert:["",M,S,w]}],saturate:[{saturate:[M,S,w]}],sepia:[{sepia:["",M,S,w]}],"backdrop-filter":[{"backdrop-filter":["","none",S,w]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[M,S,w]}],"backdrop-contrast":[{"backdrop-contrast":[M,S,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,S,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,S,w]}],"backdrop-invert":[{"backdrop-invert":["",M,S,w]}],"backdrop-opacity":[{"backdrop-opacity":[M,S,w]}],"backdrop-saturate":[{"backdrop-saturate":[M,S,w]}],"backdrop-sepia":[{"backdrop-sepia":["",M,S,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",S,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",S,w]}],ease:[{ease:["linear","initial",g,S,w]}],delay:[{delay:[M,S,w]}],animate:[{animate:["none",b,S,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[c,S,w]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[S,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:A()}],"translate-x":[{"translate-x":A()}],"translate-y":[{"translate-y":A()}],"translate-z":[{"translate-z":A()}],"translate-none":["translate-none"],zoom:[{zoom:[be,S,w]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S,w]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[M,fa,Ge,no]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Po=uu(ku);function j(...e){return Po(wa(e))}import*as ya from"react";function Ro(e){let[a,t]=ya.useState(!1);return ya.useEffect(()=>{function o(l){t(l.matches)}let r=matchMedia(e);return r.addEventListener("change",o),t(r.matches),()=>r.removeEventListener("change",o)},[e]),a}var ko=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Do=wa,Ao=(e,a)=>t=>{var o;if(a?.variants==null)return Do(e,t?.class,t?.className);let{variants:r,defaultVariants:l}=a,s=Object.keys(r).map(d=>{let f=t?.[d],i=l?.[d];if(f===null)return null;let p=ko(f)||ko(i);return r[d][p]}),u=t&&Object.entries(t).reduce((d,f)=>{let[i,p]=f;return p===void 0||(d[i]=p),d},{}),n=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:i,className:p,...h}=f;return Object.entries(h).every(P=>{let[c,I]=P;return Array.isArray(I)?I.includes({...l,...u}[c]):{...l,...u}[c]===I})?[...d,i,p]:d},[]);return Do(e,s,n,t?.class,t?.className)};import*as Eo from"react";import*as qo from"react-dom";var Ra={};ja(Ra,{Root:()=>Au,Slot:()=>Au,Slottable:()=>Mu,createSlot:()=>Je,createSlottable:()=>Oo});import*as re from"react";import*as To from"react";function Mo(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function Du(...e){return a=>{let t=!1,o=e.map(r=>{let l=Mo(r,a);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let r=0;r{let{children:r,...l}=t,s=null,u=!1,n=[];Fo(r)&&typeof Pa=="function"&&(r=Pa(r._payload)),re.Children.forEach(r,p=>{if(Ou(p)){u=!0;let h=p,P="child"in h.props?h.props.child:h.props.children;Fo(P)&&typeof Pa=="function"&&(P=Pa(P._payload)),s=Tu(h,P),n.push(s?.props?.children)}else n.push(p)}),s?s=re.cloneElement(s,void 0,n):!u&&re.Children.count(r)===1&&re.isValidElement(r)&&(s=r);let d=s?Bu(s):void 0,f=Ie(o,d);if(!s){if(r||r===0)throw new Error(u?Hu(e):Uu(e));return r}let i=Fu(l,s.props??{});return s.type!==re.Fragment&&(i.ref=o?f:d),re.cloneElement(s,i)});return a.displayName=`${e}.Slot`,a}var Au=Je("Slot"),Bo=Symbol.for("radix.slottable");function Oo(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=Bo,a}var Mu=Oo("Slottable"),Tu=(e,a)=>{if("child"in e.props){let t=e.props.child;return re.isValidElement(t)?re.cloneElement(t,void 0,e.props.children(t.props.children)):null}return re.isValidElement(a)?a:null};function Fu(e,a){let t={...a};for(let o in a){let r=e[o],l=a[o];/^on[A-Z]/.test(o)?r&&l?t[o]=(...u)=>{let n=l(...u);return r(...u),n}:r&&(t[o]=r):o==="style"?t[o]={...r,...l}:o==="className"&&(t[o]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}function Bu(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Ou(e){return re.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bo}var Eu=Symbol.for("react.lazy");function Fo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Eu&&"_payload"in e&&qu(e._payload)}function qu(e){return typeof e=="object"&&e!==null&&"then"in e}var Uu=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Hu=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pa=re[" use ".trim().toString()];import{jsx as Nu}from"react/jsx-runtime";var zu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=zu.reduce((e,a)=>{let t=Je(`Primitive.${a}`),o=Eo.forwardRef((r,l)=>{let{asChild:s,...u}=r,n=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Nu(n,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function Uo(e,a){e&&qo.flushSync(()=>e.dispatchEvent(a))}import*as pe from"react";import{jsx as Ho}from"react/jsx-runtime";function No(e,a){let t=pe.createContext(a);t.displayName=e+"Context";let o=l=>{let{children:s,...u}=l,n=pe.useMemo(()=>u,Object.values(u));return Ho(t.Provider,{value:n,children:s})};o.displayName=e+"Provider";function r(l){let s=pe.useContext(t);if(s)return s;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,r]}function zo(e,a=[]){let t=[];function o(l,s){let u=pe.createContext(s);u.displayName=l+"Context";let n=t.length;t=[...t,s];let d=i=>{let{scope:p,children:h,...P}=i,c=p?.[e]?.[n]||u,I=pe.useMemo(()=>P,Object.values(P));return Ho(c.Provider,{value:I,children:h})};d.displayName=l+"Provider";function f(i,p){let h=p?.[e]?.[n]||u,P=pe.useContext(h);if(P)return P;if(s!==void 0)return s;throw new Error(`\`${i}\` must be used within \`${l}\``)}return[d,f]}let r=()=>{let l=t.map(s=>pe.createContext(s));return function(u){let n=u?.[e]||l;return pe.useMemo(()=>({[`__scope${e}`]:{...u,[e]:n}}),[u,n])}};return r.scopeName=e,[o,Gu(r,...a)]}function Gu(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((u,{useScope:n,scopeName:d})=>{let i=n(l)[`__scope${d}`];return{...u,...i}},{});return pe.useMemo(()=>({[`__scope${a.scopeName}`]:s}),[s])}};return t.scopeName=a.scopeName,t}var rn=!!(typeof window<"u"&&window.document&&window.document.createElement);function ye(e,a,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),t===!1||!r.defaultPrevented)return a?.(r)}}import*as me from"react";import*as Go from"react";var De=globalThis?.document?Go.useLayoutEffect:()=>{};import*as ka from"react";var Wu=me[" useInsertionEffect ".trim().toString()]||De;function Wo({prop:e,defaultProp:a,onChange:t=()=>{},caller:o}){let[r,l,s]=_u({defaultProp:a,onChange:t}),u=e!==void 0,n=u?e:r;{let f=me.useRef(e!==void 0);me.useEffect(()=>{let i=f.current;i!==u&&console.warn(`${o} is changing from ${i?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=u},[u,o])}let d=me.useCallback(f=>{if(u){let i=Vu(f)?f(e):f;i!==e&&s.current?.(i)}else l(f)},[u,e,l,s]);return[n,d]}function _u({defaultProp:e,onChange:a}){let[t,o]=me.useState(e),r=me.useRef(t),l=me.useRef(a);return Wu(()=>{l.current=a},[a]),me.useEffect(()=>{r.current!==t&&(l.current?.(t),r.current=t)},[t,r]),[t,o,l]}function Vu(e){return typeof e=="function"}var dn=Symbol("RADIX:SYNC_STATE");import*as le from"react";import*as Vo from"react";function Xu(e,a){return Vo.useReducer((t,o)=>a[t][o]??t,e)}var ia=e=>{let{present:a,children:t}=e,o=$u(a),r=typeof t=="function"?t({present:o.isPresent}):le.Children.only(t),l=ju(o.ref,Ku(r));return typeof t=="function"||o.isPresent?le.cloneElement(r,{ref:l}):null};ia.displayName="Presence";function $u(e){let[a,t]=le.useState(),o=le.useRef(null),r=le.useRef(e),l=le.useRef("none"),s=e?"mounted":"unmounted",[u,n]=Xu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return le.useEffect(()=>{let d=Da(o.current);l.current=u==="mounted"?d:"none"},[u]),De(()=>{let d=o.current,f=r.current;if(f!==e){let p=l.current,h=Da(d);e?n("MOUNT"):h==="none"||d?.display==="none"?n("UNMOUNT"):n(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,n]),De(()=>{if(a){let d,f=a.ownerDocument.defaultView??window,i=h=>{let c=Da(o.current).includes(CSS.escape(h.animationName));if(h.target===a&&c&&(n("ANIMATION_END"),!r.current)){let I=a.style.animationFillMode;a.style.animationFillMode="forwards",d=f.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=I)})}},p=h=>{h.target===a&&(l.current=Da(o.current))};return a.addEventListener("animationstart",p),a.addEventListener("animationcancel",i),a.addEventListener("animationend",i),()=>{f.clearTimeout(d),a.removeEventListener("animationstart",p),a.removeEventListener("animationcancel",i),a.removeEventListener("animationend",i)}}else n("ANIMATION_END")},[a,n]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:le.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function _o(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function ju(...e){let a=le.useRef(e);return a.current=e,le.useCallback(t=>{let o=a.current,r=!1,l=o.map(s=>{let u=_o(s,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s{}),Yu=0;function Aa(e){let[a,t]=Qa.useState(Zu());return De(()=>{e||t(o=>o??String(Yu++))},[e]),e||(a?`radix-${a}`:"")}var ge={};ja(ge,{Close:()=>Ht,Content:()=>Et,Description:()=>Ut,Dialog:()=>wt,DialogClose:()=>At,DialogContent:()=>Pt,DialogDescription:()=>Dt,DialogOverlay:()=>yt,DialogPortal:()=>bt,DialogTitle:()=>kt,DialogTrigger:()=>St,Overlay:()=>Ot,Portal:()=>Bt,Root:()=>Tt,Title:()=>qt,Trigger:()=>Ft,WarningProvider:()=>$s,createDialogScope:()=>Ns});import*as q from"react";import*as W from"react";import*as Qe from"react";function Ue(e){let a=Qe.useRef(e);return Qe.useEffect(()=>{a.current=e}),Qe.useMemo(()=>(...t)=>a.current?.(...t),[])}import*as Xo from"react";function $o(e,a=globalThis?.document){let t=Ue(e);Xo.useEffect(()=>{let o=r=>{r.key==="Escape"&&t(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[t,a])}import{jsx as Zo}from"react/jsx-runtime";var Ju="DismissableLayer",et="dismissableLayer.update",Qu="dismissableLayer.pointerDownOutside",es="dismissableLayer.focusOutside",jo,Yo=W.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),at=W.forwardRef((e,a)=>{let{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...n}=e,d=W.useContext(Yo),[f,i]=W.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=W.useState({}),P=Ie(a,L=>i(L)),c=Array.from(d.layers),[I]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=c.indexOf(I),b=f?c.indexOf(f):-1,D=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=g,T=os(L=>{let m=L.target,y=[...d.branches].some(H=>H.contains(m));!C||y||(r?.(L),s?.(L),L.defaultPrevented||u?.())},p),F=rs(L=>{let m=L.target;[...d.branches].some(H=>H.contains(m))||(l?.(L),s?.(L),L.defaultPrevented||u?.())},p);return $o(L=>{b===d.layers.size-1&&(o?.(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},p),W.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jo=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ko(),()=>{t&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=jo))}},[f,p,t,d]),W.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ko())},[f,d]),W.useEffect(()=>{let L=()=>h({});return document.addEventListener(et,L),()=>document.removeEventListener(et,L)},[]),Zo(de.div,{...n,ref:P,style:{pointerEvents:D?C?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,T.onPointerDownCapture)})});at.displayName=Ju;var as="DismissableLayerBranch",ts=W.forwardRef((e,a)=>{let t=W.useContext(Yo),o=W.useRef(null),r=Ie(a,o);return W.useEffect(()=>{let l=o.current;if(l)return t.branches.add(l),()=>{t.branches.delete(l)}},[t.branches]),Zo(de.div,{...e,ref:r})});ts.displayName=as;function os(e,a=globalThis?.document){let t=Ue(e),o=W.useRef(!1),r=W.useRef(()=>{});return W.useEffect(()=>{let l=u=>{if(u.target&&!o.current){let d=function(){Jo(Qu,t,f,{discrete:!0})};var n=d;let f={originalEvent:u};u.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=d,a.addEventListener("click",r.current,{once:!0})):d()}else a.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{a.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",l),a.removeEventListener("click",r.current)}},[a,t]),{onPointerDownCapture:()=>o.current=!0}}function rs(e,a=globalThis?.document){let t=Ue(e),o=W.useRef(!1);return W.useEffect(()=>{let r=l=>{l.target&&!o.current&&Jo(es,t,{originalEvent:l},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ko(){let e=new CustomEvent(et);document.dispatchEvent(e)}function Jo(e,a,t,{discrete:o}){let r=t.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});a&&r.addEventListener(e,a,{once:!0}),o?Uo(r,l):r.dispatchEvent(l)}import*as Le from"react";import{jsx as ls}from"react/jsx-runtime";var tt="focusScope.autoFocusOnMount",ot="focusScope.autoFocusOnUnmount",Qo={bubbles:!1,cancelable:!0},us="FocusScope",rt=Le.forwardRef((e,a)=>{let{loop:t=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[u,n]=Le.useState(null),d=Ue(r),f=Ue(l),i=Le.useRef(null),p=Ie(a,c=>n(c)),h=Le.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Le.useEffect(()=>{if(o){let b=function(F){if(h.paused||!u)return;let L=F.target;u.contains(L)?i.current=L:He(i.current,{select:!0})},D=function(F){if(h.paused||!u)return;let L=F.relatedTarget;L!==null&&(u.contains(L)||He(i.current,{select:!0}))},C=function(F){if(document.activeElement===document.body)for(let m of F)m.removedNodes.length>0&&He(u)};var c=b,I=D,g=C;document.addEventListener("focusin",b),document.addEventListener("focusout",D);let T=new MutationObserver(C);return u&&T.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",D),T.disconnect()}}},[o,u,h.paused]),Le.useEffect(()=>{if(u){ar.add(h);let c=document.activeElement;if(!u.contains(c)){let g=new CustomEvent(tt,Qo);u.addEventListener(tt,d),u.dispatchEvent(g),g.defaultPrevented||(ss(cs(or(u)),{select:!0}),document.activeElement===c&&He(u))}return()=>{u.removeEventListener(tt,d),setTimeout(()=>{let g=new CustomEvent(ot,Qo);u.addEventListener(ot,f),u.dispatchEvent(g),g.defaultPrevented||He(c??document.body,{select:!0}),u.removeEventListener(ot,f),ar.remove(h)},0)}}},[u,d,f,h]);let P=Le.useCallback(c=>{if(!t&&!o||h.paused)return;let I=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,g=document.activeElement;if(I&&g){let b=c.currentTarget,[D,C]=ds(b);D&&C?!c.shiftKey&&g===C?(c.preventDefault(),t&&He(D,{select:!0})):c.shiftKey&&g===D&&(c.preventDefault(),t&&He(C,{select:!0})):g===b&&c.preventDefault()}},[t,o,h.paused]);return ls(de.div,{tabIndex:-1,...s,ref:p,onKeyDown:P})});rt.displayName=us;function ss(e,{select:a=!1}={}){let t=document.activeElement;for(let o of e)if(He(o,{select:a}),document.activeElement!==t)return}function ds(e){let a=or(e),t=er(a,e),o=er(a.reverse(),e);return[t,o]}function or(e){let a=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)a.push(t.currentNode);return a}function er(e,a){for(let t of e)if(!ns(t,{upTo:a}))return t}function ns(e,{upTo:a}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(a!==void 0&&e===a)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fs(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:a=!1}={}){if(e&&e.focus){let t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&fs(e)&&a&&e.select()}}var ar=is();function is(){let e=[];return{add(a){let t=e[0];a!==t&&t?.pause(),e=tr(e,a),e.unshift(a)},remove(a){e=tr(e,a),e[0]?.resume()}}}function tr(e,a){let t=[...e],o=t.indexOf(a);return o!==-1&&t.splice(o,1),t}function cs(e){return e.filter(a=>a.tagName!=="A")}import*as Ma from"react";import*as rr from"react-dom";import{jsx as ps}from"react/jsx-runtime";var ms="Portal",lt=Ma.forwardRef((e,a)=>{let{container:t,...o}=e,[r,l]=Ma.useState(!1);De(()=>l(!0),[]);let s=t||r&&globalThis?.document?.body;return s?rr.createPortal(ps(de.div,{...o,ref:a}),s):null});lt.displayName=ms;import*as ur from"react";var Ta=0,ea=null;function sr(){ur.useEffect(()=>{ea||(ea={start:lr(),end:lr()});let{start:e,end:a}=ea;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),Ta++,()=>{Ta===1&&(ea?.start.remove(),ea?.end.remove(),ea=null),Ta=Math.max(0,Ta-1)}},[])}function lr(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fe=function(){return fe=Object.assign||function(a){for(var t,o=1,r=arguments.length;o"u")return Ss;var a=vs(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-t+a[2]-a[0])}};var bs=pa(),aa="data-scroll-locked",ys=function(e,a,t,o){var r=e.left,l=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),` - .`.concat(ut,` { - overflow: hidden `).concat(o,`; - padding-right: `).concat(u,"px ").concat(o,`; - } - body[`).concat(aa,`] { - overflow: hidden `).concat(o,`; - overscroll-behavior: contain; - `).concat([a&&"position: relative ".concat(o,";"),t==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(o,`; - `),t==="padding"&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),` - } - - .`).concat(_e,` { - right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(Ve,` { - margin-right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(_e," .").concat(_e,` { - right: 0 `).concat(o,`; - } - - .`).concat(Ve," .").concat(Ve,` { - margin-right: 0 `).concat(o,`; - } - - body[`).concat(aa,`] { - `).concat(st,": ").concat(u,`px; - } -`)},gr=function(){var e=parseInt(document.body.getAttribute(aa)||"0",10);return isFinite(e)?e:0},Ps=function(){ta.useEffect(function(){return document.body.setAttribute(aa,(gr()+1).toString()),function(){var e=gr()-1;e<=0?document.body.removeAttribute(aa):document.body.setAttribute(aa,e.toString())}},[])},gt=function(e){var a=e.noRelative,t=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Ps();var l=ta.useMemo(function(){return Lt(r)},[r]);return ta.createElement(bs,{styles:ys(l,!a,r,t?"":"!important")})};var ht=!1;if(typeof window<"u")try{ma=Object.defineProperty({},"passive",{get:function(){return ht=!0,!0}}),window.addEventListener("test",ma,ma),window.removeEventListener("test",ma,ma)}catch{ht=!1}var ma,Xe=ht?{passive:!1}:!1;var Rs=function(e){return e.tagName==="TEXTAREA"},hr=function(e,a){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[a]!=="hidden"&&!(t.overflowY===t.overflowX&&!Rs(e)&&t[a]==="visible")},ks=function(e){return hr(e,"overflowY")},Ds=function(e){return hr(e,"overflowX")},xt=function(e,a){var t=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=xr(e,o);if(r){var l=Ir(e,o),s=l[1],u=l[2];if(s>u)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},As=function(e){var a=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[a,t,o]},Ms=function(e){var a=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[a,t,o]},xr=function(e,a){return e==="v"?ks(a):Ds(a)},Ir=function(e,a){return e==="v"?As(a):Ms(a)},Ts=function(e,a){return e==="h"&&a==="rtl"?-1:1},Cr=function(e,a,t,o,r){var l=Ts(e,window.getComputedStyle(a).direction),s=l*o,u=t.target,n=a.contains(u),d=!1,f=s>0,i=0,p=0;do{if(!u)break;var h=Ir(e,u),P=h[0],c=h[1],I=h[2],g=c-I-l*P;(P||g)&&xr(e,u)&&(i+=g,p+=P);var b=u.parentNode;u=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!n&&u!==document.body||n&&(a.contains(u)||a===u));return(f&&(r&&Math.abs(i)<1||!r&&s>i)||!f&&(r&&Math.abs(p)<1||!r&&-s>p))&&(d=!0),d};var qa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wr=function(e){return[e.deltaX,e.deltaY]},Sr=function(e){return e&&"current"in e?e.current:e},Fs=function(e,a){return e[0]===a[0]&&e[1]===a[1]},Bs=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Os=0,oa=[];function vr(e){var a=U.useRef([]),t=U.useRef([0,0]),o=U.useRef(),r=U.useState(Os++)[0],l=U.useState(pa)[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var c=dr([e.lockRef.current],(e.shards||[]).map(Sr),!0).filter(Boolean);return c.forEach(function(I){return I.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),c.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=U.useCallback(function(c,I){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!s.current.allowPinchZoom;var g=qa(c),b=t.current,D="deltaX"in c?c.deltaX:b[0]-g[0],C="deltaY"in c?c.deltaY:b[1]-g[1],T,F=c.target,L=Math.abs(D)>Math.abs(C)?"h":"v";if("touches"in c&&L==="h"&&F.type==="range")return!1;var m=window.getSelection(),y=m&&m.anchorNode,H=y?y===F||y.contains(F):!1;if(H)return!1;var N=xt(L,F);if(!N)return!0;if(N?T=L:(T=L==="v"?"h":"v",N=xt(L,F)),!N)return!1;if(!o.current&&"changedTouches"in c&&(D||C)&&(o.current=T),!T)return!0;var Z=o.current||T;return Cr(Z,I,c,Z==="h"?D:C,!0)},[]),n=U.useCallback(function(c){var I=c;if(!(!oa.length||oa[oa.length-1]!==l)){var g="deltaY"in I?wr(I):qa(I),b=a.current.filter(function(T){return T.name===I.type&&(T.target===I.target||I.target===T.shadowParent)&&Fs(T.delta,g)})[0];if(b&&b.should){I.cancelable&&I.preventDefault();return}if(!b){var D=(s.current.shards||[]).map(Sr).filter(Boolean).filter(function(T){return T.contains(I.target)}),C=D.length>0?u(I,D[0]):!s.current.noIsolation;C&&I.cancelable&&I.preventDefault()}}},[]),d=U.useCallback(function(c,I,g,b){var D={name:c,delta:I,target:g,should:b,shadowParent:Es(g)};a.current.push(D),setTimeout(function(){a.current=a.current.filter(function(C){return C!==D})},1)},[]),f=U.useCallback(function(c){t.current=qa(c),o.current=void 0},[]),i=U.useCallback(function(c){d(c.type,wr(c),c.target,u(c,e.lockRef.current))},[]),p=U.useCallback(function(c){d(c.type,qa(c),c.target,u(c,e.lockRef.current))},[]);U.useEffect(function(){return oa.push(l),e.setCallbacks({onScrollCapture:i,onWheelCapture:i,onTouchMoveCapture:p}),document.addEventListener("wheel",n,Xe),document.addEventListener("touchmove",n,Xe),document.addEventListener("touchstart",f,Xe),function(){oa=oa.filter(function(c){return c!==l}),document.removeEventListener("wheel",n,Xe),document.removeEventListener("touchmove",n,Xe),document.removeEventListener("touchstart",f,Xe)}},[]);var h=e.removeScrollBar,P=e.inert;return U.createElement(U.Fragment,null,P?U.createElement(l,{styles:Bs(r)}):null,h?U.createElement(gt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Es(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}var br=ft(Ea,vr);var yr=Ua.forwardRef(function(e,a){return Ua.createElement(ca,fe({},e,{ref:a,sideCar:br}))});yr.classNames=ca.classNames;var It=yr;var qs=function(e){if(typeof document>"u")return null;var a=Array.isArray(e)?e[0]:e;return a.ownerDocument.body},ra=new WeakMap,Ha=new WeakMap,Na={},Ct=0,Pr=function(e){return e&&(e.host||Pr(e.parentNode))},Us=function(e,a){return a.map(function(t){if(e.contains(t))return t;var o=Pr(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},Hs=function(e,a,t,o){var r=Us(a,Array.isArray(e)?e:[e]);Na[t]||(Na[t]=new WeakMap);var l=Na[t],s=[],u=new Set,n=new Set(r),d=function(i){!i||u.has(i)||(u.add(i),d(i.parentNode))};r.forEach(d);var f=function(i){!i||n.has(i)||Array.prototype.forEach.call(i.children,function(p){if(u.has(p))f(p);else try{var h=p.getAttribute(o),P=h!==null&&h!=="false",c=(ra.get(p)||0)+1,I=(l.get(p)||0)+1;ra.set(p,c),l.set(p,I),s.push(p),c===1&&P&&Ha.set(p,!0),I===1&&p.setAttribute(t,"true"),P||p.setAttribute(o,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return f(a),u.clear(),Ct++,function(){s.forEach(function(i){var p=ra.get(i)-1,h=l.get(i)-1;ra.set(i,p),l.set(i,h),p||(Ha.has(i)||i.removeAttribute(o),Ha.delete(i)),h||i.removeAttribute(t)}),Ct--,Ct||(ra=new WeakMap,ra=new WeakMap,Ha=new WeakMap,Na={})}},Rr=function(e,a,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a||qs(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Hs(o,r,t,"aria-hidden")):function(){return null}};import{Fragment as kr,jsx as K,jsxs as Dr}from"react/jsx-runtime";var Ga="Dialog",[Ar,Ns]=zo(Ga),[zs,Ce]=Ar(Ga),wt=e=>{let{__scopeDialog:a,children:t,open:o,defaultOpen:r,onOpenChange:l,modal:s=!0}=e,u=q.useRef(null),n=q.useRef(null),[d,f]=Wo({prop:o,defaultProp:r??!1,onChange:l,caller:Ga});return K(zs,{scope:a,triggerRef:u,contentRef:n,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),open:d,onOpenChange:f,onOpenToggle:q.useCallback(()=>f(i=>!i),[f]),modal:s,children:t})};wt.displayName=Ga;var Mr="DialogTrigger",St=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Ce(Mr,t),l=Ie(a,r.triggerRef);return K(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":Mt(r.open),...o,ref:l,onClick:ye(e.onClick,r.onOpenToggle)})});St.displayName=Mr;var vt="DialogPortal",[Gs,Tr]=Ar(vt,{forceMount:void 0}),bt=e=>{let{__scopeDialog:a,forceMount:t,children:o,container:r}=e,l=Ce(vt,a);return K(Gs,{scope:a,forceMount:t,children:q.Children.map(o,s=>K(ia,{present:t||l.open,children:K(lt,{asChild:!0,container:r,children:s})}))})};bt.displayName=vt;var za="DialogOverlay",yt=q.forwardRef((e,a)=>{let t=Tr(za,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Ce(za,e.__scopeDialog);return l.modal?K(ia,{present:o||l.open,children:K(_s,{...r,ref:a})}):null});yt.displayName=za;var Ws=Je("DialogOverlay.RemoveScroll"),_s=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Ce(za,t);return K(It,{as:Ws,allowPinchZoom:!0,shards:[r.contentRef],children:K(de.div,{"data-state":Mt(r.open),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})}),$e="DialogContent",Pt=q.forwardRef((e,a)=>{let t=Tr($e,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Ce($e,e.__scopeDialog);return K(ia,{present:o||l.open,children:l.modal?K(Vs,{...r,ref:a}):K(Xs,{...r,ref:a})})});Pt.displayName=$e;var Vs=q.forwardRef((e,a)=>{let t=Ce($e,e.__scopeDialog),o=q.useRef(null),r=Ie(a,t.contentRef,o);return q.useEffect(()=>{let l=o.current;if(l)return Rr(l)},[]),K(Fr,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,onCloseAutoFocus:ye(e.onCloseAutoFocus,l=>{l.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,l=>{let s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0;(s.button===2||u)&&l.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,l=>l.preventDefault())})}),Xs=q.forwardRef((e,a)=>{let t=Ce($e,e.__scopeDialog),o=q.useRef(!1),r=q.useRef(!1);return K(Fr,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||t.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=l.target;t.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&r.current&&l.preventDefault()}})}),Fr=q.forwardRef((e,a)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:l,...s}=e,u=Ce($e,t),n=q.useRef(null),d=Ie(a,n);return sr(),Dr(kr,{children:[K(rt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:l,children:K(at,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Mt(u.open),...s,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),Dr(kr,{children:[K(js,{titleId:u.titleId}),K(Zs,{contentRef:n,descriptionId:u.descriptionId})]})]})}),Rt="DialogTitle",kt=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Ce(Rt,t);return K(de.h2,{id:r.titleId,...o,ref:a})});kt.displayName=Rt;var Br="DialogDescription",Dt=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Ce(Br,t);return K(de.p,{id:r.descriptionId,...o,ref:a})});Dt.displayName=Br;var Or="DialogClose",At=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Ce(Or,t);return K(de.button,{type:"button",...o,ref:a,onClick:ye(e.onClick,()=>r.onOpenChange(!1))})});At.displayName=Or;function Mt(e){return e?"open":"closed"}var Er="DialogTitleWarning",[$s,qr]=No(Er,{contentName:$e,titleName:Rt,docsSlug:"dialog"}),js=({titleId:e})=>{let a=qr(Er),t=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return q.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Ks="DialogDescriptionWarning",Zs=({contentRef:e,descriptionId:a})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qr(Ks).contentName}}.`;return q.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");a&&r&&(document.getElementById(a)||console.warn(o))},[o,e,a]),null},Tt=wt,Ft=St,Bt=bt,Ot=yt,Et=Pt,qt=kt,Ut=Dt,Ht=At;var Wa={};ja(Wa,{Label:()=>Nt,Root:()=>Qs});import*as Ur from"react";import{jsx as Ys}from"react/jsx-runtime";var Js="Label",Nt=Ur.forwardRef((e,a)=>Ys(de.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Nt.displayName=Js;var Qs=Nt;import{jsx as ad}from"react/jsx-runtime";var ed=Ao("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function la({className:e,variant:a="default",size:t="default",asChild:o=!1,...r}){let l=o?Ra.Root:"button";return ad(l,{"data-slot":"button","data-variant":a,"data-size":t,className:j(ed({variant:a,size:t,className:e})),...r})}import{forwardRef as od,createElement as rd}from"react";var Hr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_a=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as td,createElement as zr}from"react";var Nr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Gr=td(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},n)=>zr("svg",{ref:n,...Nr,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:_a("lucide",r),...u},[...s.map(([d,f])=>zr(d,f)),...Array.isArray(l)?l:[l]]));var Wr=(e,a)=>{let t=od(({className:o,...r},l)=>rd(Gr,{ref:l,iconNode:a,className:_a(`lucide-${Hr(e)}`,o),...r}));return t.displayName=`${e}`,t};var La=Wr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);import{jsx as Pe,jsxs as zt}from"react/jsx-runtime";function _r({...e}){return Pe(ge.Root,{"data-slot":"dialog",...e})}function Vr({...e}){return Pe(ge.Trigger,{"data-slot":"dialog-trigger",...e})}function ld({...e}){return Pe(ge.Portal,{"data-slot":"dialog-portal",...e})}function ud({className:e,...a}){return Pe(ge.Overlay,{"data-slot":"dialog-overlay",className:j("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...a})}function Xr({className:e,children:a,showCloseButton:t=!0,...o}){return zt(ld,{"data-slot":"dialog-portal",children:[Pe(ud,{}),zt(ge.Content,{"data-slot":"dialog-content",className:j("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...o,children:[a,t&&zt(ge.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[Pe(La,{}),Pe("span",{className:"sr-only",children:"Close"})]})]})]})}function $r({className:e,...a}){return Pe("div",{"data-slot":"dialog-header",className:j("flex flex-col gap-2 text-center sm:text-left",e),...a})}function jr({className:e,...a}){return Pe(ge.Title,{"data-slot":"dialog-title",className:j("text-lg leading-none font-semibold",e),...a})}function Kr({className:e,...a}){return Pe(ge.Description,{"data-slot":"dialog-description",className:j("text-sm text-muted-foreground",e),...a})}import*as el from"react";import x,{useLayoutEffect as dd,useEffect as nd,useMemo as fd}from"react";function sd(e){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",a.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}var al=x.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ua=()=>{let e=x.useContext(al);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};sd(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not( -[data-state=closed] -){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function id(){let e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function cd(){return jt(/^Mac/)}function pd(){return jt(/^iPhone/)}function Zr(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function md(){return jt(/^iPad/)||cd()&&navigator.maxTouchPoints>1}function tl(){return pd()||md()}function jt(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Ld=24,gd=typeof window<"u"?dd:nd;function Yr(...e){return(...a)=>{for(let t of e)typeof t=="function"&&t(...a)}}var Gt=typeof document<"u"&&window.visualViewport;function Jr(e){let a=window.getComputedStyle(e);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function ol(e){for(Jr(e)&&(e=e.parentElement);e&&!Jr(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var hd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Va=0,Wt;function xd(e={}){let{isDisabled:a}=e;gd(()=>{if(!a)return Va++,Va===1&&tl()&&(Wt=Id()),()=>{Va--,Va===0&&Wt?.()}},[a])}function Id(){let e,a=0,t=i=>{e=ol(i.target),!(e===document.documentElement&&e===document.body)&&(a=i.changedTouches[0].pageY)},o=i=>{if(!e||e===document.documentElement||e===document.body){i.preventDefault();return}let p=i.changedTouches[0].pageY,h=e.scrollTop,P=e.scrollHeight-e.clientHeight;P!==0&&((h<=0&&p>a||h>=P&&p{let p=i.target;Xt(p)&&p!==document.activeElement&&(i.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},l=i=>{let p=i.target;Xt(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Gt&&(Gt.height{Qr(p)}):Gt.addEventListener("resize",()=>Qr(p),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},u=window.pageXOffset,n=window.pageYOffset,d=Yr(Cd(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=Yr(ga(document,"touchstart",t,{passive:!1,capture:!0}),ga(document,"touchmove",o,{passive:!1,capture:!0}),ga(document,"touchend",r,{passive:!1,capture:!0}),ga(document,"focus",l,!0),ga(window,"scroll",s));return()=>{d(),f(),window.scrollTo(u,n)}}function Cd(e,a,t){let o=e.style[a];return e.style[a]=t,()=>{e.style[a]=o}}function ga(e,a,t,o){return e.addEventListener(a,t,o),()=>{e.removeEventListener(a,t,o)}}function Qr(e){let a=document.scrollingElement||document.documentElement;for(;e&&e!==a;){let t=ol(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let o=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top,l=e.getBoundingClientRect().bottom,s=t.getBoundingClientRect().bottom+Ld;l>s&&(t.scrollTop+=r-o)}e=t.parentElement}}function Xt(e){return e instanceof HTMLInputElement&&!hd.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function wd(e,a){typeof e=="function"?e(a):e!=null&&(e.current=a)}function Sd(...e){return a=>e.forEach(t=>wd(t,a))}function rl(...e){return el.useCallback(Sd(...e),e)}var ll=new WeakMap;function ae(e,a,t=!1){if(!e||!(e instanceof HTMLElement))return;let o={};Object.entries(a).forEach(([r,l])=>{if(r.startsWith("--")){e.style.setProperty(r,l);return}o[r]=e.style[r],e.style[r]=l}),!t&&ll.set(e,o)}function vd(e,a){if(!e||!(e instanceof HTMLElement))return;let t=ll.get(e);t&&(e.style[a]=t[a])}var Y=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Xa(e,a){if(!e)return null;let t=window.getComputedStyle(e),o=t.transform||t.webkitTransform||t.mozTransform,r=o.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[Y(a)?13:12]):(r=o.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[Y(a)?5:4]):null)}function bd(e){return 8*(Math.log(e+1)-2)}function _t(e,a){if(!e)return()=>{};let t=e.style.cssText;return Object.assign(e.style,a),()=>{e.style.cssText=t}}function yd(...e){return(...a)=>{for(let t of e)typeof t=="function"&&t(...a)}}var _={DURATION:.5,EASE:[.32,.72,0,1]},ul=.4,Pd=.25,Rd=100,sl=8,je=16,$t=26,Vt="vaul-dragging";function dl(e){let a=x.useRef(e);return x.useEffect(()=>{a.current=e}),x.useMemo(()=>(...t)=>a.current==null?void 0:a.current.call(a,...t),[])}function kd({defaultProp:e,onChange:a}){let t=x.useState(e),[o]=t,r=x.useRef(o),l=dl(a);return x.useEffect(()=>{r.current!==o&&(l(o),r.current=o)},[o,r,l]),t}function nl({prop:e,defaultProp:a,onChange:t=()=>{}}){let[o,r]=kd({defaultProp:a,onChange:t}),l=e!==void 0,s=l?e:o,u=dl(t),n=x.useCallback(d=>{if(l){let i=typeof d=="function"?d(e):d;i!==e&&u(i)}else r(d)},[l,e,r,u]);return[s,n]}function Dd({activeSnapPointProp:e,setActiveSnapPointProp:a,snapPoints:t,drawerRef:o,overlayRef:r,fadeFromIndex:l,onSnapPointChange:s,direction:u="bottom",container:n,snapToSequentialPoint:d}){let[f,i]=nl({prop:e,defaultProp:t?.[0],onChange:a}),[p,h]=x.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);x.useEffect(()=>{function L(){h({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);let P=x.useMemo(()=>f===t?.[t.length-1]||null,[t,f]),c=x.useMemo(()=>{var L;return(L=t?.findIndex(m=>m===f))!=null?L:null},[t,f]),I=t&&t.length>0&&(l||l===0)&&!Number.isNaN(l)&&t[l]===f||!t,g=x.useMemo(()=>{let L=n?{width:n.getBoundingClientRect().width,height:n.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var m;return(m=t?.map(y=>{let H=typeof y=="string",N=0;if(H&&(N=parseInt(y,10)),Y(u)){let R=H?N:p?y*L.height:0;return p?u==="bottom"?L.height-R:-L.height+R:R}let Z=H?N:p?y*L.width:0;return p?u==="right"?L.width-Z:-L.width+Z:Z}))!=null?m:[]},[t,p,n]),b=x.useMemo(()=>c!==null?g?.[c]:null,[g,c]),D=x.useCallback(L=>{var m;let y=(m=g?.findIndex(H=>H===L))!=null?m:null;s(y),ae(o.current,{transition:`transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,transform:Y(u)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`}),g&&y!==g.length-1&&l!==void 0&&y!==l&&y{if(f||e){var L;let m=(L=t?.findIndex(y=>y===e||y===f))!=null?L:-1;g&&m!==-1&&typeof g[m]=="number"&&D(g[m])}},[f,e,t,g,D]);function C({draggedDistance:L,closeDrawer:m,velocity:y,dismissible:H}){if(l===void 0)return;let N=u==="bottom"||u==="right"?(b??0)-L:(b??0)+L,Z=c===l-1,R=c===0,oe=L>0;if(Z&&ae(r.current,{transition:`opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`}),!d&&y>2&&!oe){H?m():D(g[0]);return}if(!d&&y>2&&oe&&g&&t){D(g[t.length-1]);return}let V=g?.reduce((G,ie)=>typeof G!="number"||typeof ie!="number"?G:Math.abs(ie-N)ul&&Math.abs(L)0&&P&&t){D(g[t.length-1]);return}if(R&&G<0&&H&&m(),c===null)return;D(g[c+G]);return}D(V)}function T({draggedDistance:L}){if(b===null)return;let m=u==="bottom"||u==="right"?b-L:b+L;(u==="bottom"||u==="right")&&mg[g.length-1]||ae(o.current,{transform:Y(u)?`translate3d(0, ${m}px, 0)`:`translate3d(${m}px, 0, 0)`})}function F(L,m){if(!t||typeof c!="number"||!g||l===void 0)return null;let y=c===l-1;if(c>=l&&m)return 0;if(y&&!m)return 1;if(!I&&!y)return null;let N=y?c+1:c-1,Z=y?g[N]-g[N-1]:g[N+1]-g[N],R=L/Math.abs(Z);return y?1-R:R}return{isLastSnapPoint:P,activeSnapPoint:f,shouldFade:I,getPercentageDragged:F,setActiveSnapPoint:i,activeSnapPointIndex:c,onRelease:C,onDrag:T,snapPointsOffset:g}}var Ad=()=>()=>{};function Md(){let{direction:e,isOpen:a,shouldScaleBackground:t,setBackgroundColorOnScale:o,noBodyStyles:r}=ua(),l=x.useRef(null),s=fd(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-$t)/window.innerWidth}x.useEffect(()=>{if(a&&t){l.current&&clearTimeout(l.current);let n=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!n)return;yd(o&&!r?_t(document.body,{background:"black"}):Ad,_t(n,{transformOrigin:Y(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_.EASE.join(",")})`}));let d=_t(n,{borderRadius:`${sl}px`,overflow:"hidden",...Y(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{d(),l.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},_.DURATION*1e3)}}},[a,t,s])}var ha=null;function Td({isOpen:e,modal:a,nested:t,hasBeenOpened:o,preventScrollRestoration:r,noBodyStyles:l}){let[s,u]=x.useState(()=>typeof window<"u"?window.location.href:""),n=x.useRef(0),d=x.useCallback(()=>{if(Zr()&&ha===null&&e&&!l){ha={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:i,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-n.current}px`,left:`${-i}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let h=p-window.innerHeight;h&&n.current>=p&&(document.body.style.top=`${-(n.current+h)}px`)}),300)}},[e]),f=x.useCallback(()=>{if(Zr()&&ha!==null&&!l){let i=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,ha),window.requestAnimationFrame(()=>{if(r&&s!==window.location.href){u(window.location.href);return}window.scrollTo(p,i)}),ha=null}},[s]);return x.useEffect(()=>{function i(){n.current=window.scrollY}return i(),window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}},[]),x.useEffect(()=>{if(a)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||f()}},[a,f]),x.useEffect(()=>{t||!o||(e?(!window.matchMedia("(display-mode: standalone)").matches&&d(),a||window.setTimeout(()=>{f()},500)):f())},[e,o,s,a,t,d,f]),{restorePositionSetting:f}}function fl({open:e,onOpenChange:a,children:t,onDrag:o,onRelease:r,snapPoints:l,shouldScaleBackground:s=!1,setBackgroundColorOnScale:u=!0,closeThreshold:n=Pd,scrollLockTimeout:d=Rd,dismissible:f=!0,handleOnly:i=!1,fadeFromIndex:p=l&&l.length-1,activeSnapPoint:h,setActiveSnapPoint:P,fixed:c,modal:I=!0,onClose:g,nested:b,noBodyStyles:D=!1,direction:C="bottom",defaultOpen:T=!1,disablePreventScroll:F=!0,snapToSequentialPoint:L=!1,preventScrollRestoration:m=!1,repositionInputs:y=!0,onAnimationEnd:H,container:N,autoFocus:Z=!1}){var R,oe;let[V=!1,z]=nl({defaultProp:T,prop:e,onChange:k=>{a?.(k),!k&&!b&&Al(),setTimeout(()=>{H?.(k)},_.DURATION*1e3),k&&!I&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),k||(document.body.style.pointerEvents="auto")}}),[G,ie]=x.useState(!1),[ce,v]=x.useState(!1),[xa,sa]=x.useState(!1),Re=x.useRef(null),Te=x.useRef(null),J=x.useRef(null),Q=x.useRef(null),Se=x.useRef(null),Fe=x.useRef(!1),X=x.useRef(null),Ke=x.useRef(0),he=x.useRef(!1),Ne=x.useRef(!T),Ze=x.useRef(0),A=x.useRef(null),Yt=x.useRef(((R=A.current)==null?void 0:R.getBoundingClientRect().height)||0),Jt=x.useRef(((oe=A.current)==null?void 0:oe.getBoundingClientRect().width)||0),$a=x.useRef(0),yl=x.useCallback(k=>{l&&k===da.length-1&&(Te.current=new Date)},[]),{activeSnapPoint:Pl,activeSnapPointIndex:Ye,setActiveSnapPoint:Qt,onRelease:Rl,snapPointsOffset:da,onDrag:kl,shouldFade:eo,getPercentageDragged:Dl}=Dd({snapPoints:l,activeSnapPointProp:h,setActiveSnapPointProp:P,drawerRef:A,fadeFromIndex:p,overlayRef:Re,onSnapPointChange:yl,direction:C,container:N,snapToSequentialPoint:L});xd({isDisabled:!V||ce||!I||xa||!G||!y||!F});let{restorePositionSetting:Al}=Td({isOpen:V,modal:I,nested:b??!1,hasBeenOpened:G,preventScrollRestoration:m,noBodyStyles:D});function Ia(){return(window.innerWidth-$t)/window.innerWidth}function Ml(k){var O,E;!f&&!l||A.current&&!A.current.contains(k.target)||(Yt.current=((O=A.current)==null?void 0:O.getBoundingClientRect().height)||0,Jt.current=((E=A.current)==null?void 0:E.getBoundingClientRect().width)||0,v(!0),J.current=new Date,tl()&&window.addEventListener("touchend",()=>Fe.current=!1,{once:!0}),k.target.setPointerCapture(k.pointerId),Ke.current=Y(C)?k.pageY:k.pageX)}function ao(k,O){var E;let B=k,$=(E=window.getSelection())==null?void 0:E.toString(),ne=A.current?Xa(A.current,C):null,se=new Date;if(B.tagName==="SELECT"||B.hasAttribute("data-vaul-no-drag")||B.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(Te.current&&se.getTime()-Te.current.getTime()<500)return!1;if(ne!==null&&(C==="bottom"?ne>0:ne<0))return!0;if($&&$.length>0)return!1;if(Se.current&&se.getTime()-Se.current.getTime()B.clientHeight){if(B.scrollTop!==0)return Se.current=new Date,!1;if(B.getAttribute("role")==="dialog")return!0}B=B.parentNode}return!0}function Tl(k){if(A.current&&ce){let O=C==="bottom"||C==="right"?1:-1,E=(Ke.current-(Y(C)?k.pageY:k.pageX))*O,B=E>0,$=l&&!f&&!B;if($&&Ye===0)return;let ne=Math.abs(E),se=document.querySelector("[data-vaul-drawer-wrapper]"),Be=C==="bottom"||C==="top"?Yt.current:Jt.current,xe=ne/Be,ze=Dl(ne,B);if(ze!==null&&(xe=ze),$&&xe>=1||!Fe.current&&!ao(k.target,B))return;if(A.current.classList.add(Vt),Fe.current=!0,ae(A.current,{transition:"none"}),ae(Re.current,{transition:"none"}),l&&kl({draggedDistance:E}),B&&!l){let ve=bd(E),Ca=Math.min(ve*-1,0)*O;ae(A.current,{transform:Y(C)?`translate3d(0, ${Ca}px, 0)`:`translate3d(${Ca}px, 0, 0)`});return}let Oe=1-xe;if((eo||p&&Ye===p-1)&&(o?.(k,xe),ae(Re.current,{opacity:`${Oe}`,transition:"none"},!0)),se&&Re.current&&s){let ve=Math.min(Ia()+xe*(1-Ia()),1),Ca=8-xe*8,oo=Math.max(0,14-xe*14);ae(se,{borderRadius:`${Ca}px`,transform:Y(C)?`scale(${ve}) translate3d(0, ${oo}px, 0)`:`scale(${ve}) translate3d(${oo}px, 0, 0)`,transition:"none"},!0)}if(!l){let ve=ne*O;ae(A.current,{transform:Y(C)?`translate3d(0, ${ve}px, 0)`:`translate3d(${ve}px, 0, 0)`})}}}x.useEffect(()=>{window.requestAnimationFrame(()=>{Ne.current=!0})},[]),x.useEffect(()=>{var k;function O(){if(!A.current||!y)return;let E=document.activeElement;if(Xt(E)||he.current){var B;let $=((B=window.visualViewport)==null?void 0:B.height)||0,ne=window.innerHeight,se=ne-$,Be=A.current.getBoundingClientRect().height||0,xe=Be>ne*.8;$a.current||($a.current=Be);let ze=A.current.getBoundingClientRect().top;if(Math.abs(Ze.current-se)>60&&(he.current=!he.current),l&&l.length>0&&da&&Ye){let Oe=da[Ye]||0;se+=Oe}if(Ze.current=se,Be>$||he.current){let Oe=A.current.getBoundingClientRect().height,ve=Oe;Oe>$&&(ve=$-(xe?ze:$t)),c?A.current.style.height=`${Oe-Math.max(se,0)}px`:A.current.style.height=`${Math.max(ve,$-ze)}px`}else id()||(A.current.style.height=`${$a.current}px`);l&&l.length>0&&!he.current?A.current.style.bottom="0px":A.current.style.bottom=`${Math.max(se,0)}px`}}return(k=window.visualViewport)==null||k.addEventListener("resize",O),()=>{var E;return(E=window.visualViewport)==null?void 0:E.removeEventListener("resize",O)}},[Ye,l,da]);function na(k){Fl(),g?.(),k||z(!1),setTimeout(()=>{l&&Qt(l[0])},_.DURATION*1e3)}function to(){if(!A.current)return;let k=document.querySelector("[data-vaul-drawer-wrapper]"),O=Xa(A.current,C);ae(A.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`}),ae(Re.current,{transition:`opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,opacity:"1"}),s&&O&&O>0&&V&&ae(k,{borderRadius:`${sl}px`,overflow:"hidden",...Y(C)?{transform:`scale(${Ia()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ia()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_.EASE.join(",")})`},!0)}function Fl(){!ce||!A.current||(A.current.classList.remove(Vt),Fe.current=!1,v(!1),Q.current=new Date)}function Bl(k){if(!ce||!A.current)return;A.current.classList.remove(Vt),Fe.current=!1,v(!1),Q.current=new Date;let O=Xa(A.current,C);if(!k||!ao(k.target,!1)||!O||Number.isNaN(O)||J.current===null)return;let E=Q.current.getTime()-J.current.getTime(),B=Ke.current-(Y(C)?k.pageY:k.pageX),$=Math.abs(B)/E;if($>.05&&(sa(!0),setTimeout(()=>{sa(!1)},200)),l){Rl({draggedDistance:B*(C==="bottom"||C==="right"?1:-1),closeDrawer:na,velocity:$,dismissible:f}),r?.(k,!0);return}if(C==="bottom"||C==="right"?B>0:B<0){to(),r?.(k,!0);return}if($>ul){na(),r?.(k,!1);return}var ne;let se=Math.min((ne=A.current.getBoundingClientRect().height)!=null?ne:0,window.innerHeight);var Be;let xe=Math.min((Be=A.current.getBoundingClientRect().width)!=null?Be:0,window.innerWidth),ze=C==="left"||C==="right";if(Math.abs(O)>=(ze?xe:se)*n){na(),r?.(k,!1);return}r?.(k,!0),to()}x.useEffect(()=>(V&&(ae(document.documentElement,{scrollBehavior:"auto"}),Te.current=new Date),()=>{vd(document.documentElement,"scrollBehavior")}),[V]);function Ol(k){let O=k?(window.innerWidth-je)/window.innerWidth:1,E=k?-je:0;X.current&&window.clearTimeout(X.current),ae(A.current,{transition:`transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,transform:Y(C)?`scale(${O}) translate3d(0, ${E}px, 0)`:`scale(${O}) translate3d(${E}px, 0, 0)`}),!k&&A.current&&(X.current=setTimeout(()=>{let B=Xa(A.current,C);ae(A.current,{transition:"none",transform:Y(C)?`translate3d(0, ${B}px, 0)`:`translate3d(${B}px, 0, 0)`})},500))}function El(k,O){if(O<0)return;let E=(window.innerWidth-je)/window.innerWidth,B=E+O*(1-E),$=-je+O*je;ae(A.current,{transform:Y(C)?`scale(${B}) translate3d(0, ${$}px, 0)`:`scale(${B}) translate3d(${$}px, 0, 0)`,transition:"none"})}function ql(k,O){let E=Y(C)?window.innerHeight:window.innerWidth,B=O?(E-je)/E:1,$=O?-je:0;O&&ae(A.current,{transition:`transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,transform:Y(C)?`scale(${B}) translate3d(0, ${$}px, 0)`:`scale(${B}) translate3d(${$}px, 0, 0)`})}return x.useEffect(()=>{I||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[I]),x.createElement(Tt,{defaultOpen:T,onOpenChange:k=>{!f&&!k||(k?ie(!0):na(!0),z(k))},open:V},x.createElement(al.Provider,{value:{activeSnapPoint:Pl,snapPoints:l,setActiveSnapPoint:Qt,drawerRef:A,overlayRef:Re,onOpenChange:a,onPress:Ml,onRelease:Bl,onDrag:Tl,dismissible:f,shouldAnimate:Ne,handleOnly:i,isOpen:V,isDragging:ce,shouldFade:eo,closeDrawer:na,onNestedDrag:El,onNestedOpenChange:Ol,onNestedRelease:ql,keyboardIsOpen:he,modal:I,snapPointsOffset:da,activeSnapPointIndex:Ye,direction:C,shouldScaleBackground:s,setBackgroundColorOnScale:u,noBodyStyles:D,container:N,autoFocus:Z}},t))}var il=x.forwardRef(function({...e},a){let{overlayRef:t,snapPoints:o,onRelease:r,shouldFade:l,isOpen:s,modal:u,shouldAnimate:n}=ua(),d=rl(a,t),f=o&&o.length>0;if(!u)return null;let i=x.useCallback(p=>r(p),[r]);return x.createElement(Ot,{onMouseUp:i,ref:d,"data-vaul-overlay":"","data-vaul-snap-points":s&&f?"true":"false","data-vaul-snap-points-overlay":s&&l?"true":"false","data-vaul-animate":n?.current?"true":"false",...e})});il.displayName="Drawer.Overlay";var cl=x.forwardRef(function({onPointerDownOutside:e,style:a,onOpenAutoFocus:t,...o},r){let{drawerRef:l,onPress:s,onRelease:u,onDrag:n,keyboardIsOpen:d,snapPointsOffset:f,activeSnapPointIndex:i,modal:p,isOpen:h,direction:P,snapPoints:c,container:I,handleOnly:g,shouldAnimate:b,autoFocus:D}=ua(),[C,T]=x.useState(!1),F=rl(r,l),L=x.useRef(null),m=x.useRef(null),y=x.useRef(!1),H=c&&c.length>0;Md();let N=(R,oe,V=0)=>{if(y.current)return!0;let z=Math.abs(R.y),G=Math.abs(R.x),ie=G>z,ce=["bottom","right"].includes(oe)?1:-1;if(oe==="left"||oe==="right"){if(!(R.x*ce<0)&&G>=0&&G<=V)return ie}else if(!(R.y*ce<0)&&z>=0&&z<=V)return!ie;return y.current=!0,!0};x.useEffect(()=>{H&&window.requestAnimationFrame(()=>{T(!0)})},[]);function Z(R){L.current=null,y.current=!1,u(R)}return x.createElement(Et,{"data-vaul-drawer-direction":P,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":h&&H?"true":"false","data-vaul-custom-container":I?"true":"false","data-vaul-animate":b?.current?"true":"false",...o,ref:F,style:f&&f.length>0?{"--snap-point-height":`${f[i??0]}px`,...a}:a,onPointerDown:R=>{g||(o.onPointerDown==null||o.onPointerDown.call(o,R),L.current={x:R.pageX,y:R.pageY},s(R))},onOpenAutoFocus:R=>{t?.(R),D||R.preventDefault()},onPointerDownOutside:R=>{if(e?.(R),!p||R.defaultPrevented){R.preventDefault();return}d.current&&(d.current=!1)},onFocusOutside:R=>{if(!p){R.preventDefault();return}},onPointerMove:R=>{if(m.current=R,g||(o.onPointerMove==null||o.onPointerMove.call(o,R),!L.current))return;let oe=R.pageY-L.current.y,V=R.pageX-L.current.x,z=R.pointerType==="touch"?10:2;N({x:V,y:oe},P,z)?n(R):(Math.abs(V)>z||Math.abs(oe)>z)&&(L.current=null)},onPointerUp:R=>{o.onPointerUp==null||o.onPointerUp.call(o,R),L.current=null,y.current=!1,u(R)},onPointerOut:R=>{o.onPointerOut==null||o.onPointerOut.call(o,R),Z(m.current)},onContextMenu:R=>{o.onContextMenu==null||o.onContextMenu.call(o,R),m.current&&Z(m.current)}})});cl.displayName="Drawer.Content";var Fd=250,Bd=120,pl=x.forwardRef(function({preventCycle:e=!1,children:a,...t},o){let{closeDrawer:r,isDragging:l,snapPoints:s,activeSnapPoint:u,setActiveSnapPoint:n,dismissible:d,handleOnly:f,isOpen:i,onPress:p,onDrag:h}=ua(),P=x.useRef(null),c=x.useRef(!1);function I(){if(c.current){D();return}window.setTimeout(()=>{g()},Bd)}function g(){if(l||e||c.current){D();return}if(D(),!s||s.length===0){d||r();return}if(u===s[s.length-1]&&d){r();return}let T=s.findIndex(L=>L===u);if(T===-1)return;let F=s[T+1];n(F)}function b(){P.current=window.setTimeout(()=>{c.current=!0},Fd)}function D(){P.current&&window.clearTimeout(P.current),c.current=!1}return x.createElement("div",{onClick:I,onPointerCancel:D,onPointerDown:C=>{f&&p(C),b()},onPointerMove:C=>{f&&h(C)},ref:o,"data-vaul-drawer-visible":i?"true":"false","data-vaul-handle":"","aria-hidden":"true",...t},x.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},a))});pl.displayName="Drawer.Handle";function Od({onDrag:e,onOpenChange:a,open:t,...o}){let{onNestedDrag:r,onNestedOpenChange:l,onNestedRelease:s}=ua();if(!r)throw new Error("Drawer.NestedRoot must be placed in another drawer");return x.createElement(fl,{nested:!0,open:t,onClose:()=>{l(!1)},onDrag:(u,n)=>{r(u,n),e?.(u,n)},onOpenChange:u=>{u&&l(u),a?.(u)},onRelease:s,...o})}function Ed(e){let a=ua(),{container:t=a.container,...o}=e;return x.createElement(Bt,{container:t,...o})}var Ae={Root:fl,NestedRoot:Od,Content:cl,Overlay:il,Trigger:Ft,Portal:Ed,Handle:pl,Close:Ht,Title:qt,Description:Ut};import{jsx as we,jsxs as ml}from"react/jsx-runtime";function Ll({...e}){return we(Ae.Root,{"data-slot":"drawer",...e})}function gl({...e}){return we(Ae.Trigger,{"data-slot":"drawer-trigger",...e})}function qd({...e}){return we(Ae.Portal,{"data-slot":"drawer-portal",...e})}function hl({...e}){return we(Ae.Close,{"data-slot":"drawer-close",...e})}function Ud({className:e,...a}){return we(Ae.Overlay,{"data-slot":"drawer-overlay",className:j("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...a})}function xl({className:e,children:a,...t}){return ml(qd,{"data-slot":"drawer-portal",children:[we(Ud,{}),ml(Ae.Content,{"data-slot":"drawer-content",className:j("group/drawer-content fixed z-50 flex h-auto flex-col bg-background","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",e),...t,children:[we("div",{className:"mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),a]})]})}function Il({className:e,...a}){return we("div",{"data-slot":"drawer-header",className:j("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",e),...a})}function Cl({className:e,...a}){return we("div",{"data-slot":"drawer-footer",className:j("mt-auto flex flex-col gap-2 p-4",e),...a})}function wl({className:e,...a}){return we(Ae.Title,{"data-slot":"drawer-title",className:j("font-semibold text-foreground",e),...a})}function Sl({className:e,...a}){return we(Ae.Description,{"data-slot":"drawer-description",className:j("text-sm text-muted-foreground",e),...a})}import{jsx as Hd}from"react/jsx-runtime";function Kt({className:e,type:a,...t}){return Hd("input",{type:a,"data-slot":"input",className:j("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...t})}import{jsx as Nd}from"react/jsx-runtime";function Zt({className:e,...a}){return Nd(Wa.Root,{"data-slot":"label",className:j("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}import{jsx as te,jsxs as Me}from"react/jsx-runtime";function zd(){let[e,a]=bl.useState(!1);return Ro("(min-width: 768px)")?Me(_r,{open:e,onOpenChange:a,children:[te(Vr,{asChild:!0,children:te(la,{variant:"outline",children:"Edit Profile"})}),Me(Xr,{className:"sm:max-w-[425px]",children:[Me($r,{children:[te(jr,{children:"Edit profile"}),te(Kr,{children:"Make changes to your profile here. Click save when you're done."})]}),te(vl,{})]})]}):Me(Ll,{open:e,onOpenChange:a,children:[te(gl,{asChild:!0,children:te(la,{variant:"outline",children:"Edit Profile"})}),Me(xl,{children:[Me(Il,{className:"text-left",children:[te(wl,{children:"Edit profile"}),te(Sl,{children:"Make changes to your profile here. Click save when you're done."})]}),te(vl,{className:"px-4"}),te(Cl,{className:"pt-2",children:te(hl,{asChild:!0,children:te(la,{variant:"outline",children:"Cancel"})})})]})]})}function vl({className:e}){return Me("form",{className:j("grid items-start gap-6",e),children:[Me("div",{className:"grid gap-3",children:[te(Zt,{htmlFor:"email",children:"Email"}),te(Kt,{type:"email",id:"email",defaultValue:"shadcn@example.com"})]}),Me("div",{className:"grid gap-3",children:[te(Zt,{htmlFor:"username",children:"Username"}),te(Kt,{id:"username",defaultValue:"@shadcn"})]}),te(la,{type:"submit",children:"Save changes"})]})}export{zd as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/x.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2c65eef0b447c78c7bd1723474d7c2db1b7d11e3369b3bfe96c53974954663b +size 104097 diff --git a/b/02bbcf2632f9442a4ad8b52965c5ea2ed82870767409e46c200661d9c9538750 b/b/02bbcf2632f9442a4ad8b52965c5ea2ed82870767409e46c200661d9c9538750 index 9684b85e07f109312baa6cbc814375ee85536518..132bc7bf80f11dac21567d01298d73ed54a1ae01 100644 --- a/b/02bbcf2632f9442a4ad8b52965c5ea2ed82870767409e46c200661d9c9538750 +++ b/b/02bbcf2632f9442a4ad8b52965c5ea2ed82870767409e46c200661d9c9538750 @@ -1,21 +1,3 @@ -{ - "id": "org.hologram.ui.chart.chart-pie-stacked", - "name": "chart-pie-stacked", - "tier": "chart", - "library": "shadcn", - "category": "Charts · Pie", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-pie-stacked.json", - "did": "did:holo:sha256:26d04271e4c0a752f4cd41f0c53cb6480db6d3ca540cf9dd35d1c9b1d446c59d", - "import": "holo://sha256:22792713f9f19107a87a6bb46a71af2f212d360bf2d2f7a89f17f7bf429d3f09", - "integrity": "sha256-InknE/nxkQeoemu0anGvLyEtNgvy0veonxf3v0KdPwk=", - "kappa": "sha256:26d04271e4c0a752f4cd41f0c53cb6480db6d3ca540cf9dd35d1c9b1d446c59d", - "moduleKappa": "sha256:22792713f9f19107a87a6bb46a71af2f212d360bf2d2f7a89f17f7bf429d3f09", - "renderExport": "ChartPieStacked", - "source": "registry/new-york-v4/charts/chart-pie-stacked.tsx", - "module": "vendor/components/chart-pie-stacked.js", - "exports": [ - "description", - "ChartPieStacked" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:24e912e476fb1856059c228f4077f6621c63909f06e569b665df6b3e1f4abdb6 +size 913 diff --git a/b/02fadf9567ca18e69153ec90fae6610a8395068dfd81076ddb6072083d860477 b/b/02fadf9567ca18e69153ec90fae6610a8395068dfd81076ddb6072083d860477 index 021fb241b8a94249507accb748a0ac91fcbc5074..259dcbe0dceba5c1bf2a2b7dce745124fb0e27ec 100644 --- a/b/02fadf9567ca18e69153ec90fae6610a8395068dfd81076ddb6072083d860477 +++ b/b/02fadf9567ca18e69153ec90fae6610a8395068dfd81076ddb6072083d860477 @@ -1,27 +1,3 @@ -import { TweetProps, useTweet } from "react-tweet" - -import { - MagicTweet, - TweetNotFound, - TweetSkeleton, -} from "@/components/ui/tweet-card" - -export const ClientTweetCard = ({ - id, - apiUrl, - fallback = , - components, - fetchOptions, - onError, - ...props -}: TweetProps & { className?: string }) => { - const { data, error, isLoading } = useTweet(id, apiUrl, fetchOptions) - - if (isLoading) return fallback - if (error || !data) { - const NotFound = components?.TweetNotFound ?? TweetNotFound - return - } - - return -} +version https://git-lfs.github.com/spec/v1 +oid sha256:f921a3af951665445365b0dae95c61cdc86f472d15fa76b8355d5b2a1ee52f62 +size 639 diff --git a/b/0301af8caa374b18e6a95973baeed50629ed70097185a0e1437ab1c3d66251c9 b/b/0301af8caa374b18e6a95973baeed50629ed70097185a0e1437ab1c3d66251c9 index fba920d648c7fc56f723e73d007dff7a2a6a129a..0d5189606a8464c880575ee7febeea59922b488f 100644 Binary files a/b/0301af8caa374b18e6a95973baeed50629ed70097185a0e1437ab1c3d66251c9 and b/b/0301af8caa374b18e6a95973baeed50629ed70097185a0e1437ab1c3d66251c9 differ diff --git a/b/034b205bc3b448fc60431f627a3442110f44d66d9b16ea00906ae725162ad61a b/b/034b205bc3b448fc60431f627a3442110f44d66d9b16ea00906ae725162ad61a index 105ba814f6a56ca958a402ab0105309becec1de2..c7729e8ae7041e2f691b1daa18e27c67ca3818dc 100644 --- a/b/034b205bc3b448fc60431f627a3442110f44d66d9b16ea00906ae725162ad61a +++ b/b/034b205bc3b448fc60431f627a3442110f44d66d9b16ea00906ae725162ad61a @@ -1 +1,3 @@ -export default {".timeline":{"@layer daisyui.l1.l2.l3":{"position":"relative","display":"flex","> li":{"position":"relative","display":"grid","flex-shrink":0,"align-items":"center","grid-template-rows":"var(--timeline-row-start, minmax(0, 1fr)) auto var( --timeline-row-end, minmax(0, 1fr) )","grid-template-columns":"var(--timeline-col-start, minmax(0, 1fr)) auto var( --timeline-col-end, minmax(0, 1fr) )","> hr":{"border":"none","width":"100%","&:first-child":{"grid-column-start":"1","grid-row-start":"2"},"&:last-child":{"grid-column-start":"3","grid-column-end":"none","grid-row-start":"2","grid-row-end":"auto"},"@media print":{"border":"0.1px solid var(--color-base-300)"}}},":where(hr)":{"height":"calc(0.25rem * 1)","background-color":"var(--color-base-300)"},"&:has(.timeline-middle hr)":{"&:first-child":{"border-start-start-radius":"0","border-end-start-radius":"0","border-start-end-radius":"var(--radius-selector)","border-end-end-radius":"var(--radius-selector)"},"&:last-child":{"border-start-start-radius":"var(--radius-selector)","border-end-start-radius":"var(--radius-selector)","border-start-end-radius":"0","border-end-end-radius":"0"}},"&:not(:has(.timeline-middle))":{":first-child hr:last-child":{"border-start-start-radius":"var(--radius-selector)","border-end-start-radius":"var(--radius-selector)","border-start-end-radius":"0","border-end-end-radius":"0"},":last-child hr:first-child":{"border-start-start-radius":"0","border-end-start-radius":"0","border-start-end-radius":"var(--radius-selector)","border-end-end-radius":"var(--radius-selector)"}}}},".timeline-box":{"@layer daisyui.l1.l2.l3":{"border":"var(--border) solid","border-radius":"var(--radius-box)","border-color":"var(--color-base-300)","background-color":"var(--color-base-100)","padding-inline":"calc(0.25rem * 4)","padding-block":"calc(0.25rem * 2)","font-size":"0.75rem","box-shadow":"0 1px 2px 0 oklch(0% 0 0/0.05)"}},".timeline-start":{"@layer daisyui.l1.l2.l3":{"grid-column-start":"1","grid-column-end":"4","grid-row-start":"1","grid-row-end":"2","margin":"calc(0.25rem * 1)","align-self":"flex-end","justify-self":"center"}},".timeline-middle":{"@layer daisyui.l1.l2.l3":{"grid-column-start":"2","grid-row-start":"2"}},".timeline-end":{"@layer daisyui.l1.l2.l3":{"grid-column-start":"1","grid-column-end":"4","grid-row-start":"3","grid-row-end":"4","margin":"calc(0.25rem * 1)","align-self":"flex-start","justify-self":"center"}},".timeline-compact":{"@layer daisyui.l1.l2":{"--timeline-row-start":"0",".timeline-start":{"grid-column-start":"1","grid-column-end":"4","grid-row-start":"3","grid-row-end":"4","align-self":"flex-start","justify-self":"center"},"li:has(.timeline-start)":{".timeline-end":{"grid-column-start":"none","grid-row-start":"auto"}},"&.timeline-vertical":{"> li":{"--timeline-col-start":"0"},".timeline-start":{"grid-column-start":"3","grid-column-end":"4","grid-row-start":"1","grid-row-end":"4","align-self":"center","justify-self":"flex-start"},"li:has(.timeline-start)":{".timeline-end":{"grid-column-start":"auto","grid-row-start":"none"}}}}},".timeline-snap-icon":{"@layer daisyui.l1.l2":{"> li":{"--timeline-col-start":"0.5rem","--timeline-row-start":"minmax(0, 1fr)"}}},".timeline-vertical":{"@layer daisyui.l1.l2":{"flex-direction":"column","> li":{"justify-items":"center","--timeline-row-start":"minmax(0, 1fr)","--timeline-row-end":"minmax(0, 1fr)","> hr":{"height":"100%","width":"calc(0.25rem * 1)","&:first-child":{"grid-column-start":"2","grid-row-start":"1"},"&:last-child":{"grid-column-start":"2","grid-column-end":"auto","grid-row-start":"3","grid-row-end":"none"}}},".timeline-start":{"grid-column-start":"1","grid-column-end":"2","grid-row-start":"1","grid-row-end":"4","align-self":"center","justify-self":"flex-end"},".timeline-end":{"grid-column-start":"3","grid-column-end":"4","grid-row-start":"1","grid-row-end":"4","align-self":"center","justify-self":"flex-start"},"&:has(.timeline-middle)":{"> li":{"> hr":{"&:first-child":{"border-top-left-radius":"0","border-top-right-radius":"0","border-bottom-right-radius":"var(--radius-selector)","border-bottom-left-radius":"var(--radius-selector)"},"&:last-child":{"border-top-left-radius":"var(--radius-selector)","border-top-right-radius":"var(--radius-selector)","border-bottom-right-radius":"0","border-bottom-left-radius":"0"}}}},"&:not(:has(.timeline-middle))":{":first-child":{"> hr:last-child":{"border-top-left-radius":"var(--radius-selector)","border-top-right-radius":"var(--radius-selector)","border-bottom-right-radius":"0","border-bottom-left-radius":"0"}},":last-child":{"> hr:first-child":{"border-top-left-radius":"0","border-top-right-radius":"0","border-bottom-right-radius":"var(--radius-selector)","border-bottom-left-radius":"var(--radius-selector)"}}},"&.timeline-snap-icon":{"> li":{"--timeline-col-start":"minmax(0, 1fr)","--timeline-row-start":"0.5rem"}}}},".timeline-horizontal":{"@layer daisyui.l1.l2":{"flex-direction":"row","> li":{"align-items":"center","> hr":{"height":"calc(0.25rem * 1)","width":"100%","&:first-child":{"grid-column-start":"1","grid-row-start":"2"},"&:last-child":{"grid-column-start":"3","grid-column-end":"none","grid-row-start":"2","grid-row-end":"auto"}}},".timeline-start":{"grid-column-start":"1","grid-column-end":"4","grid-row-start":"1","grid-row-end":"2","align-self":"flex-end","justify-self":"center"},".timeline-end":{"grid-column-start":"1","grid-column-end":"4","grid-row-start":"3","grid-row-end":"4","align-self":"flex-start","justify-self":"center"},"&:has(.timeline-middle)":{"> li":{"> hr":{"&:first-child":{"border-start-start-radius":"0","border-end-start-radius":"0","border-start-end-radius":"var(--radius-selector)","border-end-end-radius":"var(--radius-selector)"},"&:last-child":{"border-start-start-radius":"var(--radius-selector)","border-end-start-radius":"var(--radius-selector)","border-start-end-radius":"0","border-end-end-radius":"0"}}}},"&:not(:has(.timeline-middle))":{":first-child":{"> hr:last-child":{"border-start-start-radius":"var(--radius-selector)","border-end-start-radius":"var(--radius-selector)","border-start-end-radius":"0","border-end-end-radius":"0"}},":last-child":{"> hr:first-child":{"border-start-start-radius":"0","border-end-start-radius":"0","border-start-end-radius":"var(--radius-selector)","border-end-end-radius":"var(--radius-selector)"}}}}}}; \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:b96a2b8c71023b1573d3bf446380d271caeae808b7cad66bbb7f358c77d5c24a +size 6358 diff --git a/b/034c7c8a5746f6bc4ec2ed9f660d9a118e43cb18271696d4fa17f6a056936b32 b/b/034c7c8a5746f6bc4ec2ed9f660d9a118e43cb18271696d4fa17f6a056936b32 index 7ca7697613c79479d4ee5fb818ad289952126c24..fce7b6c304028b4e1a863bd450d22000fbf13535 100644 --- a/b/034c7c8a5746f6bc4ec2ed9f660d9a118e43cb18271696d4fa17f6a056936b32 +++ b/b/034c7c8a5746f6bc4ec2ed9f660d9a118e43cb18271696d4fa17f6a056936b32 @@ -1,27 +1,3 @@ -{ - "id": "org.hologram.ui.daisyui.list", - "name": "daisyui-list", - "tier": "component", - "library": "daisyui", - "category": "Data Display", - "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/list.css", - "docs": "https://daisyui.com/components/list/", - "did": "did:holo:sha256:1f738c5b4a983d231662d60624b813540951fe5f64df5da1bda55e029d99b762", - "import": "holo://sha256:1f738c5b4a983d231662d60624b813540951fe5f64df5da1bda55e029d99b762", - "integrity": "sha256-H3OMW0qYPSMWYtYGJLgTVAlR/l9k312hvaVeAp2Zt2I=", - "kappa": "sha256:1f738c5b4a983d231662d60624b813540951fe5f64df5da1bda55e029d99b762", - "moduleKappa": "sha256:1f738c5b4a983d231662d60624b813540951fe5f64df5da1bda55e029d99b762", - "renderExport": null, - "format": "css", - "source": "components/list.css", - "module": "vendor/daisyui/components/list.css", - "exports": [], - "bytes": 7365, - "provenance": { - "package": "daisyui", - "version": "5.5.23", - "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", - "file": "components/list.css" - }, - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:9e077a0b6d646bf511c567fa0e64ca7cc64d55e21cde852e4cbf6b6ac292658c +size 1118 diff --git a/b/035ff7cfa206ba468aaabd4736964edd7242b140623de00e26ed034bad437309 b/b/035ff7cfa206ba468aaabd4736964edd7242b140623de00e26ed034bad437309 index 4a76f7e6a9f3f200cffe5ceb10ff7d2cb15a7b93..73e4f863ef72f3c5e4955da5ae942cc93b5d293d 100644 --- a/b/035ff7cfa206ba468aaabd4736964edd7242b140623de00e26ed034bad437309 +++ b/b/035ff7cfa206ba468aaabd4736964edd7242b140623de00e26ed034bad437309 @@ -1,21 +1,3 @@ -{ - "id": "org.hologram.ui.chart.chart-bar-mixed", - "name": "chart-bar-mixed", - "tier": "chart", - "library": "shadcn", - "category": "Charts · Bar", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-bar-mixed.json", - "did": "did:holo:sha256:b7e6ee25820af6a54cd995117db4747bda7970be48ce823f82f7c5ed5767d014", - "import": "holo://sha256:71b39fefedbeb489b7c661eda7e273defff844ffb6aa305496bbae3133800a3c", - "integrity": "sha256-cbOf7+2+tIm3xmHtp+Jz3v/4RP+2qjBUlruuMTOACjw=", - "kappa": "sha256:b7e6ee25820af6a54cd995117db4747bda7970be48ce823f82f7c5ed5767d014", - "moduleKappa": "sha256:71b39fefedbeb489b7c661eda7e273defff844ffb6aa305496bbae3133800a3c", - "renderExport": "ChartBarMixed", - "source": "registry/new-york-v4/charts/chart-bar-mixed.tsx", - "module": "vendor/components/chart-bar-mixed.js", - "exports": [ - "description", - "ChartBarMixed" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:2f60a61303187f7375921eb89a3fc4fc07d2b038368c9773bcd0ccbc68e409e0 +size 899 diff --git a/b/0370c03a34305a3d873d23f04c878fa4f677b728532a1c0bafd288bdaf9520e9 b/b/0370c03a34305a3d873d23f04c878fa4f677b728532a1c0bafd288bdaf9520e9 index 6486b46ffed1ec19a27c0a165f24c5dfcf85fa1c..642b0bf585c2924a20d2f6574c0e07922d13c483 100644 --- a/b/0370c03a34305a3d873d23f04c878fa4f677b728532a1c0bafd288bdaf9520e9 +++ b/b/0370c03a34305a3d873d23f04c878fa4f677b728532a1c0bafd288bdaf9520e9 @@ -1,175 +1,3 @@ -import { - useCallback, - useEffect, - useId, - useRef, - useState, - type ComponentPropsWithoutRef, -} from "react" -import { motion } from "motion/react" - -import { cn } from "@/lib/utils" - -export interface AnimatedGridPatternProps extends ComponentPropsWithoutRef<"svg"> { - width?: number - height?: number - x?: number - y?: number - strokeDasharray?: number - numSquares?: number - maxOpacity?: number - duration?: number - repeatDelay?: number -} - -type Square = { - id: number - pos: [number, number] - iteration: number -} - -export function AnimatedGridPattern({ - width = 40, - height = 40, - x = -1, - y = -1, - strokeDasharray = 0, - numSquares = 50, - className, - maxOpacity = 0.5, - duration = 4, - repeatDelay = 0.5, - ...props -}: AnimatedGridPatternProps) { - const id = useId() - const containerRef = useRef(null) - const [dimensions, setDimensions] = useState({ width: 0, height: 0 }) - const [squares, setSquares] = useState>([]) - - const getPos = useCallback((): [number, number] => { - return [ - Math.floor((Math.random() * dimensions.width) / width), - Math.floor((Math.random() * dimensions.height) / height), - ] - }, [dimensions.height, dimensions.width, height, width]) - - const generateSquares = useCallback( - (count: number) => { - return Array.from({ length: count }, (_, i) => ({ - id: i, - pos: getPos(), - iteration: 0, - })) - }, - [getPos] - ) - - const updateSquarePosition = useCallback( - (squareId: number) => { - setSquares((currentSquares) => { - const current = currentSquares[squareId] - if (!current || current.id !== squareId) return currentSquares - - const nextSquares = currentSquares.slice() - nextSquares[squareId] = { - ...current, - pos: getPos(), - iteration: current.iteration + 1, - } - - return nextSquares - }) - }, - [getPos] - ) - - useEffect(() => { - if (dimensions.width && dimensions.height) { - setSquares(generateSquares(numSquares)) - } - }, [dimensions.width, dimensions.height, generateSquares, numSquares]) - - useEffect(() => { - const element = containerRef.current - let resizeObserver: ResizeObserver | null = null - - if (element) { - resizeObserver = new ResizeObserver((entries) => { - for (const entry of entries) { - setDimensions((currentDimensions) => { - const nextWidth = entry.contentRect.width - const nextHeight = entry.contentRect.height - if ( - currentDimensions.width === nextWidth && - currentDimensions.height === nextHeight - ) { - return currentDimensions - } - return { width: nextWidth, height: nextHeight } - }) - } - }) - - resizeObserver.observe(element) - } - - return () => { - if (resizeObserver) { - resizeObserver.disconnect() - } - } - }, []) - - return ( - - ) -} +version https://git-lfs.github.com/spec/v1 +oid sha256:6644d9ae3b65c510a9be3222b35b2d13321bd7761df4d263579e5b0afd17159e +size 4396 diff --git a/b/037416e2413c3a31a1d1d437571752ca16a450abdd714a03f591f9560aa44fdf b/b/037416e2413c3a31a1d1d437571752ca16a450abdd714a03f591f9560aa44fdf index fd64da1ae5709c2582446c08cef3923b7adf5a81..5c82d292627cf62a3f5c21f242587a5c8e71dea6 100644 --- a/b/037416e2413c3a31a1d1d437571752ca16a450abdd714a03f591f9560aa44fdf +++ b/b/037416e2413c3a31a1d1d437571752ca16a450abdd714a03f591f9560aa44fdf @@ -1,130 +1,3 @@ -// core/code-tools.js — NATIVE agentic-coding tools for Holo Q's Code mode. Self-contained over the -// browser's OPFS (navigator.storage.getDirectory) — no external VFS, works in any browser, 100% -// serverless. Each tool returns Holo Q's agent-tool shape { def, serverName:"code", call }, so the -// Coder-7B brain drives real file work through the existing agentic loop + conscience gate + receipts. -// The workspace is an OPFS "workspace" dir = the agent's writable home; every result is content-addressable. -// -// C2 semantic skin (extended to all κ-objects): build_app emits a schema:SoftwareApplication node and -// verify_object returns the file's schema.org @type — so every object the agent makes is W3C-legible. - -import { appAsSoftware, fileAsDocument } from "./semantic.js"; - -const te = new TextEncoder(), td = new TextDecoder(); -const sha256Hex = async (bytes) => [...new Uint8Array(await crypto.subtle.digest("SHA-256", bytes))].map((b) => b.toString(16).padStart(2, "0")).join(""); -const norm = (p) => ("/" + String(p || "").replace(/^\/+/, "").replace(/\/+/g, "/")).replace(/\/$/, "") || "/"; - -async function root() { const d = await navigator.storage.getDirectory(); return d.getDirectoryHandle("workspace", { create: true }); } -async function dirOf(parts, create = false) { - let h = await root(); - for (const p of parts) if (p) h = await h.getDirectoryHandle(p, { create }); - return h; -} -function split(path) { const parts = norm(path).split("/").filter(Boolean); const name = parts.pop(); return { parts, name }; } - -async function readFile(path) { - const { parts, name } = split(path); - const dir = await dirOf(parts); - const fh = await dir.getFileHandle(name); - const f = await fh.getFile(); - return new Uint8Array(await f.arrayBuffer()); -} -async function writeFile(path, content) { - const { parts, name } = split(path); - const dir = await dirOf(parts, true); - const fh = await dir.getFileHandle(name, { create: true }); - const w = await fh.createWritable(); await w.write(te.encode(String(content ?? ""))); await w.close(); -} -async function walk(dirHandle, prefix, out) { - for await (const [n, h] of dirHandle.entries()) { - const p = prefix + "/" + n; - if (h.kind === "file") out.push(p); - else await walk(h, p, out); - } -} -async function listAll() { const out = []; await walk(await root(), "", out); return out.sort(); } - -function globToRe(glob) { - let re = "^"; - for (let i = 0; i < glob.length; i++) { const c = glob[i]; - if (c === "*") { if (glob[i + 1] === "*") { re += ".*"; i++; if (glob[i + 1] === "/") i++; } else re += "[^/]*"; } - else if (c === "?") re += "[^/]"; else if ("\\^$.|+()[]{}".includes(c)) re += "\\" + c; else re += c; } - return new RegExp(re + "$"); -} - -export function codeTools() { - return [ - { - def: { name: "read_file", description: "Read a text file from the workspace. Returns its content.", inputSchema: { type: "object", properties: { path: { type: "string" } }, required: ["path"] } }, - serverName: "code", call: async ({ path }) => { - try { const bytes = await readFile(path); return { text: td.decode(bytes), isError: false }; } - catch (e) { return { text: "read error: " + (e.message || e), isError: true }; } - }, - }, - { - def: { name: "write_file", description: "Create or overwrite a file in the workspace with the given content.", inputSchema: { type: "object", properties: { path: { type: "string" }, content: { type: "string" } }, required: ["path", "content"] } }, - serverName: "code", call: async ({ path, content }) => { - try { await writeFile(path, content); const k = await sha256Hex(te.encode(String(content ?? ""))); return { text: `wrote ${norm(path)} (${String(content ?? "").length} bytes) · did:holo:sha256:${k.slice(0, 16)}`, isError: false }; } - catch (e) { return { text: "write error: " + (e.message || e), isError: true }; } - }, - }, - { - def: { name: "edit_file", description: "Replace the first exact occurrence of old_text with new_text in a file.", inputSchema: { type: "object", properties: { path: { type: "string" }, old_text: { type: "string" }, new_text: { type: "string" } }, required: ["path", "old_text", "new_text"] } }, - serverName: "code", call: async ({ path, old_text, new_text }) => { - try { const cur = td.decode(await readFile(path)); if (!cur.includes(old_text)) return { text: "edit error: old_text not found", isError: true }; - const next = cur.replace(old_text, new_text); await writeFile(path, next); return { text: `edited ${norm(path)} (${cur.length}→${next.length} bytes)`, isError: false }; } - catch (e) { return { text: "edit error: " + (e.message || e), isError: true }; } - }, - }, - { - def: { name: "list_files", description: "List all files in the workspace, optionally filtered by a glob (e.g. **/*.py).", inputSchema: { type: "object", properties: { glob: { type: "string" } }, required: [] } }, - serverName: "code", call: async ({ glob }) => { - try { let files = await listAll(); if (glob) { const re = globToRe(glob); files = files.filter((f) => re.test(f)); } - return { text: files.length ? files.join("\n") : "(workspace empty)", isError: false }; } - catch (e) { return { text: "list error: " + (e.message || e), isError: true }; } - }, - }, - { - def: { name: "grep", description: "Search file contents for a regular expression. Returns matching path:line: text.", inputSchema: { type: "object", properties: { pattern: { type: "string" }, glob: { type: "string" } }, required: ["pattern"] } }, - serverName: "code", call: async ({ pattern, glob }) => { - try { const re = new RegExp(pattern); let files = await listAll(); if (glob) { const g = globToRe(glob); files = files.filter((f) => g.test(f)); } - const hits = []; - for (const f of files) { let text; try { text = td.decode(await readFile(f)); } catch { continue; } - text.split("\n").forEach((ln, i) => { if (re.test(ln) && hits.length < 100) hits.push(`${f}:${i + 1}: ${ln.trim().slice(0, 160)}`); }); } - return { text: hits.length ? hits.join("\n") : "(no matches)", isError: false }; } - catch (e) { return { text: "grep error: " + (e.message || e), isError: true }; } - }, - }, - // ── κ-NATIVE: build a RENDERABLE app object, sealed (the neural-computer flagship: an agent - // produces a real app, content-addressed, that renders + re-derives — serverless, verifiable) ── - { - def: { name: "build_app", description: "Build a complete self-contained HTML app (one file, inline CSS/JS) and seal it as a content-addressed object. Returns its did:holo κ; the app renders live in the preview pane. Use for 'build me an app/page/tool' requests.", inputSchema: { type: "object", properties: { name: { type: "string" }, html: { type: "string" } }, required: ["name", "html"] } }, - serverName: "code", call: async ({ name, html }) => { - try { - const path = (name.endsWith(".html") ? name : name + ".html"); - await writeFile(path, html); - const bytes = te.encode(String(html)); - const kappa = "did:holo:sha256:" + await sha256Hex(bytes); - // semantic skin: the app object carries a W3C @type (schema:SoftwareApplication + prov:Entity), - // written as a sidecar .jsonld so the object is self-describing to any agent / RDF tool. - const ld = appAsSoftware({ name: path, kappa, bytes: bytes.length }); - await writeFile(path.replace(/\.html$/i, "") + ".app.jsonld", JSON.stringify(ld, null, 1)); - return { text: `built app "${path}" (${html.length} bytes), sealed ${kappa.slice(0, 30)}… · typed ${ld["@type"].join("+")} — renders in the preview, re-derivable (Law L5).`, isError: false, render: { kind: "app", path: norm(path), kappa, html: String(html), ld } }; - } catch (e) { return { text: "build_app error: " + (e.message || e), isError: true }; } - }, - }, - { - def: { name: "verify_object", description: "Re-derive a workspace file's content address and confirm it matches (Law L5 — verify every byte). Returns whether the bytes are authentic.", inputSchema: { type: "object", properties: { path: { type: "string" }, kappa: { type: "string" } }, required: ["path"] } }, - serverName: "code", call: async ({ path, kappa }) => { - try { - const bytes = await readFile(path); - const got = "did:holo:sha256:" + await sha256Hex(bytes); - const ok = !kappa || got === kappa || got.startsWith(kappa) || kappa.startsWith(got.slice(0, kappa.length)); - // verify = re-derive κ (Law L5) AND emit the W3C @type — apps are SoftwareApplication, all else DigitalDocument. - const ld = /\.html$/i.test(path) ? appAsSoftware({ name: norm(path), kappa: got, bytes: bytes.length }) - : fileAsDocument({ path: norm(path), kappa: got, bytes: bytes.length }); - return { text: `${norm(path)} re-derives to ${got.slice(0, 34)}…${kappa ? (ok ? " ✓ matches (authentic)" : " ✗ MISMATCH") : ""} · @type ${ld["@type"].join("+")}`, isError: false, render: { kind: "linked-data", ld } }; - } catch (e) { return { text: "verify error: " + (e.message || e), isError: true }; } - }, - }, - ]; -} +version https://git-lfs.github.com/spec/v1 +oid sha256:0e4ab4ee0ca4d7dfbfae6497d8bece1408847414b7db81a1b8f0fbcd31734885 +size 9355 diff --git a/b/03949e721395537c6af6c7195712445aafbb4d000afffdfd028eb6bace54fdef b/b/03949e721395537c6af6c7195712445aafbb4d000afffdfd028eb6bace54fdef index afbc5b12f4891ce41b3f042a1519dff8196893f7..af368e8840ee6f6267be49b217352ec0cb4503df 100644 --- a/b/03949e721395537c6af6c7195712445aafbb4d000afffdfd028eb6bace54fdef +++ b/b/03949e721395537c6af6c7195712445aafbb4d000afffdfd028eb6bace54fdef @@ -1,103 +1,3 @@ -"use client";var Yw=Object.create;var Sl=Object.defineProperty;var Zw=Object.getOwnPropertyDescriptor;var Jw=Object.getOwnPropertyNames;var Qw=Object.getPrototypeOf,eC=Object.prototype.hasOwnProperty;var ci=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tC=(e,t)=>{for(var r in t)Sl(e,r,{get:t[r],enumerable:!0})},rC=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Jw(t))!eC.call(e,o)&&o!==r&&Sl(e,o,{get:()=>t[o],enumerable:!(a=Zw(t,o))||a.enumerable});return e};var di=(e,t,r)=>(r=e!=null?Yw(Qw(e)):{},rC(t||!e||!e.__esModule?Sl(r,"default",{value:e,enumerable:!0}):r,e));var tc=ci((Lv,Su)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",n=o+"Invalid argument: ",i=o+"Exponent out of range: ",u=Math.floor,s=Math.pow,l=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,c,f=1e7,d=7,p=9007199254740991,h=u(p/d),m={};m.absoluteValue=m.abs=function(){var g=new this.constructor(this);return g.s&&(g.s=1),g},m.comparedTo=m.cmp=function(g){var x,S,b,v,w=this;if(g=new w.constructor(g),w.s!==g.s)return w.s||-g.s;if(w.e!==g.e)return w.e>g.e^w.s<0?1:-1;for(b=w.d.length,v=g.d.length,x=0,S=bg.d[x]^w.s<0?1:-1;return b===v?0:b>v^w.s<0?1:-1},m.decimalPlaces=m.dp=function(){var g=this,x=g.d.length-1,S=(x-g.e)*d;if(x=g.d[x],x)for(;x%10==0;x/=10)S--;return S<0?0:S},m.dividedBy=m.div=function(g){return A(this,new this.constructor(g))},m.dividedToIntegerBy=m.idiv=function(g){var x=this,S=x.constructor;return N(A(x,new S(g),0,1),S.precision)},m.equals=m.eq=function(g){return!this.cmp(g)},m.exponent=function(){return P(this)},m.greaterThan=m.gt=function(g){return this.cmp(g)>0},m.greaterThanOrEqualTo=m.gte=function(g){return this.cmp(g)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(g){return this.cmp(g)<0},m.lessThanOrEqualTo=m.lte=function(g){return this.cmp(g)<1},m.logarithm=m.log=function(g){var x,S=this,b=S.constructor,v=b.precision,w=v+5;if(g===void 0)g=new b(10);else if(g=new b(g),g.s<1||g.eq(c))throw Error(o+"NaN");if(S.s<1)throw Error(o+(S.s?"NaN":"-Infinity"));return S.eq(c)?new b(0):(a=!1,x=A(O(S,w),O(g,w),w),a=!0,N(x,v))},m.minus=m.sub=function(g){var x=this;return g=new x.constructor(g),x.s==g.s?K(x,g):y(x,(g.s=-g.s,g))},m.modulo=m.mod=function(g){var x,S=this,b=S.constructor,v=b.precision;if(g=new b(g),!g.s)throw Error(o+"NaN");return S.s?(a=!1,x=A(S,g,0,1).times(g),a=!0,S.minus(x)):N(new b(S),v)},m.naturalExponential=m.exp=function(){return M(this)},m.naturalLogarithm=m.ln=function(){return O(this)},m.negated=m.neg=function(){var g=new this.constructor(this);return g.s=-g.s||0,g},m.plus=m.add=function(g){var x=this;return g=new x.constructor(g),x.s==g.s?y(x,g):K(x,(g.s=-g.s,g))},m.precision=m.sd=function(g){var x,S,b,v=this;if(g!==void 0&&g!==!!g&&g!==1&&g!==0)throw Error(n+g);if(x=P(v)+1,b=v.d.length-1,S=b*d+1,b=v.d[b],b){for(;b%10==0;b/=10)S--;for(b=v.d[0];b>=10;b/=10)S++}return g&&x>S?x:S},m.squareRoot=m.sqrt=function(){var g,x,S,b,v,w,R,T=this,B=T.constructor;if(T.s<1){if(!T.s)return new B(0);throw Error(o+"NaN")}for(g=P(T),a=!1,v=Math.sqrt(+T),v==0||v==1/0?(x=L(T.d),(x.length+g)%2==0&&(x+="0"),v=Math.sqrt(x),g=u((g+1)/2)-(g<0||g%2),v==1/0?x="5e"+g:(x=v.toExponential(),x=x.slice(0,x.indexOf("e")+1)+g),b=new B(x)):b=new B(v.toString()),S=B.precision,v=R=S+3;;)if(w=b,b=w.plus(A(T,w,R+2)).times(.5),L(w.d).slice(0,R)===(x=L(b.d)).slice(0,R)){if(x=x.slice(R-3,R+1),v==R&&x=="4999"){if(N(w,S+1,0),w.times(w).eq(T)){b=w;break}}else if(x!="9999")break;R+=4}return a=!0,N(b,S)},m.times=m.mul=function(g){var x,S,b,v,w,R,T,B,U,j=this,V=j.constructor,me=j.d,E=(g=new V(g)).d;if(!j.s||!g.s)return new V(0);for(g.s*=j.s,S=j.e+g.e,B=me.length,U=E.length,B=0;){for(x=0,v=B+b;v>b;)T=w[v]+E[b]*me[v-b-1]+x,w[v--]=T%f|0,x=T/f|0;w[v]=(w[v]+x)%f|0}for(;!w[--R];)w.pop();return x?++S:w.shift(),g.d=w,g.e=S,a?N(g,V.precision):g},m.toDecimalPlaces=m.todp=function(g,x){var S=this,b=S.constructor;return S=new b(S),g===void 0?S:(I(g,0,t),x===void 0?x=b.rounding:I(x,0,8),N(S,g+P(S)+1,x))},m.toExponential=function(g,x){var S,b=this,v=b.constructor;return g===void 0?S=F(b,!0):(I(g,0,t),x===void 0?x=v.rounding:I(x,0,8),b=N(new v(b),g+1,x),S=F(b,!0,g+1)),S},m.toFixed=function(g,x){var S,b,v=this,w=v.constructor;return g===void 0?F(v):(I(g,0,t),x===void 0?x=w.rounding:I(x,0,8),b=N(new w(v),g+P(v)+1,x),S=F(b.abs(),!1,g+P(b)+1),v.isneg()&&!v.isZero()?"-"+S:S)},m.toInteger=m.toint=function(){var g=this,x=g.constructor;return N(new x(g),P(g)+1,x.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(g){var x,S,b,v,w,R,T=this,B=T.constructor,U=12,j=+(g=new B(g));if(!g.s)return new B(c);if(T=new B(T),!T.s){if(g.s<1)throw Error(o+"Infinity");return T}if(T.eq(c))return T;if(b=B.precision,g.eq(c))return N(T,b);if(x=g.e,S=g.d.length-1,R=x>=S,w=T.s,R){if((S=j<0?-j:j)<=p){for(v=new B(c),x=Math.ceil(b/d+4),a=!1;S%2&&(v=v.times(T),$(v.d,x)),S=u(S/2),S!==0;)T=T.times(T),$(T.d,x);return a=!0,g.s<0?new B(c).div(v):N(v,b)}}else if(w<0)throw Error(o+"NaN");return w=w<0&&g.d[Math.max(x,S)]&1?-1:1,T.s=1,a=!1,v=g.times(O(T,b+U)),a=!0,v=M(v),v.s=w,v},m.toPrecision=function(g,x){var S,b,v=this,w=v.constructor;return g===void 0?(S=P(v),b=F(v,S<=w.toExpNeg||S>=w.toExpPos)):(I(g,1,t),x===void 0?x=w.rounding:I(x,0,8),v=N(new w(v),g,x),S=P(v),b=F(v,g<=S||S<=w.toExpNeg,g)),b},m.toSignificantDigits=m.tosd=function(g,x){var S=this,b=S.constructor;return g===void 0?(g=b.precision,x=b.rounding):(I(g,1,t),x===void 0?x=b.rounding:I(x,0,8)),N(new b(S),g,x)},m.toString=m.valueOf=m.val=m.toJSON=function(){var g=this,x=P(g),S=g.constructor;return F(g,x<=S.toExpNeg||x>=S.toExpPos)};function y(g,x){var S,b,v,w,R,T,B,U,j=g.constructor,V=j.precision;if(!g.s||!x.s)return x.s||(x=new j(g)),a?N(x,V):x;if(B=g.d,U=x.d,R=g.e,v=x.e,B=B.slice(),w=R-v,w){for(w<0?(b=B,w=-w,T=U.length):(b=U,v=R,T=B.length),R=Math.ceil(V/d),T=R>T?R+1:T+1,w>T&&(w=T,b.length=1),b.reverse();w--;)b.push(0);b.reverse()}for(T=B.length,w=U.length,T-w<0&&(w=T,b=U,U=B,B=b),S=0;w;)S=(B[--w]=B[w]+U[w]+S)/f|0,B[w]%=f;for(S&&(B.unshift(S),++v),T=B.length;B[--T]==0;)B.pop();return x.d=B,x.e=v,a?N(x,V):x}function I(g,x,S){if(g!==~~g||gS)throw Error(n+g)}function L(g){var x,S,b,v=g.length-1,w="",R=g[0];if(v>0){for(w+=R,x=1;xR?1:-1;else for(T=B=0;Tv[T]?1:-1;break}return B}function S(b,v,w){for(var R=0;w--;)b[w]-=R,R=b[w]1;)b.shift()}return function(b,v,w,R){var T,B,U,j,V,me,E,q,H,D,we,ee,qe,Be,It,Da,Tt,li,fi=b.constructor,Xw=b.s==v.s?1:-1,zt=b.d,ke=v.d;if(!b.s)return new fi(b);if(!v.s)throw Error(o+"Division by zero");for(B=b.e-v.e,Tt=ke.length,It=zt.length,E=new fi(Xw),q=E.d=[],U=0;ke[U]==(zt[U]||0);)++U;if(ke[U]>(zt[U]||0)&&--B,w==null?ee=w=fi.precision:R?ee=w+(P(b)-P(v))+1:ee=w,ee<0)return new fi(0);if(ee=ee/d+2|0,U=0,Tt==1)for(j=0,ke=ke[0],ee++;(U1&&(ke=g(ke,j),zt=g(zt,j),Tt=ke.length,It=zt.length),Be=Tt,H=zt.slice(0,Tt),D=H.length;D=f/2&&++Da;do j=0,T=x(ke,H,Tt,D),T<0?(we=H[0],Tt!=D&&(we=we*f+(H[1]||0)),j=we/Da|0,j>1?(j>=f&&(j=f-1),V=g(ke,j),me=V.length,D=H.length,T=x(V,H,me,D),T==1&&(j--,S(V,Tt16)throw Error(i+P(g));if(!g.s)return new j(c);for(x==null?(a=!1,T=V):T=x,R=new j(.03125);g.abs().gte(.1);)g=g.times(R),U+=5;for(b=Math.log(s(2,U))/Math.LN10*2+5|0,T+=b,S=v=w=new j(c),j.precision=T;;){if(v=N(v.times(g),T),S=S.times(++B),R=w.plus(A(v,S,T)),L(R.d).slice(0,T)===L(w.d).slice(0,T)){for(;U--;)w=N(w.times(w),T);return j.precision=V,x==null?(a=!0,N(w,V)):w}w=R}}function P(g){for(var x=g.e*d,S=g.d[0];S>=10;S/=10)x++;return x}function k(g,x,S){if(x>g.LN10.sd())throw a=!0,S&&(g.precision=S),Error(o+"LN10 precision limit exceeded");return N(new g(g.LN10),x)}function _(g){for(var x="";g--;)x+="0";return x}function O(g,x){var S,b,v,w,R,T,B,U,j,V=1,me=10,E=g,q=E.d,H=E.constructor,D=H.precision;if(E.s<1)throw Error(o+(E.s?"NaN":"-Infinity"));if(E.eq(c))return new H(0);if(x==null?(a=!1,U=D):U=x,E.eq(10))return x==null&&(a=!0),k(H,U);if(U+=me,H.precision=U,S=L(q),b=S.charAt(0),w=P(E),Math.abs(w)<15e14){for(;b<7&&b!=1||b==1&&S.charAt(1)>3;)E=E.times(g),S=L(E.d),b=S.charAt(0),V++;w=P(E),b>1?(E=new H("0."+S),w++):E=new H(b+"."+S.slice(1))}else return B=k(H,U+2,D).times(w+""),E=O(new H(b+"."+S.slice(1)),U-me).plus(B),H.precision=D,x==null?(a=!0,N(E,D)):E;for(T=R=E=A(E.minus(c),E.plus(c),U),j=N(E.times(E),U),v=3;;){if(R=N(R.times(j),U),B=T.plus(A(R,new H(v),U)),L(B.d).slice(0,U)===L(T.d).slice(0,U))return T=T.times(2),w!==0&&(T=T.plus(k(H,U+2,D).times(w+""))),T=A(T,new H(V),U),H.precision=D,x==null?(a=!0,N(T,D)):T;T=B,v+=2}}function z(g,x){var S,b,v;for((S=x.indexOf("."))>-1&&(x=x.replace(".","")),(b=x.search(/e/i))>0?(S<0&&(S=b),S+=+x.slice(b+1),x=x.substring(0,b)):S<0&&(S=x.length),b=0;x.charCodeAt(b)===48;)++b;for(v=x.length;x.charCodeAt(v-1)===48;)--v;if(x=x.slice(b,v),x){if(v-=b,S=S-b-1,g.e=u(S/d),g.d=[],b=(S+1)%d,S<0&&(b+=d),bh||g.e<-h))throw Error(i+S)}else g.s=0,g.e=0,g.d=[0];return g}function N(g,x,S){var b,v,w,R,T,B,U,j,V=g.d;for(R=1,w=V[0];w>=10;w/=10)R++;if(b=x-R,b<0)b+=d,v=x,U=V[j=0];else{if(j=Math.ceil((b+1)/d),w=V.length,j>=w)return g;for(U=w=V[j],R=1;w>=10;w/=10)R++;b%=d,v=b-d+R}if(S!==void 0&&(w=s(10,R-v-1),T=U/w%10|0,B=x<0||V[j+1]!==void 0||U%w,B=S<4?(T||B)&&(S==0||S==(g.s<0?3:2)):T>5||T==5&&(S==4||B||S==6&&(b>0?v>0?U/s(10,R-v):0:V[j-1])%10&1||S==(g.s<0?8:7))),x<1||!V[0])return B?(w=P(g),V.length=1,x=x-w-1,V[0]=s(10,(d-x%d)%d),g.e=u(-x/d)||0):(V.length=1,V[0]=g.e=g.s=0),g;if(b==0?(V.length=j,w=1,j--):(V.length=j+1,w=s(10,d-b),V[j]=v>0?(U/s(10,R-v)%s(10,v)|0)*w:0),B)for(;;)if(j==0){(V[0]+=w)==f&&(V[0]=1,++g.e);break}else{if(V[j]+=w,V[j]!=f)break;V[j--]=0,w=1}for(b=V.length;V[--b]===0;)V.pop();if(a&&(g.e>h||g.e<-h))throw Error(i+P(g));return g}function K(g,x){var S,b,v,w,R,T,B,U,j,V,me=g.constructor,E=me.precision;if(!g.s||!x.s)return x.s?x.s=-x.s:x=new me(g),a?N(x,E):x;if(B=g.d,V=x.d,b=x.e,U=g.e,B=B.slice(),R=U-b,R){for(j=R<0,j?(S=B,R=-R,T=V.length):(S=V,b=U,T=B.length),v=Math.max(Math.ceil(E/d),T)+2,R>v&&(R=v,S.length=1),S.reverse(),v=R;v--;)S.push(0);S.reverse()}else{for(v=B.length,T=V.length,j=v0;--v)B[T++]=0;for(v=V.length;v>R;){if(B[--v]0?w=w.charAt(0)+"."+w.slice(1)+_(b):R>1&&(w=w.charAt(0)+"."+w.slice(1)),w=w+(v<0?"e":"e+")+v):v<0?(w="0."+_(-v-1)+w,S&&(b=S-R)>0&&(w+=_(b))):v>=R?(w+=_(v+1-R),S&&(b=S-v-1)>0&&(w=w+"."+_(b))):((b=v+1)0&&(v+1===R&&(w+="."),w+=_(b))),g.s<0?"-"+w:w}function $(g,x){if(g.length>x)return g.length=x,!0}function X(g){var x,S,b;function v(w){var R=this;if(!(R instanceof v))return new v(w);if(R.constructor=v,w instanceof v){R.s=w.s,R.e=w.e,R.d=(w=w.d)?w.slice():w;return}if(typeof w=="number"){if(w*0!==0)throw Error(n+w);if(w>0)R.s=1;else if(w<0)w=-w,R.s=-1;else{R.s=0,R.e=0,R.d=[0];return}if(w===~~w&&w<1e7){R.e=0,R.d=[w];return}return z(R,w.toString())}else if(typeof w!="string")throw Error(n+w);if(w.charCodeAt(0)===45?(w=w.slice(1),R.s=-1):R.s=1,l.test(w))z(R,w);else throw Error(n+w)}if(v.prototype=m,v.ROUND_UP=0,v.ROUND_DOWN=1,v.ROUND_CEIL=2,v.ROUND_FLOOR=3,v.ROUND_HALF_UP=4,v.ROUND_HALF_DOWN=5,v.ROUND_HALF_EVEN=6,v.ROUND_HALF_CEIL=7,v.ROUND_HALF_FLOOR=8,v.clone=X,v.config=v.set=ie,g===void 0&&(g={}),g)for(b=["precision","rounding","toExpNeg","toExpPos","LN10"],x=0;x=v[x+1]&&b<=v[x+2])this[S]=b;else throw Error(n+S+": "+b);if((b=g[S="LN10"])!==void 0)if(b==Math.LN10)this[S]=new this(b);else throw Error(n+S+": "+b);return this}r=X(r),r.default=r.Decimal=r,c=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Su<"u"&&Su.exports?Su.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Lv)});var ib=ci((P5,Pd)=>{"use strict";var $E=Object.prototype.hasOwnProperty,tt="~";function $n(){}Object.create&&($n.prototype=Object.create(null),new $n().__proto__||(tt=!1));function XE(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function nb(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new XE(r,a||e,o),i=tt?tt+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function Ts(e,t){--e._eventsCount===0?e._events=new $n:delete e._events[t]}function $e(){this._events=new $n,this._eventsCount=0}$e.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)$E.call(r,a)&&t.push(tt?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};$e.prototype.listeners=function(t){var r=tt?tt+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,i=new Array(n);o{"use strict";var Hd=Symbol.for("react.transitional.element"),Vd=Symbol.for("react.portal"),Gs=Symbol.for("react.fragment"),Ks=Symbol.for("react.strict_mode"),$s=Symbol.for("react.profiler"),Xs=Symbol.for("react.consumer"),Ys=Symbol.for("react.context"),Zs=Symbol.for("react.forward_ref"),Js=Symbol.for("react.suspense"),Qs=Symbol.for("react.suspense_list"),el=Symbol.for("react.memo"),tl=Symbol.for("react.lazy"),KR=Symbol.for("react.view_transition"),$R=Symbol.for("react.client.reference");function Dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hd:switch(e=e.type,e){case Gs:case $s:case Ks:case Js:case Qs:case KR:return e;default:switch(e=e&&e.$$typeof,e){case Ys:case Zs:case tl:case el:return e;case Xs:return e;default:return t}}case Vd:return t}}}pe.ContextConsumer=Xs;pe.ContextProvider=Ys;pe.Element=Hd;pe.ForwardRef=Zs;pe.Fragment=Gs;pe.Lazy=tl;pe.Memo=el;pe.Portal=Vd;pe.Profiler=$s;pe.StrictMode=Ks;pe.Suspense=Js;pe.SuspenseList=Qs;pe.isContextConsumer=function(e){return Dt(e)===Xs};pe.isContextProvider=function(e){return Dt(e)===Ys};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hd};pe.isForwardRef=function(e){return Dt(e)===Zs};pe.isFragment=function(e){return Dt(e)===Gs};pe.isLazy=function(e){return Dt(e)===tl};pe.isMemo=function(e){return Dt(e)===el};pe.isPortal=function(e){return Dt(e)===Vd};pe.isProfiler=function(e){return Dt(e)===$s};pe.isStrictMode=function(e){return Dt(e)===Ks};pe.isSuspense=function(e){return Dt(e)===Js};pe.isSuspenseList=function(e){return Dt(e)===Qs};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gs||e===$s||e===Ks||e===Js||e===Qs||typeof e=="object"&&e!==null&&(e.$$typeof===tl||e.$$typeof===el||e.$$typeof===Ys||e.$$typeof===Xs||e.$$typeof===Zs||e.$$typeof===$R||e.getModuleId!==void 0)};pe.typeOf=Dt});var wI=ci((n6,II)=>{"use strict";II.exports=bI()});import{forwardRef as oC,createElement as nC}from"react";var wp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pi=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();import{forwardRef as aC,createElement as Sp}from"react";var Cp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Lp=aC(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...u},s)=>Sp("svg",{ref:s,...Cp,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:pi("lucide",o),...u},[...i.map(([l,c])=>Sp(l,c)),...Array.isArray(n)?n:[n]]));var Pp=(e,t)=>{let r=oC(({className:a,...o},n)=>nC(Lp,{ref:n,iconNode:t,className:pi(`lucide-${wp(e)}`,a),...o}));return r.displayName=`${e}`,r};var jo=Pp("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);import*as hi from"react";import{forwardRef as pC}from"react";function Ap(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:a,height:o,viewBox:n,className:i,style:u,title:s,desc:l}=e,c=cC(e,fC),f=n||{width:a,height:o,x:0,y:0},d=oe("recharts-surface",i);return hi.createElement("svg",Al({},Oe(c),{className:d,width:a,height:o,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),hi.createElement("title",null,s),hi.createElement("desc",null,l),r)});import*as gi from"react";var mC=["children","className"];function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:a}=e,o=hC(e,mC),n=oe("recharts-layer",a);return gi.createElement("g",Ol({className:n},Oe(o),{ref:t}),r)});import{createContext as vC,useContext as QN}from"react";var kp=vC(null);import*as Kp from"react";function le(e){return function(){return e}}var Ml=Math.cos;var qo=Math.sin,Fe=Math.sqrt;var Gr=Math.PI,rB=Gr/2,Ra=2*Gr;var El=Math.PI,Dl=2*El,Kr=1e-6,xC=Dl-Kr;function Op(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Op;let r=10**t;return function(a){this._+=a[0];for(let o=1,n=a.length;oKr)if(!(Math.abs(f*s-l*c)>Kr)||!n)this._append`L${this._x1=t},${this._y1=r}`;else{let p=a-i,h=o-u,m=s*s+l*l,y=p*p+h*h,I=Math.sqrt(m),L=Math.sqrt(d),A=n*Math.tan((El-Math.acos((m+d-y)/(2*I*L)))/2),M=A/L,P=A/I;Math.abs(M-1)>Kr&&this._append`L${t+M*c},${r+M*f}`,this._append`A${n},${n},0,0,${+(f*p>c*h)},${this._x1=t+P*s},${this._y1=r+P*l}`}}arc(t,r,a,o,n,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let u=a*Math.cos(o),s=a*Math.sin(o),l=t+u,c=r+s,f=1^i,d=i?o-n:n-o;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Kr||Math.abs(this._y1-c)>Kr)&&this._append`L${l},${c}`,a&&(d<0&&(d=d%Dl+Dl),d>xC?this._append`A${a},${a},0,1,${f},${t-u},${r-s}A${a},${a},0,1,${f},${this._x1=l},${this._y1=c}`:d>Kr&&this._append`A${a},${a},0,${+(d>=El)},${f},${this._x1=t+a*Math.cos(n)},${this._y1=r+a*Math.sin(n)}`)}rect(t,r,a,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}};function Mp(){return new $r}Mp.prototype=$r.prototype;function Ta(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new $r(t)}var fB=Array.prototype.slice;function _a(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ep(e){this._context=e}Ep.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 wr(e){return new Ep(e)}function vi(e){return e[0]}function xi(e){return e[1]}function zo(e,t){var r=le(!0),a=null,o=wr,n=null,i=Ta(u);e=typeof e=="function"?e:e===void 0?vi:le(e),t=typeof t=="function"?t:t===void 0?xi:le(t);function u(s){var l,c=(s=_a(s)).length,f,d=!1,p;for(a==null&&(n=o(p=i())),l=0;l<=c;++l)!(l=p;--h)u.point(A[h],M[h]);u.lineEnd(),u.areaEnd()}I&&(A[d]=+e(y,d,f),M[d]=+t(y,d,f),u.point(a?+a(y,d,f):A[d],r?+r(y,d,f):M[d]))}if(L)return u=null,L+""||null}function c(){return zo().defined(o).curve(i).context(n)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:le(+f),a=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:le(+f),l):e},l.x1=function(f){return arguments.length?(a=f==null?null:typeof f=="function"?f:le(+f),l):a},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:le(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:le(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:le(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(a).y(t)},l.defined=function(f){return arguments.length?(o=typeof f=="function"?f:le(!!f),l):o},l.curve=function(f){return arguments.length?(i=f,n!=null&&(u=i(n)),l):i},l.context=function(f){return arguments.length?(f==null?n=u=null:u=i(n=f),l):n},l}var yi=class{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Rl(e){return new yi(e,!0)}function Tl(e){return new yi(e,!1)}var Ba={draw(e,t){let r=Fe(t/Gr);e.moveTo(r,0),e.arc(0,0,r,0,Ra)}};var _l={draw(e,t){let r=Fe(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var Dp=Fe(1/3),bC=Dp*2,Nl={draw(e,t){let r=Fe(t/bC),a=r*Dp;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}};var Bl={draw(e,t){let r=Fe(t),a=-r/2;e.rect(a,a,r,r)}};var IC=.8908130915292852,Rp=qo(Gr/10)/qo(7*Gr/10),wC=qo(Ra/10)*Rp,CC=-Ml(Ra/10)*Rp,Fl={draw(e,t){let r=Fe(t*IC),a=wC*r,o=CC*r;e.moveTo(0,-r),e.lineTo(a,o);for(let n=1;n<5;++n){let i=Ra*n/5,u=Ml(i),s=qo(i);e.lineTo(s*r,-u*r),e.lineTo(u*a-s*o,s*a+u*o)}e.closePath()}};var jl=Fe(3),Ul={draw(e,t){let r=-Fe(t/(jl*3));e.moveTo(0,r*2),e.lineTo(-jl*r,-r),e.lineTo(jl*r,-r),e.closePath()}};var wt=-.5,Ct=Fe(3)/2,ql=1/Fe(12),SC=(ql/2+1)*3,zl={draw(e,t){let r=Fe(t/SC),a=r/2,o=r*ql,n=a,i=r*ql+r,u=-n,s=i;e.moveTo(a,o),e.lineTo(n,i),e.lineTo(u,s),e.lineTo(wt*a-Ct*o,Ct*a+wt*o),e.lineTo(wt*n-Ct*i,Ct*n+wt*i),e.lineTo(wt*u-Ct*s,Ct*u+wt*s),e.lineTo(wt*a+Ct*o,wt*o-Ct*a),e.lineTo(wt*n+Ct*i,wt*i-Ct*n),e.lineTo(wt*u+Ct*s,wt*s-Ct*u),e.closePath()}};function bi(e,t){let r=null,a=Ta(o);e=typeof e=="function"?e:le(e||Ba),t=typeof t=="function"?t:le(t===void 0?64:+t);function o(){let n;if(r||(r=n=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return o.type=function(n){return arguments.length?(e=typeof n=="function"?n:le(n),o):e},o.size=function(n){return arguments.length?(t=typeof n=="function"?n:le(+n),o):t},o.context=function(n){return arguments.length?(r=n??null,o):r},o}function Fa(){}function ja(e,t,r){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+r)/6)}function Tp(e){this._context=e}Tp.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:ja(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:ja(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hl(e){return new Tp(e)}function _p(e){this._context=e}_p.prototype={areaStart:Fa,areaEnd:Fa,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:ja(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vl(e){return new _p(e)}function Np(e){this._context=e}Np.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 r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:ja(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wl(e){return new Np(e)}function Bp(e){this._context=e}Bp.prototype={areaStart:Fa,areaEnd:Fa,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 Gl(e){return new Bp(e)}function Fp(e){return e<0?-1:1}function jp(e,t,r){var a=e._x1-e._x0,o=t-e._x1,n=(e._y1-e._y0)/(a||o<0&&-0),i=(r-e._y1)/(o||a<0&&-0),u=(n*o+i*a)/(a+o);return(Fp(n)+Fp(i))*Math.min(Math.abs(n),Math.abs(i),.5*Math.abs(u))||0}function Up(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Kl(e,t,r){var a=e._x0,o=e._y0,n=e._x1,i=e._y1,u=(n-a)/3;e._context.bezierCurveTo(a+u,o+u*t,n-u,i-u*r,n,i)}function Ii(e){this._context=e}Ii.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:Kl(this,this._t0,Up(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 r=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,Kl(this,Up(this,r=jp(this,e,t)),r);break;default:Kl(this,this._t0,r=jp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function qp(e){this._context=new zp(e)}(qp.prototype=Object.create(Ii.prototype)).point=function(e,t){Ii.prototype.point.call(this,t,e)};function zp(e){this._context=e}zp.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,r,a,o,n){this._context.bezierCurveTo(t,e,a,r,n,o)}};function $l(e){return new Ii(e)}function Xl(e){return new qp(e)}function Vp(e){this._context=e}Vp.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=Hp(e),o=Hp(t),n=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/n[t];for(n[r-1]=(e[r]+o[r-1])/2,t=0;t=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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Zl(e){return new wi(e,.5)}function Jl(e){return new wi(e,0)}function Ql(e){return new wi(e,1)}function it(e,t){if((i=e.length)>1)for(var r=1,a,o,n=e[t[0]],i,u=n.length;r=0;)r[t]=t;return r}function LC(e,t){return e[t]}function PC(e){let t=[];return t.key=e,t}function ef(){var e=le([]),t=Ua,r=it,a=LC;function o(n){var i=Array.from(e.apply(this,arguments),PC),u,s=i.length,l=-1,c;for(let f of n)for(u=0,++l;u0){for(var r,a,o=0,n=e[0].length,i;o0){for(var r=0,a=e[t[0]],o,n=a.length;r0)||!((n=(o=e[t[0]]).length)>0))){for(var r=0,a=1,o,n,i;a1&&arguments[1]!==void 0?arguments[1]:OC,r=10**t,a=Math.round(e*r)/r;return Object.is(a,-0)?0:a}function he(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{var u=r[i-1];return typeof u=="string"?o+u+n:u!==void 0?o+Ht(u)+n:o+n},"")}var Ee=e=>e===0?0:e>0?1:-1,rt=e=>typeof e=="number"&&e!=+e,or=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Z=e=>(typeof e=="number"||e instanceof Number)&&!rt(e),Vt=e=>Z(e)||typeof e=="string",MC=0,nr=e=>{var t=++MC;return"".concat(e||"").concat(t)},ze=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(t)&&typeof t!="string")return a;var n;if(or(t)){if(r==null)return a;var i=t.indexOf("%");n=r*parseFloat(t.slice(0,i))/100}else n=+t;return rt(n)&&(n=a),o&&r!=null&&n>r&&(n=r),n},nf=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;aa&&(typeof t=="function"?t(a):ut(a,t))===r)}var ge=e=>e===null||typeof e>"u",ir=e=>ge(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function st(e){return e!=null}function lt(){}var EC=["type","size","sizeType"];function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(ir(e));return $p[t]||Ba},jC=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*BC;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},UC=(e,t)=>{$p["symbol".concat(ir(e))]=t},lf=e=>{var{type:t="circle",size:r=64,sizeType:a="area"}=e,o=_C(e,EC),n=Gp(Gp({},o),{},{type:t,size:r,sizeType:a}),i="circle";typeof t=="string"&&(i=t);var u=()=>{var d=FC(i),p=bi().type(d).size(jC(r,a,i)),h=p();if(h!==null)return h},{className:s,cx:l,cy:c}=n,f=Oe(n);return Z(l)&&Z(c)&&Z(r)?Kp.createElement("path",sf({},f,{className:oe("recharts-symbols",s),transform:"translate(".concat(l,", ").concat(c,")"),d:u()})):null};lf.registerSymbol=UC;import{isValidElement as qC}from"react";var Xp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(qC(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(o=>{Uo(o)&&typeof r[o]=="function"&&(a[o]=t||(n=>r[o](r,n)))}),a},zC=(e,t,r)=>a=>(e(t,r,a),null),Ho=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(o=>{var n=e[o];Uo(o)&&typeof n=="function"&&(a||(a={}),a[o]=zC(n,t,r))}),a};function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function HC(e){for(var t=1;t(i[u]===void 0&&a[u]!==void 0&&(i[u]=a[u]),i),r);return n}function Ha(e){return e}function Zp(e){return function(t){return ut(t,e)}}function Vo(e){return e==null||typeof e!="object"&&typeof e!="function"}function Jp(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qp(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Va(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var em="[object RegExp]",Li="[object String]",Pi="[object Number]",Ai="[object Boolean]",ki="[object Arguments]",tm="[object Symbol]",rm="[object Date]",am="[object Map]",om="[object Set]",nm="[object Array]";var im="[object ArrayBuffer]",um="[object Object]";var sm="[object DataView]",lm="[object Uint8Array]",fm="[object Uint8ClampedArray]",cm="[object Uint16Array]",dm="[object Uint32Array]";var pm="[object Int8Array]",mm="[object Int16Array]",hm="[object Int32Array]";var gm="[object Float32Array]",vm="[object Float64Array]";var ff=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function xm(e){return typeof ff.Buffer<"u"&&ff.Buffer.isBuffer(e)}function ym(e,t){return Cr(e,void 0,e,new Map,t)}function Cr(e,t,r,a=new Map,o=void 0){let n=o?.(e,t,r,a);if(n!==void 0)return n;if(Vo(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let i=new Array(e.length);a.set(e,i);for(let u=0;u{}):cf(e,t,function a(o,n,i,u,s,l){let c=r(o,n,i,u,s,l);return c!==void 0?!!c:cf(o,n,a,l)},new Map)}function cf(e,t,r,a){if(t===e)return!0;switch(typeof t){case"object":return $C(e,t,r,a);case"function":return Object.keys(t).length>0?cf(e,{...t},r,a):Wo(e,t);default:return Oi(e)?typeof t=="string"?t==="":!0:Wo(e,t)}}function $C(e,t,r,a){if(t==null)return!0;if(Array.isArray(t))return Im(e,t,r,a);if(t instanceof Map)return XC(e,t,r,a);if(t instanceof Set)return YC(e,t,r,a);let o=Object.keys(t);if(e==null||Vo(e))return o.length===0;if(o.length===0)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let n=0;n{})}function wm(e){return e=bm(e),t=>Mi(t,e)}function Cm(e,t){return ym(e,(r,a,o,n)=>{let i=t?.(r,a,o,n);if(i!==void 0)return i;if(typeof e=="object"){if(Va(e)==="[object Object]"&&typeof e.constructor!="function"){let u={};return n.set(e,u),St(u,e,o,n),u}switch(Object.prototype.toString.call(e)){case Pi:case Li:case Ai:{let u=new e.constructor(e?.valueOf());return St(u,e),u}case ki:{let u={};return St(u,e),u.length=e.length,u[Symbol.iterator]=e[Symbol.iterator],u}default:return}}})}function Sm(e){return Cm(e)}var ZC=/^(?:0|[1-9]\d*)$/;function Ei(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Om(e){return e!=null&&typeof e!="function"&&km(e.length)}import*as pf from"react";var{useRef:JC,useEffect:QC,useMemo:eS,useDebugValue:tS}=pf;function mf(e,t,r,a,o){let n=JC(null),i;n.current===null?(i={hasValue:!1,value:null},n.current=i):i=n.current;let[u,s]=eS(()=>{let c=!1,f,d,p=I=>{if(!c){c=!0,f=I;let P=a(I);if(o!==void 0&&i.hasValue){let k=i.value;if(o(k,P))return d=k,k}return d=P,P}let L=f,A=d;if(Object.is(L,I))return A;let M=a(I);return o!==void 0&&o(A,M)?(f=I,A):(f=I,d=M,M)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,a,o]),l=pf.useSyncExternalStore(e,u,s);return QC(()=>{i.hasValue=!0,i.value=l},[l]),tS(l),l}import{useContext as Mm,useMemo as aS}from"react";import{createContext as rS}from"react";var Go=rS(null);var oS=e=>e,re=()=>{var e=Mm(Go);return e?e.store.dispatch:oS},Ri=()=>{},nS=()=>Ri,iS=(e,t)=>e===t;function Y(e){var t=Mm(Go),r=aS(()=>t?a=>{if(a!=null)return e(a)}:Ri,[t,e]);return mf(t?t.subscription.addNestedSub:nS,t?t.store.getState:Ri,t?t.store.getState:Ri,r,iS)}function uS(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function sS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function lS(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var Em=e=>Array.isArray(e)?e:[e];function fS(e){let t=Array.isArray(e[0])?e[0]:e;return lS(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function cS(e,t){let r=[],{length:a}=e;for(let o=0;o{r=Ti(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function hS(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...o)=>{let n=0,i=0,u,s={},l=o.pop();typeof l=="object"&&(s=l,l=o.pop()),uS(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);let c={...r,...s},{memoize:f,memoizeOptions:d=[],argsMemoize:p=Rm,argsMemoizeOptions:h=[],devModeChecks:m={}}=c,y=Em(d),I=Em(h),L=fS(o),A=f(function(){return n++,l.apply(null,arguments)},...y),M=!0,P=p(function(){i++;let _=cS(L,arguments);return u=A.apply(null,_),u},...I);return Object.assign(P,{resultFunc:l,memoizedResultFunc:A,dependencies:L,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>u,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:f,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var C=hS(Rm),gS=Object.assign((e,t=C)=>{sS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),a=r.map(n=>e[n]);return t(a,(...n)=>n.reduce((i,u,s)=>(i[r[s]]=u,i),{}))},{withTypes:()=>gS});function Tm(e,t=1){let r=[],a=Math.floor(t),o=(n,i)=>{for(let u=0;u{if(e!==t){let a=_m(e),o=_m(t);if(a===o&&a===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-a:a-o}return 0};function _i(e){return typeof e=="symbol"||e instanceof Symbol}var vS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xS=/^\w*$/;function Bm(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||_i(e)?!0:typeof e=="string"&&(xS.test(e)||!vS.test(e))||t!=null&&Object.hasOwn(t,e)}function Fm(e,t,r,a){if(e==null)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));let o=(u,s)=>{let l=u;for(let c=0;cs==null||u==null?s:typeof u=="object"&&"key"in u?Object.hasOwn(s,u.key)?s[u.key]:o(s,u.path):typeof u=="function"?u(s):Array.isArray(u)?o(s,u):typeof s=="object"?s[u]:s,i=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||Bm(u)?u:{key:u,path:za(u)}));return e.map(u=>({original:u,criteria:i.map(s=>n(s,u))})).slice().sort((u,s)=>{for(let l=0;lu.original)}function Xr(e,...t){let r=t.length;return r>1&&Ko(e,t[0],t[1])?t=[]:r>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),Fm(e,Tm(t),["asc"])}var hf=e=>e.legend.settings,jm=e=>e.legend.size,yS=e=>e.legend.payload,aU=C([yS,hf],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?Xr(a,r):a});import{useEffect as tP}from"react";function He(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Um=bS,gf=()=>Math.random().toString(36).substring(7).split("").join("."),IS={INIT:`@@redux/INIT${gf()}`,REPLACE:`@@redux/REPLACE${gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gf()}`},Ni=IS;function Bi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vf(e,t,r){if(typeof e!="function")throw new Error(He(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(vf)(e,t)}let a=e,o=t,n=new Map,i=n,u=0,s=!1;function l(){i===n&&(i=new Map,n.forEach((y,I)=>{i.set(I,y)}))}function c(){if(s)throw new Error(He(3));return o}function f(y){if(typeof y!="function")throw new Error(He(4));if(s)throw new Error(He(5));let I=!0;l();let L=u++;return i.set(L,y),function(){if(I){if(s)throw new Error(He(6));I=!1,l(),i.delete(L),n=null}}}function d(y){if(!Bi(y))throw new Error(He(7));if(typeof y.type>"u")throw new Error(He(8));if(typeof y.type!="string")throw new Error(He(17));if(s)throw new Error(He(9));try{s=!0,o=a(o,y)}finally{s=!1}return(n=i).forEach(L=>{L()}),y}function p(y){if(typeof y!="function")throw new Error(He(10));a=y,d({type:Ni.REPLACE})}function h(){let y=f;return{subscribe(I){if(typeof I!="object"||I===null)throw new Error(He(11));function L(){let M=I;M.next&&M.next(c())}return L(),{unsubscribe:y(L)}},[Um](){return this}}}return d({type:Ni.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[Um]:h}}function wS(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Ni.INIT})>"u")throw new Error(He(12));if(typeof r(void 0,{type:Ni.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Fi(e){let t=Object.keys(e),r={};for(let i=0;i"u"){let y=s&&s.type;throw new Error(He(14))}c[d]=m,l=l||m!==h}return l=l||a.length!==Object.keys(u).length,l?c:u}}function $o(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function qm(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(He(15))},i={getState:o.getState,dispatch:(s,...l)=>n(s,...l)},u=e.map(s=>s(i));return n=$o(...u)(o.dispatch),{...o,dispatch:n}}}function xf(e){return Bi(e)&&"type"in e&&typeof e.type=="string"}var Zm=Symbol.for("immer-nothing"),zm=Symbol.for("immer-draftable"),Ze=Symbol.for("immer-state");function _t(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ft=Object,Ga=ft.getPrototypeOf,zi="constructor",$i="prototype",If="configurable",Hi="enumerable",Ui="writable",Xo="value",Wt=e=>!!e&&!!e[Ze];function Lt(e){return e?Jm(e)||Yi(e)||!!e[zm]||!!e[zi]?.[zm]||Zi(e)||Ji(e):!1}var CS=ft[$i][zi].toString(),Hm=new WeakMap;function Jm(e){if(!e||!Of(e))return!1;let t=Ga(e);if(t===null||t===ft[$i])return!0;let r=ft.hasOwnProperty.call(t,zi)&&t[zi];if(r===Object)return!0;if(!Wa(r))return!1;let a=Hm.get(r);return a===void 0&&(a=Function.toString.call(r),Hm.set(r,a)),a===CS}function Xi(e,t,r=!0){Jo(e)===0?(r?Reflect.ownKeys(e):ft.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function Jo(e){let t=e[Ze];return t?t.type_:Yi(e)?1:Zi(e)?2:Ji(e)?3:0}var Vm=(e,t,r=Jo(e))=>r===2?e.has(t):ft[$i].hasOwnProperty.call(e,t),wf=(e,t,r=Jo(e))=>r===2?e.get(t):e[t],Vi=(e,t,r,a=Jo(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function SS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Yi=Array.isArray,Zi=e=>e instanceof Map,Ji=e=>e instanceof Set,Of=e=>typeof e=="object",Wa=e=>typeof e=="function",yf=e=>typeof e=="boolean";function LS(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ur=e=>e.copy_||e.base_;var Mf=e=>e.modified_?e.copy_:e.base_;function Cf(e,t){if(Zi(e))return new Map(e);if(Ji(e))return new Set(e);if(Yi(e))return Array[$i].slice.call(e);let r=Jm(e);if(t===!0||t==="class_only"&&!r){let a=ft.getOwnPropertyDescriptors(e);delete a[Ze];let o=Reflect.ownKeys(a);for(let n=0;n1&&ft.defineProperties(e,{set:ji,add:ji,clear:ji,delete:ji}),ft.freeze(e),t&&Xi(e,(r,a)=>{Ef(a,!0)},!1)),e}function PS(){_t(2)}var ji={[Xo]:PS};function Qi(e){return e===null||!Of(e)?!0:ft.isFrozen(e)}var Wi="MapSet",Sf="Patches",Wm="ArrayMethods",Qm={};function Yr(e){let t=Qm[e];return t||_t(0,e),t}var Gm=e=>!!Qm[e];var Yo,eh=()=>Yo,AS=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Gm(Wi)?Yr(Wi):void 0,arrayMethodsPlugin_:Gm(Wm)?Yr(Wm):void 0});function Km(e,t){t&&(e.patchPlugin_=Yr(Sf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lf(e){Pf(e),e.drafts_.forEach(kS),e.drafts_=null}function Pf(e){e===Yo&&(Yo=e.parent_)}var $m=e=>Yo=AS(Yo,e);function kS(e){let t=e[Ze];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xm(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ze].modified_&&(Lf(t),_t(4)),Lt(e)&&(e=Ym(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Ze].base_,e,t)}else e=Ym(t,r);return OS(t,e,!0),Lf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Zm?e:void 0}function Ym(e,t){if(Qi(t))return t;let r=t[Ze];if(!r)return Gi(t,e.handledSet_,e);if(!eu(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);ah(r,e)}return r.copy_}function OS(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ef(t,r)}function th(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var eu=(e,t)=>e.scope_===t,MS=[];function rh(e,t,r,a){let o=ur(e),n=e.type_;if(a!==void 0&&wf(o,a,n)===t){Vi(o,a,r,n);return}if(!e.draftLocations_){let u=e.draftLocations_=new Map;Xi(o,(s,l)=>{if(Wt(l)){let c=u.get(l)||[];c.push(s),u.set(l,c)}})}let i=e.draftLocations_.get(t)??MS;for(let u of i)Vi(o,u,r,n)}function ES(e,t,r){e.callbacks_.push(function(o){let n=t;if(!n||!eu(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let i=Mf(n);rh(e,n.draft_??n,i,r),ah(n,o)})}function ah(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:a}=t;if(a){let o=a.getPath(e);o&&a.generatePatches_(e,o,t)}th(e)}}function DS(e,t,r){let{scope_:a}=e;if(Wt(r)){let o=r[Ze];eu(o,a)&&o.callbacks_.push(function(){qi(e);let i=Mf(o);rh(e,r,i,t)})}else Lt(r)&&e.callbacks_.push(function(){let n=ur(e);e.type_===3?n.has(r)&&Gi(r,a.handledSet_,a):wf(n,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Gi(wf(e.copy_,t,e.type_),a.handledSet_,a)})}function Gi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Wt(e)||t.has(e)||!Lt(e)||Qi(e)||(t.add(e),Xi(e,(a,o)=>{if(Wt(o)){let n=o[Ze];if(eu(n,r)){let i=Mf(n);Vi(e,a,i,e.type_),th(n)}}else Lt(o)&&Gi(o,t,r)})),e}function RS(e,t){let r=Yi(e),a={type_:r?1:0,scope_:t?t.scope_:eh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=a,n=Ki;r&&(o=[a],n=Zo);let{revoke:i,proxy:u}=Proxy.revocable(o,n);return a.draft_=u,a.revoke_=i,[u,a]}var Ki={get(e,t){if(t===Ze)return e;let r=e.scope_.arrayMethodsPlugin_,a=e.type_===1&&typeof t=="string";if(a&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=ur(e);if(!Vm(o,t,e.type_))return TS(e,o,t);let n=o[t];if(e.finalized_||!Lt(n)||a&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&LS(t))return n;if(n===bf(e.base_,t)){qi(e);let i=e.type_===1?+t:t,u=kf(e.scope_,n,e,i);return e.copy_[i]=u}return n},has(e,t){return t in ur(e)},ownKeys(e){return Reflect.ownKeys(ur(e))},set(e,t,r){let a=oh(ur(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){let o=bf(ur(e),t),n=o?.[Ze];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(SS(r,o)&&(r!==void 0||Vm(e.base_,t,e.type_)))return!0;qi(e),Af(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),DS(e,t,r)),!0},deleteProperty(e,t){return qi(e),bf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Af(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ur(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Ui]:!0,[If]:e.type_!==1||t!=="length",[Hi]:a[Hi],[Xo]:r[t]}},defineProperty(){_t(11)},getPrototypeOf(e){return Ga(e.base_)},setPrototypeOf(){_t(12)}},Zo={};for(let e in Ki){let t=Ki[e];Zo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Zo.deleteProperty=function(e,t){return Zo.set.call(this,e,t,void 0)};Zo.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function bf(e,t){let r=e[Ze];return(r?ur(r):e)[t]}function TS(e,t,r){let a=oh(t,r);return a?Xo in a?a[Xo]:a.get?.call(e.draft_):void 0}function oh(e,t){if(!(t in e))return;let r=Ga(e);for(;r;){let a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Ga(r)}}function Af(e){e.modified_||(e.modified_=!0,e.parent_&&Af(e.parent_))}function qi(e){e.copy_||(e.assigned_=new Map,e.copy_=Cf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _S=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,a)=>{if(Wa(t)&&!Wa(r)){let n=r;r=t;let i=this;return function(s=n,...l){return i.produce(s,c=>r.call(this,c,...l))}}Wa(r)||_t(6),a!==void 0&&!Wa(a)&&_t(7);let o;if(Lt(t)){let n=$m(this),i=kf(n,t,void 0),u=!0;try{o=r(i),u=!1}finally{u?Lf(n):Pf(n)}return Km(n,a),Xm(o,n)}else if(!t||!Of(t)){if(o=r(t),o===void 0&&(o=t),o===Zm&&(o=void 0),this.autoFreeze_&&Ef(o,!0),a){let n=[],i=[];Yr(Sf).generateReplacementPatches_(t,o,{patches_:n,inversePatches_:i}),a(n,i)}return o}else _t(1,t)},this.produceWithPatches=(t,r)=>{if(Wa(t))return(i,...u)=>this.produceWithPatches(i,s=>t(s,...u));let a,o;return[this.produce(t,r,(i,u)=>{a=i,o=u}),a,o]},yf(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),yf(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),yf(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Lt(e)||_t(8),Wt(e)&&(e=Ve(e));let t=$m(this),r=kf(t,e,void 0);return r[Ze].isManual_=!0,Pf(t),r}finishDraft(e,t){let r=e&&e[Ze];(!r||!r.isManual_)&&_t(9);let{scope_:a}=r;return Km(a,t),Xm(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let a=Yr(Sf).applyPatches_;return Wt(e)?a(e,t):this.produce(e,o=>a(o,t))}};function kf(e,t,r,a){let[o,n]=Zi(t)?Yr(Wi).proxyMap_(t,r):Ji(t)?Yr(Wi).proxySet_(t,r):RS(t,r);return(r?.scope_??eh()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=a,r&&a!==void 0?ES(r,n,a):n.callbacks_.push(function(s){s.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:l}=s;n.modified_&&l&&l.generatePatches_(n,[],s)}),o}function Ve(e){return Wt(e)||_t(10,e),nh(e)}function nh(e){if(!Lt(e)||Qi(e))return e;let t=e[Ze],r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cf(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Cf(e,!0);return Xi(r,(o,n)=>{Vi(r,o,nh(n))},a),t&&(t.finalized_=!1),r}var NS=new _S,Df=NS.produce;function ih(e){return({dispatch:r,getState:a})=>o=>n=>typeof n=="function"?n(r,a,e):o(n)}var uh=ih(),sh=ih;var BS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$o:$o.apply(null,arguments)},dU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},FS=e=>e&&typeof e.match=="function";function Me(e,t){function r(...a){if(t){let o=t(...a);if(!o)throw new Error(ct(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>xf(a)&&a.type===e,r}var gh=class Qo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qo.prototype)}static get[Symbol.species](){return Qo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qo(...t[0].concat(this)):new Qo(...t.concat(this))}};function lh(e){return Lt(e)?Df(e,()=>{}):e}function tu(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function jS(e){return typeof e=="boolean"}var US=()=>function(t){let{thunk:r=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=t??{},i=new gh;return r&&(jS(r)?i.push(uh):i.push(sh(r.extraArgument))),i},vh="RTK_autoBatch",fe=()=>e=>({payload:e,meta:{[vh]:!0}}),fh=e=>t=>{setTimeout(t,e)},qS=(e,t)=>r=>{let a=!1,o=()=>{a||(a=!0,cancelAnimationFrame(n),clearTimeout(i),r())},n=e(o),i=setTimeout(o,t)},Nf=(e={type:"raf"})=>t=>(...r)=>{let a=t(...r),o=!0,n=!1,i=!1,u=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?qS(window.requestAnimationFrame,100):fh(10):e.type==="callback"?e.queueNotification:fh(e.timeout),l=()=>{i=!1,n&&(n=!1,u.forEach(c=>c()))};return Object.assign({},a,{subscribe(c){let f=()=>o&&c(),d=a.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return o=!c?.meta?.[vh],n=!o,n&&(i||(i=!0,s(l))),a.dispatch(c)}finally{o=!0}}})},zS=e=>function(r){let{autoBatch:a=!0}=r??{},o=new gh(e);return a&&o.push(Nf(typeof a=="object"?a:void 0)),o};function xh(e){let t=US(),{reducer:r=void 0,middleware:a,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:i=void 0,enhancers:u=void 0}=e||{},s;if(typeof r=="function")s=r;else if(Bi(r))s=Fi(r);else throw new Error(ct(1));let l;typeof a=="function"?l=a(t):l=t();let c=$o;o&&(c=BS({trace:!1,...typeof o=="object"&&o}));let f=qm(...l),d=zS(f),p=typeof u=="function"?u(d):d(),h=c(...p);return vf(s,i,h)}function yh(e){let t={},r=[],a,o={addCase(n,i){let u=typeof n=="string"?n:n.type;if(!u)throw new Error(ct(28));if(u in t)throw new Error(ct(29));return t[u]=i,o},addAsyncThunk(n,i){return i.pending&&(t[n.pending.type]=i.pending),i.rejected&&(t[n.rejected.type]=i.rejected),i.fulfilled&&(t[n.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:n.settled,reducer:i.settled}),o},addMatcher(n,i){return r.push({matcher:n,reducer:i}),o},addDefaultCase(n){return a=n,o}};return e(o),[t,r,a]}function HS(e){return typeof e=="function"}function VS(e,t){let[r,a,o]=yh(t),n;if(HS(e))n=()=>lh(e());else{let u=lh(e);n=()=>u}function i(u=n(),s){let l=[r[s.type],...a.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return l.filter(c=>!!c).length===0&&(l=[o]),l.reduce((c,f)=>{if(f)if(Wt(c)){let p=f(c,s);return p===void 0?c:p}else{if(Lt(c))return Df(c,d=>f(d,s));{let d=f(c,s);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return i.getInitialState=n,i}var WS=(e,t)=>FS(e)?e.match(t):e(t);function GS(...e){return t=>e.some(r=>WS(r,t))}var KS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bh=(e=21)=>{let t="",r=e;for(;r--;)t+=KS[Math.random()*64|0];return t},$S=["name","message","stack","code"],Rf=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},ch=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},XS=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of $S)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},dh="External signal was aborted",YS=(()=>{function e(t,r,a){let o=Me(t+"/fulfilled",(s,l,c,f)=>({payload:s,meta:{...f||{},arg:c,requestId:l,requestStatus:"fulfilled"}})),n=Me(t+"/pending",(s,l,c)=>({payload:void 0,meta:{...c||{},arg:l,requestId:s,requestStatus:"pending"}})),i=Me(t+"/rejected",(s,l,c,f,d)=>({payload:f,error:(a&&a.serializeError||XS)(s||"Rejected"),meta:{...d||{},arg:c,requestId:l,rejectedWithValue:!!f,requestStatus:"rejected",aborted:s?.name==="AbortError",condition:s?.name==="ConditionError"}}));function u(s,{signal:l}={}){return(c,f,d)=>{let p=a?.idGenerator?a.idGenerator(s):bh(),h=new AbortController,m,y;function I(A){y=A,h.abort()}l&&(l.aborted?I(dh):l.addEventListener("abort",()=>I(dh),{once:!0}));let L=async function(){let A;try{let P=a?.condition?.(s,{getState:f,extra:d});if(JS(P)&&(P=await P),P===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let k=new Promise((_,O)=>{m=()=>{O({name:"AbortError",message:y||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});c(n(p,s,a?.getPendingMeta?.({requestId:p,arg:s},{getState:f,extra:d}))),A=await Promise.race([k,Promise.resolve(r(s,{dispatch:c,getState:f,extra:d,requestId:p,signal:h.signal,abort:I,rejectWithValue:(_,O)=>new Rf(_,O),fulfillWithValue:(_,O)=>new ch(_,O)})).then(_=>{if(_ instanceof Rf)throw _;return _ instanceof ch?o(_.payload,p,s,_.meta):o(_,p,s)})])}catch(P){A=P instanceof Rf?i(null,p,s,P.payload,P.meta):i(P,p,s)}finally{m&&h.signal.removeEventListener("abort",m)}return a&&!a.dispatchConditionRejection&&i.match(A)&&A.meta.condition||c(A),A}();return Object.assign(L,{abort:I,requestId:p,arg:s,unwrap(){return L.then(ZS)}})}}return Object.assign(u,{pending:n,rejected:i,fulfilled:o,settled:GS(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function ZS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function JS(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ih=Symbol.for("rtk-slice-createasyncthunk"),mU={[Ih]:YS};function QS(e,t){return`${e}/${t}`}function eL({creators:e}={}){let t=e?.asyncThunk?.[Ih];return function(a){let{name:o,reducerPath:n=o}=a;if(!o)throw new Error(ct(11));typeof process<"u";let i=(typeof a.reducers=="function"?a.reducers(rL()):a.reducers)||{},u=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(A,M){let P=typeof A=="string"?A:A.type;if(!P)throw new Error(ct(12));if(P in s.sliceCaseReducersByType)throw new Error(ct(13));return s.sliceCaseReducersByType[P]=M,l},addMatcher(A,M){return s.sliceMatchers.push({matcher:A,reducer:M}),l},exposeAction(A,M){return s.actionCreators[A]=M,l},exposeCaseReducer(A,M){return s.sliceCaseReducersByName[A]=M,l}};u.forEach(A=>{let M=i[A],P={reducerName:A,type:QS(o,A),createNotation:typeof a.reducers=="function"};oL(M)?iL(P,M,l,t):aL(P,M,l)});function c(){let[A={},M=[],P=void 0]=typeof a.extraReducers=="function"?yh(a.extraReducers):[a.extraReducers],k={...A,...s.sliceCaseReducersByType};return VS(a.initialState,_=>{for(let O in k)_.addCase(O,k[O]);for(let O of s.sliceMatchers)_.addMatcher(O.matcher,O.reducer);for(let O of M)_.addMatcher(O.matcher,O.reducer);P&&_.addDefaultCase(P)})}let f=A=>A,d=new Map,p=new WeakMap,h;function m(A,M){return h||(h=c()),h(A,M)}function y(){return h||(h=c()),h.getInitialState()}function I(A,M=!1){function P(_){let O=_[A];return typeof O>"u"&&M&&(O=tu(p,P,y)),O}function k(_=f){let O=tu(d,M,()=>new WeakMap);return tu(O,_,()=>{let z={};for(let[N,K]of Object.entries(a.selectors??{}))z[N]=tL(K,_,()=>tu(p,_,y),M);return z})}return{reducerPath:A,getSelectors:k,get selectors(){return k(P)},selectSlice:P}}let L={name:o,reducer:m,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:y,...I(n),injectInto(A,{reducerPath:M,...P}={}){let k=M??n;return A.inject({reducerPath:k,reducer:m},P),{...L,...I(k,!0)}}};return L}}function tL(e,t,r,a){function o(n,...i){let u=t(n);return typeof u>"u"&&a&&(u=r()),e(u,...i)}return o.unwrapped=e,o}var ue=eL();function rL(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function aL({type:e,reducerName:t,createNotation:r},a,o){let n,i;if("reducer"in a){if(r&&!nL(a))throw new Error(ct(17));n=a.reducer,i=a.prepare}else n=a;o.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?Me(e,i):Me(e))}function oL(e){return e._reducerDefinitionType==="asyncThunk"}function nL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function iL({type:e,reducerName:t},r,a,o){if(!o)throw new Error(ct(18));let{payloadCreator:n,fulfilled:i,pending:u,rejected:s,settled:l,options:c}=r,f=o(e,n,c);a.exposeAction(t,f),i&&a.addCase(f.fulfilled,i),u&&a.addCase(f.pending,u),s&&a.addCase(f.rejected,s),l&&a.addMatcher(f.settled,l),a.exposeCaseReducer(t,{fulfilled:i||ru,pending:u||ru,rejected:s||ru,settled:l||ru})}function ru(){}var uL="task",wh="listener",Ch="completed",Bf="cancelled",sL=`task-${Bf}`,lL=`task-${Ch}`,Tf=`${wh}-${Bf}`,fL=`${wh}-${Ch}`,nu=class{constructor(e){this.code=e,this.message=`${uL} ${Bf} (reason: ${e})`}code;name="TaskAbortError";message},Ff=(e,t)=>{if(typeof e!="function")throw new TypeError(ct(32))},au=()=>{},Sh=(e,t=au)=>(e.catch(t),e),Lh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Zr=e=>{if(e.aborted)throw new nu(e.reason)};function Ph(e,t){let r=au;return new Promise((a,o)=>{let n=()=>o(new nu(e.reason));if(e.aborted){n();return}r=Lh(e,n),t.finally(()=>r()).then(a,o)}).finally(()=>{r=au})}var cL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof nu?"cancelled":"rejected",error:r}}finally{t?.()}},ou=e=>t=>Sh(Ph(e,t).then(r=>(Zr(e),r))),Ah=e=>{let t=ou(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:Ka}=Object,ph={},iu="listenerMiddleware",dL=(e,t)=>{let r=a=>Lh(e,()=>a.abort(e.reason));return(a,o)=>{Ff(a,"taskExecutor");let n=new AbortController;r(n);let i=cL(async()=>{Zr(e),Zr(n.signal);let u=await a({pause:ou(n.signal),delay:Ah(n.signal),signal:n.signal});return Zr(n.signal),u},()=>n.abort(lL));return o?.autoJoin&&t.push(i.catch(au)),{result:ou(e)(i),cancel(){n.abort(sL)}}}},pL=(e,t)=>{let r=async(a,o)=>{Zr(t);let n=()=>{},u=[new Promise((s,l)=>{let c=e({predicate:a,effect:(f,d)=>{d.unsubscribe(),s([f,d.getState(),d.getOriginalState()])}});n=()=>{c(),l()}})];o!=null&&u.push(new Promise(s=>setTimeout(s,o,null)));try{let s=await Ph(t,Promise.race(u));return Zr(t),s}finally{n()}};return(a,o)=>Sh(r(a,o))},kh=e=>{let{type:t,actionCreator:r,matcher:a,predicate:o,effect:n}=e;if(t)o=Me(t).match;else if(r)t=r.type,o=r.match;else if(a)o=a;else if(!o)throw new Error(ct(21));return Ff(n,"options.listener"),{predicate:o,type:t,effect:n}},Oh=Ka(e=>{let{type:t,predicate:r,effect:a}=kh(e);return{id:bh(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(ct(22))}}},{withTypes:()=>Oh}),mh=(e,t)=>{let{type:r,effect:a,predicate:o}=kh(t);return Array.from(e.values()).find(n=>(typeof r=="string"?n.type===r:n.predicate===o)&&n.effect===a)},_f=e=>{e.pending.forEach(t=>{t.abort(Tf)})},mL=(e,t)=>()=>{for(let r of t.keys())_f(r);e.clear()},hh=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},Mh=Ka(Me(`${iu}/add`),{withTypes:()=>Mh}),hL=Me(`${iu}/removeAll`),Eh=Ka(Me(`${iu}/remove`),{withTypes:()=>Eh}),gL=(...e)=>{console.error(`${iu}/error`,...e)},sr=(e={})=>{let t=new Map,r=new Map,a=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:n,onError:i=gL}=e;Ff(i,"onError");let u=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&_f(p)}),s=p=>{let h=mh(t,p)??Oh(p);return u(h)};Ka(s,{withTypes:()=>s});let l=p=>{let h=mh(t,p);return h&&(h.unsubscribe(),p.cancelActive&&_f(h)),!!h};Ka(l,{withTypes:()=>l});let c=async(p,h,m,y)=>{let I=new AbortController,L=pL(s,I.signal),A=[];try{p.pending.add(I),a(p),await Promise.resolve(p.effect(h,Ka({},m,{getOriginalState:y,condition:(M,P)=>L(M,P).then(Boolean),take:L,delay:Ah(I.signal),pause:ou(I.signal),extra:n,signal:I.signal,fork:dL(I.signal,A),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((M,P,k)=>{M!==I&&(M.abort(Tf),k.delete(M))})},cancel:()=>{I.abort(Tf),p.pending.delete(I)},throwIfCancelled:()=>{Zr(I.signal)}})))}catch(M){M instanceof nu||hh(i,M,{raisedBy:"effect"})}finally{await Promise.all(A),I.abort(fL),o(p),p.pending.delete(I)}},f=mL(t,r);return{middleware:p=>h=>m=>{if(!xf(m))return h(m);if(Mh.match(m))return s(m.payload);if(hL.match(m)){f();return}if(Eh.match(m))return l(m.payload);let y=p.getState(),I=()=>{if(y===ph)throw new Error(ct(23));return y},L;try{if(L=h(m),t.size>0){let A=p.getState(),M=Array.from(t.values());for(let P of M){let k=!1;try{k=P.predicate(m,A,y)}catch(_){k=!1,hh(i,_,{raisedBy:"predicate"})}k&&c(P,m,p,I)}}}finally{y=ph}return L},startListening:s,stopListening:l,clearListeners:f}};function ct(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vL={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Dh=ue({name:"chartLayout",initialState:vL,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,a,o,n;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(a=t.payload.right)!==null&&a!==void 0?a:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(n=t.payload.left)!==null&&n!==void 0?n:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:jf,setLayout:Rh,setChartSize:Th,setScale:_h}=Dh.actions,Nh=Dh.reducer;function uu(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Q(e){return Number.isFinite(e)}function Nt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function $a(e){for(var t=1;t{if(t&&r){var{width:a,height:o}=r,{align:n,verticalAlign:i,layout:u}=t;if((u==="vertical"||u==="horizontal"&&i==="middle")&&n!=="center"&&Z(e[n]))return $a($a({},e),{},{[n]:e[n]+(a||0)});if((u==="horizontal"||u==="vertical"&&n==="center")&&i!=="middle"&&Z(e[i]))return $a($a({},e),{},{[i]:e[i]+(o||0)})}return e},dt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis";var jh=(e,t)=>{if(!t||t.length!==2||!Z(t[0])||!Z(t[1]))return e;var r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Z(e[0])||e[0]a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(l[0]=n,n+=d,l[1]=n):(l[0]=i,i+=d,l[1]=i)}}}},wL=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(s[0]=n,n+=l,s[1]=n):(s[0]=0,s[1]=0)}}}},CL={sign:IL,expand:tf,none:it,silhouette:rf,wiggle:af,positive:wL},Uh=(e,t,r)=>{var a,o=(a=CL[r])!==null&&a!==void 0?a:it,n=ef().keys(t).value((u,s)=>Number(ve(u,s,0))).order(Ua).offset(o),i=n(e);return i.forEach((u,s)=>{u.forEach((l,c)=>{var f=ve(e[c],t[s],0);Array.isArray(f)&&f.length===2&&Z(f[0])&&Z(f[1])&&(l[0]=f[0],l[1]=f[1])})}),i};function Uf(e){return e==null?void 0:String(e)}var qf=e=>{var{axis:t,ticks:r,offset:a,bandSize:o,entry:n,index:i}=e;if(t.type==="category")return r[i]?r[i].coordinate+a:null;var u=ve(n,t.dataKey,t.scale.domain()[i]);if(ge(u))return null;var s=t.scale.map(u);return Z(s)?s-o/2+a:null},qh=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},SL=e=>{var t=e.flat(2).filter(Z);return[Math.min(...t),Math.max(...t)]},LL=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],zh=(e,t,r)=>{if(e!=null)return LL(Object.keys(e).reduce((a,o)=>{var n=e[o];if(!n)return a;var{stackedData:i}=n,u=i.reduce((s,l)=>{var c=uu(l,t,r),f=SL(c);return!Q(f[0])||!Q(f[1])?s:[Math.min(s[0],f[0]),Math.max(s[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]))},zf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,en=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var o=Xr(t,c=>c.coordinate),n=1/0,i=1,u=o.length;i{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Wh=(e,t)=>t==="centric"?e.angle:e.radius;var Ge=e=>e.layout.width,Ke=e=>e.layout.height,Gh=e=>e.layout.scale,su=e=>e.layout.margin;var Xa=C(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ya=C(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Kh="data-recharts-item-index",$h="data-recharts-item-id",Jr=60;function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function lu(e){for(var t=1;te.brush.height;function ML(e){var t=Ya(e);return t.reduce((r,a)=>{if(a.orientation==="left"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Jr;return r+o}return r},0)}function EL(e){var t=Ya(e);return t.reduce((r,a)=>{if(a.orientation==="right"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Jr;return r+o}return r},0)}function DL(e){var t=Xa(e);return t.reduce((r,a)=>a.orientation==="top"&&!a.mirror&&!a.hide?r+a.height:r,0)}function RL(e){var t=Xa(e);return t.reduce((r,a)=>a.orientation==="bottom"&&!a.mirror&&!a.hide?r+a.height:r,0)}var xe=C([Ge,Ke,su,OL,ML,EL,DL,RL,hf,jm],(e,t,r,a,o,n,i,u,s,l)=>{var c={left:(r.left||0)+o,right:(r.right||0)+n},f={top:(r.top||0)+i,bottom:(r.bottom||0)+u},d=lu(lu({},f),c),p=d.bottom;d.bottom+=a,d=Fh(d,s,l);var h=e-d.left-d.right,m=t-d.top-d.bottom;return lu(lu({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Yh=C(xe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),qU=C(Ge,Ke,(e,t)=>({x:0,y:0,width:e,height:t}));import*as TL from"react";import{createContext as _L,useContext as NL}from"react";var BL=_L(null),Je=()=>NL(BL)!=null;var Za=e=>e.brush,Qr=C([Za,xe,su],(e,t,r)=>({height:e.height,x:Z(e.x)?e.x:t.left,y:Z(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:Z(e.width)?e.width:t.width}));import*as ea from"react";import{createContext as GL,forwardRef as og,useCallback as KL,useContext as $L,useEffect as XL,useImperativeHandle as YL,useMemo as ZL,useRef as ag,useState as JL}from"react";function Zh(e,t,{signal:r,edges:a}={}){let o,n=null,i=a!=null&&a.includes("leading"),u=a==null||a.includes("trailing"),s=()=>{n!==null&&(e.apply(o,n),o=void 0,n=null)},l=()=>{u&&s(),p()},c=null,f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,l()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},p=()=>{d(),o=void 0,n=null},h=()=>{s()},m=function(...y){if(r?.aborted)return;o=this,n=y;let I=c==null;f(),i&&I&&s()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function Jh(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:a=!1,trailing:o=!0,maxWait:n}=r,i=Array(2);a&&(i[0]="leading"),o&&(i[1]="trailing");let u,s=null,l=Zh(function(...d){u=e.apply(this,d),s=null},t,{edges:i}),c=function(...d){return n!=null&&(s===null&&(s=Date.now()),Date.now()-s>=n)?(u=e.apply(this,d),s=Date.now(),l.cancel(),l.schedule(),u):(l.apply(this,d),u)},f=()=>(l.flush(),u);return c.cancel=l.cancel,c.flush=f,c}function Wf(e,t=0,r={}){let{leading:a=!0,trailing:o=!0}=r;return Jh(e,t,{leading:a,maxWait:t,trailing:o})}var FL=!0,Gf=function(t,r){for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;no[i++]))}};var Bt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Kf=(e,t,r)=>{var{width:a=Bt.width,height:o=Bt.height,aspect:n,maxHeight:i}=r,u=or(a)?e:Number(a),s=or(o)?t:Number(o);return n&&n>0&&(u?s=u/n:s&&(u=s*n),i&&s!=null&&s>i&&(s=i)),{calculatedWidth:u,calculatedHeight:s}},jL={width:0,height:0,overflow:"visible"},UL={width:0,overflowX:"visible"},qL={height:0,overflowY:"visible"},zL={},Qh=e=>{var{width:t,height:r}=e,a=or(t),o=or(r);return a&&o?jL:a?UL:o?qL:zL};function eg(e){var{width:t,height:r,aspect:a}=e,o=t,n=r;return o===void 0&&n===void 0?(o=Bt.width,n=Bt.height):o===void 0?o=a&&a>0?void 0:Bt.width:n===void 0&&(n=a&&a>0?void 0:Bt.height),{width:o,height:n}}function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:a}),[r,a]);return QL(o)?ea.createElement(ng.Provider,{value:o},t):null}var tn=()=>$L(ng),eP=og((e,t)=>{var{aspect:r,initialDimension:a=Bt.initialDimension,width:o,height:n,minWidth:i=Bt.minWidth,minHeight:u,maxHeight:s,children:l,debounce:c=Bt.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=ag(null),y=ag();y.current=p,YL(t,()=>m.current);var[I,L]=JL({containerWidth:a.width,containerHeight:a.height}),A=KL((O,z)=>{L(N=>{var K=Math.round(O),F=Math.round(z);return N.containerWidth===K&&N.containerHeight===F?N:{containerWidth:K,containerHeight:F}})},[]);XL(()=>{if(m.current==null||typeof ResizeObserver>"u")return lt;var O=F=>{var $,X=F[0];if(X!=null){var{width:ie,height:g}=X.contentRect;A(ie,g),($=y.current)===null||$===void 0||$.call(y,ie,g)}};c>0&&(O=Wf(O,c,{trailing:!0,leading:!1}));var z=new ResizeObserver(O),{width:N,height:K}=m.current.getBoundingClientRect();return A(N,K),z.observe(m.current),()=>{z.disconnect()}},[A,c]);var{containerWidth:M,containerHeight:P}=I;Gf(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:_}=Kf(M,P,{width:o,height:n,aspect:r,maxHeight:s});return Gf(k!=null&&k>0||_!=null&&_>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,k,_,o,n,i,u,r),ea.createElement("div",{id:f?"".concat(f):void 0,className:oe("recharts-responsive-container",d),style:rg(rg({},h),{},{width:o,height:n,minWidth:i,minHeight:u,maxHeight:s}),ref:m},ea.createElement("div",{style:Qh({width:o,height:n})},ea.createElement(ig,{width:k,height:_},l)))}),Xf=og((e,t)=>{var r=tn();if(Nt(r.width)&&Nt(r.height))return e.children;var{width:a,height:o}=eg({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:n,calculatedHeight:i}=Kf(void 0,void 0,{width:a,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return Z(n)&&Z(i)?ea.createElement(ig,{width:n,height:i},e.children):ea.createElement(eP,$f({},e,{width:a,height:o,ref:t}))});function rn(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var fu=()=>{var e,t=Je(),r=Y(Yh),a=Y(Qr),o=(e=Y(Za))===null||e===void 0?void 0:e.padding;return!t||!a||!o?r:{width:a.width-o.left-o.right,height:a.height-o.top-o.bottom,x:o.left,y:o.top}};var ug=()=>Y(Ge),sg=()=>Y(Ke);var J=e=>e.layout.layoutType,an=()=>Y(J);var cu=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},lg=()=>Y(cu),fg=()=>{var e=an();return e!==void 0},ta=e=>{var t=re(),r=Je(),{width:a,height:o}=e,n=tn(),i=a,u=o;return n&&(i=n.width>0?n.width:a,u=n.height>0?n.height:o),tP(()=>{!r&&Nt(i)&&Nt(u)&&t(Th({width:i,height:u}))},[t,r,i,u]),null};var rP={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},cg=ue({name:"legend",initialState:rP,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:fe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).payload.indexOf(r);o>-1&&(e.payload[o]=a)},prepare:fe()},removeLegendPayload:{reducer(e,t){var r=Ve(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:fe()}}}),{setLegendSize:Lq,setLegendSettings:Pq,addLegendPayload:dg,replaceLegendPayload:pg,removeLegendPayload:mg}=cg.actions,hg=cg.reducer;import*as Le from"react";var aP=Symbol.for("react.forward_ref");var oP=Symbol.for("react.memo");var nP=aP,iP=oP;function uP(e){e()}function sP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){uP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var gg={notify(){},get:()=>[]};function lP(e,t){let r,a=gg,o=0,n=!1;function i(m){c();let y=a.subscribe(m),I=!1;return()=>{I||(I=!0,y(),f())}}function u(){a.notify()}function s(){h.onStateChange&&h.onStateChange()}function l(){return n}function c(){o++,r||(r=t?t.addNestedSub(s):e.subscribe(s),a=sP())}function f(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=gg)}function d(){n||(n=!0,c())}function p(){n&&(n=!1,f())}let h={addNestedSub:i,notifyNestedSubs:u,handleChangeWrapper:s,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>a};return h}var fP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cP=fP(),dP=()=>typeof navigator<"u"&&navigator.product==="ReactNative",pP=dP(),mP=()=>cP||pP?Le.useLayoutEffect:Le.useEffect,hP=mP();function vg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function xg(e,t){if(vg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o{let s=lP(o);return{store:o,subscription:s,getServerState:a?()=>a:void 0}},[o,a]),i=Le.useMemo(()=>o.getState(),[o]);return hP(()=>{let{subscription:s}=n;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==o.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[n,i]),Le.createElement((r||IP).Provider,{value:n},t)}var yg=wP;var CP=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function SP(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function du(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of r)if(CP.has(a)){if(e[a]==null&&t[a]==null)continue;if(!xg(e[a],t[a]))return!1}else if(!SP(e[a],t[a]))return!1;return!0}import{useEffect as PP,useState as AP}from"react";var LP=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Gt={devToolsEnabled:!0,isSsr:LP()};function bg(){var[e,t]=AP(()=>Gt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return PP(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}}},[]),e}var Ig=()=>{var e;return(e=Y(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as Ag from"react";function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;tQ(e.x)&&Q(e.y),Lg=e=>e.base!=null&&pu(e.base)&&pu(e),on=e=>e.x,nn=e=>e.y,EP=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(ir(e));if((r==="curveMonotone"||r==="curveBump")&&t){var a=Sg["".concat(r).concat(t==="vertical"?"Y":"X")];if(a)return a}return Sg[r]||wr},Pg={connectNulls:!1,type:"linear"},DP=e=>{var{type:t=Pg.type,points:r=[],baseLine:a,layout:o,connectNulls:n=Pg.connectNulls}=e,i=EP(t,o),u=n?r.filter(pu):r;if(Array.isArray(a)){var s,l=r.map((h,m)=>Cg(Cg({},h),{},{base:a[m]}));o==="vertical"?s=Na().y(nn).x1(on).x0(h=>h.base.x):s=Na().x(on).y1(nn).y0(h=>h.base.y);var c=s.defined(Lg).curve(i),f=n?l.filter(Lg):l;return c(f)}var d;o==="vertical"&&Z(a)?d=Na().y(nn).x1(on).x0(a):Z(a)?d=Na().x(on).y1(nn).y0(a):d=zo().x(on).y(nn);var p=d.defined(pu).curve(i);return p(u)},kg=e=>{var{className:t,points:r,path:a,pathRef:o}=e,n=an();if((!r||!r.length)&&!a)return null;var i={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||n,connectNulls:e.connectNulls},u=r&&r.length?DP(i):a;return Ag.createElement("path",Yf({},We(e),Xp(e),{className:oe("recharts-curve",t),d:u===null?void 0:u,ref:o}))};import*as xu from"react";import{useEffect as iA,useMemo as uA,useRef as un,useState as sA}from"react";import{useEffect as Hg,useRef as ZP,useState as JP}from"react";function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Mg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),mu=(e,t,r)=>e.map(a=>"".concat(NP(a)," ").concat(t,"ms ").concat(r)).join(","),Eg=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(o=>a.includes(o))),Ja=(e,t)=>Object.keys(t).reduce((r,a)=>Mg(Mg({},r),{},{[a]:e(a,t[a])}),{});function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function De(e){for(var t=1;te+(t-e)*r,Zf=e=>{var{from:t,to:r}=e;return t!==r},Rg=(e,t,r)=>{var a=Ja((o,n)=>{if(Zf(n)){var[i,u]=e(n.from,n.to,n.velocity);return De(De({},n),{},{from:i,velocity:u})}return n},t);return r<1?Ja((o,n)=>Zf(n)&&a[o]!=null?De(De({},n),{},{velocity:hu(n.velocity,a[o].velocity,r),from:hu(n.from,a[o].from,r)}):n,t):Rg(e,a,r-1)};function UP(e,t,r,a,o,n){var i,u=a.reduce((d,p)=>De(De({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),s=()=>Ja((d,p)=>p.from,u),l=()=>!Object.values(u).filter(Zf).length,c=null,f=d=>{i||(i=d);var p=d-i,h=p/r.dt;u=Rg(r,u,h),o(De(De(De({},e),t),s())),i=d,l()||(c=n.setTimeout(f))};return()=>(c=n.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function qP(e,t,r,a,o,n,i){var u=null,s=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:De(De({},f),{},{[d]:[p,h]})},{}),l,c=f=>{l||(l=f);var d=(f-l)/a,p=Ja((m,y)=>hu(...y,r(d)),s);if(n(De(De(De({},e),t),p)),d<1)u=i.setTimeout(c);else{var h=Ja((m,y)=>hu(...y,r(1)),s);n(De(De(De({},e),t),h))}};return()=>(u=i.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}var Tg=(e,t,r,a,o,n)=>{var i=Eg(e,t);return r==null?()=>(o(De(De({},e),t)),()=>{}):r.isStepper===!0?UP(e,t,r,i,o,n):qP(e,t,r,a,i,o,n)};var gu=1e-4,Bg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Fg=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),_g=(e,t)=>r=>{var a=Bg(e,t);return Fg(a,r)},zP=(e,t)=>r=>{var a=Bg(e,t),o=[...a.map((n,i)=>n*i).slice(1),0];return Fg(o,r)},HP=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var a=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(a==null||a.length!==4)return null;var o=a.map(n=>parseFloat(n));return[o[0],o[1],o[2],o[3]]},VP=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var o=_g(e,r),n=_g(t,a),i=zP(e,r),u=l=>l>1?1:l<0?0:l,s=l=>{for(var c=l>1?1:l,f=c,d=0;d<8;++d){var p=o(f)-c,h=i(f);if(Math.abs(p-c)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:o=17}=t,n=(i,u,s)=>{var l=-(i-u)*r,c=s*a,f=s+(l-c)*o/1e3,d=s*o/1e3+i;return Math.abs(d-u){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Ng(e);case"spring":return GP();default:if(e.split("(")[0]==="cubic-bezier")return Ng(e)}return typeof e=="function"?e:null};import{createContext as KP,useContext as $P,useMemo as XP}from"react";function Ug(e){var t,r=()=>null,a=!1,o=null,n=i=>{if(!a){if(Array.isArray(i)){if(!i.length)return;var u=i,[s,...l]=u;if(typeof s=="number"){o=e.setTimeout(n.bind(null,l),s);return}n(s),o=e.setTimeout(n.bind(null,l));return}typeof i=="string"&&(t=i,r(t)),typeof i=="object"&&(t=i,r(t)),typeof i=="function"&&i()}};return{stop:()=>{a=!0},start:i=>{a=!1,o&&(o(),o=null),n(i)},subscribe:i=>(r=i,()=>{r=()=>null}),getTimeoutController:()=>e}}var vu=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),o=null,n=i=>{i-a>=r?t(i):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(n))};return o=requestAnimationFrame(n),()=>{o!=null&&cancelAnimationFrame(o)}}};function qg(){return Ug(new vu)}var YP=KP(qg);function zg(e,t){var r=$P(YP);return XP(()=>t??r(e),[e,t,r])}var QP={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Vg={t:0},Jf={t:1};function Qa(e){var t=Se(e,QP),{isActive:r,canBegin:a,duration:o,easing:n,begin:i,onAnimationEnd:u,onAnimationStart:s,children:l}=t,c=bg(),f=r==="auto"?!Gt.isSsr&&!c:r,d=zg(t.animationId,t.animationManager),[p,h]=JP(f?Vg:Jf),m=ZP(null);return Hg(()=>{f||h(Jf)},[f]),Hg(()=>{if(!f||!a)return lt;var y=Tg(Vg,Jf,jg(n),o,h,d.getTimeoutController()),I=()=>{m.current=y()};return d.start([s,i,I,o,u]),()=>{d.stop(),m.current&&m.current(),u()}},[f,a,o,n,i,s,u,d]),l(p.t)}import{useRef as Wg}from"react";function eo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=Wg(nr(t)),a=Wg(e);return a.current!==e&&(r.current=nr(t),a.current=e),r.current}var eA=["radius"],tA=["radius"],Gg,Kg,$g,Xg,Yg,Zg,Jg,Qg,ev,tv;function rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function av(e){for(var t=1;t{var n=Ht(r),i=Ht(a),u=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(u>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;pu?u:y}f=he(Gg||(Gg=Kt(["M",",",""])),e,t+s*d[0]),d[0]>0&&(f+=he(Kg||(Kg=Kt(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+l*d[0],t)),f+=he($g||($g=Kt(["L ",",",""])),e+r-l*d[1],t),d[1]>0&&(f+=he(Xg||(Xg=Kt(["A ",",",",0,0,",`, - `,",",""])),d[1],d[1],c,e+r,t+s*d[1])),f+=he(Yg||(Yg=Kt(["L ",",",""])),e+r,t+a-s*d[2]),d[2]>0&&(f+=he(Zg||(Zg=Kt(["A ",",",",0,0,",`, - `,",",""])),d[2],d[2],c,e+r-l*d[2],t+a)),f+=he(Jg||(Jg=Kt(["L ",",",""])),e+l*d[3],t+a),d[3]>0&&(f+=he(Qg||(Qg=Kt(["A ",",",",0,0,",`, - `,",",""])),d[3],d[3],c,e,t+a-s*d[3])),f+="Z"}else if(u>0&&o===+o&&o>0){var I=Math.min(u,o);f=he(ev||(ev=Kt(["M ",",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",","," Z"])),e,t+s*I,I,I,c,e+l*I,t,e+r-l*I,t,I,I,c,e+r,t+s*I,e+r,t+a-s*I,I,I,c,e+r-l*I,t+a,e+l*I,t+a,I,I,c,e,t+a-s*I)}else f=he(tv||(tv=Kt(["M ",","," h "," v "," h "," Z"])),e,t,r,a,-r);return f},iv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uv=e=>{var t=Se(e,iv),r=un(null),[a,o]=sA(-1);iA(()=>{if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&o(x)}catch{}},[]);var{x:n,y:i,width:u,height:s,radius:l,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,y=un(u),I=un(s),L=un(n),A=un(i),M=uA(()=>({x:n,y:i,width:u,height:s,radius:l}),[n,i,u,s,l]),P=eo(M,"rectangle-");if(n!==+n||i!==+i||u!==+u||s!==+s||u===0||s===0)return null;var k=oe("recharts-rectangle",c);if(!m){var _=Oe(t),{radius:O}=_,z=ov(_,eA);return xu.createElement("path",yu({},z,{x:Ht(n),y:Ht(i),width:Ht(u),height:Ht(s),radius:typeof l=="number"?l:void 0,className:k,d:nv(n,i,u,s,l)}))}var N=y.current,K=I.current,F=L.current,$=A.current,X="0px ".concat(a===-1?1:a,"px"),ie="".concat(a,"px ").concat(a,"px"),g=mu(["strokeDasharray"],d,typeof f=="string"?f:iv.animationEasing);return xu.createElement(Qa,{animationId:P,key:P,canBegin:a>0,duration:d,easing:f,isActive:m,begin:p},x=>{var S=Ye(N,u,x),b=Ye(K,s,x),v=Ye(F,n,x),w=Ye($,i,x);r.current&&(y.current=S,I.current=b,L.current=v,A.current=w);var R;h?x>0?R={transition:g,strokeDasharray:ie}:R={strokeDasharray:X}:R={strokeDasharray:ie};var T=Oe(t),{radius:B}=T,U=ov(T,tA);return xu.createElement("path",yu({},U,{radius:typeof l=="number"?l:void 0,className:k,d:nv(v,w,S,b,l),ref:r,style:av(av({},R),t.style)}))})};function sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function lv(e){for(var t=1;te*180/Math.PI,ye=(e,t,r,a)=>({x:e+Math.cos(-sn*a)*r,y:t+Math.sin(-sn*a)*r}),fv=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},pA=(e,t)=>{var{x:r,y:a}=e,{x:o,y:n}=t;return Math.sqrt((r-o)**2+(a-n)**2)},mA=(e,t)=>{var{x:r,y:a}=e,{cx:o,cy:n}=t,i=pA({x:r,y:a},{x:o,y:n});if(i<=0)return{radius:i,angle:0};var u=(r-o)/i,s=Math.acos(u);return a>n&&(s=2*Math.PI-s),{radius:i,angle:dA(s),angleInRadian:s}},hA=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),o=Math.floor(r/360),n=Math.min(a,o);return{startAngle:t-n*360,endAngle:r-n*360}},gA=(e,t)=>{var{startAngle:r,endAngle:a}=t,o=Math.floor(r/360),n=Math.floor(a/360),i=Math.min(o,n);return e+i*360},cv=(e,t)=>{var{relativeX:r,relativeY:a}=e,{radius:o,angle:n}=mA({x:r,y:a},t),{innerRadius:i,outerRadius:u}=t;if(ou||o===0)return null;var{startAngle:s,endAngle:l}=hA(t),c=n,f;if(s<=l){for(;c>l;)c-=360;for(;c=s&&c<=l}else{for(;c>s;)c-=360;for(;c=l&&c<=s}return f?lv(lv({},t),{},{radius:o,angle:gA(c,t)}):null};import*as yv from"react";var dv,pv,mv,hv,gv,vv,xv;function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Ee(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},bu=e=>{var{cx:t,cy:r,radius:a,angle:o,sign:n,isExternal:i,cornerRadius:u,cornerIsExternal:s}=e,l=u*(i?1:-1)+a,c=Math.asin(u/l)/sn,f=s?o:o+n*c,d=ye(t,r,l,f),p=ye(t,r,a,f),h=s?o-n*c:o,m=ye(t,r,l*Math.cos(c*sn),h);return{center:d,circleTangency:p,lineTangency:m,theta:c}},bv=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i}=e,u=vA(n,i),s=n+u,l=ye(t,r,o,n),c=ye(t,r,o,s),f=he(dv||(dv=ra(["M ",",",` - A `,",",`,0, - `,",",`, - `,",",` - `])),l.x,l.y,o,o,+(Math.abs(u)>180),+(n>s),c.x,c.y);if(a>0){var d=ye(t,r,a,n),p=ye(t,r,a,s);f+=he(pv||(pv=ra(["L ",",",` - A `,",",`,0, - `,",",`, - `,","," Z"])),p.x,p.y,a,a,+(Math.abs(u)>180),+(n<=s),d.x,d.y)}else f+=he(mv||(mv=ra(["L ",","," Z"])),t,r);return f},xA=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,cornerRadius:n,forceCornerRadius:i,cornerIsExternal:u,startAngle:s,endAngle:l}=e,c=Ee(l-s),{circleTangency:f,lineTangency:d,theta:p}=bu({cx:t,cy:r,radius:o,angle:s,sign:c,cornerRadius:n,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:y}=bu({cx:t,cy:r,radius:o,angle:l,sign:-c,cornerRadius:n,cornerIsExternal:u}),I=u?Math.abs(s-l):Math.abs(s-l)-p-y;if(I<0)return i?he(hv||(hv=ra(["M ",",",` - a`,",",",0,0,1,",`,0 - a`,",",",0,0,1,",`,0 - `])),d.x,d.y,n,n,n*2,n,n,-n*2):bv({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:l});var L=he(gv||(gv=ra(["M ",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",",` - `])),d.x,d.y,n,n,+(c<0),f.x,f.y,o,o,+(I>180),+(c<0),h.x,h.y,n,n,+(c<0),m.x,m.y);if(a>0){var{circleTangency:A,lineTangency:M,theta:P}=bu({cx:t,cy:r,radius:a,angle:s,sign:c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),{circleTangency:k,lineTangency:_,theta:O}=bu({cx:t,cy:r,radius:a,angle:l,sign:-c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),z=u?Math.abs(s-l):Math.abs(s-l)-P-O;if(z<0&&n===0)return"".concat(L,"L").concat(t,",").concat(r,"Z");L+=he(vv||(vv=ra(["L",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",","Z"])),_.x,_.y,n,n,+(c<0),k.x,k.y,a,a,+(z>180),+(c>0),A.x,A.y,n,n,+(c<0),M.x,M.y)}else L+=he(xv||(xv=ra(["L",",","Z"])),t,r);return L},yA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Iv=e=>{var t=Se(e,yA),{cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:i,forceCornerRadius:u,cornerIsExternal:s,startAngle:l,endAngle:c,className:f}=t;if(n0&&Math.abs(l-c)<360?m=xA({cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:Math.min(h,p/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:l,endAngle:c}):m=bv({cx:r,cy:a,innerRadius:o,outerRadius:n,startAngle:l,endAngle:c}),yv.createElement("path",Qf({},Oe(t),{className:d,d:m}))};function wv(e){return _i(e)?NaN:Number(e)}function Iu(e){return e?(e=wv(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function wu(e,t,r){r&&typeof r!="number"&&Ko(e,t,r)&&(t=r=void 0),e=Iu(e),t===void 0?(t=e,e=0):t=Iu(t),r=r===void 0?ee.chartData,to=C([pt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ec=(e,t,r,a)=>a?to(e):pt(e);function mt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Q(t)&&Q(r))return!0}return!1}function Cv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cu(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,o,n;if(Q(r))o=r;else if(typeof r=="function")return;if(Q(a))n=a;else if(typeof a=="function")return;var i=[o,n];if(mt(i))return i}}function Sv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(mt(a))return Cv(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,n]=e,i,u;if(o==="auto")t!=null&&(i=Math.min(...t));else if(Z(o))i=o;else if(typeof o=="function")try{t!=null&&(i=o(t?.[0]))}catch{}else if(typeof o=="string"&&zf.test(o)){var s=zf.exec(o);if(s==null||s[1]==null||t==null)i=void 0;else{var l=+s[1];i=t[0]-l}}else i=t?.[0];if(n==="auto")t!=null&&(u=Math.max(...t));else if(Z(n))u=n;else if(typeof n=="function")try{t!=null&&(u=n(t?.[1]))}catch{}else if(typeof n=="string"&&Hf.test(n)){var c=Hf.exec(n);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[i,u];if(mt(d))return t==null?d:Cv(d,t,r)}}}var ne=di(tc());var rc=di(tc());function ac(e){var t;return e===0?t=1:t=Math.floor(new rc.default(e).abs().log(10).toNumber())+1,t}function oc(e,t,r){for(var a=new rc.default(e),o=0,n=[];a.lt(t)&&o<1e5;)n.push(a.toNumber()),a=a.add(r),o++;return n}var Pv=e=>{var[t,r]=e,[a,o]=[t,r];return t>r&&([a,o]=[r,t]),[a,o]},nc=(e,t,r)=>{if(e.lte(0))return new ne.default(0);var a=ac(e.toNumber()),o=new ne.default(10).pow(a),n=e.div(o),i=a!==1?.05:.1,u=new ne.default(Math.ceil(n.div(i).toNumber())).add(r).mul(i),s=u.mul(o);return t?new ne.default(s.toNumber()):new ne.default(Math.ceil(s.toNumber()))},Av=(e,t,r)=>{var a;if(e.lte(0))return new ne.default(0);var o=[1,2,2.5,5],n=e.toNumber(),i=Math.floor(new ne.default(n).abs().log(10).toNumber()),u=new ne.default(10).pow(i),s=e.div(u).toNumber(),l=o.findIndex(p=>p>=s-1e-10);if(l===-1&&(u=u.mul(10),l=0),l+=r,l>=o.length){var c=Math.floor(l/o.length);l%=o.length,u=u.mul(new ne.default(10).pow(c))}var f=(a=o[l])!==null&&a!==void 0?a:1,d=new ne.default(f).mul(u);return t?d:new ne.default(Math.ceil(d.toNumber()))},bA=(e,t,r)=>{var a=new ne.default(1),o=new ne.default(e);if(!o.isint()&&r){var n=Math.abs(e);n<1?(a=new ne.default(10).pow(ac(e)-1),o=new ne.default(Math.floor(o.div(a).toNumber())).mul(a)):n>1&&(o=new ne.default(Math.floor(e)))}else e===0?o=new ne.default(Math.floor((t-1)/2)):r||(o=new ne.default(Math.floor(e)));for(var i=Math.floor((t-1)/2),u=[],s=0;s4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:nc;if(!Number.isFinite((r-t)/(a-1)))return{step:new ne.default(0),tickMin:new ne.default(0),tickMax:new ne.default(0)};var u=i(new ne.default(r).sub(t).div(a-1),o,n),s;t<=0&&r>=0?s=new ne.default(0):(s=new ne.default(t).add(r).div(2),s=s.sub(new ne.default(s).mod(u)));var l=Math.ceil(s.sub(t).div(u).toNumber()),c=Math.ceil(new ne.default(r).sub(s).div(u).toNumber()),f=l+c+1;return f>a?kv(t,r,a,o,n+1,i):(f0?c+(a-f):c,l=r>0?l:l+(a-f)),{step:u,tickMin:s.sub(new ne.default(l).mul(u)),tickMax:s.add(new ne.default(c).mul(u))})};var Lu=function(t){var[r,a]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(o,2),[s,l]=Pv([r,a]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),l];return r>a?c.reverse():c}if(s===l)return bA(s,o,n);var f=i==="snap125"?Av:nc,{step:d,tickMin:p,tickMax:h}=kv(s,l,u,n,0,f),m=oc(p,h.add(new ne.default(.1).mul(d)),d);return r>a?m.reverse():m},Pu=function(t,r){var[a,o]=t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,s]=Pv([a,o]);if(u===-1/0||s===1/0)return[a,o];if(u===s)return[u];var l=i==="snap125"?Av:nc,c=Math.max(r,2),f=l(new ne.default(s).sub(u).div(c-1),n,0),d=[...oc(new ne.default(u),new ne.default(s),f),s];return n===!1&&(d=d.map(p=>Math.round(p))),a>o?d.reverse():d};var ic=e=>e.rootProps.maxBarSize,Ov=e=>e.rootProps.barGap,Au=e=>e.rootProps.barCategoryGap,Mv=e=>e.rootProps.barSize,$t=e=>e.rootProps.stackOffset,ro=e=>e.rootProps.reverseStackOrder,ku=e=>e.options.chartName,uc=e=>e.rootProps.syncId,Ev=e=>e.rootProps.syncMethod,sc=e=>e.options.eventEmitter;var Re={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Sr={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:Re.axis};var ht={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:Re.axis};var aa=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function ln(e,t,r){if(r!=="auto")return r;if(e!=null)return dt(e,t)?"category":"number"}function Dv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ou(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Lr=C([SA,cu],(e,t)=>{var r;if(e!=null)return e;var a=(r=ln(t,"angleAxis",Rv.type))!==null&&r!==void 0?r:"category";return Ou(Ou({},Rv),{},{type:a})}),LA=(e,t)=>e.polarAxis.radiusAxis[t],Pr=C([LA,cu],(e,t)=>{var r;if(e!=null)return e;var a=(r=ln(t,"radiusAxis",Tv.type))!==null&&r!==void 0?r:"category";return Ou(Ou({},Tv),{},{type:a})}),Mu=e=>e.polarOptions,lc=C([Ge,Ke,xe],fv),_v=C([Mu,lc],(e,t)=>{if(e!=null)return ze(e.innerRadius,t,0)}),Nv=C([Mu,lc],(e,t)=>{if(e!=null)return ze(e.outerRadius,t,t*.8)}),PA=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},fc=C([Mu],PA),Bv=C([Lr,fc],aa),cc=C([lc,_v,Nv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),Fv=C([Pr,cc],aa),Xt=C([J,Mu,_v,Nv,Ge,Ke],(e,t,r,a,o,n)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:i,cy:u,startAngle:s,endAngle:l}=t;return{cx:ze(i,o,o/2),cy:ze(u,n,n/2),innerRadius:r,outerRadius:a,startAngle:s,endAngle:l,clockWise:!1}}});var ce=(e,t)=>t;var oa=(e,t,r)=>r;function ao(e){return e?.id}function oo(e,t,r){var{chartData:a=[]}=t,{allowDuplicatedCategory:o,dataKey:n}=r,i=new Map;return e.forEach(u=>{var s,l=(s=u.data)!==null&&s!==void 0?s:a;if(!(l==null||l.length===0)){var c=ao(u);l.forEach((f,d)=>{var p=n==null||o?d:String(ve(f,n,null)),h=ve(f,u.dataKey,0),m;i.has(p)?m=i.get(p):m={},Object.assign(m,{[c]:h}),i.set(p,m)})}}),Array.from(i.values())}function lr(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var no=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function io(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function jv(e,t){if(e.length===t.length){for(var r=0;r{var t=J(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Ar=e=>e.tooltip.settings.axisId;function na(e){if(e!=null){var t=e.ticks,r=e.bandwidth,a=e.range(),o=[Math.min(...a),Math.max(...a)];return{domain:()=>e.domain(),range:function(n){function i(){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(n){var i=o[0],u=o[1];return i<=u?n>=i&&n<=u:n>=u&&n<=i},bandwidth:r?()=>r.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(n,i)=>{var u=e(n);if(u!=null){if(e.bandwidth&&i!==null&&i!==void 0&&i.position){var s=e.bandwidth();switch(i.position){case"middle":u+=s/2;break;case"end":u+=s;break;default:break}}return u}}}}}var Eu=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!mt(t)){for(var r,a,o=0;oa)&&(a=n))}return r!==void 0&&a!==void 0?[r,a]:void 0}return t}default:return t}};var Rr={};tC(Rr,{scaleBand:()=>pn,scaleDiverging:()=>ds,scaleDivergingLog:()=>Vc,scaleDivergingPow:()=>ps,scaleDivergingSqrt:()=>uy,scaleDivergingSymlog:()=>Wc,scaleIdentity:()=>Yu,scaleImplicit:()=>Fu,scaleLinear:()=>Xu,scaleLog:()=>Zu,scaleOrdinal:()=>lo,scalePoint:()=>Gv,scalePow:()=>Sn,scaleQuantile:()=>es,scaleQuantize:()=>ts,scaleRadial:()=>Qu,scaleSequential:()=>ss,scaleSequentialLog:()=>zc,scaleSequentialPow:()=>ls,scaleSequentialQuantile:()=>fs,scaleSequentialSqrt:()=>iy,scaleSequentialSymlog:()=>Hc,scaleSqrt:()=>kx,scaleSymlog:()=>Ju,scaleThreshold:()=>rs,scaleTime:()=>Uc,scaleUtc:()=>qc,tickFormat:()=>yn});function Qe(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function dc(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ia(e){let t,r,a;e.length!==2?(t=Qe,r=(u,s)=>Qe(e(u),s),a=(u,s)=>e(u)-s):(t=e===Qe||e===dc?e:AA,r=e,a=e);function o(u,s,l=0,c=u.length){if(l>>1;r(u[f],s)<0?l=f+1:c=f}while(l>>1;r(u[f],s)<=0?l=f+1:c=f}while(ll&&a(u[f-1],s)>-a(u[f],s)?f-1:f}return{left:o,center:i,right:n}}function AA(){return 0}function fn(e){return e===null?NaN:+e}function*Uv(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var qv=ia(Qe),zv=qv.right,kA=qv.left,OA=ia(fn).center,Ft=zv;var uo=class extends Map{constructor(t,r=DA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,o]of t)this.set(a,o)}get(t){return super.get(Hv(this,t))}has(t){return super.has(Hv(this,t))}set(t,r){return super.set(MA(this,t),r)}delete(t){return super.delete(EA(this,t))}};function Hv({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function MA({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function EA({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function DA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Vv(e=Qe){if(e===Qe)return pc;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function pc(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var RA=Math.sqrt(50),TA=Math.sqrt(10),_A=Math.sqrt(2);function Du(e,t,r){let a=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(a)),n=a/Math.pow(10,o),i=n>=RA?10:n>=TA?5:n>=_A?2:1,u,s,l;return o<0?(l=Math.pow(10,-o)/i,u=Math.round(e*l),s=Math.round(t*l),u/lt&&--s,l=-l):(l=Math.pow(10,o)*i,u=Math.round(e/l),s=Math.round(t/l),u*lt&&--s),s0))return[];if(e===t)return[e];let a=t=o))return[];let u=n-o+1,s=new Array(u);if(a)if(i<0)for(let l=0;l=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r=o)&&(r=o)}return r}function Tu(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function _u(e,t,r=0,a=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(o=o===void 0?pc:Vv(o);a>r;){if(a-r>600){let s=a-r+1,l=t-r+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(l-s/2<0?-1:1),p=Math.max(r,Math.floor(t-l*f/s+d)),h=Math.min(a,Math.floor(t+(s-l)*f/s+d));_u(e,t,p,h,o)}let n=e[t],i=r,u=a;for(dn(e,r,t),o(e[a],n)>0&&dn(e,r,a);i0;)--u}o(e[r],n)===0?dn(e,r,u):(++u,dn(e,u,a)),u<=t&&(r=u+1),t<=u&&(a=u-1)}return e}function dn(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function Nu(e,t,r){if(e=Float64Array.from(Uv(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return Tu(e);if(t>=1)return Ru(e);var a,o=(a-1)*t,n=Math.floor(o),i=Ru(_u(e,n).subarray(0,n+1)),u=Tu(e.subarray(n+1));return i+(u-i)*(o-n)}}function mc(e,t,r=fn){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,o=(a-1)*t,n=Math.floor(o),i=+r(e[n],n,e),u=+r(e[n+1],n+1,e);return i+(u-i)*(o-n)}}function Bu(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,n=new Array(o);++a>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Uu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Uu(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=BA.exec(e))?new at(t[1],t[2],t[3],1):(t=FA.exec(e))?new at(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jA.exec(e))?Uu(t[1],t[2],t[3],t[4]):(t=UA.exec(e))?Uu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qA.exec(e))?Qv(t[1],t[2]/100,t[3]/100,1):(t=zA.exec(e))?Qv(t[1],t[2]/100,t[3]/100,t[4]):Kv.hasOwnProperty(e)?Yv(Kv[e]):e==="transparent"?new at(NaN,NaN,NaN,0):null}function Yv(e){return new at(e>>16&255,e>>8&255,e&255,1)}function Uu(e,t,r,a){return a<=0&&(e=t=r=NaN),new at(e,t,r,a)}function WA(e){return e instanceof gn||(e=kr(e)),e?(e=e.rgb(),new at(e.r,e.g,e.b,e.opacity)):new at}function co(e,t,r,a){return arguments.length===1?WA(e):new at(e,t,r,a??1)}function at(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}ju(at,co,hc(gn,{brighter(e){return e=e==null?zu:Math.pow(zu,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mn:Math.pow(mn,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(la(this.r),la(this.g),la(this.b),Hu(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:Zv,formatHex:Zv,formatHex8:GA,formatRgb:Jv,toString:Jv}));function Zv(){return`#${sa(this.r)}${sa(this.g)}${sa(this.b)}`}function GA(){return`#${sa(this.r)}${sa(this.g)}${sa(this.b)}${sa((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jv(){let e=Hu(this.opacity);return`${e===1?"rgb(":"rgba("}${la(this.r)}, ${la(this.g)}, ${la(this.b)}${e===1?")":`, ${e})`}`}function Hu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function la(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sa(e){return e=la(e),(e<16?"0":"")+e.toString(16)}function Qv(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new jt(e,t,r,a)}function tx(e){if(e instanceof jt)return new jt(e.h,e.s,e.l,e.opacity);if(e instanceof gn||(e=kr(e)),!e)return new jt;if(e instanceof jt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),n=Math.max(t,r,a),i=NaN,u=n-o,s=(n+o)/2;return u?(t===n?i=(r-a)/u+(r0&&s<1?0:i,new jt(i,u,s,e.opacity)}function rx(e,t,r,a){return arguments.length===1?tx(e):new jt(e,t,r,a??1)}function jt(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}ju(jt,rx,hc(gn,{brighter(e){return e=e==null?zu:Math.pow(zu,e),new jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mn:Math.pow(mn,e),new jt(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,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new at(gc(e>=240?e-240:e+120,o,a),gc(e,o,a),gc(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new jt(ex(this.h),qu(this.s),qu(this.l),Hu(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(){let e=Hu(this.opacity);return`${e===1?"hsl(":"hsla("}${ex(this.h)}, ${qu(this.s)*100}%, ${qu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ex(e){return e=(e||0)%360,e<0?e+360:e}function qu(e){return Math.max(0,Math.min(1,e||0))}function gc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function vc(e,t,r,a,o){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*r+(1+3*e+3*n-3*i)*a+i*o)/6}function ax(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],n=e[a+1],i=a>0?e[a-1]:2*o-n,u=a()=>e;function KA(e,t){return function(r){return e+r*t}}function $A(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function nx(e){return(e=+e)==1?Vu:function(t,r){return r-t?$A(t,r,e):vn(isNaN(t)?r:t)}}function Vu(e,t){var r=t-e;return r?KA(e,r):vn(isNaN(e)?t:e)}var xc=function e(t){var r=nx(t);function a(o,n){var i=r((o=co(o)).r,(n=co(n)).r),u=r(o.g,n.g),s=r(o.b,n.b),l=Vu(o.opacity,n.opacity);return function(c){return o.r=i(c),o.g=u(c),o.b=s(c),o.opacity=l(c),o+""}}return a.gamma=e,a}(1);function ix(e){return function(t){var r=t.length,a=new Array(r),o=new Array(r),n=new Array(r),i,u;for(i=0;ir&&(n=t.slice(r,n),u[i]?u[i]+=n:u[++i]=n),(a=a[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,s.push({i,x:Or(a,o)})),r=yc.lastIndex;return rt&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function JA(e,t,r){var a=e[0],o=e[1],n=t[0],i=t[1];return o2?QA:JA,s=l=null,f}function f(d){return d==null||isNaN(d=+d)?n:(s||(s=u(e.map(a),t,r)))(a(i(d)))}return f.invert=function(d){return i(o((l||(l=u(t,e.map(a),Or)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Mr),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),r=fa,c()},f.clamp=function(d){return arguments.length?(i=d?!0:Te,c()):i!==Te},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(n=d,f):n},function(d,p){return a=d,o=p,c()}}function da(){return ca()(Te,Te)}function mx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pa(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Jt(e){return e=pa(Math.abs(e)),e?e[1]:NaN}function hx(e,t){return function(r,a){for(var o=r.length,n=[],i=0,u=e[0],s=0;o>0&&u>0&&(s+u+1>a&&(u=Math.max(1,a-s)),n.push(r.substring(o-=u,o+u)),!((s+=u+1)>a));)u=e[i=(i+1)%e.length];return n.reverse().join(t)}}function gx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ek=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qt(e){if(!(t=ek.exec(e)))throw new Error("invalid format: "+e);var t;return new Gu({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]})}Qt.prototype=Gu.prototype;function Gu(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+""}Gu.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 vx(e){e:for(var t=e.length,r=1,a=-1,o;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var xn;function xx(e,t){var r=pa(e,t);if(!r)return xn=void 0,e.toPrecision(t);var a=r[0],o=r[1],n=o-(xn=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return n===i?a:n>i?a+new Array(n-i+1).join("0"):n>0?a.slice(0,n)+"."+a.slice(n):"0."+new Array(1-n).join("0")+pa(e,Math.max(0,t+n-1))[0]}function Cc(e,t){var r=pa(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var Sc={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mx,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)=>Cc(e*100,t),r:Cc,s:xx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Lc(e){return e}var yx=Array.prototype.map,bx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ix(e){var t=e.grouping===void 0||e.thousands===void 0?Lc:hx(yx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",n=e.numerals===void 0?Lc:gx(yx.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function l(f,d){f=Qt(f);var p=f.fill,h=f.align,m=f.sign,y=f.symbol,I=f.zero,L=f.width,A=f.comma,M=f.precision,P=f.trim,k=f.type;k==="n"?(A=!0,k="g"):Sc[k]||(M===void 0&&(M=12),P=!0,k="g"),(I||p==="0"&&h==="=")&&(I=!0,p="0",h="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),O=(y==="$"?a:/[%p]/.test(k)?i:"")+(d&&d.suffix!==void 0?d.suffix:""),z=Sc[k],N=/[defgprs%]/.test(k);M=M===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function K(F){var $=_,X=O,ie,g,x;if(k==="c")X=z(F)+X,F="";else{F=+F;var S=F<0||1/F<0;if(F=isNaN(F)?s:z(Math.abs(F),M),P&&(F=vx(F)),S&&+F==0&&m!=="+"&&(S=!1),$=(S?m==="("?m:u:m==="-"||m==="("?"":m)+$,X=(k==="s"&&!isNaN(F)&&xn!==void 0?bx[8+xn/3]:"")+X+(S&&m==="("?")":""),N){for(ie=-1,g=F.length;++iex||x>57){X=(x===46?o+F.slice(ie+1):F.slice(ie))+X,F=F.slice(0,ie);break}}}A&&!I&&(F=t(F,1/0));var b=$.length+F.length+X.length,v=b>1)+$+F+X+v.slice(b);break;default:F=v+$+F+X;break}return n(F)}return K.toString=function(){return f+""},K}function c(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Jt(d)/3)))*3,h=Math.pow(10,-p),m=l((f=Qt(f),f.type="f",f),{suffix:bx[8+p/3]});return function(y){return m(h*y)}}return{format:l,formatPrefix:c}}var Ku,po,$u;Pc({thousands:",",grouping:[3],currency:["$",""]});function Pc(e){return Ku=Ix(e),po=Ku.format,$u=Ku.formatPrefix,Ku}function Ac(e){return Math.max(0,-Jt(Math.abs(e)))}function kc(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jt(t)/3)))*3-Jt(Math.abs(e)))}function Oc(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Jt(t)-Jt(e))+1}function yn(e,t,r,a){var o=so(e,t,r),n;switch(a=Qt(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(n=kc(o,i))&&(a.precision=n),$u(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(n=Oc(o,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=n-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(n=Ac(o))&&(a.precision=n-(a.type==="%")*2);break}}return po(a)}function et(e){var t=e.domain;return e.ticks=function(r){var a=t();return ua(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var o=t();return yn(o[0],o[o.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),o=0,n=a.length-1,i=a[o],u=a[n],s,l,c=10;for(u0;){if(l=cn(i,u,r),l===s)return a[o]=i,a[n]=u,t(a);if(l>0)i=Math.floor(i/l)*l,u=Math.ceil(u/l)*l;else if(l<0)i=Math.ceil(i*l)/l,u=Math.floor(u*l)/l;else break;s=l}return e},e}function Xu(){var e=da();return e.copy=function(){return Zt(e,Xu())},be.apply(e,arguments),et(e)}function Yu(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,Mr),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return Yu(e).unknown(t)},e=arguments.length?Array.from(e,Mr):[0,1],et(r)}function bn(e,t){e=e.slice();var r=0,a=e.length-1,o=e[r],n=e[a],i;return nMath.pow(e,t)}function nk(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 Sx(e){return(t,r)=>-e(-t,r)}function In(e){let t=e(wx,Cx),r=t.domain,a=10,o,n;function i(){return o=nk(a),n=ok(a),r()[0]<0?(o=Sx(o),n=Sx(n),e(tk,rk)):e(wx,Cx),t}return t.base=function(u){return arguments.length?(a=+u,i()):a},t.domain=function(u){return arguments.length?(r(u),i()):r()},t.ticks=u=>{let s=r(),l=s[0],c=s[s.length-1],f=c0){for(;d<=p;++d)for(h=1;hc)break;I.push(m)}}else for(;d<=p;++d)for(h=a-1;h>=1;--h)if(m=d>0?h/n(-d):h*n(d),!(mc)break;I.push(m)}I.length*2{if(u==null&&(u=10),s==null&&(s=a===10?"s":","),typeof s!="function"&&(!(a%1)&&(s=Qt(s)).precision==null&&(s.trim=!0),s=po(s)),u===1/0)return s;let l=Math.max(1,a*u/t.ticks().length);return c=>{let f=c/n(Math.round(o(c)));return f*ar(bn(r(),{floor:u=>n(Math.floor(o(u))),ceil:u=>n(Math.ceil(o(u)))})),t}function Zu(){let e=In(ca()).domain([1,10]);return e.copy=()=>Zt(e,Zu()).base(e.base()),be.apply(e,arguments),e}function Lx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Px(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function wn(e){var t=1,r=e(Lx(t),Px(t));return r.constant=function(a){return arguments.length?e(Lx(t=+a),Px(t)):t},et(r)}function Ju(){var e=wn(ca());return e.copy=function(){return Zt(e,Ju()).constant(e.constant())},be.apply(e,arguments)}function Ax(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ik(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function uk(e){return e<0?-e*e:e*e}function Cn(e){var t=e(Te,Te),r=1;function a(){return r===1?e(Te,Te):r===.5?e(ik,uk):e(Ax(r),Ax(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,a()):r},et(t)}function Sn(){var e=Cn(ca());return e.copy=function(){return Zt(e,Sn()).exponent(e.exponent())},be.apply(e,arguments),e}function kx(){return Sn.apply(null,arguments).exponent(.5)}function Ox(e){return Math.sign(e)*e*e}function sk(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Qu(){var e=da(),t=[0,1],r=!1,a;function o(n){var i=sk(e(n));return isNaN(i)?a:r?Math.round(i):i}return o.invert=function(n){return e.invert(Ox(n))},o.domain=function(n){return arguments.length?(e.domain(n),o):e.domain()},o.range=function(n){return arguments.length?(e.range((t=Array.from(n,Mr)).map(Ox)),o):t.slice()},o.rangeRound=function(n){return o.range(n).round(!0)},o.round=function(n){return arguments.length?(r=!!n,o):r},o.clamp=function(n){return arguments.length?(e.clamp(n),o):e.clamp()},o.unknown=function(n){return arguments.length?(a=n,o):a},o.copy=function(){return Qu(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},be.apply(o,arguments),et(o)}function es(){var e=[],t=[],r=[],a;function o(){var i=0,u=Math.max(1,t.length);for(r=new Array(u-1);++i0?r[u-1]:e[0],u=r?[a[r-1],t]:[a[l-1],a[l]]},i.unknown=function(s){return arguments.length&&(n=s),i},i.thresholds=function(){return a.slice()},i.copy=function(){return ts().domain([e,t]).range(o).unknown(n)},be.apply(et(i),arguments)}function rs(){var e=[.5],t=[0,1],r,a=1;function o(n){return n!=null&&n<=n?t[Ft(e,n,0,a)]:r}return o.domain=function(n){return arguments.length?(e=Array.from(n),a=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(n){return arguments.length?(t=Array.from(n),a=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},o.unknown=function(n){return arguments.length?(r=n,o):r},o.copy=function(){return rs().domain(e).range(t).unknown(r)},be.apply(o,arguments)}var Mc=new Date,Ec=new Date;function de(e,t,r,a){function o(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(e(n=new Date(+n)),n),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=n=>{let i=o(n),u=o.ceil(n);return n-i(t(n=new Date(+n),i==null?1:Math.floor(i)),n),o.range=(n,i,u)=>{let s=[];if(n=o.ceil(n),u=u==null?1:Math.floor(u),!(n0))return s;let l;do s.push(l=new Date(+n)),t(n,u),e(n);while(lde(i=>{if(i>=i)for(;e(i),!n(i);)i.setTime(i-1)},(i,u)=>{if(i>=i)if(u<0)for(;++u<=0;)for(;t(i,-1),!n(i););else for(;--u>=0;)for(;t(i,1),!n(i););}),r&&(o.count=(n,i)=>(Mc.setTime(+n),Ec.setTime(+i),e(Mc),e(Ec),Math.floor(r(Mc,Ec))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(a?i=>a(i)%n===0:i=>o.count(0,i)%n===0):o)),o}var Ln=de(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ln.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?de(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ln);var JG=Ln.range;var At=de(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Mx=At.range;var mo=de(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),lk=mo.range,ho=de(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),fk=ho.range;var go=de(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),ck=go.range,vo=de(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),dk=vo.range;var fr=de(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),pk=fr.range,ga=de(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),mk=ga.range,as=de(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),hk=as.range;function va(e){return de(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var cr=va(0),xo=va(1),Dx=va(2),Rx=va(3),Er=va(4),Tx=va(5),_x=va(6),Nx=cr.range,gk=xo.range,vk=Dx.range,xk=Rx.range,yk=Er.range,bk=Tx.range,Ik=_x.range;function xa(e){return de(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var dr=xa(0),yo=xa(1),Bx=xa(2),Fx=xa(3),Dr=xa(4),jx=xa(5),Ux=xa(6),qx=dr.range,wk=yo.range,Ck=Bx.range,Sk=Fx.range,Lk=Dr.range,Pk=jx.range,Ak=Ux.range;var bo=de(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()),kk=bo.range,Io=de(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()),Ok=Io.range;var vt=de(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:de(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var Mk=vt.range,xt=de(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());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:de(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var Ek=xt.range;function Hx(e,t,r,a,o,n){let i=[[At,1,1e3],[At,5,5*1e3],[At,15,15*1e3],[At,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function u(l,c,f){let d=cy).right(i,d);if(p===i.length)return e.every(so(l/31536e6,c/31536e6,f));if(p===0)return Ln.every(Math.max(so(l,c,f),1));let[h,m]=i[d/i[p-1][2]53)return null;"w"in D||(D.w=1),"Z"in D?(ee=Bc(An(D.y,0,1)),qe=ee.getUTCDay(),ee=qe>4||qe===0?yo.ceil(ee):yo(ee),ee=ga.offset(ee,(D.V-1)*7),D.y=ee.getUTCFullYear(),D.m=ee.getUTCMonth(),D.d=ee.getUTCDate()+(D.w+6)%7):(ee=Nc(An(D.y,0,1)),qe=ee.getDay(),ee=qe>4||qe===0?xo.ceil(ee):xo(ee),ee=fr.offset(ee,(D.V-1)*7),D.y=ee.getFullYear(),D.m=ee.getMonth(),D.d=ee.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),qe="Z"in D?Bc(An(D.y,0,1)).getUTCDay():Nc(An(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(qe+5)%7:D.w+D.U*7-(qe+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Bc(D)):Nc(D)}}function O(E,q,H,D){for(var we=0,ee=q.length,qe=H.length,Be,It;we=qe)return-1;if(Be=q.charCodeAt(we++),Be===37){if(Be=q.charAt(we++),It=P[Be in Vx?q.charAt(we++):Be],!It||(D=It(E,H,D))<0)return-1}else if(Be!=H.charCodeAt(D++))return-1}return D}function z(E,q,H){var D=l.exec(q.slice(H));return D?(E.p=c.get(D[0].toLowerCase()),H+D[0].length):-1}function N(E,q,H){var D=p.exec(q.slice(H));return D?(E.w=h.get(D[0].toLowerCase()),H+D[0].length):-1}function K(E,q,H){var D=f.exec(q.slice(H));return D?(E.w=d.get(D[0].toLowerCase()),H+D[0].length):-1}function F(E,q,H){var D=I.exec(q.slice(H));return D?(E.m=L.get(D[0].toLowerCase()),H+D[0].length):-1}function $(E,q,H){var D=m.exec(q.slice(H));return D?(E.m=y.get(D[0].toLowerCase()),H+D[0].length):-1}function X(E,q,H){return O(E,t,q,H)}function ie(E,q,H){return O(E,r,q,H)}function g(E,q,H){return O(E,a,q,H)}function x(E){return i[E.getDay()]}function S(E){return n[E.getDay()]}function b(E){return s[E.getMonth()]}function v(E){return u[E.getMonth()]}function w(E){return o[+(E.getHours()>=12)]}function R(E){return 1+~~(E.getMonth()/3)}function T(E){return i[E.getUTCDay()]}function B(E){return n[E.getUTCDay()]}function U(E){return s[E.getUTCMonth()]}function j(E){return u[E.getUTCMonth()]}function V(E){return o[+(E.getUTCHours()>=12)]}function me(E){return 1+~~(E.getUTCMonth()/3)}return{format:function(E){var q=k(E+="",A);return q.toString=function(){return E},q},parse:function(E){var q=_(E+="",!1);return q.toString=function(){return E},q},utcFormat:function(E){var q=k(E+="",M);return q.toString=function(){return E},q},utcParse:function(E){var q=_(E+="",!0);return q.toString=function(){return E},q}}}var Vx={"-":"",_:" ",0:"0"},je=/^\s*\d+/,Rk=/^%/,Tk=/[\\^$*+?|[\]().{}]/g;function se(e,t,r){var a=e<0?"-":"",o=(a?-e:e)+"",n=o.length;return a+(n[t.toLowerCase(),r]))}function Nk(e,t,r){var a=je.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function Bk(e,t,r){var a=je.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function Fk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function jk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function Uk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function Wx(e,t,r){var a=je.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function Gx(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function qk(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function zk(e,t,r){var a=je.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function Hk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Kx(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function Vk(e,t,r){var a=je.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function $x(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function Wk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function Gk(e,t,r){var a=je.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function Kk(e,t,r){var a=je.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function $k(e,t,r){var a=je.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Xk(e,t,r){var a=Rk.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function Yk(e,t,r){var a=je.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function Zk(e,t,r){var a=je.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Xx(e,t){return se(e.getDate(),t,2)}function Jk(e,t){return se(e.getHours(),t,2)}function Qk(e,t){return se(e.getHours()%12||12,t,2)}function eO(e,t){return se(1+fr.count(vt(e),e),t,3)}function ey(e,t){return se(e.getMilliseconds(),t,3)}function tO(e,t){return ey(e,t)+"000"}function rO(e,t){return se(e.getMonth()+1,t,2)}function aO(e,t){return se(e.getMinutes(),t,2)}function oO(e,t){return se(e.getSeconds(),t,2)}function nO(e){var t=e.getDay();return t===0?7:t}function iO(e,t){return se(cr.count(vt(e)-1,e),t,2)}function ty(e){var t=e.getDay();return t>=4||t===0?Er(e):Er.ceil(e)}function uO(e,t){return e=ty(e),se(Er.count(vt(e),e)+(vt(e).getDay()===4),t,2)}function sO(e){return e.getDay()}function lO(e,t){return se(xo.count(vt(e)-1,e),t,2)}function fO(e,t){return se(e.getFullYear()%100,t,2)}function cO(e,t){return e=ty(e),se(e.getFullYear()%100,t,2)}function dO(e,t){return se(e.getFullYear()%1e4,t,4)}function pO(e,t){var r=e.getDay();return e=r>=4||r===0?Er(e):Er.ceil(e),se(e.getFullYear()%1e4,t,4)}function mO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+se(t/60|0,"0",2)+se(t%60,"0",2)}function Yx(e,t){return se(e.getUTCDate(),t,2)}function hO(e,t){return se(e.getUTCHours(),t,2)}function gO(e,t){return se(e.getUTCHours()%12||12,t,2)}function vO(e,t){return se(1+ga.count(xt(e),e),t,3)}function ry(e,t){return se(e.getUTCMilliseconds(),t,3)}function xO(e,t){return ry(e,t)+"000"}function yO(e,t){return se(e.getUTCMonth()+1,t,2)}function bO(e,t){return se(e.getUTCMinutes(),t,2)}function IO(e,t){return se(e.getUTCSeconds(),t,2)}function wO(e){var t=e.getUTCDay();return t===0?7:t}function CO(e,t){return se(dr.count(xt(e)-1,e),t,2)}function ay(e){var t=e.getUTCDay();return t>=4||t===0?Dr(e):Dr.ceil(e)}function SO(e,t){return e=ay(e),se(Dr.count(xt(e),e)+(xt(e).getUTCDay()===4),t,2)}function LO(e){return e.getUTCDay()}function PO(e,t){return se(yo.count(xt(e)-1,e),t,2)}function AO(e,t){return se(e.getUTCFullYear()%100,t,2)}function kO(e,t){return e=ay(e),se(e.getUTCFullYear()%100,t,2)}function OO(e,t){return se(e.getUTCFullYear()%1e4,t,4)}function MO(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Dr(e):Dr.ceil(e),se(e.getUTCFullYear()%1e4,t,4)}function EO(){return"+0000"}function Zx(){return"%"}function Jx(e){return+e}function Qx(e){return Math.floor(+e/1e3)}var wo,os,oy,ns,ny;jc({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 jc(e){return wo=Fc(e),os=wo.format,oy=wo.parse,ns=wo.utcFormat,ny=wo.utcParse,wo}function DO(e){return new Date(e)}function RO(e){return e instanceof Date?+e:+new Date(+e)}function is(e,t,r,a,o,n,i,u,s,l){var c=da(),f=c.invert,d=c.domain,p=l(".%L"),h=l(":%S"),m=l("%I:%M"),y=l("%I %p"),I=l("%a %d"),L=l("%b %d"),A=l("%B"),M=l("%Y");function P(k){return(s(k)t(o/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,n)=>Nu(e,n/a))},r.copy=function(){return fs(t).domain(e)},Pt.apply(r,arguments)}function cs(){var e=0,t=.5,r=1,a=1,o,n,i,u,s,l=Te,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-n)*(a*m{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof a=="string")return NO(a)?a:"point"}};function BO(e,t){for(var r=0,a=e.length,o=e[0]t)?r=n+1:a=n}return r}function hs(e,t){if(e){var r=t??e.domain(),a=r.map(n=>{var i;return(i=e(n))!==null&&i!==void 0?i:0}),o=e.range();if(!(r.length===0||o.length<2))return n=>{var i,u,s=BO(a,n);if(s<=0)return r[0];if(s>=r.length)return r[r.length-1];var l=(i=a[s-1])!==null&&i!==void 0?i:0,c=(u=a[s])!==null&&u!==void 0?u:0;return Math.abs(n-l)<=Math.abs(n-c)?r[s-1]:r[s]}}}function ly(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):hs(e,void 0)}function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function gs(e){for(var t=1;te.cartesianAxis.xAxis[t],Tr=(e,t)=>{var r=zO(e,t);return r??qO},HO={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Gc,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Jr},VO=(e,t)=>e.cartesianAxis.yAxis[t],_r=(e,t)=>{var r=VO(e,t);return r??HO},WO={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Kc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??WO},Ce=(e,t,r)=>{switch(t){case"xAxis":return Tr(e,r);case"yAxis":return _r(e,r);case"zAxis":return Kc(e,r);case"angleAxis":return Lr(e,r);case"radiusAxis":return Pr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},GO=(e,t,r)=>{switch(t){case"xAxis":return Tr(e,r);case"yAxis":return _r(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hr=(e,t,r)=>{switch(t){case"xAxis":return Tr(e,r);case"yAxis":return _r(e,r);case"angleAxis":return Lr(e,r);case"radiusAxis":return Pr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},$c=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function En(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var KO=e=>e.graphicalItems.cartesianItems,$O=C([ce,oa],En),Dn=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),Rn=C([KO,Ce,$O],Dn,{memoizeOptions:{resultEqualityCheck:io}}),dy=C([Rn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(lr)),Xc=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),XO=C([Rn],Xc),Tn=e=>e.map(t=>t.data).filter(Boolean).flat(1),YO=C([Rn],Tn,{memoizeOptions:{resultEqualityCheck:io}}),_n=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:o}=t;return e.length>0?e:r.slice(a,o+1)},Yc=C([YO,ec],_n),Nn=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:ve(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(o=>({value:ve(o,a)}))):e.map(a=>({value:a})),Bn=C([Yc,Ce,Rn],Nn);function Co(e){if(Vt(e)||e instanceof Date){var t=Number(e);if(Q(t))return t}}function cy(e){if(Array.isArray(e)){var t=[Co(e[0]),Co(e[1])];return mt(t)?t:void 0}var r=Co(e);if(r!=null)return[r,r]}function mr(e){return e.map(Co).filter(st)}function ZO(e,t){var r=Co(e),a=Co(t);return r==null&&a==null?0:r==null?-1:a==null?1:r-a}var JO=C([Bn],e=>e?.map(t=>t.value).sort(ZO));function py(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function QO(e,t,r){return!r||typeof t!="number"||rt(t)?[]:r.length?mr(r.flatMap(a=>{var o=ve(e,a.dataKey),n,i;if(Array.isArray(o)?[n,i]=o:n=i=o,!(!Q(n)||!Q(i)))return[t-n,t+i]})):[]}var Ae=e=>{var t=Pe(e),r=Ar(e);return hr(e,t,r)},Nr=C([Ae],e=>e?.dataKey),eM=C([dy,ec,Ae],oo),Fn=(e,t,r,a)=>{var o={},n=t.reduce((i,u)=>{if(u.stackId==null)return i;var s=i[u.stackId];return s==null&&(s=[]),s.push(u),i[u.stackId]=s,i},o);return Object.fromEntries(Object.entries(n).map(i=>{var[u,s]=i,l=a?[...s].reverse():s,c=l.map(ao);return[u,{stackedData:Uh(e,c,r),graphicalItems:l}]}))},tM=C([eM,dy,$t,ro],Fn),Zc=(e,t,r,a)=>{var{dataStartIndex:o,dataEndIndex:n}=t;if(a==null&&r!=="zAxis"){var i=zh(e,o,n);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},rM=C([Ce],e=>e.allowDataOverflow),vs=e=>{var t;if(e==null||!("domain"in e))return Gc;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=mr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Gc},xs=C([Ce],vs),ys=C([xs,rM],Cu),aM=C([tM,pt,ce,ys],Zc,{memoizeOptions:{resultEqualityCheck:no}}),So=e=>e.errorBars,oM=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>py(r,a)),Mn=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var n,i;if(r.length>0&&e.forEach(u=>{r.forEach(s=>{var l,c,f=(l=a[s.id])===null||l===void 0?void 0:l.filter(I=>py(o,I)),d=ve(u,(c=t.dataKey)!==null&&c!==void 0?c:s.dataKey),p=QO(u,d,f);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(n==null||hi)&&(i=m)}var y=cy(d);y!=null&&(n=n==null?y[0]:Math.min(n,y[0]),i=i==null?y[1]:Math.max(i,y[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var s=cy(ve(u,t.dataKey));s!=null&&(n=n==null?s[0]:Math.min(n,s[0]),i=i==null?s[1]:Math.max(i,s[1]))}),Q(n)&&Q(i))return[n,i]},nM=C([Yc,Ce,XO,So,ce],jn,{memoizeOptions:{resultEqualityCheck:no}});function iM(e){var{value:t}=e;if(Vt(t)||t instanceof Date)return t}var uM=(e,t,r)=>{var a=e.map(iM).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&nf(a))?wu(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},Jc=e=>e.referenceElements.dots,ba=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),sM=C([Jc,ce,oa],ba),Qc=e=>e.referenceElements.areas,lM=C([Qc,ce,oa],ba),ed=e=>e.referenceElements.lines,fM=C([ed,ce,oa],ba),td=(e,t)=>{if(e!=null){var r=mr(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},cM=C(sM,ce,td),rd=(e,t)=>{if(e!=null){var r=mr(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},dM=C([lM,ce],rd);function pM(e){var t;if(e.x!=null)return mr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.x);return r==null||r.length===0?[]:mr(r)}function mM(e){var t;if(e.y!=null)return mr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.y);return r==null||r.length===0?[]:mr(r)}var ad=(e,t)=>{if(e!=null){var r=e.flatMap(a=>t==="xAxis"?pM(a):mM(a));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},hM=C([fM,ce],ad),gM=C(cM,hM,dM,(e,t,r)=>Mn(e,r,t)),Un=(e,t,r,a,o,n,i,u)=>{if(r!=null)return r;var s=i==="vertical"&&u==="xAxis"||i==="horizontal"&&u==="yAxis",l=s?Mn(a,n,o):Mn(n,o);return Sv(t,l,e.allowDataOverflow)},vM=C([Ce,xs,ys,aM,nM,gM,J,ce],Un,{memoizeOptions:{resultEqualityCheck:no}}),xM=[0,1],qn=(e,t,r,a,o,n,i)=>{if(!((e==null||r==null||r.length===0)&&i===void 0)){var{dataKey:u,type:s}=e,l=dt(t,n);if(l&&u==null){var c;return wu(0,(c=r?.length)!==null&&c!==void 0?c:0)}return s==="category"?uM(a,e,l):o==="expand"?xM:i}},od=C([Ce,J,Yc,Bn,$t,ce,vM],qn),kt=C([Ce,$c,ku],ms),zn=(e,t,r)=>{var{niceTicks:a}=t;if(a!=="none"){var o=vs(t),n=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((a==="snap125"||a==="adaptive")&&t!=null&&t.tickCount&&mt(e)){if(n)return Lu(e,t.tickCount,t.allowDecimals,a);if(t.type==="number")return Pu(e,t.tickCount,t.allowDecimals,a)}if(a==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(n&&mt(e))return Lu(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&mt(e))return Pu(e,t.tickCount,t.allowDecimals,"adaptive")}}},nd=C([od,hr,kt],zn),Hn=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&mt(t)&&Array.isArray(r)&&r.length>0){var o,n,i=t[0],u=(o=r[0])!==null&&o!==void 0?o:0,s=t[1],l=(n=r[r.length-1])!==null&&n!==void 0?n:0;return[Math.min(i,u),Math.max(s,l)]}return t},yM=C([Ce,od,nd,ce],Hn),bM=C(Bn,Ce,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(mr(e.map(f=>f.value))).sort((f,d)=>f-d),o=a[0],n=a[a.length-1];if(o==null||n==null)return 1/0;var i=n-o;if(i===0)return 1/0;for(var u=0;uo,(e,t,r,a,o)=>{if(!Q(e))return 0;var n=t==="vertical"?a.height:a.width;if(o==="gap")return e*n/2;if(o==="no-gap"){var i=ze(r,e*n),u=e*n/2;return u-i-(u-i)/n*i}return 0}),IM=(e,t,r)=>{var a=Tr(e,t);return a==null||typeof a.padding!="string"?0:my(e,"xAxis",t,r,a.padding)},wM=(e,t,r)=>{var a=_r(e,t);return a==null||typeof a.padding!="string"?0:my(e,"yAxis",t,r,a.padding)},CM=C(Tr,IM,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((a=o.right)!==null&&a!==void 0?a:0)+t}}),SM=C(_r,wM,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((a=o.bottom)!==null&&a!==void 0?a:0)+t}}),LM=C([xe,CM,Qr,Za,(e,t,r)=>r],(e,t,r,a,o)=>{var{padding:n}=a;return o?[n.left,r.width-n.right]:[e.left+t.left,e.left+e.width-t.right]}),PM=C([xe,J,SM,Qr,Za,(e,t,r)=>r],(e,t,r,a,o,n)=>{var{padding:i}=o;return n?[a.height-i.bottom,i.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Lo=(e,t,r,a)=>{var o;switch(t){case"xAxis":return LM(e,r,a);case"yAxis":return PM(e,r,a);case"zAxis":return(o=Kc(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return fc(e);case"radiusAxis":return cc(e,r);default:return}},hy=C([Ce,Lo],aa),AM=C([kt,yM],Eu),id=C([Ce,kt,AM,hy],ya),Vn=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:n}=r,i=dt(e,a);if(i&&(o==="number"||n!=="auto"))return t.map(u=>u.value)}},ud=C([J,Bn,hr,ce],Vn),bs=C([id],na),I$=C([id],ly),w$=C([id,JO],hs),C$=C([Rn,So,ce],oM);function gy(e,t){return e.idt.id?1:0}var Is=(e,t)=>t,ws=(e,t,r)=>r,kM=C(Xa,Is,ws,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(gy)),OM=C(Ya,Is,ws,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(gy)),vy=(e,t)=>({width:e.width,height:t.height}),MM=(e,t)=>{var r=typeof t.width=="number"?t.width:Jr;return{width:r,height:e.height}},S$=C(xe,Tr,vy),EM=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},DM=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},RM=C(Ke,xe,kM,Is,ws,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var s=vy(t,u);i==null&&(i=EM(t,a,e));var l=a==="top"&&!o||a==="bottom"&&o;n[u.id]=i-Number(l)*s.height,i+=(l?-1:1)*s.height}),n}),TM=C(Ge,xe,OM,Is,ws,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var s=MM(t,u);i==null&&(i=DM(t,a,e));var l=a==="left"&&!o||a==="right"&&o;n[u.id]=i-Number(l)*s.width,i+=(l?-1:1)*s.width}),n}),_M=(e,t)=>{var r=Tr(e,t);if(r!=null)return RM(e,r.orientation,r.mirror)},L$=C([xe,Tr,_M,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),NM=(e,t)=>{var r=_r(e,t);if(r!=null)return TM(e,r.orientation,r.mirror)},P$=C([xe,_r,NM,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),A$=C(xe,_r,(e,t)=>{var r=typeof t.width=="number"?t.width:Jr;return{width:r,height:e.height}});var sd=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:o,type:n,dataKey:i}=r,u=dt(e,a),s=t.map(l=>l.value);if(i&&u&&n==="category"&&o&&nf(s))return s}},Po=C([J,Bn,Ce,ce],sd),k$=C([J,GO,kt,bs,Po,ud,Lo,nd,ce],(e,t,r,a,o,n,i,u,s)=>{if(t!=null){var l=dt(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:n,duplicateDomain:o,isCategorical:l,niceTicks:u,range:i,realScaleType:r,scale:a}}}),ld=(e,t,r,a,o,n,i,u,s)=>{if(!(t==null||a==null)){var l=dt(e,s),{type:c,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,h=c==="category"&&a.bandwidth?a.bandwidth()/p:0;h=s==="angleAxis"&&n!=null&&n.length>=2?Ee(n[0]-n[1])*2*h:h;var m=f||o;return m?m.map((y,I)=>{var L=i?i.indexOf(y):y,A=a.map(L);return Q(A)?{index:I,coordinate:A+h,value:y,offset:h}:null}).filter(st):l&&u?u.map((y,I)=>{var L=a.map(y);return Q(L)?{coordinate:L+h,value:y,index:I,offset:h}:null}).filter(st):a.ticks?a.ticks(d).map((y,I)=>{var L=a.map(y);return Q(L)?{coordinate:L+h,value:y,index:I,offset:h}:null}).filter(st):a.domain().map((y,I)=>{var L=a.map(y);return Q(L)?{coordinate:L+h,value:i?i[y]:y,index:I,offset:h}:null}).filter(st)}},O$=C([J,hr,kt,bs,nd,Lo,Po,ud,ce],ld),fd=(e,t,r,a,o,n,i)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var u=dt(e,i),{tickCount:s}=t,l=0;return l=i==="angleAxis"&&a?.length>=2?Ee(a[0]-a[1])*2*l:l,u&&n?n.map((c,f)=>{var d=r.map(c);return Q(d)?{coordinate:d+l,value:c,index:f,offset:l}:null}).filter(st):r.ticks?r.ticks(s).map((c,f)=>{var d=r.map(c);return Q(d)?{coordinate:d+l,value:c,index:f,offset:l}:null}).filter(st):r.domain().map((c,f)=>{var d=r.map(c);return Q(d)?{coordinate:d+l,value:o?o[c]:c,index:f,offset:l}:null}).filter(st)}},M$=C([J,hr,bs,Lo,Po,ud,ce],fd),E$=C(Ce,bs,(e,t)=>{if(!(e==null||t==null))return gs(gs({},e),{},{scale:t})}),BM=C([Ce,kt,od,hy],ya),FM=C([BM],na),D$=C((e,t,r)=>Kc(e,r),FM,(e,t)=>{if(!(e==null||t==null))return gs(gs({},e),{},{scale:t})}),xy=C([J,Xa,Ya],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),jM=(e,t,r)=>{var a;return(a=e.renderedTicks[t])===null||a===void 0?void 0:a[r]},R$=C([jM],e=>{if(!(!e||e.length===0))return t=>{var r,a=1/0,o=e[0];for(var n of e){var i=Math.abs(n.coordinate-t);ie.options.defaultTooltipEventType,dd=e=>e.options.validateTooltipEventTypes;function pd(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function Cs(e,t){var r=cd(e),a=dd(e);return pd(t,r,a)}var Ss=(e,t)=>{var r,a=Number(t);if(!(rt(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0};var yy=e=>e.tooltip.settings;var gr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},UM={itemInteraction:{click:gr,hover:gr},axisInteraction:{click:gr,hover:gr},keyboardInteraction:gr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},by=ue({name:"tooltip",initialState:UM,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:fe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=a)},prepare:fe()},removeTooltipEntrySettings:{reducer(e,t){var r=Ve(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:fe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Iy,replaceTooltipEntrySettings:wy,removeTooltipEntrySettings:Cy,setTooltipSettingsState:U$,setActiveMouseOverItemIndex:Ls,mouseLeaveItem:Sy,mouseLeaveChart:Ps,setActiveClickItemIndex:Ly,setMouseOverAxisIndex:As,setMouseClickAxisIndex:Py,setSyncInteraction:md,setKeyboardInteraction:Wn}=by.actions,Ay=by.reducer;function ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ks(e){for(var t=1;t{if(t==null)return gr;var o=VM(e,t,r);if(o==null)return gr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var n=e.settings.active===!0;if(WM(o)){if(n)return ks(ks({},o),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return ks(ks({},gr),{},{coordinate:o.coordinate})};function GM(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function KM(e,t){var r=GM(e),a=t[0],o=t[1];if(r===void 0)return!1;var n=Math.min(a,o),i=Math.max(a,o);return r>=n&&r<=i}function $M(e,t,r){if(r==null||t==null)return!0;var a=ve(e,t);return a==null||!mt(r)?!0:KM(a,r)}var Ao=(e,t,r,a)=>{var o=e?.index;if(o==null)return null;var n=Number(o);if(!Q(n))return o;var i=0,u=1/0;t.length>0&&(u=t.length-1);var s=Math.max(i,Math.min(n,u)),l=t[s];return l==null||$M(l,r,a)?String(s):null};var Ms=(e,t,r,a,o,n,i)=>{if(n!=null){var u=i[0],s=u?.getPosition(n);if(s!=null)return s;var l=o?.[Number(n)];if(l)switch(r){case"horizontal":return{x:l.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:l.coordinate}}}};var Es=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&a!=null){var n=e.tooltipItemPayloads[0];return n!=null?[n]:[]}return e.tooltipItemPayloads.filter(i=>{var u;return((u=i.settings)===null||u===void 0?void 0:u.graphicalItemId)===o})};var Ds=e=>e.options.tooltipPayloadSearcher;var Br=e=>e.tooltip;function Oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function My(e){for(var t=1;te(t)}function Ey(e){if(typeof e=="string")return e}function tE(e){if(!(e==null||typeof e!="object")){var t="name"in e?JM(e.name):void 0,r="unit"in e?QM(e.unit):void 0,a="dataKey"in e?eE(e.dataKey):void 0,o="payload"in e?e.payload:void 0,n="color"in e?Ey(e.color):void 0,i="fill"in e?Ey(e.fill):void 0;return{name:t,unit:r,dataKey:a,payload:o,color:n,fill:i}}}function rE(e,t){return e??t}var Rs=(e,t,r,a,o,n,i)=>{if(!(t==null||n==null)){var{chartData:u,computedData:s,dataStartIndex:l,dataEndIndex:c}=r,f=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:y}=p,I=rE(m,u),L=Array.isArray(I)?uu(I,l,c):I,A=(h=y?.dataKey)!==null&&h!==void 0?h:a,M=y?.nameKey,P;if(a&&Array.isArray(L)&&!Array.isArray(L[0])&&i==="axis"?P=uf(L,a,o):P=n(L,t,s,M),Array.isArray(P))P.forEach(_=>{var O,z,N=tE(_),K=N?.name,F=N?.dataKey,$=N?.payload,X=My(My({},y),{},{name:K,unit:N?.unit,color:(O=N?.color)!==null&&O!==void 0?O:y?.color,fill:(z=N?.fill)!==null&&z!==void 0?z:y?.fill});d.push(Vf({tooltipEntrySettings:X,dataKey:F,payload:$,value:ve($,F),name:K==null?void 0:String(K)}))});else{var k;d.push(Vf({tooltipEntrySettings:y,dataKey:A,payload:P,value:ve(P,A),name:(k=ve(P,M))!==null&&k!==void 0?k:y?.name}))}return d},f)}};var hd=C([Ae,$c,ku],ms),aE=C([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),oE=C([Pe,Ar],En),Ia=C([aE,Ae,oE],Dn,{memoizeOptions:{resultEqualityCheck:io}}),nE=C([Ia],e=>e.filter(lr)),iE=C([Ia],Tn,{memoizeOptions:{resultEqualityCheck:io}}),Fr=C([iE,pt],_n),uE=C([nE,pt,Ae],oo),gd=C([Fr,Ae,Ia],Nn),Dy=C([Ae],vs),sE=C([Ae],e=>e.allowDataOverflow),Ry=C([Dy,sE],Cu),lE=C([Ia],e=>e.filter(lr)),fE=C([uE,lE,$t,ro],Fn),cE=C([fE,pt,Pe,Ry],Zc),dE=C([Ia],Xc),pE=C([Fr,Ae,dE,So,Pe],jn,{memoizeOptions:{resultEqualityCheck:no}}),mE=C([Jc,Pe,Ar],ba),hE=C([mE,Pe],td),gE=C([Qc,Pe,Ar],ba),vE=C([gE,Pe],rd),xE=C([ed,Pe,Ar],ba),yE=C([xE,Pe],ad),bE=C([hE,yE,vE],Mn),IE=C([Ae,Dy,Ry,cE,pE,bE,J,Pe],Un),wa=C([Ae,J,Fr,gd,$t,Pe,IE],qn),wE=C([wa,Ae,hd],zn),CE=C([Ae,wa,wE,Pe],Hn),Ty=e=>{var t=Pe(e),r=Ar(e),a=!1;return Lo(e,t,r,a)},vd=C([Ae,Ty],aa),SE=C([Ae,hd,CE,vd],ya),LE=C([SE],na),PE=C([J,gd,Ae,Pe],sd),AE=C([J,gd,Ae,Pe],Vn),kE=(e,t,r,a,o,n,i,u)=>{if(t){var{type:s}=t,l=dt(e,u);if(a){var c=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,f=s==="category"&&a.bandwidth?a.bandwidth()/c:0;return f=u==="angleAxis"&&o!=null&&o?.length>=2?Ee(o[0]-o[1])*2*f:f,l&&i?i.map((d,p)=>{var h=a.map(d);return Q(h)?{coordinate:h+f,value:d,index:p,offset:f}:null}).filter(st):a.domain().map((d,p)=>{var h=a.map(d);return Q(h)?{coordinate:h+f,value:n?n[d]:d,index:p,offset:f}:null}).filter(st)}}},Ot=C([J,Ae,hd,LE,Ty,PE,AE,Pe],kE),xd=C([cd,dd,yy],(e,t,r)=>pd(r.shared,e,t)),_y=e=>e.tooltip.settings.trigger,yd=e=>e.tooltip.settings.defaultIndex,Gn=C([Br,xd,_y,yd],Os),Ca=C([Gn,Fr,Nr,wa],Ao),bd=C([Ot,Ca],Ss),Ny=C([Gn],e=>{if(e)return e.dataKey}),OE=C([Gn],e=>{if(e)return e.graphicalItemId}),By=C([Br,xd,_y,yd],Es),ME=C([Ge,Ke,J,xe,Ot,yd,By],Ms),Fy=C([Gn,ME],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jy=C([Gn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),EE=C([By,Ca,pt,Nr,bd,Ds,xd],Rs),RX=C([EE],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Uy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ko(e){for(var t=1;t{var o=t.find(n=>n&&n.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:a.relativeY};if(e==="vertical")return{x:a.relativeX,y:o.coordinate}}return{x:0,y:0}},zy=(e,t,r,a)=>{var o=t.find(l=>l&&l.index===r);if(o){if(e==="centric"){var n=o.coordinate,{radius:i}=a;return ko(ko(ko({},a),ye(a.cx,a.cy,i,n)),{},{angle:n,radius:i})}var u=o.coordinate,{angle:s}=a;return ko(ko(ko({},a),ye(a.cx,a.cy,u,s)),{},{angle:s,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Hy(e,t){var{relativeX:r,relativeY:a}=e;return r>=t.left&&r<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}var Id=(e,t,r,a,o)=>{var n,i=(n=t?.length)!==null&&n!==void 0?n:0;if(i<=1||e==null)return 0;if(a==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var u=0;u0?(s=r[u-1])===null||s===void 0?void 0:s.coordinate:(l=r[i-1])===null||l===void 0?void 0:l.coordinate,h=(c=r[u])===null||c===void 0?void 0:c.coordinate,m=u>=i-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,y=void 0;if(!(p==null||h==null||m==null))if(Ee(h-p)!==Ee(m-h)){var I=[];if(Ee(m-h)===Ee(o[1]-o[0])){y=m;var L=h+o[1]-o[0];I[0]=Math.min(L,(L+p)/2),I[1]=Math.max(L,(L+p)/2)}else{y=p;var A=m+o[1]-o[0];I[0]=Math.min(h,(A+h)/2),I[1]=Math.max(h,(A+h)/2)}var M=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>M[0]&&e<=M[1]||e>=I[0]&&e<=I[1]){var P;return(P=r[u])===null||P===void 0?void 0:P.index}}else{var k=Math.min(p,m),_=Math.max(p,m);if(e>(k+h)/2&&e<=(_+h)/2){var O;return(O=r[u])===null||O===void 0?void 0:O.index}}}else if(t)for(var z=0;z(N.coordinate+F.coordinate)/2||z>0&&z(N.coordinate+F.coordinate)/2&&e<=(N.coordinate+K.coordinate)/2)return N.index}}return-1};var wd=(e,t)=>t,Vy=(e,t,r)=>r,Cd=(e,t,r,a)=>a,Wy=C(Ot,e=>Xr(e,t=>t.coordinate)),Sd=C([Br,wd,Vy,Cd],Os),Ld=C([Sd,Fr,Nr,wa],Ao);var Gy=C([Br,wd,Vy,Cd],Es),Kn=C([Ge,Ke,J,xe,Ot,Cd,Gy],Ms),a5=C([Sd,Kn],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),_E=C([Ot,Ld],Ss),o5=C([Gy,Ld,pt,Nr,_E,Ds,wd],Rs),n5=C([Sd,Ld],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),NE=(e,t,r,a,o,n,i)=>{if(!(!e||!r||!a||!o)&&Hy(e,i)){var u=Vh(e,t),s=Id(u,n,o,r,a),l=qy(t,o,s,e);return{activeIndex:String(s),activeCoordinate:l}}},BE=(e,t,r,a,o,n,i)=>{if(!(!e||!a||!o||!n||!r)){var u=cv(e,r);if(u){var s=Wh(u,t),l=Id(s,i,n,a,o),c=zy(t,n,l,u);return{activeIndex:String(l),activeCoordinate:c}}}},Ky=(e,t,r,a,o,n,i,u)=>{if(!(!e||!t||!a||!o||!n))return t==="horizontal"||t==="vertical"?NE(e,t,a,o,n,i,u):BE(e,t,r,a,o,n,i)};import{useLayoutEffect as WE}from"react";import{createPortal as GE}from"react-dom";var $y=C(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var a=e[t];if(a!=null)return r?a.panoramaElement:a.element}}),Xy=C(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(a=>parseInt(a,10)).concat(Object.values(Re)),r=Array.from(new Set(t));return r.sort((a,o)=>a-o)},{memoizeOptions:{resultEqualityCheck:jv}});function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Zy(e){for(var t=1;tZy(Zy({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),qE)},HE=new Set(Object.values(Re));function VE(e){return HE.has(e)}var Jy=ue({name:"zIndex",initialState:zE,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:fe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!VE(r)&&delete e.zIndexMap[r])},prepare:fe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:a,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=a:e.zIndexMap[r].element=a:e.zIndexMap[r]={consumers:0,element:o?void 0:a,panoramaElement:o?a:void 0}},prepare:fe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:fe()}}}),{registerZIndexPortal:Qy,unregisterZIndexPortal:eb,registerZIndexPortalElement:tb,unregisterZIndexPortalElement:rb}=Jy.actions,ab=Jy.reducer;function Mt(e){var{zIndex:t,children:r}=e,a=fg(),o=a&&t!==void 0&&t!==0,n=Je(),i=re();WE(()=>o?(i(Qy({zIndex:t})),()=>{i(eb({zIndex:t}))}):lt,[i,t,o]);var u=Y(s=>$y(s,t,n));return o?u?GE(r,u):null:r}import{createContext as KE,useContext as S5}from"react";var ob=KE(null);import{useEffect as Md}from"react";var ub=di(ib(),1);var sb=ub.default;var Xn=new sb;var Ad="recharts.syncEvent.tooltip",kd="recharts.syncEvent.brush";var lb=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!rt(r))return e[r]}},YE={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},fb=ue({name:"options",initialState:YE,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),cb=fb.reducer,{createEventEmitter:db}=fb.actions;var ZE={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},pb=ue({name:"chartData",initialState:ZE,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:Od,setDataStartEndIndexes:mb,setComputedData:JE}=pb.actions,hb=pb.reducer;var QE=["x","y"];function gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Oo(e){for(var t=1;ts.rootProps.className);Md(()=>{if(e==null)return lt;var s=(l,c,f)=>{if(t!==f&&e===l){if(a==="index"){var d;if(i&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var p=c.payload.coordinate,{x:h,y:m}=p,y=aD(p,QE),{x:I,y:L,width:A,height:M}=c.payload.sourceViewBox,P=Oo(Oo({},y),{},{x:i.x+(A?(h-I)/A:0)*i.width,y:i.y+(M?(m-L)/M:0)*i.height});r(Oo(Oo({},c),{},{payload:Oo(Oo({},c.payload),{},{coordinate:P})}))}else r(c);return}if(o!=null){var k;if(typeof a=="function"){var _={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},O=a(o,_);k=o[O]}else a==="value"&&(k=o.find(g=>String(g.value)===c.payload.label));var{coordinate:z}=c.payload;if(k==null||c.payload.active===!1||z==null||i==null){r(md({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:K}=z,F=Math.min(N,i.x+i.width),$=Math.min(K,i.y+i.height),X={x:n==="horizontal"?k.coordinate:F,y:n==="horizontal"?$:k.coordinate},ie=md({active:c.payload.active,coordinate:X,dataKey:c.payload.dataKey,index:String(k.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(ie)}}};return Xn.on(Ad,s),()=>{Xn.off(Ad,s)}},[u,r,t,e,a,o,n,i])}function iD(){var e=Y(uc),t=Y(sc),r=re();Md(()=>{if(e==null)return lt;var a=(o,n,i)=>{t!==i&&e===o&&r(mb(n))};return Xn.on(kd,a),()=>{Xn.off(kd,a)}},[r,t,e])}function vb(){var e=re();Md(()=>{e(db())},[e]),nD(),iD()}var Ed=e=>null;Ed.displayName="Cell";import*as Td from"react";import{useMemo as DD,forwardRef as RD}from"react";function uD(e,t,r){return(t=sD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sD(e){var t=lD(e,"string");return typeof t=="symbol"?t:t+""}function lD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _s=class{constructor(t){uD(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;a!=null&&this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function fD(e){for(var t=1;t{try{var r=document.getElementById(bb);r||(r=document.createElement("span"),r.setAttribute("id",bb),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,hD,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},Dd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gt.isSsr)return{width:0,height:0};if(!wb.enableCache)return Ib(t,r);var a=gD(t,r),o=yb.get(a);if(o)return o;var n=Ib(t,r);return yb.set(a,n),n};var Pb;function vD(e,t,r){return(t=xD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xD(e){var t=yD(e,"string");return typeof t=="symbol"?t:t+""}function yD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Sb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bD=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,ID=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},CD=["cm","mm","pt","pc","in","Q","px"];function SD(e){return CD.includes(e)}var Mo="NaN";function LD(e,t){return e*wD[t]}var jr=class e{static parse(t){var r,[,a,o]=(r=ID.exec(t))!==null&&r!==void 0?r:[];return a==null?e.NaN:new e(parseFloat(a),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,rt(t)&&(this.unit=""),r!==""&&!bD.test(r)&&(this.num=NaN,this.unit=""),SD(r)&&(this.num=LD(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return rt(this.num)}};Pb=jr;vD(jr,"NaN",new Pb(NaN,""));function Ab(e){if(e==null||e.includes(Mo))return Mo;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,o,n]=(r=Cb.exec(t))!==null&&r!==void 0?r:[],i=jr.parse(a??""),u=jr.parse(n??""),s=o==="*"?i.multiply(u):i.divide(u);if(s.isNaN())return Mo;t=t.replace(Cb,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,[,c,f,d]=(l=Sb.exec(t))!==null&&l!==void 0?l:[],p=jr.parse(c??""),h=jr.parse(d??""),m=f==="+"?p.add(h):p.subtract(h);if(m.isNaN())return Mo;t=t.replace(Sb,m.toString())}return t}var Lb=/\(([^()]*)\)/;function PD(e){for(var t=e,r;(r=Lb.exec(t))!=null;){var[,a]=r;t=t.replace(Lb,Ab(a))}return t}function AD(e){var t=e.replace(/\s+/g,"");return t=PD(t),t=Ab(t),t}function kD(e){try{return AD(e)}catch{return Mo}}function Ns(e){var t=kD(e.slice(5,-1));return t===Mo?"":t}var OD=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],MD=["dx","dy","angle","className","breakAll"];function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:a}=e;try{var o=[];ge(t)||(r?o=t.toString().split(""):o=t.toString().split(Eb));var n=o.map(u=>({word:u,width:Dd(u,a).width})),i=r?0:Dd("\xA0",a).width;return{wordsWithComputedWidth:n,spaceWidth:i}}catch{return null}};function Rb(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Tb(e){return ge(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var _b=(e,t,r,a)=>e.reduce((o,n)=>{var{word:i,width:u}=n,s=o[o.length-1];if(s&&u!=null&&(t==null||a||s.width+u+re.reduce((t,r)=>t.width>r.width?t:r),TD="\u2026",Ob=(e,t,r,a,o,n,i,u)=>{var s=e.slice(0,t),l=Db({breakAll:r,style:a,children:s+TD});if(!l)return[!1,[]];var c=_b(l.wordsWithComputedWidth,n,i,u),f=c.length>o||Nb(c).width>Number(n);return[f,c]},_D=(e,t,r,a,o)=>{var{maxLines:n,children:i,style:u,breakAll:s}=e,l=Z(n),c=String(i),f=_b(t,a,r,o);if(!l||o)return f;var d=f.length>n||Nb(f).width>Number(a);if(!d)return f;for(var p=0,h=c.length-1,m=0,y;p<=h&&m<=c.length-1;){var I=Math.floor((p+h)/2),L=I-1,[A,M]=Ob(c,L,s,u,n,a,r,o),[P]=Ob(c,I,s,u,n,a,r,o);if(!A&&!P&&(p=I+1),A&&P&&(h=I-1),!A&&P){y=M;break}m++}return y||f},Mb=e=>{var t=ge(e)?[]:e.toString().split(Eb);return[{words:t,width:void 0}]},ND=e=>{var{width:t,scaleToFit:r,children:a,style:o,breakAll:n,maxLines:i}=e;if((t||r)&&!Gt.isSsr){var u,s,l=Db({breakAll:n,children:a,style:o});if(l){var{wordsWithComputedWidth:c,spaceWidth:f}=l;u=c,s=f}else return Mb(a);return _D({breakAll:n,children:a,maxLines:i,style:o},u,s,t,!!r)}return Mb(a)},Bb="#808080",BD={angle:0,breakAll:!1,capHeight:"0.71em",fill:Bb,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Yn=RD((e,t)=>{var r=Se(e,BD),{x:a,y:o,lineHeight:n,capHeight:i,fill:u,scaleToFit:s,textAnchor:l,verticalAnchor:c}=r,f=kb(r,OD),d=DD(()=>ND({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:p,dy:h,angle:m,className:y,breakAll:I}=f,L=kb(f,MD);if(!Vt(a)||!Vt(o)||d.length===0)return null;var A=Number(a)+(Z(p)?p:0),M=Number(o)+(Z(h)?h:0);if(!Q(A)||!Q(M))return null;var P;switch(c){case"start":P=Ns("calc(".concat(i,")"));break;case"middle":P=Ns("calc(".concat((d.length-1)/2," * -").concat(n," + (").concat(i," / 2))"));break;default:P=Ns("calc(".concat(d.length-1," * -").concat(n,")"));break}var k=[],_=d[0];if(s&&_!=null){var O=_.width,{width:z}=f;k.push("scale(".concat(Z(z)&&Z(O)?z/O:1,")"))}return m&&k.push("rotate(".concat(m,", ").concat(A,", ").concat(M,")")),k.length&&(L.transform=k.join(" ")),Td.createElement("text",Rd({},Oe(L),{ref:t,x:A,y:M,className:oe("recharts-text",y),textAnchor:l,fill:u.includes("url")?Bb:u}),d.map((N,K)=>{var F=N.words.join(I?"":" ");return Td.createElement("tspan",{x:A,dy:K===0?P:n,key:"".concat(F,"-").concat(K)},F)}))});Yn.displayName="Text";import*as yt from"react";import{cloneElement as zb,createContext as Hb,createElement as KD,isValidElement as Bs,useContext as Vb,useMemo as $D}from"react";function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function tr(e){for(var t=1;t{var{viewBox:t,position:r,offset:a=0,parentViewBox:o,clamp:n}=e,{x:i,y:u,height:s,upperWidth:l,lowerWidth:c}=rn(t),f=i,d=i+(l-c)/2,p=(f+d)/2,h=(l+c)/2,m=f+l/2,y=s>=0?1:-1,I=y*a,L=y>0?"end":"start",A=y>0?"start":"end",M=l>=0?1:-1,P=M*a,k=M>0?"end":"start",_=M>0?"start":"end",O=o;if(r==="top"){var z={x:f+l/2,y:u-I,horizontalAnchor:"middle",verticalAnchor:L};return n&&O&&(z.height=Math.max(u-O.y,0),z.width=l),z}if(r==="bottom"){var N={x:d+c/2,y:u+s+I,horizontalAnchor:"middle",verticalAnchor:A};return n&&O&&(N.height=Math.max(O.y+O.height-(u+s),0),N.width=c),N}if(r==="left"){var K={x:p-P,y:u+s/2,horizontalAnchor:k,verticalAnchor:"middle"};return n&&O&&(K.width=Math.max(K.x-O.x,0),K.height=s),K}if(r==="right"){var F={x:p+h+P,y:u+s/2,horizontalAnchor:_,verticalAnchor:"middle"};return n&&O&&(F.width=Math.max(O.x+O.width-F.x,0),F.height=s),F}var $=n&&O?{width:h,height:s}:{};return r==="insideLeft"?tr({x:p+P,y:u+s/2,horizontalAnchor:_,verticalAnchor:"middle"},$):r==="insideRight"?tr({x:p+h-P,y:u+s/2,horizontalAnchor:k,verticalAnchor:"middle"},$):r==="insideTop"?tr({x:f+l/2,y:u+I,horizontalAnchor:"middle",verticalAnchor:A},$):r==="insideBottom"?tr({x:d+c/2,y:u+s-I,horizontalAnchor:"middle",verticalAnchor:L},$):r==="insideTopLeft"?tr({x:f+P,y:u+I,horizontalAnchor:_,verticalAnchor:A},$):r==="insideTopRight"?tr({x:f+l-P,y:u+I,horizontalAnchor:k,verticalAnchor:A},$):r==="insideBottomLeft"?tr({x:d+P,y:u+s-I,horizontalAnchor:_,verticalAnchor:L},$):r==="insideBottomRight"?tr({x:d+c-P,y:u+s-I,horizontalAnchor:k,verticalAnchor:L},$):r&&typeof r=="object"&&(Z(r.x)||or(r.x))&&(Z(r.y)||or(r.y))?tr({x:i+ze(r.x,h),y:u+ze(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},$):tr({x:m,y:u+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},$)};var qD=["labelRef"],zD=["content"];function Ub(e,t){if(e==null)return{};var r,a,o=HD(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var e=Vb(XD),t=fu();return e||(t?rn(t):void 0)},Wb=Hb(null),Gb=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i,clockWise:u,children:s}=e,l=$D(()=>({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i,clockWise:u}),[t,r,a,o,n,i,u]);return yt.createElement(Wb.Provider,{value:l},s)},Kb=()=>{var e=Vb(Wb),t=Y(Xt);return e||t},ZD=e=>{var{value:t,formatter:r}=e,a=ge(e.children)?t:e.children;return typeof r=="function"?r(a):a},_d=e=>e!=null&&typeof e=="function",JD=(e,t)=>{var r=Ee(t-e),a=Math.min(Math.abs(t-e),360);return r*a},QD=(e,t,r,a,o)=>{var{offset:n,className:i}=e,{cx:u,cy:s,innerRadius:l,outerRadius:c,startAngle:f,endAngle:d,clockWise:p}=o,h=(l+c)/2,m=JD(f,d),y=m>=0?1:-1,I,L;switch(t){case"insideStart":I=f+y*n,L=p;break;case"insideEnd":I=d-y*n,L=!p;break;case"end":I=d+y*n,L=p;break;default:throw new Error("Unsupported position ".concat(t))}L=m<=0?L:!L;var A=ye(u,s,h,I),M=ye(u,s,h,I+(L?1:-1)*359),P="M".concat(A.x,",").concat(A.y,` - A`).concat(h,",").concat(h,",0,1,").concat(L?0:1,`, - `).concat(M.x,",").concat(M.y),k=ge(e.id)?nr("recharts-radial-line-"):e.id;return yt.createElement("text",vr({},a,{dominantBaseline:"central",className:oe("recharts-radial-bar-label",i)}),yt.createElement("defs",null,yt.createElement("path",{id:k,d:P})),yt.createElement("textPath",{xlinkHref:"#".concat(k)},r))},eR=(e,t,r)=>{var{cx:a,cy:o,innerRadius:n,outerRadius:i,startAngle:u,endAngle:s}=e,l=(u+s)/2;if(r==="outside"){var{x:c,y:f}=ye(a,o,i+t,l);return{x:c,y:f,textAnchor:c>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(n+i)/2,{x:p,y:h}=ye(a,o,d,l);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Fs=e=>e!=null&&"cx"in e&&Z(e.cx),tR={angle:0,offset:5,zIndex:Re.label,position:"middle",textBreakAll:!1};function rR(e){if(!Fs(e))return e;var{cx:t,cy:r,outerRadius:a}=e,o=a*2;return{x:t-a,y:r-a,width:o,upperWidth:o,lowerWidth:o,height:o}}function Et(e){var t=Se(e,tR),{viewBox:r,parentViewBox:a,position:o,value:n,children:i,content:u,className:s="",textBreakAll:l,labelRef:c}=t,f=Kb(),d=YD(),p=o==="center"?d:f??d,h,m,y;r==null?h=p:Fs(r)?h=r:h=rn(r);var I=rR(h);if(!h||ge(n)&&ge(i)&&!Bs(u)&&typeof u!="function")return null;var L=Zn(Zn({},t),{},{viewBox:h});if(Bs(u)){var{labelRef:A}=L,M=Ub(L,qD);return zb(u,M)}if(typeof u=="function"){var{content:P}=L,k=Ub(L,zD);if(m=KD(u,k),Bs(m))return m}else m=ZD(t);var _=Oe(t);if(Fs(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return QD(t,o,m,_,h);y=eR(h,t.offset,t.position)}else{if(!I)return null;var O=jb({viewBox:I,position:o,offset:t.offset,parentViewBox:Fs(a)?void 0:a,clamp:!0});y=Zn(Zn({x:O.x,y:O.y,textAnchor:O.horizontalAnchor,verticalAnchor:O.verticalAnchor},O.width!==void 0?{width:O.width}:{}),O.height!==void 0?{height:O.height}:{})}return yt.createElement(Mt,{zIndex:t.zIndex},yt.createElement(Yn,vr({ref:c,className:oe("recharts-label",s)},_,y,{textAnchor:Rb(_.textAnchor)?_.textAnchor:y.textAnchor,breakAll:l}),m))}Et.displayName="Label";var aR=(e,t,r)=>{if(!e)return null;var a={viewBox:t,labelRef:r};return e===!0?yt.createElement(Et,vr({key:"label-implicit"},a)):Vt(e)?yt.createElement(Et,vr({key:"label-implicit",value:e},a)):Bs(e)?e.type===Et?zb(e,Zn({key:"label-implicit"},a)):yt.createElement(Et,vr({key:"label-implicit",content:e},a)):_d(e)?yt.createElement(Et,vr({key:"label-implicit",content:e},a)):e&&typeof e=="object"?yt.createElement(Et,vr({},e,{key:"label-implicit"},a)):null};function $b(e){var{label:t}=e,r=Kb();return aR(t,r)||null}import*as xr from"react";import{createContext as Yb,useContext as Zb}from"react";var oR=["valueAccessor"],nR=["dataKey","clockWise","id","textBreakAll","zIndex"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Tb(t))return t},Jb=Yb(void 0),_Y=Jb.Provider,Qb=Yb(void 0),eI=Qb.Provider;function sR(){return Zb(Jb)}function lR(){return Zb(Qb)}function js(e){var{valueAccessor:t=uR}=e,r=Xb(e,oR),{dataKey:a,clockWise:o,id:n,textBreakAll:i,zIndex:u}=r,s=Xb(r,nR),l=sR(),c=lR(),f=l||c;return!f||!f.length?null:xr.createElement(Mt,{zIndex:u??Re.label},xr.createElement(nt,{className:"recharts-label-list"},f.map((d,p)=>{var h,m=ge(a)?t(d,p):ve(d.payload,a),y=ge(n)?{}:{id:"".concat(n,"-").concat(p)};return xr.createElement(Et,Us({key:"label-".concat(p)},Oe(d),s,y,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:i,viewBox:d.viewBox,index:p,zIndex:0}))})))}js.displayName="LabelList";function tI(e){var{label:t}=e;return t?t===!0?xr.createElement(js,{key:"labelList-implicit"}):xr.isValidElement(t)||_d(t)?xr.createElement(js,{key:"labelList-implicit",content:t}):typeof t=="object"?xr.createElement(js,Us({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}import*as ot from"react";var qs=e=>e.graphicalItems.polarItems,fR=C([ce,oa],En),Eo=C([qs,Ce,fR],Dn),cR=C([Eo],Tn),zs=C([cR,to],_n),Nd=C([zs,Ce,Eo],Nn),GY=C([zs,Ce,Eo],(e,t,r)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var n,i=ve(a,(n=t.dataKey)!==null&&n!==void 0?n:o.dataKey);return{value:i,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:ve(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]}))),rI=()=>{},dR=C([zs,Ce,Eo,So,ce],jn),pR=C([Ce,xs,ys,rI,dR,rI,J,ce],Un),aI=C([Ce,J,zs,Nd,$t,ce,pR],qn),Bd=C([aI,hr,kt],zn),mR=C([Ce,aI,Bd,ce],Hn),oI=C([kt,mR],Eu);var Fd=(e,t,r)=>{switch(t){case"angleAxis":return Lr(e,r);case"radiusAxis":return Pr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},jd=(e,t,r)=>{switch(t){case"angleAxis":return Bv(e,r);case"radiusAxis":return Fv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hR=C([Fd,kt,oI,jd],ya),Sa=C([hR],na),nI=C([J,Nd,hr,ce],Vn),Ur=C([J,Fd,kt,Sa,Bd,jd,Po,nI,ce],ld),r4=C([Ur],e=>{if(e){var t=new Map;return e.forEach(r=>{var a=(r.coordinate+360)%360;t.has(a)||t.set(a,r)}),Array.from(t.values())}}),iI=C([J,Fd,Sa,jd,Po,nI,ce],fd);var gR=(e,t)=>Ur(e,"angleAxis",t,!1),uI=C([gR],e=>{if(e)return e.map(t=>t.coordinate)}),vR=(e,t)=>Ur(e,"radiusAxis",t,!1),sI=C([vR],e=>{if(e)return e.map(t=>t.coordinate)});var xR=["gridType","radialLines","angleAxisId","radiusAxisId","cx","cy","innerRadius","outerRadius","polarAngles","polarRadius","zIndex"];function yR(e,t){if(e==null)return{};var r,a,o=bR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var o="";return a.forEach((n,i)=>{var u=ye(t,r,e,n);i?o+="L ".concat(u.x,",").concat(u.y):o+="M ".concat(u.x,",").concat(u.y)}),o+="Z",o},LR=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,polarAngles:n,radialLines:i}=e;if(!n||!n.length||!i)return null;var u=Hs({stroke:"#ccc"},We(e));return ot.createElement("g",{className:"recharts-polar-grid-angle"},n.map(s=>{var l=ye(t,r,a,s),c=ye(t,r,o,s);return ot.createElement("line",Ut({key:"line-".concat(s)},u,{x1:l.x,y1:l.y,x2:c.x,y2:c.y}))}))},fI=e=>{var{cx:t,cy:r,radius:a}=e,o=Hs({stroke:"#ccc",fill:"none"},We(e));return ot.createElement("circle",Ut({},o,{className:oe("recharts-polar-grid-concentric-circle",e.className),cx:t,cy:r,r:a}))},cI=e=>{var{radius:t}=e,r=Hs({stroke:"#ccc",fill:"none"},We(e));return ot.createElement("path",Ut({},r,{className:oe("recharts-polar-grid-concentric-polygon",e.className),d:SR(t,e.cx,e.cy,e.polarAngles)}))},PR=e=>{var{polarRadius:t,gridType:r}=e;if(!t||!t.length)return null;var a=Math.max(...t),o=e.fill&&e.fill!=="none";return ot.createElement("g",{className:"recharts-polar-grid-concentric"},o&&r==="circle"&&ot.createElement(fI,Ut({},e,{radius:a})),o&&r!=="circle"&&ot.createElement(cI,Ut({},e,{radius:a})),t.map((n,i)=>{var u=i;return r==="circle"?ot.createElement(fI,Ut({key:u},e,{fill:"none",radius:n})):ot.createElement(cI,Ut({key:u},e,{fill:"none",radius:n}))}))},AR={angleAxisId:0,radiusAxisId:0,gridType:"polygon",radialLines:!0,zIndex:Re.grid},Vs=e=>{var t,r,a,o,n,i,u,s,l=Se(e,AR),{gridType:c,radialLines:f,angleAxisId:d,radiusAxisId:p,cx:h,cy:m,innerRadius:y,outerRadius:I,polarAngles:L,polarRadius:A,zIndex:M}=l,P=yR(l,xR),k=Y(Xt),_=Y($=>uI($,d)),O=Y($=>sI($,p)),z=Array.isArray(L)?L:_,N=Array.isArray(A)?A:O;if(z==null||N==null)return null;var K=Hs({cx:(t=(r=k?.cx)!==null&&r!==void 0?r:h)!==null&&t!==void 0?t:0,cy:(a=(o=k?.cy)!==null&&o!==void 0?o:m)!==null&&a!==void 0?a:0,innerRadius:(n=(i=k?.innerRadius)!==null&&i!==void 0?i:y)!==null&&n!==void 0?n:0,outerRadius:(u=(s=k?.outerRadius)!==null&&s!==void 0?s:I)!==null&&u!==void 0?u:0,polarAngles:z,polarRadius:N,zIndex:M},P),{outerRadius:F}=K;return F<=0?null:ot.createElement(Mt,{zIndex:K.zIndex},ot.createElement("g",{className:"recharts-polar-grid"},ot.createElement(PR,Ut({gridType:c,radialLines:f},K,{polarAngles:z,polarRadius:N})),ot.createElement(LR,Ut({gridType:c,radialLines:f},K,{polarAngles:z,polarRadius:N}))))};Vs.displayName="PolarGrid";import*as Ue from"react";import{useEffect as NR,useMemo as BR}from"react";function dI(e,t){if(e.length===0)return;let r=e[0],a=-1/0;for(let o=0;oa&&(a=i,r=n)}return r}function Ud(e,t){if(e!=null)return dI(Array.from(e),Di(t??Ha))}function pI(e,t){if(e.length===0)return;let r=e[0],a=1/0;for(let o=0;o{var{type:o}=e,n=zd(e,OR),i=ln(r,"radiusAxis",o);if(i!=null)return qt(qt({},n),{},{type:i})},[e,r]);return NR(()=>a==null?lt:(t(hI(a)),()=>{t(gI(a))}),[t,a]),null}var UR=(e,t,r,a)=>{var{coordinate:o}=e;return ye(r,a,o,t)},qR=e=>{var t;switch(e){case"left":t="end";break;case"right":t="start";break;default:t="middle";break}return t},zR=(e,t,r,a)=>{var o=Ud(a,i=>i.coordinate||0),n=qd(a,i=>i.coordinate||0);return{cx:t,cy:r,startAngle:e,endAngle:e,innerRadius:n?.coordinate||0,outerRadius:o?.coordinate||0,clockWise:!1}},HR=(e,t)=>{var{cx:r,cy:a,angle:o,axisLine:n}=e,i=zd(e,MR),u=t.reduce((f,d)=>[Math.min(f[0],d.coordinate),Math.max(f[1],d.coordinate)],[1/0,-1/0]),s=ye(r,a,u[0],o),l=ye(r,a,u[1],o),c=qt(qt(qt({},We(i)),{},{fill:"none"},We(n)),{},{x1:s.x,y1:s.y,x2:l.x,y2:l.y});return Ue.createElement("line",Jn({className:"recharts-polar-radius-axis-line"},c))},VR=(e,t,r)=>{var a;return Ue.isValidElement(e)?a=Ue.cloneElement(e,t):typeof e=="function"?a=e(t):a=Ue.createElement(Yn,Jn({},t,{className:"recharts-polar-radius-axis-tick-value"}),r),a},WR=(e,t)=>{var{angle:r,tickFormatter:a,stroke:o,tick:n}=e,i=zd(e,ER),u=qR(e.orientation),s=We(i),l=mi(n),c=t.map((f,d)=>{var p=UR(f,e.angle,e.cx,e.cy),h=qt(qt(qt(qt({textAnchor:u,transform:"rotate(".concat(90-r,", ").concat(p.x,", ").concat(p.y,")")},s),{},{stroke:"none",fill:o},l),{},{index:d},p),{},{payload:f});return Ue.createElement(nt,Jn({className:oe("recharts-polar-radius-axis-tick",xI(n)),key:"tick-".concat(f.coordinate)},Ho(e,f,d)),VR(n,h,a?a(f.value,d):f.value))});return Ue.createElement(nt,{className:"recharts-polar-radius-axis-ticks"},c)},GR=e=>{var{radiusAxisId:t}=e,r=Y(Xt),a=Y(s=>Sa(s,"radiusAxis",t)),o=Y(s=>Ur(s,"radiusAxis",t,!1));if(r==null||!o||!o.length||a==null)return null;var n=qt(qt({},e),{},{scale:a},r),{tick:i,axisLine:u}=n;return Ue.createElement(Mt,{zIndex:n.zIndex},Ue.createElement(nt,{className:oe("recharts-polar-radius-axis",FR,n.className)},u&&HR(n,o),i&&WR(n,o),Ue.createElement(Gb,zR(n.angle,n.cx,n.cy,o),Ue.createElement($b,{label:n.label}),n.children)))};function Ws(e){var t,r=Se(e,ht);return Ue.createElement(Ue.Fragment,null,Ue.createElement(jR,{domain:r.domain,id:r.radiusAxisId,scale:r.scale,type:r.type,dataKey:r.dataKey,unit:void 0,name:r.name,allowDuplicatedCategory:r.allowDuplicatedCategory,allowDataOverflow:r.allowDataOverflow,reversed:r.reversed,includeHidden:r.includeHidden,allowDecimals:r.allowDecimals,niceTicks:(t=r.niceTicks)!==null&&t!==void 0?t:"auto",ticks:r.ticks,tickCount:r.tickCount,tick:r.tick}),Ue.createElement(GR,r))}Ws.displayName="PolarRadiusAxis";var LI=di(wI());import{Children as XR}from"react";var CI=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",SI=null,Wd=null,PI=e=>{if(e===SI&&Array.isArray(Wd))return Wd;var t=[];return XR.forEach(e,r=>{ge(r)||((0,LI.isFragment)(r)?t=t.concat(PI(r.props.children)):t.push(r))}),Wd=t,SI=e,t};function AI(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(o=>CI(o)):a=[CI(t)],PI(e).forEach(o=>{var n=ut(o,"type.displayName")||ut(o,"type.name");n&&a.indexOf(n)!==-1&&r.push(o)}),r}import*as rr from"react";import{cloneElement as sT,isValidElement as jI}from"react";function Gd(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as ei from"react";import{useEffect as QR,useRef as Do,useState as eT}from"react";var kI,OI,MI,EI,DI;function RI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function TI(e){for(var t=1;t{var n=r-a,i;return i=he(kI||(kI=Qn(["M ",",",""])),e,t),i+=he(OI||(OI=Qn(["L ",",",""])),e+r,t),i+=he(MI||(MI=Qn(["L ",",",""])),e+r-n/2,t+o),i+=he(EI||(EI=Qn(["L ",",",""])),e+r-n/2-a,t+o),i+=he(DI||(DI=Qn(["L ",","," Z"])),e,t),i},tT={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NI=e=>{var t=Se(e,tT),{x:r,y:a,upperWidth:o,lowerWidth:n,height:i,className:u}=t,{animationEasing:s,animationDuration:l,animationBegin:c,isUpdateAnimationActive:f}=t,d=Do(null),[p,h]=eT(-1),m=Do(o),y=Do(n),I=Do(i),L=Do(r),A=Do(a),M=eo(e,"trapezoid-");if(QR(()=>{if(d.current&&d.current.getTotalLength)try{var X=d.current.getTotalLength();X&&h(X)}catch{}},[]),r!==+r||a!==+a||o!==+o||n!==+n||i!==+i||o===0&&n===0||i===0)return null;var P=oe("recharts-trapezoid",u);if(!f)return ei.createElement("g",null,ei.createElement("path",rl({},Oe(t),{className:P,d:_I(r,a,o,n,i)})));var k=m.current,_=y.current,O=I.current,z=L.current,N=A.current,K="0px ".concat(p===-1?1:p,"px"),F="".concat(p,"px ").concat(p,"px"),$=mu(["strokeDasharray"],l,s);return ei.createElement(Qa,{animationId:M,key:M,canBegin:p>0,duration:l,easing:s,isActive:f,begin:c},X=>{var ie=Ye(k,o,X),g=Ye(_,n,X),x=Ye(O,i,X),S=Ye(z,r,X),b=Ye(N,a,X);d.current&&(m.current=ie,y.current=g,I.current=x,L.current=S,A.current=b);var v=X>0?{transition:$,strokeDasharray:F}:{strokeDasharray:K};return ei.createElement("path",rl({},Oe(t),{className:P,d:_I(S,b,ie,g,x),ref:d,style:TI(TI({},v),t.style)}))})};var rT=["option","shapeType","activeClassName","inActiveClassName"];function aT(e,t){if(e==null)return{};var r,a,o=oT(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var a=re();return(o,n)=>i=>{e?.(o,n,i),a(Ls({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},zI=e=>{var t=re();return(r,a)=>o=>{e?.(r,a,o),t(Sy())}},HI=(e,t,r)=>{var a=re();return(o,n)=>i=>{e?.(o,n,i),a(Ly({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as VI,useRef as dT}from"react";function WI(e){var{tooltipEntrySettings:t}=e,r=re(),a=Je(),o=dT(null);return VI(()=>{a||(o.current===null?r(Iy(t)):o.current!==t&&r(wy({prev:o.current,next:t})),o.current=t)},[t,r,a]),VI(()=>()=>{o.current&&(r(Cy(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as GI,useRef as pT}from"react";function KI(e){var{legendPayload:t}=e,r=re(),a=Y(J),o=pT(null);return GI(()=>{a!=="centric"&&a!=="radial"||(o.current===null?r(dg(t)):o.current!==t&&r(pg({prev:o.current,next:t})),o.current=t)},[r,a,t]),GI(()=>()=>{o.current&&(r(mg(o.current)),o.current=null)},[r]),null}import*as YI from"react";import{createContext as hT,useContext as Y6}from"react";import*as ol from"react";var Kd,mT=()=>{var[e]=ol.useState(()=>nr("uid-"));return e},$I=(Kd=ol.useId)!==null&&Kd!==void 0?Kd:mT;function XI(e,t){var r=$I();return t||(e?"".concat(e,"-").concat(r):r)}var gT=hT(void 0),ZI=e=>{var{id:t,type:r,children:a}=e,o=XI("recharts-".concat(r),t);return YI.createElement(gT.Provider,{value:o},a(o))};import{memo as IT,useLayoutEffect as a0,useRef as wT}from"react";var vT={cartesianItems:[],polarItems:[]},JI=ue({name:"graphicalItems",initialState:vT,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:fe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=a)},prepare:fe()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ve(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:fe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:fe()},removePolarGraphicalItem:{reducer(e,t){var r=Ve(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:fe()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=a)},prepare:fe()}}}),{addCartesianGraphicalItem:xT,replaceCartesianGraphicalItem:yT,removeCartesianGraphicalItem:bT,addPolarGraphicalItem:QI,removePolarGraphicalItem:e0,replacePolarGraphicalItem:t0}=JI.actions,r0=JI.reducer;var CT=e=>{var t=re(),r=wT(null);return a0(()=>{r.current===null?t(QI(e)):r.current!==e&&t(t0({prev:r.current,next:e})),r.current=e},[t,e]),a0(()=>()=>{r.current&&(t(e0(r.current)),r.current=null)},[t]),null},o0=IT(CT);function n0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function i0(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var f0=C([l0,Ge,Ke],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var c0=()=>Y(f0);import*as ae from"react";import{PureComponent as i1,useCallback as M0,useRef as u1,useState as s1}from"react";import*as d0 from"react";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var a=r??e;if(!ge(a))return ze(a,t,0)},m0=(e,t,r)=>{var a={},o=e.filter(lr),n=e.filter(l=>l.stackId==null),i=o.reduce((l,c)=>{var f=l[c.stackId];return f==null&&(f=[]),f.push(c),l[c.stackId]=f,l},a),u=Object.entries(i).map(l=>{var c,[f,d]=l,p=d.map(m=>m.dataKey),h=p0(t,r,(c=d[0])===null||c===void 0?void 0:c.barSize);return{stackId:f,dataKeys:p,barSize:h}}),s=n.map(l=>{var c=[l.dataKey].filter(d=>d!=null),f=p0(t,r,l.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...u,...s]};function h0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function il(e){for(var t=1;tL+(A.barSize||0),0);d+=(i-1)*u,d>=r&&(d-=(i-1)*u,u=0),d>=r&&f>0&&(c=!0,f*=.9,d=i*f);var p=(r-d)/2>>0,h={offset:p-u,size:0};s=a.reduce((L,A)=>{var M,P={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:h.offset+h.size+u,size:c?f:(M=A.barSize)!==null&&M!==void 0?M:0}},k=[...L,P];return h=P.position,k},l)}else{var m=ze(t,r,0,!0);r-2*m-(i-1)*u<=0&&(u=0);var y=(r-2*m-(i-1)*u)/i;y>1&&(y>>=0);var I=Q(o)?Math.min(y,o):y;s=a.reduce((L,A,M)=>[...L,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:m+(y+u)*M+(y-I)/2,size:I}}],l)}return s}}var g0=(e,t,r,a,o,n,i)=>{var u=ge(i)?t:i,s=ET(r,a,o!==n?o:n,e,u);return o!==n&&s!=null&&(s=s.map(l=>il(il({},l),{},{position:il(il({},l.position),{},{offset:l.position.offset-o/2})}))),s};var v0=(e,t)=>{var r=ao(t);if(!(!e||r==null||t==null)){var{stackId:a}=t;if(a!=null){var o=e[a];if(o){var{stackedData:n}=o;if(n)return n.find(i=>i.key===r)}}}};var x0=(e,t)=>{if(!(e==null||t==null)){var r=e.find(a=>a.stackId===t.stackId&&t.dataKey!=null&&a.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ul(e){for(var t=1;tPr(e,t),NT=(e,t)=>Sa(e,"radiusAxis",t),sl=C([_T,NT],(e,t)=>{if(!(e==null||t==null))return ul(ul({},e),{},{scale:t})}),Yd=(e,t)=>iI(e,"radiusAxis",t,!1),BT=(e,t,r)=>Lr(e,r),FT=(e,t,r)=>Sa(e,"angleAxis",r),ll=C([BT,FT],(e,t)=>{if(!(e==null||t==null))return ul(ul({},e),{},{scale:t})}),Zd=(e,t,r)=>Ur(e,"angleAxis",r,!1),jT=(e,t,r,a)=>a,Jd=C([qs,jT],(e,t)=>{if(e.some(r=>r.type==="radialBar"&&t.dataKey===r.dataKey&&t.stackId===r.stackId))return t}),I0=C([J,sl,Yd,ll,Zd],(e,t,r,a,o)=>dt(e,"radiusAxis")?en(t,r,!1):en(a,o,!1)),UT=C([ll,sl,J],(e,t,r)=>{var a=r==="radial"?e:t;if(!(a==null||a.scale==null))return qh({numericAxis:a})}),qT=(e,t,r,a,o)=>o,zT=(e,t,r,a,o)=>r,HT=(e,t,r,a,o)=>t,w0=(e,t,r,a,o)=>a.maxBarSize,C0=e=>e.type==="radialBar",VT=C([J,qs,zT,HT],(e,t,r,a)=>t.filter(o=>e==="centric"?o.angleAxisId===r:o.radiusAxisId===a).filter(o=>o.hide===!1).filter(C0)),WT=()=>{},GT=C([VT,Mv,WT],m0),KT=C([J,ic,ll,Zd,sl,Yd,w0],(e,t,r,a,o,n,i)=>{var u,s,l=ge(i)?t:i;if(e==="centric"){var c,f;return(c=(f=en(r,a,!0))!==null&&f!==void 0?f:l)!==null&&c!==void 0?c:0}return(u=(s=en(o,n,!0))!==null&&s!==void 0?s:l)!==null&&u!==void 0?u:0}),$T=C([GT,ic,Ov,Au,KT,I0,w0],g0),XT=C([$T,Jd],x0),S0=C([Eo],e=>e.filter(C0).filter(lr)),YT=C([S0,to,Ae],oo),b0=C([YT,S0,$t,ro],Fn),ZT=(e,t,r)=>{var a=J(e);return a==="centric"?b0(e,"radiusAxis",t):b0(e,"angleAxis",r)},JT=C([ZT,Jd],v0),L0=C([ll,Zd,sl,Yd,pt,Jd,I0,J,UT,Xt,qT,XT,JT],(e,t,r,a,o,n,i,u,s,l,c,f,d)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:m}=o;if(n==null||r==null||e==null||p==null||i==null||f==null||u!=="centric"&&u!=="radial"||a==null||l==null)return[];var{dataKey:y,minPointSize:I}=n,{cx:L,cy:A,startAngle:M,endAngle:P}=l,k=p.slice(h,m+1),_=u==="centric"?r:e,O=d?_.scale.domain():null;return A0({angleAxis:e,angleAxisTicks:t,bandSize:i,baseValue:s,cells:c,cx:L,cy:A,dataKey:y,dataStartIndex:h,displayedData:k,endAngle:P,layout:u,minPointSize:I,pos:f,radiusAxis:r,radiusAxisTicks:a,stackedData:d,stackedDomain:O,startAngle:M})}),P0=C([to,(e,t)=>t],(e,t)=>{var{chartData:r,dataStartIndex:a,dataEndIndex:o}=e;if(r==null)return[];var n=r.slice(a,o+1);return n.length===0?[]:n.map(i=>({type:t,value:i.name,color:i.fill,payload:i}))});function k0(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Q(e.zIndex)?e.zIndex:t}var QT=["shape","activeShape","cornerRadius","id"],e1=["onMouseEnter","onClick","onMouseLeave"],t1=["value","background"];function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t({value:n.value,payload:n.payload,parentViewBox:void 0,clockWise:!1,viewBox:{cx:n.cx,cy:n.cy,innerRadius:n.innerRadius,outerRadius:n.outerRadius,startAngle:n.startAngle,endAngle:n.endAngle,clockWise:!1},fill:n.fill}));return ae.createElement(eI,{value:t?o:void 0},a)}function f1(e){var{sectors:t,allOtherRadialBarProps:r,showLabels:a}=e,{shape:o,activeShape:n,cornerRadius:i,id:u}=r,s=Qd(r,QT),l=We(s),c=Y(Ca),{onMouseEnter:f,onClick:d,onMouseLeave:p}=r,h=Qd(r,e1),m=qI(f,r.dataKey,u),y=zI(p),I=HI(d,r.dataKey,u);return t==null?null:ae.createElement(l1,{showLabels:a,sectors:t},t.map((L,A)=>{var M=!!(n&&c===String(A)),P=m(L,A),k=y(L,A),_=I(L,A),O=Xe(Xe(Xe(Xe({},l),{},{cornerRadius:Xd(i)},L),Ho(h,L,A)),{},{onMouseEnter:P,onMouseLeave:k,onClick:_,className:"recharts-radial-bar-sector ".concat(L.className),forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal,isActive:M,option:M?n:o,index:A});return M?ae.createElement(Mt,{zIndex:Re.activeBar,key:"sector-".concat(L.cx,"-").concat(L.cy,"-").concat(L.innerRadius,"-").concat(L.outerRadius,"-").concat(L.startAngle,"-").concat(L.endAngle,"-").concat(A)},ae.createElement(nl,O)):ae.createElement(nl,Ro({key:"sector-".concat(L.cx,"-").concat(L.cy,"-").concat(L.innerRadius,"-").concat(L.outerRadius,"-").concat(L.startAngle,"-").concat(L.endAngle,"-").concat(A)},O))}),ae.createElement(tI,{label:r.label}),r.children)}function c1(e){var{props:t,previousSectorsRef:r}=e,{sectors:a,isAnimationActive:o,animationBegin:n,animationDuration:i,animationEasing:u,onAnimationEnd:s,onAnimationStart:l}=t,c=eo(t,"recharts-radialbar-"),f=r.current,[d,p]=s1(!1),h=M0(()=>{typeof s=="function"&&s(),p(!1)},[s]),m=M0(()=>{typeof l=="function"&&l(),p(!0)},[l]);return ae.createElement(Qa,{animationId:c,begin:n,duration:i,isActive:o,easing:u,onAnimationStart:m,onAnimationEnd:h,key:c},y=>{var I=y===1?a:(a??cl).map((L,A)=>{var M=f&&f[A];if(M)return Xe(Xe({},L),{},{startAngle:Ye(M.startAngle,L.startAngle,y),endAngle:Ye(M.endAngle,L.endAngle,y)});var{endAngle:P,startAngle:k}=L;return Xe(Xe({},L),{},{endAngle:Ye(k,P,y)})});return y>0&&(r.current=I??null),ae.createElement(f1,{sectors:I??cl,allOtherRadialBarProps:t,showLabels:!d})})}function d1(e){var t=u1(null);return ae.createElement(c1,{props:e,previousSectorsRef:t})}function p1(e){var t=Y(r=>P0(r,e.legendType));return ae.createElement(KI,{legendPayload:t??[]})}var m1=ae.memo(e=>{var{dataKey:t,sectors:r,stroke:a,strokeWidth:o,name:n,hide:i,fill:u,tooltipType:s,id:l}=e,c={dataDefinedOnItem:r,getPosition:lt,settings:{graphicalItemId:l,stroke:a,strokeWidth:o,fill:u,nameKey:void 0,dataKey:t,name:Hh(n,t),hide:i,type:s,color:u,unit:""}};return ae.createElement(WI,{tooltipEntrySettings:c})}),ep=class extends i1{renderBackground(t){if(t==null)return null;var{cornerRadius:r}=this.props,a=mi(this.props.background);return ae.createElement(Mt,{zIndex:k0(this.props.background,Re.barBackground)},t.map((o,n)=>{var{value:i,background:u}=o,s=Qd(o,t1);if(!u)return null;var l=Xe(Xe(Xe(Xe(Xe({cornerRadius:Xd(r)},s),{},{fill:"#eee"},u),a),Ho(this.props,o,n)),{},{index:n,className:oe("recharts-radial-bar-background-sector",String(a?.className)),option:u,isActive:!1});return ae.createElement(nl,Ro({key:"background-".concat(s.cx,"-").concat(s.cy,"-").concat(s.innerRadius,"-").concat(s.outerRadius,"-").concat(s.startAngle,"-").concat(s.endAngle,"-").concat(n)},l))}))}render(){var{hide:t,sectors:r,className:a,background:o}=this.props;if(t)return null;var n=oe("recharts-area",a);return ae.createElement(Mt,{zIndex:this.props.zIndex},ae.createElement(nt,{className:n},o&&ae.createElement(nt,{className:"recharts-radial-bar-background"},this.renderBackground(r)),ae.createElement(nt,{className:"recharts-radial-bar-sectors"},ae.createElement(d1,this.props))))}};function h1(e){var t,r=ae.useMemo(()=>AI(e.children,Ed),[e.children]),a=ae.useMemo(()=>({data:void 0,hide:!1,id:e.id,dataKey:e.dataKey,minPointSize:e.minPointSize,stackId:Uf(e.stackId),maxBarSize:e.maxBarSize,barSize:e.barSize,type:"radialBar",angleAxisId:e.angleAxisId,radiusAxisId:e.radiusAxisId}),[e.id,e.dataKey,e.minPointSize,e.stackId,e.maxBarSize,e.barSize,e.angleAxisId,e.radiusAxisId]),o=(t=Y(n=>L0(n,e.radiusAxisId,e.angleAxisId,a,r)))!==null&&t!==void 0?t:cl;return ae.createElement(ae.Fragment,null,ae.createElement(m1,{dataKey:e.dataKey,sectors:o,stroke:e.stroke,strokeWidth:e.strokeWidth,name:e.name,hide:e.hide,fill:e.fill,tooltipType:e.tooltipType,id:e.id}),ae.createElement(ep,Ro({},e,{sectors:o})))}var fl={angleAxisId:0,animationBegin:0,animationDuration:1500,animationEasing:"ease",background:!1,cornerIsExternal:!1,cornerRadius:0,forceCornerRadius:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:0,radiusAxisId:0,zIndex:Re.bar};function A0(e){var{displayedData:t,stackedData:r,dataStartIndex:a,stackedDomain:o,dataKey:n,baseValue:i,layout:u,radiusAxis:s,radiusAxisTicks:l,bandSize:c,pos:f,angleAxis:d,minPointSize:p,cx:h,cy:m,angleAxisTicks:y,cells:I,startAngle:L,endAngle:A}=e;return y==null||l==null?cl:(t??[]).map((M,P)=>{var k,_,O,z,N,K;if(r?k=jh(r[a+P],o):(k=ve(M,n),Array.isArray(k)||(k=[i,k])),u==="radial"){var F,$;if(z=(F=d.scale.map(k[0]))!==null&&F!==void 0?F:L,N=($=d.scale.map(k[1]))!==null&&$!==void 0?$:A,_=qf({axis:s,ticks:l,bandSize:c,offset:f.offset,entry:M,index:P}),_!=null&&N!=null&&z!=null){O=_+f.size;var X=N-z;if(Math.abs(p)>0&&Math.abs(X)0&&Math.abs(g){var a,o,n;return ae.createElement(ae.Fragment,null,ae.createElement(o0,{type:"radialBar",id:r,data:void 0,dataKey:t.dataKey,hide:(a=t.hide)!==null&&a!==void 0?a:fl.hide,angleAxisId:(o=t.angleAxisId)!==null&&o!==void 0?o:fl.angleAxisId,radiusAxisId:(n=t.radiusAxisId)!==null&&n!==void 0?n:fl.radiusAxisId,stackId:Uf(t.stackId),barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize}),ae.createElement(p1,t),ae.createElement(h1,Ro({},t,{id:r})))})}dl.displayName="RadialBar";import{useEffect as g1}from"react";var E0=e=>{var{chartData:t}=e,r=re(),a=Je();return g1(()=>a?()=>{}:(r(Od(t)),()=>{r(Od(void 0))}),[t,r,a]),null};var D0={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},R0=ue({name:"brush",initialState:D0,reducers:{setBrushSettings(e,t){return t.payload==null?D0:t.payload}}}),{setBrushSettings:NZ}=R0.actions,T0=R0.reducer;var v1={dots:[],areas:[],lines:[]},_0=ue({name:"referenceElements",initialState:v1,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ve(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ve(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ve(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:jZ,removeDot:UZ,addArea:qZ,removeArea:zZ,addLine:HZ,removeLine:VZ}=_0.actions,N0=_0.reducer;import*as ti from"react";import{createContext as x1,useContext as KZ,useState as y1}from"react";var b1=x1(void 0),B0=e=>{var{children:t}=e,[r]=y1("".concat(nr("recharts"),"-clip")),a=c0();if(a==null)return null;var{x:o,y:n,width:i,height:u}=a;return ti.createElement(b1.Provider,{value:r},ti.createElement("defs",null,ti.createElement("clipPath",{id:r},ti.createElement("rect",{x:o,y:n,height:u,width:i}))),t)};var I1={xAxis:{},yAxis:{}},F0=ue({name:"renderedTicks",initialState:I1,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:a,ticks:o}=t.payload;e[r][a]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:a}=t.payload;delete e[r][a]}}}),{setRenderedTicks:JZ,removeRenderedTicks:QZ}=F0.actions,j0=F0.reducer;var w1={},U0=ue({name:"errorBars",initialState:w1,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:a,next:o}=t.payload;e[r]&&(e[r]=e[r].map(n=>n.dataKey===a.dataKey&&n.direction===a.direction?o:n))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==a.dataKey||o.direction!==a.direction))}}}),{addErrorBar:r9,replaceErrorBar:a9,removeErrorBar:o9}=U0.actions,q0=U0.reducer;import*as rw from"react";import{useRef as O1}from"react";var C1=(e,t)=>t,ri=C([C1,J,Xt,Pe,vd,Ot,Wy,xe],Ky);function S1(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function ai(e){var t=e.currentTarget.getBoundingClientRect(),r,a;if(S1(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,a=o.height>0?t.height/o.height:1}else{var n=e.currentTarget;r=n.offsetWidth>0?t.width/n.offsetWidth:1,a=n.offsetHeight>0?t.height/n.offsetHeight:1}var i=(u,s)=>({relativeX:Math.round((u-t.left)/r),relativeY:Math.round((s-t.top)/a)});return"touches"in e?Array.from(e.touches).map(u=>i(u.clientX,u.clientY)):i(e.clientX,e.clientY)}var rp=Me("mouseClick"),ap=sr();ap.startListening({actionCreator:rp,effect:(e,t)=>{var r=e.payload,a=ri(t.getState(),ai(r));a?.activeIndex!=null&&t.dispatch(Py({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var pl=Me("mouseMove"),op=sr(),To=null,La=null,tp=null;op.startListening({actionCreator:pl,effect:(e,t)=>{var r=e.payload,a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n?.includes("mousemove");To!==null&&(cancelAnimationFrame(To),To=null),La!==null&&(typeof o!="number"||!i)&&(clearTimeout(La),La=null),tp=ai(r);var u=()=>{var s=t.getState(),l=Cs(s,s.tooltip.settings.shared);if(!tp){To=null,La=null;return}if(l==="axis"){var c=ri(s,tp);c?.activeIndex!=null?t.dispatch(As({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(Ps())}To=null,La=null};if(!i){u();return}o==="raf"?To=requestAnimationFrame(u):typeof o=="number"&&La===null&&(La=setTimeout(u,o))}});function z0(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var H0={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},V0=ue({name:"rootProps",initialState:H0,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:H0.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),W0=V0.reducer,{updateOptions:G0}=V0.actions;var L1=null,P1={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},K0=ue({name:"polarOptions",initialState:L1,reducers:P1}),{updatePolarOptions:$0}=K0.actions,X0=K0.reducer;var np=Me("keyDown"),ip=Me("focus"),up=Me("blur"),oi=sr(),_o=null,Pa=null,ml=null;oi.startListening({actionCreator:np,effect:(e,t)=>{ml=e.payload,_o!==null&&(cancelAnimationFrame(_o),_o=null);var r=t.getState(),{throttleDelay:a,throttledEvents:o}=r.eventSettings,n=o==="all"||o.includes("keydown");Pa!==null&&(typeof a!="number"||!n)&&(clearTimeout(Pa),Pa=null);var i=()=>{try{var u=t.getState(),s=u.rootProps.accessibilityLayer!==!1;if(!s)return;var{keyboardInteraction:l}=u.tooltip,c=ml;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=Ao(l,Fr(u),Nr(u),wa(u)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var p=Ot(u);if(c==="Enter"){var h=Kn(u,"axis","hover",String(l.index));t.dispatch(Wn({active:!l.active,activeIndex:l.index,activeCoordinate:h}));return}var m=xy(u),y=m==="left-to-right"?1:-1,I=c==="ArrowRight"?1:-1,L=d+I*y;if(p==null||L>=p.length||L<0)return;var A=Kn(u,"axis","hover",String(L));t.dispatch(Wn({active:!0,activeIndex:L.toString(),activeCoordinate:A}))}finally{_o=null,Pa=null}};if(!n){i();return}a==="raf"?_o=requestAnimationFrame(i):typeof a=="number"&&Pa===null&&(i(),ml=null,Pa=setTimeout(()=>{ml?i():(Pa=null,_o=null)},a))}});oi.startListening({actionCreator:ip,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var n="0",i=Kn(r,"axis","hover",String(n));t.dispatch(Wn({active:!0,activeIndex:n,activeCoordinate:i}))}}}});oi.startListening({actionCreator:up,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Wn({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function hl(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,a)=>{if(a==="currentTarget")return t;var o=Reflect.get(r,a);return typeof o=="function"?o.bind(r):o}})}var bt=Me("externalEvent"),lp=sr(),gl=new Map,ni=new Map,sp=new Map;lp.startListening({actionCreator:bt,effect:(e,t)=>{var{handler:r,reactEvent:a}=e.payload;if(r!=null){var o=a.type,n=hl(a);sp.set(o,{handler:r,reactEvent:n});var i=gl.get(o);i!==void 0&&(cancelAnimationFrame(i),gl.delete(o));var u=t.getState(),{throttleDelay:s,throttledEvents:l}=u.eventSettings,c=l,f=c==="all"||c?.includes(o),d=ni.get(o);d!==void 0&&(typeof s!="number"||!f)&&(clearTimeout(d),ni.delete(o));var p=()=>{var y=sp.get(o);try{if(!y)return;var{handler:I,reactEvent:L}=y,A=t.getState(),M={activeCoordinate:Fy(A),activeDataKey:Ny(A),activeIndex:Ca(A),activeLabel:bd(A),activeTooltipIndex:Ca(A),isTooltipActive:jy(A)};I&&I(M,L)}finally{gl.delete(o),ni.delete(o),sp.delete(o)}};if(!f){p();return}if(s==="raf"){var h=requestAnimationFrame(p);gl.set(o,h)}else if(typeof s=="number"){if(!ni.has(o)){p();var m=setTimeout(p,s);ni.set(o,m)}}else p()}}});var A1=C([Br],e=>e.tooltipItemPayloads),Y0=C([A1,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var a=e.find(n=>n.settings.graphicalItemId===r);if(a!=null){var{getPosition:o}=a;if(o!=null)return o(t)}}});var fp=Me("touchMove"),cp=sr(),Aa=null,qr=null,Z0=null,ii=null;cp.startListening({actionCreator:fp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){ii=hl(r);var a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n.includes("touchmove");Aa!==null&&(cancelAnimationFrame(Aa),Aa=null),qr!==null&&(typeof o!="number"||!i)&&(clearTimeout(qr),qr=null),Z0=Array.from(r.touches).map(s=>ai({clientX:s.clientX,clientY:s.clientY,currentTarget:r.currentTarget}));var u=()=>{if(ii!=null){var s=t.getState(),l=Cs(s,s.tooltip.settings.shared);if(l==="axis"){var c,f=(c=Z0)===null||c===void 0?void 0:c[0];if(f==null){Aa=null,qr=null;return}var d=ri(s,f);d?.activeIndex!=null&&t.dispatch(As({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(l==="item"){var p,h=ii.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var y=m.getAttribute(Kh),I=(p=m.getAttribute($h))!==null&&p!==void 0?p:void 0,L=Ia(s).find(P=>P.id===I);if(y==null||L==null||I==null)return;var{dataKey:A}=L,M=Y0(s,y,I);t.dispatch(Ls({activeDataKey:A,activeIndex:y,activeCoordinate:M,activeGraphicalItemId:I}))}Aa=null,qr=null}};if(!i){u();return}o==="raf"?Aa=requestAnimationFrame(u):typeof o=="number"&&qr===null&&(u(),ii=null,qr=setTimeout(()=>{ii?u():(qr=null,Aa=null)},o))}}});var dp={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},J0=ue({name:"eventSettings",initialState:dp,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:Q0}=J0.actions,ew=J0.reducer;var k1=Fi({brush:T0,cartesianAxis:s0,chartData:hb,errorBars:q0,eventSettings:ew,graphicalItems:r0,layout:Nh,legend:hg,options:cb,polarAxis:vI,polarOptions:X0,referenceElements:N0,renderedTicks:j0,rootProps:W0,tooltip:Ay,zIndex:ab}),tw=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return xh({reducer:k1,preloadedState:t,middleware:a=>{var o;return a({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([ap.middleware,op.middleware,oi.middleware,lp.middleware,cp.middleware])},enhancers:a=>{var o=a;return typeof a=="function"&&(o=a()),o.concat(Nf({type:"raf"}))},devTools:Gt.devToolsEnabled&&{serialize:{replacer:z0},name:"recharts-".concat(r)}})};function aw(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,o=Je(),n=O1(null);if(o)return r;n.current==null&&(n.current=tw(t,a));var i=Go;return rw.createElement(yg,{context:i,store:n.current},r)}import{memo as M1,useEffect as E1}from"react";function D1(e){var{layout:t,margin:r}=e,a=re(),o=Je();return E1(()=>{o||(a(Rh(t)),a(jf(r)))},[a,o,t,r]),null}var ow=M1(D1,du);import{useEffect as R1}from"react";function nw(e){var t=re();return R1(()=>{t(G0(e))},[t,e]),null}import{useEffect as T1,memo as _1}from"react";var N1=e=>{var t=re();return T1(()=>{t(Q0(e))},[t,e]),null},iw=_1(N1,du);import*as yr from"react";import{forwardRef as u_}from"react";import*as Oa from"react";import{forwardRef as sw}from"react";import*as ka from"react";import{useLayoutEffect as B1,useRef as F1}from"react";function uw(e){var{zIndex:t,isPanorama:r}=e,a=F1(null),o=re();return B1(()=>(a.current&&o(tb({zIndex:t,element:a.current,isPanorama:r})),()=>{o(rb({zIndex:t,isPanorama:r}))}),[o,t,r]),ka.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function pp(e){var{children:t,isPanorama:r}=e,a=Y(Xy);if(!a||a.length===0)return t;var o=a.filter(i=>i<0),n=a.filter(i=>i>0);return ka.createElement(ka.Fragment,null,o.map(i=>ka.createElement(uw,{key:i,zIndex:i,isPanorama:r})),t,n.map(i=>ka.createElement(uw,{key:i,zIndex:i,isPanorama:r})))}var j1=["children"];function U1(e,t){if(e==null)return{};var r,a,o=q1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var r=ug(),a=sg(),o=Ig();if(!Nt(r)||!Nt(a))return null;var{children:n,otherAttributes:i,title:u,desc:s}=e,l,c;return i!=null&&(typeof i.tabIndex=="number"?l=i.tabIndex:l=o?0:void 0,typeof i.role=="string"?c=i.role:c=o?"application":void 0),Oa.createElement(kl,vl({},i,{title:u,desc:s,role:c,tabIndex:l,width:r,height:a,style:z1,ref:t}),n)}),V1=e=>{var{children:t}=e,r=Y(Qr);if(!r)return null;var{width:a,height:o,y:n,x:i}=r;return Oa.createElement(kl,{width:a,height:o,x:i,y:n},t)},mp=sw((e,t)=>{var{children:r}=e,a=U1(e,j1),o=Je();return o?Oa.createElement(V1,null,Oa.createElement(pp,{isPanorama:!0},r)):Oa.createElement(H1,vl({ref:t},a),Oa.createElement(pp,{isPanorama:!1},r))});import*as Ie from"react";import{forwardRef as ui,useCallback as _e,useEffect as Z1,useRef as cw,useState as xl}from"react";import{useEffect as W1,useState as G1}from"react";function lw(){var e=re(),[t,r]=G1(null),a=Y(Gh);return W1(()=>{if(t!=null){var o=t.getBoundingClientRect(),n=o.width/t.offsetWidth;Q(n)&&n!==a&&e(_h(n))}},[t,e,a]),r}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function K1(e){for(var t=1;t(vb(),null);function yl(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Q1=ui((e,t)=>{var r,a,o=cw(null),[n,i]=xl({containerWidth:yl((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:yl((a=e.style)===null||a===void 0?void 0:a.height)}),u=_e((l,c)=>{i(f=>{var d=Math.round(l),p=Math.round(c);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),s=_e(l=>{if(typeof t=="function"&&t(l),l!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=l.getBoundingClientRect();u(c,f);var d=h=>{var m=h[0];if(m!=null){var{width:y,height:I}=m.contentRect;u(y,I)}},p=new ResizeObserver(d);p.observe(l),o.current=p}},[t,u]);return Z1(()=>()=>{var l=o.current;l?.disconnect()},[u]),Ie.createElement(Ie.Fragment,null,Ie.createElement(ta,{width:n.containerWidth,height:n.containerHeight}),Ie.createElement("div",zr({ref:s},e)))}),e_=ui((e,t)=>{var{width:r,height:a}=e,[o,n]=xl({containerWidth:yl(r),containerHeight:yl(a)}),i=_e((s,l)=>{n(c=>{var f=Math.round(s),d=Math.round(l);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=_e(s=>{if(typeof t=="function"&&t(s),s!=null){var{width:l,height:c}=s.getBoundingClientRect();i(l,c)}},[t,i]);return Ie.createElement(Ie.Fragment,null,Ie.createElement(ta,{width:o.containerWidth,height:o.containerHeight}),Ie.createElement("div",zr({ref:u},e)))}),t_=ui((e,t)=>{var{width:r,height:a}=e;return Ie.createElement(Ie.Fragment,null,Ie.createElement(ta,{width:r,height:a}),Ie.createElement("div",zr({ref:t},e)))}),r_=ui((e,t)=>{var{width:r,height:a}=e;return typeof r=="string"||typeof a=="string"?Ie.createElement(e_,zr({},e,{ref:t})):typeof r=="number"&&typeof a=="number"?Ie.createElement(t_,zr({},e,{width:r,height:a,ref:t})):Ie.createElement(Ie.Fragment,null,Ie.createElement(ta,{width:r,height:a}),Ie.createElement("div",zr({ref:t},e)))});function a_(e){return e?Q1:r_}var dw=ui((e,t)=>{var{children:r,className:a,height:o,onClick:n,onContextMenu:i,onDoubleClick:u,onMouseDown:s,onMouseEnter:l,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:y,width:I,responsive:L,dispatchTouchEvents:A=!0}=e,M=cw(null),P=re(),[k,_]=xl(null),[O,z]=xl(null),N=lw(),K=tn(),F=K?.width>0?K.width:I,$=K?.height>0?K.height:o,X=_e(q=>{N(q),typeof t=="function"&&t(q),_(q),z(q),q!=null&&(M.current=q)},[N,t,_,z]),ie=_e(q=>{P(rp(q)),P(bt({handler:n,reactEvent:q}))},[P,n]),g=_e(q=>{P(pl(q)),P(bt({handler:l,reactEvent:q}))},[P,l]),x=_e(q=>{P(Ps()),P(bt({handler:c,reactEvent:q}))},[P,c]),S=_e(q=>{P(pl(q)),P(bt({handler:f,reactEvent:q}))},[P,f]),b=_e(()=>{P(ip())},[P]),v=_e(()=>{P(up())},[P]),w=_e(q=>{P(np(q.key))},[P]),R=_e(q=>{P(bt({handler:i,reactEvent:q}))},[P,i]),T=_e(q=>{P(bt({handler:u,reactEvent:q}))},[P,u]),B=_e(q=>{P(bt({handler:s,reactEvent:q}))},[P,s]),U=_e(q=>{P(bt({handler:d,reactEvent:q}))},[P,d]),j=_e(q=>{P(bt({handler:m,reactEvent:q}))},[P,m]),V=_e(q=>{A&&P(fp(q)),P(bt({handler:h,reactEvent:q}))},[P,A,h]),me=_e(q=>{P(bt({handler:p,reactEvent:q}))},[P,p]),E=a_(L);return Ie.createElement(ob.Provider,{value:k},Ie.createElement(kp.Provider,{value:O},Ie.createElement(E,{width:F??y?.width,height:$??y?.height,className:oe("recharts-wrapper",a),style:K1({position:"relative",cursor:"default",width:F,height:$},y),onClick:ie,onContextMenu:R,onDoubleClick:T,onFocus:b,onBlur:v,onKeyDown:w,onMouseDown:B,onMouseEnter:g,onMouseLeave:x,onMouseMove:S,onMouseUp:U,onTouchEnd:me,onTouchMove:V,onTouchStart:j,ref:X},Ie.createElement(J1,null),r)))});var o_=["width","height","responsive","children","className","style","compact","title","desc"];function n_(e,t){if(e==null)return{};var r,a,o=i_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{width:r,height:a,responsive:o,children:n,className:i,style:u,compact:s,title:l,desc:c}=e,f=n_(e,o_),d=We(f);return s?yr.createElement(yr.Fragment,null,yr.createElement(ta,{width:r,height:a}),yr.createElement(mp,{otherAttributes:d,title:l,desc:c},n)):yr.createElement(dw,{className:i,style:u,width:r,height:a,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},yr.createElement(mp,{otherAttributes:d,title:l,desc:c,ref:t},yr.createElement(B0,null,n)))});import{forwardRef as g_}from"react";import*as Hr from"react";import{useEffect as s_}from"react";function mw(e){var t=re();return s_(()=>{t($0(e))},[t,e]),null}var l_=["layout"];function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Se(e,C_);return yw.createElement(gw,{chartName:"RadialBarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:w_,tooltipPayloadSearcher:lb,categoricalChartProps:r,ref:t})});var L_=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),Pw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),wl="-",bw=[],A_="arbitrary..",k_=e=>{let t=M_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return O_(i);let u=i.split(wl),s=u[0]===""&&u.length>1?1:0;return Aw(u,s,t)},getConflictingClassGroupIds:(i,u)=>{if(u){let s=a[i],l=r[i];return s?l?L_(l,s):s:l||bw}return r[i]||bw}}},Aw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let l=Aw(e,t+1,n);if(l)return l}let i=r.validators;if(i===null)return;let u=t===0?e.join(wl):e.slice(t).join(wl),s=i.length;for(let l=0;le.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?A_+a:void 0})(),M_=e=>{let{theme:t,classGroups:r}=e;return E_(r,t)},E_=(e,t)=>{let r=Pw();for(let a in e){let o=e[a];bp(o,r,a,t)}return r},bp=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){R_(e,t,r);return}if(typeof e=="function"){T_(e,t,r,a);return}__(e,t,r,a)},R_=(e,t,r)=>{let a=e===""?t:kw(t,e);a.classGroupId=r},T_=(e,t,r,a)=>{if(N_(e)){bp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(P_(r,e))},__=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let r=e,a=t.split(wl),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,B_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,i)=>{r[n]=i,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let i=r[n];if(i!==void 0)return i;if((i=a[n])!==void 0)return o(n,i),i},set(n,i){n in r?r[n]=i:o(n,i)}}},yp="!",Iw=":",F_=[],ww=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),j_=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],i=0,u=0,s=0,l,c=o.length;for(let m=0;ms?l-s:void 0;return ww(n,p,d,h)};if(t){let o=t+Iw,n=a;a=i=>i.startsWith(o)?n(i.slice(o.length)):ww(F_,!1,i,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},U_=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(i)):o.push(i)}return o.length>0&&(o.sort(),a.push(...o)),a}},q_=e=>({cache:B_(e.cacheSize),parseClassName:j_(e),sortModifiers:U_(e),postfixLookupClassGroupIds:z_(e),...k_(e)}),z_=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=t,u=[],s=e.trim().split(H_),l="";for(let c=s.length-1;c>=0;c-=1){let f=s[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(d){l=f+(l.length>0?" "+l:l);continue}let I=!!y,L;if(I){let _=m.substring(0,y);L=a(_);let O=L&&i[L]?a(m):void 0;O&&O!==L&&(L=O,I=!1)}else L=a(m);if(!L){if(!I){l=f+(l.length>0?" "+l:l);continue}if(L=a(m),!L){l=f+(l.length>0?" "+l:l);continue}I=!1}let A=p.length===0?"":p.length===1?p[0]:n(p).join(":"),M=h?A+yp:A,P=M+L;if(u.indexOf(P)>-1)continue;u.push(P);let k=o(L,I);for(let _=0;_0?" "+l:l)}return l},W_=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,i=s=>{let l=t.reduce((c,f)=>f(c),e());return r=q_(l),a=r.cache.get,o=r.cache.set,n=u,u(s)},u=s=>{let l=a(s);if(l)return l;let c=V_(s,r);return o(s,c),c};return n=i,(...s)=>n(W_(...s))},K_=[],Ne=e=>{let t=r=>r[e]||K_;return t.isThemeGetter=!0,t},Mw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ew=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,X_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Z_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vr=e=>$_.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),xp=e=>e.endsWith("%")&&te(e.slice(0,-1)),br=e=>X_.test(e),Dw=()=>!0,eN=e=>Y_.test(e)&&!Z_.test(e),Ip=()=>!1,tN=e=>J_.test(e),rN=e=>Q_.test(e),aN=e=>!W(e)&&!G(e),oN=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),nN=e=>Wr(e,_w,Ip),W=e=>Mw.test(e),Ma=e=>Wr(e,Nw,eN),Cw=e=>Wr(e,pN,te),iN=e=>Wr(e,Fw,Dw),uN=e=>Wr(e,Bw,Ip),Sw=e=>Wr(e,Rw,Ip),sN=e=>Wr(e,Tw,rN),bl=e=>Wr(e,jw,tN),G=e=>Ew.test(e),si=e=>Ea(e,Nw),lN=e=>Ea(e,Bw),Lw=e=>Ea(e,Rw),fN=e=>Ea(e,_w),cN=e=>Ea(e,Tw),Il=e=>Ea(e,jw,!0),dN=e=>Ea(e,Fw,!0),Wr=(e,t,r)=>{let a=Mw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Ea=(e,t,r=!1)=>{let a=Ew.exec(e);return a?a[1]?t(a[1]):r:!1},Rw=e=>e==="position"||e==="percentage",Tw=e=>e==="image"||e==="url",_w=e=>e==="length"||e==="size"||e==="bg-size",Nw=e=>e==="length",pN=e=>e==="number",Bw=e=>e==="family-name",Fw=e=>e==="number"||e==="weight",jw=e=>e==="shadow";var mN=()=>{let e=Ne("color"),t=Ne("font"),r=Ne("text"),a=Ne("font-weight"),o=Ne("tracking"),n=Ne("leading"),i=Ne("breakpoint"),u=Ne("container"),s=Ne("spacing"),l=Ne("radius"),c=Ne("shadow"),f=Ne("inset-shadow"),d=Ne("text-shadow"),p=Ne("drop-shadow"),h=Ne("blur"),m=Ne("perspective"),y=Ne("aspect"),I=Ne("ease"),L=Ne("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...M(),G,W],k=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],O=()=>[G,W,s],z=()=>[Vr,"full","auto",...O()],N=()=>[ar,"none","subgrid",G,W],K=()=>["auto",{span:["full",ar,G,W]},ar,G,W],F=()=>[ar,"auto",G,W],$=()=>["auto","min","max","fr",G,W],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],g=()=>["auto",...O()],x=()=>[Vr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],S=()=>[Vr,"screen","full","dvw","lvw","svw","min","max","fit",...O()],b=()=>[Vr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],v=()=>[e,G,W],w=()=>[...M(),Lw,Sw,{position:[G,W]}],R=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",fN,nN,{size:[G,W]}],B=()=>[xp,si,Ma],U=()=>["","none","full",l,G,W],j=()=>["",te,si,Ma],V=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>[te,xp,Lw,Sw],q=()=>["","none",h,G,W],H=()=>["none",te,G,W],D=()=>["none",te,G,W],we=()=>[te,G,W],ee=()=>[Vr,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[br],breakpoint:[br],color:[Dw],container:[br],"drop-shadow":[br],ease:["in","out","in-out"],font:[aN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[br],shadow:[br],spacing:["px",te],text:[br],"text-shadow":[br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vr,W,G,y]}],container:["container"],"container-type":[{"@container":["","normal","size",G,W]}],"container-named":[oN],columns:[{columns:[te,W,G,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",G,W]}],basis:[{basis:[Vr,"full","auto",u,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Vr,"auto","initial","none",W]}],grow:[{grow:["",te,G,W]}],shrink:[{shrink:["",te,G,W]}],order:[{order:[ar,"first","last","none",G,W]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:g()}],mx:[{mx:g()}],my:[{my:g()}],ms:[{ms:g()}],me:[{me:g()}],mbs:[{mbs:g()}],mbe:[{mbe:g()}],mt:[{mt:g()}],mr:[{mr:g()}],mb:[{mb:g()}],ml:[{ml:g()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:x()}],"inline-size":[{inline:["auto",...S()]}],"min-inline-size":[{"min-inline":["auto",...S()]}],"max-inline-size":[{"max-inline":["none",...S()]}],"block-size":[{block:["auto",...b()]}],"min-block-size":[{"min-block":["auto",...b()]}],"max-block-size":[{"max-block":["none",...b()]}],w:[{w:[u,"screen",...x()]}],"min-w":[{"min-w":[u,"screen","none",...x()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...x()]}],h:[{h:["screen","lh",...x()]}],"min-h":[{"min-h":["screen","lh","none",...x()]}],"max-h":[{"max-h":["screen","lh",...x()]}],"font-size":[{text:["base",r,si,Ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,dN,iN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xp,W]}],"font-family":[{font:[lN,uN,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,W]}],"line-clamp":[{"line-clamp":[te,"none",G,Cw]}],leading:[{leading:[n,...O()]}],"list-image":[{"list-image":["none",G,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",G,Ma]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[te,"auto",G,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[ar,G,W]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,G,W],radial:["",G,W],conic:[ar,G,W]},cN,sN]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,G,W]}],"outline-w":[{outline:["",te,si,Ma]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",c,Il,bl]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",f,Il,bl]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[te,Ma]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",d,Il,bl]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[te,G,W]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,W]}],filter:[{filter:["","none",G,W]}],blur:[{blur:q()}],brightness:[{brightness:[te,G,W]}],contrast:[{contrast:[te,G,W]}],"drop-shadow":[{"drop-shadow":["","none",p,Il,bl]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",te,G,W]}],"hue-rotate":[{"hue-rotate":[te,G,W]}],invert:[{invert:["",te,G,W]}],saturate:[{saturate:[te,G,W]}],sepia:[{sepia:["",te,G,W]}],"backdrop-filter":[{"backdrop-filter":["","none",G,W]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[te,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[te,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,G,W]}],"backdrop-invert":[{"backdrop-invert":["",te,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[te,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[te,G,W]}],"backdrop-sepia":[{"backdrop-sepia":["",te,G,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",G,W]}],ease:[{ease:["linear","initial",I,G,W]}],delay:[{delay:[te,G,W]}],animate:[{animate:["none",L,G,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,G,W]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[G,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[ar,G,W]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,W]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[te,si,Ma,Cw]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Uw=G_(mN);function Ir(...e){return Uw(oe(e))}import{jsx as No}from"react/jsx-runtime";function qw({className:e,...t}){return No("div",{"data-slot":"card",className:Ir("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function zw({className:e,...t}){return No("div",{"data-slot":"card-header",className:Ir("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Hw({className:e,...t}){return No("div",{"data-slot":"card-title",className:Ir("leading-none font-semibold",e),...t})}function Vw({className:e,...t}){return No("div",{"data-slot":"card-description",className:Ir("text-sm text-muted-foreground",e),...t})}function Ww({className:e,...t}){return No("div",{"data-slot":"card-content",className:Ir("px-6",e),...t})}function Gw({className:e,...t}){return No("div",{"data-slot":"card-footer",className:Ir("flex items-center px-6 [.border-t]:pt-6",e),...t})}import*as Bo from"react";import{Fragment as gQ,jsx as Cl,jsxs as yN}from"react/jsx-runtime";var hN={light:"",dark:".dark"},gN={width:320,height:200},vN=Bo.createContext(null);function Kw({id:e,className:t,children:r,config:a,initialDimension:o=gN,...n}){let i=Bo.useId(),u=`chart-${e??i.replace(/:/g,"")}`;return Cl(vN.Provider,{value:{config:a},children:yN("div",{"data-slot":"chart","data-chart":u,className:Ir("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...n,children:[Cl(xN,{id:u,config:a}),Cl(Xf,{initialDimension:o,children:r})]})})}var xN=({id:e,config:t})=>{let r=Object.entries(t).filter(([,a])=>a.theme??a.color);return r.length?Cl("style",{dangerouslySetInnerHTML:{__html:Object.entries(hN).map(([a,o])=>` -${o} [data-chart=${e}] { -${r.map(([n,i])=>{let u=i.theme?.[a]??i.color;return u?` --color-${n}: ${u};`:null}).join(` -`)} -} -`).join(` -`)}}):null};import{jsx as Rt,jsxs as Fo}from"react/jsx-runtime";var wQ="A radial chart with text",$w=[{browser:"safari",visitors:200,fill:"var(--color-safari)"}],bN={visitors:{label:"Visitors"},safari:{label:"Safari",color:"var(--chart-2)"}};function CQ(){return Fo(qw,{className:"flex flex-col",children:[Fo(zw,{className:"items-center pb-0",children:[Rt(Hw,{children:"Radial Chart - Text"}),Rt(Vw,{children:"January - June 2024"})]}),Rt(Ww,{className:"flex-1 pb-0",children:Rt(Kw,{config:bN,className:"mx-auto aspect-square max-h-[250px]",children:Fo(vp,{data:$w,startAngle:0,endAngle:250,outerRadius:90,innerRadius:80,children:[Rt(Vs,{gridType:"circle",radialLines:!1,stroke:"none",className:"first:fill-muted last:fill-background",polarRadius:[90,80]}),Rt(dl,{dataKey:"visitors",background:!0,cornerRadius:10}),Rt(Ws,{tick:!1,tickLine:!1,axisLine:!1,children:Rt(Et,{content:({viewBox:e})=>{if(e&&"cx"in e&&"cy"in e)return Fo("text",{x:e.cx,y:e.cy,textAnchor:"middle",dominantBaseline:"middle",children:[Rt("tspan",{x:e.cx,y:e.cy,className:"fill-foreground text-4xl font-bold",children:$w[0].visitors.toLocaleString()}),Rt("tspan",{x:e.cx,y:(e.cy||0)+24,className:"fill-muted-foreground",children:"Visitors"})]})}})})]})})}),Fo(Gw,{className:"flex-col gap-2 text-sm",children:[Fo("div",{className:"flex items-center gap-2 leading-none font-medium",children:["Trending up by 5.2% this month ",Rt(jo,{className:"h-4 w-4"})]}),Rt("div",{className:"leading-none text-muted-foreground",children:"Showing total visitors for the last 6 months"})]})]})}export{CQ as ChartRadialText,wQ as description}; -/*! Bundled license information: - -decimal.js-light/decimal.js: - (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) - -react-is/cjs/react-is.production.js: - (** - * @license React - * react-is.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/trending-up.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:23bce2fc950828846f04dd76af34246942e498018d51630d055e8ddd4ce4170e +size 340829 diff --git a/b/039e5d1656c0e8c453be3d328a2e0807bd6517ab56ac00860f5da000a3f08443 b/b/039e5d1656c0e8c453be3d328a2e0807bd6517ab56ac00860f5da000a3f08443 index 110ab3c9aa2fb8257082be7796eee154c9e6bec8..adc396d6a15cd113c3ee2feadd5eba4cdacb731a 100644 --- a/b/039e5d1656c0e8c453be3d328a2e0807bd6517ab56ac00860f5da000a3f08443 +++ b/b/039e5d1656c0e8c453be3d328a2e0807bd6517ab56ac00860f5da000a3f08443 @@ -1,107 +1,3 @@ -var ln=Object.defineProperty;var va=(e,t)=>{for(var a in t)ln(e,a,{get:t[a],enumerable:!0})};function ko(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Mo=Bt,Do=(e,t)=>a=>{var o;if(t?.variants==null)return Mo(e,a?.class,a?.className);let{variants:r,defaultVariants:l}=t,s=Object.keys(r).map(u=>{let f=a?.[u],c=l?.[u];if(f===null)return null;let m=Ao(f)||Ao(c);return r[u][m]}),n=a&&Object.entries(a).reduce((u,f)=>{let[c,m]=f;return m===void 0||(u[c]=m),u},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:c,className:m,...p}=f;return Object.entries(p).every(x=>{let[i,h]=x;return Array.isArray(h)?h.includes({...l,...n}[i]):{...l,...n}[i]===h})?[...u,c,m]:u},[]);return Mo(e,s,d,a?.class,a?.className)};import*as Ho from"react";import*as qo from"react";import*as Uo from"react-dom";var Ft={};va(Ft,{Root:()=>nn,Slot:()=>nn,Slottable:()=>un,createSlot:()=>Ee,createSlottable:()=>Eo});import*as se from"react";import*as Bo from"react";function To(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sn(...e){return t=>{let a=!1,o=e.map(r=>{let l=To(r,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let r=0;r{let{children:r,...l}=a,s=null,n=!1,d=[];Oo(r)&&typeof Ot=="function"&&(r=Ot(r._payload)),se.Children.forEach(r,m=>{if(pn(m)){n=!0;let p=m,x="child"in p.props?p.props.child:p.props.children;Oo(x)&&typeof Ot=="function"&&(x=Ot(x._payload)),s=dn(p,x),d.push(s?.props?.children)}else d.push(m)}),s?s=se.cloneElement(s,void 0,d):!n&&se.Children.count(r)===1&&se.isValidElement(r)&&(s=r);let u=s?cn(s):void 0,f=Z(o,u);if(!s){if(r||r===0)throw new Error(n?gn(e):xn(e));return r}let c=fn(l,s.props??{});return s.type!==se.Fragment&&(c.ref=o?f:u),se.cloneElement(s,c)});return t.displayName=`${e}.Slot`,t}var nn=Ee("Slot"),Fo=Symbol.for("radix.slottable");function Eo(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Fo,t}var un=Eo("Slottable"),dn=(e,t)=>{if("child"in e.props){let a=e.props.child;return se.isValidElement(a)?se.cloneElement(a,void 0,e.props.children(a.props.children)):null}return se.isValidElement(t)?t:null};function fn(e,t){let a={...t};for(let o in t){let r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?a[o]=(...n)=>{let d=l(...n);return r(...n),d}:r&&(a[o]=r):o==="style"?a[o]={...r,...l}:o==="className"&&(a[o]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}function cn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function pn(e){return se.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fo}var mn=Symbol.for("react.lazy");function Oo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===mn&&"_payload"in e&&hn(e._payload)}function hn(e){return typeof e=="object"&&e!==null&&"then"in e}var xn=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,gn=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ot=se[" use ".trim().toString()];import{jsx as Ln}from"react/jsx-runtime";var In=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=In.reduce((e,t)=>{let a=Ee(`Primitive.${t}`),o=qo.forwardRef((r,l)=>{let{asChild:s,...n}=r,d=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Ln(d,{...n,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function No(e,t){e&&Uo.flushSync(()=>e.dispatchEvent(t))}import{jsx as Cn}from"react/jsx-runtime";var ba=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Sn="VisuallyHidden",wn=Ho.forwardRef((e,t)=>Cn(W.span,{...e,ref:t,style:{...ba,...e.style}}));wn.displayName=Sn;import*as qe from"react";import{jsx as vn}from"react/jsx-runtime";function ut(e,t=[]){let a=[];function o(l,s){let n=qe.createContext(s);n.displayName=l+"Context";let d=a.length;a=[...a,s];let u=c=>{let{scope:m,children:p,...x}=c,i=m?.[e]?.[d]||n,h=qe.useMemo(()=>x,Object.values(x));return vn(i.Provider,{value:h,children:p})};u.displayName=l+"Provider";function f(c,m){let p=m?.[e]?.[d]||n,x=qe.useContext(p);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[u,f]}let r=()=>{let l=a.map(s=>qe.createContext(s));return function(n){let d=n?.[e]||l;return qe.useMemo(()=>({[`__scope${e}`]:{...n,[e]:d}}),[n,d])}};return r.scopeName=e,[o,bn(r,...t)]}function bn(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((n,{useScope:d,scopeName:u})=>{let c=d(l)[`__scope${u}`];return{...n,...c}},{});return qe.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}import*as Re from"react";import{jsx as ya}from"react/jsx-runtime";import*as Et from"react";import{jsx as $i}from"react/jsx-runtime";function _o(e){let t=e+"CollectionProvider",[a,o]=ut(t),[r,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=i=>{let{scope:h,children:L}=i,g=Re.useRef(null),I=Re.useRef(new Map).current;return ya(r,{scope:h,itemMap:I,collectionRef:g,children:L})};s.displayName=t;let n=e+"CollectionSlot",d=Ee(n),u=Re.forwardRef((i,h)=>{let{scope:L,children:g}=i,I=l(n,L),S=Z(h,I.collectionRef);return ya(d,{ref:S,children:g})});u.displayName=n;let f=e+"CollectionItemSlot",c="data-radix-collection-item",m=Ee(f),p=Re.forwardRef((i,h)=>{let{scope:L,children:g,...I}=i,S=Re.useRef(null),b=Z(h,S),R=l(f,L);return Re.useEffect(()=>(R.itemMap.set(S,{ref:S,...I}),()=>void R.itemMap.delete(S))),ya(m,{[c]:"",ref:b,children:g})});p.displayName=f;function x(i){let h=l(e+"CollectionConsumer",i);return Re.useCallback(()=>{let g=h.collectionRef.current;if(!g)return[];let I=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(h.itemMap.values()).sort((R,w)=>I.indexOf(R.ref.current)-I.indexOf(w.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},x,o]}var Yi=!!(typeof window<"u"&&window.document&&window.document.createElement);function te(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as Ce from"react";import*as zo from"react";var Y=globalThis?.document?zo.useLayoutEffect:()=>{};import*as qt from"react";var yn=Ce[" useInsertionEffect ".trim().toString()]||Y;function Ra({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,l,s]=Rn({defaultProp:t,onChange:a}),n=e!==void 0,d=n?e:r;{let f=Ce.useRef(e!==void 0);Ce.useEffect(()=>{let c=f.current;c!==n&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${n?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=n},[n,o])}let u=Ce.useCallback(f=>{if(n){let c=Pn(f)?f(e):f;c!==e&&s.current?.(c)}else l(f)},[n,e,l,s]);return[d,u]}function Rn({defaultProp:e,onChange:t}){let[a,o]=Ce.useState(e),r=Ce.useRef(a),l=Ce.useRef(t);return yn(()=>{l.current=t},[t]),Ce.useEffect(()=>{r.current!==a&&(l.current?.(a),r.current=a)},[a,r]),[a,o,l]}function Pn(e){return typeof e=="function"}var tf=Symbol("RADIX:SYNC_STATE");import*as de from"react";import*as Wo from"react";function kn(e,t){return Wo.useReducer((a,o)=>t[a][o]??a,e)}var Pa=e=>{let{present:t,children:a}=e,o=An(t),r=typeof a=="function"?a({present:o.isPresent}):de.Children.only(a),l=Mn(o.ref,Dn(r));return typeof a=="function"||o.isPresent?de.cloneElement(r,{ref:l}):null};Pa.displayName="Presence";function An(e){let[t,a]=de.useState(),o=de.useRef(null),r=de.useRef(e),l=de.useRef("none"),s=e?"mounted":"unmounted",[n,d]=kn(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return de.useEffect(()=>{let u=Ut(o.current);l.current=n==="mounted"?u:"none"},[n]),Y(()=>{let u=o.current,f=r.current;if(f!==e){let m=l.current,p=Ut(u);e?d("MOUNT"):p==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),Y(()=>{if(t){let u,f=t.ownerDocument.defaultView??window,c=p=>{let i=Ut(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&i&&(d("ANIMATION_END"),!r.current)){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=p=>{p.target===t&&(l.current=Ut(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(n),ref:de.useCallback(u=>{o.current=u?getComputedStyle(u):null,a(u)},[])}}function Vo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mn(...e){let t=de.useRef(e);return t.current=e,de.useCallback(a=>{let o=t.current,r=!1,l=o.map(s=>{let n=Vo(s,a);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let s=0;s{}),Bn=0;function Nt(e){let[t,a]=ka.useState(Tn());return Y(()=>{e||a(o=>o??String(Bn++))},[e]),e||(t?`radix-${t}`:"")}import*as Ht from"react";import{jsx as uf}from"react/jsx-runtime";var On=Ht.createContext(void 0);function Go(e){let t=Ht.useContext(On);return e||t||"ltr"}import*as Q from"react";import*as dt from"react";function Se(e){let t=dt.useRef(e);return dt.useEffect(()=>{t.current=e}),dt.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as Xo from"react";function jo(e,t=globalThis?.document){let a=Se(e);Xo.useEffect(()=>{let o=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[a,t])}import{jsx as Zo}from"react/jsx-runtime";var Fn="DismissableLayer",Aa="dismissableLayer.update",En="dismissableLayer.pointerDownOutside",qn="dismissableLayer.focusOutside",Ko,Yo=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ma=Q.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:n,...d}=e,u=Q.useContext(Yo),[f,c]=Q.useState(null),m=f?.ownerDocument??globalThis?.document,[,p]=Q.useState({}),x=Z(t,w=>c(w)),i=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),L=i.indexOf(h),g=f?i.indexOf(f):-1,I=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=L,b=Hn(w=>{let C=w.target,T=[...u.branches].some(U=>U.contains(C));!S||T||(r?.(w),s?.(w),w.defaultPrevented||n?.())},m),R=_n(w=>{let C=w.target;[...u.branches].some(U=>U.contains(C))||(l?.(w),s?.(w),w.defaultPrevented||n?.())},m);return jo(w=>{g===u.layers.size-1&&(o?.(w),!w.defaultPrevented&&n&&(w.preventDefault(),n()))},m),Q.useEffect(()=>{if(f)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ko=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$o(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(f),u.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ko))}},[f,m,a,u]),Q.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$o())},[f,u]),Q.useEffect(()=>{let w=()=>p({});return document.addEventListener(Aa,w),()=>document.removeEventListener(Aa,w)},[]),Zo(W.div,{...d,ref:x,style:{pointerEvents:I?S?"auto":"none":void 0,...e.style},onFocusCapture:te(e.onFocusCapture,R.onFocusCapture),onBlurCapture:te(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:te(e.onPointerDownCapture,b.onPointerDownCapture)})});Ma.displayName=Fn;var Un="DismissableLayerBranch",Nn=Q.forwardRef((e,t)=>{let a=Q.useContext(Yo),o=Q.useRef(null),r=Z(t,o);return Q.useEffect(()=>{let l=o.current;if(l)return a.branches.add(l),()=>{a.branches.delete(l)}},[a.branches]),Zo(W.div,{...e,ref:r})});Nn.displayName=Un;function Hn(e,t=globalThis?.document){let a=Se(e),o=Q.useRef(!1),r=Q.useRef(()=>{});return Q.useEffect(()=>{let l=n=>{if(n.target&&!o.current){let u=function(){Jo(En,a,f,{discrete:!0})};var d=u;let f={originalEvent:n};n.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",l),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>o.current=!0}}function _n(e,t=globalThis?.document){let a=Se(e),o=Q.useRef(!1);return Q.useEffect(()=>{let r=l=>{l.target&&!o.current&&Jo(qn,a,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $o(){let e=new CustomEvent(Aa);document.dispatchEvent(e)}function Jo(e,t,a,{discrete:o}){let r=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?No(r,l):r.dispatchEvent(l)}import*as we from"react";import{jsx as zn}from"react/jsx-runtime";var Da="focusScope.autoFocusOnMount",Ta="focusScope.autoFocusOnUnmount",Qo={bubbles:!1,cancelable:!0},Vn="FocusScope",Ba=we.forwardRef((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[n,d]=we.useState(null),u=Se(r),f=Se(l),c=we.useRef(null),m=Z(t,i=>d(i)),p=we.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;we.useEffect(()=>{if(o){let g=function(R){if(p.paused||!n)return;let w=R.target;n.contains(w)?c.current=w:He(c.current,{select:!0})},I=function(R){if(p.paused||!n)return;let w=R.relatedTarget;w!==null&&(n.contains(w)||He(c.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(let C of R)C.removedNodes.length>0&&He(n)};var i=g,h=I,L=S;document.addEventListener("focusin",g),document.addEventListener("focusout",I);let b=new MutationObserver(S);return n&&b.observe(n,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",I),b.disconnect()}}},[o,n,p.paused]),we.useEffect(()=>{if(n){tr.add(p);let i=document.activeElement;if(!n.contains(i)){let L=new CustomEvent(Da,Qo);n.addEventListener(Da,u),n.dispatchEvent(L),L.defaultPrevented||(Wn($n(or(n)),{select:!0}),document.activeElement===i&&He(n))}return()=>{n.removeEventListener(Da,u),setTimeout(()=>{let L=new CustomEvent(Ta,Qo);n.addEventListener(Ta,f),n.dispatchEvent(L),L.defaultPrevented||He(i??document.body,{select:!0}),n.removeEventListener(Ta,f),tr.remove(p)},0)}}},[n,u,f,p]);let x=we.useCallback(i=>{if(!a&&!o||p.paused)return;let h=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,L=document.activeElement;if(h&&L){let g=i.currentTarget,[I,S]=Gn(g);I&&S?!i.shiftKey&&L===S?(i.preventDefault(),a&&He(I,{select:!0})):i.shiftKey&&L===I&&(i.preventDefault(),a&&He(S,{select:!0})):L===g&&i.preventDefault()}},[a,o,p.paused]);return zn(W.div,{tabIndex:-1,...s,ref:m,onKeyDown:x})});Ba.displayName=Vn;function Wn(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(He(o,{select:t}),document.activeElement!==a)return}function Gn(e){let t=or(e),a=er(t,e),o=er(t.reverse(),e);return[a,o]}function or(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function er(e,t){for(let a of e)if(!Xn(a,{upTo:t}))return a}function Xn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jn(e){return e instanceof HTMLInputElement&&"select"in e}function He(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&jn(e)&&t&&e.select()}}var tr=Kn();function Kn(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=ar(e,t),e.unshift(t)},remove(t){e=ar(e,t),e[0]?.resume()}}}function ar(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function $n(e){return e.filter(t=>t.tagName!=="A")}import*as _t from"react";import*as rr from"react-dom";import{jsx as Zn}from"react/jsx-runtime";var Yn="Portal",Oa=_t.forwardRef((e,t)=>{let{container:a,...o}=e,[r,l]=_t.useState(!1);Y(()=>l(!0),[]);let s=a||r&&globalThis?.document?.body;return s?rr.createPortal(Zn(W.div,{...o,ref:t}),s):null});Oa.displayName=Yn;import*as sr from"react";var zt=0,it=null;function nr(){sr.useEffect(()=>{it||(it={start:lr(),end:lr()});let{start:e,end:t}=it;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),zt++,()=>{zt===1&&(it?.start.remove(),it?.end.remove(),it=null),zt=Math.max(0,zt-1)}},[])}function lr(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var he=function(){return he=Object.assign||function(t){for(var a,o=1,r=arguments.length;o"u")return lu;var t=su(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var nu=St(),ft="data-scroll-locked",uu=function(e,t,a,o){var r=e.left,l=e.top,s=e.right,n=e.gap;return a===void 0&&(a="margin"),` - .`.concat(Fa,` { - overflow: hidden `).concat(o,`; - padding-right: `).concat(n,"px ").concat(o,`; - } - body[`).concat(ft,`] { - overflow: hidden `).concat(o,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(n,"px ").concat(o,`; - `),a==="padding"&&"padding-right: ".concat(n,"px ").concat(o,";")].filter(Boolean).join(""),` - } - - .`).concat(je,` { - right: `).concat(n,"px ").concat(o,`; - } - - .`).concat(Ke,` { - margin-right: `).concat(n,"px ").concat(o,`; - } - - .`).concat(je," .").concat(je,` { - right: 0 `).concat(o,`; - } - - .`).concat(Ke," .").concat(Ke,` { - margin-right: 0 `).concat(o,`; - } - - body[`).concat(ft,`] { - `).concat(Ea,": ").concat(n,`px; - } -`)},xr=function(){var e=parseInt(document.body.getAttribute(ft)||"0",10);return isFinite(e)?e:0},du=function(){ct.useEffect(function(){return document.body.setAttribute(ft,(xr()+1).toString()),function(){var e=xr()-1;e<=0?document.body.removeAttribute(ft):document.body.setAttribute(ft,e.toString())}},[])},Ga=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;du();var l=ct.useMemo(function(){return Wa(r)},[r]);return ct.createElement(nu,{styles:uu(l,!t,r,a?"":"!important")})};var Xa=!1;if(typeof window<"u")try{wt=Object.defineProperty({},"passive",{get:function(){return Xa=!0,!0}}),window.addEventListener("test",wt,wt),window.removeEventListener("test",wt,wt)}catch{Xa=!1}var wt,$e=Xa?{passive:!1}:!1;var iu=function(e){return e.tagName==="TEXTAREA"},gr=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!iu(e)&&a[t]==="visible")},fu=function(e){return gr(e,"overflowY")},cu=function(e){return gr(e,"overflowX")},ja=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Lr(e,o);if(r){var l=Ir(e,o),s=l[1],n=l[2];if(s>n)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},pu=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},mu=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},Lr=function(e,t){return e==="v"?fu(t):cu(t)},Ir=function(e,t){return e==="v"?pu(t):mu(t)},hu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cr=function(e,t,a,o,r){var l=hu(e,window.getComputedStyle(t).direction),s=l*o,n=a.target,d=t.contains(n),u=!1,f=s>0,c=0,m=0;do{if(!n)break;var p=Ir(e,n),x=p[0],i=p[1],h=p[2],L=i-h-l*x;(x||L)&&Lr(e,n)&&(c+=L,m+=x);var g=n.parentNode;n=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!d&&n!==document.body||d&&(t.contains(n)||t===n));return(f&&(r&&Math.abs(c)<1||!r&&s>c)||!f&&(r&&Math.abs(m)<1||!r&&-s>m))&&(u=!0),u};var jt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sr=function(e){return[e.deltaX,e.deltaY]},wr=function(e){return e&&"current"in e?e.current:e},xu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gu=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Lu=0,pt=[];function vr(e){var t=$.useRef([]),a=$.useRef([0,0]),o=$.useRef(),r=$.useState(Lu++)[0],l=$.useState(St)[0],s=$.useRef(e);$.useEffect(function(){s.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var i=ur([e.lockRef.current],(e.shards||[]).map(wr),!0).filter(Boolean);return i.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),i.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var n=$.useCallback(function(i,h){if("touches"in i&&i.touches.length===2||i.type==="wheel"&&i.ctrlKey)return!s.current.allowPinchZoom;var L=jt(i),g=a.current,I="deltaX"in i?i.deltaX:g[0]-L[0],S="deltaY"in i?i.deltaY:g[1]-L[1],b,R=i.target,w=Math.abs(I)>Math.abs(S)?"h":"v";if("touches"in i&&w==="h"&&R.type==="range")return!1;var C=window.getSelection(),T=C&&C.anchorNode,U=T?T===R||T.contains(R):!1;if(U)return!1;var N=ja(w,R);if(!N)return!0;if(N?b=w:(b=w==="v"?"h":"v",N=ja(w,R)),!N)return!1;if(!o.current&&"changedTouches"in i&&(I||S)&&(o.current=b),!b)return!0;var H=o.current||b;return Cr(H,h,i,H==="h"?I:S,!0)},[]),d=$.useCallback(function(i){var h=i;if(!(!pt.length||pt[pt.length-1]!==l)){var L="deltaY"in h?Sr(h):jt(h),g=t.current.filter(function(b){return b.name===h.type&&(b.target===h.target||h.target===b.shadowParent)&&xu(b.delta,L)})[0];if(g&&g.should){h.cancelable&&h.preventDefault();return}if(!g){var I=(s.current.shards||[]).map(wr).filter(Boolean).filter(function(b){return b.contains(h.target)}),S=I.length>0?n(h,I[0]):!s.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),u=$.useCallback(function(i,h,L,g){var I={name:i,delta:h,target:L,should:g,shadowParent:Iu(L)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(S){return S!==I})},1)},[]),f=$.useCallback(function(i){a.current=jt(i),o.current=void 0},[]),c=$.useCallback(function(i){u(i.type,Sr(i),i.target,n(i,e.lockRef.current))},[]),m=$.useCallback(function(i){u(i.type,jt(i),i.target,n(i,e.lockRef.current))},[]);$.useEffect(function(){return pt.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",d,$e),document.addEventListener("touchmove",d,$e),document.addEventListener("touchstart",f,$e),function(){pt=pt.filter(function(i){return i!==l}),document.removeEventListener("wheel",d,$e),document.removeEventListener("touchmove",d,$e),document.removeEventListener("touchstart",f,$e)}},[]);var p=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(l,{styles:gu(r)}):null,p?$.createElement(Ga,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Iu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var br=Na(Xt,vr);var yr=Kt.forwardRef(function(e,t){return Kt.createElement(Ct,he({},e,{ref:t,sideCar:br}))});yr.classNames=Ct.classNames;var Ka=yr;var Cu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,$t=new WeakMap,Zt={},$a=0,Rr=function(e){return e&&(e.host||Rr(e.parentNode))},Su=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=Rr(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},wu=function(e,t,a,o){var r=Su(t,Array.isArray(e)?e:[e]);Zt[a]||(Zt[a]=new WeakMap);var l=Zt[a],s=[],n=new Set,d=new Set(r),u=function(c){!c||n.has(c)||(n.add(c),u(c.parentNode))};r.forEach(u);var f=function(c){!c||d.has(c)||Array.prototype.forEach.call(c.children,function(m){if(n.has(m))f(m);else try{var p=m.getAttribute(o),x=p!==null&&p!=="false",i=(mt.get(m)||0)+1,h=(l.get(m)||0)+1;mt.set(m,i),l.set(m,h),s.push(m),i===1&&x&&$t.set(m,!0),h===1&&m.setAttribute(a,"true"),x||m.setAttribute(o,"true")}catch(L){console.error("aria-hidden: cannot operate on ",m,L)}})};return f(t),n.clear(),$a++,function(){s.forEach(function(c){var m=mt.get(c)-1,p=l.get(c)-1;mt.set(c,m),l.set(c,p),m||($t.has(c)||c.removeAttribute(o),$t.delete(c)),p||c.removeAttribute(a)}),$a--,$a||(mt=new WeakMap,mt=new WeakMap,$t=new WeakMap,Zt={})}},Pr=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||Cu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),wu(o,r,a,"aria-hidden")):function(){return null}};import*as Yt from"react";function kr(e){let t=Yt.useRef({value:e,previous:e});return Yt.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}import*as Ar from"react";function Mr(e){let[t,a]=Ar.useState(void 0);return Y(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let l=r[0],s,n;if("borderBoxSize"in l){let d=l.borderBoxSize,u=Array.isArray(d)?d[0]:d;s=u.inlineSize,n=u.blockSize}else s=e.offsetWidth,n=e.offsetHeight;a({width:s,height:n})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}import*as ne from"react";var Br=["top","right","bottom","left"];var De=Math.min,ce=Math.max,bt=Math.round,yt=Math.floor,Pe=e=>({x:e,y:e}),vu={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(e,t,a){return ce(e,De(t,a))}function Te(e,t){return typeof e=="function"?e(t):e}function Be(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function ea(e){return e==="x"?"y":"x"}function ta(e){return e==="y"?"height":"width"}function ke(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function aa(e){return ea(ke(e))}function Or(e,t,a){a===void 0&&(a=!1);let o=Ze(e),r=aa(e),l=ta(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=vt(s)),[s,vt(s)]}function Fr(e){let t=vt(e);return[Jt(e),t,Jt(t)]}function Jt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Dr=["left","right"],Tr=["right","left"],bu=["top","bottom"],yu=["bottom","top"];function Ru(e,t,a){switch(e){case"top":case"bottom":return a?t?Tr:Dr:t?Dr:Tr;case"left":case"right":return t?bu:yu;default:return[]}}function Er(e,t,a,o){let r=Ze(e),l=Ru(Be(e),a==="start",o);return r&&(l=l.map(s=>s+"-"+r),t&&(l=l.concat(l.map(Jt)))),l}function vt(e){let t=Be(e);return vu[t]+e.slice(t.length)}function Pu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Za(e){return typeof e!="number"?Pu(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function qr(e,t,a){let{reference:o,floating:r}=e,l=ke(t),s=aa(t),n=ta(s),d=Be(t),u=l==="y",f=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,m=o[n]/2-r[n]/2,p;switch(d){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(Ze(t)){case"start":p[s]-=m*(a&&u?-1:1);break;case"end":p[s]+=m*(a&&u?-1:1);break}return p}async function Hr(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:l,rects:s,elements:n,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:m=!1,padding:p=0}=Te(t,e),x=Za(p),h=n[m?c==="floating"?"reference":"floating":c],L=Ye(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(h)))==null||a?h:h.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(n.floating)),boundary:u,rootBoundary:f,strategy:d})),g=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n.floating)),S=await(l.isElement==null?void 0:l.isElement(I))?await(l.getScale==null?void 0:l.getScale(I))||{x:1,y:1}:{x:1,y:1},b=Ye(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:g,offsetParent:I,strategy:d}):g);return{top:(L.top-b.top+x.top)/S.y,bottom:(b.bottom-L.bottom+x.bottom)/S.y,left:(L.left-b.left+x.left)/S.x,right:(b.right-L.right+x.right)/S.x}}var ku=50,_r=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:s}=a,n=s.detectOverflow?s:{...s,detectOverflow:Hr},d=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:c}=qr(u,o,d),m=o,p=0,x={};for(let i=0;i({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:l,platform:s,elements:n,middlewareData:d}=t,{element:u,padding:f=0}=Te(e,t)||{};if(u==null)return{};let c=Za(f),m={x:a,y:o},p=aa(r),x=ta(p),i=await s.getDimensions(u),h=p==="y",L=h?"top":"left",g=h?"bottom":"right",I=h?"clientHeight":"clientWidth",S=l.reference[x]+l.reference[p]-m[p]-l.floating[x],b=m[p]-l.reference[p],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),w=R?R[I]:0;(!w||!await(s.isElement==null?void 0:s.isElement(R)))&&(w=n.floating[I]||l.floating[x]);let C=S/2-b/2,T=w/2-i[x]/2-1,U=De(c[L],T),N=De(c[g],T),H=U,V=w-i[x]-N,E=w/2-i[x]/2+C,z=Qt(H,E,V),B=!d.arrow&&Ze(r)!=null&&E!==z&&l.reference[x]/2-(EE<=0)){var N,H;let E=(((N=l.flip)==null?void 0:N.index)||0)+1,z=w[E];if(z&&(!(c==="alignment"?g!==ke(z):!1)||U.every(M=>ke(M.placement)===g?M.overflows[0]>0:!0)))return{data:{index:E,overflows:U},reset:{placement:z}};let B=(H=U.filter(F=>F.overflows[0]<=0).sort((F,M)=>F.overflows[1]-M.overflows[1])[0])==null?void 0:H.placement;if(!B)switch(p){case"bestFit":{var V;let F=(V=U.filter(M=>{if(R){let _=ke(M.placement);return _===g||_==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(_=>_>0).reduce((_,y)=>_+y,0)]).sort((M,_)=>M[1]-_[1])[0])==null?void 0:V[0];F&&(B=F);break}case"initialPlacement":B=n;break}if(r!==B)return{reset:{placement:B}}}return{}}}};function Ur(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nr(e){return Br.some(t=>e[t]>=0)}var Wr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...l}=Te(e,t);switch(r){case"referenceHidden":{let s=await o.detectOverflow(t,{...l,elementContext:"reference"}),n=Ur(s,a.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Nr(n)}}}case"escaped":{let s=await o.detectOverflow(t,{...l,altBoundary:!0}),n=Ur(s,a.floating);return{data:{escapedOffsets:n,escaped:Nr(n)}}}default:return{}}}}};var Gr=new Set(["left","top"]);async function Au(e,t){let{placement:a,platform:o,elements:r}=e,l=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Be(a),n=Ze(a),d=ke(a)==="y",u=Gr.has(s)?-1:1,f=l&&d?-1:1,c=Te(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:x}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return n&&typeof x=="number"&&(p=n==="end"?x*-1:x),d?{x:p*f,y:m*u}:{x:m*u,y:p*f}}var Xr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:l,placement:s,middlewareData:n}=t,d=await Au(t,e);return s===((a=n.offset)==null?void 0:a.placement)&&(o=n.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:l+d.y,data:{...d,placement:s}}}}},jr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:l}=t,{mainAxis:s=!0,crossAxis:n=!1,limiter:d={fn:L=>{let{x:g,y:I}=L;return{x:g,y:I}}},...u}=Te(e,t),f={x:a,y:o},c=await l.detectOverflow(t,u),m=ke(Be(r)),p=ea(m),x=f[p],i=f[m];if(s){let L=p==="y"?"top":"left",g=p==="y"?"bottom":"right",I=x+c[L],S=x-c[g];x=Qt(I,x,S)}if(n){let L=m==="y"?"top":"left",g=m==="y"?"bottom":"right",I=i+c[L],S=i-c[g];i=Qt(I,i,S)}let h=d.fn({...t,[p]:x,[m]:i});return{...h,data:{x:h.x-a,y:h.y-o,enabled:{[p]:s,[m]:n}}}}}},Kr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:l,middlewareData:s}=t,{offset:n=0,mainAxis:d=!0,crossAxis:u=!0}=Te(e,t),f={x:a,y:o},c=ke(r),m=ea(c),p=f[m],x=f[c],i=Te(n,t),h=typeof i=="number"?{mainAxis:i,crossAxis:0}:{mainAxis:0,crossAxis:0,...i};if(d){let I=m==="y"?"height":"width",S=l.reference[m]-l.floating[I]+h.mainAxis,b=l.reference[m]+l.reference[I]-h.mainAxis;pb&&(p=b)}if(u){var L,g;let I=m==="y"?"width":"height",S=Gr.has(Be(r)),b=l.reference[c]-l.floating[I]+(S&&((L=s.offset)==null?void 0:L[c])||0)+(S?0:h.crossAxis),R=l.reference[c]+l.reference[I]+(S?0:((g=s.offset)==null?void 0:g[c])||0)-(S?h.crossAxis:0);xR&&(x=R)}return{[m]:p,[c]:x}}}},$r=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:l,platform:s,elements:n}=t,{apply:d=()=>{},...u}=Te(e,t),f=await s.detectOverflow(t,u),c=Be(r),m=Ze(r),p=ke(r)==="y",{width:x,height:i}=l.floating,h,L;c==="top"||c==="bottom"?(h=c,L=m===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(L=c,h=m==="end"?"top":"bottom");let g=i-f.top-f.bottom,I=x-f.left-f.right,S=De(i-f[h],g),b=De(x-f[L],I),R=!t.middlewareData.shift,w=S,C=b;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(C=I),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(w=g),R&&!m){let U=ce(f.left,0),N=ce(f.right,0),H=ce(f.top,0),V=ce(f.bottom,0);p?C=x-2*(U!==0||N!==0?U+N:ce(f.left,f.right)):w=i-2*(H!==0||V!==0?H+V:ce(f.top,f.bottom))}await d({...t,availableWidth:C,availableHeight:w});let T=await s.getDimensions(n.floating);return x!==T.width||i!==T.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function et(e){return Yr(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ae(e){var t;return(t=(Yr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yr(e){return oa()?e instanceof Node||e instanceof xe(e).Node:!1}function ve(e){return oa()?e instanceof Element||e instanceof xe(e).Element:!1}function Oe(e){return oa()?e instanceof HTMLElement||e instanceof xe(e).HTMLElement:!1}function Zr(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot}function ht(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function Jr(e){return/^(table|td|th)$/.test(et(e))}function Rt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Mu=/transform|translate|scale|rotate|perspective|filter/,Du=/paint|layout|strict|content/,Je=e=>!!e&&e!=="none",Ya;function ra(e){let t=ve(e)?be(e):e;return Je(t.transform)||Je(t.translate)||Je(t.scale)||Je(t.rotate)||Je(t.perspective)||!la()&&(Je(t.backdropFilter)||Je(t.filter))||Mu.test(t.willChange||"")||Du.test(t.contain||"")}function Qr(e){let t=Ue(e);for(;Oe(t)&&!tt(t);){if(ra(t))return t;if(Rt(t))return null;t=Ue(t)}return null}function la(){return Ya==null&&(Ya=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ya}function tt(e){return/^(html|body|#document)$/.test(et(e))}function be(e){return xe(e).getComputedStyle(e)}function Pt(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ue(e){if(et(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Zr(e)&&e.host||Ae(e);return Zr(t)?t.host:t}function el(e){let t=Ue(e);return tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oe(t)&&ht(t)?t:el(t)}function Qe(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=el(e),l=r===((o=e.ownerDocument)==null?void 0:o.body),s=xe(r);if(l){let n=sa(s);return t.concat(s,s.visualViewport||[],ht(r)?r:[],n&&a?Qe(n):[])}else return t.concat(r,Qe(r,[],a))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=be(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Oe(e),l=r?e.offsetWidth:a,s=r?e.offsetHeight:o,n=bt(a)!==l||bt(o)!==s;return n&&(a=l,o=s),{width:a,height:o,$:n}}function Qa(e){return ve(e)?e:e.contextElement}function xt(e){let t=Qa(e);if(!Oe(t))return Pe(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:l}=rl(t),s=(l?bt(a.width):a.width)/o,n=(l?bt(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var Tu=Pe(0);function ll(e){let t=xe(e);return!la()||!t.visualViewport?Tu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bu(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==xe(e)?!1:t}function at(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),l=Qa(e),s=Pe(1);t&&(o?ve(o)&&(s=xt(o)):s=xt(e));let n=Bu(l,a,o)?ll(l):Pe(0),d=(r.left+n.x)/s.x,u=(r.top+n.y)/s.y,f=r.width/s.x,c=r.height/s.y;if(l){let m=xe(l),p=o&&ve(o)?xe(o):o,x=m,i=sa(x);for(;i&&o&&p!==x;){let h=xt(i),L=i.getBoundingClientRect(),g=be(i),I=L.left+(i.clientLeft+parseFloat(g.paddingLeft))*h.x,S=L.top+(i.clientTop+parseFloat(g.paddingTop))*h.y;d*=h.x,u*=h.y,f*=h.x,c*=h.y,d+=I,u+=S,x=xe(i),i=sa(x)}}return Ye({width:f,height:c,x:d,y:u})}function na(e,t){let a=Pt(e).scrollLeft;return t?t.left+a:at(Ae(e)).left+a}function sl(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-na(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Ou(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,l=r==="fixed",s=Ae(o),n=t?Rt(t.floating):!1;if(o===s||n&&l)return a;let d={scrollLeft:0,scrollTop:0},u=Pe(1),f=Pe(0),c=Oe(o);if((c||!c&&!l)&&((et(o)!=="body"||ht(s))&&(d=Pt(o)),c)){let p=at(o);u=xt(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}let m=s&&!c&&!l?sl(s,d):Pe(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:a.y*u.y-d.scrollTop*u.y+f.y+m.y}}function Fu(e){return Array.from(e.getClientRects())}function Eu(e){let t=Ae(e),a=Pt(e),o=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=ce(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+na(e),n=-a.scrollTop;return be(o).direction==="rtl"&&(s+=ce(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:s,y:n}}var tl=25;function qu(e,t){let a=xe(e),o=Ae(e),r=a.visualViewport,l=o.clientWidth,s=o.clientHeight,n=0,d=0;if(r){l=r.width,s=r.height;let f=la();(!f||f&&t==="fixed")&&(n=r.offsetLeft,d=r.offsetTop)}let u=na(o);if(u<=0){let f=o.ownerDocument,c=f.body,m=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(o.clientWidth-c.clientWidth-p);x<=tl&&(l-=x)}else u<=tl&&(l+=u);return{width:l,height:s,x:n,y:d}}function Uu(e,t){let a=at(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,l=Oe(e)?xt(e):Pe(1),s=e.clientWidth*l.x,n=e.clientHeight*l.y,d=r*l.x,u=o*l.y;return{width:s,height:n,x:d,y:u}}function al(e,t,a){let o;if(t==="viewport")o=qu(e,a);else if(t==="document")o=Eu(Ae(e));else if(ve(t))o=Uu(t,a);else{let r=ll(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ye(o)}function nl(e,t){let a=Ue(e);return a===t||!ve(a)||tt(a)?!1:be(a).position==="fixed"||nl(a,t)}function Nu(e,t){let a=t.get(e);if(a)return a;let o=Qe(e,[],!1).filter(n=>ve(n)&&et(n)!=="body"),r=null,l=be(e).position==="fixed",s=l?Ue(e):e;for(;ve(s)&&!tt(s);){let n=be(s),d=ra(s);!d&&n.position==="fixed"&&(r=null),(l?!d&&!r:!d&&n.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||ht(s)&&!d&&nl(e,s))?o=o.filter(f=>f!==s):r=n,s=Ue(s)}return t.set(e,o),o}function Hu(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Rt(t)?[]:Nu(t,this._c):[].concat(a),o],n=al(t,s[0],r),d=n.top,u=n.right,f=n.bottom,c=n.left;for(let m=1;m{s(!1,1e-7)},1e3)}w===1&&!il(u,e.getBoundingClientRect())&&s(),S=!1}try{a=new IntersectionObserver(b,{...I,root:r.ownerDocument})}catch{a=new IntersectionObserver(b,I)}a.observe(e)}return s(!0),l}function eo(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,u=Qa(e),f=r||l?[...u?Qe(u):[],...t?Qe(t):[]]:[];f.forEach(L=>{r&&L.addEventListener("scroll",a,{passive:!0}),l&&L.addEventListener("resize",a)});let c=u&&n?Gu(u,a):null,m=-1,p=null;s&&(p=new ResizeObserver(L=>{let[g]=L;g&&g.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var I;(I=p)==null||I.observe(t)})),a()}),u&&!d&&p.observe(u),t&&p.observe(t));let x,i=d?at(e):null;d&&h();function h(){let L=at(e);i&&!il(i,L)&&a(),i=L,x=requestAnimationFrame(h)}return a(),()=>{var L;f.forEach(g=>{r&&g.removeEventListener("scroll",a),l&&g.removeEventListener("resize",a)}),c?.(),(L=p)==null||L.disconnect(),p=null,d&&cancelAnimationFrame(x)}}var fl=Xr;var cl=jr,pl=Vr,ml=$r,hl=Wr,to=zr;var xl=Kr,ao=(e,t,a)=>{let o=new Map,r={platform:dl,...a},l={...r.platform,_c:o};return _r(e,t,{...r,platform:l})};import*as ae from"react";import{useLayoutEffect as Xu}from"react";import*as Ll from"react-dom";var ju=typeof document<"u",Ku=function(){},ua=ju?Xu:Ku;function da(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 a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!da(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let l=r[o];if(!(l==="_owner"&&e.$$typeof)&&!da(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Il(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gl(e,t){let a=Il(e);return Math.round(t*a)/a}function oo(e){let t=ae.useRef(e);return ua(()=>{t.current=e}),t}function Cl(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:l,floating:s}={},transform:n=!0,whileElementsMounted:d,open:u}=e,[f,c]=ae.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=ae.useState(o);da(m,o)||p(o);let[x,i]=ae.useState(null),[h,L]=ae.useState(null),g=ae.useCallback(M=>{M!==R.current&&(R.current=M,i(M))},[]),I=ae.useCallback(M=>{M!==w.current&&(w.current=M,L(M))},[]),S=l||x,b=s||h,R=ae.useRef(null),w=ae.useRef(null),C=ae.useRef(f),T=d!=null,U=oo(d),N=oo(r),H=oo(u),V=ae.useCallback(()=>{if(!R.current||!w.current)return;let M={placement:t,strategy:a,middleware:m};N.current&&(M.platform=N.current),ao(R.current,w.current,M).then(_=>{let y={..._,isPositioned:H.current!==!1};E.current&&!da(C.current,y)&&(C.current=y,Ll.flushSync(()=>{c(y)}))})},[m,t,a,N,H]);ua(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,c(M=>({...M,isPositioned:!1})))},[u]);let E=ae.useRef(!1);ua(()=>(E.current=!0,()=>{E.current=!1}),[]),ua(()=>{if(S&&(R.current=S),b&&(w.current=b),S&&b){if(U.current)return U.current(S,b,V);V()}},[S,b,V,U,T]);let z=ae.useMemo(()=>({reference:R,floating:w,setReference:g,setFloating:I}),[g,I]),B=ae.useMemo(()=>({reference:S,floating:b}),[S,b]),F=ae.useMemo(()=>{let M={position:a,left:0,top:0};if(!B.floating)return M;let _=gl(B.floating,f.x),y=gl(B.floating,f.y);return n?{...M,transform:"translate("+_+"px, "+y+"px)",...Il(B.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:_,top:y}},[a,n,B.floating,f.x,f.y]);return ae.useMemo(()=>({...f,update:V,refs:z,elements:B,floatingStyles:F}),[f,V,z,B,F])}var $u=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?to({element:o.current,padding:r}).fn(a):{}:o?to({element:o,padding:r}).fn(a):{}}}},Sl=(e,t)=>{let a=fl(e);return{name:a.name,fn:a.fn,options:[e,t]}},wl=(e,t)=>{let a=cl(e);return{name:a.name,fn:a.fn,options:[e,t]}},vl=(e,t)=>({fn:xl(e).fn,options:[e,t]}),bl=(e,t)=>{let a=pl(e);return{name:a.name,fn:a.fn,options:[e,t]}},yl=(e,t)=>{let a=ml(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Rl=(e,t)=>{let a=hl(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Pl=(e,t)=>{let a=$u(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as Al from"react";import{jsx as kl}from"react/jsx-runtime";var Zu="Arrow",Ml=Al.forwardRef((e,t)=>{let{children:a,width:o=10,height:r=5,...l}=e;return kl(W.svg,{...l,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:kl("polygon",{points:"0,0 30,0 15,10"})})});Ml.displayName=Zu;var Dl=Ml;import{jsx as ot}from"react/jsx-runtime";var ro="Popper",[Tl,lo]=ut(ro),[Ju,Bl]=Tl(ro),Ol=e=>{let{__scopePopper:t,children:a}=e,[o,r]=ne.useState(null),[l,s]=ne.useState(void 0);return ot(Ju,{scope:t,anchor:o,onAnchorChange:r,placementState:l,setPlacementState:s,children:a})};Ol.displayName=ro;var Fl="PopperAnchor",El=ne.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,l=Bl(Fl,a),s=ne.useRef(null),n=l.onAnchorChange,d=ne.useCallback(x=>{s.current=x,x&&n(x)},[n]),u=Z(t,d),f=ne.useRef(null);ne.useEffect(()=>{if(!o)return;let x=f.current;f.current=o.current,x!==f.current&&n(f.current)});let c=l.placementState&&no(l.placementState),m=c?.[0],p=c?.[1];return o?null:ot(W.div,{"data-radix-popper-side":m,"data-radix-popper-align":p,...r,ref:u})});El.displayName=Fl;var so="PopperContent",[Qu,ed]=Tl(so),ql=ne.forwardRef((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:l="center",alignOffset:s=0,arrowPadding:n=0,avoidCollisions:d=!0,collisionBoundary:u,collisionPadding:f=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:x,...i}=e,h=Bl(so,a),[L,g]=ne.useState(null),I=Z(t,X=>g(X)),[S,b]=ne.useState(null),R=Mr(S),w=R?.width??0,C=R?.height??0,T=o+(l!=="center"?"-"+l:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},N=u?Array.isArray(u)?u:[u]:void 0,H=N!==void 0&&N.length>0,V={padding:U,boundary:N?.filter(ad),altBoundary:H},{refs:E,floatingStyles:z,placement:B,isPositioned:F,middlewareData:M}=Cl({strategy:"fixed",placement:T,whileElementsMounted:(...X)=>eo(...X,{animationFrame:p==="always"}),elements:{reference:h.anchor},middleware:[Sl({mainAxis:r+C,alignmentAxis:s}),d&&wl({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?vl():void 0,...V}),d&&bl({...V}),yl({...V,apply:({elements:X,rects:q,availableWidth:j,availableHeight:G})=>{let{width:K,height:Le}=q.reference,le=X.floating.style;le.setProperty("--radix-popper-available-width",`${j}px`),le.setProperty("--radix-popper-available-height",`${G}px`),le.setProperty("--radix-popper-anchor-width",`${K}px`),le.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),S&&Pl({element:S,padding:n}),od({arrowWidth:w,arrowHeight:C}),m&&Rl({strategy:"referenceHidden",...V})]}),_=h.setPlacementState;Y(()=>(_(B),()=>{_(void 0)}),[B,_]);let[y,ue]=no(B),ge=Se(x);Y(()=>{F&&ge?.()},[F,ge]);let ye=M.arrow?.x,Ie=M.arrow?.y,ee=M.arrow?.centerOffset!==0,[J,A]=ne.useState();return Y(()=>{L&&A(window.getComputedStyle(L).zIndex)},[L]),ot("div",{ref:E.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:F?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ot(Qu,{scope:a,placedSide:y,placedAlign:ue,onArrowChange:b,arrowX:ye,arrowY:Ie,shouldHideArrow:ee,children:ot(W.div,{"data-side":y,"data-align":ue,...i,ref:I,style:{...i.style,animation:F?void 0:"none"}})})})});ql.displayName=so;var Ul="PopperArrow",td={top:"bottom",right:"left",bottom:"top",left:"right"},Nl=ne.forwardRef(function(t,a){let{__scopePopper:o,...r}=t,l=ed(Ul,o),s=td[l.placedSide];return ot("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:ot(Dl,{...r,ref:a,style:{...r.style,display:"block"}})})});Nl.displayName=Ul;function ad(e){return e!==null}var od=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,n=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,f]=no(a),c={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+n/2,p=(r.arrow?.y??0)+d/2,x="",i="";return u==="bottom"?(x=s?c:`${m}px`,i=`${-d}px`):u==="top"?(x=s?c:`${m}px`,i=`${o.floating.height+d}px`):u==="right"?(x=`${-d}px`,i=s?c:`${p}px`):u==="left"&&(x=`${o.floating.width+d}px`,i=s?c:`${p}px`),{data:{x,y:i}}}});function no(e){let[t,a="center"]=e.split("-");return[t,a]}var Hl=Ol,_l=El,zl=ql,Vl=Nl;var ia={};va(ia,{Label:()=>uo,Root:()=>nd});import*as Wl from"react";import{jsx as ld}from"react/jsx-runtime";var sd="Label",uo=Wl.forwardRef((e,t)=>ld(W.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));uo.displayName=sd;var nd=uo;function io(e,[t,a]){return Math.min(a,Math.max(t,e))}var pe={};va(pe,{Arrow:()=>Is,Content:()=>Ql,Group:()=>ss,Icon:()=>Zl,Item:()=>is,ItemIndicator:()=>ps,ItemText:()=>fs,Label:()=>us,Portal:()=>Jl,Root:()=>Gl,ScrollDownButton:()=>hs,ScrollUpButton:()=>ms,Select:()=>Gl,SelectArrow:()=>Is,SelectContent:()=>Ql,SelectGroup:()=>ss,SelectIcon:()=>Zl,SelectItem:()=>is,SelectItemIndicator:()=>ps,SelectItemText:()=>fs,SelectLabel:()=>us,SelectPortal:()=>Jl,SelectScrollDownButton:()=>hs,SelectScrollUpButton:()=>ms,SelectSeparator:()=>gs,SelectTrigger:()=>jl,SelectValue:()=>$l,SelectViewport:()=>rs,Separator:()=>gs,Trigger:()=>jl,Value:()=>$l,Viewport:()=>rs,createSelectScope:()=>fd,unstable_BubbleInput:()=>Io,unstable_Provider:()=>go,unstable_SelectBubbleInput:()=>Io,unstable_SelectProvider:()=>go});import*as v from"react";import*as ho from"react-dom";import{Fragment as xo,jsx as D,jsxs as ca}from"react/jsx-runtime";var ud=[" ","Enter","ArrowUp","ArrowDown"],dd=[" ","Enter"],rt="Select",[pa,ma,id]=_o(rt),[lt,fd]=ut(rt,[id,lo]),ha=lo(),[cd,ze]=lt(rt),[pd,md]=lt(rt),hd="SelectProvider";function go(e){let{__scopeSelect:t,children:a,open:o,defaultOpen:r,onOpenChange:l,value:s,defaultValue:n,onValueChange:d,dir:u,name:f,autoComplete:c,disabled:m,required:p,form:x,internal_do_not_use_render:i}=e,h=ha(t),[L,g]=v.useState(null),[I,S]=v.useState(null),[b,R]=v.useState(!1),w=Go(u),[C,T]=Ra({prop:o,defaultProp:r??!1,onChange:l,caller:rt}),[U,N]=Ra({prop:s,defaultProp:n,onChange:d,caller:rt}),H=v.useRef(null),V=L?!!x||!!L.closest("form"):!0,[E,z]=v.useState(new Set),B=Nt(),F=Array.from(E).map(ue=>ue.props.value).join(";"),M=v.useCallback(ue=>{z(ge=>new Set(ge).add(ue))},[]),_=v.useCallback(ue=>{z(ge=>{let ye=new Set(ge);return ye.delete(ue),ye})},[]),y={required:p,trigger:L,onTriggerChange:g,valueNode:I,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:R,contentId:B,value:U,onValueChange:N,open:C,onOpenChange:T,dir:w,triggerPointerDownPosRef:H,disabled:m,name:f,autoComplete:c,form:x,nativeOptions:E,nativeSelectKey:F,isFormControl:V};return D(Hl,{...h,children:D(cd,{scope:t,...y,children:D(pa.Provider,{scope:t,children:D(pd,{scope:t,onNativeOptionAdd:M,onNativeOptionRemove:_,children:kd(i)?i(y):a})})})})}go.displayName=hd;var Gl=e=>{let{__scopeSelect:t,children:a,...o}=e;return D(go,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>ca(xo,{children:[a,r?D(Io,{__scopeSelect:t}):null]})})};Gl.displayName=rt;var Xl="SelectTrigger",jl=v.forwardRef((e,t)=>{let{__scopeSelect:a,disabled:o=!1,...r}=e,l=ha(a),s=ze(Xl,a),n=s.disabled||o,d=Z(t,s.onTriggerChange),u=ma(a),f=v.useRef("touch"),[c,m,p]=Ss(i=>{let h=u().filter(I=>!I.disabled),L=h.find(I=>I.value===s.value),g=ws(h,i,L);g!==void 0&&s.onValueChange(g.value)}),x=i=>{n||(s.onOpenChange(!0),p()),i&&(s.triggerPointerDownPosRef.current={x:Math.round(i.pageX),y:Math.round(i.pageY)})};return D(_l,{asChild:!0,...l,children:D(W.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:n,"data-disabled":n?"":void 0,"data-placeholder":Co(s.value)?"":void 0,...r,ref:d,onClick:te(r.onClick,i=>{i.currentTarget.focus(),f.current!=="mouse"&&x(i)}),onPointerDown:te(r.onPointerDown,i=>{f.current=i.pointerType;let h=i.target;h.hasPointerCapture(i.pointerId)&&h.releasePointerCapture(i.pointerId),i.button===0&&i.ctrlKey===!1&&i.pointerType==="mouse"&&(x(i),i.preventDefault())}),onKeyDown:te(r.onKeyDown,i=>{let h=c.current!=="";!(i.ctrlKey||i.altKey||i.metaKey)&&i.key.length===1&&m(i.key),!(h&&i.key===" ")&&ud.includes(i.key)&&(x(),i.preventDefault())})})})});jl.displayName=Xl;var Kl="SelectValue",$l=v.forwardRef((e,t)=>{let{__scopeSelect:a,className:o,style:r,children:l,placeholder:s="",...n}=e,d=ze(Kl,a),{onValueNodeHasChildrenChange:u}=d,f=l!==void 0,c=Z(t,d.onValueNodeChange);Y(()=>{u(f)},[u,f]);let m=Co(d.value);return D(W.span,{...n,asChild:m?!1:n.asChild,ref:c,style:{pointerEvents:"none"},children:D(v.Fragment,{children:m?s:l},m?"placeholder":"value")})});$l.displayName=Kl;var xd="SelectIcon",Zl=v.forwardRef((e,t)=>{let{__scopeSelect:a,children:o,...r}=e;return D(W.span,{"aria-hidden":!0,...r,ref:t,children:o||"\u25BC"})});Zl.displayName=xd;var Yl="SelectPortal",[gd,Ld]=lt(Yl,{forceMount:void 0}),Jl=e=>{let{__scopeSelect:t,forceMount:a,...o}=e;return D(gd,{scope:e.__scopeSelect,forceMount:a,children:D(Oa,{asChild:!0,...o})})};Jl.displayName=Yl;var _e="SelectContent",Ql=v.forwardRef((e,t)=>{let a=Ld(_e,e.__scopeSelect),{forceMount:o=a.forceMount,...r}=e,l=ze(_e,e.__scopeSelect),[s,n]=v.useState();return Y(()=>{n(new DocumentFragment)},[]),D(Pa,{present:o||l.open,children:({present:d})=>d?D(as,{...r,ref:t}):D(es,{...r,fragment:s})})});Ql.displayName=_e;var es=v.forwardRef((e,t)=>{let{__scopeSelect:a,children:o,fragment:r}=e;return r?ho.createPortal(D(ts,{scope:a,children:D(pa.Slot,{scope:a,children:D("div",{ref:t,children:o})})}),r):null});es.displayName="SelectContentFragment";var Me=10,[ts,Ve]=lt(_e),Id="SelectContentImpl",Cd=Ee("SelectContent.RemoveScroll"),as=v.forwardRef((e,t)=>{let{__scopeSelect:a}=e,{position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:l,onPointerDownOutside:s,side:n,sideOffset:d,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:p,sticky:x,hideWhenDetached:i,avoidCollisions:h,...L}=e,g=ze(_e,a),[I,S]=v.useState(null),[b,R]=v.useState(null),w=Z(t,A=>S(A)),[C,T]=v.useState(null),[U,N]=v.useState(null),H=ma(a),[V,E]=v.useState(!1),z=v.useRef(!1);v.useEffect(()=>{if(I)return Pr(I)},[I]),nr();let B=v.useCallback(A=>{let[X,...q]=H().map(K=>K.ref.current),[j]=q.slice(-1),G=document.activeElement;for(let K of A)if(K===G||(K?.scrollIntoView({block:"nearest"}),K===X&&b&&(b.scrollTop=0),K===j&&b&&(b.scrollTop=b.scrollHeight),K?.focus(),document.activeElement!==G))return},[H,b]),F=v.useCallback(()=>B([C,I]),[B,C,I]);v.useEffect(()=>{V&&F()},[V,F]);let{onOpenChange:M,triggerPointerDownPosRef:_}=g;v.useEffect(()=>{if(I){let A={x:0,y:0},X=j=>{A={x:Math.abs(Math.round(j.pageX)-(_.current?.x??0)),y:Math.abs(Math.round(j.pageY)-(_.current?.y??0))}},q=j=>{A.x<=10&&A.y<=10?j.preventDefault():j.composedPath().includes(I)||M(!1),document.removeEventListener("pointermove",X),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",q,{capture:!0})}}},[I,M,_]),v.useEffect(()=>{let A=()=>M(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[M]);let[y,ue]=Ss(A=>{let X=H().filter(G=>!G.disabled),q=X.find(G=>G.ref.current===document.activeElement),j=ws(X,A,q);j&&setTimeout(()=>j.ref.current.focus())}),ge=v.useCallback((A,X,q)=>{let j=!z.current&&!q;(g.value!==void 0&&g.value===X||j)&&(T(A),j&&(z.current=!0))},[g.value]),ye=v.useCallback(()=>I?.focus(),[I]),Ie=v.useCallback((A,X,q)=>{let j=!z.current&&!q;(g.value!==void 0&&g.value===X||j)&&N(A)},[g.value]),ee=o==="popper"?fo:os,J=ee===fo?{side:n,sideOffset:d,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:m,collisionPadding:p,sticky:x,hideWhenDetached:i,avoidCollisions:h}:{};return D(ts,{scope:a,content:I,viewport:b,onViewportChange:R,itemRefCallback:ge,selectedItem:C,onItemLeave:ye,itemTextRefCallback:Ie,focusSelectedItem:F,selectedItemText:U,position:o,isPositioned:V,searchRef:y,children:D(Ka,{as:Cd,allowPinchZoom:!0,children:D(Ba,{asChild:!0,trapped:g.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:te(r,A=>{g.trigger?.focus({preventScroll:!0}),A.preventDefault()}),children:D(Ma,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:D(ee,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:A=>A.preventDefault(),...L,...J,onPlaced:()=>E(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...L.style},onKeyDown:te(L.onKeyDown,A=>{let X=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!X&&A.key.length===1&&ue(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let j=H().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(A.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){let G=A.target,K=j.indexOf(G);j=j.slice(K+1)}setTimeout(()=>B(j)),A.preventDefault()}})})})})})})});as.displayName=Id;var Sd="SelectItemAlignedPosition",os=v.forwardRef((e,t)=>{let{__scopeSelect:a,onPlaced:o,...r}=e,l=ze(_e,a),s=Ve(_e,a),[n,d]=v.useState(null),[u,f]=v.useState(null),c=Z(t,w=>f(w)),m=ma(a),p=v.useRef(!1),x=v.useRef(!0),{viewport:i,selectedItem:h,selectedItemText:L,focusSelectedItem:g}=s,I=v.useCallback(()=>{if(l.trigger&&l.valueNode&&n&&u&&i&&h&&L){let w=l.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),T=l.valueNode.getBoundingClientRect(),U=L.getBoundingClientRect();if(l.dir!=="rtl"){let G=U.left-C.left,K=T.left-G,Le=w.left-K,le=w.width+Le,Ca=Math.max(le,C.width),Sa=window.innerWidth-Me,wa=io(K,[Me,Math.max(Me,Sa-Ca)]);n.style.minWidth=le+"px",n.style.left=wa+"px"}else{let G=C.right-U.right,K=window.innerWidth-T.right-G,Le=window.innerWidth-w.right-K,le=w.width+Le,Ca=Math.max(le,C.width),Sa=window.innerWidth-Me,wa=io(K,[Me,Math.max(Me,Sa-Ca)]);n.style.minWidth=le+"px",n.style.right=wa+"px"}let N=m(),H=window.innerHeight-Me*2,V=i.scrollHeight,E=window.getComputedStyle(u),z=parseInt(E.borderTopWidth,10),B=parseInt(E.paddingTop,10),F=parseInt(E.borderBottomWidth,10),M=parseInt(E.paddingBottom,10),_=z+B+V+M+F,y=Math.min(h.offsetHeight*5,_),ue=window.getComputedStyle(i),ge=parseInt(ue.paddingTop,10),ye=parseInt(ue.paddingBottom,10),Ie=w.top+w.height/2-Me,ee=H-Ie,J=h.offsetHeight/2,A=h.offsetTop+J,X=z+B+A,q=_-X;if(X<=Ie){let G=N.length>0&&h===N[N.length-1].ref.current;n.style.bottom="0px";let K=u.clientHeight-i.offsetTop-i.offsetHeight,Le=Math.max(ee,J+(G?ye:0)+K+F),le=X+Le;n.style.height=le+"px"}else{let G=N.length>0&&h===N[0].ref.current;n.style.top="0px";let Le=Math.max(Ie,z+i.offsetTop+(G?ge:0)+J)+q;n.style.height=Le+"px",i.scrollTop=X-Ie+i.offsetTop}n.style.margin=`${Me}px 0`,n.style.minHeight=y+"px",n.style.maxHeight=H+"px",o?.(),requestAnimationFrame(()=>p.current=!0)}},[m,l.trigger,l.valueNode,n,u,i,h,L,l.dir,o]);Y(()=>I(),[I]);let[S,b]=v.useState();Y(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);let R=v.useCallback(w=>{w&&x.current===!0&&(I(),g?.(),x.current=!1)},[I,g]);return D(vd,{scope:a,contentWrapper:n,shouldExpandOnScrollRef:p,onScrollButtonChange:R,children:D("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:D(W.div,{...r,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});os.displayName=Sd;var wd="SelectPopperPosition",fo=v.forwardRef((e,t)=>{let{__scopeSelect:a,align:o="start",collisionPadding:r=Me,...l}=e,s=ha(a);return D(zl,{...s,...l,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fo.displayName=wd;var[vd,Lo]=lt(_e,{}),co="SelectViewport",rs=v.forwardRef((e,t)=>{let{__scopeSelect:a,nonce:o,...r}=e,l=Ve(co,a),s=Lo(co,a),n=Z(t,l.onViewportChange),d=v.useRef(0);return ca(xo,{children:[D("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),D(pa.Slot,{scope:a,children:D(W.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:n,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:te(r.onScroll,u=>{let f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:m}=s;if(m?.current&&c){let p=Math.abs(d.current-f.scrollTop);if(p>0){let x=window.innerHeight-Me*2,i=parseFloat(c.style.minHeight),h=parseFloat(c.style.height),L=Math.max(i,h);if(L0?S:0,c.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});rs.displayName=co;var ls="SelectGroup",[bd,yd]=lt(ls),ss=v.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=Nt();return D(bd,{scope:a,id:r,children:D(W.div,{role:"group","aria-labelledby":r,...o,ref:t})})});ss.displayName=ls;var ns="SelectLabel",us=v.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=yd(ns,a);return D(W.div,{id:r.id,...o,ref:t})});us.displayName=ns;var fa="SelectItem",[Rd,ds]=lt(fa),is=v.forwardRef((e,t)=>{let{__scopeSelect:a,value:o,disabled:r=!1,textValue:l,...s}=e,n=ze(fa,a),d=Ve(fa,a),u=n.value===o,[f,c]=v.useState(l??""),[m,p]=v.useState(!1),x=Z(t,g=>d.itemRefCallback?.(g,o,r)),i=Nt(),h=v.useRef("touch"),L=()=>{r||(n.onValueChange(o),n.onOpenChange(!1))};if(o==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return D(Rd,{scope:a,value:o,disabled:r,textId:i,isSelected:u,onItemTextChange:v.useCallback(g=>{c(I=>I||(g?.textContent??"").trim())},[]),children:D(pa.ItemSlot,{scope:a,value:o,disabled:r,textValue:f,children:D(W.div,{role:"option","aria-labelledby":i,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:x,onFocus:te(s.onFocus,()=>p(!0)),onBlur:te(s.onBlur,()=>p(!1)),onClick:te(s.onClick,()=>{h.current!=="mouse"&&L()}),onPointerUp:te(s.onPointerUp,()=>{h.current==="mouse"&&L()}),onPointerDown:te(s.onPointerDown,g=>{h.current=g.pointerType}),onPointerMove:te(s.onPointerMove,g=>{h.current=g.pointerType,r?d.onItemLeave?.():h.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:te(s.onPointerLeave,g=>{g.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:te(s.onKeyDown,g=>{d.searchRef?.current!==""&&g.key===" "||(dd.includes(g.key)&&L(),g.key===" "&&g.preventDefault())})})})})});is.displayName=fa;var kt="SelectItemText",fs=v.forwardRef((e,t)=>{let{__scopeSelect:a,className:o,style:r,...l}=e,s=ze(kt,a),n=Ve(kt,a),d=ds(kt,a),u=md(kt,a),[f,c]=v.useState(null),m=Z(t,L=>c(L),d.onItemTextChange,L=>n.itemTextRefCallback?.(L,d.value,d.disabled)),p=f?.textContent,x=v.useMemo(()=>D("option",{value:d.value,disabled:d.disabled,children:p},d.value),[d.disabled,d.value,p]),{onNativeOptionAdd:i,onNativeOptionRemove:h}=u;return Y(()=>(i(x),()=>h(x)),[i,h,x]),ca(xo,{children:[D(W.span,{id:d.textId,...l,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?ho.createPortal(l.children,s.valueNode):null]})});fs.displayName=kt;var cs="SelectItemIndicator",ps=v.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e;return ds(cs,a).isSelected?D(W.span,{"aria-hidden":!0,...o,ref:t}):null});ps.displayName=cs;var po="SelectScrollUpButton",ms=v.forwardRef((e,t)=>{let a=Ve(po,e.__scopeSelect),o=Lo(po,e.__scopeSelect),[r,l]=v.useState(!1),s=Z(t,o.onScrollButtonChange);return Y(()=>{if(a.viewport&&a.isPositioned){let d=function(){let f=u.scrollTop>0;l(f)};var n=d;let u=a.viewport;return d(),u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),r?D(xs,{...e,ref:s,onAutoScroll:()=>{let{viewport:n,selectedItem:d}=a;n&&d&&(n.scrollTop=n.scrollTop-d.offsetHeight)}}):null});ms.displayName=po;var mo="SelectScrollDownButton",hs=v.forwardRef((e,t)=>{let a=Ve(mo,e.__scopeSelect),o=Lo(mo,e.__scopeSelect),[r,l]=v.useState(!1),s=Z(t,o.onScrollButtonChange);return Y(()=>{if(a.viewport&&a.isPositioned){let d=function(){let f=u.scrollHeight-u.clientHeight,c=Math.ceil(u.scrollTop)u.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),r?D(xs,{...e,ref:s,onAutoScroll:()=>{let{viewport:n,selectedItem:d}=a;n&&d&&(n.scrollTop=n.scrollTop+d.offsetHeight)}}):null});hs.displayName=mo;var xs=v.forwardRef((e,t)=>{let{__scopeSelect:a,onAutoScroll:o,...r}=e,l=Ve("SelectScrollButton",a),s=v.useRef(null),n=ma(a),d=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>d(),[d]),Y(()=>{n().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[n]),D(W.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:te(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:te(r.onPointerMove,()=>{l.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:te(r.onPointerLeave,()=>{d()})})}),Pd="SelectSeparator",gs=v.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e;return D(W.div,{"aria-hidden":!0,...o,ref:t})});gs.displayName=Pd;var Ls="SelectArrow",Is=v.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=ha(a);return Ve(Ls,a).position==="popper"?D(Vl,{...r,...o,ref:t}):null});Is.displayName=Ls;var Cs="SelectBubbleInput",Io=v.forwardRef(({__scopeSelect:e,...t},a)=>{let o=ze(Cs,e),{value:r,onValueChange:l,required:s,disabled:n,name:d,autoComplete:u,form:f}=o,{nativeOptions:c,nativeSelectKey:m}=o,p=v.useRef(null),x=Z(a,p),i=r??"",h=kr(i);return v.useEffect(()=>{let L=p.current;if(!L)return;let g=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==i&&S){let b=new Event("change",{bubbles:!0});S.call(L,i),L.dispatchEvent(b)}},[h,i]),ca(W.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:d,autoComplete:u,disabled:n,form:f,onChange:L=>l(L.target.value),...t,style:{...ba,...t.style},ref:x,defaultValue:i,children:[Co(r)?D("option",{value:""}):null,Array.from(c)]},m)});Io.displayName=Cs;function kd(e){return typeof e=="function"}function Co(e){return e===""||e===void 0}function Ss(e){let t=Se(e),a=v.useRef(""),o=v.useRef(0),r=v.useCallback(s=>{let n=a.current+s;t(n),function d(u){a.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>d(""),1e3))}(n)},[t]),l=v.useCallback(()=>{a.current="",window.clearTimeout(o.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(o.current),[]),[a,r,l]}function ws(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,l=a?e.indexOf(a):-1,s=Ad(e,Math.max(l,0));r.length===1&&(s=s.filter(u=>u!==a));let d=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return d!==a?d:void 0}function Ad(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var Md=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),As=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),La="-",vs=[],Td="arbitrary..",Bd=e=>{let t=Fd(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Od(s);let n=s.split(La),d=n[0]===""&&n.length>1?1:0;return Ms(n,d,t)},getConflictingClassGroupIds:(s,n)=>{if(n){let d=o[s],u=a[s];return d?u?Md(u,d):d:u||vs}return a[s]||vs}}},Ms=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],l=a.nextPart.get(r);if(l){let u=Ms(e,t+1,l);if(u)return u}let s=a.validators;if(s===null)return;let n=t===0?e.join(La):e.slice(t).join(La),d=s.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Td+o:void 0})(),Fd=e=>{let{theme:t,classGroups:a}=e;return Ed(a,t)},Ed=(e,t)=>{let a=As();for(let o in e){let r=e[o];vo(r,a,o,t)}return a},vo=(e,t,a,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){Ud(e,t,a);return}if(typeof e=="function"){Nd(e,t,a,o);return}Hd(e,t,a,o)},Ud=(e,t,a)=>{let o=e===""?t:Ds(t,e);o.classGroupId=a},Nd=(e,t,a,o)=>{if(_d(e)){vo(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Dd(a,e))},Hd=(e,t,a,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let a=e,o=t.split(La),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,zd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(l,s)=>{a[l]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(l){let s=a[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in a?a[l]=s:r(l,s)}}},wo="!",bs=":",Vd=[],ys=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),Wd=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let l=[],s=0,n=0,d=0,u,f=r.length;for(let i=0;id?u-d:void 0;return ys(l,p,m,x)};if(t){let r=t+bs,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):ys(Vd,!1,s,void 0,!0)}if(a){let r=o;o=l=>a({className:l,parseClassName:r})}return o},Gd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Xd=e=>({cache:zd(e.cacheSize),parseClassName:Wd(e),sortModifiers:Gd(e),postfixLookupClassGroupIds:jd(e),...Bd(e)}),jd=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=t,n=[],d=e.trim().split(Kd),u="";for(let f=d.length-1;f>=0;f-=1){let c=d[f],{isExternal:m,modifiers:p,hasImportantModifier:x,baseClassName:i,maybePostfixModifierPosition:h}=a(c);if(m){u=c+(u.length>0?" "+u:u);continue}let L=!!h,g;if(L){let w=i.substring(0,h);g=o(w);let C=g&&s[g]?o(i):void 0;C&&C!==g&&(g=C,L=!1)}else g=o(i);if(!g){if(!L){u=c+(u.length>0?" "+u:u);continue}if(g=o(i),!g){u=c+(u.length>0?" "+u:u);continue}L=!1}let I=p.length===0?"":p.length===1?p[0]:l(p).join(":"),S=x?I+wo:I,b=S+g;if(n.indexOf(b)>-1)continue;n.push(b);let R=r(g,L);for(let w=0;w0?" "+u:u)}return u},Zd=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,l,s=d=>{let u=t.reduce((f,c)=>c(f),e());return a=Xd(u),o=a.cache.get,r=a.cache.set,l=n,n(d)},n=d=>{let u=o(d);if(u)return u;let f=$d(d,a);return r(d,f),f};return l=s,(...d)=>l(Zd(...d))},Jd=[],re=e=>{let t=a=>a[e]||Jd;return t.isThemeGetter=!0,t},Bs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Os=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ei=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ti=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ai=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ri=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>Qd.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),So=e=>e.endsWith("%")&&O(e.slice(0,-1)),Ne=e=>ei.test(e),Fs=()=>!0,li=e=>ti.test(e)&&!ai.test(e),bo=()=>!1,si=e=>oi.test(e),ni=e=>ri.test(e),ui=e=>!P(e)&&!k(e),di=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ii=e=>Ge(e,Us,bo),P=e=>Bs.test(e),st=e=>Ge(e,Ns,li),Rs=e=>Ge(e,Li,O),fi=e=>Ge(e,_s,Fs),ci=e=>Ge(e,Hs,bo),Ps=e=>Ge(e,Es,bo),pi=e=>Ge(e,qs,ni),xa=e=>Ge(e,zs,si),k=e=>Os.test(e),At=e=>nt(e,Ns),mi=e=>nt(e,Hs),ks=e=>nt(e,Es),hi=e=>nt(e,Us),xi=e=>nt(e,qs),ga=e=>nt(e,zs,!0),gi=e=>nt(e,_s,!0),Ge=(e,t,a)=>{let o=Bs.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},nt=(e,t,a=!1)=>{let o=Os.exec(e);return o?o[1]?t(o[1]):a:!1},Es=e=>e==="position"||e==="percentage",qs=e=>e==="image"||e==="url",Us=e=>e==="length"||e==="size"||e==="bg-size",Ns=e=>e==="length",Li=e=>e==="number",Hs=e=>e==="family-name",_s=e=>e==="number"||e==="weight",zs=e=>e==="shadow";var Ii=()=>{let e=re("color"),t=re("font"),a=re("text"),o=re("font-weight"),r=re("tracking"),l=re("leading"),s=re("breakpoint"),n=re("container"),d=re("spacing"),u=re("radius"),f=re("shadow"),c=re("inset-shadow"),m=re("text-shadow"),p=re("drop-shadow"),x=re("blur"),i=re("perspective"),h=re("aspect"),L=re("ease"),g=re("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...S(),k,P],R=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],C=()=>[k,P,d],T=()=>[We,"full","auto",...C()],U=()=>[Fe,"none","subgrid",k,P],N=()=>["auto",{span:["full",Fe,k,P]},Fe,k,P],H=()=>[Fe,"auto",k,P],V=()=>["auto","min","max","fr",k,P],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...C()],F=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],M=()=>[We,"screen","full","dvw","lvw","svw","min","max","fit",...C()],_=()=>[We,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],y=()=>[e,k,P],ue=()=>[...S(),ks,Ps,{position:[k,P]}],ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",hi,ii,{size:[k,P]}],Ie=()=>[So,At,st],ee=()=>["","none","full",u,k,P],J=()=>["",O,At,st],A=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[O,So,ks,Ps],j=()=>["","none",x,k,P],G=()=>["none",O,k,P],K=()=>["none",O,k,P],Le=()=>[O,k,P],le=()=>[We,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ne],breakpoint:[Ne],color:[Fs],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[ui],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ne],shadow:[Ne],spacing:["px",O],text:[Ne],"text-shadow":[Ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,P,k,h]}],container:["container"],"container-type":[{"@container":["","normal","size",k,P]}],"container-named":[di],columns:[{columns:[O,P,k,n]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",k,P]}],basis:[{basis:[We,"full","auto",n,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,We,"auto","initial","none",P]}],grow:[{grow:["",O,k,P]}],shrink:[{shrink:["",O,k,P]}],order:[{order:[Fe,"first","last","none",k,P]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[n,"screen",...F()]}],"min-w":[{"min-w":[n,"screen","none",...F()]}],"max-w":[{"max-w":[n,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",a,At,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,gi,fi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",So,P]}],"font-family":[{font:[mi,ci,t]}],"font-features":[{"font-features":[P]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,k,P]}],"line-clamp":[{"line-clamp":[O,"none",k,Rs]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",k,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",k,st]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[O,"auto",k,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[Fe,k,P]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,k,P],radial:["",k,P],conic:[Fe,k,P]},xi,pi]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:Ie()}],"gradient-via-pos":[{via:Ie()}],"gradient-to-pos":[{to:Ie()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,k,P]}],"outline-w":[{outline:["",O,At,st]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,ga,xa]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",c,ga,xa]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[O,st]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",m,ga,xa]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[O,k,P]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[k,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,P]}],filter:[{filter:["","none",k,P]}],blur:[{blur:j()}],brightness:[{brightness:[O,k,P]}],contrast:[{contrast:[O,k,P]}],"drop-shadow":[{"drop-shadow":["","none",p,ga,xa]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",O,k,P]}],"hue-rotate":[{"hue-rotate":[O,k,P]}],invert:[{invert:["",O,k,P]}],saturate:[{saturate:[O,k,P]}],sepia:[{sepia:["",O,k,P]}],"backdrop-filter":[{"backdrop-filter":["","none",k,P]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[O,k,P]}],"backdrop-contrast":[{"backdrop-contrast":[O,k,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,k,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,k,P]}],"backdrop-invert":[{"backdrop-invert":["",O,k,P]}],"backdrop-opacity":[{"backdrop-opacity":[O,k,P]}],"backdrop-saturate":[{"backdrop-saturate":[O,k,P]}],"backdrop-sepia":[{"backdrop-sepia":["",O,k,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",k,P]}],ease:[{ease:["linear","initial",L,k,P]}],delay:[{delay:[O,k,P]}],animate:[{animate:["none",g,k,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[i,k,P]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[k,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],zoom:[{zoom:[Fe,k,P]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,P]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[O,At,st,Rs]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Vs=Yd(Ii);function oe(...e){return Vs(Bt(e))}import{jsx as Si}from"react/jsx-runtime";var Ci=Do("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function yo({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let l=o?Ft.Root:"button";return Si(l,{"data-slot":"button","data-variant":t,"data-size":a,className:oe(Ci({variant:t,size:a,className:e})),...r})}import{jsx as gt}from"react/jsx-runtime";function Ws({className:e,...t}){return gt("div",{"data-slot":"card",className:oe("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function Gs({className:e,...t}){return gt("div",{"data-slot":"card-header",className:oe("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Xs({className:e,...t}){return gt("div",{"data-slot":"card-title",className:oe("leading-none font-semibold",e),...t})}function js({className:e,...t}){return gt("div",{"data-slot":"card-description",className:oe("text-sm text-muted-foreground",e),...t})}function Ks({className:e,...t}){return gt("div",{"data-slot":"card-content",className:oe("px-6",e),...t})}function $s({className:e,...t}){return gt("div",{"data-slot":"card-footer",className:oe("flex items-center px-6 [.border-t]:pt-6",e),...t})}import{jsx as wi}from"react/jsx-runtime";function Zs({className:e,type:t,...a}){return wi("input",{type:t,"data-slot":"input",className:oe("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}import{jsx as vi}from"react/jsx-runtime";function Ro({className:e,...t}){return vi(ia.Root,{"data-slot":"label",className:oe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}import{forwardRef as yi,createElement as Ri}from"react";var Ys=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ia=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as bi,createElement as Qs}from"react";var Js={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var en=bi(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...n},d)=>Qs("svg",{ref:d,...Js,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Ia("lucide",r),...n},[...s.map(([u,f])=>Qs(u,f)),...Array.isArray(l)?l:[l]]));var Lt=(e,t)=>{let a=yi(({className:o,...r},l)=>Ri(en,{ref:l,iconNode:t,className:Ia(`lucide-${Ys(e)}`,o),...r}));return a.displayName=`${e}`,a};var Mt=Lt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var It=Lt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Dt=Lt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);import{jsx as fe,jsxs as Po}from"react/jsx-runtime";function tn({...e}){return fe(pe.Root,{"data-slot":"select",...e})}function an({...e}){return fe(pe.Value,{"data-slot":"select-value",...e})}function on({className:e,size:t="default",children:a,...o}){return Po(pe.Trigger,{"data-slot":"select-trigger","data-size":t,className:oe("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...o,children:[a,fe(pe.Icon,{asChild:!0,children:fe(It,{className:"size-4 opacity-50"})})]})}function rn({className:e,children:t,position:a="item-aligned",align:o="center",...r}){return fe(pe.Portal,{children:Po(pe.Content,{"data-slot":"select-content",className:oe("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:o,...r,children:[fe(Pi,{}),fe(pe.Viewport,{className:oe("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),fe(ki,{})]})})}function Tt({className:e,children:t,...a}){return Po(pe.Item,{"data-slot":"select-item",className:oe("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[fe("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:fe(pe.ItemIndicator,{children:fe(Mt,{className:"size-4"})})}),fe(pe.ItemText,{children:t})]})}function Pi({className:e,...t}){return fe(pe.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:fe(Dt,{className:"size-4"})})}function ki({className:e,...t}){return fe(pe.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:fe(It,{className:"size-4"})})}import{jsx as me,jsxs as Xe}from"react/jsx-runtime";function Ai(){return Xe(Ws,{className:"w-[350px]",children:[Xe(Gs,{children:[me(Xs,{children:"Create project"}),me(js,{children:"Deploy your new project in one-click."})]}),me(Ks,{children:me("form",{children:Xe("div",{className:"grid w-full items-center gap-6",children:[Xe("div",{className:"flex flex-col gap-3",children:[me(Ro,{htmlFor:"name",children:"Name"}),me(Zs,{id:"name",placeholder:"Name of your project"})]}),Xe("div",{className:"flex flex-col gap-3",children:[me(Ro,{htmlFor:"framework",children:"Framework"}),Xe(tn,{children:[me(on,{id:"framework",className:"w-full",children:me(an,{placeholder:"Select"})}),Xe(rn,{position:"popper",children:[me(Tt,{value:"next",children:"Next.js"}),me(Tt,{value:"sveltekit",children:"SvelteKit"}),me(Tt,{value:"astro",children:"Astro"}),me(Tt,{value:"nuxt",children:"Nuxt.js"})]})]})]})]})})}),Xe($s,{className:"flex justify-between",children:[me(yo,{variant:"outline",children:"Cancel"}),me(yo,{children:"Deploy"})]})]})}export{Ai as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/check.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-down.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-up.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4c9ca857f3ce5cde18c71c6977c0f30e3f854e443af1f4591e0d7867739e7ac +size 117361 diff --git a/b/03f5dc0d0f926e5d712e3958d2af29d00c06b2f19b31f42956205c33a6bba059 b/b/03f5dc0d0f926e5d712e3958d2af29d00c06b2f19b31f42956205c33a6bba059 index 60efc656b8df6e0522e11ec2fd099b87711b46c4..0705ae36b8f1361a81b88a6397365e5ccd72ce76 100644 --- a/b/03f5dc0d0f926e5d712e3958d2af29d00c06b2f19b31f42956205c33a6bba059 +++ b/b/03f5dc0d0f926e5d712e3958d2af29d00c06b2f19b31f42956205c33a6bba059 @@ -1 +1,3 @@ -{"model": "qwen3.5-9b-thinking", "new": 48, "tapes": [{"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 7967, 1118, 3065, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 12786, 466, 279, 5548, 310, 3404, 9412, 15782, 13, 4213, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 449, 2469, 332, 310, 7967, 54521, 264, 6236, 854, 198, 17, 13, 2972, 3886, 264, 3683], "text": "schedule a meeting with Sam first thing tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 383, 821, 12786, 3242, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4204, 12786, 466, 866, 36602, 1928, 13, 1946, 1436, 1092, 579, 13145, 364, 3242, 11, 488, 3172, 1144, 310, 25, 271, 16, 13, 4109, 678, 12786, 878, 318, 14030, 16349, 11, 39702, 11, 7905, 16349, 11, 4831], "text": "what's on my calendar today"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 17, 15, 8491, 310, 39229, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 332, 46629, 7911, 64700, 220, 16, 14167, 283, 220, 16, 13, 21, 15, 24, 18, 19, 39229, 271, 332, 45593, 2820, 64700, 198, 13682, 17, 15, 1088, 1272, 90, 8491, 92, 1088, 14695, 220, 16, 13, 21, 15, 24, 18, 19], "text": "convert 20 miles to kilometers"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 43494, 264, 46193, 17177, 310, 411, 2469, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 4439, 728, 310, 9665, 264, 46193, 2469, 17177, 11, 694, 488, 8719, 914, 5064, 279, 3889, 2469, 488, 2224, 28378, 310, 13, 4558, 1206, 1438, 488, 13057, 11, 353, 1144, 310, 1366, 25, 271, 16, 13, 2972, 3710, 369, 279], "text": "draft a polite decline to this email"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 685, 279, 9039, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 4439, 728, 310, 328, 404, 685, 279, 9039, 1288, 694, 411, 369, 264, 4437, 7359, 4598, 1056, 264, 3050, 3377, 310, 11290, 13, 271, 12525, 488, 35932, 1092, 488, 2224, 3221, 364, 30, 1690, 3010, 25, 271, 12, 2972, 32], "text": "turn up the temperature"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6472, 7967, 264, 1876, 5315, 6051, 14756, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 3502, 264, 1876, 310, 7967, 11, 694, 353, 1459, 914, 599, 279, 5548, 310, 3502, 6397, 310, 8976, 32658, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 421, 628, 1132, 18459, 1472, 411, 3622, 13, 271, 10883], "text": "send Sam a message saying happy birthday"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2236, 264, 1898, 17377, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3627, 854, 1881, 20319, 13, 9358, 411, 10125, 10029, 11, 353, 2677, 914, 381, 2858, 310, 15002, 488, 13, 271, 332, 1206, 3404, 21374, 411, 11, 488, 1220, 64700, 271, 16, 13, 2972, 1591], "text": "remind me to book a table tonight"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 21, 25, 18, 15, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 6:30am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1244, 91893, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 44, 5130, 13148, 332, 3254, 8755, 2172, 6326, 310, 7472, 26, 1546, 16097, 321, 22825, 13, 271, 332, 1536, 13173, 64700, 198, 12, 2972, 969, 14025, 2022, 92217, 31245, 5562, 2414, 15060, 321, 6379, 198, 12, 2972, 53639, 92217, 11142, 286, 3160, 6326], "text": "define meticulous"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1244, 43530, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 6262, 16641, 332, 369, 264, 6572, 13861, 1528, 321, 264, 15200, 33219, 30825, 539, 264, 5365, 5357, 314, 9414, 29424, 321, 33739, 364, 279, 1603, 2433, 303, 799, 579, 2199, 11, 3315, 781, 513, 3816, 494, 3672, 11, 494, 6775, 11, 466, 1472], "text": "define gratitude"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 6730, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 14952, 279, 1622, 11, 694, 353, 2688, 524, 2858, 310, 1432, 4477, 5774, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 10883, 11, 353, 628, 1438, 488, 303, 975, 5337, 25, 271, 16, 13, 2972, 65362, 6730, 4477, 332, 471, 23870], "text": "play some rock music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 17961, 821, 35915, 6236, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 12786, 466, 6236, 36602, 1785, 13, 1946, 8848, 678, 79996, 6236, 11, 488, 3172, 1144, 310, 25, 271, 16, 13, 2972, 2132, 303, 310, 678, 79996, 2605, 332, 318, 2817, 466, 878, 8, 198, 17, 13, 2972], "text": "cancel my noon meeting"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 3569, 63201, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3502, 21292, 13, 353, 2688, 264, 1414, 5792, 14791, 421, 628, 1132, 1817, 321, 5707, 310, 279, 1928, 488, 3300, 303, 1004, 10125, 13, 271, 332, 3710, 353, 628, 635, 64700, 198, 12, 11150], "text": "remind me to buy groceries tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13642, 1603, 3603, 1083, 79915, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 23640, 64700, 271, 332, 14773, 3603, 332, 303, 79915, 369, 25, 271, 332, 114588, 332, 318, 86, 131, 236, 77, 167967, 77, 8, 271, 4277, 271, 332, 47, 2176, 44767, 64700, 198, 12, 41463, 11668, 3533, 25, 68607, 16, 449, 16, 198, 12], "text": "translate good night into Mandarin"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 279, 47594, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 4439, 728, 310, 328, 6450, 279, 47594, 1288, 694, 353, 2688, 449, 14791, 1414, 5792, 17313, 321, 1459, 914, 599, 279, 5548, 310, 1236, 4392, 6526, 13, 271, 332, 3710, 353, 628, 1438, 440, 4370, 64700, 271, 16, 13, 2972], "text": "call the dentist"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 220, 20, 3161, 314, 220, 23, 15, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 1206, 1423, 220, 20, 4, 314, 220, 23, 15, 25, 271, 332, 3407, 220, 16, 25, 6943, 310, 11778, 332, 198, 13682, 20, 59, 4, 283, 220, 15, 13, 15, 20, 13682, 198, 13682, 15, 13, 15, 20, 1088, 14695, 220], "text": "what's 5 percent of 80"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 21, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 6am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1200, 5437, 537, 411, 2128, 364, 728, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 59987, 264, 2128, 0, 4213, 11, 353, 1459, 914, 1436, 866, 2128, 12037, 310, 678, 1876, 13, 4558, 5328, 3300, 279, 2128, 488, 4035, 1040, 728, 310, 59987, 11, 321, 353, 3172, 381, 15252, 310, 25, 198], "text": "summarize this document for me"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 17, 15, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 1044, 449, 14791, 1414, 1558, 1973, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 16, 13, 220, 2972, 1860, 678], "text": "set a 20 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 3772, 264, 10793, 364, 39502, 19052, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 21165, 29264, 28554, 24500, 271, 13962, 49453, 198, 12, 2972, 18, 24569, 332, 28154, 4022, 19052, 318, 1247, 6086, 11, 62139, 8, 198, 12, 2972, 18, 61718, 332, 34308, 5415, 198, 12, 2972, 19, 332, 3349, 18237, 11, 29306, 198, 12, 2972, 16], "text": "find a recipe for fried rice"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 1040, 3242, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 3242, 579, 8831, 17071, 11, 353, 6718, 25, 271, 16, 13, 2972, 3840, 264, 8831, 3779, 332, 1040, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13], "text": "what's the weather like today"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 13761, 220, 20, 15, 8491, 310, 39229, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 12121, 271, 332, 46629, 7911, 64700, 220, 16, 14167, 283, 220, 16, 13, 21, 15, 24, 18, 19, 39229, 271, 332, 45593, 2820, 64700, 198, 13682, 20, 15, 1088, 1272, 90, 8491, 92, 1088, 14695, 220, 16, 13, 21, 15, 24, 18, 19], "text": "convert 50 miles to kilometers"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 10939, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2908, 3766, 264, 3108, 3376, 1272, 10939, 421, 353, 2688, 4162, 3200, 871, 4598, 1056, 264, 3377, 310, 11290, 13, 271, 332, 2592, 488, 2224, 3221, 364, 1438, 440, 2414, 745, 93868, 4338, 1042, 728, 1366, 1092, 488, 4035, 1040, 728], "text": "text Chris that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 4464, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 14952, 279, 1622, 11, 694, 353, 2688, 524, 2858, 310, 1432, 4477, 5774, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 10883, 11, 353, 628, 1438, 488, 303, 975, 5337, 25, 271, 16, 13, 2972, 65362, 4464, 4477, 332, 471, 23870], "text": "play some party music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 2388, 264, 220, 17, 15, 9104, 31676, 3669, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 2, 220, 17, 15, 5084, 258, 1035, 73855, 8891, 271, 550, 19427, 3038, 271, 332, 12358, 64700, 198, 12, 7145, 264, 11012, 3433, 1332, 488, 2677, 914, 381, 53547, 198, 12, 27480, 383, 264, 43158, 11, 10183, 11, 466, 6220, 440, 264, 7435, 33528], "text": "start a 20 minute meditation session"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 36408, 1372, 400, 558, 477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 50, 13044, 10592, 13044, 10923, 9141, 20819, 9023, 20819, 9009, 28184, 332], "text": "spell serendipity"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 13474, 821, 24651, 411, 12967, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 23226, 488, 883, 2414, 11, 694, 353, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3502, 21292, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16, 13, 2972, 1591, 264, 10189, 5020, 92217, 1394], "text": "remind me to renew my passport this afternoon"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 851, 728, 279, 12641, 29102, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1301, 488, 12641, 29102, 0, 4213, 11, 353, 1459, 914, 599, 1865, 7019, 7361, 2528, 310, 7560, 279, 5362, 3543, 13, 271, 332, 3710, 353, 628, 635, 64700, 271, 16, 13, 2972, 2592, 488, 3300, 3050, 29102, 332, 471], "text": "read me the tech headlines"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 15530, 321, 65416, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 18751, 3470, 64700, 198, 12, 47398, 198, 12, 39341, 595, 271, 4277, 271, 332, 8839, 64700, 353, 1459, 914, 599, 2528, 310, 678, 6149, 11580, 1103, 13, 1368, 488, 4035, 1040, 728, 310, 1438, 488, 25, 271, 16], "text": "add bread and spinach to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 974, 279, 20670, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 2444, 678, 3545, 579, 20670, 5774, 13, 4213, 11, 1532, 513, 279, 7123, 310, 2404, 974, 279, 20670, 383, 1379, 7370, 25, 271, 332, 12782, 64700, 198, 12, 8185, 1510, 16472, 478, 387, 63, 321, 3186, 328], "text": "turn off the speakers"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1763, 474, 728, 310, 2216, 279, 7765, 1118, 3065, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 716, 63383, 466, 3502, 21292, 310, 488, 13, 353, 2688, 264, 1414, 5792, 14791, 421, 628, 1132, 1817, 321, 5707, 310, 279, 1928, 488, 3300, 303, 1004, 10125, 13, 271, 332, 3710, 353, 628, 635, 64700, 198], "text": "remind me to pay the rent first thing tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 353, 17592, 264, 17592, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 369, 279, 2923, 13909, 28253, 8214, 310, 59951, 279, 1379, 4047, 17592, 49091, 25, 279, 2972, 26108, 3309, 12, 2239, 159034, 271, 13962, 70839, 198, 16, 13, 220, 2972, 3684, 279, 56738, 64700, 22041, 279, 17592, 2272, 678, 14697, 13, 561, 6669, 809], "text": "how do I tie a tie"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 43494, 264, 1732, 685, 310, 411, 2469, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1438, 488, 9665, 264, 1732, 5072, 2469, 0, 4213, 11, 353, 1459, 914, 1436, 279, 3889, 2469, 303, 678, 1876, 13, 4558, 5328, 3300, 25, 198, 16, 13, 2972, 760, 3889, 2469, 332, 488, 1318, 310, 1732, 685, 383], "text": "draft a follow up to this email"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 851, 728, 279, 3543, 29102, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 1301, 488, 3543, 29102, 0, 4213, 11, 353, 1459, 914, 599, 2528, 310, 1865, 7019, 3543, 33254, 13, 4558, 1206, 1438, 488, 11, 4338, 25, 271, 16, 13, 2972, 11771, 3050, 29102, 332, 488, 4035, 1040, 728, 310, 10033], "text": "read me the news headlines"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 353, 2854, 424, 303, 5753, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 36783, 25, 328, 40, 2854, 424, 1, 303, 5753, 271, 332, 1, 39032, 88197, 1477, 175267, 271, 13962, 15164, 2829, 25, 198, 91, 5753, 735, 6163, 735, 198, 91, 502, 91, 22031, 91, 198, 91, 25037, 735, 353, 735, 198, 91, 88197, 735], "text": "how do you say I love it in German"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 2388, 264, 220, 19, 20, 9104, 3788, 3669, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 18593, 8891, 17229, 34626, 2765, 237, 109, 29545, 271, 332, 7354, 3984, 25, 220, 19, 20, 4276, 332, 271, 13962, 326, 51487, 15164, 2829, 25, 271, 91, 35873, 735, 20400, 735, 24985, 735, 198, 91, 22031, 91, 14894, 91, 20308, 91, 198, 91], "text": "start a 45 minute study session"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 1010, 33056, 4477, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 14952, 488, 18176, 680, 11, 694, 353, 1318, 310, 381, 2708, 883, 821, 16432, 25, 271, 332, 40, 4021, 1432, 7455, 159029, 353, 2688, 264, 1414, 5792, 14791, 17313, 11, 748, 353, 628, 914, 4129, 4477, 11, 33056, 10054, 11, 466, 866, 7455], "text": "play some ambient music"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 2944, 369, 32910, 494, 1532, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 1366, 1332, 328, 6527, 1, 18675, 310, 2394, 488, 8719, 914, 5024, 678, 1428, 3602, 13, 271, 1206, 10724, 279, 5821, 310, 32910, 11, 353, 1144, 25, 198, 12, 4465, 3177, 5350, 754, 466, 3046, 198, 12, 2441, 678, 13534, 318], "text": "how far is Dubai from here"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 404, 974, 279, 9488, 12346, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 2444, 6745, 7370, 466, 32585, 303, 678, 2046, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 321, 1459, 914, 599, 2528, 310, 678, 7539, 2046, 1785, 11, 7539, 30147, 11, 466, 866, 975, 11436, 13, 271, 1206], "text": "turn off the kitchen lights"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1200, 5437, 537, 411, 4400, 364, 728, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 59987, 449, 4400, 364, 488, 0, 4213, 11, 353, 1459, 914, 1436, 279, 4400, 1414, 303, 678, 1876, 13, 4558, 5328, 24147, 279, 4400, 488, 4035, 1040, 728, 310, 59987, 11, 321, 353, 3172, 3300, 264, 2708, 11, 61446], "text": "summarize this article for me"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 11751, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 11751, 11, 353, 6718, 25, 271, 16, 13, 2972, 28034, 12664, 92217, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17, 13, 2972, 5708], "text": "what's the weather in Paris"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1244, 56696, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 1026, 319, 1128, 332, 16067, 279, 8390, 310, 48772, 11, 10202, 310, 11, 321, 11394, 494, 86739, 11, 8204, 11, 466, 28911, 13, 271, 8160, 369, 264, 29006, 314, 279, 4496, 3808, 2086, 36353, 25, 271, 9, 256, 2972, 14965, 19107, 64700, 561], "text": "define resilient"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 821, 6714, 25935, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4204, 4477, 6522, 466, 16350, 3401, 13, 1946, 1432, 678, 6714, 25935, 11, 488, 3172, 1144, 310, 25, 271, 16, 13, 5097, 678, 4477, 878, 318, 6205, 36021, 11, 7905, 10401, 11, 12983, 10401, 11, 4831, 5946], "text": "play my favorite playlist"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 303, 6924, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 279, 1428, 8831, 303, 6924, 11, 353, 6718, 25, 271, 16, 13, 2972, 14030, 21926, 332, 471, 7304, 328, 38261, 8831, 1, 364, 264, 3841, 22527, 198, 17, 13, 2972, 33525], "text": "what's the weather in London"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 698, 19052, 321, 15530, 310, 821, 11580, 1103, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 28019, 1697, 5376, 271, 332, 7525, 15600, 1697, 64700, 198, 12, 28554, 198, 12, 47398, 271, 4277, 271, 332, 60239, 64700, 198, 12, 189551, 28554, 3568, 198, 12, 189551, 47398, 3568, 198, 12, 189551, 1697, 5435, 220, 17, 3470, 271, 3742, 1017, 3977], "text": "add rice and bread to my shopping list"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 17961, 821, 220, 18, 5022, 6236, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 12786, 466, 6236, 36602, 1785, 13, 1946, 8848, 678, 220, 18, 5022, 6236, 11, 488, 3172, 1144, 310, 25, 271, 16, 13, 2972, 3840, 678, 12786, 332, 318, 14030, 16349, 11, 39702, 11, 7905, 16349, 11, 4831], "text": "cancel my 3pm meeting"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 635, 488, 1910, 1603, 6353, 303, 15659, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 15666, 64700, 271, 332, 1, 2014, 240052, 626, 71, 507, 15560, 175267, 318, 148924, 154982, 88005, 8, 271, 1919, 369, 279, 5129, 11, 46193, 40719, 1429, 6600, 279, 1834, 303, 15659, 13, 1049, 15433, 3254, 328, 14556, 1, 321, 4138, 364, 6353, 11], "text": "how do you say good morning in Korean"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1272, 821, 12553, 421, 353, 2688, 4162, 3200, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 8160, 513, 264, 2342, 2519, 11313, 383, 279, 6331, 25, 271, 332, 47585, 899, 64700, 198, 1, 18103, 11, 4162, 264, 2612, 3200, 11, 668, 381, 1017, 303, 498, 55, 60, 4276, 1149, 271, 332, 12115, 594, 6916, 64700, 198, 1, 18417, 3200, 11], "text": "text my sister that I'm running late"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 1248, 1503, 424, 1831, 310, 21844, 15530, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 2, 2500, 5546, 12193, 1049, 11440, 310, 50324, 47398, 30, 271, 550, 16743, 21134, 198, 332, 7354, 854, 25, 220, 17, 4006, 16, 17, 10, 3979, 332, 318, 77704, 383, 913, 8, 198, 12, 2972, 5550, 26912, 854, 64700, 220, 17, 15, 4006, 19], "text": "how long does it take to bake bread"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1315, 279, 1727, 5319, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4477, 2693, 466, 16350, 2393, 11, 748, 353, 628, 914, 5774, 2444, 30907, 13, 271, 332, 1206, 1432, 279, 1727, 5319, 11, 1380, 64700, 198, 12, 8185, 286, 279, 2972, 3480, 3627, 332, 3037, 383, 678, 3545], "text": "play the next song"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 36408, 91893, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 4252, 41019, 314, 279, 3299, 369, 2972, 17453, 13148, 159034, 271, 8160, 369, 279, 29006, 25, 198, 16, 13, 220, 2972, 44, 332, 198, 17, 13, 220, 2972, 68, 332, 198, 18, 13, 220, 2972, 83, 332, 198, 19, 13, 220, 2972, 72], "text": "spell meticulous"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 2944, 369, 19241, 494, 1532, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 1366, 1332, 328, 6527, 1, 369, 1521, 488, 8719, 914, 3766, 678, 1428, 3602, 13, 271, 1206, 10724, 279, 5821, 310, 19241, 11, 353, 1144, 25, 198, 12, 4465, 3177, 5350, 754, 466, 198, 12, 4465, 13534, 318, 22976, 14, 24641], "text": "how far is Berlin from here"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 4993, 2944, 369, 14211, 494, 1532, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 1366, 1332, 328, 6527, 1, 369, 1521, 488, 8719, 914, 3766, 678, 1428, 3602, 13, 271, 1206, 10724, 279, 5821, 310, 14211, 11, 353, 1144, 25, 198, 12, 4465, 3177, 5350, 754, 466, 198, 12, 4465, 2534, 466, 198, 12, 4465], "text": "how far is Toronto from here"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 6511, 314, 6124, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 760, 6511, 314, 6124, 369, 2972, 51076, 15560, 159034, 271, 51076, 15560, 682, 978, 279, 6511, 2394, 279, 2088, 33716, 64568, 303, 220, 16, 23, 21, 23, 11, 948, 33178, 2088, 33716, 7481, 279, 33145, 5300, 494, 78229, 310, 458, 2887, 318, 7949, 557], "text": "what's the capital of Japan"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 17230, 1118, 3065, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 678, 4204, 12786, 466, 2902, 9412, 11, 748, 353, 628, 914, 3404, 2236, 264, 6236, 364, 488, 13, 271, 10883, 11, 353, 628, 1438, 488, 25, 271, 16, 13, 2972, 48401, 264, 1876, 332, 310, 3502, 310, 678], "text": "schedule a meeting with dad first thing tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 854, 369, 424, 303, 11751, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 1928, 11, 2583, 279, 1428, 854, 303, 11751, 13, 2921, 6337, 369, 6973, 310, 1092, 557, 3766, 303, 1004, 10125, 3712, 11, 864, 3070, 914, 6435, 866, 854, 795, 13, 271, 1206, 1423, 279, 1428, 854], "text": "what time is it in Paris"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 36408, 37356, 269, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 332, 34, 6481, 10923, 9141, 22882, 10592, 332], "text": "spell candor"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 27695, 264, 6236, 440, 279, 47594, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 5125, 488, 2224, 9859, 728, 310, 1438, 9412, 264, 6236, 440, 264, 47594, 11, 694, 353, 1459, 914, 599, 2528, 310, 678, 4204, 12786, 466, 17109, 21185, 1785, 13, 271, 332, 3710, 353, 628, 1438, 440, 64700, 271, 16, 13, 2972, 48401, 449], "text": "schedule a meeting with the dentist tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 1200, 5437, 537, 411, 2469, 364, 728, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4035, 381, 6051, 310, 59987, 449, 2469, 364, 488, 0, 4213, 11, 353, 1459, 914, 1436, 279, 2469, 2144, 303, 678, 1876, 13, 4558, 5328, 24147, 279, 2469, 1414, 488, 4035, 1040, 728, 310, 59987, 11, 321, 353, 3172, 3300, 264, 2708, 11], "text": "summarize this email for me"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 12195, 579, 279, 8831, 1040, 16089, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 2528, 310, 1865, 7019, 8831, 795, 13, 1946, 615, 449, 12995, 17071, 364, 16089, 11, 353, 6718, 25, 271, 16, 13, 2972, 3840, 264, 8831, 3779, 332, 1040, 21926, 877, 11, 11101, 84, 28034, 11, 466, 21926, 52081, 198, 17], "text": "what's the weather like tomorrow"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 3772, 264, 10793, 364, 13477, 536, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 550, 21165, 426, 643, 4428, 10158, 627, 24500, 271, 13962, 49453, 271, 91, 53052, 735, 24962, 735, 198, 91, 4996, 91, 502, 91, 198, 91, 29368, 735, 220, 25229, 10212, 318, 16, 8941, 8, 735, 198, 91, 25676, 7511, 12781, 735, 220, 16, 10212], "text": "find a recipe for brownies"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 449, 16136, 364, 220, 23, 308, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 449, 16136, 364, 488, 1521, 353, 1459, 914, 599, 2528, 310, 678, 3545, 579, 8598, 466, 12786, 13, 271, 332, 1206, 716, 279, 16136, 11, 4338, 64700, 198, 16, 13, 5097, 678, 4392, 579, 2972, 25270, 332, 878, 198, 17, 13], "text": "set an alarm for 8am"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 723, 264, 220, 18, 15, 9104, 8749, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 4021, 716, 264, 8749, 364, 488, 5774, 11, 430, 353, 1044, 449, 14791, 1414, 1558, 1973, 2528, 310, 678, 3545, 579, 8598, 466, 16136, 5568, 13, 271, 10883, 11, 488, 628, 6497, 635, 411, 5941, 25, 271, 16, 13, 220, 2972, 1860, 678], "text": "set a 30 minute timer"}, {"prompt": [248045, 8678, 198, 2523, 513, 1167, 11, 264, 61446, 11, 10631, 7047, 17313, 13, 248046, 198, 248045, 846, 198, 6450, 3259, 248046, 198, 248045, 74455, 198], "greedy": [248068, 271, 248069, 271, 40, 1459, 914, 599, 279, 5548, 310, 1236, 4392, 6526, 13, 353, 2688, 264, 1414, 5792, 14791, 17313, 13, 271, 2592, 488, 2224, 3221, 364, 1438, 440, 2414, 745, 471, 1040, 4237, 264, 1876, 310, 678, 3259, 11, 8842, 264, 10125, 11, 466, 3977], "text": "call mom"}]} \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:1fbce4b8e6f391f91cd8b6f444b31c4a8e538ac7324e0fd2c86e8b85c9e9f387 +size 32252 diff --git a/b/043c0d04dd880c707120df43cc645f31e7d679ba2bcf12c717dffdfe881db9d2 b/b/043c0d04dd880c707120df43cc645f31e7d679ba2bcf12c717dffdfe881db9d2 index 2a40d3f95d90be71f02684e4fbdd31fc6fadbbb9..400f1f176cc755703b8fe08b48fa1dd273bafa45 100644 --- a/b/043c0d04dd880c707120df43cc645f31e7d679ba2bcf12c717dffdfe881db9d2 +++ b/b/043c0d04dd880c707120df43cc645f31e7d679ba2bcf12c717dffdfe881db9d2 @@ -1,20 +1,3 @@ -{ - "id": "org.hologram.ui.example.card-with-form", - "name": "card-with-form", - "tier": "example", - "library": "shadcn", - "category": "Examples", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/card-with-form.json", - "did": "did:holo:sha256:19c4025a9854a14985bed0ec93e3ab0bb6d500499828302be6574d9da2170f4a", - "import": "holo://sha256:f4c9ca857f3ce5cde18c71c6977c0f30e3f854e443af1f4591e0d7867739e7ac", - "integrity": "sha256-9MnKhX885c3hjHHGl3wPMOP4VORDrx9FkeDXhnc556w=", - "kappa": "sha256:19c4025a9854a14985bed0ec93e3ab0bb6d500499828302be6574d9da2170f4a", - "moduleKappa": "sha256:f4c9ca857f3ce5cde18c71c6977c0f30e3f854e443af1f4591e0d7867739e7ac", - "renderExport": "default", - "source": "registry/new-york-v4/examples/card-with-form.tsx", - "module": "vendor/components/card-with-form.js", - "exports": [ - "default" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:5eb2d38f13cccdb9130aea9d9a86cc8dafefa0d17ba9b5f04cdef22de791b4f1 +size 864 diff --git a/b/045cad2a1aae28761839e6657051c50b958b16d554cec18b91f6934e4e931dc6 b/b/045cad2a1aae28761839e6657051c50b958b16d554cec18b91f6934e4e931dc6 index cb165a4c10a82f346f7d6b65d47f1d6bb5b89f3a..84d5d56857a5dc157aa1f32baa668765422d309a 100644 --- a/b/045cad2a1aae28761839e6657051c50b958b16d554cec18b91f6934e4e931dc6 +++ b/b/045cad2a1aae28761839e6657051c50b958b16d554cec18b91f6934e4e931dc6 @@ -1,40 +1,3 @@ -// holo-dialog.js — canonical SHELL object: a modal dialog (overlay · titled card · body · footer actions). -// Self-contained, token-themed. Body is an htmlString slot for static content (interactive content should -// be passed as wired actions, or kept native); footer actions are structured + component-wired. -// props: { open?, title?, bodyHtml?, message?, actions?:[{label, variant?, onClick}], onClose?, style? } -import * as React from "react"; -const h = React.createElement; - -let styled = false; -function css() { - if (styled || typeof document === "undefined") return; styled = true; - const s = document.createElement("style"); s.id = "holo-shell-dialog-css"; - s.textContent = '[data-holo-shell="dialog-overlay"]{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:5vh 5vw;background:#06080cdd;backdrop-filter:blur(7px)}' - + '[data-holo-shell="dialog"] .hd-btn{transition:background .12s,filter .12s}' - + '[data-holo-shell="dialog"] .hd-btn.ghost:hover{background:var(--holo-hover,#1b2433)}' - + '[data-holo-shell="dialog"] .hd-btn.primary:hover{filter:brightness(1.08)}'; - document.head.appendChild(s); -} -function Action(a, i) { - const primary = (a.variant || "default") === "default" || a.variant === "primary"; - return h("button", { key: i, type: "button", className: "hd-btn " + (primary ? "primary" : "ghost"), onClick: a.onClick, style: { - display: "inline-flex", alignItems: "center", gap: "6px", padding: "9px 14px", borderRadius: "var(--holo-radius, 9px)", font: "inherit", cursor: "pointer", - border: "1px solid " + (primary ? "var(--holo-accent, #3aa0ff)" : "var(--holo-border, #2c3850)"), - background: primary ? "var(--holo-accent, #3aa0ff)" : "var(--holo-surface-2, #161d2c)", - color: primary ? "var(--holo-accent-ink, #fff)" : "var(--holo-ink, #e6ecf5)", fontWeight: primary ? 600 : 400 } }, a.label); -} -export function Dialog(props) { - css(); const p = props || {}; - if (p.open === false) return null; - return h("div", { "data-holo-shell": "dialog-overlay", onClick: (e) => { if (e.target === e.currentTarget && p.onClose) p.onClose(); } }, - h("div", { "data-holo-shell": "dialog", style: { - width: "min(560px, 92vw)", maxHeight: "88vh", display: "flex", flexDirection: "column", overflow: "hidden", boxSizing: "border-box", - background: "var(--holo-surface, #121826)", border: "1px solid var(--holo-border, #2c3850)", borderRadius: "var(--holo-radius-lg, 16px)", - color: "var(--holo-ink, #e6ecf5)", boxShadow: "0 30px 90px #000b", ...(p.style || {}) } }, - p.title ? h("div", { style: { padding: "16px 18px", borderBottom: "1px solid var(--holo-border, #222c3d)", fontWeight: 650, fontSize: "var(--holo-text-md, 1.05rem)" } }, p.title) : null, - h("div", { style: { padding: "16px 18px", overflow: "auto", lineHeight: 1.55, color: "var(--holo-muted, #9aa7bd)" }, dangerouslySetInnerHTML: p.bodyHtml ? { __html: p.bodyHtml } : undefined }, p.bodyHtml ? undefined : (p.message || null)), - (p.actions && p.actions.length) ? h("div", { style: { display: "flex", justifyContent: "flex-end", gap: "8px", padding: "12px 16px", borderTop: "1px solid var(--holo-border, #222c3d)" } }, ...p.actions.map(Action)) : null, - ), - ); -} -export default Dialog; +version https://git-lfs.github.com/spec/v1 +oid sha256:6097b08a892929df807b2eafaf928e945149c8b79959e9c6eefb8976da62f6ac +size 3258 diff --git a/b/045f53bb410d8663676868aae786ad3a13042cca4c29dbd94af87771d76c76a4 b/b/045f53bb410d8663676868aae786ad3a13042cca4c29dbd94af87771d76c76a4 index ab8903a8ba024f082fd2875ed94dcb9498e68352..14894c05afa02fda8c4c7e5c4901ef5496820c0f 100644 --- a/b/045f53bb410d8663676868aae786ad3a13042cca4c29dbd94af87771d76c76a4 +++ b/b/045f53bb410d8663676868aae786ad3a13042cca4c29dbd94af87771d76c76a4 @@ -1,26 +1,3 @@ -// Forge the BitNet TQ2_0 GGUF into a sealed .holo (per-tensor κ-bodies) so it rides the unified -// κ-stream loader, and print the tensor-type summary that drives the runtime kernel/forward wiring. -import { readFileSync, writeFileSync } from "node:fs"; -import { writeHolo } from "../holo-archive.mjs"; -import { parseGgufHeader } from "../../qvac-ingest.mjs"; -import { GGML_TYPE_NAME } from "../gguf-forge.mjs"; - -const SRC = "./.models/bitnet-xl-tq2_0.gguf"; -const OUT = "./.models/bitnet-xl-tq2_0.holo"; -const bytes = new Uint8Array(readFileSync(SRC)); -console.log(`read ${(bytes.length / 1e6 | 0)}MB gguf`); - -const { tensors, meta } = parseGgufHeader(bytes); -const arch = meta["general.architecture"]; -const typeCount = {}; for (const t of tensors) { const nm = GGML_TYPE_NAME[t.ggmlType] || t.ggmlType; typeCount[nm] = (typeCount[nm] || 0) + 1; } -const has = (suffix) => tensors.some((t) => t.name.endsWith(suffix)); -const sample = (name) => { const t = tensors.find((x) => x.name === name); return t ? `${GGML_TYPE_NAME[t.ggmlType] || t.ggmlType} ${JSON.stringify(t.dims)}` : "(absent)"; }; -console.log("arch:", arch, "| nTensors:", tensors.length); -console.log("type histogram:", typeCount); -console.log("has attn_q.bias:", has("attn_q.bias"), "| has attn_sub_norm:", has("attn_sub_norm.weight"), "| has ffn_sub_norm:", has("ffn_sub_norm.weight"), "| has output.weight:", has("output.weight")); -for (const n of ["token_embd.weight", "blk.0.attn_q.weight", "blk.0.attn_output.weight", "blk.0.ffn_down.weight", "output_norm.weight", "blk.0.attn_sub_norm.weight"]) console.log(" ", n, "=>", sample(n)); // gitleaks:allow — GGUF tensor names, not a secret (entropy false-positive) - -const { holo, rootHolo, nBodies, nTensors, bytes: outLen } = writeHolo(bytes); -writeFileSync(OUT, holo); -console.log(`\nwrote ${OUT} (${(outLen / 1e6 | 0)}MB, ${nTensors} tensors, ${nBodies} unique bodies)`); -console.log("rootHolo:", rootHolo); +version https://git-lfs.github.com/spec/v1 +oid sha256:386771c9698232ba9e6af6aa8d3a6a67f89c39dfd3e139b8f31e4a56d5857b30 +size 1932 diff --git a/b/048dc405399b7359a58d7fdad85d3d5f9d55287309214aab1b590ec1e2a10938 b/b/048dc405399b7359a58d7fdad85d3d5f9d55287309214aab1b590ec1e2a10938 index b69360c5e22aa9e9351b67fdfbe99ae7a27d09a5..6ed5eb1a0caf2fbdeb905c30c25e3d175d782a37 100644 --- a/b/048dc405399b7359a58d7fdad85d3d5f9d55287309214aab1b590ec1e2a10938 +++ b/b/048dc405399b7359a58d7fdad85d3d5f9d55287309214aab1b590ec1e2a10938 @@ -1 +1,3 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Yn}});class r{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let n,o,s="KaTeX parse error: "+e;const i=t&&t.loc;if(i&&i.start<=i.end){const e=i.lexer.input;n=i.start,o=i.end,n===e.length?s+=" at end of input: ":s+=" at position "+(n+1)+": ";const t=e.slice(n,o).replace(/[^]/g,"$&\u0332");let r,a;r=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),a=o+15":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;const a=function(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?a(e.body[0]):e:"font"===e.type?a(e.body):e};var l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(i,(e=>s[e]))},hyphenate:function(e){return e.replace(o,"-$1").toLowerCase()},getBaseElem:a,isCharacterBox:function(e){const t=a(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){const t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}};const h={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function c(e){if(e.default)return e.default;const t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class m{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const t in h)if(h.hasOwnProperty(t)){const r=h[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:c(r)}}reportNonstrict(e,t,r){let o=this.strict;if("function"==typeof o&&(o=o(e,t,r)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){let n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){const t=l.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class p{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return u[d[this.id]]}sub(){return u[g[this.id]]}fracNum(){return u[f[this.id]]}fracDen(){return u[b[this.id]]}cramp(){return u[y[this.id]]}text(){return u[x[this.id]]}isTight(){return this.size>=2}}const u=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],d=[4,5,4,5,6,7,6,7],g=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],b=[3,3,5,5,7,7,7,7],y=[1,1,3,3,5,5,7,7],x=[0,1,2,3,2,3,2,3];var w={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]};const v=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];const k=[];function S(e){for(let t=0;t=k[t]&&e<=k[t+1])return!0;return!1}v.forEach((e=>e.blocks.forEach((e=>k.push(...e)))));const M=80,z={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class A{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return l.contains(this.classes,e)}toNode(){const e=document.createDocumentFragment();for(let t=0;te.toText())).join("")}}var T={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const B={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},C={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function N(e,t,r){if(!T[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),o=T[t][n];if(!o&&e[0]in C&&(n=C[e[0]].charCodeAt(0),o=T[t][n]),o||"text"!==r||S(n)&&(o=T[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}const q={};const I=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],R=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],H=function(e,t){return t.size<2?e:I[e-1][t.size-1]};class O{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||O.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=R[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){const t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new O(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:H(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:R[e-1]})}havingBaseStyle(e){e=e||this.style.text();const t=H(O.BASESIZE,e);return this.size===t&&this.textSize===O.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==O.BASESIZE?["sizing","reset-size"+this.size,"size"+O.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){let t;if(t=e>=5?0:e>=3?1:2,!q[t]){const e=q[t]={cssEmPerMu:B.quad[t]/18};for(const r in B)B.hasOwnProperty(r)&&(e[r]=B[r][t])}return q[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}O.BASESIZE=6;var E=O;const L={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},D={ex:!0,em:!0,mu:!0},V=function(e){return"string"!=typeof e&&(e=e.unit),e in L||e in D||"ex"===e},P=function(e,t){let r;if(e.unit in L)r=L[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{let o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=o.fontMetrics().quad}o!==t&&(r*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},F=function(e){return+e.toFixed(4)+"em"},G=function(e){return e.filter((e=>e)).join(" ")},U=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}},Y=function(e){const t=document.createElement(e);t.className=G(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e",t};class W{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,U.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return l.contains(this.classes,e)}toNode(){return Y.call(this,"span")}toMarkup(){return X.call(this,"span")}}class _{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,U.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return l.contains(this.classes,e)}toNode(){return Y.call(this,"a")}toMarkup(){return X.call(this,"a")}}class j{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return l.contains(this.classes,e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=''+l.escape(this.alt)+'=n[0]&&e<=n[1])return r.name}}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=$[this.text])}hasClass(e){return l.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=G(this.classes));for(const e in this.style)this.style.hasOwnProperty(e)&&(t=t||document.createElement("span"),t.style[e]=this.style[e]);return t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="0&&(r+="margin-right:"+this.italic+"em;");for(const e in this.style)this.style.hasOwnProperty(e)&&(r+=l.hyphenate(e)+":"+this.style[e]+";");r&&(e=!0,t+=' style="'+l.escape(r)+'"');const n=l.escape(this.text);return e?(t+=">",t+=n,t+="",t):n}}class K{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t':''}}class Q{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),se(ie,le,ye,"\u2208","\\in",!0),se(ie,le,ye,"\ue020","\\@not"),se(ie,le,ye,"\u2282","\\subset",!0),se(ie,le,ye,"\u2283","\\supset",!0),se(ie,le,ye,"\u2286","\\subseteq",!0),se(ie,le,ye,"\u2287","\\supseteq",!0),se(ie,he,ye,"\u2288","\\nsubseteq",!0),se(ie,he,ye,"\u2289","\\nsupseteq",!0),se(ie,le,ye,"\u22a8","\\models"),se(ie,le,ye,"\u2190","\\leftarrow",!0),se(ie,le,ye,"\u2264","\\le"),se(ie,le,ye,"\u2264","\\leq",!0),se(ie,le,ye,"<","\\lt",!0),se(ie,le,ye,"\u2192","\\rightarrow",!0),se(ie,le,ye,"\u2192","\\to"),se(ie,he,ye,"\u2271","\\ngeq",!0),se(ie,he,ye,"\u2270","\\nleq",!0),se(ie,le,xe,"\xa0","\\ "),se(ie,le,xe,"\xa0","\\space"),se(ie,le,xe,"\xa0","\\nobreakspace"),se(ae,le,xe,"\xa0","\\ "),se(ae,le,xe,"\xa0"," "),se(ae,le,xe,"\xa0","\\space"),se(ae,le,xe,"\xa0","\\nobreakspace"),se(ie,le,xe,null,"\\nobreak"),se(ie,le,xe,null,"\\allowbreak"),se(ie,le,be,",",","),se(ie,le,be,";",";"),se(ie,he,me,"\u22bc","\\barwedge",!0),se(ie,he,me,"\u22bb","\\veebar",!0),se(ie,le,me,"\u2299","\\odot",!0),se(ie,le,me,"\u2295","\\oplus",!0),se(ie,le,me,"\u2297","\\otimes",!0),se(ie,le,we,"\u2202","\\partial",!0),se(ie,le,me,"\u2298","\\oslash",!0),se(ie,he,me,"\u229a","\\circledcirc",!0),se(ie,he,me,"\u22a1","\\boxdot",!0),se(ie,le,me,"\u25b3","\\bigtriangleup"),se(ie,le,me,"\u25bd","\\bigtriangledown"),se(ie,le,me,"\u2020","\\dagger"),se(ie,le,me,"\u22c4","\\diamond"),se(ie,le,me,"\u22c6","\\star"),se(ie,le,me,"\u25c3","\\triangleleft"),se(ie,le,me,"\u25b9","\\triangleright"),se(ie,le,fe,"{","\\{"),se(ae,le,we,"{","\\{"),se(ae,le,we,"{","\\textbraceleft"),se(ie,le,pe,"}","\\}"),se(ae,le,we,"}","\\}"),se(ae,le,we,"}","\\textbraceright"),se(ie,le,fe,"{","\\lbrace"),se(ie,le,pe,"}","\\rbrace"),se(ie,le,fe,"[","\\lbrack",!0),se(ae,le,we,"[","\\lbrack",!0),se(ie,le,pe,"]","\\rbrack",!0),se(ae,le,we,"]","\\rbrack",!0),se(ie,le,fe,"(","\\lparen",!0),se(ie,le,pe,")","\\rparen",!0),se(ae,le,we,"<","\\textless",!0),se(ae,le,we,">","\\textgreater",!0),se(ie,le,fe,"\u230a","\\lfloor",!0),se(ie,le,pe,"\u230b","\\rfloor",!0),se(ie,le,fe,"\u2308","\\lceil",!0),se(ie,le,pe,"\u2309","\\rceil",!0),se(ie,le,we,"\\","\\backslash"),se(ie,le,we,"\u2223","|"),se(ie,le,we,"\u2223","\\vert"),se(ae,le,we,"|","\\textbar",!0),se(ie,le,we,"\u2225","\\|"),se(ie,le,we,"\u2225","\\Vert"),se(ae,le,we,"\u2225","\\textbardbl"),se(ae,le,we,"~","\\textasciitilde"),se(ae,le,we,"\\","\\textbackslash"),se(ae,le,we,"^","\\textasciicircum"),se(ie,le,ye,"\u2191","\\uparrow",!0),se(ie,le,ye,"\u21d1","\\Uparrow",!0),se(ie,le,ye,"\u2193","\\downarrow",!0),se(ie,le,ye,"\u21d3","\\Downarrow",!0),se(ie,le,ye,"\u2195","\\updownarrow",!0),se(ie,le,ye,"\u21d5","\\Updownarrow",!0),se(ie,le,ge,"\u2210","\\coprod"),se(ie,le,ge,"\u22c1","\\bigvee"),se(ie,le,ge,"\u22c0","\\bigwedge"),se(ie,le,ge,"\u2a04","\\biguplus"),se(ie,le,ge,"\u22c2","\\bigcap"),se(ie,le,ge,"\u22c3","\\bigcup"),se(ie,le,ge,"\u222b","\\int"),se(ie,le,ge,"\u222b","\\intop"),se(ie,le,ge,"\u222c","\\iint"),se(ie,le,ge,"\u222d","\\iiint"),se(ie,le,ge,"\u220f","\\prod"),se(ie,le,ge,"\u2211","\\sum"),se(ie,le,ge,"\u2a02","\\bigotimes"),se(ie,le,ge,"\u2a01","\\bigoplus"),se(ie,le,ge,"\u2a00","\\bigodot"),se(ie,le,ge,"\u222e","\\oint"),se(ie,le,ge,"\u222f","\\oiint"),se(ie,le,ge,"\u2230","\\oiiint"),se(ie,le,ge,"\u2a06","\\bigsqcup"),se(ie,le,ge,"\u222b","\\smallint"),se(ae,le,ue,"\u2026","\\textellipsis"),se(ie,le,ue,"\u2026","\\mathellipsis"),se(ae,le,ue,"\u2026","\\ldots",!0),se(ie,le,ue,"\u2026","\\ldots",!0),se(ie,le,ue,"\u22ef","\\@cdots",!0),se(ie,le,ue,"\u22f1","\\ddots",!0),se(ie,le,we,"\u22ee","\\varvdots"),se(ie,le,ce,"\u02ca","\\acute"),se(ie,le,ce,"\u02cb","\\grave"),se(ie,le,ce,"\xa8","\\ddot"),se(ie,le,ce,"~","\\tilde"),se(ie,le,ce,"\u02c9","\\bar"),se(ie,le,ce,"\u02d8","\\breve"),se(ie,le,ce,"\u02c7","\\check"),se(ie,le,ce,"^","\\hat"),se(ie,le,ce,"\u20d7","\\vec"),se(ie,le,ce,"\u02d9","\\dot"),se(ie,le,ce,"\u02da","\\mathring"),se(ie,le,de,"\ue131","\\@imath"),se(ie,le,de,"\ue237","\\@jmath"),se(ie,le,we,"\u0131","\u0131"),se(ie,le,we,"\u0237","\u0237"),se(ae,le,we,"\u0131","\\i",!0),se(ae,le,we,"\u0237","\\j",!0),se(ae,le,we,"\xdf","\\ss",!0),se(ae,le,we,"\xe6","\\ae",!0),se(ae,le,we,"\u0153","\\oe",!0),se(ae,le,we,"\xf8","\\o",!0),se(ae,le,we,"\xc6","\\AE",!0),se(ae,le,we,"\u0152","\\OE",!0),se(ae,le,we,"\xd8","\\O",!0),se(ae,le,ce,"\u02ca","\\'"),se(ae,le,ce,"\u02cb","\\`"),se(ae,le,ce,"\u02c6","\\^"),se(ae,le,ce,"\u02dc","\\~"),se(ae,le,ce,"\u02c9","\\="),se(ae,le,ce,"\u02d8","\\u"),se(ae,le,ce,"\u02d9","\\."),se(ae,le,ce,"\xb8","\\c"),se(ae,le,ce,"\u02da","\\r"),se(ae,le,ce,"\u02c7","\\v"),se(ae,le,ce,"\xa8",'\\"'),se(ae,le,ce,"\u02dd","\\H"),se(ae,le,ce,"\u25ef","\\textcircled");const ve={"--":!0,"---":!0,"``":!0,"''":!0};se(ae,le,we,"\u2013","--",!0),se(ae,le,we,"\u2013","\\textendash"),se(ae,le,we,"\u2014","---",!0),se(ae,le,we,"\u2014","\\textemdash"),se(ae,le,we,"\u2018","`",!0),se(ae,le,we,"\u2018","\\textquoteleft"),se(ae,le,we,"\u2019","'",!0),se(ae,le,we,"\u2019","\\textquoteright"),se(ae,le,we,"\u201c","``",!0),se(ae,le,we,"\u201c","\\textquotedblleft"),se(ae,le,we,"\u201d","''",!0),se(ae,le,we,"\u201d","\\textquotedblright"),se(ie,le,we,"\xb0","\\degree",!0),se(ae,le,we,"\xb0","\\degree"),se(ae,le,we,"\xb0","\\textdegree",!0),se(ie,le,we,"\xa3","\\pounds"),se(ie,le,we,"\xa3","\\mathsterling",!0),se(ae,le,we,"\xa3","\\pounds"),se(ae,le,we,"\xa3","\\textsterling",!0),se(ie,he,we,"\u2720","\\maltese"),se(ae,he,we,"\u2720","\\maltese");const ke='0123456789/@."';for(let e=0;e{if(G(e.classes)!==G(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(const r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},Ie=function(e){let t=0,r=0,n=0;for(let o=0;ot&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Re=function(e,t,r,n){const o=new W(e,t,r,n);return Ie(o),o},He=(e,t,r,n)=>new W(e,t,r,n),Oe=function(e){const t=new A(e);return Ie(t),t},Ee=function(e,t,r){let n,o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}return n="textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular",o+"-"+n},Le={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},De={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Ve={fontMap:Le,makeSymbol:Ne,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Ce(e,"Main-Bold",t).metrics?Ne(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===oe[t][e].font?Ne(e,"Main-Regular",t,r,n):Ne(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Re,makeSvgSpan:He,makeLineSpan:function(e,t,r){const n=Re([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=F(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){const o=new _(e,t,r,n);return Ie(o),o},makeFragment:Oe,wrapFragment:function(e,t){return e instanceof A?Re([],[e],t):e},makeVList:function(e,t){const{children:r,depth:n}=function(e){if("individualShift"===e.positionType){const t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth;let o=n;for(let e=1;e0)return Ne(s,h,o,t,i.concat(c));if(l){let e,n;if("boldsymbol"===l){const t=function(e,t,r,n,o){return"textord"!==o&&Ce(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(s,o,0,0,r);e=t.fontName,n=[t.fontClass]}else a?(e=Le[l].fontName,n=[l]):(e=Ee(l,t.fontWeight,t.fontShape),n=[l,t.fontWeight,t.fontShape]);if(Ce(s,e,o).metrics)return Ne(s,e,o,t,i.concat(n));if(ve.hasOwnProperty(s)&&"Typewriter"===e.slice(0,10)){const r=[];for(let a=0;a{const r=Re(["mspace"],[],t),n=P(e,t);return r.style.marginRight=F(n),r},staticSvg:function(e,t){const[r,n,o]=De[e],s=new J(r),i=new K([s],{width:F(n),height:F(o),style:"width:"+F(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),a=He(["overlay"],[i],t);return a.height=o,a.style.height=F(o),a.style.width=F(n),a},svgData:De,tryCombineChars:e=>{for(let t=0;t{const r=t.classes[0],n=e.classes[0];"mbin"===r&&l.contains(et,n)?t.classes[0]="mord":"mbin"===n&&l.contains(Qe,r)&&(e.classes[0]="mord")}),{node:i},a,h),ot(o,((e,t)=>{const r=at(t),n=at(e),o=r&&n?e.hasClass("mtight")?Ye[r][n]:Ue[r][n]:null;if(o)return Ve.makeGlue(o,s)}),{node:i},a,h),o},ot=function(e,t,r,n,o){n&&e.push(n);let s=0;for(;sr=>{e.splice(t+1,0,r),s++})(s)}n&&e.pop()},st=function(e){return e instanceof A||e instanceof _||e instanceof W&&e.hasClass("enclosing")?e:null},it=function(e,t){const r=st(e);if(r){const e=r.children;if(e.length){if("right"===t)return it(e[e.length-1],"right");if("left"===t)return it(e[0],"left")}}return e},at=function(e,t){return e?(t&&(e=it(e,t)),rt[e.classes[0]]||null):null},lt=function(e,t){const r=["nulldelimiter"].concat(e.baseSizingClasses());return Je(t.concat(r))},ht=function(e,t,r){if(!e)return Je();if(We[e.type]){let n=We[e.type](e,t);if(r&&t.size!==r.size){n=Je(t.sizingClasses(r),[n],t);const e=t.sizeMultiplier/r.sizeMultiplier;n.height*=e,n.depth*=e}return n}throw new n("Got group of unknown type: '"+e.type+"'")};function ct(e,t){const r=Je(["base"],e,t),n=Je(["strut"]);return n.style.height=F(r.height+r.depth),r.depth&&(n.style.verticalAlign=F(-r.depth)),r.children.unshift(n),r}function mt(e,t){let r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);const n=nt(e,t,"root");let o;2===n.length&&n[1].hasClass("tag")&&(o=n.pop());const s=[];let i,a=[];for(let e=0;e0&&(s.push(ct(a,t)),a=[]),s.push(n[e]));a.length>0&&s.push(ct(a,t)),r?(i=ct(nt(r,t,!0)),i.classes=["tag"],s.push(i)):o&&s.push(o);const l=Je(["katex-html"],s);if(l.setAttribute("aria-hidden","true"),i){const e=i.children[0];e.style.height=F(l.height+l.depth),l.depth&&(e.style.verticalAlign=F(-l.depth))}return l}function pt(e){return new A(e)}class ut{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=G(this.classes));for(let t=0;t0&&(e+=' class ="'+l.escape(G(this.classes))+'"'),e+=">";for(let t=0;t",e}toText(){return this.children.map((e=>e.toText())).join("")}}class dt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return l.escape(this.toText())}toText(){return this.text}}var gt={MathNode:ut,TextNode:dt,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",F(this.width)),e}}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:pt};const ft=function(e,t,r){return!oe[t][e]||!oe[t][e].replace||55349===e.charCodeAt(0)||ve.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=oe[t][e].replace),new gt.TextNode(e)},bt=function(e){return 1===e.length?e[0]:new gt.MathNode("mrow",e)},yt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";const r=t.font;if(!r||"mathnormal"===r)return null;const n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";let o=e.text;if(l.contains(["\\imath","\\jmath"],o))return null;oe[n][o]&&oe[n][o].replace&&(o=oe[n][o].replace);return N(o,Ve.fontMap[r].fontName,n)?Ve.fontMap[r].variant:null},xt=function(e,t,r){if(1===e.length){const n=vt(e[0],t);return r&&n instanceof ut&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let o;for(let r=0;r0&&(e.text=e.text.slice(0,1)+"\u0338"+e.text.slice(1),n.pop())}}}n.push(s),o=s}return n},wt=function(e,t,r){return bt(xt(e,t,r))},vt=function(e,t){if(!e)return new gt.MathNode("mrow");if(_e[e.type]){return _e[e.type](e,t)}throw new n("Got group of unknown type: '"+e.type+"'")};function kt(e,t,r,n,o){const s=xt(e,r);let i;i=1===s.length&&s[0]instanceof ut&&l.contains(["mrow","mtable"],s[0].type)?s[0]:new gt.MathNode("mrow",s);const a=new gt.MathNode("annotation",[new gt.TextNode(t)]);a.setAttribute("encoding","application/x-tex");const h=new gt.MathNode("semantics",[i,a]),c=new gt.MathNode("math",[h]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");const m=o?"katex":"katex-mathml";return Ve.makeSpan([m],[c])}const St=function(e){return new E({style:e.displayMode?w.DISPLAY:w.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Mt=function(e,t){if(t.displayMode){const r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Ve.makeSpan(r,[e])}return e},zt=function(e,t,r){const n=St(r);let o;if("mathml"===r.output)return kt(e,t,n,r.displayMode,!0);if("html"===r.output){const t=mt(e,n);o=Ve.makeSpan(["katex"],[t])}else{const s=kt(e,t,n,r.displayMode,!1),i=mt(e,n);o=Ve.makeSpan(["katex"],[s,i])}return Mt(o,r)};const At={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Tt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};var Bt=function(e,t,r,n,o){let s;const i=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(s=Ve.makeSpan(["stretchy",t],[],o),"fbox"===t){const e=o.color&&o.getColor();e&&(s.style.borderColor=e)}}else{const e=[];/^[bx]cancel$/.test(t)&&e.push(new Q({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new Q({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const r=new K(e,{width:"100%",height:F(i)});s=Ve.makeSvgSpan([],[r],o)}return s.height=i,s.style.height=F(i),s},Ct=function(e){const t=new gt.MathNode("mo",[new gt.TextNode(At[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Nt=function(e,t){const{span:r,minWidth:n,height:o}=function(){let r=4e5;const n=e.label.slice(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],n)){const s="ordgroup"===(o=e.base).type?o.body.length:1;let i,a,l;if(s>5)"widehat"===n||"widecheck"===n?(i=420,r=2364,l=.42,a=n+"4"):(i=312,r=2340,l=.34,a="tilde4");else{const e=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][e],i=[0,239,300,360,420][e],l=[0,.24,.3,.3,.36,.42][e],a=n+e):(r=[0,600,1033,2339,2340][e],i=[0,260,286,306,312][e],l=[0,.26,.286,.3,.306,.34][e],a="tilde"+e)}const h=new J(a),c=new K([h],{width:"100%",height:F(l),viewBox:"0 0 "+r+" "+i,preserveAspectRatio:"none"});return{span:Ve.makeSvgSpan([],[c],t),minWidth:0,height:l}}{const e=[],o=Tt[n],[s,i,a]=o,l=a/1e3,h=s.length;let c,m;if(1===h){c=["hide-tail"],m=[o[3]]}else if(2===h)c=["halfarrow-left","halfarrow-right"],m=["xMinYMin","xMaxYMin"];else{if(3!==h)throw new Error("Correct katexImagesData or update code here to support\n "+h+" children.");c=["brace-left","brace-center","brace-right"],m=["xMinYMin","xMidYMin","xMaxYMin"]}for(let n=0;n0&&(r.style.minWidth=F(n)),r};function qt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function It(e){const t=Rt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Rt(e){return e&&("atom"===e.type||re.hasOwnProperty(e.type))?e:null}const Ht=(e,t)=>{let r,n,o;e&&"supsub"===e.type?(n=qt(e.base,"accent"),r=n.base,e.base=r,o=function(e){if(e instanceof W)return e;throw new Error("Expected span but got "+String(e)+".")}(ht(e,t)),e.base=n):(n=qt(e,"accent"),r=n.base);const s=ht(r,t.havingCrampedStyle());let i=0;if(n.isShifty&&l.isCharacterBox(r)){const e=l.getBaseElem(r);i=ee(ht(e,t.havingCrampedStyle())).skew}const a="\\c"===n.label;let h,c=a?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Nt(n,t),h=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:i>0?{width:"calc(100% - "+F(2*i)+")",marginLeft:F(2*i)}:void 0}]},t);else{let e,r;"\\vec"===n.label?(e=Ve.staticSvg("vec",t),r=Ve.svgData.vec[1]):(e=Ve.makeOrd({mode:n.mode,text:n.label},t,"textord"),e=ee(e),e.italic=0,r=e.width,a&&(c+=e.depth)),h=Ve.makeSpan(["accent-body"],[e]);const o="\\textcircled"===n.label;o&&(h.classes.push("accent-full"),c=s.height);let l=i;o||(l-=r/2),h.style.left=F(l),"\\textcircled"===n.label&&(h.style.top=".2em"),h=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-c},{type:"elem",elem:h}]},t)}const m=Ve.makeSpan(["mord","accent"],[h],t);return o?(o.children[0]=m,o.height=Math.max(m.height,o.height),o.classes[0]="mord",o):m},Ot=(e,t)=>{const r=e.isStretchy?Ct(e.label):new gt.MathNode("mo",[ft(e.label,e.mode)]),n=new gt.MathNode("mover",[vt(e.base,t),r]);return n.setAttribute("accent","true"),n},Et=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));je({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{const r=Ze(t[0]),n=!Et.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:Ht,mathmlBuilder:Ot}),je({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{const r=t[0];let n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ht,mathmlBuilder:Ot}),je({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(e,t)=>{const r=ht(e.base,t),n=Nt(e,t),o="\\utilde"===e.label?.12:0,s=Ve.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return Ve.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{const r=Ct(e.label),n=new gt.MathNode("munder",[vt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});const Lt=e=>{const t=new gt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};je({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){let{parser:n,funcName:o}=e;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder(e,t){const r=t.style;let n=t.havingStyle(r.sup());const o=Ve.wrapFragment(ht(e.body,n,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";let i;o.classes.push(s+"-arrow-pad"),e.below&&(n=t.havingStyle(r.sub()),i=Ve.wrapFragment(ht(e.below,n,t),t),i.classes.push(s+"-arrow-pad"));const a=Nt(e,t),l=-t.fontMetrics().axisHeight+.5*a.height;let h,c=-t.fontMetrics().axisHeight-.5*a.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=o.depth),i){const e=-t.fontMetrics().axisHeight+i.height+.5*a.height+.111;h=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:a,shift:l},{type:"elem",elem:i,shift:e}]},t)}else h=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:a,shift:l}]},t);return h.children[0].children[0].children[1].classes.push("svg-align"),Ve.makeSpan(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){const r=Ct(e.label);let n;if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){const o=Lt(vt(e.body,t));if(e.below){const s=Lt(vt(e.below,t));n=new gt.MathNode("munderover",[r,s,o])}else n=new gt.MathNode("mover",[r,o])}else if(e.below){const o=Lt(vt(e.below,t));n=new gt.MathNode("munder",[r,o])}else n=Lt(),n=new gt.MathNode("mover",[r,n]);return n}});const Dt=Ve.makeSpan;function Vt(e,t){const r=nt(e.body,t,!0);return Dt([e.mclass],r,t)}function Pt(e,t){let r;const n=xt(e.body,t);return"minner"===e.mclass?r=new gt.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0],r.type="mi"):r=new gt.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new gt.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}je({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){let{parser:r,funcName:n}=e;const o=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Ke(o),isCharacterBox:l.isCharacterBox(o)}},htmlBuilder:Vt,mathmlBuilder:Pt});const Ft=e=>{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};je({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){let{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ft(t[0]),body:Ke(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),je({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){let{parser:r,funcName:n}=e;const o=t[1],s=t[0];let i;i="\\stackrel"!==n?Ft(o):"mrel";const a={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:Ke(o)},h={type:"supsub",mode:s.mode,base:a,sup:"\\underset"===n?null:s,sub:"\\underset"===n?s:null};return{type:"mclass",mode:r.mode,mclass:i,body:[h],isCharacterBox:l.isCharacterBox(h)}},htmlBuilder:Vt,mathmlBuilder:Pt}),je({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ft(t[0]),body:Ke(t[0])}},htmlBuilder(e,t){const r=nt(e.body,t,!0),n=Ve.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){const r=xt(e.body,t),n=new gt.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});const Gt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ut=e=>"textord"===e.type&&"@"===e.text;function Yt(e,t,r){const n=Gt[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:n,mode:"math",family:"rel"},o={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[e],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const e={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[e],[])}default:return{type:"textord",text:" ",mode:"math"}}}je({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){let{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){const r=t.havingStyle(t.style.sup()),n=Ve.wrapFragment(ht(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=F(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){let r=new gt.MathNode("mrow",[vt(e.label,t)]);return r=new gt.MathNode("mpadded",[r]),r.setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new gt.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),je({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){let{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){const r=Ve.wrapFragment(ht(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new gt.MathNode("mrow",[vt(e.fragment,t)])}}),je({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:r}=e;const o=qt(t[0],"ordgroup").body;let s="";for(let e=0;e=1114111)throw new n("\\@char with invalid code point "+s);return a<=65535?i=String.fromCharCode(a):(a-=65536,i=String.fromCharCode(55296+(a>>10),56320+(1023&a))),{type:"textord",mode:r.mode,text:i}}});const Xt=(e,t)=>{const r=nt(e.body,t.withColor(e.color),!1);return Ve.makeFragment(r)},Wt=(e,t)=>{const r=xt(e.body,t.withColor(e.color)),n=new gt.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};je({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){let{parser:r}=e;const n=qt(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:Ke(o)}},htmlBuilder:Xt,mathmlBuilder:Wt}),je({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){let{parser:r,breakOnTokenText:n}=e;const o=qt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);const s=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:s}},htmlBuilder:Xt,mathmlBuilder:Wt}),je({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){let{parser:n}=e;const o="["===n.gullet.future().text?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:o&&qt(o,"size").value}},htmlBuilder(e,t){const r=Ve.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=F(P(e.size,t)))),r},mathmlBuilder(e,t){const r=new gt.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",F(P(e.size,t)))),r}});const _t={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},jt=e=>{const t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},$t=(e,t,r,n)=>{let o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};je({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){let{parser:t,funcName:r}=e;t.consumeSpaces();const o=t.fetch();if(_t[o.text])return"\\global"!==r&&"\\\\globallong"!==r||(o.text=_t[o.text]),qt(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",o)}}),je({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:r}=e,o=t.gullet.popToken();const s=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new n("Expected a control sequence",o);let i,a=0;const l=[[]];for(;"{"!==t.gullet.future().text;)if(o=t.gullet.popToken(),"#"===o.text){if("{"===t.gullet.future().text){i=t.gullet.future(),l[a].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new n('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==a+1)throw new n('Argument number "'+o.text+'" out of order');a++,l.push([])}else{if("EOF"===o.text)throw new n("Expected a macro definition");l[a].push(o.text)}let{tokens:h}=t.gullet.consumeArg();return i&&h.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(s,{tokens:h,numArgs:a,delimiters:l},r===_t[r]),{type:"internal",mode:t.mode}}}),je({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:r}=e;const n=jt(t.gullet.popToken());t.gullet.consumeSpaces();const o=(e=>{let t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t})(t);return $t(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),je({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:r}=e;const n=jt(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return $t(t,n,s,"\\\\globalfuture"===r),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});const Zt=function(e,t,r){const n=N(oe.math[e]&&oe.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},Kt=function(e,t,r,n){const o=r.havingBaseStyle(t),s=Ve.makeSpan(n.concat(o.sizingClasses(r)),[e],r),i=o.sizeMultiplier/r.sizeMultiplier;return s.height*=i,s.depth*=i,s.maxFontSize=o.sizeMultiplier,s},Jt=function(e,t,r){const n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=F(o),e.height-=o,e.depth+=o},Qt=function(e,t,r,n,o,s){const i=function(e,t,r,n){return Ve.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),a=Kt(Ve.makeSpan(["delimsizing","size"+t],[i],n),w.TEXT,n,s);return r&&Jt(a,n,w.TEXT),a},er=function(e,t,r){let n;n="Size1-Regular"===t?"delim-size1":"delim-size4";return{type:"elem",elem:Ve.makeSpan(["delimsizinginner",n],[Ve.makeSpan([],[Ve.makeSymbol(e,t,r)])])}},tr=function(e,t,r){const n=T["Size4-Regular"][e.charCodeAt(0)]?T["Size4-Regular"][e.charCodeAt(0)][4]:T["Size1-Regular"][e.charCodeAt(0)][4],o=new J("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),s=new K([o],{width:F(n),height:F(t),style:"width:"+F(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),i=Ve.makeSvgSpan([],[s],r);return i.height=t,i.style.height=F(t),i.style.width=F(n),{type:"elem",elem:i}},rr={type:"kern",size:-.008},nr=["|","\\lvert","\\rvert","\\vert"],or=["\\|","\\lVert","\\rVert","\\Vert"],sr=function(e,t,r,n,o,s){let i,a,h,c,m="",p=0;i=h=c=e,a=null;let u="Size1-Regular";"\\uparrow"===e?h=c="\u23d0":"\\Uparrow"===e?h=c="\u2016":"\\downarrow"===e?i=h="\u23d0":"\\Downarrow"===e?i=h="\u2016":"\\updownarrow"===e?(i="\\uparrow",h="\u23d0",c="\\downarrow"):"\\Updownarrow"===e?(i="\\Uparrow",h="\u2016",c="\\Downarrow"):l.contains(nr,e)?(h="\u2223",m="vert",p=333):l.contains(or,e)?(h="\u2225",m="doublevert",p=556):"["===e||"\\lbrack"===e?(i="\u23a1",h="\u23a2",c="\u23a3",u="Size4-Regular",m="lbrack",p=667):"]"===e||"\\rbrack"===e?(i="\u23a4",h="\u23a5",c="\u23a6",u="Size4-Regular",m="rbrack",p=667):"\\lfloor"===e||"\u230a"===e?(h=i="\u23a2",c="\u23a3",u="Size4-Regular",m="lfloor",p=667):"\\lceil"===e||"\u2308"===e?(i="\u23a1",h=c="\u23a2",u="Size4-Regular",m="lceil",p=667):"\\rfloor"===e||"\u230b"===e?(h=i="\u23a5",c="\u23a6",u="Size4-Regular",m="rfloor",p=667):"\\rceil"===e||"\u2309"===e?(i="\u23a4",h=c="\u23a5",u="Size4-Regular",m="rceil",p=667):"("===e||"\\lparen"===e?(i="\u239b",h="\u239c",c="\u239d",u="Size4-Regular",m="lparen",p=875):")"===e||"\\rparen"===e?(i="\u239e",h="\u239f",c="\u23a0",u="Size4-Regular",m="rparen",p=875):"\\{"===e||"\\lbrace"===e?(i="\u23a7",a="\u23a8",c="\u23a9",h="\u23aa",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(i="\u23ab",a="\u23ac",c="\u23ad",h="\u23aa",u="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(i="\u23a7",c="\u23a9",h="\u23aa",u="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(i="\u23ab",c="\u23ad",h="\u23aa",u="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(i="\u23a7",c="\u23ad",h="\u23aa",u="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(i="\u23ab",c="\u23a9",h="\u23aa",u="Size4-Regular");const d=Zt(i,u,o),g=d.height+d.depth,f=Zt(h,u,o),b=f.height+f.depth,y=Zt(c,u,o),x=y.height+y.depth;let v=0,k=1;if(null!==a){const e=Zt(a,u,o);v=e.height+e.depth,k=2}const S=g+x+v,M=S+Math.max(0,Math.ceil((t-S)/(k*b)))*k*b;let z=n.fontMetrics().axisHeight;r&&(z*=n.sizeMultiplier);const A=M/2-z,T=[];if(m.length>0){const e=M-g-x,t=Math.round(1e3*M),r=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(m,Math.round(1e3*e)),o=new J(m,r),s=(p/1e3).toFixed(3)+"em",i=(t/1e3).toFixed(3)+"em",a=new K([o],{width:s,height:i,viewBox:"0 0 "+p+" "+t}),l=Ve.makeSvgSpan([],[a],n);l.height=t/1e3,l.style.width=s,l.style.height=i,T.push({type:"elem",elem:l})}else{if(T.push(er(c,u,o)),T.push(rr),null===a){const e=M-g-x+.016;T.push(tr(h,e,n))}else{const e=(M-g-x-v)/2+.016;T.push(tr(h,e,n)),T.push(rr),T.push(er(a,u,o)),T.push(rr),T.push(tr(h,e,n))}T.push(rr),T.push(er(i,u,o))}const B=n.havingBaseStyle(w.TEXT),C=Ve.makeVList({positionType:"bottom",positionData:A,children:T},B);return Kt(Ve.makeSpan(["delimsizing","mult"],[C],B),w.TEXT,n,s)},ir=.08,ar=function(e,t,r,n,o){const s=function(e,t,r){t*=1e3;let n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,M);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,M);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,M);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,M);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,M);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,M,r)}return n}(e,n,r),i=new J(e,s),a=new K([i],{width:"400em",height:F(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Ve.makeSvgSpan(["hide-tail"],[a],o)},lr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],hr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],cr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],mr=[0,1.2,1.8,2.4,3],pr=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ur=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],dr=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],gr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},fr=function(e,t,r,n){for(let o=Math.min(2,3-n.style.size);ot)return r[o]}return r[r.length-1]},br=function(e,t,r,n,o,s){let i;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),i=l.contains(cr,e)?pr:l.contains(lr,e)?dr:ur;const a=fr(e,t,i,n);return"small"===a.type?function(e,t,r,n,o,s){const i=Ve.makeSymbol(e,"Main-Regular",o,n),a=Kt(i,t,n,s);return r&&Jt(a,n,t),a}(e,a.style,r,n,o,s):"large"===a.type?Qt(e,a.size,r,n,o,s):sr(e,t,r,n,o,s)};var yr={sqrtImage:function(e,t){const r=t.havingBaseSizing(),n=fr("\\surd",e*r.sizeMultiplier,dr,r);let o=r.sizeMultiplier;const s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let i,a,l=0,h=0,c=0;return"small"===n.type?(c=1e3+1e3*s+80,e<1?o=1:e<1.4&&(o=.7),l=(1+s+ir)/o,h=(1+s)/o,i=ar("sqrtMain",l,c,s,t),i.style.minWidth="0.853em",a=.833/o):"large"===n.type?(c=1080*mr[n.size],h=(mr[n.size]+s)/o,l=(mr[n.size]+s+ir)/o,i=ar("sqrtSize"+n.size,l,c,s,t),i.style.minWidth="1.02em",a=1/o):(l=e+s+ir,h=e+s,c=Math.floor(1e3*e+s)+80,i=ar("sqrtTall",l,c,s,t),i.style.minWidth="0.742em",a=1.056),i.height=h,i.style.height=F(l),{span:i,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,o,s){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),l.contains(lr,e)||l.contains(cr,e))return Qt(e,t,!1,r,o,s);if(l.contains(hr,e))return sr(e,mr[t],!1,r,o,s);throw new n("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:mr,customSizedDelim:br,leftRightDelim:function(e,t,r,n,o,s){const i=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,l=Math.max(t-i,r+i),h=Math.max(l/500*901,2*l-a);return br(e,h,!0,n,o,s)}};const xr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},wr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function vr(e,t){const r=Rt(e);if(r&&l.contains(wr,r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function kr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}je({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{const r=vr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:xr[e.funcName].size,mclass:xr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Ve.makeSpan([e.mclass]):yr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{const t=[];"."!==e.delim&&t.push(ft(e.delim,e.mode));const r=new gt.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");const n=F(yr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),je({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:vr(t[0],e).text,color:r}}}),je({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const r=vr(t[0],e),n=e.parser;++n.leftrightDepth;const o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);const s=qt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{kr(e);const r=nt(e.body,t,!0,["mopen","mclose"]);let n,o,s=0,i=0,a=!1;for(let e=0;e{kr(e);const r=xt(e.body,t);if("."!==e.left){const t=new gt.MathNode("mo",[ft(e.left,e.mode)]);t.setAttribute("fence","true"),r.unshift(t)}if("."!==e.right){const t=new gt.MathNode("mo",[ft(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),r.push(t)}return bt(r)}}),je({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const r=vr(t[0],e);if(!e.parser.leftrightDepth)throw new n("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{let r;if("."===e.delim)r=lt(t,[]);else{r=yr.sizedDelim(e.delim,1,t,e.mode,[]);const n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{const r="\\vert"===e.delim||"|"===e.delim?ft("|","text"):ft(e.delim,e.mode),n=new gt.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});const Sr=(e,t)=>{const r=Ve.wrapFragment(ht(e.body,t),t),n=e.label.slice(1);let o,s=t.sizeMultiplier,i=0;const a=l.isCharacterBox(e.body);if("sout"===n)o=Ve.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/s,i=-.5*t.fontMetrics().xHeight;else if("phase"===n){const e=P({number:.6,unit:"pt"},t),n=P({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;const a=r.height+r.depth+e+n;r.style.paddingLeft=F(a/2+e);const l=Math.floor(1e3*a*s),c="M400000 "+(h=l)+" H0 L"+h/2+" 0 l65 45 L145 "+(h-80)+" H400000z",m=new K([new J("phase",c)],{width:"400em",height:F(l/1e3),viewBox:"0 0 400000 "+l,preserveAspectRatio:"xMinYMin slice"});o=Ve.makeSvgSpan(["hide-tail"],[m],t),o.style.height=F(a),i=r.depth+e+n}else{/cancel/.test(n)?a||r.classes.push("cancel-pad"):"angl"===n?r.classes.push("anglpad"):r.classes.push("boxpad");let s=0,l=0,h=0;/box/.test(n)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),s=t.fontMetrics().fboxsep+("colorbox"===n?0:h),l=s):"angl"===n?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),s=4*h,l=Math.max(0,.25-r.depth)):(s=a?.2:0,l=s),o=Bt(r,n,s,l,t),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=F(h)):"angl"===n&&.049!==h&&(o.style.borderTopWidth=F(h),o.style.borderRightWidth=F(h)),i=r.depth+l,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var h;let c;if(e.backgroundColor)c=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:i},{type:"elem",elem:r,shift:0}]},t);else{const e=/cancel|phase/.test(n)?["svg-align"]:[];c=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:i,wrapperClasses:e}]},t)}return/cancel/.test(n)&&(c.height=r.height,c.depth=r.depth),/cancel/.test(n)&&!a?Ve.makeSpan(["mord","cancel-lap"],[c],t):Ve.makeSpan(["mord"],[c],t)},Mr=(e,t)=>{let r=0;const n=new gt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[vt(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){const r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};je({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){let{parser:n,funcName:o}=e;const s=qt(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:s,body:i}},htmlBuilder:Sr,mathmlBuilder:Mr}),je({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){let{parser:n,funcName:o}=e;const s=qt(t[0],"color-token").color,i=qt(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,borderColor:s,body:a}},htmlBuilder:Sr,mathmlBuilder:Mr}),je({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){let{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),je({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){let{parser:r,funcName:n}=e;const o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}},htmlBuilder:Sr,mathmlBuilder:Mr}),je({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){let{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});const zr={};function Ar(e){let{type:t,names:r,props:n,handler:o,htmlBuilder:s,mathmlBuilder:i}=e;const a={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o};for(let e=0;e{if(!e.parser.settings.displayMode)throw new n("{"+e.envName+"} can be used only in display mode.")};function Rr(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Hr(e,t,r){let{hskipBeforeAndAfter:o,addJot:s,cols:i,arraystretch:a,colSeparationType:l,autoTag:h,singleRow:c,emptySingleRow:m,maxNumCols:p,leqno:u}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){const t=e.gullet.expandMacroAsText("\\arraystretch");if(null==t)a=1;else if(a=parseFloat(t),!a||a<0)throw new n("Invalid \\arraystretch: "+t)}e.gullet.beginGroup();let d=[];const g=[d],f=[],b=[],y=null!=h?[]:void 0;function x(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new Nr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(h)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(x(),b.push(qr(e));;){let t=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),t={type:"ordgroup",mode:e.mode,body:t},r&&(t={type:"styling",mode:e.mode,style:r,body:[t]}),d.push(t);const o=e.fetch().text;if("&"===o){if(p&&d.length===p){if(c||l)throw new n("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===o){w(),1===d.length&&"styling"===t.type&&0===t.body[0].body.length&&(g.length>1||!m)&&g.pop(),b.length0&&(x+=.25),c.push({pos:x,isDashed:e[t]})}for(v(i[0]),r=0;r0&&(p+=y,le)))for(r=0;r=a)continue;(o>0||e.hskipBeforeAndAfter)&&(i=l.deflt(c.pregap,u),0!==i&&(z=Ve.makeSpan(["arraycolsep"],[]),z.style.width=F(i),M.push(z)));let d=[];for(r=0;r0){const e=Ve.makeLineSpan("hline",t,m),r=Ve.makeLineSpan("hdashline",t,m),n=[{type:"elem",elem:h,shift:0}];for(;c.length>0;){const t=c.pop(),o=t.pos-k;t.isDashed?n.push({type:"elem",elem:r,shift:o}):n.push({type:"elem",elem:e,shift:o})}h=Ve.makeVList({positionType:"individualShift",children:n},t)}if(0===T.length)return Ve.makeSpan(["mord"],[h],t);{let e=Ve.makeVList({positionType:"individualShift",children:T},t);return e=Ve.makeSpan(["tag"],[e],t),Ve.makeFragment([h,e])}},Lr={c:"center ",l:"left ",r:"right "},Dr=function(e,t){const r=[],n=new gt.MathNode("mtd",[],["mtr-glue"]),o=new gt.MathNode("mtd",[],["mml-eqn-num"]);for(let s=0;s0){const t=e.cols;let r="",n=!1,o=0,i=t.length;"separator"===t[0].type&&(a+="top ",o=1),"separator"===t[t.length-1].type&&(a+="bottom ",i-=1);for(let e=o;e0?"left ":"",a+=c[c.length-1].length>0?"right ":"";for(let e=1;e-1?"alignat":"align",s="split"===e.envName,i=Hr(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:Rr(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display");let a,l=0;const h={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){let e="";for(let r=0;r0&&c&&(n=1),r[e]={type:"align",align:t,pregap:n,postgap:0}}return i.colSeparationType=c?"align":"alignat",i};Ar({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){const r=(Rt(t[0])?[t[0]]:qt(t[0],"ordgroup").body).map((function(e){const t=It(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+t,e)})),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Hr(e.parser,o,Or(e.envName))},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let r="c";const o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){const t=e.parser;if(t.consumeSpaces(),"["===t.fetch().text){if(t.consume(),t.consumeSpaces(),r=t.fetch().text,-1==="lcr".indexOf(r))throw new n("Expected l or c or r",t.nextToken);t.consume(),t.consumeSpaces(),t.expect("]"),t.consume(),o.cols=[{type:"align",align:r}]}}const s=Hr(e.parser,o,Or(e.envName)),i=Math.max(0,...s.body.map((e=>e.length)));return s.cols=new Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=Hr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){const r=(Rt(t[0])?[t[0]]:qt(t[0],"ordgroup").body).map((function(e){const t=It(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)}));if(r.length>1)throw new n("{subarray} can contain only one column");let o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Hr(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new n("{subarray} can contain only one column");return o},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){const t=Hr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Or(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Vr,htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){l.contains(["gather","gather*"],e.envName)&&Ir(e);const t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Rr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Hr(e.parser,t,"display")},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Vr,htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ir(e);const t={autoTag:Rr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Hr(e.parser,t,"display")},htmlBuilder:Er,mathmlBuilder:Dr}),Ar({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Ir(e),function(e){const t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();const r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}let r=[];const o=[r];for(let a=0;a-1);else{if(!("<>AV".indexOf(o)>-1))throw new n('Expected one of "<>AV=|." after @',l[t]);for(let e=0;e<2;e++){let r=!0;for(let h=t+1;h{const r=e.font,n=t.withFont(r);return ht(e.body,n)},Gr=(e,t)=>{const r=e.font,n=t.withFont(r);return vt(e.body,n)},Ur={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};je({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=Ze(t[0]);let s=n;return s in Ur&&(s=Ur[s]),{type:"font",mode:r.mode,font:s.slice(1),body:o}},htmlBuilder:Fr,mathmlBuilder:Gr}),je({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{let{parser:r}=e;const n=t[0],o=l.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Ft(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),je({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let{parser:r,funcName:n,breakOnTokenText:o}=e;const{mode:s}=r,i=r.parseExpression(!0,o);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:i}}},htmlBuilder:Fr,mathmlBuilder:Gr});const Yr=(e,t)=>{let r=t;return"display"===e?r=r.id>=w.SCRIPT.id?r.text():w.DISPLAY:"text"===e&&r.size===w.DISPLAY.size?r=w.TEXT:"script"===e?r=w.SCRIPT:"scriptscript"===e&&(r=w.SCRIPTSCRIPT),r},Xr=(e,t)=>{const r=Yr(e.size,t.style),n=r.fracNum(),o=r.fracDen();let s;s=t.havingStyle(n);const i=ht(e.numer,s,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,r=3.5/t.fontMetrics().ptPerEm;i.height=i.height0?3*c:7*c,u=t.fontMetrics().denom1):(h>0?(m=t.fontMetrics().num2,p=c):(m=t.fontMetrics().num3,p=3*c),u=t.fontMetrics().denom2),l){const e=t.fontMetrics().axisHeight;m-i.depth-(e+.5*h){let r=new gt.MathNode("mfrac",[vt(e.numer,t),vt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=P(e.barSize,t);r.setAttribute("linethickness",F(n))}}else r.setAttribute("linethickness","0px");const n=Yr(e.size,t.style);if(n.size!==t.style.size){r=new gt.MathNode("mstyle",[r]);const e=n.size===w.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",e),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const r=new gt.MathNode("mo",[new gt.TextNode(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(r),null!=e.rightDelim){const r=new gt.MathNode("mo",[new gt.TextNode(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}return bt(t)}return r};je({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=t[1];let i,a=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,a="(",l=")";break;case"\\\\bracefrac":i=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:o,denom:s,hasBarLine:i,leftDelim:a,rightDelim:l,size:h,barSize:null}},htmlBuilder:Xr,mathmlBuilder:Wr}),je({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),je({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:r,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});const _r=["display","text","script","scriptscript"],jr=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};je({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){let{parser:r}=e;const n=t[4],o=t[5],s=Ze(t[0]),i="atom"===s.type&&"open"===s.family?jr(s.text):null,a=Ze(t[1]),l="atom"===a.type&&"close"===a.family?jr(a.text):null,h=qt(t[2],"size");let c,m=null;h.isBlank?c=!0:(m=h.value,c=m.number>0);let p="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){const e=qt(u.body[0],"textord");p=_r[Number(e.text)]}}else u=qt(u,"textord"),p=_r[Number(u.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:c,barSize:m,leftDelim:i,rightDelim:l,size:p}},htmlBuilder:Xr,mathmlBuilder:Wr}),je({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){let{parser:r,funcName:n,token:o}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:qt(t[0],"size").value,token:o}}}),je({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0],s=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(qt(t[1],"infix").size),i=t[2],a=s.number>0;return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Xr,mathmlBuilder:Wr});const $r=(e,t)=>{const r=t.style;let n,o;"supsub"===e.type?(n=e.sup?ht(e.sup,t.havingStyle(r.sup()),t):ht(e.sub,t.havingStyle(r.sub()),t),o=qt(e.base,"horizBrace")):o=qt(e,"horizBrace");const s=ht(o.base,t.havingBaseStyle(w.DISPLAY)),i=Nt(o,t);let a;if(o.isOver?(a=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),a.children[0].children[0].children[1].classes.push("svg-align")):(a=Ve.makeVList({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),a.children[0].children[0].children[0].classes.push("svg-align")),n){const e=Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[a],t);a=o.isOver?Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ve.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return Ve.makeSpan(["mord",o.isOver?"mover":"munder"],[a],t)};je({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){let{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:$r,mathmlBuilder:(e,t)=>{const r=Ct(e.label);return new gt.MathNode(e.isOver?"mover":"munder",[vt(e.base,t),r])}}),je({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[1],o=qt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:Ke(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const r=nt(e.body,t,!1);return Ve.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{let r=wt(e.body,t);return r instanceof ut||(r=new ut("mrow",[r])),r.setAttribute("href",e.href),r}}),je({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");const o=[];for(let e=0;e{let{parser:r,funcName:o,token:s}=e;const i=qt(t[0],"raw").string,a=t[1];let l;r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");const h={};switch(o){case"\\htmlClass":h.class=i,l={command:"\\htmlClass",class:i};break;case"\\htmlId":h.id=i,l={command:"\\htmlId",id:i};break;case"\\htmlStyle":h.style=i,l={command:"\\htmlStyle",style:i};break;case"\\htmlData":{const e=i.split(",");for(let t=0;t{const r=nt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));const o=Ve.makeSpan(n,r,t);for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&o.setAttribute(t,e.attributes[t]);return o},mathmlBuilder:(e,t)=>wt(e.body,t)}),je({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Ke(t[0]),mathml:Ke(t[1])}},htmlBuilder:(e,t)=>{const r=nt(e.html,t,!1);return Ve.makeFragment(r)},mathmlBuilder:(e,t)=>wt(e.mathml,t)});const Zr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new n("Invalid size: '"+e+"' in \\includegraphics");const r={number:+(t[1]+t[2]),unit:t[3]};if(!V(r))throw new n("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r}};je({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{let{parser:o}=e,s={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(r[0]){const e=qt(r[0],"raw").string.split(",");for(let t=0;t{const r=P(e.height,t);let n=0;e.totalheight.number>0&&(n=P(e.totalheight,t)-r);let o=0;e.width.number>0&&(o=P(e.width,t));const s={height:F(r+n)};o>0&&(s.width=F(o)),n>0&&(s.verticalAlign=F(-n));const i=new j(e.src,e.alt,s);return i.height=r,i.depth=n,i},mathmlBuilder:(e,t)=>{const r=new gt.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);const n=P(e.height,t);let o=0;if(e.totalheight.number>0&&(o=P(e.totalheight,t)-n,r.setAttribute("valign",F(-o))),r.setAttribute("height",F(n+o)),e.width.number>0){const n=P(e.width,t);r.setAttribute("width",F(n))}return r.setAttribute("src",e.src),r}}),je({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){let{parser:r,funcName:n}=e;const o=qt(t[0],"size");if(r.settings.strict){const e="m"===n[1],t="mu"===o.value.unit;e?(t||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):t&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder(e,t){return Ve.makeGlue(e.dimension,t)},mathmlBuilder(e,t){const r=P(e.dimension,t);return new gt.SpaceNode(r)}}),je({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:r,funcName:n}=e;const o=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{let r;"clap"===e.alignment?(r=Ve.makeSpan([],[ht(e.body,t)]),r=Ve.makeSpan(["inner"],[r],t)):r=Ve.makeSpan(["inner"],[ht(e.body,t)]);const n=Ve.makeSpan(["fix"],[]);let o=Ve.makeSpan([e.alignment],[r,n],t);const s=Ve.makeSpan(["strut"]);return s.style.height=F(o.height+o.depth),o.depth&&(s.style.verticalAlign=F(-o.depth)),o.children.unshift(s),o=Ve.makeSpan(["thinbox"],[o],t),Ve.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{const r=new gt.MathNode("mpadded",[vt(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",t+"width")}return r.setAttribute("width","0px"),r}}),je({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){let{funcName:r,parser:n}=e;const o=n.mode;n.switchMode("math");const s="\\("===r?"\\)":"$",i=n.parseExpression(!1,s);return n.expect(s),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:i}}}),je({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new n("Mismatched "+e.funcName)}});const Kr=(e,t)=>{switch(t.style.size){case w.DISPLAY.size:return e.display;case w.TEXT.size:return e.text;case w.SCRIPT.size:return e.script;case w.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};je({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{let{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Ke(t[0]),text:Ke(t[1]),script:Ke(t[2]),scriptscript:Ke(t[3])}},htmlBuilder:(e,t)=>{const r=Kr(e,t),n=nt(r,t,!1);return Ve.makeFragment(n)},mathmlBuilder:(e,t)=>{const r=Kr(e,t);return wt(r,t)}});const Jr=(e,t,r,n,o,s,i)=>{e=Ve.makeSpan([],[e]);const a=r&&l.isCharacterBox(r);let h,c,m;if(t){const e=ht(t,n.havingStyle(o.sup()),n);c={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(r){const e=ht(r,n.havingStyle(o.sub()),n);h={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(c&&h){const t=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+i;m=Ve.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:F(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:F(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(h){const t=e.height-i;m=Ve.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:F(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]},n)}else{if(!c)return e;{const t=e.depth+i;m=Ve.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:F(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}const p=[m];if(h&&0!==s&&!a){const e=Ve.makeSpan(["mspace"],[],n);e.style.marginRight=F(s),p.unshift(e)}return Ve.makeSpan(["mop","op-limits"],p,n)},Qr=["\\smallint"],en=(e,t)=>{let r,n,o,s=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=qt(e.base,"op"),s=!0):o=qt(e,"op");const i=t.style;let a,h=!1;if(i.size===w.DISPLAY.size&&o.symbol&&!l.contains(Qr,o.name)&&(h=!0),o.symbol){const e=h?"Size2-Regular":"Size1-Regular";let r="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(r=o.name.slice(1),o.name="oiint"===r?"\\iint":"\\iiint"),a=Ve.makeSymbol(o.name,e,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),r.length>0){const e=a.italic,n=Ve.staticSvg(r+"Size"+(h?"2":"1"),t);a=Ve.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:n,shift:h?.08:0}]},t),o.name="\\"+r,a.classes.unshift("mop"),a.italic=e}}else if(o.body){const e=nt(o.body,t,!0);1===e.length&&e[0]instanceof Z?(a=e[0],a.classes[0]="mop"):a=Ve.makeSpan(["mop"],e,t)}else{const e=[];for(let r=1;r{let r;if(e.symbol)r=new ut("mo",[ft(e.name,e.mode)]),l.contains(Qr,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new ut("mo",xt(e.body,t));else{r=new ut("mi",[new dt(e.name.slice(1))]);const t=new ut("mo",[ft("\u2061","text")]);r=e.parentIsSupSub?new ut("mrow",[r,t]):pt([r,t])}return r},rn={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};je({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(e,t)=>{let{parser:r,funcName:n}=e,o=n;return 1===o.length&&(o=rn[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:en,mathmlBuilder:tn}),je({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ke(n)}},htmlBuilder:en,mathmlBuilder:tn});const nn={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};je({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){let{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:en,mathmlBuilder:tn}),je({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){let{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:en,mathmlBuilder:tn}),je({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler(e){let{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=nn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:en,mathmlBuilder:tn});const on=(e,t)=>{let r,n,o,s,i=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=qt(e.base,"operatorname"),i=!0):o=qt(e,"operatorname"),o.body.length>0){const e=o.body.map((e=>{const t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),r=nt(e,t.withFont("mathrm"),!0);for(let e=0;e{let{parser:r,funcName:n}=e;const o=t[0];return{type:"operatorname",mode:r.mode,body:Ke(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:on,mathmlBuilder:(e,t)=>{let r=xt(e.body,t.withFont("mathrm")),n=!0;for(let e=0;ee.toText())).join("");r=[new gt.TextNode(e)]}const o=new gt.MathNode("mi",r);o.setAttribute("mathvariant","normal");const s=new gt.MathNode("mo",[ft("\u2061","text")]);return e.parentIsSupSub?new gt.MathNode("mrow",[o,s]):gt.newDocumentFragment([o,s])}}),Br("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),$e({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ve.makeFragment(nt(e.body,t,!1)):Ve.makeSpan(["mord"],nt(e.body,t,!0),t)},mathmlBuilder(e,t){return wt(e.body,t,!0)}}),je({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){let{parser:r}=e;const n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){const r=ht(e.body,t.havingCrampedStyle()),n=Ve.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return Ve.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){const r=new gt.MathNode("mo",[new gt.TextNode("\u203e")]);r.setAttribute("stretchy","true");const n=new gt.MathNode("mover",[vt(e.body,t),r]);return n.setAttribute("accent","true"),n}}),je({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[0];return{type:"phantom",mode:r.mode,body:Ke(n)}},htmlBuilder:(e,t)=>{const r=nt(e.body,t.withPhantom(),!1);return Ve.makeFragment(r)},mathmlBuilder:(e,t)=>{const r=xt(e.body,t);return new gt.MathNode("mphantom",r)}}),je({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{let r=Ve.makeSpan([],[ht(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(let e=0;e{const r=xt(Ke(e.body),t),n=new gt.MathNode("mphantom",r),o=new gt.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),je({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:r}=e;const n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{const r=Ve.makeSpan(["inner"],[ht(e.body,t.withPhantom())]),n=Ve.makeSpan(["fix"],[]);return Ve.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{const r=xt(Ke(e.body),t),n=new gt.MathNode("mphantom",r),o=new gt.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),je({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){let{parser:r}=e;const n=qt(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){const r=ht(e.body,t),n=P(e.dy,t);return Ve.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){const r=new gt.MathNode("mpadded",[vt(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),je({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){let{parser:t}=e;return{type:"internal",mode:t.mode}}}),je({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){let{parser:n}=e;const o=r[0],s=qt(t[0],"size"),i=qt(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&qt(o,"size").value,width:s.value,height:i.value}},htmlBuilder(e,t){const r=Ve.makeSpan(["mord","rule"],[],t),n=P(e.width,t),o=P(e.height,t),s=e.shift?P(e.shift,t):0;return r.style.borderRightWidth=F(n),r.style.borderTopWidth=F(o),r.style.bottom=F(s),r.width=n,r.height=o+s,r.depth=-s,r.maxFontSize=1.125*o*t.sizeMultiplier,r},mathmlBuilder(e,t){const r=P(e.width,t),n=P(e.height,t),o=e.shift?P(e.shift,t):0,s=t.color&&t.getColor()||"black",i=new gt.MathNode("mspace");i.setAttribute("mathbackground",s),i.setAttribute("width",F(r)),i.setAttribute("height",F(n));const a=new gt.MathNode("mpadded",[i]);return o>=0?a.setAttribute("height",F(o)):(a.setAttribute("height",F(o)),a.setAttribute("depth",F(-o))),a.setAttribute("voffset",F(o)),a}});const an=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];je({type:"sizing",names:an,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let{breakOnTokenText:r,funcName:n,parser:o}=e;const s=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:an.indexOf(n)+1,body:s}},htmlBuilder:(e,t)=>{const r=t.havingSize(e.size);return sn(e.body,r,t)},mathmlBuilder:(e,t)=>{const r=t.havingSize(e.size),n=xt(e.body,r),o=new gt.MathNode("mstyle",n);return o.setAttribute("mathsize",F(r.sizeMultiplier)),o}}),je({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{let{parser:n}=e,o=!1,s=!1;const i=r[0]&&qt(r[0],"ordgroup");if(i){let e="";for(let t=0;t{const r=Ve.makeSpan([],[ht(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(let e=0;e{const r=new gt.MathNode("mpadded",[vt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),je({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){let{parser:n}=e;const o=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:o}},htmlBuilder(e,t){let r=ht(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Ve.wrapFragment(r,t);const n=t.fontMetrics().defaultRuleThickness;let o=n;t.style.idr.height+r.depth+s&&(s=(s+c-r.height-r.depth)/2);const m=a.height-r.height-s-l;r.style.paddingLeft=F(h);const p=Ve.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:a},{type:"kern",size:l}]},t);if(e.index){const r=t.havingStyle(w.SCRIPTSCRIPT),n=ht(e.index,r,t),o=.6*(p.height-p.depth),s=Ve.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:n}]},t),i=Ve.makeSpan(["root"],[s]);return Ve.makeSpan(["mord","sqrt"],[i,p],t)}return Ve.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){const{body:r,index:n}=e;return n?new gt.MathNode("mroot",[vt(r,t),vt(n,t)]):new gt.MathNode("msqrt",[vt(r,t)])}});const ln={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};je({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){let{breakOnTokenText:r,funcName:n,parser:o}=e;const s=o.parseExpression(!0,r),i=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:i,body:s}},htmlBuilder(e,t){const r=ln[e.style],n=t.havingStyle(r).withFont("");return sn(e.body,n,t)},mathmlBuilder(e,t){const r=ln[e.style],n=t.havingStyle(r),o=xt(e.body,n),s=new gt.MathNode("mstyle",o),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return s.setAttribute("scriptlevel",i[0]),s.setAttribute("displaystyle",i[1]),s}});$e({type:"supsub",htmlBuilder(e,t){const r=function(e,t){const r=e.base;if(r)return"op"===r.type?r.limits&&(t.style.size===w.DISPLAY.size||r.alwaysHandleSupSub)?en:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===w.DISPLAY.size||r.limits)?on:null:"accent"===r.type?l.isCharacterBox(r.base)?Ht:null:"horizBrace"===r.type&&!e.sub===r.isOver?$r:null;return null}(e,t);if(r)return r(e,t);const{base:n,sup:o,sub:s}=e,i=ht(n,t);let a,h;const c=t.fontMetrics();let m=0,p=0;const u=n&&l.isCharacterBox(n);if(o){const e=t.havingStyle(t.style.sup());a=ht(o,e,t),u||(m=i.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(s){const e=t.havingStyle(t.style.sub());h=ht(s,e,t),u||(p=i.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}let d;d=t.style===w.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;const g=t.sizeMultiplier,f=F(.5/c.ptPerEm/g);let b,y=null;if(h){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(i instanceof Z||t)&&(y=F(-i.italic))}if(a&&h){m=Math.max(m,d,a.depth+.25*c.xHeight),p=Math.max(p,c.sub2);const e=4*c.defaultRuleThickness;if(m-a.depth-(h.height-p)0&&(m+=t,p-=t)}const r=[{type:"elem",elem:h,shift:p,marginRight:f,marginLeft:y},{type:"elem",elem:a,shift:-m,marginRight:f}];b=Ve.makeVList({positionType:"individualShift",children:r},t)}else if(h){p=Math.max(p,c.sub1,h.height-.8*c.xHeight);const e=[{type:"elem",elem:h,marginLeft:y,marginRight:f}];b=Ve.makeVList({positionType:"shift",positionData:p,children:e},t)}else{if(!a)throw new Error("supsub must have either sup or sub.");m=Math.max(m,d,a.depth+.25*c.xHeight),b=Ve.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:a,marginRight:f}]},t)}const x=at(i,"right")||"mord";return Ve.makeSpan([x],[i,Ve.makeSpan(["msupsub"],[b])],t)},mathmlBuilder(e,t){let r,n,o=!1;e.base&&"horizBrace"===e.base.type&&(n=!!e.sup,n===e.base.isOver&&(o=!0,r=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);const s=[vt(e.base,t)];let i;if(e.sub&&s.push(vt(e.sub,t)),e.sup&&s.push(vt(e.sup,t)),o)i=r?"mover":"munder";else if(e.sub)if(e.sup){const r=e.base;i=r&&"op"===r.type&&r.limits&&t.style===w.DISPLAY||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(t.style===w.DISPLAY||r.limits)?"munderover":"msubsup"}else{const r=e.base;i=r&&"op"===r.type&&r.limits&&(t.style===w.DISPLAY||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.style===w.DISPLAY)?"munder":"msub"}else{const r=e.base;i=r&&"op"===r.type&&r.limits&&(t.style===w.DISPLAY||r.alwaysHandleSupSub)||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(r.limits||t.style===w.DISPLAY)?"mover":"msup"}return new gt.MathNode(i,s)}}),$e({type:"atom",htmlBuilder(e,t){return Ve.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){const r=new gt.MathNode("mo",[ft(e.text,e.mode)]);if("bin"===e.family){const n=yt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});const hn={mi:"italic",mn:"normal",mtext:"normal"};$e({type:"mathord",htmlBuilder(e,t){return Ve.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){const r=new gt.MathNode("mi",[ft(e.text,e.mode,t)]),n=yt(e,t)||"italic";return n!==hn[r.type]&&r.setAttribute("mathvariant",n),r}}),$e({type:"textord",htmlBuilder(e,t){return Ve.makeOrd(e,t,"textord")},mathmlBuilder(e,t){const r=ft(e.text,e.mode,t),n=yt(e,t)||"normal";let o;return o="text"===e.mode?new gt.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new gt.MathNode("mn",[r]):"\\prime"===e.text?new gt.MathNode("mo",[r]):new gt.MathNode("mi",[r]),n!==hn[o.type]&&o.setAttribute("mathvariant",n),o}});const cn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},mn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$e({type:"spacing",htmlBuilder(e,t){if(mn.hasOwnProperty(e.text)){const r=mn[e.text].className||"";if("text"===e.mode){const n=Ve.makeOrd(e,t,"textord");return n.classes.push(r),n}return Ve.makeSpan(["mspace",r],[Ve.mathsym(e.text,e.mode,t)],t)}if(cn.hasOwnProperty(e.text))return Ve.makeSpan(["mspace",cn[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){let r;if(!mn.hasOwnProperty(e.text)){if(cn.hasOwnProperty(e.text))return new gt.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return r=new gt.MathNode("mtext",[new gt.TextNode("\xa0")]),r}});const pn=()=>{const e=new gt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};$e({type:"tag",mathmlBuilder(e,t){const r=new gt.MathNode("mtable",[new gt.MathNode("mtr",[pn(),new gt.MathNode("mtd",[wt(e.body,t)]),pn(),new gt.MathNode("mtd",[wt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});const un={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},dn={"\\textbf":"textbf","\\textmd":"textmd"},gn={"\\textit":"textit","\\textup":"textup"},fn=(e,t)=>{const r=e.font;return r?un[r]?t.withTextFontFamily(un[r]):dn[r]?t.withTextFontWeight(dn[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(gn[r]):t};je({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){let{parser:r,funcName:n}=e;const o=t[0];return{type:"text",mode:r.mode,body:Ke(o),font:n}},htmlBuilder(e,t){const r=fn(e,t),n=nt(e.body,r,!0);return Ve.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){const r=fn(e,t);return wt(e.body,r)}}),je({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){const r=ht(e.body,t),n=Ve.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Ve.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]},t);return Ve.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){const r=new gt.MathNode("mo",[new gt.TextNode("\u203e")]);r.setAttribute("stretchy","true");const n=new gt.MathNode("munder",[vt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),je({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){let{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){const r=ht(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return Ve.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new gt.MathNode("mpadded",[vt(e.body,t)],["vcenter"])}}),je({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){const r=bn(e),n=[],o=t.havingStyle(t.style.text());for(let t=0;te.body.replace(/ /g,e.star?"\u2423":"\xa0");var yn=Xe;const xn="[ \r\n\t]",wn="(\\\\[a-zA-Z@]+)"+xn+"*",vn="[\u0300-\u036f]",kn=new RegExp(vn+"+$"),Sn="("+xn+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+vn+"*|[\ud800-\udbff][\udc00-\udfff]"+vn+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+wn+"|\\\\[^\ud800-\udfff])";class Mn{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Sn,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Nr("EOF",new Cr(this,t,t));const r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new n("Unexpected character: '"+e[t]+"'",new Nr(e[t],new Cr(this,t,t+1)));const o=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[o]){const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}return new Nr(o,new Cr(this,t,this.tokenRegex.lastIndex))}}class zn{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new n("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(let t=0;t0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!t.hasOwnProperty(e)&&(t[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var An=Tr;Br("\\noexpand",(function(e){const t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Br("\\expandafter",(function(e){const t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Br("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Br("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Br("\\@ifnextchar",(function(e){const t=e.consumeArgs(3);e.consumeSpaces();const r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Br("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Br("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const Tn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Br("\\char",(function(e){let t,r=e.popToken(),o="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if(r=e.popToken(),"\\"===r.text[0])o=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new n("\\char` missing argument");o=r.text.charCodeAt(0)}else t=10;if(t){if(o=Tn[r.text],null==o||o>=t)throw new n("Invalid base-"+t+" digit "+r.text);let s;for(;null!=(s=Tn[e.future().text])&&s{let o=e.consumeArg().tokens;if(1!==o.length)throw new n("\\newcommand's first argument must be a macro name");const s=o[0].text,i=e.isDefined(s);if(i&&!t)throw new n("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!i&&!r)throw new n("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");let a=0;if(o=e.consumeArg().tokens,1===o.length&&"["===o[0].text){let t="",r=e.expandNextToken();for(;"]"!==r.text&&"EOF"!==r.text;)t+=r.text,r=e.expandNextToken();if(!t.match(/^\s*[0-9]+\s*$/))throw new n("Invalid number of arguments: "+t);a=parseInt(t),o=e.consumeArg().tokens}return e.macros.set(s,{tokens:o,numArgs:a}),""};Br("\\newcommand",(e=>Bn(e,!1,!0))),Br("\\renewcommand",(e=>Bn(e,!0,!1))),Br("\\providecommand",(e=>Bn(e,!0,!0))),Br("\\message",(e=>{const t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),Br("\\errmessage",(e=>{const t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),Br("\\show",(e=>{const t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),yn[r],oe.math[r],oe.text[r]),""})),Br("\\bgroup","{"),Br("\\egroup","}"),Br("~","\\nobreakspace"),Br("\\lq","`"),Br("\\rq","'"),Br("\\aa","\\r a"),Br("\\AA","\\r A"),Br("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),Br("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Br("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),Br("\u212c","\\mathscr{B}"),Br("\u2130","\\mathscr{E}"),Br("\u2131","\\mathscr{F}"),Br("\u210b","\\mathscr{H}"),Br("\u2110","\\mathscr{I}"),Br("\u2112","\\mathscr{L}"),Br("\u2133","\\mathscr{M}"),Br("\u211b","\\mathscr{R}"),Br("\u212d","\\mathfrak{C}"),Br("\u210c","\\mathfrak{H}"),Br("\u2128","\\mathfrak{Z}"),Br("\\Bbbk","\\Bbb{k}"),Br("\xb7","\\cdotp"),Br("\\llap","\\mathllap{\\textrm{#1}}"),Br("\\rlap","\\mathrlap{\\textrm{#1}}"),Br("\\clap","\\mathclap{\\textrm{#1}}"),Br("\\mathstrut","\\vphantom{(}"),Br("\\underbar","\\underline{\\text{#1}}"),Br("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Br("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Br("\\ne","\\neq"),Br("\u2260","\\neq"),Br("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Br("\u2209","\\notin"),Br("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Br("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Br("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),Br("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),Br("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),Br("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),Br("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),Br("\u27c2","\\perp"),Br("\u203c","\\mathclose{!\\mkern-0.8mu!}"),Br("\u220c","\\notni"),Br("\u231c","\\ulcorner"),Br("\u231d","\\urcorner"),Br("\u231e","\\llcorner"),Br("\u231f","\\lrcorner"),Br("\xa9","\\copyright"),Br("\xae","\\textregistered"),Br("\ufe0f","\\textregistered"),Br("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Br("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Br("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Br("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Br("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Br("\u22ee","\\vdots"),Br("\\varGamma","\\mathit{\\Gamma}"),Br("\\varDelta","\\mathit{\\Delta}"),Br("\\varTheta","\\mathit{\\Theta}"),Br("\\varLambda","\\mathit{\\Lambda}"),Br("\\varXi","\\mathit{\\Xi}"),Br("\\varPi","\\mathit{\\Pi}"),Br("\\varSigma","\\mathit{\\Sigma}"),Br("\\varUpsilon","\\mathit{\\Upsilon}"),Br("\\varPhi","\\mathit{\\Phi}"),Br("\\varPsi","\\mathit{\\Psi}"),Br("\\varOmega","\\mathit{\\Omega}"),Br("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Br("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Br("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Br("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Br("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Br("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const Cn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Br("\\dots",(function(e){let t="\\dotso";const r=e.expandAfterFuture().text;return r in Cn?t=Cn[r]:("\\not"===r.slice(0,4)||r in oe.math&&l.contains(["bin","rel"],oe.math[r].group))&&(t="\\dotsb"),t}));const Nn={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Br("\\dotso",(function(e){return e.future().text in Nn?"\\ldots\\,":"\\ldots"})),Br("\\dotsc",(function(e){const t=e.future().text;return t in Nn&&","!==t?"\\ldots\\,":"\\ldots"})),Br("\\cdots",(function(e){return e.future().text in Nn?"\\@cdots\\,":"\\@cdots"})),Br("\\dotsb","\\cdots"),Br("\\dotsm","\\cdots"),Br("\\dotsi","\\!\\cdots"),Br("\\dotsx","\\ldots\\,"),Br("\\DOTSI","\\relax"),Br("\\DOTSB","\\relax"),Br("\\DOTSX","\\relax"),Br("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Br("\\,","\\tmspace+{3mu}{.1667em}"),Br("\\thinspace","\\,"),Br("\\>","\\mskip{4mu}"),Br("\\:","\\tmspace+{4mu}{.2222em}"),Br("\\medspace","\\:"),Br("\\;","\\tmspace+{5mu}{.2777em}"),Br("\\thickspace","\\;"),Br("\\!","\\tmspace-{3mu}{.1667em}"),Br("\\negthinspace","\\!"),Br("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Br("\\negthickspace","\\tmspace-{5mu}{.277em}"),Br("\\enspace","\\kern.5em "),Br("\\enskip","\\hskip.5em\\relax"),Br("\\quad","\\hskip1em\\relax"),Br("\\qquad","\\hskip2em\\relax"),Br("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Br("\\tag@paren","\\tag@literal{({#1})}"),Br("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Br("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Br("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Br("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Br("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Br("\\newline","\\\\\\relax"),Br("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const qn=F(T["Main-Regular"]["T".charCodeAt(0)][1]-.7*T["Main-Regular"]["A".charCodeAt(0)][1]);Br("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+qn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Br("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+qn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Br("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Br("\\@hspace","\\hskip #1\\relax"),Br("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Br("\\ordinarycolon",":"),Br("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Br("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Br("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Br("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Br("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Br("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Br("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Br("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Br("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Br("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Br("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Br("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Br("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Br("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Br("\u2237","\\dblcolon"),Br("\u2239","\\eqcolon"),Br("\u2254","\\coloneqq"),Br("\u2255","\\eqqcolon"),Br("\u2a74","\\Coloneqq"),Br("\\ratio","\\vcentcolon"),Br("\\coloncolon","\\dblcolon"),Br("\\colonequals","\\coloneqq"),Br("\\coloncolonequals","\\Coloneqq"),Br("\\equalscolon","\\eqqcolon"),Br("\\equalscoloncolon","\\Eqqcolon"),Br("\\colonminus","\\coloneq"),Br("\\coloncolonminus","\\Coloneq"),Br("\\minuscolon","\\eqcolon"),Br("\\minuscoloncolon","\\Eqcolon"),Br("\\coloncolonapprox","\\Colonapprox"),Br("\\coloncolonsim","\\Colonsim"),Br("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Br("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Br("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Br("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Br("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),Br("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Br("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Br("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Br("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Br("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Br("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Br("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Br("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Br("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Br("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Br("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Br("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Br("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Br("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Br("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Br("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Br("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Br("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Br("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),Br("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),Br("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),Br("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),Br("\\imath","\\html@mathml{\\@imath}{\u0131}"),Br("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),Br("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),Br("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),Br("\u27e6","\\llbracket"),Br("\u27e7","\\rrbracket"),Br("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Br("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Br("\u2983","\\lBrace"),Br("\u2984","\\rBrace"),Br("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),Br("\u29b5","\\minuso"),Br("\\darr","\\downarrow"),Br("\\dArr","\\Downarrow"),Br("\\Darr","\\Downarrow"),Br("\\lang","\\langle"),Br("\\rang","\\rangle"),Br("\\uarr","\\uparrow"),Br("\\uArr","\\Uparrow"),Br("\\Uarr","\\Uparrow"),Br("\\N","\\mathbb{N}"),Br("\\R","\\mathbb{R}"),Br("\\Z","\\mathbb{Z}"),Br("\\alef","\\aleph"),Br("\\alefsym","\\aleph"),Br("\\Alpha","\\mathrm{A}"),Br("\\Beta","\\mathrm{B}"),Br("\\bull","\\bullet"),Br("\\Chi","\\mathrm{X}"),Br("\\clubs","\\clubsuit"),Br("\\cnums","\\mathbb{C}"),Br("\\Complex","\\mathbb{C}"),Br("\\Dagger","\\ddagger"),Br("\\diamonds","\\diamondsuit"),Br("\\empty","\\emptyset"),Br("\\Epsilon","\\mathrm{E}"),Br("\\Eta","\\mathrm{H}"),Br("\\exist","\\exists"),Br("\\harr","\\leftrightarrow"),Br("\\hArr","\\Leftrightarrow"),Br("\\Harr","\\Leftrightarrow"),Br("\\hearts","\\heartsuit"),Br("\\image","\\Im"),Br("\\infin","\\infty"),Br("\\Iota","\\mathrm{I}"),Br("\\isin","\\in"),Br("\\Kappa","\\mathrm{K}"),Br("\\larr","\\leftarrow"),Br("\\lArr","\\Leftarrow"),Br("\\Larr","\\Leftarrow"),Br("\\lrarr","\\leftrightarrow"),Br("\\lrArr","\\Leftrightarrow"),Br("\\Lrarr","\\Leftrightarrow"),Br("\\Mu","\\mathrm{M}"),Br("\\natnums","\\mathbb{N}"),Br("\\Nu","\\mathrm{N}"),Br("\\Omicron","\\mathrm{O}"),Br("\\plusmn","\\pm"),Br("\\rarr","\\rightarrow"),Br("\\rArr","\\Rightarrow"),Br("\\Rarr","\\Rightarrow"),Br("\\real","\\Re"),Br("\\reals","\\mathbb{R}"),Br("\\Reals","\\mathbb{R}"),Br("\\Rho","\\mathrm{P}"),Br("\\sdot","\\cdot"),Br("\\sect","\\S"),Br("\\spades","\\spadesuit"),Br("\\sub","\\subset"),Br("\\sube","\\subseteq"),Br("\\supe","\\supseteq"),Br("\\Tau","\\mathrm{T}"),Br("\\thetasym","\\vartheta"),Br("\\weierp","\\wp"),Br("\\Zeta","\\mathrm{Z}"),Br("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Br("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Br("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Br("\\bra","\\mathinner{\\langle{#1}|}"),Br("\\ket","\\mathinner{|{#1}\\rangle}"),Br("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Br("\\Bra","\\left\\langle#1\\right|"),Br("\\Ket","\\left|#1\\right\\rangle");const In=e=>t=>{const r=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,i=t.macros.get("|"),a=t.macros.get("\\|");t.macros.beginGroup();const l=t=>r=>{e&&(r.macros.set("|",i),o.length&&r.macros.set("\\|",a));let s=t;if(!t&&o.length){"|"===r.future().text&&(r.popToken(),s=!0)}return{tokens:s?o:n,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));const h=t.consumeArg().tokens,c=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};Br("\\bra@ket",In(!1)),Br("\\bra@set",In(!0)),Br("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Br("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Br("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Br("\\angln","{\\angl n}"),Br("\\blue","\\textcolor{##6495ed}{#1}"),Br("\\orange","\\textcolor{##ffa500}{#1}"),Br("\\pink","\\textcolor{##ff00af}{#1}"),Br("\\red","\\textcolor{##df0030}{#1}"),Br("\\green","\\textcolor{##28ae7b}{#1}"),Br("\\gray","\\textcolor{gray}{#1}"),Br("\\purple","\\textcolor{##9d38bd}{#1}"),Br("\\blueA","\\textcolor{##ccfaff}{#1}"),Br("\\blueB","\\textcolor{##80f6ff}{#1}"),Br("\\blueC","\\textcolor{##63d9ea}{#1}"),Br("\\blueD","\\textcolor{##11accd}{#1}"),Br("\\blueE","\\textcolor{##0c7f99}{#1}"),Br("\\tealA","\\textcolor{##94fff5}{#1}"),Br("\\tealB","\\textcolor{##26edd5}{#1}"),Br("\\tealC","\\textcolor{##01d1c1}{#1}"),Br("\\tealD","\\textcolor{##01a995}{#1}"),Br("\\tealE","\\textcolor{##208170}{#1}"),Br("\\greenA","\\textcolor{##b6ffb0}{#1}"),Br("\\greenB","\\textcolor{##8af281}{#1}"),Br("\\greenC","\\textcolor{##74cf70}{#1}"),Br("\\greenD","\\textcolor{##1fab54}{#1}"),Br("\\greenE","\\textcolor{##0d923f}{#1}"),Br("\\goldA","\\textcolor{##ffd0a9}{#1}"),Br("\\goldB","\\textcolor{##ffbb71}{#1}"),Br("\\goldC","\\textcolor{##ff9c39}{#1}"),Br("\\goldD","\\textcolor{##e07d10}{#1}"),Br("\\goldE","\\textcolor{##a75a05}{#1}"),Br("\\redA","\\textcolor{##fca9a9}{#1}"),Br("\\redB","\\textcolor{##ff8482}{#1}"),Br("\\redC","\\textcolor{##f9685d}{#1}"),Br("\\redD","\\textcolor{##e84d39}{#1}"),Br("\\redE","\\textcolor{##bc2612}{#1}"),Br("\\maroonA","\\textcolor{##ffbde0}{#1}"),Br("\\maroonB","\\textcolor{##ff92c6}{#1}"),Br("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Br("\\maroonD","\\textcolor{##ca337c}{#1}"),Br("\\maroonE","\\textcolor{##9e034e}{#1}"),Br("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Br("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Br("\\purpleC","\\textcolor{##aa87ff}{#1}"),Br("\\purpleD","\\textcolor{##7854ab}{#1}"),Br("\\purpleE","\\textcolor{##543b78}{#1}"),Br("\\mintA","\\textcolor{##f5f9e8}{#1}"),Br("\\mintB","\\textcolor{##edf2df}{#1}"),Br("\\mintC","\\textcolor{##e0e5cc}{#1}"),Br("\\grayA","\\textcolor{##f6f7f7}{#1}"),Br("\\grayB","\\textcolor{##f0f1f2}{#1}"),Br("\\grayC","\\textcolor{##e3e5e6}{#1}"),Br("\\grayD","\\textcolor{##d6d8da}{#1}"),Br("\\grayE","\\textcolor{##babec2}{#1}"),Br("\\grayF","\\textcolor{##888d93}{#1}"),Br("\\grayG","\\textcolor{##626569}{#1}"),Br("\\grayH","\\textcolor{##3b3e40}{#1}"),Br("\\grayI","\\textcolor{##21242c}{#1}"),Br("\\kaBlue","\\textcolor{##314453}{#1}"),Br("\\kaGreen","\\textcolor{##71B307}{#1}");const Rn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Hn{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new zn(An,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Mn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new Nr("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){const t=[],r=e&&e.length>0;r||this.consumeSpaces();const o=this.future();let s,i=0,a=0;do{if(s=this.popToken(),t.push(s),"{"===s.text)++i;else if("}"===s.text){if(--i,-1===i)throw new n("Extra }",s)}else if("EOF"===s.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",s);if(e&&r)if((0===i||1===i&&"{"===e[a])&&s.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||r);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");const r=t[0];for(let e=0;ethis.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){const t=this.popToken(),r=t.text,o=t.noexpand?null:this._getExpansion(r);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===r[0]&&!this.isDefined(r))throw new n("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);let s=o.tokens;const i=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(let e=s.length-1;e>=0;--e){let t=s[e];if("#"===t.text){if(0===e)throw new n("Incomplete placeholder at end of macro body",t);if(t=s[--e],"#"===t.text)s.splice(e+1,1);else{if(!/^[1-9]$/.test(t.text))throw new n("Not a valid argument number",t);s.splice(e,2,...i[+t.text-1])}}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Nr(e)]):void 0}expandTokens(e){const t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;if(1===e.length){const t=this.lexer.catcodes[e];if(null!=t&&13!==t)return}const r="function"==typeof t?t(this):t;if("string"==typeof r){let e=0;if(-1!==r.indexOf("#")){const t=r.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new Mn(r,this.settings),n=[];let o=t.lex();for(;"EOF"!==o.text;)n.push(o),o=t.lex();n.reverse();return{tokens:n,numArgs:e}}return r}isDefined(e){return this.macros.has(e)||yn.hasOwnProperty(e)||oe.math.hasOwnProperty(e)||oe.text.hasOwnProperty(e)||Rn.hasOwnProperty(e)}isExpandable(e){const t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:yn.hasOwnProperty(e)&&!yn[e].primitive}}const On=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,En=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),Ln={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Dn={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};class Vn{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Hn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){const t=this.nextToken;this.consume(),this.gullet.pushToken(new Nr("}")),this.gullet.pushTokens(e);const r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){const r=[];for(;;){"math"===this.mode&&this.consumeSpaces();const n=this.fetch();if(-1!==Vn.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&yn[n.text]&&yn[n.text].infix)break;const o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){let t,r=-1;for(let o=0;o=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);const r=oe[this.mode][t].group,n=Cr.range(e);let s;if(te.hasOwnProperty(r)){const e=r;s={type:"atom",mode:this.mode,family:e,loc:n,text:t}}else s={type:r,mode:this.mode,loc:n,text:t};o=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(S(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:Cr.range(e),text:t}}if(this.consume(),r)for(let t=0;t { let m = 0; for (let j = 1; j < lg.length; j++) if (lg[j] > lg[m]) m = j; return m; }; - -// build the adapter + the exec map keyed by each layer's attn_q κ -const ad = genTestAdapter({ seed: 1, inn: D, out: QD, r, nLayer: S.n_layer, scale, amp: 0.3 }); -const adapter = {}; -for (let L = 0; L < S.n_layer; L++) { const w = graph.weights[`blk.${L}.attn_q.weight`]; adapter[w.kappa] = { A: ad.layers[L].A, B: ad.layers[L].B, scale, inn: D, out: QD, r }; } - -const base = am(forward(plan, graph, store, ids, { load: kstreamLoad })); -const adapted = am(forward(plan, graph, store, ids, { load: kstreamLoad, adapter })); -console.log(`D=${D} QD=${QD} r=${r} layers=${S.n_layer}`); -console.log(`BASE next-token = ${base} ${JSON.stringify(tok.decode([base]))}`); -console.log(`ADAPT next-token = ${adapted} ${JSON.stringify(tok.decode([adapted]))}`); -console.log(adapted !== base ? "✓ adapter CHANGES the output (real effect)" : "(adapter did not change argmax — bump amp)"); -console.log(`\nWITNESS_BASE=${base}\nWITNESS_ADAPT=${adapted}`); +version https://git-lfs.github.com/spec/v1 +oid sha256:ba17eef01398389ae399a5b01fe4e22df1fcd145d0ee0887710ee346a5f458bf +size 2057 diff --git a/b/04b3679916dc81b2c17982a9844297bb4cf1768394bd85d65f3dd023997356bd b/b/04b3679916dc81b2c17982a9844297bb4cf1768394bd85d65f3dd023997356bd index 26e85499933527d9e2013c204ca6bd2e25ec7866..a837cf5b55d24cf1f7fb1999a530356f903e01bf 100644 --- a/b/04b3679916dc81b2c17982a9844297bb4cf1768394bd85d65f3dd023997356bd +++ b/b/04b3679916dc81b2c17982a9844297bb4cf1768394bd85d65f3dd023997356bd @@ -1,20 +1,3 @@ -{ - "id": "org.hologram.ui.example.dropdown-menu-dialog", - "name": "dropdown-menu-dialog", - "tier": "example", - "library": "shadcn", - "category": "Examples", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/dropdown-menu-dialog.json", - "did": "did:holo:sha256:9d5d9f08c5f09da14b5d2967ec8a726516fae163a6ddc34e58f8316f8aa2a059", - "import": "holo://sha256:8e88a9b42e8bb77df74d4ac9fcd916d3133e56aac86cd81d49f16c43506aa6b5", - "integrity": "sha256-joiptC6Lt333TUrJ/NkW0xM+VqrIbNgdSfFsQ1BqprU=", - "kappa": "sha256:9d5d9f08c5f09da14b5d2967ec8a726516fae163a6ddc34e58f8316f8aa2a059", - "moduleKappa": "sha256:8e88a9b42e8bb77df74d4ac9fcd916d3133e56aac86cd81d49f16c43506aa6b5", - "renderExport": "default", - "source": "registry/new-york-v4/examples/dropdown-menu-dialog.tsx", - "module": "vendor/components/dropdown-menu-dialog.js", - "exports": [ - "default" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:84f245714127c2635975c1ba55819531543296abed6b0d2fe056c112e3675e96 +size 894 diff --git a/b/04bd8e277222be166b84adb9c537f9ca9f8362006987bb998691c162e42eddc5 b/b/04bd8e277222be166b84adb9c537f9ca9f8362006987bb998691c162e42eddc5 index 71db487f73e8f5ec7edd2e667bd22a9e5877ef2a..a2c0f18d5aa7d5c99781cd923c9730d0d23da4a3 100644 --- a/b/04bd8e277222be166b84adb9c537f9ca9f8362006987bb998691c162e42eddc5 +++ b/b/04bd8e277222be166b84adb9c537f9ca9f8362006987bb998691c162e42eddc5 @@ -1,387 +1,3 @@ -// GGUF Forge — κ-native deterministic QUANTIZER (the inverse of gguf-forge-dequant.mjs). -// -// Turns raw f32/f16 weights into the SAME verbatim-byte quant blocks the forge runs, -// so the whole pipeline is in-substrate: raw weights → quantize → κ-objects → run. -// Deterministic by construction (identical f32 in ⇒ identical bytes out ⇒ identical κ). -// -// Transcribed line-for-line from ggml-quants.c (llama.cpp b7248): -// quantize_row_q4_0_ref:71 q5_0_ref:145 q8_0_ref:234 -// Every float op is f32 (Math.fround) to match ggml's `float` arithmetic; the f16 -// scale uses the same RNE conversion as the runtime (f32ToF16). Witnessed BIT-FOR-BIT -// vs ggml_quantize_chunk in gguf-forge-quantize.test.mjs (no tolerance — deterministic). - -import { f32ToF16, nearestInt } from "./gguf-forge-matmul.mjs"; -import { f16ToF32 } from "../qvac-ingest.mjs"; -import { sha256hex, sriOf, kappa, didHolo, jcs } from "../../../../holo-os/system/os/usr/lib/holo/holo-uor.mjs"; -import { GGML_TYPE_NAME } from "./gguf-forge.mjs"; - -const fr = Math.fround; -const QK_K = 256; -const fabsf = (v) => fr(Math.abs(v)); -// C roundf: round half AWAY from zero (≠ JS Math.round, which rounds half toward +∞). -const roundf = (v) => (v >= 0 ? Math.floor(v + 0.5) : Math.ceil(v - 0.5)); -// C (int8_t)(float): truncate toward zero, then wrap to signed 8-bit. -const toI8 = (v) => { const t = Math.trunc(v) & 0xff; return t >= 128 ? t - 256 : t; }; - -// quantize_row_q8_0_ref (:234). Block 34 B: d:f16 + qs:int8[32]. d = amax/127. -export function quantizeRowQ8_0(x, k) { - const nb = k / 32, out = new Uint8Array(nb * 34), dv = new DataView(out.buffer); - for (let i = 0; i < nb; i++) { - let amax = 0.0; - for (let j = 0; j < 32; j++) { const a = fabsf(x[i * 32 + j]); if (a > amax) amax = a; } - const d = fr(amax / 127), id = d ? fr(1.0 / d) : 0.0; - dv.setUint16(i * 34, f32ToF16(d), true); - for (let j = 0; j < 32; j++) out[i * 34 + 2 + j] = roundf(fr(x[i * 32 + j] * id)) & 0xff; - } - return out; -} - -// quantize_row_q4_0_ref (:71). Block 18 B: d:f16 + qs:nibbles[16]. d = max/−8, signed -// max at the abs-max position; nibble = MIN(15, (int8_t)(x·id + 8.5)). -export function quantizeRowQ4_0(x, k) { - const nb = k / 32, out = new Uint8Array(nb * 18), dv = new DataView(out.buffer); - for (let i = 0; i < nb; i++) { - let amax = 0.0, max = 0.0; - for (let j = 0; j < 32; j++) { const v = x[i * 32 + j], a = fabsf(v); if (amax < a) { amax = a; max = v; } } - const d = fr(max / -8), id = d ? fr(1.0 / d) : 0.0; - dv.setUint16(i * 18, f32ToF16(d), true); - for (let j = 0; j < 16; j++) { - const xi0 = Math.min(15, toI8(fr(fr(x[i * 32 + j] * id) + 8.5))); - const xi1 = Math.min(15, toI8(fr(fr(x[i * 32 + 16 + j] * id) + 8.5))); - out[i * 18 + 2 + j] = ((xi0 & 0xff) | ((xi1 & 0xff) << 4)) & 0xff; - } - } - return out; -} - -// quantize_row_q5_0_ref (:145). Block 22 B: d:f16 + qh:u32 + qs:nibbles[16]. d = max/−16, -// 5-bit value: low nibble in qs, the 5th bit packed into qh. -export function quantizeRowQ5_0(x, k) { - const nb = k / 32, out = new Uint8Array(nb * 22), dv = new DataView(out.buffer); - for (let i = 0; i < nb; i++) { - let amax = 0.0, max = 0.0; - for (let j = 0; j < 32; j++) { const v = x[i * 32 + j], a = fabsf(v); if (amax < a) { amax = a; max = v; } } - const d = fr(max / -16), id = d ? fr(1.0 / d) : 0.0; - dv.setUint16(i * 22, f32ToF16(d), true); - let qh = 0; - for (let j = 0; j < 16; j++) { - const xi0 = Math.min(31, toI8(fr(fr(x[i * 32 + j] * id) + 16.5))) & 0xff; - const xi1 = Math.min(31, toI8(fr(fr(x[i * 32 + 16 + j] * id) + 16.5))) & 0xff; - out[i * 22 + 6 + j] = (xi0 & 0x0f) | ((xi1 & 0x0f) << 4); - qh = (qh | (((xi0 & 0x10) >> 4) << j) | (((xi1 & 0x10) >> 4) << (j + 16))) >>> 0; - } - dv.setUint32(i * 22 + 2, qh, true); - } - return out; -} - -// make_qkx2_quants (:737): the K-quant scale/min optimizer. Picks (scale,min) per -// 32-element sub-block minimizing weighted error over a small grid search. f32-faithful. -// Writes L[Loff..], returns { scale, theMin }. (rmin=-1, rdelta=0.1, nstep=20, useMad=false for q4_K.) -function makeQkx2(n, nmax, x, xoff, weights, L, Loff, rmin, rdelta, nstep, useMad) { - let min = x[xoff], max = x[xoff]; - let sum_w = weights[0], sum_x = fr(sum_w * x[xoff]); - for (let i = 1; i < n; i++) { const xi = x[xoff + i]; if (xi < min) min = xi; if (xi > max) max = xi; const w = weights[i]; sum_w = fr(sum_w + w); sum_x = fr(sum_x + fr(w * xi)); } - if (min > 0) min = 0; - if (max === min) { for (let i = 0; i < n; i++) L[Loff + i] = 0; return { scale: 0, theMin: fr(-min) }; } - let iscale = fr(nmax / fr(max - min)), scale = fr(1 / iscale), best_error = 0.0; - for (let i = 0; i < n; i++) { - let l = nearestInt(fr(iscale * fr(x[xoff + i] - min))); l = Math.max(0, Math.min(nmax, l)); L[Loff + i] = l; - let diff = fr(fr(fr(scale * l) + min) - x[xoff + i]); diff = useMad ? fr(Math.abs(diff)) : fr(diff * diff); - best_error = fr(best_error + fr(weights[i] * diff)); - } - if (nstep < 1) return { scale, theMin: fr(-min) }; - for (let is = 0; is <= nstep; is++) { - iscale = fr(fr(fr(rmin + fr(rdelta * is)) + nmax) / fr(max - min)); - let sum_l = 0.0, sum_l2 = 0.0, sum_xl = 0.0, Laux = makeQkx2._aux; - for (let i = 0; i < n; i++) { - let l = nearestInt(fr(iscale * fr(x[xoff + i] - min))); l = Math.max(0, Math.min(nmax, l)); Laux[i] = l; - const w = weights[i]; sum_l = fr(sum_l + fr(w * l)); sum_l2 = fr(sum_l2 + fr(fr(w * l) * l)); sum_xl = fr(sum_xl + fr(fr(w * l) * x[xoff + i])); - } - const D = fr(fr(sum_w * sum_l2) - fr(sum_l * sum_l)); - if (D > 0) { - let this_scale = fr(fr(fr(sum_w * sum_xl) - fr(sum_x * sum_l)) / D); - let this_min = fr(fr(fr(sum_l2 * sum_x) - fr(sum_l * sum_xl)) / D); - if (this_min > 0) { this_min = 0; this_scale = fr(sum_xl / sum_l2); } - let cur_error = 0.0; - for (let i = 0; i < n; i++) { let diff = fr(fr(fr(this_scale * Laux[i]) + this_min) - x[xoff + i]); diff = useMad ? fr(Math.abs(diff)) : fr(diff * diff); cur_error = fr(cur_error + fr(weights[i] * diff)); } - if (cur_error < best_error) { for (let i = 0; i < n; i++) L[Loff + i] = Laux[i]; best_error = cur_error; scale = this_scale; min = this_min; } - } - } - return { scale, theMin: fr(-min) }; -} -makeQkx2._aux = new Uint8Array(32); - -// get_scale_min_k4 (:818) — read back the packed 6-bit scale/min for the L-quant step. -function scaleMinK4(j, sc) { - if (j < 4) return [sc[j] & 63, sc[j + 4] & 63]; - return [(sc[j + 4] & 0xf) | ((sc[j - 4] >> 6) << 4), (sc[j + 4] >> 4) | ((sc[j] >> 6) << 4)]; -} - -// make_qkx3_quants (:931): like make_qkx2 but weight falls back to x² when no imatrix, -// uses max<=min, and tracks best_mad. (q4_K imatrix path: rmin=-0.9, rdelta=0.05, nstep=36.) -function makeQkx3(n, nmax, x, xoff, weights, L, Loff, rmin, rdelta, nstep, useMad) { - const wOf = (i) => weights ? weights[i] : fr(x[xoff + i] * x[xoff + i]); - let min = x[xoff], max = x[xoff], sum_w = wOf(0), sum_x = fr(sum_w * x[xoff]); - for (let i = 1; i < n; i++) { const xi = x[xoff + i]; if (xi < min) min = xi; if (xi > max) max = xi; const w = wOf(i); sum_w = fr(sum_w + w); sum_x = fr(sum_x + fr(w * xi)); } - if (min > 0) min = 0; - if (max <= min) { for (let i = 0; i < n; i++) L[Loff + i] = 0; return { scale: 0, theMin: fr(-min) }; } - let iscale = fr(nmax / fr(max - min)), scale = fr(1 / iscale), best_mad = 0.0; - for (let i = 0; i < n; i++) { - const l = Math.max(0, Math.min(nmax, nearestInt(fr(iscale * fr(x[xoff + i] - min))))); L[Loff + i] = l; - let diff = fr(fr(fr(scale * l) + min) - x[xoff + i]); diff = useMad ? fr(Math.abs(diff)) : fr(diff * diff); - best_mad = fr(best_mad + fr(wOf(i) * diff)); - } - if (nstep < 1) return { scale, theMin: fr(-min) }; - const Laux = makeQkx3._aux; - for (let is = 0; is <= nstep; is++) { - const isc = fr(fr(fr(rmin + fr(rdelta * is)) + nmax) / fr(max - min)); - let sum_l = 0.0, sum_l2 = 0.0, sum_xl = 0.0; - for (let i = 0; i < n; i++) { - const l = Math.max(0, Math.min(nmax, nearestInt(fr(isc * fr(x[xoff + i] - min))))); Laux[i] = l; - const w = wOf(i); sum_l = fr(sum_l + fr(w * l)); sum_l2 = fr(sum_l2 + fr(fr(w * l) * l)); sum_xl = fr(sum_xl + fr(fr(w * l) * x[xoff + i])); - } - const D = fr(fr(sum_w * sum_l2) - fr(sum_l * sum_l)); - if (D > 0) { - let this_scale = fr(fr(fr(sum_w * sum_xl) - fr(sum_x * sum_l)) / D), this_min = fr(fr(fr(sum_l2 * sum_x) - fr(sum_l * sum_xl)) / D); - if (this_min > 0) { this_min = 0; this_scale = fr(sum_xl / sum_l2); } - let mad = 0.0; for (let i = 0; i < n; i++) { let diff = fr(fr(fr(this_scale * Laux[i]) + this_min) - x[xoff + i]); diff = useMad ? fr(Math.abs(diff)) : fr(diff * diff); mad = fr(mad + fr(wOf(i) * diff)); } - if (mad < best_mad) { for (let i = 0; i < n; i++) L[Loff + i] = Laux[i]; best_mad = mad; scale = this_scale; min = this_min; } - } - } - return { scale, theMin: fr(-min) }; -} -makeQkx3._aux = new Uint8Array(32); - -// make_qp_quants (:1014): positive-quantity quantizer (the q4_K block scales/mins), -// iscale grid search then coordinate-descent refinement. quant_weights required. -function makeQpQuants(n, nmax, x, L, qw) { - let max = 0.0; for (let i = 0; i < n; i++) max = Math.max(max, x[i]); - if (max < GROUP_MAX_EPS) { for (let i = 0; i < n; i++) L[i] = 0; return 0.0; } - let iscale = fr(nmax / max); - for (let i = 0; i < n; i++) L[i] = nearestInt(fr(iscale * x[i])); - const scale = fr(1 / iscale); let best_mse = 0.0; - for (let i = 0; i < n; i++) { const diff = fr(x[i] - fr(scale * L[i])); best_mse = fr(best_mse + fr(fr(qw[i] * diff) * diff)); } - for (let is = -4; is <= 4; is++) { - if (is === 0) continue; - const iscale_is = fr(fr(fr(0.1 * is) + nmax) / max), scale_is = fr(1 / iscale_is); let mse = 0.0; - for (let i = 0; i < n; i++) { const l = Math.min(nmax, nearestInt(fr(iscale_is * x[i]))); const diff = fr(x[i] - fr(scale_is * l)); mse = fr(mse + fr(fr(qw[i] * diff) * diff)); } - if (mse < best_mse) { best_mse = mse; iscale = iscale_is; } - } - let sumlx = 0.0, suml2 = 0.0; - for (let i = 0; i < n; i++) { const l = Math.min(nmax, nearestInt(fr(iscale * x[i]))); L[i] = l; sumlx = fr(sumlx + fr(fr(qw[i] * x[i]) * l)); suml2 = fr(suml2 + fr(fr(qw[i] * l) * l)); } - for (let itry = 0; itry < 5; itry++) { - let n_changed = 0; - for (let i = 0; i < n; i++) { - const w = qw[i]; let slx = fr(sumlx - fr(fr(w * x[i]) * L[i])), sl2 = fr(suml2 - fr(fr(w * L[i]) * L[i])); - if (slx > 0 && sl2 > 0) { - const new_l = Math.min(nmax, nearestInt(fr(fr(x[i] * sl2) / slx))); - if (new_l !== L[i]) { - slx = fr(slx + fr(fr(w * x[i]) * new_l)); sl2 = fr(sl2 + fr(fr(w * new_l) * new_l)); - if (fr(fr(slx * slx) * suml2) > fr(fr(sumlx * sumlx) * sl2)) { L[i] = new_l; sumlx = slx; suml2 = sl2; n_changed++; } - } - } - } - if (!n_changed) break; - } - return suml2 > 0 ? fr(sumlx / suml2) : 0.0; -} - -// quantize_row_q4_K_impl (:1491): the imatrix path. weights[l] = imatrix·√(σ²+x²); block -// scales/mins quantized by make_qp_quants. (σ² = 2·Σx²/QK_K.) -function quantizeRowQ4KImpl(x, k, imatrix) { - const nb = k / QK_K, out = new Uint8Array(nb * 144), dv = new DataView(out.buffer); - const L = new Uint8Array(QK_K), weights = new Float32Array(32), sw = new Float32Array(8), mins = new Float32Array(8), scales = new Float32Array(8), Ls = new Uint8Array(8), Lm = new Uint8Array(8); - for (let i = 0; i < nb; i++) { - const xo = i * QK_K, bp = i * 144, scB = bp + 4; - let sum_x2 = 0.0; for (let l = 0; l < QK_K; l++) sum_x2 = fr(sum_x2 + fr(x[xo + l] * x[xo + l])); - const sigma2 = fr(fr(2 * sum_x2) / QK_K); - for (let j = 0; j < 8; j++) { - for (let l = 0; l < 32; l++) weights[l] = fr(imatrix[xo + 32 * j + l] * fr(Math.sqrt(fr(sigma2 + fr(x[xo + 32 * j + l] * x[xo + 32 * j + l]))))); - let sumw = 0.0; for (let l = 0; l < 32; l++) sumw = fr(sumw + weights[l]); sw[j] = sumw; - const r = makeQkx3(32, 15, x, xo + 32 * j, weights, L, 32 * j, -0.9, 0.05, 36, false); scales[j] = r.scale; mins[j] = r.theMin; - } - const d_block = makeQpQuants(8, 63, scales, Ls, sw), m_block = makeQpQuants(8, 63, mins, Lm, sw); - for (let j = 0; j < 8; j++) { - const ls = Ls[j], lm = Lm[j]; - if (j < 4) { out[scB + j] = ls; out[scB + j + 4] = lm; } - else { out[scB + j + 4] = (ls & 0xf) | ((lm & 0xf) << 4); out[scB + j - 4] |= (ls >> 4) << 6; out[scB + j] |= (lm >> 4) << 6; } - } - dv.setUint16(bp, f32ToF16(d_block), true); dv.setUint16(bp + 2, f32ToF16(m_block), true); - const dAll = f16ToF32(dv.getUint16(bp, true)), dminAll = f16ToF32(dv.getUint16(bp + 2, true)); - for (let j = 0; j < 8; j++) { - const [sc, m] = scaleMinK4(j, out.subarray(scB, scB + 12)); - const d = fr(dAll * sc); if (!d) continue; const dm = fr(dminAll * m); - for (let ii = 0; ii < 32; ii++) { let l = nearestInt(fr(fr(x[xo + 32 * j + ii] + dm) / d)); L[32 * j + ii] = Math.max(0, Math.min(15, l)); } - } - let q = bp + 16; - for (let j = 0; j < QK_K; j += 64) { for (let l = 0; l < 32; l++) out[q + l] = L[j + l] | (L[j + l + 32] << 4); q += 32; } - } - return out; -} - -// quantize_row_q4_K_ref (:1395) / _impl (:1491). Block 144 B: d:f16 dmin:f16 scales[12] qs[128]. -export function quantizeRowQ4K(x, k, imatrix = null) { - if (imatrix) return quantizeRowQ4KImpl(x, k, imatrix); - const nb = k / QK_K, out = new Uint8Array(nb * 144), dv = new DataView(out.buffer); - const L = new Uint8Array(QK_K), weights = new Float32Array(32), mins = new Float32Array(8), scales = new Float32Array(8); - for (let i = 0; i < nb; i++) { - const xo = i * QK_K, bp = i * 144, scB = bp + 4; - let max_scale = 0.0, max_min = 0.0; - for (let j = 0; j < 8; j++) { - let sum_x2 = 0.0; for (let l = 0; l < 32; l++) sum_x2 = fr(sum_x2 + fr(x[xo + 32 * j + l] * x[xo + 32 * j + l])); - const av_x = fr(Math.sqrt(fr(sum_x2 / 32))); - for (let l = 0; l < 32; l++) weights[l] = fr(av_x + fr(Math.abs(x[xo + 32 * j + l]))); - const r = makeQkx2(32, 15, x, xo + 32 * j, weights, L, 32 * j, -1, 0.1, 20, false); - scales[j] = r.scale; mins[j] = r.theMin; - if (r.scale > max_scale) max_scale = r.scale; - if (r.theMin > max_min) max_min = r.theMin; - } - const inv_scale = max_scale > 0 ? fr(63 / max_scale) : 0.0, inv_min = max_min > 0 ? fr(63 / max_min) : 0.0; - for (let j = 0; j < 8; j++) { - let ls = Math.min(63, nearestInt(fr(inv_scale * scales[j]))), lm = Math.min(63, nearestInt(fr(inv_min * mins[j]))); - if (j < 4) { out[scB + j] = ls; out[scB + j + 4] = lm; } - else { out[scB + j + 4] = (ls & 0xf) | ((lm & 0xf) << 4); out[scB + j - 4] |= (ls >> 4) << 6; out[scB + j] |= (lm >> 4) << 6; } - } - dv.setUint16(bp, f32ToF16(fr(max_scale / 63)), true); - dv.setUint16(bp + 2, f32ToF16(fr(max_min / 63)), true); - const dAll = f16ToF32(dv.getUint16(bp, true)), dminAll = f16ToF32(dv.getUint16(bp + 2, true)); - for (let j = 0; j < 8; j++) { - const [sc, m] = scaleMinK4(j, out.subarray(scB, scB + 12)); - const d = fr(dAll * sc); if (!d) continue; - const dm = fr(dminAll * m); - for (let ii = 0; ii < 32; ii++) { let l = nearestInt(fr(fr(x[xo + 32 * j + ii] + dm) / d)); L[32 * j + ii] = Math.max(0, Math.min(15, l)); } - } - let q = bp + 16; - for (let j = 0; j < QK_K; j += 64) { for (let l = 0; l < 32; l++) out[q + l] = L[j + l] | (L[j + l + 32] << 4); q += 32; } - } - return out; -} - -// make_qx_quants (:566): symmetric (signed) scale optimizer. n=16,nmax=32,rmse_type=1, -// qw=NULL for q6_K. Returns the best scale; L (scratch) is recomputed by the caller. -const GROUP_MAX_EPS = 1e-15; -function makeQxQuants(n, nmax, x, xoff, L, rmseType, qw, qwoff) { - let max = 0.0, amax = 0.0; - for (let i = 0; i < n; i++) { const ax = fabsf(x[xoff + i]); if (ax > amax) { amax = ax; max = x[xoff + i]; } } - if (amax < GROUP_MAX_EPS) { for (let i = 0; i < n; i++) L[i] = 0; return 0.0; } - let iscale = fr(-nmax / max); - const wOf = (i) => qw ? qw[qwoff + i] : rmseType === 1 ? fr(x[xoff + i] * x[xoff + i]) : rmseType === 2 ? 1 : rmseType === 3 ? fabsf(x[xoff + i]) : fr(Math.sqrt(fabsf(x[xoff + i]))); - let sumlx = 0.0, suml2 = 0.0; - for (let i = 0; i < n; i++) { - let l = Math.max(-nmax, Math.min(nmax - 1, nearestInt(fr(iscale * x[xoff + i])))); L[i] = l + nmax; - const w = wOf(i); sumlx = fr(sumlx + fr(fr(w * x[xoff + i]) * l)); suml2 = fr(suml2 + fr(fr(w * l) * l)); - } - let scale = suml2 ? fr(sumlx / suml2) : 0.0, best = fr(scale * sumlx); - for (let is = -9; is <= 9; is++) { - if (is === 0) continue; - iscale = fr(-fr(nmax + fr(0.1 * is)) / max); sumlx = 0.0; suml2 = 0.0; - for (let i = 0; i < n; i++) { - let l = Math.max(-nmax, Math.min(nmax - 1, nearestInt(fr(iscale * x[xoff + i])))); - const w = wOf(i); sumlx = fr(sumlx + fr(fr(w * x[xoff + i]) * l)); suml2 = fr(suml2 + fr(fr(w * l) * l)); - } - if (suml2 > 0 && fr(sumlx * sumlx) > fr(best * suml2)) { - for (let i = 0; i < n; i++) L[i] = nmax + Math.max(-nmax, Math.min(nmax - 1, nearestInt(fr(iscale * x[xoff + i])))); - scale = fr(sumlx / suml2); best = fr(scale * sumlx); - } - } - return scale; -} - -// quantize_row_q6_K_ref (:1807) / _impl (:1908). Block 210 B: ql[128] qh[64] scales:int8[16] d:f16. -// imatrix (quant_weights, an f32 per element) is the high-quality path llama-quantize uses; -// null → plain RNE. The ONLY difference is the per-element weight in make_qx_quants. -export function quantizeRowQ6K(x, k, imatrix = null) { - const nb = k / QK_K, out = new Uint8Array(nb * 210), dv = new DataView(out.buffer); - const L = new Int8Array(QK_K), Lscratch = new Int8Array(16), scales = new Float32Array(16); - for (let i = 0; i < nb; i++) { - const xo = i * QK_K, bp = i * 210, qlB = bp, qhB = bp + 128, scB = bp + 192; - let max_scale = 0.0, max_abs_scale = 0.0; - for (let ib = 0; ib < 16; ib++) { - const scale = makeQxQuants(16, 32, x, xo + 16 * ib, Lscratch, 1, imatrix, xo + 16 * ib); - scales[ib] = scale; const a = fabsf(scale); - if (a > max_abs_scale) { max_abs_scale = a; max_scale = scale; } - } - if (max_abs_scale < GROUP_MAX_EPS) { dv.setUint16(bp + 208, f32ToF16(0), true); continue; } // zero block - const iscale = fr(-128 / max_scale); - dv.setUint16(bp + 208, f32ToF16(fr(1 / iscale)), true); - for (let ib = 0; ib < 16; ib++) out[scB + ib] = Math.min(127, nearestInt(fr(iscale * scales[ib]))) & 0xff; - const dAll = f16ToF32(dv.getUint16(bp + 208, true)); - for (let j = 0; j < 16; j++) { - const d = fr(dAll * ((out[scB + j] << 24) >> 24)); if (!d) continue; // scales are int8 - for (let ii = 0; ii < 16; ii++) { let l = nearestInt(fr(x[xo + 16 * j + ii] / d)); L[16 * j + ii] = Math.max(-32, Math.min(31, l)) + 32; } - } - let ql = qlB, qh = qhB; - for (let j = 0; j < QK_K; j += 128) { - for (let l = 0; l < 32; l++) { - const q1 = L[j + l] & 0xf, q2 = L[j + l + 32] & 0xf, q3 = L[j + l + 64] & 0xf, q4 = L[j + l + 96] & 0xf; - out[ql + l] = q1 | (q3 << 4); out[ql + l + 32] = q2 | (q4 << 4); - out[qh + l] = (L[j + l] >> 4) | ((L[j + l + 32] >> 4) << 2) | ((L[j + l + 64] >> 4) << 4) | ((L[j + l + 96] >> 4) << 6); - } - ql += 64; qh += 32; - } - } - return out; -} - -// quantize_row_tq2_0_ref (:2313). Block 66 B: qs[64] (2 bits/elem) + d:f16. BitNet -// ternary: d = amax; each weight → lroundf(x·id)+1 ∈ {0,1,2} packed 4/byte. `roundf` -// here is lroundf semantics (ties away from zero). No imatrix (quant_weights unused). -export function quantizeRowTq2_0(x, k) { - const nb = k / QK_K, out = new Uint8Array(nb * 66), dv = new DataView(out.buffer); - for (let i = 0; i < nb; i++) { - const xo = i * QK_K, bp = i * 66; - let amax = 0.0; - for (let j = 0; j < QK_K; j++) { const a = fabsf(x[xo + j]); if (a > amax) amax = a; } - const d = amax, id = d ? fr(1.0 / d) : 0.0; - dv.setUint16(bp + 64, f32ToF16(d), true); - for (let j = 0; j < 64; j += 32) { // two halves; each consumes 4*32 inputs - const xh = xo + (j === 0 ? 0 : 128); - for (let m = 0; m < 32; m++) { - let q = 0; - for (let n = 0; n < 4; n++) { const xi = roundf(fr(x[xh + m + n * 32] * id)) + 1; q += (xi & 3) << (2 * n); } - out[bp + j + m] = q & 0xff; - } - } - } - return out; -} - -// Dispatch by ggml type id (basic, round-to-nearest; no imatrix yet — S2). -export const quantizeRow = { - 8: quantizeRowQ8_0, 2: quantizeRowQ4_0, 6: quantizeRowQ5_0, 12: quantizeRowQ4K, 14: quantizeRowQ6K, 35: quantizeRowTq2_0, -}; - -// ── S3: κ-native model factory ── -// Quantize raw f32 weights INTO the substrate: each tensor → its verbatim quant bytes -// = one κ-object (the SAME the forge runner consumes), sealed into a plan with a root κ. -// Deterministic by construction: identical f32 in ⇒ identical bytes ⇒ identical κ/root. -// `tensors`: [{ name, dims, data:Float32Array, type?:ggmlTypeId }]. No external tool. -export function forgeQuantize(tensors, { defaultType = 12, format = "holo-quant/1" } = {}) { - const blocks = new Map(), planTensors = []; - for (const t of tensors) { - const ty = t.type ?? defaultType, qfn = quantizeRow[ty]; - if (!qfn) throw new Error(`forgeQuantize: no quantizer for ggml type ${ty}`); - const n = t.dims.reduce((a, b) => a * b, 1), nper = t.dims[0], nrows = n / nper; - // optional per-row imatrix (length n_per_row, applied to every row) — its OWN κ-object - let imRef = null, imFlat = null; - if (t.imatrix) { - if (t.imatrix.length !== nper) throw new Error(`forgeQuantize: imatrix len ${t.imatrix.length} ≠ n_per_row ${nper}`); - const imBytes = new Uint8Array(t.imatrix.buffer, t.imatrix.byteOffset, t.imatrix.byteLength).slice(); - const imHex = sha256hex(imBytes); - if (!blocks.has(imHex)) blocks.set(imHex, imBytes); - imRef = kappa("sha256", imHex); - if (nrows === 1) imFlat = t.imatrix; // tile per-row → flat for the quantizer - else { imFlat = new Float32Array(n); for (let r = 0; r < nrows; r++) imFlat.set(t.imatrix, r * nper); } - } - const blob = qfn(t.data, n, imFlat); // EXACT quant bytes = the κ-object - const hex = sha256hex(blob); - if (!blocks.has(hex)) blocks.set(hex, blob); // L2 dedup by content - const pt = { name: t.name, dims: t.dims, type: ty, typeName: GGML_TYPE_NAME[ty] || String(ty), nbytes: blob.length, kappa: kappa("sha256", hex), sri: sriOf(blob) }; - if (imRef) pt.imatrix = imRef; - planTensors.push(pt); - } - const plan = { format, quantizer: "ggml-bit-exact", tensors: planTensors }; - const rootKappa = didHolo("sha256", sha256hex(jcs(plan))); - return { tensors: planTensors, blocks, plan, rootKappa }; -} +version https://git-lfs.github.com/spec/v1 +oid sha256:6c769b649df1a53e8d7bae1114cf687186a167bfefa13ccbfad189c7de588691 +size 22719 diff --git a/b/04c563a5eade7889e606a0e402e3dcc6ffdcab8d40a97c3c8d8714e424af3fac b/b/04c563a5eade7889e606a0e402e3dcc6ffdcab8d40a97c3c8d8714e424af3fac index ff134b399e5af021a578f5492bd61aa72137ee10..3a11f28cbce32f7e09dd95eda47b4e2c0e7c9669 100644 --- a/b/04c563a5eade7889e606a0e402e3dcc6ffdcab8d40a97c3c8d8714e424af3fac +++ b/b/04c563a5eade7889e606a0e402e3dcc6ffdcab8d40a97c3c8d8714e424af3fac @@ -1,32 +1,3 @@ -// diff.mjs — decode a window.__cap dump (base64 tensors) → ort/*.f32, then run onnx-run.mjs -// (stopAt the last probe) and report max-abs error vs ORT for each exposed tensor, in order. First ">>>" = the -// first divergent stage. The whole Phase-1-to-green bisect loop reduces to: edit probes → gen-exposed → capture → diff.mjs. -import { readFileSync, writeFileSync, mkdirSync } from "node:fs"; -import { loadModel, run } from "./onnx-run.mjs"; - -const MODEL = "../../../../../../holo-os/system/os/usr/lib/holo/voice/vendor/models/onnx-community/Kokoro-82M-v1.0-ONNX/onnx/model.onnx"; -const capPath = process.argv[2]; -if (!capPath) { console.error("usage: node diff.mjs "); process.exit(1); } - -let cap = JSON.parse(readFileSync(capPath, "utf8").trim()); if (typeof cap === "string") cap = JSON.parse(cap); -mkdirSync("ort", { recursive: true }); -const man = {}; -for (const [name, t] of Object.entries(cap)) { const f = "ort/" + name.replace(/[^A-Za-z0-9]+/g, "_").replace(/^_+/, "") + ".f32"; writeFileSync(f, Buffer.from(t.b64, "base64")); man[name] = { file: f, dims: t.dims }; } -writeFileSync("ort/manifest.json", JSON.stringify(man, null, 2)); - -const T = (d, dm, i = false) => ({ data: Float64Array.from(d), dims: dm, int: i }); -const meta = JSON.parse(readFileSync("golden.json", "utf8")); -const sb = readFileSync("golden.style.f32"); const style = new Float32Array(sb.buffer, sb.byteOffset, 256); -const model = loadModel(MODEL); -const probes = Object.keys(cap).filter((k) => k !== "waveform"); -const stop = probes[probes.length - 1]; -const env = run(model, { input_ids: T(meta.ids, [1, meta.ids.length], true), style: T(Float64Array.from(style), [1, 256]), speed: T([1], [1]) }, { stopAt: stop }); - -for (const name of probes) { - const mine = env.get(name), m = man[name], ob = readFileSync(m.file), ort = new Float32Array(ob.buffer, ob.byteOffset, ob.length / 4); - if (!mine) { console.log("MISSING(mine) " + name); continue; } - const n = Math.min(mine.data.length, ort.length); let err = 0, mm = 0, mo = 0; - for (let i = 0; i < n; i++) { err = Math.max(err, Math.abs(mine.data[i] - ort[i])); mm = Math.max(mm, Math.abs(mine.data[i])); mo = Math.max(mo, Math.abs(ort[i])); } - const shape = JSON.stringify(mine.dims) === JSON.stringify(m.dims); - console.log((err < 1e-3 && shape ? "OK " : ">>> ") + name.slice(-46).padEnd(47) + " err " + err.toExponential(2) + " mine " + mm.toFixed(3) + " ort " + mo.toFixed(3) + (shape ? "" : " SHAPE " + JSON.stringify(mine.dims) + "/" + JSON.stringify(m.dims))); -} +version https://git-lfs.github.com/spec/v1 +oid sha256:a6ab508448000d4c61c047d8653c51ba206e1d91a0992f689606986ee0b8c845 +size 2553 diff --git a/b/04e78a89259a1e665b7086182d2e5b96a6f0a65afe553aab91eb03d2765eb1d1 b/b/04e78a89259a1e665b7086182d2e5b96a6f0a65afe553aab91eb03d2765eb1d1 index f3aed938d03525c235d732fca5ff3b1af4162ef8..dc0b57a7a7a8090fb464e73bee6e451f65625183 100644 --- a/b/04e78a89259a1e665b7086182d2e5b96a6f0a65afe553aab91eb03d2765eb1d1 +++ b/b/04e78a89259a1e665b7086182d2e5b96a6f0a65afe553aab91eb03d2765eb1d1 @@ -1,21 +1,3 @@ -{ - "id": "org.hologram.ui.chart.chart-tooltip-advanced", - "name": "chart-tooltip-advanced", - "tier": "chart", - "library": "shadcn", - "category": "Charts · Tooltip", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-tooltip-advanced.json", - "did": "did:holo:sha256:ecb06efd0b0e78fcd27bd5211046d648d05b311e306857edce20545d67a3c378", - "import": "holo://sha256:fe35ddfc99f94ce4eef211b6084f6752528817228e588aee3362f68e0b7624d4", - "integrity": "sha256-/jXd/Jn5TOTu8hG2CE9nUlKIFyKOWIruM2L2jgt2JNQ=", - "kappa": "sha256:ecb06efd0b0e78fcd27bd5211046d648d05b311e306857edce20545d67a3c378", - "moduleKappa": "sha256:fe35ddfc99f94ce4eef211b6084f6752528817228e588aee3362f68e0b7624d4", - "renderExport": "ChartTooltipAdvanced", - "source": "registry/new-york-v4/charts/chart-tooltip-advanced.tsx", - "module": "vendor/components/chart-tooltip-advanced.js", - "exports": [ - "description", - "ChartTooltipAdvanced" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:819bad9324a1a0b2cc322cb3078e4f4b9b8d615c0eaf6d13401f9753f0e29d61 +size 952 diff --git a/b/04fe1db0ccedcb1596368c9de941ea9776265f3124c92e0162a397b136406862 b/b/04fe1db0ccedcb1596368c9de941ea9776265f3124c92e0162a397b136406862 index a6209d9012a7226b9e76fd60db341fb90920b5d7..b0d1344e596aa455dd1577a89664dfab3bb37484 100644 --- a/b/04fe1db0ccedcb1596368c9de941ea9776265f3124c92e0162a397b136406862 +++ b/b/04fe1db0ccedcb1596368c9de941ea9776265f3124c92e0162a397b136406862 @@ -1 +1,3 @@ -var Nt=Object.defineProperty;var ze=(e,r)=>{for(var t in r)Nt(e,t,{get:r[t],enumerable:!0})};import*as B from"react";import*as He from"react";import*as Jt from"react-dom";var ne={};ze(ne,{Root:()=>Gt,Slot:()=>Gt,Slottable:()=>Ut,createSlot:()=>oe,createSlottable:()=>je});import*as E from"react";import*as Ue from"react";function Ge(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function zt(...e){return r=>{let t=!1,s=e.map(o=>{let n=Ge(o,r);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let o=0;o{let{children:o,...n}=t,i=null,c=!1,u=[];We(o)&&typeof se=="function"&&(o=se(o._payload)),E.Children.forEach(o,v=>{if(jt(v)){c=!0;let w=v,A="child"in w.props?w.props.child:w.props.children;We(A)&&typeof se=="function"&&(A=se(A._payload)),i=Bt(w,A),u.push(i?.props?.children)}else u.push(v)}),i?i=E.cloneElement(i,void 0,u):!c&&E.Children.count(o)===1&&E.isValidElement(o)&&(i=o);let d=i?$t(i):void 0,y=Be(s,d);if(!i){if(o||o===0)throw new Error(c?Kt(e):Yt(e));return o}let b=Wt(n,i.props??{});return i.type!==E.Fragment&&(b.ref=s?y:d),E.cloneElement(i,b)});return r.displayName=`${e}.Slot`,r}var Gt=oe("Slot"),$e=Symbol.for("radix.slottable");function je(e){let r=t=>"child"in t?t.children(t.child):t.children;return r.displayName=`${e}.Slottable`,r.__radixId=$e,r}var Ut=je("Slottable"),Bt=(e,r)=>{if("child"in e.props){let t=e.props.child;return E.isValidElement(t)?E.cloneElement(t,void 0,e.props.children(t.props.children)):null}return E.isValidElement(r)?r:null};function Wt(e,r){let t={...r};for(let s in r){let o=e[s],n=r[s];/^on[A-Z]/.test(s)?o&&n?t[s]=(...c)=>{let u=n(...c);return o(...c),u}:o&&(t[s]=o):s==="style"?t[s]={...o,...n}:s==="className"&&(t[s]=[o,n].filter(Boolean).join(" "))}return{...e,...t}}function $t(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function jt(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$e}var Ht=Symbol.for("react.lazy");function We(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ht&&"_payload"in e&&qt(e._payload)}function qt(e){return typeof e=="object"&&e!==null&&"then"in e}var Yt=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Kt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,se=E[" use ".trim().toString()];import{jsx as Qt}from"react/jsx-runtime";var Xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=Xt.reduce((e,r)=>{let t=oe(`Primitive.${r}`),s=He.forwardRef((o,n)=>{let{asChild:i,...c}=o,u=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Qt(u,{...c,ref:n})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});var ie={};ze(ie,{Label:()=>ve,Root:()=>tr});import*as Ye from"react";import{jsx as Zt}from"react/jsx-runtime";var er="Label",ve=Ye.forwardRef((e,r)=>Zt(qe.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));ve.displayName=er;var tr=ve;import g from"react";var rr=e=>e.type==="checkbox",J=e=>e instanceof Date,ke=e=>e==null,tt=e=>typeof e=="object",j=e=>!ke(e)&&!Array.isArray(e)&&tt(e)&&!J(e),Ke=e=>j(e)&&e.target?rr(e.target)?e.target.checked:e.target.value:e,sr=(e,r)=>r.split(".").some((t,s,o)=>!isNaN(Number(t))&&e.has(o.slice(0,s).join("."))),rt=e=>{let r=e.constructor&&e.constructor.prototype;return j(r)&&r.hasOwnProperty("isPrototypeOf")},st=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ot(e){if(e instanceof Date)return new Date(e);let r=typeof FileList<"u"&&e instanceof FileList;if(st&&(e instanceof Blob||r))return e;let t=Array.isArray(e);if(!t&&!(j(e)&&rt(e)))return e;let s=t?[]:Object.create(Object.getPrototypeOf(e));for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=ot(e[o]));return s}var Je={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ce={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"};var nt=["__proto__","constructor","prototype"],it=e=>/^\w*$/.test(e),we=e=>e===void 0,at=e=>e.split(/[.[\]'"]/g).filter(Boolean),D=(e,r,t)=>{if(!r||!j(e))return t;let s=it(r)?[r]:at(r);if(s.some(n=>nt.includes(n)))return t;let o=s.reduce((n,i)=>ke(n)?void 0:n[i],e);return we(o)||o===e?we(e[r])?t:e[r]:o},xe=e=>typeof e=="boolean",ae=e=>typeof e=="function",Qe=(e,r,t)=>{let s=-1,o=it(r)?[r]:at(r),n=o.length,i=n-1;for(;++sg.useContext(_e),or=(e,r,t,s=!0)=>{let o={};for(let n in e)Object.defineProperty(o,n,{get:()=>{let i=n;return r._proxyFormState[i]!==ce.all&&(r._proxyFormState[i]=!s||ce.all),t&&(t[i]=!0),e[i]}});return o},lt=st?g.useLayoutEffect:g.useEffect;function Fe(e){let r=Ve(),{control:t=r,disabled:s,name:o,exact:n}=e||{},[i,c]=g.useState(()=>({...t._formState,defaultValues:t._defaultValues})),u=g.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return lt(()=>t._subscribe({name:o,formState:u.current,exact:n,callback:d=>{!s&&c({...t._formState,...d,defaultValues:t._defaultValues})}}),[o,s,n]),g.useEffect(()=>{u.current.isValid&&t._setValid(!0)},[t]),g.useMemo(()=>or(i,t,u.current,!1),[i,t])}var nr=e=>typeof e=="string",Xe=(e,r,t,s,o)=>nr(e)?(s&&r.watch.add(e),D(t,e,o)):Array.isArray(e)?e.map(n=>(s&&r.watch.add(n),D(t,n))):(s&&(r.watchAll=!0),t),Ze=e=>ke(e)||!tt(e),et=(e,r)=>r.length===0&&!Array.isArray(e)&&!rt(e);function le(e,r,t=new WeakSet){if(e===r)return!0;if(Ze(e)||Ze(r))return Object.is(e,r);if(J(e)&&J(r))return Object.is(e.getTime(),r.getTime());let s=Object.keys(e),o=Object.keys(r);if(s.length!==o.length)return!1;if(et(e,s)||et(r,o))return Object.is(e,r);if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(let n of s){let i=e[n];if(!(n in r))return!1;if(n!=="ref"){let c=r[n];if(J(i)&&J(c)||(j(i)||Array.isArray(i))&&(j(c)||Array.isArray(c))?!le(i,c,t):!Object.is(i,c))return!1}}return!0}function ir(e){let r=Ve(),{control:t=r,name:s,defaultValue:o,disabled:n,exact:i,compute:c}=e||{},u=g.useRef(o),d=g.useRef(c),y=g.useRef(void 0),b=g.useRef(t),v=g.useRef(s);d.current=c;let[w,A]=g.useState(()=>{let h=t._getWatch(s,u.current);return d.current?d.current(h):h}),k=g.useCallback(h=>{let F=Xe(s,t._names,h||t._formValues,!1,u.current);return d.current?d.current(F):F},[t._formValues,t._names,s]),V=g.useCallback(h=>{if(!n){let F=Xe(s,t._names,h||t._formValues,!1,u.current);if(d.current){let O=d.current(F);le(O,y.current)||(A(O),y.current=O)}else A(F)}},[t._formValues,t._names,n,s]);lt(()=>((b.current!==t||!le(v.current,s))&&(b.current=t,v.current=s,V()),t._subscribe({name:s,formState:{values:!0},exact:i,callback:h=>{V(h.values)}})),[t,i,s,V]),g.useEffect(()=>t._removeUnmounted());let R=b.current!==t,_=v.current,x=g.useMemo(()=>{if(n)return null;let h=!R&&!le(_,s);return R||h?k():null},[n,R,s,_,k]);return x!==null?x:w}function ar(e){let r=Ve(),{name:t,disabled:s,control:o=r,shouldUnregister:n,defaultValue:i,exact:c=!0}=e,u=sr(o._names.array,t),d=g.useMemo(()=>D(o._formValues,t,D(o._defaultValues,t,i)),[o,t,i]),y=ir({control:o,name:t,defaultValue:d,exact:c}),b=Fe({control:o,name:t,exact:c}),v=g.useRef(e),w=g.useRef(o.register(t,{...e.rules,value:y,...xe(e.disabled)?{disabled:e.disabled}:{}}));v.current=e;let A=g.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!D(b.errors,t)},isDirty:{enumerable:!0,get:()=>!!D(b.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!D(b.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!D(b.validatingFields,t)},error:{enumerable:!0,get:()=>D(b.errors,t)}}),[b,t]),k=g.useCallback(x=>{let h=Ke(x);D(o._fields,t)||(w.current=o.register(t,{...v.current.rules,value:h})),w.current.onChange({target:{value:Ke(x),name:t},type:Je.CHANGE})},[t,o]),V=g.useCallback(()=>w.current.onBlur({target:{value:D(o._formValues,t),name:t},type:Je.BLUR}),[t,o._formValues]),R=g.useCallback(x=>{let h=D(o._fields,t);h&&h._f&&x&&(h._f.ref={focus:()=>ae(x.focus)&&x.focus(),select:()=>ae(x.select)&&x.select(),setCustomValidity:F=>ae(x.setCustomValidity)&&x.setCustomValidity(F),reportValidity:()=>ae(x.reportValidity)&&x.reportValidity()})},[o._fields,t]),_=g.useMemo(()=>({name:t,value:y,...xe(s)||b.disabled?{disabled:b.disabled||s}:{},onChange:k,onBlur:V,ref:R}),[t,s,b.disabled,k,V,R,y]);return g.useEffect(()=>{let x=o._options.shouldUnregister||n;o.register(t,{...v.current.rules,...xe(v.current.disabled)?{disabled:v.current.disabled}:{}});let h=(F,O)=>{let P=D(o._fields,F);P&&P._f&&(P._f.mount=O)};if(h(t,!0),x){let F=ot(D(n?o._defaultValues:o._options.values||o._defaultValues,t,D(o._options.defaultValues,t,v.current.defaultValue)));Qe(o._defaultValues,t,F),we(D(o._formValues,t))&&Qe(o._formValues,t,F)}return!u&&o.register(t),()=>{(u?x&&!o._state.action:x)?o.unregister(t):h(t,!1)}},[t,o,u,n]),g.useEffect(()=>{o._setDisabledField({disabled:s,name:t})},[s,t,o]),g.useMemo(()=>({field:_,formState:b,fieldState:A}),[_,b,A])}var ct=e=>e.render(ar(e));var Ae=g.createContext(null);Ae.displayName="HookFormContext";var dt=()=>g.useContext(Ae),ut=({children:e,watch:r,getValues:t,getFieldState:s,setError:o,clearErrors:n,setValue:i,setValues:c,trigger:u,formState:d,resetField:y,reset:b,handleSubmit:v,unregister:w,control:A,register:k,setFocus:V,subscribe:R})=>{let _=g.useMemo(()=>({watch:r,getValues:t,getFieldState:s,setError:o,clearErrors:n,setValue:i,setValues:c,trigger:u,formState:d,resetField:y,reset:b,handleSubmit:v,unregister:w,control:A,register:k,setFocus:V,subscribe:R}),[n,A,d,s,t,v,k,b,y,o,V,i,c,R,u,w,r]);return g.createElement(Ae.Provider,{value:_},g.createElement(_e.Provider,{value:_.control},e))};var cs={mode:ce.onSubmit,reValidateMode:ce.onChange,shouldFocusError:!0};function ft(e){var r,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r{let t=new Array(e.length+r.length);for(let s=0;s({classGroupId:e,validator:r}),xt=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),fe="-",pt=[],dr="arbitrary..",ur=e=>{let r=mr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return fr(i);let c=i.split(fe),u=c[0]===""&&c.length>1?1:0;return wt(c,u,r)},getConflictingClassGroupIds:(i,c)=>{if(c){let u=s[i],d=t[i];return u?d?lr(d,u):u:d||pt}return t[i]||pt}}},wt=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;let o=e[r],n=t.nextPart.get(o);if(n){let d=wt(e,r+1,n);if(d)return d}let i=t.validators;if(i===null)return;let c=r===0?e.join(fe):e.slice(r).join(fe),u=i.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let r=e.slice(1,-1),t=r.indexOf(":"),s=r.slice(0,t);return s?dr+s:void 0})(),mr=e=>{let{theme:r,classGroups:t}=e;return pr(t,r)},pr=(e,r)=>{let t=xt();for(let s in e){let o=e[s];Re(o,t,s,r)}return t},Re=(e,r,t,s)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){gr(e,r,t);return}if(typeof e=="function"){yr(e,r,t,s);return}hr(e,r,t,s)},gr=(e,r,t)=>{let s=e===""?r:kt(r,e);s.classGroupId=t},yr=(e,r,t,s)=>{if(vr(e)){Re(e(s),r,t,s);return}r.validators===null&&(r.validators=[]),r.validators.push(cr(t,e))},hr=(e,r,t,s)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let t=e,s=r.split(fe),o=s.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,xr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),s=Object.create(null),o=(n,i)=>{t[n]=i,r++,r>e&&(r=0,s=t,t=Object.create(null))};return{get(n){let i=t[n];if(i!==void 0)return i;if((i=s[n])!==void 0)return o(n,i),i},set(n,i){n in t?t[n]=i:o(n,i)}}},Ce="!",bt=":",wr=[],gt=(e,r,t,s,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:s,isExternal:o}),kr=e=>{let{prefix:r,experimentalParseClassName:t}=e,s=o=>{let n=[],i=0,c=0,u=0,d,y=o.length;for(let k=0;ku?d-u:void 0;return gt(n,w,v,A)};if(r){let o=r+bt,n=s;s=i=>i.startsWith(o)?n(i.slice(o.length)):gt(wr,!1,i,void 0,!0)}if(t){let o=s;s=n=>t({className:n,parseClassName:o})}return s},_r=e=>{let r=new Map;return e.orderSensitiveModifiers.forEach((t,s)=>{r.set(t,1e6+s)}),t=>{let s=[],o=[];for(let n=0;n0&&(o.sort(),s.push(...o),o=[]),s.push(i)):o.push(i)}return o.length>0&&(o.sort(),s.push(...o)),s}},Vr=e=>({cache:xr(e.cacheSize),parseClassName:kr(e),sortModifiers:_r(e),postfixLookupClassGroupIds:Fr(e),...ur(e)}),Fr=e=>{let r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let s=0;s{let{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=r,c=[],u=e.trim().split(Ar),d="";for(let y=u.length-1;y>=0;y-=1){let b=u[y],{isExternal:v,modifiers:w,hasImportantModifier:A,baseClassName:k,maybePostfixModifierPosition:V}=t(b);if(v){d=b+(d.length>0?" "+d:d);continue}let R=!!V,_;if(R){let P=k.substring(0,V);_=s(P);let f=_&&i[_]?s(k):void 0;f&&f!==_&&(_=f,R=!1)}else _=s(k);if(!_){if(!R){d=b+(d.length>0?" "+d:d);continue}if(_=s(k),!_){d=b+(d.length>0?" "+d:d);continue}R=!1}let x=w.length===0?"":w.length===1?w[0]:n(w).join(":"),h=A?x+Ce:x,F=h+_;if(c.indexOf(F)>-1)continue;c.push(F);let O=o(_,R);for(let P=0;P0?" "+d:d)}return d},Cr=(...e)=>{let r=0,t,s,o="";for(;r{if(typeof e=="string")return e;let r,t="";for(let s=0;s{let t,s,o,n,i=u=>{let d=r.reduce((y,b)=>b(y),e());return t=Vr(d),s=t.cache.get,o=t.cache.set,n=c,c(u)},c=u=>{let d=s(u);if(d)return d;let y=Sr(u,t);return o(u,y),y};return n=i,(...u)=>n(Cr(...u))},Er=[],S=e=>{let r=t=>t[e]||Er;return r.isThemeGetter=!0,r},Vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ft=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ir=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Dr.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),N=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&p(e.slice(0,-1)),z=e=>Tr.test(e),At=()=>!0,Lr=e=>Ir.test(e)&&!Pr.test(e),Ee=()=>!1,Nr=e=>Mr.test(e),zr=e=>Or.test(e),Gr=e=>!a(e)&&!l(e),Ur=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Br=e=>U(e,Rt,Ee),a=e=>Vt.test(e),H=e=>U(e,Et,Lr),yt=e=>U(e,Jr,p),Wr=e=>U(e,Tt,At),$r=e=>U(e,Dt,Ee),ht=e=>U(e,St,Ee),jr=e=>U(e,Ct,zr),de=e=>U(e,It,Nr),l=e=>Ft.test(e),Q=e=>q(e,Et),Hr=e=>q(e,Dt),vt=e=>q(e,St),qr=e=>q(e,Rt),Yr=e=>q(e,Ct),ue=e=>q(e,It,!0),Kr=e=>q(e,Tt,!0),U=(e,r,t)=>{let s=Vt.exec(e);return s?s[1]?r(s[1]):t(s[2]):!1},q=(e,r,t=!1)=>{let s=Ft.exec(e);return s?s[1]?r(s[1]):t:!1},St=e=>e==="position"||e==="percentage",Ct=e=>e==="image"||e==="url",Rt=e=>e==="length"||e==="size"||e==="bg-size",Et=e=>e==="length",Jr=e=>e==="number",Dt=e=>e==="family-name",Tt=e=>e==="number"||e==="weight",It=e=>e==="shadow";var Qr=()=>{let e=S("color"),r=S("font"),t=S("text"),s=S("font-weight"),o=S("tracking"),n=S("leading"),i=S("breakpoint"),c=S("container"),u=S("spacing"),d=S("radius"),y=S("shadow"),b=S("inset-shadow"),v=S("text-shadow"),w=S("drop-shadow"),A=S("blur"),k=S("perspective"),V=S("aspect"),R=S("ease"),_=S("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...h(),l,a],O=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],f=()=>[l,a,u],M=()=>[G,"full","auto",...f()],De=()=>[N,"none","subgrid",l,a],Te=()=>["auto",{span:["full",N,l,a]},N,l,a],X=()=>[N,"auto",l,a],Ie=()=>["auto","min","max","fr",l,a],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...f()],$=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],be=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...f()],ge=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],m=()=>[e,l,a],Pe=()=>[...h(),vt,ht,{position:[l,a]}],Me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",qr,Br,{size:[l,a]}],ye=()=>[Se,Q,H],T=()=>["","none","full",d,l,a],I=()=>["",p,Q,H],Z=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[p,Se,vt,ht],Ne=()=>["","none",A,l,a],ee=()=>["none",p,l,a],te=()=>["none",p,l,a],he=()=>[p,l,a],re=()=>[G,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[z],breakpoint:[z],color:[At],container:[z],"drop-shadow":[z],ease:["in","out","in-out"],font:[Gr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[z],shadow:[z],spacing:["px",p],text:[z],"text-shadow":[z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,a,l,V]}],container:["container"],"container-type":[{"@container":["","normal","size",l,a]}],"container-named":[Ur],columns:[{columns:[p,a,l,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[N,"auto",l,a]}],basis:[{basis:[G,"full","auto",c,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,G,"auto","initial","none",a]}],grow:[{grow:["",p,l,a]}],shrink:[{shrink:["",p,l,a]}],order:[{order:[N,"first","last","none",l,a]}],"grid-cols":[{"grid-cols":De()}],"col-start-end":[{col:Te()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":De()}],"row-start-end":[{row:Te()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...be()]}],"min-inline-size":[{"min-inline":["auto",...be()]}],"max-inline-size":[{"max-inline":["none",...be()]}],"block-size":[{block:["auto",...ge()]}],"min-block-size":[{"min-block":["auto",...ge()]}],"max-block-size":[{"max-block":["none",...ge()]}],w:[{w:[c,"screen",...$()]}],"min-w":[{"min-w":[c,"screen","none",...$()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",t,Q,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Kr,Wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Se,a]}],"font-family":[{font:[Hr,$r,r]}],"font-features":[{"font-features":[a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,l,a]}],"line-clamp":[{"line-clamp":[p,"none",l,yt]}],leading:[{leading:[n,...f()]}],"list-image":[{"list-image":["none",l,a]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,a]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:m()}],"text-color":[{text:m()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:m()}],"underline-offset":[{"underline-offset":[p,"auto",l,a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[N,l,a]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,a]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Pe()}],"bg-repeat":[{bg:Me()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},N,l,a],radial:["",l,a],conic:[N,l,a]},Yr,jr]}],"bg-color":[{bg:m()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:m()}],"gradient-via":[{via:m()}],"gradient-to":[{to:m()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:m()}],"border-color-x":[{"border-x":m()}],"border-color-y":[{"border-y":m()}],"border-color-s":[{"border-s":m()}],"border-color-e":[{"border-e":m()}],"border-color-bs":[{"border-bs":m()}],"border-color-be":[{"border-be":m()}],"border-color-t":[{"border-t":m()}],"border-color-r":[{"border-r":m()}],"border-color-b":[{"border-b":m()}],"border-color-l":[{"border-l":m()}],"divide-color":[{divide:m()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,l,a]}],"outline-w":[{outline:["",p,Q,H]}],"outline-color":[{outline:m()}],shadow:[{shadow:["","none",y,ue,de]}],"shadow-color":[{shadow:m()}],"inset-shadow":[{"inset-shadow":["none",b,ue,de]}],"inset-shadow-color":[{"inset-shadow":m()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:m()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":m()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":m()}],"text-shadow":[{"text-shadow":["none",v,ue,de]}],"text-shadow-color":[{"text-shadow":m()}],opacity:[{opacity:[p,l,a]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":m()}],"mask-image-linear-to-color":[{"mask-linear-to":m()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":m()}],"mask-image-t-to-color":[{"mask-t-to":m()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":m()}],"mask-image-r-to-color":[{"mask-r-to":m()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":m()}],"mask-image-b-to-color":[{"mask-b-to":m()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":m()}],"mask-image-l-to-color":[{"mask-l-to":m()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":m()}],"mask-image-x-to-color":[{"mask-x-to":m()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":m()}],"mask-image-y-to-color":[{"mask-y-to":m()}],"mask-image-radial":[{"mask-radial":[l,a]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":m()}],"mask-image-radial-to-color":[{"mask-radial-to":m()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":h()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":m()}],"mask-image-conic-to-color":[{"mask-conic-to":m()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Pe()}],"mask-repeat":[{mask:Me()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,a]}],filter:[{filter:["","none",l,a]}],blur:[{blur:Ne()}],brightness:[{brightness:[p,l,a]}],contrast:[{contrast:[p,l,a]}],"drop-shadow":[{"drop-shadow":["","none",w,ue,de]}],"drop-shadow-color":[{"drop-shadow":m()}],grayscale:[{grayscale:["",p,l,a]}],"hue-rotate":[{"hue-rotate":[p,l,a]}],invert:[{invert:["",p,l,a]}],saturate:[{saturate:[p,l,a]}],sepia:[{sepia:["",p,l,a]}],"backdrop-filter":[{"backdrop-filter":["","none",l,a]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[p,l,a]}],"backdrop-contrast":[{"backdrop-contrast":[p,l,a]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,l,a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,l,a]}],"backdrop-invert":[{"backdrop-invert":["",p,l,a]}],"backdrop-opacity":[{"backdrop-opacity":[p,l,a]}],"backdrop-saturate":[{"backdrop-saturate":[p,l,a]}],"backdrop-sepia":[{"backdrop-sepia":["",p,l,a]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,a]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",l,a]}],ease:[{ease:["linear","initial",R,l,a]}],delay:[{delay:[p,l,a]}],animate:[{animate:["none",_,l,a]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,a]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[l,a,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],zoom:[{zoom:[N,l,a]}],accent:[{accent:m()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:m()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,a]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":m()}],"scrollbar-track-color":[{"scrollbar-track":m()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,a]}],fill:[{fill:["none",...m()]}],"stroke-w":[{stroke:[p,Q,H,yt]}],stroke:[{stroke:["none",...m()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Pt=Rr(Qr);function Y(...e){return Pt(mt(e))}import{jsx as Xr}from"react/jsx-runtime";function Mt({className:e,...r}){return Xr(ie.Root,{"data-slot":"label",className:Y("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}import{jsx as W}from"react/jsx-runtime";var Vs=ut,Ot=B.createContext({}),Fs=({...e})=>W(Ot.Provider,{value:{name:e.name},children:W(ct,{...e})}),me=()=>{let e=B.useContext(Ot),r=B.useContext(Lt),{getFieldState:t}=dt(),s=Fe({name:e.name}),o=t(e.name,s);if(!e)throw new Error("useFormField should be used within ");let{id:n}=r;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...o}},Lt=B.createContext({});function As({className:e,...r}){let t=B.useId();return W(Lt.Provider,{value:{id:t},children:W("div",{"data-slot":"form-item",className:Y("grid gap-2",e),...r})})}function Ss({className:e,...r}){let{error:t,formItemId:s}=me();return W(Mt,{"data-slot":"form-label","data-error":!!t,className:Y("data-[error=true]:text-destructive",e),htmlFor:s,...r})}function Cs({...e}){let{error:r,formItemId:t,formDescriptionId:s,formMessageId:o}=me();return W(ne.Root,{"data-slot":"form-control",id:t,"aria-describedby":r?`${s} ${o}`:`${s}`,"aria-invalid":!!r,...e})}function Rs({className:e,...r}){let{formDescriptionId:t}=me();return W("p",{"data-slot":"form-description",id:t,className:Y("text-sm text-muted-foreground",e),...r})}function Es({className:e,...r}){let{error:t,formMessageId:s}=me(),o=t?String(t?.message??""):r.children;return o?W("p",{"data-slot":"form-message",id:s,className:Y("text-sm text-destructive",e),...r,children:o}):null}export{Vs as Form,Cs as FormControl,Rs as FormDescription,Fs as FormField,As as FormItem,Ss as FormLabel,Es as FormMessage,me as useFormField}; +version https://git-lfs.github.com/spec/v1 +oid sha256:106dc170429301666ce26080f53a1bb7be946ec043e172baac206b8300bf5f96 +size 39739 diff --git a/b/05391960291ed7748c95c5463c0114c912a7b83508c9d16cdee9e5b2e6b30736 b/b/05391960291ed7748c95c5463c0114c912a7b83508c9d16cdee9e5b2e6b30736 index 7003b34620324a3ad6eff00b74c9c409520e5324..829ccfc15349b664f0dc5f21c890b35332323957 100644 --- a/b/05391960291ed7748c95c5463c0114c912a7b83508c9d16cdee9e5b2e6b30736 +++ b/b/05391960291ed7748c95c5463c0114c912a7b83508c9d16cdee9e5b2e6b30736 @@ -1,27 +1,3 @@ -{ - "id": "org.hologram.ui.daisyui.dock", - "name": "daisyui-dock", - "tier": "component", - "library": "daisyui", - "category": "Navigation", - "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/dock.css", - "docs": "https://daisyui.com/components/dock/", - "did": "did:holo:sha256:cb025d8b235b19213bdf590e3c34e3f58ce1812f79499cfb93dc4091a19480b9", - "import": "holo://sha256:cb025d8b235b19213bdf590e3c34e3f58ce1812f79499cfb93dc4091a19480b9", - "integrity": "sha256-ywJdiyNbGSE731kOPDTj9YzhgS95SZz7k9xAkaGUgLk=", - "kappa": "sha256:cb025d8b235b19213bdf590e3c34e3f58ce1812f79499cfb93dc4091a19480b9", - "moduleKappa": "sha256:cb025d8b235b19213bdf590e3c34e3f58ce1812f79499cfb93dc4091a19480b9", - "renderExport": null, - "format": "css", - "source": "components/dock.css", - "module": "vendor/daisyui/components/dock.css", - "exports": [], - "bytes": 12711, - "provenance": { - "package": "daisyui", - "version": "5.5.23", - "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", - "file": "components/dock.css" - }, - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:4a0d9c76b1efb73419c5901a2421af0ad241f8bf2bed2d2f3d80ae9da29790c7 +size 1117 diff --git a/b/054cba6688ece25c5c539cff176bb114e406cd1023387d85334eb0f26f3a25fb b/b/054cba6688ece25c5c539cff176bb114e406cd1023387d85334eb0f26f3a25fb index b719e4927164cbfb691f64a7cbbe1fe6b6c9c0d7..7befdc7eb2ac327dfded6445dc5dcee834a55a22 100644 --- a/b/054cba6688ece25c5c539cff176bb114e406cd1023387d85334eb0f26f3a25fb +++ b/b/054cba6688ece25c5c539cff176bb114e406cd1023387d85334eb0f26f3a25fb @@ -1,20 +1,3 @@ -{ - "id": "org.hologram.ui.example.typography-h3", - "name": "typography-h3", - "tier": "example", - "library": "shadcn", - "category": "Examples", - "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/typography-h3.json", - "did": "did:holo:sha256:9b08589f1de6fbe81e70d8fdd8c525b6872548d45b7fe5d8977073071050c3db", - "import": "holo://sha256:58cc31b460eaf2ab6d9e0c325a6881fac9c5b262c50e23e54b8881de9061da6f", - "integrity": "sha256-WMwxtGDq8qttngwyWmiB+snFsmLFDiPlS4iB3pBh2m8=", - "kappa": "sha256:9b08589f1de6fbe81e70d8fdd8c525b6872548d45b7fe5d8977073071050c3db", - "moduleKappa": "sha256:58cc31b460eaf2ab6d9e0c325a6881fac9c5b262c50e23e54b8881de9061da6f", - "renderExport": "default", - "source": "registry/new-york-v4/examples/typography-h3.tsx", - "module": "vendor/components/typography-h3.js", - "exports": [ - "default" - ], - "license": "MIT" -} +version https://git-lfs.github.com/spec/v1 +oid sha256:5bf3ffacc72c0429cfc9adf9516c42a89201c9b189e4a096a1c425f4086d959b +size 859 diff --git a/b/05502b8bef64ef6e3a2536edab5f7f823f8d32f677e68d42113c864be480c1a1 b/b/05502b8bef64ef6e3a2536edab5f7f823f8d32f677e68d42113c864be480c1a1 index 958ea50d0a1f6cee478146e6108cd2381d7b406a..5072e179cb1820f139a1843fa6345c3b40860fca 100644 --- a/b/05502b8bef64ef6e3a2536edab5f7f823f8d32f677e68d42113c864be480c1a1 +++ b/b/05502b8bef64ef6e3a2536edab5f7f823f8d32f677e68d42113c864be480c1a1 @@ -1,67 +1,3 @@ -import{forwardRef as ta,createElement as oa}from"react";var be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ae=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as aa,createElement as Ae}from"react";var Pe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Be=aa(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:f,...p},m)=>Ae("svg",{ref:m,...Pe,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:ae("lucide",d),...p},[...f.map(([i,L])=>Ae(i,L)),...Array.isArray(s)?s:[s]]));var X=(e,t)=>{let a=ta(({className:o,...d},s)=>oa(Be,{ref:s,iconNode:t,className:ae(`lucide-${be(e)}`,o),...d}));return a.displayName=`${e}`,a};var Z=X("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var J=X("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var R=X("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);function ye(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),qe=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),ue="-",Me=[],da="arbitrary..",ra=e=>{let t=fa(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return sa(f);let p=f.split(ue),m=p[0]===""&&p.length>1?1:0;return Ue(p,m,t)},getConflictingClassGroupIds:(f,p)=>{if(p){let m=o[f],i=a[f];return m?i?la(i,m):m:i||Me}return a[f]||Me}}},Ue=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let d=e[t],s=a.nextPart.get(d);if(s){let i=Ue(e,t+1,s);if(i)return i}let f=a.validators;if(f===null)return;let p=t===0?e.join(ue):e.slice(t).join(ue),m=f.length;for(let i=0;ie.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?da+o:void 0})(),fa=e=>{let{theme:t,classGroups:a}=e;return ia(a,t)},ia=(e,t)=>{let a=qe();for(let o in e){let d=e[o];pe(d,a,o,t)}return a},pe=(e,t,a,o)=>{let d=e.length;for(let s=0;s{if(typeof e=="string"){ca(e,t,a);return}if(typeof e=="function"){pa(e,t,a,o);return}ma(e,t,a,o)},ca=(e,t,a)=>{let o=e===""?t:Oe(t,e);o.classGroupId=a},pa=(e,t,a,o)=>{if(La(e)){pe(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ua(a,e))},ma=(e,t,a,o)=>{let d=Object.entries(e),s=d.length;for(let f=0;f{let a=e,o=t.split(ue),d=o.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,Ia=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),d=(s,f)=>{a[s]=f,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(s){let f=a[s];if(f!==void 0)return f;if((f=o[s])!==void 0)return d(s,f),f},set(s,f){s in a?a[s]=f:d(s,f)}}},ce="!",Fe=":",xa=[],De=(e,t,a,o,d)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:d}),Ca=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=d=>{let s=[],f=0,p=0,m=0,i,L=d.length;for(let g=0;gm?i-m:void 0;return De(s,A,k,U)};if(t){let d=t+Fe,s=o;o=f=>f.startsWith(d)?s(f.slice(d.length)):De(xa,!1,f,void 0,!0)}if(a){let d=o;o=s=>a({className:s,parseClassName:d})}return o},ga=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],d=[];for(let s=0;s0&&(d.sort(),o.push(...d),d=[]),o.push(f)):d.push(f)}return d.length>0&&(d.sort(),o.push(...d)),o}},ha=e=>({cache:Ia(e.cacheSize),parseClassName:Ca(e),sortModifiers:ga(e),postfixLookupClassGroupIds:Sa(e),...ra(e)}),Sa=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:d,sortModifiers:s,postfixLookupClassGroupIds:f}=t,p=[],m=e.trim().split(wa),i="";for(let L=m.length-1;L>=0;L-=1){let I=m[L],{isExternal:k,modifiers:A,hasImportantModifier:U,baseClassName:g,maybePostfixModifierPosition:h}=a(I);if(k){i=I+(i.length>0?" "+i:i);continue}let O=!!h,b;if(O){let F=g.substring(0,h);b=o(F);let r=b&&f[b]?o(g):void 0;r&&r!==b&&(b=r,O=!1)}else b=o(g);if(!b){if(!O){i=I+(i.length>0?" "+i:i);continue}if(b=o(g),!b){i=I+(i.length>0?" "+i:i);continue}O=!1}let K=A.length===0?"":A.length===1?A[0]:s(A).join(":"),V=U?K+ce:K,W=V+b;if(p.indexOf(W)>-1)continue;p.push(W);let E=d(b,O);for(let F=0;F0?" "+i:i)}return i},ba=(...e)=>{let t=0,a,o,d="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,d,s,f=m=>{let i=t.reduce((L,I)=>I(L),e());return a=ha(i),o=a.cache.get,d=a.cache.set,s=p,p(m)},p=m=>{let i=o(m);if(i)return i;let L=ka(m,a);return d(m,L),L};return s=f,(...m)=>s(ba(...m))},Aa=[],x=e=>{let t=a=>a[e]||Aa;return t.isThemeGetter=!0,t},Ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ba=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ya=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ma=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Da=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ra=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,v=e=>Ba.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),y=e=>!!e&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&c(e.slice(0,-1)),D=e=>ya.test(e),Ve=()=>!0,va=e=>Ma.test(e)&&!Fa.test(e),me=()=>!1,Ta=e=>Da.test(e),qa=e=>Ra.test(e),Ua=e=>!l(e)&&!u(e),Oa=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Ha=e=>T(e,Ne,me),l=e=>Ge.test(e),G=e=>T(e,Xe,va),Re=e=>T(e,Ka,c),Ga=e=>T(e,Ze,Ve),za=e=>T(e,Ke,me),ve=e=>T(e,We,me),Va=e=>T(e,Ee,qa),oe=e=>T(e,Je,Ta),u=e=>ze.test(e),Q=e=>z(e,Xe),Wa=e=>z(e,Ke),Te=e=>z(e,We),Ea=e=>z(e,Ne),Na=e=>z(e,Ee),le=e=>z(e,Je,!0),Xa=e=>z(e,Ze,!0),T=(e,t,a)=>{let o=Ge.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},z=(e,t,a=!1)=>{let o=ze.exec(e);return o?o[1]?t(o[1]):a:!1},We=e=>e==="position"||e==="percentage",Ee=e=>e==="image"||e==="url",Ne=e=>e==="length"||e==="size"||e==="bg-size",Xe=e=>e==="length",Ka=e=>e==="number",Ke=e=>e==="family-name",Ze=e=>e==="number"||e==="weight",Je=e=>e==="shadow";var Za=()=>{let e=x("color"),t=x("font"),a=x("text"),o=x("font-weight"),d=x("tracking"),s=x("leading"),f=x("breakpoint"),p=x("container"),m=x("spacing"),i=x("radius"),L=x("shadow"),I=x("inset-shadow"),k=x("text-shadow"),A=x("drop-shadow"),U=x("blur"),g=x("perspective"),h=x("aspect"),O=x("ease"),b=x("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...V(),u,l],E=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],r=()=>[u,l,m],P=()=>[v,"full","auto",...r()],Ie=()=>[y,"none","subgrid",u,l],xe=()=>["auto",{span:["full",y,u,l]},y,u,l],j=()=>[y,"auto",u,l],Ce=()=>["auto","min","max","fr",u,l],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...r()],H=()=>[v,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...r()],re=()=>[v,"screen","full","dvw","lvw","svw","min","max","fit",...r()],se=()=>[v,"screen","full","lh","dvh","lvh","svh","min","max","fit",...r()],n=()=>[e,u,l],ge=()=>[...V(),Te,ve,{position:[u,l]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Ea,Ha,{size:[u,l]}],fe=()=>[ne,Q,G],S=()=>["","none","full",i,u,l],w=()=>["",c,Q,G],_=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[c,ne,Te,ve],ke=()=>["","none",U,u,l],Y=()=>["none",c,u,l],$=()=>["none",c,u,l],ie=()=>[c,u,l],ee=()=>[v,"full",...r()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[Ve],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[Ua],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",c],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",v,l,u,h]}],container:["container"],"container-type":[{"@container":["","normal","size",u,l]}],"container-named":[Oa],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[y,"auto",u,l]}],basis:[{basis:[v,"full","auto",p,...r()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,v,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[y,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Ie()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":Ie()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ce()}],"auto-rows":[{"auto-rows":Ce()}],gap:[{gap:r()}],"gap-x":[{"gap-x":r()}],"gap-y":[{"gap-y":r()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:r()}],px:[{px:r()}],py:[{py:r()}],ps:[{ps:r()}],pe:[{pe:r()}],pbs:[{pbs:r()}],pbe:[{pbe:r()}],pt:[{pt:r()}],pr:[{pr:r()}],pb:[{pb:r()}],pl:[{pl:r()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":r()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":r()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[p,"screen",...H()]}],"min-w":[{"min-w":[p,"screen","none",...H()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,Q,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Xa,Ga]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ne,l]}],"font-family":[{font:[Wa,za,t]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,u,l]}],"line-clamp":[{"line-clamp":[c,"none",u,Re]}],leading:[{leading:[s,...r()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,G]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[c,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:r()}],"tab-size":[{tab:[y,u,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},y,u,l],radial:["",u,l],conic:[y,u,l]},Na,Va]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-bs":[{"border-bs":w()}],"border-w-be":[{"border-be":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,Q,G]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,le,oe]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",I,le,oe]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[c,G]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",k,le,oe]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[c]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[c]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:ke()}],brightness:[{brightness:[c,u,l]}],contrast:[{contrast:[c,u,l]}],"drop-shadow":[{"drop-shadow":["","none",A,le,oe]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",c,u,l]}],"hue-rotate":[{"hue-rotate":[c,u,l]}],invert:[{invert:["",c,u,l]}],saturate:[{saturate:[c,u,l]}],sepia:[{sepia:["",c,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[c,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[c,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",c,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c,u,l]}],"backdrop-invert":[{"backdrop-invert":["",c,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[c,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[c,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",c,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":r()}],"border-spacing-x":[{"border-spacing-x":r()}],"border-spacing-y":[{"border-spacing-y":r()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[c,"initial",u,l]}],ease:[{ease:["linear","initial",O,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",b,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,u,l]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[y,u,l]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":r()}],"scroll-mx":[{"scroll-mx":r()}],"scroll-my":[{"scroll-my":r()}],"scroll-ms":[{"scroll-ms":r()}],"scroll-me":[{"scroll-me":r()}],"scroll-mbs":[{"scroll-mbs":r()}],"scroll-mbe":[{"scroll-mbe":r()}],"scroll-mt":[{"scroll-mt":r()}],"scroll-mr":[{"scroll-mr":r()}],"scroll-mb":[{"scroll-mb":r()}],"scroll-ml":[{"scroll-ml":r()}],"scroll-p":[{"scroll-p":r()}],"scroll-px":[{"scroll-px":r()}],"scroll-py":[{"scroll-py":r()}],"scroll-ps":[{"scroll-ps":r()}],"scroll-pe":[{"scroll-pe":r()}],"scroll-pbs":[{"scroll-pbs":r()}],"scroll-pbe":[{"scroll-pbe":r()}],"scroll-pt":[{"scroll-pt":r()}],"scroll-pr":[{"scroll-pr":r()}],"scroll-pb":[{"scroll-pb":r()}],"scroll-pl":[{"scroll-pl":r()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,l]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[c,Q,G,Re]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Qe=Pa(Za);function q(...e){return Qe(te(e))}var je=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_e=te,Ye=(e,t)=>a=>{var o;if(t?.variants==null)return _e(e,a?.class,a?.className);let{variants:d,defaultVariants:s}=t,f=Object.keys(d).map(i=>{let L=a?.[i],I=s?.[i];if(L===null)return null;let k=je(L)||je(I);return d[i][k]}),p=a&&Object.entries(a).reduce((i,L)=>{let[I,k]=L;return k===void 0||(i[I]=k),i},{}),m=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((i,L)=>{let{class:I,className:k,...A}=L;return Object.entries(A).every(U=>{let[g,h]=U;return Array.isArray(h)?h.includes({...s,...p}[g]):{...s,...p}[g]===h})?[...i,I,k]:i},[]);return _e(e,f,m,a?.class,a?.className)};import{jsx as bt}from"react/jsx-runtime";var $e=Ye("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});import{jsx as M,jsxs as Le}from"react/jsx-runtime";function Mt({className:e,...t}){return M("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:q("mx-auto flex w-full justify-center",e),...t})}function Ft({className:e,...t}){return M("ul",{"data-slot":"pagination-content",className:q("flex flex-row items-center gap-1",e),...t})}function Dt({...e}){return M("li",{"data-slot":"pagination-item",...e})}function ea({className:e,isActive:t,size:a="icon",...o}){return M("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:q($e({variant:t?"outline":"ghost",size:a}),e),...o})}function Rt({className:e,...t}){return Le(ea,{"aria-label":"Go to previous page",size:"default",className:q("gap-1 px-2.5 sm:pl-2.5",e),...t,children:[M(Z,{}),M("span",{className:"hidden sm:block",children:"Previous"})]})}function vt({className:e,...t}){return Le(ea,{"aria-label":"Go to next page",size:"default",className:q("gap-1 px-2.5 sm:pr-2.5",e),...t,children:[M("span",{className:"hidden sm:block",children:"Next"}),M(J,{})]})}function Tt({className:e,...t}){return Le("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:q("flex size-9 items-center justify-center",e),...t,children:[M(R,{className:"size-4"}),M("span",{className:"sr-only",children:"More pages"})]})}export{Mt as Pagination,Ft as PaginationContent,Tt as PaginationEllipsis,Dt as PaginationItem,ea as PaginationLink,vt as PaginationNext,Rt as PaginationPrevious}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-left.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-right.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/ellipsis.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:653d2e9e7a2882a19947eb9b792e0921c1efbebf67bfabbdfc8a609711ee0492 +size 34104 diff --git a/b/0585b8f603c192aa7f2808b562d81a636cf7ef163f58372e4b64b5fa53c10271 b/b/0585b8f603c192aa7f2808b562d81a636cf7ef163f58372e4b64b5fa53c10271 index 5b4a31ae66ffbcceefee21571650dcf9e5923712..b9330c27ad8505d12b9b5f3b141b78e4eea313c9 100644 --- a/b/0585b8f603c192aa7f2808b562d81a636cf7ef163f58372e4b64b5fa53c10271 +++ b/b/0585b8f603c192aa7f2808b562d81a636cf7ef163f58372e4b64b5fa53c10271 @@ -1,214 +1,3 @@ -"use client" - -import * as React from "react" - -import { cn } from "@/lib/utils" - -export default function Component() { - return ( -
-
-
- Label -
- - - - - - - - - - - -
-
-
- Name -
- - - - - - - - - - - -
-
- -
-
-
- Indicator -
- - - - - - - - - - - -
-
- ) -} - -function TooltipDemo({ - indicator = "dot", - label, - payload, - hideLabel, - hideIndicator, - className, -}: { - label: string - hideLabel?: boolean - hideIndicator?: boolean - indicator?: "line" | "dot" | "dashed" - payload: { - name: string - value: number - fill: string - }[] - nameKey?: string - labelKey?: string -} & React.ComponentProps<"div">) { - const tooltipLabel = hideLabel ? null : ( -
{label}
- ) - - if (!payload?.length) { - return null - } - - const nestLabel = payload.length === 1 && indicator !== "dot" - - return ( -
- {!nestLabel ? tooltipLabel : null} -
- {payload.map((item, index) => { - const indicatorColor = item.fill - - return ( -
svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", - indicator === "dot" && "items-center" - )} - > - <> - {!hideIndicator && ( -
- )} -
-
- {nestLabel ? tooltipLabel : null} - {item.name} -
- - {item.value.toLocaleString()} - -
- -
- ) - })} -
-
- ) -} +version https://git-lfs.github.com/spec/v1 +oid sha256:5f5feba3eed8eb9682ea5d60c03e583883f59ea6e62c2b145cbf0d27a4f87cce +size 8110 diff --git a/b/05909d3d141555a0663cac4be63b7faae7e6c78bb95a9c1a74950e3b672b59dc b/b/05909d3d141555a0663cac4be63b7faae7e6c78bb95a9c1a74950e3b672b59dc index 9fa8fff3d0738495f107cfff91eb533425beaded..c410d11437f9c703fe7715fd82d7392f294ea692 100644 --- a/b/05909d3d141555a0663cac4be63b7faae7e6c78bb95a9c1a74950e3b672b59dc +++ b/b/05909d3d141555a0663cac4be63b7faae7e6c78bb95a9c1a74950e3b672b59dc @@ -1,146 +1,3 @@ - - -forge gpu — full layer orchestration -
loading…
- +version https://git-lfs.github.com/spec/v1 +oid sha256:cb1d53de7a031931391332e6df115095005bf92055da9c82514c3587dbb148b5 +size 9405 diff --git a/b/059c84413a6e6c685bb8d29596e9994370f2f86316172ab9b619fe0b2327e7e1 b/b/059c84413a6e6c685bb8d29596e9994370f2f86316172ab9b619fe0b2327e7e1 index 82eb990606586cf0be4cd53cd1b0de7868edecca..9b7649c50e90ca6fa36ed1d33d83acad619148b1 100644 --- a/b/059c84413a6e6c685bb8d29596e9994370f2f86316172ab9b619fe0b2327e7e1 +++ b/b/059c84413a6e6c685bb8d29596e9994370f2f86316172ab9b619fe0b2327e7e1 @@ -1,51 +1,3 @@ -var na=Object.defineProperty;var pa=(e,a)=>{for(var t in a)na(e,t,{get:a[t],enumerable:!0})};import*as ee from"react";var ma=ee.forwardRef(function({href:a,replace:t,scroll:o,prefetch:l,locale:s,shallow:r,passHref:n,legacyBehavior:p,children:c,...L},I){let k=typeof a=="string"?a:a&&(a.pathname||"")||"#";return ee.createElement("a",{ref:I,href:k,...L},c)}),pe=ma;import{forwardRef as Ia,createElement as xa}from"react";var Me=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ae=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as La,createElement as Fe}from"react";var ye={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var De=La(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:l="",children:s,iconNode:r,...n},p)=>Fe("svg",{ref:p,...ye,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:ae("lucide",l),...n},[...r.map(([c,L])=>Fe(c,L)),...Array.isArray(s)?s:[s]]));var Re=(e,a)=>{let t=Ia(({className:o,...l},s)=>xa(De,{ref:s,iconNode:a,className:ae(`lucide-${Me(e)}`,o),...l}));return t.displayName=`${e}`,t};var Z=Re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var oe={};pa(oe,{Root:()=>ga,Slot:()=>ga,Slottable:()=>ha,createSlot:()=>Oe,createSlottable:()=>Ge});import*as g from"react";import*as qe from"react";function Te(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function Ca(...e){return a=>{let t=!1,o=e.map(l=>{let s=Te(l,a);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let l=0;l{let{children:l,...s}=t,r=null,n=!1,p=[];Ue(l)&&typeof te=="function"&&(l=te(l._payload)),g.Children.forEach(l,k=>{if(ba(k)){n=!0;let h=k,F="child"in h.props?h.props.child:h.props.children;Ue(F)&&typeof te=="function"&&(F=te(F._payload)),r=Sa(h,F),p.push(r?.props?.children)}else p.push(k)}),r?r=g.cloneElement(r,void 0,p):!n&&g.Children.count(l)===1&&g.isValidElement(l)&&(r=l);let c=r?ka(r):void 0,L=ve(o,c);if(!r){if(l||l===0)throw new Error(n?Ma(e):Ba(e));return l}let I=wa(s,r.props??{});return r.type!==g.Fragment&&(I.ref=o?L:c),g.cloneElement(r,I)});return a.displayName=`${e}.Slot`,a}var ga=Oe("Slot"),He=Symbol.for("radix.slottable");function Ge(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=He,a}var ha=Ge("Slottable"),Sa=(e,a)=>{if("child"in e.props){let t=e.props.child;return g.isValidElement(t)?g.cloneElement(t,void 0,e.props.children(t.props.children)):null}return g.isValidElement(a)?a:null};function wa(e,a){let t={...a};for(let o in a){let l=e[o],s=a[o];/^on[A-Z]/.test(o)?l&&s?t[o]=(...n)=>{let p=s(...n);return l(...n),p}:l&&(t[o]=l):o==="style"?t[o]={...l,...s}:o==="className"&&(t[o]=[l,s].filter(Boolean).join(" "))}return{...e,...t}}function ka(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function ba(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===He}var Pa=Symbol.for("react.lazy");function Ue(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Pa&&"_payload"in e&&Aa(e._payload)}function Aa(e){return typeof e=="object"&&e!==null&&"then"in e}var Ba=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ma=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,te=g[" use ".trim().toString()];function ze(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(a=0;a{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),Je=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),ue="-",Ee=[],Da="arbitrary..",Ra=e=>{let a=qa(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Ta(r);let n=r.split(ue),p=n[0]===""&&n.length>1?1:0;return _e(n,p,a)},getConflictingClassGroupIds:(r,n)=>{if(n){let p=o[r],c=t[r];return p?c?ya(c,p):p:c||Ee}return t[r]||Ee}}},_e=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let l=e[a],s=t.nextPart.get(l);if(s){let c=_e(e,a+1,s);if(c)return c}let r=t.validators;if(r===null)return;let n=a===0?e.join(ue):e.slice(a).join(ue),p=r.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?Da+o:void 0})(),qa=e=>{let{theme:a,classGroups:t}=e;return va(t,a)},va=(e,a)=>{let t=Je();for(let o in e){let l=e[o];Ie(l,t,o,a)}return t},Ie=(e,a,t,o)=>{let l=e.length;for(let s=0;s{if(typeof e=="string"){Oa(e,a,t);return}if(typeof e=="function"){Ha(e,a,t,o);return}Ga(e,a,t,o)},Oa=(e,a,t)=>{let o=e===""?a:Qe(a,e);o.classGroupId=t},Ha=(e,a,t,o)=>{if(za(e)){Ie(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(Fa(t,e))},Ga=(e,a,t,o)=>{let l=Object.entries(e),s=l.length;for(let r=0;r{let t=e,o=a.split(ue),l=o.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,Va=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),l=(s,r)=>{t[s]=r,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(s){let r=t[s];if(r!==void 0)return r;if((r=o[s])!==void 0)return l(s,r),r},set(s,r){s in t?t[s]=r:l(s,r)}}},Le="!",We=":",Ea=[],Ne=(e,a,t,o,l)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:l}),Wa=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=l=>{let s=[],r=0,n=0,p=0,c,L=l.length;for(let b=0;bp?c-p:void 0;return Ne(s,h,k,F)};if(a){let l=a+We,s=o;o=r=>r.startsWith(l)?s(r.slice(l.length)):Ne(Ea,!1,r,void 0,!0)}if(t){let l=o;o=s=>t({className:s,parseClassName:l})}return o},Na=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],l=[];for(let s=0;s0&&(l.sort(),o.push(...l),l=[]),o.push(r)):l.push(r)}return l.length>0&&(l.sort(),o.push(...l)),o}},Xa=e=>({cache:Va(e.cacheSize),parseClassName:Wa(e),sortModifiers:Na(e),postfixLookupClassGroupIds:Ka(e),...Ra(e)}),Ka=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:s,postfixLookupClassGroupIds:r}=a,n=[],p=e.trim().split(Za),c="";for(let L=p.length-1;L>=0;L-=1){let I=p[L],{isExternal:k,modifiers:h,hasImportantModifier:F,baseClassName:b,maybePostfixModifierPosition:B}=t(I);if(k){c=I+(c.length>0?" "+c:c);continue}let U=!!B,P;if(U){let R=b.substring(0,B);P=o(R);let f=P&&r[P]?o(b):void 0;f&&f!==P&&(P=f,U=!1)}else P=o(b);if(!P){if(!U){c=I+(c.length>0?" "+c:c);continue}if(P=o(b),!P){c=I+(c.length>0?" "+c:c);continue}U=!1}let K=h.length===0?"":h.length===1?h[0]:s(h).join(":"),V=F?K+Le:K,E=V+P;if(n.indexOf(E)>-1)continue;n.push(E);let W=l(P,U);for(let R=0;R0?" "+c:c)}return c},_a=(...e)=>{let a=0,t,o,l="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,l,s,r=p=>{let c=a.reduce((L,I)=>I(L),e());return t=Xa(c),o=t.cache.get,l=t.cache.set,s=n,n(p)},n=p=>{let c=o(p);if(c)return c;let L=Ja(p,t);return l(p,L),L};return s=r,(...p)=>s(_a(...p))},ja=[],x=e=>{let a=t=>t[e]||ja;return a.isThemeGetter=!0,a},$e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ye=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$a=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ya=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,at=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>$a.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&m(e.slice(0,-1)),T=e=>Ya.test(e),ea=()=>!0,lt=e=>et.test(e)&&!at.test(e),xe=()=>!1,rt=e=>tt.test(e),ut=e=>ot.test(e),dt=e=>!u(e)&&!d(e),st=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ft=e=>v(e,oa,xe),u=e=>$e.test(e),H=e=>v(e,la,lt),Xe=e=>v(e,xt,m),it=e=>v(e,ua,ea),ct=e=>v(e,ra,xe),Ke=e=>v(e,aa,xe),nt=e=>v(e,ta,ut),le=e=>v(e,da,rt),d=e=>Ye.test(e),J=e=>G(e,la),pt=e=>G(e,ra),Ze=e=>G(e,aa),mt=e=>G(e,oa),Lt=e=>G(e,ta),re=e=>G(e,da,!0),It=e=>G(e,ua,!0),v=(e,a,t)=>{let o=$e.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},G=(e,a,t=!1)=>{let o=Ye.exec(e);return o?o[1]?a(o[1]):t:!1},aa=e=>e==="position"||e==="percentage",ta=e=>e==="image"||e==="url",oa=e=>e==="length"||e==="size"||e==="bg-size",la=e=>e==="length",xt=e=>e==="number",ra=e=>e==="family-name",ua=e=>e==="number"||e==="weight",da=e=>e==="shadow";var Ct=()=>{let e=x("color"),a=x("font"),t=x("text"),o=x("font-weight"),l=x("tracking"),s=x("leading"),r=x("breakpoint"),n=x("container"),p=x("spacing"),c=x("radius"),L=x("shadow"),I=x("inset-shadow"),k=x("text-shadow"),h=x("drop-shadow"),F=x("blur"),b=x("perspective"),B=x("aspect"),U=x("ease"),P=x("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...V(),d,u],W=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],f=()=>[d,u,p],A=()=>[q,"full","auto",...f()],he=()=>[D,"none","subgrid",d,u],Se=()=>["auto",{span:["full",D,d,u]},D,d,u],_=()=>[D,"auto",d,u],we=()=>["auto","min","max","fr",d,u],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...f()],O=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],fe=()=>[q,"screen","full","dvw","lvw","svw","min","max","fit",...f()],ie=()=>[q,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],i=()=>[e,d,u],ke=()=>[...V(),Ze,Ke,{position:[d,u]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",mt,ft,{size:[d,u]}],ce=()=>[me,J,H],S=()=>["","none","full",c,d,u],w=()=>["",m,J,H],Q=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[m,me,Ze,Ke],Be=()=>["","none",F,d,u],j=()=>["none",m,d,u],$=()=>["none",m,d,u],ne=()=>[m,d,u],Y=()=>[q,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[ea],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[dt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",m],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,u,d,B]}],container:["container"],"container-type":[{"@container":["","normal","size",d,u]}],"container-named":[st],columns:[{columns:[m,u,d,n]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",d,u]}],basis:[{basis:[q,"full","auto",n,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,q,"auto","initial","none",u]}],grow:[{grow:["",m,d,u]}],shrink:[{shrink:["",m,d,u]}],order:[{order:[D,"first","last","none",d,u]}],"grid-cols":[{"grid-cols":he()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":he()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[n,"screen",...O()]}],"min-w":[{"min-w":[n,"screen","none",...O()]}],"max-w":[{"max-w":[n,"screen","none","prose",{screen:[r]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",t,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,It,it]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",me,u]}],"font-family":[{font:[pt,ct,a]}],"font-features":[{"font-features":[u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,d,u]}],"line-clamp":[{"line-clamp":[m,"none",d,Xe]}],leading:[{leading:[s,...f()]}],"list-image":[{"list-image":["none",d,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",d,H]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[m,"auto",d,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[D,d,u]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,d,u],radial:["",d,u],conic:[D,d,u]},Lt,nt]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-bs":[{"border-bs":w()}],"border-w-be":[{"border-be":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-bs":[{"border-bs":i()}],"border-color-be":[{"border-be":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,d,u]}],"outline-w":[{outline:["",m,J,H]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",L,re,le]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",I,re,le]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[m,H]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",k,re,le]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[m,d,u]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[d,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,u]}],filter:[{filter:["","none",d,u]}],blur:[{blur:Be()}],brightness:[{brightness:[m,d,u]}],contrast:[{contrast:[m,d,u]}],"drop-shadow":[{"drop-shadow":["","none",h,re,le]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",m,d,u]}],"hue-rotate":[{"hue-rotate":[m,d,u]}],invert:[{invert:["",m,d,u]}],saturate:[{saturate:[m,d,u]}],sepia:[{sepia:["",m,d,u]}],"backdrop-filter":[{"backdrop-filter":["","none",d,u]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[m,d,u]}],"backdrop-contrast":[{"backdrop-contrast":[m,d,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,d,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,d,u]}],"backdrop-invert":[{"backdrop-invert":["",m,d,u]}],"backdrop-opacity":[{"backdrop-opacity":[m,d,u]}],"backdrop-saturate":[{"backdrop-saturate":[m,d,u]}],"backdrop-sepia":[{"backdrop-sepia":["",m,d,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",d,u]}],ease:[{ease:["linear","initial",U,d,u]}],delay:[{delay:[m,d,u]}],animate:[{animate:["none",P,d,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,d,u]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[d,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],zoom:[{zoom:[D,d,u]}],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":i()}],"scrollbar-track-color":[{"scrollbar-track":i()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,u]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[m,J,H,Xe]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var sa=Qa(Ct);function X(...e){return sa(Ve(e))}import{jsx as z,jsxs as Qt}from"react/jsx-runtime";function fa({...e}){return z("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function ia({className:e,...a}){return z("ol",{"data-slot":"breadcrumb-list",className:X("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5",e),...a})}function de({className:e,...a}){return z("li",{"data-slot":"breadcrumb-item",className:X("inline-flex items-center gap-1.5",e),...a})}function Ce({asChild:e,className:a,...t}){let o=e?oe.Root:"a";return z(o,{"data-slot":"breadcrumb-link",className:X("transition-colors hover:text-foreground",a),...t})}function ca({className:e,...a}){return z("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:X("font-normal text-foreground",e),...a})}function ge({children:e,className:a,...t}){return z("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:X("[&>svg]:size-3.5",a),...t,children:e??z(Z,{})})}import{jsx as y,jsxs as ht}from"react/jsx-runtime";function gt(){return y(fa,{children:ht(ia,{children:[y(de,{children:y(Ce,{asChild:!0,children:y(pe,{href:"/",children:"Home"})})}),y(ge,{}),y(de,{children:y(Ce,{asChild:!0,children:y(pe,{href:"/components",children:"Components"})})}),y(ge,{}),y(de,{children:y(ca,{children:"Breadcrumb"})})]})})}export{gt as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-right.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2ba6292bd04eade6ba53e08f51a0613cffaf2b95c494b9476638f499900ac43 +size 34096 diff --git a/b/05b278d12b7101c796f4377aba28fc98899b9ec28dbad33469708e71e8fcf6e5 b/b/05b278d12b7101c796f4377aba28fc98899b9ec28dbad33469708e71e8fcf6e5 index dd4b1fd04d1c5c9c8655237fddc8fd57a04b0516..9363118ed28cec7e8694d8ae4563d577287da152 100644 --- a/b/05b278d12b7101c796f4377aba28fc98899b9ec28dbad33469708e71e8fcf6e5 +++ b/b/05b278d12b7101c796f4377aba28fc98899b9ec28dbad33469708e71e8fcf6e5 @@ -1 +1,3 @@ -{"vocab": 248320, "eos": [248046, 248044], "ctx": true, "max_len": 256, "d": 320, "r": 32, "layers": 5} \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:3ab95e3a6ef1b6508583cfbc1cbe5e901152aa928f04c9f3dc4e04636d7f0e16 +size 103 diff --git a/b/05d5d96082c0baec31176021759fcadb2645f11a124f9e0c03441cf38bd691d4 b/b/05d5d96082c0baec31176021759fcadb2645f11a124f9e0c03441cf38bd691d4 index cecc27c39e0387153d7a99b7699eebbdbd84d6a6..601a730590c3a2f37a89ab82b9260a8ca617f732 100644 --- a/b/05d5d96082c0baec31176021759fcadb2645f11a124f9e0c03441cf38bd691d4 +++ b/b/05d5d96082c0baec31176021759fcadb2645f11a124f9e0c03441cf38bd691d4 @@ -1,109 +1,3 @@ -// Browser κ-DISK reader — the in-browser realization of holospaces' KappaDisk -// (crates/holospaces/src/disk.rs) for qvac. The model's weights live in the -// substrate as κ-addressed sectors (KappaStore = the served .qvf, addressed by -// sector κ). Every sector read is RE-DERIVED against its κ-label -// (sha256(bytes)===κ → verify-by-re-derivation, the substrate law) and kept in a -// content-keyed read-through cache (Law L3: RAM is a bounded cache of the -// canonical store). The model is one verified, teleportable `image_kappa`. -// -// Exposes rr(off,len) over the virtual disk image, so qvac's loader (header → -// tokenizer, singles, per-layer frames, MoE experts) reads through the substrate -// unchanged. The peer realizes the matmuls on its GPU. - -const G = (typeof window !== "undefined" ? window : globalThis); -G.__kdcache = G.__kdcache || new Map(); // κ → Uint8Array (content-keyed, shared across loads/peers) -G.__kdinflight = G.__kdinflight || new Map(); // κ → Promise -let CACHE_SECTORS = 1024; // bound (KappaDisk CACHE_CAPACITY); LRU. ~1GB @1MB — kept small so kd-cache + engine expert-cache + embed stay under the renderer's ~4GB cap -if (typeof window !== "undefined" && window.__kdCacheSectors) CACHE_SECTORS = window.__kdCacheSectors; - -// Bound concurrent source fetches — HTTP/1.0 opens a connection per request, so -// too many at once exhausts the browser's per-host pool ("Failed to fetch"). A -// small gate keeps us under it. (With keep-alive or multi-source this would widen.) -const GATE_MAX = 12; // global concurrent fetches, spread across source origins -G.__kdgate = G.__kdgate || { active: 0, q: [] }; -function acquire() { const g = G.__kdgate; if (g.active < GATE_MAX) { g.active++; return Promise.resolve(); } return new Promise((res) => g.q.push(res)).then(() => { g.active++; }); } -function release() { const g = G.__kdgate; g.active--; const n = g.q.shift(); if (n) n(); } - -const hex = (buf) => { const b = new Uint8Array(buf); let s = ""; for (let i = 0; i < b.length; i++) s += b[i].toString(16).padStart(2, "0"); return s; }; - -// A MULTI-SOURCE κ-disk. `index` = the .kdisk.json; `sources` = data-file URLs -// (different origins: local disk, LAN peers, CDN). Because every sector is -// verified by re-derivation, sources are never trusted — a wrong/corrupt/missing -// byte stream is rejected and another source is tried. Sectors are round-robined -// across sources so multiple links carry the load in parallel (bandwidth -// aggregation) AND a wedged/slow source just fails over to the next (resilience). -export function makeKDisk({ index, sources, dataUrl, verify = true }) { - const SS = index.sectorSize, sectors = index.sectors, fileSize = index.fileSize; - const cache = G.__kdcache, inflight = G.__kdinflight; - const SRC = (sources && sources.length) ? sources : [dataUrl]; - let fetched = 0, verified = 0, hits = 0; - const perSource = SRC.map(() => 0); - - // ONE coalesced multi-source HTTP fetch of [absOff, absOff+length) — big base in - // the URL (small Range header, dodging Chromium's large-offset hang), rotating - // sources for aggregation, patient failover (κ-verified ⇒ retry is always safe). - const evict = (k) => { while (cache.size >= CACHE_SECTORS && !cache.has(k)) { const o = cache.keys().next().value; cache.delete(o); } }; - let reqId = 0; // per-request source rotation → spread load across origins (aggregation) - async function fetchRange(absOff, length) { - const base = reqId++; - let bytes = null, lastErr; - for (let attempt = 0; attempt < 20 && !bytes; attempt++) { - const s = (base + attempt) % SRC.length; - try { - if (attempt) await new Promise((res) => setTimeout(res, Math.min(1500, 40 * Math.pow(1.6, attempt)))); - await acquire(); - try { - const r = await fetch(SRC[s] + "?base=" + absOff, { headers: { Range: `bytes=0-${length - 1}` } }); - if (!r.ok && r.status !== 206) throw new Error("HTTP " + r.status); - bytes = new Uint8Array(await r.arrayBuffer()); - } finally { release(); } - if (bytes.length !== length) { lastErr = new Error("short read"); bytes = null; continue; } - perSource[s]++; - } catch (e) { lastErr = e; } - } - if (!bytes) throw new Error(`κ-disk range ${absOff}+${length} unresolvable across ${SRC.length} sources: ${lastErr}`); - fetched++; - return bytes; - } - - return { - imageKappa: index.imageKappa, - qvf: index.qvf, - sources: SRC, - stats: () => ({ fetched, verified, hits, cached: cache.size, perSource, sources: SRC.length, distinctSectors: index.distinctSectors, sectorCount: index.sectorCount }), - // read [off, off+len): assemble from the content cache where possible; for the - // uncached part, ONE coalesced fetch covering the whole range, then verify + - // cache each FULL sector it spans (still content-addressed: each κ re-derived). - rr: async (off, len) => { - const out = new Uint8Array(len); - const f0 = Math.floor(off / SS), f1 = Math.floor((off + len - 1) / SS); - let allCached = true; - for (let si = f0; si <= f1; si++) if (!cache.has(sectors[si])) { allCached = false; break; } - if (allCached) { // 0 fetches — pure cache hit - let done = 0, si = f0, within = off - si * SS; - while (done < len) { const sec = cache.get(sectors[si]); cache.delete(sectors[si]); cache.set(sectors[si], sec); const take = Math.min(sec.length - within, len - done); out.set(sec.subarray(within, within + take), done); done += take; si++; within = 0; } - hits++; return out; - } - const raw = await fetchRange(off, len); // 1 HTTP fetch for the whole range - out.set(raw, 0); - for (let si = f0; si <= f1; si++) { // verify + cache the FULL sectors covered - const sStart = si * SS, sEnd = Math.min(sStart + SS, fileSize); - if (sStart >= off && sEnd <= off + len && !cache.has(sectors[si])) { - const sub = raw.subarray(sStart - off, sEnd - off); - if (verify) { const got = index.axis + ":" + hex(await crypto.subtle.digest("SHA-256", sub)); if (got !== sectors[si]) throw new Error(`κ MISMATCH sector ${si}`); verified++; } - evict(sectors[si]); cache.set(sectors[si], new Uint8Array(sub)); - } - } - return out; - }, - // verify the disk INDEX itself re-derives to image_kappa (KappaDisk::image_kappa) - verifyImage: async () => { - const enc = new TextEncoder().encode(index.imageIri || "https://uor.foundation/holospaces/realization/kappa-disk"); - const parts = [enc, new Uint8Array([0])]; - for (const k of sectors) { const h = k.split(":")[1]; const b = new Uint8Array(h.length / 2); for (let i = 0; i < b.length; i++) b[i] = parseInt(h.substr(i * 2, 2), 16); parts.push(b); } - let total = 0; for (const p of parts) total += p.length; const all = new Uint8Array(total); let o = 0; for (const p of parts) { all.set(p, o); o += p.length; } - const got = index.axis + ":" + hex(await crypto.subtle.digest("SHA-256", all)); - return { ok: got === index.imageKappa, got, expected: index.imageKappa }; - }, - }; -} +version https://git-lfs.github.com/spec/v1 +oid sha256:a83e882c2cbb49278a239dc70df4026841e9a5185c84871e9f049b6a45890176 +size 7242 diff --git a/b/05ddcab3177064eb8198a3edcdf993cfff6e6386791fe60d807b00e5a854dacb b/b/05ddcab3177064eb8198a3edcdf993cfff6e6386791fe60d807b00e5a854dacb index 04ee6cee29510c6dcb9af3ac17087a92f506984f..7525e26d26540f2a239f6702e766f3bd28c33728 100644 --- a/b/05ddcab3177064eb8198a3edcdf993cfff6e6386791fe60d807b00e5a854dacb +++ b/b/05ddcab3177064eb8198a3edcdf993cfff6e6386791fe60d807b00e5a854dacb @@ -1,7 +1,3 @@ -import toast from './object.js'; -import { addPrefix } from '../../functions/addPrefix.js'; - -export default ({ addComponents, prefix = '' }) => { - const prefixedtoast = addPrefix(toast, prefix); - addComponents({ ...prefixedtoast }); -}; +version https://git-lfs.github.com/spec/v1 +oid sha256:1dfa72e4a329ca66dc27d86783de874858bec36b056df5e070662266ed5e84ee +size 237 diff --git a/b/05e90acb133117e2237b9bca7293db457928e119803758a9cadfcbffbbfd8484 b/b/05e90acb133117e2237b9bca7293db457928e119803758a9cadfcbffbbfd8484 index 43d029f145c30319ee764816121105302494c249..5d052a25663dcf6b474c5114ed9a536990e12c6a 100644 --- a/b/05e90acb133117e2237b9bca7293db457928e119803758a9cadfcbffbbfd8484 +++ b/b/05e90acb133117e2237b9bca7293db457928e119803758a9cadfcbffbbfd8484 @@ -1 +1,3 @@ -export default {".status":{"@layer daisyui.l1.l2.l3":{"display":"inline-block","aspect-ratio":"1 / 1","width":"calc(0.25rem * 2)","height":"calc(0.25rem * 2)","border-radius":"var(--radius-selector)","background-color":"color-mix(in oklab, var(--color-base-content) 20%, transparent)","background-position":"center","background-repeat":"no-repeat","vertical-align":"middle","color":"color-mix(in oklab, var(--color-black) 30%, transparent)","background-image":"radial-gradient( circle at 35% 30%, oklch(1 0 0 / calc(var(--depth) * 0.5)), #0000 )","box-shadow":"0 2px 3px -1px color-mix(in oklab, currentColor calc(var(--depth) * 100%), #0000)"}},".status-primary":{"@layer daisyui.l1.l2":{"background-color":"var(--color-primary)","color":"var(--color-primary)"}},".status-secondary":{"@layer daisyui.l1.l2":{"background-color":"var(--color-secondary)","color":"var(--color-secondary)"}},".status-accent":{"@layer daisyui.l1.l2":{"background-color":"var(--color-accent)","color":"var(--color-accent)"}},".status-neutral":{"@layer daisyui.l1.l2":{"background-color":"var(--color-neutral)","color":"var(--color-neutral)"}},".status-info":{"@layer daisyui.l1.l2":{"background-color":"var(--color-info)","color":"var(--color-info)"}},".status-success":{"@layer daisyui.l1.l2":{"background-color":"var(--color-success)","color":"var(--color-success)"}},".status-warning":{"@layer daisyui.l1.l2":{"background-color":"var(--color-warning)","color":"var(--color-warning)"}},".status-error":{"@layer daisyui.l1.l2":{"background-color":"var(--color-error)","color":"var(--color-error)"}},".status-xs":{"@layer daisyui.l1.l2":{"width":"calc(0.25rem * 0.5)","height":"calc(0.25rem * 0.5)"}},".status-sm":{"@layer daisyui.l1.l2":{"width":"calc(0.25rem * 1)","height":"calc(0.25rem * 1)"}},".status-md":{"@layer daisyui.l1.l2":{"width":"calc(0.25rem * 2)","height":"calc(0.25rem * 2)"}},".status-lg":{"@layer daisyui.l1.l2":{"width":"calc(0.25rem * 3)","height":"calc(0.25rem * 3)"}},".status-xl":{"@layer daisyui.l1.l2":{"width":"calc(0.25rem * 4)","height":"calc(0.25rem * 4)"}}}; \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:4e99a6ae60da25eb8ffc6d1bbbfce70489a89b1fc0eac1493b4192830d522eff +size 2068 diff --git a/b/0604e56c6852fd527fbf6151eefcbeba39ba0847a8ed15fe338c6db6b946358a b/b/0604e56c6852fd527fbf6151eefcbeba39ba0847a8ed15fe338c6db6b946358a index c6fb0a7ab5fc794e8ec51f2dbaba69f3e3983df8..4630e124309a32be293ebe24840c942637202f7f 100644 --- a/b/0604e56c6852fd527fbf6151eefcbeba39ba0847a8ed15fe338c6db6b946358a +++ b/b/0604e56c6852fd527fbf6151eefcbeba39ba0847a8ed15fe338c6db6b946358a @@ -1,99 +1,3 @@ -var es=Object.defineProperty;var st=(e,a)=>{for(var t in a)es(e,t,{get:a[t],enumerable:!0})};import{forwardRef as ts,createElement as os}from"react";var oo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wa=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as as,createElement as lo}from"react";var ro={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var so=as(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},d)=>lo("svg",{ref:d,...ro,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:wa("lucide",r),...u},[...s.map(([n,f])=>lo(n,f)),...Array.isArray(l)?l:[l]]));var va=(e,a)=>{let t=ts(({className:o,...r},l)=>os(so,{ref:l,iconNode:a,className:wa(`lucide-${oo(e)}`,o),...r}));return t.displayName=`${e}`,t};var ua=va("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);var na=va("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);function uo(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;atypeof e=="boolean"?`${e}`:e===0?"0":e,fo=ba,ya=(e,a)=>t=>{var o;if(a?.variants==null)return fo(e,t?.class,t?.className);let{variants:r,defaultVariants:l}=a,s=Object.keys(r).map(n=>{let f=t?.[n],i=l?.[n];if(f===null)return null;let c=no(f)||no(i);return r[n][c]}),u=t&&Object.entries(t).reduce((n,f)=>{let[i,c]=f;return c===void 0||(n[i]=c),n},{}),d=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((n,f)=>{let{class:i,className:c,...p}=f;return Object.entries(p).every(h=>{let[m,x]=h;return Array.isArray(x)?x.includes({...l,...u}[m]):{...l,...u}[m]===x})?[...n,i,c]:n},[]);return fo(e,s,d,t?.class,t?.className)};import*as xo from"react";import*as Lo from"react-dom";var Ra={};st(Ra,{Root:()=>ls,Slot:()=>ls,Slottable:()=>ss,createSlot:()=>je,createSlottable:()=>ho});import*as $ from"react";import*as co from"react";function io(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function rs(...e){return a=>{let t=!1,o=e.map(r=>{let l=io(r,a);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let r=0;r{let{children:r,...l}=t,s=null,u=!1,d=[];po(r)&&typeof Pa=="function"&&(r=Pa(r._payload)),$.Children.forEach(r,c=>{if(fs(c)){u=!0;let p=c,h="child"in p.props?p.props.child:p.props.children;po(h)&&typeof Pa=="function"&&(h=Pa(h._payload)),s=us(p,h),d.push(s?.props?.children)}else d.push(c)}),s?s=$.cloneElement(s,void 0,d):!u&&$.Children.count(r)===1&&$.isValidElement(r)&&(s=r);let n=s?ds(s):void 0,f=re(o,n);if(!s){if(r||r===0)throw new Error(u?ms(e):ps(e));return r}let i=ns(l,s.props??{});return s.type!==$.Fragment&&(i.ref=o?f:n),$.cloneElement(s,i)});return a.displayName=`${e}.Slot`,a}var ls=je("Slot"),mo=Symbol.for("radix.slottable");function ho(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=mo,a}var ss=ho("Slottable"),us=(e,a)=>{if("child"in e.props){let t=e.props.child;return $.isValidElement(t)?$.cloneElement(t,void 0,e.props.children(t.props.children)):null}return $.isValidElement(a)?a:null};function ns(e,a){let t={...a};for(let o in a){let r=e[o],l=a[o];/^on[A-Z]/.test(o)?r&&l?t[o]=(...u)=>{let d=l(...u);return r(...u),d}:r&&(t[o]=r):o==="style"?t[o]={...r,...l}:o==="className"&&(t[o]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}function ds(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function fs(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mo}var is=Symbol.for("react.lazy");function po(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===is&&"_payload"in e&&cs(e._payload)}function cs(e){return typeof e=="object"&&e!==null&&"then"in e}var ps=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ms=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pa=$[" use ".trim().toString()];import{jsx as hs}from"react/jsx-runtime";var xs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=xs.reduce((e,a)=>{let t=je(`Primitive.${a}`),o=xo.forwardRef((r,l)=>{let{asChild:s,...u}=r,d=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),hs(d,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function go(e,a){e&&Lo.flushSync(()=>e.dispatchEvent(a))}import*as we from"react";import{jsx as Ls}from"react/jsx-runtime";function ka(e,a=[]){let t=[];function o(l,s){let u=we.createContext(s);u.displayName=l+"Context";let d=t.length;t=[...t,s];let n=i=>{let{scope:c,children:p,...h}=i,m=c?.[e]?.[d]||u,x=we.useMemo(()=>h,Object.values(h));return Ls(m.Provider,{value:x,children:p})};n.displayName=l+"Provider";function f(i,c){let p=c?.[e]?.[d]||u,h=we.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${i}\` must be used within \`${l}\``)}return[n,f]}let r=()=>{let l=t.map(s=>we.createContext(s));return function(u){let d=u?.[e]||l;return we.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return r.scopeName=e,[o,gs(r,...a)]}function gs(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((u,{useScope:d,scopeName:n})=>{let i=d(l)[`__scope${n}`];return{...u,...i}},{});return we.useMemo(()=>({[`__scope${a.scopeName}`]:s}),[s])}};return t.scopeName=a.scopeName,t}var Vd=!!(typeof window<"u"&&window.document&&window.document.createElement);function ce(e,a,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),t===!1||!r.defaultPrevented)return a?.(r)}}import*as le from"react";import*as Io from"react";var ee=globalThis?.document?Io.useLayoutEffect:()=>{};import*as Aa from"react";var Is=le[" useInsertionEffect ".trim().toString()]||ee;function Co({prop:e,defaultProp:a,onChange:t=()=>{},caller:o}){let[r,l,s]=Cs({defaultProp:a,onChange:t}),u=e!==void 0,d=u?e:r;{let f=le.useRef(e!==void 0);le.useEffect(()=>{let i=f.current;i!==u&&console.warn(`${o} is changing from ${i?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=u},[u,o])}let n=le.useCallback(f=>{if(u){let i=Ss(f)?f(e):f;i!==e&&s.current?.(i)}else l(f)},[u,e,l,s]);return[d,n]}function Cs({defaultProp:e,onChange:a}){let[t,o]=le.useState(e),r=le.useRef(t),l=le.useRef(a);return Is(()=>{l.current=a},[a]),le.useEffect(()=>{r.current!==t&&(l.current?.(t),r.current=t)},[t,r]),[t,o,l]}function Ss(e){return typeof e=="function"}var Kd=Symbol("RADIX:SYNC_STATE");import*as J from"react";import*as wo from"react";function ws(e,a){return wo.useReducer((t,o)=>a[t][o]??t,e)}var Da=e=>{let{present:a,children:t}=e,o=vs(a),r=typeof t=="function"?t({present:o.isPresent}):J.Children.only(t),l=bs(o.ref,ys(r));return typeof t=="function"||o.isPresent?J.cloneElement(r,{ref:l}):null};Da.displayName="Presence";function vs(e){let[a,t]=J.useState(),o=J.useRef(null),r=J.useRef(e),l=J.useRef("none"),s=e?"mounted":"unmounted",[u,d]=ws(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return J.useEffect(()=>{let n=Ma(o.current);l.current=u==="mounted"?n:"none"},[u]),ee(()=>{let n=o.current,f=r.current;if(f!==e){let c=l.current,p=Ma(n);e?d("MOUNT"):p==="none"||n?.display==="none"?d("UNMOUNT"):d(f&&c!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),ee(()=>{if(a){let n,f=a.ownerDocument.defaultView??window,i=p=>{let m=Ma(o.current).includes(CSS.escape(p.animationName));if(p.target===a&&m&&(d("ANIMATION_END"),!r.current)){let x=a.style.animationFillMode;a.style.animationFillMode="forwards",n=f.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=x)})}},c=p=>{p.target===a&&(l.current=Ma(o.current))};return a.addEventListener("animationstart",c),a.addEventListener("animationcancel",i),a.addEventListener("animationend",i),()=>{f.clearTimeout(n),a.removeEventListener("animationstart",c),a.removeEventListener("animationcancel",i),a.removeEventListener("animationend",i)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:J.useCallback(n=>{o.current=n?getComputedStyle(n):null,t(n)},[])}}function So(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function bs(...e){let a=J.useRef(e);return a.current=e,J.useCallback(t=>{let o=a.current,r=!1,l=o.map(s=>{let u=So(s,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s{}),Rs=0;function vo(e){let[a,t]=ut.useState(Ps());return ee(()=>{e||t(o=>o??String(Rs++))},[e]),e||(a?`radix-${a}`:"")}import*as H from"react";import*as Ke from"react";function pe(e){let a=Ke.useRef(e);return Ke.useEffect(()=>{a.current=e}),Ke.useMemo(()=>(...t)=>a.current?.(...t),[])}import*as bo from"react";function yo(e,a=globalThis?.document){let t=pe(e);bo.useEffect(()=>{let o=r=>{r.key==="Escape"&&t(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[t,a])}import{jsx as ko}from"react/jsx-runtime";var ks="DismissableLayer",nt="dismissableLayer.update",As="dismissableLayer.pointerDownOutside",Ms="dismissableLayer.focusOutside",Po,Ao=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=H.forwardRef((e,a)=>{let{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...d}=e,n=H.useContext(Ao),[f,i]=H.useState(null),c=f?.ownerDocument??globalThis?.document,[,p]=H.useState({}),h=re(a,S=>i(S)),m=Array.from(n.layers),[x]=[...n.layersWithOutsidePointerEventsDisabled].slice(-1),L=m.indexOf(x),I=f?m.indexOf(f):-1,w=n.layersWithOutsidePointerEventsDisabled.size>0,C=I>=L,P=Bs(S=>{let g=S.target,M=[...n.branches].some(F=>F.contains(g));!C||M||(r?.(S),s?.(S),S.defaultPrevented||u?.())},c),R=Ts(S=>{let g=S.target;[...n.branches].some(F=>F.contains(g))||(l?.(S),s?.(S),S.defaultPrevented||u?.())},c);return yo(S=>{I===n.layers.size-1&&(o?.(S),!S.defaultPrevented&&u&&(S.preventDefault(),u()))},c),H.useEffect(()=>{if(f)return t&&(n.layersWithOutsidePointerEventsDisabled.size===0&&(Po=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),n.layersWithOutsidePointerEventsDisabled.add(f)),n.layers.add(f),Ro(),()=>{t&&(n.layersWithOutsidePointerEventsDisabled.delete(f),n.layersWithOutsidePointerEventsDisabled.size===0&&(c.body.style.pointerEvents=Po))}},[f,c,t,n]),H.useEffect(()=>()=>{f&&(n.layers.delete(f),n.layersWithOutsidePointerEventsDisabled.delete(f),Ro())},[f,n]),H.useEffect(()=>{let S=()=>p({});return document.addEventListener(nt,S),()=>document.removeEventListener(nt,S)},[]),ko(Z.div,{...d,ref:h,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,R.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,P.onPointerDownCapture)})});dt.displayName=ks;var Ds="DismissableLayerBranch",Fs=H.forwardRef((e,a)=>{let t=H.useContext(Ao),o=H.useRef(null),r=re(a,o);return H.useEffect(()=>{let l=o.current;if(l)return t.branches.add(l),()=>{t.branches.delete(l)}},[t.branches]),ko(Z.div,{...e,ref:r})});Fs.displayName=Ds;function Bs(e,a=globalThis?.document){let t=pe(e),o=H.useRef(!1),r=H.useRef(()=>{});return H.useEffect(()=>{let l=u=>{if(u.target&&!o.current){let n=function(){Mo(As,t,f,{discrete:!0})};var d=n;let f={originalEvent:u};u.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=n,a.addEventListener("click",r.current,{once:!0})):n()}else a.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{a.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",l),a.removeEventListener("click",r.current)}},[a,t]),{onPointerDownCapture:()=>o.current=!0}}function Ts(e,a=globalThis?.document){let t=pe(e),o=H.useRef(!1);return H.useEffect(()=>{let r=l=>{l.target&&!o.current&&Mo(Ms,t,{originalEvent:l},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ro(){let e=new CustomEvent(nt);document.dispatchEvent(e)}function Mo(e,a,t,{discrete:o}){let r=t.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});a&&r.addEventListener(e,a,{once:!0}),o?go(r,l):r.dispatchEvent(l)}import*as se from"react";import{jsx as Os}from"react/jsx-runtime";var ft="focusScope.autoFocusOnMount",it="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},Es="FocusScope",ct=se.forwardRef((e,a)=>{let{loop:t=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[u,d]=se.useState(null),n=pe(r),f=pe(l),i=se.useRef(null),c=re(a,m=>d(m)),p=se.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;se.useEffect(()=>{if(o){let I=function(R){if(p.paused||!u)return;let S=R.target;u.contains(S)?i.current=S:Pe(i.current,{select:!0})},w=function(R){if(p.paused||!u)return;let S=R.relatedTarget;S!==null&&(u.contains(S)||Pe(i.current,{select:!0}))},C=function(R){if(document.activeElement===document.body)for(let g of R)g.removedNodes.length>0&&Pe(u)};var m=I,x=w,L=C;document.addEventListener("focusin",I),document.addEventListener("focusout",w);let P=new MutationObserver(C);return u&&P.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",w),P.disconnect()}}},[o,u,p.paused]),se.useEffect(()=>{if(u){Bo.add(p);let m=document.activeElement;if(!u.contains(m)){let L=new CustomEvent(ft,Do);u.addEventListener(ft,n),u.dispatchEvent(L),L.defaultPrevented||(qs(Gs(Oo(u)),{select:!0}),document.activeElement===m&&Pe(u))}return()=>{u.removeEventListener(ft,n),setTimeout(()=>{let L=new CustomEvent(it,Do);u.addEventListener(it,f),u.dispatchEvent(L),L.defaultPrevented||Pe(m??document.body,{select:!0}),u.removeEventListener(it,f),Bo.remove(p)},0)}}},[u,n,f,p]);let h=se.useCallback(m=>{if(!t&&!o||p.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,L=document.activeElement;if(x&&L){let I=m.currentTarget,[w,C]=Us(I);w&&C?!m.shiftKey&&L===C?(m.preventDefault(),t&&Pe(w,{select:!0})):m.shiftKey&&L===w&&(m.preventDefault(),t&&Pe(C,{select:!0})):L===I&&m.preventDefault()}},[t,o,p.paused]);return Os(Z.div,{tabIndex:-1,...s,ref:c,onKeyDown:h})});ct.displayName=Es;function qs(e,{select:a=!1}={}){let t=document.activeElement;for(let o of e)if(Pe(o,{select:a}),document.activeElement!==t)return}function Us(e){let a=Oo(e),t=Fo(a,e),o=Fo(a.reverse(),e);return[t,o]}function Oo(e){let a=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)a.push(t.currentNode);return a}function Fo(e,a){for(let t of e)if(!Hs(t,{upTo:a}))return t}function Hs(e,{upTo:a}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(a!==void 0&&e===a)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ns(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:a=!1}={}){if(e&&e.focus){let t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Ns(e)&&a&&e.select()}}var Bo=zs();function zs(){let e=[];return{add(a){let t=e[0];a!==t&&t?.pause(),e=To(e,a),e.unshift(a)},remove(a){e=To(e,a),e[0]?.resume()}}}function To(e,a){let t=[...e],o=t.indexOf(a);return o!==-1&&t.splice(o,1),t}function Gs(e){return e.filter(a=>a.tagName!=="A")}import*as Fa from"react";import*as Eo from"react-dom";import{jsx as Ws}from"react/jsx-runtime";var Vs="Portal",pt=Fa.forwardRef((e,a)=>{let{container:t,...o}=e,[r,l]=Fa.useState(!1);ee(()=>l(!0),[]);let s=t||r&&globalThis?.document?.body;return s?Eo.createPortal(Ws(Z.div,{...o,ref:a}),s):null});pt.displayName=Vs;import*as Uo from"react";var Ba=0,$e=null;function Ho(){Uo.useEffect(()=>{$e||($e={start:qo(),end:qo()});let{start:e,end:a}=$e;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),Ba++,()=>{Ba===1&&($e?.start.remove(),$e?.end.remove(),$e=null),Ba=Math.max(0,Ba-1)}},[])}function qo(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var te=function(){return te=Object.assign||function(a){for(var t,o=1,r=arguments.length;o"u")return Js;var a=Qs(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-t+a[2]-a[0])}};var eu=fa(),Ze="data-scroll-locked",au=function(e,a,t,o){var r=e.left,l=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),` - .`.concat(mt,` { - overflow: hidden `).concat(o,`; - padding-right: `).concat(u,"px ").concat(o,`; - } - body[`).concat(Ze,`] { - overflow: hidden `).concat(o,`; - overscroll-behavior: contain; - `).concat([a&&"position: relative ".concat(o,";"),t==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(l,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(u,"px ").concat(o,`; - `),t==="padding"&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),` - } - - .`).concat(Me,` { - right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(De,` { - margin-right: `).concat(u,"px ").concat(o,`; - } - - .`).concat(Me," .").concat(Me,` { - right: 0 `).concat(o,`; - } - - .`).concat(De," .").concat(De,` { - margin-right: 0 `).concat(o,`; - } - - body[`).concat(Ze,`] { - `).concat(ht,": ").concat(u,`px; - } -`)},Ko=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},tu=function(){Ye.useEffect(function(){return document.body.setAttribute(Ze,(Ko()+1).toString()),function(){var e=Ko()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},bt=function(e){var a=e.noRelative,t=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;tu();var l=Ye.useMemo(function(){return vt(r)},[r]);return Ye.createElement(eu,{styles:au(l,!a,r,t?"":"!important")})};var yt=!1;if(typeof window<"u")try{ia=Object.defineProperty({},"passive",{get:function(){return yt=!0,!0}}),window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{yt=!1}var ia,Fe=yt?{passive:!1}:!1;var ou=function(e){return e.tagName==="TEXTAREA"},$o=function(e,a){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[a]!=="hidden"&&!(t.overflowY===t.overflowX&&!ou(e)&&t[a]==="visible")},ru=function(e){return $o(e,"overflowY")},lu=function(e){return $o(e,"overflowX")},Pt=function(e,a){var t=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Zo(e,o);if(r){var l=Yo(e,o),s=l[1],u=l[2];if(s>u)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},su=function(e){var a=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[a,t,o]},uu=function(e){var a=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[a,t,o]},Zo=function(e,a){return e==="v"?ru(a):lu(a)},Yo=function(e,a){return e==="v"?su(a):uu(a)},nu=function(e,a){return e==="h"&&a==="rtl"?-1:1},Jo=function(e,a,t,o,r){var l=nu(e,window.getComputedStyle(a).direction),s=l*o,u=t.target,d=a.contains(u),n=!1,f=s>0,i=0,c=0;do{if(!u)break;var p=Yo(e,u),h=p[0],m=p[1],x=p[2],L=m-x-l*h;(h||L)&&Zo(e,u)&&(i+=L,c+=h);var I=u.parentNode;u=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!d&&u!==document.body||d&&(a.contains(u)||a===u));return(f&&(r&&Math.abs(i)<1||!r&&s>i)||!f&&(r&&Math.abs(c)<1||!r&&-s>c))&&(n=!0),n};var Ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qo=function(e){return[e.deltaX,e.deltaY]},er=function(e){return e&&"current"in e?e.current:e},du=function(e,a){return e[0]===a[0]&&e[1]===a[1]},fu=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},iu=0,Je=[];function ar(e){var a=O.useRef([]),t=O.useRef([0,0]),o=O.useRef(),r=O.useState(iu++)[0],l=O.useState(fa)[0],s=O.useRef(e);O.useEffect(function(){s.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=No([e.lockRef.current],(e.shards||[]).map(er),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=O.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var L=Ua(m),I=t.current,w="deltaX"in m?m.deltaX:I[0]-L[0],C="deltaY"in m?m.deltaY:I[1]-L[1],P,R=m.target,S=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&S==="h"&&R.type==="range")return!1;var g=window.getSelection(),M=g&&g.anchorNode,F=M?M===R||M.contains(R):!1;if(F)return!1;var E=Pt(S,R);if(!E)return!0;if(E?P=S:(P=S==="v"?"h":"v",E=Pt(S,R)),!E)return!1;if(!o.current&&"changedTouches"in m&&(w||C)&&(o.current=P),!P)return!0;var U=o.current||P;return Jo(U,x,m,U==="h"?w:C,!0)},[]),d=O.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==l)){var L="deltaY"in x?Qo(x):Ua(x),I=a.current.filter(function(P){return P.name===x.type&&(P.target===x.target||x.target===P.shadowParent)&&du(P.delta,L)})[0];if(I&&I.should){x.cancelable&&x.preventDefault();return}if(!I){var w=(s.current.shards||[]).map(er).filter(Boolean).filter(function(P){return P.contains(x.target)}),C=w.length>0?u(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),n=O.useCallback(function(m,x,L,I){var w={name:m,delta:x,target:L,should:I,shadowParent:cu(L)};a.current.push(w),setTimeout(function(){a.current=a.current.filter(function(C){return C!==w})},1)},[]),f=O.useCallback(function(m){t.current=Ua(m),o.current=void 0},[]),i=O.useCallback(function(m){n(m.type,Qo(m),m.target,u(m,e.lockRef.current))},[]),c=O.useCallback(function(m){n(m.type,Ua(m),m.target,u(m,e.lockRef.current))},[]);O.useEffect(function(){return Je.push(l),e.setCallbacks({onScrollCapture:i,onWheelCapture:i,onTouchMoveCapture:c}),document.addEventListener("wheel",d,Fe),document.addEventListener("touchmove",d,Fe),document.addEventListener("touchstart",f,Fe),function(){Je=Je.filter(function(m){return m!==l}),document.removeEventListener("wheel",d,Fe),document.removeEventListener("touchmove",d,Fe),document.removeEventListener("touchstart",f,Fe)}},[]);var p=e.removeScrollBar,h=e.inert;return O.createElement(O.Fragment,null,h?O.createElement(l,{styles:fu(r)}):null,p?O.createElement(bt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cu(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}var tr=gt(qa,ar);var or=Ha.forwardRef(function(e,a){return Ha.createElement(da,te({},e,{ref:a,sideCar:tr}))});or.classNames=da.classNames;var Rt=or;var pu=function(e){if(typeof document>"u")return null;var a=Array.isArray(e)?e[0]:e;return a.ownerDocument.body},Qe=new WeakMap,Na=new WeakMap,za={},kt=0,rr=function(e){return e&&(e.host||rr(e.parentNode))},mu=function(e,a){return a.map(function(t){if(e.contains(t))return t;var o=rr(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},hu=function(e,a,t,o){var r=mu(a,Array.isArray(e)?e:[e]);za[t]||(za[t]=new WeakMap);var l=za[t],s=[],u=new Set,d=new Set(r),n=function(i){!i||u.has(i)||(u.add(i),n(i.parentNode))};r.forEach(n);var f=function(i){!i||d.has(i)||Array.prototype.forEach.call(i.children,function(c){if(u.has(c))f(c);else try{var p=c.getAttribute(o),h=p!==null&&p!=="false",m=(Qe.get(c)||0)+1,x=(l.get(c)||0)+1;Qe.set(c,m),l.set(c,x),s.push(c),m===1&&h&&Na.set(c,!0),x===1&&c.setAttribute(t,"true"),h||c.setAttribute(o,"true")}catch(L){console.error("aria-hidden: cannot operate on ",c,L)}})};return f(a),u.clear(),kt++,function(){s.forEach(function(i){var c=Qe.get(i)-1,p=l.get(i)-1;Qe.set(i,c),l.set(i,p),c||(Na.has(i)||i.removeAttribute(o),Na.delete(i)),p||i.removeAttribute(t)}),kt--,kt||(Qe=new WeakMap,Qe=new WeakMap,Na=new WeakMap,za={})}},lr=function(e,a,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a||pu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),hu(o,r,t,"aria-hidden")):function(){return null}};import*as sr from"react";function ur(e){let[a,t]=sr.useState(void 0);return ee(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let l=r[0],s,u;if("borderBoxSize"in l){let d=l.borderBoxSize,n=Array.isArray(d)?d[0]:d;s=n.inlineSize,u=n.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else t(void 0)},[e]),a}import*as Y from"react";var fr=["top","right","bottom","left"];var me=Math.min,ae=Math.max,pa=Math.round,ma=Math.floor,de=e=>({x:e,y:e}),xu={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e,a,t){return ae(e,me(a,t))}function he(e,a){return typeof e=="function"?e(a):e}function xe(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Va(e){return e==="x"?"y":"x"}function _a(e){return e==="y"?"height":"width"}function fe(e){let a=e[0];return a==="t"||a==="b"?"y":"x"}function Xa(e){return Va(fe(e))}function ir(e,a,t){t===void 0&&(t=!1);let o=Be(e),r=Xa(e),l=_a(r),s=r==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[l]>a.floating[l]&&(s=ca(s)),[s,ca(s)]}function cr(e){let a=ca(e);return[Ga(e),a,Ga(a)]}function Ga(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var nr=["left","right"],dr=["right","left"],Lu=["top","bottom"],gu=["bottom","top"];function Iu(e,a,t){switch(e){case"top":case"bottom":return t?a?dr:nr:a?nr:dr;case"left":case"right":return a?Lu:gu;default:return[]}}function pr(e,a,t,o){let r=Be(e),l=Iu(xe(e),t==="start",o);return r&&(l=l.map(s=>s+"-"+r),a&&(l=l.concat(l.map(Ga)))),l}function ca(e){let a=xe(e);return xu[a]+e.slice(a.length)}function Cu(e){return{top:0,right:0,bottom:0,left:0,...e}}function At(e){return typeof e!="number"?Cu(e):{top:e,right:e,bottom:e,left:e}}function Te(e){let{x:a,y:t,width:o,height:r}=e;return{width:o,height:r,top:t,left:a,right:a+o,bottom:t+r,x:a,y:t}}function mr(e,a,t){let{reference:o,floating:r}=e,l=fe(a),s=Xa(a),u=_a(s),d=xe(a),n=l==="y",f=o.x+o.width/2-r.width/2,i=o.y+o.height/2-r.height/2,c=o[u]/2-r[u]/2,p;switch(d){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:i};break;case"left":p={x:o.x-r.width,y:i};break;default:p={x:o.x,y:o.y}}switch(Be(a)){case"start":p[s]-=c*(t&&n?-1:1);break;case"end":p[s]+=c*(t&&n?-1:1);break}return p}async function Lr(e,a){var t;a===void 0&&(a={});let{x:o,y:r,platform:l,rects:s,elements:u,strategy:d}=e,{boundary:n="clippingAncestors",rootBoundary:f="viewport",elementContext:i="floating",altBoundary:c=!1,padding:p=0}=he(a,e),h=At(p),x=u[c?i==="floating"?"reference":"floating":i],L=Te(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(x)))==null||t?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:n,rootBoundary:f,strategy:d})),I=i==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),C=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},P=Te(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:I,offsetParent:w,strategy:d}):I);return{top:(L.top-P.top+h.top)/C.y,bottom:(P.bottom-L.bottom+h.bottom)/C.y,left:(L.left-P.left+h.left)/C.x,right:(P.right-L.right+h.right)/C.x}}var Su=50,gr=async(e,a,t)=>{let{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:s}=t,u=s.detectOverflow?s:{...s,detectOverflow:Lr},d=await(s.isRTL==null?void 0:s.isRTL(a)),n=await s.getElementRects({reference:e,floating:a,strategy:r}),{x:f,y:i}=mr(n,o,d),c=o,p=0,h={};for(let m=0;m({name:"arrow",options:e,async fn(a){let{x:t,y:o,placement:r,rects:l,platform:s,elements:u,middlewareData:d}=a,{element:n,padding:f=0}=he(e,a)||{};if(n==null)return{};let i=At(f),c={x:t,y:o},p=Xa(r),h=_a(p),m=await s.getDimensions(n),x=p==="y",L=x?"top":"left",I=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=l.reference[h]+l.reference[p]-c[p]-l.floating[h],P=c[p]-l.reference[p],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n)),S=R?R[w]:0;(!S||!await(s.isElement==null?void 0:s.isElement(R)))&&(S=u.floating[w]||l.floating[h]);let g=C/2-P/2,M=S/2-m[h]/2-1,F=me(i[L],M),E=me(i[I],M),U=F,N=S-m[h]-E,T=S/2-m[h]/2+g,W=Wa(U,T,N),D=!d.arrow&&Be(r)!=null&&T!==W&&l.reference[h]/2-(TT<=0)){var E,U;let T=(((E=l.flip)==null?void 0:E.index)||0)+1,W=S[T];if(W&&(!(i==="alignment"?I!==fe(W):!1)||F.every(A=>fe(A.placement)===I?A.overflows[0]>0:!0)))return{data:{index:T,overflows:F},reset:{placement:W}};let D=(U=F.filter(B=>B.overflows[0]<=0).sort((B,A)=>B.overflows[1]-A.overflows[1])[0])==null?void 0:U.placement;if(!D)switch(p){case"bestFit":{var N;let B=(N=F.filter(A=>{if(R){let z=fe(A.placement);return z===I||z==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(z=>z>0).reduce((z,y)=>z+y,0)]).sort((A,z)=>A[1]-z[1])[0])==null?void 0:N[0];B&&(D=B);break}case"initialPlacement":D=u;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function hr(e,a){return{top:e.top-a.height,right:e.right-a.width,bottom:e.bottom-a.height,left:e.left-a.width}}function xr(e){return fr.some(a=>e[a]>=0)}var Sr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(a){let{rects:t,platform:o}=a,{strategy:r="referenceHidden",...l}=he(e,a);switch(r){case"referenceHidden":{let s=await o.detectOverflow(a,{...l,elementContext:"reference"}),u=hr(s,t.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:xr(u)}}}case"escaped":{let s=await o.detectOverflow(a,{...l,altBoundary:!0}),u=hr(s,t.floating);return{data:{escapedOffsets:u,escaped:xr(u)}}}default:return{}}}}};var wr=new Set(["left","top"]);async function wu(e,a){let{placement:t,platform:o,elements:r}=e,l=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=xe(t),u=Be(t),d=fe(t)==="y",n=wr.has(s)?-1:1,f=l&&d?-1:1,i=he(a,e),{mainAxis:c,crossAxis:p,alignmentAxis:h}=typeof i=="number"?{mainAxis:i,crossAxis:0,alignmentAxis:null}:{mainAxis:i.mainAxis||0,crossAxis:i.crossAxis||0,alignmentAxis:i.alignmentAxis};return u&&typeof h=="number"&&(p=u==="end"?h*-1:h),d?{x:p*f,y:c*n}:{x:c*n,y:p*f}}var vr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(a){var t,o;let{x:r,y:l,placement:s,middlewareData:u}=a,d=await wu(a,e);return s===((t=u.offset)==null?void 0:t.placement)&&(o=u.arrow)!=null&&o.alignmentOffset?{}:{x:r+d.x,y:l+d.y,data:{...d,placement:s}}}}},br=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(a){let{x:t,y:o,placement:r,platform:l}=a,{mainAxis:s=!0,crossAxis:u=!1,limiter:d={fn:L=>{let{x:I,y:w}=L;return{x:I,y:w}}},...n}=he(e,a),f={x:t,y:o},i=await l.detectOverflow(a,n),c=fe(xe(r)),p=Va(c),h=f[p],m=f[c];if(s){let L=p==="y"?"top":"left",I=p==="y"?"bottom":"right",w=h+i[L],C=h-i[I];h=Wa(w,h,C)}if(u){let L=c==="y"?"top":"left",I=c==="y"?"bottom":"right",w=m+i[L],C=m-i[I];m=Wa(w,m,C)}let x=d.fn({...a,[p]:h,[c]:m});return{...x,data:{x:x.x-t,y:x.y-o,enabled:{[p]:s,[c]:u}}}}}},yr=function(e){return e===void 0&&(e={}),{options:e,fn(a){let{x:t,y:o,placement:r,rects:l,middlewareData:s}=a,{offset:u=0,mainAxis:d=!0,crossAxis:n=!0}=he(e,a),f={x:t,y:o},i=fe(r),c=Va(i),p=f[c],h=f[i],m=he(u,a),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){let w=c==="y"?"height":"width",C=l.reference[c]-l.floating[w]+x.mainAxis,P=l.reference[c]+l.reference[w]-x.mainAxis;pP&&(p=P)}if(n){var L,I;let w=c==="y"?"width":"height",C=wr.has(xe(r)),P=l.reference[i]-l.floating[w]+(C&&((L=s.offset)==null?void 0:L[i])||0)+(C?0:x.crossAxis),R=l.reference[i]+l.reference[w]+(C?0:((I=s.offset)==null?void 0:I[i])||0)-(C?x.crossAxis:0);hR&&(h=R)}return{[c]:p,[i]:h}}}},Pr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(a){var t,o;let{placement:r,rects:l,platform:s,elements:u}=a,{apply:d=()=>{},...n}=he(e,a),f=await s.detectOverflow(a,n),i=xe(r),c=Be(r),p=fe(r)==="y",{width:h,height:m}=l.floating,x,L;i==="top"||i==="bottom"?(x=i,L=c===(await(s.isRTL==null?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(L=i,x=c==="end"?"top":"bottom");let I=m-f.top-f.bottom,w=h-f.left-f.right,C=me(m-f[x],I),P=me(h-f[L],w),R=!a.middlewareData.shift,S=C,g=P;if((t=a.middlewareData.shift)!=null&&t.enabled.x&&(g=w),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(S=I),R&&!c){let F=ae(f.left,0),E=ae(f.right,0),U=ae(f.top,0),N=ae(f.bottom,0);p?g=h-2*(F!==0||E!==0?F+E:ae(f.left,f.right)):S=m-2*(U!==0||N!==0?U+N:ae(f.top,f.bottom))}await d({...a,availableWidth:g,availableHeight:S});let M=await s.getDimensions(u.floating);return h!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function ja(){return typeof window<"u"}function qe(e){return kr(e)?(e.nodeName||"").toLowerCase():"#document"}function oe(e){var a;return(e==null||(a=e.ownerDocument)==null?void 0:a.defaultView)||window}function ie(e){var a;return(a=(kr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:a.documentElement}function kr(e){return ja()?e instanceof Node||e instanceof oe(e).Node:!1}function ue(e){return ja()?e instanceof Element||e instanceof oe(e).Element:!1}function Le(e){return ja()?e instanceof HTMLElement||e instanceof oe(e).HTMLElement:!1}function Rr(e){return!ja()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oe(e).ShadowRoot}function ea(e){let{overflow:a,overflowX:t,overflowY:o,display:r}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(a+o+t)&&r!=="inline"&&r!=="contents"}function Ar(e){return/^(table|td|th)$/.test(qe(e))}function ha(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var vu=/transform|translate|scale|rotate|perspective|filter/,bu=/paint|layout|strict|content/,Oe=e=>!!e&&e!=="none",Mt;function Ka(e){let a=ue(e)?ne(e):e;return Oe(a.transform)||Oe(a.translate)||Oe(a.scale)||Oe(a.rotate)||Oe(a.perspective)||!$a()&&(Oe(a.backdropFilter)||Oe(a.filter))||vu.test(a.willChange||"")||bu.test(a.contain||"")}function Mr(e){let a=ve(e);for(;Le(a)&&!Ue(a);){if(Ka(a))return a;if(ha(a))return null;a=ve(a)}return null}function $a(){return Mt==null&&(Mt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mt}function Ue(e){return/^(html|body|#document)$/.test(qe(e))}function ne(e){return oe(e).getComputedStyle(e)}function xa(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(qe(e)==="html")return e;let a=e.assignedSlot||e.parentNode||Rr(e)&&e.host||ie(e);return Rr(a)?a.host:a}function Dr(e){let a=ve(e);return Ue(a)?e.ownerDocument?e.ownerDocument.body:e.body:Le(a)&&ea(a)?a:Dr(a)}function Ee(e,a,t){var o;a===void 0&&(a=[]),t===void 0&&(t=!0);let r=Dr(e),l=r===((o=e.ownerDocument)==null?void 0:o.body),s=oe(r);if(l){let u=Za(s);return a.concat(s,s.visualViewport||[],ea(r)?r:[],u&&t?Ee(u):[])}else return a.concat(r,Ee(r,[],t))}function Za(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Or(e){let a=ne(e),t=parseFloat(a.width)||0,o=parseFloat(a.height)||0,r=Le(e),l=r?e.offsetWidth:t,s=r?e.offsetHeight:o,u=pa(t)!==l||pa(o)!==s;return u&&(t=l,o=s),{width:t,height:o,$:u}}function Ft(e){return ue(e)?e:e.contextElement}function aa(e){let a=Ft(e);if(!Le(a))return de(1);let t=a.getBoundingClientRect(),{width:o,height:r,$:l}=Or(a),s=(l?pa(t.width):t.width)/o,u=(l?pa(t.height):t.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}var yu=de(0);function Er(e){let a=oe(e);return!$a()||!a.visualViewport?yu:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Pu(e,a,t){return a===void 0&&(a=!1),!t||a&&t!==oe(e)?!1:a}function He(e,a,t,o){a===void 0&&(a=!1),t===void 0&&(t=!1);let r=e.getBoundingClientRect(),l=Ft(e),s=de(1);a&&(o?ue(o)&&(s=aa(o)):s=aa(e));let u=Pu(l,t,o)?Er(l):de(0),d=(r.left+u.x)/s.x,n=(r.top+u.y)/s.y,f=r.width/s.x,i=r.height/s.y;if(l){let c=oe(l),p=o&&ue(o)?oe(o):o,h=c,m=Za(h);for(;m&&o&&p!==h;){let x=aa(m),L=m.getBoundingClientRect(),I=ne(m),w=L.left+(m.clientLeft+parseFloat(I.paddingLeft))*x.x,C=L.top+(m.clientTop+parseFloat(I.paddingTop))*x.y;d*=x.x,n*=x.y,f*=x.x,i*=x.y,d+=w,n+=C,h=oe(m),m=Za(h)}}return Te({width:f,height:i,x:d,y:n})}function Ya(e,a){let t=xa(e).scrollLeft;return a?a.left+t:He(ie(e)).left+t}function qr(e,a){let t=e.getBoundingClientRect(),o=t.left+a.scrollLeft-Ya(e,t),r=t.top+a.scrollTop;return{x:o,y:r}}function Ru(e){let{elements:a,rect:t,offsetParent:o,strategy:r}=e,l=r==="fixed",s=ie(o),u=a?ha(a.floating):!1;if(o===s||u&&l)return t;let d={scrollLeft:0,scrollTop:0},n=de(1),f=de(0),i=Le(o);if((i||!i&&!l)&&((qe(o)!=="body"||ea(s))&&(d=xa(o)),i)){let p=He(o);n=aa(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}let c=s&&!i&&!l?qr(s,d):de(0);return{width:t.width*n.x,height:t.height*n.y,x:t.x*n.x-d.scrollLeft*n.x+f.x+c.x,y:t.y*n.y-d.scrollTop*n.y+f.y+c.y}}function ku(e){return Array.from(e.getClientRects())}function Au(e){let a=ie(e),t=xa(e),o=e.ownerDocument.body,r=ae(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),l=ae(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Ya(e),u=-t.scrollTop;return ne(o).direction==="rtl"&&(s+=ae(a.clientWidth,o.clientWidth)-r),{width:r,height:l,x:s,y:u}}var Fr=25;function Mu(e,a){let t=oe(e),o=ie(e),r=t.visualViewport,l=o.clientWidth,s=o.clientHeight,u=0,d=0;if(r){l=r.width,s=r.height;let f=$a();(!f||f&&a==="fixed")&&(u=r.offsetLeft,d=r.offsetTop)}let n=Ya(o);if(n<=0){let f=o.ownerDocument,i=f.body,c=getComputedStyle(i),p=f.compatMode==="CSS1Compat"&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,h=Math.abs(o.clientWidth-i.clientWidth-p);h<=Fr&&(l-=h)}else n<=Fr&&(l+=n);return{width:l,height:s,x:u,y:d}}function Du(e,a){let t=He(e,!0,a==="fixed"),o=t.top+e.clientTop,r=t.left+e.clientLeft,l=Le(e)?aa(e):de(1),s=e.clientWidth*l.x,u=e.clientHeight*l.y,d=r*l.x,n=o*l.y;return{width:s,height:u,x:d,y:n}}function Br(e,a,t){let o;if(a==="viewport")o=Mu(e,t);else if(a==="document")o=Au(ie(e));else if(ue(a))o=Du(a,t);else{let r=Er(e);o={x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}return Te(o)}function Ur(e,a){let t=ve(e);return t===a||!ue(t)||Ue(t)?!1:ne(t).position==="fixed"||Ur(t,a)}function Fu(e,a){let t=a.get(e);if(t)return t;let o=Ee(e,[],!1).filter(u=>ue(u)&&qe(u)!=="body"),r=null,l=ne(e).position==="fixed",s=l?ve(e):e;for(;ue(s)&&!Ue(s);){let u=ne(s),d=Ka(s);!d&&u.position==="fixed"&&(r=null),(l?!d&&!r:!d&&u.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||ea(s)&&!d&&Ur(e,s))?o=o.filter(f=>f!==s):r=u,s=ve(s)}return a.set(e,o),o}function Bu(e){let{element:a,boundary:t,rootBoundary:o,strategy:r}=e,s=[...t==="clippingAncestors"?ha(a)?[]:Fu(a,this._c):[].concat(t),o],u=Br(a,s[0],r),d=u.top,n=u.right,f=u.bottom,i=u.left;for(let c=1;c{s(!1,1e-7)},1e3)}S===1&&!zr(n,e.getBoundingClientRect())&&s(),C=!1}try{t=new IntersectionObserver(P,{...w,root:r.ownerDocument})}catch{t=new IntersectionObserver(P,w)}t.observe(e)}return s(!0),l}function Bt(e,a,t,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,n=Ft(e),f=r||l?[...n?Ee(n):[],...a?Ee(a):[]]:[];f.forEach(L=>{r&&L.addEventListener("scroll",t,{passive:!0}),l&&L.addEventListener("resize",t)});let i=n&&u?Uu(n,t):null,c=-1,p=null;s&&(p=new ResizeObserver(L=>{let[I]=L;I&&I.target===n&&p&&a&&(p.unobserve(a),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(a)})),t()}),n&&!d&&p.observe(n),a&&p.observe(a));let h,m=d?He(e):null;d&&x();function x(){let L=He(e);m&&!zr(m,L)&&t(),m=L,h=requestAnimationFrame(x)}return t(),()=>{var L;f.forEach(I=>{r&&I.removeEventListener("scroll",t),l&&I.removeEventListener("resize",t)}),i?.(),(L=p)==null||L.disconnect(),p=null,d&&cancelAnimationFrame(h)}}var Gr=vr;var Wr=br,Vr=Cr,_r=Pr,Xr=Sr,Tt=Ir;var jr=yr,Ot=(e,a,t)=>{let o=new Map,r={platform:Nr,...t},l={...r.platform,_c:o};return gr(e,a,{...r,platform:l})};import*as V from"react";import{useLayoutEffect as Hu}from"react";import*as $r from"react-dom";var Nu=typeof document<"u",zu=function(){},Ja=Nu?Hu:zu;function Qa(e,a){if(e===a)return!0;if(typeof e!=typeof a)return!1;if(typeof e=="function"&&e.toString()===a.toString())return!0;let t,o,r;if(e&&a&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==a.length)return!1;for(o=t;o--!==0;)if(!Qa(e[o],a[o]))return!1;return!0}if(r=Object.keys(e),t=r.length,t!==Object.keys(a).length)return!1;for(o=t;o--!==0;)if(!{}.hasOwnProperty.call(a,r[o]))return!1;for(o=t;o--!==0;){let l=r[o];if(!(l==="_owner"&&e.$$typeof)&&!Qa(e[l],a[l]))return!1}return!0}return e!==e&&a!==a}function Zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kr(e,a){let t=Zr(e);return Math.round(a*t)/t}function Et(e){let a=V.useRef(e);return Ja(()=>{a.current=e}),a}function Yr(e){e===void 0&&(e={});let{placement:a="bottom",strategy:t="absolute",middleware:o=[],platform:r,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:d,open:n}=e,[f,i]=V.useState({x:0,y:0,strategy:t,placement:a,middlewareData:{},isPositioned:!1}),[c,p]=V.useState(o);Qa(c,o)||p(o);let[h,m]=V.useState(null),[x,L]=V.useState(null),I=V.useCallback(A=>{A!==R.current&&(R.current=A,m(A))},[]),w=V.useCallback(A=>{A!==S.current&&(S.current=A,L(A))},[]),C=l||h,P=s||x,R=V.useRef(null),S=V.useRef(null),g=V.useRef(f),M=d!=null,F=Et(d),E=Et(r),U=Et(n),N=V.useCallback(()=>{if(!R.current||!S.current)return;let A={placement:a,strategy:t,middleware:c};E.current&&(A.platform=E.current),Ot(R.current,S.current,A).then(z=>{let y={...z,isPositioned:U.current!==!1};T.current&&!Qa(g.current,y)&&(g.current=y,$r.flushSync(()=>{i(y)}))})},[c,a,t,E,U]);Ja(()=>{n===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,i(A=>({...A,isPositioned:!1})))},[n]);let T=V.useRef(!1);Ja(()=>(T.current=!0,()=>{T.current=!1}),[]),Ja(()=>{if(C&&(R.current=C),P&&(S.current=P),C&&P){if(F.current)return F.current(C,P,N);N()}},[C,P,N,F,M]);let W=V.useMemo(()=>({reference:R,floating:S,setReference:I,setFloating:w}),[I,w]),D=V.useMemo(()=>({reference:C,floating:P}),[C,P]),B=V.useMemo(()=>{let A={position:t,left:0,top:0};if(!D.floating)return A;let z=Kr(D.floating,f.x),y=Kr(D.floating,f.y);return u?{...A,transform:"translate("+z+"px, "+y+"px)",...Zr(D.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:z,top:y}},[t,u,D.floating,f.x,f.y]);return V.useMemo(()=>({...f,update:N,refs:W,elements:D,floatingStyles:B}),[f,N,W,D,B])}var Gu=e=>{function a(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){let{element:o,padding:r}=typeof e=="function"?e(t):e;return o&&a(o)?o.current!=null?Tt({element:o.current,padding:r}).fn(t):{}:o?Tt({element:o,padding:r}).fn(t):{}}}},Jr=(e,a)=>{let t=Gr(e);return{name:t.name,fn:t.fn,options:[e,a]}},Qr=(e,a)=>{let t=Wr(e);return{name:t.name,fn:t.fn,options:[e,a]}},el=(e,a)=>({fn:jr(e).fn,options:[e,a]}),al=(e,a)=>{let t=Vr(e);return{name:t.name,fn:t.fn,options:[e,a]}},tl=(e,a)=>{let t=_r(e);return{name:t.name,fn:t.fn,options:[e,a]}};var ol=(e,a)=>{let t=Xr(e);return{name:t.name,fn:t.fn,options:[e,a]}};var rl=(e,a)=>{let t=Gu(e);return{name:t.name,fn:t.fn,options:[e,a]}};import*as sl from"react";import{jsx as ll}from"react/jsx-runtime";var Wu="Arrow",ul=sl.forwardRef((e,a)=>{let{children:t,width:o=10,height:r=5,...l}=e;return ll(Z.svg,{...l,ref:a,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:ll("polygon",{points:"0,0 30,0 15,10"})})});ul.displayName=Wu;var nl=ul;import{jsx as Ne}from"react/jsx-runtime";var qt="Popper",[dl,Ut]=ka(qt),[_u,fl]=dl(qt),il=e=>{let{__scopePopper:a,children:t}=e,[o,r]=Y.useState(null),[l,s]=Y.useState(void 0);return Ne(_u,{scope:a,anchor:o,onAnchorChange:r,placementState:l,setPlacementState:s,children:t})};il.displayName=qt;var cl="PopperAnchor",pl=Y.forwardRef((e,a)=>{let{__scopePopper:t,virtualRef:o,...r}=e,l=fl(cl,t),s=Y.useRef(null),u=l.onAnchorChange,d=Y.useCallback(h=>{s.current=h,h&&u(h)},[u]),n=re(a,d),f=Y.useRef(null);Y.useEffect(()=>{if(!o)return;let h=f.current;f.current=o.current,h!==f.current&&u(f.current)});let i=l.placementState&&Nt(l.placementState),c=i?.[0],p=i?.[1];return o?null:Ne(Z.div,{"data-radix-popper-side":c,"data-radix-popper-align":p,...r,ref:n})});pl.displayName=cl;var Ht="PopperContent",[Xu,ju]=dl(Ht),ml=Y.forwardRef((e,a)=>{let{__scopePopper:t,side:o="bottom",sideOffset:r=0,align:l="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:n,collisionPadding:f=0,sticky:i="partial",hideWhenDetached:c=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,x=fl(Ht,t),[L,I]=Y.useState(null),w=re(a,ye=>I(ye)),[C,P]=Y.useState(null),R=ur(C),S=R?.width??0,g=R?.height??0,M=o+(l!=="center"?"-"+l:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},E=n?Array.isArray(n)?n:[n]:void 0,U=E!==void 0&&E.length>0,N={padding:F,boundary:E?.filter($u),altBoundary:U},{refs:T,floatingStyles:W,placement:D,isPositioned:B,middlewareData:A}=Yr({strategy:"fixed",placement:M,whileElementsMounted:(...ye)=>Bt(...ye,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Jr({mainAxis:r+g,alignmentAxis:s}),d&&Qr({mainAxis:!0,crossAxis:!1,limiter:i==="partial"?el():void 0,...N}),d&&al({...N}),tl({...N,apply:({elements:ye,rects:G,availableWidth:Sa,availableHeight:_e})=>{let{width:Xe,height:sa}=G.reference,Se=ye.floating.style;Se.setProperty("--radix-popper-available-width",`${Sa}px`),Se.setProperty("--radix-popper-available-height",`${_e}px`),Se.setProperty("--radix-popper-anchor-width",`${Xe}px`),Se.setProperty("--radix-popper-anchor-height",`${sa}px`)}}),C&&rl({element:C,padding:u}),Zu({arrowWidth:S,arrowHeight:g}),c&&ol({strategy:"referenceHidden",...N})]}),z=x.setPlacementState;ee(()=>(z(D),()=>{z(void 0)}),[D,z]);let[y,oa]=Nt(D),ra=pe(h);ee(()=>{B&&ra?.()},[B,ra]);let Ca=A.arrow?.x,la=A.arrow?.y,j=A.arrow?.centerOffset!==0,[K,Ve]=Y.useState();return ee(()=>{L&&Ve(window.getComputedStyle(L).zIndex)},[L]),Ne("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:B?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Ne(Xu,{scope:t,placedSide:y,placedAlign:oa,onArrowChange:P,arrowX:Ca,arrowY:la,shouldHideArrow:j,children:Ne(Z.div,{"data-side":y,"data-align":oa,...m,ref:w,style:{...m.style,animation:B?void 0:"none"}})})})});ml.displayName=Ht;var hl="PopperArrow",Ku={top:"bottom",right:"left",bottom:"top",left:"right"},xl=Y.forwardRef(function(a,t){let{__scopePopper:o,...r}=a,l=ju(hl,o),s=Ku[l.placedSide];return Ne("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:Ne(nl,{...r,ref:t,style:{...r.style,display:"block"}})})});xl.displayName=hl;function $u(e){return e!==null}var Zu=e=>({name:"transformOrigin",options:e,fn(a){let{placement:t,rects:o,middlewareData:r}=a,s=r.arrow?.centerOffset!==0,u=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[n,f]=Nt(t),i={start:"0%",center:"50%",end:"100%"}[f],c=(r.arrow?.x??0)+u/2,p=(r.arrow?.y??0)+d/2,h="",m="";return n==="bottom"?(h=s?i:`${c}px`,m=`${-d}px`):n==="top"?(h=s?i:`${c}px`,m=`${o.floating.height+d}px`):n==="right"?(h=`${-d}px`,m=s?i:`${p}px`):n==="left"&&(h=`${o.floating.width+d}px`,m=s?i:`${p}px`),{data:{x:h,y:m}}}});function Nt(e){let[a,t="center"]=e.split("-");return[a,t]}var Ll=il,zt=pl,gl=ml,Il=xl;var ze={};st(ze,{Anchor:()=>un,Arrow:()=>pn,Close:()=>cn,Content:()=>fn,Popover:()=>Gt,PopoverAnchor:()=>Wt,PopoverArrow:()=>$t,PopoverClose:()=>Kt,PopoverContent:()=>jt,PopoverPortal:()=>Xt,PopoverTrigger:()=>Vt,Portal:()=>dn,Root:()=>sn,Trigger:()=>nn,createPopoverScope:()=>Ju});import*as q from"react";import{jsx as _}from"react/jsx-runtime";var et="Popover",[Cl,Ju]=ka(et,[Ut]),La=Ut(),[Qu,Re]=Cl(et),Gt=e=>{let{__scopePopover:a,children:t,open:o,defaultOpen:r,onOpenChange:l,modal:s=!1}=e,u=La(a),d=q.useRef(null),[n,f]=q.useState(!1),[i,c]=Co({prop:o,defaultProp:r??!1,onChange:l,caller:et});return _(Ll,{...u,children:_(Qu,{scope:a,contentId:vo(),triggerRef:d,open:i,onOpenChange:c,onOpenToggle:q.useCallback(()=>c(p=>!p),[c]),hasCustomAnchor:n,onCustomAnchorAdd:q.useCallback(()=>f(!0),[]),onCustomAnchorRemove:q.useCallback(()=>f(!1),[]),modal:s,children:t})})};Gt.displayName=et;var Sl="PopoverAnchor",Wt=q.forwardRef((e,a)=>{let{__scopePopover:t,...o}=e,r=Re(Sl,t),l=La(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=r;return q.useEffect(()=>(s(),()=>u()),[s,u]),_(zt,{...l,...o,ref:a})});Wt.displayName=Sl;var wl="PopoverTrigger",Vt=q.forwardRef((e,a)=>{let{__scopePopover:t,...o}=e,r=Re(wl,t),l=La(t),s=re(a,r.triggerRef),u=_(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":yl(r.open),...o,ref:s,onClick:ce(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?u:_(zt,{asChild:!0,...l,children:u})});Vt.displayName=wl;var _t="PopoverPortal",[en,an]=Cl(_t,{forceMount:void 0}),Xt=e=>{let{__scopePopover:a,forceMount:t,children:o,container:r}=e,l=Re(_t,a);return _(en,{scope:a,forceMount:t,children:_(Da,{present:t||l.open,children:_(pt,{asChild:!0,container:r,children:o})})})};Xt.displayName=_t;var ta="PopoverContent",jt=q.forwardRef((e,a)=>{let t=an(ta,e.__scopePopover),{forceMount:o=t.forceMount,...r}=e,l=Re(ta,e.__scopePopover);return _(Da,{present:o||l.open,children:l.modal?_(on,{...r,ref:a}):_(rn,{...r,ref:a})})});jt.displayName=ta;var tn=je("PopoverContent.RemoveScroll"),on=q.forwardRef((e,a)=>{let t=Re(ta,e.__scopePopover),o=q.useRef(null),r=re(a,o),l=q.useRef(!1);return q.useEffect(()=>{let s=o.current;if(s)return lr(s)},[]),_(Rt,{as:tn,allowPinchZoom:!0,children:_(vl,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{s.preventDefault(),l.current||t.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,s=>{let u=s.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,n=u.button===2||d;l.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),rn=q.forwardRef((e,a)=>{let t=Re(ta,e.__scopePopover),o=q.useRef(!1),r=q.useRef(!1);return _(vl,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||t.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=l.target;t.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&r.current&&l.preventDefault()}})}),vl=q.forwardRef((e,a)=>{let{__scopePopover:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:l,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:n,onInteractOutside:f,...i}=e,c=Re(ta,t),p=La(t);return Ho(),_(ct,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:l,children:_(dt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:n,onDismiss:()=>c.onOpenChange(!1),children:_(gl,{"data-state":yl(c.open),role:"dialog",id:c.contentId,...p,...i,ref:a,style:{...i.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),bl="PopoverClose",Kt=q.forwardRef((e,a)=>{let{__scopePopover:t,...o}=e,r=Re(bl,t);return _(Z.button,{type:"button",...o,ref:a,onClick:ce(e.onClick,()=>r.onOpenChange(!1))})});Kt.displayName=bl;var ln="PopoverArrow",$t=q.forwardRef((e,a)=>{let{__scopePopover:t,...o}=e,r=La(t);return _(Il,{...r,...o,ref:a})});$t.displayName=ln;function yl(e){return e?"open":"closed"}var sn=Gt,un=Wt,nn=Vt,dn=Xt,fn=jt,cn=Kt,pn=$t;var at={};st(at,{Root:()=>gn,Separator:()=>Zt});import*as Rl from"react";import{jsx as mn}from"react/jsx-runtime";var hn="Separator",Pl="horizontal",xn=["horizontal","vertical"],Zt=Rl.forwardRef((e,a)=>{let{decorative:t,orientation:o=Pl,...r}=e,l=Ln(o)?o:Pl,u=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return mn(Z.div,{"data-orientation":l,...u,...r,ref:a})});Zt.displayName=hn;function Ln(e){return xn.includes(e)}var gn=Zt;var In=(e,a)=>{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),Tl=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),rt="-",kl=[],Sn="arbitrary..",wn=e=>{let a=bn(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return vn(s);let u=s.split(rt),d=u[0]===""&&u.length>1?1:0;return Ol(u,d,a)},getConflictingClassGroupIds:(s,u)=>{if(u){let d=o[s],n=t[s];return d?n?In(n,d):d:n||kl}return t[s]||kl}}},Ol=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],l=t.nextPart.get(r);if(l){let n=Ol(e,a+1,l);if(n)return n}let s=t.validators;if(s===null)return;let u=a===0?e.join(rt):e.slice(a).join(rt),d=s.length;for(let n=0;ne.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?Sn+o:void 0})(),bn=e=>{let{theme:a,classGroups:t}=e;return yn(t,a)},yn=(e,a)=>{let t=Tl();for(let o in e){let r=e[o];Qt(r,t,o,a)}return t},Qt=(e,a,t,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){Rn(e,a,t);return}if(typeof e=="function"){kn(e,a,t,o);return}An(e,a,t,o)},Rn=(e,a,t)=>{let o=e===""?a:El(a,e);o.classGroupId=t},kn=(e,a,t,o)=>{if(Mn(e)){Qt(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(Cn(t,e))},An=(e,a,t,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let t=e,o=a.split(rt),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,Dn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),r=(l,s)=>{t[l]=s,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let s=t[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in t?t[l]=s:r(l,s)}}},Jt="!",Al=":",Fn=[],Ml=(e,a,t,o,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:r}),Bn=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=r=>{let l=[],s=0,u=0,d=0,n,f=r.length;for(let m=0;md?n-d:void 0;return Ml(l,p,c,h)};if(a){let r=a+Al,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):Ml(Fn,!1,s,void 0,!0)}if(t){let r=o;o=l=>t({className:l,parseClassName:r})}return o},Tn=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},On=e=>({cache:Dn(e.cacheSize),parseClassName:Bn(e),sortModifiers:Tn(e),postfixLookupClassGroupIds:En(e),...wn(e)}),En=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],d=e.trim().split(qn),n="";for(let f=d.length-1;f>=0;f-=1){let i=d[f],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:x}=t(i);if(c){n=i+(n.length>0?" "+n:n);continue}let L=!!x,I;if(L){let S=m.substring(0,x);I=o(S);let g=I&&s[I]?o(m):void 0;g&&g!==I&&(I=g,L=!1)}else I=o(m);if(!I){if(!L){n=i+(n.length>0?" "+n:n);continue}if(I=o(m),!I){n=i+(n.length>0?" "+n:n);continue}L=!1}let w=p.length===0?"":p.length===1?p[0]:l(p).join(":"),C=h?w+Jt:w,P=C+I;if(u.indexOf(P)>-1)continue;u.push(P);let R=r(I,L);for(let S=0;S0?" "+n:n)}return n},Hn=(...e)=>{let a=0,t,o,r="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,r,l,s=d=>{let n=a.reduce((f,i)=>i(f),e());return t=On(n),o=t.cache.get,r=t.cache.set,l=u,u(d)},u=d=>{let n=o(d);if(n)return n;let f=Un(d,t);return r(d,f),f};return l=s,(...d)=>l(Hn(...d))},zn=[],X=e=>{let a=t=>t[e]||zn;return a.isThemeGetter=!0,a},Ul=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Wn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_n=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ke=e=>Gn.test(e),k=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&k(e.slice(0,-1)),be=e=>Wn.test(e),Nl=()=>!0,Kn=e=>Vn.test(e)&&!_n.test(e),eo=()=>!1,$n=e=>Xn.test(e),Zn=e=>jn.test(e),Yn=e=>!v(e)&&!b(e),Jn=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Qn=e=>Ae(e,Wl,eo),v=e=>Ul.test(e),Ge=e=>Ae(e,Vl,Kn),Dl=e=>Ae(e,ud,k),ed=e=>Ae(e,Xl,Nl),ad=e=>Ae(e,_l,eo),Fl=e=>Ae(e,zl,eo),td=e=>Ae(e,Gl,Zn),tt=e=>Ae(e,jl,$n),b=e=>Hl.test(e),ga=e=>We(e,Vl),od=e=>We(e,_l),Bl=e=>We(e,zl),rd=e=>We(e,Wl),ld=e=>We(e,Gl),ot=e=>We(e,jl,!0),sd=e=>We(e,Xl,!0),Ae=(e,a,t)=>{let o=Ul.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},We=(e,a,t=!1)=>{let o=Hl.exec(e);return o?o[1]?a(o[1]):t:!1},zl=e=>e==="position"||e==="percentage",Gl=e=>e==="image"||e==="url",Wl=e=>e==="length"||e==="size"||e==="bg-size",Vl=e=>e==="length",ud=e=>e==="number",_l=e=>e==="family-name",Xl=e=>e==="number"||e==="weight",jl=e=>e==="shadow";var nd=()=>{let e=X("color"),a=X("font"),t=X("text"),o=X("font-weight"),r=X("tracking"),l=X("leading"),s=X("breakpoint"),u=X("container"),d=X("spacing"),n=X("radius"),f=X("shadow"),i=X("inset-shadow"),c=X("text-shadow"),p=X("drop-shadow"),h=X("blur"),m=X("perspective"),x=X("aspect"),L=X("ease"),I=X("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...C(),b,v],R=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],g=()=>[b,v,d],M=()=>[ke,"full","auto",...g()],F=()=>[ge,"none","subgrid",b,v],E=()=>["auto",{span:["full",ge,b,v]},ge,b,v],U=()=>[ge,"auto",b,v],N=()=>["auto","min","max","fr",b,v],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...g()],B=()=>[ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],A=()=>[ke,"screen","full","dvw","lvw","svw","min","max","fit",...g()],z=()=>[ke,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],y=()=>[e,b,v],oa=()=>[...C(),Bl,Fl,{position:[b,v]}],ra=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ca=()=>["auto","cover","contain",rd,Qn,{size:[b,v]}],la=()=>[Yt,ga,Ge],j=()=>["","none","full",n,b,v],K=()=>["",k,ga,Ge],Ve=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[k,Yt,Bl,Fl],Sa=()=>["","none",h,b,v],_e=()=>["none",k,b,v],Xe=()=>["none",k,b,v],sa=()=>[k,b,v],Se=()=>[ke,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Nl],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[Yn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",k],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ke,v,b,x]}],container:["container"],"container-type":[{"@container":["","normal","size",b,v]}],"container-named":[Jn],columns:[{columns:[k,v,b,u]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[ge,"auto",b,v]}],basis:[{basis:[ke,"full","auto",u,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[k,ke,"auto","initial","none",v]}],grow:[{grow:["",k,b,v]}],shrink:[{shrink:["",k,b,v]}],order:[{order:[ge,"first","last","none",b,v]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[u,"screen",...B()]}],"min-w":[{"min-w":[u,"screen","none",...B()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",t,ga,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,sd,ed]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,v]}],"font-family":[{font:[od,ad,a]}],"font-features":[{"font-features":[v]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,b,v]}],"line-clamp":[{"line-clamp":[k,"none",b,Dl]}],leading:[{leading:[l,...g()]}],"list-image":[{"list-image":["none",b,v]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[k,"from-font","auto",b,Ge]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[k,"auto",b,v]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[ge,b,v]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oa()}],"bg-repeat":[{bg:ra()}],"bg-size":[{bg:Ca()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ge,b,v],radial:["",b,v],conic:[ge,b,v]},ld,td]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:la()}],"gradient-via-pos":[{via:la()}],"gradient-to-pos":[{to:la()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-bs":[{"border-bs":K()}],"border-w-be":[{"border-be":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ve(),"hidden","none"]}],"divide-style":[{divide:[...Ve(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...Ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[k,b,v]}],"outline-w":[{outline:["",k,ga,Ge]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,ot,tt]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",i,ot,tt]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[k,Ge]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",c,ot,tt]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[k,b,v]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[k]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[b,v]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[k]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oa()}],"mask-repeat":[{mask:ra()}],"mask-size":[{mask:Ca()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,v]}],filter:[{filter:["","none",b,v]}],blur:[{blur:Sa()}],brightness:[{brightness:[k,b,v]}],contrast:[{contrast:[k,b,v]}],"drop-shadow":[{"drop-shadow":["","none",p,ot,tt]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",k,b,v]}],"hue-rotate":[{"hue-rotate":[k,b,v]}],invert:[{invert:["",k,b,v]}],saturate:[{saturate:[k,b,v]}],sepia:[{sepia:["",k,b,v]}],"backdrop-filter":[{"backdrop-filter":["","none",b,v]}],"backdrop-blur":[{"backdrop-blur":Sa()}],"backdrop-brightness":[{"backdrop-brightness":[k,b,v]}],"backdrop-contrast":[{"backdrop-contrast":[k,b,v]}],"backdrop-grayscale":[{"backdrop-grayscale":["",k,b,v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k,b,v]}],"backdrop-invert":[{"backdrop-invert":["",k,b,v]}],"backdrop-opacity":[{"backdrop-opacity":[k,b,v]}],"backdrop-saturate":[{"backdrop-saturate":[k,b,v]}],"backdrop-sepia":[{"backdrop-sepia":["",k,b,v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,v]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[k,"initial",b,v]}],ease:[{ease:["linear","initial",L,b,v]}],delay:[{delay:[k,b,v]}],animate:[{animate:["none",I,b,v]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,b,v]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Xe()}],"scale-x":[{"scale-x":Xe()}],"scale-y":[{"scale-y":Xe()}],"scale-z":[{"scale-z":Xe()}],"scale-3d":["scale-3d"],skew:[{skew:sa()}],"skew-x":[{"skew-x":sa()}],"skew-y":[{"skew-y":sa()}],transform:[{transform:[b,v,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[ge,b,v]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,v]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,v]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[k,ga,Ge,Dl]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Kl=Nn(nd);function Ie(...e){return Kl(ba(e))}import{jsx as fd}from"react/jsx-runtime";var dd=ya("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ao({className:e,variant:a="default",size:t="default",asChild:o=!1,...r}){let l=o?Ra.Root:"button";return fd(l,{"data-slot":"button","data-variant":a,"data-size":t,className:Ie(dd({variant:a,size:t,className:e})),...r})}import{jsx as id}from"react/jsx-runtime";function to({className:e,orientation:a="horizontal",decorative:t=!0,...o}){return id(at.Root,{"data-slot":"separator",decorative:t,orientation:a,className:Ie("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}import{jsx as pd}from"react/jsx-runtime";var cd=ya("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function $l({className:e,orientation:a,...t}){return pd("div",{role:"group","data-slot":"button-group","data-orientation":a,className:Ie(cd({orientation:a}),e),...t})}import{jsx as lt}from"react/jsx-runtime";function Zl({...e}){return lt(ze.Root,{"data-slot":"popover",...e})}function Yl({...e}){return lt(ze.Trigger,{"data-slot":"popover-trigger",...e})}function Jl({className:e,align:a="center",sideOffset:t=4,...o}){return lt(ze.Portal,{children:lt(ze.Content,{"data-slot":"popover-content",align:a,sideOffset:t,className:Ie("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...o})})}import{jsx as md}from"react/jsx-runtime";function Ql({className:e,...a}){return md("textarea",{"data-slot":"textarea",className:Ie("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...a})}import{jsx as Ce,jsxs as Ia}from"react/jsx-runtime";function hd(){return Ia($l,{children:[Ia(ao,{variant:"outline",children:[Ce(ua,{})," Copilot"]}),Ia(Zl,{children:[Ce(Yl,{asChild:!0,children:Ce(ao,{variant:"outline",size:"icon","aria-label":"Open Popover",children:Ce(na,{})})}),Ia(Jl,{align:"end",className:"rounded-xl p-0 text-sm",children:[Ce("div",{className:"px-4 py-3",children:Ce("div",{className:"text-sm font-medium",children:"Agent Tasks"})}),Ce(to,{}),Ia("div",{className:"p-4 text-sm *:[p:not(:last-child)]:mb-2",children:[Ce(Ql,{placeholder:"Describe your task in natural language.",className:"mb-4 resize-none"}),Ce("p",{className:"font-medium",children:"Start a new task with Copilot"}),Ce("p",{className:"text-muted-foreground",children:"Describe your task in natural language. Copilot will work in the background and open a pull request for your review."})]})]})]})]})}export{hd as default}; -/*! Bundled license information: - -lucide-react/dist/esm/shared/src/utils.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/defaultAttributes.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/Icon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/createLucideIcon.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/bot.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/icons/chevron-down.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) - -lucide-react/dist/esm/lucide-react.js: - (** - * @license lucide-react v0.456.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - *) -*/ +version https://git-lfs.github.com/spec/v1 +oid sha256:301ca351db656e45247b854c0d7a24bb6d4f9925e0464e7c106ef60af96ad762 +size 97990 diff --git a/b/069236e7a30a0a2d431aa9811637f7b4a1417869e836c0c6b78728999059c519 b/b/069236e7a30a0a2d431aa9811637f7b4a1417869e836c0c6b78728999059c519 index b889eff413f9da92a5b302114d9e08210d33b043..e30f0f4dd8a4a4dfe4b4167f81e19fce9849c67a 100644 --- a/b/069236e7a30a0a2d431aa9811637f7b4a1417869e836c0c6b78728999059c519 +++ b/b/069236e7a30a0a2d431aa9811637f7b4a1417869e836c0c6b78728999059c519 @@ -1,41 +1,3 @@ -{ - "/decoder/decoder/generator/m_source/l_sin_gen/Sub_output_0": { - "file": "ort/decoder_decoder_generator_m_source_l_sin_gen_Sub_output_0.f32", - "dims": [ - 1, - 33600, - 9 - ] - }, - "/decoder/decoder/generator/m_source/l_sin_gen/Resize_output_0": { - "file": "ort/decoder_decoder_generator_m_source_l_sin_gen_Resize_output_0.f32", - "dims": [ - 1, - 9, - 112 - ] - }, - "/decoder/decoder/generator/m_source/l_sin_gen/CumSum_output_0": { - "file": "ort/decoder_decoder_generator_m_source_l_sin_gen_CumSum_output_0.f32", - "dims": [ - 1, - 112, - 9 - ] - }, - "/decoder/decoder/generator/m_source/l_sin_gen/Sin_output_0": { - "file": "ort/decoder_decoder_generator_m_source_l_sin_gen_Sin_output_0.f32", - "dims": [ - 1, - 33600, - 9 - ] - }, - "waveform": { - "file": "ort/waveform.f32", - "dims": [ - 1, - 33600 - ] - } -} \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:9a94e8ab65142cb3a9c4c423f2a8025c9c37d4135da3cb2c2832416d5a37e3ad +size 912 diff --git a/b/06c57eb88ccfdae6e2b1df0ae7fbd9ed136b692d172c6e7af50d133ca6083236 b/b/06c57eb88ccfdae6e2b1df0ae7fbd9ed136b692d172c6e7af50d133ca6083236 index 5e3452ab94b26263ff59ec2811c295c5d214e874..f7fc2d29b7e9d1ea512d7cfd1c928d39931d33ce 100644 --- a/b/06c57eb88ccfdae6e2b1df0ae7fbd9ed136b692d172c6e7af50d133ca6083236 +++ b/b/06c57eb88ccfdae6e2b1df0ae7fbd9ed136b692d172c6e7af50d133ca6083236 @@ -1 +1,3 @@ -{"@type":"holo:Bundle","children":[{"children":[{"children":"Atomic universe","export":"CardTitle","kappa":"holo://sha256:c142f11fba89d9c6e44cf47f9f57bba27b2340534c90109fb5cad8adc39fbd36"},{"children":"every part is a κ-addressed object, composed and re-derivable","export":"CardDescription","kappa":"holo://sha256:c142f11fba89d9c6e44cf47f9f57bba27b2340534c90109fb5cad8adc39fbd36"},{"bundle":"holo://sha256:a0cb93f62047f6c33a44beee64ded045d3a1e82c45e514d9cab5ef2a89afae93"},{"bundle":"holo://sha256:fe5868c20632625eafe2ba0b1f58cc4a782118d253ff3db328437f1aafa4c908"}],"export":"Card","kappa":"holo://sha256:c142f11fba89d9c6e44cf47f9f57bba27b2340534c90109fb5cad8adc39fbd36","props":{"style":{"display":"flex","flexDirection":"column","gap":"12px","padding":"16px","width":"24rem"}}}],"layout":"stack","name":"panel","spec":"a Card that nests the badges + the button-row bundle"} \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:17c8c9e7d6fe7df3ceb5ea7e1da68dd88aab075d7f0b7d3011c6d9ad877298c2 +size 877 diff --git a/b/06f23eedfdd6e09db45b2dea4adf2b277e71ca99b518968b3cc44acbc5a2a923 b/b/06f23eedfdd6e09db45b2dea4adf2b277e71ca99b518968b3cc44acbc5a2a923 index 7bec58f61b04be685e07756ed27ca0379f5b0239..198b73636b3fe3db195be5896b03a55ee9067455 100644 --- a/b/06f23eedfdd6e09db45b2dea4adf2b277e71ca99b518968b3cc44acbc5a2a923 +++ b/b/06f23eedfdd6e09db45b2dea4adf2b277e71ca99b518968b3cc44acbc5a2a923 @@ -1,102 +1,3 @@ -import { SVGProps } from "react" - -export interface AndroidProps extends SVGProps { - width?: number - height?: number - src?: string - videoSrc?: string -} - -export function Android({ - width = 433, - height = 882, - src, - videoSrc, - ...props -}: AndroidProps) { - return ( - - - - - - - - - - - - {src && ( - - )} - {videoSrc && ( - -