@plusrouter/ui 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- import { jsxs as a, jsx as e, Fragment as ze } from "react/jsx-runtime";
2
- import { w as mt, u as lt, B as W, I as st, R as ge, a as nt, r as Zt, b as Oe, L as vt, c as yt, d as Qt, P as ea, e as ta, E as aa, C as na, f as ra, g as ia, S as sa, h as oa, i as la, j as ca, k as da, l as ha, m as pa, n as ua, o as ma, p as ga, q as fa, s as ba, t as Tt, T as va, v as ya } from "./SideNavigation-uaK5wkfX.js";
3
- import { M as mi, x as gi, y as fi, z as bi, A as vi, D as yi, F as _i, G as Ni, H as wi, J as Mi, K as ki, N as $i, O as xi, Q as Ci, U as Ai, V as Li, W as Si, X as Bi, Y as Ri, Z as Fi, _ as Ti } from "./SideNavigation-uaK5wkfX.js";
4
- import qt, { useId as at, useState as De, useEffect as Ae, useContext as _a, createContext as Na, useMemo as rt, Fragment as wa, useRef as Ce, forwardRef as Xe } from "react";
5
- import * as fe from "@radix-ui/react-alert-dialog";
6
- import se from "clsx";
7
- import { Globe as Ma } from "lucide-react";
8
- const $e = { ...lt, ...mt };
9
- function Er({
1
+ import { jsxs as a, jsx as e, Fragment as Xe } from "react/jsx-runtime";
2
+ import { w as bt, u as pt, B as V, I as dt, R as ue, a as it, r as jt, b as Ue, L as yt, c as _t, d as Wt, P as Vt, e as Kt, E as Jt, C as Zt, f as Qt, g as ea, S as ta, h as aa, i as na, j as ra, k as ia, l as sa, m as oa, n as la, o as ca, p as da, q as ha, s as pa, t as Tt, T as ma, v as ua } from "./SideNavigation-uaK5wkfX.js";
3
+ import { M as ci, x as di, y as hi, z as pi, A as mi, D as ui, F as gi, G as fi, H as bi, J as vi, K as yi, N as _i, O as Ni, Q as wi, U as Mi, V as ki, W as $i, X as xi, Y as Ci, Z as Ai, _ as Li } from "./SideNavigation-uaK5wkfX.js";
4
+ import qt, { useId as rt, useState as De, useEffect as Ae, useContext as ga, createContext as fa, useMemo as ot, Fragment as ba, useRef as Re, forwardRef as Ge } from "react";
5
+ import * as ge from "@radix-ui/react-alert-dialog";
6
+ import re from "clsx";
7
+ import { Globe as va } from "lucide-react";
8
+ const xe = { ...pt, ...bt };
9
+ function Fr({
10
10
  languageControl: t
11
11
  } = {}) {
12
12
  return /* @__PURE__ */ a("div", { className: "customer-incumbent", style: { display: "contents" }, children: [
@@ -14,11 +14,11 @@ function Er({
14
14
  /* @__PURE__ */ e("link", { rel: "stylesheet", href: "/issued-key-modal.css" }),
15
15
  `
16
16
  `,
17
- /* @__PURE__ */ a("aside", { className: `${$e.sidebar}`, children: [
17
+ /* @__PURE__ */ a("aside", { className: `${xe.sidebar}`, children: [
18
18
  /* @__PURE__ */ a("div", { className: "sidebar-account", children: [
19
19
  /* @__PURE__ */ a("div", { className: "account-top", children: [
20
- /* @__PURE__ */ e(W, { id: "account-name", "data-topup": !0, children: "Your account" }),
21
- /* @__PURE__ */ e(W, { "data-support": "notifications", "aria-label": "Notifications", children: /* @__PURE__ */ e(
20
+ /* @__PURE__ */ e(V, { id: "account-name", "data-topup": !0, children: "Your account" }),
21
+ /* @__PURE__ */ e(V, { "data-support": "notifications", "aria-label": "Notifications", children: /* @__PURE__ */ e(
22
22
  "svg",
23
23
  {
24
24
  viewBox: "0 0 20 20",
@@ -38,7 +38,7 @@ function Er({
38
38
  /* @__PURE__ */ e("small", { children: "Balance unavailable" })
39
39
  ] }),
40
40
  /* @__PURE__ */ e(
41
- W,
41
+ V,
42
42
  {
43
43
  className: "topup-icon",
44
44
  "data-topup": !0,
@@ -49,7 +49,7 @@ function Er({
49
49
  ] })
50
50
  ] }),
51
51
  /* @__PURE__ */ a("nav", { "aria-label": "Dashboard", children: [
52
- /* @__PURE__ */ a(W, { "data-page": "access", children: [
52
+ /* @__PURE__ */ a(V, { "data-page": "access", children: [
53
53
  /* @__PURE__ */ e(
54
54
  "svg",
55
55
  {
@@ -65,7 +65,7 @@ function Er({
65
65
  ),
66
66
  /* @__PURE__ */ e("span", { children: "API keys" })
67
67
  ] }),
68
- /* @__PURE__ */ a(W, { "data-page": "logs", children: [
68
+ /* @__PURE__ */ a(V, { "data-page": "logs", children: [
69
69
  /* @__PURE__ */ e(
70
70
  "svg",
71
71
  {
@@ -81,7 +81,7 @@ function Er({
81
81
  ),
82
82
  /* @__PURE__ */ e("span", { children: "LLM logs" })
83
83
  ] }),
84
- /* @__PURE__ */ a(W, { "data-page": "plans", children: [
84
+ /* @__PURE__ */ a(V, { "data-page": "plans", children: [
85
85
  /* @__PURE__ */ e(
86
86
  "svg",
87
87
  {
@@ -101,9 +101,9 @@ function Er({
101
101
  /* @__PURE__ */ a("div", { className: "sidebar-bottom", children: [
102
102
  /* @__PURE__ */ a("div", { id: "identity-session", hidden: !0, children: [
103
103
  /* @__PURE__ */ e("span", { id: "identity-status", role: "status", "aria-live": "polite" }),
104
- /* @__PURE__ */ e(W, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
104
+ /* @__PURE__ */ e(V, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
105
105
  /* @__PURE__ */ e("span", { id: "telegram-link-status", role: "status" }),
106
- /* @__PURE__ */ e(W, { id: "identity-logout", type: "button", children: "Sign out" })
106
+ /* @__PURE__ */ e(V, { id: "identity-logout", type: "button", children: "Sign out" })
107
107
  ] }),
108
108
  /* @__PURE__ */ a(
109
109
  "a",
@@ -157,9 +157,9 @@ function Er({
157
157
  /* @__PURE__ */ a("section", { "data-panel": "access", children: [
158
158
  /* @__PURE__ */ a("div", { className: "section-heading", children: [
159
159
  /* @__PURE__ */ e("h2", { children: "Your API key" }),
160
- /* @__PURE__ */ e(W, { id: "hero-key", className: `${$e.primary}`, children: "Generate API key" })
160
+ /* @__PURE__ */ e(V, { id: "hero-key", className: `${xe.primary}`, children: "Generate API key" })
161
161
  ] }),
162
- /* @__PURE__ */ a("div", { className: `${$e.panel} key-panel`, children: [
162
+ /* @__PURE__ */ a("div", { className: `${xe.panel} key-panel`, children: [
163
163
  /* @__PURE__ */ a("div", { className: "key-row key-labels", children: [
164
164
  /* @__PURE__ */ e("span", { children: "Name" }),
165
165
  /* @__PURE__ */ e("span", { children: "Key" }),
@@ -173,7 +173,7 @@ function Er({
173
173
  ] }),
174
174
  /* @__PURE__ */ e("code", { id: "profile-key", children: "No key connected" }),
175
175
  /* @__PURE__ */ e("span", { id: "key-status", children: "Not connected" }),
176
- /* @__PURE__ */ e(W, { id: "rotate-key", hidden: !0, children: "Rotate key" })
176
+ /* @__PURE__ */ e(V, { id: "rotate-key", hidden: !0, children: "Rotate key" })
177
177
  ] }),
178
178
  /* @__PURE__ */ e("div", { className: "key-note", id: "key-note", children: "Generate a key to get started, or connect an existing key below." })
179
179
  ] }),
@@ -181,7 +181,7 @@ function Er({
181
181
  `,
182
182
  /* @__PURE__ */ a("div", { id: "new-key-mount", children: [
183
183
  /* @__PURE__ */ e(
184
- W,
184
+ V,
185
185
  {
186
186
  id: "new-key",
187
187
  className: "text-button",
@@ -194,10 +194,10 @@ function Er({
194
194
  /* @__PURE__ */ e("h2", { children: "Create your API key" }),
195
195
  /* @__PURE__ */ e("p", { children: "We’ll show your key once. Save it before closing the window." }),
196
196
  /* @__PURE__ */ e(
197
- W,
197
+ V,
198
198
  {
199
199
  id: "create-anonymous-key",
200
- className: `${$e.primary}`,
200
+ className: `${xe.primary}`,
201
201
  children: "Generate key"
202
202
  }
203
203
  ),
@@ -210,7 +210,7 @@ function Er({
210
210
  /* @__PURE__ */ e("h2", { children: "Already have a key?" }),
211
211
  /* @__PURE__ */ e("form", { id: "account-form", children: /* @__PURE__ */ a("div", { className: "entry", children: [
212
212
  /* @__PURE__ */ e(
213
- st,
213
+ dt,
214
214
  {
215
215
  id: "api-key",
216
216
  name: "api_key",
@@ -224,14 +224,14 @@ function Er({
224
224
  "aria-label": "API key"
225
225
  }
226
226
  ),
227
- /* @__PURE__ */ e(W, { type: "submit", children: "Connect key" })
227
+ /* @__PURE__ */ e(V, { type: "submit", children: "Connect key" })
228
228
  ] }) }),
229
229
  /* @__PURE__ */ e("p", { id: "account-status", role: "status", "aria-live": "polite" })
230
230
  ] }),
231
231
  `
232
232
  `,
233
233
  /* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Connection settings" }) }),
234
- /* @__PURE__ */ a("div", { className: `${$e.panel} settings-list`, children: [
234
+ /* @__PURE__ */ a("div", { className: `${xe.panel} settings-list`, children: [
235
235
  /* @__PURE__ */ a("div", { className: "setting-row", children: [
236
236
  /* @__PURE__ */ a("div", { children: [
237
237
  /* @__PURE__ */ e("h3", { children: "Base URL" }),
@@ -239,7 +239,7 @@ function Er({
239
239
  ] }),
240
240
  /* @__PURE__ */ a("div", { className: "copy-inline", children: [
241
241
  /* @__PURE__ */ e("code", { children: "https://router.plus/v1" }),
242
- /* @__PURE__ */ e(W, { id: "copy-endpoint", "aria-label": "Copy base URL", children: "Copy" })
242
+ /* @__PURE__ */ e(V, { id: "copy-endpoint", "aria-label": "Copy base URL", children: "Copy" })
243
243
  ] })
244
244
  ] }),
245
245
  /* @__PURE__ */ a("div", { className: "setting-row", children: [
@@ -275,7 +275,7 @@ function Er({
275
275
  /* @__PURE__ */ e("h2", { children: "Recent requests" }),
276
276
  /* @__PURE__ */ e("span", { children: "Request activity" })
277
277
  ] }),
278
- /* @__PURE__ */ a("div", { className: `${$e.panel} log-panel`, children: [
278
+ /* @__PURE__ */ a("div", { className: `${xe.panel} log-panel`, children: [
279
279
  /* @__PURE__ */ a("div", { className: "log-head", children: [
280
280
  /* @__PURE__ */ e("span", { children: "Time" }),
281
281
  /* @__PURE__ */ e("span", { children: "Model" }),
@@ -283,7 +283,7 @@ function Er({
283
283
  /* @__PURE__ */ e("span", { children: "Duration" }),
284
284
  /* @__PURE__ */ e("span", { children: "Status" })
285
285
  ] }),
286
- /* @__PURE__ */ a("div", { className: `${$e["empty-state"]}`, children: [
286
+ /* @__PURE__ */ a("div", { className: `${xe["empty-state"]}`, children: [
287
287
  /* @__PURE__ */ e("h3", { children: "Request logs aren’t available yet" }),
288
288
  /* @__PURE__ */ e("p", { children: "Your account’s request history will appear here when logging is connected." }),
289
289
  /* @__PURE__ */ e("a", { href: "/docs", children: "View API documentation ↗" })
@@ -295,9 +295,9 @@ function Er({
295
295
  /* @__PURE__ */ a("section", { "data-panel": "plans", hidden: !0, children: [
296
296
  /* @__PURE__ */ a("div", { className: "section-heading", children: [
297
297
  /* @__PURE__ */ e("h2", { children: "Your access" }),
298
- /* @__PURE__ */ e(W, { "data-topup": !0, children: "Manage subscription" })
298
+ /* @__PURE__ */ e(V, { "data-topup": !0, children: "Manage subscription" })
299
299
  ] }),
300
- /* @__PURE__ */ e("div", { className: `${$e.panel} settings-list`, children: /* @__PURE__ */ a("div", { className: "setting-row", children: [
300
+ /* @__PURE__ */ e("div", { className: `${xe.panel} settings-list`, children: /* @__PURE__ */ a("div", { className: "setting-row", children: [
301
301
  /* @__PURE__ */ a("div", { children: [
302
302
  /* @__PURE__ */ e("h3", { id: "current-plan", children: "No account connected" }),
303
303
  /* @__PURE__ */ e("p", { id: "current-expiry", children: "Connect your key to view your access." })
@@ -308,7 +308,7 @@ function Er({
308
308
  /* @__PURE__ */ e("h2", { children: "Choose a plan" }),
309
309
  /* @__PURE__ */ e("span", { children: "No payment fee" })
310
310
  ] }),
311
- /* @__PURE__ */ e("div", { className: `${$e.panel}`, id: "plans-list", children: /* @__PURE__ */ e("p", { className: "loading-note", children: "Loading plans…" }) }),
311
+ /* @__PURE__ */ e("div", { className: `${xe.panel}`, id: "plans-list", children: /* @__PURE__ */ e("p", { className: "loading-note", children: "Loading plans…" }) }),
312
312
  /* @__PURE__ */ e("p", { id: "plans-status", role: "status" }),
313
313
  /* @__PURE__ */ a("section", { id: "catalog", "aria-label": "Available models", children: [
314
314
  /* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Included models" }) }),
@@ -316,9 +316,9 @@ function Er({
316
316
  /* @__PURE__ */ e("ul", { id: "catalog-items" })
317
317
  ] }),
318
318
  /* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Latest payment" }) }),
319
- /* @__PURE__ */ a("div", { className: `${$e.panel} payment-summary`, children: [
319
+ /* @__PURE__ */ a("div", { className: `${xe.panel} payment-summary`, children: [
320
320
  /* @__PURE__ */ e("span", { id: "latest-payment", children: "Connect your account to view payments." }),
321
- /* @__PURE__ */ e(W, { "data-topup": !0, children: "View invoice" })
321
+ /* @__PURE__ */ e(V, { "data-topup": !0, children: "View invoice" })
322
322
  ] })
323
323
  ] }),
324
324
  `
@@ -337,7 +337,7 @@ function Er({
337
337
  "aria-labelledby": "topup-title",
338
338
  children: [
339
339
  /* @__PURE__ */ a("header", { className: "drawer-header", children: [
340
- /* @__PURE__ */ e(W, { id: "close-topup", "aria-label": "Close top up", children: "×" }),
340
+ /* @__PURE__ */ e(V, { id: "close-topup", "aria-label": "Close top up", children: "×" }),
341
341
  /* @__PURE__ */ e("span", { children: "Finance / Add funds" })
342
342
  ] }),
343
343
  /* @__PURE__ */ a("div", { className: "drawer-body", children: [
@@ -353,7 +353,7 @@ function Er({
353
353
  /* @__PURE__ */ a("div", { className: "balance-amount", children: [
354
354
  /* @__PURE__ */ e("span", { children: "$" }),
355
355
  /* @__PURE__ */ e(
356
- st,
356
+ dt,
357
357
  {
358
358
  id: "preview-amount",
359
359
  type: "number",
@@ -381,7 +381,7 @@ function Er({
381
381
  }
382
382
  ),
383
383
  /* @__PURE__ */ a("div", { className: "balance-preview-footer", children: [
384
- /* @__PURE__ */ a(W, { id: "preview-connect", className: `${$e.primary}`, children: [
384
+ /* @__PURE__ */ a(V, { id: "preview-connect", className: `${xe.primary}`, children: [
385
385
  "Connect API key ",
386
386
  /* @__PURE__ */ e("span", { children: "→" })
387
387
  ] }),
@@ -406,7 +406,7 @@ function Er({
406
406
  `
407
407
  `,
408
408
  /* @__PURE__ */ e(
409
- W,
409
+ V,
410
410
  {
411
411
  id: "refresh",
412
412
  className: "text-button",
@@ -417,7 +417,7 @@ function Er({
417
417
  `
418
418
  `,
419
419
  /* @__PURE__ */ e(
420
- W,
420
+ V,
421
421
  {
422
422
  id: "logout",
423
423
  className: "text-button",
@@ -477,10 +477,10 @@ function Er({
477
477
  }
478
478
  ),
479
479
  /* @__PURE__ */ e(
480
- W,
480
+ V,
481
481
  {
482
482
  id: "pay",
483
- className: `${$e.primary}`,
483
+ className: `${xe.primary}`,
484
484
  type: "submit",
485
485
  children: "Create invoice"
486
486
  }
@@ -500,7 +500,7 @@ function Er({
500
500
  /* @__PURE__ */ a("section", { id: "invoice", hidden: !0, "aria-label": "Payment invoice", children: [
501
501
  `
502
502
  `,
503
- /* @__PURE__ */ e(W, { id: "invoice-back", children: "← Payment methods" }),
503
+ /* @__PURE__ */ e(V, { id: "invoice-back", children: "← Payment methods" }),
504
504
  /* @__PURE__ */ e("h2", { children: "Pay by QR code" }),
505
505
  /* @__PURE__ */ e("p", { children: "Send the exact amount in one transaction." }),
506
506
  /* @__PURE__ */ e("p", { id: "invoice-countdown" }),
@@ -513,12 +513,12 @@ function Er({
513
513
  ] }),
514
514
  /* @__PURE__ */ a("div", { className: "payment-copy", children: [
515
515
  /* @__PURE__ */ e("span", { children: "Wallet address" }),
516
- /* @__PURE__ */ e(W, { id: "copy-wallet", children: "Copy" }),
516
+ /* @__PURE__ */ e(V, { id: "copy-wallet", children: "Copy" }),
517
517
  /* @__PURE__ */ e("code", { id: "payment-wallet" })
518
518
  ] }),
519
519
  /* @__PURE__ */ a("div", { className: "payment-copy", children: [
520
520
  /* @__PURE__ */ e("span", { children: "Amount to pay" }),
521
- /* @__PURE__ */ e(W, { id: "copy-payment", children: "Copy" }),
521
+ /* @__PURE__ */ e(V, { id: "copy-payment", children: "Copy" }),
522
522
  /* @__PURE__ */ e("code", { id: "payment-amount" })
523
523
  ] }),
524
524
  /* @__PURE__ */ e("p", { id: "payment-copy-status", role: "status" }),
@@ -544,7 +544,7 @@ function Er({
544
544
  `
545
545
  `,
546
546
  /* @__PURE__ */ a(
547
- W,
547
+ V,
548
548
  {
549
549
  id: "support-launcher",
550
550
  className: "support-launcher",
@@ -581,7 +581,7 @@ function Er({
581
581
  children: [
582
582
  /* @__PURE__ */ a("div", { className: "support-sidebar", children: [
583
583
  /* @__PURE__ */ a("div", { className: "support-tools", children: [
584
- /* @__PURE__ */ e(W, { id: "close-support", "aria-label": "Close support", children: "×" }),
584
+ /* @__PURE__ */ e(V, { id: "close-support", "aria-label": "Close support", children: "×" }),
585
585
  /* @__PURE__ */ e("span", { className: "window-handle" })
586
586
  ] }),
587
587
  /* @__PURE__ */ e("h2", { id: "support-title", children: "Support" }),
@@ -592,13 +592,13 @@ function Er({
592
592
  role: "group",
593
593
  "aria-label": "Support inbox",
594
594
  children: [
595
- /* @__PURE__ */ e(W, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
596
- /* @__PURE__ */ e(W, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
595
+ /* @__PURE__ */ e(V, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
596
+ /* @__PURE__ */ e(V, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
597
597
  ]
598
598
  }
599
599
  ),
600
600
  /* @__PURE__ */ a(
601
- W,
601
+ V,
602
602
  {
603
603
  className: "notification-row",
604
604
  "data-inbox": "notifications",
@@ -621,7 +621,7 @@ function Er({
621
621
  }
622
622
  ),
623
623
  /* @__PURE__ */ e("p", { id: "support-list-status", children: "Ticket history is not connected." }),
624
- /* @__PURE__ */ a(W, { id: "new-ticket", children: [
624
+ /* @__PURE__ */ a(V, { id: "new-ticket", children: [
625
625
  "New ticket ",
626
626
  /* @__PURE__ */ e("span", { children: "+" })
627
627
  ] })
@@ -643,14 +643,14 @@ function Er({
643
643
  ) }),
644
644
  /* @__PURE__ */ e("h3", { children: "How can we help?" }),
645
645
  /* @__PURE__ */ e("p", { children: "Support messages are not connected yet. You can prepare your request here." }),
646
- /* @__PURE__ */ e(W, { id: "compose-ticket", children: "Write a request" })
646
+ /* @__PURE__ */ e(V, { id: "compose-ticket", children: "Write a request" })
647
647
  ] }),
648
648
  /* @__PURE__ */ a("form", { id: "ticket-form", hidden: !0, children: [
649
649
  /* @__PURE__ */ e("h3", { children: "New request" }),
650
650
  /* @__PURE__ */ a("label", { children: [
651
651
  "Subject",
652
652
  /* @__PURE__ */ e(
653
- st,
653
+ dt,
654
654
  {
655
655
  id: "ticket-subject",
656
656
  required: !0,
@@ -673,7 +673,7 @@ function Er({
673
673
  )
674
674
  ] }),
675
675
  /* @__PURE__ */ e("p", { children: "Sending tickets is not available yet." }),
676
- /* @__PURE__ */ e(W, { type: "submit", children: "Copy request" }),
676
+ /* @__PURE__ */ e(V, { type: "submit", children: "Copy request" }),
677
677
  /* @__PURE__ */ e("p", { id: "ticket-status", role: "status" })
678
678
  ] })
679
679
  ] })
@@ -684,19 +684,19 @@ function Er({
684
684
  `
685
685
  ] });
686
686
  }
687
- const c = { ...lt, ...mt }, _t = [
687
+ const c = { ...pt, ...bt }, Nt = [
688
688
  ["agents", "Agents", "terminal"],
689
689
  ["sessions", "Sessions", "screen"],
690
690
  ["library", "Library", "library"],
691
691
  ["connection", "Connection", "key"],
692
692
  ["balance", "Balance", "wallet"],
693
693
  ["usage", "Usage", "chart"]
694
- ], Pt = Na(null), ka = ["Overview", "Requests", "Sessions", "Context"];
695
- function $a({
694
+ ], Pt = fa(null), ya = ["Overview", "Requests", "Sessions", "Context"];
695
+ function _a({
696
696
  children: t,
697
697
  onClick: n,
698
698
  primary: r = !1,
699
- label: s
699
+ label: o
700
700
  }) {
701
701
  return /* @__PURE__ */ e(
702
702
  "button",
@@ -705,101 +705,101 @@ function $a({
705
705
  className: `${c.text}${r ? " primary" : ""}`,
706
706
  onClick: n,
707
707
  disabled: !n,
708
- "aria-label": s,
708
+ "aria-label": o,
709
709
  children: t
710
710
  }
711
711
  );
712
712
  }
713
- function Ve({
713
+ function Ke({
714
714
  status: t,
715
715
  error: n,
716
716
  onRetry: r,
717
- loading: s,
717
+ loading: o,
718
718
  empty: l
719
719
  }) {
720
720
  return t === "error" ? /* @__PURE__ */ a("div", { className: `${c["empty-state"]}`, role: "alert", children: [
721
721
  /* @__PURE__ */ e("span", { children: n || "Unable to load this information." }),
722
- r && /* @__PURE__ */ e($a, { onClick: r, children: "Try again" })
723
- ] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? s : l });
722
+ r && /* @__PURE__ */ e(_a, { onClick: r, children: "Try again" })
723
+ ] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? o : l });
724
724
  }
725
- function Hr({
725
+ function Tr({
726
726
  page: t,
727
727
  theme: n,
728
728
  children: r,
729
- onNavigate: s,
729
+ onNavigate: o,
730
730
  onRefresh: l,
731
731
  refreshing: i = !1,
732
732
  usageSection: d = "Overview",
733
- usageSections: h = ka,
734
- onUsageSectionChange: m,
735
- notice: x,
736
- headerActions: M,
737
- sidebarFooter: $,
738
- beforeContent: R
733
+ usageSections: p = ya,
734
+ onUsageSectionChange: g,
735
+ notice: $,
736
+ headerActions: x,
737
+ sidebarFooter: k,
738
+ beforeContent: S
739
739
  }) {
740
- const [N, k] = De(
740
+ const [M, b] = De(
741
741
  () => typeof matchMedia < "u" && matchMedia(
742
742
  "(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
743
743
  ).matches
744
744
  );
745
745
  Ae(() => {
746
- const q = matchMedia(
746
+ const F = matchMedia(
747
747
  "(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
748
- ), B = () => k(q.matches);
749
- return q.addEventListener("change", B), () => q.removeEventListener("change", B);
748
+ ), B = () => b(F.matches);
749
+ return F.addEventListener("change", B), () => F.removeEventListener("change", B);
750
750
  }, []);
751
- const f = t === "settings" ? "Settings" : _t.find(([q]) => q === t)[1], v = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", F = t === "connection" ? "providers" : t, o = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
752
- /* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: Zt, width: "22", height: "22", alt: "" }) }),
751
+ const N = t === "settings" ? "Settings" : Nt.find(([F]) => F === t)[1], f = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", E = t === "connection" ? "providers" : t, s = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
752
+ /* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: jt, width: "22", height: "22", alt: "" }) }),
753
753
  /* @__PURE__ */ e("span", { children: "RouterPlus" })
754
- ] }), y = /* @__PURE__ */ a(
754
+ ] }), w = /* @__PURE__ */ a(
755
755
  "button",
756
756
  {
757
757
  type: "button",
758
758
  id: "prefs",
759
759
  className: `${c.icon}${t === "settings" ? " on" : ""}`,
760
760
  "aria-label": "Settings",
761
- onClick: () => s?.("settings"),
761
+ onClick: () => o?.("settings"),
762
762
  children: [
763
- /* @__PURE__ */ e(ge, { name: "settings" }),
763
+ /* @__PURE__ */ e(ue, { name: "settings" }),
764
764
  /* @__PURE__ */ e("span", { className: `${c["side-l"]}`, children: "Settings" })
765
765
  ]
766
766
  }
767
767
  ), C = /* @__PURE__ */ a(
768
768
  "div",
769
769
  {
770
- className: N ? c.segs : c["nav-sub"],
771
- id: N ? "usageTab" : void 0,
772
- ref: (q) => {
773
- if (!q || !N) return;
770
+ className: M ? c.segs : c["nav-sub"],
771
+ id: M ? "usageTab" : void 0,
772
+ ref: (F) => {
773
+ if (!F || !M) return;
774
774
  const B = () => {
775
- const U = q.querySelector("button.on"), te = q.querySelector(".thumb");
776
- U && te && (te.style.width = U.offsetWidth + "px", te.style.transform = `translateX(${U.offsetLeft}px)`);
775
+ const H = F.querySelector("button.on"), ae = F.querySelector(".thumb");
776
+ H && ae && (ae.style.width = H.offsetWidth + "px", ae.style.transform = `translateX(${H.offsetLeft}px)`);
777
777
  };
778
778
  B(), document.fonts.ready.then(B);
779
779
  },
780
780
  role: "group",
781
781
  "aria-label": "Usage section",
782
782
  children: [
783
- N && /* @__PURE__ */ e("span", { className: `${c.thumb}` }),
784
- !N && /* @__PURE__ */ e(
783
+ M && /* @__PURE__ */ e("span", { className: `${c.thumb}` }),
784
+ !M && /* @__PURE__ */ e(
785
785
  "span",
786
786
  {
787
787
  className: `${c["nav-hl"]} ${c.still}`,
788
788
  style: {
789
- transform: `translateY(${h.indexOf(d) * 27}px)`
789
+ transform: `translateY(${p.indexOf(d) * 27}px)`
790
790
  }
791
791
  }
792
792
  ),
793
- h.map((q) => /* @__PURE__ */ e(
793
+ p.map((F) => /* @__PURE__ */ e(
794
794
  "button",
795
795
  {
796
- className: N ? `opt${d === q ? c.on : ""}` : `nav-s${d === q ? c.cur : ""}`,
796
+ className: M ? `opt${d === F ? c.on : ""}` : `nav-s${d === F ? c.cur : ""}`,
797
797
  type: "button",
798
- "aria-pressed": d === q,
799
- onClick: () => m?.(q),
800
- children: /* @__PURE__ */ e("span", { children: q })
798
+ "aria-pressed": d === F,
799
+ onClick: () => g?.(F),
800
+ children: /* @__PURE__ */ e("span", { children: F })
801
801
  },
802
- q
802
+ F
803
803
  ))
804
804
  ]
805
805
  }
@@ -808,51 +808,51 @@ function Hr({
808
808
  "div",
809
809
  {
810
810
  "data-theme": n,
811
- className: `mp-ui ${c["mp-ui"]} ${c.window} ${c.web}${N ? "" : " side-nav"}`,
811
+ className: `mp-ui ${c["mp-ui"]} ${c.window} ${c.web}${M ? "" : " side-nav"}`,
812
812
  children: [
813
- !N && /* @__PURE__ */ a("aside", { className: `${c.sidebar}`, id: "side", children: [
814
- /* @__PURE__ */ e("div", { className: `${c["side-top"]}`, children: o }),
813
+ !M && /* @__PURE__ */ a("aside", { className: `${c.sidebar}`, id: "side", children: [
814
+ /* @__PURE__ */ e("div", { className: `${c["side-top"]}`, children: s }),
815
815
  /* @__PURE__ */ e("div", { className: `${c["side-scroll"]}`, children: /* @__PURE__ */ e(
816
816
  "nav",
817
817
  {
818
818
  className: `${c.seg}`,
819
819
  id: "nav",
820
820
  "aria-label": "Main navigation",
821
- children: _t.map(([q, B, U]) => /* @__PURE__ */ a(qt.Fragment, { children: [
821
+ children: Nt.map(([F, B, H]) => /* @__PURE__ */ a(qt.Fragment, { children: [
822
822
  /* @__PURE__ */ a(
823
823
  "button",
824
824
  {
825
825
  type: "button",
826
- "data-view": q === "connection" ? "providers" : q,
827
- className: t === q ? c.on : "",
828
- "aria-current": t === q ? "page" : void 0,
829
- onClick: () => s?.(q),
826
+ "data-view": F === "connection" ? "providers" : F,
827
+ className: t === F ? c.on : "",
828
+ "aria-current": t === F ? "page" : void 0,
829
+ onClick: () => o?.(F),
830
830
  children: [
831
- /* @__PURE__ */ e(ge, { name: U }),
831
+ /* @__PURE__ */ e(ue, { name: H }),
832
832
  /* @__PURE__ */ e("span", { children: B })
833
833
  ]
834
834
  }
835
835
  ),
836
- q === "usage" && t === "usage" && C
837
- ] }, q))
836
+ F === "usage" && t === "usage" && C
837
+ ] }, F))
838
838
  }
839
839
  ) }),
840
840
  /* @__PURE__ */ a("div", { className: `${c["side-foot"]}`, children: [
841
- y,
842
- $
841
+ w,
842
+ k
843
843
  ] })
844
844
  ] }),
845
845
  /* @__PURE__ */ a("header", { className: `${c.top}`, children: [
846
- N && o,
847
- /* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: f }),
848
- !N && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
849
- /* @__PURE__ */ e("span", { children: v }),
846
+ M && s,
847
+ /* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: N }),
848
+ !M && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
849
+ /* @__PURE__ */ e("span", { children: f }),
850
850
  /* @__PURE__ */ e("i", { children: "/" }),
851
- t === "usage" ? /* @__PURE__ */ a(ze, { children: [
851
+ t === "usage" ? /* @__PURE__ */ a(Xe, { children: [
852
852
  /* @__PURE__ */ e("span", { children: "Usage" }),
853
853
  /* @__PURE__ */ e("i", { children: "/" }),
854
854
  /* @__PURE__ */ e("b", { children: d })
855
- ] }) : /* @__PURE__ */ e("b", { children: f })
855
+ ] }) : /* @__PURE__ */ e("b", { children: N })
856
856
  ] }),
857
857
  /* @__PURE__ */ a("div", { className: `${c.actions}`, children: [
858
858
  /* @__PURE__ */ e(
@@ -864,44 +864,44 @@ function Hr({
864
864
  "aria-label": "Refresh",
865
865
  disabled: i,
866
866
  onClick: l,
867
- children: /* @__PURE__ */ e(ge, { name: "refresh" })
867
+ children: /* @__PURE__ */ e(ue, { name: "refresh" })
868
868
  }
869
869
  ),
870
- M,
871
- N && y
870
+ x,
871
+ M && w
872
872
  ] })
873
873
  ] }),
874
- /* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${F}`, children: [
875
- R,
876
- /* @__PURE__ */ e(Pt.Provider, { value: t === "usage" && N ? C : null, children: r })
874
+ /* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${E}`, children: [
875
+ S,
876
+ /* @__PURE__ */ e(Pt.Provider, { value: t === "usage" && M ? C : null, children: r })
877
877
  ] }),
878
- x && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: x })
878
+ $ && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: $ })
879
879
  ]
880
880
  }
881
881
  );
882
882
  }
883
- function Dr({
883
+ function qr({
884
884
  groups: t,
885
885
  query: n,
886
886
  onQueryChange: r,
887
- onSelect: s,
887
+ onSelect: o,
888
888
  onImport: l,
889
889
  onCustomProvider: i,
890
890
  onPlugins: d,
891
- hasProviders: h = !1,
892
- status: m = "ready",
893
- error: x,
894
- onRetry: M
891
+ hasProviders: p = !1,
892
+ status: g = "ready",
893
+ error: $,
894
+ onRetry: x
895
895
  }) {
896
- const $ = at(), R = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), N = t.map((k) => ({
897
- ...k,
898
- providers: k.providers.filter(
899
- (f) => R.every(
900
- (v) => `${f.name} ${f.detail ?? ""} ${k.title} ${k.hint ?? ""}`.toLocaleLowerCase().includes(v)
896
+ const k = rt(), S = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), M = t.map((b) => ({
897
+ ...b,
898
+ providers: b.providers.filter(
899
+ (N) => S.every(
900
+ (f) => `${N.name} ${N.detail ?? ""} ${b.title} ${b.hint ?? ""}`.toLocaleLowerCase().includes(f)
901
901
  )
902
902
  )
903
- })).filter((k) => k.providers.length);
904
- return /* @__PURE__ */ a(ze, { children: [
903
+ })).filter((b) => b.providers.length);
904
+ return /* @__PURE__ */ a(Xe, { children: [
905
905
  /* @__PURE__ */ e("div", { className: `${c["after-list"]} ${c.away}`, children: /* @__PURE__ */ e("button", { className: `${c.text}`, children: "+ Add provider" }) }),
906
906
  /* @__PURE__ */ a(
907
907
  "section",
@@ -909,23 +909,23 @@ function Dr({
909
909
  className: `${c.sheet}`,
910
910
  id: "addSheet",
911
911
  "aria-label": "Providers",
912
- "aria-busy": m === "loading",
912
+ "aria-busy": g === "loading",
913
913
  children: [
914
914
  /* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
915
- /* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: $, children: h ? "Add a provider" : "Add your first provider" }),
915
+ /* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: k, children: p ? "Add a provider" : "Add your first provider" }),
916
916
  /* @__PURE__ */ e("span", { className: `${c.grow}` }),
917
917
  /* @__PURE__ */ e(
918
918
  "input",
919
919
  {
920
920
  className: `${c.find}`,
921
- id: $,
921
+ id: k,
922
922
  type: "text",
923
923
  "aria-label": "Find a vendor",
924
924
  placeholder: "Find a vendor…",
925
925
  value: n,
926
- onChange: (k) => r(k.target.value),
927
- onKeyDown: (k) => {
928
- k.key === "Escape" && r("");
926
+ onChange: (b) => r(b.target.value),
927
+ onKeyDown: (b) => {
928
+ b.key === "Escape" && r("");
929
929
  }
930
930
  }
931
931
  ),
@@ -939,58 +939,58 @@ function Dr({
939
939
  }
940
940
  )
941
941
  ] }),
942
- m !== "ready" ? /* @__PURE__ */ e(
943
- Ve,
942
+ g !== "ready" ? /* @__PURE__ */ e(
943
+ Ke,
944
944
  {
945
- status: m,
946
- error: x,
947
- onRetry: M,
945
+ status: g,
946
+ error: $,
947
+ onRetry: x,
948
948
  loading: "Loading providers…"
949
949
  }
950
950
  ) : /* @__PURE__ */ a("div", { className: "tiles", children: [
951
- N.length === 0 && /* @__PURE__ */ e(
952
- Ve,
951
+ M.length === 0 && /* @__PURE__ */ e(
952
+ Ke,
953
953
  {
954
954
  loading: "",
955
955
  empty: n.trim() ? `No providers match “${n.trim()}”. Try another name or add a custom provider.` : "No providers available."
956
956
  }
957
957
  ),
958
- N.map((k) => /* @__PURE__ */ a(qt.Fragment, { children: [
958
+ M.map((b) => /* @__PURE__ */ a(qt.Fragment, { children: [
959
959
  /* @__PURE__ */ a("div", { className: `${c.kind}`, children: [
960
- /* @__PURE__ */ e("b", { children: k.title }),
961
- k.hint && /* @__PURE__ */ e("span", { children: k.hint })
960
+ /* @__PURE__ */ e("b", { children: b.title }),
961
+ b.hint && /* @__PURE__ */ e("span", { children: b.hint })
962
962
  ] }),
963
963
  /* @__PURE__ */ a("div", { className: `${c.grid}`, children: [
964
- k.providers.map((f) => /* @__PURE__ */ a(
964
+ b.providers.map((N) => /* @__PURE__ */ a(
965
965
  "button",
966
966
  {
967
967
  type: "button",
968
968
  className: `${c.tile}`,
969
- disabled: f.disabled,
970
- onClick: () => s?.(f),
971
- title: f.detail || f.name,
969
+ disabled: N.disabled,
970
+ onClick: () => o?.(N),
971
+ title: N.detail || N.name,
972
972
  children: [
973
- /* @__PURE__ */ e(nt, { name: f.icon }),
974
- /* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: f.name }) })
973
+ /* @__PURE__ */ e(it, { name: N.icon }),
974
+ /* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: N.name }) })
975
975
  ]
976
976
  },
977
- f.id
977
+ N.id
978
978
  )),
979
- k.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
979
+ b.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
980
980
  "button",
981
981
  {
982
982
  type: "button",
983
983
  className: `${c.tile} ${c["more-plugins"]}`,
984
984
  onClick: d,
985
985
  children: [
986
- /* @__PURE__ */ e("span", { className: `${c.puzzle}`, children: /* @__PURE__ */ e(ge, { name: "plugin" }) }),
986
+ /* @__PURE__ */ e("span", { className: `${c.puzzle}`, children: /* @__PURE__ */ e(ue, { name: "plugin" }) }),
987
987
  /* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: "More in Plugins" }) }),
988
- /* @__PURE__ */ e(ge, { name: "chevron" })
988
+ /* @__PURE__ */ e(ue, { name: "chevron" })
989
989
  ]
990
990
  }
991
991
  )
992
992
  ] })
993
- ] }, k.id)),
993
+ ] }, b.id)),
994
994
  !n.trim() && /* @__PURE__ */ a("div", { className: `${c["custom-foot"]}`, children: [
995
995
  /* @__PURE__ */ a(
996
996
  "button",
@@ -999,7 +999,7 @@ function Dr({
999
999
  className: `${c.custom}`,
1000
1000
  onClick: i,
1001
1001
  children: [
1002
- /* @__PURE__ */ e(ge, { name: "plus" }),
1002
+ /* @__PURE__ */ e(ue, { name: "plus" }),
1003
1003
  /* @__PURE__ */ e("span", { children: "Custom provider" })
1004
1004
  ]
1005
1005
  }
@@ -1012,27 +1012,27 @@ function Dr({
1012
1012
  )
1013
1013
  ] });
1014
1014
  }
1015
- function Or({
1015
+ function Pr({
1016
1016
  agents: t,
1017
1017
  endpoint: n,
1018
1018
  onCopyEndpoint: r,
1019
- onOpenConnection: s,
1019
+ onOpenConnection: o,
1020
1020
  onToggle: l,
1021
1021
  onMappingChange: i,
1022
1022
  showGuide: d = !0,
1023
- onDismissGuide: h,
1024
- connectionReady: m = !1,
1025
- onSaveProfile: x,
1026
- profileLabel: M = "none yet · save the setup to switch back in one click",
1027
- onManage: $,
1028
- onInstall: R,
1029
- installCount: N,
1030
- status: k = "ready",
1031
- error: f,
1032
- onRetry: v
1023
+ onDismissGuide: p,
1024
+ connectionReady: g = !1,
1025
+ onSaveProfile: $,
1026
+ profileLabel: x = "none yet · save the setup to switch back in one click",
1027
+ onManage: k,
1028
+ onInstall: S,
1029
+ installCount: M,
1030
+ status: b = "ready",
1031
+ error: N,
1032
+ onRetry: f
1033
1033
  }) {
1034
- const F = Number(m) + Number(t.some((o) => o.state === "connected"));
1035
- return /* @__PURE__ */ a(ze, { children: [
1034
+ const E = Number(g) + Number(t.some((s) => s.state === "connected"));
1035
+ return /* @__PURE__ */ a(Xe, { children: [
1036
1036
  /* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
1037
1037
  /* @__PURE__ */ a(
1038
1038
  "button",
@@ -1041,7 +1041,7 @@ function Or({
1041
1041
  type: "button",
1042
1042
  "aria-expanded": !1,
1043
1043
  children: [
1044
- /* @__PURE__ */ e(ge, { name: "chevron" }),
1044
+ /* @__PURE__ */ e(ue, { name: "chevron" }),
1045
1045
  /* @__PURE__ */ e("span", { className: `${c.label}`, children: "Connect" })
1046
1046
  ]
1047
1047
  }
@@ -1061,7 +1061,7 @@ function Or({
1061
1061
  className: `${c.copy}`,
1062
1062
  "aria-label": "Copy endpoint",
1063
1063
  onClick: r,
1064
- children: /* @__PURE__ */ e(ge, { name: "copy" })
1064
+ children: /* @__PURE__ */ e(ue, { name: "copy" })
1065
1065
  }
1066
1066
  )
1067
1067
  ]
@@ -1070,27 +1070,27 @@ function Or({
1070
1070
  ] }),
1071
1071
  /* @__PURE__ */ a("section", { className: `${c.profiles}`, children: [
1072
1072
  /* @__PURE__ */ e("span", { className: `${c.label}`, children: "Profiles" }),
1073
- /* @__PURE__ */ e("div", { id: "profiles", className: `${c.chips}`, children: /* @__PURE__ */ e("span", { className: `${c.hint}`, children: M }) }),
1073
+ /* @__PURE__ */ e("div", { id: "profiles", className: `${c.chips}`, children: /* @__PURE__ */ e("span", { className: `${c.hint}`, children: x }) }),
1074
1074
  /* @__PURE__ */ e(
1075
1075
  "button",
1076
1076
  {
1077
1077
  type: "button",
1078
1078
  id: "save",
1079
1079
  className: `${c.text}`,
1080
- onClick: x,
1080
+ onClick: $,
1081
1081
  children: "+ Save current"
1082
1082
  }
1083
1083
  )
1084
1084
  ] }),
1085
- k !== "ready" ? /* @__PURE__ */ e(
1086
- Ve,
1085
+ b !== "ready" ? /* @__PURE__ */ e(
1086
+ Ke,
1087
1087
  {
1088
- status: k,
1089
- error: f,
1090
- onRetry: v,
1088
+ status: b,
1089
+ error: N,
1090
+ onRetry: f,
1091
1091
  loading: "Loading agents…"
1092
1092
  }
1093
- ) : /* @__PURE__ */ a(ze, { children: [
1093
+ ) : /* @__PURE__ */ a(Xe, { children: [
1094
1094
  d && /* @__PURE__ */ e("div", { className: `${c["ag-lead"]} ${c.guiding}`, children: /* @__PURE__ */ a(
1095
1095
  "section",
1096
1096
  {
@@ -1100,7 +1100,7 @@ function Or({
1100
1100
  /* @__PURE__ */ a("div", { className: `${c["guide-head"]}`, children: [
1101
1101
  /* @__PURE__ */ e("b", { className: `${c["guide-h"]}`, children: "Get started" }),
1102
1102
  /* @__PURE__ */ a("span", { className: `${c["guide-n"]}`, children: [
1103
- F,
1103
+ E,
1104
1104
  " of 2 done"
1105
1105
  ] }),
1106
1106
  /* @__PURE__ */ e(
@@ -1109,8 +1109,8 @@ function Or({
1109
1109
  type: "button",
1110
1110
  className: `${c["guide-x"]}`,
1111
1111
  "aria-label": "Dismiss setup guide",
1112
- onClick: h,
1113
- children: /* @__PURE__ */ e(ge, { name: "close" })
1112
+ onClick: p,
1113
+ children: /* @__PURE__ */ e(ue, { name: "close" })
1114
1114
  }
1115
1115
  )
1116
1116
  ] }),
@@ -1119,13 +1119,13 @@ function Or({
1119
1119
  /* @__PURE__ */ e("span", { className: `${c["guide-tick"]}`, children: "1" }),
1120
1120
  /* @__PURE__ */ a("div", { className: `${c["guide-body"]}`, children: [
1121
1121
  /* @__PURE__ */ e("b", { className: `${c["guide-title"]}`, children: "Connect RouterPlus" }),
1122
- /* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children: m ? "RouterPlus connection is ready" : "Save your RouterPlus API key on the Connection page" }),
1123
- !m && /* @__PURE__ */ e(
1122
+ /* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children: g ? "RouterPlus connection is ready" : "Save your RouterPlus API key on the Connection page" }),
1123
+ !g && /* @__PURE__ */ e(
1124
1124
  "button",
1125
1125
  {
1126
1126
  type: "button",
1127
1127
  className: `${c.text} ${c.primary} guide-go`,
1128
- onClick: s,
1128
+ onClick: o,
1129
1129
  children: "Open Connection"
1130
1130
  }
1131
1131
  )
@@ -1136,22 +1136,22 @@ function Or({
1136
1136
  /* @__PURE__ */ a("div", { className: `${c["guide-body"]}`, children: [
1137
1137
  /* @__PURE__ */ e("b", { className: `${c["guide-title"]}`, children: "Connect an agent" }),
1138
1138
  /* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children: "RouterPlus found these agents. Choose one to connect it:" }),
1139
- /* @__PURE__ */ e("div", { className: `${c["guide-agents"]}`, children: t.filter((o) => o.state !== "missing").map((o) => /* @__PURE__ */ a(
1139
+ /* @__PURE__ */ e("div", { className: `${c["guide-agents"]}`, children: t.filter((s) => s.state !== "missing").map((s) => /* @__PURE__ */ a(
1140
1140
  "button",
1141
1141
  {
1142
1142
  type: "button",
1143
1143
  className: `${c["guide-agent"]}`,
1144
- disabled: !l || !m && o.state === "needs-connection" || o.pending,
1144
+ disabled: !l || !g && s.state === "needs-connection" || s.pending,
1145
1145
  onClick: () => l?.(
1146
- o.id,
1147
- o.state !== "connected"
1146
+ s.id,
1147
+ s.state !== "connected"
1148
1148
  ),
1149
1149
  children: [
1150
- /* @__PURE__ */ e(nt, { name: o.icon }),
1151
- /* @__PURE__ */ e("span", { children: o.name })
1150
+ /* @__PURE__ */ e(it, { name: s.icon }),
1151
+ /* @__PURE__ */ e("span", { children: s.name })
1152
1152
  ]
1153
1153
  },
1154
- o.id
1154
+ s.id
1155
1155
  )) })
1156
1156
  ] })
1157
1157
  ] })
@@ -1160,97 +1160,97 @@ function Or({
1160
1160
  }
1161
1161
  ) }),
1162
1162
  t.length === 0 && /* @__PURE__ */ e(
1163
- Ve,
1163
+ Ke,
1164
1164
  {
1165
1165
  loading: "",
1166
1166
  empty: "No agents found. Install an agent to configure its models."
1167
1167
  }
1168
1168
  ),
1169
1169
  /* @__PURE__ */ a("div", { className: `${c.list} ${c.extras}`, id: "agents", children: [
1170
- t.map((o) => /* @__PURE__ */ a(
1170
+ t.map((s) => /* @__PURE__ */ a(
1171
1171
  "article",
1172
1172
  {
1173
- className: `${c.row} ${c.agent}${o.state === "missing" ? " gone" : " conn"}${o.state === "disconnected" ? " unplugged" : ""}`,
1174
- "aria-label": o.name,
1175
- "aria-busy": o.pending,
1173
+ className: `${c.row} ${c.agent}${s.state === "missing" ? " gone" : " conn"}${s.state === "disconnected" ? " unplugged" : ""}`,
1174
+ "aria-label": s.name,
1175
+ "aria-busy": s.pending,
1176
1176
  children: [
1177
1177
  /* @__PURE__ */ e(
1178
1178
  "button",
1179
1179
  {
1180
1180
  type: "button",
1181
1181
  className: `${c["ag-handle"]}`,
1182
- "aria-label": `Arrange ${o.name}`,
1183
- children: /* @__PURE__ */ e(nt, { name: o.icon })
1182
+ "aria-label": `Arrange ${s.name}`,
1183
+ children: /* @__PURE__ */ e(it, { name: s.icon })
1184
1184
  }
1185
1185
  ),
1186
1186
  /* @__PURE__ */ a(
1187
1187
  "div",
1188
1188
  {
1189
- className: `${c.who}${o.state === "missing" ? "" : " with-models"}`,
1189
+ className: `${c.who}${s.state === "missing" ? "" : " with-models"}`,
1190
1190
  children: [
1191
- /* @__PURE__ */ e("div", { className: `${c.name}`, children: o.name }),
1192
- /* @__PURE__ */ e("span", { className: `${c["ag-cli"]}`, children: o.state === "missing" ? /* @__PURE__ */ e("span", { className: `${c["ag-missing"]}`, children: "CLI not found" }) : o.version && /* @__PURE__ */ e("span", { className: `${c["ag-ver"]}`, children: o.version }) }),
1193
- o.state !== "missing" && /* @__PURE__ */ a(
1191
+ /* @__PURE__ */ e("div", { className: `${c.name}`, children: s.name }),
1192
+ /* @__PURE__ */ e("span", { className: `${c["ag-cli"]}`, children: s.state === "missing" ? /* @__PURE__ */ e("span", { className: `${c["ag-missing"]}`, children: "CLI not found" }) : s.version && /* @__PURE__ */ e("span", { className: `${c["ag-ver"]}`, children: s.version }) }),
1193
+ s.state !== "missing" && /* @__PURE__ */ a(
1194
1194
  "div",
1195
1195
  {
1196
- className: `${c["ag-st"]}${o.state === "connected" ? " on" : ""}`,
1196
+ className: `${c["ag-st"]}${s.state === "connected" ? " on" : ""}`,
1197
1197
  children: [
1198
1198
  /* @__PURE__ */ e("span", { className: `${c["ag-dot"]}` }),
1199
- /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: o.pending ? "Applying changes…" : o.state === "needs-connection" ? "Save your API key on the Connection page first" : o.state === "connected" ? "Connected" : "Not connected" })
1199
+ /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: s.pending ? "Applying changes…" : s.state === "needs-connection" ? "Save your API key on the Connection page first" : s.state === "connected" ? "Connected" : "Not connected" })
1200
1200
  ]
1201
1201
  }
1202
1202
  )
1203
1203
  ]
1204
1204
  }
1205
1205
  ),
1206
- o.state === "needs-connection" && /* @__PURE__ */ e(
1206
+ s.state === "needs-connection" && /* @__PURE__ */ e(
1207
1207
  "button",
1208
1208
  {
1209
1209
  type: "button",
1210
1210
  className: `${c["ag-add"]}`,
1211
- onClick: s,
1211
+ onClick: o,
1212
1212
  children: "Open Connection"
1213
1213
  }
1214
1214
  ),
1215
- o.detail && /* @__PURE__ */ e("div", { className: `${c["ag-card-description"]}`, children: /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: o.detail }) }),
1216
- o.state === "connected" && o.fields?.map((y) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
1217
- /* @__PURE__ */ e("span", { children: y.label }),
1215
+ s.detail && /* @__PURE__ */ e("div", { className: `${c["ag-card-description"]}`, children: /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: s.detail }) }),
1216
+ s.state === "connected" && s.fields?.map((w) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
1217
+ /* @__PURE__ */ e("span", { children: w.label }),
1218
1218
  /* @__PURE__ */ e(
1219
1219
  "select",
1220
1220
  {
1221
- "aria-label": y.label,
1222
- value: y.value,
1223
- disabled: y.disabled || o.pending || !i,
1224
- onChange: (C) => i?.(o.id, y.id, C.target.value),
1225
- children: y.options.map((C) => /* @__PURE__ */ e("option", { value: C.value, children: C.label }, C.value))
1221
+ "aria-label": w.label,
1222
+ value: w.value,
1223
+ disabled: w.disabled || s.pending || !i,
1224
+ onChange: (C) => i?.(s.id, w.id, C.target.value),
1225
+ children: w.options.map((C) => /* @__PURE__ */ e("option", { value: C.value, children: C.label }, C.value))
1226
1226
  }
1227
1227
  )
1228
- ] }, y.id)),
1229
- o.state !== "missing" && /* @__PURE__ */ e(
1228
+ ] }, w.id)),
1229
+ s.state !== "missing" && /* @__PURE__ */ e(
1230
1230
  "button",
1231
1231
  {
1232
1232
  type: "button",
1233
1233
  role: "switch",
1234
- className: `${c["lib-switch"]} ${c["ag-conn"]}${o.state === "connected" ? " on" : ""}`,
1235
- "aria-label": `Connect ${o.name}`,
1236
- "aria-checked": o.state === "connected",
1237
- disabled: !l || o.state === "needs-connection" || o.pending,
1238
- onClick: () => l?.(o.id, o.state !== "connected"),
1234
+ className: `${c["lib-switch"]} ${c["ag-conn"]}${s.state === "connected" ? " on" : ""}`,
1235
+ "aria-label": `Connect ${s.name}`,
1236
+ "aria-checked": s.state === "connected",
1237
+ disabled: !l || s.state === "needs-connection" || s.pending,
1238
+ onClick: () => l?.(s.id, s.state !== "connected"),
1239
1239
  children: /* @__PURE__ */ e("i", {})
1240
1240
  }
1241
1241
  )
1242
1242
  ]
1243
1243
  },
1244
- o.id
1244
+ s.id
1245
1245
  )),
1246
1246
  /* @__PURE__ */ e("div", { className: `${c["ag-manage-bar"]}`, children: /* @__PURE__ */ a(
1247
1247
  "button",
1248
1248
  {
1249
1249
  className: `${c["ag-manage-button"]}`,
1250
1250
  type: "button",
1251
- onClick: $,
1251
+ onClick: k,
1252
1252
  children: [
1253
- /* @__PURE__ */ e(ge, { name: "manage" }),
1253
+ /* @__PURE__ */ e(ue, { name: "manage" }),
1254
1254
  /* @__PURE__ */ e("span", { children: "Manage" })
1255
1255
  ]
1256
1256
  }
@@ -1261,76 +1261,76 @@ function Or({
1261
1261
  {
1262
1262
  type: "button",
1263
1263
  className: `${c["ag-install-head"]}`,
1264
- onClick: R,
1264
+ onClick: S,
1265
1265
  children: [
1266
1266
  /* @__PURE__ */ a("span", { children: [
1267
1267
  "Install another agent",
1268
- N !== void 0 ? ` (${N})` : ""
1268
+ M !== void 0 ? ` (${M})` : ""
1269
1269
  ] }),
1270
- /* @__PURE__ */ e("span", { className: `${c.chev}`, children: /* @__PURE__ */ e(ge, { name: "down" }) })
1270
+ /* @__PURE__ */ e("span", { className: `${c.chev}`, children: /* @__PURE__ */ e(ue, { name: "down" }) })
1271
1271
  ]
1272
1272
  }
1273
1273
  ) })
1274
1274
  ] })
1275
1275
  ] });
1276
1276
  }
1277
- const Nt = [
1277
+ const wt = [
1278
1278
  "Today",
1279
1279
  "7 days",
1280
1280
  "30 days",
1281
1281
  "All",
1282
1282
  "Custom"
1283
1283
  ];
1284
- function Ur({
1284
+ function Ir({
1285
1285
  period: t,
1286
1286
  onPeriodChange: n,
1287
1287
  data: r,
1288
- onRefresh: s,
1288
+ onRefresh: o,
1289
1289
  refreshInterval: l = "5 s",
1290
1290
  onRefreshIntervalChange: i,
1291
1291
  customRange: d,
1292
- onCustomRangeChange: h,
1293
- status: m = "ready",
1294
- error: x,
1295
- onRetry: M
1292
+ onCustomRangeChange: p,
1293
+ status: g = "ready",
1294
+ error: $,
1295
+ onRetry: x
1296
1296
  }) {
1297
- const $ = _a(Pt), [R, N] = De(!1), [k, f] = De(!1), v = m === "ready" ? r : null, F = Math.max(
1297
+ const k = ga(Pt), [S, M] = De(!1), [b, N] = De(!1), f = g === "ready" ? r : null, E = Math.max(
1298
1298
  1,
1299
- ...v?.series.map((o) => o.calls) ?? []
1299
+ ...f?.series.map((s) => s.calls) ?? []
1300
1300
  );
1301
- return /* @__PURE__ */ a(ze, { children: [
1301
+ return /* @__PURE__ */ a(Xe, { children: [
1302
1302
  /* @__PURE__ */ a("div", { className: `${c["usage-head"]}`, children: [
1303
- $,
1303
+ k,
1304
1304
  /* @__PURE__ */ a(
1305
1305
  "div",
1306
1306
  {
1307
1307
  className: `${c.segs}`,
1308
1308
  id: "period",
1309
- ref: (o) => {
1310
- if (!o) return;
1311
- const y = o.querySelector("button.on"), C = o.querySelector(".thumb");
1312
- y && C && (C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`, document.fonts.ready.then(() => {
1313
- C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`;
1309
+ ref: (s) => {
1310
+ if (!s) return;
1311
+ const w = s.querySelector("button.on"), C = s.querySelector(".thumb");
1312
+ w && C && (C.style.width = w.offsetWidth + "px", C.style.transform = `translateX(${w.offsetLeft}px)`, document.fonts.ready.then(() => {
1313
+ C.style.width = w.offsetWidth + "px", C.style.transform = `translateX(${w.offsetLeft}px)`;
1314
1314
  }));
1315
1315
  },
1316
1316
  role: "group",
1317
1317
  "aria-label": "Usage period",
1318
1318
  children: [
1319
1319
  /* @__PURE__ */ e("span", { className: `${c.thumb}` }),
1320
- Nt.map((o) => /* @__PURE__ */ a(
1320
+ wt.map((s) => /* @__PURE__ */ a(
1321
1321
  "button",
1322
1322
  {
1323
1323
  type: "button",
1324
- className: `${c.opt}${o === "Custom" ? " range-opt" : ""}${t === o ? " on" : ""}`,
1325
- "aria-pressed": t === o,
1324
+ className: `${c.opt}${s === "Custom" ? " range-opt" : ""}${t === s ? " on" : ""}`,
1325
+ "aria-pressed": t === s,
1326
1326
  disabled: !n,
1327
- onClick: () => n?.(o),
1327
+ onClick: () => n?.(s),
1328
1328
  children: [
1329
- o === "Custom" && /* @__PURE__ */ e(ge, { name: "calendar" }),
1330
- o
1329
+ s === "Custom" && /* @__PURE__ */ e(ue, { name: "calendar" }),
1330
+ s
1331
1331
  ]
1332
1332
  },
1333
- o
1333
+ s
1334
1334
  ))
1335
1335
  ]
1336
1336
  }
@@ -1341,11 +1341,11 @@ function Ur({
1341
1341
  type: "button",
1342
1342
  className: `${c["usage-range-menu"]}`,
1343
1343
  "aria-label": "Usage period",
1344
- "aria-expanded": R,
1345
- onClick: () => N(!R),
1344
+ "aria-expanded": S,
1345
+ onClick: () => M(!S),
1346
1346
  children: [
1347
1347
  /* @__PURE__ */ e("span", { children: t }),
1348
- /* @__PURE__ */ e(ge, { name: "down" })
1348
+ /* @__PURE__ */ e(ue, { name: "down" })
1349
1349
  ]
1350
1350
  }
1351
1351
  ),
@@ -1357,9 +1357,9 @@ function Ur({
1357
1357
  type: "button",
1358
1358
  className: `${c.icon}`,
1359
1359
  "aria-label": "Refresh usage",
1360
- disabled: !s || m === "loading",
1361
- onClick: s,
1362
- children: /* @__PURE__ */ e(ge, { name: "refresh" })
1360
+ disabled: !o || g === "loading",
1361
+ onClick: o,
1362
+ children: /* @__PURE__ */ e(ue, { name: "refresh" })
1363
1363
  }
1364
1364
  ),
1365
1365
  /* @__PURE__ */ a(
@@ -1368,17 +1368,17 @@ function Ur({
1368
1368
  type: "button",
1369
1369
  className: `${c["sess-pick"]} ${c.live}`,
1370
1370
  "aria-label": "Refresh interval",
1371
- "aria-expanded": k,
1372
- onClick: () => f(!k),
1371
+ "aria-expanded": b,
1372
+ onClick: () => N(!b),
1373
1373
  children: [
1374
1374
  /* @__PURE__ */ e("span", { children: l }),
1375
- /* @__PURE__ */ e(ge, { name: "down" })
1375
+ /* @__PURE__ */ e(ue, { name: "down" })
1376
1376
  ]
1377
1377
  }
1378
1378
  )
1379
1379
  ] }),
1380
1380
  /* @__PURE__ */ a("span", { className: `${c["usage-cost"]}`, children: [
1381
- /* @__PURE__ */ e("b", { children: v?.cost ?? "—" }),
1381
+ /* @__PURE__ */ e("b", { children: f?.cost ?? "—" }),
1382
1382
  /* @__PURE__ */ e("span", { children: "effective prices" })
1383
1383
  ] })
1384
1384
  ] }),
@@ -1391,9 +1391,9 @@ function Ur({
1391
1391
  type: "date",
1392
1392
  value: d?.from ?? "",
1393
1393
  max: d?.to || void 0,
1394
- disabled: !h,
1395
- onChange: (o) => h?.({
1396
- from: o.target.value,
1394
+ disabled: !p,
1395
+ onChange: (s) => p?.({
1396
+ from: s.target.value,
1397
1397
  to: d?.to ?? ""
1398
1398
  })
1399
1399
  }
@@ -1407,82 +1407,82 @@ function Ur({
1407
1407
  type: "date",
1408
1408
  value: d?.to ?? "",
1409
1409
  min: d?.from || void 0,
1410
- disabled: !h,
1411
- onChange: (o) => h?.({
1410
+ disabled: !p,
1411
+ onChange: (s) => p?.({
1412
1412
  from: d?.from ?? "",
1413
- to: o.target.value
1413
+ to: s.target.value
1414
1414
  })
1415
1415
  }
1416
1416
  )
1417
1417
  ] })
1418
1418
  ] }),
1419
- R && /* @__PURE__ */ e(
1419
+ S && /* @__PURE__ */ e(
1420
1420
  "div",
1421
1421
  {
1422
1422
  className: `${c.pop}`,
1423
1423
  role: "menu",
1424
1424
  "aria-label": "Usage period",
1425
- children: Nt.map((o) => /* @__PURE__ */ a(
1425
+ children: wt.map((s) => /* @__PURE__ */ a(
1426
1426
  "button",
1427
1427
  {
1428
1428
  role: "menuitem",
1429
1429
  onClick: () => {
1430
- n?.(o), N(!1);
1430
+ n?.(s), M(!1);
1431
1431
  },
1432
1432
  children: [
1433
- o === "Custom" && /* @__PURE__ */ e(ge, { name: "calendar" }),
1434
- o
1433
+ s === "Custom" && /* @__PURE__ */ e(ue, { name: "calendar" }),
1434
+ s
1435
1435
  ]
1436
1436
  },
1437
- o
1437
+ s
1438
1438
  ))
1439
1439
  }
1440
1440
  ),
1441
- k && /* @__PURE__ */ e(
1441
+ b && /* @__PURE__ */ e(
1442
1442
  "div",
1443
1443
  {
1444
1444
  className: `${c.pop}`,
1445
1445
  role: "menu",
1446
1446
  "aria-label": "Refresh interval",
1447
- children: ["Off", "5 s", "30 s", "1 min"].map((o) => /* @__PURE__ */ e(
1447
+ children: ["Off", "5 s", "30 s", "1 min"].map((s) => /* @__PURE__ */ e(
1448
1448
  "button",
1449
1449
  {
1450
1450
  role: "menuitem",
1451
1451
  onClick: () => {
1452
- i?.(o), f(!1);
1452
+ i?.(s), N(!1);
1453
1453
  },
1454
- children: o
1454
+ children: s
1455
1455
  },
1456
- o
1456
+ s
1457
1457
  ))
1458
1458
  }
1459
1459
  ),
1460
1460
  /* @__PURE__ */ e("p", { className: `${c["usage-note"]}`, children: "Gateway calls only; session-log calls are in Requests. Local rejections are excluded from totals." }),
1461
- m !== "ready" ? /* @__PURE__ */ e(
1462
- Ve,
1461
+ g !== "ready" ? /* @__PURE__ */ e(
1462
+ Ke,
1463
1463
  {
1464
- status: m,
1465
- error: x,
1466
- onRetry: M,
1464
+ status: g,
1465
+ error: $,
1466
+ onRetry: x,
1467
1467
  loading: "Loading usage…"
1468
1468
  }
1469
- ) : v ? v.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
1469
+ ) : f ? f.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
1470
1470
  "div",
1471
1471
  {
1472
1472
  className: `${c.none}`,
1473
1473
  role: "status",
1474
1474
  children: `No calls ${t === "Today" ? "today" : "in this period"}. Point an agent at a catalog model and use it; every call through the gateway is counted here.`
1475
1475
  }
1476
- ) }) : /* @__PURE__ */ a(ze, { children: [
1476
+ ) }) : /* @__PURE__ */ a(Xe, { children: [
1477
1477
  /* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
1478
- ["Calls", v.calls],
1479
- ["Errors", v.errors],
1480
- ["Input tokens", v.input],
1481
- ["Output tokens", v.output]
1482
- ].map(([o, y]) => /* @__PURE__ */ a("div", { children: [
1483
- /* @__PURE__ */ e("dt", { children: o }),
1484
- /* @__PURE__ */ e("dd", { children: typeof y == "number" ? y.toLocaleString("en-US") : y })
1485
- ] }, o)) }),
1478
+ ["Calls", f.calls],
1479
+ ["Errors", f.errors],
1480
+ ["Input tokens", f.input],
1481
+ ["Output tokens", f.output]
1482
+ ].map(([s, w]) => /* @__PURE__ */ a("div", { children: [
1483
+ /* @__PURE__ */ e("dt", { children: s }),
1484
+ /* @__PURE__ */ e("dd", { children: typeof w == "number" ? w.toLocaleString("en-US") : w })
1485
+ ] }, s)) }),
1486
1486
  /* @__PURE__ */ a(
1487
1487
  "section",
1488
1488
  {
@@ -1490,8 +1490,8 @@ function Ur({
1490
1490
  "aria-label": "Calls over time",
1491
1491
  children: [
1492
1492
  /* @__PURE__ */ e("h2", { children: "Calls" }),
1493
- v.series.length === 0 ? /* @__PURE__ */ e(
1494
- Ve,
1493
+ f.series.length === 0 ? /* @__PURE__ */ e(
1494
+ Ke,
1495
1495
  {
1496
1496
  loading: "",
1497
1497
  empty: "No time-series breakdown available."
@@ -1501,25 +1501,25 @@ function Ur({
1501
1501
  {
1502
1502
  className: "mp-chart-bars",
1503
1503
  role: "img",
1504
- "aria-label": v.series.map((o) => `${o.label}: ${o.calls} calls`).join("; "),
1505
- children: v.series.map((o, y) => /* @__PURE__ */ a(
1504
+ "aria-label": f.series.map((s) => `${s.label}: ${s.calls} calls`).join("; "),
1505
+ children: f.series.map((s, w) => /* @__PURE__ */ a(
1506
1506
  "div",
1507
1507
  {
1508
1508
  className: "mp-chart-column",
1509
1509
  children: [
1510
- /* @__PURE__ */ e("span", { children: o.calls }),
1510
+ /* @__PURE__ */ e("span", { children: s.calls }),
1511
1511
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
1512
1512
  "i",
1513
1513
  {
1514
1514
  style: {
1515
- height: `${Math.max(0, o.calls) / F * 100}%`
1515
+ height: `${Math.max(0, s.calls) / E * 100}%`
1516
1516
  }
1517
1517
  }
1518
1518
  ) }),
1519
- /* @__PURE__ */ e("small", { children: o.label })
1519
+ /* @__PURE__ */ e("small", { children: s.label })
1520
1520
  ]
1521
1521
  },
1522
- `${o.label}-${y}`
1522
+ `${s.label}-${w}`
1523
1523
  ))
1524
1524
  }
1525
1525
  )
@@ -1527,7 +1527,7 @@ function Ur({
1527
1527
  }
1528
1528
  )
1529
1529
  ] }) : /* @__PURE__ */ e(
1530
- Ve,
1530
+ Ke,
1531
1531
  {
1532
1532
  loading: "",
1533
1533
  empty: "Usage is unavailable. Refresh to try again."
@@ -1535,12 +1535,12 @@ function Ur({
1535
1535
  )
1536
1536
  ] });
1537
1537
  }
1538
- const ht = { ...lt, ...mt };
1539
- function zr({
1538
+ const ut = { ...pt, ...bt };
1539
+ function Er({
1540
1540
  name: t,
1541
1541
  icon: n,
1542
1542
  detail: r,
1543
- className: s = "",
1543
+ className: o = "",
1544
1544
  type: l = "button",
1545
1545
  ...i
1546
1546
  }) {
@@ -1548,31 +1548,31 @@ function zr({
1548
1548
  "button",
1549
1549
  {
1550
1550
  type: l,
1551
- className: `${ht.tile}${s ? ` ${s}` : ""}`,
1551
+ className: `${ut.tile}${o ? ` ${o}` : ""}`,
1552
1552
  title: r || t,
1553
1553
  ...i,
1554
1554
  children: [
1555
- /* @__PURE__ */ e(nt, { name: n }),
1556
- /* @__PURE__ */ e("span", { className: ht.nm, children: /* @__PURE__ */ e("span", { className: ht.n, children: t }) })
1555
+ /* @__PURE__ */ e(it, { name: n }),
1556
+ /* @__PURE__ */ e("span", { className: ut.nm, children: /* @__PURE__ */ e("span", { className: ut.n, children: t }) })
1557
1557
  ]
1558
1558
  }
1559
1559
  );
1560
1560
  }
1561
- const wt = {
1561
+ const Mt = {
1562
1562
  sm: { box: 32, icon: 20, text: 12 },
1563
1563
  md: { box: 48, icon: 32, text: 14 },
1564
1564
  lg: { box: 72, icon: 48, text: 16 }
1565
1565
  };
1566
- function Xr({
1566
+ function Hr({
1567
1567
  name: t,
1568
1568
  icon: n,
1569
1569
  showIcon: r = !0,
1570
- size: s = "md",
1570
+ size: o = "md",
1571
1571
  className: l = "",
1572
1572
  style: i,
1573
1573
  ...d
1574
1574
  }) {
1575
- const h = wt[s] ?? wt.md, m = {
1575
+ const p = Mt[o] ?? Mt.md, g = {
1576
1576
  display: "inline-flex",
1577
1577
  alignItems: "center",
1578
1578
  gap: 10,
@@ -1580,91 +1580,91 @@ function Xr({
1580
1580
  minWidth: 0,
1581
1581
  color: "var(--rp-color-text, inherit)",
1582
1582
  ...i
1583
- }, x = {
1583
+ }, $ = {
1584
1584
  minWidth: 0,
1585
- fontSize: h.text,
1585
+ fontSize: p.text,
1586
1586
  fontWeight: 600,
1587
1587
  lineHeight: 1.4,
1588
1588
  overflowWrap: "anywhere"
1589
- }, M = {
1589
+ }, x = {
1590
1590
  display: "inline-flex",
1591
1591
  alignItems: "center",
1592
1592
  justifyContent: "center",
1593
1593
  flexShrink: 0,
1594
- width: h.box,
1595
- height: h.box,
1594
+ width: p.box,
1595
+ height: p.box,
1596
1596
  borderRadius: 10,
1597
1597
  background: "var(--rp-color-surface-raised, rgba(127,127,127,0.08))",
1598
- fontSize: h.icon,
1598
+ fontSize: p.icon,
1599
1599
  lineHeight: 1
1600
1600
  };
1601
- return /* @__PURE__ */ a("span", { className: l, style: m, ...d, children: [
1602
- r ? /* @__PURE__ */ e("span", { style: M, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(nt, { name: n }) }) : null,
1603
- t ? /* @__PURE__ */ e("span", { style: x, children: t }) : null
1601
+ return /* @__PURE__ */ a("span", { className: l, style: g, ...d, children: [
1602
+ r ? /* @__PURE__ */ e("span", { style: x, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(it, { name: n }) }) : null,
1603
+ t ? /* @__PURE__ */ e("span", { style: $, children: t }) : null
1604
1604
  ] });
1605
1605
  }
1606
- const xa = "rp_Billing-module_billing_jVpbPSwf", Ca = "rp_Billing-module_inline_Mf5K0TOB", Aa = "rp_Billing-module_body_73T3WPhM", La = "rp_Billing-module_sheet_uq-sE7Kj", Sa = "rp_Billing-module_header_6ZibPvV0", Ba = "rp_Billing-module_footer_sZ8dMMt3", Ra = "rp_Billing-module_titleIcon_yvF5gUEf", Fa = "rp_Billing-module_heading_hXnE-5Dq", Ta = "rp_Billing-module_title_XVWBtjrY", qa = "rp_Billing-module_description_15DMv8fm", Pa = "rp_Billing-module_bodyWrap_73GWDsL6", Ia = "rp_Billing-module_scrollFade_Vp55lLY8", Ea = "rp_Billing-module_section_CCEnjKJi", Ha = "rp_Billing-module_fieldLabel_j4TFB90Z", Da = "rp_Billing-module_amount_huNHfEM9", Oa = "rp_Billing-module_amountCurrency_5BAcrLkG", Ua = "rp_Billing-module_quickAmounts_-zXxHGvq", za = "rp_Billing-module_quickAmount_wZ1vL5t7", Xa = "rp_Billing-module_quickAmountActive_UN-iKg7L", Ga = "rp_Billing-module_cashback_SEKfvhCV", Ya = "rp_Billing-module_cashbackHead_TeiHoLw6", ja = "rp_Billing-module_cashbackRate_snXI6bxo", Wa = "rp_Billing-module_cashbackHint_8hFT1XBR", Va = "rp_Billing-module_track_gUZMl3uW", Ka = "rp_Billing-module_trackDot_yY1N2NRt", Ja = "rp_Billing-module_tiers_BavMzMhY", Za = "rp_Billing-module_tier_HO96mY1F", Qa = "rp_Billing-module_tierRate_vgFEdh-O", en = "rp_Billing-module_tierMin_N22iOx8J", tn = "rp_Billing-module_tierFirst_6Hc74rSN", an = "rp_Billing-module_tierMid_NeSUtEn1", nn = "rp_Billing-module_tierLast_lE0S52qZ", rn = "rp_Billing-module_tierCurrent_GctoON0O", sn = "rp_Billing-module_methodGroups_zpebVDsx", on = "rp_Billing-module_group_pHl7zEfy", ln = "rp_Billing-module_groupHead_P-SY4GHg", cn = "rp_Billing-module_groupTitle_wdOq-XTd", dn = "rp_Billing-module_groupBody_lrnARuI0", hn = "rp_Billing-module_method_faV0uTen", pn = "rp_Billing-module_methodIcon_JUWyNcoC", un = "rp_Billing-module_methodText_-dgM99xC", mn = "rp_Billing-module_methodLabel_5TAtp3w3", gn = "rp_Billing-module_methodDescription_DFZuV4o0", fn = "rp_Billing-module_methodFee_5X-xX3q5", bn = "rp_Billing-module_methodCheck_QhxGxyBe", vn = "rp_Billing-module_checkIcon_5PuJJ6qi", yn = "rp_Billing-module_empty_XLKm1aHR", _n = "rp_Billing-module_region_LaGBn-om", Nn = "rp_Billing-module_regionLabel_7ufpgJpv", wn = "rp_Billing-module_regionTrigger_V3TL-sZd", Mn = "rp_Billing-module_regionValue_RRhFjyaZ", kn = "rp_Billing-module_regionGlobe_oSvgpNSR", $n = "rp_Billing-module_optionGlobe_FVCNGrV9", xn = "rp_Billing-module_regionContent_644AhED-", Cn = "rp_Billing-module_regionHint_ioA4L3ju", An = "rp_Billing-module_pay_htbzTpTf", Ln = "rp_Billing-module_payPending_rNhFyReW", Sn = "rp_Billing-module_error_VTbjGrSy", Bn = "rp_Billing-module_payLabel_9cFNb7Af", Rn = "rp_Billing-module_notice_uwuIHit3", S = {
1607
- billing: xa,
1608
- inline: Ca,
1609
- body: Aa,
1610
- sheet: La,
1611
- header: Sa,
1612
- footer: Ba,
1613
- titleIcon: Ra,
1614
- heading: Fa,
1615
- title: Ta,
1616
- description: qa,
1617
- bodyWrap: Pa,
1618
- scrollFade: Ia,
1619
- section: Ea,
1620
- fieldLabel: Ha,
1621
- amount: Da,
1622
- amountCurrency: Oa,
1623
- quickAmounts: Ua,
1624
- quickAmount: za,
1625
- quickAmountActive: Xa,
1626
- cashback: Ga,
1627
- cashbackHead: Ya,
1628
- cashbackRate: ja,
1629
- cashbackHint: Wa,
1630
- track: Va,
1631
- trackDot: Ka,
1632
- tiers: Ja,
1633
- tier: Za,
1634
- tierRate: Qa,
1635
- tierMin: en,
1636
- tierFirst: tn,
1637
- tierMid: an,
1638
- tierLast: nn,
1639
- tierCurrent: rn,
1640
- methodGroups: sn,
1641
- group: on,
1642
- groupHead: ln,
1643
- groupTitle: cn,
1644
- groupBody: dn,
1645
- method: hn,
1646
- methodIcon: pn,
1647
- methodText: un,
1648
- methodLabel: mn,
1649
- methodDescription: gn,
1650
- methodFee: fn,
1651
- methodCheck: bn,
1652
- checkIcon: vn,
1653
- empty: yn,
1654
- region: _n,
1655
- regionLabel: Nn,
1656
- regionTrigger: wn,
1657
- regionValue: Mn,
1658
- regionGlobe: kn,
1659
- optionGlobe: $n,
1660
- regionContent: xn,
1661
- regionHint: Cn,
1662
- pay: An,
1663
- payPending: Ln,
1664
- error: Sn,
1665
- payLabel: Bn,
1666
- notice: Rn
1667
- }, Fn = {
1606
+ const Na = "rp_Billing-module_billing_jVpbPSwf", wa = "rp_Billing-module_inline_Mf5K0TOB", Ma = "rp_Billing-module_body_73T3WPhM", ka = "rp_Billing-module_sheet_uq-sE7Kj", $a = "rp_Billing-module_header_6ZibPvV0", xa = "rp_Billing-module_footer_sZ8dMMt3", Ca = "rp_Billing-module_titleIcon_yvF5gUEf", Aa = "rp_Billing-module_heading_hXnE-5Dq", La = "rp_Billing-module_title_XVWBtjrY", Sa = "rp_Billing-module_description_15DMv8fm", Ba = "rp_Billing-module_bodyWrap_73GWDsL6", Ra = "rp_Billing-module_scrollFade_Vp55lLY8", Fa = "rp_Billing-module_section_CCEnjKJi", Ta = "rp_Billing-module_fieldLabel_j4TFB90Z", qa = "rp_Billing-module_amount_huNHfEM9", Pa = "rp_Billing-module_amountCurrency_5BAcrLkG", Ia = "rp_Billing-module_quickAmounts_-zXxHGvq", Ea = "rp_Billing-module_quickAmount_wZ1vL5t7", Ha = "rp_Billing-module_quickAmountActive_UN-iKg7L", Da = "rp_Billing-module_cashback_SEKfvhCV", Oa = "rp_Billing-module_cashbackHead_TeiHoLw6", Ua = "rp_Billing-module_cashbackRate_snXI6bxo", za = "rp_Billing-module_cashbackHint_8hFT1XBR", Xa = "rp_Billing-module_track_gUZMl3uW", Ga = "rp_Billing-module_trackDot_yY1N2NRt", Ya = "rp_Billing-module_tiers_BavMzMhY", ja = "rp_Billing-module_tier_HO96mY1F", Wa = "rp_Billing-module_tierRate_vgFEdh-O", Va = "rp_Billing-module_tierMin_N22iOx8J", Ka = "rp_Billing-module_tierFirst_6Hc74rSN", Ja = "rp_Billing-module_tierMid_NeSUtEn1", Za = "rp_Billing-module_tierLast_lE0S52qZ", Qa = "rp_Billing-module_tierCurrent_GctoON0O", en = "rp_Billing-module_methodGroups_zpebVDsx", tn = "rp_Billing-module_group_pHl7zEfy", an = "rp_Billing-module_groupHead_P-SY4GHg", nn = "rp_Billing-module_groupTitle_wdOq-XTd", rn = "rp_Billing-module_groupBody_lrnARuI0", sn = "rp_Billing-module_method_faV0uTen", on = "rp_Billing-module_methodIcon_JUWyNcoC", ln = "rp_Billing-module_methodText_-dgM99xC", cn = "rp_Billing-module_methodLabel_5TAtp3w3", dn = "rp_Billing-module_methodDescription_DFZuV4o0", hn = "rp_Billing-module_methodFee_5X-xX3q5", pn = "rp_Billing-module_methodCheck_QhxGxyBe", mn = "rp_Billing-module_checkIcon_5PuJJ6qi", un = "rp_Billing-module_empty_XLKm1aHR", gn = "rp_Billing-module_region_LaGBn-om", fn = "rp_Billing-module_regionLabel_7ufpgJpv", bn = "rp_Billing-module_regionTrigger_V3TL-sZd", vn = "rp_Billing-module_regionValue_RRhFjyaZ", yn = "rp_Billing-module_regionGlobe_oSvgpNSR", _n = "rp_Billing-module_optionGlobe_FVCNGrV9", Nn = "rp_Billing-module_regionContent_644AhED-", wn = "rp_Billing-module_regionHint_ioA4L3ju", Mn = "rp_Billing-module_pay_htbzTpTf", kn = "rp_Billing-module_payPending_rNhFyReW", $n = "rp_Billing-module_error_VTbjGrSy", xn = "rp_Billing-module_payLabel_9cFNb7Af", Cn = "rp_Billing-module_notice_uwuIHit3", L = {
1607
+ billing: Na,
1608
+ inline: wa,
1609
+ body: Ma,
1610
+ sheet: ka,
1611
+ header: $a,
1612
+ footer: xa,
1613
+ titleIcon: Ca,
1614
+ heading: Aa,
1615
+ title: La,
1616
+ description: Sa,
1617
+ bodyWrap: Ba,
1618
+ scrollFade: Ra,
1619
+ section: Fa,
1620
+ fieldLabel: Ta,
1621
+ amount: qa,
1622
+ amountCurrency: Pa,
1623
+ quickAmounts: Ia,
1624
+ quickAmount: Ea,
1625
+ quickAmountActive: Ha,
1626
+ cashback: Da,
1627
+ cashbackHead: Oa,
1628
+ cashbackRate: Ua,
1629
+ cashbackHint: za,
1630
+ track: Xa,
1631
+ trackDot: Ga,
1632
+ tiers: Ya,
1633
+ tier: ja,
1634
+ tierRate: Wa,
1635
+ tierMin: Va,
1636
+ tierFirst: Ka,
1637
+ tierMid: Ja,
1638
+ tierLast: Za,
1639
+ tierCurrent: Qa,
1640
+ methodGroups: en,
1641
+ group: tn,
1642
+ groupHead: an,
1643
+ groupTitle: nn,
1644
+ groupBody: rn,
1645
+ method: sn,
1646
+ methodIcon: on,
1647
+ methodText: ln,
1648
+ methodLabel: cn,
1649
+ methodDescription: dn,
1650
+ methodFee: hn,
1651
+ methodCheck: pn,
1652
+ checkIcon: mn,
1653
+ empty: un,
1654
+ region: gn,
1655
+ regionLabel: fn,
1656
+ regionTrigger: bn,
1657
+ regionValue: vn,
1658
+ regionGlobe: yn,
1659
+ optionGlobe: _n,
1660
+ regionContent: Nn,
1661
+ regionHint: wn,
1662
+ pay: Mn,
1663
+ payPending: kn,
1664
+ error: $n,
1665
+ payLabel: xn,
1666
+ notice: Cn
1667
+ }, An = {
1668
1668
  title: "Top up",
1669
1669
  amount: "Amount",
1670
1670
  cashback: "Cashback",
@@ -1676,14 +1676,14 @@ const xa = "rp_Billing-module_billing_jVpbPSwf", Ca = "rp_Billing-module_inline_
1676
1676
  pending: "Preparing payment…",
1677
1677
  empty: "No payment methods here."
1678
1678
  };
1679
- function Tn(t) {
1679
+ function Ln(t) {
1680
1680
  try {
1681
1681
  return new Intl.Locale(t).maximize().region?.toUpperCase();
1682
1682
  } catch {
1683
1683
  return t.replace("_", "-").split("-")[1]?.toUpperCase();
1684
1684
  }
1685
1685
  }
1686
- function Gr(t) {
1686
+ function Dr(t) {
1687
1687
  const n = t.trim().toUpperCase();
1688
1688
  return /^[A-Z]{2}$/.test(n) ? String.fromCodePoint(
1689
1689
  ...[n.charCodeAt(0), n.charCodeAt(1)].map(
@@ -1691,12 +1691,12 @@ function Gr(t) {
1691
1691
  )
1692
1692
  ) : "🌐";
1693
1693
  }
1694
- function qn(t, n) {
1694
+ function Sn(t, n) {
1695
1695
  try {
1696
1696
  return new Intl.NumberFormat(t, {
1697
1697
  style: "currency",
1698
1698
  currency: n
1699
- }).formatToParts(0).find((s) => s.type === "currency")?.value ?? n;
1699
+ }).formatToParts(0).find((o) => o.type === "currency")?.value ?? n;
1700
1700
  } catch {
1701
1701
  return n;
1702
1702
  }
@@ -1712,7 +1712,7 @@ function It(t, n, r) {
1712
1712
  return `${n} ${r.toFixed(2)}`;
1713
1713
  }
1714
1714
  }
1715
- function Pn(t, n, r) {
1715
+ function Bn(t, n, r) {
1716
1716
  try {
1717
1717
  return new Intl.NumberFormat(t, {
1718
1718
  style: "currency",
@@ -1723,17 +1723,17 @@ function Pn(t, n, r) {
1723
1723
  return `${n} ${Math.round(r)}`;
1724
1724
  }
1725
1725
  }
1726
- function In(t) {
1726
+ function Rn(t) {
1727
1727
  return t.next ? `Add ${It(t.locale, t.currency, t.next.min)} for ${t.next.rate}% cashback.` : t.rate > 0 ? `${t.rate}% cashback added to your balance.` : "Cashback starts at the next tier.";
1728
1728
  }
1729
- function En() {
1730
- const [t, n] = De(null), [r, s] = De({ overflowing: !1, atEnd: !0 });
1729
+ function Fn() {
1730
+ const [t, n] = De(null), [r, o] = De({ overflowing: !1, atEnd: !0 });
1731
1731
  return Ae(() => {
1732
1732
  if (!t) return;
1733
1733
  const l = () => {
1734
- const h = t.scrollHeight - t.clientHeight > 1;
1735
- s({
1736
- overflowing: h,
1734
+ const p = t.scrollHeight - t.clientHeight > 1;
1735
+ o({
1736
+ overflowing: p,
1737
1737
  atEnd: t.scrollTop + t.clientHeight >= t.scrollHeight - 1
1738
1738
  });
1739
1739
  };
@@ -1746,169 +1746,169 @@ function En() {
1746
1746
  };
1747
1747
  }, [t]), [n, r.overflowing && !r.atEnd];
1748
1748
  }
1749
- const Yr = ({
1749
+ const Or = ({
1750
1750
  locale: t = typeof navigator > "u" ? "en-US" : navigator.language,
1751
1751
  countries: n,
1752
1752
  cryptoMethods: r = [],
1753
- cryptoTitle: s = "Crypto",
1753
+ cryptoTitle: o = "Crypto",
1754
1754
  tiers: l = [],
1755
1755
  defaultCountryCode: i,
1756
1756
  countryCode: d,
1757
- onCountryChange: h,
1758
- defaultAmount: m = 0,
1759
- amount: x,
1760
- onAmountChange: M,
1761
- quickAmounts: $ = [10, 25, 50, 100],
1762
- defaultMethodId: R,
1763
- methodId: N,
1764
- onMethodChange: k,
1765
- minAmount: f = 0,
1766
- maxAmount: v,
1767
- title: F,
1768
- description: o,
1769
- copy: y,
1757
+ onCountryChange: p,
1758
+ defaultAmount: g = 0,
1759
+ amount: $,
1760
+ onAmountChange: x,
1761
+ quickAmounts: k = [10, 25, 50, 100],
1762
+ defaultMethodId: S,
1763
+ methodId: M,
1764
+ onMethodChange: b,
1765
+ minAmount: N = 0,
1766
+ maxAmount: f,
1767
+ title: E,
1768
+ description: s,
1769
+ copy: w,
1770
1770
  formatCashback: C,
1771
- onPay: q,
1771
+ onPay: F,
1772
1772
  pending: B = !1,
1773
- error: U,
1774
- children: te,
1775
- notice: X,
1776
- variant: ce = "panel",
1777
- className: V
1773
+ error: H,
1774
+ children: ae,
1775
+ notice: z,
1776
+ variant: se = "panel",
1777
+ className: Y
1778
1778
  }) => {
1779
- const Q = { ...Fn, ...y }, ae = at(), Y = at(), re = at(), [pe, j] = En(), [_, E] = De(
1780
- () => i ?? Tn(t) ?? n[0]?.code ?? ""
1781
- ), [p, w] = De(m), [b, I] = De(
1782
- R
1779
+ const Q = { ...An, ...w }, te = rt(), G = rt(), ne = rt(), [de, j] = Fn(), [v, q] = De(
1780
+ () => i ?? Ln(t) ?? n[0]?.code ?? ""
1781
+ ), [m, _] = De(g), [y, P] = De(
1782
+ S
1783
1783
  ), A = n.find(
1784
- (g) => g.code === (d ?? _)
1785
- ) ?? n.find((g) => g.code === i) ?? n[0], z = x ?? p, P = A?.currency ?? "EUR", J = qn(t, P), ee = rt(() => {
1786
- const g = (A?.groups ?? []).filter(
1787
- (L) => L.methods.length > 0
1788
- ), u = r.length > 0 ? { id: "crypto", title: s, methods: r } : void 0;
1789
- return u ? [...g, u] : [...g];
1790
- }, [A, r, s]), de = rt(
1791
- () => ee.flatMap((g) => g.methods),
1784
+ (h) => h.code === (d ?? v)
1785
+ ) ?? n.find((h) => h.code === i) ?? n[0], O = $ ?? m, T = A?.currency ?? "EUR", J = Sn(t, T), ee = ot(() => {
1786
+ const h = (A?.groups ?? []).filter(
1787
+ (I) => I.methods.length > 0
1788
+ ), u = r.length > 0 ? { id: "crypto", title: o, methods: r } : void 0;
1789
+ return u ? [...h, u] : [...h];
1790
+ }, [A, r, o]), le = ot(
1791
+ () => ee.flatMap((h) => h.methods),
1792
1792
  [ee]
1793
- ), ve = rt(() => {
1794
- const g = N ?? b;
1795
- return de.find(
1796
- (L) => L.id === g && !L.disabled
1797
- )?.id ?? de.find((L) => !L.disabled)?.id;
1798
- }, [N, b, de]), _e = de.find((g) => g.id === ve), he = rt(
1799
- () => [...l].sort((g, u) => g.min - u.min),
1793
+ ), ve = ot(() => {
1794
+ const h = M ?? y;
1795
+ return le.find(
1796
+ (I) => I.id === h && !I.disabled
1797
+ )?.id ?? le.find((I) => !I.disabled)?.id;
1798
+ }, [M, y, le]), _e = le.find((h) => h.id === ve), ce = ot(
1799
+ () => [...l].sort((h, u) => h.min - u.min),
1800
1800
  [l]
1801
- ), Le = he.reduce(
1802
- (g, u) => z >= u.min ? u : g,
1801
+ ), he = ce.reduce(
1802
+ (h, u) => O >= u.min ? u : h,
1803
1803
  void 0
1804
- ), ue = he.find((g) => z < g.min), Te = Le?.rate ?? 0, Se = he[he.length - 1]?.min || 0, Ne = Math.max(0, Math.min(z, Se)), Pe = Se ? Ne / Se * 100 : 0, me = {
1805
- amount: z,
1806
- rate: Te,
1807
- next: ue,
1808
- currency: P,
1804
+ ), Le = ce.find((h) => O < h.min), Fe = he?.rate ?? 0, Se = ce[ce.length - 1]?.min || 0, Ne = Math.max(0, Math.min(O, Se)), fe = Se ? Ne / Se * 100 : 0, we = {
1805
+ amount: O,
1806
+ rate: Fe,
1807
+ next: Le,
1808
+ currency: T,
1809
1809
  locale: t
1810
- }, Be = C?.(me) ?? In(me), Ie = (g) => {
1811
- const u = Number.isFinite(g) ? Math.max(0, g) : 0;
1812
- x === void 0 && w(u), M?.(u);
1813
- }, Re = (g) => {
1814
- const u = n.find((O) => O.code === g);
1810
+ }, Pe = C?.(we) ?? Rn(we), qe = (h) => {
1811
+ const u = Number.isFinite(h) ? Math.max(0, h) : 0;
1812
+ $ === void 0 && _(u), x?.(u);
1813
+ }, R = (h) => {
1814
+ const u = n.find((U) => U.code === h);
1815
1815
  if (!u) return;
1816
- d === void 0 && E(g);
1817
- const L = [
1818
- ...u.groups.flatMap((O) => O.methods),
1816
+ d === void 0 && q(h);
1817
+ const I = [
1818
+ ...u.groups.flatMap((U) => U.methods),
1819
1819
  ...r
1820
1820
  ];
1821
- if (!L.some(
1822
- (O) => O.id === ve && !O.disabled
1821
+ if (!I.some(
1822
+ (U) => U.id === ve && !U.disabled
1823
1823
  )) {
1824
- const O = L.find((G) => !G.disabled);
1825
- N === void 0 && I(O?.id), O && k?.(O);
1824
+ const U = I.find((D) => !D.disabled);
1825
+ M === void 0 && P(U?.id), U && b?.(U);
1826
1826
  }
1827
- h?.(u);
1828
- }, T = (g) => {
1829
- const u = de.find((L) => L.id === g);
1830
- u && (N === void 0 && I(g), k?.(u));
1831
- }, H = !B && Number.isFinite(z) && z > 0 && z >= f && (v === void 0 || z <= v) && !!_e && !!A, Z = () => {
1832
- !H || !_e || !A || q?.({ amount: z, method: _e, country: A });
1827
+ p?.(u);
1828
+ }, X = (h) => {
1829
+ const u = le.find((I) => I.id === h);
1830
+ u && (M === void 0 && P(h), b?.(u));
1831
+ }, K = !B && Number.isFinite(O) && O > 0 && O >= N && (f === void 0 || O <= f) && !!_e && !!A, Z = () => {
1832
+ !K || !_e || !A || F?.({ amount: O, method: _e, country: A });
1833
1833
  };
1834
1834
  return /* @__PURE__ */ a(
1835
1835
  "section",
1836
1836
  {
1837
- className: se(
1838
- S.billing,
1839
- ce === "inline" && S.inline,
1840
- ce === "sheet" && S.sheet,
1841
- V
1837
+ className: re(
1838
+ L.billing,
1839
+ se === "inline" && L.inline,
1840
+ se === "sheet" && L.sheet,
1841
+ Y
1842
1842
  ),
1843
- "aria-labelledby": ae,
1843
+ "aria-labelledby": te,
1844
1844
  children: [
1845
- /* @__PURE__ */ a("header", { className: S.header, children: [
1846
- /* @__PURE__ */ e("span", { className: S.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(Oe.Wallet, { size: 18 }) }),
1847
- /* @__PURE__ */ a("div", { className: S.heading, children: [
1848
- /* @__PURE__ */ e("h2", { className: S.title, id: ae, children: F ?? Q.title }),
1849
- o && /* @__PURE__ */ e("p", { className: S.description, children: o })
1845
+ /* @__PURE__ */ a("header", { className: L.header, children: [
1846
+ /* @__PURE__ */ e("span", { className: L.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(Ue.Wallet, { size: 18 }) }),
1847
+ /* @__PURE__ */ a("div", { className: L.heading, children: [
1848
+ /* @__PURE__ */ e("h2", { className: L.title, id: te, children: E ?? Q.title }),
1849
+ s && /* @__PURE__ */ e("p", { className: L.description, children: s })
1850
1850
  ] })
1851
1851
  ] }),
1852
- /* @__PURE__ */ a("div", { className: S.bodyWrap, children: [
1853
- /* @__PURE__ */ a("div", { className: S.body, ref: pe, children: [
1854
- /* @__PURE__ */ a("div", { className: S.section, children: [
1855
- /* @__PURE__ */ e(vt, { className: S.fieldLabel, htmlFor: Y, children: Q.amount }),
1856
- /* @__PURE__ */ a(yt.Root, { className: S.amount, disabled: B, children: [
1857
- /* @__PURE__ */ e("span", { className: S.amountCurrency, "aria-hidden": "true", children: J }),
1852
+ /* @__PURE__ */ a("div", { className: L.bodyWrap, children: [
1853
+ /* @__PURE__ */ a("div", { className: L.body, ref: de, children: [
1854
+ /* @__PURE__ */ a("div", { className: L.section, children: [
1855
+ /* @__PURE__ */ e(yt, { className: L.fieldLabel, htmlFor: G, children: Q.amount }),
1856
+ /* @__PURE__ */ a(_t.Root, { className: L.amount, disabled: B, children: [
1857
+ /* @__PURE__ */ e("span", { className: L.amountCurrency, "aria-hidden": "true", children: J }),
1858
1858
  /* @__PURE__ */ e(
1859
- yt.Control,
1859
+ _t.Control,
1860
1860
  {
1861
1861
  disabled: B,
1862
- id: Y,
1863
- className: S.amountInput,
1862
+ id: G,
1863
+ className: L.amountInput,
1864
1864
  type: "number",
1865
1865
  inputMode: "decimal",
1866
- min: f,
1867
- max: v,
1866
+ min: N,
1867
+ max: f,
1868
1868
  step: "0.01",
1869
1869
  placeholder: "0",
1870
- value: z === 0 ? "" : z,
1871
- onChange: (g) => {
1872
- const u = Number.parseFloat(g.target.value);
1873
- Ie(Number.isFinite(u) ? u : 0);
1870
+ value: O === 0 ? "" : O,
1871
+ onChange: (h) => {
1872
+ const u = Number.parseFloat(h.target.value);
1873
+ qe(Number.isFinite(u) ? u : 0);
1874
1874
  }
1875
1875
  }
1876
1876
  )
1877
1877
  ] }),
1878
- $ && $.length > 0 && /* @__PURE__ */ e("div", { className: S.quickAmounts, children: $.map((g) => /* @__PURE__ */ a(
1879
- W,
1878
+ k && k.length > 0 && /* @__PURE__ */ e("div", { className: L.quickAmounts, children: k.map((h) => /* @__PURE__ */ a(
1879
+ V,
1880
1880
  {
1881
1881
  variant: "secondary",
1882
- textVariant: Qt.Button_Link_Extra_Small_1,
1883
- className: se(
1884
- S.quickAmount,
1885
- z === g && S.quickAmountActive
1882
+ textVariant: Wt.Button_Link_Extra_Small_1,
1883
+ className: re(
1884
+ L.quickAmount,
1885
+ O === h && L.quickAmountActive
1886
1886
  ),
1887
- "aria-pressed": z === g,
1887
+ "aria-pressed": O === h,
1888
1888
  disabled: B,
1889
- onClick: () => Ie(g),
1889
+ onClick: () => qe(h),
1890
1890
  children: [
1891
1891
  "+",
1892
- g
1892
+ h
1893
1893
  ]
1894
1894
  },
1895
- g
1895
+ h
1896
1896
  )) })
1897
1897
  ] }),
1898
- he.length > 1 && /* @__PURE__ */ a("div", { className: S.cashback, children: [
1899
- /* @__PURE__ */ a("div", { className: S.cashbackHead, children: [
1898
+ ce.length > 1 && /* @__PURE__ */ a("div", { className: L.cashback, children: [
1899
+ /* @__PURE__ */ a("div", { className: L.cashbackHead, children: [
1900
1900
  /* @__PURE__ */ e("span", { children: Q.cashback }),
1901
- /* @__PURE__ */ a("strong", { className: S.cashbackRate, children: [
1902
- Te,
1901
+ /* @__PURE__ */ a("strong", { className: L.cashbackRate, children: [
1902
+ Fe,
1903
1903
  "%"
1904
1904
  ] })
1905
1905
  ] }),
1906
- /* @__PURE__ */ e("p", { className: S.cashbackHint, children: Be }),
1907
- /* @__PURE__ */ a("div", { className: S.track, children: [
1906
+ /* @__PURE__ */ e("p", { className: L.cashbackHint, children: Pe }),
1907
+ /* @__PURE__ */ a("div", { className: L.track, children: [
1908
1908
  /* @__PURE__ */ e(
1909
- ea,
1909
+ Vt,
1910
1910
  {
1911
- className: S.progress,
1911
+ className: L.progress,
1912
1912
  value: Ne,
1913
1913
  max: Se || 1,
1914
1914
  ariaLabel: Q.cashback
@@ -1917,9 +1917,9 @@ const Yr = ({
1917
1917
  /* @__PURE__ */ e(
1918
1918
  "span",
1919
1919
  {
1920
- className: S.trackDot,
1920
+ className: L.trackDot,
1921
1921
  style: {
1922
- left: `calc(8px + (100% - 16px) * ${Pe / 100})`
1922
+ left: `calc(8px + (100% - 16px) * ${fe / 100})`
1923
1923
  },
1924
1924
  "aria-hidden": "true"
1925
1925
  }
@@ -1928,163 +1928,163 @@ const Yr = ({
1928
1928
  /* @__PURE__ */ e(
1929
1929
  "div",
1930
1930
  {
1931
- className: S.tiers,
1931
+ className: L.tiers,
1932
1932
  style: {
1933
- gridTemplateColumns: `repeat(${he.length}, minmax(0, 1fr))`
1933
+ gridTemplateColumns: `repeat(${ce.length}, minmax(0, 1fr))`
1934
1934
  },
1935
- children: he.map((g, u) => /* @__PURE__ */ a(
1935
+ children: ce.map((h, u) => /* @__PURE__ */ a(
1936
1936
  "div",
1937
1937
  {
1938
- className: se(
1939
- S.tier,
1940
- u === 0 && S.tierFirst,
1941
- u > 0 && u < he.length - 1 && S.tierMid,
1942
- u === he.length - 1 && S.tierLast,
1943
- g === Le && S.tierCurrent
1938
+ className: re(
1939
+ L.tier,
1940
+ u === 0 && L.tierFirst,
1941
+ u > 0 && u < ce.length - 1 && L.tierMid,
1942
+ u === ce.length - 1 && L.tierLast,
1943
+ h === he && L.tierCurrent
1944
1944
  ),
1945
1945
  children: [
1946
- /* @__PURE__ */ a("span", { className: S.tierRate, children: [
1947
- g.rate,
1946
+ /* @__PURE__ */ a("span", { className: L.tierRate, children: [
1947
+ h.rate,
1948
1948
  "%"
1949
1949
  ] }),
1950
- /* @__PURE__ */ e("span", { className: S.tierMin, children: Pn(t, P, g.min) })
1950
+ /* @__PURE__ */ e("span", { className: L.tierMin, children: Bn(t, T, h.min) })
1951
1951
  ]
1952
1952
  },
1953
- g.min
1953
+ h.min
1954
1954
  ))
1955
1955
  }
1956
1956
  )
1957
1957
  ] }),
1958
1958
  /* @__PURE__ */ a(
1959
- ta,
1959
+ Kt,
1960
1960
  {
1961
1961
  disabled: B,
1962
1962
  value: ve ?? "",
1963
- onValueChange: T,
1963
+ onValueChange: X,
1964
1964
  "aria-label": Q.methodLabel,
1965
- className: S.methodGroups,
1965
+ className: L.methodGroups,
1966
1966
  children: [
1967
- ee.length === 0 && /* @__PURE__ */ e(aa, { className: S.empty, title: Q.empty }),
1968
- ee.map((g) => /* @__PURE__ */ a(
1967
+ ee.length === 0 && /* @__PURE__ */ e(Jt, { className: L.empty, title: Q.empty }),
1968
+ ee.map((h) => /* @__PURE__ */ a(
1969
1969
  "section",
1970
1970
  {
1971
- className: S.group,
1972
- "aria-labelledby": `${ae}-${g.id}`,
1971
+ className: L.group,
1972
+ "aria-labelledby": `${te}-${h.id}`,
1973
1973
  children: [
1974
- /* @__PURE__ */ a("div", { className: S.groupHead, children: [
1974
+ /* @__PURE__ */ a("div", { className: L.groupHead, children: [
1975
1975
  /* @__PURE__ */ e(
1976
1976
  "h3",
1977
1977
  {
1978
- className: S.groupTitle,
1979
- id: `${ae}-${g.id}`,
1980
- children: g.title
1978
+ className: L.groupTitle,
1979
+ id: `${te}-${h.id}`,
1980
+ children: h.title
1981
1981
  }
1982
1982
  ),
1983
- /* @__PURE__ */ e("span", { children: g.feeLabel ?? Q.fee })
1983
+ /* @__PURE__ */ e("span", { children: h.feeLabel ?? Q.fee })
1984
1984
  ] }),
1985
- /* @__PURE__ */ e(na, { variant: "reference", className: S.groupBody, children: g.methods.map((u) => /* @__PURE__ */ a(
1986
- ra,
1985
+ /* @__PURE__ */ e(Zt, { variant: "reference", className: L.groupBody, children: h.methods.map((u) => /* @__PURE__ */ a(
1986
+ Qt,
1987
1987
  {
1988
1988
  value: u.id,
1989
1989
  disabled: u.disabled,
1990
- className: S.method,
1990
+ className: L.method,
1991
1991
  children: [
1992
- /* @__PURE__ */ e("span", { className: S.methodIcon, "aria-hidden": "true", children: u.icon ?? /* @__PURE__ */ e(Oe.Card, { size: 22 }) }),
1993
- /* @__PURE__ */ a("span", { className: S.methodText, children: [
1994
- /* @__PURE__ */ a("span", { className: S.methodLabel, children: [
1992
+ /* @__PURE__ */ e("span", { className: L.methodIcon, "aria-hidden": "true", children: u.icon ?? /* @__PURE__ */ e(Ue.Card, { size: 22 }) }),
1993
+ /* @__PURE__ */ a("span", { className: L.methodText, children: [
1994
+ /* @__PURE__ */ a("span", { className: L.methodLabel, children: [
1995
1995
  u.label,
1996
- u.badge && /* @__PURE__ */ e(ia, { children: u.badge })
1996
+ u.badge && /* @__PURE__ */ e(ea, { children: u.badge })
1997
1997
  ] }),
1998
- u.description && /* @__PURE__ */ e("span", { className: S.methodDescription, children: u.description })
1998
+ u.description && /* @__PURE__ */ e("span", { className: L.methodDescription, children: u.description })
1999
1999
  ] }),
2000
- u.fee && /* @__PURE__ */ e("span", { className: S.methodFee, children: u.fee }),
2001
- /* @__PURE__ */ e("span", { className: S.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(Oe.Check, { size: 12, className: S.checkIcon }) })
2000
+ u.fee && /* @__PURE__ */ e("span", { className: L.methodFee, children: u.fee }),
2001
+ /* @__PURE__ */ e("span", { className: L.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(Ue.Check, { size: 12, className: L.checkIcon }) })
2002
2002
  ]
2003
2003
  },
2004
2004
  u.id
2005
2005
  )) })
2006
2006
  ]
2007
2007
  },
2008
- g.id
2008
+ h.id
2009
2009
  ))
2010
2010
  ]
2011
2011
  }
2012
2012
  ),
2013
- te
2013
+ ae
2014
2014
  ] }),
2015
- j && /* @__PURE__ */ e("span", { className: S.scrollFade, "aria-hidden": "true" })
2015
+ j && /* @__PURE__ */ e("span", { className: L.scrollFade, "aria-hidden": "true" })
2016
2016
  ] }),
2017
- /* @__PURE__ */ a("footer", { className: S.footer, children: [
2018
- /* @__PURE__ */ a("div", { className: S.region, children: [
2019
- /* @__PURE__ */ e(vt, { className: S.regionLabel, htmlFor: re, children: Q.region }),
2017
+ /* @__PURE__ */ a("footer", { className: L.footer, children: [
2018
+ /* @__PURE__ */ a("div", { className: L.region, children: [
2019
+ /* @__PURE__ */ e(yt, { className: L.regionLabel, htmlFor: ne, children: Q.region }),
2020
2020
  /* @__PURE__ */ a(
2021
- sa,
2021
+ ta,
2022
2022
  {
2023
2023
  disabled: B || n.length === 0,
2024
2024
  value: A?.code ?? "",
2025
- onValueChange: Re,
2025
+ onValueChange: R,
2026
2026
  children: [
2027
2027
  /* @__PURE__ */ a(
2028
- oa,
2028
+ aa,
2029
2029
  {
2030
- id: re,
2031
- className: S.regionTrigger,
2030
+ id: ne,
2031
+ className: L.regionTrigger,
2032
2032
  "aria-label": Q.region,
2033
2033
  children: [
2034
- /* @__PURE__ */ e(Oe.Globe, { size: 16, className: S.regionGlobe }),
2035
- /* @__PURE__ */ e(la, { className: S.regionValue }),
2036
- /* @__PURE__ */ e(ca, { children: /* @__PURE__ */ e(Oe.Down, { size: 16 }) })
2034
+ /* @__PURE__ */ e(Ue.Globe, { size: 16, className: L.regionGlobe }),
2035
+ /* @__PURE__ */ e(na, { className: L.regionValue }),
2036
+ /* @__PURE__ */ e(ra, { children: /* @__PURE__ */ e(Ue.Down, { size: 16 }) })
2037
2037
  ]
2038
2038
  }
2039
2039
  ),
2040
- /* @__PURE__ */ e(da, { children: /* @__PURE__ */ e(
2041
- ha,
2040
+ /* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(
2041
+ sa,
2042
2042
  {
2043
2043
  position: "popper",
2044
2044
  sideOffset: 6,
2045
2045
  align: "start",
2046
- className: S.regionContent,
2047
- children: /* @__PURE__ */ e(pa, { children: /* @__PURE__ */ e(ua, { children: n.map((g) => /* @__PURE__ */ a(ma, { value: g.code, children: [
2048
- /* @__PURE__ */ e(Oe.Globe, { size: 15, className: S.optionGlobe }),
2049
- /* @__PURE__ */ e(ga, { children: g.name }),
2050
- /* @__PURE__ */ e(fa, {})
2051
- ] }, g.code)) }) })
2046
+ className: L.regionContent,
2047
+ children: /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(la, { children: n.map((h) => /* @__PURE__ */ a(ca, { value: h.code, children: [
2048
+ /* @__PURE__ */ e(Ue.Globe, { size: 15, className: L.optionGlobe }),
2049
+ /* @__PURE__ */ e(da, { children: h.name }),
2050
+ /* @__PURE__ */ e(ha, {})
2051
+ ] }, h.code)) }) })
2052
2052
  }
2053
2053
  ) })
2054
2054
  ]
2055
2055
  }
2056
2056
  ),
2057
- /* @__PURE__ */ e("p", { className: S.regionHint, children: Q.regionHint })
2057
+ /* @__PURE__ */ e("p", { className: L.regionHint, children: Q.regionHint })
2058
2058
  ] }),
2059
- U && /* @__PURE__ */ a("p", { className: S.error, role: "alert", children: [
2060
- /* @__PURE__ */ e(Oe.Close, { size: 14 }),
2061
- U
2059
+ H && /* @__PURE__ */ a("p", { className: L.error, role: "alert", children: [
2060
+ /* @__PURE__ */ e(Ue.Close, { size: 14 }),
2061
+ H
2062
2062
  ] }),
2063
2063
  /* @__PURE__ */ e(
2064
- W,
2064
+ V,
2065
2065
  {
2066
2066
  variant: "primary",
2067
- className: se(S.pay, B && S.payPending),
2068
- disabled: !H,
2067
+ className: re(L.pay, B && L.payPending),
2068
+ disabled: !K,
2069
2069
  onClick: Z,
2070
- children: B ? /* @__PURE__ */ a(ze, { children: [
2071
- /* @__PURE__ */ e(ba, { label: Q.pending }),
2070
+ children: B ? /* @__PURE__ */ a(Xe, { children: [
2071
+ /* @__PURE__ */ e(pa, { label: Q.pending }),
2072
2072
  /* @__PURE__ */ e("span", { children: Q.pending })
2073
- ] }) : /* @__PURE__ */ a(ze, { children: [
2074
- /* @__PURE__ */ a("span", { className: S.payLabel, children: [
2075
- /* @__PURE__ */ e(Oe.Card, { size: 16 }),
2073
+ ] }) : /* @__PURE__ */ a(Xe, { children: [
2074
+ /* @__PURE__ */ a("span", { className: L.payLabel, children: [
2075
+ /* @__PURE__ */ e(Ue.Card, { size: 16 }),
2076
2076
  Q.pay
2077
2077
  ] }),
2078
- /* @__PURE__ */ e("strong", { children: It(t, P, z) })
2078
+ /* @__PURE__ */ e("strong", { children: It(t, T, O) })
2079
2079
  ] })
2080
2080
  }
2081
2081
  ),
2082
- X && /* @__PURE__ */ e("p", { className: S.notice, children: X })
2082
+ z && /* @__PURE__ */ e("p", { className: L.notice, children: z })
2083
2083
  ] })
2084
2084
  ]
2085
2085
  }
2086
2086
  );
2087
- }, Fe = {
2087
+ }, Be = {
2088
2088
  "rp-bar-chart": "rp_BarChart-module_rp-bar-chart_G8Uh2qms",
2089
2089
  "rp-bar-chart-peak": "rp_BarChart-module_rp-bar-chart-peak_rhpNOWBx",
2090
2090
  "rp-bar-chart-bars": "rp_BarChart-module_rp-bar-chart-bars_XQGh3NRE",
@@ -2093,48 +2093,48 @@ const Yr = ({
2093
2093
  "rp-bar-chart-segment": "rp_BarChart-module_rp-bar-chart-segment_rUqceCrY",
2094
2094
  "rp-bar-chart-segment-inner": "rp_BarChart-module_rp-bar-chart-segment-inner_78F2D8Fq",
2095
2095
  "rp-bar-chart-labels": "rp_BarChart-module_rp-bar-chart-labels_ZrSAwFYl"
2096
- }, Mt = [
2096
+ }, kt = [
2097
2097
  "var(--rp-color-accent)",
2098
2098
  "var(--rp-color-success)",
2099
2099
  "var(--rp-color-warning)",
2100
2100
  "var(--rp-color-danger)",
2101
2101
  "var(--rp-color-border-strong)",
2102
2102
  "var(--rp-color-text-muted)"
2103
- ], jr = ({
2103
+ ], Ur = ({
2104
2104
  values: t,
2105
2105
  labels: n,
2106
2106
  stacked: r = !1,
2107
- label: s = "Daily token usage"
2107
+ label: o = "Daily token usage"
2108
2108
  }) => {
2109
- const l = Math.max(1, ...t), i = n ?? t.map((d, h) => String(h + 1));
2109
+ const l = Math.max(1, ...t), i = n ?? t.map((d, p) => String(p + 1));
2110
2110
  return /* @__PURE__ */ a(
2111
2111
  "div",
2112
2112
  {
2113
- className: se(
2114
- Fe["rp-bar-chart"],
2115
- r && Fe["rp-bar-chart--stacked"]
2113
+ className: re(
2114
+ Be["rp-bar-chart"],
2115
+ r && Be["rp-bar-chart--stacked"]
2116
2116
  ),
2117
2117
  children: [
2118
- /* @__PURE__ */ a("div", { className: Fe["rp-bar-chart-peak"], children: [
2118
+ /* @__PURE__ */ a("div", { className: Be["rp-bar-chart-peak"], children: [
2119
2119
  l,
2120
2120
  "M"
2121
2121
  ] }),
2122
2122
  /* @__PURE__ */ e(
2123
2123
  "div",
2124
2124
  {
2125
- className: Fe["rp-bar-chart-bars"],
2125
+ className: Be["rp-bar-chart-bars"],
2126
2126
  role: "img",
2127
- "aria-label": `${s}: ${t.map((d, h) => `${i[h] ?? h + 1}: ${d}`).join(", ")}`,
2128
- children: t.map((d, h) => /* @__PURE__ */ a(
2127
+ "aria-label": `${o}: ${t.map((d, p) => `${i[p] ?? p + 1}: ${d}`).join(", ")}`,
2128
+ children: t.map((d, p) => /* @__PURE__ */ a(
2129
2129
  "div",
2130
2130
  {
2131
- className: Fe["rp-bar-chart-bar"],
2132
- title: `${i[h] ?? h + 1}: ${d}`,
2131
+ className: Be["rp-bar-chart-bar"],
2132
+ title: `${i[p] ?? p + 1}: ${d}`,
2133
2133
  children: [
2134
2134
  /* @__PURE__ */ e(
2135
2135
  "i",
2136
2136
  {
2137
- className: Fe["rp-bar-chart-segment"],
2137
+ className: Be["rp-bar-chart-segment"],
2138
2138
  style: {
2139
2139
  height: `${d / l * 85 * (r ? 0.25 : 0.15)}%`
2140
2140
  }
@@ -2143,22 +2143,22 @@ const Yr = ({
2143
2143
  /* @__PURE__ */ e(
2144
2144
  "i",
2145
2145
  {
2146
- className: se(
2147
- Fe["rp-bar-chart-segment"],
2148
- Fe["rp-bar-chart-segment-inner"]
2146
+ className: re(
2147
+ Be["rp-bar-chart-segment"],
2148
+ Be["rp-bar-chart-segment-inner"]
2149
2149
  ),
2150
2150
  style: {
2151
2151
  height: `${d / l * 85 * (r ? 0.5 : 0.85)}%`,
2152
- background: r ? Mt[h % Mt.length] : void 0
2152
+ background: r ? kt[p % kt.length] : void 0
2153
2153
  }
2154
2154
  }
2155
2155
  ),
2156
2156
  r && /* @__PURE__ */ e(
2157
2157
  "i",
2158
2158
  {
2159
- className: se(
2160
- Fe["rp-bar-chart-segment"],
2161
- Fe["rp-bar-chart-segment-top"]
2159
+ className: re(
2160
+ Be["rp-bar-chart-segment"],
2161
+ Be["rp-bar-chart-segment-top"]
2162
2162
  ),
2163
2163
  style: {
2164
2164
  height: `${d / l * 21}%`,
@@ -2168,15 +2168,15 @@ const Yr = ({
2168
2168
  )
2169
2169
  ]
2170
2170
  },
2171
- h
2171
+ p
2172
2172
  ))
2173
2173
  }
2174
2174
  ),
2175
- /* @__PURE__ */ e("div", { className: Fe["rp-bar-chart-labels"], children: i.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
2175
+ /* @__PURE__ */ e("div", { className: Be["rp-bar-chart-labels"], children: i.map((d, p) => /* @__PURE__ */ e("span", { children: d }, `${p}-${d}`)) })
2176
2176
  ]
2177
2177
  }
2178
2178
  );
2179
- }, Ue = {
2179
+ }, ze = {
2180
2180
  "rp-heatmap-scroll": "rp_Heatmap-module_rp-heatmap-scroll_b8EDFy7x",
2181
2181
  "rp-heatmap-grid": "rp_Heatmap-module_rp-heatmap-grid_w-Q4clqM",
2182
2182
  "rp-heatmap--hours": "rp_Heatmap-module_rp-heatmap--hours_0ejkT-5j",
@@ -2189,80 +2189,80 @@ const Yr = ({
2189
2189
  "rp-heatmap-level-2": "rp_Heatmap-module_rp-heatmap-level-2_WdX9AXcf",
2190
2190
  "rp-heatmap-level-3": "rp_Heatmap-module_rp-heatmap-level-3_5zBU5sNx",
2191
2191
  "rp-heatmap-level-4": "rp_Heatmap-module_rp-heatmap-level-4_aMEF1e1x"
2192
- }, kt = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Wr = ({
2192
+ }, $t = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], zr = ({
2193
2193
  levels: t,
2194
2194
  columnLabels: n = [],
2195
2195
  label: r = "Activity heatmap"
2196
2196
  }) => {
2197
- const s = t[0]?.length ?? 0, l = s === 24;
2198
- return /* @__PURE__ */ e("div", { className: Ue["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
2197
+ const o = t[0]?.length ?? 0, l = o === 24;
2198
+ return /* @__PURE__ */ e("div", { className: ze["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
2199
2199
  "div",
2200
2200
  {
2201
- className: se(
2202
- l ? Ue["rp-heatmap-hours"] : Ue["rp-heatmap-grid"],
2203
- l && Ue["rp-heatmap--hours"]
2201
+ className: re(
2202
+ l ? ze["rp-heatmap-hours"] : ze["rp-heatmap-grid"],
2203
+ l && ze["rp-heatmap--hours"]
2204
2204
  ),
2205
- style: l ? void 0 : { gridTemplateColumns: `auto repeat(${s}, minmax(10px, 1fr))` },
2205
+ style: l ? void 0 : { gridTemplateColumns: `auto repeat(${o}, minmax(10px, 1fr))` },
2206
2206
  role: "img",
2207
2207
  "aria-label": r,
2208
- children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(wa, { children: [
2209
- /* @__PURE__ */ e("span", { className: Ue["rp-heatmap-day"], children: d === 0 ? "" : kt[d - 1] }),
2208
+ children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(ba, { children: [
2209
+ /* @__PURE__ */ e("span", { className: ze["rp-heatmap-day"], children: d === 0 ? "" : $t[d - 1] }),
2210
2210
  Array.from(
2211
- { length: s },
2212
- (h, m) => d === 0 ? /* @__PURE__ */ e("span", { className: Ue["rp-heatmap-month"], children: n[m] ?? "" }, m) : /* @__PURE__ */ e(
2211
+ { length: o },
2212
+ (p, g) => d === 0 ? /* @__PURE__ */ e("span", { className: ze["rp-heatmap-month"], children: n[g] ?? "" }, g) : /* @__PURE__ */ e(
2213
2213
  "i",
2214
2214
  {
2215
- className: se(
2216
- Ue["rp-heatmap-cell"],
2217
- Ue[`rp-heatmap-level-${t[d - 1]?.[m] ?? 0}`]
2215
+ className: re(
2216
+ ze["rp-heatmap-cell"],
2217
+ ze[`rp-heatmap-level-${t[d - 1]?.[g] ?? 0}`]
2218
2218
  ),
2219
- title: `${kt[d - 1]}, ${l ? "hour" : "column"} ${m + 1}`
2219
+ title: `${$t[d - 1]}, ${l ? "hour" : "column"} ${g + 1}`
2220
2220
  },
2221
- m
2221
+ g
2222
2222
  )
2223
2223
  )
2224
2224
  ] }, d))
2225
2225
  }
2226
2226
  ) });
2227
- }, Je = {
2227
+ }, Qe = {
2228
2228
  "rp-metric-strip": "rp_MetricStrip-module_rp-metric-strip_oAjqn-aO",
2229
2229
  "rp-metric-strip--six": "rp_MetricStrip-module_rp-metric-strip--six_THBfnydZ",
2230
2230
  "rp-metric-strip-card": "rp_MetricStrip-module_rp-metric-strip-card_63Ke96LL",
2231
2231
  "rp-metric-strip-value": "rp_MetricStrip-module_rp-metric-strip-value_uZ3-dhTN",
2232
2232
  "rp-metric-strip-label": "rp_MetricStrip-module_rp-metric-strip-label_vPmmuX6U",
2233
2233
  "rp-metric-strip-detail": "rp_MetricStrip-module_rp-metric-strip-detail_eX9vbuU3"
2234
- }, Vr = ({ metrics: t }) => {
2235
- const n = se(
2236
- Je["rp-metric-strip"],
2237
- t.length === 6 && Je["rp-metric-strip--six"]
2234
+ }, Xr = ({ metrics: t }) => {
2235
+ const n = re(
2236
+ Qe["rp-metric-strip"],
2237
+ t.length === 6 && Qe["rp-metric-strip--six"]
2238
2238
  );
2239
- return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: Je["rp-metric-strip-card"], children: [
2240
- /* @__PURE__ */ e("b", { className: Je["rp-metric-strip-value"], children: r.value }),
2241
- /* @__PURE__ */ e("span", { className: Je["rp-metric-strip-label"], children: r.label }),
2242
- r.detail && /* @__PURE__ */ e("small", { className: Je["rp-metric-strip-detail"], children: r.detail })
2239
+ return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: Qe["rp-metric-strip-card"], children: [
2240
+ /* @__PURE__ */ e("b", { className: Qe["rp-metric-strip-value"], children: r.value }),
2241
+ /* @__PURE__ */ e("span", { className: Qe["rp-metric-strip-label"], children: r.label }),
2242
+ r.detail && /* @__PURE__ */ e("small", { className: Qe["rp-metric-strip-detail"], children: r.detail })
2243
2243
  ] }, r.label)) });
2244
- }, Qe = {
2244
+ }, tt = {
2245
2245
  "rp-panel": "rp_Panel-module_rp-panel_phtJNPn-",
2246
2246
  "rp-panel-header": "rp_Panel-module_rp-panel-header_btNJsltk",
2247
2247
  "rp-panel-title": "rp_Panel-module_rp-panel-title_i0XnBxgm",
2248
2248
  "rp-panel-spacer": "rp_Panel-module_rp-panel-spacer_Kv3uqewf",
2249
2249
  "rp-panel-footer": "rp_Panel-module_rp-panel-footer_VMolMpS9"
2250
- }, Kr = ({
2250
+ }, Gr = ({
2251
2251
  title: t,
2252
2252
  actions: n,
2253
2253
  children: r,
2254
- className: s,
2254
+ className: o,
2255
2255
  footer: l
2256
2256
  }) => {
2257
- const i = at(), d = se(Qe["rp-panel"], s);
2257
+ const i = rt(), d = re(tt["rp-panel"], o);
2258
2258
  return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": i, children: [
2259
- /* @__PURE__ */ a("div", { className: Qe["rp-panel-header"], children: [
2260
- /* @__PURE__ */ e("h2", { className: Qe["rp-panel-title"], id: i, children: t }),
2261
- /* @__PURE__ */ e("span", { className: Qe["rp-panel-spacer"] }),
2259
+ /* @__PURE__ */ a("div", { className: tt["rp-panel-header"], children: [
2260
+ /* @__PURE__ */ e("h2", { className: tt["rp-panel-title"], id: i, children: t }),
2261
+ /* @__PURE__ */ e("span", { className: tt["rp-panel-spacer"] }),
2262
2262
  n
2263
2263
  ] }),
2264
2264
  r,
2265
- l && /* @__PURE__ */ e("div", { className: Qe["rp-panel-footer"], children: l })
2265
+ l && /* @__PURE__ */ e("div", { className: tt["rp-panel-footer"], children: l })
2266
2266
  ] });
2267
2267
  }, He = {
2268
2268
  "rp-ranking": "rp_Ranking-module_rp-ranking_J6gdvsdH",
@@ -2274,7 +2274,7 @@ const Yr = ({
2274
2274
  "rp-ranking-track": "rp_Ranking-module_rp-ranking-track_aXkuRs2Q",
2275
2275
  "rp-ranking-value": "rp_Ranking-module_rp-ranking-value_fEjyec2m",
2276
2276
  "rp-ranking-cost": "rp_Ranking-module_rp-ranking-cost_xFBMNKql"
2277
- }, Jr = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
2277
+ }, Yr = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
2278
2278
  "div",
2279
2279
  {
2280
2280
  className: He["rp-ranking"],
@@ -2283,7 +2283,7 @@ const Yr = ({
2283
2283
  "button",
2284
2284
  {
2285
2285
  type: "button",
2286
- className: se(
2286
+ className: re(
2287
2287
  He["rp-ranking-row"],
2288
2288
  n && He["rp-ranking-row-clickable"]
2289
2289
  ),
@@ -2315,7 +2315,7 @@ const Yr = ({
2315
2315
  "rp-request-table-status": "rp_RequestTable-module_rp-request-table-status_MzQap-jR",
2316
2316
  "rp-request-table-status--succeeded": "rp_RequestTable-module_rp-request-table-status--succeeded_XIp7zeex",
2317
2317
  "rp-request-table-status--failed": "rp_RequestTable-module_rp-request-table-status--failed_BZ4zoupJ"
2318
- }, Hn = [
2318
+ }, Tn = [
2319
2319
  "Time",
2320
2320
  "Agent",
2321
2321
  "Requested",
@@ -2324,7 +2324,7 @@ const Yr = ({
2324
2324
  "Out",
2325
2325
  "Cost",
2326
2326
  "Status"
2327
- ], Zr = ({ rows: t }) => /* @__PURE__ */ e(
2327
+ ], jr = ({ rows: t }) => /* @__PURE__ */ e(
2328
2328
  "div",
2329
2329
  {
2330
2330
  className: ye["rp-request-table-scroll"],
@@ -2332,7 +2332,7 @@ const Yr = ({
2332
2332
  "aria-label": "Scrollable requests",
2333
2333
  children: /* @__PURE__ */ a("table", { className: ye["rp-request-table"], children: [
2334
2334
  /* @__PURE__ */ e("caption", { className: ye["rp-request-table-caption"], children: "Requests" }),
2335
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Hn.map((n) => /* @__PURE__ */ e("th", { scope: "col", children: n }, n)) }) }),
2335
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Tn.map((n) => /* @__PURE__ */ e("th", { scope: "col", children: n }, n)) }) }),
2336
2336
  /* @__PURE__ */ e("tbody", { children: t.map((n) => /* @__PURE__ */ a("tr", { children: [
2337
2337
  /* @__PURE__ */ e("td", { className: ye["rp-request-table-time"], children: n.time }),
2338
2338
  /* @__PURE__ */ e("td", { children: n.agent }),
@@ -2354,7 +2354,7 @@ const Yr = ({
2354
2354
  /* @__PURE__ */ e(
2355
2355
  "td",
2356
2356
  {
2357
- className: se(
2357
+ className: re(
2358
2358
  ye["rp-request-table-num"],
2359
2359
  ye["rp-request-table-cost"]
2360
2360
  ),
@@ -2365,7 +2365,7 @@ const Yr = ({
2365
2365
  /* @__PURE__ */ e(
2366
2366
  "span",
2367
2367
  {
2368
- className: se(
2368
+ className: re(
2369
2369
  ye["rp-request-table-status"],
2370
2370
  n.status === "Failed" ? ye["rp-request-table-status--failed"] : ye["rp-request-table-status--succeeded"]
2371
2371
  ),
@@ -2379,7 +2379,7 @@ const Yr = ({
2379
2379
  ] }, n.id)) })
2380
2380
  ] })
2381
2381
  }
2382
- ), Ye = {
2382
+ ), je = {
2383
2383
  "rp-session-shape": "rp_SessionShape-module_rp-session-shape_lK5H99s2",
2384
2384
  "rp-session-shape-col": "rp_SessionShape-module_rp-session-shape-col_b7cDXHSU",
2385
2385
  "rp-session-shape-plot": "rp_SessionShape-module_rp-session-shape-plot_rHVHdFET",
@@ -2387,43 +2387,43 @@ const Yr = ({
2387
2387
  "rp-session-shape-bar": "rp_SessionShape-module_rp-session-shape-bar_RundK3ML",
2388
2388
  "rp-session-shape-col--peak": "rp_SessionShape-module_rp-session-shape-col--peak_2FbAs9hr",
2389
2389
  "rp-session-shape-label": "rp_SessionShape-module_rp-session-shape-label_QhTXuqr6"
2390
- }, Qr = ({ values: t, labels: n }) => {
2390
+ }, Wr = ({ values: t, labels: n }) => {
2391
2391
  const r = Math.max(1, ...t);
2392
2392
  return /* @__PURE__ */ e(
2393
2393
  "div",
2394
2394
  {
2395
- className: Ye["rp-session-shape"],
2395
+ className: je["rp-session-shape"],
2396
2396
  style: {
2397
2397
  gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
2398
2398
  },
2399
2399
  role: "img",
2400
- "aria-label": t.map((s, l) => `${n[l]} messages: ${s} sessions`).join(", "),
2401
- children: t.map((s, l) => /* @__PURE__ */ a(
2400
+ "aria-label": t.map((o, l) => `${n[l]} messages: ${o} sessions`).join(", "),
2401
+ children: t.map((o, l) => /* @__PURE__ */ a(
2402
2402
  "div",
2403
2403
  {
2404
- className: se(
2405
- Ye["rp-session-shape-col"],
2406
- s === r && Ye["rp-session-shape-col--peak"]
2404
+ className: re(
2405
+ je["rp-session-shape-col"],
2406
+ o === r && je["rp-session-shape-col--peak"]
2407
2407
  ),
2408
2408
  children: [
2409
- /* @__PURE__ */ a("div", { className: Ye["rp-session-shape-plot"], children: [
2410
- /* @__PURE__ */ e("b", { className: Ye["rp-session-shape-count"], children: s }),
2409
+ /* @__PURE__ */ a("div", { className: je["rp-session-shape-plot"], children: [
2410
+ /* @__PURE__ */ e("b", { className: je["rp-session-shape-count"], children: o }),
2411
2411
  /* @__PURE__ */ e(
2412
2412
  "i",
2413
2413
  {
2414
- className: Ye["rp-session-shape-bar"],
2415
- style: { height: `${s / r * 110}px` }
2414
+ className: je["rp-session-shape-bar"],
2415
+ style: { height: `${o / r * 110}px` }
2416
2416
  }
2417
2417
  )
2418
2418
  ] }),
2419
- /* @__PURE__ */ e("span", { className: Ye["rp-session-shape-label"], children: n[l] })
2419
+ /* @__PURE__ */ e("span", { className: je["rp-session-shape-label"], children: n[l] })
2420
2420
  ]
2421
2421
  },
2422
2422
  l
2423
2423
  ))
2424
2424
  }
2425
2425
  );
2426
- }, we = {
2426
+ }, Me = {
2427
2427
  "rp-usage-list": "rp_UsageList-module_rp-usage-list_z8RMAIHR",
2428
2428
  "rp-usage-list-row": "rp_UsageList-module_rp-usage-list-row_W7kgCICI",
2429
2429
  "rp-usage-list-icon": "rp_UsageList-module_rp-usage-list-icon_XI-hUKig",
@@ -2437,387 +2437,387 @@ const Yr = ({
2437
2437
  "rp-usage-list-value": "rp_UsageList-module_rp-usage-list-value_ZYLULILo",
2438
2438
  "rp-usage-list-breakdown": "rp_UsageList-module_rp-usage-list-breakdown_lqbEDax6",
2439
2439
  "rp-usage-list-cost": "rp_UsageList-module_rp-usage-list-cost_wVgLbsTn"
2440
- }, ei = ({ items: t }) => /* @__PURE__ */ e("div", { className: we["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
2440
+ }, Vr = ({ items: t }) => /* @__PURE__ */ e("div", { className: Me["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
2441
2441
  "div",
2442
2442
  {
2443
- className: se(
2444
- we["rp-usage-list-row"],
2445
- we["rp-usage-list-row--stat"]
2443
+ className: re(
2444
+ Me["rp-usage-list-row"],
2445
+ Me["rp-usage-list-row--stat"]
2446
2446
  ),
2447
2447
  children: [
2448
- /* @__PURE__ */ e("span", { className: we["rp-usage-list-icon"], "aria-hidden": "true", children: n.icon ?? /* @__PURE__ */ e("span", { className: we["rp-usage-list-fallback-icon"] }) }),
2449
- /* @__PURE__ */ a("div", { className: we["rp-usage-list-who"], children: [
2450
- /* @__PURE__ */ e("div", { className: we["rp-usage-list-name"], children: n.name }),
2451
- /* @__PURE__ */ e("div", { className: we["rp-usage-list-sub"], children: n.detail })
2448
+ /* @__PURE__ */ e("span", { className: Me["rp-usage-list-icon"], "aria-hidden": "true", children: n.icon ?? /* @__PURE__ */ e("span", { className: Me["rp-usage-list-fallback-icon"] }) }),
2449
+ /* @__PURE__ */ a("div", { className: Me["rp-usage-list-who"], children: [
2450
+ /* @__PURE__ */ e("div", { className: Me["rp-usage-list-name"], children: n.name }),
2451
+ /* @__PURE__ */ e("div", { className: Me["rp-usage-list-sub"], children: n.detail })
2452
2452
  ] }),
2453
- /* @__PURE__ */ e("span", { className: we["rp-usage-list-share"], children: /* @__PURE__ */ e("i", { style: { width: `${n.share}%` } }) }),
2454
- /* @__PURE__ */ a("span", { className: we["rp-usage-list-num"], children: [
2455
- /* @__PURE__ */ e("b", { className: we["rp-usage-list-value"], children: n.value }),
2456
- /* @__PURE__ */ e("small", { className: we["rp-usage-list-breakdown"], children: n.breakdown })
2453
+ /* @__PURE__ */ e("span", { className: Me["rp-usage-list-share"], children: /* @__PURE__ */ e("i", { style: { width: `${n.share}%` } }) }),
2454
+ /* @__PURE__ */ a("span", { className: Me["rp-usage-list-num"], children: [
2455
+ /* @__PURE__ */ e("b", { className: Me["rp-usage-list-value"], children: n.value }),
2456
+ /* @__PURE__ */ e("small", { className: Me["rp-usage-list-breakdown"], children: n.breakdown })
2457
2457
  ] }),
2458
- /* @__PURE__ */ e("span", { className: we["rp-usage-list-cost"], children: n.cost })
2458
+ /* @__PURE__ */ e("span", { className: Me["rp-usage-list-cost"], children: n.cost })
2459
2459
  ]
2460
2460
  },
2461
2461
  n.name
2462
- )) }), Dn = {
2462
+ )) }), qn = {
2463
2463
  "rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
2464
2464
  };
2465
2465
  function Et(t, n) {
2466
- const r = Ce(null), s = Ce(n ?? (t ? 7 : 14));
2466
+ const r = Re(null), o = Re(n ?? (t ? 7 : 14));
2467
2467
  return Ae(() => {
2468
- s.current = n ?? (t ? 7 : 14);
2468
+ o.current = n ?? (t ? 7 : 14);
2469
2469
  }, [n, t]), Ae(() => {
2470
2470
  const l = r.current;
2471
2471
  if (!l || typeof window > "u") return;
2472
2472
  const i = l.getContext("2d"), d = l.parentElement;
2473
2473
  if (!i || !d) return;
2474
- const h = window.matchMedia("(prefers-reduced-motion: reduce)");
2475
- let m = 0, x = 0, M = 0, $ = !0, R = [], N = null;
2476
- const k = window.matchMedia("(hover: hover) and (pointer: fine)"), f = 10;
2477
- let v = 0, F = 0, o = new Float32Array(0), y = new Float32Array(0), C = 0, q = 0, B = null, U = null;
2478
- const te = () => {
2474
+ const p = window.matchMedia("(prefers-reduced-motion: reduce)");
2475
+ let g = 0, $ = 0, x = 0, k = !0, S = [], M = null;
2476
+ const b = window.matchMedia("(hover: hover) and (pointer: fine)"), N = 10;
2477
+ let f = 0, E = 0, s = new Float32Array(0), w = new Float32Array(0), C = 0, F = 0, B = null, H = null;
2478
+ const ae = () => {
2479
2479
  if (B) {
2480
- const p = (B.targetX - B.x) * 0.22, w = (B.targetY - B.y) * 0.22;
2481
- B.x += p, B.y += w;
2482
- const b = Math.hypot(p, w);
2483
- if (b > 0.02) {
2484
- const I = B.x / f + 1, A = B.y / f + 1, z = Math.min(b, 12) * 0.065;
2485
- for (let P = Math.max(1, Math.floor(A - 7)); P < Math.min(F - 1, A + 8); P++)
2486
- for (let J = Math.max(1, Math.floor(I - 7)); J < Math.min(v - 1, I + 8); J++) {
2487
- const ee = J - I, de = P - A, ve = (ee * p + de * w) / b;
2488
- y[P * v + J] += ve * Math.exp(-(ee * ee + de * de) / 9) * z;
2480
+ const m = (B.targetX - B.x) * 0.22, _ = (B.targetY - B.y) * 0.22;
2481
+ B.x += m, B.y += _;
2482
+ const y = Math.hypot(m, _);
2483
+ if (y > 0.02) {
2484
+ const P = B.x / N + 1, A = B.y / N + 1, O = Math.min(y, 12) * 0.065;
2485
+ for (let T = Math.max(1, Math.floor(A - 7)); T < Math.min(E - 1, A + 8); T++)
2486
+ for (let J = Math.max(1, Math.floor(P - 7)); J < Math.min(f - 1, P + 8); J++) {
2487
+ const ee = J - P, le = T - A, ve = (ee * m + le * _) / y;
2488
+ w[T * f + J] += ve * Math.exp(-(ee * ee + le * le) / 9) * O;
2489
2489
  }
2490
2490
  }
2491
2491
  }
2492
- for (let p = 1; p < F - 1; p++)
2493
- for (let w = 1; w < v - 1; w++) {
2494
- const b = p * v + w, I = o[b - 1] + o[b + 1] + o[b - v] + o[b + v] - 4 * o[b], A = Math.min(w, p, v - 1 - w, F - 1 - p);
2495
- y[b] = (y[b] + I * 0.32) * (A < 8 ? 0.88 : 0.985);
2492
+ for (let m = 1; m < E - 1; m++)
2493
+ for (let _ = 1; _ < f - 1; _++) {
2494
+ const y = m * f + _, P = s[y - 1] + s[y + 1] + s[y - f] + s[y + f] - 4 * s[y], A = Math.min(_, m, f - 1 - _, E - 1 - m);
2495
+ w[y] = (w[y] + P * 0.32) * (A < 8 ? 0.88 : 0.985);
2496
2496
  }
2497
- for (let p = 0; p < o.length; p++) o[p] += y[p];
2498
- }, X = (p, w) => {
2499
- const b = Math.max(0, Math.min(v - 2, p / f + 1)), I = Math.max(0, Math.min(F - 2, w / f + 1)), A = Math.floor(b), z = Math.floor(I), P = b - A, J = I - z, ee = z * v + A;
2500
- return (o[ee] * (1 - P) + o[ee + 1] * P) * (1 - J) + (o[ee + v] * (1 - P) + o[ee + v + 1] * P) * J;
2501
- }, ce = (p) => {
2502
- if (!$ || document.hidden) {
2503
- M = 0;
2497
+ for (let m = 0; m < s.length; m++) s[m] += w[m];
2498
+ }, z = (m, _) => {
2499
+ const y = Math.max(0, Math.min(f - 2, m / N + 1)), P = Math.max(0, Math.min(E - 2, _ / N + 1)), A = Math.floor(y), O = Math.floor(P), T = y - A, J = P - O, ee = O * f + A;
2500
+ return (s[ee] * (1 - T) + s[ee + 1] * T) * (1 - J) + (s[ee + f] * (1 - T) + s[ee + f + 1] * T) * J;
2501
+ }, se = (m) => {
2502
+ if (!k || document.hidden) {
2503
+ x = 0;
2504
2504
  return;
2505
2505
  }
2506
- if (q += Math.min(50, C ? p - C : 0), C = p, h.matches)
2507
- q = 0;
2508
- else for (; q >= 1e3 / 60; )
2509
- te(), q -= 1e3 / 60;
2510
- i.clearRect(0, 0, m, x), R = R.filter((A) => p - A.time < 2400);
2511
- const w = s.current, b = w / 2, I = w * 0.25;
2512
- for (let A = b, z = 0; A < x; A += w, z++)
2513
- for (let P = b + z % 2 * w / 2; P < m; P += w) {
2514
- let J = 0, ee = 0, de = 0;
2515
- if (N && !h.matches) {
2516
- const L = (p - N.time) / 1e3, D = (P - m / 2) / (m * 0.58), O = (A - x * 0.42) / (x * 0.7), G = Math.hypot(D, O), K = 0.22 + 0.98 * Math.exp(-G * G * 2.1), oe = Math.max(
2506
+ if (F += Math.min(50, C ? m - C : 0), C = m, p.matches)
2507
+ F = 0;
2508
+ else for (; F >= 1e3 / 60; )
2509
+ ae(), F -= 1e3 / 60;
2510
+ i.clearRect(0, 0, g, $), S = S.filter((A) => m - A.time < 2400);
2511
+ const _ = o.current, y = _ / 2, P = _ * 0.25;
2512
+ for (let A = y, O = 0; A < $; A += _, O++)
2513
+ for (let T = y + O % 2 * _ / 2; T < g; T += _) {
2514
+ let J = 0, ee = 0, le = 0;
2515
+ if (M && !p.matches) {
2516
+ const I = (m - M.time) / 1e3, W = (T - g / 2) / (g * 0.58), U = (A - $ * 0.42) / ($ * 0.7), D = Math.hypot(W, U), ie = 0.22 + 0.98 * Math.exp(-D * D * 2.1), oe = Math.max(
2517
2517
  0,
2518
- Math.min(L, 2.4) - Math.min(0.045, G * 0.025)
2519
- ), ne = 1.55 * (1 - Math.exp(-oe / 0.12)) * K;
2520
- de = D * 210 * ne, ee = -260 * ne * (1 - 0.3 * Math.tanh(O));
2518
+ Math.min(I, 2.4) - Math.min(0.045, D * 0.025)
2519
+ ), pe = 1.55 * (1 - Math.exp(-oe / 0.12)) * ie;
2520
+ le = W * 210 * pe, ee = -260 * pe * (1 - 0.3 * Math.tanh(U));
2521
2521
  }
2522
- if (!h.matches)
2523
- for (const L of R) {
2524
- const D = (p - L.time) / 1e3, O = Math.hypot(P - L.x, A - L.y);
2525
- if (D < 0) continue;
2526
- const G = O - D * 320;
2527
- J += Math.sin(G * 0.065) * Math.exp(-G * G / 13e3) * Math.max(0, 1 - D / 2.4) * 11;
2522
+ if (!p.matches)
2523
+ for (const I of S) {
2524
+ const W = (m - I.time) / 1e3, U = Math.hypot(T - I.x, A - I.y);
2525
+ if (W < 0) continue;
2526
+ const D = U - W * 320;
2527
+ J += Math.sin(D * 0.065) * Math.exp(-D * D / 13e3) * Math.max(0, 1 - W / 2.4) * 11;
2528
2528
  }
2529
- const ve = h.matches ? 0 : X(P + f, A) - X(P - f, A), _e = h.matches ? 0 : X(P, A + f) - X(P, A - f), he = 12 * Math.tanh(ve * 0.65), Le = 12 * Math.tanh(_e * 0.65), ue = Math.pow(Math.max(0, 1 - A / x), 0.6), Te = 1 - Math.exp(
2530
- -Math.pow((P - m / 2) / (m * 0.28), 2) - Math.pow((A - x * 0.38) / (x * 0.24), 2)
2531
- ) * 0.55, qe = Math.hypot(he, Le);
2529
+ const ve = p.matches ? 0 : z(T + N, A) - z(T - N, A), _e = p.matches ? 0 : z(T, A + N) - z(T, A - N), ce = 12 * Math.tanh(ve * 0.65), he = 12 * Math.tanh(_e * 0.65), Le = Math.pow(Math.max(0, 1 - A / $), 0.6), Fe = 1 - Math.exp(
2530
+ -Math.pow((T - g / 2) / (g * 0.28), 2) - Math.pow((A - $ * 0.38) / ($ * 0.24), 2)
2531
+ ) * 0.55, Te = Math.hypot(ce, he);
2532
2532
  if (t) {
2533
- const L = Math.abs(X(P, A)) * 0.12 + qe * 0.035 + Math.abs(J) * 0.035;
2534
- let D = U ? Math.exp(
2535
- -((P - U.x) ** 2 + (A - U.y) ** 2) / (2 * 24 ** 2)
2536
- ) : 0, O = 0;
2537
- if (!h.matches)
2538
- for (const G of R) {
2539
- const K = (p - G.time) / 1e3, oe = Math.hypot(P - G.x, A - G.y), ne = 32 + 64 * Math.min(1, K / 0.3), le = Math.max(0, 1 - K / 2.4), ie = Math.exp(-((oe - K * 320) ** 2) / (2 * 36 ** 2)) * le;
2540
- D = Math.max(
2541
- D,
2542
- Math.exp(-(oe ** 2) / (2 * ne ** 2)) * le,
2543
- ie
2544
- ), O = Math.max(O, ie);
2533
+ const I = Math.abs(z(T, A)) * 0.12 + Te * 0.035 + Math.abs(J) * 0.035;
2534
+ let W = H ? Math.exp(
2535
+ -((T - H.x) ** 2 + (A - H.y) ** 2) / (2 * 24 ** 2)
2536
+ ) : 0, U = 0;
2537
+ if (!p.matches)
2538
+ for (const D of S) {
2539
+ const ie = (m - D.time) / 1e3, oe = Math.hypot(T - D.x, A - D.y), pe = 32 + 64 * Math.min(1, ie / 0.3), me = Math.max(0, 1 - ie / 2.4), $e = Math.exp(-((oe - ie * 320) ** 2) / (2 * 36 ** 2)) * me;
2540
+ W = Math.max(
2541
+ W,
2542
+ Math.exp(-(oe ** 2) / (2 * pe ** 2)) * me,
2543
+ $e
2544
+ ), U = Math.max(U, $e);
2545
2545
  }
2546
- i.globalAlpha = Math.min(0.28, 0.1 + L * 0.12 + O * 0.12) * D, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
2547
- P + J * 0.4 + he * 0.25,
2548
- A + J + Le * 0.25,
2546
+ i.globalAlpha = Math.min(0.28, 0.1 + I * 0.12 + U * 0.12) * W, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
2547
+ T + J * 0.4 + ce * 0.25,
2548
+ A + J + he * 0.25,
2549
2549
  1.25,
2550
2550
  0,
2551
2551
  Math.PI * 2
2552
2552
  ), i.fill();
2553
2553
  continue;
2554
2554
  }
2555
- const Se = J * 0.055 + Math.tanh((ve - _e) * 0.2) * 0.18, Ne = I + Math.abs(J) * 0.16 + qe * 0.08, Pe = Math.sin(P * 12.9898 + A * 78.233) * 43758.5453, me = Pe - Math.floor(Pe), Be = p / 1e3, Ie = Math.sin(P * 39.346 + A * 11.135) * 24634.6345, Re = Ie - Math.floor(Ie), T = Be / (3 + Re * 5) + Re * 17, H = T - Math.floor(T), Z = H < 0.32 ? Math.pow(Math.sin(Math.PI * H / 0.32), 2) : 0, g = me < 0.22, u = h.matches || !g ? 1 : 1 - 0.98 * Z;
2555
+ const Se = J * 0.055 + Math.tanh((ve - _e) * 0.2) * 0.18, Ne = P + Math.abs(J) * 0.16 + Te * 0.08, fe = Math.sin(T * 12.9898 + A * 78.233) * 43758.5453, we = fe - Math.floor(fe), Pe = m / 1e3, qe = Math.sin(T * 39.346 + A * 11.135) * 24634.6345, R = qe - Math.floor(qe), X = Pe / (3 + R * 5) + R * 17, K = X - Math.floor(X), Z = K < 0.32 ? Math.pow(Math.sin(Math.PI * K / 0.32), 2) : 0, h = we < 0.22, u = p.matches || !h ? 1 : 1 - 0.98 * Z;
2556
2556
  i.save(), i.translate(
2557
- P + J * 0.4 + he + de,
2558
- A + J + Le + ee
2557
+ T + J * 0.4 + ce + le,
2558
+ A + J + he + ee
2559
2559
  ), i.rotate(Se), i.globalAlpha = Math.min(
2560
2560
  1,
2561
2561
  Math.min(
2562
2562
  0.95,
2563
- 0.38 + me * 0.22 + (g ? 0.32 : 0) + Math.abs(J) * 0.045 + qe * 0.018
2564
- ) * ue * Te * u
2565
- ), i.strokeStyle = "#f5f8ff", i.lineWidth = I * (g ? 0.357 : 0.3), i.beginPath(), i.moveTo(-Ne, 0), i.lineTo(Ne, 0), i.moveTo(0, -Ne), i.lineTo(0, Ne), i.stroke(), i.restore();
2563
+ 0.38 + we * 0.22 + (h ? 0.32 : 0) + Math.abs(J) * 0.045 + Te * 0.018
2564
+ ) * Le * Fe * u
2565
+ ), i.strokeStyle = "#f5f8ff", i.lineWidth = P * (h ? 0.357 : 0.3), i.beginPath(), i.moveTo(-Ne, 0), i.lineTo(Ne, 0), i.moveTo(0, -Ne), i.lineTo(0, Ne), i.stroke(), i.restore();
2566
2566
  }
2567
- M = $ && !document.hidden && !h.matches ? requestAnimationFrame(ce) : 0;
2568
- }, V = () => {
2569
- cancelAnimationFrame(M), M = 0, C = 0, $ && !document.hidden && ce(performance.now());
2567
+ x = k && !document.hidden && !p.matches ? requestAnimationFrame(se) : 0;
2568
+ }, Y = () => {
2569
+ cancelAnimationFrame(x), x = 0, C = 0, k && !document.hidden && se(performance.now());
2570
2570
  }, Q = () => {
2571
- const p = l.getBoundingClientRect();
2572
- m = p.width, x = p.height, v = Math.ceil(m / f) + 3, F = Math.ceil(x / f) + 3, o = new Float32Array(v * F), y = new Float32Array(v * F), B = null, q = 0;
2573
- const w = Math.min(devicePixelRatio || 1, 2);
2574
- l.width = m * w, l.height = x * w, i.setTransform(w, 0, 0, w, 0, 0), V();
2571
+ const m = l.getBoundingClientRect();
2572
+ g = m.width, $ = m.height, f = Math.ceil(g / N) + 3, E = Math.ceil($ / N) + 3, s = new Float32Array(f * E), w = new Float32Array(f * E), B = null, F = 0;
2573
+ const _ = Math.min(devicePixelRatio || 1, 2);
2574
+ l.width = g * _, l.height = $ * _, i.setTransform(_, 0, 0, _, 0, 0), Y();
2575
2575
  };
2576
- let ae = 0;
2577
- const Y = (p) => {
2578
- if (h.matches || !k.matches || p.pointerType === "touch")
2576
+ let te = 0;
2577
+ const G = (m) => {
2578
+ if (p.matches || !b.matches || m.pointerType === "touch")
2579
2579
  return;
2580
- if (!t && (performance.now() < ae || p.target.closest("#hero-download"))) {
2580
+ if (!t && (performance.now() < te || m.target.closest("#hero-download"))) {
2581
2581
  B = null;
2582
2582
  return;
2583
2583
  }
2584
- const w = l.getBoundingClientRect(), b = p.clientX - w.left, I = p.clientY - w.top;
2585
- U = { x: b, y: I }, B ? (B.targetX = b, B.targetY = I) : B = { x: t ? b - 8 : b, y: I, targetX: b, targetY: I }, M || V();
2586
- }, re = () => {
2587
- B = null, U = null;
2588
- }, pe = (p) => {
2589
- if (h.matches || p.button !== 0 || p.target.closest("a,button,input,select"))
2584
+ const _ = l.getBoundingClientRect(), y = m.clientX - _.left, P = m.clientY - _.top;
2585
+ H = { x: y, y: P }, B ? (B.targetX = y, B.targetY = P) : B = { x: t ? y - 8 : y, y: P, targetX: y, targetY: P }, x || Y();
2586
+ }, ne = () => {
2587
+ B = null, H = null;
2588
+ }, de = (m) => {
2589
+ if (p.matches || m.button !== 0 || m.target.closest("a,button,input,select"))
2590
2590
  return;
2591
- const w = l.getBoundingClientRect(), b = p.clientX - w.left, I = p.clientY - w.top;
2591
+ const _ = l.getBoundingClientRect(), y = m.clientX - _.left, P = m.clientY - _.top;
2592
2592
  if (t)
2593
- R.push({ x: b, y: I, time: performance.now() }), R = R.slice(-5);
2593
+ S.push({ x: y, y: P, time: performance.now() }), S = S.slice(-5);
2594
2594
  else {
2595
- const A = b / f + 1, z = I / f + 1, P = 3;
2596
- for (let J = Math.max(1, Math.floor(z - P * 3)); J < Math.min(F - 1, z + P * 3); J++)
2597
- for (let ee = Math.max(1, Math.floor(A - P * 3)); ee < Math.min(v - 1, A + P * 3); ee++) {
2598
- const de = ((ee - A) ** 2 + (J - z) ** 2) / P ** 2, ve = (1 - de) * Math.exp(-de), _e = J * v + ee;
2599
- y[_e] = Math.max(
2595
+ const A = y / N + 1, O = P / N + 1, T = 3;
2596
+ for (let J = Math.max(1, Math.floor(O - T * 3)); J < Math.min(E - 1, O + T * 3); J++)
2597
+ for (let ee = Math.max(1, Math.floor(A - T * 3)); ee < Math.min(f - 1, A + T * 3); ee++) {
2598
+ const le = ((ee - A) ** 2 + (J - O) ** 2) / T ** 2, ve = (1 - le) * Math.exp(-le), _e = J * f + ee;
2599
+ w[_e] = Math.max(
2600
2600
  -4,
2601
- Math.min(4, y[_e] - ve * 2.4)
2601
+ Math.min(4, w[_e] - ve * 2.4)
2602
2602
  );
2603
2603
  }
2604
2604
  }
2605
- M || V();
2606
- }, j = (p) => {
2607
- if (t || h.matches) return;
2608
- const w = p.detail;
2609
- if (w.cancel) {
2610
- N = null, ae = 0;
2605
+ x || Y();
2606
+ }, j = (m) => {
2607
+ if (t || p.matches) return;
2608
+ const _ = m.detail;
2609
+ if (_.cancel) {
2610
+ M = null, te = 0;
2611
2611
  return;
2612
2612
  }
2613
- if (N && w.progress > 0) {
2614
- N.progress = w.progress;
2613
+ if (M && _.progress > 0) {
2614
+ M.progress = _.progress;
2615
2615
  return;
2616
2616
  }
2617
- if (w.progress > 0) return;
2618
- const b = d.querySelector("#hero-download");
2619
- if (!b) return;
2620
- const I = l.getBoundingClientRect(), A = b.getBoundingClientRect(), z = performance.now();
2621
- ae = z + 3220, N = {
2622
- x: A.left + A.width / 2 - I.left,
2623
- y: A.top + A.height / 2 - I.top,
2624
- time: z,
2617
+ if (_.progress > 0) return;
2618
+ const y = d.querySelector("#hero-download");
2619
+ if (!y) return;
2620
+ const P = l.getBoundingClientRect(), A = y.getBoundingClientRect(), O = performance.now();
2621
+ te = O + 3220, M = {
2622
+ x: A.left + A.width / 2 - P.left,
2623
+ y: A.top + A.height / 2 - P.top,
2624
+ time: O,
2625
2625
  progress: 0
2626
- }, R = [], o.fill(0), y.fill(0), B = null, R = R.slice(-5), M || V();
2626
+ }, S = [], s.fill(0), w.fill(0), B = null, S = S.slice(-5), x || Y();
2627
2627
  };
2628
2628
  d.addEventListener("hero-scroll-inertia", j);
2629
- const _ = new ResizeObserver(Q);
2630
- _.observe(l);
2631
- const E = new IntersectionObserver((p) => {
2632
- $ = p.some((w) => w.isIntersecting), V();
2629
+ const v = new ResizeObserver(Q);
2630
+ v.observe(l);
2631
+ const q = new IntersectionObserver((m) => {
2632
+ k = m.some((_) => _.isIntersecting), Y();
2633
2633
  });
2634
- return E.observe(l), d.addEventListener("pointermove", Y), d.addEventListener("pointerleave", re), d.addEventListener("pointerdown", pe), h.addEventListener("change", V), document.addEventListener("visibilitychange", V), Q(), () => {
2635
- cancelAnimationFrame(M), _.disconnect(), E.disconnect(), d.removeEventListener("hero-scroll-inertia", j), d.removeEventListener("pointermove", Y), d.removeEventListener("pointerleave", re), d.removeEventListener("pointerdown", pe), h.removeEventListener("change", V), document.removeEventListener("visibilitychange", V);
2634
+ return q.observe(l), d.addEventListener("pointermove", G), d.addEventListener("pointerleave", ne), d.addEventListener("pointerdown", de), p.addEventListener("change", Y), document.addEventListener("visibilitychange", Y), Q(), () => {
2635
+ cancelAnimationFrame(x), v.disconnect(), q.disconnect(), d.removeEventListener("hero-scroll-inertia", j), d.removeEventListener("pointermove", G), d.removeEventListener("pointerleave", ne), d.removeEventListener("pointerdown", de), p.removeEventListener("change", Y), document.removeEventListener("visibilitychange", Y);
2636
2636
  };
2637
2637
  }, [t]), r;
2638
2638
  }
2639
- function ti({ background: t, cellSize: n }) {
2639
+ function Kr({ background: t, cellSize: n }) {
2640
2640
  const r = Et(!1, n);
2641
2641
  return /* @__PURE__ */ e(
2642
2642
  "canvas",
2643
2643
  {
2644
- className: `${Dn["rp-plus-background-canvas"]} rp-plus-background`,
2644
+ className: `${qn["rp-plus-background-canvas"]} rp-plus-background`,
2645
2645
  style: t === void 0 ? void 0 : { background: t },
2646
2646
  ref: r,
2647
2647
  "aria-hidden": "true"
2648
2648
  }
2649
2649
  );
2650
2650
  }
2651
- const $t = {
2651
+ const xt = {
2652
2652
  "rp-plus-field-canvas": "rp_PlusField-module_rp-plus-field-canvas_ZN-2OlaQ",
2653
2653
  "rp-plus-field-dots": "rp_PlusField-module_rp-plus-field-dots_e1Khngt7"
2654
2654
  };
2655
- function ai({ dots: t = !1 }) {
2656
- const n = Ce(null);
2655
+ function Jr({ dots: t = !1 }) {
2656
+ const n = Re(null);
2657
2657
  return Ae(() => {
2658
2658
  const r = n.current;
2659
2659
  if (!r || typeof window > "u") return;
2660
- const s = r.getContext("2d"), l = r.parentElement;
2661
- if (!s || !l) return;
2660
+ const o = r.getContext("2d"), l = r.parentElement;
2661
+ if (!o || !l) return;
2662
2662
  const i = window.matchMedia("(prefers-reduced-motion: reduce)");
2663
- let d = 0, h = 0, m = 0, x = !0, M = [], $ = null;
2664
- const R = window.matchMedia("(hover: hover) and (pointer: fine)"), N = 10;
2665
- let k = 0, f = 0, v = new Float32Array(0), F = new Float32Array(0), o = 0, y = 0, C = null, q = null;
2663
+ let d = 0, p = 0, g = 0, $ = !0, x = [], k = null;
2664
+ const S = window.matchMedia("(hover: hover) and (pointer: fine)"), M = 10;
2665
+ let b = 0, N = 0, f = new Float32Array(0), E = new Float32Array(0), s = 0, w = 0, C = null, F = null;
2666
2666
  const B = () => {
2667
2667
  if (C) {
2668
- const _ = (C.targetX - C.x) * 0.22, E = (C.targetY - C.y) * 0.22;
2669
- C.x += _, C.y += E;
2670
- const p = Math.hypot(_, E);
2671
- if (p > 0.02) {
2672
- const w = C.x / N + 1, b = C.y / N + 1, I = Math.min(p, 12) * 0.065;
2673
- for (let A = Math.max(1, Math.floor(b - 7)); A < Math.min(f - 1, b + 8); A++)
2674
- for (let z = Math.max(1, Math.floor(w - 7)); z < Math.min(k - 1, w + 8); z++) {
2675
- const P = z - w, J = A - b, ee = (P * _ + J * E) / p;
2676
- F[A * k + z] += ee * Math.exp(-(P * P + J * J) / 9) * I;
2668
+ const v = (C.targetX - C.x) * 0.22, q = (C.targetY - C.y) * 0.22;
2669
+ C.x += v, C.y += q;
2670
+ const m = Math.hypot(v, q);
2671
+ if (m > 0.02) {
2672
+ const _ = C.x / M + 1, y = C.y / M + 1, P = Math.min(m, 12) * 0.065;
2673
+ for (let A = Math.max(1, Math.floor(y - 7)); A < Math.min(N - 1, y + 8); A++)
2674
+ for (let O = Math.max(1, Math.floor(_ - 7)); O < Math.min(b - 1, _ + 8); O++) {
2675
+ const T = O - _, J = A - y, ee = (T * v + J * q) / m;
2676
+ E[A * b + O] += ee * Math.exp(-(T * T + J * J) / 9) * P;
2677
2677
  }
2678
2678
  }
2679
2679
  }
2680
- for (let _ = 1; _ < f - 1; _++)
2681
- for (let E = 1; E < k - 1; E++) {
2682
- const p = _ * k + E, w = v[p - 1] + v[p + 1] + v[p - k] + v[p + k] - 4 * v[p], b = Math.min(E, _, k - 1 - E, f - 1 - _);
2683
- F[p] = (F[p] + w * 0.32) * (b < 8 ? 0.88 : 0.985);
2680
+ for (let v = 1; v < N - 1; v++)
2681
+ for (let q = 1; q < b - 1; q++) {
2682
+ const m = v * b + q, _ = f[m - 1] + f[m + 1] + f[m - b] + f[m + b] - 4 * f[m], y = Math.min(q, v, b - 1 - q, N - 1 - v);
2683
+ E[m] = (E[m] + _ * 0.32) * (y < 8 ? 0.88 : 0.985);
2684
2684
  }
2685
- for (let _ = 0; _ < v.length; _++) v[_] += F[_];
2686
- }, U = (_, E) => {
2687
- const p = Math.max(0, Math.min(k - 2, _ / N + 1)), w = Math.max(0, Math.min(f - 2, E / N + 1)), b = Math.floor(p), I = Math.floor(w), A = p - b, z = w - I, P = I * k + b;
2688
- return (v[P] * (1 - A) + v[P + 1] * A) * (1 - z) + (v[P + k] * (1 - A) + v[P + k + 1] * A) * z;
2689
- }, te = (_) => {
2690
- if (y += Math.min(50, o ? _ - o : 0), o = _, i.matches)
2691
- y = 0;
2692
- else for (; y >= 1e3 / 60; )
2693
- B(), y -= 1e3 / 60;
2694
- s.clearRect(0, 0, d, h), M = M.filter((p) => _ - p.time < 2400);
2695
- const E = t ? 7 : 14;
2696
- for (let p = 7, w = 0; p < h; p += E, w++)
2697
- for (let b = 7 + w % 2 * E / 2; b < d; b += E) {
2698
- let I = 0, A = 0, z = 0;
2699
- if ($ && !i.matches) {
2700
- const H = (_ - $.time) / 1e3, Z = (b - d / 2) / (d * 0.58), g = (p - h * 0.42) / (h * 0.7), u = Math.hypot(Z, g), L = 0.22 + 0.98 * Math.exp(-u * u * 2.1), D = Math.max(
2685
+ for (let v = 0; v < f.length; v++) f[v] += E[v];
2686
+ }, H = (v, q) => {
2687
+ const m = Math.max(0, Math.min(b - 2, v / M + 1)), _ = Math.max(0, Math.min(N - 2, q / M + 1)), y = Math.floor(m), P = Math.floor(_), A = m - y, O = _ - P, T = P * b + y;
2688
+ return (f[T] * (1 - A) + f[T + 1] * A) * (1 - O) + (f[T + b] * (1 - A) + f[T + b + 1] * A) * O;
2689
+ }, ae = (v) => {
2690
+ if (w += Math.min(50, s ? v - s : 0), s = v, i.matches)
2691
+ w = 0;
2692
+ else for (; w >= 1e3 / 60; )
2693
+ B(), w -= 1e3 / 60;
2694
+ o.clearRect(0, 0, d, p), x = x.filter((m) => v - m.time < 2400);
2695
+ const q = t ? 7 : 14;
2696
+ for (let m = 7, _ = 0; m < p; m += q, _++)
2697
+ for (let y = 7 + _ % 2 * q / 2; y < d; y += q) {
2698
+ let P = 0, A = 0, O = 0;
2699
+ if (k && !i.matches) {
2700
+ const K = (v - k.time) / 1e3, Z = (y - d / 2) / (d * 0.58), h = (m - p * 0.42) / (p * 0.7), u = Math.hypot(Z, h), I = 0.22 + 0.98 * Math.exp(-u * u * 2.1), W = Math.max(
2701
2701
  0,
2702
- Math.min(H, 2.4) - Math.min(0.045, u * 0.025)
2703
- ), O = 1.55 * (1 - Math.exp(-D / 0.12)) * L;
2704
- z = Z * 210 * O, A = -260 * O * (1 - 0.3 * Math.tanh(g));
2702
+ Math.min(K, 2.4) - Math.min(0.045, u * 0.025)
2703
+ ), U = 1.55 * (1 - Math.exp(-W / 0.12)) * I;
2704
+ O = Z * 210 * U, A = -260 * U * (1 - 0.3 * Math.tanh(h));
2705
2705
  }
2706
2706
  if (!i.matches)
2707
- for (const H of M) {
2708
- const Z = (_ - H.time) / 1e3, g = Math.hypot(b - H.x, p - H.y);
2707
+ for (const K of x) {
2708
+ const Z = (v - K.time) / 1e3, h = Math.hypot(y - K.x, m - K.y);
2709
2709
  if (Z < 0) continue;
2710
- const u = g - Z * 320;
2711
- I += Math.sin(u * 0.065) * Math.exp(-u * u / 13e3) * Math.max(0, 1 - Z / 2.4) * 11;
2710
+ const u = h - Z * 320;
2711
+ P += Math.sin(u * 0.065) * Math.exp(-u * u / 13e3) * Math.max(0, 1 - Z / 2.4) * 11;
2712
2712
  }
2713
- const P = i.matches ? 0 : U(b + N, p) - U(b - N, p), J = i.matches ? 0 : U(b, p + N) - U(b, p - N), ee = 12 * Math.tanh(P * 0.65), de = 12 * Math.tanh(J * 0.65), ve = Math.pow(Math.max(0, 1 - p / h), 0.6), _e = 1 - Math.exp(
2714
- -Math.pow((b - d / 2) / (d * 0.28), 2) - Math.pow((p - h * 0.38) / (h * 0.24), 2)
2715
- ) * 0.55, he = Math.hypot(ee, de);
2713
+ const T = i.matches ? 0 : H(y + M, m) - H(y - M, m), J = i.matches ? 0 : H(y, m + M) - H(y, m - M), ee = 12 * Math.tanh(T * 0.65), le = 12 * Math.tanh(J * 0.65), ve = Math.pow(Math.max(0, 1 - m / p), 0.6), _e = 1 - Math.exp(
2714
+ -Math.pow((y - d / 2) / (d * 0.28), 2) - Math.pow((m - p * 0.38) / (p * 0.24), 2)
2715
+ ) * 0.55, ce = Math.hypot(ee, le);
2716
2716
  if (t) {
2717
- const H = Math.abs(U(b, p)) * 0.12 + he * 0.035 + Math.abs(I) * 0.035;
2718
- let Z = q ? Math.exp(
2719
- -((b - q.x) ** 2 + (p - q.y) ** 2) / (2 * 24 ** 2)
2720
- ) : 0, g = 0;
2717
+ const K = Math.abs(H(y, m)) * 0.12 + ce * 0.035 + Math.abs(P) * 0.035;
2718
+ let Z = F ? Math.exp(
2719
+ -((y - F.x) ** 2 + (m - F.y) ** 2) / (2 * 24 ** 2)
2720
+ ) : 0, h = 0;
2721
2721
  if (!i.matches)
2722
- for (const u of M) {
2723
- const L = (_ - u.time) / 1e3, D = Math.hypot(b - u.x, p - u.y), O = 32 + 64 * Math.min(1, L / 0.3), G = Math.max(0, 1 - L / 2.4), K = Math.exp(-((D - L * 320) ** 2) / (2 * 36 ** 2)) * G;
2722
+ for (const u of x) {
2723
+ const I = (v - u.time) / 1e3, W = Math.hypot(y - u.x, m - u.y), U = 32 + 64 * Math.min(1, I / 0.3), D = Math.max(0, 1 - I / 2.4), ie = Math.exp(-((W - I * 320) ** 2) / (2 * 36 ** 2)) * D;
2724
2724
  Z = Math.max(
2725
2725
  Z,
2726
- Math.exp(-(D ** 2) / (2 * O ** 2)) * G,
2727
- K
2728
- ), g = Math.max(g, K);
2726
+ Math.exp(-(W ** 2) / (2 * U ** 2)) * D,
2727
+ ie
2728
+ ), h = Math.max(h, ie);
2729
2729
  }
2730
- s.globalAlpha = Math.min(0.28, 0.1 + H * 0.12 + g * 0.12) * Z, s.fillStyle = "#8a8f98", s.beginPath(), s.arc(
2731
- b + I * 0.4 + ee * 0.25,
2732
- p + I + de * 0.25,
2730
+ o.globalAlpha = Math.min(0.28, 0.1 + K * 0.12 + h * 0.12) * Z, o.fillStyle = "#8a8f98", o.beginPath(), o.arc(
2731
+ y + P * 0.4 + ee * 0.25,
2732
+ m + P + le * 0.25,
2733
2733
  1.25,
2734
2734
  0,
2735
2735
  Math.PI * 2
2736
- ), s.fill();
2736
+ ), o.fill();
2737
2737
  continue;
2738
2738
  }
2739
- const Le = I * 0.055 + Math.tanh((P - J) * 0.2) * 0.18, ue = 3.5 + Math.abs(I) * 0.16 + he * 0.08, Te = Math.sin(b * 12.9898 + p * 78.233) * 43758.5453, qe = Te - Math.floor(Te), Se = _ / 1e3, Ne = Math.sin(b * 39.346 + p * 11.135) * 24634.6345, Pe = Ne - Math.floor(Ne), me = Se / (3 + Pe * 5) + Pe * 17, Be = me - Math.floor(me), Ie = Be < 0.32 ? Math.pow(Math.sin(Math.PI * Be / 0.32), 2) : 0, Re = qe < 0.22, T = i.matches || !Re ? 1 : 1 - 0.98 * Ie;
2740
- s.save(), s.translate(
2741
- b + I * 0.4 + ee + z,
2742
- p + I + de + A
2743
- ), s.rotate(Le), s.globalAlpha = Math.min(
2739
+ const he = P * 0.055 + Math.tanh((T - J) * 0.2) * 0.18, Le = 3.5 + Math.abs(P) * 0.16 + ce * 0.08, Fe = Math.sin(y * 12.9898 + m * 78.233) * 43758.5453, Te = Fe - Math.floor(Fe), Se = v / 1e3, Ne = Math.sin(y * 39.346 + m * 11.135) * 24634.6345, fe = Ne - Math.floor(Ne), we = Se / (3 + fe * 5) + fe * 17, Pe = we - Math.floor(we), qe = Pe < 0.32 ? Math.pow(Math.sin(Math.PI * Pe / 0.32), 2) : 0, R = Te < 0.22, X = i.matches || !R ? 1 : 1 - 0.98 * qe;
2740
+ o.save(), o.translate(
2741
+ y + P * 0.4 + ee + O,
2742
+ m + P + le + A
2743
+ ), o.rotate(he), o.globalAlpha = Math.min(
2744
2744
  1,
2745
2745
  Math.min(
2746
2746
  0.95,
2747
- 0.38 + qe * 0.22 + (Re ? 0.32 : 0) + Math.abs(I) * 0.045 + he * 0.018
2748
- ) * ve * _e * T
2749
- ), s.strokeStyle = "#f5f8ff", s.lineWidth = Re ? 1.25 : 1.05, s.beginPath(), s.moveTo(-ue, 0), s.lineTo(ue, 0), s.moveTo(0, -ue), s.lineTo(0, ue), s.stroke(), s.restore();
2747
+ 0.38 + Te * 0.22 + (R ? 0.32 : 0) + Math.abs(P) * 0.045 + ce * 0.018
2748
+ ) * ve * _e * X
2749
+ ), o.strokeStyle = "#f5f8ff", o.lineWidth = R ? 1.25 : 1.05, o.beginPath(), o.moveTo(-Le, 0), o.lineTo(Le, 0), o.moveTo(0, -Le), o.lineTo(0, Le), o.stroke(), o.restore();
2750
2750
  }
2751
- m = x && !document.hidden && !i.matches ? requestAnimationFrame(te) : 0;
2752
- }, X = () => {
2753
- cancelAnimationFrame(m), o = 0, te(performance.now());
2754
- }, ce = () => {
2755
- const _ = r.getBoundingClientRect();
2756
- d = _.width, h = _.height, k = Math.ceil(d / N) + 3, f = Math.ceil(h / N) + 3, v = new Float32Array(k * f), F = new Float32Array(k * f), C = null, y = 0;
2757
- const E = Math.min(devicePixelRatio || 1, 2);
2758
- r.width = d * E, r.height = h * E, s.setTransform(E, 0, 0, E, 0, 0), X();
2751
+ g = $ && !document.hidden && !i.matches ? requestAnimationFrame(ae) : 0;
2752
+ }, z = () => {
2753
+ cancelAnimationFrame(g), s = 0, ae(performance.now());
2754
+ }, se = () => {
2755
+ const v = r.getBoundingClientRect();
2756
+ d = v.width, p = v.height, b = Math.ceil(d / M) + 3, N = Math.ceil(p / M) + 3, f = new Float32Array(b * N), E = new Float32Array(b * N), C = null, w = 0;
2757
+ const q = Math.min(devicePixelRatio || 1, 2);
2758
+ r.width = d * q, r.height = p * q, o.setTransform(q, 0, 0, q, 0, 0), z();
2759
2759
  };
2760
- let V = 0;
2761
- const Q = (_) => {
2762
- if (i.matches || !R.matches || _.pointerType === "touch")
2760
+ let Y = 0;
2761
+ const Q = (v) => {
2762
+ if (i.matches || !S.matches || v.pointerType === "touch")
2763
2763
  return;
2764
- if (!t && (performance.now() < V || _.target.closest("#hero-download"))) {
2764
+ if (!t && (performance.now() < Y || v.target.closest("#hero-download"))) {
2765
2765
  C = null;
2766
2766
  return;
2767
2767
  }
2768
- const E = r.getBoundingClientRect(), p = _.clientX - E.left, w = _.clientY - E.top;
2769
- q = { x: p, y: w }, C ? (C.targetX = p, C.targetY = w) : C = { x: t ? p - 8 : p, y: w, targetX: p, targetY: w }, m || X();
2770
- }, ae = () => {
2771
- C = null, q = null;
2772
- }, Y = (_) => {
2773
- if (_.target.closest("a,button,input,select")) return;
2774
- const E = r.getBoundingClientRect();
2775
- M.push({
2776
- x: _.clientX - E.left,
2777
- y: _.clientY - E.top,
2768
+ const q = r.getBoundingClientRect(), m = v.clientX - q.left, _ = v.clientY - q.top;
2769
+ F = { x: m, y: _ }, C ? (C.targetX = m, C.targetY = _) : C = { x: t ? m - 8 : m, y: _, targetX: m, targetY: _ }, g || z();
2770
+ }, te = () => {
2771
+ C = null, F = null;
2772
+ }, G = (v) => {
2773
+ if (v.target.closest("a,button,input,select")) return;
2774
+ const q = r.getBoundingClientRect();
2775
+ x.push({
2776
+ x: v.clientX - q.left,
2777
+ y: v.clientY - q.top,
2778
2778
  time: performance.now()
2779
- }), M = M.slice(-5), m || X();
2780
- }, re = (_) => {
2779
+ }), x = x.slice(-5), g || z();
2780
+ }, ne = (v) => {
2781
2781
  if (t || i.matches) return;
2782
- const E = _.detail;
2783
- if (E.cancel) {
2784
- $ = null, V = 0;
2782
+ const q = v.detail;
2783
+ if (q.cancel) {
2784
+ k = null, Y = 0;
2785
2785
  return;
2786
2786
  }
2787
- if ($ && E.progress > 0) {
2788
- $.progress = E.progress;
2787
+ if (k && q.progress > 0) {
2788
+ k.progress = q.progress;
2789
2789
  return;
2790
2790
  }
2791
- if (E.progress > 0) return;
2792
- const p = l.querySelector("#hero-download");
2793
- if (!p) return;
2794
- const w = r.getBoundingClientRect(), b = p.getBoundingClientRect(), I = performance.now();
2795
- V = I + 3220, $ = {
2796
- x: b.left + b.width / 2 - w.left,
2797
- y: b.top + b.height / 2 - w.top,
2798
- time: I,
2791
+ if (q.progress > 0) return;
2792
+ const m = l.querySelector("#hero-download");
2793
+ if (!m) return;
2794
+ const _ = r.getBoundingClientRect(), y = m.getBoundingClientRect(), P = performance.now();
2795
+ Y = P + 3220, k = {
2796
+ x: y.left + y.width / 2 - _.left,
2797
+ y: y.top + y.height / 2 - _.top,
2798
+ time: P,
2799
2799
  progress: 0
2800
- }, M = [], v.fill(0), F.fill(0), C = null, M = M.slice(-5), m || X();
2800
+ }, x = [], f.fill(0), E.fill(0), C = null, x = x.slice(-5), g || z();
2801
2801
  };
2802
- l.addEventListener("hero-scroll-inertia", re);
2803
- const pe = new ResizeObserver(ce);
2804
- pe.observe(r);
2805
- const j = new IntersectionObserver((_) => {
2806
- x = _.some((E) => E.isIntersecting), X();
2802
+ l.addEventListener("hero-scroll-inertia", ne);
2803
+ const de = new ResizeObserver(se);
2804
+ de.observe(r);
2805
+ const j = new IntersectionObserver((v) => {
2806
+ $ = v.some((q) => q.isIntersecting), z();
2807
2807
  });
2808
- return j.observe(r), l.addEventListener("pointermove", Q), l.addEventListener("pointerleave", ae), l.addEventListener("pointerdown", Y), i.addEventListener("change", X), document.addEventListener("visibilitychange", X), ce(), () => {
2809
- cancelAnimationFrame(m), pe.disconnect(), j.disconnect(), l.removeEventListener("hero-scroll-inertia", re), l.removeEventListener("pointermove", Q), l.removeEventListener("pointerleave", ae), l.removeEventListener("pointerdown", Y), i.removeEventListener("change", X), document.removeEventListener("visibilitychange", X);
2808
+ return j.observe(r), l.addEventListener("pointermove", Q), l.addEventListener("pointerleave", te), l.addEventListener("pointerdown", G), i.addEventListener("change", z), document.addEventListener("visibilitychange", z), se(), () => {
2809
+ cancelAnimationFrame(g), de.disconnect(), j.disconnect(), l.removeEventListener("hero-scroll-inertia", ne), l.removeEventListener("pointermove", Q), l.removeEventListener("pointerleave", te), l.removeEventListener("pointerdown", G), i.removeEventListener("change", z), document.removeEventListener("visibilitychange", z);
2810
2810
  };
2811
2811
  }, [t]), /* @__PURE__ */ e(
2812
2812
  "canvas",
2813
2813
  {
2814
- className: `${$t["rp-plus-field-canvas"]} ${t ? `${$t["rp-plus-field-dots"]} rp-download-ripple` : "rp-plus-field"}`,
2814
+ className: `${xt["rp-plus-field-canvas"]} ${t ? `${xt["rp-plus-field-dots"]} rp-download-ripple` : "rp-plus-field"}`,
2815
2815
  ref: n,
2816
2816
  "aria-hidden": "true"
2817
2817
  }
2818
2818
  );
2819
2819
  }
2820
- const je = {
2820
+ const We = {
2821
2821
  "rp-line-field-background": "rp_BackgroundLineField-module_rp-line-field-background_iKQMVmpE",
2822
2822
  "rp-line-field-canvas": "rp_BackgroundLineField-module_rp-line-field-canvas_NvZpohlj",
2823
2823
  "rp-line-field-veil": "rp_BackgroundLineField-module_rp-line-field-veil_sMxIIjHC",
@@ -2825,176 +2825,176 @@ const je = {
2825
2825
  "rp-line-field-left": "rp_BackgroundLineField-module_rp-line-field-left_NSpgJvyP",
2826
2826
  "rp-line-field-right": "rp_BackgroundLineField-module_rp-line-field-right_o4I52Xbf",
2827
2827
  "rp-line-field-bottom": "rp_BackgroundLineField-module_rp-line-field-bottom_7BxG7-Fk"
2828
- }, xt = 0.07, On = 0.66, Un = 3.1, zn = [0.0625, 0.25, 0.375, 0.5], Ct = 0.045, Xn = 0.44, Gn = 14, Yn = 4, At = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], jn = [
2828
+ }, Ct = 0.07, Pn = 0.66, In = 3.1, En = [0.0625, 0.25, 0.375, 0.5], At = 0.045, Hn = 0.44, Dn = 14, On = 4, Lt = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], Un = [
2829
2829
  "--rp-color-line-field-tier-1",
2830
2830
  "--rp-color-line-field-tier-2",
2831
2831
  "--rp-color-line-field-tier-3",
2832
2832
  "--rp-color-line-field-tier-4"
2833
- ], We = (t) => {
2833
+ ], Ve = (t) => {
2834
2834
  const n = Math.sin(t * 127.1) * 43758.5453;
2835
2835
  return n - Math.floor(n);
2836
- }, Wn = Array.from({ length: Gn }, (t, n) => ({
2837
- angle: We(n + 1) * Math.PI * 2,
2838
- width: 0.02 + We(n + 21) * 0.05,
2839
- dashes: 22 + We(n + 41) * 26,
2840
- phase: We(n + 61) * Math.PI * 2,
2841
- drift: (We(n + 81) - 0.5) * 0.09,
2842
- speed: 0.4 + We(n + 101) * 0.7
2843
- })), Vn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Kn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, Jn = (t, n, r, s, l, i) => {
2844
- const d = n * s / 2, h = r * l / 2, m = n * s * 0.5;
2845
- for (let x = 0; x < r; x++) {
2846
- const M = (x + 0.5) * l - h;
2847
- for (let $ = 0; $ < n; $++) {
2848
- const R = ($ + 0.5) * s - d, N = Math.hypot(R, M) / m, k = Math.atan2(M, R);
2849
- let f = 0;
2850
- for (const F of Wn) {
2851
- const o = Vn(k - F.angle - i * F.drift), y = Math.exp(-(o * o) / (2 * F.width * F.width));
2852
- if (y < 0.01) continue;
2853
- const C = 0.5 + 0.5 * Math.sin(N * F.dashes - i * F.speed + F.phase);
2854
- f = Math.max(f, y * (0.3 + 0.7 * C));
2836
+ }, zn = Array.from({ length: Dn }, (t, n) => ({
2837
+ angle: Ve(n + 1) * Math.PI * 2,
2838
+ width: 0.02 + Ve(n + 21) * 0.05,
2839
+ dashes: 22 + Ve(n + 41) * 26,
2840
+ phase: Ve(n + 61) * Math.PI * 2,
2841
+ drift: (Ve(n + 81) - 0.5) * 0.09,
2842
+ speed: 0.4 + Ve(n + 101) * 0.7
2843
+ })), Xn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Gn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, Yn = (t, n, r, o, l, i) => {
2844
+ const d = n * o / 2, p = r * l / 2, g = n * o * 0.5;
2845
+ for (let $ = 0; $ < r; $++) {
2846
+ const x = ($ + 0.5) * l - p;
2847
+ for (let k = 0; k < n; k++) {
2848
+ const S = (k + 0.5) * o - d, M = Math.hypot(S, x) / g, b = Math.atan2(x, S);
2849
+ let N = 0;
2850
+ for (const E of zn) {
2851
+ const s = Xn(b - E.angle - i * E.drift), w = Math.exp(-(s * s) / (2 * E.width * E.width));
2852
+ if (w < 0.01) continue;
2853
+ const C = 0.5 + 0.5 * Math.sin(M * E.dashes - i * E.speed + E.phase);
2854
+ N = Math.max(N, w * (0.3 + 0.7 * C));
2855
2855
  }
2856
- f *= 0.7 + 0.6 * We($ * 3.17 + x * 7.31);
2857
- const v = Math.min(1, Math.max(0, (N - 0.12) / 0.3));
2858
- f *= v * v * (3 - 2 * v), t[x * n + $] = Math.min(
2856
+ N *= 0.7 + 0.6 * Ve(k * 3.17 + $ * 7.31);
2857
+ const f = Math.min(1, Math.max(0, (M - 0.12) / 0.3));
2858
+ N *= f * f * (3 - 2 * f), t[$ * n + k] = Math.min(
2859
2859
  1,
2860
- Math.max(0, (f - 0.58) * Un + 0.5)
2860
+ Math.max(0, (N - 0.58) * In + 0.5)
2861
2861
  );
2862
2862
  }
2863
2863
  }
2864
- }, Zn = (t, n, r, s, l) => {
2865
- const i = Math.min(l * Xn, (s - r) / 2), d = n - l / 2, h = n + l / 2;
2866
- t.beginPath(), t.moveTo(d + i, r), t.lineTo(h - i, r), t.quadraticCurveTo(h, r, h, r + i), t.lineTo(h, s - i), t.quadraticCurveTo(h, s, h - i, s), t.lineTo(d + i, s), t.quadraticCurveTo(d, s, d, s - i), t.lineTo(d, r + i), t.quadraticCurveTo(d, r, d + i, r), t.closePath();
2867
- }, Qn = (t, n, r, s, l, i, d, h, m, x, M) => {
2868
- t.clearRect(0, 0, x, M);
2869
- for (let $ = 0; $ < s; $++)
2870
- for (let R = 0; R < r; R++) {
2871
- const N = $ * r + R, k = n[N];
2872
- if (k < 0) continue;
2873
- const f = $ > 0 ? n[N - r] : -1, v = $ < s - 1 ? n[N + r] : -1;
2874
- let F = $ * i, o = ($ + 1) * i;
2875
- if (f !== k && (F += Ct * 0.5 * i), v !== k && (o -= Ct * 0.5 * i), o <= F) continue;
2876
- const y = Math.max(1, 2 * zn[k] * On * l);
2877
- let C = (R + 0.5) * l, q = 1;
2878
- if (h) {
2879
- const B = C - h.x, U = (F + o) / 2 - h.y, te = Math.hypot(B, U) / m;
2880
- if (te < 1) {
2881
- const X = (1 - te) ** 2;
2882
- C += B * 0.06 * X, q = 1 - 0.7 * X;
2864
+ }, jn = (t, n, r, o, l) => {
2865
+ const i = Math.min(l * Hn, (o - r) / 2), d = n - l / 2, p = n + l / 2;
2866
+ t.beginPath(), t.moveTo(d + i, r), t.lineTo(p - i, r), t.quadraticCurveTo(p, r, p, r + i), t.lineTo(p, o - i), t.quadraticCurveTo(p, o, p - i, o), t.lineTo(d + i, o), t.quadraticCurveTo(d, o, d, o - i), t.lineTo(d, r + i), t.quadraticCurveTo(d, r, d + i, r), t.closePath();
2867
+ }, Wn = (t, n, r, o, l, i, d, p, g, $, x) => {
2868
+ t.clearRect(0, 0, $, x);
2869
+ for (let k = 0; k < o; k++)
2870
+ for (let S = 0; S < r; S++) {
2871
+ const M = k * r + S, b = n[M];
2872
+ if (b < 0) continue;
2873
+ const N = k > 0 ? n[M - r] : -1, f = k < o - 1 ? n[M + r] : -1;
2874
+ let E = k * i, s = (k + 1) * i;
2875
+ if (N !== b && (E += At * 0.5 * i), f !== b && (s -= At * 0.5 * i), s <= E) continue;
2876
+ const w = Math.max(1, 2 * En[b] * Pn * l);
2877
+ let C = (S + 0.5) * l, F = 1;
2878
+ if (p) {
2879
+ const B = C - p.x, H = (E + s) / 2 - p.y, ae = Math.hypot(B, H) / g;
2880
+ if (ae < 1) {
2881
+ const z = (1 - ae) ** 2;
2882
+ C += B * 0.06 * z, F = 1 - 0.7 * z;
2883
2883
  }
2884
2884
  }
2885
- t.globalAlpha = q, t.fillStyle = d[k % Yn], Zn(t, C, F, o, y), t.fill();
2885
+ t.globalAlpha = F, t.fillStyle = d[b % On], jn(t, C, E, s, w), t.fill();
2886
2886
  }
2887
2887
  t.globalAlpha = 1;
2888
2888
  };
2889
- function er() {
2890
- const t = Ce(null);
2889
+ function Vn() {
2890
+ const t = Re(null);
2891
2891
  return Ae(() => {
2892
2892
  const n = t.current, r = n?.parentElement;
2893
2893
  if (!n || !r || typeof window > "u") return;
2894
- const s = n.getContext("2d");
2895
- if (!s) return;
2894
+ const o = n.getContext("2d");
2895
+ if (!o) return;
2896
2896
  const l = window.matchMedia("(prefers-reduced-motion: reduce)"), i = window.matchMedia("(hover: hover) and (pointer: fine)");
2897
- let d = 0, h = 0, m = 0, x = 0, M = 0, $ = 0, R = 0, N = !0, k = 0, f = 0, v = new Float32Array(0), F = new Int8Array(0), o = [...At], y = null;
2897
+ let d = 0, p = 0, g = 0, $ = 0, x = 0, k = 0, S = 0, M = !0, b = 0, N = 0, f = new Float32Array(0), E = new Int8Array(0), s = [...Lt], w = null;
2898
2898
  const C = () => {
2899
- const Y = getComputedStyle(r);
2900
- o = jn.map((re, pe) => Y.getPropertyValue(re).trim() || At[pe]);
2901
- }, q = () => {
2902
- Jn(v, m, x, M, $, k);
2903
- for (let Y = 0; Y < v.length; Y++)
2904
- F[Y] = Kn(v[Y]);
2905
- Qn(
2906
- s,
2907
- F,
2908
- m,
2909
- x,
2910
- M,
2911
- $,
2899
+ const G = getComputedStyle(r);
2900
+ s = Un.map((ne, de) => G.getPropertyValue(ne).trim() || Lt[de]);
2901
+ }, F = () => {
2902
+ Yn(f, g, $, x, k, b);
2903
+ for (let G = 0; G < f.length; G++)
2904
+ E[G] = Gn(f[G]);
2905
+ Wn(
2912
2906
  o,
2913
- y,
2914
- Math.min(d, h) * 0.18,
2907
+ E,
2908
+ g,
2909
+ $,
2910
+ x,
2911
+ k,
2912
+ s,
2913
+ w,
2914
+ Math.min(d, p) * 0.18,
2915
2915
  d,
2916
- h
2916
+ p
2917
2917
  );
2918
- }, B = (Y) => {
2919
- R = 0, !(!N || document.hidden) && (f && (k += Math.min(80, Y - f) * 28e-5), f = Y, q(), l.matches || (R = requestAnimationFrame(B)));
2920
- }, U = () => {
2921
- cancelAnimationFrame(R), R = 0, f = 0, N && !document.hidden && (R = requestAnimationFrame(B));
2922
- }, te = () => {
2923
- const Y = r.getBoundingClientRect();
2924
- d = Y.width, h = Y.height, m = Math.max(1, Math.round(d * xt)), x = Math.max(1, Math.round(h * xt)), M = d / m, $ = h / x, v = new Float32Array(m * x), F = new Int8Array(m * x);
2925
- const re = Math.min(window.devicePixelRatio || 1, 2);
2926
- n.width = Math.round(d * re), n.height = Math.round(h * re), s.setTransform(re, 0, 0, re, 0, 0), C(), U();
2927
- }, X = (Y) => {
2928
- if (l.matches || !i.matches || Y.pointerType === "touch")
2918
+ }, B = (G) => {
2919
+ S = 0, !(!M || document.hidden) && (N && (b += Math.min(80, G - N) * 28e-5), N = G, F(), l.matches || (S = requestAnimationFrame(B)));
2920
+ }, H = () => {
2921
+ cancelAnimationFrame(S), S = 0, N = 0, M && !document.hidden && (S = requestAnimationFrame(B));
2922
+ }, ae = () => {
2923
+ const G = r.getBoundingClientRect();
2924
+ d = G.width, p = G.height, g = Math.max(1, Math.round(d * Ct)), $ = Math.max(1, Math.round(p * Ct)), x = d / g, k = p / $, f = new Float32Array(g * $), E = new Int8Array(g * $);
2925
+ const ne = Math.min(window.devicePixelRatio || 1, 2);
2926
+ n.width = Math.round(d * ne), n.height = Math.round(p * ne), o.setTransform(ne, 0, 0, ne, 0, 0), C(), H();
2927
+ }, z = (G) => {
2928
+ if (l.matches || !i.matches || G.pointerType === "touch")
2929
2929
  return;
2930
- const re = r.getBoundingClientRect();
2931
- y = {
2932
- x: Y.clientX - re.left,
2933
- y: Y.clientY - re.top
2934
- }, R || U();
2935
- }, ce = () => {
2936
- y = null, R || U();
2937
- }, V = new MutationObserver(() => {
2938
- C(), R || U();
2930
+ const ne = r.getBoundingClientRect();
2931
+ w = {
2932
+ x: G.clientX - ne.left,
2933
+ y: G.clientY - ne.top
2934
+ }, S || H();
2935
+ }, se = () => {
2936
+ w = null, S || H();
2937
+ }, Y = new MutationObserver(() => {
2938
+ C(), S || H();
2939
2939
  });
2940
- V.observe(document.body, {
2940
+ Y.observe(document.body, {
2941
2941
  attributes: !0,
2942
2942
  attributeFilter: ["data-theme"],
2943
2943
  subtree: !0
2944
2944
  });
2945
- const Q = new ResizeObserver(te);
2945
+ const Q = new ResizeObserver(ae);
2946
2946
  Q.observe(r);
2947
- const ae = new IntersectionObserver((Y) => {
2948
- N = Y.some((re) => re.isIntersecting), U();
2947
+ const te = new IntersectionObserver((G) => {
2948
+ M = G.some((ne) => ne.isIntersecting), H();
2949
2949
  });
2950
- return ae.observe(n), window.addEventListener("pointermove", X, { passive: !0 }), window.addEventListener("pointerleave", ce), l.addEventListener("change", U), document.addEventListener("visibilitychange", U), te(), () => {
2951
- cancelAnimationFrame(R), Q.disconnect(), ae.disconnect(), V.disconnect(), window.removeEventListener("pointermove", X), window.removeEventListener("pointerleave", ce), l.removeEventListener("change", U), document.removeEventListener("visibilitychange", U);
2950
+ return te.observe(n), window.addEventListener("pointermove", z, { passive: !0 }), window.addEventListener("pointerleave", se), l.addEventListener("change", H), document.addEventListener("visibilitychange", H), ae(), () => {
2951
+ cancelAnimationFrame(S), Q.disconnect(), te.disconnect(), Y.disconnect(), window.removeEventListener("pointermove", z), window.removeEventListener("pointerleave", se), l.removeEventListener("change", H), document.removeEventListener("visibilitychange", H);
2952
2952
  };
2953
2953
  }, []), t;
2954
2954
  }
2955
- function ni({ className: t }) {
2956
- const n = er();
2955
+ function Zr({ className: t }) {
2956
+ const n = Vn();
2957
2957
  return /* @__PURE__ */ a(
2958
2958
  "div",
2959
2959
  {
2960
- className: `${je["rp-line-field-background"]}${t ? ` ${t}` : ""}`,
2960
+ className: `${We["rp-line-field-background"]}${t ? ` ${t}` : ""}`,
2961
2961
  "aria-hidden": "true",
2962
2962
  children: [
2963
2963
  /* @__PURE__ */ e(
2964
2964
  "canvas",
2965
2965
  {
2966
- className: je["rp-line-field-canvas"],
2966
+ className: We["rp-line-field-canvas"],
2967
2967
  ref: n,
2968
2968
  tabIndex: -1
2969
2969
  }
2970
2970
  ),
2971
- /* @__PURE__ */ e("div", { className: je["rp-line-field-veil"] }),
2972
- /* @__PURE__ */ e("div", { className: je["rp-line-field-top"] }),
2973
- /* @__PURE__ */ e("div", { className: je["rp-line-field-left"] }),
2974
- /* @__PURE__ */ e("div", { className: je["rp-line-field-right"] }),
2975
- /* @__PURE__ */ e("div", { className: je["rp-line-field-bottom"] })
2971
+ /* @__PURE__ */ e("div", { className: We["rp-line-field-veil"] }),
2972
+ /* @__PURE__ */ e("div", { className: We["rp-line-field-top"] }),
2973
+ /* @__PURE__ */ e("div", { className: We["rp-line-field-left"] }),
2974
+ /* @__PURE__ */ e("div", { className: We["rp-line-field-right"] }),
2975
+ /* @__PURE__ */ e("div", { className: We["rp-line-field-bottom"] })
2976
2976
  ]
2977
2977
  }
2978
2978
  );
2979
2979
  }
2980
- const tr = {
2980
+ const Kn = {
2981
2981
  "rp-dotted-background-canvas": "rp_BackgroundDotted-module_rp-dotted-background-canvas_-HlLHshb"
2982
2982
  };
2983
- function ar({ background: t }) {
2983
+ function Jn({ background: t }) {
2984
2984
  const n = Et(!0);
2985
2985
  return /* @__PURE__ */ e(
2986
2986
  "canvas",
2987
2987
  {
2988
- className: `${tr["rp-dotted-background-canvas"]} rp-download-ripple`,
2988
+ className: `${Kn["rp-dotted-background-canvas"]} rp-download-ripple`,
2989
2989
  style: t === void 0 ? void 0 : { background: t },
2990
2990
  ref: n,
2991
2991
  "aria-hidden": "true"
2992
2992
  }
2993
2993
  );
2994
2994
  }
2995
- const nr = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", rr = {
2996
- canvas: nr
2997
- }, et = [
2995
+ const Zn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Qn = {
2996
+ canvas: Zn
2997
+ }, at = [
2998
2998
  "#244cf0",
2999
2999
  "#3459f1",
3000
3000
  "#4869f3",
@@ -3007,182 +3007,184 @@ const nr = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", rr = {
3007
3007
  "#d7defc",
3008
3008
  "#e9edfe",
3009
3009
  "#ffffff"
3010
- ], Lt = 24, St = 90, Me = 32, Bt = 10, pt = 900;
3011
- function ot(t, n) {
3012
- const r = (N, k) => {
3013
- let f = Math.imul(N, 374761393) + Math.imul(k, 668265263);
3014
- return f = Math.imul(f ^ f >>> 13, 1274126177), ((f ^ f >>> 16) >>> 0) / 4294967296;
3015
- }, s = Math.floor(t), l = Math.floor(n), i = t - s, d = n - l, h = i * i * (3 - 2 * i), m = d * d * (3 - 2 * d), x = r(s, l), M = r(s + 1, l), $ = r(s, l + 1), R = r(s + 1, l + 1);
3016
- return x + (M - x) * h + ($ - x) * m + (x - M - $ + R) * h * m;
3010
+ ], St = 24, Bt = 90, ke = 32, lt = 1, gt = 900;
3011
+ function ht(t, n) {
3012
+ const r = (M, b) => {
3013
+ let N = Math.imul(M, 374761393) + Math.imul(b, 668265263);
3014
+ return N = Math.imul(N ^ N >>> 13, 1274126177), ((N ^ N >>> 16) >>> 0) / 4294967296;
3015
+ }, o = Math.floor(t), l = Math.floor(n), i = t - o, d = n - l, p = i * i * (3 - 2 * i), g = d * d * (3 - 2 * d), $ = r(o, l), x = r(o + 1, l), k = r(o, l + 1), S = r(o + 1, l + 1);
3016
+ return $ + (x - $) * p + (k - $) * g + ($ - x - k + S) * p * g;
3017
3017
  }
3018
- function tt(t, n, r) {
3019
- const s = Math.floor(r), l = r - s, i = l * l * (3 - 2 * l), d = ot(t + s * 137.3, n + s * 193.7), h = ot(t + (s + 1) * 137.3, n + (s + 1) * 193.7);
3020
- return d + (h - d) * i;
3018
+ function nt(t, n, r) {
3019
+ const o = Math.floor(r), l = r - o, i = l * l * (3 - 2 * l), d = ht(t + o * 137.3, n + o * 193.7), p = ht(t + (o + 1) * 137.3, n + (o + 1) * 193.7);
3020
+ return d + (p - d) * i;
3021
3021
  }
3022
- function ir(t, n, r, s) {
3023
- const l = t / 220 + s * 0.12, i = n / 220, d = (tt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (tt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, m = l + d, x = i + h, M = tt(m, x, r * 0.09 + 47.2), $ = tt(m * 2, x * 2, r * 0.17 + 73.8), R = tt(
3022
+ function er(t, n, r, o) {
3023
+ const l = t / 220 + o * 0.12, i = n / 220, d = (nt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, p = (nt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, g = l + d, $ = i + p, x = nt(g, $, r * 0.09 + 47.2), k = nt(g * 2, $ * 2, r * 0.17 + 73.8), S = nt(
3024
3024
  l * 0.65 + 19,
3025
3025
  i * 0.65 + 43,
3026
3026
  r * 0.12 + 97.5
3027
3027
  );
3028
- return 0.5 + Math.sin((m * 0.62 + x) * 2.2 + M * 5.5 + (R - 0.5) * 5) * 0.35 + ($ - 0.5) * 0.32;
3028
+ return 0.5 + Math.sin((g * 0.62 + $) * 2.2 + x * 5.5 + (S - 0.5) * 5) * 0.35 + (k - 0.5) * 0.32;
3029
3029
  }
3030
- function ri({
3030
+ function Qr({
3031
3031
  scene: t,
3032
- cellSize: n = Lt,
3032
+ cellSize: n = St,
3033
3033
  density: r = 1,
3034
- speed: s = 1,
3034
+ speed: o = 1,
3035
3035
  step: l = 0
3036
3036
  }) {
3037
- const i = Ce(null), d = Ce(t), h = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, m = Number.isFinite(n) ? Math.max(4, n) : Lt, x = Math.max(4, m / Math.sqrt(h)), M = Ce(x), $ = Ce(s), R = Ce(Number.isFinite(l) ? l : 0), N = Ce(null), k = Ce(/* @__PURE__ */ new Map());
3037
+ const i = Re(null), d = Re(t), p = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, g = Number.isFinite(n) ? Math.max(4, n) : St, $ = Math.max(4, g / Math.sqrt(p)), x = Re($), k = Re(o), S = Re(Number.isFinite(l) ? l : 0), M = Re(null);
3038
3038
  return Ae(() => {
3039
3039
  d.current = t;
3040
3040
  }, [t]), Ae(() => {
3041
- M.current = x, k.current.clear(), N.current?.();
3042
- }, [x]), Ae(() => {
3043
- $.current = Number.isFinite(s) ? Math.max(0, s) : 1;
3044
- }, [s]), Ae(() => {
3045
- R.current = Number.isFinite(l) ? l : 0, N.current?.();
3041
+ x.current = $, M.current?.();
3042
+ }, [$]), Ae(() => {
3043
+ k.current = Number.isFinite(o) ? Math.max(0, o) : 1;
3044
+ }, [o]), Ae(() => {
3045
+ S.current = Number.isFinite(l) ? l : 0, M.current?.();
3046
3046
  }, [l]), Ae(() => {
3047
- const f = i.current, v = f?.getContext("2d");
3048
- if (!f || !v) return;
3049
- const F = matchMedia("(prefers-reduced-motion: reduce)"), o = matchMedia("(any-hover: hover)"), y = f.parentElement ?? f;
3050
- let C = 0, q = 0, B = 0, U = !1, te = d.current * 7.13, X = d.current, ce = 0, V = R.current * Bt, Q = V, ae = V, Y = pt, re = V, pe = 0;
3047
+ const b = i.current, N = b?.getContext("2d");
3048
+ if (!b || !N) return;
3049
+ const f = matchMedia("(prefers-reduced-motion: reduce)"), E = matchMedia("(any-hover: hover)"), s = b.parentElement ?? b;
3050
+ let w = 0, C = 0, F = 0, B = !1, H = d.current * 7.13, ae = d.current, z = 0, se = 0, Y = S.current * lt, Q = Y, te = Y, G = gt, ne = Y, de = 0;
3051
3051
  const j = { x: 0, y: 0, active: !1, down: !1, at: 0, id: -1 };
3052
- let _ = 0, E = 0, p = new Float32Array(0), w = new Float32Array(0), b = new Float32Array(0), I = new Float32Array(0), A = new Float32Array(0), z = new Float32Array(0);
3053
- const P = k.current, J = () => {
3054
- _ = Math.ceil(q / Me) + 1, E = Math.ceil(B / Me) + 1;
3055
- const T = _ * E;
3056
- p = new Float32Array(T), w = new Float32Array(T), b = new Float32Array(T), I = new Float32Array(T), A = new Float32Array(T), z = new Float32Array(T);
3057
- }, ee = (T, H) => {
3058
- const Z = Math.max(0, Math.min(_ - 1, T / Me)), g = Math.max(0, Math.min(E - 1, H / Me)), u = Math.floor(Z), L = Math.floor(g), D = Math.min(u + 1, _ - 1), O = Math.min(L + 1, E - 1), G = Z - u, K = g - L, oe = (Ke) => Ke[L * _ + u] * (1 - G) * (1 - K) + Ke[L * _ + D] * G * (1 - K) + Ke[O * _ + u] * (1 - G) * K + Ke[O * _ + D] * G * K, ne = L * _ + u, le = L * _ + D, ie = O * _ + u, be = O * _ + D, ke = ((p[le] - p[ne]) * (1 - K) + (p[be] - p[ie]) * K) / Me, ct = ((w[ie] - w[ne]) * (1 - G) + (w[be] - w[le]) * G) / Me;
3052
+ let v = 0, q = 0, m = new Float32Array(0), _ = new Float32Array(0), y = new Float32Array(0), P = new Float32Array(0), A = new Float32Array(0), O = new Float32Array(0);
3053
+ const T = () => {
3054
+ v = Math.ceil(C / ke) + 1, q = Math.ceil(F / ke) + 1;
3055
+ const R = v * q;
3056
+ m = new Float32Array(R), _ = new Float32Array(R), y = new Float32Array(R), P = new Float32Array(R), A = new Float32Array(R), O = new Float32Array(R);
3057
+ }, J = (R, X) => {
3058
+ const K = Math.max(0, Math.min(v - 1, R / ke)), Z = Math.max(0, Math.min(q - 1, X / ke)), h = Math.floor(K), u = Math.floor(Z), I = Math.min(h + 1, v - 1), W = Math.min(u + 1, q - 1), U = K - h, D = Z - u, ie = (Ee) => Ee[u * v + h] * (1 - U) * (1 - D) + Ee[u * v + I] * U * (1 - D) + Ee[W * v + h] * (1 - U) * D + Ee[W * v + I] * U * D, oe = u * v + h, pe = u * v + I, me = W * v + h, $e = W * v + I, Ie = ((m[pe] - m[oe]) * (1 - D) + (m[$e] - m[me]) * D) / ke, Oe = ((_[me] - _[oe]) * (1 - U) + (_[$e] - _[pe]) * U) / ke;
3059
3059
  return {
3060
- x: oe(p),
3061
- y: oe(w),
3062
- crest: Math.min(1, Math.max(0, ke + ct))
3060
+ x: ie(m),
3061
+ y: ie(_),
3062
+ crest: Math.min(1, Math.max(0, Ie + Oe))
3063
3063
  };
3064
- }, de = (T, H, Z, g, u = 0, L = St * (j.down ? 1.25 : 1)) => {
3065
- const D = ee(T, H);
3066
- for (let O = Math.max(0, Math.floor((H - L * 2) / Me)); O < Math.min(E, Math.ceil((H + L * 2) / Me)); O++)
3067
- for (let G = Math.max(0, Math.floor((T - L * 2) / Me)); G < Math.min(_, Math.ceil((T + L * 2) / Me)); G++) {
3068
- const K = O * _ + G, oe = G * Me - T - (u ? p[K] - D.x : 0), ne = O * Me - H - (u ? w[K] - D.y : 0), le = Math.exp(
3069
- -(oe * oe + ne * ne) / (L * L * 0.5)
3070
- ), ie = (Z - oe * u) * le, be = (g - ne * u) * le;
3071
- b[K] += ie, I[K] += be, u && (p[K] += ie * 0.02, w[K] += be * 0.02);
3072
- const ke = Math.max(
3064
+ }, ee = (R, X, K, Z, h = 0, u = Bt * (j.down ? 1.25 : 1)) => {
3065
+ const I = J(R, X);
3066
+ for (let W = Math.max(0, Math.floor((X - u * 2) / ke)); W < Math.min(q, Math.ceil((X + u * 2) / ke)); W++)
3067
+ for (let U = Math.max(0, Math.floor((R - u * 2) / ke)); U < Math.min(v, Math.ceil((R + u * 2) / ke)); U++) {
3068
+ const D = W * v + U, ie = U * ke - R - (h ? m[D] - I.x : 0), oe = W * ke - X - (h ? _[D] - I.y : 0), pe = Math.exp(
3069
+ -(ie * ie + oe * oe) / (u * u * 0.5)
3070
+ ), me = h ? 1 / (1 + (Math.hypot(m[D], _[D]) / 48) ** 2) : 1, $e = (K - ie * h) * pe * me, Ie = (Z - oe * h) * pe * me;
3071
+ y[D] += $e, P[D] += Ie, h && (m[D] += $e * 0.02, _[D] += Ie * 0.02);
3072
+ const Oe = Math.max(
3073
3073
  1,
3074
- Math.hypot(b[K], I[K]) / 900
3074
+ Math.hypot(y[D], P[D]) / 900
3075
3075
  );
3076
- b[K] /= ke, I[K] /= ke;
3076
+ y[D] /= Oe, P[D] /= Oe;
3077
3077
  }
3078
- }, ve = (T) => {
3079
- const H = Math.ceil(T / 8), Z = T / H / 1e3;
3080
- for (let g = 0; g < H; g++) {
3081
- for (let u = 0; u < E; u++)
3082
- for (let L = 0; L < _; L++) {
3083
- const D = u * _ + L, O = u * _ + Math.max(0, L - 1), G = u * _ + Math.min(_ - 1, L + 1), K = Math.max(0, u - 1) * _ + L, oe = Math.min(E - 1, u + 1) * _ + L, ne = (le, ie) => {
3084
- const be = (le[O] + le[G] + le[K] + le[oe] - le[D] * 4) * 2.2, ke = (ie[O] + ie[G] + ie[K] + ie[oe] - ie[D] * 4) * 36;
3085
- return le[D] + (be + ke - le[D] * 1.7 - ie[D] * 0.9) * Z;
3078
+ }, le = (R) => {
3079
+ const X = Math.ceil(R / 8), K = R / X / 1e3;
3080
+ for (let Z = 0; Z < X; Z++) {
3081
+ for (let h = 0; h < q; h++)
3082
+ for (let u = 0; u < v; u++) {
3083
+ const I = h * v + u, W = h * v + Math.max(0, u - 1), U = h * v + Math.min(v - 1, u + 1), D = Math.max(0, h - 1) * v + u, ie = Math.min(q - 1, h + 1) * v + u, oe = D - u + W % v, pe = D - u + U % v, me = ie - u + W % v, $e = ie - u + U % v, Ie = (be) => (4 * (be[W] + be[U] + be[D] + be[ie]) + be[oe] + be[pe] + be[me] + be[$e] - 20 * be[I]) / 6, Oe = Math.min(
3084
+ u,
3085
+ h,
3086
+ v - 1 - u,
3087
+ q - 1 - h
3088
+ ), Ee = 1.7 + Math.max(0, 1 - Oe / 3) ** 2 * 12, Je = (be, st) => {
3089
+ const mt = Ie(be) * 2.2, Ze = Ie(st) * 36;
3090
+ return be[I] + (mt + Ze - be[I] * Ee - st[I] * 0.9) * K;
3086
3091
  };
3087
- A[D] = ne(b, p), z[D] = ne(I, w);
3092
+ A[I] = Je(y, m), O[I] = Je(P, _);
3088
3093
  }
3089
- [b, A] = [A, b], [I, z] = [z, I];
3090
- for (let u = 0; u < p.length; u++)
3091
- p[u] += b[u] * Z, w[u] += I[u] * Z;
3094
+ [y, A] = [A, y], [P, O] = [O, P];
3095
+ for (let h = 0; h < m.length; h++) {
3096
+ m[h] += y[h] * K, _[h] += P[h] * K;
3097
+ const u = Math.max(
3098
+ 1,
3099
+ Math.hypot(m[h], _[h]) / 72
3100
+ );
3101
+ m[h] /= u, _[h] /= u;
3102
+ }
3092
3103
  }
3093
- }, _e = (T, H) => ir(T, H, re, te), he = (T, H, Z, g = 1) => {
3094
- const u = T + Z / 2, L = H + Z / 2, D = ee(u, L), O = (Ee) => _e(
3095
- (Math.floor(u / Ee) + 0.5) * Ee - D.x,
3096
- (Math.floor(L / Ee) + 0.5) * Ee - D.y
3097
- ), G = O(M.current), K = O(M.current / 2), oe = Math.floor(u / M.current), ne = Math.floor(L / M.current), le = ot(oe * 17 + 31, ne * 29 + 47), ie = re * (0.55 + le * 0.45) + le * 19, be = Math.floor(ie), ke = ie - be, ct = ot(oe + be * 193, ne - be * 137), Ke = F.matches || ct < 0.84 ? 0 : Math.sin(ke * Math.PI) ** 6 * (0.02 + le * 0.025), gt = G + (K - G) * g, Yt = D.crest * 0.16 * Math.max(0, gt) ** 2, jt = gt + Yt + Ke, ft = Math.max(
3104
+ }, ve = (R, X) => er(R, X, ne, H), _e = (R, X, K) => {
3105
+ const Z = R + K / 2, h = X + K / 2, u = J(Z, h), I = ve(Z - u.x, h - u.y), W = Math.floor(Z / x.current), U = Math.floor(h / x.current), D = ht(W * 17 + 31, U * 29 + 47), ie = ne * (0.55 + D * 0.45) + D * 19, oe = Math.floor(ie), pe = ie - oe, me = ht(W + oe * 193, U - oe * 137), $e = f.matches || me < 0.84 ? 0 : Math.sin(pe * Math.PI) ** 6 * (0.02 + D * 0.025), Ie = u.crest * 0.16 * Math.max(0, I) ** 2, Oe = I + Ie + $e, Ee = Math.max(
3098
3106
  0,
3099
- Math.min(et.length - 1, jt * 1.08 * (et.length - 1))
3100
- ), dt = Math.floor(ft), Wt = ft - dt, Vt = et[dt], Kt = et[Math.min(dt + 1, et.length - 1)];
3101
- v.fillStyle = "rgb(" + [1, 3, 5].map((Ee) => {
3102
- const bt = parseInt(Vt.slice(Ee, Ee + 2), 16), Jt = parseInt(Kt.slice(Ee, Ee + 2), 16);
3103
- return Math.round(bt + (Jt - bt) * Wt);
3104
- }).join(",") + ")", v.fillRect(T, H, Z + 0.6, Z + 0.6);
3105
- }, Le = (T) => {
3106
- C = 0;
3107
- const H = pe ? Math.min(T - pe, 64) : 16;
3108
- pe = T, X = d.current, te += (X * 7.13 - te) * (1 - Math.exp(-H / 500)), F.matches || (ce += H / 1e3 * $.current, ve(H));
3109
- const Z = R.current * Bt;
3110
- Z !== ae && (Q = V, ae = Z, Y = 0), Y = Math.min(pt, Y + H);
3111
- const g = F.matches ? 1 : Y / pt, u = g * g * (3 - 2 * g);
3112
- V = Q + (ae - Q) * u, re = ce + V;
3113
- for (let L = 0; L < B; L += M.current)
3114
- for (let D = 0; D < q; D += M.current) {
3115
- const O = ee(
3116
- D + M.current / 2,
3117
- L + M.current / 2
3118
- ), G = D + "," + L, K = F.matches ? 0 : Math.min(1, Math.hypot(O.x, O.y) / 24), oe = P.get(G) ?? 0, ne = oe + (K - oe) * (1 - Math.exp(-H / (K > oe ? 80 : 320)));
3119
- if (P.set(G, ne < 1e-3 ? 0 : ne), ne > 1e-3) {
3120
- const ie = M.current / 2;
3121
- for (let be = 0; be < 2; be++)
3122
- for (let ke = 0; ke < 2; ke++)
3123
- he(D + ke * ie, L + be * ie, ie, ne);
3124
- } else
3125
- he(D, L, M.current, 0);
3126
- }
3127
- U && !document.hidden && !F.matches && (C = requestAnimationFrame(Le));
3128
- }, ue = () => {
3129
- cancelAnimationFrame(C), pe = 0, document.hidden || Le(performance.now());
3107
+ Math.min(at.length - 1, Oe * 1.08 * (at.length - 1))
3108
+ ), Je = Math.floor(Ee), be = Ee - Je, st = at[Je], mt = at[Math.min(Je + 1, at.length - 1)];
3109
+ N.fillStyle = "rgb(" + [1, 3, 5].map((Ze) => {
3110
+ const vt = parseInt(st.slice(Ze, Ze + 2), 16), Yt = parseInt(mt.slice(Ze, Ze + 2), 16);
3111
+ return Math.round(vt + (Yt - vt) * be);
3112
+ }).join(",") + ")", N.fillRect(R, X, K + 0.6, K + 0.6);
3113
+ }, ce = (R) => {
3114
+ w = 0;
3115
+ const X = de ? Math.min(R - de, 64) : 16;
3116
+ de = R, ae = d.current, H += (ae * 7.13 - H) * (1 - Math.exp(-X / 500)), f.matches || (z += X / 1e3 * k.current, le(X));
3117
+ const K = S.current * lt + se;
3118
+ K !== te && (Q = Y, te = K, G = 0), G = Math.min(gt, G + X);
3119
+ const Z = f.matches ? 1 : G / gt, h = Z * Z * (3 - 2 * Z);
3120
+ Y = Q + (te - Q) * h, ne = z + Y;
3121
+ for (let u = 0; u < F; u += x.current)
3122
+ for (let I = 0; I < C; I += x.current)
3123
+ _e(I, u, x.current);
3124
+ B && !document.hidden && !f.matches && (w = requestAnimationFrame(ce));
3125
+ }, he = () => {
3126
+ cancelAnimationFrame(w), de = 0, document.hidden || ce(performance.now());
3130
3127
  };
3131
- N.current = () => {
3132
- C || ue();
3128
+ M.current = () => {
3129
+ w || he();
3133
3130
  };
3134
- const Te = () => {
3135
- const T = f.getBoundingClientRect();
3136
- (q !== T.width || B !== T.height) && (q = T.width, B = T.height, J()), _ || J(), P.clear();
3137
- const H = Math.min(devicePixelRatio || 1, 2);
3138
- f.width = Math.round(q * H), f.height = Math.round(B * H), v.setTransform(H, 0, 0, H, 0, 0), ue();
3139
- }, qe = (T) => T.target instanceof Element && !!T.target.closest(
3131
+ const Le = () => {
3132
+ const R = b.getBoundingClientRect();
3133
+ (C !== R.width || F !== R.height) && (C = R.width, F = R.height, T()), v || T();
3134
+ const X = Math.min(devicePixelRatio || 1, 2);
3135
+ b.width = Math.round(C * X), b.height = Math.round(F * X), N.setTransform(X, 0, 0, X, 0, 0), he();
3136
+ }, Fe = (R) => R.target instanceof Element && !!R.target.closest(
3140
3137
  'a,button,input,textarea,select,[contenteditable],[role="button"],[role="switch"],[role="combobox"],[role="slider"]'
3141
- ), Se = (T) => {
3142
- if (F.matches || qe(T) || (T.pointerType === "touch" || !o.matches) && !j.down || j.down && T.pointerId !== j.id)
3138
+ ), Te = (R) => {
3139
+ if (f.matches || Fe(R) || (R.pointerType === "touch" || !E.matches) && !j.down || j.down && R.pointerId !== j.id)
3143
3140
  return;
3144
- const H = f.getBoundingClientRect(), Z = performance.now(), g = T.clientX - H.left, u = T.clientY - H.top;
3145
- if (j.active && Z - j.at < 150) {
3146
- const L = g - j.x, D = u - j.y, O = Math.hypot(L, D), G = Math.max(8, Z - j.at) / 1e3, K = O / G, oe = (j.down ? 3 : 0.65) * (0.5 + Math.min(K, 1800) / 900), ne = Math.min(
3141
+ const X = b.getBoundingClientRect(), K = performance.now(), Z = R.clientX - X.left, h = R.clientY - X.top;
3142
+ if (j.active && K - j.at < 150) {
3143
+ const u = Z - j.x, I = h - j.y, W = Math.hypot(u, I), U = Math.max(8, K - j.at) / 1e3, D = W / U, ie = (j.down ? 3 : 0.65) * (0.5 + Math.min(D, 1800) / 900), oe = Math.min(
3147
3144
  64,
3148
- Math.max(1, Math.ceil(O / (Me / 2)))
3149
- ), le = Math.min(1, 240 / Math.max(1, O));
3150
- for (let ie = 1; ie <= ne; ie++)
3151
- de(
3152
- j.x + L * ie / ne,
3153
- j.y + D * ie / ne,
3154
- L * le * oe / ne,
3155
- D * le * oe / ne
3145
+ Math.max(1, Math.ceil(W / (ke / 2)))
3146
+ ), pe = Math.min(1, 240 / Math.max(1, W));
3147
+ for (let me = 1; me <= oe; me++)
3148
+ ee(
3149
+ j.x + u * me / oe,
3150
+ j.y + I * me / oe,
3151
+ u * pe * ie / oe,
3152
+ I * pe * ie / oe
3156
3153
  );
3157
3154
  }
3158
- Object.assign(j, { x: g, y: u, at: Z, active: !0 }), C || ue();
3159
- }, Ne = (T) => {
3160
- if (F.matches || qe(T) || !T.isPrimary || T.button !== 0)
3155
+ Object.assign(j, { x: Z, y: h, at: K, active: !0 }), w || he();
3156
+ }, Se = (R) => {
3157
+ if (f.matches || Fe(R) || !R.isPrimary || R.button !== 0)
3161
3158
  return;
3162
- const H = f.getBoundingClientRect();
3159
+ const X = b.getBoundingClientRect();
3163
3160
  Object.assign(j, {
3164
- x: T.clientX - H.left,
3165
- y: T.clientY - H.top,
3161
+ x: R.clientX - X.left,
3162
+ y: R.clientY - X.top,
3166
3163
  at: performance.now(),
3167
3164
  active: !0,
3168
3165
  down: !0,
3169
- id: T.pointerId
3170
- }), de(j.x, j.y, 0, 0, -32, St * 1.2), C || ue();
3171
- }, Pe = (T) => {
3172
- T.pointerId === j.id && (j.down = !1, j.id = -1);
3173
- }, me = () => {
3166
+ id: R.pointerId
3167
+ });
3168
+ const K = Math.max(
3169
+ 0,
3170
+ S.current * lt + se - Y
3171
+ );
3172
+ se += Math.max(0, 5 * lt - K), ee(j.x, j.y, 0, 0, -32, Bt * 1.2), w || he();
3173
+ }, Ne = (R) => {
3174
+ R.pointerId === j.id && (j.down = !1, j.id = -1);
3175
+ }, fe = () => {
3174
3176
  j.active = !1, j.down = !1, j.id = -1;
3175
- }, Be = () => {
3176
- me(), F.matches && (J(), P.clear()), ue();
3177
- }, Ie = new ResizeObserver(Te), Re = new IntersectionObserver((T) => {
3178
- U = T.some((H) => H.isIntersecting), ue();
3177
+ }, we = () => {
3178
+ fe(), f.matches && T(), he();
3179
+ }, Pe = new ResizeObserver(Le), qe = new IntersectionObserver((R) => {
3180
+ B = R.some((X) => X.isIntersecting), he();
3179
3181
  });
3180
- return Ie.observe(f), Re.observe(f), F.addEventListener("change", Be), o.addEventListener("change", Be), y.addEventListener("pointermove", Se), y.addEventListener("pointerdown", Ne), y.addEventListener("pointerleave", me), y.addEventListener("pointercancel", me), window.addEventListener("pointerup", Pe), window.addEventListener("blur", me), document.addEventListener("visibilitychange", ue), Te(), () => {
3181
- N.current = null, cancelAnimationFrame(C), Ie.disconnect(), Re.disconnect(), F.removeEventListener("change", Be), o.removeEventListener("change", Be), y.removeEventListener("pointermove", Se), y.removeEventListener("pointerdown", Ne), y.removeEventListener("pointerleave", me), y.removeEventListener("pointercancel", me), window.removeEventListener("pointerup", Pe), window.removeEventListener("blur", me), document.removeEventListener("visibilitychange", ue);
3182
+ return Pe.observe(b), qe.observe(b), f.addEventListener("change", we), E.addEventListener("change", we), s.addEventListener("pointermove", Te), s.addEventListener("pointerdown", Se), s.addEventListener("pointerleave", fe), s.addEventListener("pointercancel", fe), window.addEventListener("pointerup", Ne), window.addEventListener("blur", fe), document.addEventListener("visibilitychange", he), Le(), () => {
3183
+ M.current = null, cancelAnimationFrame(w), Pe.disconnect(), qe.disconnect(), f.removeEventListener("change", we), E.removeEventListener("change", we), s.removeEventListener("pointermove", Te), s.removeEventListener("pointerdown", Se), s.removeEventListener("pointerleave", fe), s.removeEventListener("pointercancel", fe), window.removeEventListener("pointerup", Ne), window.removeEventListener("blur", fe), document.removeEventListener("visibilitychange", he);
3182
3184
  };
3183
- }, []), /* @__PURE__ */ e("canvas", { ref: i, className: rr.canvas, "aria-hidden": "true" });
3185
+ }, []), /* @__PURE__ */ e("canvas", { ref: i, className: Qn.canvas, "aria-hidden": "true" });
3184
3186
  }
3185
- const sr = [
3187
+ const tr = [
3186
3188
  "A request begins in a local client. The router reads the requested model and finds an available source. The conversation stays in the tool where it started.",
3187
3189
  "Different providers speak different protocols. A common interface carries messages across those boundaries while preserving the shape of each tool call.",
3188
3190
  "Context follows the request. Earlier messages form the working memory of a conversation. A continuation returns to the source that owns its state.",
@@ -3215,26 +3217,26 @@ const sr = [
3215
3217
  const n = Math.max(0, Math.min(1, t));
3216
3218
  return n * n * (3 - 2 * n);
3217
3219
  };
3218
- function ii({
3220
+ function ei({
3219
3221
  onComplete: t,
3220
3222
  passages: n
3221
3223
  }) {
3222
- const r = n ?? sr, s = Ce(null);
3224
+ const r = n ?? tr, o = Re(null);
3223
3225
  return Ae(() => {
3224
- const l = s.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
3226
+ const l = o.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
3225
3227
  if (!l || !i || d.matches) {
3226
3228
  t();
3227
3229
  return;
3228
3230
  }
3229
- let h = 0, m = 0, x = 0;
3230
- const M = () => {
3231
- h = innerWidth, m = innerHeight;
3232
- const o = Math.min(devicePixelRatio || 1, 2);
3233
- l.width = h * o, l.height = m * o, i.setTransform(o, 0, 0, o, 0, 0);
3231
+ let p = 0, g = 0, $ = 0;
3232
+ const x = () => {
3233
+ p = innerWidth, g = innerHeight;
3234
+ const s = Math.min(devicePixelRatio || 1, 2);
3235
+ l.width = p * s, l.height = g * s, i.setTransform(s, 0, 0, s, 0, 0);
3234
3236
  };
3235
- M();
3236
- const $ = r.map((o, y) => ({
3237
- text: o,
3237
+ x();
3238
+ const k = r.map((s, w) => ({
3239
+ text: s,
3238
3240
  order: Math.random(),
3239
3241
  x: Math.random() * 0.88 - 0.03,
3240
3242
  y: Math.random() * 0.9 - 0.03,
@@ -3243,32 +3245,32 @@ function ii({
3243
3245
  size: 9 + Math.random() * 13,
3244
3246
  dark: Math.random() > 0.35,
3245
3247
  phase: Math.random() * 1e3,
3246
- index: y
3247
- })).sort((o, y) => o.order - y.order), R = 2500, N = 4e3, k = performance.now(), f = (o) => {
3248
- const y = (o - k) * N / R, C = Rt((y - 2900) / 850), q = Math.floor(y / 340);
3249
- i.globalAlpha = 1, i.fillStyle = y < 650 || y >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, h, m);
3250
- for (const B of $) {
3251
- const U = B.x * h, te = B.y * m, X = B.width * h, ce = B.height * m, V = B.size * (y < 650 ? 1.6 : y < 1600 ? 1.15 : 1), Q = V * 1.04;
3252
- i.save(), i.globalAlpha = 1 - C, i.fillStyle = B.dark ? "#101216" : "#f4f5f7", i.fillRect(U, te, X, ce), i.beginPath(), i.rect(U, te, X, ce), i.clip(), i.font = V + "px sans-serif", i.textBaseline = "top";
3253
- let ae = U, Y = te - (y * 0.012 + B.phase) % Q;
3254
- const re = B.text.split(" ");
3255
- for (let pe = 0; pe < re.length; pe++) {
3256
- const j = re[pe], _ = i.measureText(j + " ").width;
3257
- if (ae + _ > U + X && (ae = U, Y += Q), Y > te + ce) break;
3258
- const E = B.index * 53 + pe * 17;
3248
+ index: w
3249
+ })).sort((s, w) => s.order - w.order), S = 2500, M = 4e3, b = performance.now(), N = (s) => {
3250
+ const w = (s - b) * M / S, C = Rt((w - 2900) / 850), F = Math.floor(w / 340);
3251
+ i.globalAlpha = 1, i.fillStyle = w < 650 || w >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, p, g);
3252
+ for (const B of k) {
3253
+ const H = B.x * p, ae = B.y * g, z = B.width * p, se = B.height * g, Y = B.size * (w < 650 ? 1.6 : w < 1600 ? 1.15 : 1), Q = Y * 1.04;
3254
+ i.save(), i.globalAlpha = 1 - C, i.fillStyle = B.dark ? "#101216" : "#f4f5f7", i.fillRect(H, ae, z, se), i.beginPath(), i.rect(H, ae, z, se), i.clip(), i.font = Y + "px sans-serif", i.textBaseline = "top";
3255
+ let te = H, G = ae - (w * 0.012 + B.phase) % Q;
3256
+ const ne = B.text.split(" ");
3257
+ for (let de = 0; de < ne.length; de++) {
3258
+ const j = ne[de], v = i.measureText(j + " ").width;
3259
+ if (te + v > H + z && (te = H, G += Q), G > ae + se) break;
3260
+ const q = B.index * 53 + de * 17;
3259
3261
  i.save();
3260
- const p = Math.round((Y - 7) / 14), w = 7 + Math.round((ae - 7) / 14) * 14 + p % 2 * 7, b = 7 + p * 14;
3261
- if (i.translate(ae + (w - ae) * C, Y + (b - Y) * C), i.scale(1 - C * 0.94, 1 - C * 0.94), y < 650 && (E + q) % 4 > 0) {
3262
- i.restore(), ae += _;
3262
+ const m = Math.round((G - 7) / 14), _ = 7 + Math.round((te - 7) / 14) * 14 + m % 2 * 7, y = 7 + m * 14;
3263
+ if (i.translate(te + (_ - te) * C, G + (y - G) * C), i.scale(1 - C * 0.94, 1 - C * 0.94), w < 650 && (q + F) % 4 > 0) {
3264
+ i.restore(), te += v;
3263
3265
  continue;
3264
3266
  }
3265
- (E + q) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(E + q) % 3], i.fillRect(0, 0, i.measureText(j).width, Q), i.fillStyle = (E + q) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = B.dark ? "#f5f8ff" : "#101216", i.fillText(y < 650 ? j.toUpperCase() : j, 0, 0), i.restore(), ae += _;
3267
+ (q + F) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(q + F) % 3], i.fillRect(0, 0, i.measureText(j).width, Q), i.fillStyle = (q + F) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = B.dark ? "#f5f8ff" : "#101216", i.fillText(w < 650 ? j.toUpperCase() : j, 0, 0), i.restore(), te += v;
3266
3268
  }
3267
3269
  i.restore();
3268
3270
  }
3269
3271
  if (C > 0) {
3270
- const B = document.querySelector(".rp-hero"), U = B?.getBoundingClientRect().height || m, te = i.createLinearGradient(0, 0, 0, U);
3271
- for (const [X, ce] of [
3272
+ const B = document.querySelector(".rp-hero"), H = B?.getBoundingClientRect().height || g, ae = i.createLinearGradient(0, 0, 0, H);
3273
+ for (const [z, se] of [
3272
3274
  [0, "#0b205e"],
3273
3275
  [0.35, "#214eaf"],
3274
3276
  [0.55, "#3564cc"],
@@ -3276,29 +3278,29 @@ function ii({
3276
3278
  [0.93, "#edf4ff"],
3277
3279
  [1, "#fff"]
3278
3280
  ])
3279
- te.addColorStop(X, ce);
3280
- i.globalAlpha = C, i.fillStyle = te, i.fillRect(0, 0, h, m);
3281
- for (let X = 7, ce = 0; X < m; X += 14, ce++)
3282
- for (let V = 7 + ce % 2 * 7; V < h; V += 14) {
3283
- const Q = Math.pow(Math.max(0, 1 - X / U), 0.6), ae = 1 - Math.exp(
3284
- -Math.pow((V - h / 2) / (h * 0.28), 2) - Math.pow((X - U * 0.38) / (U * 0.24), 2)
3281
+ ae.addColorStop(z, se);
3282
+ i.globalAlpha = C, i.fillStyle = ae, i.fillRect(0, 0, p, g);
3283
+ for (let z = 7, se = 0; z < g; z += 14, se++)
3284
+ for (let Y = 7 + se % 2 * 7; Y < p; Y += 14) {
3285
+ const Q = Math.pow(Math.max(0, 1 - z / H), 0.6), te = 1 - Math.exp(
3286
+ -Math.pow((Y - p / 2) / (p * 0.28), 2) - Math.pow((z - H * 0.38) / (H * 0.24), 2)
3285
3287
  ) * 0.55;
3286
- i.globalAlpha = C * 0.54 * Q * ae, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(V - 3.5, X), i.lineTo(V + 3.5, X), i.moveTo(V, X - 3.5), i.lineTo(V, X + 3.5), i.stroke();
3288
+ i.globalAlpha = C * 0.54 * Q * te, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(Y - 3.5, z), i.lineTo(Y + 3.5, z), i.moveTo(Y, z - 3.5), i.lineTo(Y, z + 3.5), i.stroke();
3287
3289
  }
3288
3290
  }
3289
- i.globalAlpha = 1, l.style.opacity = String(1 - Rt((y - 3750) / 250)), y < N ? x = requestAnimationFrame(f) : t();
3291
+ i.globalAlpha = 1, l.style.opacity = String(1 - Rt((w - 3750) / 250)), w < M ? $ = requestAnimationFrame(N) : t();
3290
3292
  };
3291
- x = requestAnimationFrame(f);
3292
- const v = setTimeout(t, R + 300), F = () => {
3293
+ $ = requestAnimationFrame(N);
3294
+ const f = setTimeout(t, S + 300), E = () => {
3293
3295
  d.matches && t();
3294
3296
  };
3295
- return addEventListener("resize", M), d.addEventListener("change", F), () => {
3296
- cancelAnimationFrame(x), clearTimeout(v), removeEventListener("resize", M), d.removeEventListener("change", F);
3297
+ return addEventListener("resize", x), d.addEventListener("change", E), () => {
3298
+ cancelAnimationFrame($), clearTimeout(f), removeEventListener("resize", x), d.removeEventListener("change", E);
3297
3299
  };
3298
3300
  }, [t, r]), /* @__PURE__ */ e(
3299
3301
  "canvas",
3300
3302
  {
3301
- ref: s,
3303
+ ref: o,
3302
3304
  "aria-hidden": "true",
3303
3305
  style: {
3304
3306
  position: "fixed",
@@ -3311,27 +3313,27 @@ function ii({
3311
3313
  }
3312
3314
  );
3313
3315
  }
3314
- const or = {
3316
+ const ar = {
3315
3317
  "rp-effect-card": "rp_EffectCard-module_rp-effect-card_hcD4035l",
3316
3318
  "rp-effect-content": "rp_EffectCard-module_rp-effect-content_4Oy-i-OP"
3317
- }, ut = { ...lt, ...or };
3318
- function lr({
3319
+ }, ft = { ...pt, ...ar };
3320
+ function nr({
3319
3321
  className: t = "",
3320
3322
  children: n,
3321
3323
  contentHTML: r,
3322
- ...s
3324
+ ...o
3323
3325
  }) {
3324
3326
  return /* @__PURE__ */ a(
3325
3327
  "div",
3326
3328
  {
3327
- className: ut["rp-card"] + " " + ut["rp-effect-card"] + " " + t,
3328
- ...s,
3329
+ className: ft["rp-card"] + " " + ft["rp-effect-card"] + " " + t,
3330
+ ...o,
3329
3331
  children: [
3330
- /* @__PURE__ */ e(ar, {}),
3332
+ /* @__PURE__ */ e(Jn, {}),
3331
3333
  r === void 0 ? n : /* @__PURE__ */ e(
3332
3334
  "div",
3333
3335
  {
3334
- className: ut["rp-effect-content"],
3336
+ className: ft["rp-effect-content"],
3335
3337
  dangerouslySetInnerHTML: { __html: r }
3336
3338
  }
3337
3339
  )
@@ -3339,39 +3341,39 @@ function lr({
3339
3341
  }
3340
3342
  );
3341
3343
  }
3342
- function si(t = Math.random() * 4294967295) {
3344
+ function ti(t = Math.random() * 4294967295) {
3343
3345
  let n = t >>> 0;
3344
3346
  const r = () => {
3345
3347
  n += 1831565813;
3346
3348
  let i = Math.imul(n ^ n >>> 15, n | 1);
3347
3349
  return i ^= i + Math.imul(i ^ i >>> 7, i | 61), ((i ^ i >>> 14) >>> 0) / 4294967296;
3348
- }, s = (i, d) => i + r() * (d - i), l = Math.floor(r() * 3);
3350
+ }, o = (i, d) => i + r() * (d - i), l = Math.floor(r() * 3);
3349
3351
  return {
3350
3352
  seed: t,
3351
3353
  family: l,
3352
- arms: Math.floor(s(3, 8)),
3353
- rotation: s(0, Math.PI * 2),
3354
- curl: l === 0 ? s(9e-3, 0.018) : s(1e-3, 6e-3),
3354
+ arms: Math.floor(o(3, 8)),
3355
+ rotation: o(0, Math.PI * 2),
3356
+ curl: l === 0 ? o(9e-3, 0.018) : o(1e-3, 6e-3),
3355
3357
  direction: r() < 0.5 ? -1 : 1,
3356
- speed: s(500, 640),
3357
- width: s(36, 52),
3358
- lobes: l === 1 ? s(0.18, 0.28) : s(0.06, 0.14),
3359
- decay: s(0.8, 1.1),
3360
- strength: s(26, 36),
3361
- spacing: s(210, 270),
3362
- phase: s(0, Math.PI * 2)
3358
+ speed: o(500, 640),
3359
+ width: o(36, 52),
3360
+ lobes: l === 1 ? o(0.18, 0.28) : o(0.06, 0.14),
3361
+ decay: o(0.8, 1.1),
3362
+ strength: o(26, 36),
3363
+ spacing: o(210, 270),
3364
+ phase: o(0, Math.PI * 2)
3363
3365
  };
3364
3366
  }
3365
- function oi(t, n, r, s) {
3366
- if (s < 0) return { x: 0, y: 0, energy: 0 };
3367
- const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction, m = Math.exp(-s * t.decay) * Math.min(1, s / 0.08), x = s * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), M = (l - x) / t.width, $ = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, R = Math.exp(-M * M) * m * $, N = Math.pow(Math.max(0, Math.cos(h)), 8), k = Math.exp(-Math.pow((l - x * 0.6) / 95, 2)) * N * m, f = Math.exp(-l * l / 14e3) * Math.max(0, 1 - s / 0.6), v = R * t.strength + k * 22 + f * 8, F = k * 18 * Math.sin(h) * t.direction;
3367
+ function ai(t, n, r, o) {
3368
+ if (o < 0) return { x: 0, y: 0, energy: 0 };
3369
+ const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, p = d - l * t.curl * t.direction, g = Math.exp(-o * t.decay) * Math.min(1, o / 0.08), $ = o * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), x = (l - $) / t.width, k = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, S = Math.exp(-x * x) * g * k, M = Math.pow(Math.max(0, Math.cos(p)), 8), b = Math.exp(-Math.pow((l - $ * 0.6) / 95, 2)) * M * g, N = Math.exp(-l * l / 14e3) * Math.max(0, 1 - o / 0.6), f = S * t.strength + b * 22 + N * 8, E = b * 18 * Math.sin(p) * t.direction;
3368
3370
  return {
3369
- x: (n * v - r * F) / Math.max(1, l),
3370
- y: (r * v + n * F) / Math.max(1, l),
3371
- energy: R * 0.55 + k * 0.8 + f * 0.3
3371
+ x: (n * f - r * E) / Math.max(1, l),
3372
+ y: (r * f + n * E) / Math.max(1, l),
3373
+ energy: S * 0.55 + b * 0.8 + N * 0.3
3372
3374
  };
3373
3375
  }
3374
- const Ge = {
3376
+ const Ye = {
3375
3377
  "rp-alert-dialog__trigger": "rp_AlertDialog-module_rp-alert-dialog__trigger_zDrVBZPv",
3376
3378
  "rp-alert-dialog__overlay": "rp_AlertDialog-module_rp-alert-dialog__overlay_aHs-GNOy",
3377
3379
  "rp-alert-dialog__content": "rp_AlertDialog-module_rp-alert-dialog__content_2yGt8Pjg",
@@ -3380,165 +3382,165 @@ const Ge = {
3380
3382
  "rp-alert-dialog__action": "rp_AlertDialog-module_rp-alert-dialog__action_1Axjzt0X",
3381
3383
  "rp-alert-dialog__cancel": "rp_AlertDialog-module_rp-alert-dialog__cancel_BkaoYoMJ",
3382
3384
  "rp-alert-dialog__footer": "rp_AlertDialog-module_rp-alert-dialog__footer_7cTm367U"
3383
- }, Ft = (t) => /* @__PURE__ */ e(fe.Root, { ...t }), Ht = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3384
- fe.Trigger,
3385
+ }, Ft = (t) => /* @__PURE__ */ e(ge.Root, { ...t }), Ht = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3386
+ ge.Trigger,
3385
3387
  {
3386
3388
  ref: r,
3387
- className: se(
3388
- !n.asChild && Ge["rp-alert-dialog__trigger"],
3389
+ className: re(
3390
+ !n.asChild && Ye["rp-alert-dialog__trigger"],
3389
3391
  t
3390
3392
  ),
3391
3393
  ...n
3392
3394
  }
3393
3395
  ));
3394
- Ht.displayName = fe.Trigger.displayName;
3395
- const cr = fe.Portal, Dt = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3396
- fe.Overlay,
3396
+ Ht.displayName = ge.Trigger.displayName;
3397
+ const rr = ge.Portal, Dt = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3398
+ ge.Overlay,
3397
3399
  {
3398
3400
  ref: r,
3399
- className: se(Ge["rp-alert-dialog__overlay"], t),
3401
+ className: re(Ye["rp-alert-dialog__overlay"], t),
3400
3402
  ...n
3401
3403
  }
3402
3404
  ));
3403
- Dt.displayName = fe.Overlay.displayName;
3404
- const Ot = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3405
- fe.Content,
3405
+ Dt.displayName = ge.Overlay.displayName;
3406
+ const Ot = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3407
+ ge.Content,
3406
3408
  {
3407
3409
  ref: r,
3408
- className: se(Ge["rp-alert-dialog__content"], t),
3410
+ className: re(Ye["rp-alert-dialog__content"], t),
3409
3411
  ...n
3410
3412
  }
3411
3413
  ));
3412
- Ot.displayName = fe.Content.displayName;
3413
- const Ut = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3414
- fe.Title,
3414
+ Ot.displayName = ge.Content.displayName;
3415
+ const Ut = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3416
+ ge.Title,
3415
3417
  {
3416
3418
  ref: r,
3417
- className: se(Ge["rp-alert-dialog__title"], t),
3419
+ className: re(Ye["rp-alert-dialog__title"], t),
3418
3420
  ...n
3419
3421
  }
3420
3422
  ));
3421
- Ut.displayName = fe.Title.displayName;
3422
- const zt = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3423
- fe.Description,
3423
+ Ut.displayName = ge.Title.displayName;
3424
+ const zt = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3425
+ ge.Description,
3424
3426
  {
3425
3427
  ref: r,
3426
- className: se(Ge["rp-alert-dialog__description"], t),
3428
+ className: re(Ye["rp-alert-dialog__description"], t),
3427
3429
  ...n
3428
3430
  }
3429
3431
  ));
3430
- zt.displayName = fe.Description.displayName;
3431
- const Xt = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3432
- fe.Action,
3432
+ zt.displayName = ge.Description.displayName;
3433
+ const Xt = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3434
+ ge.Action,
3433
3435
  {
3434
3436
  ref: r,
3435
- className: se(
3436
- !n.asChild && Ge["rp-alert-dialog__action"],
3437
+ className: re(
3438
+ !n.asChild && Ye["rp-alert-dialog__action"],
3437
3439
  t
3438
3440
  ),
3439
3441
  ...n
3440
3442
  }
3441
3443
  ));
3442
- Xt.displayName = fe.Action.displayName;
3443
- const Gt = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3444
- fe.Cancel,
3444
+ Xt.displayName = ge.Action.displayName;
3445
+ const Gt = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3446
+ ge.Cancel,
3445
3447
  {
3446
3448
  ref: r,
3447
- className: se(
3448
- !n.asChild && Ge["rp-alert-dialog__cancel"],
3449
+ className: re(
3450
+ !n.asChild && Ye["rp-alert-dialog__cancel"],
3449
3451
  t
3450
3452
  ),
3451
3453
  ...n
3452
3454
  }
3453
3455
  ));
3454
- Gt.displayName = fe.Cancel.displayName;
3455
- const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3456
+ Gt.displayName = ge.Cancel.displayName;
3457
+ const ir = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3456
3458
  "div",
3457
3459
  {
3458
3460
  ref: r,
3459
- className: se(Ge["rp-alert-dialog__footer"], t),
3461
+ className: re(Ye["rp-alert-dialog__footer"], t),
3460
3462
  ...n
3461
3463
  }
3462
- )), li = Object.assign(Ft, {
3464
+ )), ni = Object.assign(Ft, {
3463
3465
  Root: Ft,
3464
3466
  Trigger: Ht,
3465
- Portal: cr,
3467
+ Portal: rr,
3466
3468
  Overlay: Dt,
3467
3469
  Content: Ot,
3468
3470
  Title: Ut,
3469
3471
  Description: zt,
3470
3472
  Action: Xt,
3471
3473
  Cancel: Gt,
3472
- Footer: dr
3473
- }), hr = "rp_AuthCard-module_card_3af6mRI1", pr = "rp_AuthCard-module_header_WB-cRppT", ur = "rp_AuthCard-module_title_b2lbN-iF", mr = "rp_AuthCard-module_description_zPbJJzv5", gr = "rp_AuthCard-module_providers_Lr2Os9jM", fr = "rp_AuthCard-module_providerButton_ibhdV26C", br = "rp_AuthCard-module_providerIcon_Uj09QL-n", vr = "rp_AuthCard-module_keyForm_0VG0GeLp", yr = "rp_AuthCard-module_divider_r-wmQ2Yq", _r = "rp_AuthCard-module_keyInputRow_n4XX9BYm", Nr = "rp_AuthCard-module_keyInput_rzjbrJea", wr = "rp_AuthCard-module_footer_51y8yr80", xe = {
3474
- card: hr,
3475
- header: pr,
3476
- title: ur,
3477
- description: mr,
3478
- providers: gr,
3479
- providerButton: fr,
3480
- providerIcon: br,
3481
- keyForm: vr,
3482
- divider: yr,
3483
- keyInputRow: _r,
3484
- keyInput: Nr,
3485
- footer: wr
3486
- }, ci = ({
3474
+ Footer: ir
3475
+ }), sr = "rp_AuthCard-module_card_3af6mRI1", or = "rp_AuthCard-module_header_WB-cRppT", lr = "rp_AuthCard-module_title_b2lbN-iF", cr = "rp_AuthCard-module_description_zPbJJzv5", dr = "rp_AuthCard-module_providers_Lr2Os9jM", hr = "rp_AuthCard-module_providerButton_ibhdV26C", pr = "rp_AuthCard-module_providerIcon_Uj09QL-n", mr = "rp_AuthCard-module_keyForm_0VG0GeLp", ur = "rp_AuthCard-module_divider_r-wmQ2Yq", gr = "rp_AuthCard-module_keyInputRow_n4XX9BYm", fr = "rp_AuthCard-module_keyInput_rzjbrJea", br = "rp_AuthCard-module_footer_51y8yr80", Ce = {
3476
+ card: sr,
3477
+ header: or,
3478
+ title: lr,
3479
+ description: cr,
3480
+ providers: dr,
3481
+ providerButton: hr,
3482
+ providerIcon: pr,
3483
+ keyForm: mr,
3484
+ divider: ur,
3485
+ keyInputRow: gr,
3486
+ keyInput: fr,
3487
+ footer: br
3488
+ }, ri = ({
3487
3489
  title: t = "Sign in to RouterPlus",
3488
3490
  description: n = "Access models and manage your account",
3489
3491
  providers: r = [],
3490
- apiKeyLabel: s = "Or continue with API key",
3492
+ apiKeyLabel: o = "Or continue with API key",
3491
3493
  apiKeyPlaceholder: l = "Enter your rp_live_... API key",
3492
3494
  onApiKeySubmit: i,
3493
3495
  footer: d,
3494
- className: h
3496
+ className: p
3495
3497
  }) => {
3496
- const [m, x] = De(""), M = ($) => {
3497
- $.preventDefault(), m.trim() && i?.(m.trim());
3498
+ const [g, $] = De(""), x = (k) => {
3499
+ k.preventDefault(), g.trim() && i?.(g.trim());
3498
3500
  };
3499
- return /* @__PURE__ */ a(lr, { className: se(xe.card, h), children: [
3500
- /* @__PURE__ */ a("div", { className: xe.header, children: [
3501
- /* @__PURE__ */ e("h1", { className: xe.title, children: t }),
3502
- n && /* @__PURE__ */ e("p", { className: xe.description, children: n })
3501
+ return /* @__PURE__ */ a(nr, { className: re(Ce.card, p), children: [
3502
+ /* @__PURE__ */ a("div", { className: Ce.header, children: [
3503
+ /* @__PURE__ */ e("h1", { className: Ce.title, children: t }),
3504
+ n && /* @__PURE__ */ e("p", { className: Ce.description, children: n })
3503
3505
  ] }),
3504
- r.length > 0 && /* @__PURE__ */ e("div", { className: xe.providers, children: r.map(($) => /* @__PURE__ */ a(
3505
- W,
3506
+ r.length > 0 && /* @__PURE__ */ e("div", { className: Ce.providers, children: r.map((k) => /* @__PURE__ */ a(
3507
+ V,
3506
3508
  {
3507
- className: xe.providerButton,
3509
+ className: Ce.providerButton,
3508
3510
  variant: "outline",
3509
- href: $.href,
3510
- onClick: $.onClick,
3511
+ href: k.href,
3512
+ onClick: k.onClick,
3511
3513
  children: [
3512
- $.icon && /* @__PURE__ */ e("span", { className: xe.providerIcon, "aria-hidden": "true", children: $.icon }),
3513
- /* @__PURE__ */ e("span", { children: $.name })
3514
+ k.icon && /* @__PURE__ */ e("span", { className: Ce.providerIcon, "aria-hidden": "true", children: k.icon }),
3515
+ /* @__PURE__ */ e("span", { children: k.name })
3514
3516
  ]
3515
3517
  },
3516
- $.id
3518
+ k.id
3517
3519
  )) }),
3518
- i && /* @__PURE__ */ a("form", { className: xe.keyForm, onSubmit: M, children: [
3519
- /* @__PURE__ */ e("div", { className: xe.divider, children: /* @__PURE__ */ e("span", { children: s }) }),
3520
- /* @__PURE__ */ a("div", { className: xe.keyInputRow, children: [
3520
+ i && /* @__PURE__ */ a("form", { className: Ce.keyForm, onSubmit: x, children: [
3521
+ /* @__PURE__ */ e("div", { className: Ce.divider, children: /* @__PURE__ */ e("span", { children: o }) }),
3522
+ /* @__PURE__ */ a("div", { className: Ce.keyInputRow, children: [
3521
3523
  /* @__PURE__ */ e(
3522
- st,
3524
+ dt,
3523
3525
  {
3524
3526
  type: "password",
3525
3527
  placeholder: l,
3526
- value: m,
3527
- onChange: ($) => x($.target.value),
3528
- className: xe.keyInput
3528
+ value: g,
3529
+ onChange: (k) => $(k.target.value),
3530
+ className: Ce.keyInput
3529
3531
  }
3530
3532
  ),
3531
- /* @__PURE__ */ e(W, { variant: "primary", type: "submit", disabled: !m.trim(), children: "Continue" })
3533
+ /* @__PURE__ */ e(V, { variant: "primary", type: "submit", disabled: !g.trim(), children: "Continue" })
3532
3534
  ] })
3533
3535
  ] }),
3534
- d && /* @__PURE__ */ e("div", { className: xe.footer, children: d })
3536
+ d && /* @__PURE__ */ e("div", { className: Ce.footer, children: d })
3535
3537
  ] });
3536
- }, Mr = "rp_Footer-module_footer_hxH87TcN", kr = "rp_Footer-module_nav_nBjfaMF3", $r = "rp_Footer-module_link_8Rd1iGUN", xr = "rp_Footer-module_copyright_MOU-OKDL", it = {
3537
- footer: Mr,
3538
- nav: kr,
3539
- link: $r,
3540
- copyright: xr
3541
- }, di = ({
3538
+ }, vr = "rp_Footer-module_footer_hxH87TcN", yr = "rp_Footer-module_nav_nBjfaMF3", _r = "rp_Footer-module_link_8Rd1iGUN", Nr = "rp_Footer-module_copyright_MOU-OKDL", ct = {
3539
+ footer: vr,
3540
+ nav: yr,
3541
+ link: _r,
3542
+ copyright: Nr
3543
+ }, ii = ({
3542
3544
  logoHref: t = "/",
3543
3545
  links: n = [
3544
3546
  { label: "Sign in", href: "/auth" },
@@ -3552,147 +3554,147 @@ const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3552
3554
  }
3553
3555
  ],
3554
3556
  copyright: r,
3555
- className: s
3556
- }) => /* @__PURE__ */ a("footer", { className: se(it.footer, s), children: [
3557
+ className: o
3558
+ }) => /* @__PURE__ */ a("footer", { className: re(ct.footer, o), children: [
3557
3559
  /* @__PURE__ */ e(Tt, { href: t, footer: !0 }),
3558
- /* @__PURE__ */ e("nav", { className: it.nav, "aria-label": "Footer navigation", children: n.map((l) => /* @__PURE__ */ e(
3560
+ /* @__PURE__ */ e("nav", { className: ct.nav, "aria-label": "Footer navigation", children: n.map((l) => /* @__PURE__ */ e(
3559
3561
  "a",
3560
3562
  {
3561
3563
  href: l.href,
3562
3564
  target: l.target,
3563
3565
  rel: l.rel,
3564
- className: it.link,
3566
+ className: ct.link,
3565
3567
  children: l.label
3566
3568
  },
3567
3569
  l.label
3568
3570
  )) }),
3569
- r && /* @__PURE__ */ e("div", { className: it.copyright, children: r })
3570
- ] }), Cr = "rp_Header-module_header_Turig8tF", Ar = "rp_Header-module_lead_0DaE0r8e", Lr = "rp_Header-module_logo_mtMWQXw6", Sr = "rp_Header-module_center_q6eURj1J", Br = "rp_Header-module_tools_H6sckGtR", Ze = {
3571
- header: Cr,
3572
- lead: Ar,
3573
- logo: Lr,
3574
- center: Sr,
3575
- tools: Br
3576
- }, Rr = [
3571
+ r && /* @__PURE__ */ e("div", { className: ct.copyright, children: r })
3572
+ ] }), wr = "rp_Header-module_header_Turig8tF", Mr = "rp_Header-module_lead_0DaE0r8e", kr = "rp_Header-module_logo_mtMWQXw6", $r = "rp_Header-module_center_q6eURj1J", xr = "rp_Header-module_tools_H6sckGtR", et = {
3573
+ header: wr,
3574
+ lead: Mr,
3575
+ logo: kr,
3576
+ center: $r,
3577
+ tools: xr
3578
+ }, Cr = [
3577
3579
  { value: "en", label: "English" },
3578
3580
  { value: "de", label: "Deutsch" },
3579
3581
  { value: "es", label: "Español" },
3580
3582
  { value: "fr", label: "Français" },
3581
3583
  { value: "ru", label: "Русский" }
3582
3584
  ];
3583
- function hi({
3585
+ function si({
3584
3586
  dark: t = !1,
3585
3587
  onThemeChange: n,
3586
3588
  language: r = "en",
3587
- languages: s = Rr,
3589
+ languages: o = Cr,
3588
3590
  onLanguageChange: l,
3589
3591
  left: i,
3590
3592
  afterLogo: d,
3591
- center: h,
3592
- right: m,
3593
- action: x,
3594
- surface: M = "hero",
3595
- href: $ = "/en"
3593
+ center: p,
3594
+ right: g,
3595
+ action: $,
3596
+ surface: x = "hero",
3597
+ href: k = "/en"
3596
3598
  }) {
3597
- const R = m === void 0 ? x : m;
3599
+ const S = g === void 0 ? $ : g;
3598
3600
  return /* @__PURE__ */ a(
3599
3601
  "header",
3600
3602
  {
3601
- className: Ze.header,
3603
+ className: et.header,
3602
3604
  "data-theme": t ? "dark" : "light",
3603
- "data-surface": M,
3605
+ "data-surface": x,
3604
3606
  children: [
3605
- /* @__PURE__ */ a("div", { className: Ze.lead, children: [
3607
+ /* @__PURE__ */ a("div", { className: et.lead, children: [
3606
3608
  i,
3607
- /* @__PURE__ */ e(Tt, { className: Ze.logo, href: $ }),
3609
+ /* @__PURE__ */ e(Tt, { className: et.logo, href: k }),
3608
3610
  d
3609
3611
  ] }),
3610
- h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className: Ze.center, children: h }),
3611
- /* @__PURE__ */ a("div", { className: Ze.tools, children: [
3612
- /* @__PURE__ */ e(va, { dark: t, onThemeChange: n }),
3612
+ p !== void 0 && p !== !1 && /* @__PURE__ */ e("div", { className: et.center, children: p }),
3613
+ /* @__PURE__ */ a("div", { className: et.tools, children: [
3614
+ /* @__PURE__ */ e(ma, { dark: t, onThemeChange: n }),
3613
3615
  /* @__PURE__ */ e(
3614
- ya,
3616
+ ua,
3615
3617
  {
3616
- className: Ze.language,
3617
- triggerContent: /* @__PURE__ */ e(Ma, { size: 18, "aria-hidden": "true" }),
3618
+ className: et.language,
3619
+ triggerContent: /* @__PURE__ */ e(va, { size: 18, "aria-hidden": "true" }),
3618
3620
  popupAlign: "end",
3619
3621
  popupTheme: t ? "dark" : "light",
3620
- options: s,
3622
+ options: o,
3621
3623
  value: r,
3622
- onValueChange: (N) => l?.(N),
3623
- ariaLabel: `Change language: ${s.find((N) => N.value === r)?.label ?? r}`
3624
+ onValueChange: (M) => l?.(M),
3625
+ ariaLabel: `Change language: ${o.find((M) => M.value === r)?.label ?? r}`
3624
3626
  }
3625
3627
  ),
3626
- R === void 0 ? /* @__PURE__ */ e(W, { variant: "primary", href: "/en/auth", children: "API Key" }) : R
3628
+ S === void 0 ? /* @__PURE__ */ e(V, { variant: "primary", href: "/en/auth", children: "API Key" }) : S
3627
3629
  ] })
3628
3630
  ]
3629
3631
  }
3630
3632
  );
3631
3633
  }
3632
3634
  export {
3633
- li as AlertDialog,
3635
+ ni as AlertDialog,
3634
3636
  Xt as AlertDialogAction,
3635
3637
  Gt as AlertDialogCancel,
3636
3638
  Ot as AlertDialogContent,
3637
3639
  zt as AlertDialogDescription,
3638
- dr as AlertDialogFooter,
3640
+ ir as AlertDialogFooter,
3639
3641
  Dt as AlertDialogOverlay,
3640
- cr as AlertDialogPortal,
3642
+ rr as AlertDialogPortal,
3641
3643
  Ft as AlertDialogRoot,
3642
3644
  Ut as AlertDialogTitle,
3643
3645
  Ht as AlertDialogTrigger,
3644
- ci as AuthCard,
3645
- ar as BackgroundDotted,
3646
- ni as BackgroundLineField,
3647
- ti as BackgroundPlus,
3648
- ri as BackgroundSquare,
3649
- jr as BarChart,
3650
- Yr as Billing,
3651
- ii as BrandIntro,
3652
- Er as CustomerDashboard,
3653
- lr as EffectCard,
3654
- di as Footer,
3655
- hi as Header,
3656
- Wr as Heatmap,
3657
- Vr as MetricStrip,
3658
- mi as MonthlySubscription,
3659
- Kr as Panel,
3660
- ai as PlusField,
3661
- zr as Provider,
3662
- Xr as ProviderLogo,
3663
- Jr as Ranking,
3664
- Zr as RequestTable,
3665
- ge as RouterPlusGlyph,
3666
- Or as RouterPlusHarnessMapping,
3667
- nt as RouterPlusIcon,
3668
- Dr as RouterPlusProviderList,
3669
- Hr as RouterPlusShell,
3670
- Ur as RouterPlusUsageSummary,
3671
- Qr as SessionShape,
3672
- gi as Shop,
3673
- fi as ShopAccountCard,
3674
- bi as ShopCard,
3675
- vi as SideNavigation,
3676
- yi as SideNavigationBrand,
3677
- _i as SideNavigationEmpty,
3678
- Ni as SideNavigationFooter,
3679
- wi as SideNavigationHeader,
3680
- Mi as SideNavigationItem,
3681
- ki as SideNavigationScroll,
3682
- $i as SideNavigationSection,
3683
- xi as SideNavigationStatus,
3684
- Ci as SideNavigationSubItem,
3685
- Ai as SideNavigationSubNav,
3686
- Li as SideNavigationToggle,
3687
- Si as Support,
3688
- Bi as SupportDialog,
3689
- ei as UsageList,
3690
- Gr as flagForRegion,
3691
- si as generateBlast,
3692
- Ri as glyphs,
3693
- Fi as icons,
3694
- Tn as regionForLocale,
3695
- Zt as routerPlusLogo,
3696
- oi as sampleBlast,
3697
- Ti as useThemeTransition
3646
+ ri as AuthCard,
3647
+ Jn as BackgroundDotted,
3648
+ Zr as BackgroundLineField,
3649
+ Kr as BackgroundPlus,
3650
+ Qr as BackgroundSquare,
3651
+ Ur as BarChart,
3652
+ Or as Billing,
3653
+ ei as BrandIntro,
3654
+ Fr as CustomerDashboard,
3655
+ nr as EffectCard,
3656
+ ii as Footer,
3657
+ si as Header,
3658
+ zr as Heatmap,
3659
+ Xr as MetricStrip,
3660
+ ci as MonthlySubscription,
3661
+ Gr as Panel,
3662
+ Jr as PlusField,
3663
+ Er as Provider,
3664
+ Hr as ProviderLogo,
3665
+ Yr as Ranking,
3666
+ jr as RequestTable,
3667
+ ue as RouterPlusGlyph,
3668
+ Pr as RouterPlusHarnessMapping,
3669
+ it as RouterPlusIcon,
3670
+ qr as RouterPlusProviderList,
3671
+ Tr as RouterPlusShell,
3672
+ Ir as RouterPlusUsageSummary,
3673
+ Wr as SessionShape,
3674
+ di as Shop,
3675
+ hi as ShopAccountCard,
3676
+ pi as ShopCard,
3677
+ mi as SideNavigation,
3678
+ ui as SideNavigationBrand,
3679
+ gi as SideNavigationEmpty,
3680
+ fi as SideNavigationFooter,
3681
+ bi as SideNavigationHeader,
3682
+ vi as SideNavigationItem,
3683
+ yi as SideNavigationScroll,
3684
+ _i as SideNavigationSection,
3685
+ Ni as SideNavigationStatus,
3686
+ wi as SideNavigationSubItem,
3687
+ Mi as SideNavigationSubNav,
3688
+ ki as SideNavigationToggle,
3689
+ $i as Support,
3690
+ xi as SupportDialog,
3691
+ Vr as UsageList,
3692
+ Dr as flagForRegion,
3693
+ ti as generateBlast,
3694
+ Ci as glyphs,
3695
+ Ai as icons,
3696
+ Ln as regionForLocale,
3697
+ jt as routerPlusLogo,
3698
+ ai as sampleBlast,
3699
+ Li as useThemeTransition
3698
3700
  };