changed
hex_metadata.config
|
@@ -1,27 +1,27 @@
|
1
1
|
{<<"links">>,[{<<"GitHub">>,<<"https://git.5sigma.io/sigmakit/sigmakit">>}]}.
|
2
2
|
{<<"name">>,<<"sigma_kit">>}.
|
3
|
- {<<"version">>,<<"0.0.4">>}.
|
3
|
+ {<<"version">>,<<"0.0.5">>}.
|
4
4
|
{<<"description">>,
|
5
5
|
<<"An Appplication kit for Phoenix based applications.\n\n SigmaKit Provides UI components, helpers, and opinionated frameowrk extensions for quickly devloping rich Phoenix LiveView based applications.">>}.
|
6
6
|
{<<"elixir">>,<<"~> 1.17.2">>}.
|
7
7
|
{<<"app">>,<<"sigma_kit">>}.
|
8
8
|
{<<"files">>,
|
9
9
|
[<<"lib">>,<<"lib/components">>,<<"lib/components/charts.ex">>,
|
10
|
- <<"lib/components/js.ex">>,<<"lib/components/containers.ex">>,
|
11
|
- <<"lib/components/icons.ex">>,<<"lib/components/modal.ex">>,
|
12
|
- <<"lib/components/formatters.ex">>,<<"lib/components/popups.ex">>,
|
13
|
- <<"lib/components/buttons.ex">>,<<"lib/components/flair.ex">>,
|
10
|
+ <<"lib/components/js.ex">>,<<"lib/components/flair.ex">>,
|
11
|
+ <<"lib/components/sidenav.ex">>,<<"lib/components/containers.ex">>,
|
12
|
+ <<"lib/components/popups.ex">>,<<"lib/components/alerts.ex">>,
|
13
|
+ <<"lib/components/buttons.ex">>,<<"lib/components/formatters.ex">>,
|
14
14
|
<<"lib/components/forms.ex">>,<<"lib/components/headers.ex">>,
|
15
|
- <<"lib/components/sidenav.ex">>,<<"lib/components/table.ex">>,
|
16
|
- <<"lib/components/tabs.ex">>,<<"lib/extensions">>,
|
17
|
- <<"lib/extensions/context.ex">>,<<"lib/extensions/repo.ex">>,
|
18
|
- <<"lib/extensions/schema.ex">>,<<"lib/util">>,<<"lib/util/changeset.ex">>,
|
19
|
- <<"lib/util/string.ex">>,<<"lib/util/map.ex">>,<<"lib/sigma_kit.ex">>,
|
20
|
- <<"lib/charts.ex">>,<<"lib/util.ex">>,<<"lib/components.ex">>,
|
21
|
- <<"lib/plugs">>,<<"lib/plugs/assign_current_url.ex">>,<<"priv">>,
|
22
|
- <<"priv/static">>,<<"priv/static/sigma_kit.css">>,
|
23
|
- <<"priv/static/sigma_kit.js">>,<<"mix.exs">>,<<"README.md">>,<<"LICENSE">>,
|
24
|
- <<"package.json">>]}.
|
15
|
+ <<"lib/components/icons.ex">>,<<"lib/components/modal.ex">>,
|
16
|
+ <<"lib/components/table.ex">>,<<"lib/components/tabs.ex">>,
|
17
|
+ <<"lib/extensions">>,<<"lib/extensions/context.ex">>,
|
18
|
+ <<"lib/extensions/repo.ex">>,<<"lib/extensions/schema.ex">>,<<"lib/util">>,
|
19
|
+ <<"lib/util/changeset.ex">>,<<"lib/util/string.ex">>,<<"lib/util/map.ex">>,
|
20
|
+ <<"lib/sigma_kit.ex">>,<<"lib/charts.ex">>,<<"lib/util.ex">>,
|
21
|
+ <<"lib/plugs">>,<<"lib/plugs/assign_current_url.ex">>,
|
22
|
+ <<"lib/components.ex">>,<<"priv">>,<<"priv/static">>,
|
23
|
+ <<"priv/static/sigma_kit.css">>,<<"priv/static/sigma_kit.js">>,
|
24
|
+ <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>,<<"package.json">>]}.
|
25
25
|
{<<"licenses">>,[<<"MIT">>]}.
|
26
26
|
{<<"requirements">>,
|
27
27
|
[[{<<"name">>,<<"phoenix_live_view">>},
|
changed
lib/components.ex
|
@@ -1,6 +1,7 @@
|
1
1
|
defmodule SigmaKit.Components do
|
2
2
|
defmacro __using__(_) do
|
3
3
|
quote do
|
4
|
+ import SigmaKit.Components.Alerts
|
4
5
|
import SigmaKit.Components.Buttons
|
5
6
|
import SigmaKit.Components.Containers
|
6
7
|
import SigmaKit.Components.Charts
|
added
lib/components/alerts.ex
|
@@ -0,0 +1,30 @@
|
1
|
+ defmodule SigmaKit.Components.Alerts do
|
2
|
+ use Phoenix.LiveComponent
|
3
|
+
|
4
|
+ attr :danger, :boolean, default: false, doc: "Apply the danger style to the alert."
|
5
|
+ attr :success, :boolean, default: false, doc: "Apply the success style to the alert."
|
6
|
+ attr :warning, :boolean, default: false, doc: "Apply the warning style to the alert."
|
7
|
+ attr :info, :boolean, default: false, doc: "Apply the info style to the alert."
|
8
|
+ attr :title, :string, default: nil, doc: "The title of the alert."
|
9
|
+ attr :class, :any, default: nil, doc: "Additional classes to apply to the alert."
|
10
|
+
|
11
|
+ slot :inner_block, doc: "The content to render inside the alert."
|
12
|
+
|
13
|
+ def alert(assigns) do
|
14
|
+ ~H"""
|
15
|
+ <div class={[
|
16
|
+ @danger && "bg-red-100 border-red-400 text-red-700",
|
17
|
+ @success && "bg-green-100 border-green-400 text-green-700",
|
18
|
+ @warning && "bg-yellow-100 border-yellow-400 text-yellow-700",
|
19
|
+ @info && "bg-blue-100 border-blue-400 text-blue-700",
|
20
|
+ "border-l-4 py-2 px-4",
|
21
|
+ @class
|
22
|
+ ]}>
|
23
|
+ <div class="font-bold mb">{@title}</div>
|
24
|
+ <div :if={SigmaKit.Util.present?(@inner_block)} class="text-zinc-600 text-sm">
|
25
|
+ {render_slot(@inner_block)}
|
26
|
+ </div>
|
27
|
+ </div>
|
28
|
+ """
|
29
|
+ end
|
30
|
+ end
|
changed
lib/components/buttons.ex
|
@@ -12,6 +12,7 @@ defmodule SigmaKit.Components.Buttons do
|
12
12
|
attr :light, :boolean, default: false, doc: "Apply the light style to the button."
|
13
13
|
attr :danger, :boolean, default: false, doc: "Apply the danger style to the button."
|
14
14
|
attr :inline, :boolean, default: false, doc: "Apply the inline style to the button."
|
15
|
+ attr :plain, :boolean, default: false, doc: "Apply no border or shadow to the button."
|
15
16
|
|
16
17
|
attr :rest, :global,
|
17
18
|
include: ~w(type disabled form name value),
|
|
@@ -23,12 +24,16 @@ defmodule SigmaKit.Components.Buttons do
|
23
24
|
~H"""
|
24
25
|
<button
|
25
26
|
class={[
|
26
|
- "phx-submit-loading:opacity-75 rounded-lg transition-all",
|
27
|
- "text-sm font-semibold leading-6",
|
27
|
+ "phx-submit-loading:opacity-75 rounded transition-all",
|
28
|
+ "text-sm font-semibold leading-6 active:shadow-inner",
|
29
|
+ "disabled:text-zinc-50/50",
|
28
30
|
!@inline && "py-2 px-3",
|
29
31
|
!@primary && !@light && !@danger && !@dark &&
|
30
|
- "bg-white hover:bg-gradient-to-t from-gray-200 to-20% to-gray-50/50 shadow border border-gray-200 hover:border-gray-300 text-zinc-600 hover:text-zinc-800",
|
31
|
- @dark && "bg-zinc-900 hover:bg-zinc-700 text-white active:text-white/80",
|
32
|
+ "bg-white text-zinc-600 disabled:text-zinc-500/50",
|
33
|
+ !@primary && !@light && !@danger && !@dark && !@plain &&
|
34
|
+ "border border-gray-200 border-gray-200 hover:border-gray-300 hover:bg-gray-50 hover:text-zinc-800",
|
35
|
+ @plain && "hover:bg-gray-200 hover:text-zinc-900",
|
36
|
+ @dark && "bg-zinc-900 hover:bg-zinc-700 text-white",
|
32
37
|
@primary && "bg-primary-600 hover:bg-primary-800 text-white",
|
33
38
|
@light && "bg-gray-200 hover:bg-gray-300 text-zinc-800",
|
34
39
|
@danger && "bg-red-700 text-zinc-50 hover:bg-red-900",
|
|
@@ -89,8 +94,11 @@ defmodule SigmaKit.Components.Buttons do
|
89
94
|
attr :label, :string, doc: "The label displayed on the dropdown button."
|
90
95
|
attr :id, :string, required: true, doc: "A unique identifier for the dropdown component."
|
91
96
|
attr :inline, :boolean, default: true, doc: "Apply the inline style to the dropdown button."
|
97
|
+ attr :plain, :boolean, default: false, doc: "Applies no border or color to the button"
|
98
|
+ attr :icon, :string, doc: "The name of the icon to display on the button."
|
92
99
|
|
93
100
|
slot :action, doc: "A dropdwn menu item" do
|
101
|
+ attr :divider, :boolean, doc: "This item will create a dividing line"
|
94
102
|
attr :label, :string, doc: "The label for the menu item."
|
95
103
|
attr :icon, :string, doc: "The name of the icon to display"
|
96
104
|
attr :event, :string, doc: "The event triggered when the menu item is clicked."
|
|
@@ -102,18 +110,23 @@ defmodule SigmaKit.Components.Buttons do
|
102
110
|
~H"""
|
103
111
|
<.popover id={@id} placement="bottom" trigger_click nopad minwidth>
|
104
112
|
<:trigger>
|
105
|
- <.button inline={@inline} type="button">
|
113
|
+ <.button inline={@inline} type="button" plain={@plain} class="flex items-center">
|
114
|
+ <.icon :if={assigns[:icon]} name={@icon} class="w-4 h-4 me-2" />
|
106
115
|
{@label}
|
107
116
|
<.icon name="hero-chevron-down" class="ms-2 h-3 w-3" />
|
108
117
|
</.button>
|
109
118
|
</:trigger>
|
110
119
|
<ul class="select-none">
|
111
120
|
<li :for={action <- @action}>
|
121
|
+ <div :if={action[:divider]} class="border-l-4 border-gray-400 py-1">
|
122
|
+ <div class="border-t border-gray-200 mt-1" />
|
123
|
+ </div>
|
112
124
|
<div
|
125
|
+ :if={!action[:divider]}
|
113
126
|
phx-click={action[:event]}
|
114
127
|
phx-target={action[:target]}
|
115
128
|
phx-value-value={action[:value]}
|
116
|
- class="block text-sm text-zinc-600 text-nowrap font-medium flex items-center transition-all relative cursor-pointer border-l-4 border-gray-400 hover:border-primary-600 hover:text-primary-600"
|
129
|
+ class="block text-sm text-zinc-600 text-nowrap font-medium flex items-center transition-all relative cursor-pointer border-l-4 border-gray-400 hover:border-primary-600 hover:text-primary-600 sui-dropdown-item"
|
117
130
|
>
|
118
131
|
<div :if={action[:icon]} class="px-2 py-2 ">
|
119
132
|
<.icon name={action.icon} class="w-4 h-4" />
|
|
@@ -132,6 +145,8 @@ defmodule SigmaKit.Components.Buttons do
|
132
145
|
attr :class, :any, default: nil
|
133
146
|
|
134
147
|
slot :action, doc: "overflow items presented as a dropdown menu" do
|
148
|
+ attr :class, :any, doc: "Additional classes to apply to the menu item"
|
149
|
+ attr :divider, :boolean, doc: "This item will create a dividing line"
|
135
150
|
attr :label, :string, doc: "The label for the menu item"
|
136
151
|
attr :event, :string, doc: "The phx-click event for the menu item"
|
137
152
|
attr :value, :string, doc: "The phx-value for the menu item"
|
|
@@ -150,12 +165,19 @@ defmodule SigmaKit.Components.Buttons do
|
150
165
|
</:trigger>
|
151
166
|
<ul class="">
|
152
167
|
<li :for={action <- @action}>
|
168
|
+ <div :if={action[:divider]}>
|
169
|
+ <div class="h-2"></div>
|
170
|
+ </div>
|
153
171
|
<div
|
172
|
+ :if={!action[:divider]}
|
154
173
|
phx-click={action[:event]}
|
155
174
|
phx-target={action[:target]}
|
156
175
|
phx-value-value={action[:value]}
|
157
176
|
phx-value-id={action[:value_id]}
|
158
|
- class="px-2 block text-sm text-zinc-800 text-zinc-600 text-nowrap font-medium flex items-center transition-all relative cursor-pointer border-l-4 border-gray-400 hover:border-primary-600 hover:text-primary-600"
|
177
|
+ class={[
|
178
|
+ "px-2 block text-sm text-zinc-800 text-zinc-600 text-nowrap font-medium flex items-center transition-all relative",
|
179
|
+ "cursor-pointer border-l-4 border-gray-400 hover:border-primary-600 hover:text-primary-600 sui-dropdown-item"
|
180
|
+ ]}
|
159
181
|
>
|
160
182
|
<div :if={action[:icon]} class="py-2 px-1">
|
161
183
|
<.icon name={action.icon} class="w-4 h-4 me-2" />
|
changed
lib/components/formatters.ex
|
@@ -99,7 +99,7 @@ defmodule SigmaKit.Components.Formatters do
|
99
99
|
id={@id}
|
100
100
|
phx-hook="LocalTimeHook"
|
101
101
|
{@rest}
|
102
|
- class={[@class, "opacity-0 transition-opacity duration-200"]}
|
102
|
+ class={[@class, ""]}
|
103
103
|
data-format={@format}
|
104
104
|
data-locale={@locale}
|
105
105
|
data-preset={@preset}
|
changed
lib/components/forms.ex
|
@@ -28,7 +28,7 @@ defmodule SigmaKit.Components.Forms do
|
28
28
|
def simple_form(assigns) do
|
29
29
|
~H"""
|
30
30
|
<.form :let={f} for={@for} as={@as} {@rest}>
|
31
|
- <div class="space-y-8 bg-white">
|
31
|
+ <div class="space-y-4 bg-white">
|
32
32
|
{render_slot(@inner_block, f)}
|
33
33
|
<div :for={action <- @actions} class="mt-2 flex items-center justify-between gap-6">
|
34
34
|
{render_slot(action, f)}
|
|
@@ -54,12 +54,11 @@ defmodule SigmaKit.Components.Forms do
|
54
54
|
attr :name, :any, doc: "the name of the input"
|
55
55
|
attr :label, :string, default: nil, doc: "the label for the input"
|
56
56
|
attr :value, :any, doc: "the value of the input"
|
57
|
- attr :dark, :boolean, default: false, doc: "apply dark styling"
|
58
57
|
|
59
58
|
attr :type, :string,
|
60
59
|
default: "text",
|
61
|
- values: ~w(checkbox color date datetime-local email file month number password
|
62
|
- range search select tel text textarea time url week),
|
60
|
+ values: ~w(switch checkbox color date datetime-local email file month number password
|
61
|
+ range search select tel text textarea time url week hidden radio-group),
|
63
62
|
doc: "the type of the input"
|
64
63
|
|
65
64
|
attr :field, Phoenix.HTML.FormField,
|
|
@@ -97,9 +96,7 @@ defmodule SigmaKit.Components.Forms do
|
97
96
|
~H"""
|
98
97
|
<div>
|
99
98
|
<label class={[
|
100
|
- "flex items-center gap-4 text-sm leading-6",
|
101
|
- @dark && "text-zinc-300",
|
102
|
- !@dark && "text-zinc-900"
|
99
|
+ "flex items-center gap-4 text-sm leading-6 text-zinc-900"
|
103
100
|
]}>
|
104
101
|
<input type="hidden" name={@name} value="false" disabled={@rest[:disabled]} />
|
105
102
|
<input
|
|
@@ -118,17 +115,48 @@ defmodule SigmaKit.Components.Forms do
|
118
115
|
"""
|
119
116
|
end
|
120
117
|
|
118
|
+ def input(%{type: "switch"} = assigns) do
|
119
|
+ assigns =
|
120
|
+ assign_new(assigns, :checked, fn ->
|
121
|
+ Phoenix.HTML.Form.normalize_value("checkbox", assigns[:value])
|
122
|
+ end)
|
123
|
+
|
124
|
+ ~H"""
|
125
|
+ <div>
|
126
|
+ <input type="hidden" name={@name} value="false" disabled={@rest[:disabled]} />
|
127
|
+ <label class={[
|
128
|
+ "flex items-center gap-4 leading-6 text-zinc-900 cursor-pointer"
|
129
|
+ ]}>
|
130
|
+ <input name={@name} type="checkbox" value="true" checked={@checked} class="sr-only peer" />
|
131
|
+ <div class="relative min-w-[44px] h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-300 rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-600">
|
132
|
+ </div>
|
133
|
+ <span class="ms-3 text-sm font-semibold text-gray-900 select-none">
|
134
|
+ {@label}
|
135
|
+ <div
|
136
|
+ :if={@help != []}
|
137
|
+ class={[
|
138
|
+ "text-sm mt-0.5 text-zinc-600"
|
139
|
+ ]}
|
140
|
+ >
|
141
|
+ {render_slot(@help)}
|
142
|
+ </div>
|
143
|
+ </span>
|
144
|
+ </label>
|
145
|
+ <.field_error :for={msg <- @errors}>{msg}</.field_error>
|
146
|
+ </div>
|
147
|
+ """
|
148
|
+ end
|
149
|
+
|
121
150
|
def input(%{type: "select"} = assigns) do
|
122
151
|
~H"""
|
123
152
|
<div>
|
124
|
- <.label dark={@dark} for={@id}>{@label}</.label>
|
153
|
+ <.label for={@id}>{@label}</.label>
|
125
154
|
<select
|
126
155
|
id={@id}
|
127
156
|
name={@name}
|
128
157
|
class={[
|
129
|
- "px-2 py-1 mt-2 block w-full rounded focus:ring-3 ring-blue-500/50 sm:text-sm sm:leading-6 shadow-inner border !outline-none",
|
130
|
- @dark && "!bg-zinc-900 text-zinc-50 border-zinc-600",
|
131
|
- !@dark && "text-zinc-900 bg-white",
|
158
|
+ "px-2 py-2 mt-2 block w-full rounded focus:ring-0 sm:text-sm sm:leading-6 border !outline-none ring-3 box-border",
|
159
|
+ "text-zinc-900 bg-white focus:ring-4 focus:ring-primary-300",
|
132
160
|
@errors == [] && "border-zinc-300 focus:border-zinc-400",
|
133
161
|
@errors != [] && "border-rose-400 focus:border-rose-400"
|
134
162
|
]}
|
|
@@ -139,6 +167,14 @@ defmodule SigmaKit.Components.Forms do
|
139
167
|
{Phoenix.HTML.Form.options_for_select(@options, @value)}
|
140
168
|
</select>
|
141
169
|
<.field_error :for={msg <- @errors}>{msg}</.field_error>
|
170
|
+ <div
|
171
|
+ :if={@help != []}
|
172
|
+ class={[
|
173
|
+ "text-sm mt-1 ml-2 mb-2 text-zinc-600"
|
174
|
+ ]}
|
175
|
+ >
|
176
|
+ {render_slot(@help)}
|
177
|
+ </div>
|
142
178
|
</div>
|
143
179
|
"""
|
144
180
|
end
|
|
@@ -146,20 +182,50 @@ defmodule SigmaKit.Components.Forms do
|
146
182
|
def input(%{type: "textarea"} = assigns) do
|
147
183
|
~H"""
|
148
184
|
<div>
|
149
|
- <.label dark={@dark} for={@id}>{@label}</.label>
|
185
|
+ <.label for={@id}>{@label}</.label>
|
150
186
|
<textarea
|
151
187
|
id={@id}
|
152
188
|
name={@name}
|
153
189
|
class={[
|
154
|
- "px-2 py-1 mt-2 block w-full rounded focus:ring-0 sm:text-sm sm:leading-6 shadow-inner border !outline-none",
|
190
|
+ "px-2 py-2 mt-2 block w-full rounded focus:ring-0 sm:text-sm sm:leading-6 border !outline-none",
|
155
191
|
"mt-2 block w-full rounded-lg sm:text-sm sm:leading-6 min-h-[6rem] focus:border-primary-500",
|
156
|
- @dark && "!bg-zinc-900 text-zinc-50 border-zinc-600",
|
157
|
- !@dark && "text-zinc-900 bg-white",
|
192
|
+ "text-zinc-900 bg-white focus:ring-4 focus:ring-primary-300",
|
158
193
|
@errors != [] && "border-rose-400 focus:border-rose-400"
|
159
194
|
]}
|
160
195
|
{@rest}
|
161
196
|
>{Phoenix.HTML.Form.normalize_value("textarea", @value)}</textarea>
|
162
197
|
<.field_error :for={msg <- @errors}>{msg}</.field_error>
|
198
|
+ <div
|
199
|
+ :if={@help != []}
|
200
|
+ class={[
|
201
|
+ "text-sm mt-1 ml-2 mb-2 text-zinc-600"
|
202
|
+ ]}
|
203
|
+ >
|
204
|
+ {render_slot(@help)}
|
205
|
+ </div>
|
206
|
+ </div>
|
207
|
+ """
|
208
|
+ end
|
209
|
+
|
210
|
+ def input(%{type: "radio-group"} = assigns) do
|
211
|
+ ~H"""
|
212
|
+ <div>
|
213
|
+ <div :for={{label, value} <- @options}>
|
214
|
+ <label class={[
|
215
|
+ "flex items-center gap-4 text-sm leading-6 text-zinc-900 cursor-pointer hover:bg-gray-100 p-2 rounded"
|
216
|
+ ]}>
|
217
|
+ <input
|
218
|
+ type="radio"
|
219
|
+ name={@name}
|
220
|
+ checked={value == @value || "#{value}" == "#{@value}"}
|
221
|
+ value={value}
|
222
|
+ class="rounded border-zinc-300 text-zinc-900 focus:ring-0 bg-white"
|
223
|
+ {@rest}
|
224
|
+ />
|
225
|
+ {label}
|
226
|
+ </label>
|
227
|
+ </div>
|
228
|
+ <.field_error :for={msg <- @errors}>{msg}</.field_error>
|
163
229
|
</div>
|
164
230
|
"""
|
165
231
|
end
|
|
@@ -168,7 +234,7 @@ defmodule SigmaKit.Components.Forms do
|
168
234
|
def input(assigns) do
|
169
235
|
~H"""
|
170
236
|
<div>
|
171
|
- <.label for={@id} dark={@dark}>
|
237
|
+ <.label for={@id}>
|
172
238
|
{@label}
|
173
239
|
</.label>
|
174
240
|
<input
|
|
@@ -177,9 +243,8 @@ defmodule SigmaKit.Components.Forms do
|
177
243
|
id={@id}
|
178
244
|
value={Phoenix.HTML.Form.normalize_value(@type, @value)}
|
179
245
|
class={[
|
180
|
- "px-2 py-1 mt-2 block w-full rounded sm:text-sm sm:leading-6 border border-zinc-500 focus:border-primary-500 !outline-none ring-3",
|
181
|
- @dark && "!bg-zinc-900 text-zinc-50 border-zinc-600",
|
182
|
- !@dark && "text-zinc-900 bg-white",
|
246
|
+ "px-2 py-2 mt-2 block w-full rounded sm:text-sm sm:leading-6 border focus:border-primary-500 !outline-none box-border",
|
247
|
+ "text-zinc-900 bg-white border-zinc-300 focus:ring-4 focus:ring-primary-300",
|
183
248
|
@errors != [] && "border-rose-400 focus:border-rose-400 !bg-red-100"
|
184
249
|
]}
|
185
250
|
{@rest}
|
|
@@ -188,9 +253,7 @@ defmodule SigmaKit.Components.Forms do
|
188
253
|
<div
|
189
254
|
:if={@help != []}
|
190
255
|
class={[
|
191
|
- "text-sm mt-1 ml-2 mb-2",
|
192
|
- @dark && "text-zinc-300",
|
193
|
- !@dark && "text-zinc-600"
|
256
|
+ "text-sm mt-1 ml-2 mb-2 text-zinc-600"
|
194
257
|
]}
|
195
258
|
>
|
196
259
|
{render_slot(@help)}
|
|
@@ -203,7 +266,6 @@ defmodule SigmaKit.Components.Forms do
|
203
266
|
Renders a label.
|
204
267
|
"""
|
205
268
|
attr :for, :string, default: nil
|
206
|
- attr :dark, :boolean, default: false
|
207
269
|
slot :inner_block, required: true
|
208
270
|
|
209
271
|
def label(assigns) do
|
|
@@ -211,9 +273,7 @@ defmodule SigmaKit.Components.Forms do
|
211
273
|
<label
|
212
274
|
for={@for}
|
213
275
|
class={[
|
214
|
- "block text-sm font-semibold leading-6",
|
215
|
- !@dark && "text-zinc-800",
|
216
|
- @dark && "text-zinc-50"
|
276
|
+ "block text-sm font-semibold leading-6 text-zinc-800"
|
217
277
|
]}
|
218
278
|
>
|
219
279
|
{render_slot(@inner_block)}
|
|
@@ -246,10 +306,12 @@ defmodule SigmaKit.Components.Forms do
|
246
306
|
# dynamically, so we need to translate them by calling Gettext
|
247
307
|
# with our gettext backend as first argument. Translations are
|
248
308
|
# available in the errors.po file (as we use the "errors" domain).
|
309
|
+ gt_module = Application.get_env(:sigma_kit, :gettext)
|
310
|
+
|
249
311
|
if count = opts[:count] do
|
250
|
- Gettext.dngettext(ReportingWeb.Gettext, "errors", msg, msg, count, opts)
|
312
|
+ Gettext.dngettext(gt_module, "errors", msg, msg, count, opts)
|
251
313
|
else
|
252
|
- Gettext.dgettext(ReportingWeb.Gettext, "errors", msg, opts)
|
314
|
+ Gettext.dgettext(gt_module, "errors", msg, opts)
|
253
315
|
end
|
254
316
|
end
|
changed
lib/components/headers.ex
|
@@ -73,8 +73,8 @@ defmodule SigmaKit.Components.Headers do
|
73
73
|
def section_header(assigns) do
|
74
74
|
~H"""
|
75
75
|
<div class={[
|
76
|
- "flex justify-between items-center mt-8 mb-2 pb-1.5",
|
77
|
- @divide && "border-b border-gray-200"
|
76
|
+ "flex justify-between items-center mt-8 mb-2",
|
77
|
+ @divide && "border-b border-gray-200 pb-1.5"
|
78
78
|
]}>
|
79
79
|
<div class="text-lg font-black uppercase">{@title}</div>
|
80
80
|
<div>
|
changed
lib/components/icons.ex
|
@@ -22,6 +22,7 @@ defmodule SigmaKit.Components.Icons do
|
22
22
|
attr :name, :string, required: true, doc: "The name of the icon"
|
23
23
|
attr :class, :any, default: nil, doc: "Additional classes to apply to the icon"
|
24
24
|
slot :inner_block, doc: "Content to be aligned with the icon"
|
25
|
+ attr :spin, :boolean, default: false
|
25
26
|
|
26
27
|
def icon(%{name: "hero-" <> _} = assigns) do
|
27
28
|
~H"""
|
|
@@ -32,4 +33,10 @@ defmodule SigmaKit.Components.Icons do
|
32
33
|
</div>
|
33
34
|
"""
|
34
35
|
end
|
36
|
+
|
37
|
+ def icon(%{name: "fa-" <> _} = assigns) do
|
38
|
+ ~H"""
|
39
|
+ <span class={[@name, @spin && ["animate-spin"], @class]} />
|
40
|
+ """
|
41
|
+ end
|
35
42
|
end
|
changed
lib/components/modal.ex
|
@@ -37,7 +37,8 @@ defmodule SigmaKit.Components.Modal do
|
37
37
|
attr :change, :string, default: "validate", doc: "the phx-change event for the form"
|
38
38
|
attr :submit_text, :string, default: "Submit", doc: "the text for the submit button"
|
39
39
|
attr :target, :any, default: nil, doc: "the target for the form events"
|
40
|
- attr :wide, :boolean, default: true, doc: "whether the modal is wide"
|
40
|
+ attr :thin, :boolean, default: false, doc: "whether the modal is wide"
|
41
|
+ attr :wide, :boolean, default: false, doc: "whether the modal is wide"
|
41
42
|
attr :error, :string, default: nil, doc: "an error message to display"
|
42
43
|
slot :inner_block, required: true, doc: "the slot for the modal content"
|
43
44
|
slot :description, doc: "the slot for the modal description/subheading"
|
|
@@ -68,31 +69,39 @@ defmodule SigmaKit.Components.Modal do
|
68
69
|
aria-modal="true"
|
69
70
|
tabindex="0"
|
70
71
|
>
|
71
|
- <div class="flex min-h-full items-center justify-center text-white">
|
72
|
- <div class={["w-full max-w-lg p-4 sm:p-6 lg:py-8", @wide && "max-w-3xl"]}>
|
72
|
+ <div class="flex min-h-full items-center justify-center text-zinc-800">
|
73
|
+ <div class={[
|
74
|
+ "w-full p-4 sm:p-6 lg:py-8",
|
75
|
+ @wide && "max-w-4xl",
|
76
|
+ @thin && "max-w-sm",
|
77
|
+ !@wide && !@thin && "max-w-lg"
|
78
|
+ ]}>
|
73
79
|
<.focus_wrap
|
74
80
|
id={"#{@id}-container"}
|
75
81
|
phx-window-keydown={!@noclose && JS.exec("data-cancel", to: "##{@id}")}
|
76
82
|
phx-key="escape"
|
77
83
|
phx-click-away={!@noclose && JS.exec("data-cancel", to: "##{@id}")}
|
78
84
|
class={[
|
79
|
- "ring-zinc-700/10 relative rounded-2xl bg-black shadow-lg ring-1 transition overflow-hidden animate-appear"
|
85
|
+ "ring-zinc-700/10 relative rounded bg-zinc-50 shadow-lg ring-1 transition overflow-hidden"
|
80
86
|
]}
|
81
87
|
>
|
82
|
- <div :if={@title} class="font-bold py-2 px-4">
|
88
|
+ <div :if={@title} class="font-bold py-2 px-4 border-b bg-zinc-100">
|
83
89
|
{@title}
|
84
90
|
<p :if={assigns[:description]} class="text-sm mt-1 font-medium">
|
85
91
|
{render_slot(@description)}
|
86
92
|
</p>
|
87
93
|
</div>
|
88
|
- <div :if={@error} class="text-center bg-red-800 text-red-100 font-bold p-2">
|
94
|
+ <div :if={@error} class="text-center bg-red-200 text-red-600 font-bold p-2">
|
89
95
|
{@error}
|
90
96
|
</div>
|
91
97
|
<div :if={assigns[:form] == nil}>
|
92
98
|
<div id={"#{@id}-content"} class="p-8">
|
93
99
|
{render_slot(@inner_block)}
|
94
100
|
</div>
|
95
|
- <div :if={assigns[:actions]} class="mt-4 py-2 px-4 flex justify-end gap-2">
|
101
|
+ <div
|
102
|
+ :if={SigmaKit.Util.present?(assigns[:actions])}
|
103
|
+ class="mt-4 py-2 px-4 flex justify-end gap-2 bg-zinc-100 border-t"
|
104
|
+ >
|
96
105
|
{render_slot(@actions)}
|
97
106
|
</div>
|
98
107
|
</div>
|
|
@@ -111,14 +120,14 @@ defmodule SigmaKit.Components.Modal do
|
111
120
|
{render_slot(@inner_block, f)}
|
112
121
|
</div>
|
113
122
|
</div>
|
114
|
- <div class="py-4 px-8 flex justify-end gap-4 bg-zinc-700 shadow-inset shadow-black mt-12">
|
115
|
- <div :if={assigns[:actions]} class="flex-grow">
|
123
|
+ <div class="py-4 px-8 flex justify-end gap-4 bg-zinc-100 shadow-inset shadow-black mt-12 border-t">
|
124
|
+ <div :if={SigmaKit.Util.present?(assigns[:actions])} class="flex-grow">
|
116
125
|
{render_slot(@actions)}
|
117
126
|
</div>
|
118
|
- <.button dark type="button" phx-click={JS.exec("data-cancel", to: "##{@id}")}>
|
127
|
+ <.button type="button" phx-click={JS.exec("data-cancel", to: "##{@id}")}>
|
119
128
|
Cancel
|
120
129
|
</.button>
|
121
|
- <.button light>
|
130
|
+ <.button primary>
|
122
131
|
{@submit_text}
|
123
132
|
</.button>
|
124
133
|
</div>
|
changed
lib/components/table.ex
|
@@ -30,14 +30,17 @@ defmodule SigmaKit.Components.Table do
|
30
30
|
doc: "the function for mapping each row before calling the :col and :action slots"
|
31
31
|
|
32
32
|
slot :col, required: true, doc: "A column to render for the table" do
|
33
|
- attr :label, :string
|
33
|
+ attr :label, :string, doc: "The label for the column header"
|
34
|
+ attr :shrink, :boolean, doc: "Whether to shrink the column to fit the content"
|
35
|
+ attr :expand, :boolean, doc: "Whether to expand the column to fit the content"
|
34
36
|
end
|
35
37
|
|
36
38
|
slot :action, doc: "An action item to present in a dropdown menu" do
|
37
39
|
attr :label, :string, doc: "The label for the menu item"
|
38
|
- attr :event, :string, doc: "The phx-click event for the menu item"
|
40
|
+ attr :event, :any, doc: "The phx-click event for the menu item"
|
39
41
|
attr :target, :string, doc: "The phx-target for the menu item"
|
40
42
|
attr :icon, :string, doc: "The icon for the menu item"
|
43
|
+ attr :divider, :boolean, doc: "Whether to this item is a divider"
|
41
44
|
end
|
42
45
|
|
43
46
|
def table(%{rows: %Scrivener.Page{}} = assigns) do
|
|
@@ -64,13 +67,13 @@ defmodule SigmaKit.Components.Table do
|
64
67
|
<tr>
|
65
68
|
<th
|
66
69
|
:for={col <- @col}
|
67
|
- class="uppercase p-0 py-1 pr-6 font-bold border-b border-t border-gray-300 text-xs"
|
70
|
+ class="uppercase p-0 py-1 pr-6 font-bold border-b border-gray-300 text-xs"
|
68
71
|
>
|
69
72
|
{col[:label]}
|
70
73
|
</th>
|
71
74
|
<th
|
72
75
|
:if={!SigmaKit.Util.blank?(@action)}
|
73
|
- class="uppercase p-0 py-1 pr-6 font-bold border-b border-t border-gray-300 text-xs"
|
76
|
+ class="uppercase p-0 py-1 pr-6 font-bold border-b border-gray-300 text-xs"
|
74
77
|
>
|
75
78
|
</th>
|
76
79
|
</tr>
|
|
@@ -85,7 +88,7 @@ defmodule SigmaKit.Components.Table do
|
85
88
|
id={"row-#{@id}-#{(@row_id && @row_id.(row)) || row_idx}"}
|
86
89
|
class={[
|
87
90
|
"group",
|
88
|
- @row_click && "hover:bg-gray-100",
|
91
|
+ @row_click && "hover:bg-primary-100",
|
89
92
|
@alternate && "even:bg-gray-50 odd:bg-white"
|
90
93
|
]}
|
91
94
|
>
|
|
@@ -93,17 +96,28 @@ defmodule SigmaKit.Components.Table do
|
93
96
|
:for={{col, i} <- Enum.with_index(@col)}
|
94
97
|
phx-click={@row_click && row_click(row, @row_click)}
|
95
98
|
phx-value-id={(@row_id && @row_id.(row)) || row_idx}
|
96
|
- class={["relative p-0", @row_click && "hover:cursor-pointer"]}
|
99
|
+ class={[
|
100
|
+ "relative p-0",
|
101
|
+ @row_click && "hover:cursor-pointer",
|
102
|
+ col[:shrink] && ["md:w-1 md:text-nowrap"],
|
103
|
+ col[:expand] && ["md:w-full md:text-nowrap"]
|
104
|
+ ]}
|
97
105
|
>
|
98
106
|
<div class="block py-1 pr-6">
|
99
|
- <span class={[
|
100
|
- "absolute -inset-y-px right-0 -left-4 sm:rounded-l-xl",
|
101
|
- @row_click && "group-hover:bg-gray-100"
|
102
|
- ]} />
|
103
|
- <span class={[
|
104
|
- "absolute -inset-y-px left-0 -right-4 sm:rounded-r-xl",
|
105
|
- @row_click && "group-hover:bg-gray-100"
|
106
|
- ]} />
|
107
|
+ <span
|
108
|
+ :if={i == 0}
|
109
|
+ class={[
|
110
|
+ "absolute -inset-y-px right-0 -left-4 rounded-l",
|
111
|
+ @row_click && "group-hover:bg-primary-100"
|
112
|
+ ]}
|
113
|
+ />
|
114
|
+ <span
|
115
|
+ :if={i == length(@rows) - 1}
|
116
|
+ class={[
|
117
|
+ "absolute -inset-y-px left-0 -right-4 rounded-r bg-red",
|
118
|
+ @row_click && "group-hover:bg-primary-100"
|
119
|
+ ]}
|
120
|
+ />
|
107
121
|
<span class={["relative", i == 0 && "font-semibold text-zinc-900"]}>
|
108
122
|
{render_slot(col, @row_item.(row))}
|
109
123
|
</span>
|
|
@@ -113,19 +127,27 @@ defmodule SigmaKit.Components.Table do
|
113
127
|
:if={!SigmaKit.Util.blank?(@action)}
|
114
128
|
class={[
|
115
129
|
"relative w-14 p-0",
|
116
|
- @row_click && "group-hover:bg-gray-100"
|
130
|
+ @row_click && "group-hover:bg-primary-100"
|
117
131
|
]}
|
118
132
|
>
|
133
|
+ <span class={[
|
134
|
+ "absolute -inset-y-px left-0 -right-4 rounded-r bg-red",
|
135
|
+ @row_click && "group-hover:bg-primary-100"
|
136
|
+ ]} />
|
119
137
|
<.action_dropdown
|
120
138
|
id={"actions-#{@id}-#{(@row_id && @row_id.(row)) || row_idx}"}
|
121
|
- class="text-black rounded"
|
139
|
+ class={[
|
140
|
+ "text-black rounded",
|
141
|
+ @row_click && "group-hover:bg-primary-100"
|
142
|
+ ]}
|
122
143
|
>
|
123
144
|
<:action
|
124
145
|
:for={action <- @action}
|
125
146
|
label={action[:label]}
|
126
147
|
icon={action[:icon]}
|
127
|
- event={action[:event]}
|
148
|
+ event={row_click(row, action[:event])}
|
128
149
|
target={action[:target]}
|
150
|
+ divider={action[:divider]}
|
129
151
|
value_id={row.id}
|
130
152
|
/>
|
131
153
|
</.action_dropdown>
|
changed
lib/components/tabs.ex
|
@@ -11,12 +11,15 @@ defmodule SigmaKit.Components.Tabs do
|
11
11
|
navigation, or with LiveView logic.
|
12
12
|
"""
|
13
13
|
attr :id, :string, required: true, doc: "A unique identifier for the tab bar"
|
14
|
- attr :event, :string, doc: "The event to emit when a tab item is selected"
|
15
|
- attr :target, :any, doc: "The target for the event"
|
14
|
+ attr :event, :string, default: nil, doc: "The event to emit when a tab item is selected"
|
15
|
+ attr :target, :any, default: nil, doc: "The target for the event"
|
16
|
+ attr :class, :any, default: nil, doc: "Additional classes to apply to the tab bar"
|
16
17
|
|
17
18
|
slot :tab, doc: "Tab items that are always visible on the tab bar" do
|
18
19
|
attr :icon, :string, doc: "An icon to display on the tab item"
|
19
20
|
attr :label, :string, doc: "The label of the tab item"
|
21
|
+ attr :event, :string, doc: "The phx-click event for the tab"
|
22
|
+ attr :target, :any, doc: "The phx-target for the tab"
|
20
23
|
attr :id, :any, doc: "the value to send when a tab item is selected"
|
21
24
|
attr :active, :boolean, doc: "If true the tab will be styled as active"
|
22
25
|
end
|
|
@@ -34,13 +37,14 @@ defmodule SigmaKit.Components.Tabs do
|
34
37
|
<div class={[
|
35
38
|
"inline-flex gap-2 rounded border shadow-inner ps-1 bg-gray-50 select-none cursor-pointer font-medium text-sm overflow-hidden",
|
36
39
|
SigmaKit.Util.present?(@action) && "pe-0",
|
37
|
- SigmaKit.Util.blank?(@action) && "pe-1"
|
40
|
+ SigmaKit.Util.blank?(@action) && "pe-1",
|
41
|
+ @class
|
38
42
|
]}>
|
39
43
|
<div
|
40
44
|
:for={tab <- @tab}
|
41
|
- phx-click={@event}
|
45
|
+ phx-click={tab[:event] || @event}
|
42
46
|
phx-value-id={tab[:id]}
|
43
|
- phx-target={assigns[:target]}
|
47
|
+ phx-target={tab[:target] || assigns[:target]}
|
44
48
|
class={[
|
45
49
|
"py-2 px-3 transition-all flex items-center duration-300 font-bold",
|
46
50
|
tab[:active] &&
|
changed
mix.exs
|
@@ -4,7 +4,7 @@ defmodule SigmaKit.MixProject do
|
4
4
|
def project do
|
5
5
|
[
|
6
6
|
app: :sigma_kit,
|
7
|
- version: "0.0.4",
|
7
|
+ version: "0.0.5",
|
8
8
|
build_path: "../../_build",
|
9
9
|
config_path: "../../config/config.exs",
|
10
10
|
deps_path: "../../deps",
|
changed
priv/static/sigma_kit.css
|
@@ -1 +1 @@
|
1
|
- /*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.hero-arrow-path{--hero-arrow-path:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"/></svg>');-webkit-mask:var(--hero-arrow-path);mask:var(--hero-arrow-path);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-arrow-path,.hero-chevron-down{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-chevron-down{--hero-chevron-down:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/></svg>');-webkit-mask:var(--hero-chevron-down);mask:var(--hero-chevron-down);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-chevron-left{--hero-chevron-left:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/></svg>');-webkit-mask:var(--hero-chevron-left);mask:var(--hero-chevron-left);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-chevron-left,.hero-chevron-right{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-chevron-right{--hero-chevron-right:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/></svg>');-webkit-mask:var(--hero-chevron-right);mask:var(--hero-chevron-right);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-ellipsis-horizontal{--hero-ellipsis-horizontal:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"/></svg>');height:1.5rem;-webkit-mask:var(--hero-ellipsis-horizontal);mask:var(--hero-ellipsis-horizontal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:1.5rem}.hero-ellipsis-horizontal,.hero-exclamation-circle-mini{background-color:currentColor;display:inline-block;vertical-align:middle}.hero-exclamation-circle-mini{--hero-exclamation-circle-mini:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon"> <path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/></svg>');height:1.25rem;-webkit-mask:var(--hero-exclamation-circle-mini);mask:var(--hero-exclamation-circle-mini);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:1.25rem}.hero-information-circle{--hero-information-circle:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"/></svg>');-webkit-mask:var(--hero-information-circle);mask:var(--hero-information-circle);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-information-circle,.hero-x-mark-solid{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-x-mark-solid{--hero-x-mark-solid:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"> <path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>');-webkit-mask:var(--hero-x-mark-solid);mask:var(--hero-x-mark-solid);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-inset-y-px{bottom:-1px;top:-1px}.-left-4{left:-1rem}.-right-4{right:-1rem}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.me-3{margin-inline-end:.75rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.ms-2{margin-inline-start:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-\[6rem\]{min-height:6rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\[2\.5em\]{width:2.5em}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-3xl{max-width:48rem}.max-w-lg{max-width:32rem}.flex-none{flex:none}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes appear{0%{opacity:0;scale:.8}to{opacity:1;scale:1}}.animate-appear{animation:appear east-out .5s}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-rose-400{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.border-zinc-100{--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity))}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity))}.border-zinc-500{--tw-border-opacity:1;border-color:rgb(113 113 122/var(--tw-border-opacity))}.border-zinc-600{--tw-border-opacity:1;border-color:rgb(82 82 91/var(--tw-border-opacity))}.\!bg-red-100{--tw-bg-opacity:1!important;background-color:rgb(254 226 226/var(--tw-bg-opacity))!important}.\!bg-zinc-900{--tw-bg-opacity:1!important;background-color:rgb(24 24 27/var(--tw-bg-opacity))!important}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/10{background-color:#0000001a}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-200\/50{background-color:#bfdbfe80}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-primary-100{background-color:var(--sigma-primary-100,#ede9fe)}.bg-primary-500{background-color:var(--sigma-primary-500,#8b5cf6)}.bg-primary-600{background-color:var(--sigma-primary-600,#7c3aed)}.bg-primary-700{background-color:var(--sigma-primary-700,#6d28d9)}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.bg-secondary-100{background-color:var(--sigma-secondary-100,#fae8ff)}.bg-secondary-500{background-color:var(--sigma-secondary-500,#d946ef)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-zinc-700{--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity))}.bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-gray-100{--tw-gradient-from:#f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to:#f3f4f600 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-200{--tw-gradient-from:#e5e7eb var(--tw-gradient-from-position);--tw-gradient-to:#e5e7eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-gray-50\/50{--tw-gradient-to:#f9fafb80 var(--tw-gradient-to-position)}.to-white{--tw-gradient-to:#fff var(--tw-gradient-to-position)}.to-20\%{--tw-gradient-to-position:20%}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pe-0{padding-inline-end:0}.pe-1{padding-inline-end:.25rem}.pr-6{padding-right:1.5rem}.ps-1{padding-inline-start:.25rem}.ps-2{padding-inline-start:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-primary-100{color:var(--sigma-primary-100,#ede9fe)}.text-primary-500{color:var(--sigma-primary-500,#8b5cf6)}.text-primary-600{color:var(--sigma-primary-600,#7c3aed)}.text-primary-800{color:var(--sigma-primary-800,#5b21b6)}.text-red-100{--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-800{color:var(--sigma-secondary-800,#86198f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity))}.text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity))}.text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-inner{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 #0000000d;--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-black{--tw-shadow-color:#000;--tw-shadow:var(--tw-shadow-colored)}.\!outline-none{outline:2px solid #0000!important;outline-offset:2px!important}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500\/50{--tw-ring-color:#3b82f680}.ring-zinc-700\/10{--tw-ring-color:#3f3f461a}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:#0000;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}.tippy-box[data-theme~=translucent]{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-arrow{height:14px;width:14px}.tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before{border-top-color:#000000b3;border-width:7px 7px 0}.tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#000000b3;border-width:0 7px 7px}.tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before{border-left-color:#000000b3;border-width:7px 0 7px 7px}.tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before{border-right-color:#000000b3;border-width:7px 7px 7px 0}.tippy-box[data-theme~=translucent]>.tippy-backdrop{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-svg-arrow{fill:#000000b3}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{opacity:0;transform:scale(.5)}.odd\:bg-white:nth-child(odd){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-primary-600:hover{border-color:var(--sigma-primary-600,#7c3aed)}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-primary-800:hover{background-color:var(--sigma-primary-800,#5b21b6)}.hover\:bg-red-900:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.hover\:bg-zinc-700:hover{--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity))}.hover\:bg-gradient-to-t:hover{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-primary-600:hover{color:var(--sigma-primary-600,#7c3aed)}.hover\:text-zinc-50:hover{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity))}.hover\:text-zinc-800:hover{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.focus\:border-primary-500:focus{border-color:var(--sigma-primary-500,#8b5cf6)}.focus\:border-rose-400:focus{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.focus\:border-zinc-400:focus{--tw-border-opacity:1;border-color:rgb(161 161 170/var(--tw-border-opacity))}.focus\:bg-primary-50:focus{background-color:var(--sigma-primary-50,#f5f3ff)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\:text-white\/80:active{color:#fffc}.disabled\:text-gray-800:disabled{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.disabled\:text-zinc-500:disabled{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.disabled\:hover\:bg-transparent:hover:disabled{background-color:initial}.group:hover .group-hover\:bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.group:hover .group-hover\:text-primary-500{color:var(--sigma-primary-500,#8b5cf6)}.group:hover .group-hover\:text-secondary-500{color:var(--sigma-secondary-500,#d946ef)}.group:hover .group-hover\:text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.group:hover .group-hover\:transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.phx-submit-loading .phx-submit-loading\:opacity-75,.phx-submit-loading.phx-submit-loading\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mb-0{margin-bottom:0}.sm\:flex{display:flex}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-l-xl{border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.sm\:rounded-r-xl{border-bottom-right-radius:.75rem;border-top-right-radius:.75rem}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:mx-2{margin-left:.5rem;margin-right:.5rem}.md\:block{display:block}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}}@media (min-width:1024px){.lg\:py-8{padding-bottom:2rem;padding-top:2rem}}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}
|
|
\ No newline at end of file
|
1
|
+ /*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.hero-arrow-path{--hero-arrow-path:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"/></svg>');-webkit-mask:var(--hero-arrow-path);mask:var(--hero-arrow-path);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-arrow-path,.hero-chevron-down{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-chevron-down{--hero-chevron-down:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/></svg>');-webkit-mask:var(--hero-chevron-down);mask:var(--hero-chevron-down);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-chevron-left{--hero-chevron-left:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/></svg>');-webkit-mask:var(--hero-chevron-left);mask:var(--hero-chevron-left);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-chevron-left,.hero-chevron-right{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-chevron-right{--hero-chevron-right:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/></svg>');-webkit-mask:var(--hero-chevron-right);mask:var(--hero-chevron-right);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-ellipsis-horizontal{--hero-ellipsis-horizontal:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"/></svg>');height:1.5rem;-webkit-mask:var(--hero-ellipsis-horizontal);mask:var(--hero-ellipsis-horizontal);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:1.5rem}.hero-ellipsis-horizontal,.hero-exclamation-circle-mini{background-color:currentColor;display:inline-block;vertical-align:middle}.hero-exclamation-circle-mini{--hero-exclamation-circle-mini:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon"> <path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/></svg>');height:1.25rem;-webkit-mask:var(--hero-exclamation-circle-mini);mask:var(--hero-exclamation-circle-mini);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:1.25rem}.hero-information-circle{--hero-information-circle:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> <path stroke-linecap="round" stroke-linejoin="round" d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"/></svg>');-webkit-mask:var(--hero-information-circle);mask:var(--hero-information-circle);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hero-information-circle,.hero-x-mark-solid{background-color:currentColor;display:inline-block;height:1.5rem;vertical-align:middle;width:1.5rem}.hero-x-mark-solid{--hero-x-mark-solid:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"> <path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>');-webkit-mask:var(--hero-x-mark-solid);mask:var(--hero-x-mark-solid);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-inset-y-px{bottom:-1px;top:-1px}.-left-4{left:-1rem}.-right-4{right:-1rem}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.me-3{margin-inline-end:.75rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.ms-2{margin-inline-start:.5rem}.ms-3{margin-inline-start:.75rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-\[6rem\]{min-height:6rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\[2\.5em\]{width:2.5em}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\[44px\]{min-width:44px}.max-w-4xl{max-width:56rem}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-none{flex:none}.shrink{flex-shrink:1}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-appear{animation:east-out appear .5s}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-nowrap{text-wrap:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.rounded-l{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.border-rose-400{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity:1;border-color:rgb(250 204 21/var(--tw-border-opacity))}.border-zinc-100{--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity))}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity))}.\!bg-red-100{--tw-bg-opacity:1!important;background-color:rgb(254 226 226/var(--tw-bg-opacity))!important}.bg-black\/10{background-color:#0000001a}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-200\/50{background-color:#bfdbfe80}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-primary-100{background-color:var(--sigma-primary-100,#ede9fe)}.bg-primary-500{background-color:var(--sigma-primary-500,#8b5cf6)}.bg-primary-600{background-color:var(--sigma-primary-600,#7c3aed)}.bg-primary-700{background-color:var(--sigma-primary-700,#6d28d9)}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-secondary-100{background-color:var(--sigma-secondary-100,#fae8ff)}.bg-secondary-500{background-color:var(--sigma-secondary-500,#d946ef)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71/var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity))}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-gray-100{--tw-gradient-from:#f3f4f6 var(--tw-gradient-from-position);--tw-gradient-to:#f3f4f600 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff var(--tw-gradient-to-position)}.to-20\%{--tw-gradient-to-position:20%}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pe-0{padding-inline-end:0}.pe-1{padding-inline-end:.25rem}.pr-6{padding-right:1.5rem}.ps-1{padding-inline-start:.25rem}.ps-2{padding-inline-start:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.text-primary-100{color:var(--sigma-primary-100,#ede9fe)}.text-primary-500{color:var(--sigma-primary-500,#8b5cf6)}.text-primary-600{color:var(--sigma-primary-600,#7c3aed)}.text-primary-800{color:var(--sigma-primary-800,#5b21b6)}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-secondary-800{color:var(--sigma-secondary-800,#86198f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.text-zinc-300{--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity))}.text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity))}.text-zinc-50{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-inner{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 #0000000d;--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-black{--tw-shadow-color:#000;--tw-shadow:var(--tw-shadow-colored)}.\!outline-none{outline:2px solid #0000!important;outline-offset:2px!important}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-zinc-700\/10{--tw-ring-color:#3f3f461a}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:#0000;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}.tippy-box[data-theme~=translucent]{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-arrow{height:14px;width:14px}.tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before{border-top-color:#000000b3;border-width:7px 7px 0}.tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#000000b3;border-width:0 7px 7px}.tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before{border-left-color:#000000b3;border-width:7px 0 7px 7px}.tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before{border-right-color:#000000b3;border-width:7px 7px 7px 0}.tippy-box[data-theme~=translucent]>.tippy-backdrop{background-color:#000000b3}.tippy-box[data-theme~=translucent]>.tippy-svg-arrow{fill:#000000b3}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{opacity:0;transform:scale(.5)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:start-\[2px\]:after{content:var(--tw-content);inset-inline-start:2px}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\:border:after{border-width:1px;content:var(--tw-content)}.after\:border-gray-300:after{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity));content:var(--tw-content)}.after\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));content:var(--tw-content)}.after\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.odd\:bg-white:nth-child(odd){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.even\:bg-gray-50:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:border-primary-600:hover{border-color:var(--sigma-primary-600,#7c3aed)}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-primary-100:hover{background-color:var(--sigma-primary-100,#ede9fe)}.hover\:bg-primary-800:hover{background-color:var(--sigma-primary-800,#5b21b6)}.hover\:bg-red-900:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.hover\:bg-zinc-700:hover{--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-primary-600:hover{color:var(--sigma-primary-600,#7c3aed)}.hover\:text-zinc-50:hover{--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity))}.hover\:text-zinc-800:hover{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.hover\:text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.focus\:border-primary-500:focus{border-color:var(--sigma-primary-500,#8b5cf6)}.focus\:border-rose-400:focus{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.focus\:border-zinc-400:focus{--tw-border-opacity:1;border-color:rgb(161 161 170/var(--tw-border-opacity))}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-4:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-primary-300:focus{--tw-ring-color:var(--sigma-primary-300,#c4b5fd)}.active\:shadow-inner:active{--tw-shadow:inset 0 2px 4px 0 #0000000d;--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.disabled\:text-gray-800:disabled{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.disabled\:text-zinc-50\/50:disabled{color:#fafafa80}.disabled\:text-zinc-500:disabled{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.disabled\:text-zinc-500\/50:disabled{color:#71717a80}.disabled\:hover\:bg-transparent:hover:disabled{background-color:initial}.group:hover .group-hover\:bg-primary-100{background-color:var(--sigma-primary-100,#ede9fe)}.group:hover .group-hover\:text-primary-500{color:var(--sigma-primary-500,#8b5cf6)}.group:hover .group-hover\:text-secondary-500{color:var(--sigma-secondary-500,#d946ef)}.group:hover .group-hover\:text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.group:hover .group-hover\:transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.peer:checked~.peer-checked\:bg-primary-600{background-color:var(--sigma-primary-600,#7c3aed)}.peer:checked~.peer-checked\:after\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content)}.peer:focus~.peer-focus\:outline-none{outline:2px solid #0000;outline-offset:2px}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus~.peer-focus\:ring-primary-300{--tw-ring-color:var(--sigma-primary-300,#c4b5fd)}.phx-submit-loading .phx-submit-loading\:opacity-75,.phx-submit-loading.phx-submit-loading\:opacity-75{opacity:.75}@media (min-width:640px){.sm\:mb-0{margin-bottom:0}.sm\:flex{display:flex}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:overflow-visible{overflow:visible}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:mx-2{margin-left:.5rem;margin-right:.5rem}.md\:block{display:block}.md\:w-1{width:.25rem}.md\:w-full{width:100%}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.md\:text-nowrap{text-wrap:nowrap}}@media (min-width:1024px){.lg\:py-8{padding-bottom:2rem;padding-top:2rem}}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.peer:checked~.rtl\:peer-checked\:after\:-translate-x-full:where([dir=rtl],[dir=rtl] *):after{--tw-translate-x:-100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
|
\ No newline at end of file
|
changed
priv/static/sigma_kit.js
|
@@ -1,6 +1,6 @@
|
1
|
- var fo=Object.defineProperty,Gg=Object.defineProperties,Qg=Object.getOwnPropertyDescriptor,Kg=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertyNames,uo=Object.getOwnPropertySymbols;var Al=Object.prototype.hasOwnProperty,ef=Object.prototype.propertyIsEnumerable;var Il=(n,t,e)=>t in n?fo(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,L=(n,t)=>{for(var e in t||(t={}))Al.call(t,e)&&Il(n,e,t[e]);if(uo)for(var e of uo(t))ef.call(t,e)&&Il(n,e,t[e]);return n},ct=(n,t)=>Gg(n,Kg(t));var Er=(n,t)=>{var e={};for(var i in n)Al.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&uo)for(var i of uo(n))t.indexOf(i)<0&&ef.call(n,i)&&(e[i]=n[i]);return e};var ty=(n,t)=>{for(var e in t)fo(n,e,{get:t[e],enumerable:!0})},ey=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Jg(t))!Al.call(n,r)&&r!==e&&fo(n,r,{get:()=>t[r],enumerable:!(i=Qg(t,r))||i.enumerable});return n};var ny=n=>ey(fo({},"__esModule",{value:!0}),n);var v=(n,t,e)=>(Il(n,typeof t!="symbol"?t+"":t,e),e);var GM={};ty(GM,{default:()=>XM});module.exports=ny(GM);function Cr(n){return n+.5|0}var mn=(n,t,e)=>Math.max(Math.min(n,e),t);function Pr(n){return mn(Cr(n*2.55),0,255)}function pn(n){return mn(Cr(n*255),0,255)}function Ue(n){return mn(Cr(n/2.55)/100,0,1)}function nf(n){return mn(Cr(n*100),0,100)}var ae={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Fl=[..."0123456789ABCDEF"],iy=n=>Fl[n&15],ry=n=>Fl[(n&240)>>4]+Fl[n&15],ho=n=>(n&240)>>4===(n&15),sy=n=>ho(n.r)&&ho(n.g)&&ho(n.b)&&ho(n.a);function oy(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&ae[n[1]]*17,g:255&ae[n[2]]*17,b:255&ae[n[3]]*17,a:t===5?ae[n[4]]*17:255}:(t===7||t===9)&&(e={r:ae[n[1]]<<4|ae[n[2]],g:ae[n[3]]<<4|ae[n[4]],b:ae[n[5]]<<4|ae[n[6]],a:t===9?ae[n[7]]<<4|ae[n[8]]:255})),e}var ay=(n,t)=>n<255?t(n):"";function ly(n){var t=sy(n)?iy:ry;return n?"#"+t(n.r)+t(n.g)+t(n.b)+ay(n.a,t):void 0}var cy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function af(n,t,e){let i=t*Math.min(e,1-e),r=(s,o=(s+n/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function uy(n,t,e){let i=(r,s=(r+n/60)%6)=>e-e*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function fy(n,t,e){let i=af(n,1,.5),r;for(t+e>1&&(r=1/(t+e),t*=r,e*=r),r=0;r<3;r++)i[r]*=1-t-e,i[r]+=t;return i}function dy(n,t,e,i,r){return n===r?(t-e)/i+(t<e?6:0):t===r?(e-n)/i+2:(n-t)/i+4}function Nl(n){let e=n.r/255,i=n.g/255,r=n.b/255,s=Math.max(e,i,r),o=Math.min(e,i,r),a=(s+o)/2,l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=dy(e,i,r,u,s),l=l*60+.5),[l|0,c||0,a]}function Rl(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(pn)}function Wl(n,t,e){return Rl(af,n,t,e)}function hy(n,t,e){return Rl(fy,n,t,e)}function go(n,t,e){return Rl(uy,n,t,e)}function lf(n){return(n%360+360)%360}function my(n){let t=cy.exec(n),e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?Pr(+t[5]):pn(+t[5]));let r=lf(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=hy(r,s,o):t[1]==="hsv"?i=go(r,s,o):i=Wl(r,s,o),{r:i[0],g:i[1],b:i[2],a:e}}function py(n,t){var e=Nl(n);e[0]=lf(e[0]+t),e=Wl(e),n.r=e[0],n.g=e[1],n.b=e[2]}function gy(n){if(!n)return;let t=Nl(n),e=t[0],i=nf(t[1]),r=nf(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${r}%, ${Ue(n.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var rf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},sf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function yy(){let n={},t=Object.keys(sf),e=Object.keys(rf),i,r,s,o,a;for(i=0;i<t.length;i++){for(o=a=t[i],r=0;r<e.length;r++)s=e[r],a=a.replace(s,rf[s]);s=parseInt(sf[o],16),n[a]=[s>>16&255,s>>8&255,s&255]}return n}var mo;function xy(n){mo||(mo=yy(),mo.transparent=[0,0,0,0]);let t=mo[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var by=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vy(n){let t=by.exec(n),e=255,i,r,s;if(t){if(t[7]!==i){let o=+t[7];e=t[8]?Pr(o):mn(o*255,0,255)}return i=+t[1],r=+t[3],s=+t[5],i=255&(t[2]?Pr(i):mn(i,0,255)),r=255&(t[4]?Pr(r):mn(r,0,255)),s=255&(t[6]?Pr(s):mn(s,0,255)),{r:i,g:r,b:s,a:e}}}function wi(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Ue(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}var Ll=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,vi=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function wy(n,t,e){let i=vi(Ue(n.r)),r=vi(Ue(n.g)),s=vi(Ue(n.b));return{r:pn(Ll(i+e*(vi(Ue(t.r))-i))),g:pn(Ll(r+e*(vi(Ue(t.g))-r))),b:pn(Ll(s+e*(vi(Ue(t.b))-s))),a:n.a+e*(t.a-n.a)}}function po(n,t,e){if(n){let i=Nl(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=Wl(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function cf(n,t){return n&&Object.assign(t||{},n)}function of(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=pn(n[3]))):(t=cf(n,{r:0,g:0,b:0,a:1}),t.a=pn(t.a)),t}function _y(n){return n.charAt(0)==="r"?vy(n):my(n)}var gn=class{constructor(t){if(t instanceof gn)return t;let e=typeof t,i;e==="object"?i=of(t):e==="string"&&(i=oy(t)||xy(t)||_y(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=cf(this._rgb);return t&&(t.a=Ue(t.a)),t}set rgb(t){this._rgb=of(t)}rgbString(){return this._valid?wi(this._rgb):void 0}hexString(){return this._valid?ly(this._rgb):void 0}hslString(){return this._valid?gy(this._rgb):void 0}mix(t,e){if(t){let i=this.rgb,r=t.rgb,s,o=e===s?.5:e,a=2*o-1,l=i.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=wy(this._rgb,t._rgb,e)),this}clone(){return new gn(this.rgb)}alpha(t){return this._rgb.a=pn(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=Cr(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return po(this._rgb,2,t),this}darken(t){return po(this._rgb,2,-t),this}saturate(t){return po(this._rgb,1,t),this}desaturate(t){return po(this._rgb,1,-t),this}rotate(t){return py(this._rgb,t),this}};function Ne(){}var vf=(()=>{let n=0;return()=>n++})();function X(n){return n==null}function dt(n){if(Array.isArray&&Array.isArray(n))return!0;let t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function K(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function yt(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function Zt(n,t){return yt(n)?n:t}function $(n,t){return typeof n=="undefined"?t:n}var wf=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,Bl=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function ut(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function ot(n,t,e,i){let r,s,o;if(dt(n))if(s=n.length,i)for(r=s-1;r>=0;r--)t.call(e,n[r],r);else for(r=0;r<s;r++)t.call(e,n[r],r);else if(K(n))for(o=Object.keys(n),s=o.length,r=0;r<s;r++)t.call(e,n[o[r]],o[r])}function Lr(n,t){let e,i,r,s;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(r=n[e],s=t[e],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function vo(n){if(dt(n))return n.map(vo);if(K(n)){let t=Object.create(null),e=Object.keys(n),i=e.length,r=0;for(;r<i;++r)t[e[r]]=vo(n[e[r]]);return t}return n}function _f(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function Oy(n,t,e,i){if(!_f(n))return;let r=t[n],s=e[n];K(r)&&K(s)?Oi(r,s,i):t[n]=vo(s)}function Oi(n,t,e){let i=dt(t)?t:[t],r=i.length;if(!K(n))return n;e=e||{};let s=e.merger||Oy,o;for(let a=0;a<r;++a){if(o=i[a],!K(o))continue;let l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],n,o,e)}return n}function Ti(n,t){return Oi(n,t,{merger:My})}function My(n,t,e){if(!_f(n))return;let i=t[n],r=e[n];K(i)&&K(r)?Ti(i,r):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=vo(r))}var uf={"":n=>n,x:n=>n.x,y:n=>n.y};function Ty(n){let t=n.split("."),e=[],i="";for(let r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function ky(n){let t=Ty(n);return e=>{for(let i of t){if(i==="")break;e=e&&e[i]}return e}}function Xe(n,t){return(uf[t]||(uf[t]=ky(t)))(n)}function Mo(n){return n.charAt(0).toUpperCase()+n.slice(1)}var ki=n=>typeof n!="undefined",qe=n=>typeof n=="function",Yl=(n,t)=>{if(n.size!==t.size)return!1;for(let e of n)if(!t.has(e))return!1;return!0};function Of(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}var ht=Math.PI,mt=2*ht,Dy=mt+ht,wo=Number.POSITIVE_INFINITY,Sy=ht/180,wt=ht/2,Nn=ht/4,ff=ht*2/3,Ze=Math.log10,be=Math.sign;function Di(n,t,e){return Math.abs(n-t)<e}function jl(n){let t=Math.round(n);n=Di(n,t,n/1e3)?t:n;let e=Math.pow(10,Math.floor(Ze(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Mf(n){let t=[],e=Math.sqrt(n),i;for(i=1;i<e;i++)n%i===0&&(t.push(i),t.push(n/i));return e===(e|0)&&t.push(e),t.sort((r,s)=>r-s).pop(),t}function Ey(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function Hn(n){return!Ey(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function Tf(n,t){let e=Math.round(n);return e-t<=n&&e+t>=n}function $l(n,t,e){let i,r,s;for(i=0,r=n.length;i<r;i++)s=n[i][e],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function le(n){return n*(ht/180)}function To(n){return n*(180/ht)}function Ul(n){if(!yt(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function ql(n,t){let e=t.x-n.x,i=t.y-n.y,r=Math.sqrt(e*e+i*i),s=Math.atan2(i,e);return s<-.5*ht&&(s+=mt),{angle:s,distance:r}}function _o(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Py(n,t){return(n-t+Dy)%mt-ht}function qt(n){return(n%mt+mt)%mt}function Si(n,t,e,i){let r=qt(n),s=qt(t),o=qt(e),a=qt(s-r),l=qt(o-r),c=qt(r-s),u=qt(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function Et(n,t,e){return Math.max(t,Math.min(e,n))}function kf(n){return Et(n,-32768,32767)}function Re(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function ko(n,t,e){e=e||(o=>n[o]<t);let i=n.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,e(s)?r=s:i=s;return{lo:r,hi:i}}var Le=(n,t,e,i)=>ko(n,e,i?r=>{let s=n[r][t];return s<e||s===e&&n[r+1][t]===e}:r=>n[r][t]<e),Df=(n,t,e)=>ko(n,e,i=>n[i][t]>=e);function Sf(n,t,e){let i=0,r=n.length;for(;i<r&&n[i]<t;)i++;for(;r>i&&n[r-1]>e;)r--;return i>0||r<n.length?n.slice(i,r):n}var Ef=["push","pop","shift","splice","unshift"];function Pf(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Ef.forEach(e=>{let i="_onData"+Mo(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...s){let o=r.apply(this,s);return n._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function Zl(n,t){let e=n._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(Ef.forEach(s=>{delete n[s]}),delete n._chartjs)}function Xl(n){let t=new Set(n);return t.size===n.length?n:Array.from(t)}var Gl=function(){return typeof window=="undefined"?function(n){return n()}:window.requestAnimationFrame}();function Ql(n,t){let e=[],i=!1;return function(...r){e=r,i||(i=!0,Gl.call(window,()=>{i=!1,n.apply(t,e)}))}}function Cf(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}var Do=n=>n==="start"?"left":n==="end"?"right":"center",Ht=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,If=(n,t,e,i)=>n===(i?"left":"right")?e:n==="center"?(t+e)/2:t;function Kl(n,t,e){let i=t.length,r=0,s=i;if(n._sorted){let{iScale:o,vScale:a,_parsed:l}=n,c=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null,u=o.axis,{min:f,max:d,minDefined:h,maxDefined:m}=o.getUserBounds();if(h){if(r=Math.min(Le(l,u,f).lo,e?i:Le(t,u,o.getPixelForValue(f)).lo),c){let p=l.slice(0,r+1).reverse().findIndex(y=>!X(y[a.axis]));r-=Math.max(0,p)}r=Et(r,0,i-1)}if(m){let p=Math.max(Le(l,o.axis,d,!0).hi+1,e?0:Le(t,u,o.getPixelForValue(d),!0).hi+1);if(c){let y=l.slice(p-1).findIndex(x=>!X(x[a.axis]));p+=Math.max(0,y)}s=Et(p,r,i)-r}else s=i-r}return{start:r,count:s}}function Jl(n){let{xScale:t,yScale:e,_scaleRanges:i}=n,r={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=r,!0;let s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),s}var yo=n=>n===0||n===1,df=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*mt/e)),hf=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*mt/e)+1,_i={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*wt)+1,easeOutSine:n=>Math.sin(n*wt),easeInOutSine:n=>-.5*(Math.cos(ht*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>yo(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>yo(n)?n:df(n,.075,.3),easeOutElastic:n=>yo(n)?n:hf(n,.075,.3),easeInOutElastic(n){return yo(n)?n:n<.5?.5*df(n*2,.1125,.45):.5+.5*hf(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-_i.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?_i.easeInBounce(n*2)*.5:_i.easeOutBounce(n*2-1)*.5+.5};function tc(n){if(n&&typeof n=="object"){let t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ec(n){return tc(n)?n:new gn(n)}function Hl(n){return tc(n)?n:new gn(n).saturate(.5).darken(.1).hexString()}var Cy=["x","y","borderWidth","radius","tension"],Iy=["color","borderColor","backgroundColor"];function Ay(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:Iy},numbers:{type:"number",properties:Cy}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Ly(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var mf=new Map;function Fy(n,t){t=t||{};let e=n+JSON.stringify(t),i=mf.get(e);return i||(i=new Intl.NumberFormat(n,t),mf.set(e,i)),i}function Ei(n,t,e){return Fy(t,e).format(n)}var Af={values(n){return dt(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";let i=this.chart.options.locale,r,s=n;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=Ny(n,e)}let o=Ze(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ei(n,i,l)},logarithmic(n,t,e){if(n===0)return"0";let i=e[t].significand||n/Math.pow(10,Math.floor(Ze(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?Af.numeric.call(this,n,t,e):""}};function Ny(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var Fr={formatters:Af};function Ry(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var xn=Object.create(null),So=Object.create(null);function Ir(n,t){if(!t)return n;let e=t.split(".");for(let i=0,r=e.length;i<r;++i){let s=e[i];n=n[s]||(n[s]=Object.create(null))}return n}function Vl(n,t,e){return typeof t=="string"?Oi(Ir(n,t),e):Oi(Ir(n,""),t)}var zl=class{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Hl(r.backgroundColor),this.hoverBorderColor=(i,r)=>Hl(r.borderColor),this.hoverColor=(i,r)=>Hl(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Vl(this,t,e)}get(t){return Ir(this,t)}describe(t,e){return Vl(So,t,e)}override(t,e){return Vl(xn,t,e)}route(t,e,i,r){let s=Ir(this,t),o=Ir(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[a],c=o[r];return K(l)?Object.assign({},c,l):$(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}},pt=new zl({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ay,Ly,Ry]);function Wy(n){return!n||X(n.size)||X(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Ar(n,t,e,i,r){let s=t[r];return s||(s=t[r]=n.measureText(r).width,e.push(r)),s>i&&(i=s),i}function Lf(n,t,e,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let o=0,a=e.length,l,c,u,f,d;for(l=0;l<a;l++)if(f=e[l],f!=null&&!dt(f))o=Ar(n,r,s,o,f);else if(dt(f))for(c=0,u=f.length;c<u;c++)d=f[c],d!=null&&!dt(d)&&(o=Ar(n,r,s,o,d));n.restore();let h=s.length/2;if(h>e.length){for(l=0;l<h;l++)delete r[s[l]];s.splice(0,h)}return o}function bn(n,t,e){let i=n.currentDevicePixelRatio,r=e!==0?Math.max(e/2,.5):0;return Math.round((t-r)*i)/i+r}function nc(n,t){!t&&!n||(t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore())}function Eo(n,t,e,i){ic(n,t,e,i,null)}function ic(n,t,e,i,r){let s,o,a,l,c,u,f,d,h=t.pointStyle,m=t.rotation,p=t.radius,y=(m||0)*Sy;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){n.save(),n.translate(e,i),n.rotate(y),n.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),n.restore();return}if(!(isNaN(p)||p<=0)){switch(n.beginPath(),h){default:r?n.ellipse(e,i,r/2,p,0,0,mt):n.arc(e,i,p,0,mt),n.closePath();break;case"triangle":u=r?r/2:p,n.moveTo(e+Math.sin(y)*u,i-Math.cos(y)*p),y+=ff,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*p),y+=ff,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*p),n.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(y+Nn)*l,f=Math.cos(y+Nn)*(r?r/2-c:l),a=Math.sin(y+Nn)*l,d=Math.sin(y+Nn)*(r?r/2-c:l),n.arc(e-f,i-a,c,y-ht,y-wt),n.arc(e+d,i-o,c,y-wt,y),n.arc(e+f,i+a,c,y,y+wt),n.arc(e-d,i+o,c,y+wt,y+ht),n.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=r?r/2:l,n.rect(e-u,i-l,2*u,2*l);break}y+=Nn;case"rectRot":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+d,i-o),n.lineTo(e+f,i+a),n.lineTo(e-d,i+o),n.closePath();break;case"crossRot":y+=Nn;case"cross":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o);break;case"star":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o),y+=Nn,f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o);break;case"line":o=r?r/2:Math.cos(y)*p,a=Math.sin(y)*p,n.moveTo(e-o,i-a),n.lineTo(e+o,i+a);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(y)*(r?r/2:p),i+Math.sin(y)*p);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function Fe(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function Nr(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Rr(n){n.restore()}function Ff(n,t,e,i,r){if(!t)return n.lineTo(e.x,e.y);if(r==="middle"){let s=(t.x+e.x)/2;n.lineTo(s,t.y),n.lineTo(s,e.y)}else r==="after"!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function Nf(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function Hy(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),X(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}function Vy(n,t,e,i,r){if(r.strikethrough||r.underline){let s=n.measureText(i),o=t-s.actualBoundingBoxLeft,a=t+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=r.decorationWidth||2,n.moveTo(o,u),n.lineTo(a,u),n.stroke()}}function zy(n,t){let e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function vn(n,t,e,i,r,s={}){let o=dt(t)?t:[t],a=s.strokeWidth>0&&s.strokeColor!=="",l,c;for(n.save(),n.font=r.string,Hy(n,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&zy(n,s.backdrop),a&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),X(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(c,e,i,s.maxWidth)),n.fillText(c,e,i,s.maxWidth),Vy(n,e,i,c,s),i+=Number(r.lineHeight);n.restore()}function Pi(n,t){let{x:e,y:i,w:r,h:s,radius:o}=t;n.arc(e+o.topLeft,i+o.topLeft,o.topLeft,1.5*ht,ht,!0),n.lineTo(e,i+s-o.bottomLeft),n.arc(e+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,ht,wt,!0),n.lineTo(e+r-o.bottomRight,i+s),n.arc(e+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,wt,0,!0),n.lineTo(e+r,i+o.topRight),n.arc(e+r-o.topRight,i+o.topRight,o.topRight,0,-wt,!0),n.lineTo(e+o.topLeft,i)}var By=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Yy=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function jy(n,t){let e=(""+n).match(By);if(!e||e[1]==="normal")return t*1.2;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100;break}return t*n}var $y=n=>+n||0;function Po(n,t){let e={},i=K(t),r=i?Object.keys(t):t,s=K(n)?i?o=>$(n[o],n[t[o]]):o=>n[o]:()=>n;for(let o of r)e[o]=$y(s(o));return e}function rc(n){return Po(n,{top:"y",right:"x",bottom:"y",left:"x"})}function wn(n){return Po(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Vt(n){let t=rc(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Dt(n,t){n=n||{},t=t||pt.font;let e=$(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=$(n.style,t.style);i&&!(""+i).match(Yy)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:$(n.family,t.family),lineHeight:jy($(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:$(n.weight,t.weight),string:""};return r.string=Wy(r),r}function Ci(n,t,e,i){let r=!0,s,o,a;for(s=0,o=n.length;s<o;++s)if(a=n[s],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),r=!1),e!==void 0&&dt(a)&&(a=a[e%a.length],r=!1),a!==void 0))return i&&!r&&(i.cacheable=!1),a}function Rf(n,t,e){let{min:i,max:r}=n,s=Bl(t,(r-i)/2),o=(a,l)=>e&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Ge(n,t){return Object.assign(Object.create(n),t)}function Co(n,t=[""],e,i,r=()=>n[0]){let s=e||n;typeof i=="undefined"&&(i=Vf("_fallback",n));let o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>Co([a,...n],t,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete n[0][l],!0},get(a,l){return Wf(a,l,()=>Jy(l,t,n,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(a,l){return gf(a).includes(l)},ownKeys(a){return gf(a)},set(a,l,c){let u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function Wn(n,t,e,i){let r={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:sc(n,i),setContext:s=>Wn(n,s,e,i),override:s=>Wn(n.override(s),t,e,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete n[o],!0},get(s,o,a){return Wf(s,o,()=>qy(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(n,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,o)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(s,o){return Reflect.has(n,o)},ownKeys(){return Reflect.ownKeys(n)},set(s,o,a){return n[o]=a,delete s[o],!0}})}function sc(n,t={scriptable:!0,indexable:!0}){let{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=n;return{allKeys:r,scriptable:e,indexable:i,isScriptable:qe(e)?e:()=>e,isIndexable:qe(i)?i:()=>i}}var Uy=(n,t)=>n?n+Mo(t):t,oc=(n,t)=>K(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Wf(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];let i=e();return n[t]=i,i}function qy(n,t,e){let{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=n,a=i[t];return qe(a)&&o.isScriptable(t)&&(a=Zy(t,a,n,e)),dt(a)&&a.length&&(a=Xy(t,a,n,o.isIndexable)),oc(t,a)&&(a=Wn(a,r,s&&s[t],o)),a}function Zy(n,t,e,i){let{_proxy:r,_context:s,_subProxy:o,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let l=t(s,o||i);return a.delete(n),oc(n,l)&&(l=ac(r._scopes,r,n,l)),l}function Xy(n,t,e,i){let{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=e;if(typeof s.index!="undefined"&&i(n))return t[s.index%t.length];if(K(t[0])){let l=t,c=r._scopes.filter(u=>u!==l);t=[];for(let u of l){let f=ac(c,r,n,u);t.push(Wn(f,s,o&&o[n],a))}}return t}function Hf(n,t,e){return qe(n)?n(t,e):n}var Gy=(n,t)=>n===!0?t:typeof n=="string"?Xe(t,n):void 0;function Qy(n,t,e,i,r){for(let s of t){let o=Gy(e,s);if(o){n.add(o);let a=Hf(o._fallback,e,r);if(typeof a!="undefined"&&a!==e&&a!==i)return a}else if(o===!1&&typeof i!="undefined"&&e!==i)return null}return!1}function ac(n,t,e,i){let r=t._rootScopes,s=Hf(t._fallback,e,i),o=[...n,...r],a=new Set;a.add(i);let l=pf(a,o,e,s||e,i);return l===null||typeof s!="undefined"&&s!==e&&(l=pf(a,o,s,l,i),l===null)?!1:Co(Array.from(a),[""],r,s,()=>Ky(t,e,i))}function pf(n,t,e,i,r){for(;e;)e=Qy(n,t,e,i,r);return e}function Ky(n,t,e){let i=n._getTarget();t in i||(i[t]={});let r=i[t];return dt(r)&&K(e)?e:r||{}}function Jy(n,t,e,i){let r;for(let s of t)if(r=Vf(Uy(s,n),e),typeof r!="undefined")return oc(n,r)?ac(e,i,n,r):r}function Vf(n,t){for(let e of t){if(!e)continue;let i=e[n];if(typeof i!="undefined")return i}}function gf(n){let t=n._keys;return t||(t=n._keys=tx(n._scopes)),t}function tx(n){let t=new Set;for(let e of n)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function lc(n,t,e,i){let{iScale:r}=n,{key:s="r"}=this._parsing,o=new Array(i),a,l,c,u;for(a=0,l=i;a<l;++a)c=a+e,u=t[c],o[a]={r:r.parse(Xe(u,s),c)};return o}var ex=Number.EPSILON||1e-14,Mi=(n,t)=>t<n.length&&!n[t].skip&&n[t],zf=n=>n==="x"?"y":"x";function nx(n,t,e,i){let r=n.skip?t:n,s=t,o=e.skip?t:e,a=_o(s,r),l=_o(o,s),c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;let f=i*c,d=i*u;return{previous:{x:s.x-f*(o.x-r.x),y:s.y-f*(o.y-r.y)},next:{x:s.x+d*(o.x-r.x),y:s.y+d*(o.y-r.y)}}}function ix(n,t,e){let i=n.length,r,s,o,a,l,c=Mi(n,0);for(let u=0;u<i-1;++u)if(l=c,c=Mi(n,u+1),!(!l||!c)){if(Di(t[u],0,ex)){e[u]=e[u+1]=0;continue}r=e[u]/t[u],s=e[u+1]/t[u],a=Math.pow(r,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),e[u]=r*o*t[u],e[u+1]=s*o*t[u])}}function rx(n,t,e="x"){let i=zf(e),r=n.length,s,o,a,l=Mi(n,0);for(let c=0;c<r;++c){if(o=a,a=l,l=Mi(n,c+1),!a)continue;let u=a[e],f=a[i];o&&(s=(u-o[e])/3,a[`cp1${e}`]=u-s,a[`cp1${i}`]=f-s*t[c]),l&&(s=(l[e]-u)/3,a[`cp2${e}`]=u+s,a[`cp2${i}`]=f+s*t[c])}}function sx(n,t="x"){let e=zf(t),i=n.length,r=Array(i).fill(0),s=Array(i),o,a,l,c=Mi(n,0);for(o=0;o<i;++o)if(a=l,l=c,c=Mi(n,o+1),!!l){if(c){let u=c[t]-l[t];r[o]=u!==0?(c[e]-l[e])/u:0}s[o]=a?c?be(r[o-1])!==be(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}ix(n,r,s),rx(n,s,t)}function xo(n,t,e){return Math.max(Math.min(n,e),t)}function ox(n,t){let e,i,r,s,o,a=Fe(n[0],t);for(e=0,i=n.length;e<i;++e)o=s,s=a,a=e<i-1&&Fe(n[e+1],t),s&&(r=n[e],o&&(r.cp1x=xo(r.cp1x,t.left,t.right),r.cp1y=xo(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=xo(r.cp2x,t.left,t.right),r.cp2y=xo(r.cp2y,t.top,t.bottom)))}function Bf(n,t,e,i,r){let s,o,a,l;if(t.spanGaps&&(n=n.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")sx(n,r);else{let c=i?n[n.length-1]:n[0];for(s=0,o=n.length;s<o;++s)a=n[s],l=nx(c,a,n[Math.min(s+1,o-(i?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&ox(n,e)}function Io(){return typeof window!="undefined"&&typeof document!="undefined"}function Ao(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Oo(n,t,e){let i;return typeof n=="string"?(i=parseInt(n,10),n.indexOf("%")!==-1&&(i=i/100*t.parentNode[e])):i=n,i}var Lo=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function ax(n,t){return Lo(n).getPropertyValue(t)}var lx=["top","right","bottom","left"];function Rn(n,t,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let s=lx[r];i[s]=parseFloat(n[t+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var cx=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function ux(n,t){let e=n.touches,i=e&&e.length?e[0]:n,{offsetX:r,offsetY:s}=i,o=!1,a,l;if(cx(r,s,n.target))a=r,l=s;else{let c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function _n(n,t){if("native"in n)return n;let{canvas:e,currentDevicePixelRatio:i}=t,r=Lo(e),s=r.boxSizing==="border-box",o=Rn(r,"padding"),a=Rn(r,"border","width"),{x:l,y:c,box:u}=ux(n,e),f=o.left+(u&&a.left),d=o.top+(u&&a.top),{width:h,height:m}=t;return s&&(h-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-f)/h*e.width/i),y:Math.round((c-d)/m*e.height/i)}}function fx(n,t,e){let i,r;if(t===void 0||e===void 0){let s=n&&Ao(n);if(!s)t=n.clientWidth,e=n.clientHeight;else{let o=s.getBoundingClientRect(),a=Lo(s),l=Rn(a,"border","width"),c=Rn(a,"padding");t=o.width-c.width-l.width,e=o.height-c.height-l.height,i=Oo(a.maxWidth,s,"clientWidth"),r=Oo(a.maxHeight,s,"clientHeight")}}return{width:t,height:e,maxWidth:i||wo,maxHeight:r||wo}}var bo=n=>Math.round(n*10)/10;function Yf(n,t,e,i){let r=Lo(n),s=Rn(r,"margin"),o=Oo(r.maxWidth,n,"clientWidth")||wo,a=Oo(r.maxHeight,n,"clientHeight")||wo,l=fx(n,t,e),{width:c,height:u}=l;if(r.boxSizing==="content-box"){let d=Rn(r,"border","width"),h=Rn(r,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=bo(Math.min(c,o,l.maxWidth)),u=bo(Math.min(u,a,l.maxHeight)),c&&!u&&(u=bo(c/2)),(t!==void 0||e!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=bo(Math.floor(u*i))),{width:c,height:u}}function cc(n,t,e){let i=t||1,r=Math.floor(n.height*i),s=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);let o=n.canvas;return o.style&&(e||!o.style.height&&!o.style.width)&&(o.style.height=`${n.height}px`,o.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||o.height!==r||o.width!==s?(n.currentDevicePixelRatio=i,o.height=r,o.width=s,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}var jf=function(){let n=!1;try{let t={get passive(){return n=!0,!1}};Io()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return n}();function uc(n,t){let e=ax(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function yn(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function $f(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function Uf(n,t,e,i){let r={x:n.cp2x,y:n.cp2y},s={x:t.cp1x,y:t.cp1y},o=yn(n,r,e),a=yn(r,s,e),l=yn(s,t,e),c=yn(o,a,e),u=yn(a,l,e);return yn(c,u,e)}var dx=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},hx=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Vn(n,t,e){return n?dx(t,e):hx()}function fc(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function dc(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function qf(n){return n==="angle"?{between:Si,compare:Py,normalize:qt}:{between:Re,compare:(t,e)=>t-e,normalize:t=>t}}function yf({start:n,end:t,count:e,loop:i,style:r}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:r}}function mx(n,t,e){let{property:i,start:r,end:s}=e,{between:o,normalize:a}=qf(i),l=t.length,{start:c,end:u,loop:f}=n,d,h;if(f){for(c+=l,u+=l,d=0,h=l;d<h&&o(a(t[c%l][i]),r,s);++d)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:f,style:n.style}}function hc(n,t,e){if(!e)return[n];let{property:i,start:r,end:s}=e,o=t.length,{compare:a,between:l,normalize:c}=qf(i),{start:u,end:f,loop:d,style:h}=mx(n,t,e),m=[],p=!1,y=null,x,b,O,g=()=>l(r,O,x)&&a(r,O)!==0,w=()=>a(s,x)===0||l(s,O,x),_=()=>p||g(),T=()=>!p||w();for(let k=u,D=u;k<=f;++k)b=t[k%o],!b.skip&&(x=c(b[i]),x!==O&&(p=l(x,r,s),y===null&&_()&&(y=a(x,r)===0?k:D),y!==null&&T()&&(m.push(yf({start:y,end:k,loop:d,count:o,style:h})),y=null),D=k,O=x));return y!==null&&m.push(yf({start:y,end:f,loop:d,count:o,style:h})),m}function mc(n,t){let e=[],i=n.segments;for(let r=0;r<i.length;r++){let s=hc(i[r],n.points,t);s.length&&e.push(...s)}return e}function px(n,t,e,i){let r=0,s=t-1;if(e&&!i)for(;r<t&&!n[r].skip;)r++;for(;r<t&&n[r].skip;)r++;for(r%=t,e&&(s+=r);s>r&&n[s%t].skip;)s--;return s%=t,{start:r,end:s}}function gx(n,t,e,i){let r=n.length,s=[],o=t,a=n[t],l;for(l=t+1;l<=e;++l){let c=n[l%r];c.skip||c.stop?a.skip||(i=!1,s.push({start:t%r,end:(l-1)%r,loop:i}),t=o=c.stop?l:null):(o=l,a.skip&&(t=l)),a=c}return o!==null&&s.push({start:t%r,end:o%r,loop:i}),s}function Zf(n,t){let e=n.points,i=n.options.spanGaps,r=e.length;if(!r)return[];let s=!!n._loop,{start:o,end:a}=px(e,r,s,i);if(i===!0)return xf(n,[{start:o,end:a,loop:s}],e,t);let l=a<o?a+r:a,c=!!n._fullLoop&&o===0&&a===r-1;return xf(n,gx(e,o,l,c),e,t)}function xf(n,t,e,i){return!i||!i.setContext||!e?t:yx(n,t,e,i)}function yx(n,t,e,i){let r=n._chart.getContext(),s=bf(n.options),{_datasetIndex:o,options:{spanGaps:a}}=n,l=e.length,c=[],u=s,f=t[0].start,d=f;function h(m,p,y,x){let b=a?-1:1;if(m!==p){for(m+=l;e[m%l].skip;)m-=b;for(;e[p%l].skip;)p+=b;m%l!==p%l&&(c.push({start:m%l,end:p%l,loop:y,style:x}),u=x,f=p%l)}}for(let m of t){f=a?f:m.start;let p=e[f%l],y;for(d=f+1;d<=m.end;d++){let x=e[d%l];y=bf(i.setContext(Ge(r,{type:"segment",p0:p,p1:x,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),xx(y,u)&&h(f,d-1,m.loop,u),p=x,u=y}f<d-1&&h(f,d-1,m.loop,u)}return c}function bf(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function xx(n,t){if(!t)return!1;let e=[],i=function(r,s){return tc(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(n,i)!==JSON.stringify(t,i)}var Tc=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){let s=e.listeners[r],o=e.duration;s.forEach(a=>a({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Gl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let s=i.items,o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,t,"progress")),s.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},Qe=new Tc,Xf="transparent",bx={boolean(n,t,e){return e>.5?t:n},color(n,t,e){let i=ec(n||Xf),r=i.valid&&ec(t||Xf);return r&&r.valid?r.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}},kc=class{constructor(t,e,i,r){let s=e[i];r=Ci([t.to,r,s,t.from]);let o=Ci([t.from,s,r]);this._active=!0,this._fn=t.fn||bx[t.type||typeof o],this._easing=_i[t.easing]||_i.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ci([t.to,e,r,t.from]),this._from=Ci([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e=t-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to,l;if(this._active=s!==a&&(o||e<i),!this._active){this._target[r]=a,this._notify(!0);return}if(e<0){this._target[r]=s;return}l=e/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}},jo=class{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!K(t))return;let e=Object.keys(pt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{let s=t[r];if(!K(s))return;let o={};for(let a of e)o[a]=s[a];(dt(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(t,e){let i=e.options,r=wx(t,i);if(!r)return[];let s=this._createAnimations(r,i);return i.$shared&&vx(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){let i=this._properties,r=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now(),l;for(l=o.length-1;l>=0;--l){let c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(t,e));continue}let u=e[c],f=s[c],d=i.get(c);if(f)if(d&&f.active()){f.update(d,u,a);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}s[c]=f=new kc(d,t,c,u),r.push(f)}return r}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return Qe.add(this._chart,i),!0}};function vx(n,t){let e=[],i=Object.keys(t);for(let r=0;r<i.length;r++){let s=n[i[r]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function wx(n,t){if(!t)return;let e=n.options;if(!e){n.options=t;return}return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Gf(n,t){let e=n&&n.options||{},i=e.reverse,r=e.min===void 0?t:0,s=e.max===void 0?t:0;return{start:i?s:r,end:i?r:s}}function _x(n,t,e){if(e===!1)return!1;let i=Gf(n,e),r=Gf(t,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function Ox(n){let t,e,i,r;return K(n)?(t=n.top,e=n.right,i=n.bottom,r=n.left):t=e=i=r=n,{top:t,right:e,bottom:i,left:r,disabled:n===!1}}function Zd(n,t){let e=[],i=n._getSortedDatasetMetas(t),r,s;for(r=0,s=i.length;r<s;++r)e.push(i[r].index);return e}function Qf(n,t,e,i={}){let r=n.keys,s=i.mode==="single",o,a,l,c;if(t===null)return;let u=!1;for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===e){if(u=!0,i.all)continue;break}c=n.values[l],yt(c)&&(s||t===0||be(t)===be(c))&&(t+=c)}return!u&&!i.all?0:t}function Mx(n,t){let{iScale:e,vScale:i}=t,r=e.axis==="x"?"x":"y",s=i.axis==="x"?"x":"y",o=Object.keys(n),a=new Array(o.length),l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[r]:u,[s]:n[u]};return a}function pc(n,t){let e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function Tx(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function kx(n){let{min:t,max:e,minDefined:i,maxDefined:r}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}function Dx(n,t,e){let i=n[t]||(n[t]={});return i[e]||(i[e]={})}function Kf(n,t,e,i){for(let r of t.getMatchingVisibleMetas(i).reverse()){let s=n[r.index];if(e&&s>0||!e&&s<0)return r.index}return null}function Jf(n,t){let{chart:e,_cachedMeta:i}=n,r=e._stacks||(e._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=Tx(s,o,i),f=t.length,d;for(let h=0;h<f;++h){let m=t[h],{[l]:p,[c]:y}=m,x=m._stacks||(m._stacks={});d=x[c]=Dx(r,u,p),d[a]=y,d._top=Kf(d,o,!0,i.type),d._bottom=Kf(d,o,!1,i.type);let b=d._visualValues||(d._visualValues={});b[a]=y}}function gc(n,t){let e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function Sx(n,t){return Ge(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Ex(n,t,e){return Ge(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Wr(n,t){let e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(let r of t){let s=r._stacks;if(!s||s[i]===void 0||s[i][e]===void 0)return;delete s[i][e],s[i]._visualValues!==void 0&&s[i]._visualValues[e]!==void 0&&delete s[i]._visualValues[e]}}}var yc=n=>n==="reset"||n==="none",td=(n,t)=>t?n:Object.assign({},n),Px=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:Zd(e,!0),values:null},ne=class{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=pc(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Wr(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(f,d,h,m)=>f==="x"?d:f==="r"?m:h,s=e.xAxisID=$(i.xAxisID,gc(t,"x")),o=e.yAxisID=$(i.yAxisID,gc(t,"y")),a=e.rAxisID=$(i.rAxisID,gc(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,s,o,a),u=e.vAxisID=r(l,o,s,a);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Zl(this._data,this),t._stacked&&Wr(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(K(e)){let r=this._cachedMeta;this._data=Mx(e,r)}else if(i!==e){if(i){Zl(i,this);let r=this._cachedMeta;Wr(r),r._parsed=[]}e&&Object.isExtensible(e)&&Pf(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),r=!1;this._dataCheck();let s=e._stacked;e._stacked=pc(e.vScale,e),e.stack!==i.stack&&(r=!0,Wr(e),e.stack=i.stack),this._resyncElements(t),(r||s!==e._stacked)&&(Jf(this,e._parsed),e._stacked=pc(e.vScale,e))}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis,l=t===0&&e===r.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,f,d;if(this._parsing===!1)i._parsed=r,i._sorted=!0,d=r;else{dt(r[t])?d=this.parseArrayData(i,r,t,e):K(r[t])?d=this.parseObjectData(i,r,t,e):d=this.parsePrimitiveData(i,r,t,e);let h=()=>f[a]===null||c&&f[a]<c[a];for(u=0;u<e;++u)i._parsed[u+t]=f=d[u],l&&(h()&&(l=!1),c=f);i._sorted=l}o&&Jf(this,d)}parsePrimitiveData(t,e,i,r){let{iScale:s,vScale:o}=t,a=s.axis,l=o.axis,c=s.getLabels(),u=s===o,f=new Array(r),d,h,m;for(d=0,h=r;d<h;++d)m=d+i,f[d]={[a]:u||s.parse(c[m],m),[l]:o.parse(e[m],m)};return f}parseArrayData(t,e,i,r){let{xScale:s,yScale:o}=t,a=new Array(r),l,c,u,f;for(l=0,c=r;l<c;++l)u=l+i,f=e[u],a[l]={x:s.parse(f[0],u),y:o.parse(f[1],u)};return a}parseObjectData(t,e,i,r){let{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r),u,f,d,h;for(u=0,f=r;u<f;++u)d=u+i,h=e[d],c[u]={x:s.parse(Xe(h,a),d),y:o.parse(Xe(h,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){let r=this.chart,s=this._cachedMeta,o=e[t.axis],a={keys:Zd(r,!0),values:e._stacks[t.axis]._visualValues};return Qf(a,o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,r){let s=i[e.axis],o=s===null?NaN:s,a=r&&i._stacks[e.axis];r&&a&&(r.values=a,o=Qf(r,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){let i=this._cachedMeta,r=i._parsed,s=i._sorted&&t===i.iScale,o=r.length,a=this._getOtherScale(t),l=Px(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=kx(a),d,h;function m(){h=r[d];let p=h[a.axis];return!yt(h[t.axis])||u>p||f<p}for(d=0;d<o&&!(!m()&&(this.updateRangeFromParsed(c,t,h,l),s));++d);if(s){for(d=o-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){let e=this._cachedMeta._parsed,i=[],r,s,o;for(r=0,s=e.length;r<s;++r)o=e[r][t.axis],yt(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){let e=this._cachedMeta,i=e.iScale,r=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(t){let e=this._cachedMeta;this.update(t||"default"),e._clip=Ox($(this.options.clip,_x(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,e=this.chart,i=this._cachedMeta,r=i.data||[],s=e.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||r.length-a,c=this.options.drawActiveElementsOnTop,u;for(i.dataset&&i.dataset.draw(t,s,a,l),u=a;u<a+l;++u){let f=r[u];f.hidden||(f.active&&c?o.push(f):f.draw(t,s))}for(u=0;u<o.length;++u)o[u].draw(t,s)}getStyle(t,e){let i=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){let r=this.getDataset(),s;if(t>=0&&t<this._cachedMeta.data.length){let o=this._cachedMeta.data[t];s=o.$context||(o.$context=Ex(this.getContext(),t,o)),s.parsed=this.getParsed(t),s.raw=r.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=Sx(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){let r=e==="active",s=this._cachedDataOpts,o=t+"-"+e,a=s[o],l=this.enableOptionSharing&&ki(i);if(a)return td(a,l);let c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),f=r?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),u),h=Object.keys(pt.elements[t]),m=()=>this.getContext(i,r,e),p=c.resolveNamedOptions(d,h,m,f);return p.$shared&&(p.$shared=l,s[o]=Object.freeze(td(p,l))),p}_resolveAnimations(t,e,i){let r=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,a=s[o];if(a)return a;let l;if(r.options.animation!==!1){let u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,e),d=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(d,this.getContext(t,i,e))}let c=new jo(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||yc(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==r;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,r){yc(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!yc(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;let s=this.getStyle(e,r);this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];let r=i.length,s=e.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,t):s<r&&this._removeElements(s,r-s)}_insertElements(t,e,i=!0){let r=this._cachedMeta,s=r.data,o=t+e,a,l=c=>{for(c.length+=e,a=c.length-1;a>=o;a--)c[a]=c[a-e]};for(l(s),a=t;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){let i=this._cachedMeta;if(this._parsing){let r=i._parsed.splice(t,e);i._stacked&&Wr(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);let i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};v(ne,"defaults",{}),v(ne,"datasetElementType",null),v(ne,"dataElementType",null);function Cx(n,t){if(!n._cache.$bar){let e=n.getMatchingVisibleMetas(t),i=[];for(let r=0,s=e.length;r<s;r++)i=i.concat(e[r].controller.getAllParsedValues(n));n._cache.$bar=Xl(i.sort((r,s)=>r-s))}return n._cache.$bar}function Ix(n){let t=n.iScale,e=Cx(t,n.type),i=t._length,r,s,o,a,l=()=>{o===32767||o===-32768||(ki(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=e.length;r<s;++r)o=t.getPixelForValue(e[r]),l();for(a=void 0,r=0,s=t.ticks.length;r<s;++r)o=t.getPixelForTick(r),l();return i}function Ax(n,t,e,i){let r=e.barThickness,s,o;return X(r)?(s=t.min*e.categoryPercentage,o=e.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:t.pixels[n]-s/2}}function Lx(n,t,e,i){let r=t.pixels,s=r[n],o=n>0?r[n-1]:null,a=n<r.length-1?r[n+1]:null,l=e.categoryPercentage;o===null&&(o=s-(a===null?t.end-t.start:a-s)),a===null&&(a=s+s-o);let c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:e.barPercentage,start:c}}function Fx(n,t,e,i){let r=e.parse(n[0],i),s=e.parse(n[1],i),o=Math.min(r,s),a=Math.max(r,s),l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}function Xd(n,t,e,i){return dt(n)?Fx(n,t,e,i):t[e.axis]=e.parse(n,i),t}function ed(n,t,e,i){let r=n.iScale,s=n.vScale,o=r.getLabels(),a=r===s,l=[],c,u,f,d;for(c=e,u=e+i;c<u;++c)d=t[c],f={},f[r.axis]=a||r.parse(o[c],c),l.push(Xd(d,f,s,c));return l}function xc(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function Nx(n,t,e){return n!==0?be(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function Rx(n){let t,e,i,r,s;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.base<n.y,e="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:e,end:i,reverse:t,top:r,bottom:s}}function Wx(n,t,e,i){let r=t.borderSkipped,s={};if(!r){n.borderSkipped=s;return}if(r===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:a,reverse:l,top:c,bottom:u}=Rx(n);r==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===i?r=c:(e._bottom||0)===i?r=u:(s[nd(u,o,a,l)]=!0,r=c)),s[nd(r,o,a,l)]=!0,n.borderSkipped=s}function nd(n,t,e,i){return i?(n=Hx(n,t,e),n=id(n,e,t)):n=id(n,t,e),n}function Hx(n,t,e){return n===t?e:n===e?t:n}function id(n,t,e){return n==="start"?t:n==="end"?e:n}function Vx(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}var Ai=class extends ne{parsePrimitiveData(t,e,i,r){return ed(t,e,i,r)}parseArrayData(t,e,i,r){return ed(t,e,i,r)}parseObjectData(t,e,i,r){let{iScale:s,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=s.axis==="x"?a:l,u=o.axis==="x"?a:l,f=[],d,h,m,p;for(d=i,h=i+r;d<h;++d)p=e[d],m={},m[s.axis]=s.parse(Xe(p,c),d),f.push(Xd(Xe(p,u),m,o,d));return f}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);let s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let e=this._cachedMeta,{iScale:i,vScale:r}=e,s=this.getParsed(t),o=s._custom,a=xc(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){let s=r==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(e,r);for(let h=e;h<e+i;h++){let m=this.getParsed(h),p=s||X(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),y=this._calculateBarIndexPixels(h,u),x=(m._stacks||{})[a.axis],b={horizontal:c,base:p.base,enableBorderRadius:!x||xc(m._custom)||o===x._top||o===x._bottom,x:c?p.head:y.center,y:c?y.center:p.head,height:c?y.size:Math.abs(p.size),width:c?Math.abs(p.size):y.size};d&&(b.options=f||this.resolveDataElementOptions(h,t[h].active?"active":r));let O=b.options||t[h].options;Wx(b,O,x,o),Vx(b,O,u.ratio),this.updateElement(t[h],h,b,r)}}_getStacks(t,e){let{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[i.axis],c=u=>{let f=u._parsed.find(h=>h[i.axis]===l),d=f&&f[u.vScale.axis];if(X(d)||isNaN(d))return!0};for(let u of r)if(!(e!==void 0&&c(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let r=this._getStacks(t,i),s=e!==void 0?r.indexOf(e):-1;return s===-1?r.length-1:s}_getRuler(){let t=this.options,e=this._cachedMeta,i=e.iScale,r=[],s,o;for(s=0,o=e.data.length;s<o;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));let a=t.barThickness;return{min:a||Ix(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:s,minBarLength:o}}=this,a=s||0,l=this.getParsed(t),c=l._custom,u=xc(c),f=l[e.axis],d=0,h=i?this.applyStack(e,l,i):f,m,p;h!==f&&(d=h-f,h=f),u&&(f=c.barStart,h=c.barEnd-c.barStart,f!==0&&be(f)!==be(c.barEnd)&&(d=0),d+=f);let y=!X(s)&&!u?s:d,x=e.getPixelForValue(y);if(this.chart.getDataVisibility(t)?m=e.getPixelForValue(d+h):m=x,p=m-x,Math.abs(p)<o){p=Nx(p,e,a)*o,f===a&&(x-=p/2);let b=e.getPixelForDecimal(0),O=e.getPixelForDecimal(1),g=Math.min(b,O),w=Math.max(b,O);x=Math.max(Math.min(x,w),g),m=x+p,i&&!u&&(l._stacks[e.axis]._visualValues[r]=e.getValueForPixel(m)-e.getValueForPixel(x))}if(x===e.getPixelForValue(a)){let b=be(p)*e.getLineWidthForValue(a)/2;x+=b,p-=b}return{size:p,base:x,head:m,center:m+p/2}}_calculateBarIndexPixels(t,e){let i=e.scale,r=this.options,s=r.skipNull,o=$(r.maxBarThickness,1/0),a,l;if(e.grouped){let c=s?this._getStackCount(t):e.stackCount,u=r.barThickness==="flex"?Lx(t,e,r,c):Ax(t,e,r,c),f=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);a=u.start+u.chunk*f+u.chunk/2,l=Math.min(o,u.chunk*u.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){let t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length,s=0;for(;s<r;++s)this.getParsed(s)[e.axis]!==null&&!i[s].hidden&&i[s].draw(this._ctx)}};v(Ai,"id","bar"),v(Ai,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),v(Ai,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var Li=class extends ne{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,r){let s=super.parsePrimitiveData(t,e,i,r);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,e,i,r){let s=super.parseArrayData(t,e,i,r);for(let o=0;o<s.length;o++){let a=e[i+o];s[o]._custom=$(a[2],this.resolveDataElementOptions(o+i).radius)}return s}parseObjectData(t,e,i,r){let s=super.parseObjectData(t,e,i,r);for(let o=0;o<s.length;o++){let a=e[i+o];s[o]._custom=$(a&&a.r&&+a.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){let t=this._cachedMeta.data,e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y),c=o._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,r),u=o.axis,f=a.axis;for(let d=e;d<e+i;d++){let h=t[d],m=!s&&this.getParsed(d),p={},y=p[u]=s?o.getPixelForDecimal(.5):o.getPixelForValue(m[u]),x=p[f]=s?a.getBasePixel():a.getPixelForValue(m[f]);p.skip=isNaN(y)||isNaN(x),c&&(p.options=l||this.resolveDataElementOptions(d,h.active?"active":r),s&&(p.options.radius=0)),this.updateElement(h,d,p,r)}}resolveDataElementOptions(t,e){let i=this.getParsed(t),r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));let s=r.radius;return e!=="active"&&(r.radius=0),r.radius+=$(i&&i._custom,s),r}};v(Li,"id","bubble"),v(Li,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),v(Li,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function zx(n,t,e){let i=1,r=1,s=0,o=0;if(t<mt){let a=n,l=a+t,c=Math.cos(a),u=Math.sin(a),f=Math.cos(l),d=Math.sin(l),h=(O,g,w)=>Si(O,a,l,!0)?1:Math.max(g,g*e,w,w*e),m=(O,g,w)=>Si(O,a,l,!0)?-1:Math.min(g,g*e,w,w*e),p=h(0,c,f),y=h(wt,u,d),x=m(ht,c,f),b=m(ht+wt,u,d);i=(p-x)/2,r=(y-b)/2,s=-(p+x)/2,o=-(y+b)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}var Je=class extends ne{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let s=l=>+i[l];if(K(i[t])){let{key:l="value"}=this._parsing;s=c=>+Xe(i[c],l)}let o,a;for(o=t,a=t+e;o<a;++o)r._parsed[o]=s(o)}}_getRotation(){return le(this.options.rotation-90)}_getCircumference(){return le(this.options.circumference)}_getRotationExtents(){let t=mt,e=-mt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){let r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),o=r._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){let e=this.chart,{chartArea:i}=e,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),l=Math.min(wf(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:m,offsetY:p}=zx(f,u,l),y=(i.width-o)/d,x=(i.height-o)/h,b=Math.max(Math.min(y,x)/2,0),O=Bl(this.options.radius,b),g=Math.max(O*l,0),w=(O-g)/this._getVisibleDatasetWeightTotal();this.offsetX=m*O,this.offsetY=p*O,r.total=this.calculateTotal(),this.outerRadius=O-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){let i=this.options,r=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*s/mt)}updateElements(t,e,i,r){let s=r==="reset",o=this.chart,a=o.chartArea,c=o.options.animation,u=(a.left+a.right)/2,f=(a.top+a.bottom)/2,d=s&&c.animateScale,h=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:p,includeOptions:y}=this._getSharedOptions(e,r),x=this._getRotation(),b;for(b=0;b<e;++b)x+=this._circumference(b,s);for(b=e;b<e+i;++b){let O=this._circumference(b,s),g=t[b],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:x,endAngle:x+O,circumference:O,outerRadius:m,innerRadius:h};y&&(w.options=p||this.resolveDataElementOptions(b,g.active?"active":r)),x+=O,this.updateElement(g,b,w,r)}}calculateTotal(){let t=this._cachedMeta,e=t.data,i=0,r;for(r=0;r<e.length;r++){let s=t._parsed[r];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!e[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(t){let e=this._cachedMeta.total;return e>0&&!isNaN(t)?mt*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Ei(e._parsed[t],i.options.locale);return{label:r[t]||"",value:s}}getMaxBorderWidth(t){let e=0,i=this.chart,r,s,o,a,l;if(!t){for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,a=o.controller;break}}if(!t)return 0;for(r=0,s=t.length;r<s;++r)l=a.resolveDataElementOptions(r),l.borderAlign!=="inner"&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){let s=this.resolveDataElementOptions(i);e=Math.max(e,s.offset||0,s.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max($(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};v(Je,"id","doughnut"),v(Je,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),v(Je,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),v(Je,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{let l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});var Fi=class extends ne{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let e=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=e,o=this.chart._animationsDisabled,{start:a,count:l}=Kl(e,r,o);this._drawStart=a,this._drawCount=l,Jl(e)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;let c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(e,r),d=o.axis,h=a.axis,{spanGaps:m,segment:p}=this.options,y=Hn(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||r==="none",b=e+i,O=t.length,g=e>0&&this.getParsed(e-1);for(let w=0;w<O;++w){let _=t[w],T=x?_:{};if(w<e||w>=b){T.skip=!0;continue}let k=this.getParsed(w),D=X(k[h]),E=T[d]=o.getPixelForValue(k[d],w),I=T[h]=s||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[h],w);T.skip=isNaN(E)||isNaN(I)||D,T.stop=w>0&&Math.abs(k[d]-g[d])>y,p&&(T.parsed=k,T.raw=c.data[w]),f&&(T.options=u||this.resolveDataElementOptions(w,_.active?"active":r)),x||this.updateElement(_,w,T,r),g=k}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;let s=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,o)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};v(Fi,"id","line"),v(Fi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),v(Fi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var $n=class extends ne{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Ei(e._parsed[t].r,i.options.locale);return{label:r[t]||"",value:s}}parseObjectData(t,e,i,r){return lc.bind(this)(t,e,i,r)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{let s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,r){let s=r==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,f=c.yCenter,d=c.getIndexAngle(0)-.5*ht,h=d,m,p=360/this.countVisibleElements();for(m=0;m<e;++m)h+=this._computeAngle(m,r,p);for(m=e;m<e+i;m++){let y=t[m],x=h,b=h+this._computeAngle(m,r,p),O=o.getDataVisibility(m)?c.getDistanceFromCenterForValue(this.getParsed(m).r):0;h=b,s&&(l.animateScale&&(O=0),l.animateRotate&&(x=b=d));let g={x:u,y:f,innerRadius:0,outerRadius:O,startAngle:x,endAngle:b,options:this.resolveDataElementOptions(m,y.active?"active":r)};this.updateElement(y,m,g,r)}}countVisibleElements(){let t=this._cachedMeta,e=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?le(this.resolveDataElementOptions(t,e).angle||i):0}};v($n,"id","polarArea"),v($n,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),v($n,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{let l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});var Yr=class extends Je{};v(Yr,"id","pie"),v(Yr,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});var Ni=class extends ne{getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return lc.bind(this)(t,e,i,r)}update(t){let e=this._cachedMeta,i=e.dataset,r=e.data||[],s=e.iScale.getLabels();if(i.points=r,t!=="resize"){let o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);let a={_loop:!0,_fullLoop:s.length===r.length,options:o};this.updateElement(i,void 0,a,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){let s=this._cachedMeta.rScale,o=r==="reset";for(let a=e;a<e+i;a++){let l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":r),u=s.getPointPositionForValue(a,this.getParsed(a).r),f=o?s.xCenter:u.x,d=o?s.yCenter:u.y,h={x:f,y:d,angle:u.angle,skip:isNaN(f)||isNaN(d),options:c};this.updateElement(l,a,h,r)}}};v(Ni,"id","radar"),v(Ni,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),v(Ni,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});var Ri=class extends ne{getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+l+")"}}update(t){let e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled,{start:s,count:o}=Kl(e,i,r);if(this._drawStart=s,this._drawCount=o,Jl(e)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:a,_dataset:l}=e;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;let c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:c},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,r),f=this.getSharedOptions(u),d=this.includeOptions(r,f),h=o.axis,m=a.axis,{spanGaps:p,segment:y}=this.options,x=Hn(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||r==="none",O=e>0&&this.getParsed(e-1);for(let g=e;g<e+i;++g){let w=t[g],_=this.getParsed(g),T=b?w:{},k=X(_[m]),D=T[h]=o.getPixelForValue(_[h],g),E=T[m]=s||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,_,l):_[m],g);T.skip=isNaN(D)||isNaN(E)||k,T.stop=g>0&&Math.abs(_[h]-O[h])>x,y&&(T.parsed=_,T.raw=c.data[g]),d&&(T.options=f||this.resolveDataElementOptions(g,w.active?"active":r)),b||this.updateElement(w,g,T,r),O=_}this.updateSharedOptions(f,r,u)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}let i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;let s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,s,o)/2}};v(Ri,"id","scatter"),v(Ri,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),v(Ri,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Bx=Object.freeze({__proto__:null,BarController:Ai,BubbleController:Li,DoughnutController:Je,LineController:Fi,PieController:Yr,PolarAreaController:$n,RadarController:Ni,ScatterController:Ri});function zn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Qr=class{constructor(t){v(this,"options");this.options=t||{}}static override(t){Object.assign(Qr.prototype,t)}init(){}formats(){return zn()}parse(){return zn()}format(){return zn()}add(){return zn()}diff(){return zn()}startOf(){return zn()}endOf(){return zn()}},Wc={_date:Qr};function Yx(n,t,e,i){let{controller:r,data:s,_sorted:o}=n,a=r._cachedMeta.iScale,l=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&o&&s.length){let c=a._reversePixels?Df:Le;if(i){if(r._sharedOptions){let u=s[0],f=typeof u.getRange=="function"&&u.getRange(t);if(f){let d=c(s,t,e-f),h=c(s,t,e+f);return{lo:d.lo,hi:h.hi}}}}else{let u=c(s,t,e);if(l){let{vScale:f}=r._cachedMeta,{_parsed:d}=n,h=d.slice(0,u.lo+1).reverse().findIndex(p=>!X(p[f.axis]));u.lo-=Math.max(0,h);let m=d.slice(u.hi).findIndex(p=>!X(p[f.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:s.length-1}}function es(n,t,e,i,r){let s=n.getSortedVisibleDatasetMetas(),o=e[t];for(let a=0,l=s.length;a<l;++a){let{index:c,data:u}=s[a],{lo:f,hi:d}=Yx(s[a],t,o,r);for(let h=f;h<=d;++h){let m=u[h];m.skip||i(m,c,h)}}}function jx(n){let t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(i,r){let s=t?Math.abs(i.x-r.x):0,o=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function bc(n,t,e,i,r){let s=[];return!r&&!n.isPointInArea(t)||es(n,e,t,function(a,l,c){!r&&!Fe(a,n.chartArea,0)||a.inRange(t.x,t.y,i)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function $x(n,t,e,i){let r=[];function s(o,a,l){let{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:f}=ql(o,{x:t.x,y:t.y});Si(f,c,u)&&r.push({element:o,datasetIndex:a,index:l})}return es(n,e,t,s),r}function Ux(n,t,e,i,r,s){let o=[],a=jx(e),l=Number.POSITIVE_INFINITY;function c(u,f,d){let h=u.inRange(t.x,t.y,r);if(i&&!h)return;let m=u.getCenterPoint(r);if(!(!!s||n.isPointInArea(m))&&!h)return;let y=a(t,m);y<l?(o=[{element:u,datasetIndex:f,index:d}],l=y):y===l&&o.push({element:u,datasetIndex:f,index:d})}return es(n,e,t,c),o}function vc(n,t,e,i,r,s){return!s&&!n.isPointInArea(t)?[]:e==="r"&&!i?$x(n,t,e,r):Ux(n,t,e,i,r,s)}function rd(n,t,e,i,r){let s=[],o=e==="x"?"inXRange":"inYRange",a=!1;return es(n,e,t,(l,c,u)=>{l[o]&&l[o](t[e],r)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,r))}),i&&!a?[]:s}var qx={evaluateInteractionItems:es,modes:{index(n,t,e,i){let r=_n(t,n),s=e.axis||"x",o=e.includeInvisible||!1,a=e.intersect?bc(n,r,s,i,o):vc(n,r,s,!1,i,o),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{let u=a[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(n,t,e,i){let r=_n(t,n),s=e.axis||"xy",o=e.includeInvisible||!1,a=e.intersect?bc(n,r,s,i,o):vc(n,r,s,!1,i,o);if(a.length>0){let l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(n,t,e,i){let r=_n(t,n),s=e.axis||"xy",o=e.includeInvisible||!1;return bc(n,r,s,i,o)},nearest(n,t,e,i){let r=_n(t,n),s=e.axis||"xy",o=e.includeInvisible||!1;return vc(n,r,s,e.intersect,i,o)},x(n,t,e,i){let r=_n(t,n);return rd(n,r,"x",e.intersect,i)},y(n,t,e,i){let r=_n(t,n);return rd(n,r,"y",e.intersect,i)}}},Gd=["left","top","right","bottom"];function Hr(n,t){return n.filter(e=>e.pos===t)}function sd(n,t){return n.filter(e=>Gd.indexOf(e.pos)===-1&&e.box.axis===t)}function Vr(n,t){return n.sort((e,i)=>{let r=t?i:e,s=t?e:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function Zx(n){let t=[],e,i,r,s,o,a;for(e=0,i=(n||[]).length;e<i;++e)r=n[e],{position:s,options:{stack:o,stackWeight:a=1}}=r,t.push({index:e,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return t}function Xx(n){let t={};for(let e of n){let{stack:i,pos:r,stackWeight:s}=e;if(!i||!Gd.includes(r))continue;let o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return t}function Gx(n,t){let e=Xx(n),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t,s,o,a;for(s=0,o=n.length;s<o;++s){a=n[s];let{fullSize:l}=a.box,c=e[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&t.availableWidth,a.height=r):(a.width=i,a.height=u?u*r:l&&t.availableHeight)}return e}function Qx(n){let t=Zx(n),e=Vr(t.filter(c=>c.box.fullSize),!0),i=Vr(Hr(t,"left"),!0),r=Vr(Hr(t,"right")),s=Vr(Hr(t,"top"),!0),o=Vr(Hr(t,"bottom")),a=sd(t,"x"),l=sd(t,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:Hr(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function od(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function Qd(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function Kx(n,t,e,i){let{pos:r,box:s}=e,o=n.maxPadding;if(!K(r)){e.size&&(n[r]-=e.size);let f=i[e.stack]||{size:0,count:1};f.size=Math.max(f.size,e.horizontal?s.height:s.width),e.size=f.size/f.count,n[r]+=e.size}s.getPadding&&Qd(o,s.getPadding());let a=Math.max(0,t.outerWidth-od(o,n,"left","right")),l=Math.max(0,t.outerHeight-od(o,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Jx(n){let t=n.maxPadding;function e(i){let r=Math.max(t[i]-n[i],0);return n[i]+=r,r}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function tb(n,t){let e=t.maxPadding;function i(r){let s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(t[o],e[o])}),s}return i(n?["left","right"]:["top","bottom"])}function jr(n,t,e,i){let r=[],s,o,a,l,c,u;for(s=0,o=n.length,c=0;s<o;++s){a=n[s],l=a.box,l.update(a.width||t.w,a.height||t.h,tb(a.horizontal,t));let{same:f,other:d}=Kx(t,e,a,i);c|=f&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&jr(r,t,e,i)||u}function Fo(n,t,e,i,r){n.top=e,n.left=t,n.right=t+i,n.bottom=e+r,n.width=i,n.height=r}function ad(n,t,e,i){let r=e.padding,{x:s,y:o}=t;for(let a of n){let l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){let f=t.w*u,d=c.size||l.height;ki(c.start)&&(o=c.start),l.fullSize?Fo(l,r.left,o,e.outerWidth-r.right-r.left,d):Fo(l,t.left+c.placed,o,f,d),c.start=o,c.placed+=f,o=l.bottom}else{let f=t.h*u,d=c.size||l.width;ki(c.start)&&(s=c.start),l.fullSize?Fo(l,s,r.top,d,e.outerHeight-r.bottom-r.top):Fo(l,s,t.top+c.placed,d,f),c.start=s,c.placed+=f,s=l.right}}t.x=s,t.y=o}var jt={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){let e=n.boxes?n.boxes.indexOf(t):-1;e!==-1&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;let r=Vt(n.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(e-r.height,0),a=Qx(n.boxes),l=a.vertical,c=a.horizontal;ot(n.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});let u=l.reduce((p,y)=>y.box.options&&y.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},r);Qd(d,Vt(i));let h=Object.assign({maxPadding:d,w:s,h:o,x:r.left,y:r.top},r),m=Gx(l.concat(c),f);jr(a.fullSize,h,f,m),jr(l,h,f,m),jr(c,h,f,m)&&jr(l,h,f,m),Jx(h),ad(a.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,ad(a.rightAndBottom,h,f,m),n.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ot(a.chartArea,p=>{let y=p.box;Object.assign(y,n.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},$o=class{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}},Dc=class extends $o{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},Bo="$chartjs",eb={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ld=n=>n===null||n==="";function nb(n,t){let e=n.style,i=n.getAttribute("height"),r=n.getAttribute("width");if(n[Bo]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",ld(r)){let s=uc(n,"width");s!==void 0&&(n.width=s)}if(ld(i))if(n.style.height==="")n.height=n.width/(t||2);else{let s=uc(n,"height");s!==void 0&&(n.height=s)}return n}var Kd=jf?{passive:!0}:!1;function ib(n,t,e){n&&n.addEventListener(t,e,Kd)}function rb(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,Kd)}function sb(n,t){let e=eb[n.type]||n.type,{x:i,y:r}=_n(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Uo(n,t){for(let e of n)if(e===t||e.contains(t))return!0}function ob(n,t,e){let i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||Uo(a.addedNodes,i),o=o&&!Uo(a.removedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function ab(n,t,e){let i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||Uo(a.removedNodes,i),o=o&&!Uo(a.addedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Kr=new Map,cd=0;function Jd(){let n=window.devicePixelRatio;n!==cd&&(cd=n,Kr.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function lb(n,t){Kr.size||window.addEventListener("resize",Jd),Kr.set(n,t)}function cb(n){Kr.delete(n),Kr.size||window.removeEventListener("resize",Jd)}function ub(n,t,e){let i=n.canvas,r=i&&Ao(i);if(!r)return;let s=Ql((a,l)=>{let c=r.clientWidth;e(a,l),c<r.clientWidth&&e()},window),o=new ResizeObserver(a=>{let l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(r),lb(n,s),o}function wc(n,t,e){e&&e.disconnect(),t==="resize"&&cb(n)}function fb(n,t,e){let i=n.canvas,r=Ql(s=>{n.ctx!==null&&e(sb(s,n))},n);return ib(i,t,r),r}var Sc=class extends $o{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(nb(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[Bo])return!1;let i=e[Bo].initial;["height","width"].forEach(s=>{let o=i[s];X(o)?e.removeAttribute(s):e.setAttribute(s,o)});let r=i.style||{};return Object.keys(r).forEach(s=>{e.style[s]=r[s]}),e.width=e.width,delete e[Bo],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let r=t.$proxies||(t.$proxies={}),o={attach:ob,detach:ab,resize:ub}[e]||fb;r[e]=o(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),r=i[e];if(!r)return;({attach:wc,detach:wc,resize:wc}[e]||rb)(t,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return Yf(t,e,i,r)}isAttached(t){let e=t&&Ao(t);return!!(e&&e.isConnected)}};function db(n){return!Io()||typeof OffscreenCanvas!="undefined"&&n instanceof OffscreenCanvas?Dc:Sc}var ie=class{constructor(){v(this,"x");v(this,"y");v(this,"active",!1);v(this,"options");v(this,"$animations")}tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Hn(this.x)&&Hn(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let r={};return t.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}};v(ie,"defaults",{}),v(ie,"defaultRoutes");function hb(n,t){let e=n.options.ticks,i=mb(n),r=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?gb(t):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return yb(t,c,s,o/r),c;let u=pb(s,t,r);if(o>0){let f,d,h=o>1?Math.round((l-a)/(o-1)):null;for(No(t,c,u,X(h)?0:a-h,a),f=0,d=o-1;f<d;f++)No(t,c,u,s[f],s[f+1]);return No(t,c,u,l,X(h)?t.length:l+h),c}return No(t,c,u),c}function mb(n){let t=n.options.offset,e=n._tickSize(),i=n._length/e+(t?0:1),r=n._maxLength/e;return Math.floor(Math.min(i,r))}function pb(n,t,e){let i=xb(n),r=t.length/e;if(!i)return Math.max(r,1);let s=Mf(i);for(let o=0,a=s.length-1;o<a;o++){let l=s[o];if(l>r)return l}return Math.max(r,1)}function gb(n){let t=[],e,i;for(e=0,i=n.length;e<i;e++)n[e].major&&t.push(e);return t}function yb(n,t,e,i){let r=0,s=e[0],o;for(i=Math.ceil(i),o=0;o<n.length;o++)o===s&&(t.push(n[o]),r++,s=e[r*i])}function No(n,t,e,i,r){let s=$(i,0),o=Math.min($(r,n.length),n.length),a=0,l,c,u;for(e=Math.ceil(e),r&&(l=r-i,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);c<o;c++)c===u&&(t.push(n[c]),a++,u=Math.round(s+a*e))}function xb(n){let t=n.length,e,i;if(t<2)return!1;for(i=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==i)return!1;return i}var bb=n=>n==="left"?"right":n==="right"?"left":n,ud=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,fd=(n,t)=>Math.min(t||n,n);function dd(n,t){let e=[],i=n.length/t,r=n.length,s=0;for(;s<r;s+=i)e.push(n[Math.floor(s)]);return e}function vb(n,t,e){let i=n.ticks.length,r=Math.min(t,i-1),s=n._startPixel,o=n._endPixel,a=1e-6,l=n.getPixelForTick(r),c;if(!(e&&(i===1?c=Math.max(l-s,o-l):t===0?c=(n.getPixelForTick(1)-l)/2:c=(l-n.getPixelForTick(r-1))/2,l+=r<t?c:-c,l<s-a||l>o+a)))return l}function wb(n,t){ot(n,e=>{let i=e.gc,r=i.length/2,s;if(r>t){for(s=0;s<r;++s)delete e.data[i[s]];i.splice(0,r)}})}function zr(n){return n.drawTicks?n.tickLength:0}function hd(n,t){if(!n.display)return 0;let e=Dt(n.font,t),i=Vt(n.padding);return(dt(n.text)?n.text.length:1)*e.lineHeight+i.height}function _b(n,t){return Ge(n,{scale:t,type:"scale"})}function Ob(n,t,e){return Ge(n,{tick:e,index:t,type:"tick"})}function Mb(n,t,e){let i=Do(n);return(e&&t!=="right"||!e&&t==="right")&&(i=bb(i)),i}function Tb(n,t,e,i){let{top:r,left:s,bottom:o,right:a,chart:l}=n,{chartArea:c,scales:u}=l,f=0,d,h,m,p=o-r,y=a-s;if(n.isHorizontal()){if(h=Ht(i,s,a),K(e)){let x=Object.keys(e)[0],b=e[x];m=u[x].getPixelForValue(b)+p-t}else e==="center"?m=(c.bottom+c.top)/2+p-t:m=ud(n,e,t);d=a-s}else{if(K(e)){let x=Object.keys(e)[0],b=e[x];h=u[x].getPixelForValue(b)-y+t}else e==="center"?h=(c.left+c.right)/2-y+t:h=ud(n,e,t);m=Ht(i,o,r),f=e==="left"?-wt:wt}return{titleX:h,titleY:m,maxWidth:d,rotation:f}}var tn=class extends ie{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=Zt(t,Number.POSITIVE_INFINITY),e=Zt(e,Number.NEGATIVE_INFINITY),i=Zt(i,Number.POSITIVE_INFINITY),r=Zt(r,Number.NEGATIVE_INFINITY),{min:Zt(t,i),max:Zt(e,r),minDefined:yt(t),maxDefined:yt(e)}}getMinMax(t){let{min:e,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),o;if(r&&s)return{min:e,max:i};let a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,t),r||(e=Math.min(e,o.min)),s||(i=Math.max(i,o.max));return e=s&&e>i?i:e,i=r&&e>i?e:i,{min:Zt(e,Zt(i,e)),max:Zt(i,Zt(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ut(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Rf(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a<this.ticks.length;this._convertTicksToLabels(l?dd(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=hb(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,t=!t),this._startPixel=e,this._endPixel=i,this._reversePixels=t,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ut(this.options.afterUpdate,[this])}beforeSetDimensions(){ut(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ut(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ut(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ut(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let e=this.options.ticks,i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i],s.label=ut(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){ut(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ut(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,e=t.ticks,i=fd(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,s=e.maxRotation,o=r,a,l,c;if(!this._isVisible()||!e.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let u=this._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Et(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/i:h/(i-1),f+6>a&&(a=h/(i-(t.offset?.5:1)),l=this.maxHeight-zr(t.grid)-e.padding-hd(t.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),o=To(Math.min(Math.asin(Et((u.highest.height+6)/a,-1,1)),Math.asin(Et(l/c,-1,1))-Math.asin(Et(d/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ut(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ut(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){let l=hd(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=zr(s)+l):(t.height=this.maxHeight,t.width=zr(s)+l),i.display&&this.ticks.length){let{first:c,last:u,widest:f,highest:d}=this._getLabelSizes(),h=i.padding*2,m=le(this.labelRotation),p=Math.cos(m),y=Math.sin(m);if(a){let x=i.mirror?0:y*f.width+p*d.height;t.height=Math.min(this.maxHeight,t.height+x+h)}else{let x=i.mirror?0:p*f.width+y*d.height;t.width=Math.min(this.maxWidth,t.width+x+h)}this._calculatePadding(c,u,y,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){let{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,h=0;l?c?(d=r*t.width,h=i*e.height):(d=i*t.height,h=r*e.width):s==="start"?h=e.width:s==="end"?d=t.width:s!=="inner"&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-f+o)*this.width/(this.width-f),0)}else{let u=e.height/2,f=t.height/2;s==="start"?(u=0,f=t.height):s==="end"&&(u=e.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ut(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e<i;e++)X(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=dd(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){let{ctx:r,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(e/fd(e,i)),c=0,u=0,f,d,h,m,p,y,x,b,O,g,w;for(f=0;f<e;f+=l){if(m=t[f].label,p=this._resolveTickFontOptions(f),r.font=y=p.string,x=s[y]=s[y]||{data:{},gc:[]},b=p.lineHeight,O=g=0,!X(m)&&!dt(m))O=Ar(r,x.data,x.gc,O,m),g=b;else if(dt(m))for(d=0,h=m.length;d<h;++d)w=m[d],!X(w)&&!dt(w)&&(O=Ar(r,x.data,x.gc,O,w),g+=b);o.push(O),a.push(g),c=Math.max(O,c),u=Math.max(g,u)}wb(s,e);let _=o.indexOf(c),T=a.indexOf(u),k=D=>({width:o[D]||0,height:a[D]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(T),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return kf(this._alignToPixels?bn(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&t<e.length){let i=e[t];return i.$context||(i.$context=Ob(this.getContext(),t,i))}return this.$context||(this.$context=_b(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,e=le(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let e=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=zr(s),h=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,y=p/2,x=function(B){return bn(i,B,p)},b,O,g,w,_,T,k,D,E,I,P,N;if(o==="top")b=x(this.bottom),T=this.bottom-d,D=b-y,I=x(t.top)+y,N=t.bottom;else if(o==="bottom")b=x(this.top),I=t.top,N=x(t.bottom)-y,T=b+y,D=this.top+d;else if(o==="left")b=x(this.right),_=this.right-d,k=b-y,E=x(t.left)+y,P=t.right;else if(o==="right")b=x(this.left),E=t.left,P=x(t.right)-y,_=b+y,k=this.left+d;else if(e==="x"){if(o==="center")b=x((t.top+t.bottom)/2+.5);else if(K(o)){let B=Object.keys(o)[0],Y=o[B];b=x(this.chart.scales[B].getPixelForValue(Y))}I=t.top,N=t.bottom,T=b+y,D=T+d}else if(e==="y"){if(o==="center")b=x((t.left+t.right)/2);else if(K(o)){let B=Object.keys(o)[0],Y=o[B];b=x(this.chart.scales[B].getPixelForValue(Y))}_=b-y,k=_-d,E=t.left,P=t.right}let G=$(r.ticks.maxTicksLimit,f),V=Math.max(1,Math.ceil(f/G));for(O=0;O<f;O+=V){let B=this.getContext(O),Y=s.setContext(B),A=a.setContext(B),W=Y.lineWidth,Q=Y.color,Nt=A.dash||[],Mt=A.dashOffset,Yt=Y.tickWidth,kt=Y.tickColor,Rt=Y.tickBorderDash||[],Wt=Y.tickBorderDashOffset;g=vb(this,O,l),g!==void 0&&(w=bn(i,g,W),c?_=k=E=P=w:T=D=I=N=w,h.push({tx1:_,ty1:T,tx2:k,ty2:D,x1:E,y1:I,x2:P,y2:N,width:W,color:Q,borderDash:Nt,borderDashOffset:Mt,tickWidth:Yt,tickColor:kt,tickBorderDash:Rt,tickBorderDashOffset:Wt}))}return this._ticksLength=f,this._borderValue=b,h}_computeLabelItems(t){let e=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=s,d=zr(i.grid),h=d+u,m=f?-u:h,p=-le(this.labelRotation),y=[],x,b,O,g,w,_,T,k,D,E,I,P,N="middle";if(r==="top")_=this.bottom-m,T=this._getXAxisLabelAlignment();else if(r==="bottom")_=this.top+m,T=this._getXAxisLabelAlignment();else if(r==="left"){let V=this._getYAxisLabelAlignment(d);T=V.textAlign,w=V.x}else if(r==="right"){let V=this._getYAxisLabelAlignment(d);T=V.textAlign,w=V.x}else if(e==="x"){if(r==="center")_=(t.top+t.bottom)/2+h;else if(K(r)){let V=Object.keys(r)[0],B=r[V];_=this.chart.scales[V].getPixelForValue(B)+h}T=this._getXAxisLabelAlignment()}else if(e==="y"){if(r==="center")w=(t.left+t.right)/2-h;else if(K(r)){let V=Object.keys(r)[0],B=r[V];w=this.chart.scales[V].getPixelForValue(B)}T=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(l==="start"?N="top":l==="end"&&(N="bottom"));let G=this._getLabelSizes();for(x=0,b=a.length;x<b;++x){O=a[x],g=O.label;let V=s.setContext(this.getContext(x));k=this.getPixelForTick(x)+s.labelOffset,D=this._resolveTickFontOptions(x),E=D.lineHeight,I=dt(g)?g.length:1;let B=I/2,Y=V.color,A=V.textStrokeColor,W=V.textStrokeWidth,Q=T;o?(w=k,T==="inner"&&(x===b-1?Q=this.options.reverse?"left":"right":x===0?Q=this.options.reverse?"right":"left":Q="center"),r==="top"?c==="near"||p!==0?P=-I*E+E/2:c==="center"?P=-G.highest.height/2-B*E+E:P=-G.highest.height+E/2:c==="near"||p!==0?P=E/2:c==="center"?P=G.highest.height/2-B*E:P=G.highest.height-I*E,f&&(P*=-1),p!==0&&!V.showLabelBackdrop&&(w+=E/2*Math.sin(p))):(_=k,P=(1-I)*E/2);let Nt;if(V.showLabelBackdrop){let Mt=Vt(V.backdropPadding),Yt=G.heights[x],kt=G.widths[x],Rt=P-Mt.top,Wt=0-Mt.left;switch(N){case"middle":Rt-=Yt/2;break;case"bottom":Rt-=Yt;break}switch(T){case"center":Wt-=kt/2;break;case"right":Wt-=kt;break;case"inner":x===b-1?Wt-=kt:x>0&&(Wt-=kt/2);break}Nt={left:Wt,top:Rt,width:kt+Mt.width,height:Yt+Mt.height,color:V.backdropColor}}y.push({label:g,font:D,textOffset:P,options:{rotation:p,color:Y,strokeColor:A,strokeWidth:W,textAlign:Q,textBaseline:N,translation:[w,_],backdrop:Nt}})}return y}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options;if(-le(this.labelRotation))return t==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){let{position:e,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=t+s,l=o.widest.width,c,u;return e==="left"?r?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):e==="right"?r?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:r,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,s,o),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(s=>s.value===t);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),s,o,a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=r.length;s<o;++s){let l=r[s];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:e,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;let a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,u,f,d;this.isHorizontal()?(c=bn(t,this.left,o)-o/2,u=bn(t,this.right,a)+a/2,f=d=l):(f=bn(t,this.top,o)-o/2,d=bn(t,this.bottom,a)+a/2,c=u=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,f),e.lineTo(u,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;let i=this.ctx,r=this._computeLabelArea();r&&Nr(i,r);let s=this.getLabelItems(t);for(let o of s){let a=o.options,l=o.font,c=o.label,u=o.textOffset;vn(i,c,0,u,l,a)}r&&Rr(i)}drawTitle(){let{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;let s=Dt(i.font),o=Vt(i.padding),a=i.align,l=s.lineHeight/2;e==="bottom"||e==="center"||K(e)?(l+=o.bottom,dt(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=o.top;let{titleX:c,titleY:u,maxWidth:f,rotation:d}=Tb(this,l,e,a);vn(t,i.text,0,0,s,{color:i.color,maxWidth:f,rotation:d,textAlign:Mb(a,e,r),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,e=t.ticks&&t.ticks.z||0,i=$(t.grid&&t.grid.z,-1),r=$(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==tn.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],s,o;for(s=0,o=e.length;s<o;++s){let a=e[s];a[i]===this.id&&(!t||a.type===t)&&r.push(a)}return r}_resolveTickFontOptions(t){let e=this.options.ticks.setContext(this.getContext(t));return Dt(e.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},Vi=class{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let e=Object.getPrototypeOf(t),i;Sb(e)&&(i=this.register(e));let r=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in r||(r[s]=t,kb(t,o,i),this.override&&pt.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in pt[r]&&(delete pt[r][i],this.override&&delete xn[i])}};function kb(n,t,e){let i=Oi(Object.create(null),[e?pt.get(e):{},pt.get(t),n.defaults]);pt.set(t,i),n.defaultRoutes&&Db(t,n.defaultRoutes),n.descriptors&&pt.describe(t,n.descriptors)}function Db(n,t){Object.keys(t).forEach(e=>{let i=e.split("."),r=i.pop(),s=[n].concat(i).join("."),o=t[e].split("."),a=o.pop(),l=o.join(".");pt.route(s,r,l,a)})}function Sb(n){return"id"in n&&"defaults"in n}var Ec=class{constructor(){this.controllers=new Vi(ne,"datasets",!0),this.elements=new Vi(ie,"elements"),this.plugins=new Vi(Object,"plugins"),this.scales=new Vi(tn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(r=>{let s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(t,s,r):ot(r,o=>{let a=i||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,e,i){let r=Mo(t);ut(i["before"+r],[],i),e[t](i),ut(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){let r=e.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}},He=new Ec,Pc=class{constructor(){this._init=[]}notify(t,e,i,r){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let s=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(s,t,e,i);return e==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,r){r=r||{};for(let s of t){let o=s.plugin,a=o[i],l=[e,r,s.options];if(ut(a,l,o)===!1&&r.cancelable)return!1}return!0}invalidate(){X(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){let i=t&&t.config,r=$(i.options&&i.options.plugins,{}),s=Eb(i);return r===!1&&!e?[]:Cb(t,s,r,e)}_notifyStateChanges(t){let e=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}};function Eb(n){let t={},e=[],i=Object.keys(He.plugins.items);for(let s=0;s<i.length;s++)e.push(He.getPlugin(i[s]));let r=n.plugins||[];for(let s=0;s<r.length;s++){let o=r[s];e.indexOf(o)===-1&&(e.push(o),t[o.id]=!0)}return{plugins:e,localIds:t}}function Pb(n,t){return!t&&n===!1?null:n===!0?{}:n}function Cb(n,{plugins:t,localIds:e},i,r){let s=[],o=n.getContext();for(let a of t){let l=a.id,c=Pb(i[l],r);c!==null&&s.push({plugin:a,options:Ib(n.config,{plugin:a,local:e[l]},c,o)})}return s}function Ib(n,{plugin:t,local:e},i,r){let s=n.pluginScopeKeys(t),o=n.getOptionScopes(i,s);return e&&t.defaults&&o.push(t.defaults),n.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Cc(n,t){let e=pt.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function Ab(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function Lb(n,t){return n===t?"_index_":"_value_"}function md(n){if(n==="x"||n==="y"||n==="r")return n}function Fb(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function Ic(n,...t){if(md(n))return n;for(let e of t){let i=e.axis||Fb(e.position)||n.length>1&&md(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function pd(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function Nb(n,t){if(t.data&&t.data.datasets){let e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return pd(n,"x",e[0])||pd(n,"y",e[0])}return{}}function Rb(n,t){let e=xn[n.type]||{scales:{}},i=t.scales||{},r=Cc(n.type,t),s=Object.create(null);return Object.keys(i).forEach(o=>{let a=i[o];if(!K(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);let l=Ic(o,a,Nb(o,n),pt.scales[a.type]),c=Lb(l,r),u=e.scales||{};s[o]=Ti(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(o=>{let a=o.type||n.type,l=o.indexAxis||Cc(a,t),u=(xn[a]||{}).scales||{};Object.keys(u).forEach(f=>{let d=Ab(f,l),h=o[d+"AxisID"]||d;s[h]=s[h]||Object.create(null),Ti(s[h],[{axis:d},i[h],u[f]])})}),Object.keys(s).forEach(o=>{let a=s[o];Ti(a,[pt.scales[a.type],pt.scale])}),s}function th(n){let t=n.options||(n.options={});t.plugins=$(t.plugins,{}),t.scales=Rb(n,t)}function eh(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function Wb(n){return n=n||{},n.data=eh(n.data),th(n),n}var gd=new Map,nh=new Set;function Ro(n,t){let e=gd.get(n);return e||(e=t(),gd.set(n,e),nh.add(e)),e}var Br=(n,t,e)=>{let i=Xe(t,e);i!==void 0&&n.add(i)},Ac=class{constructor(t){this._config=Wb(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=eh(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),th(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ro(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Ro(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Ro(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return Ro(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,r=i.get(t);return(!r||e)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){let{options:r,type:s}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;let l=new Set;e.forEach(u=>{t&&(l.add(t),u.forEach(f=>Br(l,t,f))),u.forEach(f=>Br(l,r,f)),u.forEach(f=>Br(l,xn[s]||{},f)),u.forEach(f=>Br(l,pt,f)),u.forEach(f=>Br(l,So,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),nh.has(e)&&o.set(e,c),c}chartOptionScopes(){let{options:t,type:e}=this;return[t,xn[e]||{},pt.datasets[e]||{},{type:e},pt,So]}resolveNamedOptions(t,e,i,r=[""]){let s={$shared:!0},{resolver:o,subPrefixes:a}=yd(this._resolverCache,t,r),l=o;if(Vb(o,e)){s.$shared=!1,i=qe(i)?i():i;let c=this.createResolver(t,i,a);l=Wn(o,i,c)}for(let c of e)s[c]=l[c];return s}createResolver(t,e,i=[""],r){let{resolver:s}=yd(this._resolverCache,t,i);return K(e)?Wn(s,e,void 0,r):s}};function yd(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));let r=e.join(),s=i.get(r);return s||(s={resolver:Co(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}var Hb=n=>K(n)&&Object.getOwnPropertyNames(n).some(t=>qe(n[t]));function Vb(n,t){let{isScriptable:e,isIndexable:i}=sc(n);for(let r of t){let s=e(r),o=i(r),a=(o||s)&&n[r];if(s&&(qe(a)||Hb(a))||o&&dt(a))return!0}return!1}var zb="4.4.8",Bb=["top","bottom","left","right","chartArea"];function xd(n,t){return n==="top"||n==="bottom"||Bb.indexOf(n)===-1&&t==="x"}function bd(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function vd(n){let t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),ut(e&&e.onComplete,[n],t)}function Yb(n){let t=n.chart,e=t.options.animation;ut(e&&e.onProgress,[n],t)}function ih(n){return Io()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}var Yo={},wd=n=>{let t=ih(n);return Object.values(Yo).filter(e=>e.canvas===t).pop()};function jb(n,t,e){let i=Object.keys(n);for(let r of i){let s=+r;if(s>=t){let o=n[r];delete n[r],(e>0||s>t)&&(n[s+e]=o)}}}function $b(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function Wo(n,t,e){return n.options.clip?n[e]:t[e]}function Ub(n,t){let{xScale:e,yScale:i}=n;return e&&i?{left:Wo(e,t,"left"),right:Wo(e,t,"right"),top:Wo(i,t,"top"),bottom:Wo(i,t,"bottom")}:t}var Gt=class{static register(...t){He.add(...t),_d()}static unregister(...t){He.remove(...t),_d()}constructor(t,e){let i=this.config=new Ac(e),r=ih(t),s=wd(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");let o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||db(r)),this.platform.updateConfig(i);let a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=vf(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Pc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Cf(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],Yo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Qe.listen(this,"complete",vd),Qe.listen(this,"progress",Yb),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:s}=this;return X(t)?e&&s?s:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return He}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return nc(this.canvas,this.ctx),this}stop(){return Qe.stop(this),this}resize(t,e){Qe.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,cc(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ut(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let e=this.options.scales||{};ot(e,(i,r)=>{i.id=r})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{}),s=[];e&&(s=s.concat(Object.keys(e).map(o=>{let a=e[o],l=Ic(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),ot(s,o=>{let a=o.options,l=a.id,c=Ic(l,a),u=$(a.type,o.dtype);(a.position===void 0||xd(a.position,c)!==xd(o.dposition))&&(a.position=o.dposition),r[l]=!0;let f=null;if(l in i&&i[l].type===u)f=i[l];else{let d=He.getScale(u);f=new d({id:l,type:u,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(a,t)}),ot(r,(o,a)=>{o||delete i[a]}),ot(i,o=>{jt.configure(this,o,o.options),jt.addBox(this,o)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((r,s)=>r.index-s.index),i>e){for(let r=e;r<i;++r)this._destroyDatasetMeta(r);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(bd("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,r)=>{e.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){let t=[],e=this.data.datasets,i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){let s=e[i],o=this.getDatasetMeta(i),a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=a,o.indexAxis=s.indexAxis||Cc(a,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{let l=He.getController(a),{datasetElementType:c,dataElementType:u}=pt.datasets[a];Object.assign(l,{dataElementType:He.getElement(u),datasetElementType:c&&He.getElement(c)}),o.controller=new l(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ot(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){let{controller:f}=this.getDatasetMeta(c),d=!r&&s.indexOf(f)===-1;f.buildOrUpdateElements(d),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||ot(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bd("z","_idx"));let{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ot(this.scales,t=>{jt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Yl(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:r,count:s}of e){let o=i==="_removeElements"?-s:s;jb(t,r,o)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;s<e;s++)if(!Yl(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;jt.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],ot(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,qe(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){let i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Qe.has(this)?this.attached&&!Qe.running(this)&&Qe.start(this):(this.draw(),vd({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:i,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let e=this._sortedMetasets,i=[],r,s;for(r=0,s=e.length;r<s;++r){let o=e[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,r=!i.disabled,s=Ub(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&Nr(e,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),t.controller.draw(),r&&Rr(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Fe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){let s=qx.modes[e];return typeof s=="function"?s(this,t,i,r):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,r=i.filter(s=>s&&s._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Ge(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let r=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,r);ki(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Qe.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),nc(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Yo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,e=this.platform,i=(s,o)=>{e.addEventListener(this,s,o),t[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};ot(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)},o,a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){ot(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ot(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let r=i?"set":"remove",s,o,a,l;for(e==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];let c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let e=this._active||[],i=t.map(({datasetIndex:s,index:o})=>{let a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!Lr(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){let r=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),o=s(e,t),a=i?t:s(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;let s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){let{_active:r=[],options:s}=this,o=e,a=this._getActiveElements(t,r,i,o),l=Of(t),c=$b(t,this._lastEvent,i,l);i&&(this._lastEvent=null,ut(s.onHover,[t,a,this],this),l&&ut(s.onClick,[t,a,this],this));let u=!Lr(a,r);return(u||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,u}_getActiveElements(t,e,i,r){if(t.type==="mouseout")return[];if(!i)return e;let s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,r)}};v(Gt,"defaults",pt),v(Gt,"instances",Yo),v(Gt,"overrides",xn),v(Gt,"registry",He),v(Gt,"version",zb),v(Gt,"getChart",wd);function _d(){return ot(Gt.instances,n=>n._plugins.invalidate())}function qb(n,t,e){let{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=t,c=r/a;n.beginPath(),n.arc(s,o,a,i-c,e+c),l>r?(c=r/l,n.arc(s,o,l,e+c,i-c,!0)):n.arc(s,o,r,e+wt,i-wt),n.closePath(),n.clip()}function Zb(n){return Po(n,["outerStart","outerEnd","innerStart","innerEnd"])}function Xb(n,t,e,i){let r=Zb(n.options.borderRadius),s=(e-t)/2,o=Math.min(s,i*t/2),a=l=>{let c=(e-Math.min(s,l))*i/2;return Et(l,0,Math.min(s,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Et(r.innerStart,0,o),innerEnd:Et(r.innerEnd,0,o)}}function Ii(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function qo(n,t,e,i,r,s){let{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,f=Math.max(t.outerRadius+i+e-c,0),d=u>0?u+i+e+c:0,h=0,m=r-l;if(i){let V=u>0?u-i:0,B=f>0?f-i:0,Y=(V+B)/2,A=Y!==0?m*Y/(Y+i):m;h=(m-A)/2}let p=Math.max(.001,m*f-e/ht)/f,y=(m-p)/2,x=l+y+h,b=r-y-h,{outerStart:O,outerEnd:g,innerStart:w,innerEnd:_}=Xb(t,d,f,b-x),T=f-O,k=f-g,D=x+O/T,E=b-g/k,I=d+w,P=d+_,N=x+w/I,G=b-_/P;if(n.beginPath(),s){let V=(D+E)/2;if(n.arc(o,a,f,D,V),n.arc(o,a,f,V,E),g>0){let W=Ii(k,E,o,a);n.arc(W.x,W.y,g,E,b+wt)}let B=Ii(P,b,o,a);if(n.lineTo(B.x,B.y),_>0){let W=Ii(P,G,o,a);n.arc(W.x,W.y,_,b+wt,G+Math.PI)}let Y=(b-_/d+(x+w/d))/2;if(n.arc(o,a,d,b-_/d,Y,!0),n.arc(o,a,d,Y,x+w/d,!0),w>0){let W=Ii(I,N,o,a);n.arc(W.x,W.y,w,N+Math.PI,x-wt)}let A=Ii(T,x,o,a);if(n.lineTo(A.x,A.y),O>0){let W=Ii(T,D,o,a);n.arc(W.x,W.y,O,x-wt,D)}}else{n.moveTo(o,a);let V=Math.cos(D)*f+o,B=Math.sin(D)*f+a;n.lineTo(V,B);let Y=Math.cos(E)*f+o,A=Math.sin(E)*f+a;n.lineTo(Y,A)}n.closePath()}function Gb(n,t,e,i,r){let{fullCircles:s,startAngle:o,circumference:a}=t,l=t.endAngle;if(s){qo(n,t,e,i,l,r);for(let c=0;c<s;++c)n.fill();isNaN(a)||(l=o+(a%mt||mt))}return qo(n,t,e,i,l,r),n.fill(),l}function Qb(n,t,e,i,r){let{fullCircles:s,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:f,borderDashOffset:d}=l,h=l.borderAlign==="inner";if(!c)return;n.setLineDash(f||[]),n.lineDashOffset=d,h?(n.lineWidth=c*2,n.lineJoin=u||"round"):(n.lineWidth=c,n.lineJoin=u||"bevel");let m=t.endAngle;if(s){qo(n,t,e,i,m,r);for(let p=0;p<s;++p)n.stroke();isNaN(a)||(m=o+(a%mt||mt))}h&&qb(n,t,m),s||(qo(n,t,e,i,m,r),n.stroke())}var Yn=class extends ie{constructor(e){super();v(this,"circumference");v(this,"endAngle");v(this,"fullCircles");v(this,"innerRadius");v(this,"outerRadius");v(this,"pixelMargin");v(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,i,r){let s=this.getProps(["x","y"],r),{angle:o,distance:a}=ql(s,{x:e,y:i}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:f,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=(this.options.spacing+this.options.borderWidth)/2,m=$(d,c-l),p=Si(o,l,c)&&l!==c,y=m>=mt||p,x=Re(a,u+h,f+h);return y&&x}getCenterPoint(e){let{x:i,y:r,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:u}=this.options,f=(s+o)/2,d=(a+l+u+c)/2;return{x:i+Math.cos(f)*d,y:r+Math.sin(f)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:i,circumference:r}=this,s=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>mt?Math.floor(r/mt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*s,Math.sin(l)*s);let c=1-Math.sin(Math.min(ht,r||0)),u=s*c;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,Gb(e,this,u,o,a),Qb(e,this,u,o,a),e.restore()}};v(Yn,"id","arc"),v(Yn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),v(Yn,"defaultRoutes",{backgroundColor:"backgroundColor"}),v(Yn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function rh(n,t,e=t){n.lineCap=$(e.borderCapStyle,t.borderCapStyle),n.setLineDash($(e.borderDash,t.borderDash)),n.lineDashOffset=$(e.borderDashOffset,t.borderDashOffset),n.lineJoin=$(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=$(e.borderWidth,t.borderWidth),n.strokeStyle=$(e.borderColor,t.borderColor)}function Kb(n,t,e){n.lineTo(e.x,e.y)}function Jb(n){return n.stepped?Ff:n.tension||n.cubicInterpolationMode==="monotone"?Nf:Kb}function sh(n,t,e={}){let i=n.length,{start:r=0,end:s=i-1}=e,{start:o,end:a}=t,l=Math.max(r,o),c=Math.min(s,a),u=r<o&&s<o||r>a&&s>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function t0(n,t,e,i){let{points:r,options:s}=t,{count:o,start:a,loop:l,ilen:c}=sh(r,e,i),u=Jb(s),{move:f=!0,reverse:d}=i||{},h,m,p;for(h=0;h<=c;++h)m=r[(a+(d?c-h:h))%o],!m.skip&&(f?(n.moveTo(m.x,m.y),f=!1):u(n,p,m,d,s.stepped),p=m);return l&&(m=r[(a+(d?c:0))%o],u(n,p,m,d,s.stepped)),!!l}function e0(n,t,e,i){let r=t.points,{count:s,start:o,ilen:a}=sh(r,e,i),{move:l=!0,reverse:c}=i||{},u=0,f=0,d,h,m,p,y,x,b=g=>(o+(c?a-g:g))%s,O=()=>{p!==y&&(n.lineTo(u,y),n.lineTo(u,p),n.lineTo(u,x))};for(l&&(h=r[b(0)],n.moveTo(h.x,h.y)),d=0;d<=a;++d){if(h=r[b(d)],h.skip)continue;let g=h.x,w=h.y,_=g|0;_===m?(w<p?p=w:w>y&&(y=w),u=(f*u+g)/++f):(O(),n.lineTo(g,w),m=_,f=0,p=y=w),x=w}O()}function Lc(n){let t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?e0:t0}function n0(n){return n.stepped?$f:n.tension||n.cubicInterpolationMode==="monotone"?Uf:yn}function i0(n,t,e,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,e,i)&&r.closePath()),rh(n,t.options),n.stroke(r)}function r0(n,t,e,i){let{segments:r,options:s}=t,o=Lc(t);for(let a of r)rh(n,s,a.style),n.beginPath(),o(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}var s0=typeof Path2D=="function";function o0(n,t,e,i){s0&&!t.options.segment?i0(n,t,e,i):r0(n,t,e,i)}var Ve=class extends ie{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){let r=i.spanGaps?this._loop:this._fullLoop;Bf(this._points,i,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Zf(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i=this.options,r=t[e],s=this.points,o=mc(this,{property:e,start:r,end:r});if(!o.length)return;let a=[],l=n0(i),c,u;for(c=0,u=o.length;c<u;++c){let{start:f,end:d}=o[c],h=s[f],m=s[d];if(h===m){a.push(h);continue}let p=Math.abs((r-h[e])/(m[e]-h[e])),y=l(h,m,p,i.stepped);y[e]=t[e],a.push(y)}return a.length===1?a[0]:a}pathSegment(t,e,i){return Lc(this)(t,this,e,i)}path(t,e,i){let r=this.segments,s=Lc(this),o=this._loop;e=e||0,i=i||this.points.length-e;for(let a of r)o&=s(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,r){let s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),o0(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};v(Ve,"id","line"),v(Ve,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),v(Ve,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),v(Ve,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Od(n,t,e,i){let r=n.options,{[e]:s}=n.getProps([e],i);return Math.abs(t-s)<r.radius+r.hitRadius}var Wi=class extends ie{constructor(e){super();v(this,"parsed");v(this,"skip");v(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let s=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(i-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return Od(this,e,"x",i)}inYRange(e,i){return Od(this,e,"y",i)}getCenterPoint(e){let{x:i,y:r}=this.getProps(["x","y"],e);return{x:i,y:r}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);let r=i&&e.borderWidth||0;return(i+r)*2}draw(e,i){let r=this.options;this.skip||r.radius<.1||!Fe(this,i,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Eo(e,r,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}};v(Wi,"id","point"),v(Wi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),v(Wi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function oh(n,t){let{x:e,y:i,base:r,width:s,height:o}=n.getProps(["x","y","base","width","height"],t),a,l,c,u,f;return n.horizontal?(f=o/2,a=Math.min(e,r),l=Math.max(e,r),c=i-f,u=i+f):(f=s/2,a=e-f,l=e+f,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function On(n,t,e,i){return n?0:Et(t,e,i)}function a0(n,t,e){let i=n.options.borderWidth,r=n.borderSkipped,s=rc(i);return{t:On(r.top,s.top,0,e),r:On(r.right,s.right,0,t),b:On(r.bottom,s.bottom,0,e),l:On(r.left,s.left,0,t)}}function l0(n,t,e){let{enableBorderRadius:i}=n.getProps(["enableBorderRadius"]),r=n.options.borderRadius,s=wn(r),o=Math.min(t,e),a=n.borderSkipped,l=i||K(r);return{topLeft:On(!l||a.top||a.left,s.topLeft,0,o),topRight:On(!l||a.top||a.right,s.topRight,0,o),bottomLeft:On(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:On(!l||a.bottom||a.right,s.bottomRight,0,o)}}function c0(n){let t=oh(n),e=t.right-t.left,i=t.bottom-t.top,r=a0(n,e/2,i/2),s=l0(n,e/2,i/2);return{outer:{x:t.left,y:t.top,w:e,h:i,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function _c(n,t,e,i){let r=t===null,s=e===null,a=n&&!(r&&s)&&oh(n,i);return a&&(r||Re(t,a.left,a.right))&&(s||Re(e,a.top,a.bottom))}function u0(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function f0(n,t){n.rect(t.x,t.y,t.w,t.h)}function Oc(n,t,e={}){let i=n.x!==e.x?-t:0,r=n.y!==e.y?-t:0,s=(n.x+n.w!==e.x+e.w?t:0)-i,o=(n.y+n.h!==e.y+e.h?t:0)-r;return{x:n.x+i,y:n.y+r,w:n.w+s,h:n.h+o,radius:n.radius}}var Hi=class extends ie{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:o}=c0(this),a=u0(o.radius)?Pi:f0;t.save(),(o.w!==s.w||o.h!==s.h)&&(t.beginPath(),a(t,Oc(o,e,s)),t.clip(),a(t,Oc(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Oc(s,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return _c(this,t,e,i)}inXRange(t,e){return _c(this,t,null,e)}inYRange(t,e){return _c(this,null,t,e)}getCenterPoint(t){let{x:e,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+r)/2:e,y:s?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};v(Hi,"id","bar"),v(Hi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),v(Hi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var d0=Object.freeze({__proto__:null,ArcElement:Yn,BarElement:Hi,LineElement:Ve,PointElement:Wi}),Fc=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Md=Fc.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function ah(n){return Fc[n%Fc.length]}function lh(n){return Md[n%Md.length]}function h0(n,t){return n.borderColor=ah(t),n.backgroundColor=lh(t),++t}function m0(n,t){return n.backgroundColor=n.data.map(()=>ah(t++)),t}function p0(n,t){return n.backgroundColor=n.data.map(()=>lh(t++)),t}function g0(n){let t=0;return(e,i)=>{let r=n.getDatasetMeta(i).controller;r instanceof Je?t=m0(e,t):r instanceof $n?t=p0(e,t):r&&(t=h0(e,t))}}function Td(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function y0(n){return n&&(n.borderColor||n.backgroundColor)}function x0(){return pt.borderColor!=="rgba(0,0,0,0.1)"||pt.backgroundColor!=="rgba(0,0,0,0.1)"}var b0={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=n.config,{elements:s}=r,o=Td(i)||y0(r)||s&&Td(s)||x0();if(!e.forceOverride&&o)return;let a=g0(n);i.forEach(a)}};function v0(n,t,e,i,r){let s=r.samples||i;if(s>=e)return n.slice(t,t+e);let o=[],a=(e-2)/(s-2),l=0,c=t+e-1,u=t,f,d,h,m,p;for(o[l++]=n[u],f=0;f<s-2;f++){let y=0,x=0,b,O=Math.floor((f+1)*a)+1+t,g=Math.min(Math.floor((f+2)*a)+1,e)+t,w=g-O;for(b=O;b<g;b++)y+=n[b].x,x+=n[b].y;y/=w,x/=w;let _=Math.floor(f*a)+1+t,T=Math.min(Math.floor((f+1)*a)+1,e)+t,{x:k,y:D}=n[u];for(h=m=-1,b=_;b<T;b++)m=.5*Math.abs((k-y)*(n[b].y-D)-(k-n[b].x)*(x-D)),m>h&&(h=m,d=n[b],p=b);o[l++]=d,u=p}return o[l++]=n[c],o}function w0(n,t,e,i){let r=0,s=0,o,a,l,c,u,f,d,h,m,p,y=[],x=t+e-1,b=n[t].x,g=n[x].x-b;for(o=t;o<t+e;++o){a=n[o],l=(a.x-b)/g*i,c=a.y;let w=l|0;if(w===u)c<m?(m=c,f=o):c>p&&(p=c,d=o),r=(s*r+a.x)/++s;else{let _=o-1;if(!X(f)&&!X(d)){let T=Math.min(f,d),k=Math.max(f,d);T!==h&&T!==_&&y.push(ct(L({},n[T]),{x:r})),k!==h&&k!==_&&y.push(ct(L({},n[k]),{x:r}))}o>0&&_!==h&&y.push(n[_]),y.push(a),u=w,s=0,m=p=c,f=d=h=o}}return y}function ch(n){if(n._decimated){let t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function kd(n){n.data.datasets.forEach(t=>{ch(t)})}function _0(n,t){let e=t.length,i=0,r,{iScale:s}=n,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=Et(Le(t,s.axis,o).lo,0,e-1)),c?r=Et(Le(t,s.axis,a).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var O0={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){kd(n);return}let i=n.width;n.data.datasets.forEach((r,s)=>{let{_data:o,indexAxis:a}=r,l=n.getDatasetMeta(s),c=o||r.data;if(Ci([a,n.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let u=n.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||n.options.parsing)return;let{start:f,count:d}=_0(l,c),h=e.threshold||4*i;if(d<=h){ch(r);return}X(o)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(e.algorithm){case"lttb":m=v0(c,f,d,i,e);break;case"min-max":m=w0(c,f,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=m})},destroy(n){kd(n)}};function M0(n,t,e){let i=n.segments,r=n.points,s=t.points,o=[];for(let a of i){let{start:l,end:c}=a;c=Hc(l,c,r);let u=Nc(e,r[l],r[c],a.loop);if(!t.segments){o.push({source:a,target:u,start:r[l],end:r[c]});continue}let f=mc(t,u);for(let d of f){let h=Nc(e,s[d.start],s[d.end],d.loop),m=hc(a,r,h);for(let p of m)o.push({source:p,target:d,start:{[e]:Dd(u,h,"start",Math.max)},end:{[e]:Dd(u,h,"end",Math.min)}})}}return o}function Nc(n,t,e,i){if(i)return;let r=t[n],s=e[n];return n==="angle"&&(r=qt(r),s=qt(s)),{property:n,start:r,end:s}}function T0(n,t){let{x:e=null,y:i=null}=n||{},r=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=Hc(o,a,r);let l=r[o],c=r[a];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):e!==null&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}function Hc(n,t,e){for(;t>n;t--){let i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function Dd(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function uh(n,t){let e=[],i=!1;return dt(n)?(i=!0,e=n):e=T0(n,t),e.length?new Ve({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function Sd(n){return n&&n.fill!==!1}function k0(n,t,e){let r=n[t].fill,s=[t],o;if(!e)return r;for(;r!==!1&&s.indexOf(r)===-1;){if(!yt(r))return r;if(o=n[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function D0(n,t,e){let i=C0(n);if(K(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return yt(r)&&Math.floor(r)===r?S0(i[0],t,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function S0(n,t,e,i){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function E0(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:K(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function P0(n,t,e){let i;return n==="start"?i=e:n==="end"?i=t.options.reverse?t.min:t.max:K(n)?i=n.value:i=t.getBaseValue(),i}function C0(n){let t=n.options,e=t.fill,i=$(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function I0(n){let{scale:t,index:e,line:i}=n,r=[],s=i.segments,o=i.points,a=A0(t,e);a.push(uh({x:null,y:t.bottom},i));for(let l=0;l<s.length;l++){let c=s[l];for(let u=c.start;u<=c.end;u++)L0(r,o[u],a)}return new Ve({points:r,options:{}})}function A0(n,t){let e=[],i=n.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){let s=i[r];if(s.index===t)break;s.hidden||e.unshift(s.dataset)}return e}function L0(n,t,e){let i=[];for(let r=0;r<e.length;r++){let s=e[r],{first:o,last:a,point:l}=F0(s,t,"x");if(!(!l||o&&a)){if(o)i.unshift(l);else if(n.push(l),!a)break}}n.push(...i)}function F0(n,t,e){let i=n.interpolate(t,e);if(!i)return{};let r=i[e],s=n.segments,o=n.points,a=!1,l=!1;for(let c=0;c<s.length;c++){let u=s[c],f=o[u.start][e],d=o[u.end][e];if(Re(r,f,d)){a=r===f,l=r===d;break}}return{first:a,last:l,point:i}}var Zo=class{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){let{x:r,y:s,radius:o}=this;return e=e||{start:0,end:mt},t.arc(r,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){let{x:e,y:i,radius:r}=this,s=t.angle;return{x:e+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}};function N0(n){let{chart:t,fill:e,line:i}=n;if(yt(e))return R0(t,e);if(e==="stack")return I0(n);if(e==="shape")return!0;let r=W0(n);return r instanceof Zo?r:uh(r,i)}function R0(n,t){let e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function W0(n){return(n.scale||{}).getPointPositionForValue?V0(n):H0(n)}function H0(n){let{scale:t={},fill:e}=n,i=E0(e,t);if(yt(i)){let r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function V0(n){let{scale:t,fill:e}=n,i=t.options,r=t.getLabels().length,s=i.reverse?t.max:t.min,o=P0(e,t,s),a=[];if(i.grid.circular){let l=t.getPointPositionForValue(0,s);return new Zo({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<r;++l)a.push(t.getPointPositionForValue(l,o));return a}function Mc(n,t,e){let i=N0(t),{line:r,scale:s,axis:o}=t,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:f=c}=l||{};i&&r.points.length&&(Nr(n,e),z0(n,{line:r,target:i,above:u,below:f,area:e,scale:s,axis:o}),Rr(n))}function z0(n,t){let{line:e,target:i,above:r,below:s,area:o,scale:a}=t,l=e._loop?"angle":t.axis;n.save(),l==="x"&&s!==r&&(Ed(n,i,o.top),Pd(n,{line:e,target:i,color:r,scale:a,property:l}),n.restore(),n.save(),Ed(n,i,o.bottom)),Pd(n,{line:e,target:i,color:s,scale:a,property:l}),n.restore()}function Ed(n,t,e){let{segments:i,points:r}=t,s=!0,o=!1;n.beginPath();for(let a of i){let{start:l,end:c}=a,u=r[l],f=r[Hc(l,c,r)];s?(n.moveTo(u.x,u.y),s=!1):(n.lineTo(u.x,e),n.lineTo(u.x,u.y)),o=!!t.pathSegment(n,a,{move:o}),o?n.closePath():n.lineTo(f.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function Pd(n,t){let{line:e,target:i,property:r,color:s,scale:o}=t,a=M0(e,i,r);for(let{source:l,target:c,start:u,end:f}of a){let{style:{backgroundColor:d=s}={}}=l,h=i!==!0;n.save(),n.fillStyle=d,B0(n,o,h&&Nc(r,u,f)),n.beginPath();let m=!!e.pathSegment(n,l),p;if(h){m?n.closePath():Cd(n,i,f,r);let y=!!i.pathSegment(n,c,{move:m,reverse:!0});p=m&&y,p||Cd(n,i,u,r)}n.closePath(),n.fill(p?"evenodd":"nonzero"),n.restore()}}function B0(n,t,e){let{top:i,bottom:r}=t.chart.chartArea,{property:s,start:o,end:a}=e||{};s==="x"&&(n.beginPath(),n.rect(o,i,a-o,r-i),n.clip())}function Cd(n,t,e,i){let r=t.interpolate(e,i);r&&n.lineTo(r.x,r.y)}var Y0={id:"filler",afterDatasetsUpdate(n,t,e){let i=(n.data.datasets||[]).length,r=[],s,o,a,l;for(o=0;o<i;++o)s=n.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Ve&&(l={visible:n.isDatasetVisible(o),index:o,fill:D0(a,o,i),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],!(!l||l.fill===!1)&&(l.fill=k0(r,o,e.propagate))},beforeDraw(n,t,e){let i=e.drawTime==="beforeDraw",r=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let o=r.length-1;o>=0;--o){let a=r[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&Mc(n.ctx,a,s))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=n.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let s=i[r].$filler;Sd(s)&&Mc(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){let i=t.meta.$filler;!Sd(i)||e.drawTime!=="beforeDatasetDraw"||Mc(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Id=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},j0=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index,Xo=class extends ie{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=ut(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}let i=t.labels,r=Dt(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Id(i,s),c,u;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,r,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){let{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a,f=t;s.textAlign="left",s.textBaseline="middle";let d=-1,h=-u;return this.legendItems.forEach((m,p)=>{let y=i+e/2+s.measureText(m.text).width;(p===0||c[c.length-1]+y+2*a>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,h+=u,d++),l[p]={left:0,top:h,row:d,width:y,height:r},c[c.length-1]+=y+a}),f}_fitCols(t,e,i,r){let{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t,f=a,d=0,h=0,m=0,p=0;return this.legendItems.forEach((y,x)=>{let{itemWidth:b,itemHeight:O}=$0(i,e,s,y,r);x>0&&h+O+2*a>u&&(f+=d+a,c.push({width:d,height:h}),m+=d+a,p++,d=h=0),l[x]={left:m,top:h,col:p,width:b,height:O},d=Math.max(d,b),h+=O+a}),f+=d,c.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:s}}=this,o=Vn(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ht(i,this.left+r,this.right-this.lineWidths[a]);for(let c of e)a!==c.row&&(a=c.row,l=Ht(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+t+r,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+r}else{let a=0,l=Ht(i,this.top+t+r,this.bottom-this.columnSizes[a].height);for(let c of e)c.col!==a&&(a=c.col,l=Ht(i,this.top+t+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;Nr(t,this),this._draw(),Rr(t)}}_draw(){let{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:s,labels:o}=t,a=pt.color,l=Vn(t.rtl,this.left,this.width),c=Dt(o.font),{padding:u}=o,f=c.size,d=f/2,h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:m,boxHeight:p,itemHeight:y}=Id(o,f),x=function(_,T,k){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;r.save();let D=$(k.lineWidth,1);if(r.fillStyle=$(k.fillStyle,a),r.lineCap=$(k.lineCap,"butt"),r.lineDashOffset=$(k.lineDashOffset,0),r.lineJoin=$(k.lineJoin,"miter"),r.lineWidth=D,r.strokeStyle=$(k.strokeStyle,a),r.setLineDash($(k.lineDash,[])),o.usePointStyle){let E={radius:p*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:D},I=l.xPlus(_,m/2),P=T+d;ic(r,E,I,P,o.pointStyleWidth&&m)}else{let E=T+Math.max((f-p)/2,0),I=l.leftForLtr(_,m),P=wn(k.borderRadius);r.beginPath(),Object.values(P).some(N=>N!==0)?Pi(r,{x:I,y:E,w:m,h:p,radius:P}):r.rect(I,E,m,p),r.fill(),D!==0&&r.stroke()}r.restore()},b=function(_,T,k){vn(r,k.text,_,T+y/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},O=this.isHorizontal(),g=this._computeTitleHeight();O?h={x:Ht(s,this.left+u,this.right-i[0]),y:this.top+u+g,line:0}:h={x:this.left+u,y:Ht(s,this.top+g+u,this.bottom-e[0].height),line:0},fc(this.ctx,t.textDirection);let w=y+u;this.legendItems.forEach((_,T)=>{r.strokeStyle=_.fontColor,r.fillStyle=_.fontColor;let k=r.measureText(_.text).width,D=l.textAlign(_.textAlign||(_.textAlign=o.textAlign)),E=m+d+k,I=h.x,P=h.y;l.setWidth(this.width),O?T>0&&I+E+u>this.right&&(P=h.y+=w,h.line++,I=h.x=Ht(s,this.left+u,this.right-i[h.line])):T>0&&P+w>this.bottom&&(I=h.x=I+e[h.line].width+u,h.line++,P=h.y=Ht(s,this.top+g+u,this.bottom-e[h.line].height));let N=l.x(I);if(x(N,P,_),I=If(D,I+m+d,O?I+E:this.right,t.rtl),b(l.x(I),P,_),O)h.x+=E+u;else if(typeof _.text!="string"){let G=c.lineHeight;h.y+=fh(_,G)+u}else h.y+=w}),dc(this.ctx,t.textDirection)}drawTitle(){let t=this.options,e=t.title,i=Dt(e.font),r=Vt(e.padding);if(!e.display)return;let s=Vn(t.rtl,this.left,this.width),o=this.ctx,a=e.position,l=i.size/2,c=r.top+l,u,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,f=Ht(t.align,f,this.right-d);else{let m=this.columnSizes.reduce((p,y)=>Math.max(p,y.height),0);u=c+Ht(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}let h=Ht(a,f,f+d);o.textAlign=s.textAlign(Do(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,vn(o,e.text,h,u,i)}_computeTitleHeight(){let t=this.options.title,e=Dt(t.font),i=Vt(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,s;if(Re(t,this.left,this.right)&&Re(e,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],Re(t,r.left,r.left+r.width)&&Re(e,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){let e=this.options;if(!Z0(t.type,e))return;let i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let r=this._hoveredItem,s=j0(r,i);r&&!s&&ut(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!s&&ut(e.onHover,[t,i,this],this)}else i&&ut(e.onClick,[t,i,this],this)}};function $0(n,t,e,i,r){let s=U0(i,n,t,e),o=q0(r,i,t.lineHeight);return{itemWidth:s,itemHeight:o}}function U0(n,t,e,i){let r=n.text;return r&&typeof r!="string"&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),t+e.size/2+i.measureText(r).width}function q0(n,t,e){let i=n;return typeof t.text!="string"&&(i=fh(t,e)),i}function fh(n,t){let e=n.text?n.text.length:0;return t*e}function Z0(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var X0={id:"legend",_element:Xo,start(n,t,e){let i=n.legend=new Xo({ctx:n.ctx,options:e,chart:n});jt.configure(n,i,e),jt.addBox(n,i)},stop(n){jt.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){let i=n.legend;jt.configure(n,i,e),i.options=e},afterUpdate(n){let t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){let i=t.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){let t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=n.legend.options;return n._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),u=Vt(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}},Jr=class extends ie{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;let r=dt(i.text)?i.text.length:1;this._padding=Vt(i.padding);let s=r*Dt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){let{top:e,left:i,bottom:r,right:s,options:o}=this,a=o.align,l=0,c,u,f;return this.isHorizontal()?(u=Ht(a,i,s),f=e+t,c=s-i):(o.position==="left"?(u=i+t,f=Ht(a,r,e),l=ht*-.5):(u=s-t,f=Ht(a,e,r),l=ht*.5),c=r-e),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){let t=this.ctx,e=this.options;if(!e.display)return;let i=Dt(e.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);vn(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Do(e.align),textBaseline:"middle",translation:[o,a]})}};function G0(n,t){let e=new Jr({ctx:n.ctx,options:t,chart:n});jt.configure(n,e,t),jt.addBox(n,e),n.titleBlock=e}var Q0={id:"title",_element:Jr,start(n,t,e){G0(n,e)},stop(n){let t=n.titleBlock;jt.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){let i=n.titleBlock;jt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ho=new WeakMap,K0={id:"subtitle",start(n,t,e){let i=new Jr({ctx:n.ctx,options:e,chart:n});jt.configure(n,i,e),jt.addBox(n,i),Ho.set(n,i)},stop(n){jt.removeBox(n,Ho.get(n)),Ho.delete(n)},beforeUpdate(n,t,e){let i=Ho.get(n);jt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},$r={average(n){if(!n.length)return!1;let t,e,i=new Set,r=0,s=0;for(t=0,e=n.length;t<e;++t){let a=n[t].element;if(a&&a.hasValue()){let l=a.tooltipPosition();i.add(l.x),r+=l.y,++s}}return s===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:r/s}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=n.length;s<o;++s){let l=n[s].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),u=_o(t,c);u<r&&(r=u,a=l)}}if(a){let l=a.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function We(n,t){return t&&(dt(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Ke(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
1
|
+ var ho=Object.defineProperty,Jg=Object.defineProperties,ty=Object.getOwnPropertyDescriptor,ey=Object.getOwnPropertyDescriptors,ny=Object.getOwnPropertyNames,fo=Object.getOwnPropertySymbols;var Al=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable;var Il=(n,t,e)=>t in n?ho(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,A=(n,t)=>{for(var e in t||(t={}))Al.call(t,e)&&Il(n,e,t[e]);if(fo)for(var e of fo(t))sf.call(t,e)&&Il(n,e,t[e]);return n},lt=(n,t)=>Jg(n,ey(t));var wi=(n,t)=>{var e={};for(var i in n)Al.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&fo)for(var i of fo(n))t.indexOf(i)<0&&sf.call(n,i)&&(e[i]=n[i]);return e};var iy=(n,t)=>{for(var e in t)ho(n,e,{get:t[e],enumerable:!0})},ry=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ny(t))!Al.call(n,r)&&r!==e&&ho(n,r,{get:()=>t[r],enumerable:!(i=ty(t,r))||i.enumerable});return n};var sy=n=>ry(ho({},"__esModule",{value:!0}),n);var v=(n,t,e)=>(Il(n,typeof t!="symbol"?t+"":t,e),e);var JM={};iy(JM,{default:()=>KM});module.exports=sy(JM);function Ir(n){return n+.5|0}var pn=(n,t,e)=>Math.max(Math.min(n,e),t);function Cr(n){return pn(Ir(n*2.55),0,255)}function gn(n){return pn(Ir(n*255),0,255)}function Ue(n){return pn(Ir(n/2.55)/100,0,1)}function of(n){return pn(Ir(n*100),0,100)}var ae={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Fl=[..."0123456789ABCDEF"],oy=n=>Fl[n&15],ay=n=>Fl[(n&240)>>4]+Fl[n&15],mo=n=>(n&240)>>4===(n&15),ly=n=>mo(n.r)&&mo(n.g)&&mo(n.b)&&mo(n.a);function cy(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&ae[n[1]]*17,g:255&ae[n[2]]*17,b:255&ae[n[3]]*17,a:t===5?ae[n[4]]*17:255}:(t===7||t===9)&&(e={r:ae[n[1]]<<4|ae[n[2]],g:ae[n[3]]<<4|ae[n[4]],b:ae[n[5]]<<4|ae[n[6]],a:t===9?ae[n[7]]<<4|ae[n[8]]:255})),e}var uy=(n,t)=>n<255?t(n):"";function fy(n){var t=ly(n)?oy:ay;return n?"#"+t(n.r)+t(n.g)+t(n.b)+uy(n.a,t):void 0}var dy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function uf(n,t,e){let i=t*Math.min(e,1-e),r=(s,o=(s+n/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function hy(n,t,e){let i=(r,s=(r+n/60)%6)=>e-e*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function my(n,t,e){let i=uf(n,1,.5),r;for(t+e>1&&(r=1/(t+e),t*=r,e*=r),r=0;r<3;r++)i[r]*=1-t-e,i[r]+=t;return i}function py(n,t,e,i,r){return n===r?(t-e)/i+(t<e?6:0):t===r?(e-n)/i+2:(n-t)/i+4}function Nl(n){let e=n.r/255,i=n.g/255,r=n.b/255,s=Math.max(e,i,r),o=Math.min(e,i,r),a=(s+o)/2,l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=py(e,i,r,u,s),l=l*60+.5),[l|0,c||0,a]}function Rl(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(gn)}function Wl(n,t,e){return Rl(uf,n,t,e)}function gy(n,t,e){return Rl(my,n,t,e)}function yo(n,t,e){return Rl(hy,n,t,e)}function ff(n){return(n%360+360)%360}function yy(n){let t=dy.exec(n),e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?Cr(+t[5]):gn(+t[5]));let r=ff(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=gy(r,s,o):t[1]==="hsv"?i=yo(r,s,o):i=Wl(r,s,o),{r:i[0],g:i[1],b:i[2],a:e}}function xy(n,t){var e=Nl(n);e[0]=ff(e[0]+t),e=Wl(e),n.r=e[0],n.g=e[1],n.b=e[2]}function by(n){if(!n)return;let t=Nl(n),e=t[0],i=of(t[1]),r=of(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${r}%, ${Ue(n.a)})`:`hsl(${e}, ${i}%, ${r}%)`}var af={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function vy(){let n={},t=Object.keys(lf),e=Object.keys(af),i,r,s,o,a;for(i=0;i<t.length;i++){for(o=a=t[i],r=0;r<e.length;r++)s=e[r],a=a.replace(s,af[s]);s=parseInt(lf[o],16),n[a]=[s>>16&255,s>>8&255,s&255]}return n}var po;function wy(n){po||(po=vy(),po.transparent=[0,0,0,0]);let t=po[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var _y=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Oy(n){let t=_y.exec(n),e=255,i,r,s;if(t){if(t[7]!==i){let o=+t[7];e=t[8]?Cr(o):pn(o*255,0,255)}return i=+t[1],r=+t[3],s=+t[5],i=255&(t[2]?Cr(i):pn(i,0,255)),r=255&(t[4]?Cr(r):pn(r,0,255)),s=255&(t[6]?Cr(s):pn(s,0,255)),{r:i,g:r,b:s,a:e}}}function Oi(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Ue(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}var Ll=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,_i=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function My(n,t,e){let i=_i(Ue(n.r)),r=_i(Ue(n.g)),s=_i(Ue(n.b));return{r:gn(Ll(i+e*(_i(Ue(t.r))-i))),g:gn(Ll(r+e*(_i(Ue(t.g))-r))),b:gn(Ll(s+e*(_i(Ue(t.b))-s))),a:n.a+e*(t.a-n.a)}}function go(n,t,e){if(n){let i=Nl(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=Wl(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function df(n,t){return n&&Object.assign(t||{},n)}function cf(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=gn(n[3]))):(t=df(n,{r:0,g:0,b:0,a:1}),t.a=gn(t.a)),t}function Ty(n){return n.charAt(0)==="r"?Oy(n):yy(n)}var yn=class{constructor(t){if(t instanceof yn)return t;let e=typeof t,i;e==="object"?i=cf(t):e==="string"&&(i=cy(t)||wy(t)||Ty(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=df(this._rgb);return t&&(t.a=Ue(t.a)),t}set rgb(t){this._rgb=cf(t)}rgbString(){return this._valid?Oi(this._rgb):void 0}hexString(){return this._valid?fy(this._rgb):void 0}hslString(){return this._valid?by(this._rgb):void 0}mix(t,e){if(t){let i=this.rgb,r=t.rgb,s,o=e===s?.5:e,a=2*o-1,l=i.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=My(this._rgb,t._rgb,e)),this}clone(){return new yn(this.rgb)}alpha(t){return this._rgb.a=gn(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=Ir(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return go(this._rgb,2,t),this}darken(t){return go(this._rgb,2,-t),this}saturate(t){return go(this._rgb,1,t),this}desaturate(t){return go(this._rgb,1,-t),this}rotate(t){return xy(this._rgb,t),this}};function Ne(){}var Of=(()=>{let n=0;return()=>n++})();function X(n){return n==null}function dt(n){if(Array.isArray&&Array.isArray(n))return!0;let t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function K(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function yt(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function Zt(n,t){return yt(n)?n:t}function $(n,t){return typeof n=="undefined"?t:n}var Mf=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,Bl=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function ut(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function ot(n,t,e,i){let r,s,o;if(dt(n))if(s=n.length,i)for(r=s-1;r>=0;r--)t.call(e,n[r],r);else for(r=0;r<s;r++)t.call(e,n[r],r);else if(K(n))for(o=Object.keys(n),s=o.length,r=0;r<s;r++)t.call(e,n[o[r]],o[r])}function Fr(n,t){let e,i,r,s;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(r=n[e],s=t[e],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function wo(n){if(dt(n))return n.map(wo);if(K(n)){let t=Object.create(null),e=Object.keys(n),i=e.length,r=0;for(;r<i;++r)t[e[r]]=wo(n[e[r]]);return t}return n}function Tf(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function ky(n,t,e,i){if(!Tf(n))return;let r=t[n],s=e[n];K(r)&&K(s)?Ti(r,s,i):t[n]=wo(s)}function Ti(n,t,e){let i=dt(t)?t:[t],r=i.length;if(!K(n))return n;e=e||{};let s=e.merger||ky,o;for(let a=0;a<r;++a){if(o=i[a],!K(o))continue;let l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],n,o,e)}return n}function Di(n,t){return Ti(n,t,{merger:Dy})}function Dy(n,t,e){if(!Tf(n))return;let i=t[n],r=e[n];K(i)&&K(r)?Di(i,r):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=wo(r))}var hf={"":n=>n,x:n=>n.x,y:n=>n.y};function Sy(n){let t=n.split("."),e=[],i="";for(let r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function Ey(n){let t=Sy(n);return e=>{for(let i of t){if(i==="")break;e=e&&e[i]}return e}}function Xe(n,t){return(hf[t]||(hf[t]=Ey(t)))(n)}function To(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Si=n=>typeof n!="undefined",qe=n=>typeof n=="function",Yl=(n,t)=>{if(n.size!==t.size)return!1;for(let e of n)if(!t.has(e))return!1;return!0};function kf(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}var ht=Math.PI,mt=2*ht,Py=mt+ht,_o=Number.POSITIVE_INFINITY,Cy=ht/180,wt=ht/2,Rn=ht/4,mf=ht*2/3,Ze=Math.log10,be=Math.sign;function Ei(n,t,e){return Math.abs(n-t)<e}function jl(n){let t=Math.round(n);n=Ei(n,t,n/1e3)?t:n;let e=Math.pow(10,Math.floor(Ze(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Df(n){let t=[],e=Math.sqrt(n),i;for(i=1;i<e;i++)n%i===0&&(t.push(i),t.push(n/i));return e===(e|0)&&t.push(e),t.sort((r,s)=>r-s).pop(),t}function Iy(n){return typeof n=="symbol"||typeof n=="object"&&n!==null&&!(Symbol.toPrimitive in n||"toString"in n||"valueOf"in n)}function Vn(n){return!Iy(n)&&!isNaN(parseFloat(n))&&isFinite(n)}function Sf(n,t){let e=Math.round(n);return e-t<=n&&e+t>=n}function $l(n,t,e){let i,r,s;for(i=0,r=n.length;i<r;i++)s=n[i][e],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function le(n){return n*(ht/180)}function ko(n){return n*(180/ht)}function Ul(n){if(!yt(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function ql(n,t){let e=t.x-n.x,i=t.y-n.y,r=Math.sqrt(e*e+i*i),s=Math.atan2(i,e);return s<-.5*ht&&(s+=mt),{angle:s,distance:r}}function Oo(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Ay(n,t){return(n-t+Py)%mt-ht}function qt(n){return(n%mt+mt)%mt}function Pi(n,t,e,i){let r=qt(n),s=qt(t),o=qt(e),a=qt(s-r),l=qt(o-r),c=qt(r-s),u=qt(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function Et(n,t,e){return Math.max(t,Math.min(e,n))}function Ef(n){return Et(n,-32768,32767)}function Re(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function Do(n,t,e){e=e||(o=>n[o]<t);let i=n.length-1,r=0,s;for(;i-r>1;)s=r+i>>1,e(s)?r=s:i=s;return{lo:r,hi:i}}var Le=(n,t,e,i)=>Do(n,e,i?r=>{let s=n[r][t];return s<e||s===e&&n[r+1][t]===e}:r=>n[r][t]<e),Pf=(n,t,e)=>Do(n,e,i=>n[i][t]>=e);function Cf(n,t,e){let i=0,r=n.length;for(;i<r&&n[i]<t;)i++;for(;r>i&&n[r-1]>e;)r--;return i>0||r<n.length?n.slice(i,r):n}var If=["push","pop","shift","splice","unshift"];function Af(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),If.forEach(e=>{let i="_onData"+To(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...s){let o=r.apply(this,s);return n._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function Zl(n,t){let e=n._chartjs;if(!e)return;let i=e.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(If.forEach(s=>{delete n[s]}),delete n._chartjs)}function Xl(n){let t=new Set(n);return t.size===n.length?n:Array.from(t)}var Gl=function(){return typeof window=="undefined"?function(n){return n()}:window.requestAnimationFrame}();function Ql(n,t){let e=[],i=!1;return function(...r){e=r,i||(i=!0,Gl.call(window,()=>{i=!1,n.apply(t,e)}))}}function Lf(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}var So=n=>n==="start"?"left":n==="end"?"right":"center",Ht=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,Ff=(n,t,e,i)=>n===(i?"left":"right")?e:n==="center"?(t+e)/2:t;function Kl(n,t,e){let i=t.length,r=0,s=i;if(n._sorted){let{iScale:o,vScale:a,_parsed:l}=n,c=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null,u=o.axis,{min:f,max:d,minDefined:h,maxDefined:m}=o.getUserBounds();if(h){if(r=Math.min(Le(l,u,f).lo,e?i:Le(t,u,o.getPixelForValue(f)).lo),c){let p=l.slice(0,r+1).reverse().findIndex(y=>!X(y[a.axis]));r-=Math.max(0,p)}r=Et(r,0,i-1)}if(m){let p=Math.max(Le(l,o.axis,d,!0).hi+1,e?0:Le(t,u,o.getPixelForValue(d),!0).hi+1);if(c){let y=l.slice(p-1).findIndex(x=>!X(x[a.axis]));p+=Math.max(0,y)}s=Et(p,r,i)-r}else s=i-r}return{start:r,count:s}}function Jl(n){let{xScale:t,yScale:e,_scaleRanges:i}=n,r={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=r,!0;let s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),s}var xo=n=>n===0||n===1,pf=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*mt/e)),gf=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*mt/e)+1,Mi={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*wt)+1,easeOutSine:n=>Math.sin(n*wt),easeInOutSine:n=>-.5*(Math.cos(ht*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>xo(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>xo(n)?n:pf(n,.075,.3),easeOutElastic:n=>xo(n)?n:gf(n,.075,.3),easeInOutElastic(n){return xo(n)?n:n<.5?.5*pf(n*2,.1125,.45):.5+.5*gf(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-Mi.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Mi.easeInBounce(n*2)*.5:Mi.easeOutBounce(n*2-1)*.5+.5};function tc(n){if(n&&typeof n=="object"){let t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ec(n){return tc(n)?n:new yn(n)}function Hl(n){return tc(n)?n:new yn(n).saturate(.5).darken(.1).hexString()}var Ly=["x","y","borderWidth","radius","tension"],Fy=["color","borderColor","backgroundColor"];function Ny(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:Fy},numbers:{type:"number",properties:Ly}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Ry(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var yf=new Map;function Wy(n,t){t=t||{};let e=n+JSON.stringify(t),i=yf.get(e);return i||(i=new Intl.NumberFormat(n,t),yf.set(e,i)),i}function Ci(n,t,e){return Wy(t,e).format(n)}var Nf={values(n){return dt(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";let i=this.chart.options.locale,r,s=n;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=Hy(n,e)}let o=Ze(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ci(n,i,l)},logarithmic(n,t,e){if(n===0)return"0";let i=e[t].significand||n/Math.pow(10,Math.floor(Ze(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?Nf.numeric.call(this,n,t,e):""}};function Hy(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var Nr={formatters:Nf};function Vy(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var bn=Object.create(null),Eo=Object.create(null);function Ar(n,t){if(!t)return n;let e=t.split(".");for(let i=0,r=e.length;i<r;++i){let s=e[i];n=n[s]||(n[s]=Object.create(null))}return n}function Vl(n,t,e){return typeof t=="string"?Ti(Ar(n,t),e):Ti(Ar(n,""),t)}var zl=class{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Hl(r.backgroundColor),this.hoverBorderColor=(i,r)=>Hl(r.borderColor),this.hoverColor=(i,r)=>Hl(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Vl(this,t,e)}get(t){return Ar(this,t)}describe(t,e){return Vl(Eo,t,e)}override(t,e){return Vl(bn,t,e)}route(t,e,i,r){let s=Ar(this,t),o=Ar(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[a],c=o[r];return K(l)?Object.assign({},c,l):$(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}},pt=new zl({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ny,Ry,Vy]);function zy(n){return!n||X(n.size)||X(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Lr(n,t,e,i,r){let s=t[r];return s||(s=t[r]=n.measureText(r).width,e.push(r)),s>i&&(i=s),i}function Rf(n,t,e,i){i=i||{};let r=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let o=0,a=e.length,l,c,u,f,d;for(l=0;l<a;l++)if(f=e[l],f!=null&&!dt(f))o=Lr(n,r,s,o,f);else if(dt(f))for(c=0,u=f.length;c<u;c++)d=f[c],d!=null&&!dt(d)&&(o=Lr(n,r,s,o,d));n.restore();let h=s.length/2;if(h>e.length){for(l=0;l<h;l++)delete r[s[l]];s.splice(0,h)}return o}function vn(n,t,e){let i=n.currentDevicePixelRatio,r=e!==0?Math.max(e/2,.5):0;return Math.round((t-r)*i)/i+r}function nc(n,t){!t&&!n||(t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore())}function Po(n,t,e,i){ic(n,t,e,i,null)}function ic(n,t,e,i,r){let s,o,a,l,c,u,f,d,h=t.pointStyle,m=t.rotation,p=t.radius,y=(m||0)*Cy;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){n.save(),n.translate(e,i),n.rotate(y),n.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),n.restore();return}if(!(isNaN(p)||p<=0)){switch(n.beginPath(),h){default:r?n.ellipse(e,i,r/2,p,0,0,mt):n.arc(e,i,p,0,mt),n.closePath();break;case"triangle":u=r?r/2:p,n.moveTo(e+Math.sin(y)*u,i-Math.cos(y)*p),y+=mf,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*p),y+=mf,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*p),n.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(y+Rn)*l,f=Math.cos(y+Rn)*(r?r/2-c:l),a=Math.sin(y+Rn)*l,d=Math.sin(y+Rn)*(r?r/2-c:l),n.arc(e-f,i-a,c,y-ht,y-wt),n.arc(e+d,i-o,c,y-wt,y),n.arc(e+f,i+a,c,y,y+wt),n.arc(e-d,i+o,c,y+wt,y+ht),n.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=r?r/2:l,n.rect(e-u,i-l,2*u,2*l);break}y+=Rn;case"rectRot":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+d,i-o),n.lineTo(e+f,i+a),n.lineTo(e-d,i+o),n.closePath();break;case"crossRot":y+=Rn;case"cross":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o);break;case"star":f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o),y+=Rn,f=Math.cos(y)*(r?r/2:p),o=Math.cos(y)*p,a=Math.sin(y)*p,d=Math.sin(y)*(r?r/2:p),n.moveTo(e-f,i-a),n.lineTo(e+f,i+a),n.moveTo(e+d,i-o),n.lineTo(e-d,i+o);break;case"line":o=r?r/2:Math.cos(y)*p,a=Math.sin(y)*p,n.moveTo(e-o,i-a),n.lineTo(e+o,i+a);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(y)*(r?r/2:p),i+Math.sin(y)*p);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function Fe(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function Rr(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Wr(n){n.restore()}function Wf(n,t,e,i,r){if(!t)return n.lineTo(e.x,e.y);if(r==="middle"){let s=(t.x+e.x)/2;n.lineTo(s,t.y),n.lineTo(s,e.y)}else r==="after"!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function Hf(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function By(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),X(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}function Yy(n,t,e,i,r){if(r.strikethrough||r.underline){let s=n.measureText(i),o=t-s.actualBoundingBoxLeft,a=t+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=r.decorationWidth||2,n.moveTo(o,u),n.lineTo(a,u),n.stroke()}}function jy(n,t){let e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function wn(n,t,e,i,r,s={}){let o=dt(t)?t:[t],a=s.strokeWidth>0&&s.strokeColor!=="",l,c;for(n.save(),n.font=r.string,By(n,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&jy(n,s.backdrop),a&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),X(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(c,e,i,s.maxWidth)),n.fillText(c,e,i,s.maxWidth),Yy(n,e,i,c,s),i+=Number(r.lineHeight);n.restore()}function Ii(n,t){let{x:e,y:i,w:r,h:s,radius:o}=t;n.arc(e+o.topLeft,i+o.topLeft,o.topLeft,1.5*ht,ht,!0),n.lineTo(e,i+s-o.bottomLeft),n.arc(e+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,ht,wt,!0),n.lineTo(e+r-o.bottomRight,i+s),n.arc(e+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,wt,0,!0),n.lineTo(e+r,i+o.topRight),n.arc(e+r-o.topRight,i+o.topRight,o.topRight,0,-wt,!0),n.lineTo(e+o.topLeft,i)}var $y=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Uy=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function qy(n,t){let e=(""+n).match($y);if(!e||e[1]==="normal")return t*1.2;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100;break}return t*n}var Zy=n=>+n||0;function Co(n,t){let e={},i=K(t),r=i?Object.keys(t):t,s=K(n)?i?o=>$(n[o],n[t[o]]):o=>n[o]:()=>n;for(let o of r)e[o]=Zy(s(o));return e}function rc(n){return Co(n,{top:"y",right:"x",bottom:"y",left:"x"})}function _n(n){return Co(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Vt(n){let t=rc(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Dt(n,t){n=n||{},t=t||pt.font;let e=$(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=$(n.style,t.style);i&&!(""+i).match(Uy)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:$(n.family,t.family),lineHeight:qy($(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:$(n.weight,t.weight),string:""};return r.string=zy(r),r}function Ai(n,t,e,i){let r=!0,s,o,a;for(s=0,o=n.length;s<o;++s)if(a=n[s],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),r=!1),e!==void 0&&dt(a)&&(a=a[e%a.length],r=!1),a!==void 0))return i&&!r&&(i.cacheable=!1),a}function Vf(n,t,e){let{min:i,max:r}=n,s=Bl(t,(r-i)/2),o=(a,l)=>e&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Ge(n,t){return Object.assign(Object.create(n),t)}function Io(n,t=[""],e,i,r=()=>n[0]){let s=e||n;typeof i=="undefined"&&(i=Yf("_fallback",n));let o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>Io([a,...n],t,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete n[0][l],!0},get(a,l){return zf(a,l,()=>nx(l,t,n,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(a,l){return bf(a).includes(l)},ownKeys(a){return bf(a)},set(a,l,c){let u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function Hn(n,t,e,i){let r={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:sc(n,i),setContext:s=>Hn(n,s,e,i),override:s=>Hn(n.override(s),t,e,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete n[o],!0},get(s,o,a){return zf(s,o,()=>Gy(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(n,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,o)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(s,o){return Reflect.has(n,o)},ownKeys(){return Reflect.ownKeys(n)},set(s,o,a){return n[o]=a,delete s[o],!0}})}function sc(n,t={scriptable:!0,indexable:!0}){let{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=n;return{allKeys:r,scriptable:e,indexable:i,isScriptable:qe(e)?e:()=>e,isIndexable:qe(i)?i:()=>i}}var Xy=(n,t)=>n?n+To(t):t,oc=(n,t)=>K(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function zf(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t)||t==="constructor")return n[t];let i=e();return n[t]=i,i}function Gy(n,t,e){let{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=n,a=i[t];return qe(a)&&o.isScriptable(t)&&(a=Qy(t,a,n,e)),dt(a)&&a.length&&(a=Ky(t,a,n,o.isIndexable)),oc(t,a)&&(a=Hn(a,r,s&&s[t],o)),a}function Qy(n,t,e,i){let{_proxy:r,_context:s,_subProxy:o,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let l=t(s,o||i);return a.delete(n),oc(n,l)&&(l=ac(r._scopes,r,n,l)),l}function Ky(n,t,e,i){let{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=e;if(typeof s.index!="undefined"&&i(n))return t[s.index%t.length];if(K(t[0])){let l=t,c=r._scopes.filter(u=>u!==l);t=[];for(let u of l){let f=ac(c,r,n,u);t.push(Hn(f,s,o&&o[n],a))}}return t}function Bf(n,t,e){return qe(n)?n(t,e):n}var Jy=(n,t)=>n===!0?t:typeof n=="string"?Xe(t,n):void 0;function tx(n,t,e,i,r){for(let s of t){let o=Jy(e,s);if(o){n.add(o);let a=Bf(o._fallback,e,r);if(typeof a!="undefined"&&a!==e&&a!==i)return a}else if(o===!1&&typeof i!="undefined"&&e!==i)return null}return!1}function ac(n,t,e,i){let r=t._rootScopes,s=Bf(t._fallback,e,i),o=[...n,...r],a=new Set;a.add(i);let l=xf(a,o,e,s||e,i);return l===null||typeof s!="undefined"&&s!==e&&(l=xf(a,o,s,l,i),l===null)?!1:Io(Array.from(a),[""],r,s,()=>ex(t,e,i))}function xf(n,t,e,i,r){for(;e;)e=tx(n,t,e,i,r);return e}function ex(n,t,e){let i=n._getTarget();t in i||(i[t]={});let r=i[t];return dt(r)&&K(e)?e:r||{}}function nx(n,t,e,i){let r;for(let s of t)if(r=Yf(Xy(s,n),e),typeof r!="undefined")return oc(n,r)?ac(e,i,n,r):r}function Yf(n,t){for(let e of t){if(!e)continue;let i=e[n];if(typeof i!="undefined")return i}}function bf(n){let t=n._keys;return t||(t=n._keys=ix(n._scopes)),t}function ix(n){let t=new Set;for(let e of n)for(let i of Object.keys(e).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function lc(n,t,e,i){let{iScale:r}=n,{key:s="r"}=this._parsing,o=new Array(i),a,l,c,u;for(a=0,l=i;a<l;++a)c=a+e,u=t[c],o[a]={r:r.parse(Xe(u,s),c)};return o}var rx=Number.EPSILON||1e-14,ki=(n,t)=>t<n.length&&!n[t].skip&&n[t],jf=n=>n==="x"?"y":"x";function sx(n,t,e,i){let r=n.skip?t:n,s=t,o=e.skip?t:e,a=Oo(s,r),l=Oo(o,s),c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;let f=i*c,d=i*u;return{previous:{x:s.x-f*(o.x-r.x),y:s.y-f*(o.y-r.y)},next:{x:s.x+d*(o.x-r.x),y:s.y+d*(o.y-r.y)}}}function ox(n,t,e){let i=n.length,r,s,o,a,l,c=ki(n,0);for(let u=0;u<i-1;++u)if(l=c,c=ki(n,u+1),!(!l||!c)){if(Ei(t[u],0,rx)){e[u]=e[u+1]=0;continue}r=e[u]/t[u],s=e[u+1]/t[u],a=Math.pow(r,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),e[u]=r*o*t[u],e[u+1]=s*o*t[u])}}function ax(n,t,e="x"){let i=jf(e),r=n.length,s,o,a,l=ki(n,0);for(let c=0;c<r;++c){if(o=a,a=l,l=ki(n,c+1),!a)continue;let u=a[e],f=a[i];o&&(s=(u-o[e])/3,a[`cp1${e}`]=u-s,a[`cp1${i}`]=f-s*t[c]),l&&(s=(l[e]-u)/3,a[`cp2${e}`]=u+s,a[`cp2${i}`]=f+s*t[c])}}function lx(n,t="x"){let e=jf(t),i=n.length,r=Array(i).fill(0),s=Array(i),o,a,l,c=ki(n,0);for(o=0;o<i;++o)if(a=l,l=c,c=ki(n,o+1),!!l){if(c){let u=c[t]-l[t];r[o]=u!==0?(c[e]-l[e])/u:0}s[o]=a?c?be(r[o-1])!==be(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}ox(n,r,s),ax(n,s,t)}function bo(n,t,e){return Math.max(Math.min(n,e),t)}function cx(n,t){let e,i,r,s,o,a=Fe(n[0],t);for(e=0,i=n.length;e<i;++e)o=s,s=a,a=e<i-1&&Fe(n[e+1],t),s&&(r=n[e],o&&(r.cp1x=bo(r.cp1x,t.left,t.right),r.cp1y=bo(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=bo(r.cp2x,t.left,t.right),r.cp2y=bo(r.cp2y,t.top,t.bottom)))}function $f(n,t,e,i,r){let s,o,a,l;if(t.spanGaps&&(n=n.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")lx(n,r);else{let c=i?n[n.length-1]:n[0];for(s=0,o=n.length;s<o;++s)a=n[s],l=sx(c,a,n[Math.min(s+1,o-(i?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&cx(n,e)}function Ao(){return typeof window!="undefined"&&typeof document!="undefined"}function Lo(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Mo(n,t,e){let i;return typeof n=="string"?(i=parseInt(n,10),n.indexOf("%")!==-1&&(i=i/100*t.parentNode[e])):i=n,i}var Fo=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function ux(n,t){return Fo(n).getPropertyValue(t)}var fx=["top","right","bottom","left"];function Wn(n,t,e){let i={};e=e?"-"+e:"";for(let r=0;r<4;r++){let s=fx[r];i[s]=parseFloat(n[t+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var dx=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function hx(n,t){let e=n.touches,i=e&&e.length?e[0]:n,{offsetX:r,offsetY:s}=i,o=!1,a,l;if(dx(r,s,n.target))a=r,l=s;else{let c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function On(n,t){if("native"in n)return n;let{canvas:e,currentDevicePixelRatio:i}=t,r=Fo(e),s=r.boxSizing==="border-box",o=Wn(r,"padding"),a=Wn(r,"border","width"),{x:l,y:c,box:u}=hx(n,e),f=o.left+(u&&a.left),d=o.top+(u&&a.top),{width:h,height:m}=t;return s&&(h-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-f)/h*e.width/i),y:Math.round((c-d)/m*e.height/i)}}function mx(n,t,e){let i,r;if(t===void 0||e===void 0){let s=n&&Lo(n);if(!s)t=n.clientWidth,e=n.clientHeight;else{let o=s.getBoundingClientRect(),a=Fo(s),l=Wn(a,"border","width"),c=Wn(a,"padding");t=o.width-c.width-l.width,e=o.height-c.height-l.height,i=Mo(a.maxWidth,s,"clientWidth"),r=Mo(a.maxHeight,s,"clientHeight")}}return{width:t,height:e,maxWidth:i||_o,maxHeight:r||_o}}var vo=n=>Math.round(n*10)/10;function Uf(n,t,e,i){let r=Fo(n),s=Wn(r,"margin"),o=Mo(r.maxWidth,n,"clientWidth")||_o,a=Mo(r.maxHeight,n,"clientHeight")||_o,l=mx(n,t,e),{width:c,height:u}=l;if(r.boxSizing==="content-box"){let d=Wn(r,"border","width"),h=Wn(r,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=vo(Math.min(c,o,l.maxWidth)),u=vo(Math.min(u,a,l.maxHeight)),c&&!u&&(u=vo(c/2)),(t!==void 0||e!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=vo(Math.floor(u*i))),{width:c,height:u}}function cc(n,t,e){let i=t||1,r=Math.floor(n.height*i),s=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);let o=n.canvas;return o.style&&(e||!o.style.height&&!o.style.width)&&(o.style.height=`${n.height}px`,o.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||o.height!==r||o.width!==s?(n.currentDevicePixelRatio=i,o.height=r,o.width=s,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}var qf=function(){let n=!1;try{let t={get passive(){return n=!0,!1}};Ao()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return n}();function uc(n,t){let e=ux(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function xn(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function Zf(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function Xf(n,t,e,i){let r={x:n.cp2x,y:n.cp2y},s={x:t.cp1x,y:t.cp1y},o=xn(n,r,e),a=xn(r,s,e),l=xn(s,t,e),c=xn(o,a,e),u=xn(a,l,e);return xn(c,u,e)}var px=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},gx=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function zn(n,t,e){return n?px(t,e):gx()}function fc(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function dc(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function Gf(n){return n==="angle"?{between:Pi,compare:Ay,normalize:qt}:{between:Re,compare:(t,e)=>t-e,normalize:t=>t}}function vf({start:n,end:t,count:e,loop:i,style:r}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:r}}function yx(n,t,e){let{property:i,start:r,end:s}=e,{between:o,normalize:a}=Gf(i),l=t.length,{start:c,end:u,loop:f}=n,d,h;if(f){for(c+=l,u+=l,d=0,h=l;d<h&&o(a(t[c%l][i]),r,s);++d)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:f,style:n.style}}function hc(n,t,e){if(!e)return[n];let{property:i,start:r,end:s}=e,o=t.length,{compare:a,between:l,normalize:c}=Gf(i),{start:u,end:f,loop:d,style:h}=yx(n,t,e),m=[],p=!1,y=null,x,b,O,g=()=>l(r,O,x)&&a(r,O)!==0,w=()=>a(s,x)===0||l(s,O,x),_=()=>p||g(),T=()=>!p||w();for(let k=u,D=u;k<=f;++k)b=t[k%o],!b.skip&&(x=c(b[i]),x!==O&&(p=l(x,r,s),y===null&&_()&&(y=a(x,r)===0?k:D),y!==null&&T()&&(m.push(vf({start:y,end:k,loop:d,count:o,style:h})),y=null),D=k,O=x));return y!==null&&m.push(vf({start:y,end:f,loop:d,count:o,style:h})),m}function mc(n,t){let e=[],i=n.segments;for(let r=0;r<i.length;r++){let s=hc(i[r],n.points,t);s.length&&e.push(...s)}return e}function xx(n,t,e,i){let r=0,s=t-1;if(e&&!i)for(;r<t&&!n[r].skip;)r++;for(;r<t&&n[r].skip;)r++;for(r%=t,e&&(s+=r);s>r&&n[s%t].skip;)s--;return s%=t,{start:r,end:s}}function bx(n,t,e,i){let r=n.length,s=[],o=t,a=n[t],l;for(l=t+1;l<=e;++l){let c=n[l%r];c.skip||c.stop?a.skip||(i=!1,s.push({start:t%r,end:(l-1)%r,loop:i}),t=o=c.stop?l:null):(o=l,a.skip&&(t=l)),a=c}return o!==null&&s.push({start:t%r,end:o%r,loop:i}),s}function Qf(n,t){let e=n.points,i=n.options.spanGaps,r=e.length;if(!r)return[];let s=!!n._loop,{start:o,end:a}=xx(e,r,s,i);if(i===!0)return wf(n,[{start:o,end:a,loop:s}],e,t);let l=a<o?a+r:a,c=!!n._fullLoop&&o===0&&a===r-1;return wf(n,bx(e,o,l,c),e,t)}function wf(n,t,e,i){return!i||!i.setContext||!e?t:vx(n,t,e,i)}function vx(n,t,e,i){let r=n._chart.getContext(),s=_f(n.options),{_datasetIndex:o,options:{spanGaps:a}}=n,l=e.length,c=[],u=s,f=t[0].start,d=f;function h(m,p,y,x){let b=a?-1:1;if(m!==p){for(m+=l;e[m%l].skip;)m-=b;for(;e[p%l].skip;)p+=b;m%l!==p%l&&(c.push({start:m%l,end:p%l,loop:y,style:x}),u=x,f=p%l)}}for(let m of t){f=a?f:m.start;let p=e[f%l],y;for(d=f+1;d<=m.end;d++){let x=e[d%l];y=_f(i.setContext(Ge(r,{type:"segment",p0:p,p1:x,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),wx(y,u)&&h(f,d-1,m.loop,u),p=x,u=y}f<d-1&&h(f,d-1,m.loop,u)}return c}function _f(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function wx(n,t){if(!t)return!1;let e=[],i=function(r,s){return tc(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(n,i)!==JSON.stringify(t,i)}var Tc=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){let s=e.listeners[r],o=e.duration;s.forEach(a=>a({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Gl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let s=i.items,o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,t,"progress")),s.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},Qe=new Tc,Kf="transparent",_x={boolean(n,t,e){return e>.5?t:n},color(n,t,e){let i=ec(n||Kf),r=i.valid&&ec(t||Kf);return r&&r.valid?r.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}},kc=class{constructor(t,e,i,r){let s=e[i];r=Ai([t.to,r,s,t.from]);let o=Ai([t.from,s,r]);this._active=!0,this._fn=t.fn||_x[t.type||typeof o],this._easing=Mi[t.easing]||Mi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ai([t.to,e,r,t.from]),this._from=Ai([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e=t-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to,l;if(this._active=s!==a&&(o||e<i),!this._active){this._target[r]=a,this._notify(!0);return}if(e<0){this._target[r]=s;return}l=e/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}},$o=class{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!K(t))return;let e=Object.keys(pt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{let s=t[r];if(!K(s))return;let o={};for(let a of e)o[a]=s[a];(dt(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(t,e){let i=e.options,r=Mx(t,i);if(!r)return[];let s=this._createAnimations(r,i);return i.$shared&&Ox(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){let i=this._properties,r=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now(),l;for(l=o.length-1;l>=0;--l){let c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(t,e));continue}let u=e[c],f=s[c],d=i.get(c);if(f)if(d&&f.active()){f.update(d,u,a);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}s[c]=f=new kc(d,t,c,u),r.push(f)}return r}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return Qe.add(this._chart,i),!0}};function Ox(n,t){let e=[],i=Object.keys(t);for(let r=0;r<i.length;r++){let s=n[i[r]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function Mx(n,t){if(!t)return;let e=n.options;if(!e){n.options=t;return}return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Jf(n,t){let e=n&&n.options||{},i=e.reverse,r=e.min===void 0?t:0,s=e.max===void 0?t:0;return{start:i?s:r,end:i?r:s}}function Tx(n,t,e){if(e===!1)return!1;let i=Jf(n,e),r=Jf(t,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function kx(n){let t,e,i,r;return K(n)?(t=n.top,e=n.right,i=n.bottom,r=n.left):t=e=i=r=n,{top:t,right:e,bottom:i,left:r,disabled:n===!1}}function Qd(n,t){let e=[],i=n._getSortedDatasetMetas(t),r,s;for(r=0,s=i.length;r<s;++r)e.push(i[r].index);return e}function td(n,t,e,i={}){let r=n.keys,s=i.mode==="single",o,a,l,c;if(t===null)return;let u=!1;for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===e){if(u=!0,i.all)continue;break}c=n.values[l],yt(c)&&(s||t===0||be(t)===be(c))&&(t+=c)}return!u&&!i.all?0:t}function Dx(n,t){let{iScale:e,vScale:i}=t,r=e.axis==="x"?"x":"y",s=i.axis==="x"?"x":"y",o=Object.keys(n),a=new Array(o.length),l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[r]:u,[s]:n[u]};return a}function pc(n,t){let e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function Sx(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function Ex(n){let{min:t,max:e,minDefined:i,maxDefined:r}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}function Px(n,t,e){let i=n[t]||(n[t]={});return i[e]||(i[e]={})}function ed(n,t,e,i){for(let r of t.getMatchingVisibleMetas(i).reverse()){let s=n[r.index];if(e&&s>0||!e&&s<0)return r.index}return null}function nd(n,t){let{chart:e,_cachedMeta:i}=n,r=e._stacks||(e._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=Sx(s,o,i),f=t.length,d;for(let h=0;h<f;++h){let m=t[h],{[l]:p,[c]:y}=m,x=m._stacks||(m._stacks={});d=x[c]=Px(r,u,p),d[a]=y,d._top=ed(d,o,!0,i.type),d._bottom=ed(d,o,!1,i.type);let b=d._visualValues||(d._visualValues={});b[a]=y}}function gc(n,t){let e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function Cx(n,t){return Ge(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Ix(n,t,e){return Ge(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Hr(n,t){let e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(let r of t){let s=r._stacks;if(!s||s[i]===void 0||s[i][e]===void 0)return;delete s[i][e],s[i]._visualValues!==void 0&&s[i]._visualValues[e]!==void 0&&delete s[i]._visualValues[e]}}}var yc=n=>n==="reset"||n==="none",id=(n,t)=>t?n:Object.assign({},n),Ax=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:Qd(e,!0),values:null},ne=class{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=pc(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Hr(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(f,d,h,m)=>f==="x"?d:f==="r"?m:h,s=e.xAxisID=$(i.xAxisID,gc(t,"x")),o=e.yAxisID=$(i.yAxisID,gc(t,"y")),a=e.rAxisID=$(i.rAxisID,gc(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,s,o,a),u=e.vAxisID=r(l,o,s,a);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Zl(this._data,this),t._stacked&&Hr(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(K(e)){let r=this._cachedMeta;this._data=Dx(e,r)}else if(i!==e){if(i){Zl(i,this);let r=this._cachedMeta;Hr(r),r._parsed=[]}e&&Object.isExtensible(e)&&Af(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),r=!1;this._dataCheck();let s=e._stacked;e._stacked=pc(e.vScale,e),e.stack!==i.stack&&(r=!0,Hr(e),e.stack=i.stack),this._resyncElements(t),(r||s!==e._stacked)&&(nd(this,e._parsed),e._stacked=pc(e.vScale,e))}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis,l=t===0&&e===r.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,f,d;if(this._parsing===!1)i._parsed=r,i._sorted=!0,d=r;else{dt(r[t])?d=this.parseArrayData(i,r,t,e):K(r[t])?d=this.parseObjectData(i,r,t,e):d=this.parsePrimitiveData(i,r,t,e);let h=()=>f[a]===null||c&&f[a]<c[a];for(u=0;u<e;++u)i._parsed[u+t]=f=d[u],l&&(h()&&(l=!1),c=f);i._sorted=l}o&&nd(this,d)}parsePrimitiveData(t,e,i,r){let{iScale:s,vScale:o}=t,a=s.axis,l=o.axis,c=s.getLabels(),u=s===o,f=new Array(r),d,h,m;for(d=0,h=r;d<h;++d)m=d+i,f[d]={[a]:u||s.parse(c[m],m),[l]:o.parse(e[m],m)};return f}parseArrayData(t,e,i,r){let{xScale:s,yScale:o}=t,a=new Array(r),l,c,u,f;for(l=0,c=r;l<c;++l)u=l+i,f=e[u],a[l]={x:s.parse(f[0],u),y:o.parse(f[1],u)};return a}parseObjectData(t,e,i,r){let{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r),u,f,d,h;for(u=0,f=r;u<f;++u)d=u+i,h=e[d],c[u]={x:s.parse(Xe(h,a),d),y:o.parse(Xe(h,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){let r=this.chart,s=this._cachedMeta,o=e[t.axis],a={keys:Qd(r,!0),values:e._stacks[t.axis]._visualValues};return td(a,o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,r){let s=i[e.axis],o=s===null?NaN:s,a=r&&i._stacks[e.axis];r&&a&&(r.values=a,o=td(r,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){let i=this._cachedMeta,r=i._parsed,s=i._sorted&&t===i.iScale,o=r.length,a=this._getOtherScale(t),l=Ax(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=Ex(a),d,h;function m(){h=r[d];let p=h[a.axis];return!yt(h[t.axis])||u>p||f<p}for(d=0;d<o&&!(!m()&&(this.updateRangeFromParsed(c,t,h,l),s));++d);if(s){for(d=o-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){let e=this._cachedMeta._parsed,i=[],r,s,o;for(r=0,s=e.length;r<s;++r)o=e[r][t.axis],yt(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){let e=this._cachedMeta,i=e.iScale,r=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(t){let e=this._cachedMeta;this.update(t||"default"),e._clip=kx($(this.options.clip,Tx(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,e=this.chart,i=this._cachedMeta,r=i.data||[],s=e.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||r.length-a,c=this.options.drawActiveElementsOnTop,u;for(i.dataset&&i.dataset.draw(t,s,a,l),u=a;u<a+l;++u){let f=r[u];f.hidden||(f.active&&c?o.push(f):f.draw(t,s))}for(u=0;u<o.length;++u)o[u].draw(t,s)}getStyle(t,e){let i=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){let r=this.getDataset(),s;if(t>=0&&t<this._cachedMeta.data.length){let o=this._cachedMeta.data[t];s=o.$context||(o.$context=Ix(this.getContext(),t,o)),s.parsed=this.getParsed(t),s.raw=r.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=Cx(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){let r=e==="active",s=this._cachedDataOpts,o=t+"-"+e,a=s[o],l=this.enableOptionSharing&&Si(i);if(a)return id(a,l);let c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),f=r?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),u),h=Object.keys(pt.elements[t]),m=()=>this.getContext(i,r,e),p=c.resolveNamedOptions(d,h,m,f);return p.$shared&&(p.$shared=l,s[o]=Object.freeze(id(p,l))),p}_resolveAnimations(t,e,i){let r=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,a=s[o];if(a)return a;let l;if(r.options.animation!==!1){let u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,e),d=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(d,this.getContext(t,i,e))}let c=new $o(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||yc(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==r;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,r){yc(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!yc(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;let s=this.getStyle(e,r);this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];let r=i.length,s=e.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,t):s<r&&this._removeElements(s,r-s)}_insertElements(t,e,i=!0){let r=this._cachedMeta,s=r.data,o=t+e,a,l=c=>{for(c.length+=e,a=c.length-1;a>=o;a--)c[a]=c[a-e]};for(l(s),a=t;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){let i=this._cachedMeta;if(this._parsing){let r=i._parsed.splice(t,e);i._stacked&&Hr(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);let i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};v(ne,"defaults",{}),v(ne,"datasetElementType",null),v(ne,"dataElementType",null);function Lx(n,t){if(!n._cache.$bar){let e=n.getMatchingVisibleMetas(t),i=[];for(let r=0,s=e.length;r<s;r++)i=i.concat(e[r].controller.getAllParsedValues(n));n._cache.$bar=Xl(i.sort((r,s)=>r-s))}return n._cache.$bar}function Fx(n){let t=n.iScale,e=Lx(t,n.type),i=t._length,r,s,o,a,l=()=>{o===32767||o===-32768||(Si(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=e.length;r<s;++r)o=t.getPixelForValue(e[r]),l();for(a=void 0,r=0,s=t.ticks.length;r<s;++r)o=t.getPixelForTick(r),l();return i}function Nx(n,t,e,i){let r=e.barThickness,s,o;return X(r)?(s=t.min*e.categoryPercentage,o=e.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:t.pixels[n]-s/2}}function Rx(n,t,e,i){let r=t.pixels,s=r[n],o=n>0?r[n-1]:null,a=n<r.length-1?r[n+1]:null,l=e.categoryPercentage;o===null&&(o=s-(a===null?t.end-t.start:a-s)),a===null&&(a=s+s-o);let c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:e.barPercentage,start:c}}function Wx(n,t,e,i){let r=e.parse(n[0],i),s=e.parse(n[1],i),o=Math.min(r,s),a=Math.max(r,s),l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}function Kd(n,t,e,i){return dt(n)?Wx(n,t,e,i):t[e.axis]=e.parse(n,i),t}function rd(n,t,e,i){let r=n.iScale,s=n.vScale,o=r.getLabels(),a=r===s,l=[],c,u,f,d;for(c=e,u=e+i;c<u;++c)d=t[c],f={},f[r.axis]=a||r.parse(o[c],c),l.push(Kd(d,f,s,c));return l}function xc(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function Hx(n,t,e){return n!==0?be(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function Vx(n){let t,e,i,r,s;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.base<n.y,e="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:e,end:i,reverse:t,top:r,bottom:s}}function zx(n,t,e,i){let r=t.borderSkipped,s={};if(!r){n.borderSkipped=s;return}if(r===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:a,reverse:l,top:c,bottom:u}=Vx(n);r==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===i?r=c:(e._bottom||0)===i?r=u:(s[sd(u,o,a,l)]=!0,r=c)),s[sd(r,o,a,l)]=!0,n.borderSkipped=s}function sd(n,t,e,i){return i?(n=Bx(n,t,e),n=od(n,e,t)):n=od(n,t,e),n}function Bx(n,t,e){return n===t?e:n===e?t:n}function od(n,t,e){return n==="start"?t:n==="end"?e:n}function Yx(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}var Fi=class extends ne{parsePrimitiveData(t,e,i,r){return rd(t,e,i,r)}parseArrayData(t,e,i,r){return rd(t,e,i,r)}parseObjectData(t,e,i,r){let{iScale:s,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=s.axis==="x"?a:l,u=o.axis==="x"?a:l,f=[],d,h,m,p;for(d=i,h=i+r;d<h;++d)p=e[d],m={},m[s.axis]=s.parse(Xe(p,c),d),f.push(Kd(Xe(p,u),m,o,d));return f}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);let s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let e=this._cachedMeta,{iScale:i,vScale:r}=e,s=this.getParsed(t),o=s._custom,a=xc(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){let s=r==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(e,r);for(let h=e;h<e+i;h++){let m=this.getParsed(h),p=s||X(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),y=this._calculateBarIndexPixels(h,u),x=(m._stacks||{})[a.axis],b={horizontal:c,base:p.base,enableBorderRadius:!x||xc(m._custom)||o===x._top||o===x._bottom,x:c?p.head:y.center,y:c?y.center:p.head,height:c?y.size:Math.abs(p.size),width:c?Math.abs(p.size):y.size};d&&(b.options=f||this.resolveDataElementOptions(h,t[h].active?"active":r));let O=b.options||t[h].options;zx(b,O,x,o),Yx(b,O,u.ratio),this.updateElement(t[h],h,b,r)}}_getStacks(t,e){let{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[i.axis],c=u=>{let f=u._parsed.find(h=>h[i.axis]===l),d=f&&f[u.vScale.axis];if(X(d)||isNaN(d))return!0};for(let u of r)if(!(e!==void 0&&c(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let r=this._getStacks(t,i),s=e!==void 0?r.indexOf(e):-1;return s===-1?r.length-1:s}_getRuler(){let t=this.options,e=this._cachedMeta,i=e.iScale,r=[],s,o;for(s=0,o=e.data.length;s<o;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));let a=t.barThickness;return{min:a||Fx(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:s,minBarLength:o}}=this,a=s||0,l=this.getParsed(t),c=l._custom,u=xc(c),f=l[e.axis],d=0,h=i?this.applyStack(e,l,i):f,m,p;h!==f&&(d=h-f,h=f),u&&(f=c.barStart,h=c.barEnd-c.barStart,f!==0&&be(f)!==be(c.barEnd)&&(d=0),d+=f);let y=!X(s)&&!u?s:d,x=e.getPixelForValue(y);if(this.chart.getDataVisibility(t)?m=e.getPixelForValue(d+h):m=x,p=m-x,Math.abs(p)<o){p=Hx(p,e,a)*o,f===a&&(x-=p/2);let b=e.getPixelForDecimal(0),O=e.getPixelForDecimal(1),g=Math.min(b,O),w=Math.max(b,O);x=Math.max(Math.min(x,w),g),m=x+p,i&&!u&&(l._stacks[e.axis]._visualValues[r]=e.getValueForPixel(m)-e.getValueForPixel(x))}if(x===e.getPixelForValue(a)){let b=be(p)*e.getLineWidthForValue(a)/2;x+=b,p-=b}return{size:p,base:x,head:m,center:m+p/2}}_calculateBarIndexPixels(t,e){let i=e.scale,r=this.options,s=r.skipNull,o=$(r.maxBarThickness,1/0),a,l;if(e.grouped){let c=s?this._getStackCount(t):e.stackCount,u=r.barThickness==="flex"?Rx(t,e,r,c):Nx(t,e,r,c),f=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);a=u.start+u.chunk*f+u.chunk/2,l=Math.min(o,u.chunk*u.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){let t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length,s=0;for(;s<r;++s)this.getParsed(s)[e.axis]!==null&&!i[s].hidden&&i[s].draw(this._ctx)}};v(Fi,"id","bar"),v(Fi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),v(Fi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var Ni=class extends ne{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,r){let s=super.parsePrimitiveData(t,e,i,r);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,e,i,r){let s=super.parseArrayData(t,e,i,r);for(let o=0;o<s.length;o++){let a=e[i+o];s[o]._custom=$(a[2],this.resolveDataElementOptions(o+i).radius)}return s}parseObjectData(t,e,i,r){let s=super.parseObjectData(t,e,i,r);for(let o=0;o<s.length;o++){let a=e[i+o];s[o]._custom=$(a&&a.r&&+a.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){let t=this._cachedMeta.data,e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y),c=o._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,r),u=o.axis,f=a.axis;for(let d=e;d<e+i;d++){let h=t[d],m=!s&&this.getParsed(d),p={},y=p[u]=s?o.getPixelForDecimal(.5):o.getPixelForValue(m[u]),x=p[f]=s?a.getBasePixel():a.getPixelForValue(m[f]);p.skip=isNaN(y)||isNaN(x),c&&(p.options=l||this.resolveDataElementOptions(d,h.active?"active":r),s&&(p.options.radius=0)),this.updateElement(h,d,p,r)}}resolveDataElementOptions(t,e){let i=this.getParsed(t),r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));let s=r.radius;return e!=="active"&&(r.radius=0),r.radius+=$(i&&i._custom,s),r}};v(Ni,"id","bubble"),v(Ni,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),v(Ni,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function jx(n,t,e){let i=1,r=1,s=0,o=0;if(t<mt){let a=n,l=a+t,c=Math.cos(a),u=Math.sin(a),f=Math.cos(l),d=Math.sin(l),h=(O,g,w)=>Pi(O,a,l,!0)?1:Math.max(g,g*e,w,w*e),m=(O,g,w)=>Pi(O,a,l,!0)?-1:Math.min(g,g*e,w,w*e),p=h(0,c,f),y=h(wt,u,d),x=m(ht,c,f),b=m(ht+wt,u,d);i=(p-x)/2,r=(y-b)/2,s=-(p+x)/2,o=-(y+b)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}var Je=class extends ne{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let s=l=>+i[l];if(K(i[t])){let{key:l="value"}=this._parsing;s=c=>+Xe(i[c],l)}let o,a;for(o=t,a=t+e;o<a;++o)r._parsed[o]=s(o)}}_getRotation(){return le(this.options.rotation-90)}_getCircumference(){return le(this.options.circumference)}_getRotationExtents(){let t=mt,e=-mt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){let r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),o=r._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){let e=this.chart,{chartArea:i}=e,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),l=Math.min(Mf(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:m,offsetY:p}=jx(f,u,l),y=(i.width-o)/d,x=(i.height-o)/h,b=Math.max(Math.min(y,x)/2,0),O=Bl(this.options.radius,b),g=Math.max(O*l,0),w=(O-g)/this._getVisibleDatasetWeightTotal();this.offsetX=m*O,this.offsetY=p*O,r.total=this.calculateTotal(),this.outerRadius=O-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){let i=this.options,r=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*s/mt)}updateElements(t,e,i,r){let s=r==="reset",o=this.chart,a=o.chartArea,c=o.options.animation,u=(a.left+a.right)/2,f=(a.top+a.bottom)/2,d=s&&c.animateScale,h=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:p,includeOptions:y}=this._getSharedOptions(e,r),x=this._getRotation(),b;for(b=0;b<e;++b)x+=this._circumference(b,s);for(b=e;b<e+i;++b){let O=this._circumference(b,s),g=t[b],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:x,endAngle:x+O,circumference:O,outerRadius:m,innerRadius:h};y&&(w.options=p||this.resolveDataElementOptions(b,g.active?"active":r)),x+=O,this.updateElement(g,b,w,r)}}calculateTotal(){let t=this._cachedMeta,e=t.data,i=0,r;for(r=0;r<e.length;r++){let s=t._parsed[r];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!e[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(t){let e=this._cachedMeta.total;return e>0&&!isNaN(t)?mt*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Ci(e._parsed[t],i.options.locale);return{label:r[t]||"",value:s}}getMaxBorderWidth(t){let e=0,i=this.chart,r,s,o,a,l;if(!t){for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,a=o.controller;break}}if(!t)return 0;for(r=0,s=t.length;r<s;++r)l=a.resolveDataElementOptions(r),l.borderAlign!=="inner"&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){let s=this.resolveDataElementOptions(i);e=Math.max(e,s.offset||0,s.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max($(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};v(Je,"id","doughnut"),v(Je,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),v(Je,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),v(Je,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{let l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});var Ri=class extends ne{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let e=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=e,o=this.chart._animationsDisabled,{start:a,count:l}=Kl(e,r,o);this._drawStart=a,this._drawCount=l,Jl(e)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;let c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(e,r),d=o.axis,h=a.axis,{spanGaps:m,segment:p}=this.options,y=Vn(m)?m:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||r==="none",b=e+i,O=t.length,g=e>0&&this.getParsed(e-1);for(let w=0;w<O;++w){let _=t[w],T=x?_:{};if(w<e||w>=b){T.skip=!0;continue}let k=this.getParsed(w),D=X(k[h]),E=T[d]=o.getPixelForValue(k[d],w),I=T[h]=s||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[h],w);T.skip=isNaN(E)||isNaN(I)||D,T.stop=w>0&&Math.abs(k[d]-g[d])>y,p&&(T.parsed=k,T.raw=c.data[w]),f&&(T.options=u||this.resolveDataElementOptions(w,_.active?"active":r)),x||this.updateElement(_,w,T,r),g=k}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;let s=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,o)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};v(Ri,"id","line"),v(Ri,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),v(Ri,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var Un=class extends ne{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,r=i.data.labels||[],s=Ci(e._parsed[t].r,i.options.locale);return{label:r[t]||"",value:s}}parseObjectData(t,e,i,r){return lc.bind(this)(t,e,i,r)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,r)=>{let s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(r/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,r){let s=r==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,f=c.yCenter,d=c.getIndexAngle(0)-.5*ht,h=d,m,p=360/this.countVisibleElements();for(m=0;m<e;++m)h+=this._computeAngle(m,r,p);for(m=e;m<e+i;m++){let y=t[m],x=h,b=h+this._computeAngle(m,r,p),O=o.getDataVisibility(m)?c.getDistanceFromCenterForValue(this.getParsed(m).r):0;h=b,s&&(l.animateScale&&(O=0),l.animateRotate&&(x=b=d));let g={x:u,y:f,innerRadius:0,outerRadius:O,startAngle:x,endAngle:b,options:this.resolveDataElementOptions(m,y.active?"active":r)};this.updateElement(y,m,g,r)}}countVisibleElements(){let t=this._cachedMeta,e=0;return t.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?le(this.resolveDataElementOptions(t,e).angle||i):0}};v(Un,"id","polarArea"),v(Un,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),v(Un,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{let l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});var jr=class extends Je{};v(jr,"id","pie"),v(jr,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});var Wi=class extends ne{getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return lc.bind(this)(t,e,i,r)}update(t){let e=this._cachedMeta,i=e.dataset,r=e.data||[],s=e.iScale.getLabels();if(i.points=r,t!=="resize"){let o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);let a={_loop:!0,_fullLoop:s.length===r.length,options:o};this.updateElement(i,void 0,a,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){let s=this._cachedMeta.rScale,o=r==="reset";for(let a=e;a<e+i;a++){let l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":r),u=s.getPointPositionForValue(a,this.getParsed(a).r),f=o?s.xCenter:u.x,d=o?s.yCenter:u.y,h={x:f,y:d,angle:u.angle,skip:isNaN(f)||isNaN(d),options:c};this.updateElement(l,a,h,r)}}};v(Wi,"id","radar"),v(Wi,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),v(Wi,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});var Hi=class extends ne{getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+l+")"}}update(t){let e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled,{start:s,count:o}=Kl(e,i,r);if(this._drawStart=s,this._drawCount=o,Jl(e)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:a,_dataset:l}=e;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;let c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:c},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){let s=r==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,r),f=this.getSharedOptions(u),d=this.includeOptions(r,f),h=o.axis,m=a.axis,{spanGaps:p,segment:y}=this.options,x=Vn(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||r==="none",O=e>0&&this.getParsed(e-1);for(let g=e;g<e+i;++g){let w=t[g],_=this.getParsed(g),T=b?w:{},k=X(_[m]),D=T[h]=o.getPixelForValue(_[h],g),E=T[m]=s||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,_,l):_[m],g);T.skip=isNaN(D)||isNaN(E)||k,T.stop=g>0&&Math.abs(_[h]-O[h])>x,y&&(T.parsed=_,T.raw=c.data[g]),d&&(T.options=f||this.resolveDataElementOptions(g,w.active?"active":r)),b||this.updateElement(w,g,T,r),O=_}this.updateSharedOptions(f,r,u)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}let i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;let s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,s,o)/2}};v(Hi,"id","scatter"),v(Hi,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),v(Hi,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var $x=Object.freeze({__proto__:null,BarController:Fi,BubbleController:Ni,DoughnutController:Je,LineController:Ri,PieController:jr,PolarAreaController:Un,RadarController:Wi,ScatterController:Hi});function Bn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Kr=class{constructor(t){v(this,"options");this.options=t||{}}static override(t){Object.assign(Kr.prototype,t)}init(){}formats(){return Bn()}parse(){return Bn()}format(){return Bn()}add(){return Bn()}diff(){return Bn()}startOf(){return Bn()}endOf(){return Bn()}},Wc={_date:Kr};function Ux(n,t,e,i){let{controller:r,data:s,_sorted:o}=n,a=r._cachedMeta.iScale,l=n.dataset&&n.dataset.options?n.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&o&&s.length){let c=a._reversePixels?Pf:Le;if(i){if(r._sharedOptions){let u=s[0],f=typeof u.getRange=="function"&&u.getRange(t);if(f){let d=c(s,t,e-f),h=c(s,t,e+f);return{lo:d.lo,hi:h.hi}}}}else{let u=c(s,t,e);if(l){let{vScale:f}=r._cachedMeta,{_parsed:d}=n,h=d.slice(0,u.lo+1).reverse().findIndex(p=>!X(p[f.axis]));u.lo-=Math.max(0,h);let m=d.slice(u.hi).findIndex(p=>!X(p[f.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:s.length-1}}function ns(n,t,e,i,r){let s=n.getSortedVisibleDatasetMetas(),o=e[t];for(let a=0,l=s.length;a<l;++a){let{index:c,data:u}=s[a],{lo:f,hi:d}=Ux(s[a],t,o,r);for(let h=f;h<=d;++h){let m=u[h];m.skip||i(m,c,h)}}}function qx(n){let t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(i,r){let s=t?Math.abs(i.x-r.x):0,o=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function bc(n,t,e,i,r){let s=[];return!r&&!n.isPointInArea(t)||ns(n,e,t,function(a,l,c){!r&&!Fe(a,n.chartArea,0)||a.inRange(t.x,t.y,i)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function Zx(n,t,e,i){let r=[];function s(o,a,l){let{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:f}=ql(o,{x:t.x,y:t.y});Pi(f,c,u)&&r.push({element:o,datasetIndex:a,index:l})}return ns(n,e,t,s),r}function Xx(n,t,e,i,r,s){let o=[],a=qx(e),l=Number.POSITIVE_INFINITY;function c(u,f,d){let h=u.inRange(t.x,t.y,r);if(i&&!h)return;let m=u.getCenterPoint(r);if(!(!!s||n.isPointInArea(m))&&!h)return;let y=a(t,m);y<l?(o=[{element:u,datasetIndex:f,index:d}],l=y):y===l&&o.push({element:u,datasetIndex:f,index:d})}return ns(n,e,t,c),o}function vc(n,t,e,i,r,s){return!s&&!n.isPointInArea(t)?[]:e==="r"&&!i?Zx(n,t,e,r):Xx(n,t,e,i,r,s)}function ad(n,t,e,i,r){let s=[],o=e==="x"?"inXRange":"inYRange",a=!1;return ns(n,e,t,(l,c,u)=>{l[o]&&l[o](t[e],r)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,r))}),i&&!a?[]:s}var Gx={evaluateInteractionItems:ns,modes:{index(n,t,e,i){let r=On(t,n),s=e.axis||"x",o=e.includeInvisible||!1,a=e.intersect?bc(n,r,s,i,o):vc(n,r,s,!1,i,o),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{let u=a[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(n,t,e,i){let r=On(t,n),s=e.axis||"xy",o=e.includeInvisible||!1,a=e.intersect?bc(n,r,s,i,o):vc(n,r,s,!1,i,o);if(a.length>0){let l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(n,t,e,i){let r=On(t,n),s=e.axis||"xy",o=e.includeInvisible||!1;return bc(n,r,s,i,o)},nearest(n,t,e,i){let r=On(t,n),s=e.axis||"xy",o=e.includeInvisible||!1;return vc(n,r,s,e.intersect,i,o)},x(n,t,e,i){let r=On(t,n);return ad(n,r,"x",e.intersect,i)},y(n,t,e,i){let r=On(t,n);return ad(n,r,"y",e.intersect,i)}}},Jd=["left","top","right","bottom"];function Vr(n,t){return n.filter(e=>e.pos===t)}function ld(n,t){return n.filter(e=>Jd.indexOf(e.pos)===-1&&e.box.axis===t)}function zr(n,t){return n.sort((e,i)=>{let r=t?i:e,s=t?e:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function Qx(n){let t=[],e,i,r,s,o,a;for(e=0,i=(n||[]).length;e<i;++e)r=n[e],{position:s,options:{stack:o,stackWeight:a=1}}=r,t.push({index:e,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return t}function Kx(n){let t={};for(let e of n){let{stack:i,pos:r,stackWeight:s}=e;if(!i||!Jd.includes(r))continue;let o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return t}function Jx(n,t){let e=Kx(n),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t,s,o,a;for(s=0,o=n.length;s<o;++s){a=n[s];let{fullSize:l}=a.box,c=e[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&t.availableWidth,a.height=r):(a.width=i,a.height=u?u*r:l&&t.availableHeight)}return e}function tb(n){let t=Qx(n),e=zr(t.filter(c=>c.box.fullSize),!0),i=zr(Vr(t,"left"),!0),r=zr(Vr(t,"right")),s=zr(Vr(t,"top"),!0),o=zr(Vr(t,"bottom")),a=ld(t,"x"),l=ld(t,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:Vr(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function cd(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function th(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function eb(n,t,e,i){let{pos:r,box:s}=e,o=n.maxPadding;if(!K(r)){e.size&&(n[r]-=e.size);let f=i[e.stack]||{size:0,count:1};f.size=Math.max(f.size,e.horizontal?s.height:s.width),e.size=f.size/f.count,n[r]+=e.size}s.getPadding&&th(o,s.getPadding());let a=Math.max(0,t.outerWidth-cd(o,n,"left","right")),l=Math.max(0,t.outerHeight-cd(o,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function nb(n){let t=n.maxPadding;function e(i){let r=Math.max(t[i]-n[i],0);return n[i]+=r,r}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function ib(n,t){let e=t.maxPadding;function i(r){let s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(t[o],e[o])}),s}return i(n?["left","right"]:["top","bottom"])}function $r(n,t,e,i){let r=[],s,o,a,l,c,u;for(s=0,o=n.length,c=0;s<o;++s){a=n[s],l=a.box,l.update(a.width||t.w,a.height||t.h,ib(a.horizontal,t));let{same:f,other:d}=eb(t,e,a,i);c|=f&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&$r(r,t,e,i)||u}function No(n,t,e,i,r){n.top=e,n.left=t,n.right=t+i,n.bottom=e+r,n.width=i,n.height=r}function ud(n,t,e,i){let r=e.padding,{x:s,y:o}=t;for(let a of n){let l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){let f=t.w*u,d=c.size||l.height;Si(c.start)&&(o=c.start),l.fullSize?No(l,r.left,o,e.outerWidth-r.right-r.left,d):No(l,t.left+c.placed,o,f,d),c.start=o,c.placed+=f,o=l.bottom}else{let f=t.h*u,d=c.size||l.width;Si(c.start)&&(s=c.start),l.fullSize?No(l,s,r.top,d,e.outerHeight-r.bottom-r.top):No(l,s,t.top+c.placed,d,f),c.start=s,c.placed+=f,s=l.right}}t.x=s,t.y=o}var jt={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){let e=n.boxes?n.boxes.indexOf(t):-1;e!==-1&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;let r=Vt(n.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(e-r.height,0),a=tb(n.boxes),l=a.vertical,c=a.horizontal;ot(n.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});let u=l.reduce((p,y)=>y.box.options&&y.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},r);th(d,Vt(i));let h=Object.assign({maxPadding:d,w:s,h:o,x:r.left,y:r.top},r),m=Jx(l.concat(c),f);$r(a.fullSize,h,f,m),$r(l,h,f,m),$r(c,h,f,m)&&$r(l,h,f,m),nb(h),ud(a.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,ud(a.rightAndBottom,h,f,m),n.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ot(a.chartArea,p=>{let y=p.box;Object.assign(y,n.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},Uo=class{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}},Dc=class extends Uo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},Yo="$chartjs",rb={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fd=n=>n===null||n==="";function sb(n,t){let e=n.style,i=n.getAttribute("height"),r=n.getAttribute("width");if(n[Yo]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",fd(r)){let s=uc(n,"width");s!==void 0&&(n.width=s)}if(fd(i))if(n.style.height==="")n.height=n.width/(t||2);else{let s=uc(n,"height");s!==void 0&&(n.height=s)}return n}var eh=qf?{passive:!0}:!1;function ob(n,t,e){n&&n.addEventListener(t,e,eh)}function ab(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,eh)}function lb(n,t){let e=rb[n.type]||n.type,{x:i,y:r}=On(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:r!==void 0?r:null}}function qo(n,t){for(let e of n)if(e===t||e.contains(t))return!0}function cb(n,t,e){let i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||qo(a.addedNodes,i),o=o&&!qo(a.removedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function ub(n,t,e){let i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(let a of s)o=o||qo(a.removedNodes,i),o=o&&!qo(a.addedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}var Jr=new Map,dd=0;function nh(){let n=window.devicePixelRatio;n!==dd&&(dd=n,Jr.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function fb(n,t){Jr.size||window.addEventListener("resize",nh),Jr.set(n,t)}function db(n){Jr.delete(n),Jr.size||window.removeEventListener("resize",nh)}function hb(n,t,e){let i=n.canvas,r=i&&Lo(i);if(!r)return;let s=Ql((a,l)=>{let c=r.clientWidth;e(a,l),c<r.clientWidth&&e()},window),o=new ResizeObserver(a=>{let l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(r),fb(n,s),o}function wc(n,t,e){e&&e.disconnect(),t==="resize"&&db(n)}function mb(n,t,e){let i=n.canvas,r=Ql(s=>{n.ctx!==null&&e(lb(s,n))},n);return ob(i,t,r),r}var Sc=class extends Uo{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(sb(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[Yo])return!1;let i=e[Yo].initial;["height","width"].forEach(s=>{let o=i[s];X(o)?e.removeAttribute(s):e.setAttribute(s,o)});let r=i.style||{};return Object.keys(r).forEach(s=>{e.style[s]=r[s]}),e.width=e.width,delete e[Yo],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let r=t.$proxies||(t.$proxies={}),o={attach:cb,detach:ub,resize:hb}[e]||mb;r[e]=o(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),r=i[e];if(!r)return;({attach:wc,detach:wc,resize:wc}[e]||ab)(t,e,r),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return Uf(t,e,i,r)}isAttached(t){let e=t&&Lo(t);return!!(e&&e.isConnected)}};function pb(n){return!Ao()||typeof OffscreenCanvas!="undefined"&&n instanceof OffscreenCanvas?Dc:Sc}var ie=class{constructor(){v(this,"x");v(this,"y");v(this,"active",!1);v(this,"options");v(this,"$animations")}tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Vn(this.x)&&Vn(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let r={};return t.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}};v(ie,"defaults",{}),v(ie,"defaultRoutes");function gb(n,t){let e=n.options.ticks,i=yb(n),r=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?bb(t):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return vb(t,c,s,o/r),c;let u=xb(s,t,r);if(o>0){let f,d,h=o>1?Math.round((l-a)/(o-1)):null;for(Ro(t,c,u,X(h)?0:a-h,a),f=0,d=o-1;f<d;f++)Ro(t,c,u,s[f],s[f+1]);return Ro(t,c,u,l,X(h)?t.length:l+h),c}return Ro(t,c,u),c}function yb(n){let t=n.options.offset,e=n._tickSize(),i=n._length/e+(t?0:1),r=n._maxLength/e;return Math.floor(Math.min(i,r))}function xb(n,t,e){let i=wb(n),r=t.length/e;if(!i)return Math.max(r,1);let s=Df(i);for(let o=0,a=s.length-1;o<a;o++){let l=s[o];if(l>r)return l}return Math.max(r,1)}function bb(n){let t=[],e,i;for(e=0,i=n.length;e<i;e++)n[e].major&&t.push(e);return t}function vb(n,t,e,i){let r=0,s=e[0],o;for(i=Math.ceil(i),o=0;o<n.length;o++)o===s&&(t.push(n[o]),r++,s=e[r*i])}function Ro(n,t,e,i,r){let s=$(i,0),o=Math.min($(r,n.length),n.length),a=0,l,c,u;for(e=Math.ceil(e),r&&(l=r-i,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);c<o;c++)c===u&&(t.push(n[c]),a++,u=Math.round(s+a*e))}function wb(n){let t=n.length,e,i;if(t<2)return!1;for(i=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==i)return!1;return i}var _b=n=>n==="left"?"right":n==="right"?"left":n,hd=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,md=(n,t)=>Math.min(t||n,n);function pd(n,t){let e=[],i=n.length/t,r=n.length,s=0;for(;s<r;s+=i)e.push(n[Math.floor(s)]);return e}function Ob(n,t,e){let i=n.ticks.length,r=Math.min(t,i-1),s=n._startPixel,o=n._endPixel,a=1e-6,l=n.getPixelForTick(r),c;if(!(e&&(i===1?c=Math.max(l-s,o-l):t===0?c=(n.getPixelForTick(1)-l)/2:c=(l-n.getPixelForTick(r-1))/2,l+=r<t?c:-c,l<s-a||l>o+a)))return l}function Mb(n,t){ot(n,e=>{let i=e.gc,r=i.length/2,s;if(r>t){for(s=0;s<r;++s)delete e.data[i[s]];i.splice(0,r)}})}function Br(n){return n.drawTicks?n.tickLength:0}function gd(n,t){if(!n.display)return 0;let e=Dt(n.font,t),i=Vt(n.padding);return(dt(n.text)?n.text.length:1)*e.lineHeight+i.height}function Tb(n,t){return Ge(n,{scale:t,type:"scale"})}function kb(n,t,e){return Ge(n,{tick:e,index:t,type:"tick"})}function Db(n,t,e){let i=So(n);return(e&&t!=="right"||!e&&t==="right")&&(i=_b(i)),i}function Sb(n,t,e,i){let{top:r,left:s,bottom:o,right:a,chart:l}=n,{chartArea:c,scales:u}=l,f=0,d,h,m,p=o-r,y=a-s;if(n.isHorizontal()){if(h=Ht(i,s,a),K(e)){let x=Object.keys(e)[0],b=e[x];m=u[x].getPixelForValue(b)+p-t}else e==="center"?m=(c.bottom+c.top)/2+p-t:m=hd(n,e,t);d=a-s}else{if(K(e)){let x=Object.keys(e)[0],b=e[x];h=u[x].getPixelForValue(b)-y+t}else e==="center"?h=(c.left+c.right)/2-y+t:h=hd(n,e,t);m=Ht(i,o,r),f=e==="left"?-wt:wt}return{titleX:h,titleY:m,maxWidth:d,rotation:f}}var tn=class extends ie{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=Zt(t,Number.POSITIVE_INFINITY),e=Zt(e,Number.NEGATIVE_INFINITY),i=Zt(i,Number.POSITIVE_INFINITY),r=Zt(r,Number.NEGATIVE_INFINITY),{min:Zt(t,i),max:Zt(e,r),minDefined:yt(t),maxDefined:yt(e)}}getMinMax(t){let{min:e,max:i,minDefined:r,maxDefined:s}=this.getUserBounds(),o;if(r&&s)return{min:e,max:i};let a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,t),r||(e=Math.min(e,o.min)),s||(i=Math.max(i,o.max));return e=s&&e>i?i:e,i=r&&e>i?e:i,{min:Zt(e,Zt(i,e)),max:Zt(i,Zt(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ut(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Vf(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a<this.ticks.length;this._convertTicksToLabels(l?pd(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=gb(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,t=!t),this._startPixel=e,this._endPixel=i,this._reversePixels=t,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ut(this.options.afterUpdate,[this])}beforeSetDimensions(){ut(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ut(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ut(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ut(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let e=this.options.ticks,i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i],s.label=ut(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){ut(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ut(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,e=t.ticks,i=md(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,s=e.maxRotation,o=r,a,l,c;if(!this._isVisible()||!e.display||r>=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let u=this._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Et(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/i:h/(i-1),f+6>a&&(a=h/(i-(t.offset?.5:1)),l=this.maxHeight-Br(t.grid)-e.padding-gd(t.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),o=ko(Math.min(Math.asin(Et((u.highest.height+6)/a,-1,1)),Math.asin(Et(l/c,-1,1))-Math.asin(Et(d/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ut(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ut(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){let l=gd(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=Br(s)+l):(t.height=this.maxHeight,t.width=Br(s)+l),i.display&&this.ticks.length){let{first:c,last:u,widest:f,highest:d}=this._getLabelSizes(),h=i.padding*2,m=le(this.labelRotation),p=Math.cos(m),y=Math.sin(m);if(a){let x=i.mirror?0:y*f.width+p*d.height;t.height=Math.min(this.maxHeight,t.height+x+h)}else{let x=i.mirror?0:p*f.width+y*d.height;t.width=Math.min(this.maxWidth,t.width+x+h)}this._calculatePadding(c,u,y,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){let{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),d=0,h=0;l?c?(d=r*t.width,h=i*e.height):(d=i*t.height,h=r*e.width):s==="start"?h=e.width:s==="end"?d=t.width:s!=="inner"&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-f+o)*this.width/(this.width-f),0)}else{let u=e.height/2,f=t.height/2;s==="start"?(u=0,f=t.height):s==="end"&&(u=e.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ut(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e<i;e++)X(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=pd(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){let{ctx:r,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(e/md(e,i)),c=0,u=0,f,d,h,m,p,y,x,b,O,g,w;for(f=0;f<e;f+=l){if(m=t[f].label,p=this._resolveTickFontOptions(f),r.font=y=p.string,x=s[y]=s[y]||{data:{},gc:[]},b=p.lineHeight,O=g=0,!X(m)&&!dt(m))O=Lr(r,x.data,x.gc,O,m),g=b;else if(dt(m))for(d=0,h=m.length;d<h;++d)w=m[d],!X(w)&&!dt(w)&&(O=Lr(r,x.data,x.gc,O,w),g+=b);o.push(O),a.push(g),c=Math.max(O,c),u=Math.max(g,u)}Mb(s,e);let _=o.indexOf(c),T=a.indexOf(u),k=D=>({width:o[D]||0,height:a[D]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(T),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return Ef(this._alignToPixels?vn(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&t<e.length){let i=e[t];return i.$context||(i.$context=kb(this.getContext(),t,i))}return this.$context||(this.$context=Tb(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,e=le(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let e=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Br(s),h=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,y=p/2,x=function(B){return vn(i,B,p)},b,O,g,w,_,T,k,D,E,I,P,N;if(o==="top")b=x(this.bottom),T=this.bottom-d,D=b-y,I=x(t.top)+y,N=t.bottom;else if(o==="bottom")b=x(this.top),I=t.top,N=x(t.bottom)-y,T=b+y,D=this.top+d;else if(o==="left")b=x(this.right),_=this.right-d,k=b-y,E=x(t.left)+y,P=t.right;else if(o==="right")b=x(this.left),E=t.left,P=x(t.right)-y,_=b+y,k=this.left+d;else if(e==="x"){if(o==="center")b=x((t.top+t.bottom)/2+.5);else if(K(o)){let B=Object.keys(o)[0],Y=o[B];b=x(this.chart.scales[B].getPixelForValue(Y))}I=t.top,N=t.bottom,T=b+y,D=T+d}else if(e==="y"){if(o==="center")b=x((t.left+t.right)/2);else if(K(o)){let B=Object.keys(o)[0],Y=o[B];b=x(this.chart.scales[B].getPixelForValue(Y))}_=b-y,k=_-d,E=t.left,P=t.right}let G=$(r.ticks.maxTicksLimit,f),V=Math.max(1,Math.ceil(f/G));for(O=0;O<f;O+=V){let B=this.getContext(O),Y=s.setContext(B),L=a.setContext(B),W=Y.lineWidth,Q=Y.color,Nt=L.dash||[],Mt=L.dashOffset,Yt=Y.tickWidth,kt=Y.tickColor,Rt=Y.tickBorderDash||[],Wt=Y.tickBorderDashOffset;g=Ob(this,O,l),g!==void 0&&(w=vn(i,g,W),c?_=k=E=P=w:T=D=I=N=w,h.push({tx1:_,ty1:T,tx2:k,ty2:D,x1:E,y1:I,x2:P,y2:N,width:W,color:Q,borderDash:Nt,borderDashOffset:Mt,tickWidth:Yt,tickColor:kt,tickBorderDash:Rt,tickBorderDashOffset:Wt}))}return this._ticksLength=f,this._borderValue=b,h}_computeLabelItems(t){let e=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=s,d=Br(i.grid),h=d+u,m=f?-u:h,p=-le(this.labelRotation),y=[],x,b,O,g,w,_,T,k,D,E,I,P,N="middle";if(r==="top")_=this.bottom-m,T=this._getXAxisLabelAlignment();else if(r==="bottom")_=this.top+m,T=this._getXAxisLabelAlignment();else if(r==="left"){let V=this._getYAxisLabelAlignment(d);T=V.textAlign,w=V.x}else if(r==="right"){let V=this._getYAxisLabelAlignment(d);T=V.textAlign,w=V.x}else if(e==="x"){if(r==="center")_=(t.top+t.bottom)/2+h;else if(K(r)){let V=Object.keys(r)[0],B=r[V];_=this.chart.scales[V].getPixelForValue(B)+h}T=this._getXAxisLabelAlignment()}else if(e==="y"){if(r==="center")w=(t.left+t.right)/2-h;else if(K(r)){let V=Object.keys(r)[0],B=r[V];w=this.chart.scales[V].getPixelForValue(B)}T=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(l==="start"?N="top":l==="end"&&(N="bottom"));let G=this._getLabelSizes();for(x=0,b=a.length;x<b;++x){O=a[x],g=O.label;let V=s.setContext(this.getContext(x));k=this.getPixelForTick(x)+s.labelOffset,D=this._resolveTickFontOptions(x),E=D.lineHeight,I=dt(g)?g.length:1;let B=I/2,Y=V.color,L=V.textStrokeColor,W=V.textStrokeWidth,Q=T;o?(w=k,T==="inner"&&(x===b-1?Q=this.options.reverse?"left":"right":x===0?Q=this.options.reverse?"right":"left":Q="center"),r==="top"?c==="near"||p!==0?P=-I*E+E/2:c==="center"?P=-G.highest.height/2-B*E+E:P=-G.highest.height+E/2:c==="near"||p!==0?P=E/2:c==="center"?P=G.highest.height/2-B*E:P=G.highest.height-I*E,f&&(P*=-1),p!==0&&!V.showLabelBackdrop&&(w+=E/2*Math.sin(p))):(_=k,P=(1-I)*E/2);let Nt;if(V.showLabelBackdrop){let Mt=Vt(V.backdropPadding),Yt=G.heights[x],kt=G.widths[x],Rt=P-Mt.top,Wt=0-Mt.left;switch(N){case"middle":Rt-=Yt/2;break;case"bottom":Rt-=Yt;break}switch(T){case"center":Wt-=kt/2;break;case"right":Wt-=kt;break;case"inner":x===b-1?Wt-=kt:x>0&&(Wt-=kt/2);break}Nt={left:Wt,top:Rt,width:kt+Mt.width,height:Yt+Mt.height,color:V.backdropColor}}y.push({label:g,font:D,textOffset:P,options:{rotation:p,color:Y,strokeColor:L,strokeWidth:W,textAlign:Q,textBaseline:N,translation:[w,_],backdrop:Nt}})}return y}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options;if(-le(this.labelRotation))return t==="top"?"left":"right";let r="center";return e.align==="start"?r="left":e.align==="end"?r="right":e.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){let{position:e,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=t+s,l=o.widest.width,c,u;return e==="left"?r?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):e==="right"?r?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:r,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,s,o),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let r=this.ticks.findIndex(s=>s.value===t);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){let e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),s,o,a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=r.length;s<o;++s){let l=r[s];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:e,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;let a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,u,f,d;this.isHorizontal()?(c=vn(t,this.left,o)-o/2,u=vn(t,this.right,a)+a/2,f=d=l):(f=vn(t,this.top,o)-o/2,d=vn(t,this.bottom,a)+a/2,c=u=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,f),e.lineTo(u,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;let i=this.ctx,r=this._computeLabelArea();r&&Rr(i,r);let s=this.getLabelItems(t);for(let o of s){let a=o.options,l=o.font,c=o.label,u=o.textOffset;wn(i,c,0,u,l,a)}r&&Wr(i)}drawTitle(){let{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;let s=Dt(i.font),o=Vt(i.padding),a=i.align,l=s.lineHeight/2;e==="bottom"||e==="center"||K(e)?(l+=o.bottom,dt(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=o.top;let{titleX:c,titleY:u,maxWidth:f,rotation:d}=Sb(this,l,e,a);wn(t,i.text,0,0,s,{color:i.color,maxWidth:f,rotation:d,textAlign:Db(a,e,r),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,e=t.ticks&&t.ticks.z||0,i=$(t.grid&&t.grid.z,-1),r=$(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==tn.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],s,o;for(s=0,o=e.length;s<o;++s){let a=e[s];a[i]===this.id&&(!t||a.type===t)&&r.push(a)}return r}_resolveTickFontOptions(t){let e=this.options.ticks.setContext(this.getContext(t));return Dt(e.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},Bi=class{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let e=Object.getPrototypeOf(t),i;Cb(e)&&(i=this.register(e));let r=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in r||(r[s]=t,Eb(t,o,i),this.override&&pt.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in pt[r]&&(delete pt[r][i],this.override&&delete bn[i])}};function Eb(n,t,e){let i=Ti(Object.create(null),[e?pt.get(e):{},pt.get(t),n.defaults]);pt.set(t,i),n.defaultRoutes&&Pb(t,n.defaultRoutes),n.descriptors&&pt.describe(t,n.descriptors)}function Pb(n,t){Object.keys(t).forEach(e=>{let i=e.split("."),r=i.pop(),s=[n].concat(i).join("."),o=t[e].split("."),a=o.pop(),l=o.join(".");pt.route(s,r,l,a)})}function Cb(n){return"id"in n&&"defaults"in n}var Ec=class{constructor(){this.controllers=new Bi(ne,"datasets",!0),this.elements=new Bi(ie,"elements"),this.plugins=new Bi(Object,"plugins"),this.scales=new Bi(tn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(r=>{let s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(t,s,r):ot(r,o=>{let a=i||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,e,i){let r=To(t);ut(i["before"+r],[],i),e[t](i),ut(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){let r=e.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}},He=new Ec,Pc=class{constructor(){this._init=[]}notify(t,e,i,r){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let s=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(s,t,e,i);return e==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,r){r=r||{};for(let s of t){let o=s.plugin,a=o[i],l=[e,r,s.options];if(ut(a,l,o)===!1&&r.cancelable)return!1}return!0}invalidate(){X(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){let i=t&&t.config,r=$(i.options&&i.options.plugins,{}),s=Ib(i);return r===!1&&!e?[]:Lb(t,s,r,e)}_notifyStateChanges(t){let e=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}};function Ib(n){let t={},e=[],i=Object.keys(He.plugins.items);for(let s=0;s<i.length;s++)e.push(He.getPlugin(i[s]));let r=n.plugins||[];for(let s=0;s<r.length;s++){let o=r[s];e.indexOf(o)===-1&&(e.push(o),t[o.id]=!0)}return{plugins:e,localIds:t}}function Ab(n,t){return!t&&n===!1?null:n===!0?{}:n}function Lb(n,{plugins:t,localIds:e},i,r){let s=[],o=n.getContext();for(let a of t){let l=a.id,c=Ab(i[l],r);c!==null&&s.push({plugin:a,options:Fb(n.config,{plugin:a,local:e[l]},c,o)})}return s}function Fb(n,{plugin:t,local:e},i,r){let s=n.pluginScopeKeys(t),o=n.getOptionScopes(i,s);return e&&t.defaults&&o.push(t.defaults),n.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Cc(n,t){let e=pt.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function Nb(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function Rb(n,t){return n===t?"_index_":"_value_"}function yd(n){if(n==="x"||n==="y"||n==="r")return n}function Wb(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function Ic(n,...t){if(yd(n))return n;for(let e of t){let i=e.axis||Wb(e.position)||n.length>1&&yd(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function xd(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function Hb(n,t){if(t.data&&t.data.datasets){let e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return xd(n,"x",e[0])||xd(n,"y",e[0])}return{}}function Vb(n,t){let e=bn[n.type]||{scales:{}},i=t.scales||{},r=Cc(n.type,t),s=Object.create(null);return Object.keys(i).forEach(o=>{let a=i[o];if(!K(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);let l=Ic(o,a,Hb(o,n),pt.scales[a.type]),c=Rb(l,r),u=e.scales||{};s[o]=Di(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(o=>{let a=o.type||n.type,l=o.indexAxis||Cc(a,t),u=(bn[a]||{}).scales||{};Object.keys(u).forEach(f=>{let d=Nb(f,l),h=o[d+"AxisID"]||d;s[h]=s[h]||Object.create(null),Di(s[h],[{axis:d},i[h],u[f]])})}),Object.keys(s).forEach(o=>{let a=s[o];Di(a,[pt.scales[a.type],pt.scale])}),s}function ih(n){let t=n.options||(n.options={});t.plugins=$(t.plugins,{}),t.scales=Vb(n,t)}function rh(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function zb(n){return n=n||{},n.data=rh(n.data),ih(n),n}var bd=new Map,sh=new Set;function Wo(n,t){let e=bd.get(n);return e||(e=t(),bd.set(n,e),sh.add(e)),e}var Yr=(n,t,e)=>{let i=Xe(t,e);i!==void 0&&n.add(i)},Ac=class{constructor(t){this._config=zb(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=rh(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),ih(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wo(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Wo(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Wo(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return Wo(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,r=i.get(t);return(!r||e)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){let{options:r,type:s}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;let l=new Set;e.forEach(u=>{t&&(l.add(t),u.forEach(f=>Yr(l,t,f))),u.forEach(f=>Yr(l,r,f)),u.forEach(f=>Yr(l,bn[s]||{},f)),u.forEach(f=>Yr(l,pt,f)),u.forEach(f=>Yr(l,Eo,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),sh.has(e)&&o.set(e,c),c}chartOptionScopes(){let{options:t,type:e}=this;return[t,bn[e]||{},pt.datasets[e]||{},{type:e},pt,Eo]}resolveNamedOptions(t,e,i,r=[""]){let s={$shared:!0},{resolver:o,subPrefixes:a}=vd(this._resolverCache,t,r),l=o;if(Yb(o,e)){s.$shared=!1,i=qe(i)?i():i;let c=this.createResolver(t,i,a);l=Hn(o,i,c)}for(let c of e)s[c]=l[c];return s}createResolver(t,e,i=[""],r){let{resolver:s}=vd(this._resolverCache,t,i);return K(e)?Hn(s,e,void 0,r):s}};function vd(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));let r=e.join(),s=i.get(r);return s||(s={resolver:Io(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}var Bb=n=>K(n)&&Object.getOwnPropertyNames(n).some(t=>qe(n[t]));function Yb(n,t){let{isScriptable:e,isIndexable:i}=sc(n);for(let r of t){let s=e(r),o=i(r),a=(o||s)&&n[r];if(s&&(qe(a)||Bb(a))||o&&dt(a))return!0}return!1}var jb="4.4.8",$b=["top","bottom","left","right","chartArea"];function wd(n,t){return n==="top"||n==="bottom"||$b.indexOf(n)===-1&&t==="x"}function _d(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function Od(n){let t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),ut(e&&e.onComplete,[n],t)}function Ub(n){let t=n.chart,e=t.options.animation;ut(e&&e.onProgress,[n],t)}function oh(n){return Ao()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}var jo={},Md=n=>{let t=oh(n);return Object.values(jo).filter(e=>e.canvas===t).pop()};function qb(n,t,e){let i=Object.keys(n);for(let r of i){let s=+r;if(s>=t){let o=n[r];delete n[r],(e>0||s>t)&&(n[s+e]=o)}}}function Zb(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function Ho(n,t,e){return n.options.clip?n[e]:t[e]}function Xb(n,t){let{xScale:e,yScale:i}=n;return e&&i?{left:Ho(e,t,"left"),right:Ho(e,t,"right"),top:Ho(i,t,"top"),bottom:Ho(i,t,"bottom")}:t}var Gt=class{static register(...t){He.add(...t),Td()}static unregister(...t){He.remove(...t),Td()}constructor(t,e){let i=this.config=new Ac(e),r=oh(t),s=Md(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");let o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||pb(r)),this.platform.updateConfig(i);let a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Of(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Pc,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Lf(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],jo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Qe.listen(this,"complete",Od),Qe.listen(this,"progress",Ub),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:s}=this;return X(t)?e&&s?s:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return He}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return nc(this.canvas,this.ctx),this}stop(){return Qe.stop(this),this}resize(t,e){Qe.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,cc(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ut(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let e=this.options.scales||{};ot(e,(i,r)=>{i.id=r})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{}),s=[];e&&(s=s.concat(Object.keys(e).map(o=>{let a=e[o],l=Ic(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),ot(s,o=>{let a=o.options,l=a.id,c=Ic(l,a),u=$(a.type,o.dtype);(a.position===void 0||wd(a.position,c)!==wd(o.dposition))&&(a.position=o.dposition),r[l]=!0;let f=null;if(l in i&&i[l].type===u)f=i[l];else{let d=He.getScale(u);f=new d({id:l,type:u,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(a,t)}),ot(r,(o,a)=>{o||delete i[a]}),ot(i,o=>{jt.configure(this,o,o.options),jt.addBox(this,o)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((r,s)=>r.index-s.index),i>e){for(let r=e;r<i;++r)this._destroyDatasetMeta(r);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(_d("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,r)=>{e.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){let t=[],e=this.data.datasets,i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){let s=e[i],o=this.getDatasetMeta(i),a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=a,o.indexAxis=s.indexAxis||Cc(a,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{let l=He.getController(a),{datasetElementType:c,dataElementType:u}=pt.datasets[a];Object.assign(l,{dataElementType:He.getElement(u),datasetElementType:c&&He.getElement(c)}),o.controller=new l(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){ot(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){let{controller:f}=this.getDatasetMeta(c),d=!r&&s.indexOf(f)===-1;f.buildOrUpdateElements(d),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||ot(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_d("z","_idx"));let{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ot(this.scales,t=>{jt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Yl(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:r,count:s}of e){let o=i==="_removeElements"?-s:s;qb(t,r,o)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;s<e;s++)if(!Yl(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;jt.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],ot(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,qe(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){let i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Qe.has(this)?this.attached&&!Qe.running(this)&&Qe.start(this):(this.draw(),Od({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:i,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let e=this._sortedMetasets,i=[],r,s;for(r=0,s=e.length;r<s;++r){let o=e[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,r=!i.disabled,s=Xb(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&Rr(e,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),t.controller.draw(),r&&Wr(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Fe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){let s=Gx.modes[e];return typeof s=="function"?s(this,t,i,r):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,r=i.filter(s=>s&&s._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Ge(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let r=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,r);Si(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Qe.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),nc(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete jo[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,e=this.platform,i=(s,o)=>{e.addEventListener(this,s,o),t[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};ot(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)},o,a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){ot(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},ot(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let r=i?"set":"remove",s,o,a,l;for(e==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];let c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let e=this._active||[],i=t.map(({datasetIndex:s,index:o})=>{let a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!Fr(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){let r=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),o=s(e,t),a=i?t:s(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;let s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){let{_active:r=[],options:s}=this,o=e,a=this._getActiveElements(t,r,i,o),l=kf(t),c=Zb(t,this._lastEvent,i,l);i&&(this._lastEvent=null,ut(s.onHover,[t,a,this],this),l&&ut(s.onClick,[t,a,this],this));let u=!Fr(a,r);return(u||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,u}_getActiveElements(t,e,i,r){if(t.type==="mouseout")return[];if(!i)return e;let s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,r)}};v(Gt,"defaults",pt),v(Gt,"instances",jo),v(Gt,"overrides",bn),v(Gt,"registry",He),v(Gt,"version",jb),v(Gt,"getChart",Md);function Td(){return ot(Gt.instances,n=>n._plugins.invalidate())}function Gb(n,t,e){let{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=t,c=r/a;n.beginPath(),n.arc(s,o,a,i-c,e+c),l>r?(c=r/l,n.arc(s,o,l,e+c,i-c,!0)):n.arc(s,o,r,e+wt,i-wt),n.closePath(),n.clip()}function Qb(n){return Co(n,["outerStart","outerEnd","innerStart","innerEnd"])}function Kb(n,t,e,i){let r=Qb(n.options.borderRadius),s=(e-t)/2,o=Math.min(s,i*t/2),a=l=>{let c=(e-Math.min(s,l))*i/2;return Et(l,0,Math.min(s,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Et(r.innerStart,0,o),innerEnd:Et(r.innerEnd,0,o)}}function Li(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function Zo(n,t,e,i,r,s){let{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,f=Math.max(t.outerRadius+i+e-c,0),d=u>0?u+i+e+c:0,h=0,m=r-l;if(i){let V=u>0?u-i:0,B=f>0?f-i:0,Y=(V+B)/2,L=Y!==0?m*Y/(Y+i):m;h=(m-L)/2}let p=Math.max(.001,m*f-e/ht)/f,y=(m-p)/2,x=l+y+h,b=r-y-h,{outerStart:O,outerEnd:g,innerStart:w,innerEnd:_}=Kb(t,d,f,b-x),T=f-O,k=f-g,D=x+O/T,E=b-g/k,I=d+w,P=d+_,N=x+w/I,G=b-_/P;if(n.beginPath(),s){let V=(D+E)/2;if(n.arc(o,a,f,D,V),n.arc(o,a,f,V,E),g>0){let W=Li(k,E,o,a);n.arc(W.x,W.y,g,E,b+wt)}let B=Li(P,b,o,a);if(n.lineTo(B.x,B.y),_>0){let W=Li(P,G,o,a);n.arc(W.x,W.y,_,b+wt,G+Math.PI)}let Y=(b-_/d+(x+w/d))/2;if(n.arc(o,a,d,b-_/d,Y,!0),n.arc(o,a,d,Y,x+w/d,!0),w>0){let W=Li(I,N,o,a);n.arc(W.x,W.y,w,N+Math.PI,x-wt)}let L=Li(T,x,o,a);if(n.lineTo(L.x,L.y),O>0){let W=Li(T,D,o,a);n.arc(W.x,W.y,O,x-wt,D)}}else{n.moveTo(o,a);let V=Math.cos(D)*f+o,B=Math.sin(D)*f+a;n.lineTo(V,B);let Y=Math.cos(E)*f+o,L=Math.sin(E)*f+a;n.lineTo(Y,L)}n.closePath()}function Jb(n,t,e,i,r){let{fullCircles:s,startAngle:o,circumference:a}=t,l=t.endAngle;if(s){Zo(n,t,e,i,l,r);for(let c=0;c<s;++c)n.fill();isNaN(a)||(l=o+(a%mt||mt))}return Zo(n,t,e,i,l,r),n.fill(),l}function t0(n,t,e,i,r){let{fullCircles:s,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:f,borderDashOffset:d}=l,h=l.borderAlign==="inner";if(!c)return;n.setLineDash(f||[]),n.lineDashOffset=d,h?(n.lineWidth=c*2,n.lineJoin=u||"round"):(n.lineWidth=c,n.lineJoin=u||"bevel");let m=t.endAngle;if(s){Zo(n,t,e,i,m,r);for(let p=0;p<s;++p)n.stroke();isNaN(a)||(m=o+(a%mt||mt))}h&&Gb(n,t,m),s||(Zo(n,t,e,i,m,r),n.stroke())}var jn=class extends ie{constructor(e){super();v(this,"circumference");v(this,"endAngle");v(this,"fullCircles");v(this,"innerRadius");v(this,"outerRadius");v(this,"pixelMargin");v(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,i,r){let s=this.getProps(["x","y"],r),{angle:o,distance:a}=ql(s,{x:e,y:i}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:f,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=(this.options.spacing+this.options.borderWidth)/2,m=$(d,c-l),p=Pi(o,l,c)&&l!==c,y=m>=mt||p,x=Re(a,u+h,f+h);return y&&x}getCenterPoint(e){let{x:i,y:r,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:u}=this.options,f=(s+o)/2,d=(a+l+u+c)/2;return{x:i+Math.cos(f)*d,y:r+Math.sin(f)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:i,circumference:r}=this,s=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>mt?Math.floor(r/mt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*s,Math.sin(l)*s);let c=1-Math.sin(Math.min(ht,r||0)),u=s*c;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,Jb(e,this,u,o,a),t0(e,this,u,o,a),e.restore()}};v(jn,"id","arc"),v(jn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),v(jn,"defaultRoutes",{backgroundColor:"backgroundColor"}),v(jn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function ah(n,t,e=t){n.lineCap=$(e.borderCapStyle,t.borderCapStyle),n.setLineDash($(e.borderDash,t.borderDash)),n.lineDashOffset=$(e.borderDashOffset,t.borderDashOffset),n.lineJoin=$(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=$(e.borderWidth,t.borderWidth),n.strokeStyle=$(e.borderColor,t.borderColor)}function e0(n,t,e){n.lineTo(e.x,e.y)}function n0(n){return n.stepped?Wf:n.tension||n.cubicInterpolationMode==="monotone"?Hf:e0}function lh(n,t,e={}){let i=n.length,{start:r=0,end:s=i-1}=e,{start:o,end:a}=t,l=Math.max(r,o),c=Math.min(s,a),u=r<o&&s<o||r>a&&s>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function i0(n,t,e,i){let{points:r,options:s}=t,{count:o,start:a,loop:l,ilen:c}=lh(r,e,i),u=n0(s),{move:f=!0,reverse:d}=i||{},h,m,p;for(h=0;h<=c;++h)m=r[(a+(d?c-h:h))%o],!m.skip&&(f?(n.moveTo(m.x,m.y),f=!1):u(n,p,m,d,s.stepped),p=m);return l&&(m=r[(a+(d?c:0))%o],u(n,p,m,d,s.stepped)),!!l}function r0(n,t,e,i){let r=t.points,{count:s,start:o,ilen:a}=lh(r,e,i),{move:l=!0,reverse:c}=i||{},u=0,f=0,d,h,m,p,y,x,b=g=>(o+(c?a-g:g))%s,O=()=>{p!==y&&(n.lineTo(u,y),n.lineTo(u,p),n.lineTo(u,x))};for(l&&(h=r[b(0)],n.moveTo(h.x,h.y)),d=0;d<=a;++d){if(h=r[b(d)],h.skip)continue;let g=h.x,w=h.y,_=g|0;_===m?(w<p?p=w:w>y&&(y=w),u=(f*u+g)/++f):(O(),n.lineTo(g,w),m=_,f=0,p=y=w),x=w}O()}function Lc(n){let t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?r0:i0}function s0(n){return n.stepped?Zf:n.tension||n.cubicInterpolationMode==="monotone"?Xf:xn}function o0(n,t,e,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,e,i)&&r.closePath()),ah(n,t.options),n.stroke(r)}function a0(n,t,e,i){let{segments:r,options:s}=t,o=Lc(t);for(let a of r)ah(n,s,a.style),n.beginPath(),o(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}var l0=typeof Path2D=="function";function c0(n,t,e,i){l0&&!t.options.segment?o0(n,t,e,i):a0(n,t,e,i)}var Ve=class extends ie{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){let r=i.spanGaps?this._loop:this._fullLoop;$f(this._points,i,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Qf(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i=this.options,r=t[e],s=this.points,o=mc(this,{property:e,start:r,end:r});if(!o.length)return;let a=[],l=s0(i),c,u;for(c=0,u=o.length;c<u;++c){let{start:f,end:d}=o[c],h=s[f],m=s[d];if(h===m){a.push(h);continue}let p=Math.abs((r-h[e])/(m[e]-h[e])),y=l(h,m,p,i.stepped);y[e]=t[e],a.push(y)}return a.length===1?a[0]:a}pathSegment(t,e,i){return Lc(this)(t,this,e,i)}path(t,e,i){let r=this.segments,s=Lc(this),o=this._loop;e=e||0,i=i||this.points.length-e;for(let a of r)o&=s(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,r){let s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),c0(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};v(Ve,"id","line"),v(Ve,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),v(Ve,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),v(Ve,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function kd(n,t,e,i){let r=n.options,{[e]:s}=n.getProps([e],i);return Math.abs(t-s)<r.radius+r.hitRadius}var Vi=class extends ie{constructor(e){super();v(this,"parsed");v(this,"skip");v(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,r){let s=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(i-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return kd(this,e,"x",i)}inYRange(e,i){return kd(this,e,"y",i)}getCenterPoint(e){let{x:i,y:r}=this.getProps(["x","y"],e);return{x:i,y:r}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);let r=i&&e.borderWidth||0;return(i+r)*2}draw(e,i){let r=this.options;this.skip||r.radius<.1||!Fe(this,i,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Po(e,r,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}};v(Vi,"id","point"),v(Vi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),v(Vi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function ch(n,t){let{x:e,y:i,base:r,width:s,height:o}=n.getProps(["x","y","base","width","height"],t),a,l,c,u,f;return n.horizontal?(f=o/2,a=Math.min(e,r),l=Math.max(e,r),c=i-f,u=i+f):(f=s/2,a=e-f,l=e+f,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Mn(n,t,e,i){return n?0:Et(t,e,i)}function u0(n,t,e){let i=n.options.borderWidth,r=n.borderSkipped,s=rc(i);return{t:Mn(r.top,s.top,0,e),r:Mn(r.right,s.right,0,t),b:Mn(r.bottom,s.bottom,0,e),l:Mn(r.left,s.left,0,t)}}function f0(n,t,e){let{enableBorderRadius:i}=n.getProps(["enableBorderRadius"]),r=n.options.borderRadius,s=_n(r),o=Math.min(t,e),a=n.borderSkipped,l=i||K(r);return{topLeft:Mn(!l||a.top||a.left,s.topLeft,0,o),topRight:Mn(!l||a.top||a.right,s.topRight,0,o),bottomLeft:Mn(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:Mn(!l||a.bottom||a.right,s.bottomRight,0,o)}}function d0(n){let t=ch(n),e=t.right-t.left,i=t.bottom-t.top,r=u0(n,e/2,i/2),s=f0(n,e/2,i/2);return{outer:{x:t.left,y:t.top,w:e,h:i,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function _c(n,t,e,i){let r=t===null,s=e===null,a=n&&!(r&&s)&&ch(n,i);return a&&(r||Re(t,a.left,a.right))&&(s||Re(e,a.top,a.bottom))}function h0(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function m0(n,t){n.rect(t.x,t.y,t.w,t.h)}function Oc(n,t,e={}){let i=n.x!==e.x?-t:0,r=n.y!==e.y?-t:0,s=(n.x+n.w!==e.x+e.w?t:0)-i,o=(n.y+n.h!==e.y+e.h?t:0)-r;return{x:n.x+i,y:n.y+r,w:n.w+s,h:n.h+o,radius:n.radius}}var zi=class extends ie{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:o}=d0(this),a=h0(o.radius)?Ii:m0;t.save(),(o.w!==s.w||o.h!==s.h)&&(t.beginPath(),a(t,Oc(o,e,s)),t.clip(),a(t,Oc(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Oc(s,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return _c(this,t,e,i)}inXRange(t,e){return _c(this,t,null,e)}inYRange(t,e){return _c(this,null,t,e)}getCenterPoint(t){let{x:e,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+r)/2:e,y:s?i:(i+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};v(zi,"id","bar"),v(zi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),v(zi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var p0=Object.freeze({__proto__:null,ArcElement:jn,BarElement:zi,LineElement:Ve,PointElement:Vi}),Fc=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Dd=Fc.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function uh(n){return Fc[n%Fc.length]}function fh(n){return Dd[n%Dd.length]}function g0(n,t){return n.borderColor=uh(t),n.backgroundColor=fh(t),++t}function y0(n,t){return n.backgroundColor=n.data.map(()=>uh(t++)),t}function x0(n,t){return n.backgroundColor=n.data.map(()=>fh(t++)),t}function b0(n){let t=0;return(e,i)=>{let r=n.getDatasetMeta(i).controller;r instanceof Je?t=y0(e,t):r instanceof Un?t=x0(e,t):r&&(t=g0(e,t))}}function Sd(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function v0(n){return n&&(n.borderColor||n.backgroundColor)}function w0(){return pt.borderColor!=="rgba(0,0,0,0.1)"||pt.backgroundColor!=="rgba(0,0,0,0.1)"}var _0={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;let{data:{datasets:i},options:r}=n.config,{elements:s}=r,o=Sd(i)||v0(r)||s&&Sd(s)||w0();if(!e.forceOverride&&o)return;let a=b0(n);i.forEach(a)}};function O0(n,t,e,i,r){let s=r.samples||i;if(s>=e)return n.slice(t,t+e);let o=[],a=(e-2)/(s-2),l=0,c=t+e-1,u=t,f,d,h,m,p;for(o[l++]=n[u],f=0;f<s-2;f++){let y=0,x=0,b,O=Math.floor((f+1)*a)+1+t,g=Math.min(Math.floor((f+2)*a)+1,e)+t,w=g-O;for(b=O;b<g;b++)y+=n[b].x,x+=n[b].y;y/=w,x/=w;let _=Math.floor(f*a)+1+t,T=Math.min(Math.floor((f+1)*a)+1,e)+t,{x:k,y:D}=n[u];for(h=m=-1,b=_;b<T;b++)m=.5*Math.abs((k-y)*(n[b].y-D)-(k-n[b].x)*(x-D)),m>h&&(h=m,d=n[b],p=b);o[l++]=d,u=p}return o[l++]=n[c],o}function M0(n,t,e,i){let r=0,s=0,o,a,l,c,u,f,d,h,m,p,y=[],x=t+e-1,b=n[t].x,g=n[x].x-b;for(o=t;o<t+e;++o){a=n[o],l=(a.x-b)/g*i,c=a.y;let w=l|0;if(w===u)c<m?(m=c,f=o):c>p&&(p=c,d=o),r=(s*r+a.x)/++s;else{let _=o-1;if(!X(f)&&!X(d)){let T=Math.min(f,d),k=Math.max(f,d);T!==h&&T!==_&&y.push(lt(A({},n[T]),{x:r})),k!==h&&k!==_&&y.push(lt(A({},n[k]),{x:r}))}o>0&&_!==h&&y.push(n[_]),y.push(a),u=w,s=0,m=p=c,f=d=h=o}}return y}function dh(n){if(n._decimated){let t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Ed(n){n.data.datasets.forEach(t=>{dh(t)})}function T0(n,t){let e=t.length,i=0,r,{iScale:s}=n,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=Et(Le(t,s.axis,o).lo,0,e-1)),c?r=Et(Le(t,s.axis,a).hi+1,i,e)-i:r=e-i,{start:i,count:r}}var k0={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){Ed(n);return}let i=n.width;n.data.datasets.forEach((r,s)=>{let{_data:o,indexAxis:a}=r,l=n.getDatasetMeta(s),c=o||r.data;if(Ai([a,n.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let u=n.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||n.options.parsing)return;let{start:f,count:d}=T0(l,c),h=e.threshold||4*i;if(d<=h){dh(r);return}X(o)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let m;switch(e.algorithm){case"lttb":m=O0(c,f,d,i,e);break;case"min-max":m=M0(c,f,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=m})},destroy(n){Ed(n)}};function D0(n,t,e){let i=n.segments,r=n.points,s=t.points,o=[];for(let a of i){let{start:l,end:c}=a;c=Hc(l,c,r);let u=Nc(e,r[l],r[c],a.loop);if(!t.segments){o.push({source:a,target:u,start:r[l],end:r[c]});continue}let f=mc(t,u);for(let d of f){let h=Nc(e,s[d.start],s[d.end],d.loop),m=hc(a,r,h);for(let p of m)o.push({source:p,target:d,start:{[e]:Pd(u,h,"start",Math.max)},end:{[e]:Pd(u,h,"end",Math.min)}})}}return o}function Nc(n,t,e,i){if(i)return;let r=t[n],s=e[n];return n==="angle"&&(r=qt(r),s=qt(s)),{property:n,start:r,end:s}}function S0(n,t){let{x:e=null,y:i=null}=n||{},r=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=Hc(o,a,r);let l=r[o],c=r[a];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):e!==null&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}function Hc(n,t,e){for(;t>n;t--){let i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function Pd(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function hh(n,t){let e=[],i=!1;return dt(n)?(i=!0,e=n):e=S0(n,t),e.length?new Ve({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function Cd(n){return n&&n.fill!==!1}function E0(n,t,e){let r=n[t].fill,s=[t],o;if(!e)return r;for(;r!==!1&&s.indexOf(r)===-1;){if(!yt(r))return r;if(o=n[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function P0(n,t,e){let i=L0(n);if(K(i))return isNaN(i.value)?!1:i;let r=parseFloat(i);return yt(r)&&Math.floor(r)===r?C0(i[0],t,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function C0(n,t,e,i){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function I0(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:K(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function A0(n,t,e){let i;return n==="start"?i=e:n==="end"?i=t.options.reverse?t.min:t.max:K(n)?i=n.value:i=t.getBaseValue(),i}function L0(n){let t=n.options,e=t.fill,i=$(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function F0(n){let{scale:t,index:e,line:i}=n,r=[],s=i.segments,o=i.points,a=N0(t,e);a.push(hh({x:null,y:t.bottom},i));for(let l=0;l<s.length;l++){let c=s[l];for(let u=c.start;u<=c.end;u++)R0(r,o[u],a)}return new Ve({points:r,options:{}})}function N0(n,t){let e=[],i=n.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){let s=i[r];if(s.index===t)break;s.hidden||e.unshift(s.dataset)}return e}function R0(n,t,e){let i=[];for(let r=0;r<e.length;r++){let s=e[r],{first:o,last:a,point:l}=W0(s,t,"x");if(!(!l||o&&a)){if(o)i.unshift(l);else if(n.push(l),!a)break}}n.push(...i)}function W0(n,t,e){let i=n.interpolate(t,e);if(!i)return{};let r=i[e],s=n.segments,o=n.points,a=!1,l=!1;for(let c=0;c<s.length;c++){let u=s[c],f=o[u.start][e],d=o[u.end][e];if(Re(r,f,d)){a=r===f,l=r===d;break}}return{first:a,last:l,point:i}}var Xo=class{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){let{x:r,y:s,radius:o}=this;return e=e||{start:0,end:mt},t.arc(r,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){let{x:e,y:i,radius:r}=this,s=t.angle;return{x:e+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}};function H0(n){let{chart:t,fill:e,line:i}=n;if(yt(e))return V0(t,e);if(e==="stack")return F0(n);if(e==="shape")return!0;let r=z0(n);return r instanceof Xo?r:hh(r,i)}function V0(n,t){let e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function z0(n){return(n.scale||{}).getPointPositionForValue?Y0(n):B0(n)}function B0(n){let{scale:t={},fill:e}=n,i=I0(e,t);if(yt(i)){let r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}function Y0(n){let{scale:t,fill:e}=n,i=t.options,r=t.getLabels().length,s=i.reverse?t.max:t.min,o=A0(e,t,s),a=[];if(i.grid.circular){let l=t.getPointPositionForValue(0,s);return new Xo({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<r;++l)a.push(t.getPointPositionForValue(l,o));return a}function Mc(n,t,e){let i=H0(t),{line:r,scale:s,axis:o}=t,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:f=c}=l||{};i&&r.points.length&&(Rr(n,e),j0(n,{line:r,target:i,above:u,below:f,area:e,scale:s,axis:o}),Wr(n))}function j0(n,t){let{line:e,target:i,above:r,below:s,area:o,scale:a}=t,l=e._loop?"angle":t.axis;n.save(),l==="x"&&s!==r&&(Id(n,i,o.top),Ad(n,{line:e,target:i,color:r,scale:a,property:l}),n.restore(),n.save(),Id(n,i,o.bottom)),Ad(n,{line:e,target:i,color:s,scale:a,property:l}),n.restore()}function Id(n,t,e){let{segments:i,points:r}=t,s=!0,o=!1;n.beginPath();for(let a of i){let{start:l,end:c}=a,u=r[l],f=r[Hc(l,c,r)];s?(n.moveTo(u.x,u.y),s=!1):(n.lineTo(u.x,e),n.lineTo(u.x,u.y)),o=!!t.pathSegment(n,a,{move:o}),o?n.closePath():n.lineTo(f.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function Ad(n,t){let{line:e,target:i,property:r,color:s,scale:o}=t,a=D0(e,i,r);for(let{source:l,target:c,start:u,end:f}of a){let{style:{backgroundColor:d=s}={}}=l,h=i!==!0;n.save(),n.fillStyle=d,$0(n,o,h&&Nc(r,u,f)),n.beginPath();let m=!!e.pathSegment(n,l),p;if(h){m?n.closePath():Ld(n,i,f,r);let y=!!i.pathSegment(n,c,{move:m,reverse:!0});p=m&&y,p||Ld(n,i,u,r)}n.closePath(),n.fill(p?"evenodd":"nonzero"),n.restore()}}function $0(n,t,e){let{top:i,bottom:r}=t.chart.chartArea,{property:s,start:o,end:a}=e||{};s==="x"&&(n.beginPath(),n.rect(o,i,a-o,r-i),n.clip())}function Ld(n,t,e,i){let r=t.interpolate(e,i);r&&n.lineTo(r.x,r.y)}var U0={id:"filler",afterDatasetsUpdate(n,t,e){let i=(n.data.datasets||[]).length,r=[],s,o,a,l;for(o=0;o<i;++o)s=n.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Ve&&(l={visible:n.isDatasetVisible(o),index:o,fill:P0(a,o,i),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],!(!l||l.fill===!1)&&(l.fill=E0(r,o,e.propagate))},beforeDraw(n,t,e){let i=e.drawTime==="beforeDraw",r=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let o=r.length-1;o>=0;--o){let a=r[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),i&&a.fill&&Mc(n.ctx,a,s))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=n.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){let s=i[r].$filler;Cd(s)&&Mc(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){let i=t.meta.$filler;!Cd(i)||e.drawTime!=="beforeDatasetDraw"||Mc(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Fd=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},q0=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index,Go=class extends ie{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=ut(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}let i=t.labels,r=Dt(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Fd(i,s),c,u;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,r,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){let{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a,f=t;s.textAlign="left",s.textBaseline="middle";let d=-1,h=-u;return this.legendItems.forEach((m,p)=>{let y=i+e/2+s.measureText(m.text).width;(p===0||c[c.length-1]+y+2*a>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,h+=u,d++),l[p]={left:0,top:h,row:d,width:y,height:r},c[c.length-1]+=y+a}),f}_fitCols(t,e,i,r){let{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t,f=a,d=0,h=0,m=0,p=0;return this.legendItems.forEach((y,x)=>{let{itemWidth:b,itemHeight:O}=Z0(i,e,s,y,r);x>0&&h+O+2*a>u&&(f+=d+a,c.push({width:d,height:h}),m+=d+a,p++,d=h=0),l[x]={left:m,top:h,col:p,width:b,height:O},d=Math.max(d,b),h+=O+a}),f+=d,c.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:s}}=this,o=zn(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ht(i,this.left+r,this.right-this.lineWidths[a]);for(let c of e)a!==c.row&&(a=c.row,l=Ht(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+t+r,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+r}else{let a=0,l=Ht(i,this.top+t+r,this.bottom-this.columnSizes[a].height);for(let c of e)c.col!==a&&(a=c.col,l=Ht(i,this.top+t+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;Rr(t,this),this._draw(),Wr(t)}}_draw(){let{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:s,labels:o}=t,a=pt.color,l=zn(t.rtl,this.left,this.width),c=Dt(o.font),{padding:u}=o,f=c.size,d=f/2,h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;let{boxWidth:m,boxHeight:p,itemHeight:y}=Fd(o,f),x=function(_,T,k){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;r.save();let D=$(k.lineWidth,1);if(r.fillStyle=$(k.fillStyle,a),r.lineCap=$(k.lineCap,"butt"),r.lineDashOffset=$(k.lineDashOffset,0),r.lineJoin=$(k.lineJoin,"miter"),r.lineWidth=D,r.strokeStyle=$(k.strokeStyle,a),r.setLineDash($(k.lineDash,[])),o.usePointStyle){let E={radius:p*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:D},I=l.xPlus(_,m/2),P=T+d;ic(r,E,I,P,o.pointStyleWidth&&m)}else{let E=T+Math.max((f-p)/2,0),I=l.leftForLtr(_,m),P=_n(k.borderRadius);r.beginPath(),Object.values(P).some(N=>N!==0)?Ii(r,{x:I,y:E,w:m,h:p,radius:P}):r.rect(I,E,m,p),r.fill(),D!==0&&r.stroke()}r.restore()},b=function(_,T,k){wn(r,k.text,_,T+y/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},O=this.isHorizontal(),g=this._computeTitleHeight();O?h={x:Ht(s,this.left+u,this.right-i[0]),y:this.top+u+g,line:0}:h={x:this.left+u,y:Ht(s,this.top+g+u,this.bottom-e[0].height),line:0},fc(this.ctx,t.textDirection);let w=y+u;this.legendItems.forEach((_,T)=>{r.strokeStyle=_.fontColor,r.fillStyle=_.fontColor;let k=r.measureText(_.text).width,D=l.textAlign(_.textAlign||(_.textAlign=o.textAlign)),E=m+d+k,I=h.x,P=h.y;l.setWidth(this.width),O?T>0&&I+E+u>this.right&&(P=h.y+=w,h.line++,I=h.x=Ht(s,this.left+u,this.right-i[h.line])):T>0&&P+w>this.bottom&&(I=h.x=I+e[h.line].width+u,h.line++,P=h.y=Ht(s,this.top+g+u,this.bottom-e[h.line].height));let N=l.x(I);if(x(N,P,_),I=Ff(D,I+m+d,O?I+E:this.right,t.rtl),b(l.x(I),P,_),O)h.x+=E+u;else if(typeof _.text!="string"){let G=c.lineHeight;h.y+=mh(_,G)+u}else h.y+=w}),dc(this.ctx,t.textDirection)}drawTitle(){let t=this.options,e=t.title,i=Dt(e.font),r=Vt(e.padding);if(!e.display)return;let s=zn(t.rtl,this.left,this.width),o=this.ctx,a=e.position,l=i.size/2,c=r.top+l,u,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,f=Ht(t.align,f,this.right-d);else{let m=this.columnSizes.reduce((p,y)=>Math.max(p,y.height),0);u=c+Ht(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}let h=Ht(a,f,f+d);o.textAlign=s.textAlign(So(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,wn(o,e.text,h,u,i)}_computeTitleHeight(){let t=this.options.title,e=Dt(t.font),i=Vt(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,s;if(Re(t,this.left,this.right)&&Re(e,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],Re(t,r.left,r.left+r.width)&&Re(e,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){let e=this.options;if(!Q0(t.type,e))return;let i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let r=this._hoveredItem,s=q0(r,i);r&&!s&&ut(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!s&&ut(e.onHover,[t,i,this],this)}else i&&ut(e.onClick,[t,i,this],this)}};function Z0(n,t,e,i,r){let s=X0(i,n,t,e),o=G0(r,i,t.lineHeight);return{itemWidth:s,itemHeight:o}}function X0(n,t,e,i){let r=n.text;return r&&typeof r!="string"&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),t+e.size/2+i.measureText(r).width}function G0(n,t,e){let i=n;return typeof t.text!="string"&&(i=mh(t,e)),i}function mh(n,t){let e=n.text?n.text.length:0;return t*e}function Q0(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var K0={id:"legend",_element:Go,start(n,t,e){let i=n.legend=new Go({ctx:n.ctx,options:e,chart:n});jt.configure(n,i,e),jt.addBox(n,i)},stop(n){jt.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){let i=n.legend;jt.configure(n,i,e),i.options=e},afterUpdate(n){let t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){let i=t.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){let t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=n.legend.options;return n._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),u=Vt(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}},ts=class extends ie{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;let r=dt(i.text)?i.text.length:1;this._padding=Vt(i.padding);let s=r*Dt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){let{top:e,left:i,bottom:r,right:s,options:o}=this,a=o.align,l=0,c,u,f;return this.isHorizontal()?(u=Ht(a,i,s),f=e+t,c=s-i):(o.position==="left"?(u=i+t,f=Ht(a,r,e),l=ht*-.5):(u=s-t,f=Ht(a,e,r),l=ht*.5),c=r-e),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){let t=this.ctx,e=this.options;if(!e.display)return;let i=Dt(e.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);wn(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:So(e.align),textBaseline:"middle",translation:[o,a]})}};function J0(n,t){let e=new ts({ctx:n.ctx,options:t,chart:n});jt.configure(n,e,t),jt.addBox(n,e),n.titleBlock=e}var tv={id:"title",_element:ts,start(n,t,e){J0(n,e)},stop(n){let t=n.titleBlock;jt.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){let i=n.titleBlock;jt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Vo=new WeakMap,ev={id:"subtitle",start(n,t,e){let i=new ts({ctx:n.ctx,options:e,chart:n});jt.configure(n,i,e),jt.addBox(n,i),Vo.set(n,i)},stop(n){jt.removeBox(n,Vo.get(n)),Vo.delete(n)},beforeUpdate(n,t,e){let i=Vo.get(n);jt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Ur={average(n){if(!n.length)return!1;let t,e,i=new Set,r=0,s=0;for(t=0,e=n.length;t<e;++t){let a=n[t].element;if(a&&a.hasValue()){let l=a.tooltipPosition();i.add(l.x),r+=l.y,++s}}return s===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:r/s}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=n.length;s<o;++s){let l=n[s].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),u=Oo(t,c);u<r&&(r=u,a=l)}}if(a){let l=a.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function We(n,t){return t&&(dt(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Ke(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
2
2
|
`)>-1?n.split(`
|
3
|
- `):n}function J0(n,t){let{element:e,datasetIndex:i,index:r}=t,s=n.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:n,label:o,parsed:s.getParsed(r),raw:n.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function Ad(n,t){let e=n.chart.ctx,{body:i,footer:r,title:s}=n,{boxWidth:o,boxHeight:a}=t,l=Dt(t.bodyFont),c=Dt(t.titleFont),u=Dt(t.footerFont),f=s.length,d=r.length,h=i.length,m=Vt(t.padding),p=m.height,y=0,x=i.reduce((g,w)=>g+w.before.length+w.lines.length+w.after.length,0);if(x+=n.beforeBody.length+n.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),x){let g=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*g+(x-h)*l.lineHeight+(x-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let b=0,O=function(g){y=Math.max(y,e.measureText(g).width+b)};return e.save(),e.font=c.string,ot(n.title,O),e.font=l.string,ot(n.beforeBody.concat(n.afterBody),O),b=t.displayColors?o+2+t.boxPadding:0,ot(i,g=>{ot(g.before,O),ot(g.lines,O),ot(g.after,O)}),b=0,e.font=u.string,ot(n.footer,O),e.restore(),y+=m.width,{width:y,height:p}}function tv(n,t){let{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function ev(n,t,e,i){let{x:r,width:s}=i,o=e.caretSize+e.caretPadding;if(n==="left"&&r+s+o>t.width||n==="right"&&r-s-o<0)return!0}function nv(n,t,e,i){let{x:r,width:s}=e,{width:o,chartArea:{left:a,right:l}}=n,c="center";return i==="center"?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),ev(c,n,t,e)&&(c="center"),c}function Ld(n,t,e){let i=e.yAlign||t.yAlign||tv(n,e);return{xAlign:e.xAlign||t.xAlign||nv(n,t,e,i),yAlign:i}}function iv(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function rv(n,t,e){let{y:i,height:r}=n;return t==="top"?i+=e:t==="bottom"?i-=r+e:i-=r/2,i}function Fd(n,t,e,i){let{caretSize:r,caretPadding:s,cornerRadius:o}=n,{xAlign:a,yAlign:l}=e,c=r+s,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:h}=wn(o),m=iv(t,a),p=rv(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,d)+r:a==="right"&&(m+=Math.max(f,h)+r),{x:Et(m,0,i.width-t.width),y:Et(p,0,i.height-t.height)}}function Vo(n,t,e){let i=Vt(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Nd(n){return We([],Ke(n))}function sv(n,t,e){return Ge(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Rd(n,t){let e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}var dh={beforeTitle:Ne,title(n){if(n.length>0){let t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Ne,beforeBody:Ne,beforeLabel:Ne,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");let e=n.formattedValue;return X(e)||(t+=e),t},labelColor(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Ne,afterBody:Ne,beforeFooter:Ne,footer:Ne,afterFooter:Ne};function Xt(n,t,e,i){let r=n[t].call(e,i);return typeof r=="undefined"?dh[t].call(e,i):r}var Gr=class extends ie{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,s=new jo(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=sv(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){let{callbacks:i}=e,r=Xt(i,"beforeTitle",this,t),s=Xt(i,"title",this,t),o=Xt(i,"afterTitle",this,t),a=[];return a=We(a,Ke(r)),a=We(a,Ke(s)),a=We(a,Ke(o)),a}getBeforeBody(t,e){return Nd(Xt(e.callbacks,"beforeBody",this,t))}getBody(t,e){let{callbacks:i}=e,r=[];return ot(t,s=>{let o={before:[],lines:[],after:[]},a=Rd(i,s);We(o.before,Ke(Xt(a,"beforeLabel",this,s))),We(o.lines,Xt(a,"label",this,s)),We(o.after,Ke(Xt(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(t,e){return Nd(Xt(e.callbacks,"afterBody",this,t))}getFooter(t,e){let{callbacks:i}=e,r=Xt(i,"beforeFooter",this,t),s=Xt(i,"footer",this,t),o=Xt(i,"afterFooter",this,t),a=[];return a=We(a,Ke(r)),a=We(a,Ke(s)),a=We(a,Ke(o)),a}_createItems(t){let e=this._active,i=this.chart.data,r=[],s=[],o=[],a=[],l,c;for(l=0,c=e.length;l<c;++l)a.push(J0(this.chart,e[l]));return t.filter&&(a=a.filter((u,f,d)=>t.filter(u,f,d,i))),t.itemSort&&(a=a.sort((u,f)=>t.itemSort(u,f,i))),ot(a,u=>{let f=Rd(t.callbacks,u);r.push(Xt(f,"labelColor",this,u)),s.push(Xt(f,"labelPointStyle",this,u)),o.push(Xt(f,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,e){let i=this.options.setContext(this.getContext()),r=this._active,s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0});else{let a=$r[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);let l=this._size=Ad(this,i),c=Object.assign({},a,l),u=Ld(this.chart,i,c),f=Fd(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){let s=this.getCaretPosition(t,i,r);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){let{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=wn(a),{x:d,y:h}=t,{width:m,height:p}=e,y,x,b,O,g,w;return s==="center"?(g=h+p/2,r==="left"?(y=d,x=y-o,O=g+o,w=g-o):(y=d+m,x=y+o,O=g-o,w=g+o),b=y):(r==="left"?x=d+Math.max(l,u)+o:r==="right"?x=d+m-Math.max(c,f)-o:x=this.caretX,s==="top"?(O=h,g=O-o,y=x-o,b=x+o):(O=h+p,g=O+o,y=x+o,b=x-o),w=O),{x1:y,x2:x,x3:b,y1:O,y2:g,y3:w}}drawTitle(t,e,i){let r=this.title,s=r.length,o,a,l;if(s){let c=Vn(i.rtl,this.x,this.width);for(t.x=Vo(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",o=Dt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,l=0;l<s;++l)e.fillText(r[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===s&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,s){let o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=s,u=Dt(s.bodyFont),f=Vo(this,"left",s),d=r.x(f),h=l<u.lineHeight?(u.lineHeight-l)/2:0,m=e.y+h;if(s.usePointStyle){let p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},y=r.leftForLtr(d,c)+c/2,x=m+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Eo(t,p,y,x),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Eo(t,p,y,x)}else{t.lineWidth=K(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;let p=r.leftForLtr(d,c),y=r.leftForLtr(r.xPlus(d,1),c-2),x=wn(o.borderRadius);Object.values(x).some(b=>b!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Pi(t,{x:p,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Pi(t,{x:y,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(p,m,c,l),t.strokeRect(p,m,c,l),t.fillStyle=o.backgroundColor,t.fillRect(y,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,f=Dt(i.bodyFont),d=f.lineHeight,h=0,m=Vn(i.rtl,this.x,this.width),p=function(k){e.fillText(k,m.x(t.x+h),t.y+d/2),t.y+=d+s},y=m.textAlign(o),x,b,O,g,w,_,T;for(e.textAlign=o,e.textBaseline="middle",e.font=f.string,t.x=Vo(this,y,i),e.fillStyle=i.bodyColor,ot(this.beforeBody,p),h=a&&y!=="right"?o==="center"?c/2+u:c+2+u:0,g=0,_=r.length;g<_;++g){for(x=r[g],b=this.labelTextColors[g],e.fillStyle=b,ot(x.before,p),O=x.lines,a&&O.length&&(this._drawColorBox(e,t,g,m,i),d=Math.max(f.lineHeight,l)),w=0,T=O.length;w<T;++w)p(O[w]),d=f.lineHeight;ot(x.after,p)}h=0,d=f.lineHeight,ot(this.afterBody,p),t.y-=s}drawFooter(t,e,i){let r=this.footer,s=r.length,o,a;if(s){let l=Vn(i.rtl,this.x,this.width);for(t.x=Vo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",o=Dt(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<s;++a)e.fillText(r[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){let{xAlign:s,yAlign:o}=this,{x:a,y:l}=t,{width:c,height:u}=i,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:m}=wn(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+f,l),o==="top"&&this.drawCaret(t,e,i,r),e.lineTo(a+c-d,l),e.quadraticCurveTo(a+c,l,a+c,l+d),o==="center"&&s==="right"&&this.drawCaret(t,e,i,r),e.lineTo(a+c,l+u-m),e.quadraticCurveTo(a+c,l+u,a+c-m,l+u),o==="bottom"&&this.drawCaret(t,e,i,r),e.lineTo(a+h,l+u),e.quadraticCurveTo(a,l+u,a,l+u-h),o==="center"&&s==="left"&&this.drawCaret(t,e,i,r),e.lineTo(a,l+f),e.quadraticCurveTo(a,l,a+f,l),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){let o=$r[t.position].call(this,this._active,this._eventPosition);if(!o)return;let a=this._size=Ad(this,t),l=Object.assign({},o,this._size),c=Ld(e,t,l),u=Fd(t,l,c,e);(r._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;let o=Vt(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,r,e),fc(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),dc(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,r=t.map(({datasetIndex:a,index:l})=>{let c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!Lr(i,r),o=this._positionChanged(r,e);(s||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),a=this._positionChanged(o,t),l=e||!Lr(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,r){let s=this.options;if(t.type==="mouseout")return[];if(!r)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);let o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){let{caretX:i,caretY:r,options:s}=this,o=$r[s.position].call(this,t,e);return o!==!1&&(i!==o.x||r!==o.y)}};v(Gr,"positioners",$r);var ov={id:"tooltip",_element:Gr,positioners:$r,afterInit(n,t,e){e&&(n.tooltip=new Gr({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){let t=n.tooltip;if(t&&t._willRender()){let e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",ct(L({},e),{cancelable:!0}))===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){let e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:dh},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},av=Object.freeze({__proto__:null,Colors:b0,Decimation:O0,Filler:Y0,Legend:X0,SubTitle:K0,Title:Q0,Tooltip:ov}),lv=(n,t,e,i)=>(typeof t=="string"?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function cv(n,t,e,i){let r=n.indexOf(t);if(r===-1)return lv(n,t,e,i);let s=n.lastIndexOf(t);return r!==s?e:r}var uv=(n,t)=>n===null?null:Et(Math.round(n),0,t);function Wd(n){let t=this.getLabels();return n>=0&&n<t.length?t[n]:n}var Ur=class extends tn{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let e=this._addedLabels;if(e.length){let i=this.getLabels();for(let{index:r,label:s}of e)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(X(t))return null;let i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:cv(i,t,$(e,t),this._addedLabels),uv(e,i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){let t=this.min,e=this.max,i=this.options.offset,r=[],s=this.getLabels();s=t===0&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)r.push({value:o});return r}getLabelForValue(t){return Wd.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};v(Ur,"id","category"),v(Ur,"defaults",{ticks:{callback:Wd}});function fv(n,t){let e=[],{bounds:r,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:d}=n,h=s||1,m=u-1,{min:p,max:y}=t,x=!X(o),b=!X(a),O=!X(c),g=(y-p)/(f+1),w=jl((y-p)/m/h)*h,_,T,k,D;if(w<1e-14&&!x&&!b)return[{value:p},{value:y}];D=Math.ceil(y/w)-Math.floor(p/w),D>m&&(w=jl(D*w/m/h)*h),X(l)||(_=Math.pow(10,l),w=Math.ceil(w*_)/_),r==="ticks"?(T=Math.floor(p/w)*w,k=Math.ceil(y/w)*w):(T=p,k=y),x&&b&&s&&Tf((a-o)/s,w/1e3)?(D=Math.round(Math.min((a-o)/w,u)),w=(a-o)/D,T=o,k=a):O?(T=x?o:T,k=b?a:k,D=c-1,w=(k-T)/D):(D=(k-T)/w,Di(D,Math.round(D),w/1e3)?D=Math.round(D):D=Math.ceil(D));let E=Math.max(Ul(w),Ul(T));_=Math.pow(10,X(l)?E:l),T=Math.round(T*_)/_,k=Math.round(k*_)/_;let I=0;for(x&&(d&&T!==o?(e.push({value:o}),T<o&&I++,Di(Math.round((T+I*w)*_)/_,o,Hd(o,g,n))&&I++):T<o&&I++);I<D;++I){let P=Math.round((T+I*w)*_)/_;if(b&&P>a)break;e.push({value:P})}return b&&d&&k!==a?e.length&&Di(e[e.length-1].value,a,Hd(a,g,n))?e[e.length-1].value=a:e.push({value:a}):(!b||k===a)&&e.push({value:k}),e}function Hd(n,t,{horizontal:e,minRotation:i}){let r=le(i),s=(e?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+n).length;return Math.min(t/s,o)}var zi=class extends tn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return X(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:s}=this,o=l=>r=e?r:l,a=l=>s=i?s:l;if(t){let l=be(r),c=be(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),t||o(r-l)}this.min=r,this.max=s}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:e,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},s=this._range||this,o=fv(r,s);return t.bounds==="ticks"&&$l(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Ei(t,this.chart.options.locale,this.options.ticks.format)}},qr=class extends zi{determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=yt(t)?t:0,this.max=yt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=le(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};v(qr,"id","linear"),v(qr,"defaults",{ticks:{callback:Fr.formatters.numeric}});var ts=n=>Math.floor(Ze(n)),Bn=(n,t)=>Math.pow(10,ts(n)+t);function Vd(n){return n/Math.pow(10,ts(n))===1}function zd(n,t,e){let i=Math.pow(10,e),r=Math.floor(n/i);return Math.ceil(t/i)-r}function dv(n,t){let e=t-n,i=ts(e);for(;zd(n,t,i)>10;)i++;for(;zd(n,t,i)<10;)i--;return Math.min(i,ts(n))}function hv(n,{min:t,max:e}){t=Zt(n.min,t);let i=[],r=ts(t),s=dv(t,e),o=s<0?Math.pow(10,Math.abs(s)):1,a=Math.pow(10,s),l=r>s?Math.pow(10,r):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/a/10)*a*10,f=Math.floor((c-u)/Math.pow(10,s)),d=Zt(n.min,Math.round((l+u+f*Math.pow(10,s))*o)/o);for(;d<e;)i.push({value:d,major:Vd(d),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(s++,f=2,o=s>=0?1:o),d=Math.round((l+u+f*Math.pow(10,s))*o)/o;let h=Zt(n.max,d);return i.push({value:h,major:Vd(h),significand:f}),i}var Zr=class extends tn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=zi.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return yt(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=yt(t)?Math.max(0,t):null,this.max=yt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!yt(this._userMin)&&(this.min=t===Bn(this.min,0)?Bn(this.min,-1):Bn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,s=a=>i=t?i:a,o=a=>r=e?r:a;i===r&&(i<=0?(s(1),o(10)):(s(Bn(i,-1)),o(Bn(r,1)))),i<=0&&s(Bn(r,-1)),r<=0&&o(Bn(i,1)),this.min=i,this.max=r}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=hv(e,this);return t.bounds==="ticks"&&$l(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Ei(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=Ze(t),this._valueRange=Ze(this.max)-Ze(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ze(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}};v(Zr,"id","logarithmic"),v(Zr,"defaults",{ticks:{callback:Fr.formatters.logarithmic,major:{enabled:!0}}});function Rc(n){let t=n.ticks;if(t.display&&n.display){let e=Vt(t.backdropPadding);return $(t.font&&t.font.size,pt.font.size)+e.height}return 0}function mv(n,t,e){return e=dt(e)?e:[e],{w:Lf(n,t.string,e),h:e.length*t.lineHeight}}function Bd(n,t,e,i,r){return n===i||n===r?{start:t-e/2,end:t+e/2}:n<i||n>r?{start:t-e,end:t}:{start:t,end:t+e}}function pv(n){let t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],r=[],s=n._pointLabels.length,o=n.options.pointLabels,a=o.centerPointLabels?ht/s:0;for(let l=0;l<s;l++){let c=o.setContext(n.getPointLabelContext(l));r[l]=c.padding;let u=n.getPointPosition(l,n.drawingArea+r[l],a),f=Dt(c.font),d=mv(n.ctx,f,n._pointLabels[l]);i[l]=d;let h=qt(n.getIndexAngle(l)+a),m=Math.round(To(h)),p=Bd(m,u.x,d.w,0,180),y=Bd(m,u.y,d.h,90,270);gv(e,t,h,p,y)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=bv(n,i,r)}function gv(n,t,e,i,r){let s=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e)),a=0,l=0;i.start<t.l?(a=(t.l-i.start)/s,n.l=Math.min(n.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/s,n.r=Math.max(n.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/o,n.t=Math.min(n.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/o,n.b=Math.max(n.b,t.b+l))}function yv(n,t,e){let i=n.drawingArea,{extra:r,additionalAngle:s,padding:o,size:a}=e,l=n.getPointPosition(t,i+r+o,s),c=Math.round(To(qt(l.angle+wt))),u=_v(l.y,a.h,c),f=vv(c),d=wv(l.x,a.w,f);return{visible:!0,x:l.x,y:u,textAlign:f,left:d,top:u,right:d+a.w,bottom:u+a.h}}function xv(n,t){if(!t)return!0;let{left:e,top:i,right:r,bottom:s}=n;return!(Fe({x:e,y:i},t)||Fe({x:e,y:s},t)||Fe({x:r,y:i},t)||Fe({x:r,y:s},t))}function bv(n,t,e){let i=[],r=n._pointLabels.length,s=n.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:Rc(s)/2,additionalAngle:o?ht/r:0},c;for(let u=0;u<r;u++){l.padding=e[u],l.size=t[u];let f=yv(n,u,l);i.push(f),a==="auto"&&(f.visible=xv(f,c),f.visible&&(c=f))}return i}function vv(n){return n===0||n===180?"center":n<180?"left":"right"}function wv(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function _v(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function Ov(n,t,e){let{left:i,top:r,right:s,bottom:o}=e,{backdropColor:a}=t;if(!X(a)){let l=wn(t.borderRadius),c=Vt(t.backdropPadding);n.fillStyle=a;let u=i-c.left,f=r-c.top,d=s-i+c.width,h=o-r+c.height;Object.values(l).some(m=>m!==0)?(n.beginPath(),Pi(n,{x:u,y:f,w:d,h,radius:l}),n.fill()):n.fillRect(u,f,d,h)}}function Mv(n,t){let{ctx:e,options:{pointLabels:i}}=n;for(let r=t-1;r>=0;r--){let s=n._pointLabelItems[r];if(!s.visible)continue;let o=i.setContext(n.getPointLabelContext(r));Ov(e,o,s);let a=Dt(o.font),{x:l,y:c,textAlign:u}=s;vn(e,n._pointLabels[r],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function hh(n,t,e,i){let{ctx:r}=n;if(e)r.arc(n.xCenter,n.yCenter,t,0,mt);else{let s=n.getPointPosition(0,t);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=n.getPointPosition(o,t),r.lineTo(s.x,s.y)}}function Tv(n,t,e,i,r){let s=n.ctx,o=t.circular,{color:a,lineWidth:l}=t;!o&&!i||!a||!l||e<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),hh(n,e,o,i),s.closePath(),s.stroke(),s.restore())}function kv(n,t,e){return Ge(n,{label:e,index:t,type:"pointLabel"})}var jn=class extends zi{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=Vt(Rc(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=yt(t)&&!isNaN(t)?t:0,this.max=yt(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Rc(this.options))}generateTickLabels(t){zi.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{let r=ut(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let t=this.options;t.display&&t.pointLabels.display?pv(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){let e=mt/(this._pointLabels.length||1),i=this.options.startAngle||0;return qt(t*e+le(i))}getDistanceFromCenterForValue(t){if(X(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(X(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t<e.length){let i=e[t];return kv(this.getContext(),t,i)}}getPointPosition(t,e,i=0){let r=this.getIndexAngle(t)-wt+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:e,top:i,right:r,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:s}}drawBackground(){let{backgroundColor:t,grid:{circular:e}}=this.options;if(t){let i=this.ctx;i.save(),i.beginPath(),hh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){let t=this.ctx,e=this.options,{angleLines:i,grid:r,border:s}=e,o=this._pointLabels.length,a,l,c;if(e.pointLabels.display&&Mv(this,o),r.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);let d=this.getContext(f),h=r.setContext(d),m=s.setContext(d);Tv(this,h,l,o,m)}}),i.display){for(t.save(),a=o-1;a>=0;a--){let u=i.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=u;!d||!f||(t.lineWidth=d,t.strokeStyle=f,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),u=Dt(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;let f=Vt(c.backdropPadding);t.fillRect(-o/2-f.left,-s-u.size/2-f.top,o+f.width,u.size+f.height)}vn(t,a.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}};v(jn,"id","radialLinear"),v(jn,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),v(jn,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),v(jn,"descriptors",{angleLines:{_fallback:"grid"}});var Go={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qt=Object.keys(Go);function Yd(n,t){return n-t}function jd(n,t){if(X(t))return null;let e=n._adapter,{parser:i,round:r,isoWeekday:s}=n._parseOpts,o=t;return typeof i=="function"&&(o=i(o)),yt(o)||(o=typeof i=="string"?e.parse(o,i):e.parse(o)),o===null?null:(r&&(o=r==="week"&&(Hn(s)||s===!0)?e.startOf(o,"isoWeek",s):e.startOf(o,r)),+o)}function $d(n,t,e,i){let r=Qt.length;for(let s=Qt.indexOf(n);s<r-1;++s){let o=Go[Qt[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-t)/(a*o.size))<=i)return Qt[s]}return Qt[r-1]}function Dv(n,t,e,i,r){for(let s=Qt.length-1;s>=Qt.indexOf(e);s--){let o=Qt[s];if(Go[o].common&&n._adapter.diff(r,i,o)>=t-1)return o}return Qt[e?Qt.indexOf(e):0]}function Sv(n){for(let t=Qt.indexOf(n)+1,e=Qt.length;t<e;++t)if(Go[Qt[t]].common)return Qt[t]}function Ud(n,t,e){if(!e)n[t]=!0;else if(e.length){let{lo:i,hi:r}=ko(e,t),s=e[i]>=t?e[i]:e[r];n[s]=!0}}function Ev(n,t,e,i){let r=n._adapter,s=+r.startOf(t[0].value,i),o=t[t.length-1].value,a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}function qd(n,t,e){let i=[],r={},s=t.length,o,a;for(o=0;o<s;++o)a=t[o],r[a]=o,i.push({value:a,major:!1});return s===0||!e?i:Ev(n,i,r,e)}var Un=class extends tn{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),r=this._adapter=new Wc._date(t.adapters.date);r.init(e),Ti(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:jd(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:r,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(r=Math.min(r,c.min)),!a&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),r=yt(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),s=yt(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let s=this.min,o=this.max,a=Sf(r,s,o);return this._unit=e.unit||(i.autoSkip?$d(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):Dv(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:Sv(this._unit),this.initOffsets(r),t.reverse&&a.reverse(),qd(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,i=0,r,s;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?e=1-r:e=(this.getDecimalForValue(t[1])-r)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?i=s:i=(s-this.getDecimalForValue(t[t.length-2]))/2);let o=t.length<3?.5:.25;e=Et(e,0,o),i=Et(i,0,o),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){let t=this._adapter,e=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||$d(s.minUnit,e,i,this._getLabelCapacity(e)),a=$(r.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Hn(l)||l===!0,u={},f=e,d,h;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);let m=r.ticks.source==="data"&&this.getDataTimestamps();for(d=f,h=0;d<i;d=+t.add(d,a,o),h++)Ud(u,d,m);return(d===i||r.bounds==="ticks"||h===1)&&Ud(u,d,m),Object.keys(u).sort(Yd).map(p=>+p)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){let r=this.options.time.displayFormats,s=this._unit,o=e||r[s];return this._adapter.format(t,o)}_tickFormatFunction(t,e,i,r){let s=this.options,o=s.ticks.callback;if(o)return ut(o,[t,e,i],this);let a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],f=c&&a[c],d=i[e],h=c&&f&&d&&d.major;return this._adapter.format(t,r||(h?f:u))}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){let e=this.options.ticks,i=this.ctx.measureText(t).width,r=le(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*s+a*o,h:i*o+a*s}}_getLabelCapacity(t){let e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,qd(this,[t],this._majorUnit),r),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,i=r.length;e<i;++e)t=t.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],e,i;if(t.length)return t;let r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push(jd(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Xl(t.sort(Yd))}};v(Un,"id","time"),v(Un,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function zo(n,t,e){let i=0,r=n.length-1,s,o,a,l;e?(t>=n[i].pos&&t<=n[r].pos&&({lo:i,hi:r}=Le(n,"pos",t)),{pos:s,time:a}=n[i],{pos:o,time:l}=n[r]):(t>=n[i].time&&t<=n[r].time&&({lo:i,hi:r}=Le(n,"time",t)),{time:s,pos:a}=n[i],{time:o,pos:l}=n[r]);let c=o-s;return c?a+(l-a)*(t-s)/c:a}var Xr=class extends Un{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=zo(e,this.min),this._tableRange=zo(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:e,max:i}=this,r=[],s=[],o,a,l,c,u;for(o=0,a=t.length;o<a;++o)c=t[o],c>=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],l=r[o-1],c=r[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_generate(){let t=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((r,s)=>r-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(zo(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return zo(this._table,i*this._tableRange+this._minPos,!0)}};v(Xr,"id","timeseries"),v(Xr,"defaults",Un.defaults);var Pv=Object.freeze({__proto__:null,CategoryScale:Ur,LinearScale:qr,LogarithmicScale:Zr,RadialLinearScale:jn,TimeScale:Un,TimeSeriesScale:Xr}),mh=[Bx,d0,av,Pv];Gt.register(...mh);var Cv=Math.pow(10,8)*24*60*60*1e3,aT=-Cv,Qo=6048e5,ph=864e5,en=6e4,nn=36e5,gh=1e3;var Iv=3600;var yh=Iv*24,lT=yh*7,Av=yh*365.2425,Lv=Av/12,cT=Lv*3,Vc=Symbol.for("constructDateFrom");function q(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Vc in n?n[Vc](t):n instanceof Date?new n.constructor(t):new Date(t)}function S(n,t){return q(t||n,n)}function Mn(n,t,e){let i=S(n,e==null?void 0:e.in);return isNaN(t)?q((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function Bi(n,t,e){let i=S(n,e==null?void 0:e.in);if(isNaN(t))return q((e==null?void 0:e.in)||n,NaN);if(!t)return i;let r=i.getDate(),s=q((e==null?void 0:e.in)||n,i.getTime());s.setMonth(i.getMonth()+t+1,0);let o=s.getDate();return r>=o?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}function Yi(n,t,e){return q((e==null?void 0:e.in)||n,+S(n)+t)}function xh(n,t,e){return Yi(n,t*nn,e)}var Fv={};function Kt(){return Fv}function zt(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.weekStartsOn)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)!=null?u:e.weekStartsOn)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:0,r=S(n,t==null?void 0:t.in),s=r.getDay(),o=(s<i?7:0)+s-i;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ve(n,t){return zt(n,ct(L({},t),{weekStartsOn:1}))}function Ko(n,t){let e=S(n,t==null?void 0:t.in),i=e.getFullYear(),r=q(e,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);let s=ve(r),o=q(e,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);let a=ve(o);return e.getTime()>=s.getTime()?i+1:e.getTime()>=a.getTime()?i:i-1}function qn(n){let t=S(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Jt(n,...t){let e=q.bind(null,n||t.find(i=>typeof i=="object"));return t.map(e)}function ns(n,t){let e=S(n,t==null?void 0:t.in);return e.setHours(0,0,0,0),e}function Jo(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=ns(i),o=ns(r),a=+s-qn(s),l=+o-qn(o);return Math.round((a-l)/ph)}function bh(n,t){let e=Ko(n,t),i=q((t==null?void 0:t.in)||n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),ve(i)}function vh(n,t,e){let i=S(n,e==null?void 0:e.in);return i.setTime(i.getTime()+t*en),i}function wh(n,t,e){return Bi(n,t*3,e)}function _h(n,t,e){return Yi(n,t*1e3,e)}function Oh(n,t,e){return Mn(n,t*7,e)}function Mh(n,t,e){return Bi(n,t*12,e)}function Zn(n,t){let e=+S(n)-+S(t);return e<0?-1:e>0?1:e}function Th(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function ta(n){return!(!Th(n)&&typeof n!="number"||isNaN(+S(n)))}function kh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=i.getFullYear()-r.getFullYear(),o=i.getMonth()-r.getMonth();return s*12+o}function Dh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t);return i.getFullYear()-r.getFullYear()}function ea(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=Sh(i,r),o=Math.abs(Jo(i,r));i.setDate(i.getDate()-s*o);let a=+(Sh(i,r)===-s),l=s*(o-a);return l===0?0:l}function Sh(n,t){let e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function ze(n){return t=>{let i=(n?Math[n]:Math.trunc)(t);return i===0?0:i}}function Eh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=(+i-+r)/nn;return ze(e==null?void 0:e.roundingMethod)(s)}function ji(n,t){return+S(n)-+S(t)}function Ph(n,t,e){let i=ji(n,t)/en;return ze(e==null?void 0:e.roundingMethod)(i)}function na(n,t){let e=S(n,t==null?void 0:t.in);return e.setHours(23,59,59,999),e}function ia(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth();return e.setFullYear(e.getFullYear(),i+1,0),e.setHours(23,59,59,999),e}function Ch(n,t){let e=S(n,t==null?void 0:t.in);return+na(e,t)==+ia(e,t)}function ra(n,t,e){let[i,r,s]=Jt(e==null?void 0:e.in,n,n,t),o=Zn(r,s),a=Math.abs(kh(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);let l=Zn(r,s)===-o;Ch(i)&&a===1&&Zn(i,s)===1&&(l=!1);let c=o*(a-+l);return c===0?0:c}function Ih(n,t,e){let i=ra(n,t,e)/3;return ze(e==null?void 0:e.roundingMethod)(i)}function Ah(n,t,e){let i=ji(n,t)/1e3;return ze(e==null?void 0:e.roundingMethod)(i)}function Lh(n,t,e){let i=ea(n,t,e)/7;return ze(e==null?void 0:e.roundingMethod)(i)}function Fh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=Zn(i,r),o=Math.abs(Dh(i,r));i.setFullYear(1584),r.setFullYear(1584);let a=Zn(i,r)===-s,l=s*(o-+a);return l===0?0:l}function Nh(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth(),r=i-i%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function Rh(n,t){let e=S(n,t==null?void 0:t.in);return e.setDate(1),e.setHours(0,0,0,0),e}function Wh(n,t){let e=S(n,t==null?void 0:t.in),i=e.getFullYear();return e.setFullYear(i+1,0,0),e.setHours(23,59,59,999),e}function sa(n,t){let e=S(n,t==null?void 0:t.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function Hh(n,t){let e=S(n,t==null?void 0:t.in);return e.setMinutes(59,59,999),e}function Vh(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.weekStartsOn)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)!=null?u:e.weekStartsOn)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:0,r=S(n,t==null?void 0:t.in),s=r.getDay(),o=(s<i?-7:0)+6-(s-i);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function zh(n,t){let e=S(n,t==null?void 0:t.in);return e.setSeconds(59,999),e}function Bh(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth(),r=i-i%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}function Yh(n,t){let e=S(n,t==null?void 0:t.in);return e.setMilliseconds(999),e}var Nv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jh=(n,t,e)=>{let i,r=Nv[n];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function oa(n){return(t={})=>{let e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}var Rv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Hv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$h={date:oa({formats:Rv,defaultWidth:"full"}),time:oa({formats:Wv,defaultWidth:"full"}),dateTime:oa({formats:Hv,defaultWidth:"full"})};var Vv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uh=(n,t,e,i)=>Vv[n];function $i(n){return(t,e)=>{let i=e!=null&&e.context?String(e.context):"standalone",r;if(i==="formatting"&&n.formattingValues){let o=n.defaultFormattingWidth||n.defaultWidth,a=e!=null&&e.width?String(e.width):o;r=n.formattingValues[a]||n.formattingValues[o]}else{let o=n.defaultWidth,a=e!=null&&e.width?String(e.width):n.defaultWidth;r=n.values[a]||n.values[o]}let s=n.argumentCallback?n.argumentCallback(t):t;return r[s]}}var zv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$v={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Uv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qv=(n,t)=>{let e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},qh={ordinalNumber:qv,era:$i({values:zv,defaultWidth:"wide"}),quarter:$i({values:Bv,defaultWidth:"wide",argumentCallback:n=>n-1}),month:$i({values:Yv,defaultWidth:"wide"}),day:$i({values:jv,defaultWidth:"wide"}),dayPeriod:$i({values:$v,defaultWidth:"wide",formattingValues:Uv,defaultFormattingWidth:"wide"})};function Ui(n){return(t,e={})=>{let i=e.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],s=t.match(r);if(!s)return null;let o=s[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Xv(a,f=>f.test(o)):Zv(a,f=>f.test(o)),c;c=n.valueCallback?n.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let u=t.slice(o.length);return{value:c,rest:u}}}function Zv(n,t){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Xv(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Zh(n){return(t,e={})=>{let i=t.match(n.matchPattern);if(!i)return null;let r=i[0],s=t.match(n.parsePattern);if(!s)return null;let o=n.valueCallback?n.valueCallback(s[0]):s[0];o=e.valueCallback?e.valueCallback(o):o;let a=t.slice(r.length);return{value:o,rest:a}}}var Gv=/^(\d+)(th|st|nd|rd)?/i,Qv=/\d+/i,Kv={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Jv={any:[/^b/i,/^(a|c)/i]},tw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ew={any:[/1/i,/2/i,/3/i,/4/i]},nw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iw={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ow={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},aw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xh={ordinalNumber:Zh({matchPattern:Gv,parsePattern:Qv,valueCallback:n=>parseInt(n,10)}),era:Ui({matchPatterns:Kv,defaultMatchWidth:"wide",parsePatterns:Jv,defaultParseWidth:"any"}),quarter:Ui({matchPatterns:tw,defaultMatchWidth:"wide",parsePatterns:ew,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ui({matchPatterns:nw,defaultMatchWidth:"wide",parsePatterns:iw,defaultParseWidth:"any"}),day:Ui({matchPatterns:rw,defaultMatchWidth:"wide",parsePatterns:sw,defaultParseWidth:"any"}),dayPeriod:Ui({matchPatterns:ow,defaultMatchWidth:"any",parsePatterns:aw,defaultParseWidth:"any"})};var is={code:"en-US",formatDistance:jh,formatLong:$h,formatRelative:Uh,localize:qh,match:Xh,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Gh(n,t){let e=S(n,t==null?void 0:t.in);return Jo(e,sa(e))+1}function aa(n,t){let e=S(n,t==null?void 0:t.in),i=+ve(e)-+bh(e);return Math.round(i/Qo)+1}function qi(n,t){var u,f,d,h,m,p,y,x;let e=S(n,t==null?void 0:t.in),i=e.getFullYear(),r=Kt(),s=(x=(y=(h=(d=t==null?void 0:t.firstWeekContainsDate)!=null?d:(f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)!=null?h:r.firstWeekContainsDate)!=null?y:(p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)!=null?x:1,o=q((t==null?void 0:t.in)||n,0);o.setFullYear(i+1,0,s),o.setHours(0,0,0,0);let a=zt(o,t),l=q((t==null?void 0:t.in)||n,0);l.setFullYear(i,0,s),l.setHours(0,0,0,0);let c=zt(l,t);return+e>=+a?i+1:+e>=+c?i:i-1}function Qh(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.firstWeekContainsDate)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)!=null?u:e.firstWeekContainsDate)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)!=null?m:1,r=qi(n,t),s=q((t==null?void 0:t.in)||n,0);return s.setFullYear(r,0,i),s.setHours(0,0,0,0),zt(s,t)}function la(n,t){let e=S(n,t==null?void 0:t.in),i=+zt(e,t)-+Qh(e,t);return Math.round(i/Qo)+1}function rt(n,t){let e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}var rn={y(n,t){let e=n.getFullYear(),i=e>0?e:1-e;return rt(t==="yy"?i%100:i,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):rt(e+1,2)},d(n,t){return rt(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return rt(n.getHours()%12||12,t.length)},H(n,t){return rt(n.getHours(),t.length)},m(n,t){return rt(n.getMinutes(),t.length)},s(n,t){return rt(n.getSeconds(),t.length)},S(n,t){let e=t.length,i=n.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return rt(r,t.length)}};var Zi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zc={G:function(n,t,e){let i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let i=n.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return rn.y(n,t)},Y:function(n,t,e,i){let r=qi(n,i),s=r>0?r:1-r;if(t==="YY"){let o=s%100;return rt(o,2)}return t==="Yo"?e.ordinalNumber(s,{unit:"year"}):rt(s,t.length)},R:function(n,t){let e=Ko(n);return rt(e,t.length)},u:function(n,t){let e=n.getFullYear();return rt(e,t.length)},Q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return rt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return rt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){let i=n.getMonth();switch(t){case"M":case"MM":return rn.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){let i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return rt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){let r=la(n,i);return t==="wo"?e.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},I:function(n,t,e){let i=aa(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):rn.d(n,t)},D:function(n,t,e){let i=Gh(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):rt(i,t.length)},E:function(n,t,e){let i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){let r=n.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return rt(s,2);case"eo":return e.ordinalNumber(s,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){let r=n.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return rt(s,t.length);case"co":return e.ordinalNumber(s,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(n,t,e){let i=n.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return rt(r,t.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){let r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){let i=n.getHours(),r;switch(i===12?r=Zi.noon:i===0?r=Zi.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(n,t,e){let i=n.getHours(),r;switch(i>=17?r=Zi.evening:i>=12?r=Zi.afternoon:i>=4?r=Zi.morning:r=Zi.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return rn.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):rn.H(n,t)},K:function(n,t,e){let i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):rt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):rt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):rn.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):rn.s(n,t)},S:function(n,t){return rn.S(n,t)},X:function(n,t,e){let i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return Jh(i);case"XXXX":case"XX":return Xn(i);case"XXXXX":case"XXX":default:return Xn(i,":")}},x:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"x":return Jh(i);case"xxxx":case"xx":return Xn(i);case"xxxxx":case"xxx":default:return Xn(i,":")}},O:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Kh(i,":");case"OOOO":default:return"GMT"+Xn(i,":")}},z:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Kh(i,":");case"zzzz":default:return"GMT"+Xn(i,":")}},t:function(n,t,e){let i=Math.trunc(+n/1e3);return rt(i,t.length)},T:function(n,t,e){return rt(+n,t.length)}};function Kh(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=Math.trunc(i/60),s=i%60;return s===0?e+String(r):e+String(r)+t+rt(s,2)}function Jh(n,t){return n%60===0?(n>0?"-":"+")+rt(Math.abs(n)/60,2):Xn(n,t)}function Xn(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=rt(Math.trunc(i/60),2),s=rt(i%60,2);return e+r+t+s}var tm=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},em=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},lw=(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return tm(n,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",tm(i,t)).replace("{{time}}",em(r,t))},rs={p:em,P:lw};var cw=/^D+$/,uw=/^Y+$/,fw=["D","DD","YY","YYYY"];function ca(n){return cw.test(n)}function ua(n){return uw.test(n)}function ss(n,t,e){let i=dw(n,t,e);if(console.warn(i),fw.includes(n))throw new RangeError(i)}function dw(n,t,e){let i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var hw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pw=/^'([^]*?)'?$/,gw=/''/g,yw=/[a-zA-Z]/;function nm(n,t,e){var u,f,d,h,m,p,y,x,b,O,g,w,_,T,k,D,E,I;let i=Kt(),r=(f=(u=e==null?void 0:e.locale)!=null?u:i.locale)!=null?f:is,s=(O=(b=(p=(m=e==null?void 0:e.firstWeekContainsDate)!=null?m:(h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)!=null?p:i.firstWeekContainsDate)!=null?b:(x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)!=null?O:1,o=(I=(E=(T=(_=e==null?void 0:e.weekStartsOn)!=null?_:(w=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:w.weekStartsOn)!=null?T:i.weekStartsOn)!=null?E:(D=(k=i.locale)==null?void 0:k.options)==null?void 0:D.weekStartsOn)!=null?I:0,a=S(n,e==null?void 0:e.in);if(!ta(a))throw new RangeError("Invalid time value");let l=t.match(mw).map(P=>{let N=P[0];if(N==="p"||N==="P"){let G=rs[N];return G(P,r.formatLong)}return P}).join("").match(hw).map(P=>{if(P==="''")return{isToken:!1,value:"'"};let N=P[0];if(N==="'")return{isToken:!1,value:xw(P)};if(zc[N])return{isToken:!0,value:P};if(N.match(yw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return{isToken:!1,value:P}});r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));let c={firstWeekContainsDate:s,weekStartsOn:o,locale:r};return l.map(P=>{if(!P.isToken)return P.value;let N=P.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&ua(N)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&ca(N))&&ss(N,t,String(n));let G=zc[N[0]];return G(a,N,r.localize,c)}).join("")}function xw(n){let t=n.match(pw);return t?t[1].replace(gw,"'"):n}function im(){return Object.assign({},Kt())}function rm(n,t){let e=S(n,t==null?void 0:t.in).getDay();return e===0?7:e}function sm(n,t){let e=bw(t)?new t(0):q(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function bw(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}var vw=10,fa=class{constructor(){v(this,"subPriority",0)}validate(t,e){return!0}},da=class extends fa{constructor(t,e,i,r,s){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=r,s&&(this.subPriority=s)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},ha=class extends fa{constructor(e,i){super();v(this,"priority",vw);v(this,"subPriority",-1);this.context=e||(r=>q(i,r))}set(e,i){return i.timestampIsSet?e:q(e,sm(e,this.context))}};var F=class{run(t,e,i,r){let s=this.parse(t,e,i,r);return s?{setter:new da(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(t,e,i){return!0}};var ma=class extends F{constructor(){super(...arguments);v(this,"priority",140);v(this,"incompatibleTokens",["R","u","t","T"])}parse(e,i,r){switch(i){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,i,r){return i.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};var et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ce={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function lt(n,t){return n&&{value:t(n.value),rest:n.rest}}function tt(n,t){let e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function ue(n,t){let e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:i*(r*nn+s*en+o*gh),rest:t.slice(e[0].length)}}function pa(n){return tt(et.anyDigitsSigned,n)}function U(n,t){switch(n){case 1:return tt(et.singleDigit,t);case 2:return tt(et.twoDigits,t);case 3:return tt(et.threeDigits,t);case 4:return tt(et.fourDigits,t);default:return tt(new RegExp("^\\d{1,"+n+"}"),t)}}function Xi(n,t){switch(n){case 1:return tt(et.singleDigitSigned,t);case 2:return tt(et.twoDigitsSigned,t);case 3:return tt(et.threeDigitsSigned,t);case 4:return tt(et.fourDigitsSigned,t);default:return tt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Gi(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ga(n,t){let e=t>0,i=e?t:1-t,r;if(i<=50)r=n||100;else{let s=i+50,o=Math.trunc(s/100)*100,a=n>=s%100;r=n+o-(a?100:0)}return e?r:1-r}function ya(n){return n%400===0||n%4===0&&n%100!==0}var xa=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,i,r){let s=o=>({year:o,isTwoDigitYear:i==="yy"});switch(i){case"y":return lt(U(4,e),s);case"yo":return lt(r.ordinalNumber(e,{unit:"year"}),s);default:return lt(U(i.length,e),s)}}validate(e,i){return i.isTwoDigitYear||i.year>0}set(e,i,r){let s=e.getFullYear();if(r.isTwoDigitYear){let a=ga(r.year,s);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let o=!("era"in i)||i.era===1?r.year:1-r.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}};var ba=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,i,r){let s=o=>({year:o,isTwoDigitYear:i==="YY"});switch(i){case"Y":return lt(U(4,e),s);case"Yo":return lt(r.ordinalNumber(e,{unit:"year"}),s);default:return lt(U(i.length,e),s)}}validate(e,i){return i.isTwoDigitYear||i.year>0}set(e,i,r,s){let o=qi(e,s);if(r.isTwoDigitYear){let l=ga(r.year,o);return e.setFullYear(l,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),zt(e,s)}let a=!("era"in i)||i.era===1?r.year:1-r.year;return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),zt(e,s)}};var va=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,i){return i==="R"?Xi(4,e):Xi(i.length,e)}set(e,i,r){let s=q(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),ve(s)}};var wa=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,i){return i==="u"?Xi(4,e):Xi(i.length,e)}set(e,i,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};var _a=class extends F{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"Q":case"QQ":return U(i.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=1&&i<=4}set(e,i,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};var Oa=class extends F{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"q":case"qq":return U(i.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=1&&i<=4}set(e,i,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};var Ma=class extends F{constructor(){super(...arguments);v(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);v(this,"priority",110)}parse(e,i,r){let s=o=>o-1;switch(i){case"M":return lt(tt(et.month,e),s);case"MM":return lt(U(2,e),s);case"Mo":return lt(r.ordinalNumber(e,{unit:"month"}),s);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};var Ta=class extends F{constructor(){super(...arguments);v(this,"priority",110);v(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,i,r){let s=o=>o-1;switch(i){case"L":return lt(tt(et.month,e),s);case"LL":return lt(U(2,e),s);case"Lo":return lt(r.ordinalNumber(e,{unit:"month"}),s);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};function om(n,t,e){let i=S(n,e==null?void 0:e.in),r=la(i,e)-t;return i.setDate(i.getDate()-r*7),S(i,e==null?void 0:e.in)}var ka=class extends F{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,i,r){switch(i){case"w":return tt(et.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=53}set(e,i,r,s){return zt(om(e,r,s),s)}};function am(n,t,e){let i=S(n,e==null?void 0:e.in),r=aa(i,e)-t;return i.setDate(i.getDate()-r*7),i}var Da=class extends F{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,i,r){switch(i){case"I":return tt(et.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=53}set(e,i,r){return ve(am(e,r))}};var ww=[31,28,31,30,31,30,31,31,30,31,30,31],_w=[31,29,31,30,31,30,31,31,30,31,30,31],Sa=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"subPriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"d":return tt(et.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return U(i.length,e)}}validate(e,i){let r=e.getFullYear(),s=ya(r),o=e.getMonth();return s?i>=1&&i<=_w[o]:i>=1&&i<=ww[o]}set(e,i,r){return e.setDate(r),e.setHours(0,0,0,0),e}};var Ea=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"subpriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,i,r){switch(i){case"D":case"DD":return tt(et.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return U(i.length,e)}}validate(e,i){let r=e.getFullYear();return ya(r)?i>=1&&i<=366:i>=1&&i<=365}set(e,i,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}};function Qi(n,t,e){var f,d,h,m,p,y,x,b;let i=Kt(),r=(b=(x=(m=(h=e==null?void 0:e.weekStartsOn)!=null?h:(d=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:i.weekStartsOn)!=null?x:(y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)!=null?b:0,s=S(n,e==null?void 0:e.in),o=s.getDay(),l=(t%7+7)%7,c=7-r,u=t<0||t>6?t-(o+c)%7:(l+c)%7-(o+c)%7;return Mn(s,u,e)}var Pa=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Qi(e,r,s),e.setHours(0,0,0,0),e}};var Ca=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,i,r,s){let o=a=>{let l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(i){case"e":case"ee":return lt(U(i.length,e),o);case"eo":return lt(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Qi(e,r,s),e.setHours(0,0,0,0),e}};var Ia=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,i,r,s){let o=a=>{let l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(i){case"c":case"cc":return lt(U(i.length,e),o);case"co":return lt(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Qi(e,r,s),e.setHours(0,0,0,0),e}};function lm(n,t,e){let i=S(n,e==null?void 0:e.in),r=rm(i,e),s=t-r;return Mn(i,s,e)}var Aa=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,i,r){let s=o=>o===0?7:o;switch(i){case"i":case"ii":return U(i.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return lt(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return lt(r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return lt(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return lt(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,i){return i>=1&&i<=7}set(e,i,r){return e=lm(e,r),e.setHours(0,0,0,0),e}};var La=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,i,r){switch(i){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Gi(r),0,0,0),e}};var Fa=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,i,r){switch(i){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Gi(r),0,0,0),e}};var Na=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","b","t","T"])}parse(e,i,r){switch(i){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Gi(r),0,0,0),e}};var Ra=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,i,r){switch(i){case"h":return tt(et.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=12}set(e,i,r){let s=e.getHours()>=12;return s&&r<12?e.setHours(r+12,0,0,0):!s&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}};var Wa=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,i,r){switch(i){case"H":return tt(et.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=23}set(e,i,r){return e.setHours(r,0,0,0),e}};var Ha=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,i,r){switch(i){case"K":return tt(et.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}};var Va=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,i,r){switch(i){case"k":return tt(et.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=24}set(e,i,r){let s=r<=24?r%24:r;return e.setHours(s,0,0,0),e}};var za=class extends F{constructor(){super(...arguments);v(this,"priority",60);v(this,"incompatibleTokens",["t","T"])}parse(e,i,r){switch(i){case"m":return tt(et.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=59}set(e,i,r){return e.setMinutes(r,0,0),e}};var Ba=class extends F{constructor(){super(...arguments);v(this,"priority",50);v(this,"incompatibleTokens",["t","T"])}parse(e,i,r){switch(i){case"s":return tt(et.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=59}set(e,i,r){return e.setSeconds(r,0),e}};var Ya=class extends F{constructor(){super(...arguments);v(this,"priority",30);v(this,"incompatibleTokens",["t","T"])}parse(e,i){let r=s=>Math.trunc(s*Math.pow(10,-i.length+3));return lt(U(i.length,e),r)}set(e,i,r){return e.setMilliseconds(r),e}};var ja=class extends F{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","x"])}parse(e,i){switch(i){case"X":return ue(ce.basicOptionalMinutes,e);case"XX":return ue(ce.basic,e);case"XXXX":return ue(ce.basicOptionalSeconds,e);case"XXXXX":return ue(ce.extendedOptionalSeconds,e);case"XXX":default:return ue(ce.extended,e)}}set(e,i,r){return i.timestampIsSet?e:q(e,e.getTime()-qn(e)-r)}};var $a=class extends F{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","X"])}parse(e,i){switch(i){case"x":return ue(ce.basicOptionalMinutes,e);case"xx":return ue(ce.basic,e);case"xxxx":return ue(ce.basicOptionalSeconds,e);case"xxxxx":return ue(ce.extendedOptionalSeconds,e);case"xxx":default:return ue(ce.extended,e)}}set(e,i,r){return i.timestampIsSet?e:q(e,e.getTime()-qn(e)-r)}};var Ua=class extends F{constructor(){super(...arguments);v(this,"priority",40);v(this,"incompatibleTokens","*")}parse(e){return pa(e)}set(e,i,r){return[q(e,r*1e3),{timestampIsSet:!0}]}};var qa=class extends F{constructor(){super(...arguments);v(this,"priority",20);v(this,"incompatibleTokens","*")}parse(e){return pa(e)}set(e,i,r){return[q(e,r),{timestampIsSet:!0}]}};var cm={G:new ma,y:new xa,Y:new ba,R:new va,u:new wa,Q:new _a,q:new Oa,M:new Ma,L:new Ta,w:new ka,I:new Da,d:new Sa,D:new Ea,E:new Pa,e:new Ca,c:new Ia,i:new Aa,a:new La,b:new Fa,B:new Na,h:new Ra,H:new Wa,K:new Ha,k:new Va,m:new za,s:new Ba,S:new Ya,X:new ja,x:new $a,t:new Ua,T:new qa};var Ow=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tw=/^'([^]*?)'?$/,kw=/''/g,Dw=/\S/,Sw=/[a-zA-Z]/;function um(n,t,e,i){var y,x,b,O,g,w,_,T,k,D,E,I,P,N,G,V,B,Y;let r=()=>q((i==null?void 0:i.in)||e,NaN),s=im(),o=(x=(y=i==null?void 0:i.locale)!=null?y:s.locale)!=null?x:is,a=(D=(k=(w=(g=i==null?void 0:i.firstWeekContainsDate)!=null?g:(O=(b=i==null?void 0:i.locale)==null?void 0:b.options)==null?void 0:O.firstWeekContainsDate)!=null?w:s.firstWeekContainsDate)!=null?k:(T=(_=s.locale)==null?void 0:_.options)==null?void 0:T.firstWeekContainsDate)!=null?D:1,l=(Y=(B=(N=(P=i==null?void 0:i.weekStartsOn)!=null?P:(I=(E=i==null?void 0:i.locale)==null?void 0:E.options)==null?void 0:I.weekStartsOn)!=null?N:s.weekStartsOn)!=null?B:(V=(G=s.locale)==null?void 0:G.options)==null?void 0:V.weekStartsOn)!=null?Y:0;if(!t)return n?r():S(e,i==null?void 0:i.in);let c={firstWeekContainsDate:a,weekStartsOn:l,locale:o},u=[new ha(i==null?void 0:i.in,e)],f=t.match(Mw).map(A=>{let W=A[0];if(W in rs){let Q=rs[W];return Q(A,o.formatLong)}return A}).join("").match(Ow),d=[];for(let A of f){!(i!=null&&i.useAdditionalWeekYearTokens)&&ua(A)&&ss(A,t,n),!(i!=null&&i.useAdditionalDayOfYearTokens)&&ca(A)&&ss(A,t,n);let W=A[0],Q=cm[W];if(Q){let{incompatibleTokens:Nt}=Q;if(Array.isArray(Nt)){let Yt=d.find(kt=>Nt.includes(kt.token)||kt.token===W);if(Yt)throw new RangeError(`The format string mustn't contain \`${Yt.fullToken}\` and \`${A}\` at the same time`)}else if(Q.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);d.push({token:W,fullToken:A});let Mt=Q.run(n,A,o.match,c);if(!Mt)return r();u.push(Mt.setter),n=Mt.rest}else{if(W.match(Sw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");if(A==="''"?A="'":W==="'"&&(A=Ew(A)),n.indexOf(A)===0)n=n.slice(A.length);else return r()}}if(n.length>0&&Dw.test(n))return r();let h=u.map(A=>A.priority).sort((A,W)=>W-A).filter((A,W,Q)=>Q.indexOf(A)===W).map(A=>u.filter(W=>W.priority===A).sort((W,Q)=>Q.subPriority-W.subPriority)).map(A=>A[0]),m=S(e,i==null?void 0:i.in);if(isNaN(+m))return r();let p={};for(let A of h){if(!A.validate(m,c))return r();let W=A.set(m,p,c);Array.isArray(W)?(m=W[0],Object.assign(p,W[1])):m=W}return m}function Ew(n){return n.match(Tw)[1].replace(kw,"'")}function fm(n,t){let e=S(n,t==null?void 0:t.in);return e.setMinutes(0,0,0),e}function dm(n,t){let e=S(n,t==null?void 0:t.in);return e.setSeconds(0,0),e}function hm(n,t){let e=S(n,t==null?void 0:t.in);return e.setMilliseconds(0),e}function mm(n,t){var c;let e=()=>q(t==null?void 0:t.in,NaN),i=(c=t==null?void 0:t.additionalDigits)!=null?c:2,r=Aw(n),s;if(r.date){let u=Lw(r.date,i);s=Fw(u.restDateString,u.year)}if(!s||isNaN(+s))return e();let o=+s,a=0,l;if(r.time&&(a=Nw(r.time),isNaN(a)))return e();if(r.timezone){if(l=Rw(r.timezone),isNaN(l))return e()}else{let u=new Date(o+a),f=S(0,t==null?void 0:t.in);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return S(o+a+l,t==null?void 0:t.in)}var Za={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pw=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cw=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Iw=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Aw(n){let t={},e=n.split(Za.dateTimeDelimiter),i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],Za.timeZoneDelimiter.test(t.date)&&(t.date=n.split(Za.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){let r=Za.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function Lw(n,t){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:n.slice((i[1]||i[2]).length)}}function Fw(n,t){if(t===null)return new Date(NaN);let e=n.match(Pw);if(!e)return new Date(NaN);let i=!!e[4],r=os(e[1]),s=os(e[2])-1,o=os(e[3]),a=os(e[4]),l=os(e[5])-1;if(i)return Bw(t,a,l)?Ww(t,a,l):new Date(NaN);{let c=new Date(0);return!Vw(t,s,o)||!zw(t,r)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(r,o)),c)}}function os(n){return n?parseInt(n):1}function Nw(n){let t=n.match(Cw);if(!t)return NaN;let e=Bc(t[1]),i=Bc(t[2]),r=Bc(t[3]);return Yw(e,i,r)?e*nn+i*en+r*1e3:NaN}function Bc(n){return n&&parseFloat(n.replace(",","."))||0}function Rw(n){if(n==="Z")return 0;let t=n.match(Iw);if(!t)return 0;let e=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return jw(i,r)?e*(i*nn+r*en):NaN}function Ww(n,t,e){let i=new Date(0);i.setUTCFullYear(n,0,4);let r=i.getUTCDay()||7,s=(t-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+s),i}var Hw=[31,null,31,30,31,30,31,31,30,31,30,31];function pm(n){return n%400===0||n%4===0&&n%100!==0}function Vw(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(Hw[t]||(pm(n)?29:28))}function zw(n,t){return t>=1&&t<=(pm(n)?366:365)}function Bw(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function Yw(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function jw(n,t){return t>=0&&t<=59}var $w={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Wc._date.override({_id:"date-fns",formats:function(){return $w},parse:function(n,t){if(n===null||typeof n=="undefined")return null;let e=typeof n;return e==="number"||n instanceof Date?n=S(n):e==="string"&&(typeof t=="string"?n=um(n,t,new Date,this.options):n=mm(n,this.options)),ta(n)?n.getTime():null},format:function(n,t){return nm(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return Yi(n,t);case"second":return _h(n,t);case"minute":return vh(n,t);case"hour":return xh(n,t);case"day":return Mn(n,t);case"week":return Oh(n,t);case"month":return Bi(n,t);case"quarter":return wh(n,t);case"year":return Mh(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return ji(n,t);case"second":return Ah(n,t);case"minute":return Ph(n,t);case"hour":return Eh(n,t);case"day":return ea(n,t);case"week":return Lh(n,t);case"month":return ra(n,t);case"quarter":return Ih(n,t);case"year":return Fh(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return hm(n);case"minute":return dm(n);case"hour":return fm(n);case"day":return ns(n);case"week":return zt(n);case"isoWeek":return zt(n,{weekStartsOn:+e});case"month":return Rh(n);case"quarter":return Nh(n);case"year":return sa(n);default:return n}},endOf:function(n,t){switch(t){case"second":return Yh(n);case"minute":return zh(n);case"hour":return Hh(n);case"day":return na(n);case"week":return Vh(n);case"month":return ia(n);case"quarter":return Bh(n);case"year":return Wh(n);default:return n}}});function*Uw(){for(yield 0;;)for(let n=1;n<10;n++){let t=1<<n;for(let e=1;e<=t;e+=2)yield e/t}}function*qw(n=1){let t=Uw(),e=t.next();for(;!e.done;){let i=go(Math.round(e.value*360),.6,.8);for(let r=0;r<n;r++)yield{background:wi({r:i[0],g:i[1],b:i[2],a:192}),border:wi({r:i[0],g:i[1],b:i[2],a:144})};i=go(Math.round(e.value*360),.6,.5);for(let r=0;r<n;r++)yield{background:wi({r:i[0],g:i[1],b:i[2],a:192}),border:wi({r:i[0],g:i[1],b:i[2],a:144})};e=t.next()}}function Yc(n,t,e){return n.backgroundColor=n.backgroundColor||t,n.borderColor=n.borderColor||e,n.backgroundColor===t&&n.borderColor===e}function Xa(n,t,e){let i=n.next().value;return typeof t=="function"?t(Object.assign({colors:i},e)):i}var gm={id:"autocolors",beforeUpdate(n,t,e){let{mode:i="dataset",enabled:r=!0,customize:s,repeat:o}=e;if(!r)return;let a=qw(o);if(e.offset)for(let u=0;u<e.offset;u++)a.next();if(i==="label")return Zw(n,a,s);let l=i==="dataset",c=Xa(a,s,{chart:n,datasetIndex:0,dataIndex:l?void 0:0});for(let u of n.data.datasets)if(l)Yc(u,c.background,c.border)&&(c=Xa(a,s,{chart:n,datasetIndex:u.index}));else{let f=[],d=[];for(let h=0;h<u.data.length;h++)f.push(c.background),d.push(c.border),c=Xa(a,s,{chart:n,datasetIndex:u.index,dataIndex:h});Yc(u,f,d)}}};function Zw(n,t,e){var r;let i={};for(let s of n.data.datasets){let o=(r=s.label)!=null?r:"";i[o]||(i[o]=Xa(t,e,{chart:n,datasetIndex:0,dataIndex:void 0,label:o}));let a=i[o];Yc(s,a.background,a.border)}}Gt.register(gm);var Xw={mounted(){var o,a,l,c,u;let n=JSON.parse(this.el.dataset.chartOptions),t=this.el.dataset.autocolor==="true",e=this.el.dataset.yLabelFormat;(o=n.options).plugins||(o.plugins={}),(a=n.options.plugins).autocolors||(a.autocolors={}),n.options.plugins.autocolors.enabled=t,n.options||(n.options={}),(l=n.options).scales||(l.scales={}),(c=n.options.scales).y||(c.y={}),(u=n.options.scales.y).ticks||(u.ticks={}),n.options.scales.y.ticks.callback=function(f,d,h){return Gw(f,e)};let i=this.el.querySelector("canvas").getContext("2d"),r=new Gt(i,n),s=this.el.dataset.event;console.log(s),s&&window.addEventListener("phx:"+s,f=>{console.log("event received",f.detail),r.data.datasets=f.detail.datasets,r.data.labels=f.detail.labels,r.update()})}};function Gw(n,t){switch(t){case"dollars":return Qw(n);case"percent":return ym(n)+"%";default:return ym(n)}}function Qw(n){return Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumSignificantDigits:3,notation:"compact"}).format(n)}function ym(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var xm=Xw;var sn=class extends Error{},Ga=class extends sn{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Qa=class extends sn{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Ka=class extends sn{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},we=class extends sn{},Ki=class extends sn{constructor(t){super(`Invalid unit ${t}`)}},_t=class extends sn{},_e=class extends sn{constructor(){super("Zone is an abstract class")}};var C="numeric",Oe="short",re="long",Tn={year:C,month:C,day:C},as={year:C,month:Oe,day:C},jc={year:C,month:Oe,day:C,weekday:Oe},ls={year:C,month:re,day:C},cs={year:C,month:re,day:C,weekday:re},us={hour:C,minute:C},fs={hour:C,minute:C,second:C},ds={hour:C,minute:C,second:C,timeZoneName:Oe},hs={hour:C,minute:C,second:C,timeZoneName:re},ms={hour:C,minute:C,hourCycle:"h23"},ps={hour:C,minute:C,second:C,hourCycle:"h23"},gs={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:Oe},ys={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:re},xs={year:C,month:C,day:C,hour:C,minute:C},bs={year:C,month:C,day:C,hour:C,minute:C,second:C},vs={year:C,month:Oe,day:C,hour:C,minute:C},ws={year:C,month:Oe,day:C,hour:C,minute:C,second:C},$c={year:C,month:Oe,day:C,weekday:Oe,hour:C,minute:C},_s={year:C,month:re,day:C,hour:C,minute:C,timeZoneName:Oe},Os={year:C,month:re,day:C,hour:C,minute:C,second:C,timeZoneName:Oe},Ms={year:C,month:re,day:C,weekday:re,hour:C,minute:C,timeZoneName:re},Ts={year:C,month:re,day:C,weekday:re,hour:C,minute:C,second:C,timeZoneName:re};var te=class{get type(){throw new _e}get name(){throw new _e}get ianaName(){return this.name}get isUniversal(){throw new _e}offsetName(t,e){throw new _e}formatOffset(t,e){throw new _e}offset(t){throw new _e}equals(t){throw new _e}get isValid(){throw new _e}};var Uc=null,Be=class extends te{static get instance(){return Uc===null&&(Uc=new Be),Uc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return tl(t,e,i)}formatOffset(t,e){return kn(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}};var nl={};function Kw(n){return nl[n]||(nl[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),nl[n]}var Jw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function t_(n,t){let e=n.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}function e_(n,t){let e=n.formatToParts(t),i=[];for(let r=0;r<e.length;r++){let{type:s,value:o}=e[r],a=Jw[s];s==="era"?i[a]=o:z(a)||(i[a]=parseInt(o,10))}return i}var el={},Pt=class extends te{static create(t){return el[t]||(el[t]=new Pt(t)),el[t]}static resetCache(){el={},nl={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Pt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return tl(t,e,i,this.name)}formatOffset(t,e){return kn(this.offset(t),e)}offset(t){let e=new Date(t);if(isNaN(e))return NaN;let i=Kw(this.name),[r,s,o,a,l,c,u]=i.formatToParts?e_(i,e):t_(i,e);a==="BC"&&(r=-Math.abs(r)+1);let d=Ji({year:r,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0}),h=+e,m=h%1e3;return h-=m>=0?m:1e3+m,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}};var bm={};function n_(n,t={}){let e=JSON.stringify([n,t]),i=bm[e];return i||(i=new Intl.ListFormat(n,t),bm[e]=i),i}var qc={};function Zc(n,t={}){let e=JSON.stringify([n,t]),i=qc[e];return i||(i=new Intl.DateTimeFormat(n,t),qc[e]=i),i}var Xc={};function i_(n,t={}){let e=JSON.stringify([n,t]),i=Xc[e];return i||(i=new Intl.NumberFormat(n,t),Xc[e]=i),i}var Gc={};function r_(n,t={}){let o=t,{base:e}=o,i=Er(o,["base"]),r=JSON.stringify([n,i]),s=Gc[r];return s||(s=new Intl.RelativeTimeFormat(n,t),Gc[r]=s),s}var ks=null;function s_(){return ks||(ks=new Intl.DateTimeFormat().resolvedOptions().locale,ks)}var vm={};function o_(n){let t=vm[n];if(!t){let e=new Intl.Locale(n);t="getWeekInfo"in e?e.getWeekInfo():e.weekInfo,vm[n]=t}return t}function a_(n){let t=n.indexOf("-x-");t!==-1&&(n=n.substring(0,t));let e=n.indexOf("-u-");if(e===-1)return[n];{let i,r;try{i=Zc(n).resolvedOptions(),r=n}catch(a){let l=n.substring(0,e);i=Zc(l).resolvedOptions(),r=l}let{numberingSystem:s,calendar:o}=i;return[r,s,o]}}function l_(n,t,e){return(e||t)&&(n.includes("-u-")||(n+="-u"),e&&(n+=`-ca-${e}`),t&&(n+=`-nu-${t}`)),n}function c_(n){let t=[];for(let e=1;e<=12;e++){let i=H.utc(2009,e,1);t.push(n(i))}return t}function u_(n){let t=[];for(let e=1;e<=7;e++){let i=H.utc(2016,11,13+e);t.push(n(i))}return t}function il(n,t,e,i){let r=n.listingMode();return r==="error"?null:r==="en"?e(t):i(t)}function f_(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}var Qc=class{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;let a=i,{padTo:r,floor:s}=a,o=Er(a,["padTo","floor"]);if(!e||Object.keys(o).length>0){let l=L({useGrouping:!1},i);i.padTo>0&&(l.minimumIntegerDigits=i.padTo),this.inf=i_(t,l)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}else{let e=this.floor?Math.floor(t):tr(t,3);return xt(e,this.padTo)}}},Kc=class{constructor(t,e,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let o=-1*(t.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Pt.create(a).valid?(r=a,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let s=L({},this.opts);s.timeZone=s.timeZone||r,this.dtf=Zc(e,s)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(e=>{if(e.type==="timeZoneName"){let i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ct(L({},e),{value:i})}else return e}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Jc=class{constructor(t,e,i){this.opts=L({style:"long"},i),!e&&rl()&&(this.rtf=r_(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):wm(e,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}},d_={firstDay:1,minimalDays:4,weekend:[6,7]},J=class{static fromOpts(t){return J.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,i,r,s=!1){let o=t||it.defaultLocale,a=o||(s?"en-US":s_()),l=e||it.defaultNumberingSystem,c=i||it.defaultOutputCalendar,u=Ds(r)||it.defaultWeekSettings;return new J(a,l,c,u,o)}static resetCache(){ks=null,qc={},Xc={},Gc={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i,weekSettings:r}={}){return J.create(t,e,i,r)}constructor(t,e,i,r,s){let[o,a,l]=a_(t);this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=i||l||null,this.weekSettings=r,this.intl=l_(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=f_(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),e=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&e?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:J.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ds(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(ct(L({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(ct(L({},t),{defaultToEN:!1}))}months(t,e=!1){return il(this,t,tu,()=>{let i=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=c_(s=>this.extract(s,i,"month"))),this.monthsCache[r][t]})}weekdays(t,e=!1){return il(this,t,eu,()=>{let i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=u_(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return il(this,void 0,()=>nu,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[H.utc(2016,11,13,9),H.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t){return il(this,t,iu,()=>{let e={era:t};return this.eraCache[t]||(this.eraCache[t]=[H.utc(-40,1,1),H.utc(2017,1,1)].map(i=>this.extract(i,e,"era"))),this.eraCache[t]})}extract(t,e,i){let r=this.dtFormatter(t,e),s=r.formatToParts(),o=s.find(a=>a.type.toLowerCase()===i);return o?o.value:null}numberFormatter(t={}){return new Qc(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Kc(t,this.intl,e)}relFormatter(t={}){return new Jc(this.intl,this.isEnglish(),t)}listFormatter(t={}){return n_(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:sl()?o_(this.locale):d_}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var su=null,bt=class extends te{static get utcInstance(){return su===null&&(su=new bt(0)),su}static instance(t){return t===0?bt.utcInstance:new bt(t)}static parseSpecifier(t){if(t){let e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new bt(Gn(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${kn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${kn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return kn(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}};var er=class extends te{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Me(n,t){let e;if(z(n)||n===null)return t;if(n instanceof te)return n;if(_m(n)){let i=n.toLowerCase();return i==="default"?t:i==="local"||i==="system"?Be.instance:i==="utc"||i==="gmt"?bt.utcInstance:bt.parseSpecifier(i)||Pt.create(n)}else return Te(n)?bt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new er(n)}var ou={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Om={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},h_=ou.hanidec.replace(/[\[|\]]/g,"").split("");function Mm(n){let t=parseInt(n,10);if(isNaN(t)){t="";for(let e=0;e<n.length;e++){let i=n.charCodeAt(e);if(n[e].search(ou.hanidec)!==-1)t+=h_.indexOf(n[e]);else for(let r in Om){let[s,o]=Om[r];i>=s&&i<=o&&(t+=i-s)}}return parseInt(t,10)}else return t}var nr={};function Tm(){nr={}}function fe({numberingSystem:n},t=""){let e=n||"latn";return nr[e]||(nr[e]={}),nr[e][t]||(nr[e][t]=new RegExp(`${ou[e]}${t}`)),nr[e][t]}var km=()=>Date.now(),Dm="system",Sm=null,Em=null,Pm=null,Cm=60,Im,Am=null,it=class{static get now(){return km}static set now(t){km=t}static set defaultZone(t){Dm=t}static get defaultZone(){return Me(Dm,Be.instance)}static get defaultLocale(){return Sm}static set defaultLocale(t){Sm=t}static get defaultNumberingSystem(){return Em}static set defaultNumberingSystem(t){Em=t}static get defaultOutputCalendar(){return Pm}static set defaultOutputCalendar(t){Pm=t}static get defaultWeekSettings(){return Am}static set defaultWeekSettings(t){Am=Ds(t)}static get twoDigitCutoffYear(){return Cm}static set twoDigitCutoffYear(t){Cm=t%100}static get throwOnInvalid(){return Im}static set throwOnInvalid(t){Im=t}static resetCaches(){J.resetCache(),Pt.resetCache(),H.resetCache(),Tm()}};var At=class{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Lm=[0,31,59,90,120,151,181,212,243,273,304,334],Fm=[0,31,60,91,121,152,182,213,244,274,305,335];function de(n,t){return new At("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${n}, which is invalid`)}function ol(n,t,e){let i=new Date(Date.UTC(n,t-1,e));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);let r=i.getUTCDay();return r===0?7:r}function Nm(n,t,e){return e+(Kn(n)?Fm:Lm)[t-1]}function Rm(n,t){let e=Kn(n)?Fm:Lm,i=e.findIndex(s=>s<t),r=t-e[i];return{month:i+1,day:r}}function al(n,t){return(n-t+7)%7+1}function Ss(n,t=4,e=1){let{year:i,month:r,day:s}=n,o=Nm(i,r,s),a=al(ol(i,r,s),e),l=Math.floor((o-a+14-t)/7),c;return l<1?(c=i-1,l=Qn(c,t,e)):l>Qn(i,t,e)?(c=i+1,l=1):c=i,L({weekYear:c,weekNumber:l,weekday:a},Ps(n))}function au(n,t=4,e=1){let{weekYear:i,weekNumber:r,weekday:s}=n,o=al(ol(i,1,t),e),a=Dn(i),l=r*7+s-o-7+t,c;l<1?(c=i-1,l+=Dn(c)):l>a?(c=i+1,l-=Dn(i)):c=i;let{month:u,day:f}=Rm(c,l);return L({year:c,month:u,day:f},Ps(n))}function ll(n){let{year:t,month:e,day:i}=n,r=Nm(t,e,i);return L({year:t,ordinal:r},Ps(n))}function lu(n){let{year:t,ordinal:e}=n,{month:i,day:r}=Rm(t,e);return L({year:t,month:i,day:r},Ps(n))}function cu(n,t){if(!z(n.localWeekday)||!z(n.localWeekNumber)||!z(n.localWeekYear)){if(!z(n.weekday)||!z(n.weekNumber)||!z(n.weekYear))throw new we("Cannot mix locale-based week fields with ISO-based week fields");return z(n.localWeekday)||(n.weekday=n.localWeekday),z(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),z(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Wm(n,t=4,e=1){let i=Es(n.weekYear),r=se(n.weekNumber,1,Qn(n.weekYear,t,e)),s=se(n.weekday,1,7);return i?r?s?!1:de("weekday",n.weekday):de("week",n.weekNumber):de("weekYear",n.weekYear)}function Hm(n){let t=Es(n.year),e=se(n.ordinal,1,Dn(n.year));return t?e?!1:de("ordinal",n.ordinal):de("year",n.year)}function uu(n){let t=Es(n.year),e=se(n.month,1,12),i=se(n.day,1,ir(n.year,n.month));return t?e?i?!1:de("day",n.day):de("month",n.month):de("year",n.year)}function fu(n){let{hour:t,minute:e,second:i,millisecond:r}=n,s=se(t,0,23)||t===24&&e===0&&i===0&&r===0,o=se(e,0,59),a=se(i,0,59),l=se(r,0,999);return s?o?a?l?!1:de("millisecond",r):de("second",i):de("minute",e):de("hour",t)}function z(n){return typeof n=="undefined"}function Te(n){return typeof n=="number"}function Es(n){return typeof n=="number"&&n%1===0}function _m(n){return typeof n=="string"}function zm(n){return Object.prototype.toString.call(n)==="[object Date]"}function rl(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function sl(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(n){return!1}}function Bm(n){return Array.isArray(n)?n:[n]}function du(n,t,e){if(n.length!==0)return n.reduce((i,r)=>{let s=[t(r),r];return i&&e(i[0],s[0])===i[0]?i:s},null)[1]}function Ym(n,t){return t.reduce((e,i)=>(e[i]=n[i],e),{})}function Sn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Ds(n){if(n==null)return null;if(typeof n!="object")throw new _t("Week settings must be an object");if(!se(n.firstDay,1,7)||!se(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(t=>!se(t,1,7)))throw new _t("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function se(n,t,e){return Es(n)&&n>=t&&n<=e}function m_(n,t){return n-t*Math.floor(n/t)}function xt(n,t=2){let e=n<0,i;return e?i="-"+(""+-n).padStart(t,"0"):i=(""+n).padStart(t,"0"),i}function on(n){if(!(z(n)||n===null||n===""))return parseInt(n,10)}function En(n){if(!(z(n)||n===null||n===""))return parseFloat(n)}function Cs(n){if(!(z(n)||n===null||n==="")){let t=parseFloat("0."+n)*1e3;return Math.floor(t)}}function tr(n,t,e=!1){let i=10**t;return(e?Math.trunc:Math.round)(n*i)/i}function Kn(n){return n%4===0&&(n%100!==0||n%400===0)}function Dn(n){return Kn(n)?366:365}function ir(n,t){let e=m_(t-1,12)+1,i=n+(t-e)/12;return e===2?Kn(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function Ji(n){let t=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(t=new Date(t),t.setUTCFullYear(n.year,n.month-1,n.day)),+t}function Vm(n,t,e){return-al(ol(n,1,t),e)+t-1}function Qn(n,t=4,e=1){let i=Vm(n,t,e),r=Vm(n+1,t,e);return(Dn(n)-i+r)/7}function Is(n){return n>99?n:n>it.twoDigitCutoffYear?1900+n:2e3+n}function tl(n,t,e,i=null){let r=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);let o=L({timeZoneName:t},s),a=new Intl.DateTimeFormat(e,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Gn(n,t){let e=parseInt(n,10);Number.isNaN(e)&&(e=0);let i=parseInt(t,10)||0,r=e<0||Object.is(e,-0)?-i:i;return e*60+r}function hu(n){let t=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(t))throw new _t(`Invalid unit value ${n}`);return t}function rr(n,t){let e={};for(let i in n)if(Sn(n,i)){let r=n[i];if(r==null)continue;e[t(i)]=hu(r)}return e}function kn(n,t){let e=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),r=n>=0?"+":"-";switch(t){case"short":return`${r}${xt(e,2)}:${xt(i,2)}`;case"narrow":return`${r}${e}${i>0?`:${i}`:""}`;case"techie":return`${r}${xt(e,2)}${xt(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Ps(n){return Ym(n,["hour","minute","second","millisecond"])}var p_=["January","February","March","April","May","June","July","August","September","October","November","December"],mu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g_=["J","F","M","A","M","J","J","A","S","O","N","D"];function tu(n){switch(n){case"narrow":return[...g_];case"short":return[...mu];case"long":return[...p_];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var pu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],gu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],y_=["M","T","W","T","F","S","S"];function eu(n){switch(n){case"narrow":return[...y_];case"short":return[...gu];case"long":return[...pu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var nu=["AM","PM"],x_=["Before Christ","Anno Domini"],b_=["BC","AD"],v_=["B","A"];function iu(n){switch(n){case"narrow":return[...v_];case"short":return[...b_];case"long":return[...x_];default:return null}}function jm(n){return nu[n.hour<12?0:1]}function $m(n,t){return eu(t)[n.weekday-1]}function Um(n,t){return tu(t)[n.month-1]}function qm(n,t){return iu(t)[n.year<0?0:1]}function wm(n,t,e="always",i=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(n)===-1;if(e==="auto"&&s){let f=n==="days";switch(t){case 1:return f?"tomorrow":`next ${r[n][0]}`;case-1:return f?"yesterday":`last ${r[n][0]}`;case 0:return f?"today":`this ${r[n][0]}`;default:}}let o=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=r[n],u=i?l?c[1]:c[2]||c[1]:l?r[n][0]:n;return o?`${a} ${u} ago`:`in ${a} ${u}`}function Zm(n,t){let e="";for(let i of n)i.literal?e+=i.val:e+=t(i.val);return e}var w_={D:Tn,DD:as,DDD:ls,DDDD:cs,t:us,tt:fs,ttt:ds,tttt:hs,T:ms,TT:ps,TTT:gs,TTTT:ys,f:xs,ff:vs,fff:_s,ffff:Ms,F:bs,FF:ws,FFF:Os,FFFF:Ts},vt=class{static create(t,e={}){return new vt(t,e)}static parseFormat(t){let e=null,i="",r=!1,s=[];for(let o=0;o<t.length;o++){let a=t.charAt(o);a==="'"?(i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),e=null,i="",r=!r):r||a===e?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,e=a)}return i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(t){return w_[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,L(L({},this.opts),e)).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,L(L({},this.opts),e))}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return xt(t,e);let i=L({},this.opts);return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){let i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(h,m)=>this.loc.extract(t,h,m),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",a=()=>i?jm(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,m)=>i?Um(t,h):s(m?{month:h}:{month:h,day:"numeric"},"month"),c=(h,m)=>i?$m(t,h):s(m?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{let m=vt.macroTokenToFormatOpts(h);return m?this.formatWithSystemDefault(t,m):h},f=h=>i?qm(t,h):s({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Zm(vt.parseFormat(e),d)}formatDurationFromString(t,e){let i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{let u=i(c);return u?this.num(l.get(u),c.length):c},s=vt.parseFormat(e),o=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=t.shiftTo(...o.map(i).filter(l=>l));return Zm(s,r(a))}};var Gm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function or(...n){let t=n.reduce((e,i)=>e+i.source,"");return RegExp(`^${t}$`)}function ar(...n){return t=>n.reduce(([e,i,r],s)=>{let[o,a,l]=s(t,r);return[L(L({},e),o),a||i,l]},[{},null,1]).slice(0,2)}function lr(n,...t){if(n==null)return[null,null];for(let[e,i]of t){let r=e.exec(n);if(r)return i(r)}return[null,null]}function Qm(...n){return(t,e)=>{let i={},r;for(r=0;r<n.length;r++)i[n[r]]=on(t[e+r]);return[i,null,e+r]}}var Km=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,__=`(?:${Km.source}?(?:\\[(${Gm.source})\\])?)?`,yu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Jm=RegExp(`${yu.source}${__}`),xu=RegExp(`(?:T${Jm.source})?`),O_=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,M_=/(\d{4})-?W(\d\d)(?:-?(\d))?/,T_=/(\d{4})-?(\d{3})/,k_=Qm("weekYear","weekNumber","weekDay"),D_=Qm("year","ordinal"),S_=/(\d{4})-(\d\d)-(\d\d)/,tp=RegExp(`${yu.source} ?(?:${Km.source}|(${Gm.source}))?`),E_=RegExp(`(?: ${tp.source})?`);function sr(n,t,e){let i=n[t];return z(i)?e:on(i)}function P_(n,t){return[{year:sr(n,t),month:sr(n,t+1,1),day:sr(n,t+2,1)},null,t+3]}function cr(n,t){return[{hours:sr(n,t,0),minutes:sr(n,t+1,0),seconds:sr(n,t+2,0),milliseconds:Cs(n[t+3])},null,t+4]}function As(n,t){let e=!n[t]&&!n[t+1],i=Gn(n[t+1],n[t+2]),r=e?null:bt.instance(i);return[{},r,t+3]}function Ls(n,t){let e=n[t]?Pt.create(n[t]):null;return[{},e,t+1]}var C_=RegExp(`^T?${yu.source}$`),I_=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function A_(n){let[t,e,i,r,s,o,a,l,c]=n,u=t[0]==="-",f=l&&l[0]==="-",d=(h,m=!1)=>h!==void 0&&(m||h&&u)?-h:h;return[{years:d(En(e)),months:d(En(i)),weeks:d(En(r)),days:d(En(s)),hours:d(En(o)),minutes:d(En(a)),seconds:d(En(l),l==="-0"),milliseconds:d(Cs(c),f)}]}var L_={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bu(n,t,e,i,r,s,o){let a={year:t.length===2?Is(on(t)):on(t),month:mu.indexOf(e)+1,day:on(i),hour:on(r),minute:on(s)};return o&&(a.second=on(o)),n&&(a.weekday=n.length>3?pu.indexOf(n)+1:gu.indexOf(n)+1),a}var F_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function N_(n){let[,t,e,i,r,s,o,a,l,c,u,f]=n,d=bu(t,r,i,e,s,o,a),h;return l?h=L_[l]:c?h=0:h=Gn(u,f),[d,new bt(h)]}function R_(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var W_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,H_=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,V_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xm(n){let[,t,e,i,r,s,o,a]=n;return[bu(t,r,i,e,s,o,a),bt.utcInstance]}function z_(n){let[,t,e,i,r,s,o,a]=n;return[bu(t,a,e,i,r,s,o),bt.utcInstance]}var B_=or(O_,xu),Y_=or(M_,xu),j_=or(T_,xu),$_=or(Jm),ep=ar(P_,cr,As,Ls),U_=ar(k_,cr,As,Ls),q_=ar(D_,cr,As,Ls),Z_=ar(cr,As,Ls);function np(n){return lr(n,[B_,ep],[Y_,U_],[j_,q_],[$_,Z_])}function ip(n){return lr(R_(n),[F_,N_])}function rp(n){return lr(n,[W_,Xm],[H_,Xm],[V_,z_])}function sp(n){return lr(n,[I_,A_])}var X_=ar(cr);function op(n){return lr(n,[C_,X_])}var G_=or(S_,E_),Q_=or(tp),K_=ar(cr,As,Ls);function ap(n){return lr(n,[G_,ep],[Q_,K_])}var lp="Invalid Duration",up={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},J_=L({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},up),he=146097/400,ur=146097/4800,tO=L({years:{quarters:4,months:12,weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},quarters:{months:3,weeks:he/28,days:he/4,hours:he*24/4,minutes:he*24*60/4,seconds:he*24*60*60/4,milliseconds:he*24*60*60*1e3/4},months:{weeks:ur/7,days:ur,hours:ur*24,minutes:ur*24*60,seconds:ur*24*60*60,milliseconds:ur*24*60*60*1e3}},up),Jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],eO=Jn.slice(0).reverse();function Pn(n,t,e=!1){let i={values:e?t.values:L(L({},n.values),t.values||{}),loc:n.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||n.conversionAccuracy,matrix:t.matrix||n.matrix};return new Z(i)}function fp(n,t){var i;let e=(i=t.milliseconds)!=null?i:0;for(let r of eO.slice(1))t[r]&&(e+=t[r]*n[r].milliseconds);return e}function cp(n,t){let e=fp(n,t)<0?-1:1;Jn.reduceRight((i,r)=>{if(z(t[r]))return i;if(i){let s=t[i]*e,o=n[r][i],a=Math.floor(s/o);t[r]+=a*e,t[i]-=a*o*e}return r},null),Jn.reduce((i,r)=>{if(z(t[r]))return i;if(i){let s=t[i]%1;t[i]-=s,t[r]+=s*n[i][r]}return r},null)}function nO(n){let t={};for(let[e,i]of Object.entries(n))i!==0&&(t[e]=i);return t}var Z=class{constructor(t){let e=t.conversionAccuracy==="longterm"||!1,i=e?tO:J_;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||J.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,e){return Z.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(t==null||typeof t!="object")throw new _t(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Z({values:rr(t,Z.normalizeUnit),loc:J.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Te(t))return Z.fromMillis(t);if(Z.isDuration(t))return t;if(typeof t=="object")return Z.fromObject(t);throw new _t(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){let[i]=sp(t);return i?Z.fromObject(i,e):Z.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){let[i]=op(t);return i?Z.fromObject(i,e):Z.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the Duration is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Ka(i);return new Z({invalid:i})}static normalizeUnit(t){let e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!e)throw new Ki(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){let i=ct(L({},e),{floor:e.round!==!1&&e.floor!==!1});return this.isValid?vt.create(this.loc,i).formatDurationFromString(this,t):lp}toHuman(t={}){if(!this.isValid)return lp;let e=Jn.map(i=>{let r=this.values[i];return z(r)?null:this.loc.numberFormatter(ct(L({style:"unit",unitDisplay:"long"},t),{unit:i.slice(0,-1)})).format(r)}).filter(i=>i);return this.loc.listFormatter(L({type:"conjunction",style:t.listStyle||"narrow"},t)).format(e)}toObject(){return this.isValid?L({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=tr(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let e=this.toMillis();return e<0||e>=864e5?null:(t=ct(L({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{includeOffset:!1}),H.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?fp(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t),i={};for(let r of Jn)(Sn(e.values,r)||Sn(this.values,r))&&(i[r]=e.get(r)+this.get(r));return Pn(this,{values:i},!0)}minus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;let e={};for(let i of Object.keys(this.values))e[i]=hu(t(this.values[i],i));return Pn(this,{values:e},!0)}get(t){return this[Z.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let e=L(L({},this.values),rr(t,Z.normalizeUnit));return Pn(this,{values:e})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i,matrix:r}={}){let o={loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:i};return Pn(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return cp(this.matrix,t),Pn(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=nO(this.normalize().shiftToAll().toObject());return Pn(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>Z.normalizeUnit(o));let e={},i={},r=this.toObject(),s;for(let o of Jn)if(t.indexOf(o)>=0){s=o;let a=0;for(let c in i)a+=this.matrix[c][o]*i[c],i[c]=0;Te(r[o])&&(a+=r[o]);let l=Math.trunc(a);e[o]=l,i[o]=(a*1e3-l*1e3)/1e3}else Te(r[o])&&(i[o]=r[o]);for(let o in i)i[o]!==0&&(e[s]+=o===s?i[o]:i[o]/this.matrix[s][o]);return cp(this.matrix,e),Pn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let e of Object.keys(this.values))t[e]=this.values[e]===0?0:-this.values[e];return Pn(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function e(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(let i of Jn)if(!e(this.values[i],t.values[i]))return!1;return!0}};var fr="Invalid Interval";function iO(n,t){return!n||!n.isValid?ft.invalid("missing or invalid start"):!t||!t.isValid?ft.invalid("missing or invalid end"):t<n?ft.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${t.toISO()}`):null}var ft=class{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the Interval is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Qa(i);return new ft({invalid:i})}static fromDateTimes(t,e){let i=dr(t),r=dr(e),s=iO(i,r);return s==null?new ft({start:i,end:r}):s}static after(t,e){let i=Z.fromDurationLike(e),r=dr(t);return ft.fromDateTimes(r,r.plus(i))}static before(t,e){let i=Z.fromDurationLike(e),r=dr(t);return ft.fromDateTimes(r.minus(i),r)}static fromISO(t,e){let[i,r]=(t||"").split("/",2);if(i&&r){let s,o;try{s=H.fromISO(i,e),o=s.isValid}catch(c){o=!1}let a,l;try{a=H.fromISO(r,e),l=a.isValid}catch(c){l=!1}if(o&&l)return ft.fromDateTimes(s,a);if(o){let c=Z.fromISO(r,e);if(c.isValid)return ft.after(s,c)}else if(l){let c=Z.fromISO(i,e);if(c.isValid)return ft.before(a,c)}}return ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;let i=this.start.startOf(t,e),r;return e!=null&&e.useLocaleWeeks?r=this.end.reconfigure({locale:i.locale}):r=this.end,r=r.startOf(t,e),Math.floor(r.diff(i,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:e}={}){return this.isValid?ft.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];let e=t.map(dr).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),i=[],{s:r}=this,s=0;for(;r<this.e;){let o=e[s]||this.e,a=+o>+this.e?this.e:o;i.push(ft.fromDateTimes(r,a)),r=a,s+=1}return i}splitBy(t){let e=Z.fromDurationLike(t);if(!this.isValid||!e.isValid||e.as("milliseconds")===0)return[];let{s:i}=this,r=1,s,o=[];for(;i<this.e;){let a=this.start.plus(e.mapUnits(l=>l*r));s=+a>+this.e?this.e:a,o.push(ft.fromDateTimes(i,s)),i=s,r+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:ft.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;let e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return ft.fromDateTimes(e,i)}static merge(t){let[e,i]=t.sort((r,s)=>r.s-s.s).reduce(([r,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[r,s.union(o)]:[r.concat([s]),o]:[r,o],[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0,r=[],s=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(let l of a)i+=l.type==="s"?1:-1,i===1?e=l.time:(e&&+e!=+l.time&&r.push(ft.fromDateTimes(e,l.time)),e=null);return ft.merge(r)}difference(...t){return ft.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:fr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Tn,e={}){return this.isValid?vt.create(this.s.loc.clone(e),t).formatInterval(this):fr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:fr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:fr}toFormat(t,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:fr}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Z.invalid(this.invalidReason)}mapEndpoints(t){return ft.fromDateTimes(t(this.s),t(this.e))}};var an=class{static hasDST(t=it.defaultZone){let e=H.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Pt.isValidZone(t)}static normalizeZone(t){return Me(t,it.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||J.create(e,i,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||J.create(e,i,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||J.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||J.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return J.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return J.create(e,null,"gregory").eras(t)}static features(){return{relative:rl(),localeWeek:sl()}}};function dp(n,t){let e=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=e(t)-e(n);return Math.floor(Z.fromMillis(i).as("days"))}function rO(n,t,e){let i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let u=dp(l,c);return(u-u%7)/7}],["days",dp]],r={},s=n,o,a;for(let[l,c]of i)e.indexOf(l)>=0&&(o=l,r[l]=c(n,t),a=s.plus(r),a>t?(r[l]--,n=s.plus(r),n>t&&(a=n,r[l]--,n=s.plus(r))):n=a);return[n,r,a,o]}function hp(n,t,e,i){let[r,s,o,a]=rO(n,t,e),l=t-r,c=e.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));let u=Z.fromObject(s,i);return c.length>0?Z.fromMillis(l,i).shiftTo(...c).plus(u):u}var sO="missing Intl.DateTimeFormat.formatToParts support";function st(n,t=e=>e){return{regex:n,deser:([e])=>t(Mm(e))}}var oO=String.fromCharCode(160),gp=`[ ${oO}]`,yp=new RegExp(gp,"g");function aO(n){return n.replace(/\./g,"\\.?").replace(yp,gp)}function mp(n){return n.replace(/\./g,"").replace(yp," ").toLowerCase()}function ke(n,t){return n===null?null:{regex:RegExp(n.map(aO).join("|")),deser:([e])=>n.findIndex(i=>mp(e)===mp(i))+t}}function pp(n,t){return{regex:n,deser:([,e,i])=>Gn(e,i),groups:t}}function cl(n){return{regex:n,deser:([t])=>t}}function lO(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function cO(n,t){let e=fe(t),i=fe(t,"{2}"),r=fe(t,"{3}"),s=fe(t,"{4}"),o=fe(t,"{6}"),a=fe(t,"{1,2}"),l=fe(t,"{1,3}"),c=fe(t,"{1,6}"),u=fe(t,"{1,9}"),f=fe(t,"{2,4}"),d=fe(t,"{4,6}"),h=y=>({regex:RegExp(lO(y.val)),deser:([x])=>x,literal:!0}),p=(y=>{if(n.literal)return h(y);switch(y.val){case"G":return ke(t.eras("short"),0);case"GG":return ke(t.eras("long"),0);case"y":return st(c);case"yy":return st(f,Is);case"yyyy":return st(s);case"yyyyy":return st(d);case"yyyyyy":return st(o);case"M":return st(a);case"MM":return st(i);case"MMM":return ke(t.months("short",!0),1);case"MMMM":return ke(t.months("long",!0),1);case"L":return st(a);case"LL":return st(i);case"LLL":return ke(t.months("short",!1),1);case"LLLL":return ke(t.months("long",!1),1);case"d":return st(a);case"dd":return st(i);case"o":return st(l);case"ooo":return st(r);case"HH":return st(i);case"H":return st(a);case"hh":return st(i);case"h":return st(a);case"mm":return st(i);case"m":return st(a);case"q":return st(a);case"qq":return st(i);case"s":return st(a);case"ss":return st(i);case"S":return st(l);case"SSS":return st(r);case"u":return cl(u);case"uu":return cl(a);case"uuu":return st(e);case"a":return ke(t.meridiems(),0);case"kkkk":return st(s);case"kk":return st(f,Is);case"W":return st(a);case"WW":return st(i);case"E":case"c":return st(e);case"EEE":return ke(t.weekdays("short",!1),1);case"EEEE":return ke(t.weekdays("long",!1),1);case"ccc":return ke(t.weekdays("short",!0),1);case"cccc":return ke(t.weekdays("long",!0),1);case"Z":case"ZZ":return pp(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return pp(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return cl(/[a-z_+-/]{1,256}?/i);case" ":return cl(/[^\S\n\r]/);default:return h(y)}})(n)||{invalidReason:sO};return p.token=n,p}var uO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function fO(n,t,e){let{type:i,value:r}=n;if(i==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let s=t[i],o=i;i==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=e.hour12?"hour12":"hour24");let a=uO[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function dO(n){return[`^${n.map(e=>e.regex).reduce((e,i)=>`${e}(${i.source})`,"")}$`,n]}function hO(n,t,e){let i=n.match(t);if(i){let r={},s=1;for(let o in e)if(Sn(e,o)){let a=e[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(s,s+l))),s+=l}return[i,r]}else return[i,{}]}function mO(n){let t=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},e=null,i;return z(n.z)||(e=Pt.create(n.z)),z(n.Z)||(e||(e=new bt(n.Z)),i=n.Z),z(n.q)||(n.M=(n.q-1)*3+1),z(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),z(n.u)||(n.S=Cs(n.u)),[Object.keys(n).reduce((s,o)=>{let a=t(o);return a&&(s[a]=n[o]),s},{}),e,i]}var vu=null;function pO(){return vu||(vu=H.fromMillis(1555555555555)),vu}function gO(n,t){if(n.literal)return n;let e=vt.macroTokenToFormatOpts(n.val),i=Ou(e,t);return i==null||i.includes(void 0)?n:i}function wu(n,t){return Array.prototype.concat(...n.map(e=>gO(e,t)))}var Fs=class{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=wu(vt.parseFormat(e),t),this.units=this.tokens.map(i=>cO(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){let[i,r]=dO(this.units);this.regex=RegExp(i,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[e,i]=hO(t,this.regex,this.handlers),[r,s,o]=i?mO(i):[null,null,void 0];if(Sn(i,"a")&&Sn(i,"H"))throw new we("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:i,result:r,zone:s,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _u(n,t,e){return new Fs(n,e).explainFromTokens(t)}function xp(n,t,e){let{result:i,zone:r,specificOffset:s,invalidReason:o}=_u(n,t,e);return[i,r,s,o]}function Ou(n,t){if(!n)return null;let i=vt.create(t,n).dtFormatter(pO()),r=i.formatToParts(),s=i.resolvedOptions();return r.map(o=>fO(o,n,s))}var Mu="Invalid DateTime",bp=864e13;function Ns(n){return new At("unsupported zone",`the zone "${n.name}" is not supported`)}function Tu(n){return n.weekData===null&&(n.weekData=Ss(n.c)),n.weekData}function ku(n){return n.localWeekData===null&&(n.localWeekData=Ss(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function ti(n,t){let e={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new H(ct(L(L({},e),t),{old:e}))}function kp(n,t,e){let i=n-t*60*1e3,r=e.offset(i);if(t===r)return[i,t];i-=(r-t)*60*1e3;let s=e.offset(i);return r===s?[i,r]:[n-Math.min(r,s)*60*1e3,Math.max(r,s)]}function ul(n,t){n+=t*60*1e3;let e=new Date(n);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function dl(n,t,e){return kp(Ji(n),t,e)}function vp(n,t){let e=n.o,i=n.c.year+Math.trunc(t.years),r=n.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,s=ct(L({},n.c),{year:i,month:r,day:Math.min(n.c.day,ir(i,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=Z.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Ji(s),[l,c]=kp(a,e,n.zone);return o!==0&&(l+=o,c=n.zone.offset(l)),{ts:l,o:c}}function hr(n,t,e,i,r,s){let{setZone:o,zone:a}=e;if(n&&Object.keys(n).length!==0||t){let l=t||a,c=H.fromObject(n,ct(L({},e),{zone:l,specificOffset:s}));return o?c:c.setZone(a)}else return H.invalid(new At("unparsable",`the input "${r}" can't be parsed as ${i}`))}function fl(n,t,e=!0){return n.isValid?vt.create(J.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(n,t):null}function Du(n,t){let e=n.c.year>9999||n.c.year<0,i="";return e&&n.c.year>=0&&(i+="+"),i+=xt(n.c.year,e?6:4),t?(i+="-",i+=xt(n.c.month),i+="-",i+=xt(n.c.day)):(i+=xt(n.c.month),i+=xt(n.c.day)),i}function wp(n,t,e,i,r,s){let o=xt(n.c.hour);return t?(o+=":",o+=xt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!e)&&(o+=":")):o+=xt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!e)&&(o+=xt(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=xt(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!s?o+="Z":n.o<0?(o+="-",o+=xt(Math.trunc(-n.o/60)),o+=":",o+=xt(Math.trunc(-n.o%60))):(o+="+",o+=xt(Math.trunc(n.o/60)),o+=":",o+=xt(Math.trunc(n.o%60)))),s&&(o+="["+n.zone.ianaName+"]"),o}var Dp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sp=["year","month","day","hour","minute","second","millisecond"],bO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],vO=["year","ordinal","hour","minute","second","millisecond"];function wO(n){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!t)throw new Ki(n);return t}function _p(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return wO(n)}}function _O(n){return ml[n]||(hl===void 0&&(hl=it.now()),ml[n]=n.offset(hl)),ml[n]}function Op(n,t){let e=Me(t.zone,it.defaultZone);if(!e.isValid)return H.invalid(Ns(e));let i=J.fromObject(t),r,s;if(z(n.year))r=it.now();else{for(let l of Sp)z(n[l])&&(n[l]=Dp[l]);let o=uu(n)||fu(n);if(o)return H.invalid(o);let a=_O(e);[r,s]=dl(n,a,e)}return new H({ts:r,zone:e,loc:i,o:s})}function Mp(n,t,e){let i=z(e.round)?!0:e.round,r=(o,a)=>(o=tr(o,i||e.calendary?0:2,!0),t.loc.clone(e).relFormatter(e).format(o,a)),s=o=>e.calendary?t.hasSame(n,o)?0:t.startOf(o).diff(n.startOf(o),o).get(o):t.diff(n,o).get(o);if(e.unit)return r(s(e.unit),e.unit);for(let o of e.units){let a=s(o);if(Math.abs(a)>=1)return r(a,o)}return r(n>t?-0:0,e.units[e.units.length-1])}function Tp(n){let t={},e;return n.length>0&&typeof n[n.length-1]=="object"?(t=n[n.length-1],e=Array.from(n).slice(0,n.length-1)):e=Array.from(n),[t,e]}var hl,ml={},H=class{constructor(t){let e=t.zone||it.defaultZone,i=t.invalid||(Number.isNaN(t.ts)?new At("invalid input"):null)||(e.isValid?null:Ns(e));this.ts=z(t.ts)?it.now():t.ts;let r=null,s=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{let a=Te(t.o)&&!t.old?t.o:e.offset(this.ts);r=ul(this.ts,a),i=Number.isNaN(r.year)?new At("invalid input"):null,r=i?null:r,s=i?null:a}this._zone=e,this.loc=t.loc||J.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new H({})}static local(){let[t,e]=Tp(arguments),[i,r,s,o,a,l,c]=e;return Op({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static utc(){let[t,e]=Tp(arguments),[i,r,s,o,a,l,c]=e;return t.zone=bt.utcInstance,Op({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,e={}){let i=zm(t)?t.valueOf():NaN;if(Number.isNaN(i))return H.invalid("invalid input");let r=Me(e.zone,it.defaultZone);return r.isValid?new H({ts:i,zone:r,loc:J.fromObject(e)}):H.invalid(Ns(r))}static fromMillis(t,e={}){if(Te(t))return t<-bp||t>bp?H.invalid("Timestamp out of range"):new H({ts:t,zone:Me(e.zone,it.defaultZone),loc:J.fromObject(e)});throw new _t(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Te(t))return new H({ts:t*1e3,zone:Me(e.zone,it.defaultZone),loc:J.fromObject(e)});throw new _t("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};let i=Me(e.zone,it.defaultZone);if(!i.isValid)return H.invalid(Ns(i));let r=J.fromObject(e),s=rr(t,_p),{minDaysInFirstWeek:o,startOfWeek:a}=cu(s,r),l=it.now(),c=z(e.specificOffset)?i.offset(l):e.specificOffset,u=!z(s.ordinal),f=!z(s.year),d=!z(s.month)||!z(s.day),h=f||d,m=s.weekYear||s.weekNumber;if((h||u)&&m)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new we("Can't mix ordinal dates with month/day");let p=m||s.weekday&&!h,y,x,b=ul(l,c);p?(y=bO,x=yO,b=Ss(b,o,a)):u?(y=vO,x=xO,b=ll(b)):(y=Sp,x=Dp);let O=!1;for(let E of y){let I=s[E];z(I)?O?s[E]=x[E]:s[E]=b[E]:O=!0}let g=p?Wm(s,o,a):u?Hm(s):uu(s),w=g||fu(s);if(w)return H.invalid(w);let _=p?au(s,o,a):u?lu(s):s,[T,k]=dl(_,c,i),D=new H({ts:T,zone:i,o:k,loc:r});return s.weekday&&h&&t.weekday!==D.weekday?H.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${D.toISO()}`):D.isValid?D:H.invalid(D.invalid)}static fromISO(t,e={}){let[i,r]=np(t);return hr(i,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){let[i,r]=ip(t);return hr(i,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){let[i,r]=rp(t);return hr(i,r,e,"HTTP",e)}static fromFormat(t,e,i={}){if(z(t)||z(e))throw new _t("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=xp(o,t,e);return u?H.invalid(u):hr(a,l,i,`format ${e}`,t,c)}static fromString(t,e,i={}){return H.fromFormat(t,e,i)}static fromSQL(t,e={}){let[i,r]=ap(t);return hr(i,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the DateTime is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Ga(i);return new H({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){let i=Ou(t,J.fromObject(e));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(t,e={}){return wu(vt.parseFormat(t),J.fromObject(e)).map(r=>r.val).join("")}static resetCache(){hl=void 0,ml={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Tu(this).weekYear:NaN}get weekNumber(){return this.isValid?Tu(this).weekNumber:NaN}get weekday(){return this.isValid?Tu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ku(this).weekday:NaN}get localWeekNumber(){return this.isValid?ku(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ku(this).weekYear:NaN}get ordinal(){return this.isValid?ll(this.c).ordinal:NaN}get monthShort(){return this.isValid?an.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?an.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?an.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?an.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,e=6e4,i=Ji(this.c),r=this.zone.offset(i-t),s=this.zone.offset(i+t),o=this.zone.offset(i-r*e),a=this.zone.offset(i-s*e);if(o===a)return[this];let l=i-o*e,c=i-a*e,u=ul(l,o),f=ul(c,a);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ti(this,{ts:l}),ti(this,{ts:c})]:[this]}get isInLeapYear(){return Kn(this.year)}get daysInMonth(){return ir(this.year,this.month)}get daysInYear(){return this.isValid?Dn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Qn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Qn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:e,numberingSystem:i,calendar:r}=vt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(bt.instance(t),e)}toLocal(){return this.setZone(it.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if(t=Me(t,it.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||i){let s=t.offset(this.ts),o=this.toObject();[r]=dl(o,s,t)}return ti(this,{ts:r,zone:t})}else return H.invalid(Ns(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){let r=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i});return ti(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let e=rr(t,_p),{minDaysInFirstWeek:i,startOfWeek:r}=cu(e,this.loc),s=!z(e.weekYear)||!z(e.weekNumber)||!z(e.weekday),o=!z(e.ordinal),a=!z(e.year),l=!z(e.month)||!z(e.day),c=a||l,u=e.weekYear||e.weekNumber;if((c||o)&&u)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new we("Can't mix ordinal dates with month/day");let f;s?f=au(L(L({},Ss(this.c,i,r)),e),i,r):z(e.ordinal)?(f=L(L({},this.toObject()),e),z(e.day)&&(f.day=Math.min(ir(f.year,f.month),f.day))):f=lu(L(L({},ll(this.c)),e));let[d,h]=dl(f,this.o,this.zone);return ti(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t);return ti(this,vp(this,e))}minus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t).negate();return ti(this,vp(this,e))}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;let i={},r=Z.normalizeUnit(t);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break;case"milliseconds":break}if(r==="weeks")if(e){let s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(i.weekNumber=this.weekNumber-1),i.weekday=s}else i.weekday=1;if(r==="quarters"){let s=Math.ceil(this.month/3);i.month=(s-1)*3+1}return this.set(i)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?vt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Mu}toLocaleString(t=Tn,e={}){return this.isValid?vt.create(this.loc.clone(e),t).formatDateTime(this):Mu}toLocaleParts(t={}){return this.isValid?vt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;let o=t==="extended",a=Du(this,o);return a+="T",a+=wp(this,o,e,i,r,s),a}toISODate({format:t="extended"}={}){return this.isValid?Du(this,t==="extended"):null}toISOWeekDate(){return fl(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+wp(this,o==="extended",e,t,i,s):null}toRFC2822(){return fl(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return fl(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Du(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(i&&(r+=" "),e?r+="z":t&&(r+="ZZ")),fl(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Mu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let e=L({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return Z.invalid("created by diffing an invalid DateTime");let r=L({locale:this.locale,numberingSystem:this.numberingSystem},i),s=Bm(e).map(Z.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,l=o?t:this,c=hp(a,l,s,r);return o?c.negate():c}diffNow(t="milliseconds",e={}){return this.diff(H.now(),t,e)}until(t){return this.isValid?ft.fromDateTimes(this,t):this}hasSame(t,e,i){if(!this.isValid)return!1;let r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,i)<=r&&r<=s.endOf(e,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let e=t.base||H.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),Mp(e,this.plus(i),ct(L({},t),{numeric:"always",units:r,unit:s}))}toRelativeCalendar(t={}){return this.isValid?Mp(t.base||H.fromObject({},{zone:this.zone}),this,ct(L({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(H.isDateTime))throw new _t("min requires all arguments be DateTimes");return du(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(H.isDateTime))throw new _t("max requires all arguments be DateTimes");return du(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(t,e,i={}){let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return _u(o,t,e)}static fromStringExplain(t,e,i={}){return H.fromFormatExplain(t,e,i)}static buildFormatParser(t,e={}){let{locale:i=null,numberingSystem:r=null}=e,s=J.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new Fs(s,t)}static fromFormatParser(t,e,i={}){if(z(t)||z(e))throw new _t("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!o.equals(e.locale))throw new _t(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${e.locale}`);let{result:a,zone:l,specificOffset:c,invalidReason:u}=e.explainFromTokens(t);return u?H.invalid(u):hr(a,l,i,`format ${e.format}`,t,c)}static get DATE_SHORT(){return Tn}static get DATE_MED(){return as}static get DATE_MED_WITH_WEEKDAY(){return jc}static get DATE_FULL(){return ls}static get DATE_HUGE(){return cs}static get TIME_SIMPLE(){return us}static get TIME_WITH_SECONDS(){return fs}static get TIME_WITH_SHORT_OFFSET(){return ds}static get TIME_WITH_LONG_OFFSET(){return hs}static get TIME_24_SIMPLE(){return ms}static get TIME_24_WITH_SECONDS(){return ps}static get TIME_24_WITH_SHORT_OFFSET(){return gs}static get TIME_24_WITH_LONG_OFFSET(){return ys}static get DATETIME_SHORT(){return xs}static get DATETIME_SHORT_WITH_SECONDS(){return bs}static get DATETIME_MED(){return vs}static get DATETIME_MED_WITH_SECONDS(){return ws}static get DATETIME_MED_WITH_WEEKDAY(){return $c}static get DATETIME_FULL(){return _s}static get DATETIME_FULL_WITH_SECONDS(){return Os}static get DATETIME_HUGE(){return Ms}static get DATETIME_HUGE_WITH_SECONDS(){return Ts}};function dr(n){if(H.isDateTime(n))return n;if(n&&n.valueOf&&Te(n.valueOf()))return H.fromJSDate(n);if(n&&typeof n=="object")return H.fromObject(n);throw new _t(`Unknown datetime argument: ${n}, of type ${typeof n}`)}var OO={mounted(){this.updated()},updated(){let n=this.el.dataset.format,t=this.el.dataset.preset,e=this.el.dataset.locale,i=this.el.textContent.trim(),r=H.fromISO(i).setLocale(e),s;n?n==="relative"?s=r.toRelative():s=r.toFormat(n):s=r.toLocaleString(H[t]),this.el.textContent=s,this.el.classList.remove("opacity-0")}},Ep=OO;var Ot="top",Ct="bottom",St="right",Tt="left",pl="auto",Cn=[Ot,Ct,St,Tt],ln="start",ei="end",Pp="clippingParents",gl="viewport",mr="popper",Cp="reference",Su=Cn.reduce(function(n,t){return n.concat([t+"-"+ln,t+"-"+ei])},[]),yl=[].concat(Cn,[pl]).reduce(function(n,t){return n.concat([t,t+"-"+ln,t+"-"+ei])},[]),MO="beforeRead",TO="read",kO="afterRead",DO="beforeMain",SO="main",EO="afterMain",PO="beforeWrite",CO="write",IO="afterWrite",Ip=[MO,TO,kO,DO,SO,EO,PO,CO,IO];function Lt(n){return n?(n.nodeName||"").toLowerCase():null}function gt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function me(n){var t=gt(n).Element;return n instanceof t||n instanceof Element}function It(n){var t=gt(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function pr(n){if(typeof ShadowRoot=="undefined")return!1;var t=gt(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function AO(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];!It(s)||!Lt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function LO(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!It(r)||!Lt(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}var Rs={name:"applyStyles",enabled:!0,phase:"write",fn:AO,effect:LO,requires:["computeStyles"]};function Ft(n){return n.split("-")[0]}var De=Math.max,ni=Math.min,cn=Math.round;function gr(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ws(){return!/^((?!chrome|android).)*safari/i.test(gr())}function pe(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),r=1,s=1;t&&It(n)&&(r=n.offsetWidth>0&&cn(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&cn(i.height)/n.offsetHeight||1);var o=me(n)?gt(n):window,a=o.visualViewport,l=!Ws()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/r,d=i.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function ii(n){var t=pe(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function Hs(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&pr(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(n){return gt(n).getComputedStyle(n)}function Eu(n){return["table","td","th"].indexOf(Lt(n))>=0}function Bt(n){return((me(n)?n.ownerDocument:n.document)||window.document).documentElement}function un(n){return Lt(n)==="html"?n:n.assignedSlot||n.parentNode||(pr(n)?n.host:null)||Bt(n)}function Ap(n){return!It(n)||Ut(n).position==="fixed"?null:n.offsetParent}function FO(n){var t=/firefox/i.test(gr()),e=/Trident/i.test(gr());if(e&&It(n)){var i=Ut(n);if(i.position==="fixed")return null}var r=un(n);for(pr(r)&&(r=r.host);It(r)&&["html","body"].indexOf(Lt(r))<0;){var s=Ut(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Se(n){for(var t=gt(n),e=Ap(n);e&&Eu(e)&&Ut(e).position==="static";)e=Ap(e);return e&&(Lt(e)==="html"||Lt(e)==="body"&&Ut(e).position==="static")?t:e||FO(n)||t}function ri(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function si(n,t,e){return De(n,ni(t,e))}function Lp(n,t,e){var i=si(n,t,e);return i>e?e:i}function Vs(){return{top:0,right:0,bottom:0,left:0}}function zs(n){return Object.assign({},Vs(),n)}function Bs(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var NO=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,zs(typeof t!="number"?t:Bs(t,Cn))};function RO(n){var t,e=n.state,i=n.name,r=n.options,s=e.elements.arrow,o=e.modifiersData.popperOffsets,a=Ft(e.placement),l=ri(a),c=[Tt,St].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!o)){var f=NO(r.padding,e),d=ii(s),h=l==="y"?Ot:Tt,m=l==="y"?Ct:St,p=e.rects.reference[u]+e.rects.reference[l]-o[l]-e.rects.popper[u],y=o[l]-e.rects.reference[l],x=Se(s),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,O=p/2-y/2,g=f[h],w=b-d[u]-f[m],_=b/2-d[u]/2+O,T=si(g,_,w),k=l;e.modifiersData[i]=(t={},t[k]=T,t.centerOffset=T-_,t)}}function WO(n){var t=n.state,e=n.options,i=e.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Hs(t.elements.popper,r)&&(t.elements.arrow=r))}var Fp={name:"arrow",enabled:!0,phase:"main",fn:RO,effect:WO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(n){return n.split("-")[1]}var HO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VO(n,t){var e=n.x,i=n.y,r=t.devicePixelRatio||1;return{x:cn(e*r)/r||0,y:cn(i*r)/r||0}}function Np(n){var t,e=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,f=n.isFixed,d=o.x,h=d===void 0?0:d,m=o.y,p=m===void 0?0:m,y=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=y.x,p=y.y;var x=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),O=Tt,g=Ot,w=window;if(c){var _=Se(e),T="clientHeight",k="clientWidth";if(_===gt(e)&&(_=Bt(e),Ut(_).position!=="static"&&a==="absolute"&&(T="scrollHeight",k="scrollWidth")),_=_,r===Ot||(r===Tt||r===St)&&s===ei){g=Ct;var D=f&&_===w&&w.visualViewport?w.visualViewport.height:_[T];p-=D-i.height,p*=l?1:-1}if(r===Tt||(r===Ot||r===Ct)&&s===ei){O=St;var E=f&&_===w&&w.visualViewport?w.visualViewport.width:_[k];h-=E-i.width,h*=l?1:-1}}var I=Object.assign({position:a},c&&HO),P=u===!0?VO({x:h,y:p},gt(e)):{x:h,y:p};if(h=P.x,p=P.y,l){var N;return Object.assign({},I,(N={},N[g]=b?"0":"",N[O]=x?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",N))}return Object.assign({},I,(t={},t[g]=b?p+"px":"",t[O]=x?h+"px":"",t.transform="",t))}function zO(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=i===void 0?!0:i,s=e.adaptive,o=s===void 0?!0:s,a=e.roundOffsets,l=a===void 0?!0:a,c={placement:Ft(t.placement),variation:ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Np(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Np(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Rp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zO,data:{}};var xl={passive:!0};function BO(n){var t=n.state,e=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",e.update,xl)}),a&&l.addEventListener("resize",e.update,xl),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",e.update,xl)}),a&&l.removeEventListener("resize",e.update,xl)}}var Wp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BO,data:{}};var YO={left:"right",right:"left",bottom:"top",top:"bottom"};function yr(n){return n.replace(/left|right|bottom|top/g,function(t){return YO[t]})}var jO={start:"end",end:"start"};function bl(n){return n.replace(/start|end/g,function(t){return jO[t]})}function oi(n){var t=gt(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function ai(n){return pe(Bt(n)).left+oi(n).scrollLeft}function Pu(n,t){var e=gt(n),i=Bt(n),r=e.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=Ws();(c||!c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+ai(n),y:l}}function Cu(n){var t,e=Bt(n),i=oi(n),r=(t=n.ownerDocument)==null?void 0:t.body,s=De(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=De(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+ai(n),l=-i.scrollTop;return Ut(r||e).direction==="rtl"&&(a+=De(e.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function li(n){var t=Ut(n),e=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function vl(n){return["html","body","#document"].indexOf(Lt(n))>=0?n.ownerDocument.body:It(n)&&li(n)?n:vl(un(n))}function In(n,t){var e;t===void 0&&(t=[]);var i=vl(n),r=i===((e=n.ownerDocument)==null?void 0:e.body),s=gt(i),o=r?[s].concat(s.visualViewport||[],li(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(In(un(o)))}function xr(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function $O(n,t){var e=pe(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Hp(n,t,e){return t===gl?xr(Pu(n,e)):me(t)?$O(t,e):xr(Cu(Bt(n)))}function UO(n){var t=In(un(n)),e=["absolute","fixed"].indexOf(Ut(n).position)>=0,i=e&&It(n)?Se(n):n;return me(i)?t.filter(function(r){return me(r)&&Hs(r,i)&&Lt(r)!=="body"}):[]}function Iu(n,t,e,i){var r=t==="clippingParents"?UO(n):[].concat(t),s=[].concat(r,[e]),o=s[0],a=s.reduce(function(l,c){var u=Hp(n,c,i);return l.top=De(u.top,l.top),l.right=ni(u.right,l.right),l.bottom=ni(u.bottom,l.bottom),l.left=De(u.left,l.left),l},Hp(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ys(n){var t=n.reference,e=n.element,i=n.placement,r=i?Ft(i):null,s=i?ge(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(r){case Ot:l={x:o,y:t.y-e.height};break;case Ct:l={x:o,y:t.y+t.height};break;case St:l={x:t.x+t.width,y:a};break;case Tt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?ri(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case ln:l[c]=l[c]-(t[u]/2-e[u]/2);break;case ei:l[c]=l[c]+(t[u]/2-e[u]/2);break;default:}}return l}function Ee(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=i===void 0?n.placement:i,s=e.strategy,o=s===void 0?n.strategy:s,a=e.boundary,l=a===void 0?Pp:a,c=e.rootBoundary,u=c===void 0?gl:c,f=e.elementContext,d=f===void 0?mr:f,h=e.altBoundary,m=h===void 0?!1:h,p=e.padding,y=p===void 0?0:p,x=zs(typeof y!="number"?y:Bs(y,Cn)),b=d===mr?Cp:mr,O=n.rects.popper,g=n.elements[m?b:d],w=Iu(me(g)?g:g.contextElement||Bt(n.elements.popper),l,u,o),_=pe(n.elements.reference),T=Ys({reference:_,element:O,strategy:"absolute",placement:r}),k=xr(Object.assign({},O,T)),D=d===mr?k:_,E={top:w.top-D.top+x.top,bottom:D.bottom-w.bottom+x.bottom,left:w.left-D.left+x.left,right:D.right-w.right+x.right},I=n.modifiersData.offset;if(d===mr&&I){var P=I[r];Object.keys(E).forEach(function(N){var G=[St,Ct].indexOf(N)>=0?1:-1,V=[Ot,Ct].indexOf(N)>=0?"y":"x";E[N]+=P[V]*G})}return E}function Au(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=e.boundary,s=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?yl:l,u=ge(i),f=u?a?Su:Su.filter(function(m){return ge(m)===u}):Cn,d=f.filter(function(m){return c.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,p){return m[p]=Ee(n,{placement:p,boundary:r,rootBoundary:s,padding:o})[Ft(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function qO(n){if(Ft(n)===pl)return[];var t=yr(n);return[bl(n),t,bl(t)]}function ZO(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,c=e.padding,u=e.boundary,f=e.rootBoundary,d=e.altBoundary,h=e.flipVariations,m=h===void 0?!0:h,p=e.allowedAutoPlacements,y=t.options.placement,x=Ft(y),b=x===y,O=l||(b||!m?[yr(y)]:qO(y)),g=[y].concat(O).reduce(function(kt,Rt){return kt.concat(Ft(Rt)===pl?Au(t,{placement:Rt,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):Rt)},[]),w=t.rects.reference,_=t.rects.popper,T=new Map,k=!0,D=g[0],E=0;E<g.length;E++){var I=g[E],P=Ft(I),N=ge(I)===ln,G=[Ot,Ct].indexOf(P)>=0,V=G?"width":"height",B=Ee(t,{placement:I,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),Y=G?N?St:Tt:N?Ct:Ot;w[V]>_[V]&&(Y=yr(Y));var A=yr(Y),W=[];if(s&&W.push(B[P]<=0),a&&W.push(B[Y]<=0,B[A]<=0),W.every(function(kt){return kt})){D=I,k=!1;break}T.set(I,W)}if(k)for(var Q=m?3:1,Nt=function(Rt){var Wt=g.find(function(pi){var je=T.get(pi);if(je)return je.slice(0,Rt).every(function(gi){return gi})});if(Wt)return D=Wt,"break"},Mt=Q;Mt>0;Mt--){var Yt=Nt(Mt);if(Yt==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}var Vp={name:"flip",enabled:!0,phase:"main",fn:ZO,requiresIfExists:["offset"],data:{_skip:!1}};function zp(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Bp(n){return[Ot,St,Ct,Tt].some(function(t){return n[t]>=0})}function XO(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ee(t,{elementContext:"reference"}),a=Ee(t,{altBoundary:!0}),l=zp(o,i),c=zp(a,r,s),u=Bp(l),f=Bp(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var Yp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XO};function GO(n,t,e){var i=Ft(n),r=[Tt,Ot].indexOf(i)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[Tt,St].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function QO(n){var t=n.state,e=n.options,i=n.name,r=e.offset,s=r===void 0?[0,0]:r,o=yl.reduce(function(u,f){return u[f]=GO(f,t.rects,s),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}var jp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QO};function KO(n){var t=n.state,e=n.name;t.modifiersData[e]=Ys({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var $p={name:"popperOffsets",enabled:!0,phase:"read",fn:KO,data:{}};function Lu(n){return n==="x"?"y":"x"}function JO(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,c=e.rootBoundary,u=e.altBoundary,f=e.padding,d=e.tether,h=d===void 0?!0:d,m=e.tetherOffset,p=m===void 0?0:m,y=Ee(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),x=Ft(t.placement),b=ge(t.placement),O=!b,g=ri(x),w=Lu(g),_=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,D=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(_){if(s){var N,G=g==="y"?Ot:Tt,V=g==="y"?Ct:St,B=g==="y"?"height":"width",Y=_[g],A=Y+y[G],W=Y-y[V],Q=h?-k[B]/2:0,Nt=b===ln?T[B]:k[B],Mt=b===ln?-k[B]:-T[B],Yt=t.elements.arrow,kt=h&&Yt?ii(Yt):{width:0,height:0},Rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vs(),Wt=Rt[G],pi=Rt[V],je=si(0,T[B],kt[B]),gi=O?T[B]/2-Q-je-Wt-E.mainAxis:Nt-je-Wt-E.mainAxis,dn=O?-T[B]/2+Q+je+pi+E.mainAxis:Mt+je+pi+E.mainAxis,yi=t.elements.arrow&&Se(t.elements.arrow),Js=yi?g==="y"?yi.clientTop||0:yi.clientLeft||0:0,Mr=(N=I==null?void 0:I[g])!=null?N:0,to=Y+gi-Mr-Js,eo=Y+dn-Mr,Tr=si(h?ni(A,to):A,Y,h?De(W,eo):W);_[g]=Tr,P[g]=Tr-Y}if(a){var kr,no=g==="x"?Ot:Tt,io=g==="x"?Ct:St,$e=_[w],hn=w==="y"?"height":"width",Dr=$e+y[no],Ln=$e-y[io],Sr=[Ot,Tt].indexOf(x)!==-1,ro=(kr=I==null?void 0:I[w])!=null?kr:0,so=Sr?Dr:$e-T[hn]-k[hn]-ro+E.altAxis,oo=Sr?$e+T[hn]+k[hn]-ro-E.altAxis:Ln,ao=h&&Sr?Lp(so,$e,oo):si(h?so:Dr,$e,h?oo:Ln);_[w]=ao,P[w]=ao-$e}t.modifiersData[i]=P}}var Up={name:"preventOverflow",enabled:!0,phase:"main",fn:JO,requiresIfExists:["offset"]};function Fu(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Nu(n){return n===gt(n)||!It(n)?oi(n):Fu(n)}function tM(n){var t=n.getBoundingClientRect(),e=cn(t.width)/n.offsetWidth||1,i=cn(t.height)/n.offsetHeight||1;return e!==1||i!==1}function Ru(n,t,e){e===void 0&&(e=!1);var i=It(t),r=It(t)&&tM(t),s=Bt(t),o=pe(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Lt(t)!=="body"||li(s))&&(a=Nu(t)),It(t)?(l=pe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=ai(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function eM(n){var t=new Map,e=new Set,i=[];n.forEach(function(s){t.set(s.name,s)});function r(s){e.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){e.has(s.name)||r(s)}),i}function Wu(n){var t=eM(n);return Ip.reduce(function(e,i){return e.concat(t.filter(function(r){return r.phase===i}))},[])}function Hu(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Vu(n){var t=n.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var qp={placement:"bottom",modifiers:[],strategy:"absolute"};function Zp(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Xp(n){n===void 0&&(n={});var t=n,e=t.defaultModifiers,i=e===void 0?[]:e,r=t.defaultOptions,s=r===void 0?qp:r;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},qp,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(x){var b=typeof x=="function"?x(u.options):x;p(),u.options=Object.assign({},s,u.options,b),u.scrollParents={reference:me(a)?In(a):a.contextElement?In(a.contextElement):[],popper:In(l)};var O=Wu(Vu([].concat(i,u.options.modifiers)));return u.orderedModifiers=O.filter(function(g){return g.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var x=u.elements,b=x.reference,O=x.popper;if(Zp(b,O)){u.rects={reference:Ru(b,Se(O),u.options.strategy==="fixed"),popper:ii(O)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var g=0;g<u.orderedModifiers.length;g++){if(u.reset===!0){u.reset=!1,g=-1;continue}var w=u.orderedModifiers[g],_=w.fn,T=w.options,k=T===void 0?{}:T,D=w.name;typeof _=="function"&&(u=_({state:u,options:k,name:D,instance:h})||u)}}}},update:Hu(function(){return new Promise(function(y){h.forceUpdate(),y(u)})}),destroy:function(){p(),d=!0}};if(!Zp(a,l))return h;h.setOptions(c).then(function(y){!d&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var x=y.name,b=y.options,O=b===void 0?{}:b,g=y.effect;if(typeof g=="function"){var w=g({state:u,name:x,instance:h,options:O}),_=function(){};f.push(w||_)}})}function p(){f.forEach(function(y){return y()}),f=[]}return h}}var nM=[Wp,$p,Rp,Rs,jp,Vp,Up,Fp,Yp],zu=Xp({defaultModifiers:nM});var iM="tippy-box",sg="tippy-content",rM="tippy-backdrop",og="tippy-arrow",ag="tippy-svg-arrow",ci={passive:!0,capture:!0},lg=function(){return document.body};function Bu(n,t,e){if(Array.isArray(n)){var i=n[t];return i==null?Array.isArray(e)?e[t]:e:i}return n}function Zu(n,t){var e={}.toString.call(n);return e.indexOf("[object")===0&&e.indexOf(t+"]")>-1}function cg(n,t){return typeof n=="function"?n.apply(void 0,t):n}function Gp(n,t){if(t===0)return n;var e;return function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)}}function sM(n){return n.split(/\s+/).filter(Boolean)}function br(n){return[].concat(n)}function Qp(n,t){n.indexOf(t)===-1&&n.push(t)}function oM(n){return n.filter(function(t,e){return n.indexOf(t)===e})}function aM(n){return n.split("-")[0]}function _l(n){return[].slice.call(n)}function Kp(n){return Object.keys(n).reduce(function(t,e){return n[e]!==void 0&&(t[e]=n[e]),t},{})}function js(){return document.createElement("div")}function Ol(n){return["Element","Fragment"].some(function(t){return Zu(n,t)})}function lM(n){return Zu(n,"NodeList")}function cM(n){return Zu(n,"MouseEvent")}function uM(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function fM(n){return Ol(n)?[n]:lM(n)?_l(n):Array.isArray(n)?n:_l(document.querySelectorAll(n))}function Yu(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Jp(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function dM(n){var t,e=br(n),i=e[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function hM(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var s=r.popperRect,o=r.popperState,a=r.props,l=a.interactiveBorder,c=aM(o.placement),u=o.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,d=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,p=s.top-i+f>l,y=i-s.bottom-d>l,x=s.left-e+h>l,b=e-s.right-m>l;return p||y||x||b})}function ju(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function tg(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=e.getRootNode==null||(i=e.getRootNode())==null?void 0:i.host}return!1}var Ye={isTouch:!1},eg=0;function mM(){Ye.isTouch||(Ye.isTouch=!0,window.performance&&document.addEventListener("mousemove",ug))}function ug(){var n=performance.now();n-eg<20&&(Ye.isTouch=!1,document.removeEventListener("mousemove",ug)),eg=n}function pM(){var n=document.activeElement;if(uM(n)){var t=n._tippy;n.blur&&!t.state.isVisible&&n.blur()}}function gM(){document.addEventListener("touchstart",mM,ci),window.addEventListener("blur",pM)}var yM=typeof window!="undefined"&&typeof document!="undefined",xM=yM?!!window.msCrypto:!1;var bM={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},vM={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pe=Object.assign({appendTo:lg,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},bM,vM),wM=Object.keys(Pe),_M=function(t){var e=Object.keys(t);e.forEach(function(i){Pe[i]=t[i]})};function fg(n){var t=n.plugins||[],e=t.reduce(function(i,r){var s=r.name,o=r.defaultValue;if(s){var a;i[s]=n[s]!==void 0?n[s]:(a=Pe[s])!=null?a:o}return i},{});return Object.assign({},n,e)}function OM(n,t){var e=t?Object.keys(fg(Object.assign({},Pe,{plugins:t}))):wM,i=e.reduce(function(r,s){var o=(n.getAttribute("data-tippy-"+s)||"").trim();if(!o)return r;if(s==="content")r[s]=o;else try{r[s]=JSON.parse(o)}catch(a){r[s]=o}return r},{});return i}function ng(n,t){var e=Object.assign({},t,{content:cg(t.content,[n])},t.ignoreAttributes?{}:OM(n,t.plugins));return e.aria=Object.assign({},Pe.aria,e.aria),e.aria={expanded:e.aria.expanded==="auto"?t.interactive:e.aria.expanded,content:e.aria.content==="auto"?t.interactive?null:"describedby":e.aria.content},e}var MM=function(){return"innerHTML"};function Uu(n,t){n[MM()]=t}function ig(n){var t=js();return n===!0?t.className=og:(t.className=ag,Ol(n)?t.appendChild(n):Uu(t,n)),t}function rg(n,t){Ol(t.content)?(Uu(n,""),n.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Uu(n,t.content):n.textContent=t.content)}function qu(n){var t=n.firstElementChild,e=_l(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(sg)}),arrow:e.find(function(i){return i.classList.contains(og)||i.classList.contains(ag)}),backdrop:e.find(function(i){return i.classList.contains(rM)})}}function dg(n){var t=js(),e=js();e.className=iM,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=js();i.className=sg,i.setAttribute("data-state","hidden"),rg(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props);function r(s,o){var a=qu(t),l=a.box,c=a.content,u=a.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&rg(c,n.props),o.arrow?u?s.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(ig(o.arrow))):l.appendChild(ig(o.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:r}}dg.$$tippy=!0;var TM=1,wl=[],$u=[];function kM(n,t){var e=ng(n,Object.assign({},Pe,fg(Kp(t)))),i,r,s,o=!1,a=!1,l=!1,c=!1,u,f,d,h=[],m=Gp(to,e.interactiveDebounce),p,y=TM++,x=null,b=oM(e.plugins),O={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:y,reference:n,popper:js(),popperInstance:x,props:e,state:O,plugins:b,clearDelayTimeouts:so,setProps:oo,setContent:ao,show:jg,hide:$g,hideWithInteractivity:Ug,enable:Sr,disable:ro,unmount:qg,destroy:Zg};if(!e.render)return g;var w=e.render(g),_=w.popper,T=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,n._tippy=g,_._tippy=g;var k=b.map(function(M){return M.fn(g)}),D=n.hasAttribute("aria-expanded");return yi(),Q(),Y(),A("onCreate",[g]),e.showOnCreate&&Dr(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&G().addEventListener("mousemove",m)}),g;function E(){var M=g.props.touch;return Array.isArray(M)?M:[M,0]}function I(){return E()[0]==="hold"}function P(){var M;return!!((M=g.props.render)!=null&&M.$$tippy)}function N(){return p||n}function G(){var M=N().parentNode;return M?dM(M):document}function V(){return qu(_)}function B(M){return g.state.isMounted&&!g.state.isVisible||Ye.isTouch||u&&u.type==="focus"?0:Bu(g.props.delay,M?0:1,Pe.delay)}function Y(M){M===void 0&&(M=!1),_.style.pointerEvents=g.props.interactive&&!M?"":"none",_.style.zIndex=""+g.props.zIndex}function A(M,R,j){if(j===void 0&&(j=!0),k.forEach(function(nt){nt[M]&&nt[M].apply(nt,R)}),j){var at;(at=g.props)[M].apply(at,R)}}function W(){var M=g.props.aria;if(M.content){var R="aria-"+M.content,j=_.id,at=br(g.props.triggerTarget||n);at.forEach(function(nt){var $t=nt.getAttribute(R);if(g.state.isVisible)nt.setAttribute(R,$t?$t+" "+j:j);else{var oe=$t&&$t.replace(j,"").trim();oe?nt.setAttribute(R,oe):nt.removeAttribute(R)}})}}function Q(){if(!(D||!g.props.aria.expanded)){var M=br(g.props.triggerTarget||n);M.forEach(function(R){g.props.interactive?R.setAttribute("aria-expanded",g.state.isVisible&&R===N()?"true":"false"):R.removeAttribute("aria-expanded")})}}function Nt(){G().removeEventListener("mousemove",m),wl=wl.filter(function(M){return M!==m})}function Mt(M){if(!(Ye.isTouch&&(l||M.type==="mousedown"))){var R=M.composedPath&&M.composedPath()[0]||M.target;if(!(g.props.interactive&&tg(_,R))){if(br(g.props.triggerTarget||n).some(function(j){return tg(j,R)})){if(Ye.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else A("onClickOutside",[g,M]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),a=!0,setTimeout(function(){a=!1}),g.state.isMounted||Wt())}}}function Yt(){l=!0}function kt(){l=!1}function Rt(){var M=G();M.addEventListener("mousedown",Mt,!0),M.addEventListener("touchend",Mt,ci),M.addEventListener("touchstart",kt,ci),M.addEventListener("touchmove",Yt,ci)}function Wt(){var M=G();M.removeEventListener("mousedown",Mt,!0),M.removeEventListener("touchend",Mt,ci),M.removeEventListener("touchstart",kt,ci),M.removeEventListener("touchmove",Yt,ci)}function pi(M,R){gi(M,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&R()})}function je(M,R){gi(M,R)}function gi(M,R){var j=V().box;function at(nt){nt.target===j&&(ju(j,"remove",at),R())}if(M===0)return R();ju(j,"remove",f),ju(j,"add",at),f=at}function dn(M,R,j){j===void 0&&(j=!1);var at=br(g.props.triggerTarget||n);at.forEach(function(nt){nt.addEventListener(M,R,j),h.push({node:nt,eventType:M,handler:R,options:j})})}function yi(){I()&&(dn("touchstart",Mr,{passive:!0}),dn("touchend",eo,{passive:!0})),sM(g.props.trigger).forEach(function(M){if(M!=="manual")switch(dn(M,Mr),M){case"mouseenter":dn("mouseleave",eo);break;case"focus":dn(xM?"focusout":"blur",Tr);break;case"focusin":dn("focusout",Tr);break}})}function Js(){h.forEach(function(M){var R=M.node,j=M.eventType,at=M.handler,nt=M.options;R.removeEventListener(j,at,nt)}),h=[]}function Mr(M){var R,j=!1;if(!(!g.state.isEnabled||kr(M)||a)){var at=((R=u)==null?void 0:R.type)==="focus";u=M,p=M.currentTarget,Q(),!g.state.isVisible&&cM(M)&&wl.forEach(function(nt){return nt(M)}),M.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||o)&&g.props.hideOnClick!==!1&&g.state.isVisible?j=!0:Dr(M),M.type==="click"&&(o=!j),j&&!at&&Ln(M)}}function to(M){var R=M.target,j=N().contains(R)||_.contains(R);if(!(M.type==="mousemove"&&j)){var at=hn().concat(_).map(function(nt){var $t,oe=nt._tippy,xi=($t=oe.popperInstance)==null?void 0:$t.state;return xi?{popperRect:nt.getBoundingClientRect(),popperState:xi,props:e}:null}).filter(Boolean);hM(at,M)&&(Nt(),Ln(M))}}function eo(M){var R=kr(M)||g.props.trigger.indexOf("click")>=0&&o;if(!R){if(g.props.interactive){g.hideWithInteractivity(M);return}Ln(M)}}function Tr(M){g.props.trigger.indexOf("focusin")<0&&M.target!==N()||g.props.interactive&&M.relatedTarget&&_.contains(M.relatedTarget)||Ln(M)}function kr(M){return Ye.isTouch?I()!==M.type.indexOf("touch")>=0:!1}function no(){io();var M=g.props,R=M.popperOptions,j=M.placement,at=M.offset,nt=M.getReferenceClientRect,$t=M.moveTransition,oe=P()?qu(_).arrow:null,xi=nt?{getBoundingClientRect:nt,contextElement:nt.contextElement||N()}:n,tf={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lo){var bi=lo.state;if(P()){var Xg=V(),Cl=Xg.box;["placement","reference-hidden","escaped"].forEach(function(co){co==="placement"?Cl.setAttribute("data-placement",bi.placement):bi.attributes.popper["data-popper-"+co]?Cl.setAttribute("data-"+co,""):Cl.removeAttribute("data-"+co)}),bi.attributes.popper={}}}},Fn=[{name:"offset",options:{offset:at}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!$t}},tf];P()&&oe&&Fn.push({name:"arrow",options:{element:oe,padding:3}}),Fn.push.apply(Fn,(R==null?void 0:R.modifiers)||[]),g.popperInstance=zu(xi,_,Object.assign({},R,{placement:j,onFirstUpdate:d,modifiers:Fn}))}function io(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function $e(){var M=g.props.appendTo,R,j=N();g.props.interactive&&M===lg||M==="parent"?R=j.parentNode:R=cg(M,[j]),R.contains(_)||R.appendChild(_),g.state.isMounted=!0,no()}function hn(){return _l(_.querySelectorAll("[data-tippy-root]"))}function Dr(M){g.clearDelayTimeouts(),M&&A("onTrigger",[g,M]),Rt();var R=B(!0),j=E(),at=j[0],nt=j[1];Ye.isTouch&&at==="hold"&&nt&&(R=nt),R?i=setTimeout(function(){g.show()},R):g.show()}function Ln(M){if(g.clearDelayTimeouts(),A("onUntrigger",[g,M]),!g.state.isVisible){Wt();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(M.type)>=0&&o)){var R=B(!1);R?r=setTimeout(function(){g.state.isVisible&&g.hide()},R):s=requestAnimationFrame(function(){g.hide()})}}function Sr(){g.state.isEnabled=!0}function ro(){g.hide(),g.state.isEnabled=!1}function so(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(s)}function oo(M){if(!g.state.isDestroyed){A("onBeforeUpdate",[g,M]),Js();var R=g.props,j=ng(n,Object.assign({},R,Kp(M),{ignoreAttributes:!0}));g.props=j,yi(),R.interactiveDebounce!==j.interactiveDebounce&&(Nt(),m=Gp(to,j.interactiveDebounce)),R.triggerTarget&&!j.triggerTarget?br(R.triggerTarget).forEach(function(at){at.removeAttribute("aria-expanded")}):j.triggerTarget&&n.removeAttribute("aria-expanded"),Q(),Y(),T&&T(R,j),g.popperInstance&&(no(),hn().forEach(function(at){requestAnimationFrame(at._tippy.popperInstance.forceUpdate)})),A("onAfterUpdate",[g,M])}}function ao(M){g.setProps({content:M})}function jg(){var M=g.state.isVisible,R=g.state.isDestroyed,j=!g.state.isEnabled,at=Ye.isTouch&&!g.props.touch,nt=Bu(g.props.duration,0,Pe.duration);if(!(M||R||j||at)&&!N().hasAttribute("disabled")&&(A("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,P()&&(_.style.visibility="visible"),Y(),Rt(),g.state.isMounted||(_.style.transition="none"),P()){var $t=V(),oe=$t.box,xi=$t.content;Yu([oe,xi],0)}d=function(){var Fn;if(!(!g.state.isVisible||c)){if(c=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,P()&&g.props.animation){var Pl=V(),lo=Pl.box,bi=Pl.content;Yu([lo,bi],nt),Jp([lo,bi],"visible")}W(),Q(),Qp($u,g),(Fn=g.popperInstance)==null||Fn.forceUpdate(),A("onMount",[g]),g.props.animation&&P()&&je(nt,function(){g.state.isShown=!0,A("onShown",[g])})}},$e()}}function $g(){var M=!g.state.isVisible,R=g.state.isDestroyed,j=!g.state.isEnabled,at=Bu(g.props.duration,1,Pe.duration);if(!(M||R||j)&&(A("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,c=!1,o=!1,P()&&(_.style.visibility="hidden"),Nt(),Wt(),Y(!0),P()){var nt=V(),$t=nt.box,oe=nt.content;g.props.animation&&(Yu([$t,oe],at),Jp([$t,oe],"hidden"))}W(),Q(),g.props.animation?P()&&pi(at,g.unmount):g.unmount()}}function Ug(M){G().addEventListener("mousemove",m),Qp(wl,m),m(M)}function qg(){g.state.isVisible&&g.hide(),g.state.isMounted&&(io(),hn().forEach(function(M){M._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),$u=$u.filter(function(M){return M!==g}),g.state.isMounted=!1,A("onHidden",[g]))}function Zg(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),Js(),delete n._tippy,g.state.isDestroyed=!0,A("onDestroy",[g]))}}function $s(n,t){t===void 0&&(t={});var e=Pe.plugins.concat(t.plugins||[]);gM();var i=Object.assign({},t,{plugins:e}),r=fM(n);if(!1)var s,o;var a=r.reduce(function(l,c){var u=c&&kM(c,i);return u&&l.push(u),l},[]);return Ol(n)?a[0]:a}$s.defaultProps=Pe;$s.setDefaultProps=_M;$s.currentInput=Ye;var bR=Object.assign({},Rs,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});$s.setDefaultProps({render:dg});var hg=$s;var DM={mounted(){this.run("mounted",this.el)},updated(){this.run("updated",this.el)},run(n,t){let e=hg(t,{theme:"translucent",animation:"scale"}),i=t.dataset.disableTippyOnMount==="true";n==="mounted"&&i&&e.disable()}},mg=DM;var qs=Math.min,An=Math.max,Zs=Math.round,Xs=Math.floor,Ce=n=>({x:n,y:n}),SM={left:"right",right:"left",bottom:"top",top:"bottom"},EM={start:"end",end:"start"};function Tl(n,t){return typeof n=="function"?n(t):n}function ui(n){return n.split("-")[0]}function Gs(n){return n.split("-")[1]}function pg(n){return n==="x"?"y":"x"}function Xu(n){return n==="y"?"height":"width"}function vr(n){return["top","bottom"].includes(ui(n))?"y":"x"}function Gu(n){return pg(vr(n))}function gg(n,t,e){e===void 0&&(e=!1);let i=Gs(n),r=Gu(n),s=Xu(r),o=r==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Us(o)),[o,Us(o)]}function yg(n){let t=Us(n);return[Ml(n),t,Ml(t)]}function Ml(n){return n.replace(/start|end/g,t=>EM[t])}function PM(n,t,e){let i=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return e?t?r:i:t?i:r;case"left":case"right":return t?s:o;default:return[]}}function xg(n,t,e,i){let r=Gs(n),s=PM(ui(n),e==="start",i);return r&&(s=s.map(o=>o+"-"+r),t&&(s=s.concat(s.map(Ml)))),s}function Us(n){return n.replace(/left|right|bottom|top/g,t=>SM[t])}function CM(n){return L({top:0,right:0,bottom:0,left:0},n)}function bg(n){return typeof n!="number"?CM(n):{top:n,right:n,bottom:n,left:n}}function fi(n){let{x:t,y:e,width:i,height:r}=n;return{width:i,height:r,top:e,left:t,right:t+i,bottom:e+r,x:t,y:e}}function vg(n,t,e){let{reference:i,floating:r}=n,s=vr(t),o=Gu(t),a=Xu(o),l=ui(t),c=s==="y",u=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,d=i[a]/2-r[a]/2,h;switch(l){case"top":h={x:u,y:i.y-r.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Gs(t)){case"start":h[o]-=d*(e&&c?-1:1);break;case"end":h[o]+=d*(e&&c?-1:1);break}return h}var wg=async(n,t,e)=>{let{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=e,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:n,floating:t,strategy:r}),{x:u,y:f}=vg(c,i,l),d=i,h={},m=0;for(let p=0;p<a.length;p++){let{name:y,fn:x}=a[p],{x:b,y:O,data:g,reset:w}=await x({x:u,y:f,initialPlacement:i,placement:d,strategy:r,middlewareData:h,rects:c,platform:o,elements:{reference:n,floating:t}});u=b!=null?b:u,f=O!=null?O:f,h=ct(L({},h),{[y]:L(L({},h[y]),g)}),w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:n,floating:t,strategy:r}):w.rects),{x:u,y:f}=vg(c,d,l)),p=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:h}};async function _g(n,t){var e;t===void 0&&(t={});let{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=n,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Tl(t,n),m=bg(h),y=a[d?f==="floating"?"reference":"floating":f],x=fi(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(y)))==null||e?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=f==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),g=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},w=fi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:O,strategy:l}):b);return{top:(x.top-w.top+m.top)/g.y,bottom:(w.bottom-x.bottom+m.bottom)/g.y,left:(x.left-w.left+m.left)/g.x,right:(w.right-x.right+m.right)/g.x}}var Og=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,i;let{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,G=Tl(n,t),{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0}=G,y=Er(G,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let x=ui(r),b=vr(a),O=ui(a)===a,g=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=d||(O||!p?[Us(a)]:yg(a)),_=m!=="none";!d&&_&&w.push(...xg(a,p,m,g));let T=[a,...w],k=await _g(t,y),D=[],E=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&D.push(k[x]),f){let V=gg(r,o,g);D.push(k[V[0]],k[V[1]])}if(E=[...E,{placement:r,overflows:D}],!D.every(V=>V<=0)){var I,P;let V=(((I=s.flip)==null?void 0:I.index)||0)+1,B=T[V];if(B)return{data:{index:V,overflows:E},reset:{placement:B}};let Y=(P=E.filter(A=>A.overflows[0]<=0).sort((A,W)=>A.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!Y)switch(h){case"bestFit":{var N;let A=(N=E.filter(W=>{if(_){let Q=vr(W.placement);return Q===b||Q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Q=>Q>0).reduce((Q,Nt)=>Q+Nt,0)]).sort((W,Q)=>W[1]-Q[1])[0])==null?void 0:N[0];A&&(Y=A);break}case"initialPlacement":Y=a;break}if(r!==Y)return{reset:{placement:Y}}}return{}}}};async function IM(n,t){let{placement:e,platform:i,elements:r}=n,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=ui(e),a=Gs(e),l=vr(e)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,f=Tl(t,n),{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}var Mg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:r,y:s,placement:o,middlewareData:a}=t,l=await IM(t,n);return o===((e=a.offset)==null?void 0:e.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:ct(L({},l),{placement:o})}}}};function kl(){return typeof window!="undefined"}function di(n){return kg(n)?(n.nodeName||"").toLowerCase():"#document"}function ee(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(n){var t;return(t=(kg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function kg(n){return kl()?n instanceof Node||n instanceof ee(n).Node:!1}function ye(n){return kl()?n instanceof Element||n instanceof ee(n).Element:!1}function Ae(n){return kl()?n instanceof HTMLElement||n instanceof ee(n).HTMLElement:!1}function Tg(n){return!kl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof ee(n).ShadowRoot}function _r(n){let{overflow:t,overflowX:e,overflowY:i,display:r}=xe(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(r)}function Dg(n){return["table","td","th"].includes(di(n))}function Qs(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch(e){return!1}})}function Dl(n){let t=Sl(),e=ye(n)?xe(n):n;return["transform","translate","scale","rotate","perspective"].some(i=>e[i]?e[i]!=="none":!1)||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function Sg(n){let t=fn(n);for(;Ae(t)&&!hi(t);){if(Dl(t))return t;if(Qs(t))return null;t=fn(t)}return null}function Sl(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hi(n){return["html","body","#document"].includes(di(n))}function xe(n){return ee(n).getComputedStyle(n)}function Ks(n){return ye(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fn(n){if(di(n)==="html")return n;let t=n.assignedSlot||n.parentNode||Tg(n)&&n.host||Ie(n);return Tg(t)?t.host:t}function Eg(n){let t=fn(n);return hi(t)?n.ownerDocument?n.ownerDocument.body:n.body:Ae(t)&&_r(t)?t:Eg(t)}function wr(n,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let r=Eg(n),s=r===((i=n.ownerDocument)==null?void 0:i.body),o=ee(r);if(s){let a=El(o);return t.concat(o,o.visualViewport||[],_r(r)?r:[],a&&e?wr(a):[])}return t.concat(r,wr(r,[],e))}function El(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ig(n){let t=xe(n),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=Ae(n),s=r?n.offsetWidth:e,o=r?n.offsetHeight:i,a=Zs(e)!==s||Zs(i)!==o;return a&&(e=s,i=o),{width:e,height:i,$:a}}function Ku(n){return ye(n)?n:n.contextElement}function Or(n){let t=Ku(n);if(!Ae(t))return Ce(1);let e=t.getBoundingClientRect(),{width:i,height:r,$:s}=Ig(t),o=(s?Zs(e.width):e.width)/i,a=(s?Zs(e.height):e.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var AM=Ce(0);function Ag(n){let t=ee(n);return!Sl()||!t.visualViewport?AM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LM(n,t,e){return t===void 0&&(t=!1),!e||t&&e!==ee(n)?!1:t}function mi(n,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let r=n.getBoundingClientRect(),s=Ku(n),o=Ce(1);t&&(i?ye(i)&&(o=Or(i)):o=Or(n));let a=LM(s,e,i)?Ag(s):Ce(0),l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,f=r.height/o.y;if(s){let d=ee(s),h=i&&ye(i)?ee(i):i,m=d,p=El(m);for(;p&&i&&h!==m;){let y=Or(p),x=p.getBoundingClientRect(),b=xe(p),O=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,g=x.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=O,c+=g,m=ee(p),p=El(m)}}return fi({width:u,height:f,x:l,y:c})}function Ju(n,t){let e=Ks(n).scrollLeft;return t?t.left+e:mi(Ie(n)).left+e}function Lg(n,t,e){e===void 0&&(e=!1);let i=n.getBoundingClientRect(),r=i.left+t.scrollLeft-(e?0:Ju(n,i)),s=i.top+t.scrollTop;return{x:r,y:s}}function FM(n){let{elements:t,rect:e,offsetParent:i,strategy:r}=n,s=r==="fixed",o=Ie(i),a=t?Qs(t.floating):!1;if(i===o||a&&s)return e;let l={scrollLeft:0,scrollTop:0},c=Ce(1),u=Ce(0),f=Ae(i);if((f||!f&&!s)&&((di(i)!=="body"||_r(o))&&(l=Ks(i)),Ae(i))){let h=mi(i);c=Or(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let d=o&&!f&&!s?Lg(o,l,!0):Ce(0);return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:e.y*c.y-l.scrollTop*c.y+u.y+d.y}}function NM(n){return Array.from(n.getClientRects())}function RM(n){let t=Ie(n),e=Ks(n),i=n.ownerDocument.body,r=An(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=An(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+Ju(n),a=-e.scrollTop;return xe(i).direction==="rtl"&&(o+=An(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}function WM(n,t){let e=ee(n),i=Ie(n),r=e.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;let c=Sl();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a,y:l}}function HM(n,t){let e=mi(n,!0,t==="fixed"),i=e.top+n.clientTop,r=e.left+n.clientLeft,s=Ae(n)?Or(n):Ce(1),o=n.clientWidth*s.x,a=n.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Pg(n,t,e){let i;if(t==="viewport")i=WM(n,e);else if(t==="document")i=RM(Ie(n));else if(ye(t))i=HM(t,e);else{let r=Ag(n);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return fi(i)}function Fg(n,t){let e=fn(n);return e===t||!ye(e)||hi(e)?!1:xe(e).position==="fixed"||Fg(e,t)}function VM(n,t){let e=t.get(n);if(e)return e;let i=wr(n,[],!1).filter(a=>ye(a)&&di(a)!=="body"),r=null,s=xe(n).position==="fixed",o=s?fn(n):n;for(;ye(o)&&!hi(o);){let a=xe(o),l=Dl(o);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_r(o)&&!l&&Fg(n,o))?i=i.filter(u=>u!==o):r=a,o=fn(o)}return t.set(n,i),i}function zM(n){let{element:t,boundary:e,rootBoundary:i,strategy:r}=n,o=[...e==="clippingAncestors"?Qs(t)?[]:VM(t,this._c):[].concat(e),i],a=o[0],l=o.reduce((c,u)=>{let f=Pg(t,u,r);return c.top=An(f.top,c.top),c.right=qs(f.right,c.right),c.bottom=qs(f.bottom,c.bottom),c.left=An(f.left,c.left),c},Pg(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function BM(n){let{width:t,height:e}=Ig(n);return{width:t,height:e}}function YM(n,t,e){let i=Ae(t),r=Ie(t),s=e==="fixed",o=mi(n,!0,s,t),a={scrollLeft:0,scrollTop:0},l=Ce(0);if(i||!i&&!s)if((di(t)!=="body"||_r(r))&&(a=Ks(t)),i){let d=mi(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&(l.x=Ju(r));let c=r&&!i&&!s?Lg(r,a):Ce(0),u=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:o.width,height:o.height}}function Qu(n){return xe(n).position==="static"}function Cg(n,t){if(!Ae(n)||xe(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return Ie(n)===e&&(e=e.ownerDocument.body),e}function Ng(n,t){let e=ee(n);if(Qs(n))return e;if(!Ae(n)){let r=fn(n);for(;r&&!hi(r);){if(ye(r)&&!Qu(r))return r;r=fn(r)}return e}let i=Cg(n,t);for(;i&&Dg(i)&&Qu(i);)i=Cg(i,t);return i&&hi(i)&&Qu(i)&&!Dl(i)?e:i||Sg(n)||e}var jM=async function(n){let t=this.getOffsetParent||Ng,e=this.getDimensions,i=await e(n.floating);return{reference:YM(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $M(n){return xe(n).direction==="rtl"}var UM={convertOffsetParentRelativeRectToViewportRelativeRect:FM,getDocumentElement:Ie,getClippingRect:zM,getOffsetParent:Ng,getElementRects:jM,getClientRects:NM,getDimensions:BM,getScale:Or,isElement:ye,isRTL:$M};function Rg(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function qM(n,t){let e=null,i,r=Ie(n);function s(){var a;clearTimeout(i),(a=e)==null||a.disconnect(),e=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();let c=n.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(a||t(),!d||!h)return;let m=Xs(f),p=Xs(r.clientWidth-(u+d)),y=Xs(r.clientHeight-(f+h)),x=Xs(u),O={rootMargin:-m+"px "+-p+"px "+-y+"px "+-x+"px",threshold:An(0,qs(1,l))||1},g=!0;function w(_){let T=_[0].intersectionRatio;if(T!==l){if(!g)return o();T?o(!1,T):i=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!Rg(c,n.getBoundingClientRect())&&o(),g=!1}try{e=new IntersectionObserver(w,ct(L({},O),{root:r.ownerDocument}))}catch(_){e=new IntersectionObserver(w,O)}e.observe(n)}return o(!0),s}function Wg(n,t,e,i){i===void 0&&(i={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=Ku(n),u=r||s?[...c?wr(c):[],...wr(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",e,{passive:!0}),s&&x.addEventListener("resize",e)});let f=c&&a?qM(c,e):null,d=-1,h=null;o&&(h=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(t)})),e()}),c&&!l&&h.observe(c),h.observe(t));let m,p=l?mi(n):null;l&&y();function y(){let x=mi(n);p&&!Rg(p,x)&&e(),p=x,m=requestAnimationFrame(y)}return e(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var Hg=Mg;var Vg=Og;var zg=(n,t,e)=>{let i=new Map,r=L({platform:UM},e),s=ct(L({},r.platform),{_c:i});return wg(n,t,ct(L({},r),{platform:s}))};var ZM={mounted(){this.show=this._show.bind(this),this.hide=this._hide.bind(this),this.toggle=this._toggle.bind(this),this.stopHide=this._stopHide.bind(this),this.updatePosition=this._updatePosition.bind(this),this.run("mounted")},updated(){this.run("updated")},destroyed(){let n=this;typeof n.cleanup=="function"&&n.cleanup()},_show(){this.floatingEl.classList.remove("hidden"),this.floatingEl.dataset.minWidth!==void 0&&(this.floatingEl.style.minWidth=`${this.attachToEl.offsetWidth}px`),this.trigger==="click"&&this.floatingEl.focus({preventScroll:!0})},_hide(){this.floatingEl.classList.contains("hidden")||(this.hideTimeout=setTimeout(()=>{this.floatingEl.classList.add("hidden")},0))},_stopHide(){setTimeout(()=>{clearTimeout(this.hideTimeout)},0)},_toggle(){this.floatingEl.classList.contains("hidden")?this.show("toggle"):this.hide("toggle")},_updatePosition(){let n={placement:this.floatingEl.dataset.placement||"top",middleware:[Hg(6),Vg()]};zg(this.attachToEl,this.floatingEl,n).then(({x:t,y:e,arrow:i})=>{Object.assign(this.floatingEl.style,{left:`${t}px`,top:`${e}px`})})},run(n){this.floatingEl=this.el,this.attachToEl=document.getElementById(this.floatingEl.dataset.attachToId),this.trigger=this.floatingEl.dataset.trigger,this.attachToEl&&(this.updatePosition(),this.trigger==="hover"&&[["mouseenter",this.show],["mouseleave",this.hide],["focus",this.show],["blur",this.hide]].forEach(([t,e])=>{this.attachToEl.removeEventListener(t,e),this.attachToEl.addEventListener(t,e)}),this.trigger==="click"&&(this.attachToEl.removeEventListener("click",this.toggle),this.floatingEl.removeEventListener("mouseleave",this.hide),this.floatingEl.removeEventListener("blur",this.hide),this.attachToEl.removeEventListener("mousedown",this.stopHide),this.attachToEl.addEventListener("click",this.toggle),this.floatingEl.addEventListener("mouseleave",this.hide),this.floatingEl.addEventListener("blur",this.hide),this.attachToEl.addEventListener("mousedown",this.stopHide)),this.cleanup=Wg(this.attachToEl,this.floatingEl,this.updatePosition))}},Bg=ZM;var Yg={ChartJsHook:xm,LocalTimeHook:Ep,TippyHook:mg,FloatingHook:Bg};var XM={Hooks:Yg};
|
3
|
+ `):n}function nv(n,t){let{element:e,datasetIndex:i,index:r}=t,s=n.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:n,label:o,parsed:s.getParsed(r),raw:n.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function Nd(n,t){let e=n.chart.ctx,{body:i,footer:r,title:s}=n,{boxWidth:o,boxHeight:a}=t,l=Dt(t.bodyFont),c=Dt(t.titleFont),u=Dt(t.footerFont),f=s.length,d=r.length,h=i.length,m=Vt(t.padding),p=m.height,y=0,x=i.reduce((g,w)=>g+w.before.length+w.lines.length+w.after.length,0);if(x+=n.beforeBody.length+n.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),x){let g=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*g+(x-h)*l.lineHeight+(x-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let b=0,O=function(g){y=Math.max(y,e.measureText(g).width+b)};return e.save(),e.font=c.string,ot(n.title,O),e.font=l.string,ot(n.beforeBody.concat(n.afterBody),O),b=t.displayColors?o+2+t.boxPadding:0,ot(i,g=>{ot(g.before,O),ot(g.lines,O),ot(g.after,O)}),b=0,e.font=u.string,ot(n.footer,O),e.restore(),y+=m.width,{width:y,height:p}}function iv(n,t){let{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function rv(n,t,e,i){let{x:r,width:s}=i,o=e.caretSize+e.caretPadding;if(n==="left"&&r+s+o>t.width||n==="right"&&r-s-o<0)return!0}function sv(n,t,e,i){let{x:r,width:s}=e,{width:o,chartArea:{left:a,right:l}}=n,c="center";return i==="center"?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),rv(c,n,t,e)&&(c="center"),c}function Rd(n,t,e){let i=e.yAlign||t.yAlign||iv(n,e);return{xAlign:e.xAlign||t.xAlign||sv(n,t,e,i),yAlign:i}}function ov(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function av(n,t,e){let{y:i,height:r}=n;return t==="top"?i+=e:t==="bottom"?i-=r+e:i-=r/2,i}function Wd(n,t,e,i){let{caretSize:r,caretPadding:s,cornerRadius:o}=n,{xAlign:a,yAlign:l}=e,c=r+s,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:h}=_n(o),m=ov(t,a),p=av(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,d)+r:a==="right"&&(m+=Math.max(f,h)+r),{x:Et(m,0,i.width-t.width),y:Et(p,0,i.height-t.height)}}function zo(n,t,e){let i=Vt(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Hd(n){return We([],Ke(n))}function lv(n,t,e){return Ge(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Vd(n,t){let e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}var ph={beforeTitle:Ne,title(n){if(n.length>0){let t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Ne,beforeBody:Ne,beforeLabel:Ne,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");let e=n.formattedValue;return X(e)||(t+=e),t},labelColor(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Ne,afterBody:Ne,beforeFooter:Ne,footer:Ne,afterFooter:Ne};function Xt(n,t,e,i){let r=n[t].call(e,i);return typeof r=="undefined"?ph[t].call(e,i):r}var Qr=class extends ie{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,s=new $o(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=lv(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){let{callbacks:i}=e,r=Xt(i,"beforeTitle",this,t),s=Xt(i,"title",this,t),o=Xt(i,"afterTitle",this,t),a=[];return a=We(a,Ke(r)),a=We(a,Ke(s)),a=We(a,Ke(o)),a}getBeforeBody(t,e){return Hd(Xt(e.callbacks,"beforeBody",this,t))}getBody(t,e){let{callbacks:i}=e,r=[];return ot(t,s=>{let o={before:[],lines:[],after:[]},a=Vd(i,s);We(o.before,Ke(Xt(a,"beforeLabel",this,s))),We(o.lines,Xt(a,"label",this,s)),We(o.after,Ke(Xt(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(t,e){return Hd(Xt(e.callbacks,"afterBody",this,t))}getFooter(t,e){let{callbacks:i}=e,r=Xt(i,"beforeFooter",this,t),s=Xt(i,"footer",this,t),o=Xt(i,"afterFooter",this,t),a=[];return a=We(a,Ke(r)),a=We(a,Ke(s)),a=We(a,Ke(o)),a}_createItems(t){let e=this._active,i=this.chart.data,r=[],s=[],o=[],a=[],l,c;for(l=0,c=e.length;l<c;++l)a.push(nv(this.chart,e[l]));return t.filter&&(a=a.filter((u,f,d)=>t.filter(u,f,d,i))),t.itemSort&&(a=a.sort((u,f)=>t.itemSort(u,f,i))),ot(a,u=>{let f=Vd(t.callbacks,u);r.push(Xt(f,"labelColor",this,u)),s.push(Xt(f,"labelPointStyle",this,u)),o.push(Xt(f,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,e){let i=this.options.setContext(this.getContext()),r=this._active,s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0});else{let a=Ur[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);let l=this._size=Nd(this,i),c=Object.assign({},a,l),u=Rd(this.chart,i,c),f=Wd(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){let s=this.getCaretPosition(t,i,r);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){let{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=_n(a),{x:d,y:h}=t,{width:m,height:p}=e,y,x,b,O,g,w;return s==="center"?(g=h+p/2,r==="left"?(y=d,x=y-o,O=g+o,w=g-o):(y=d+m,x=y+o,O=g-o,w=g+o),b=y):(r==="left"?x=d+Math.max(l,u)+o:r==="right"?x=d+m-Math.max(c,f)-o:x=this.caretX,s==="top"?(O=h,g=O-o,y=x-o,b=x+o):(O=h+p,g=O+o,y=x+o,b=x-o),w=O),{x1:y,x2:x,x3:b,y1:O,y2:g,y3:w}}drawTitle(t,e,i){let r=this.title,s=r.length,o,a,l;if(s){let c=zn(i.rtl,this.x,this.width);for(t.x=zo(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",o=Dt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,l=0;l<s;++l)e.fillText(r[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===s&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,s){let o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=s,u=Dt(s.bodyFont),f=zo(this,"left",s),d=r.x(f),h=l<u.lineHeight?(u.lineHeight-l)/2:0,m=e.y+h;if(s.usePointStyle){let p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},y=r.leftForLtr(d,c)+c/2,x=m+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Po(t,p,y,x),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Po(t,p,y,x)}else{t.lineWidth=K(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;let p=r.leftForLtr(d,c),y=r.leftForLtr(r.xPlus(d,1),c-2),x=_n(o.borderRadius);Object.values(x).some(b=>b!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Ii(t,{x:p,y:m,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Ii(t,{x:y,y:m+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(p,m,c,l),t.strokeRect(p,m,c,l),t.fillStyle=o.backgroundColor,t.fillRect(y,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,f=Dt(i.bodyFont),d=f.lineHeight,h=0,m=zn(i.rtl,this.x,this.width),p=function(k){e.fillText(k,m.x(t.x+h),t.y+d/2),t.y+=d+s},y=m.textAlign(o),x,b,O,g,w,_,T;for(e.textAlign=o,e.textBaseline="middle",e.font=f.string,t.x=zo(this,y,i),e.fillStyle=i.bodyColor,ot(this.beforeBody,p),h=a&&y!=="right"?o==="center"?c/2+u:c+2+u:0,g=0,_=r.length;g<_;++g){for(x=r[g],b=this.labelTextColors[g],e.fillStyle=b,ot(x.before,p),O=x.lines,a&&O.length&&(this._drawColorBox(e,t,g,m,i),d=Math.max(f.lineHeight,l)),w=0,T=O.length;w<T;++w)p(O[w]),d=f.lineHeight;ot(x.after,p)}h=0,d=f.lineHeight,ot(this.afterBody,p),t.y-=s}drawFooter(t,e,i){let r=this.footer,s=r.length,o,a;if(s){let l=zn(i.rtl,this.x,this.width);for(t.x=zo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",o=Dt(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<s;++a)e.fillText(r[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){let{xAlign:s,yAlign:o}=this,{x:a,y:l}=t,{width:c,height:u}=i,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:m}=_n(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+f,l),o==="top"&&this.drawCaret(t,e,i,r),e.lineTo(a+c-d,l),e.quadraticCurveTo(a+c,l,a+c,l+d),o==="center"&&s==="right"&&this.drawCaret(t,e,i,r),e.lineTo(a+c,l+u-m),e.quadraticCurveTo(a+c,l+u,a+c-m,l+u),o==="bottom"&&this.drawCaret(t,e,i,r),e.lineTo(a+h,l+u),e.quadraticCurveTo(a,l+u,a,l+u-h),o==="center"&&s==="left"&&this.drawCaret(t,e,i,r),e.lineTo(a,l+f),e.quadraticCurveTo(a,l,a+f,l),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){let o=Ur[t.position].call(this,this._active,this._eventPosition);if(!o)return;let a=this._size=Nd(this,t),l=Object.assign({},o,this._size),c=Rd(e,t,l),u=Wd(t,l,c,e);(r._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;let o=Vt(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,r,e),fc(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),dc(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,r=t.map(({datasetIndex:a,index:l})=>{let c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!Fr(i,r),o=this._positionChanged(r,e);(s||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),a=this._positionChanged(o,t),l=e||!Fr(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,r){let s=this.options;if(t.type==="mouseout")return[];if(!r)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);let o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){let{caretX:i,caretY:r,options:s}=this,o=Ur[s.position].call(this,t,e);return o!==!1&&(i!==o.x||r!==o.y)}};v(Qr,"positioners",Ur);var cv={id:"tooltip",_element:Qr,positioners:Ur,afterInit(n,t,e){e&&(n.tooltip=new Qr({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){let t=n.tooltip;if(t&&t._willRender()){let e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",lt(A({},e),{cancelable:!0}))===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){let e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ph},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},uv=Object.freeze({__proto__:null,Colors:_0,Decimation:k0,Filler:U0,Legend:K0,SubTitle:ev,Title:tv,Tooltip:cv}),fv=(n,t,e,i)=>(typeof t=="string"?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function dv(n,t,e,i){let r=n.indexOf(t);if(r===-1)return fv(n,t,e,i);let s=n.lastIndexOf(t);return r!==s?e:r}var hv=(n,t)=>n===null?null:Et(Math.round(n),0,t);function zd(n){let t=this.getLabels();return n>=0&&n<t.length?t[n]:n}var qr=class extends tn{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let e=this._addedLabels;if(e.length){let i=this.getLabels();for(let{index:r,label:s}of e)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(X(t))return null;let i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:dv(i,t,$(e,t),this._addedLabels),hv(e,i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){let t=this.min,e=this.max,i=this.options.offset,r=[],s=this.getLabels();s=t===0&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)r.push({value:o});return r}getLabelForValue(t){return zd.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};v(qr,"id","category"),v(qr,"defaults",{ticks:{callback:zd}});function mv(n,t){let e=[],{bounds:r,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:d}=n,h=s||1,m=u-1,{min:p,max:y}=t,x=!X(o),b=!X(a),O=!X(c),g=(y-p)/(f+1),w=jl((y-p)/m/h)*h,_,T,k,D;if(w<1e-14&&!x&&!b)return[{value:p},{value:y}];D=Math.ceil(y/w)-Math.floor(p/w),D>m&&(w=jl(D*w/m/h)*h),X(l)||(_=Math.pow(10,l),w=Math.ceil(w*_)/_),r==="ticks"?(T=Math.floor(p/w)*w,k=Math.ceil(y/w)*w):(T=p,k=y),x&&b&&s&&Sf((a-o)/s,w/1e3)?(D=Math.round(Math.min((a-o)/w,u)),w=(a-o)/D,T=o,k=a):O?(T=x?o:T,k=b?a:k,D=c-1,w=(k-T)/D):(D=(k-T)/w,Ei(D,Math.round(D),w/1e3)?D=Math.round(D):D=Math.ceil(D));let E=Math.max(Ul(w),Ul(T));_=Math.pow(10,X(l)?E:l),T=Math.round(T*_)/_,k=Math.round(k*_)/_;let I=0;for(x&&(d&&T!==o?(e.push({value:o}),T<o&&I++,Ei(Math.round((T+I*w)*_)/_,o,Bd(o,g,n))&&I++):T<o&&I++);I<D;++I){let P=Math.round((T+I*w)*_)/_;if(b&&P>a)break;e.push({value:P})}return b&&d&&k!==a?e.length&&Ei(e[e.length-1].value,a,Bd(a,g,n))?e[e.length-1].value=a:e.push({value:a}):(!b||k===a)&&e.push({value:k}),e}function Bd(n,t,{horizontal:e,minRotation:i}){let r=le(i),s=(e?Math.sin(r):Math.cos(r))||.001,o=.75*t*(""+n).length;return Math.min(t/s,o)}var Yi=class extends tn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return X(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:r,max:s}=this,o=l=>r=e?r:l,a=l=>s=i?s:l;if(t){let l=be(r),c=be(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),t||o(r-l)}this.min=r,this.max=s}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:e,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},s=this._range||this,o=mv(r,s);return t.bounds==="ticks"&&$l(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Ci(t,this.chart.options.locale,this.options.ticks.format)}},Zr=class extends Yi{determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=yt(t)?t:0,this.max=yt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=le(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};v(Zr,"id","linear"),v(Zr,"defaults",{ticks:{callback:Nr.formatters.numeric}});var es=n=>Math.floor(Ze(n)),Yn=(n,t)=>Math.pow(10,es(n)+t);function Yd(n){return n/Math.pow(10,es(n))===1}function jd(n,t,e){let i=Math.pow(10,e),r=Math.floor(n/i);return Math.ceil(t/i)-r}function pv(n,t){let e=t-n,i=es(e);for(;jd(n,t,i)>10;)i++;for(;jd(n,t,i)<10;)i--;return Math.min(i,es(n))}function gv(n,{min:t,max:e}){t=Zt(n.min,t);let i=[],r=es(t),s=pv(t,e),o=s<0?Math.pow(10,Math.abs(s)):1,a=Math.pow(10,s),l=r>s?Math.pow(10,r):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/a/10)*a*10,f=Math.floor((c-u)/Math.pow(10,s)),d=Zt(n.min,Math.round((l+u+f*Math.pow(10,s))*o)/o);for(;d<e;)i.push({value:d,major:Yd(d),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(s++,f=2,o=s>=0?1:o),d=Math.round((l+u+f*Math.pow(10,s))*o)/o;let h=Zt(n.max,d);return i.push({value:h,major:Yd(h),significand:f}),i}var Xr=class extends tn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=Yi.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return yt(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=yt(t)?Math.max(0,t):null,this.max=yt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!yt(this._userMin)&&(this.min=t===Yn(this.min,0)?Yn(this.min,-1):Yn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,r=this.max,s=a=>i=t?i:a,o=a=>r=e?r:a;i===r&&(i<=0?(s(1),o(10)):(s(Yn(i,-1)),o(Yn(r,1)))),i<=0&&s(Yn(r,-1)),r<=0&&o(Yn(i,1)),this.min=i,this.max=r}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=gv(e,this);return t.bounds==="ticks"&&$l(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Ci(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=Ze(t),this._valueRange=Ze(this.max)-Ze(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ze(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}};v(Xr,"id","logarithmic"),v(Xr,"defaults",{ticks:{callback:Nr.formatters.logarithmic,major:{enabled:!0}}});function Rc(n){let t=n.ticks;if(t.display&&n.display){let e=Vt(t.backdropPadding);return $(t.font&&t.font.size,pt.font.size)+e.height}return 0}function yv(n,t,e){return e=dt(e)?e:[e],{w:Rf(n,t.string,e),h:e.length*t.lineHeight}}function $d(n,t,e,i,r){return n===i||n===r?{start:t-e/2,end:t+e/2}:n<i||n>r?{start:t-e,end:t}:{start:t,end:t+e}}function xv(n){let t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],r=[],s=n._pointLabels.length,o=n.options.pointLabels,a=o.centerPointLabels?ht/s:0;for(let l=0;l<s;l++){let c=o.setContext(n.getPointLabelContext(l));r[l]=c.padding;let u=n.getPointPosition(l,n.drawingArea+r[l],a),f=Dt(c.font),d=yv(n.ctx,f,n._pointLabels[l]);i[l]=d;let h=qt(n.getIndexAngle(l)+a),m=Math.round(ko(h)),p=$d(m,u.x,d.w,0,180),y=$d(m,u.y,d.h,90,270);bv(e,t,h,p,y)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=_v(n,i,r)}function bv(n,t,e,i,r){let s=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e)),a=0,l=0;i.start<t.l?(a=(t.l-i.start)/s,n.l=Math.min(n.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/s,n.r=Math.max(n.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/o,n.t=Math.min(n.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/o,n.b=Math.max(n.b,t.b+l))}function vv(n,t,e){let i=n.drawingArea,{extra:r,additionalAngle:s,padding:o,size:a}=e,l=n.getPointPosition(t,i+r+o,s),c=Math.round(ko(qt(l.angle+wt))),u=Tv(l.y,a.h,c),f=Ov(c),d=Mv(l.x,a.w,f);return{visible:!0,x:l.x,y:u,textAlign:f,left:d,top:u,right:d+a.w,bottom:u+a.h}}function wv(n,t){if(!t)return!0;let{left:e,top:i,right:r,bottom:s}=n;return!(Fe({x:e,y:i},t)||Fe({x:e,y:s},t)||Fe({x:r,y:i},t)||Fe({x:r,y:s},t))}function _v(n,t,e){let i=[],r=n._pointLabels.length,s=n.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:Rc(s)/2,additionalAngle:o?ht/r:0},c;for(let u=0;u<r;u++){l.padding=e[u],l.size=t[u];let f=vv(n,u,l);i.push(f),a==="auto"&&(f.visible=wv(f,c),f.visible&&(c=f))}return i}function Ov(n){return n===0||n===180?"center":n<180?"left":"right"}function Mv(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function Tv(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function kv(n,t,e){let{left:i,top:r,right:s,bottom:o}=e,{backdropColor:a}=t;if(!X(a)){let l=_n(t.borderRadius),c=Vt(t.backdropPadding);n.fillStyle=a;let u=i-c.left,f=r-c.top,d=s-i+c.width,h=o-r+c.height;Object.values(l).some(m=>m!==0)?(n.beginPath(),Ii(n,{x:u,y:f,w:d,h,radius:l}),n.fill()):n.fillRect(u,f,d,h)}}function Dv(n,t){let{ctx:e,options:{pointLabels:i}}=n;for(let r=t-1;r>=0;r--){let s=n._pointLabelItems[r];if(!s.visible)continue;let o=i.setContext(n.getPointLabelContext(r));kv(e,o,s);let a=Dt(o.font),{x:l,y:c,textAlign:u}=s;wn(e,n._pointLabels[r],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function gh(n,t,e,i){let{ctx:r}=n;if(e)r.arc(n.xCenter,n.yCenter,t,0,mt);else{let s=n.getPointPosition(0,t);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=n.getPointPosition(o,t),r.lineTo(s.x,s.y)}}function Sv(n,t,e,i,r){let s=n.ctx,o=t.circular,{color:a,lineWidth:l}=t;!o&&!i||!a||!l||e<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash||[]),s.lineDashOffset=r.dashOffset,s.beginPath(),gh(n,e,o,i),s.closePath(),s.stroke(),s.restore())}function Ev(n,t,e){return Ge(n,{label:e,index:t,type:"pointLabel"})}var $n=class extends Yi{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=Vt(Rc(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=yt(t)&&!isNaN(t)?t:0,this.max=yt(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Rc(this.options))}generateTickLabels(t){Yi.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{let r=ut(this.options.pointLabels.callback,[e,i],this);return r||r===0?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let t=this.options;t.display&&t.pointLabels.display?xv(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){let e=mt/(this._pointLabels.length||1),i=this.options.startAngle||0;return qt(t*e+le(i))}getDistanceFromCenterForValue(t){if(X(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(X(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t<e.length){let i=e[t];return Ev(this.getContext(),t,i)}}getPointPosition(t,e,i=0){let r=this.getIndexAngle(t)-wt+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:e,top:i,right:r,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:s}}drawBackground(){let{backgroundColor:t,grid:{circular:e}}=this.options;if(t){let i=this.ctx;i.save(),i.beginPath(),gh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){let t=this.ctx,e=this.options,{angleLines:i,grid:r,border:s}=e,o=this._pointLabels.length,a,l,c;if(e.pointLabels.display&&Dv(this,o),r.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);let d=this.getContext(f),h=r.setContext(d),m=s.setContext(d);Sv(this,h,l,o,m)}}),i.display){for(t.save(),a=o-1;a>=0;a--){let u=i.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=u;!d||!f||(t.lineWidth=d,t.strokeStyle=f,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let r=this.getIndexAngle(0),s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),u=Dt(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;let f=Vt(c.backdropPadding);t.fillRect(-o/2-f.left,-s-u.size/2-f.top,o+f.width,u.size+f.height)}wn(t,a.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}};v($n,"id","radialLinear"),v($n,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),v($n,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),v($n,"descriptors",{angleLines:{_fallback:"grid"}});var Qo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qt=Object.keys(Qo);function Ud(n,t){return n-t}function qd(n,t){if(X(t))return null;let e=n._adapter,{parser:i,round:r,isoWeekday:s}=n._parseOpts,o=t;return typeof i=="function"&&(o=i(o)),yt(o)||(o=typeof i=="string"?e.parse(o,i):e.parse(o)),o===null?null:(r&&(o=r==="week"&&(Vn(s)||s===!0)?e.startOf(o,"isoWeek",s):e.startOf(o,r)),+o)}function Zd(n,t,e,i){let r=Qt.length;for(let s=Qt.indexOf(n);s<r-1;++s){let o=Qo[Qt[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-t)/(a*o.size))<=i)return Qt[s]}return Qt[r-1]}function Pv(n,t,e,i,r){for(let s=Qt.length-1;s>=Qt.indexOf(e);s--){let o=Qt[s];if(Qo[o].common&&n._adapter.diff(r,i,o)>=t-1)return o}return Qt[e?Qt.indexOf(e):0]}function Cv(n){for(let t=Qt.indexOf(n)+1,e=Qt.length;t<e;++t)if(Qo[Qt[t]].common)return Qt[t]}function Xd(n,t,e){if(!e)n[t]=!0;else if(e.length){let{lo:i,hi:r}=Do(e,t),s=e[i]>=t?e[i]:e[r];n[s]=!0}}function Iv(n,t,e,i){let r=n._adapter,s=+r.startOf(t[0].value,i),o=t[t.length-1].value,a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}function Gd(n,t,e){let i=[],r={},s=t.length,o,a;for(o=0;o<s;++o)a=t[o],r[a]=o,i.push({value:a,major:!1});return s===0||!e?i:Iv(n,i,r,e)}var qn=class extends tn{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),r=this._adapter=new Wc._date(t.adapters.date);r.init(e),Di(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:qd(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:r,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(r=Math.min(r,c.min)),!a&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),r=yt(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),s=yt(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let s=this.min,o=this.max,a=Cf(r,s,o);return this._unit=e.unit||(i.autoSkip?Zd(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):Pv(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:Cv(this._unit),this.initOffsets(r),t.reverse&&a.reverse(),Gd(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,i=0,r,s;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?e=1-r:e=(this.getDecimalForValue(t[1])-r)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?i=s:i=(s-this.getDecimalForValue(t[t.length-2]))/2);let o=t.length<3?.5:.25;e=Et(e,0,o),i=Et(i,0,o),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){let t=this._adapter,e=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||Zd(s.minUnit,e,i,this._getLabelCapacity(e)),a=$(r.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Vn(l)||l===!0,u={},f=e,d,h;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);let m=r.ticks.source==="data"&&this.getDataTimestamps();for(d=f,h=0;d<i;d=+t.add(d,a,o),h++)Xd(u,d,m);return(d===i||r.bounds==="ticks"||h===1)&&Xd(u,d,m),Object.keys(u).sort(Ud).map(p=>+p)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){let r=this.options.time.displayFormats,s=this._unit,o=e||r[s];return this._adapter.format(t,o)}_tickFormatFunction(t,e,i,r){let s=this.options,o=s.ticks.callback;if(o)return ut(o,[t,e,i],this);let a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],f=c&&a[c],d=i[e],h=c&&f&&d&&d.major;return this._adapter.format(t,r||(h?f:u))}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){let e=this.options.ticks,i=this.ctx.measureText(t).width,r=le(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*s+a*o,h:i*o+a*s}}_getLabelCapacity(t){let e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Gd(this,[t],this._majorUnit),r),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,i=r.length;e<i;++e)t=t.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],e,i;if(t.length)return t;let r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push(qd(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Xl(t.sort(Ud))}};v(qn,"id","time"),v(qn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Bo(n,t,e){let i=0,r=n.length-1,s,o,a,l;e?(t>=n[i].pos&&t<=n[r].pos&&({lo:i,hi:r}=Le(n,"pos",t)),{pos:s,time:a}=n[i],{pos:o,time:l}=n[r]):(t>=n[i].time&&t<=n[r].time&&({lo:i,hi:r}=Le(n,"time",t)),{time:s,pos:a}=n[i],{time:o,pos:l}=n[r]);let c=o-s;return c?a+(l-a)*(t-s)/c:a}var Gr=class extends qn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Bo(e,this.min),this._tableRange=Bo(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:e,max:i}=this,r=[],s=[],o,a,l,c,u;for(o=0,a=t.length;o<a;++o)c=t[o],c>=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],l=r[o-1],c=r[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_generate(){let t=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((r,s)=>r-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Bo(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Bo(this._table,i*this._tableRange+this._minPos,!0)}};v(Gr,"id","timeseries"),v(Gr,"defaults",qn.defaults);var Av=Object.freeze({__proto__:null,CategoryScale:qr,LinearScale:Zr,LogarithmicScale:Xr,RadialLinearScale:$n,TimeScale:qn,TimeSeriesScale:Gr}),yh=[$x,p0,uv,Av];Gt.register(...yh);var Lv=Math.pow(10,8)*24*60*60*1e3,uT=-Lv,Ko=6048e5,xh=864e5,en=6e4,nn=36e5,bh=1e3;var Fv=3600;var vh=Fv*24,fT=vh*7,Nv=vh*365.2425,Rv=Nv/12,dT=Rv*3,Vc=Symbol.for("constructDateFrom");function q(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&Vc in n?n[Vc](t):n instanceof Date?new n.constructor(t):new Date(t)}function S(n,t){return q(t||n,n)}function Tn(n,t,e){let i=S(n,e==null?void 0:e.in);return isNaN(t)?q((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function ji(n,t,e){let i=S(n,e==null?void 0:e.in);if(isNaN(t))return q((e==null?void 0:e.in)||n,NaN);if(!t)return i;let r=i.getDate(),s=q((e==null?void 0:e.in)||n,i.getTime());s.setMonth(i.getMonth()+t+1,0);let o=s.getDate();return r>=o?s:(i.setFullYear(s.getFullYear(),s.getMonth(),r),i)}function $i(n,t,e){return q((e==null?void 0:e.in)||n,+S(n)+t)}function wh(n,t,e){return $i(n,t*nn,e)}var Wv={};function Kt(){return Wv}function zt(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.weekStartsOn)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)!=null?u:e.weekStartsOn)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:0,r=S(n,t==null?void 0:t.in),s=r.getDay(),o=(s<i?7:0)+s-i;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ve(n,t){return zt(n,lt(A({},t),{weekStartsOn:1}))}function Jo(n,t){let e=S(n,t==null?void 0:t.in),i=e.getFullYear(),r=q(e,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);let s=ve(r),o=q(e,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);let a=ve(o);return e.getTime()>=s.getTime()?i+1:e.getTime()>=a.getTime()?i:i-1}function Zn(n){let t=S(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Jt(n,...t){let e=q.bind(null,n||t.find(i=>typeof i=="object"));return t.map(e)}function is(n,t){let e=S(n,t==null?void 0:t.in);return e.setHours(0,0,0,0),e}function ta(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=is(i),o=is(r),a=+s-Zn(s),l=+o-Zn(o);return Math.round((a-l)/xh)}function _h(n,t){let e=Jo(n,t),i=q((t==null?void 0:t.in)||n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),ve(i)}function Oh(n,t,e){let i=S(n,e==null?void 0:e.in);return i.setTime(i.getTime()+t*en),i}function Mh(n,t,e){return ji(n,t*3,e)}function Th(n,t,e){return $i(n,t*1e3,e)}function kh(n,t,e){return Tn(n,t*7,e)}function Dh(n,t,e){return ji(n,t*12,e)}function Xn(n,t){let e=+S(n)-+S(t);return e<0?-1:e>0?1:e}function Sh(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function ea(n){return!(!Sh(n)&&typeof n!="number"||isNaN(+S(n)))}function Eh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=i.getFullYear()-r.getFullYear(),o=i.getMonth()-r.getMonth();return s*12+o}function Ph(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t);return i.getFullYear()-r.getFullYear()}function na(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=Ch(i,r),o=Math.abs(ta(i,r));i.setDate(i.getDate()-s*o);let a=+(Ch(i,r)===-s),l=s*(o-a);return l===0?0:l}function Ch(n,t){let e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function ze(n){return t=>{let i=(n?Math[n]:Math.trunc)(t);return i===0?0:i}}function Ih(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=(+i-+r)/nn;return ze(e==null?void 0:e.roundingMethod)(s)}function Ui(n,t){return+S(n)-+S(t)}function Ah(n,t,e){let i=Ui(n,t)/en;return ze(e==null?void 0:e.roundingMethod)(i)}function ia(n,t){let e=S(n,t==null?void 0:t.in);return e.setHours(23,59,59,999),e}function ra(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth();return e.setFullYear(e.getFullYear(),i+1,0),e.setHours(23,59,59,999),e}function Lh(n,t){let e=S(n,t==null?void 0:t.in);return+ia(e,t)==+ra(e,t)}function sa(n,t,e){let[i,r,s]=Jt(e==null?void 0:e.in,n,n,t),o=Xn(r,s),a=Math.abs(Eh(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);let l=Xn(r,s)===-o;Lh(i)&&a===1&&Xn(i,s)===1&&(l=!1);let c=o*(a-+l);return c===0?0:c}function Fh(n,t,e){let i=sa(n,t,e)/3;return ze(e==null?void 0:e.roundingMethod)(i)}function Nh(n,t,e){let i=Ui(n,t)/1e3;return ze(e==null?void 0:e.roundingMethod)(i)}function Rh(n,t,e){let i=na(n,t,e)/7;return ze(e==null?void 0:e.roundingMethod)(i)}function Wh(n,t,e){let[i,r]=Jt(e==null?void 0:e.in,n,t),s=Xn(i,r),o=Math.abs(Ph(i,r));i.setFullYear(1584),r.setFullYear(1584);let a=Xn(i,r)===-s,l=s*(o-+a);return l===0?0:l}function Hh(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth(),r=i-i%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function Vh(n,t){let e=S(n,t==null?void 0:t.in);return e.setDate(1),e.setHours(0,0,0,0),e}function zh(n,t){let e=S(n,t==null?void 0:t.in),i=e.getFullYear();return e.setFullYear(i+1,0,0),e.setHours(23,59,59,999),e}function oa(n,t){let e=S(n,t==null?void 0:t.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function Bh(n,t){let e=S(n,t==null?void 0:t.in);return e.setMinutes(59,59,999),e}function Yh(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.weekStartsOn)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)!=null?u:e.weekStartsOn)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:0,r=S(n,t==null?void 0:t.in),s=r.getDay(),o=(s<i?-7:0)+6-(s-i);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function jh(n,t){let e=S(n,t==null?void 0:t.in);return e.setSeconds(59,999),e}function $h(n,t){let e=S(n,t==null?void 0:t.in),i=e.getMonth(),r=i-i%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}function Uh(n,t){let e=S(n,t==null?void 0:t.in);return e.setMilliseconds(999),e}var Hv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qh=(n,t,e)=>{let i,r=Hv[n];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function aa(n){return(t={})=>{let e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}var Vv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zh={date:aa({formats:Vv,defaultWidth:"full"}),time:aa({formats:zv,defaultWidth:"full"}),dateTime:aa({formats:Bv,defaultWidth:"full"})};var Yv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xh=(n,t,e,i)=>Yv[n];function qi(n){return(t,e)=>{let i=e!=null&&e.context?String(e.context):"standalone",r;if(i==="formatting"&&n.formattingValues){let o=n.defaultFormattingWidth||n.defaultWidth,a=e!=null&&e.width?String(e.width):o;r=n.formattingValues[a]||n.formattingValues[o]}else{let o=n.defaultWidth,a=e!=null&&e.width?String(e.width):n.defaultWidth;r=n.values[a]||n.values[o]}let s=n.argumentCallback?n.argumentCallback(t):t;return r[s]}}var jv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Uv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Zv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gv=(n,t)=>{let e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Gh={ordinalNumber:Gv,era:qi({values:jv,defaultWidth:"wide"}),quarter:qi({values:$v,defaultWidth:"wide",argumentCallback:n=>n-1}),month:qi({values:Uv,defaultWidth:"wide"}),day:qi({values:qv,defaultWidth:"wide"}),dayPeriod:qi({values:Zv,defaultWidth:"wide",formattingValues:Xv,defaultFormattingWidth:"wide"})};function Zi(n){return(t,e={})=>{let i=e.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],s=t.match(r);if(!s)return null;let o=s[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Kv(a,f=>f.test(o)):Qv(a,f=>f.test(o)),c;c=n.valueCallback?n.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let u=t.slice(o.length);return{value:c,rest:u}}}function Qv(n,t){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Kv(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Qh(n){return(t,e={})=>{let i=t.match(n.matchPattern);if(!i)return null;let r=i[0],s=t.match(n.parsePattern);if(!s)return null;let o=n.valueCallback?n.valueCallback(s[0]):s[0];o=e.valueCallback?e.valueCallback(o):o;let a=t.slice(r.length);return{value:o,rest:a}}}var Jv=/^(\d+)(th|st|nd|rd)?/i,tw=/\d+/i,ew={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nw={any:[/^b/i,/^(a|c)/i]},iw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rw={any:[/1/i,/2/i,/3/i,/4/i]},sw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ow={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kh={ordinalNumber:Qh({matchPattern:Jv,parsePattern:tw,valueCallback:n=>parseInt(n,10)}),era:Zi({matchPatterns:ew,defaultMatchWidth:"wide",parsePatterns:nw,defaultParseWidth:"any"}),quarter:Zi({matchPatterns:iw,defaultMatchWidth:"wide",parsePatterns:rw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Zi({matchPatterns:sw,defaultMatchWidth:"wide",parsePatterns:ow,defaultParseWidth:"any"}),day:Zi({matchPatterns:aw,defaultMatchWidth:"wide",parsePatterns:lw,defaultParseWidth:"any"}),dayPeriod:Zi({matchPatterns:cw,defaultMatchWidth:"any",parsePatterns:uw,defaultParseWidth:"any"})};var rs={code:"en-US",formatDistance:qh,formatLong:Zh,formatRelative:Xh,localize:Gh,match:Kh,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Jh(n,t){let e=S(n,t==null?void 0:t.in);return ta(e,oa(e))+1}function la(n,t){let e=S(n,t==null?void 0:t.in),i=+ve(e)-+_h(e);return Math.round(i/Ko)+1}function Xi(n,t){var u,f,d,h,m,p,y,x;let e=S(n,t==null?void 0:t.in),i=e.getFullYear(),r=Kt(),s=(x=(y=(h=(d=t==null?void 0:t.firstWeekContainsDate)!=null?d:(f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)!=null?h:r.firstWeekContainsDate)!=null?y:(p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)!=null?x:1,o=q((t==null?void 0:t.in)||n,0);o.setFullYear(i+1,0,s),o.setHours(0,0,0,0);let a=zt(o,t),l=q((t==null?void 0:t.in)||n,0);l.setFullYear(i,0,s),l.setHours(0,0,0,0);let c=zt(l,t);return+e>=+a?i+1:+e>=+c?i:i-1}function tm(n,t){var a,l,c,u,f,d,h,m;let e=Kt(),i=(m=(h=(u=(c=t==null?void 0:t.firstWeekContainsDate)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)!=null?u:e.firstWeekContainsDate)!=null?h:(d=(f=e.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)!=null?m:1,r=Xi(n,t),s=q((t==null?void 0:t.in)||n,0);return s.setFullYear(r,0,i),s.setHours(0,0,0,0),zt(s,t)}function ca(n,t){let e=S(n,t==null?void 0:t.in),i=+zt(e,t)-+tm(e,t);return Math.round(i/Ko)+1}function rt(n,t){let e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}var rn={y(n,t){let e=n.getFullYear(),i=e>0?e:1-e;return rt(t==="yy"?i%100:i,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):rt(e+1,2)},d(n,t){return rt(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return rt(n.getHours()%12||12,t.length)},H(n,t){return rt(n.getHours(),t.length)},m(n,t){return rt(n.getMinutes(),t.length)},s(n,t){return rt(n.getSeconds(),t.length)},S(n,t){let e=t.length,i=n.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return rt(r,t.length)}};var Gi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zc={G:function(n,t,e){let i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let i=n.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return rn.y(n,t)},Y:function(n,t,e,i){let r=Xi(n,i),s=r>0?r:1-r;if(t==="YY"){let o=s%100;return rt(o,2)}return t==="Yo"?e.ordinalNumber(s,{unit:"year"}):rt(s,t.length)},R:function(n,t){let e=Jo(n);return rt(e,t.length)},u:function(n,t){let e=n.getFullYear();return rt(e,t.length)},Q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return rt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return rt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){let i=n.getMonth();switch(t){case"M":case"MM":return rn.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){let i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return rt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){let r=ca(n,i);return t==="wo"?e.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},I:function(n,t,e){let i=la(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):rn.d(n,t)},D:function(n,t,e){let i=Jh(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):rt(i,t.length)},E:function(n,t,e){let i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){let r=n.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return rt(s,2);case"eo":return e.ordinalNumber(s,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){let r=n.getDay(),s=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return rt(s,t.length);case"co":return e.ordinalNumber(s,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(n,t,e){let i=n.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return rt(r,t.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){let r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){let i=n.getHours(),r;switch(i===12?r=Gi.noon:i===0?r=Gi.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(n,t,e){let i=n.getHours(),r;switch(i>=17?r=Gi.evening:i>=12?r=Gi.afternoon:i>=4?r=Gi.morning:r=Gi.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return rn.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):rn.H(n,t)},K:function(n,t,e){let i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):rt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):rt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):rn.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):rn.s(n,t)},S:function(n,t){return rn.S(n,t)},X:function(n,t,e){let i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return nm(i);case"XXXX":case"XX":return Gn(i);case"XXXXX":case"XXX":default:return Gn(i,":")}},x:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"x":return nm(i);case"xxxx":case"xx":return Gn(i);case"xxxxx":case"xxx":default:return Gn(i,":")}},O:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+em(i,":");case"OOOO":default:return"GMT"+Gn(i,":")}},z:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+em(i,":");case"zzzz":default:return"GMT"+Gn(i,":")}},t:function(n,t,e){let i=Math.trunc(+n/1e3);return rt(i,t.length)},T:function(n,t,e){return rt(+n,t.length)}};function em(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=Math.trunc(i/60),s=i%60;return s===0?e+String(r):e+String(r)+t+rt(s,2)}function nm(n,t){return n%60===0?(n>0?"-":"+")+rt(Math.abs(n)/60,2):Gn(n,t)}function Gn(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=rt(Math.trunc(i/60),2),s=rt(i%60,2);return e+r+t+s}var im=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rm=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},fw=(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return im(n,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",im(i,t)).replace("{{time}}",rm(r,t))},ss={p:rm,P:fw};var dw=/^D+$/,hw=/^Y+$/,mw=["D","DD","YY","YYYY"];function ua(n){return dw.test(n)}function fa(n){return hw.test(n)}function os(n,t,e){let i=pw(n,t,e);if(console.warn(i),mw.includes(n))throw new RangeError(i)}function pw(n,t,e){let i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var gw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xw=/^'([^]*?)'?$/,bw=/''/g,vw=/[a-zA-Z]/;function sm(n,t,e){var u,f,d,h,m,p,y,x,b,O,g,w,_,T,k,D,E,I;let i=Kt(),r=(f=(u=e==null?void 0:e.locale)!=null?u:i.locale)!=null?f:rs,s=(O=(b=(p=(m=e==null?void 0:e.firstWeekContainsDate)!=null?m:(h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)!=null?p:i.firstWeekContainsDate)!=null?b:(x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)!=null?O:1,o=(I=(E=(T=(_=e==null?void 0:e.weekStartsOn)!=null?_:(w=(g=e==null?void 0:e.locale)==null?void 0:g.options)==null?void 0:w.weekStartsOn)!=null?T:i.weekStartsOn)!=null?E:(D=(k=i.locale)==null?void 0:k.options)==null?void 0:D.weekStartsOn)!=null?I:0,a=S(n,e==null?void 0:e.in);if(!ea(a))throw new RangeError("Invalid time value");let l=t.match(yw).map(P=>{let N=P[0];if(N==="p"||N==="P"){let G=ss[N];return G(P,r.formatLong)}return P}).join("").match(gw).map(P=>{if(P==="''")return{isToken:!1,value:"'"};let N=P[0];if(N==="'")return{isToken:!1,value:ww(P)};if(zc[N])return{isToken:!0,value:P};if(N.match(vw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return{isToken:!1,value:P}});r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));let c={firstWeekContainsDate:s,weekStartsOn:o,locale:r};return l.map(P=>{if(!P.isToken)return P.value;let N=P.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&fa(N)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&ua(N))&&os(N,t,String(n));let G=zc[N[0]];return G(a,N,r.localize,c)}).join("")}function ww(n){let t=n.match(xw);return t?t[1].replace(bw,"'"):n}function om(){return Object.assign({},Kt())}function am(n,t){let e=S(n,t==null?void 0:t.in).getDay();return e===0?7:e}function lm(n,t){let e=_w(t)?new t(0):q(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function _w(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}var Ow=10,da=class{constructor(){v(this,"subPriority",0)}validate(t,e){return!0}},ha=class extends da{constructor(t,e,i,r,s){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=r,s&&(this.subPriority=s)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},ma=class extends da{constructor(e,i){super();v(this,"priority",Ow);v(this,"subPriority",-1);this.context=e||(r=>q(i,r))}set(e,i){return i.timestampIsSet?e:q(e,lm(e,this.context))}};var F=class{run(t,e,i,r){let s=this.parse(t,e,i,r);return s?{setter:new ha(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(t,e,i){return!0}};var pa=class extends F{constructor(){super(...arguments);v(this,"priority",140);v(this,"incompatibleTokens",["R","u","t","T"])}parse(e,i,r){switch(i){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,i,r){return i.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};var et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ce={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ct(n,t){return n&&{value:t(n.value),rest:n.rest}}function tt(n,t){let e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function ue(n,t){let e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};let i=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,o=e[5]?parseInt(e[5],10):0;return{value:i*(r*nn+s*en+o*bh),rest:t.slice(e[0].length)}}function ga(n){return tt(et.anyDigitsSigned,n)}function U(n,t){switch(n){case 1:return tt(et.singleDigit,t);case 2:return tt(et.twoDigits,t);case 3:return tt(et.threeDigits,t);case 4:return tt(et.fourDigits,t);default:return tt(new RegExp("^\\d{1,"+n+"}"),t)}}function Qi(n,t){switch(n){case 1:return tt(et.singleDigitSigned,t);case 2:return tt(et.twoDigitsSigned,t);case 3:return tt(et.threeDigitsSigned,t);case 4:return tt(et.fourDigitsSigned,t);default:return tt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Ki(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ya(n,t){let e=t>0,i=e?t:1-t,r;if(i<=50)r=n||100;else{let s=i+50,o=Math.trunc(s/100)*100,a=n>=s%100;r=n+o-(a?100:0)}return e?r:1-r}function xa(n){return n%400===0||n%4===0&&n%100!==0}var ba=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,i,r){let s=o=>({year:o,isTwoDigitYear:i==="yy"});switch(i){case"y":return ct(U(4,e),s);case"yo":return ct(r.ordinalNumber(e,{unit:"year"}),s);default:return ct(U(i.length,e),s)}}validate(e,i){return i.isTwoDigitYear||i.year>0}set(e,i,r){let s=e.getFullYear();if(r.isTwoDigitYear){let a=ya(r.year,s);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let o=!("era"in i)||i.era===1?r.year:1-r.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}};var va=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,i,r){let s=o=>({year:o,isTwoDigitYear:i==="YY"});switch(i){case"Y":return ct(U(4,e),s);case"Yo":return ct(r.ordinalNumber(e,{unit:"year"}),s);default:return ct(U(i.length,e),s)}}validate(e,i){return i.isTwoDigitYear||i.year>0}set(e,i,r,s){let o=Xi(e,s);if(r.isTwoDigitYear){let l=ya(r.year,o);return e.setFullYear(l,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),zt(e,s)}let a=!("era"in i)||i.era===1?r.year:1-r.year;return e.setFullYear(a,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),zt(e,s)}};var wa=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,i){return i==="R"?Qi(4,e):Qi(i.length,e)}set(e,i,r){let s=q(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),ve(s)}};var _a=class extends F{constructor(){super(...arguments);v(this,"priority",130);v(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,i){return i==="u"?Qi(4,e):Qi(i.length,e)}set(e,i,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};var Oa=class extends F{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"Q":case"QQ":return U(i.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=1&&i<=4}set(e,i,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};var Ma=class extends F{constructor(){super(...arguments);v(this,"priority",120);v(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"q":case"qq":return U(i.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=1&&i<=4}set(e,i,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};var Ta=class extends F{constructor(){super(...arguments);v(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);v(this,"priority",110)}parse(e,i,r){let s=o=>o-1;switch(i){case"M":return ct(tt(et.month,e),s);case"MM":return ct(U(2,e),s);case"Mo":return ct(r.ordinalNumber(e,{unit:"month"}),s);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};var ka=class extends F{constructor(){super(...arguments);v(this,"priority",110);v(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,i,r){let s=o=>o-1;switch(i){case"L":return ct(tt(et.month,e),s);case"LL":return ct(U(2,e),s);case"Lo":return ct(r.ordinalNumber(e,{unit:"month"}),s);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};function cm(n,t,e){let i=S(n,e==null?void 0:e.in),r=ca(i,e)-t;return i.setDate(i.getDate()-r*7),S(i,e==null?void 0:e.in)}var Da=class extends F{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,i,r){switch(i){case"w":return tt(et.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=53}set(e,i,r,s){return zt(cm(e,r,s),s)}};function um(n,t,e){let i=S(n,e==null?void 0:e.in),r=la(i,e)-t;return i.setDate(i.getDate()-r*7),i}var Sa=class extends F{constructor(){super(...arguments);v(this,"priority",100);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,i,r){switch(i){case"I":return tt(et.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=53}set(e,i,r){return ve(um(e,r))}};var Mw=[31,28,31,30,31,30,31,31,30,31,30,31],Tw=[31,29,31,30,31,30,31,31,30,31,30,31],Ea=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"subPriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"d":return tt(et.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return U(i.length,e)}}validate(e,i){let r=e.getFullYear(),s=xa(r),o=e.getMonth();return s?i>=1&&i<=Tw[o]:i>=1&&i<=Mw[o]}set(e,i,r){return e.setDate(r),e.setHours(0,0,0,0),e}};var Pa=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"subpriority",1);v(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,i,r){switch(i){case"D":case"DD":return tt(et.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return U(i.length,e)}}validate(e,i){let r=e.getFullYear();return xa(r)?i>=1&&i<=366:i>=1&&i<=365}set(e,i,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}};function Ji(n,t,e){var f,d,h,m,p,y,x,b;let i=Kt(),r=(b=(x=(m=(h=e==null?void 0:e.weekStartsOn)!=null?h:(d=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?m:i.weekStartsOn)!=null?x:(y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.weekStartsOn)!=null?b:0,s=S(n,e==null?void 0:e.in),o=s.getDay(),l=(t%7+7)%7,c=7-r,u=t<0||t>6?t-(o+c)%7:(l+c)%7-(o+c)%7;return Tn(s,u,e)}var Ca=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,i,r){switch(i){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Ji(e,r,s),e.setHours(0,0,0,0),e}};var Ia=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,i,r,s){let o=a=>{let l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(i){case"e":case"ee":return ct(U(i.length,e),o);case"eo":return ct(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Ji(e,r,s),e.setHours(0,0,0,0),e}};var Aa=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,i,r,s){let o=a=>{let l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(i){case"c":case"cc":return ct(U(i.length,e),o);case"co":return ct(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,i){return i>=0&&i<=6}set(e,i,r,s){return e=Ji(e,r,s),e.setHours(0,0,0,0),e}};function fm(n,t,e){let i=S(n,e==null?void 0:e.in),r=am(i,e),s=t-r;return Tn(i,s,e)}var La=class extends F{constructor(){super(...arguments);v(this,"priority",90);v(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,i,r){let s=o=>o===0?7:o;switch(i){case"i":case"ii":return U(i.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return ct(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return ct(r.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ct(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ct(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,i){return i>=1&&i<=7}set(e,i,r){return e=fm(e,r),e.setHours(0,0,0,0),e}};var Fa=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,i,r){switch(i){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Ki(r),0,0,0),e}};var Na=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,i,r){switch(i){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Ki(r),0,0,0),e}};var Ra=class extends F{constructor(){super(...arguments);v(this,"priority",80);v(this,"incompatibleTokens",["a","b","t","T"])}parse(e,i,r){switch(i){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,i,r){return e.setHours(Ki(r),0,0,0),e}};var Wa=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,i,r){switch(i){case"h":return tt(et.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=12}set(e,i,r){let s=e.getHours()>=12;return s&&r<12?e.setHours(r+12,0,0,0):!s&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}};var Ha=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,i,r){switch(i){case"H":return tt(et.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=23}set(e,i,r){return e.setHours(r,0,0,0),e}};var Va=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,i,r){switch(i){case"K":return tt(et.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=11}set(e,i,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}};var za=class extends F{constructor(){super(...arguments);v(this,"priority",70);v(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,i,r){switch(i){case"k":return tt(et.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return U(i.length,e)}}validate(e,i){return i>=1&&i<=24}set(e,i,r){let s=r<=24?r%24:r;return e.setHours(s,0,0,0),e}};var Ba=class extends F{constructor(){super(...arguments);v(this,"priority",60);v(this,"incompatibleTokens",["t","T"])}parse(e,i,r){switch(i){case"m":return tt(et.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=59}set(e,i,r){return e.setMinutes(r,0,0),e}};var Ya=class extends F{constructor(){super(...arguments);v(this,"priority",50);v(this,"incompatibleTokens",["t","T"])}parse(e,i,r){switch(i){case"s":return tt(et.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return U(i.length,e)}}validate(e,i){return i>=0&&i<=59}set(e,i,r){return e.setSeconds(r,0),e}};var ja=class extends F{constructor(){super(...arguments);v(this,"priority",30);v(this,"incompatibleTokens",["t","T"])}parse(e,i){let r=s=>Math.trunc(s*Math.pow(10,-i.length+3));return ct(U(i.length,e),r)}set(e,i,r){return e.setMilliseconds(r),e}};var $a=class extends F{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","x"])}parse(e,i){switch(i){case"X":return ue(ce.basicOptionalMinutes,e);case"XX":return ue(ce.basic,e);case"XXXX":return ue(ce.basicOptionalSeconds,e);case"XXXXX":return ue(ce.extendedOptionalSeconds,e);case"XXX":default:return ue(ce.extended,e)}}set(e,i,r){return i.timestampIsSet?e:q(e,e.getTime()-Zn(e)-r)}};var Ua=class extends F{constructor(){super(...arguments);v(this,"priority",10);v(this,"incompatibleTokens",["t","T","X"])}parse(e,i){switch(i){case"x":return ue(ce.basicOptionalMinutes,e);case"xx":return ue(ce.basic,e);case"xxxx":return ue(ce.basicOptionalSeconds,e);case"xxxxx":return ue(ce.extendedOptionalSeconds,e);case"xxx":default:return ue(ce.extended,e)}}set(e,i,r){return i.timestampIsSet?e:q(e,e.getTime()-Zn(e)-r)}};var qa=class extends F{constructor(){super(...arguments);v(this,"priority",40);v(this,"incompatibleTokens","*")}parse(e){return ga(e)}set(e,i,r){return[q(e,r*1e3),{timestampIsSet:!0}]}};var Za=class extends F{constructor(){super(...arguments);v(this,"priority",20);v(this,"incompatibleTokens","*")}parse(e){return ga(e)}set(e,i,r){return[q(e,r),{timestampIsSet:!0}]}};var dm={G:new pa,y:new ba,Y:new va,R:new wa,u:new _a,Q:new Oa,q:new Ma,M:new Ta,L:new ka,w:new Da,I:new Sa,d:new Ea,D:new Pa,E:new Ca,e:new Ia,c:new Aa,i:new La,a:new Fa,b:new Na,B:new Ra,h:new Wa,H:new Ha,K:new Va,k:new za,m:new Ba,s:new Ya,S:new ja,X:new $a,x:new Ua,t:new qa,T:new Za};var kw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sw=/^'([^]*?)'?$/,Ew=/''/g,Pw=/\S/,Cw=/[a-zA-Z]/;function hm(n,t,e,i){var y,x,b,O,g,w,_,T,k,D,E,I,P,N,G,V,B,Y;let r=()=>q((i==null?void 0:i.in)||e,NaN),s=om(),o=(x=(y=i==null?void 0:i.locale)!=null?y:s.locale)!=null?x:rs,a=(D=(k=(w=(g=i==null?void 0:i.firstWeekContainsDate)!=null?g:(O=(b=i==null?void 0:i.locale)==null?void 0:b.options)==null?void 0:O.firstWeekContainsDate)!=null?w:s.firstWeekContainsDate)!=null?k:(T=(_=s.locale)==null?void 0:_.options)==null?void 0:T.firstWeekContainsDate)!=null?D:1,l=(Y=(B=(N=(P=i==null?void 0:i.weekStartsOn)!=null?P:(I=(E=i==null?void 0:i.locale)==null?void 0:E.options)==null?void 0:I.weekStartsOn)!=null?N:s.weekStartsOn)!=null?B:(V=(G=s.locale)==null?void 0:G.options)==null?void 0:V.weekStartsOn)!=null?Y:0;if(!t)return n?r():S(e,i==null?void 0:i.in);let c={firstWeekContainsDate:a,weekStartsOn:l,locale:o},u=[new ma(i==null?void 0:i.in,e)],f=t.match(Dw).map(L=>{let W=L[0];if(W in ss){let Q=ss[W];return Q(L,o.formatLong)}return L}).join("").match(kw),d=[];for(let L of f){!(i!=null&&i.useAdditionalWeekYearTokens)&&fa(L)&&os(L,t,n),!(i!=null&&i.useAdditionalDayOfYearTokens)&&ua(L)&&os(L,t,n);let W=L[0],Q=dm[W];if(Q){let{incompatibleTokens:Nt}=Q;if(Array.isArray(Nt)){let Yt=d.find(kt=>Nt.includes(kt.token)||kt.token===W);if(Yt)throw new RangeError(`The format string mustn't contain \`${Yt.fullToken}\` and \`${L}\` at the same time`)}else if(Q.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${L}\` and any other token at the same time`);d.push({token:W,fullToken:L});let Mt=Q.run(n,L,o.match,c);if(!Mt)return r();u.push(Mt.setter),n=Mt.rest}else{if(W.match(Cw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");if(L==="''"?L="'":W==="'"&&(L=Iw(L)),n.indexOf(L)===0)n=n.slice(L.length);else return r()}}if(n.length>0&&Pw.test(n))return r();let h=u.map(L=>L.priority).sort((L,W)=>W-L).filter((L,W,Q)=>Q.indexOf(L)===W).map(L=>u.filter(W=>W.priority===L).sort((W,Q)=>Q.subPriority-W.subPriority)).map(L=>L[0]),m=S(e,i==null?void 0:i.in);if(isNaN(+m))return r();let p={};for(let L of h){if(!L.validate(m,c))return r();let W=L.set(m,p,c);Array.isArray(W)?(m=W[0],Object.assign(p,W[1])):m=W}return m}function Iw(n){return n.match(Sw)[1].replace(Ew,"'")}function mm(n,t){let e=S(n,t==null?void 0:t.in);return e.setMinutes(0,0,0),e}function pm(n,t){let e=S(n,t==null?void 0:t.in);return e.setSeconds(0,0),e}function gm(n,t){let e=S(n,t==null?void 0:t.in);return e.setMilliseconds(0),e}function ym(n,t){var c;let e=()=>q(t==null?void 0:t.in,NaN),i=(c=t==null?void 0:t.additionalDigits)!=null?c:2,r=Nw(n),s;if(r.date){let u=Rw(r.date,i);s=Ww(u.restDateString,u.year)}if(!s||isNaN(+s))return e();let o=+s,a=0,l;if(r.time&&(a=Hw(r.time),isNaN(a)))return e();if(r.timezone){if(l=Vw(r.timezone),isNaN(l))return e()}else{let u=new Date(o+a),f=S(0,t==null?void 0:t.in);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return S(o+a+l,t==null?void 0:t.in)}var Xa={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Aw=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lw=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Fw=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Nw(n){let t={},e=n.split(Xa.dateTimeDelimiter),i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],Xa.timeZoneDelimiter.test(t.date)&&(t.date=n.split(Xa.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){let r=Xa.timezone.exec(i);r?(t.time=i.replace(r[1],""),t.timezone=r[1]):t.time=i}return t}function Rw(n,t){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};let r=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:s===null?r:s*100,restDateString:n.slice((i[1]||i[2]).length)}}function Ww(n,t){if(t===null)return new Date(NaN);let e=n.match(Aw);if(!e)return new Date(NaN);let i=!!e[4],r=as(e[1]),s=as(e[2])-1,o=as(e[3]),a=as(e[4]),l=as(e[5])-1;if(i)return $w(t,a,l)?zw(t,a,l):new Date(NaN);{let c=new Date(0);return!Yw(t,s,o)||!jw(t,r)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(r,o)),c)}}function as(n){return n?parseInt(n):1}function Hw(n){let t=n.match(Lw);if(!t)return NaN;let e=Bc(t[1]),i=Bc(t[2]),r=Bc(t[3]);return Uw(e,i,r)?e*nn+i*en+r*1e3:NaN}function Bc(n){return n&&parseFloat(n.replace(",","."))||0}function Vw(n){if(n==="Z")return 0;let t=n.match(Fw);if(!t)return 0;let e=t[1]==="+"?-1:1,i=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return qw(i,r)?e*(i*nn+r*en):NaN}function zw(n,t,e){let i=new Date(0);i.setUTCFullYear(n,0,4);let r=i.getUTCDay()||7,s=(t-1)*7+e+1-r;return i.setUTCDate(i.getUTCDate()+s),i}var Bw=[31,null,31,30,31,30,31,31,30,31,30,31];function xm(n){return n%400===0||n%4===0&&n%100!==0}function Yw(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(Bw[t]||(xm(n)?29:28))}function jw(n,t){return t>=1&&t<=(xm(n)?366:365)}function $w(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function Uw(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function qw(n,t){return t>=0&&t<=59}var Zw={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Wc._date.override({_id:"date-fns",formats:function(){return Zw},parse:function(n,t){if(n===null||typeof n=="undefined")return null;let e=typeof n;return e==="number"||n instanceof Date?n=S(n):e==="string"&&(typeof t=="string"?n=hm(n,t,new Date,this.options):n=ym(n,this.options)),ea(n)?n.getTime():null},format:function(n,t){return sm(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return $i(n,t);case"second":return Th(n,t);case"minute":return Oh(n,t);case"hour":return wh(n,t);case"day":return Tn(n,t);case"week":return kh(n,t);case"month":return ji(n,t);case"quarter":return Mh(n,t);case"year":return Dh(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return Ui(n,t);case"second":return Nh(n,t);case"minute":return Ah(n,t);case"hour":return Ih(n,t);case"day":return na(n,t);case"week":return Rh(n,t);case"month":return sa(n,t);case"quarter":return Fh(n,t);case"year":return Wh(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return gm(n);case"minute":return pm(n);case"hour":return mm(n);case"day":return is(n);case"week":return zt(n);case"isoWeek":return zt(n,{weekStartsOn:+e});case"month":return Vh(n);case"quarter":return Hh(n);case"year":return oa(n);default:return n}},endOf:function(n,t){switch(t){case"second":return Uh(n);case"minute":return jh(n);case"hour":return Bh(n);case"day":return ia(n);case"week":return Yh(n);case"month":return ra(n);case"quarter":return $h(n);case"year":return zh(n);default:return n}}});function*Xw(){for(yield 0;;)for(let n=1;n<10;n++){let t=1<<n;for(let e=1;e<=t;e+=2)yield e/t}}function*Gw(n=1){let t=Xw(),e=t.next();for(;!e.done;){let i=yo(Math.round(e.value*360),.6,.8);for(let r=0;r<n;r++)yield{background:Oi({r:i[0],g:i[1],b:i[2],a:192}),border:Oi({r:i[0],g:i[1],b:i[2],a:144})};i=yo(Math.round(e.value*360),.6,.5);for(let r=0;r<n;r++)yield{background:Oi({r:i[0],g:i[1],b:i[2],a:192}),border:Oi({r:i[0],g:i[1],b:i[2],a:144})};e=t.next()}}function Yc(n,t,e){return n.backgroundColor=n.backgroundColor||t,n.borderColor=n.borderColor||e,n.backgroundColor===t&&n.borderColor===e}function Ga(n,t,e){let i=n.next().value;return typeof t=="function"?t(Object.assign({colors:i},e)):i}var bm={id:"autocolors",beforeUpdate(n,t,e){let{mode:i="dataset",enabled:r=!0,customize:s,repeat:o}=e;if(!r)return;let a=Gw(o);if(e.offset)for(let u=0;u<e.offset;u++)a.next();if(i==="label")return Qw(n,a,s);let l=i==="dataset",c=Ga(a,s,{chart:n,datasetIndex:0,dataIndex:l?void 0:0});for(let u of n.data.datasets)if(l)Yc(u,c.background,c.border)&&(c=Ga(a,s,{chart:n,datasetIndex:u.index}));else{let f=[],d=[];for(let h=0;h<u.data.length;h++)f.push(c.background),d.push(c.border),c=Ga(a,s,{chart:n,datasetIndex:u.index,dataIndex:h});Yc(u,f,d)}}};function Qw(n,t,e){var r;let i={};for(let s of n.data.datasets){let o=(r=s.label)!=null?r:"";i[o]||(i[o]=Ga(t,e,{chart:n,datasetIndex:0,dataIndex:void 0,label:o}));let a=i[o];Yc(s,a.background,a.border)}}Gt.register(bm);var Kw={mounted(){var o,a,l,c,u;let n=JSON.parse(this.el.dataset.chartOptions),t=this.el.dataset.autocolor==="true",e=this.el.dataset.yLabelFormat;(o=n.options).plugins||(o.plugins={}),(a=n.options.plugins).autocolors||(a.autocolors={}),n.options.plugins.autocolors.enabled=t,n.options||(n.options={}),(l=n.options).scales||(l.scales={}),(c=n.options.scales).y||(c.y={}),(u=n.options.scales.y).ticks||(u.ticks={}),n.options.scales.y.ticks.callback=function(f,d,h){return Jw(f,e)};let i=this.el.querySelector("canvas").getContext("2d"),r=new Gt(i,n),s=this.el.dataset.event;console.log(s),s&&window.addEventListener("phx:"+s,f=>{console.log("event received",f.detail),r.data.datasets=f.detail.datasets,r.data.labels=f.detail.labels,r.update()})}};function Jw(n,t){switch(t){case"dollars":return t_(n);case"percent":return vm(n)+"%";default:return vm(n)}}function t_(n){return Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumSignificantDigits:3,notation:"compact"}).format(n)}function vm(n){return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var wm=Kw;var sn=class extends Error{},Qa=class extends sn{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Ka=class extends sn{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Ja=class extends sn{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},we=class extends sn{},tr=class extends sn{constructor(t){super(`Invalid unit ${t}`)}},_t=class extends sn{},_e=class extends sn{constructor(){super("Zone is an abstract class")}};var C="numeric",Oe="short",re="long",kn={year:C,month:C,day:C},ls={year:C,month:Oe,day:C},jc={year:C,month:Oe,day:C,weekday:Oe},cs={year:C,month:re,day:C},us={year:C,month:re,day:C,weekday:re},fs={hour:C,minute:C},ds={hour:C,minute:C,second:C},hs={hour:C,minute:C,second:C,timeZoneName:Oe},ms={hour:C,minute:C,second:C,timeZoneName:re},ps={hour:C,minute:C,hourCycle:"h23"},gs={hour:C,minute:C,second:C,hourCycle:"h23"},ys={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:Oe},xs={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:re},bs={year:C,month:C,day:C,hour:C,minute:C},vs={year:C,month:C,day:C,hour:C,minute:C,second:C},ws={year:C,month:Oe,day:C,hour:C,minute:C},_s={year:C,month:Oe,day:C,hour:C,minute:C,second:C},$c={year:C,month:Oe,day:C,weekday:Oe,hour:C,minute:C},Os={year:C,month:re,day:C,hour:C,minute:C,timeZoneName:Oe},Ms={year:C,month:re,day:C,hour:C,minute:C,second:C,timeZoneName:Oe},Ts={year:C,month:re,day:C,weekday:re,hour:C,minute:C,timeZoneName:re},ks={year:C,month:re,day:C,weekday:re,hour:C,minute:C,second:C,timeZoneName:re};var te=class{get type(){throw new _e}get name(){throw new _e}get ianaName(){return this.name}get isUniversal(){throw new _e}offsetName(t,e){throw new _e}formatOffset(t,e){throw new _e}offset(t){throw new _e}equals(t){throw new _e}get isValid(){throw new _e}};var Uc=null,Be=class extends te{static get instance(){return Uc===null&&(Uc=new Be),Uc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return el(t,e,i)}formatOffset(t,e){return Dn(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}};var il={};function e_(n){return il[n]||(il[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),il[n]}var n_={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function i_(n,t){let e=n.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}function r_(n,t){let e=n.formatToParts(t),i=[];for(let r=0;r<e.length;r++){let{type:s,value:o}=e[r],a=n_[s];s==="era"?i[a]=o:z(a)||(i[a]=parseInt(o,10))}return i}var nl={},Pt=class extends te{static create(t){return nl[t]||(nl[t]=new Pt(t)),nl[t]}static resetCache(){nl={},il={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(e){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Pt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return el(t,e,i,this.name)}formatOffset(t,e){return Dn(this.offset(t),e)}offset(t){let e=new Date(t);if(isNaN(e))return NaN;let i=e_(this.name),[r,s,o,a,l,c,u]=i.formatToParts?r_(i,e):i_(i,e);a==="BC"&&(r=-Math.abs(r)+1);let d=er({year:r,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0}),h=+e,m=h%1e3;return h-=m>=0?m:1e3+m,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}};var _m={};function s_(n,t={}){let e=JSON.stringify([n,t]),i=_m[e];return i||(i=new Intl.ListFormat(n,t),_m[e]=i),i}var qc={};function Zc(n,t={}){let e=JSON.stringify([n,t]),i=qc[e];return i||(i=new Intl.DateTimeFormat(n,t),qc[e]=i),i}var Xc={};function o_(n,t={}){let e=JSON.stringify([n,t]),i=Xc[e];return i||(i=new Intl.NumberFormat(n,t),Xc[e]=i),i}var Gc={};function a_(n,t={}){let o=t,{base:e}=o,i=wi(o,["base"]),r=JSON.stringify([n,i]),s=Gc[r];return s||(s=new Intl.RelativeTimeFormat(n,t),Gc[r]=s),s}var Ds=null;function l_(){return Ds||(Ds=new Intl.DateTimeFormat().resolvedOptions().locale,Ds)}var Om={};function c_(n){let t=Om[n];if(!t){let e=new Intl.Locale(n);t="getWeekInfo"in e?e.getWeekInfo():e.weekInfo,Om[n]=t}return t}function u_(n){let t=n.indexOf("-x-");t!==-1&&(n=n.substring(0,t));let e=n.indexOf("-u-");if(e===-1)return[n];{let i,r;try{i=Zc(n).resolvedOptions(),r=n}catch(a){let l=n.substring(0,e);i=Zc(l).resolvedOptions(),r=l}let{numberingSystem:s,calendar:o}=i;return[r,s,o]}}function f_(n,t,e){return(e||t)&&(n.includes("-u-")||(n+="-u"),e&&(n+=`-ca-${e}`),t&&(n+=`-nu-${t}`)),n}function d_(n){let t=[];for(let e=1;e<=12;e++){let i=H.utc(2009,e,1);t.push(n(i))}return t}function h_(n){let t=[];for(let e=1;e<=7;e++){let i=H.utc(2016,11,13+e);t.push(n(i))}return t}function rl(n,t,e,i){let r=n.listingMode();return r==="error"?null:r==="en"?e(t):i(t)}function m_(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}var Qc=class{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;let a=i,{padTo:r,floor:s}=a,o=wi(a,["padTo","floor"]);if(!e||Object.keys(o).length>0){let l=A({useGrouping:!1},i);i.padTo>0&&(l.minimumIntegerDigits=i.padTo),this.inf=o_(t,l)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}else{let e=this.floor?Math.floor(t):nr(t,3);return xt(e,this.padTo)}}},Kc=class{constructor(t,e,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let o=-1*(t.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Pt.create(a).valid?(r=a,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let s=A({},this.opts);s.timeZone=s.timeZone||r,this.dtf=Zc(e,s)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(e=>{if(e.type==="timeZoneName"){let i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return lt(A({},e),{value:i})}else return e}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},Jc=class{constructor(t,e,i){this.opts=A({style:"long"},i),!e&&sl()&&(this.rtf=a_(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):Mm(e,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}},p_={firstDay:1,minimalDays:4,weekend:[6,7]},J=class{static fromOpts(t){return J.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,i,r,s=!1){let o=t||it.defaultLocale,a=o||(s?"en-US":l_()),l=e||it.defaultNumberingSystem,c=i||it.defaultOutputCalendar,u=Ss(r)||it.defaultWeekSettings;return new J(a,l,c,u,o)}static resetCache(){Ds=null,qc={},Xc={},Gc={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i,weekSettings:r}={}){return J.create(t,e,i,r)}constructor(t,e,i,r,s){let[o,a,l]=u_(t);this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=i||l||null,this.weekSettings=r,this.intl=f_(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=m_(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),e=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&e?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:J.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Ss(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(lt(A({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(lt(A({},t),{defaultToEN:!1}))}months(t,e=!1){return rl(this,t,tu,()=>{let i=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=d_(s=>this.extract(s,i,"month"))),this.monthsCache[r][t]})}weekdays(t,e=!1){return rl(this,t,eu,()=>{let i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=h_(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[r][t]})}meridiems(){return rl(this,void 0,()=>nu,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[H.utc(2016,11,13,9),H.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t){return rl(this,t,iu,()=>{let e={era:t};return this.eraCache[t]||(this.eraCache[t]=[H.utc(-40,1,1),H.utc(2017,1,1)].map(i=>this.extract(i,e,"era"))),this.eraCache[t]})}extract(t,e,i){let r=this.dtFormatter(t,e),s=r.formatToParts(),o=s.find(a=>a.type.toLowerCase()===i);return o?o.value:null}numberFormatter(t={}){return new Qc(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Kc(t,this.intl,e)}relFormatter(t={}){return new Jc(this.intl,this.isEnglish(),t)}listFormatter(t={}){return s_(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ol()?c_(this.locale):p_}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var su=null,bt=class extends te{static get utcInstance(){return su===null&&(su=new bt(0)),su}static instance(t){return t===0?bt.utcInstance:new bt(t)}static parseSpecifier(t){if(t){let e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new bt(Qn(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Dn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Dn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Dn(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}};var ir=class extends te{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Me(n,t){let e;if(z(n)||n===null)return t;if(n instanceof te)return n;if(Tm(n)){let i=n.toLowerCase();return i==="default"?t:i==="local"||i==="system"?Be.instance:i==="utc"||i==="gmt"?bt.utcInstance:bt.parseSpecifier(i)||Pt.create(n)}else return Te(n)?bt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new ir(n)}var ou={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},km={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},g_=ou.hanidec.replace(/[\[|\]]/g,"").split("");function Dm(n){let t=parseInt(n,10);if(isNaN(t)){t="";for(let e=0;e<n.length;e++){let i=n.charCodeAt(e);if(n[e].search(ou.hanidec)!==-1)t+=g_.indexOf(n[e]);else for(let r in km){let[s,o]=km[r];i>=s&&i<=o&&(t+=i-s)}}return parseInt(t,10)}else return t}var rr={};function Sm(){rr={}}function fe({numberingSystem:n},t=""){let e=n||"latn";return rr[e]||(rr[e]={}),rr[e][t]||(rr[e][t]=new RegExp(`${ou[e]}${t}`)),rr[e][t]}var Em=()=>Date.now(),Pm="system",Cm=null,Im=null,Am=null,Lm=60,Fm,Nm=null,it=class{static get now(){return Em}static set now(t){Em=t}static set defaultZone(t){Pm=t}static get defaultZone(){return Me(Pm,Be.instance)}static get defaultLocale(){return Cm}static set defaultLocale(t){Cm=t}static get defaultNumberingSystem(){return Im}static set defaultNumberingSystem(t){Im=t}static get defaultOutputCalendar(){return Am}static set defaultOutputCalendar(t){Am=t}static get defaultWeekSettings(){return Nm}static set defaultWeekSettings(t){Nm=Ss(t)}static get twoDigitCutoffYear(){return Lm}static set twoDigitCutoffYear(t){Lm=t%100}static get throwOnInvalid(){return Fm}static set throwOnInvalid(t){Fm=t}static resetCaches(){J.resetCache(),Pt.resetCache(),H.resetCache(),Sm()}};var At=class{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Rm=[0,31,59,90,120,151,181,212,243,273,304,334],Wm=[0,31,60,91,121,152,182,213,244,274,305,335];function de(n,t){return new At("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${n}, which is invalid`)}function al(n,t,e){let i=new Date(Date.UTC(n,t-1,e));n<100&&n>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);let r=i.getUTCDay();return r===0?7:r}function Hm(n,t,e){return e+(Jn(n)?Wm:Rm)[t-1]}function Vm(n,t){let e=Jn(n)?Wm:Rm,i=e.findIndex(s=>s<t),r=t-e[i];return{month:i+1,day:r}}function ll(n,t){return(n-t+7)%7+1}function Es(n,t=4,e=1){let{year:i,month:r,day:s}=n,o=Hm(i,r,s),a=ll(al(i,r,s),e),l=Math.floor((o-a+14-t)/7),c;return l<1?(c=i-1,l=Kn(c,t,e)):l>Kn(i,t,e)?(c=i+1,l=1):c=i,A({weekYear:c,weekNumber:l,weekday:a},Cs(n))}function au(n,t=4,e=1){let{weekYear:i,weekNumber:r,weekday:s}=n,o=ll(al(i,1,t),e),a=Sn(i),l=r*7+s-o-7+t,c;l<1?(c=i-1,l+=Sn(c)):l>a?(c=i+1,l-=Sn(i)):c=i;let{month:u,day:f}=Vm(c,l);return A({year:c,month:u,day:f},Cs(n))}function cl(n){let{year:t,month:e,day:i}=n,r=Hm(t,e,i);return A({year:t,ordinal:r},Cs(n))}function lu(n){let{year:t,ordinal:e}=n,{month:i,day:r}=Vm(t,e);return A({year:t,month:i,day:r},Cs(n))}function cu(n,t){if(!z(n.localWeekday)||!z(n.localWeekNumber)||!z(n.localWeekYear)){if(!z(n.weekday)||!z(n.weekNumber)||!z(n.weekYear))throw new we("Cannot mix locale-based week fields with ISO-based week fields");return z(n.localWeekday)||(n.weekday=n.localWeekday),z(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),z(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zm(n,t=4,e=1){let i=Ps(n.weekYear),r=se(n.weekNumber,1,Kn(n.weekYear,t,e)),s=se(n.weekday,1,7);return i?r?s?!1:de("weekday",n.weekday):de("week",n.weekNumber):de("weekYear",n.weekYear)}function Bm(n){let t=Ps(n.year),e=se(n.ordinal,1,Sn(n.year));return t?e?!1:de("ordinal",n.ordinal):de("year",n.year)}function uu(n){let t=Ps(n.year),e=se(n.month,1,12),i=se(n.day,1,sr(n.year,n.month));return t?e?i?!1:de("day",n.day):de("month",n.month):de("year",n.year)}function fu(n){let{hour:t,minute:e,second:i,millisecond:r}=n,s=se(t,0,23)||t===24&&e===0&&i===0&&r===0,o=se(e,0,59),a=se(i,0,59),l=se(r,0,999);return s?o?a?l?!1:de("millisecond",r):de("second",i):de("minute",e):de("hour",t)}function z(n){return typeof n=="undefined"}function Te(n){return typeof n=="number"}function Ps(n){return typeof n=="number"&&n%1===0}function Tm(n){return typeof n=="string"}function jm(n){return Object.prototype.toString.call(n)==="[object Date]"}function sl(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function ol(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(n){return!1}}function $m(n){return Array.isArray(n)?n:[n]}function du(n,t,e){if(n.length!==0)return n.reduce((i,r)=>{let s=[t(r),r];return i&&e(i[0],s[0])===i[0]?i:s},null)[1]}function Um(n,t){return t.reduce((e,i)=>(e[i]=n[i],e),{})}function En(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Ss(n){if(n==null)return null;if(typeof n!="object")throw new _t("Week settings must be an object");if(!se(n.firstDay,1,7)||!se(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(t=>!se(t,1,7)))throw new _t("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function se(n,t,e){return Ps(n)&&n>=t&&n<=e}function y_(n,t){return n-t*Math.floor(n/t)}function xt(n,t=2){let e=n<0,i;return e?i="-"+(""+-n).padStart(t,"0"):i=(""+n).padStart(t,"0"),i}function on(n){if(!(z(n)||n===null||n===""))return parseInt(n,10)}function Pn(n){if(!(z(n)||n===null||n===""))return parseFloat(n)}function Is(n){if(!(z(n)||n===null||n==="")){let t=parseFloat("0."+n)*1e3;return Math.floor(t)}}function nr(n,t,e=!1){let i=10**t;return(e?Math.trunc:Math.round)(n*i)/i}function Jn(n){return n%4===0&&(n%100!==0||n%400===0)}function Sn(n){return Jn(n)?366:365}function sr(n,t){let e=y_(t-1,12)+1,i=n+(t-e)/12;return e===2?Jn(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function er(n){let t=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(t=new Date(t),t.setUTCFullYear(n.year,n.month-1,n.day)),+t}function Ym(n,t,e){return-ll(al(n,1,t),e)+t-1}function Kn(n,t=4,e=1){let i=Ym(n,t,e),r=Ym(n+1,t,e);return(Sn(n)-i+r)/7}function As(n){return n>99?n:n>it.twoDigitCutoffYear?1900+n:2e3+n}function el(n,t,e,i=null){let r=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);let o=A({timeZoneName:t},s),a=new Intl.DateTimeFormat(e,o).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Qn(n,t){let e=parseInt(n,10);Number.isNaN(e)&&(e=0);let i=parseInt(t,10)||0,r=e<0||Object.is(e,-0)?-i:i;return e*60+r}function hu(n){let t=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(t))throw new _t(`Invalid unit value ${n}`);return t}function or(n,t){let e={};for(let i in n)if(En(n,i)){let r=n[i];if(r==null)continue;e[t(i)]=hu(r)}return e}function Dn(n,t){let e=Math.trunc(Math.abs(n/60)),i=Math.trunc(Math.abs(n%60)),r=n>=0?"+":"-";switch(t){case"short":return`${r}${xt(e,2)}:${xt(i,2)}`;case"narrow":return`${r}${e}${i>0?`:${i}`:""}`;case"techie":return`${r}${xt(e,2)}${xt(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Cs(n){return Um(n,["hour","minute","second","millisecond"])}var x_=["January","February","March","April","May","June","July","August","September","October","November","December"],mu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b_=["J","F","M","A","M","J","J","A","S","O","N","D"];function tu(n){switch(n){case"narrow":return[...b_];case"short":return[...mu];case"long":return[...x_];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var pu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],gu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],v_=["M","T","W","T","F","S","S"];function eu(n){switch(n){case"narrow":return[...v_];case"short":return[...gu];case"long":return[...pu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var nu=["AM","PM"],w_=["Before Christ","Anno Domini"],__=["BC","AD"],O_=["B","A"];function iu(n){switch(n){case"narrow":return[...O_];case"short":return[...__];case"long":return[...w_];default:return null}}function qm(n){return nu[n.hour<12?0:1]}function Zm(n,t){return eu(t)[n.weekday-1]}function Xm(n,t){return tu(t)[n.month-1]}function Gm(n,t){return iu(t)[n.year<0?0:1]}function Mm(n,t,e="always",i=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(n)===-1;if(e==="auto"&&s){let f=n==="days";switch(t){case 1:return f?"tomorrow":`next ${r[n][0]}`;case-1:return f?"yesterday":`last ${r[n][0]}`;case 0:return f?"today":`this ${r[n][0]}`;default:}}let o=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=r[n],u=i?l?c[1]:c[2]||c[1]:l?r[n][0]:n;return o?`${a} ${u} ago`:`in ${a} ${u}`}function Qm(n,t){let e="";for(let i of n)i.literal?e+=i.val:e+=t(i.val);return e}var M_={D:kn,DD:ls,DDD:cs,DDDD:us,t:fs,tt:ds,ttt:hs,tttt:ms,T:ps,TT:gs,TTT:ys,TTTT:xs,f:bs,ff:ws,fff:Os,ffff:Ts,F:vs,FF:_s,FFF:Ms,FFFF:ks},vt=class{static create(t,e={}){return new vt(t,e)}static parseFormat(t){let e=null,i="",r=!1,s=[];for(let o=0;o<t.length;o++){let a=t.charAt(o);a==="'"?(i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),e=null,i="",r=!r):r||a===e?i+=a:(i.length>0&&s.push({literal:/^\s+$/.test(i),val:i}),i=a,e=a)}return i.length>0&&s.push({literal:r||/^\s+$/.test(i),val:i}),s}static macroTokenToFormatOpts(t){return M_[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,A(A({},this.opts),e)).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,A(A({},this.opts),e))}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return xt(t,e);let i=A({},this.opts);return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){let i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(h,m)=>this.loc.extract(t,h,m),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",a=()=>i?qm(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,m)=>i?Xm(t,h):s(m?{month:h}:{month:h,day:"numeric"},"month"),c=(h,m)=>i?Zm(t,h):s(m?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{let m=vt.macroTokenToFormatOpts(h);return m?this.formatWithSystemDefault(t,m):h},f=h=>i?Gm(t,h):s({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Qm(vt.parseFormat(e),d)}formatDurationFromString(t,e){let i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{let u=i(c);return u?this.num(l.get(u),c.length):c},s=vt.parseFormat(e),o=s.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),a=t.shiftTo(...o.map(i).filter(l=>l));return Qm(s,r(a))}};var Jm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function lr(...n){let t=n.reduce((e,i)=>e+i.source,"");return RegExp(`^${t}$`)}function cr(...n){return t=>n.reduce(([e,i,r],s)=>{let[o,a,l]=s(t,r);return[A(A({},e),o),a||i,l]},[{},null,1]).slice(0,2)}function ur(n,...t){if(n==null)return[null,null];for(let[e,i]of t){let r=e.exec(n);if(r)return i(r)}return[null,null]}function tp(...n){return(t,e)=>{let i={},r;for(r=0;r<n.length;r++)i[n[r]]=on(t[e+r]);return[i,null,e+r]}}var ep=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,T_=`(?:${ep.source}?(?:\\[(${Jm.source})\\])?)?`,yu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,np=RegExp(`${yu.source}${T_}`),xu=RegExp(`(?:T${np.source})?`),k_=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,D_=/(\d{4})-?W(\d\d)(?:-?(\d))?/,S_=/(\d{4})-?(\d{3})/,E_=tp("weekYear","weekNumber","weekDay"),P_=tp("year","ordinal"),C_=/(\d{4})-(\d\d)-(\d\d)/,ip=RegExp(`${yu.source} ?(?:${ep.source}|(${Jm.source}))?`),I_=RegExp(`(?: ${ip.source})?`);function ar(n,t,e){let i=n[t];return z(i)?e:on(i)}function A_(n,t){return[{year:ar(n,t),month:ar(n,t+1,1),day:ar(n,t+2,1)},null,t+3]}function fr(n,t){return[{hours:ar(n,t,0),minutes:ar(n,t+1,0),seconds:ar(n,t+2,0),milliseconds:Is(n[t+3])},null,t+4]}function Ls(n,t){let e=!n[t]&&!n[t+1],i=Qn(n[t+1],n[t+2]),r=e?null:bt.instance(i);return[{},r,t+3]}function Fs(n,t){let e=n[t]?Pt.create(n[t]):null;return[{},e,t+1]}var L_=RegExp(`^T?${yu.source}$`),F_=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function N_(n){let[t,e,i,r,s,o,a,l,c]=n,u=t[0]==="-",f=l&&l[0]==="-",d=(h,m=!1)=>h!==void 0&&(m||h&&u)?-h:h;return[{years:d(Pn(e)),months:d(Pn(i)),weeks:d(Pn(r)),days:d(Pn(s)),hours:d(Pn(o)),minutes:d(Pn(a)),seconds:d(Pn(l),l==="-0"),milliseconds:d(Is(c),f)}]}var R_={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bu(n,t,e,i,r,s,o){let a={year:t.length===2?As(on(t)):on(t),month:mu.indexOf(e)+1,day:on(i),hour:on(r),minute:on(s)};return o&&(a.second=on(o)),n&&(a.weekday=n.length>3?pu.indexOf(n)+1:gu.indexOf(n)+1),a}var W_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function H_(n){let[,t,e,i,r,s,o,a,l,c,u,f]=n,d=bu(t,r,i,e,s,o,a),h;return l?h=R_[l]:c?h=0:h=Qn(u,f),[d,new bt(h)]}function V_(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var z_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,B_=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Y_=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Km(n){let[,t,e,i,r,s,o,a]=n;return[bu(t,r,i,e,s,o,a),bt.utcInstance]}function j_(n){let[,t,e,i,r,s,o,a]=n;return[bu(t,a,e,i,r,s,o),bt.utcInstance]}var $_=lr(k_,xu),U_=lr(D_,xu),q_=lr(S_,xu),Z_=lr(np),rp=cr(A_,fr,Ls,Fs),X_=cr(E_,fr,Ls,Fs),G_=cr(P_,fr,Ls,Fs),Q_=cr(fr,Ls,Fs);function sp(n){return ur(n,[$_,rp],[U_,X_],[q_,G_],[Z_,Q_])}function op(n){return ur(V_(n),[W_,H_])}function ap(n){return ur(n,[z_,Km],[B_,Km],[Y_,j_])}function lp(n){return ur(n,[F_,N_])}var K_=cr(fr);function cp(n){return ur(n,[L_,K_])}var J_=lr(C_,I_),tO=lr(ip),eO=cr(fr,Ls,Fs);function up(n){return ur(n,[J_,rp],[tO,eO])}var fp="Invalid Duration",hp={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},nO=A({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},hp),he=146097/400,dr=146097/4800,iO=A({years:{quarters:4,months:12,weeks:he/7,days:he,hours:he*24,minutes:he*24*60,seconds:he*24*60*60,milliseconds:he*24*60*60*1e3},quarters:{months:3,weeks:he/28,days:he/4,hours:he*24/4,minutes:he*24*60/4,seconds:he*24*60*60/4,milliseconds:he*24*60*60*1e3/4},months:{weeks:dr/7,days:dr,hours:dr*24,minutes:dr*24*60,seconds:dr*24*60*60,milliseconds:dr*24*60*60*1e3}},hp),ti=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rO=ti.slice(0).reverse();function Cn(n,t,e=!1){let i={values:e?t.values:A(A({},n.values),t.values||{}),loc:n.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||n.conversionAccuracy,matrix:t.matrix||n.matrix};return new Z(i)}function mp(n,t){var i;let e=(i=t.milliseconds)!=null?i:0;for(let r of rO.slice(1))t[r]&&(e+=t[r]*n[r].milliseconds);return e}function dp(n,t){let e=mp(n,t)<0?-1:1;ti.reduceRight((i,r)=>{if(z(t[r]))return i;if(i){let s=t[i]*e,o=n[r][i],a=Math.floor(s/o);t[r]+=a*e,t[i]-=a*o*e}return r},null),ti.reduce((i,r)=>{if(z(t[r]))return i;if(i){let s=t[i]%1;t[i]-=s,t[r]+=s*n[i][r]}return r},null)}function sO(n){let t={};for(let[e,i]of Object.entries(n))i!==0&&(t[e]=i);return t}var Z=class{constructor(t){let e=t.conversionAccuracy==="longterm"||!1,i=e?iO:nO;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||J.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,e){return Z.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(t==null||typeof t!="object")throw new _t(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Z({values:or(t,Z.normalizeUnit),loc:J.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Te(t))return Z.fromMillis(t);if(Z.isDuration(t))return t;if(typeof t=="object")return Z.fromObject(t);throw new _t(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){let[i]=lp(t);return i?Z.fromObject(i,e):Z.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){let[i]=cp(t);return i?Z.fromObject(i,e):Z.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the Duration is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Ja(i);return new Z({invalid:i})}static normalizeUnit(t){let e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!e)throw new tr(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){let i=lt(A({},e),{floor:e.round!==!1&&e.floor!==!1});return this.isValid?vt.create(this.loc,i).formatDurationFromString(this,t):fp}toHuman(t={}){if(!this.isValid)return fp;let e=ti.map(i=>{let r=this.values[i];return z(r)?null:this.loc.numberFormatter(lt(A({style:"unit",unitDisplay:"long"},t),{unit:i.slice(0,-1)})).format(r)}).filter(i=>i);return this.loc.listFormatter(A({type:"conjunction",style:t.listStyle||"narrow"},t)).format(e)}toObject(){return this.isValid?A({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=nr(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let e=this.toMillis();return e<0||e>=864e5?null:(t=lt(A({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{includeOffset:!1}),H.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?mp(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t),i={};for(let r of ti)(En(e.values,r)||En(this.values,r))&&(i[r]=e.get(r)+this.get(r));return Cn(this,{values:i},!0)}minus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;let e={};for(let i of Object.keys(this.values))e[i]=hu(t(this.values[i],i));return Cn(this,{values:e},!0)}get(t){return this[Z.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let e=A(A({},this.values),or(t,Z.normalizeUnit));return Cn(this,{values:e})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i,matrix:r}={}){let o={loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:i};return Cn(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return dp(this.matrix,t),Cn(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=sO(this.normalize().shiftToAll().toObject());return Cn(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>Z.normalizeUnit(o));let e={},i={},r=this.toObject(),s;for(let o of ti)if(t.indexOf(o)>=0){s=o;let a=0;for(let c in i)a+=this.matrix[c][o]*i[c],i[c]=0;Te(r[o])&&(a+=r[o]);let l=Math.trunc(a);e[o]=l,i[o]=(a*1e3-l*1e3)/1e3}else Te(r[o])&&(i[o]=r[o]);for(let o in i)i[o]!==0&&(e[s]+=o===s?i[o]:i[o]/this.matrix[s][o]);return dp(this.matrix,e),Cn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let e of Object.keys(this.values))t[e]=this.values[e]===0?0:-this.values[e];return Cn(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function e(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(let i of ti)if(!e(this.values[i],t.values[i]))return!1;return!0}};var hr="Invalid Interval";function oO(n,t){return!n||!n.isValid?ft.invalid("missing or invalid start"):!t||!t.isValid?ft.invalid("missing or invalid end"):t<n?ft.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${t.toISO()}`):null}var ft=class{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the Interval is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Ka(i);return new ft({invalid:i})}static fromDateTimes(t,e){let i=mr(t),r=mr(e),s=oO(i,r);return s==null?new ft({start:i,end:r}):s}static after(t,e){let i=Z.fromDurationLike(e),r=mr(t);return ft.fromDateTimes(r,r.plus(i))}static before(t,e){let i=Z.fromDurationLike(e),r=mr(t);return ft.fromDateTimes(r.minus(i),r)}static fromISO(t,e){let[i,r]=(t||"").split("/",2);if(i&&r){let s,o;try{s=H.fromISO(i,e),o=s.isValid}catch(c){o=!1}let a,l;try{a=H.fromISO(r,e),l=a.isValid}catch(c){l=!1}if(o&&l)return ft.fromDateTimes(s,a);if(o){let c=Z.fromISO(r,e);if(c.isValid)return ft.after(s,c)}else if(l){let c=Z.fromISO(i,e);if(c.isValid)return ft.before(a,c)}}return ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;let i=this.start.startOf(t,e),r;return e!=null&&e.useLocaleWeeks?r=this.end.reconfigure({locale:i.locale}):r=this.end,r=r.startOf(t,e),Math.floor(r.diff(i,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:e}={}){return this.isValid?ft.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];let e=t.map(mr).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),i=[],{s:r}=this,s=0;for(;r<this.e;){let o=e[s]||this.e,a=+o>+this.e?this.e:o;i.push(ft.fromDateTimes(r,a)),r=a,s+=1}return i}splitBy(t){let e=Z.fromDurationLike(t);if(!this.isValid||!e.isValid||e.as("milliseconds")===0)return[];let{s:i}=this,r=1,s,o=[];for(;i<this.e;){let a=this.start.plus(e.mapUnits(l=>l*r));s=+a>+this.e?this.e:a,o.push(ft.fromDateTimes(i,s)),i=s,r+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:ft.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;let e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return ft.fromDateTimes(e,i)}static merge(t){let[e,i]=t.sort((r,s)=>r.s-s.s).reduce(([r,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[r,s.union(o)]:[r.concat([s]),o]:[r,o],[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0,r=[],s=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(let l of a)i+=l.type==="s"?1:-1,i===1?e=l.time:(e&&+e!=+l.time&&r.push(ft.fromDateTimes(e,l.time)),e=null);return ft.merge(r)}difference(...t){return ft.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:hr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=kn,e={}){return this.isValid?vt.create(this.s.loc.clone(e),t).formatInterval(this):hr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:hr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:hr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:hr}toFormat(t,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:hr}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Z.invalid(this.invalidReason)}mapEndpoints(t){return ft.fromDateTimes(t(this.s),t(this.e))}};var an=class{static hasDST(t=it.defaultZone){let e=H.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Pt.isValidZone(t)}static normalizeZone(t){return Me(t,it.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||J.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||J.create(e,i,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||J.create(e,i,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||J.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:r=null}={}){return(r||J.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return J.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return J.create(e,null,"gregory").eras(t)}static features(){return{relative:sl(),localeWeek:ol()}}};function pp(n,t){let e=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=e(t)-e(n);return Math.floor(Z.fromMillis(i).as("days"))}function aO(n,t,e){let i=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let u=pp(l,c);return(u-u%7)/7}],["days",pp]],r={},s=n,o,a;for(let[l,c]of i)e.indexOf(l)>=0&&(o=l,r[l]=c(n,t),a=s.plus(r),a>t?(r[l]--,n=s.plus(r),n>t&&(a=n,r[l]--,n=s.plus(r))):n=a);return[n,r,a,o]}function gp(n,t,e,i){let[r,s,o,a]=aO(n,t,e),l=t-r,c=e.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));let u=Z.fromObject(s,i);return c.length>0?Z.fromMillis(l,i).shiftTo(...c).plus(u):u}var lO="missing Intl.DateTimeFormat.formatToParts support";function st(n,t=e=>e){return{regex:n,deser:([e])=>t(Dm(e))}}var cO=String.fromCharCode(160),bp=`[ ${cO}]`,vp=new RegExp(bp,"g");function uO(n){return n.replace(/\./g,"\\.?").replace(vp,bp)}function yp(n){return n.replace(/\./g,"").replace(vp," ").toLowerCase()}function ke(n,t){return n===null?null:{regex:RegExp(n.map(uO).join("|")),deser:([e])=>n.findIndex(i=>yp(e)===yp(i))+t}}function xp(n,t){return{regex:n,deser:([,e,i])=>Qn(e,i),groups:t}}function ul(n){return{regex:n,deser:([t])=>t}}function fO(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function dO(n,t){let e=fe(t),i=fe(t,"{2}"),r=fe(t,"{3}"),s=fe(t,"{4}"),o=fe(t,"{6}"),a=fe(t,"{1,2}"),l=fe(t,"{1,3}"),c=fe(t,"{1,6}"),u=fe(t,"{1,9}"),f=fe(t,"{2,4}"),d=fe(t,"{4,6}"),h=y=>({regex:RegExp(fO(y.val)),deser:([x])=>x,literal:!0}),p=(y=>{if(n.literal)return h(y);switch(y.val){case"G":return ke(t.eras("short"),0);case"GG":return ke(t.eras("long"),0);case"y":return st(c);case"yy":return st(f,As);case"yyyy":return st(s);case"yyyyy":return st(d);case"yyyyyy":return st(o);case"M":return st(a);case"MM":return st(i);case"MMM":return ke(t.months("short",!0),1);case"MMMM":return ke(t.months("long",!0),1);case"L":return st(a);case"LL":return st(i);case"LLL":return ke(t.months("short",!1),1);case"LLLL":return ke(t.months("long",!1),1);case"d":return st(a);case"dd":return st(i);case"o":return st(l);case"ooo":return st(r);case"HH":return st(i);case"H":return st(a);case"hh":return st(i);case"h":return st(a);case"mm":return st(i);case"m":return st(a);case"q":return st(a);case"qq":return st(i);case"s":return st(a);case"ss":return st(i);case"S":return st(l);case"SSS":return st(r);case"u":return ul(u);case"uu":return ul(a);case"uuu":return st(e);case"a":return ke(t.meridiems(),0);case"kkkk":return st(s);case"kk":return st(f,As);case"W":return st(a);case"WW":return st(i);case"E":case"c":return st(e);case"EEE":return ke(t.weekdays("short",!1),1);case"EEEE":return ke(t.weekdays("long",!1),1);case"ccc":return ke(t.weekdays("short",!0),1);case"cccc":return ke(t.weekdays("long",!0),1);case"Z":case"ZZ":return xp(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return xp(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return ul(/[a-z_+-/]{1,256}?/i);case" ":return ul(/[^\S\n\r]/);default:return h(y)}})(n)||{invalidReason:lO};return p.token=n,p}var hO={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function mO(n,t,e){let{type:i,value:r}=n;if(i==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let s=t[i],o=i;i==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=e.hour12?"hour12":"hour24");let a=hO[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function pO(n){return[`^${n.map(e=>e.regex).reduce((e,i)=>`${e}(${i.source})`,"")}$`,n]}function gO(n,t,e){let i=n.match(t);if(i){let r={},s=1;for(let o in e)if(En(e,o)){let a=e[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(s,s+l))),s+=l}return[i,r]}else return[i,{}]}function yO(n){let t=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},e=null,i;return z(n.z)||(e=Pt.create(n.z)),z(n.Z)||(e||(e=new bt(n.Z)),i=n.Z),z(n.q)||(n.M=(n.q-1)*3+1),z(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),z(n.u)||(n.S=Is(n.u)),[Object.keys(n).reduce((s,o)=>{let a=t(o);return a&&(s[a]=n[o]),s},{}),e,i]}var vu=null;function xO(){return vu||(vu=H.fromMillis(1555555555555)),vu}function bO(n,t){if(n.literal)return n;let e=vt.macroTokenToFormatOpts(n.val),i=Ou(e,t);return i==null||i.includes(void 0)?n:i}function wu(n,t){return Array.prototype.concat(...n.map(e=>bO(e,t)))}var Ns=class{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=wu(vt.parseFormat(e),t),this.units=this.tokens.map(i=>dO(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){let[i,r]=pO(this.units);this.regex=RegExp(i,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){let[e,i]=gO(t,this.regex,this.handlers),[r,s,o]=i?yO(i):[null,null,void 0];if(En(i,"a")&&En(i,"H"))throw new we("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:i,result:r,zone:s,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function _u(n,t,e){return new Ns(n,e).explainFromTokens(t)}function wp(n,t,e){let{result:i,zone:r,specificOffset:s,invalidReason:o}=_u(n,t,e);return[i,r,s,o]}function Ou(n,t){if(!n)return null;let i=vt.create(t,n).dtFormatter(xO()),r=i.formatToParts(),s=i.resolvedOptions();return r.map(o=>mO(o,n,s))}var Mu="Invalid DateTime",_p=864e13;function Rs(n){return new At("unsupported zone",`the zone "${n.name}" is not supported`)}function Tu(n){return n.weekData===null&&(n.weekData=Es(n.c)),n.weekData}function ku(n){return n.localWeekData===null&&(n.localWeekData=Es(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function ei(n,t){let e={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new H(lt(A(A({},e),t),{old:e}))}function Ep(n,t,e){let i=n-t*60*1e3,r=e.offset(i);if(t===r)return[i,t];i-=(r-t)*60*1e3;let s=e.offset(i);return r===s?[i,r]:[n-Math.min(r,s)*60*1e3,Math.max(r,s)]}function fl(n,t){n+=t*60*1e3;let e=new Date(n);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function hl(n,t,e){return Ep(er(n),t,e)}function Op(n,t){let e=n.o,i=n.c.year+Math.trunc(t.years),r=n.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,s=lt(A({},n.c),{year:i,month:r,day:Math.min(n.c.day,sr(i,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),o=Z.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=er(s),[l,c]=Ep(a,e,n.zone);return o!==0&&(l+=o,c=n.zone.offset(l)),{ts:l,o:c}}function pr(n,t,e,i,r,s){let{setZone:o,zone:a}=e;if(n&&Object.keys(n).length!==0||t){let l=t||a,c=H.fromObject(n,lt(A({},e),{zone:l,specificOffset:s}));return o?c:c.setZone(a)}else return H.invalid(new At("unparsable",`the input "${r}" can't be parsed as ${i}`))}function dl(n,t,e=!0){return n.isValid?vt.create(J.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(n,t):null}function Du(n,t){let e=n.c.year>9999||n.c.year<0,i="";return e&&n.c.year>=0&&(i+="+"),i+=xt(n.c.year,e?6:4),t?(i+="-",i+=xt(n.c.month),i+="-",i+=xt(n.c.day)):(i+=xt(n.c.month),i+=xt(n.c.day)),i}function Mp(n,t,e,i,r,s){let o=xt(n.c.hour);return t?(o+=":",o+=xt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!e)&&(o+=":")):o+=xt(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!e)&&(o+=xt(n.c.second),(n.c.millisecond!==0||!i)&&(o+=".",o+=xt(n.c.millisecond,3))),r&&(n.isOffsetFixed&&n.offset===0&&!s?o+="Z":n.o<0?(o+="-",o+=xt(Math.trunc(-n.o/60)),o+=":",o+=xt(Math.trunc(-n.o%60))):(o+="+",o+=xt(Math.trunc(n.o/60)),o+=":",o+=xt(Math.trunc(n.o%60)))),s&&(o+="["+n.zone.ianaName+"]"),o}var Pp={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},vO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},wO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Cp=["year","month","day","hour","minute","second","millisecond"],_O=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],OO=["year","ordinal","hour","minute","second","millisecond"];function MO(n){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!t)throw new tr(n);return t}function Tp(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return MO(n)}}function TO(n){return pl[n]||(ml===void 0&&(ml=it.now()),pl[n]=n.offset(ml)),pl[n]}function kp(n,t){let e=Me(t.zone,it.defaultZone);if(!e.isValid)return H.invalid(Rs(e));let i=J.fromObject(t),r,s;if(z(n.year))r=it.now();else{for(let l of Cp)z(n[l])&&(n[l]=Pp[l]);let o=uu(n)||fu(n);if(o)return H.invalid(o);let a=TO(e);[r,s]=hl(n,a,e)}return new H({ts:r,zone:e,loc:i,o:s})}function Dp(n,t,e){let i=z(e.round)?!0:e.round,r=(o,a)=>(o=nr(o,i||e.calendary?0:2,!0),t.loc.clone(e).relFormatter(e).format(o,a)),s=o=>e.calendary?t.hasSame(n,o)?0:t.startOf(o).diff(n.startOf(o),o).get(o):t.diff(n,o).get(o);if(e.unit)return r(s(e.unit),e.unit);for(let o of e.units){let a=s(o);if(Math.abs(a)>=1)return r(a,o)}return r(n>t?-0:0,e.units[e.units.length-1])}function Sp(n){let t={},e;return n.length>0&&typeof n[n.length-1]=="object"?(t=n[n.length-1],e=Array.from(n).slice(0,n.length-1)):e=Array.from(n),[t,e]}var ml,pl={},H=class{constructor(t){let e=t.zone||it.defaultZone,i=t.invalid||(Number.isNaN(t.ts)?new At("invalid input"):null)||(e.isValid?null:Rs(e));this.ts=z(t.ts)?it.now():t.ts;let r=null,s=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{let a=Te(t.o)&&!t.old?t.o:e.offset(this.ts);r=fl(this.ts,a),i=Number.isNaN(r.year)?new At("invalid input"):null,r=i?null:r,s=i?null:a}this._zone=e,this.loc=t.loc||J.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new H({})}static local(){let[t,e]=Sp(arguments),[i,r,s,o,a,l,c]=e;return kp({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static utc(){let[t,e]=Sp(arguments),[i,r,s,o,a,l,c]=e;return t.zone=bt.utcInstance,kp({year:i,month:r,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,e={}){let i=jm(t)?t.valueOf():NaN;if(Number.isNaN(i))return H.invalid("invalid input");let r=Me(e.zone,it.defaultZone);return r.isValid?new H({ts:i,zone:r,loc:J.fromObject(e)}):H.invalid(Rs(r))}static fromMillis(t,e={}){if(Te(t))return t<-_p||t>_p?H.invalid("Timestamp out of range"):new H({ts:t,zone:Me(e.zone,it.defaultZone),loc:J.fromObject(e)});throw new _t(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Te(t))return new H({ts:t*1e3,zone:Me(e.zone,it.defaultZone),loc:J.fromObject(e)});throw new _t("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};let i=Me(e.zone,it.defaultZone);if(!i.isValid)return H.invalid(Rs(i));let r=J.fromObject(e),s=or(t,Tp),{minDaysInFirstWeek:o,startOfWeek:a}=cu(s,r),l=it.now(),c=z(e.specificOffset)?i.offset(l):e.specificOffset,u=!z(s.ordinal),f=!z(s.year),d=!z(s.month)||!z(s.day),h=f||d,m=s.weekYear||s.weekNumber;if((h||u)&&m)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&u)throw new we("Can't mix ordinal dates with month/day");let p=m||s.weekday&&!h,y,x,b=fl(l,c);p?(y=_O,x=vO,b=Es(b,o,a)):u?(y=OO,x=wO,b=cl(b)):(y=Cp,x=Pp);let O=!1;for(let E of y){let I=s[E];z(I)?O?s[E]=x[E]:s[E]=b[E]:O=!0}let g=p?zm(s,o,a):u?Bm(s):uu(s),w=g||fu(s);if(w)return H.invalid(w);let _=p?au(s,o,a):u?lu(s):s,[T,k]=hl(_,c,i),D=new H({ts:T,zone:i,o:k,loc:r});return s.weekday&&h&&t.weekday!==D.weekday?H.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${D.toISO()}`):D.isValid?D:H.invalid(D.invalid)}static fromISO(t,e={}){let[i,r]=sp(t);return pr(i,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){let[i,r]=op(t);return pr(i,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){let[i,r]=ap(t);return pr(i,r,e,"HTTP",e)}static fromFormat(t,e,i={}){if(z(t)||z(e))throw new _t("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=wp(o,t,e);return u?H.invalid(u):pr(a,l,i,`format ${e}`,t,c)}static fromString(t,e,i={}){return H.fromFormat(t,e,i)}static fromSQL(t,e={}){let[i,r]=up(t);return pr(i,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new _t("need to specify a reason the DateTime is invalid");let i=t instanceof At?t:new At(t,e);if(it.throwOnInvalid)throw new Qa(i);return new H({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){let i=Ou(t,J.fromObject(e));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(t,e={}){return wu(vt.parseFormat(t),J.fromObject(e)).map(r=>r.val).join("")}static resetCache(){ml=void 0,pl={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Tu(this).weekYear:NaN}get weekNumber(){return this.isValid?Tu(this).weekNumber:NaN}get weekday(){return this.isValid?Tu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ku(this).weekday:NaN}get localWeekNumber(){return this.isValid?ku(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ku(this).weekYear:NaN}get ordinal(){return this.isValid?cl(this.c).ordinal:NaN}get monthShort(){return this.isValid?an.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?an.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?an.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?an.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,e=6e4,i=er(this.c),r=this.zone.offset(i-t),s=this.zone.offset(i+t),o=this.zone.offset(i-r*e),a=this.zone.offset(i-s*e);if(o===a)return[this];let l=i-o*e,c=i-a*e,u=fl(l,o),f=fl(c,a);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ei(this,{ts:l}),ei(this,{ts:c})]:[this]}get isInLeapYear(){return Jn(this.year)}get daysInMonth(){return sr(this.year,this.month)}get daysInYear(){return this.isValid?Sn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Kn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Kn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:e,numberingSystem:i,calendar:r}=vt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(bt.instance(t),e)}toLocal(){return this.setZone(it.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if(t=Me(t,it.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||i){let s=t.offset(this.ts),o=this.toObject();[r]=hl(o,s,t)}return ei(this,{ts:r,zone:t})}else return H.invalid(Rs(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){let r=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i});return ei(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let e=or(t,Tp),{minDaysInFirstWeek:i,startOfWeek:r}=cu(e,this.loc),s=!z(e.weekYear)||!z(e.weekNumber)||!z(e.weekday),o=!z(e.ordinal),a=!z(e.year),l=!z(e.month)||!z(e.day),c=a||l,u=e.weekYear||e.weekNumber;if((c||o)&&u)throw new we("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new we("Can't mix ordinal dates with month/day");let f;s?f=au(A(A({},Es(this.c,i,r)),e),i,r):z(e.ordinal)?(f=A(A({},this.toObject()),e),z(e.day)&&(f.day=Math.min(sr(f.year,f.month),f.day))):f=lu(A(A({},cl(this.c)),e));let[d,h]=hl(f,this.o,this.zone);return ei(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t);return ei(this,Op(this,e))}minus(t){if(!this.isValid)return this;let e=Z.fromDurationLike(t).negate();return ei(this,Op(this,e))}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;let i={},r=Z.normalizeUnit(t);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break;case"milliseconds":break}if(r==="weeks")if(e){let s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(i.weekNumber=this.weekNumber-1),i.weekday=s}else i.weekday=1;if(r==="quarters"){let s=Math.ceil(this.month/3);i.month=(s-1)*3+1}return this.set(i)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?vt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Mu}toLocaleString(t=kn,e={}){return this.isValid?vt.create(this.loc.clone(e),t).formatDateTime(this):Mu}toLocaleParts(t={}){return this.isValid?vt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;let o=t==="extended",a=Du(this,o);return a+="T",a+=Mp(this,o,e,i,r,s),a}toISODate({format:t="extended"}={}){return this.isValid?Du(this,t==="extended"):null}toISOWeekDate(){return dl(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+Mp(this,o==="extended",e,t,i,s):null}toRFC2822(){return dl(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return dl(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Du(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(i&&(r+=" "),e?r+="z":t&&(r+="ZZ")),dl(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Mu}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let e=A({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return Z.invalid("created by diffing an invalid DateTime");let r=A({locale:this.locale,numberingSystem:this.numberingSystem},i),s=$m(e).map(Z.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,l=o?t:this,c=gp(a,l,s,r);return o?c.negate():c}diffNow(t="milliseconds",e={}){return this.diff(H.now(),t,e)}until(t){return this.isValid?ft.fromDateTimes(this,t):this}hasSame(t,e,i){if(!this.isValid)return!1;let r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,i)<=r&&r<=s.endOf(e,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let e=t.base||H.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),Dp(e,this.plus(i),lt(A({},t),{numeric:"always",units:r,unit:s}))}toRelativeCalendar(t={}){return this.isValid?Dp(t.base||H.fromObject({},{zone:this.zone}),this,lt(A({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(H.isDateTime))throw new _t("min requires all arguments be DateTimes");return du(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(H.isDateTime))throw new _t("max requires all arguments be DateTimes");return du(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(t,e,i={}){let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return _u(o,t,e)}static fromStringExplain(t,e,i={}){return H.fromFormatExplain(t,e,i)}static buildFormatParser(t,e={}){let{locale:i=null,numberingSystem:r=null}=e,s=J.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new Ns(s,t)}static fromFormatParser(t,e,i={}){if(z(t)||z(e))throw new _t("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:s=null}=i,o=J.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!o.equals(e.locale))throw new _t(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${e.locale}`);let{result:a,zone:l,specificOffset:c,invalidReason:u}=e.explainFromTokens(t);return u?H.invalid(u):pr(a,l,i,`format ${e.format}`,t,c)}static get DATE_SHORT(){return kn}static get DATE_MED(){return ls}static get DATE_MED_WITH_WEEKDAY(){return jc}static get DATE_FULL(){return cs}static get DATE_HUGE(){return us}static get TIME_SIMPLE(){return fs}static get TIME_WITH_SECONDS(){return ds}static get TIME_WITH_SHORT_OFFSET(){return hs}static get TIME_WITH_LONG_OFFSET(){return ms}static get TIME_24_SIMPLE(){return ps}static get TIME_24_WITH_SECONDS(){return gs}static get TIME_24_WITH_SHORT_OFFSET(){return ys}static get TIME_24_WITH_LONG_OFFSET(){return xs}static get DATETIME_SHORT(){return bs}static get DATETIME_SHORT_WITH_SECONDS(){return vs}static get DATETIME_MED(){return ws}static get DATETIME_MED_WITH_SECONDS(){return _s}static get DATETIME_MED_WITH_WEEKDAY(){return $c}static get DATETIME_FULL(){return Os}static get DATETIME_FULL_WITH_SECONDS(){return Ms}static get DATETIME_HUGE(){return Ts}static get DATETIME_HUGE_WITH_SECONDS(){return ks}};function mr(n){if(H.isDateTime(n))return n;if(n&&n.valueOf&&Te(n.valueOf()))return H.fromJSDate(n);if(n&&typeof n=="object")return H.fromObject(n);throw new _t(`Unknown datetime argument: ${n}, of type ${typeof n}`)}var kO={mounted(){this.updated()},updated(){let n=this.el.dataset.format,t=this.el.dataset.preset,e=this.el.dataset.locale,i=this.el.textContent.trim(),r=H.fromISO(i).setLocale(e),s;n?n==="relative"?s=r.toRelative():s=r.toFormat(n):s=r.toLocaleString(H[t]),this.el.textContent=s,this.el.classList.remove("opacity-0")}},Ip=kO;var Ot="top",Ct="bottom",St="right",Tt="left",gl="auto",In=[Ot,Ct,St,Tt],ln="start",ni="end",Ap="clippingParents",yl="viewport",gr="popper",Lp="reference",Su=In.reduce(function(n,t){return n.concat([t+"-"+ln,t+"-"+ni])},[]),xl=[].concat(In,[gl]).reduce(function(n,t){return n.concat([t,t+"-"+ln,t+"-"+ni])},[]),DO="beforeRead",SO="read",EO="afterRead",PO="beforeMain",CO="main",IO="afterMain",AO="beforeWrite",LO="write",FO="afterWrite",Fp=[DO,SO,EO,PO,CO,IO,AO,LO,FO];function Lt(n){return n?(n.nodeName||"").toLowerCase():null}function gt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function me(n){var t=gt(n).Element;return n instanceof t||n instanceof Element}function It(n){var t=gt(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function yr(n){if(typeof ShadowRoot=="undefined")return!1;var t=gt(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function NO(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];!It(s)||!Lt(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function RO(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!It(r)||!Lt(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}var Ws={name:"applyStyles",enabled:!0,phase:"write",fn:NO,effect:RO,requires:["computeStyles"]};function Ft(n){return n.split("-")[0]}var De=Math.max,ii=Math.min,cn=Math.round;function xr(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Hs(){return!/^((?!chrome|android).)*safari/i.test(xr())}function pe(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),r=1,s=1;t&&It(n)&&(r=n.offsetWidth>0&&cn(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&cn(i.height)/n.offsetHeight||1);var o=me(n)?gt(n):window,a=o.visualViewport,l=!Hs()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/r,d=i.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function ri(n){var t=pe(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function Vs(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&yr(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(n){return gt(n).getComputedStyle(n)}function Eu(n){return["table","td","th"].indexOf(Lt(n))>=0}function Bt(n){return((me(n)?n.ownerDocument:n.document)||window.document).documentElement}function un(n){return Lt(n)==="html"?n:n.assignedSlot||n.parentNode||(yr(n)?n.host:null)||Bt(n)}function Np(n){return!It(n)||Ut(n).position==="fixed"?null:n.offsetParent}function WO(n){var t=/firefox/i.test(xr()),e=/Trident/i.test(xr());if(e&&It(n)){var i=Ut(n);if(i.position==="fixed")return null}var r=un(n);for(yr(r)&&(r=r.host);It(r)&&["html","body"].indexOf(Lt(r))<0;){var s=Ut(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Se(n){for(var t=gt(n),e=Np(n);e&&Eu(e)&&Ut(e).position==="static";)e=Np(e);return e&&(Lt(e)==="html"||Lt(e)==="body"&&Ut(e).position==="static")?t:e||WO(n)||t}function si(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function oi(n,t,e){return De(n,ii(t,e))}function Rp(n,t,e){var i=oi(n,t,e);return i>e?e:i}function zs(){return{top:0,right:0,bottom:0,left:0}}function Bs(n){return Object.assign({},zs(),n)}function Ys(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var HO=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Bs(typeof t!="number"?t:Ys(t,In))};function VO(n){var t,e=n.state,i=n.name,r=n.options,s=e.elements.arrow,o=e.modifiersData.popperOffsets,a=Ft(e.placement),l=si(a),c=[Tt,St].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!o)){var f=HO(r.padding,e),d=ri(s),h=l==="y"?Ot:Tt,m=l==="y"?Ct:St,p=e.rects.reference[u]+e.rects.reference[l]-o[l]-e.rects.popper[u],y=o[l]-e.rects.reference[l],x=Se(s),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,O=p/2-y/2,g=f[h],w=b-d[u]-f[m],_=b/2-d[u]/2+O,T=oi(g,_,w),k=l;e.modifiersData[i]=(t={},t[k]=T,t.centerOffset=T-_,t)}}function zO(n){var t=n.state,e=n.options,i=e.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Vs(t.elements.popper,r)&&(t.elements.arrow=r))}var Wp={name:"arrow",enabled:!0,phase:"main",fn:VO,effect:zO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(n){return n.split("-")[1]}var BO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YO(n,t){var e=n.x,i=n.y,r=t.devicePixelRatio||1;return{x:cn(e*r)/r||0,y:cn(i*r)/r||0}}function Hp(n){var t,e=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,f=n.isFixed,d=o.x,h=d===void 0?0:d,m=o.y,p=m===void 0?0:m,y=typeof u=="function"?u({x:h,y:p}):{x:h,y:p};h=y.x,p=y.y;var x=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),O=Tt,g=Ot,w=window;if(c){var _=Se(e),T="clientHeight",k="clientWidth";if(_===gt(e)&&(_=Bt(e),Ut(_).position!=="static"&&a==="absolute"&&(T="scrollHeight",k="scrollWidth")),_=_,r===Ot||(r===Tt||r===St)&&s===ni){g=Ct;var D=f&&_===w&&w.visualViewport?w.visualViewport.height:_[T];p-=D-i.height,p*=l?1:-1}if(r===Tt||(r===Ot||r===Ct)&&s===ni){O=St;var E=f&&_===w&&w.visualViewport?w.visualViewport.width:_[k];h-=E-i.width,h*=l?1:-1}}var I=Object.assign({position:a},c&&BO),P=u===!0?YO({x:h,y:p},gt(e)):{x:h,y:p};if(h=P.x,p=P.y,l){var N;return Object.assign({},I,(N={},N[g]=b?"0":"",N[O]=x?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",N))}return Object.assign({},I,(t={},t[g]=b?p+"px":"",t[O]=x?h+"px":"",t.transform="",t))}function jO(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=i===void 0?!0:i,s=e.adaptive,o=s===void 0?!0:s,a=e.roundOffsets,l=a===void 0?!0:a,c={placement:Ft(t.placement),variation:ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Vp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jO,data:{}};var bl={passive:!0};function $O(n){var t=n.state,e=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,l=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",e.update,bl)}),a&&l.addEventListener("resize",e.update,bl),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",e.update,bl)}),a&&l.removeEventListener("resize",e.update,bl)}}var zp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$O,data:{}};var UO={left:"right",right:"left",bottom:"top",top:"bottom"};function br(n){return n.replace(/left|right|bottom|top/g,function(t){return UO[t]})}var qO={start:"end",end:"start"};function vl(n){return n.replace(/start|end/g,function(t){return qO[t]})}function ai(n){var t=gt(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function li(n){return pe(Bt(n)).left+ai(n).scrollLeft}function Pu(n,t){var e=gt(n),i=Bt(n),r=e.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=Hs();(c||!c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+li(n),y:l}}function Cu(n){var t,e=Bt(n),i=ai(n),r=(t=n.ownerDocument)==null?void 0:t.body,s=De(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=De(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+li(n),l=-i.scrollTop;return Ut(r||e).direction==="rtl"&&(a+=De(e.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function ci(n){var t=Ut(n),e=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function wl(n){return["html","body","#document"].indexOf(Lt(n))>=0?n.ownerDocument.body:It(n)&&ci(n)?n:wl(un(n))}function An(n,t){var e;t===void 0&&(t=[]);var i=wl(n),r=i===((e=n.ownerDocument)==null?void 0:e.body),s=gt(i),o=r?[s].concat(s.visualViewport||[],ci(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(An(un(o)))}function vr(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function ZO(n,t){var e=pe(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Bp(n,t,e){return t===yl?vr(Pu(n,e)):me(t)?ZO(t,e):vr(Cu(Bt(n)))}function XO(n){var t=An(un(n)),e=["absolute","fixed"].indexOf(Ut(n).position)>=0,i=e&&It(n)?Se(n):n;return me(i)?t.filter(function(r){return me(r)&&Vs(r,i)&&Lt(r)!=="body"}):[]}function Iu(n,t,e,i){var r=t==="clippingParents"?XO(n):[].concat(t),s=[].concat(r,[e]),o=s[0],a=s.reduce(function(l,c){var u=Bp(n,c,i);return l.top=De(u.top,l.top),l.right=ii(u.right,l.right),l.bottom=ii(u.bottom,l.bottom),l.left=De(u.left,l.left),l},Bp(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function js(n){var t=n.reference,e=n.element,i=n.placement,r=i?Ft(i):null,s=i?ge(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(r){case Ot:l={x:o,y:t.y-e.height};break;case Ct:l={x:o,y:t.y+t.height};break;case St:l={x:t.x+t.width,y:a};break;case Tt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?si(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case ln:l[c]=l[c]-(t[u]/2-e[u]/2);break;case ni:l[c]=l[c]+(t[u]/2-e[u]/2);break;default:}}return l}function Ee(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=i===void 0?n.placement:i,s=e.strategy,o=s===void 0?n.strategy:s,a=e.boundary,l=a===void 0?Ap:a,c=e.rootBoundary,u=c===void 0?yl:c,f=e.elementContext,d=f===void 0?gr:f,h=e.altBoundary,m=h===void 0?!1:h,p=e.padding,y=p===void 0?0:p,x=Bs(typeof y!="number"?y:Ys(y,In)),b=d===gr?Lp:gr,O=n.rects.popper,g=n.elements[m?b:d],w=Iu(me(g)?g:g.contextElement||Bt(n.elements.popper),l,u,o),_=pe(n.elements.reference),T=js({reference:_,element:O,strategy:"absolute",placement:r}),k=vr(Object.assign({},O,T)),D=d===gr?k:_,E={top:w.top-D.top+x.top,bottom:D.bottom-w.bottom+x.bottom,left:w.left-D.left+x.left,right:D.right-w.right+x.right},I=n.modifiersData.offset;if(d===gr&&I){var P=I[r];Object.keys(E).forEach(function(N){var G=[St,Ct].indexOf(N)>=0?1:-1,V=[Ot,Ct].indexOf(N)>=0?"y":"x";E[N]+=P[V]*G})}return E}function Au(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=e.boundary,s=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?xl:l,u=ge(i),f=u?a?Su:Su.filter(function(m){return ge(m)===u}):In,d=f.filter(function(m){return c.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,p){return m[p]=Ee(n,{placement:p,boundary:r,rootBoundary:s,padding:o})[Ft(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function GO(n){if(Ft(n)===gl)return[];var t=br(n);return[vl(n),t,vl(t)]}function QO(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,c=e.padding,u=e.boundary,f=e.rootBoundary,d=e.altBoundary,h=e.flipVariations,m=h===void 0?!0:h,p=e.allowedAutoPlacements,y=t.options.placement,x=Ft(y),b=x===y,O=l||(b||!m?[br(y)]:GO(y)),g=[y].concat(O).reduce(function(kt,Rt){return kt.concat(Ft(Rt)===gl?Au(t,{placement:Rt,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):Rt)},[]),w=t.rects.reference,_=t.rects.popper,T=new Map,k=!0,D=g[0],E=0;E<g.length;E++){var I=g[E],P=Ft(I),N=ge(I)===ln,G=[Ot,Ct].indexOf(P)>=0,V=G?"width":"height",B=Ee(t,{placement:I,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),Y=G?N?St:Tt:N?Ct:Ot;w[V]>_[V]&&(Y=br(Y));var L=br(Y),W=[];if(s&&W.push(B[P]<=0),a&&W.push(B[Y]<=0,B[L]<=0),W.every(function(kt){return kt})){D=I,k=!1;break}T.set(I,W)}if(k)for(var Q=m?3:1,Nt=function(Rt){var Wt=g.find(function(gi){var je=T.get(gi);if(je)return je.slice(0,Rt).every(function(yi){return yi})});if(Wt)return D=Wt,"break"},Mt=Q;Mt>0;Mt--){var Yt=Nt(Mt);if(Yt==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}var Yp={name:"flip",enabled:!0,phase:"main",fn:QO,requiresIfExists:["offset"],data:{_skip:!1}};function jp(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function $p(n){return[Ot,St,Ct,Tt].some(function(t){return n[t]>=0})}function KO(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Ee(t,{elementContext:"reference"}),a=Ee(t,{altBoundary:!0}),l=jp(o,i),c=jp(a,r,s),u=$p(l),f=$p(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var Up={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KO};function JO(n,t,e){var i=Ft(n),r=[Tt,Ot].indexOf(i)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[Tt,St].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function tM(n){var t=n.state,e=n.options,i=n.name,r=e.offset,s=r===void 0?[0,0]:r,o=xl.reduce(function(u,f){return u[f]=JO(f,t.rects,s),u},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}var qp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tM};function eM(n){var t=n.state,e=n.name;t.modifiersData[e]=js({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Zp={name:"popperOffsets",enabled:!0,phase:"read",fn:eM,data:{}};function Lu(n){return n==="x"?"y":"x"}function nM(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,c=e.rootBoundary,u=e.altBoundary,f=e.padding,d=e.tether,h=d===void 0?!0:d,m=e.tetherOffset,p=m===void 0?0:m,y=Ee(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),x=Ft(t.placement),b=ge(t.placement),O=!b,g=si(x),w=Lu(g),_=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,D=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(_){if(s){var N,G=g==="y"?Ot:Tt,V=g==="y"?Ct:St,B=g==="y"?"height":"width",Y=_[g],L=Y+y[G],W=Y-y[V],Q=h?-k[B]/2:0,Nt=b===ln?T[B]:k[B],Mt=b===ln?-k[B]:-T[B],Yt=t.elements.arrow,kt=h&&Yt?ri(Yt):{width:0,height:0},Rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zs(),Wt=Rt[G],gi=Rt[V],je=oi(0,T[B],kt[B]),yi=O?T[B]/2-Q-je-Wt-E.mainAxis:Nt-je-Wt-E.mainAxis,hn=O?-T[B]/2+Q+je+gi+E.mainAxis:Mt+je+gi+E.mainAxis,xi=t.elements.arrow&&Se(t.elements.arrow),to=xi?g==="y"?xi.clientTop||0:xi.clientLeft||0:0,kr=(N=I==null?void 0:I[g])!=null?N:0,eo=Y+yi-kr-to,no=Y+hn-kr,Dr=oi(h?ii(L,eo):L,Y,h?De(W,no):W);_[g]=Dr,P[g]=Dr-Y}if(a){var Sr,io=g==="x"?Ot:Tt,ro=g==="x"?Ct:St,$e=_[w],mn=w==="y"?"height":"width",Er=$e+y[io],Fn=$e-y[ro],Pr=[Ot,Tt].indexOf(x)!==-1,so=(Sr=I==null?void 0:I[w])!=null?Sr:0,oo=Pr?Er:$e-T[mn]-k[mn]-so+E.altAxis,ao=Pr?$e+T[mn]+k[mn]-so-E.altAxis:Fn,lo=h&&Pr?Rp(oo,$e,ao):oi(h?oo:Er,$e,h?ao:Fn);_[w]=lo,P[w]=lo-$e}t.modifiersData[i]=P}}var Xp={name:"preventOverflow",enabled:!0,phase:"main",fn:nM,requiresIfExists:["offset"]};function Fu(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Nu(n){return n===gt(n)||!It(n)?ai(n):Fu(n)}function iM(n){var t=n.getBoundingClientRect(),e=cn(t.width)/n.offsetWidth||1,i=cn(t.height)/n.offsetHeight||1;return e!==1||i!==1}function Ru(n,t,e){e===void 0&&(e=!1);var i=It(t),r=It(t)&&iM(t),s=Bt(t),o=pe(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Lt(t)!=="body"||ci(s))&&(a=Nu(t)),It(t)?(l=pe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=li(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function rM(n){var t=new Map,e=new Set,i=[];n.forEach(function(s){t.set(s.name,s)});function r(s){e.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(s)}return n.forEach(function(s){e.has(s.name)||r(s)}),i}function Wu(n){var t=rM(n);return Fp.reduce(function(e,i){return e.concat(t.filter(function(r){return r.phase===i}))},[])}function Hu(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Vu(n){var t=n.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Qp(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Kp(n){n===void 0&&(n={});var t=n,e=t.defaultModifiers,i=e===void 0?[]:e,r=t.defaultOptions,s=r===void 0?Gp:r;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gp,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(x){var b=typeof x=="function"?x(u.options):x;p(),u.options=Object.assign({},s,u.options,b),u.scrollParents={reference:me(a)?An(a):a.contextElement?An(a.contextElement):[],popper:An(l)};var O=Wu(Vu([].concat(i,u.options.modifiers)));return u.orderedModifiers=O.filter(function(g){return g.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var x=u.elements,b=x.reference,O=x.popper;if(Qp(b,O)){u.rects={reference:Ru(b,Se(O),u.options.strategy==="fixed"),popper:ri(O)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var g=0;g<u.orderedModifiers.length;g++){if(u.reset===!0){u.reset=!1,g=-1;continue}var w=u.orderedModifiers[g],_=w.fn,T=w.options,k=T===void 0?{}:T,D=w.name;typeof _=="function"&&(u=_({state:u,options:k,name:D,instance:h})||u)}}}},update:Hu(function(){return new Promise(function(y){h.forceUpdate(),y(u)})}),destroy:function(){p(),d=!0}};if(!Qp(a,l))return h;h.setOptions(c).then(function(y){!d&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var x=y.name,b=y.options,O=b===void 0?{}:b,g=y.effect;if(typeof g=="function"){var w=g({state:u,name:x,instance:h,options:O}),_=function(){};f.push(w||_)}})}function p(){f.forEach(function(y){return y()}),f=[]}return h}}var sM=[zp,Zp,Vp,Ws,qp,Yp,Xp,Wp,Up],zu=Kp({defaultModifiers:sM});var oM="tippy-box",lg="tippy-content",aM="tippy-backdrop",cg="tippy-arrow",ug="tippy-svg-arrow",ui={passive:!0,capture:!0},fg=function(){return document.body};function Bu(n,t,e){if(Array.isArray(n)){var i=n[t];return i==null?Array.isArray(e)?e[t]:e:i}return n}function Zu(n,t){var e={}.toString.call(n);return e.indexOf("[object")===0&&e.indexOf(t+"]")>-1}function dg(n,t){return typeof n=="function"?n.apply(void 0,t):n}function Jp(n,t){if(t===0)return n;var e;return function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)}}function lM(n){return n.split(/\s+/).filter(Boolean)}function wr(n){return[].concat(n)}function tg(n,t){n.indexOf(t)===-1&&n.push(t)}function cM(n){return n.filter(function(t,e){return n.indexOf(t)===e})}function uM(n){return n.split("-")[0]}function Ol(n){return[].slice.call(n)}function eg(n){return Object.keys(n).reduce(function(t,e){return n[e]!==void 0&&(t[e]=n[e]),t},{})}function $s(){return document.createElement("div")}function Ml(n){return["Element","Fragment"].some(function(t){return Zu(n,t)})}function fM(n){return Zu(n,"NodeList")}function dM(n){return Zu(n,"MouseEvent")}function hM(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function mM(n){return Ml(n)?[n]:fM(n)?Ol(n):Array.isArray(n)?n:Ol(document.querySelectorAll(n))}function Yu(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ng(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function pM(n){var t,e=wr(n),i=e[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function gM(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var s=r.popperRect,o=r.popperState,a=r.props,l=a.interactiveBorder,c=uM(o.placement),u=o.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,d=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,p=s.top-i+f>l,y=i-s.bottom-d>l,x=s.left-e+h>l,b=e-s.right-m>l;return p||y||x||b})}function ju(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function ig(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=e.getRootNode==null||(i=e.getRootNode())==null?void 0:i.host}return!1}var Ye={isTouch:!1},rg=0;function yM(){Ye.isTouch||(Ye.isTouch=!0,window.performance&&document.addEventListener("mousemove",hg))}function hg(){var n=performance.now();n-rg<20&&(Ye.isTouch=!1,document.removeEventListener("mousemove",hg)),rg=n}function xM(){var n=document.activeElement;if(hM(n)){var t=n._tippy;n.blur&&!t.state.isVisible&&n.blur()}}function bM(){document.addEventListener("touchstart",yM,ui),window.addEventListener("blur",xM)}var vM=typeof window!="undefined"&&typeof document!="undefined",wM=vM?!!window.msCrypto:!1;var _M={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},OM={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pe=Object.assign({appendTo:fg,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},_M,OM),MM=Object.keys(Pe),TM=function(t){var e=Object.keys(t);e.forEach(function(i){Pe[i]=t[i]})};function mg(n){var t=n.plugins||[],e=t.reduce(function(i,r){var s=r.name,o=r.defaultValue;if(s){var a;i[s]=n[s]!==void 0?n[s]:(a=Pe[s])!=null?a:o}return i},{});return Object.assign({},n,e)}function kM(n,t){var e=t?Object.keys(mg(Object.assign({},Pe,{plugins:t}))):MM,i=e.reduce(function(r,s){var o=(n.getAttribute("data-tippy-"+s)||"").trim();if(!o)return r;if(s==="content")r[s]=o;else try{r[s]=JSON.parse(o)}catch(a){r[s]=o}return r},{});return i}function sg(n,t){var e=Object.assign({},t,{content:dg(t.content,[n])},t.ignoreAttributes?{}:kM(n,t.plugins));return e.aria=Object.assign({},Pe.aria,e.aria),e.aria={expanded:e.aria.expanded==="auto"?t.interactive:e.aria.expanded,content:e.aria.content==="auto"?t.interactive?null:"describedby":e.aria.content},e}var DM=function(){return"innerHTML"};function Uu(n,t){n[DM()]=t}function og(n){var t=$s();return n===!0?t.className=cg:(t.className=ug,Ml(n)?t.appendChild(n):Uu(t,n)),t}function ag(n,t){Ml(t.content)?(Uu(n,""),n.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Uu(n,t.content):n.textContent=t.content)}function qu(n){var t=n.firstElementChild,e=Ol(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(lg)}),arrow:e.find(function(i){return i.classList.contains(cg)||i.classList.contains(ug)}),backdrop:e.find(function(i){return i.classList.contains(aM)})}}function pg(n){var t=$s(),e=$s();e.className=oM,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=$s();i.className=lg,i.setAttribute("data-state","hidden"),ag(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props);function r(s,o){var a=qu(t),l=a.box,c=a.content,u=a.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&ag(c,n.props),o.arrow?u?s.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(og(o.arrow))):l.appendChild(og(o.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:r}}pg.$$tippy=!0;var SM=1,_l=[],$u=[];function EM(n,t){var e=sg(n,Object.assign({},Pe,mg(eg(t)))),i,r,s,o=!1,a=!1,l=!1,c=!1,u,f,d,h=[],m=Jp(eo,e.interactiveDebounce),p,y=SM++,x=null,b=cM(e.plugins),O={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:y,reference:n,popper:$s(),popperInstance:x,props:e,state:O,plugins:b,clearDelayTimeouts:oo,setProps:ao,setContent:lo,show:qg,hide:Zg,hideWithInteractivity:Xg,enable:Pr,disable:so,unmount:Gg,destroy:Qg};if(!e.render)return g;var w=e.render(g),_=w.popper,T=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,n._tippy=g,_._tippy=g;var k=b.map(function(M){return M.fn(g)}),D=n.hasAttribute("aria-expanded");return xi(),Q(),Y(),L("onCreate",[g]),e.showOnCreate&&Er(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&G().addEventListener("mousemove",m)}),g;function E(){var M=g.props.touch;return Array.isArray(M)?M:[M,0]}function I(){return E()[0]==="hold"}function P(){var M;return!!((M=g.props.render)!=null&&M.$$tippy)}function N(){return p||n}function G(){var M=N().parentNode;return M?pM(M):document}function V(){return qu(_)}function B(M){return g.state.isMounted&&!g.state.isVisible||Ye.isTouch||u&&u.type==="focus"?0:Bu(g.props.delay,M?0:1,Pe.delay)}function Y(M){M===void 0&&(M=!1),_.style.pointerEvents=g.props.interactive&&!M?"":"none",_.style.zIndex=""+g.props.zIndex}function L(M,R,j){if(j===void 0&&(j=!0),k.forEach(function(nt){nt[M]&&nt[M].apply(nt,R)}),j){var at;(at=g.props)[M].apply(at,R)}}function W(){var M=g.props.aria;if(M.content){var R="aria-"+M.content,j=_.id,at=wr(g.props.triggerTarget||n);at.forEach(function(nt){var $t=nt.getAttribute(R);if(g.state.isVisible)nt.setAttribute(R,$t?$t+" "+j:j);else{var oe=$t&&$t.replace(j,"").trim();oe?nt.setAttribute(R,oe):nt.removeAttribute(R)}})}}function Q(){if(!(D||!g.props.aria.expanded)){var M=wr(g.props.triggerTarget||n);M.forEach(function(R){g.props.interactive?R.setAttribute("aria-expanded",g.state.isVisible&&R===N()?"true":"false"):R.removeAttribute("aria-expanded")})}}function Nt(){G().removeEventListener("mousemove",m),_l=_l.filter(function(M){return M!==m})}function Mt(M){if(!(Ye.isTouch&&(l||M.type==="mousedown"))){var R=M.composedPath&&M.composedPath()[0]||M.target;if(!(g.props.interactive&&ig(_,R))){if(wr(g.props.triggerTarget||n).some(function(j){return ig(j,R)})){if(Ye.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[g,M]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),a=!0,setTimeout(function(){a=!1}),g.state.isMounted||Wt())}}}function Yt(){l=!0}function kt(){l=!1}function Rt(){var M=G();M.addEventListener("mousedown",Mt,!0),M.addEventListener("touchend",Mt,ui),M.addEventListener("touchstart",kt,ui),M.addEventListener("touchmove",Yt,ui)}function Wt(){var M=G();M.removeEventListener("mousedown",Mt,!0),M.removeEventListener("touchend",Mt,ui),M.removeEventListener("touchstart",kt,ui),M.removeEventListener("touchmove",Yt,ui)}function gi(M,R){yi(M,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&R()})}function je(M,R){yi(M,R)}function yi(M,R){var j=V().box;function at(nt){nt.target===j&&(ju(j,"remove",at),R())}if(M===0)return R();ju(j,"remove",f),ju(j,"add",at),f=at}function hn(M,R,j){j===void 0&&(j=!1);var at=wr(g.props.triggerTarget||n);at.forEach(function(nt){nt.addEventListener(M,R,j),h.push({node:nt,eventType:M,handler:R,options:j})})}function xi(){I()&&(hn("touchstart",kr,{passive:!0}),hn("touchend",no,{passive:!0})),lM(g.props.trigger).forEach(function(M){if(M!=="manual")switch(hn(M,kr),M){case"mouseenter":hn("mouseleave",no);break;case"focus":hn(wM?"focusout":"blur",Dr);break;case"focusin":hn("focusout",Dr);break}})}function to(){h.forEach(function(M){var R=M.node,j=M.eventType,at=M.handler,nt=M.options;R.removeEventListener(j,at,nt)}),h=[]}function kr(M){var R,j=!1;if(!(!g.state.isEnabled||Sr(M)||a)){var at=((R=u)==null?void 0:R.type)==="focus";u=M,p=M.currentTarget,Q(),!g.state.isVisible&&dM(M)&&_l.forEach(function(nt){return nt(M)}),M.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||o)&&g.props.hideOnClick!==!1&&g.state.isVisible?j=!0:Er(M),M.type==="click"&&(o=!j),j&&!at&&Fn(M)}}function eo(M){var R=M.target,j=N().contains(R)||_.contains(R);if(!(M.type==="mousemove"&&j)){var at=mn().concat(_).map(function(nt){var $t,oe=nt._tippy,bi=($t=oe.popperInstance)==null?void 0:$t.state;return bi?{popperRect:nt.getBoundingClientRect(),popperState:bi,props:e}:null}).filter(Boolean);gM(at,M)&&(Nt(),Fn(M))}}function no(M){var R=Sr(M)||g.props.trigger.indexOf("click")>=0&&o;if(!R){if(g.props.interactive){g.hideWithInteractivity(M);return}Fn(M)}}function Dr(M){g.props.trigger.indexOf("focusin")<0&&M.target!==N()||g.props.interactive&&M.relatedTarget&&_.contains(M.relatedTarget)||Fn(M)}function Sr(M){return Ye.isTouch?I()!==M.type.indexOf("touch")>=0:!1}function io(){ro();var M=g.props,R=M.popperOptions,j=M.placement,at=M.offset,nt=M.getReferenceClientRect,$t=M.moveTransition,oe=P()?qu(_).arrow:null,bi=nt?{getBoundingClientRect:nt,contextElement:nt.contextElement||N()}:n,rf={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(co){var vi=co.state;if(P()){var Kg=V(),Cl=Kg.box;["placement","reference-hidden","escaped"].forEach(function(uo){uo==="placement"?Cl.setAttribute("data-placement",vi.placement):vi.attributes.popper["data-popper-"+uo]?Cl.setAttribute("data-"+uo,""):Cl.removeAttribute("data-"+uo)}),vi.attributes.popper={}}}},Nn=[{name:"offset",options:{offset:at}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!$t}},rf];P()&&oe&&Nn.push({name:"arrow",options:{element:oe,padding:3}}),Nn.push.apply(Nn,(R==null?void 0:R.modifiers)||[]),g.popperInstance=zu(bi,_,Object.assign({},R,{placement:j,onFirstUpdate:d,modifiers:Nn}))}function ro(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function $e(){var M=g.props.appendTo,R,j=N();g.props.interactive&&M===fg||M==="parent"?R=j.parentNode:R=dg(M,[j]),R.contains(_)||R.appendChild(_),g.state.isMounted=!0,io()}function mn(){return Ol(_.querySelectorAll("[data-tippy-root]"))}function Er(M){g.clearDelayTimeouts(),M&&L("onTrigger",[g,M]),Rt();var R=B(!0),j=E(),at=j[0],nt=j[1];Ye.isTouch&&at==="hold"&&nt&&(R=nt),R?i=setTimeout(function(){g.show()},R):g.show()}function Fn(M){if(g.clearDelayTimeouts(),L("onUntrigger",[g,M]),!g.state.isVisible){Wt();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(M.type)>=0&&o)){var R=B(!1);R?r=setTimeout(function(){g.state.isVisible&&g.hide()},R):s=requestAnimationFrame(function(){g.hide()})}}function Pr(){g.state.isEnabled=!0}function so(){g.hide(),g.state.isEnabled=!1}function oo(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(s)}function ao(M){if(!g.state.isDestroyed){L("onBeforeUpdate",[g,M]),to();var R=g.props,j=sg(n,Object.assign({},R,eg(M),{ignoreAttributes:!0}));g.props=j,xi(),R.interactiveDebounce!==j.interactiveDebounce&&(Nt(),m=Jp(eo,j.interactiveDebounce)),R.triggerTarget&&!j.triggerTarget?wr(R.triggerTarget).forEach(function(at){at.removeAttribute("aria-expanded")}):j.triggerTarget&&n.removeAttribute("aria-expanded"),Q(),Y(),T&&T(R,j),g.popperInstance&&(io(),mn().forEach(function(at){requestAnimationFrame(at._tippy.popperInstance.forceUpdate)})),L("onAfterUpdate",[g,M])}}function lo(M){g.setProps({content:M})}function qg(){var M=g.state.isVisible,R=g.state.isDestroyed,j=!g.state.isEnabled,at=Ye.isTouch&&!g.props.touch,nt=Bu(g.props.duration,0,Pe.duration);if(!(M||R||j||at)&&!N().hasAttribute("disabled")&&(L("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,P()&&(_.style.visibility="visible"),Y(),Rt(),g.state.isMounted||(_.style.transition="none"),P()){var $t=V(),oe=$t.box,bi=$t.content;Yu([oe,bi],0)}d=function(){var Nn;if(!(!g.state.isVisible||c)){if(c=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,P()&&g.props.animation){var Pl=V(),co=Pl.box,vi=Pl.content;Yu([co,vi],nt),ng([co,vi],"visible")}W(),Q(),tg($u,g),(Nn=g.popperInstance)==null||Nn.forceUpdate(),L("onMount",[g]),g.props.animation&&P()&&je(nt,function(){g.state.isShown=!0,L("onShown",[g])})}},$e()}}function Zg(){var M=!g.state.isVisible,R=g.state.isDestroyed,j=!g.state.isEnabled,at=Bu(g.props.duration,1,Pe.duration);if(!(M||R||j)&&(L("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,c=!1,o=!1,P()&&(_.style.visibility="hidden"),Nt(),Wt(),Y(!0),P()){var nt=V(),$t=nt.box,oe=nt.content;g.props.animation&&(Yu([$t,oe],at),ng([$t,oe],"hidden"))}W(),Q(),g.props.animation?P()&&gi(at,g.unmount):g.unmount()}}function Xg(M){G().addEventListener("mousemove",m),tg(_l,m),m(M)}function Gg(){g.state.isVisible&&g.hide(),g.state.isMounted&&(ro(),mn().forEach(function(M){M._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),$u=$u.filter(function(M){return M!==g}),g.state.isMounted=!1,L("onHidden",[g]))}function Qg(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),to(),delete n._tippy,g.state.isDestroyed=!0,L("onDestroy",[g]))}}function Us(n,t){t===void 0&&(t={});var e=Pe.plugins.concat(t.plugins||[]);bM();var i=Object.assign({},t,{plugins:e}),r=mM(n);if(!1)var s,o;var a=r.reduce(function(l,c){var u=c&&EM(c,i);return u&&l.push(u),l},[]);return Ml(n)?a[0]:a}Us.defaultProps=Pe;Us.setDefaultProps=TM;Us.currentInput=Ye;var _R=Object.assign({},Ws,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});Us.setDefaultProps({render:pg});var gg=Us;var PM={mounted(){this.run("mounted",this.el)},updated(){this.run("updated",this.el)},run(n,t){let e=gg(t,{theme:"translucent",animation:"scale"}),i=t.dataset.disableTippyOnMount==="true";n==="mounted"&&i&&e.disable()}},yg=PM;var _r=Math.min,fn=Math.max,Zs=Math.round,Xs=Math.floor,Ce=n=>({x:n,y:n}),CM={left:"right",right:"left",bottom:"top",top:"bottom"},IM={start:"end",end:"start"};function Xu(n,t,e){return fn(n,_r(t,e))}function Gs(n,t){return typeof n=="function"?n(t):n}function Ln(n){return n.split("-")[0]}function Qs(n){return n.split("-")[1]}function Gu(n){return n==="x"?"y":"x"}function Qu(n){return n==="y"?"height":"width"}function fi(n){return["top","bottom"].includes(Ln(n))?"y":"x"}function Ku(n){return Gu(fi(n))}function xg(n,t,e){e===void 0&&(e=!1);let i=Qs(n),r=Ku(n),s=Qu(r),o=r==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=qs(o)),[o,qs(o)]}function bg(n){let t=qs(n);return[Tl(n),t,Tl(t)]}function Tl(n){return n.replace(/start|end/g,t=>IM[t])}function AM(n,t,e){let i=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return e?t?r:i:t?i:r;case"left":case"right":return t?s:o;default:return[]}}function vg(n,t,e,i){let r=Qs(n),s=AM(Ln(n),e==="start",i);return r&&(s=s.map(o=>o+"-"+r),t&&(s=s.concat(s.map(Tl)))),s}function qs(n){return n.replace(/left|right|bottom|top/g,t=>CM[t])}function LM(n){return A({top:0,right:0,bottom:0,left:0},n)}function wg(n){return typeof n!="number"?LM(n):{top:n,right:n,bottom:n,left:n}}function di(n){let{x:t,y:e,width:i,height:r}=n;return{width:i,height:r,top:e,left:t,right:t+i,bottom:e+r,x:t,y:e}}function _g(n,t,e){let{reference:i,floating:r}=n,s=fi(t),o=Ku(t),a=Qu(o),l=Ln(t),c=s==="y",u=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,d=i[a]/2-r[a]/2,h;switch(l){case"top":h={x:u,y:i.y-r.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Qs(t)){case"start":h[o]-=d*(e&&c?-1:1);break;case"end":h[o]+=d*(e&&c?-1:1);break}return h}var Og=async(n,t,e)=>{let{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=e,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:n,floating:t,strategy:r}),{x:u,y:f}=_g(c,i,l),d=i,h={},m=0;for(let p=0;p<a.length;p++){let{name:y,fn:x}=a[p],{x:b,y:O,data:g,reset:w}=await x({x:u,y:f,initialPlacement:i,placement:d,strategy:r,middlewareData:h,rects:c,platform:o,elements:{reference:n,floating:t}});u=b!=null?b:u,f=O!=null?O:f,h=lt(A({},h),{[y]:A(A({},h[y]),g)}),w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:n,floating:t,strategy:r}):w.rects),{x:u,y:f}=_g(c,d,l)),p=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:h}};async function Ju(n,t){var e;t===void 0&&(t={});let{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=n,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Gs(t,n),m=wg(h),y=a[d?f==="floating"?"reference":"floating":f],x=di(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(y)))==null||e?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=f==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),g=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},w=di(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:O,strategy:l}):b);return{top:(x.top-w.top+m.top)/g.y,bottom:(w.bottom-x.bottom+m.bottom)/g.y,left:(x.left-w.left+m.left)/g.x,right:(w.right-x.right+m.right)/g.x}}var Mg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,i;let{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,G=Gs(n,t),{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0}=G,y=wi(G,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let x=Ln(r),b=fi(a),O=Ln(a)===a,g=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=d||(O||!p?[qs(a)]:bg(a)),_=m!=="none";!d&&_&&w.push(...vg(a,p,m,g));let T=[a,...w],k=await Ju(t,y),D=[],E=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&D.push(k[x]),f){let V=xg(r,o,g);D.push(k[V[0]],k[V[1]])}if(E=[...E,{placement:r,overflows:D}],!D.every(V=>V<=0)){var I,P;let V=(((I=s.flip)==null?void 0:I.index)||0)+1,B=T[V];if(B)return{data:{index:V,overflows:E},reset:{placement:B}};let Y=(P=E.filter(L=>L.overflows[0]<=0).sort((L,W)=>L.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!Y)switch(h){case"bestFit":{var N;let L=(N=E.filter(W=>{if(_){let Q=fi(W.placement);return Q===b||Q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Q=>Q>0).reduce((Q,Nt)=>Q+Nt,0)]).sort((W,Q)=>W[1]-Q[1])[0])==null?void 0:N[0];L&&(Y=L);break}case"initialPlacement":Y=a;break}if(r!==Y)return{reset:{placement:Y}}}return{}}}};async function FM(n,t){let{placement:e,platform:i,elements:r}=n,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Ln(e),a=Qs(e),l=fi(e)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,f=Gs(t,n),{mainAxis:d,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}var Tg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:r,y:s,placement:o,middlewareData:a}=t,l=await FM(t,n);return o===((e=a.offset)==null?void 0:e.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:lt(A({},l),{placement:o})}}}},kg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:r}=t,y=Gs(n,t),{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:b,y:O}=x;return{x:b,y:O}}}}=y,l=wi(y,["mainAxis","crossAxis","limiter"]),c={x:e,y:i},u=await Ju(t,l),f=fi(Ln(r)),d=Gu(f),h=c[d],m=c[f];if(s){let x=d==="y"?"top":"left",b=d==="y"?"bottom":"right",O=h+u[x],g=h-u[b];h=Xu(O,h,g)}if(o){let x=f==="y"?"top":"left",b=f==="y"?"bottom":"right",O=m+u[x],g=m-u[b];m=Xu(O,m,g)}let p=a.fn(lt(A({},t),{[d]:h,[f]:m}));return lt(A({},p),{data:{x:p.x-e,y:p.y-i,enabled:{[d]:s,[f]:o}}})}}};function kl(){return typeof window!="undefined"}function hi(n){return Sg(n)?(n.nodeName||"").toLowerCase():"#document"}function ee(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(n){var t;return(t=(Sg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function Sg(n){return kl()?n instanceof Node||n instanceof ee(n).Node:!1}function ye(n){return kl()?n instanceof Element||n instanceof ee(n).Element:!1}function Ae(n){return kl()?n instanceof HTMLElement||n instanceof ee(n).HTMLElement:!1}function Dg(n){return!kl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof ee(n).ShadowRoot}function Mr(n){let{overflow:t,overflowX:e,overflowY:i,display:r}=xe(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(r)}function Eg(n){return["table","td","th"].includes(hi(n))}function Ks(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch(e){return!1}})}function Dl(n){let t=Sl(),e=ye(n)?xe(n):n;return["transform","translate","scale","rotate","perspective"].some(i=>e[i]?e[i]!=="none":!1)||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function Pg(n){let t=dn(n);for(;Ae(t)&&!mi(t);){if(Dl(t))return t;if(Ks(t))return null;t=dn(t)}return null}function Sl(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mi(n){return["html","body","#document"].includes(hi(n))}function xe(n){return ee(n).getComputedStyle(n)}function Js(n){return ye(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function dn(n){if(hi(n)==="html")return n;let t=n.assignedSlot||n.parentNode||Dg(n)&&n.host||Ie(n);return Dg(t)?t.host:t}function Cg(n){let t=dn(n);return mi(t)?n.ownerDocument?n.ownerDocument.body:n.body:Ae(t)&&Mr(t)?t:Cg(t)}function Or(n,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let r=Cg(n),s=r===((i=n.ownerDocument)==null?void 0:i.body),o=ee(r);if(s){let a=El(o);return t.concat(o,o.visualViewport||[],Mr(r)?r:[],a&&e?Or(a):[])}return t.concat(r,Or(r,[],e))}function El(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Lg(n){let t=xe(n),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=Ae(n),s=r?n.offsetWidth:e,o=r?n.offsetHeight:i,a=Zs(e)!==s||Zs(i)!==o;return a&&(e=s,i=o),{width:e,height:i,$:a}}function ef(n){return ye(n)?n:n.contextElement}function Tr(n){let t=ef(n);if(!Ae(t))return Ce(1);let e=t.getBoundingClientRect(),{width:i,height:r,$:s}=Lg(t),o=(s?Zs(e.width):e.width)/i,a=(s?Zs(e.height):e.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var NM=Ce(0);function Fg(n){let t=ee(n);return!Sl()||!t.visualViewport?NM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RM(n,t,e){return t===void 0&&(t=!1),!e||t&&e!==ee(n)?!1:t}function pi(n,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let r=n.getBoundingClientRect(),s=ef(n),o=Ce(1);t&&(i?ye(i)&&(o=Tr(i)):o=Tr(n));let a=RM(s,e,i)?Fg(s):Ce(0),l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,f=r.height/o.y;if(s){let d=ee(s),h=i&&ye(i)?ee(i):i,m=d,p=El(m);for(;p&&i&&h!==m;){let y=Tr(p),x=p.getBoundingClientRect(),b=xe(p),O=x.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,g=x.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=O,c+=g,m=ee(p),p=El(m)}}return di({width:u,height:f,x:l,y:c})}function nf(n,t){let e=Js(n).scrollLeft;return t?t.left+e:pi(Ie(n)).left+e}function Ng(n,t,e){e===void 0&&(e=!1);let i=n.getBoundingClientRect(),r=i.left+t.scrollLeft-(e?0:nf(n,i)),s=i.top+t.scrollTop;return{x:r,y:s}}function WM(n){let{elements:t,rect:e,offsetParent:i,strategy:r}=n,s=r==="fixed",o=Ie(i),a=t?Ks(t.floating):!1;if(i===o||a&&s)return e;let l={scrollLeft:0,scrollTop:0},c=Ce(1),u=Ce(0),f=Ae(i);if((f||!f&&!s)&&((hi(i)!=="body"||Mr(o))&&(l=Js(i)),Ae(i))){let h=pi(i);c=Tr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let d=o&&!f&&!s?Ng(o,l,!0):Ce(0);return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:e.y*c.y-l.scrollTop*c.y+u.y+d.y}}function HM(n){return Array.from(n.getClientRects())}function VM(n){let t=Ie(n),e=Js(n),i=n.ownerDocument.body,r=fn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=fn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+nf(n),a=-e.scrollTop;return xe(i).direction==="rtl"&&(o+=fn(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}function zM(n,t){let e=ee(n),i=Ie(n),r=e.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;let c=Sl();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a,y:l}}function BM(n,t){let e=pi(n,!0,t==="fixed"),i=e.top+n.clientTop,r=e.left+n.clientLeft,s=Ae(n)?Tr(n):Ce(1),o=n.clientWidth*s.x,a=n.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ig(n,t,e){let i;if(t==="viewport")i=zM(n,e);else if(t==="document")i=VM(Ie(n));else if(ye(t))i=BM(t,e);else{let r=Fg(n);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return di(i)}function Rg(n,t){let e=dn(n);return e===t||!ye(e)||mi(e)?!1:xe(e).position==="fixed"||Rg(e,t)}function YM(n,t){let e=t.get(n);if(e)return e;let i=Or(n,[],!1).filter(a=>ye(a)&&hi(a)!=="body"),r=null,s=xe(n).position==="fixed",o=s?dn(n):n;for(;ye(o)&&!mi(o);){let a=xe(o),l=Dl(o);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Mr(o)&&!l&&Rg(n,o))?i=i.filter(u=>u!==o):r=a,o=dn(o)}return t.set(n,i),i}function jM(n){let{element:t,boundary:e,rootBoundary:i,strategy:r}=n,o=[...e==="clippingAncestors"?Ks(t)?[]:YM(t,this._c):[].concat(e),i],a=o[0],l=o.reduce((c,u)=>{let f=Ig(t,u,r);return c.top=fn(f.top,c.top),c.right=_r(f.right,c.right),c.bottom=_r(f.bottom,c.bottom),c.left=fn(f.left,c.left),c},Ig(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $M(n){let{width:t,height:e}=Lg(n);return{width:t,height:e}}function UM(n,t,e){let i=Ae(t),r=Ie(t),s=e==="fixed",o=pi(n,!0,s,t),a={scrollLeft:0,scrollTop:0},l=Ce(0);if(i||!i&&!s)if((hi(t)!=="body"||Mr(r))&&(a=Js(t)),i){let d=pi(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&(l.x=nf(r));let c=r&&!i&&!s?Ng(r,a):Ce(0),u=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:o.width,height:o.height}}function tf(n){return xe(n).position==="static"}function Ag(n,t){if(!Ae(n)||xe(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return Ie(n)===e&&(e=e.ownerDocument.body),e}function Wg(n,t){let e=ee(n);if(Ks(n))return e;if(!Ae(n)){let r=dn(n);for(;r&&!mi(r);){if(ye(r)&&!tf(r))return r;r=dn(r)}return e}let i=Ag(n,t);for(;i&&Eg(i)&&tf(i);)i=Ag(i,t);return i&&mi(i)&&tf(i)&&!Dl(i)?e:i||Pg(n)||e}var qM=async function(n){let t=this.getOffsetParent||Wg,e=this.getDimensions,i=await e(n.floating);return{reference:UM(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ZM(n){return xe(n).direction==="rtl"}var XM={convertOffsetParentRelativeRectToViewportRelativeRect:WM,getDocumentElement:Ie,getClippingRect:jM,getOffsetParent:Wg,getElementRects:qM,getClientRects:HM,getDimensions:$M,getScale:Tr,isElement:ye,isRTL:ZM};function Hg(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function GM(n,t){let e=null,i,r=Ie(n);function s(){var a;clearTimeout(i),(a=e)==null||a.disconnect(),e=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();let c=n.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(a||t(),!d||!h)return;let m=Xs(f),p=Xs(r.clientWidth-(u+d)),y=Xs(r.clientHeight-(f+h)),x=Xs(u),O={rootMargin:-m+"px "+-p+"px "+-y+"px "+-x+"px",threshold:fn(0,_r(1,l))||1},g=!0;function w(_){let T=_[0].intersectionRatio;if(T!==l){if(!g)return o();T?o(!1,T):i=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!Hg(c,n.getBoundingClientRect())&&o(),g=!1}try{e=new IntersectionObserver(w,lt(A({},O),{root:r.ownerDocument}))}catch(_){e=new IntersectionObserver(w,O)}e.observe(n)}return o(!0),s}function Vg(n,t,e,i){i===void 0&&(i={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=ef(n),u=r||s?[...c?Or(c):[],...Or(t)]:[];u.forEach(x=>{r&&x.addEventListener("scroll",e,{passive:!0}),s&&x.addEventListener("resize",e)});let f=c&&a?GM(c,e):null,d=-1,h=null;o&&(h=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=h)==null||O.observe(t)})),e()}),c&&!l&&h.observe(c),h.observe(t));let m,p=l?pi(n):null;l&&y();function y(){let x=pi(n);p&&!Hg(p,x)&&e(),p=x,m=requestAnimationFrame(y)}return e(),()=>{var x;u.forEach(b=>{r&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var zg=Tg;var Bg=kg,Yg=Mg;var jg=(n,t,e)=>{let i=new Map,r=A({platform:XM},e),s=lt(A({},r.platform),{_c:i});return Og(n,t,lt(A({},r),{platform:s}))};var QM={mounted(){this.show=this._show.bind(this),this.hide=this._hide.bind(this),this.toggle=this._toggle.bind(this),this.stopHide=this._stopHide.bind(this),this.updatePosition=this._updatePosition.bind(this),this.run("mounted")},updated(){this.run("updated")},destroyed(){let n=this;typeof n.cleanup=="function"&&n.cleanup()},_show(){this.floatingEl.classList.remove("hidden"),this.floatingEl.classList.add("animate-appear"),this.floatingEl.dataset.minWidth!==void 0&&(this.floatingEl.style.minWidth=`${this.attachToEl.offsetWidth}px`),this.trigger==="click"&&this.floatingEl.focus({preventScroll:!0})},_hide(){this.floatingEl.classList.contains("hidden")||(this.hideTimeout=setTimeout(()=>{this.floatingEl.classList.add("hidden")},0))},_stopHide(){setTimeout(()=>{clearTimeout(this.hideTimeout)},0)},_toggle(){this.floatingEl.classList.contains("hidden")?this.show():this.hide()},_updatePosition(){let n={placement:this.floatingEl.dataset.placement||"top",middleware:[zg(6),Yg(),Bg()]};jg(this.attachToEl,this.floatingEl,n).then(({x:t,y:e,arrow:i})=>{Object.assign(this.floatingEl.style,{left:`${t}px`,top:`${e}px`})})},run(n){this.floatingEl=this.el,this.attachToEl=document.getElementById(this.floatingEl.dataset.attachToId),this.trigger=this.floatingEl.dataset.trigger,this.attachToEl&&(this.updatePosition(),this.trigger==="hover"&&[["mouseenter",this.show],["mouseleave",this.hide],["focus",this.show],["blur",this.hide]].forEach(([t,e])=>{this.attachToEl.removeEventListener(t,e),this.attachToEl.addEventListener(t,e)}),this.trigger==="click"&&(this.attachToEl.removeEventListener("click",this.toggle),this.floatingEl.removeEventListener("mouseleave",this.hide),this.floatingEl.removeEventListener("blur",this.hide),this.attachToEl.removeEventListener("mousedown",this.stopHide),this.attachToEl.addEventListener("click",this.toggle),this.floatingEl.addEventListener("mouseleave",this.hide),this.floatingEl.addEventListener("blur",this.hide),this.attachToEl.addEventListener("mousedown",this.stopHide)),this.cleanup=Vg(this.attachToEl,this.floatingEl,this.updatePosition))}},$g=QM;var Ug={ChartJsHook:wm,LocalTimeHook:Ip,TippyHook:yg,FloatingHook:$g};var KM={Hooks:Ug};
|
4
4
|
/*! Bundled license information:
|
5
5
|
|
6
6
|
@kurkle/color/dist/color.esm.js:
|