@plusrouter/ui 0.1.20 → 0.1.21
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.
- package/dist/components.js +1125 -1115
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { w as
|
|
3
|
-
import { M as
|
|
4
|
-
import qt, { useId as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { w as yt, u as mt, B as J, I as ht, R as ue, a as st, r as Wt, b as ze, L as Nt, c as wt, d as Vt, P as Kt, e as Jt, E as Zt, C as Qt, f as ea, g as ta, S as aa, h as na, i as ra, j as ia, k as sa, l as oa, m as la, n as ca, o as da, p as ha, q as pa, s as ma, t as Pt, T as ua, v as ga } from "./SideNavigation-uaK5wkfX.js";
|
|
3
|
+
import { M as di, x as hi, y as pi, z as mi, A as ui, D as gi, F as fi, G as bi, H as vi, J as yi, K as _i, N as Ni, O as wi, Q as Mi, U as ki, V as $i, W as xi, X as Ci, Y as Ai, Z as Li, _ as Si } from "./SideNavigation-uaK5wkfX.js";
|
|
4
|
+
import qt, { useId as it, useState as Oe, useEffect as $e, useContext as fa, createContext as ba, useMemo as lt, Fragment as va, useRef as Re, forwardRef as Ye } from "react";
|
|
5
5
|
import * as ge from "@radix-ui/react-alert-dialog";
|
|
6
6
|
import re from "clsx";
|
|
7
|
-
import { Globe as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
7
|
+
import { Globe as ya } from "lucide-react";
|
|
8
|
+
const Me = { ...mt, ...yt };
|
|
9
|
+
function Tr({
|
|
10
10
|
languageControl: t
|
|
11
11
|
} = {}) {
|
|
12
12
|
return /* @__PURE__ */ a("div", { className: "customer-incumbent", style: { display: "contents" }, children: [
|
|
@@ -14,11 +14,11 @@ function Fr({
|
|
|
14
14
|
/* @__PURE__ */ e("link", { rel: "stylesheet", href: "/issued-key-modal.css" }),
|
|
15
15
|
`
|
|
16
16
|
`,
|
|
17
|
-
/* @__PURE__ */ a("aside", { className: `${
|
|
17
|
+
/* @__PURE__ */ a("aside", { className: `${Me.sidebar}`, children: [
|
|
18
18
|
/* @__PURE__ */ a("div", { className: "sidebar-account", children: [
|
|
19
19
|
/* @__PURE__ */ a("div", { className: "account-top", children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
/* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(J, { id: "account-name", "data-topup": !0, children: "Your account" }),
|
|
21
|
+
/* @__PURE__ */ e(J, { "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 Fr({
|
|
|
38
38
|
/* @__PURE__ */ e("small", { children: "Balance unavailable" })
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
J,
|
|
42
42
|
{
|
|
43
43
|
className: "topup-icon",
|
|
44
44
|
"data-topup": !0,
|
|
@@ -49,7 +49,7 @@ function Fr({
|
|
|
49
49
|
] })
|
|
50
50
|
] }),
|
|
51
51
|
/* @__PURE__ */ a("nav", { "aria-label": "Dashboard", children: [
|
|
52
|
-
/* @__PURE__ */ a(
|
|
52
|
+
/* @__PURE__ */ a(J, { "data-page": "access", children: [
|
|
53
53
|
/* @__PURE__ */ e(
|
|
54
54
|
"svg",
|
|
55
55
|
{
|
|
@@ -65,7 +65,7 @@ function Fr({
|
|
|
65
65
|
),
|
|
66
66
|
/* @__PURE__ */ e("span", { children: "API keys" })
|
|
67
67
|
] }),
|
|
68
|
-
/* @__PURE__ */ a(
|
|
68
|
+
/* @__PURE__ */ a(J, { "data-page": "logs", children: [
|
|
69
69
|
/* @__PURE__ */ e(
|
|
70
70
|
"svg",
|
|
71
71
|
{
|
|
@@ -81,7 +81,7 @@ function Fr({
|
|
|
81
81
|
),
|
|
82
82
|
/* @__PURE__ */ e("span", { children: "LLM logs" })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ a(
|
|
84
|
+
/* @__PURE__ */ a(J, { "data-page": "plans", children: [
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
"svg",
|
|
87
87
|
{
|
|
@@ -101,9 +101,9 @@ function Fr({
|
|
|
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(
|
|
104
|
+
/* @__PURE__ */ e(J, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
|
|
105
105
|
/* @__PURE__ */ e("span", { id: "telegram-link-status", role: "status" }),
|
|
106
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ e(J, { id: "identity-logout", type: "button", children: "Sign out" })
|
|
107
107
|
] }),
|
|
108
108
|
/* @__PURE__ */ a(
|
|
109
109
|
"a",
|
|
@@ -157,9 +157,9 @@ function Fr({
|
|
|
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(
|
|
160
|
+
/* @__PURE__ */ e(J, { id: "hero-key", className: `${Me.primary}`, children: "Generate API key" })
|
|
161
161
|
] }),
|
|
162
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
162
|
+
/* @__PURE__ */ a("div", { className: `${Me.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 Fr({
|
|
|
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(
|
|
176
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
181
181
|
`,
|
|
182
182
|
/* @__PURE__ */ a("div", { id: "new-key-mount", children: [
|
|
183
183
|
/* @__PURE__ */ e(
|
|
184
|
-
|
|
184
|
+
J,
|
|
185
185
|
{
|
|
186
186
|
id: "new-key",
|
|
187
187
|
className: "text-button",
|
|
@@ -194,10 +194,10 @@ function Fr({
|
|
|
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
|
-
|
|
197
|
+
J,
|
|
198
198
|
{
|
|
199
199
|
id: "create-anonymous-key",
|
|
200
|
-
className: `${
|
|
200
|
+
className: `${Me.primary}`,
|
|
201
201
|
children: "Generate key"
|
|
202
202
|
}
|
|
203
203
|
),
|
|
@@ -210,7 +210,7 @@ function Fr({
|
|
|
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
|
-
|
|
213
|
+
ht,
|
|
214
214
|
{
|
|
215
215
|
id: "api-key",
|
|
216
216
|
name: "api_key",
|
|
@@ -224,14 +224,14 @@ function Fr({
|
|
|
224
224
|
"aria-label": "API key"
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
/* @__PURE__ */ e(
|
|
227
|
+
/* @__PURE__ */ e(J, { 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: `${
|
|
234
|
+
/* @__PURE__ */ a("div", { className: `${Me.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 Fr({
|
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ a("div", { className: "copy-inline", children: [
|
|
241
241
|
/* @__PURE__ */ e("code", { children: "https://router.plus/v1" }),
|
|
242
|
-
/* @__PURE__ */ e(
|
|
242
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
275
275
|
/* @__PURE__ */ e("h2", { children: "Recent requests" }),
|
|
276
276
|
/* @__PURE__ */ e("span", { children: "Request activity" })
|
|
277
277
|
] }),
|
|
278
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
278
|
+
/* @__PURE__ */ a("div", { className: `${Me.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 Fr({
|
|
|
283
283
|
/* @__PURE__ */ e("span", { children: "Duration" }),
|
|
284
284
|
/* @__PURE__ */ e("span", { children: "Status" })
|
|
285
285
|
] }),
|
|
286
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
286
|
+
/* @__PURE__ */ a("div", { className: `${Me["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 Fr({
|
|
|
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(
|
|
298
|
+
/* @__PURE__ */ e(J, { "data-topup": !0, children: "Manage subscription" })
|
|
299
299
|
] }),
|
|
300
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
300
|
+
/* @__PURE__ */ e("div", { className: `${Me.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 Fr({
|
|
|
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: `${
|
|
311
|
+
/* @__PURE__ */ e("div", { className: `${Me.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 Fr({
|
|
|
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: `${
|
|
319
|
+
/* @__PURE__ */ a("div", { className: `${Me.panel} payment-summary`, children: [
|
|
320
320
|
/* @__PURE__ */ e("span", { id: "latest-payment", children: "Connect your account to view payments." }),
|
|
321
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(J, { "data-topup": !0, children: "View invoice" })
|
|
322
322
|
] })
|
|
323
323
|
] }),
|
|
324
324
|
`
|
|
@@ -337,7 +337,7 @@ function Fr({
|
|
|
337
337
|
"aria-labelledby": "topup-title",
|
|
338
338
|
children: [
|
|
339
339
|
/* @__PURE__ */ a("header", { className: "drawer-header", children: [
|
|
340
|
-
/* @__PURE__ */ e(
|
|
340
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
353
353
|
/* @__PURE__ */ a("div", { className: "balance-amount", children: [
|
|
354
354
|
/* @__PURE__ */ e("span", { children: "$" }),
|
|
355
355
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
356
|
+
ht,
|
|
357
357
|
{
|
|
358
358
|
id: "preview-amount",
|
|
359
359
|
type: "number",
|
|
@@ -381,7 +381,7 @@ function Fr({
|
|
|
381
381
|
}
|
|
382
382
|
),
|
|
383
383
|
/* @__PURE__ */ a("div", { className: "balance-preview-footer", children: [
|
|
384
|
-
/* @__PURE__ */ a(
|
|
384
|
+
/* @__PURE__ */ a(J, { id: "preview-connect", className: `${Me.primary}`, children: [
|
|
385
385
|
"Connect API key ",
|
|
386
386
|
/* @__PURE__ */ e("span", { children: "→" })
|
|
387
387
|
] }),
|
|
@@ -406,7 +406,7 @@ function Fr({
|
|
|
406
406
|
`
|
|
407
407
|
`,
|
|
408
408
|
/* @__PURE__ */ e(
|
|
409
|
-
|
|
409
|
+
J,
|
|
410
410
|
{
|
|
411
411
|
id: "refresh",
|
|
412
412
|
className: "text-button",
|
|
@@ -417,7 +417,7 @@ function Fr({
|
|
|
417
417
|
`
|
|
418
418
|
`,
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
|
-
|
|
420
|
+
J,
|
|
421
421
|
{
|
|
422
422
|
id: "logout",
|
|
423
423
|
className: "text-button",
|
|
@@ -477,10 +477,10 @@ function Fr({
|
|
|
477
477
|
}
|
|
478
478
|
),
|
|
479
479
|
/* @__PURE__ */ e(
|
|
480
|
-
|
|
480
|
+
J,
|
|
481
481
|
{
|
|
482
482
|
id: "pay",
|
|
483
|
-
className: `${
|
|
483
|
+
className: `${Me.primary}`,
|
|
484
484
|
type: "submit",
|
|
485
485
|
children: "Create invoice"
|
|
486
486
|
}
|
|
@@ -500,7 +500,7 @@ function Fr({
|
|
|
500
500
|
/* @__PURE__ */ a("section", { id: "invoice", hidden: !0, "aria-label": "Payment invoice", children: [
|
|
501
501
|
`
|
|
502
502
|
`,
|
|
503
|
-
/* @__PURE__ */ e(
|
|
503
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
513
513
|
] }),
|
|
514
514
|
/* @__PURE__ */ a("div", { className: "payment-copy", children: [
|
|
515
515
|
/* @__PURE__ */ e("span", { children: "Wallet address" }),
|
|
516
|
-
/* @__PURE__ */ e(
|
|
516
|
+
/* @__PURE__ */ e(J, { 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(
|
|
521
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
544
544
|
`
|
|
545
545
|
`,
|
|
546
546
|
/* @__PURE__ */ a(
|
|
547
|
-
|
|
547
|
+
J,
|
|
548
548
|
{
|
|
549
549
|
id: "support-launcher",
|
|
550
550
|
className: "support-launcher",
|
|
@@ -581,7 +581,7 @@ function Fr({
|
|
|
581
581
|
children: [
|
|
582
582
|
/* @__PURE__ */ a("div", { className: "support-sidebar", children: [
|
|
583
583
|
/* @__PURE__ */ a("div", { className: "support-tools", children: [
|
|
584
|
-
/* @__PURE__ */ e(
|
|
584
|
+
/* @__PURE__ */ e(J, { 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 Fr({
|
|
|
592
592
|
role: "group",
|
|
593
593
|
"aria-label": "Support inbox",
|
|
594
594
|
children: [
|
|
595
|
-
/* @__PURE__ */ e(
|
|
596
|
-
/* @__PURE__ */ e(
|
|
595
|
+
/* @__PURE__ */ e(J, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
|
|
596
|
+
/* @__PURE__ */ e(J, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
|
|
597
597
|
]
|
|
598
598
|
}
|
|
599
599
|
),
|
|
600
600
|
/* @__PURE__ */ a(
|
|
601
|
-
|
|
601
|
+
J,
|
|
602
602
|
{
|
|
603
603
|
className: "notification-row",
|
|
604
604
|
"data-inbox": "notifications",
|
|
@@ -621,7 +621,7 @@ function Fr({
|
|
|
621
621
|
}
|
|
622
622
|
),
|
|
623
623
|
/* @__PURE__ */ e("p", { id: "support-list-status", children: "Ticket history is not connected." }),
|
|
624
|
-
/* @__PURE__ */ a(
|
|
624
|
+
/* @__PURE__ */ a(J, { id: "new-ticket", children: [
|
|
625
625
|
"New ticket ",
|
|
626
626
|
/* @__PURE__ */ e("span", { children: "+" })
|
|
627
627
|
] })
|
|
@@ -643,14 +643,14 @@ function Fr({
|
|
|
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(
|
|
646
|
+
/* @__PURE__ */ e(J, { 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
|
-
|
|
653
|
+
ht,
|
|
654
654
|
{
|
|
655
655
|
id: "ticket-subject",
|
|
656
656
|
required: !0,
|
|
@@ -673,7 +673,7 @@ function Fr({
|
|
|
673
673
|
)
|
|
674
674
|
] }),
|
|
675
675
|
/* @__PURE__ */ e("p", { children: "Sending tickets is not available yet." }),
|
|
676
|
-
/* @__PURE__ */ e(
|
|
676
|
+
/* @__PURE__ */ e(J, { type: "submit", children: "Copy request" }),
|
|
677
677
|
/* @__PURE__ */ e("p", { id: "ticket-status", role: "status" })
|
|
678
678
|
] })
|
|
679
679
|
] })
|
|
@@ -684,15 +684,15 @@ function Fr({
|
|
|
684
684
|
`
|
|
685
685
|
] });
|
|
686
686
|
}
|
|
687
|
-
const c = { ...
|
|
687
|
+
const c = { ...mt, ...yt }, Mt = [
|
|
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
|
-
],
|
|
695
|
-
function
|
|
694
|
+
], It = ba(null), _a = ["Overview", "Requests", "Sessions", "Context"];
|
|
695
|
+
function Na({
|
|
696
696
|
children: t,
|
|
697
697
|
onClick: n,
|
|
698
698
|
primary: r = !1,
|
|
@@ -710,7 +710,7 @@ function _a({
|
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Je({
|
|
714
714
|
status: t,
|
|
715
715
|
error: n,
|
|
716
716
|
onRetry: r,
|
|
@@ -719,10 +719,10 @@ function Ke({
|
|
|
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(
|
|
722
|
+
r && /* @__PURE__ */ e(Na, { onClick: r, children: "Try again" })
|
|
723
723
|
] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? o : l });
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Pr({
|
|
726
726
|
page: t,
|
|
727
727
|
theme: n,
|
|
728
728
|
children: r,
|
|
@@ -730,26 +730,26 @@ function Tr({
|
|
|
730
730
|
onRefresh: l,
|
|
731
731
|
refreshing: i = !1,
|
|
732
732
|
usageSection: d = "Overview",
|
|
733
|
-
usageSections:
|
|
733
|
+
usageSections: h = _a,
|
|
734
734
|
onUsageSectionChange: g,
|
|
735
|
-
notice:
|
|
736
|
-
headerActions:
|
|
737
|
-
sidebarFooter:
|
|
738
|
-
beforeContent:
|
|
735
|
+
notice: x,
|
|
736
|
+
headerActions: C,
|
|
737
|
+
sidebarFooter: $,
|
|
738
|
+
beforeContent: B
|
|
739
739
|
}) {
|
|
740
|
-
const [M, b] =
|
|
740
|
+
const [M, b] = Oe(
|
|
741
741
|
() => typeof matchMedia < "u" && matchMedia(
|
|
742
742
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
743
743
|
).matches
|
|
744
744
|
);
|
|
745
|
-
|
|
746
|
-
const
|
|
745
|
+
$e(() => {
|
|
746
|
+
const T = matchMedia(
|
|
747
747
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
748
|
-
),
|
|
749
|
-
return
|
|
748
|
+
), F = () => b(T.matches);
|
|
749
|
+
return T.addEventListener("change", F), () => T.removeEventListener("change", F);
|
|
750
750
|
}, []);
|
|
751
|
-
const N = t === "settings" ? "Settings" :
|
|
752
|
-
/* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src:
|
|
751
|
+
const N = t === "settings" ? "Settings" : Mt.find(([T]) => T === 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: Wt, width: "22", height: "22", alt: "" }) }),
|
|
753
753
|
/* @__PURE__ */ e("span", { children: "RouterPlus" })
|
|
754
754
|
] }), w = /* @__PURE__ */ a(
|
|
755
755
|
"button",
|
|
@@ -764,18 +764,18 @@ function Tr({
|
|
|
764
764
|
/* @__PURE__ */ e("span", { className: `${c["side-l"]}`, children: "Settings" })
|
|
765
765
|
]
|
|
766
766
|
}
|
|
767
|
-
),
|
|
767
|
+
), A = /* @__PURE__ */ a(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
770
|
className: M ? c.segs : c["nav-sub"],
|
|
771
771
|
id: M ? "usageTab" : void 0,
|
|
772
|
-
ref: (
|
|
773
|
-
if (!
|
|
774
|
-
const
|
|
775
|
-
const H =
|
|
772
|
+
ref: (T) => {
|
|
773
|
+
if (!T || !M) return;
|
|
774
|
+
const F = () => {
|
|
775
|
+
const H = T.querySelector("button.on"), ae = T.querySelector(".thumb");
|
|
776
776
|
H && ae && (ae.style.width = H.offsetWidth + "px", ae.style.transform = `translateX(${H.offsetLeft}px)`);
|
|
777
777
|
};
|
|
778
|
-
|
|
778
|
+
F(), document.fonts.ready.then(F);
|
|
779
779
|
},
|
|
780
780
|
role: "group",
|
|
781
781
|
"aria-label": "Usage section",
|
|
@@ -786,20 +786,20 @@ function Tr({
|
|
|
786
786
|
{
|
|
787
787
|
className: `${c["nav-hl"]} ${c.still}`,
|
|
788
788
|
style: {
|
|
789
|
-
transform: `translateY(${
|
|
789
|
+
transform: `translateY(${h.indexOf(d) * 27}px)`
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
|
-
|
|
793
|
+
h.map((T) => /* @__PURE__ */ e(
|
|
794
794
|
"button",
|
|
795
795
|
{
|
|
796
|
-
className: M ? `opt${d ===
|
|
796
|
+
className: M ? `opt${d === T ? c.on : ""}` : `nav-s${d === T ? c.cur : ""}`,
|
|
797
797
|
type: "button",
|
|
798
|
-
"aria-pressed": d ===
|
|
799
|
-
onClick: () => g?.(
|
|
800
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
798
|
+
"aria-pressed": d === T,
|
|
799
|
+
onClick: () => g?.(T),
|
|
800
|
+
children: /* @__PURE__ */ e("span", { children: T })
|
|
801
801
|
},
|
|
802
|
-
|
|
802
|
+
T
|
|
803
803
|
))
|
|
804
804
|
]
|
|
805
805
|
}
|
|
@@ -818,28 +818,28 @@ function Tr({
|
|
|
818
818
|
className: `${c.seg}`,
|
|
819
819
|
id: "nav",
|
|
820
820
|
"aria-label": "Main navigation",
|
|
821
|
-
children:
|
|
821
|
+
children: Mt.map(([T, F, H]) => /* @__PURE__ */ a(qt.Fragment, { children: [
|
|
822
822
|
/* @__PURE__ */ a(
|
|
823
823
|
"button",
|
|
824
824
|
{
|
|
825
825
|
type: "button",
|
|
826
|
-
"data-view":
|
|
827
|
-
className: t ===
|
|
828
|
-
"aria-current": t ===
|
|
829
|
-
onClick: () => o?.(
|
|
826
|
+
"data-view": T === "connection" ? "providers" : T,
|
|
827
|
+
className: t === T ? c.on : "",
|
|
828
|
+
"aria-current": t === T ? "page" : void 0,
|
|
829
|
+
onClick: () => o?.(T),
|
|
830
830
|
children: [
|
|
831
831
|
/* @__PURE__ */ e(ue, { name: H }),
|
|
832
|
-
/* @__PURE__ */ e("span", { children:
|
|
832
|
+
/* @__PURE__ */ e("span", { children: F })
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
|
|
837
|
-
] },
|
|
836
|
+
T === "usage" && t === "usage" && A
|
|
837
|
+
] }, T))
|
|
838
838
|
}
|
|
839
839
|
) }),
|
|
840
840
|
/* @__PURE__ */ a("div", { className: `${c["side-foot"]}`, children: [
|
|
841
841
|
w,
|
|
842
|
-
|
|
842
|
+
$
|
|
843
843
|
] })
|
|
844
844
|
] }),
|
|
845
845
|
/* @__PURE__ */ a("header", { className: `${c.top}`, children: [
|
|
@@ -848,7 +848,7 @@ function Tr({
|
|
|
848
848
|
!M && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
|
|
849
849
|
/* @__PURE__ */ e("span", { children: f }),
|
|
850
850
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
851
|
-
t === "usage" ? /* @__PURE__ */ a(
|
|
851
|
+
t === "usage" ? /* @__PURE__ */ a(Ge, { children: [
|
|
852
852
|
/* @__PURE__ */ e("span", { children: "Usage" }),
|
|
853
853
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
854
854
|
/* @__PURE__ */ e("b", { children: d })
|
|
@@ -867,15 +867,15 @@ function Tr({
|
|
|
867
867
|
children: /* @__PURE__ */ e(ue, { name: "refresh" })
|
|
868
868
|
}
|
|
869
869
|
),
|
|
870
|
-
|
|
870
|
+
C,
|
|
871
871
|
M && w
|
|
872
872
|
] })
|
|
873
873
|
] }),
|
|
874
874
|
/* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${E}`, children: [
|
|
875
|
-
|
|
876
|
-
/* @__PURE__ */ e(
|
|
875
|
+
B,
|
|
876
|
+
/* @__PURE__ */ e(It.Provider, { value: t === "usage" && M ? A : null, children: r })
|
|
877
877
|
] }),
|
|
878
|
-
|
|
878
|
+
x && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: x })
|
|
879
879
|
]
|
|
880
880
|
}
|
|
881
881
|
);
|
|
@@ -888,20 +888,20 @@ function qr({
|
|
|
888
888
|
onImport: l,
|
|
889
889
|
onCustomProvider: i,
|
|
890
890
|
onPlugins: d,
|
|
891
|
-
hasProviders:
|
|
891
|
+
hasProviders: h = !1,
|
|
892
892
|
status: g = "ready",
|
|
893
|
-
error:
|
|
894
|
-
onRetry:
|
|
893
|
+
error: x,
|
|
894
|
+
onRetry: C
|
|
895
895
|
}) {
|
|
896
|
-
const
|
|
896
|
+
const $ = it(), B = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), M = t.map((b) => ({
|
|
897
897
|
...b,
|
|
898
898
|
providers: b.providers.filter(
|
|
899
|
-
(N) =>
|
|
899
|
+
(N) => B.every(
|
|
900
900
|
(f) => `${N.name} ${N.detail ?? ""} ${b.title} ${b.hint ?? ""}`.toLocaleLowerCase().includes(f)
|
|
901
901
|
)
|
|
902
902
|
)
|
|
903
903
|
})).filter((b) => b.providers.length);
|
|
904
|
-
return /* @__PURE__ */ a(
|
|
904
|
+
return /* @__PURE__ */ a(Ge, { 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",
|
|
@@ -912,13 +912,13 @@ function qr({
|
|
|
912
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:
|
|
915
|
+
/* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: $, children: h ? "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: $,
|
|
922
922
|
type: "text",
|
|
923
923
|
"aria-label": "Find a vendor",
|
|
924
924
|
placeholder: "Find a vendor…",
|
|
@@ -940,16 +940,16 @@ function qr({
|
|
|
940
940
|
)
|
|
941
941
|
] }),
|
|
942
942
|
g !== "ready" ? /* @__PURE__ */ e(
|
|
943
|
-
|
|
943
|
+
Je,
|
|
944
944
|
{
|
|
945
945
|
status: g,
|
|
946
|
-
error:
|
|
947
|
-
onRetry:
|
|
946
|
+
error: x,
|
|
947
|
+
onRetry: C,
|
|
948
948
|
loading: "Loading providers…"
|
|
949
949
|
}
|
|
950
950
|
) : /* @__PURE__ */ a("div", { className: "tiles", children: [
|
|
951
951
|
M.length === 0 && /* @__PURE__ */ e(
|
|
952
|
-
|
|
952
|
+
Je,
|
|
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."
|
|
@@ -970,7 +970,7 @@ function qr({
|
|
|
970
970
|
onClick: () => o?.(N),
|
|
971
971
|
title: N.detail || N.name,
|
|
972
972
|
children: [
|
|
973
|
-
/* @__PURE__ */ e(
|
|
973
|
+
/* @__PURE__ */ e(st, { name: N.icon }),
|
|
974
974
|
/* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: N.name }) })
|
|
975
975
|
]
|
|
976
976
|
},
|
|
@@ -1012,7 +1012,7 @@ function qr({
|
|
|
1012
1012
|
)
|
|
1013
1013
|
] });
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Ir({
|
|
1016
1016
|
agents: t,
|
|
1017
1017
|
endpoint: n,
|
|
1018
1018
|
onCopyEndpoint: r,
|
|
@@ -1020,19 +1020,19 @@ function Pr({
|
|
|
1020
1020
|
onToggle: l,
|
|
1021
1021
|
onMappingChange: i,
|
|
1022
1022
|
showGuide: d = !0,
|
|
1023
|
-
onDismissGuide:
|
|
1023
|
+
onDismissGuide: h,
|
|
1024
1024
|
connectionReady: g = !1,
|
|
1025
|
-
onSaveProfile:
|
|
1026
|
-
profileLabel:
|
|
1027
|
-
onManage:
|
|
1028
|
-
onInstall:
|
|
1025
|
+
onSaveProfile: x,
|
|
1026
|
+
profileLabel: C = "none yet · save the setup to switch back in one click",
|
|
1027
|
+
onManage: $,
|
|
1028
|
+
onInstall: B,
|
|
1029
1029
|
installCount: M,
|
|
1030
1030
|
status: b = "ready",
|
|
1031
1031
|
error: N,
|
|
1032
1032
|
onRetry: f
|
|
1033
1033
|
}) {
|
|
1034
1034
|
const E = Number(g) + Number(t.some((s) => s.state === "connected"));
|
|
1035
|
-
return /* @__PURE__ */ a(
|
|
1035
|
+
return /* @__PURE__ */ a(Ge, { children: [
|
|
1036
1036
|
/* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
|
|
1037
1037
|
/* @__PURE__ */ a(
|
|
1038
1038
|
"button",
|
|
@@ -1070,27 +1070,27 @@ function Pr({
|
|
|
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:
|
|
1073
|
+
/* @__PURE__ */ e("div", { id: "profiles", className: `${c.chips}`, children: /* @__PURE__ */ e("span", { className: `${c.hint}`, children: C }) }),
|
|
1074
1074
|
/* @__PURE__ */ e(
|
|
1075
1075
|
"button",
|
|
1076
1076
|
{
|
|
1077
1077
|
type: "button",
|
|
1078
1078
|
id: "save",
|
|
1079
1079
|
className: `${c.text}`,
|
|
1080
|
-
onClick:
|
|
1080
|
+
onClick: x,
|
|
1081
1081
|
children: "+ Save current"
|
|
1082
1082
|
}
|
|
1083
1083
|
)
|
|
1084
1084
|
] }),
|
|
1085
1085
|
b !== "ready" ? /* @__PURE__ */ e(
|
|
1086
|
-
|
|
1086
|
+
Je,
|
|
1087
1087
|
{
|
|
1088
1088
|
status: b,
|
|
1089
1089
|
error: N,
|
|
1090
1090
|
onRetry: f,
|
|
1091
1091
|
loading: "Loading agents…"
|
|
1092
1092
|
}
|
|
1093
|
-
) : /* @__PURE__ */ a(
|
|
1093
|
+
) : /* @__PURE__ */ a(Ge, { children: [
|
|
1094
1094
|
d && /* @__PURE__ */ e("div", { className: `${c["ag-lead"]} ${c.guiding}`, children: /* @__PURE__ */ a(
|
|
1095
1095
|
"section",
|
|
1096
1096
|
{
|
|
@@ -1109,7 +1109,7 @@ function Pr({
|
|
|
1109
1109
|
type: "button",
|
|
1110
1110
|
className: `${c["guide-x"]}`,
|
|
1111
1111
|
"aria-label": "Dismiss setup guide",
|
|
1112
|
-
onClick:
|
|
1112
|
+
onClick: h,
|
|
1113
1113
|
children: /* @__PURE__ */ e(ue, { name: "close" })
|
|
1114
1114
|
}
|
|
1115
1115
|
)
|
|
@@ -1147,7 +1147,7 @@ function Pr({
|
|
|
1147
1147
|
s.state !== "connected"
|
|
1148
1148
|
),
|
|
1149
1149
|
children: [
|
|
1150
|
-
/* @__PURE__ */ e(
|
|
1150
|
+
/* @__PURE__ */ e(st, { name: s.icon }),
|
|
1151
1151
|
/* @__PURE__ */ e("span", { children: s.name })
|
|
1152
1152
|
]
|
|
1153
1153
|
},
|
|
@@ -1160,7 +1160,7 @@ function Pr({
|
|
|
1160
1160
|
}
|
|
1161
1161
|
) }),
|
|
1162
1162
|
t.length === 0 && /* @__PURE__ */ e(
|
|
1163
|
-
|
|
1163
|
+
Je,
|
|
1164
1164
|
{
|
|
1165
1165
|
loading: "",
|
|
1166
1166
|
empty: "No agents found. Install an agent to configure its models."
|
|
@@ -1180,7 +1180,7 @@ function Pr({
|
|
|
1180
1180
|
type: "button",
|
|
1181
1181
|
className: `${c["ag-handle"]}`,
|
|
1182
1182
|
"aria-label": `Arrange ${s.name}`,
|
|
1183
|
-
children: /* @__PURE__ */ e(
|
|
1183
|
+
children: /* @__PURE__ */ e(st, { name: s.icon })
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
1186
|
/* @__PURE__ */ a(
|
|
@@ -1221,8 +1221,8 @@ function Pr({
|
|
|
1221
1221
|
"aria-label": w.label,
|
|
1222
1222
|
value: w.value,
|
|
1223
1223
|
disabled: w.disabled || s.pending || !i,
|
|
1224
|
-
onChange: (
|
|
1225
|
-
children: w.options.map((
|
|
1224
|
+
onChange: (A) => i?.(s.id, w.id, A.target.value),
|
|
1225
|
+
children: w.options.map((A) => /* @__PURE__ */ e("option", { value: A.value, children: A.label }, A.value))
|
|
1226
1226
|
}
|
|
1227
1227
|
)
|
|
1228
1228
|
] }, w.id)),
|
|
@@ -1248,7 +1248,7 @@ function Pr({
|
|
|
1248
1248
|
{
|
|
1249
1249
|
className: `${c["ag-manage-button"]}`,
|
|
1250
1250
|
type: "button",
|
|
1251
|
-
onClick:
|
|
1251
|
+
onClick: $,
|
|
1252
1252
|
children: [
|
|
1253
1253
|
/* @__PURE__ */ e(ue, { name: "manage" }),
|
|
1254
1254
|
/* @__PURE__ */ e("span", { children: "Manage" })
|
|
@@ -1261,7 +1261,7 @@ function Pr({
|
|
|
1261
1261
|
{
|
|
1262
1262
|
type: "button",
|
|
1263
1263
|
className: `${c["ag-install-head"]}`,
|
|
1264
|
-
onClick:
|
|
1264
|
+
onClick: B,
|
|
1265
1265
|
children: [
|
|
1266
1266
|
/* @__PURE__ */ a("span", { children: [
|
|
1267
1267
|
"Install another agent",
|
|
@@ -1274,14 +1274,14 @@ function Pr({
|
|
|
1274
1274
|
] })
|
|
1275
1275
|
] });
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const kt = [
|
|
1278
1278
|
"Today",
|
|
1279
1279
|
"7 days",
|
|
1280
1280
|
"30 days",
|
|
1281
1281
|
"All",
|
|
1282
1282
|
"Custom"
|
|
1283
1283
|
];
|
|
1284
|
-
function
|
|
1284
|
+
function Er({
|
|
1285
1285
|
period: t,
|
|
1286
1286
|
onPeriodChange: n,
|
|
1287
1287
|
data: r,
|
|
@@ -1289,18 +1289,18 @@ function Ir({
|
|
|
1289
1289
|
refreshInterval: l = "5 s",
|
|
1290
1290
|
onRefreshIntervalChange: i,
|
|
1291
1291
|
customRange: d,
|
|
1292
|
-
onCustomRangeChange:
|
|
1292
|
+
onCustomRangeChange: h,
|
|
1293
1293
|
status: g = "ready",
|
|
1294
|
-
error:
|
|
1295
|
-
onRetry:
|
|
1294
|
+
error: x,
|
|
1295
|
+
onRetry: C
|
|
1296
1296
|
}) {
|
|
1297
|
-
const
|
|
1297
|
+
const $ = fa(It), [B, M] = Oe(!1), [b, N] = Oe(!1), f = g === "ready" ? r : null, E = Math.max(
|
|
1298
1298
|
1,
|
|
1299
1299
|
...f?.series.map((s) => s.calls) ?? []
|
|
1300
1300
|
);
|
|
1301
|
-
return /* @__PURE__ */ a(
|
|
1301
|
+
return /* @__PURE__ */ a(Ge, { children: [
|
|
1302
1302
|
/* @__PURE__ */ a("div", { className: `${c["usage-head"]}`, children: [
|
|
1303
|
-
|
|
1303
|
+
$,
|
|
1304
1304
|
/* @__PURE__ */ a(
|
|
1305
1305
|
"div",
|
|
1306
1306
|
{
|
|
@@ -1308,16 +1308,16 @@ function Ir({
|
|
|
1308
1308
|
id: "period",
|
|
1309
1309
|
ref: (s) => {
|
|
1310
1310
|
if (!s) return;
|
|
1311
|
-
const w = s.querySelector("button.on"),
|
|
1312
|
-
w &&
|
|
1313
|
-
|
|
1311
|
+
const w = s.querySelector("button.on"), A = s.querySelector(".thumb");
|
|
1312
|
+
w && A && (A.style.width = w.offsetWidth + "px", A.style.transform = `translateX(${w.offsetLeft}px)`, document.fonts.ready.then(() => {
|
|
1313
|
+
A.style.width = w.offsetWidth + "px", A.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
|
-
|
|
1320
|
+
kt.map((s) => /* @__PURE__ */ a(
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
1323
1323
|
type: "button",
|
|
@@ -1341,8 +1341,8 @@ function Ir({
|
|
|
1341
1341
|
type: "button",
|
|
1342
1342
|
className: `${c["usage-range-menu"]}`,
|
|
1343
1343
|
"aria-label": "Usage period",
|
|
1344
|
-
"aria-expanded":
|
|
1345
|
-
onClick: () => M(!
|
|
1344
|
+
"aria-expanded": B,
|
|
1345
|
+
onClick: () => M(!B),
|
|
1346
1346
|
children: [
|
|
1347
1347
|
/* @__PURE__ */ e("span", { children: t }),
|
|
1348
1348
|
/* @__PURE__ */ e(ue, { name: "down" })
|
|
@@ -1391,8 +1391,8 @@ function Ir({
|
|
|
1391
1391
|
type: "date",
|
|
1392
1392
|
value: d?.from ?? "",
|
|
1393
1393
|
max: d?.to || void 0,
|
|
1394
|
-
disabled: !
|
|
1395
|
-
onChange: (s) =>
|
|
1394
|
+
disabled: !h,
|
|
1395
|
+
onChange: (s) => h?.({
|
|
1396
1396
|
from: s.target.value,
|
|
1397
1397
|
to: d?.to ?? ""
|
|
1398
1398
|
})
|
|
@@ -1407,8 +1407,8 @@ function Ir({
|
|
|
1407
1407
|
type: "date",
|
|
1408
1408
|
value: d?.to ?? "",
|
|
1409
1409
|
min: d?.from || void 0,
|
|
1410
|
-
disabled: !
|
|
1411
|
-
onChange: (s) =>
|
|
1410
|
+
disabled: !h,
|
|
1411
|
+
onChange: (s) => h?.({
|
|
1412
1412
|
from: d?.from ?? "",
|
|
1413
1413
|
to: s.target.value
|
|
1414
1414
|
})
|
|
@@ -1416,13 +1416,13 @@ function Ir({
|
|
|
1416
1416
|
)
|
|
1417
1417
|
] })
|
|
1418
1418
|
] }),
|
|
1419
|
-
|
|
1419
|
+
B && /* @__PURE__ */ e(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
1422
|
className: `${c.pop}`,
|
|
1423
1423
|
role: "menu",
|
|
1424
1424
|
"aria-label": "Usage period",
|
|
1425
|
-
children:
|
|
1425
|
+
children: kt.map((s) => /* @__PURE__ */ a(
|
|
1426
1426
|
"button",
|
|
1427
1427
|
{
|
|
1428
1428
|
role: "menuitem",
|
|
@@ -1459,11 +1459,11 @@ function Ir({
|
|
|
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
1461
|
g !== "ready" ? /* @__PURE__ */ e(
|
|
1462
|
-
|
|
1462
|
+
Je,
|
|
1463
1463
|
{
|
|
1464
1464
|
status: g,
|
|
1465
|
-
error:
|
|
1466
|
-
onRetry:
|
|
1465
|
+
error: x,
|
|
1466
|
+
onRetry: C,
|
|
1467
1467
|
loading: "Loading usage…"
|
|
1468
1468
|
}
|
|
1469
1469
|
) : f ? f.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
|
|
@@ -1473,7 +1473,7 @@ function Ir({
|
|
|
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(
|
|
1476
|
+
) }) : /* @__PURE__ */ a(Ge, { children: [
|
|
1477
1477
|
/* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
|
|
1478
1478
|
["Calls", f.calls],
|
|
1479
1479
|
["Errors", f.errors],
|
|
@@ -1491,7 +1491,7 @@ function Ir({
|
|
|
1491
1491
|
children: [
|
|
1492
1492
|
/* @__PURE__ */ e("h2", { children: "Calls" }),
|
|
1493
1493
|
f.series.length === 0 ? /* @__PURE__ */ e(
|
|
1494
|
-
|
|
1494
|
+
Je,
|
|
1495
1495
|
{
|
|
1496
1496
|
loading: "",
|
|
1497
1497
|
empty: "No time-series breakdown available."
|
|
@@ -1527,7 +1527,7 @@ function Ir({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
)
|
|
1529
1529
|
] }) : /* @__PURE__ */ e(
|
|
1530
|
-
|
|
1530
|
+
Je,
|
|
1531
1531
|
{
|
|
1532
1532
|
loading: "",
|
|
1533
1533
|
empty: "Usage is unavailable. Refresh to try again."
|
|
@@ -1535,8 +1535,8 @@ function Ir({
|
|
|
1535
1535
|
)
|
|
1536
1536
|
] });
|
|
1537
1537
|
}
|
|
1538
|
-
const
|
|
1539
|
-
function
|
|
1538
|
+
const gt = { ...mt, ...yt };
|
|
1539
|
+
function Hr({
|
|
1540
1540
|
name: t,
|
|
1541
1541
|
icon: n,
|
|
1542
1542
|
detail: r,
|
|
@@ -1548,22 +1548,22 @@ function Er({
|
|
|
1548
1548
|
"button",
|
|
1549
1549
|
{
|
|
1550
1550
|
type: l,
|
|
1551
|
-
className: `${
|
|
1551
|
+
className: `${gt.tile}${o ? ` ${o}` : ""}`,
|
|
1552
1552
|
title: r || t,
|
|
1553
1553
|
...i,
|
|
1554
1554
|
children: [
|
|
1555
|
-
/* @__PURE__ */ e(
|
|
1556
|
-
/* @__PURE__ */ e("span", { className:
|
|
1555
|
+
/* @__PURE__ */ e(st, { name: n }),
|
|
1556
|
+
/* @__PURE__ */ e("span", { className: gt.nm, children: /* @__PURE__ */ e("span", { className: gt.n, children: t }) })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
);
|
|
1560
1560
|
}
|
|
1561
|
-
const
|
|
1561
|
+
const $t = {
|
|
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
|
|
1566
|
+
function Dr({
|
|
1567
1567
|
name: t,
|
|
1568
1568
|
icon: n,
|
|
1569
1569
|
showIcon: r = !0,
|
|
@@ -1572,7 +1572,7 @@ function Hr({
|
|
|
1572
1572
|
style: i,
|
|
1573
1573
|
...d
|
|
1574
1574
|
}) {
|
|
1575
|
-
const
|
|
1575
|
+
const h = $t[o] ?? $t.md, g = {
|
|
1576
1576
|
display: "inline-flex",
|
|
1577
1577
|
alignItems: "center",
|
|
1578
1578
|
gap: 10,
|
|
@@ -1580,91 +1580,91 @@ function Hr({
|
|
|
1580
1580
|
minWidth: 0,
|
|
1581
1581
|
color: "var(--rp-color-text, inherit)",
|
|
1582
1582
|
...i
|
|
1583
|
-
},
|
|
1583
|
+
}, x = {
|
|
1584
1584
|
minWidth: 0,
|
|
1585
|
-
fontSize:
|
|
1585
|
+
fontSize: h.text,
|
|
1586
1586
|
fontWeight: 600,
|
|
1587
1587
|
lineHeight: 1.4,
|
|
1588
1588
|
overflowWrap: "anywhere"
|
|
1589
|
-
},
|
|
1589
|
+
}, C = {
|
|
1590
1590
|
display: "inline-flex",
|
|
1591
1591
|
alignItems: "center",
|
|
1592
1592
|
justifyContent: "center",
|
|
1593
1593
|
flexShrink: 0,
|
|
1594
|
-
width:
|
|
1595
|
-
height:
|
|
1594
|
+
width: h.box,
|
|
1595
|
+
height: h.box,
|
|
1596
1596
|
borderRadius: 10,
|
|
1597
1597
|
background: "var(--rp-color-surface-raised, rgba(127,127,127,0.08))",
|
|
1598
|
-
fontSize:
|
|
1598
|
+
fontSize: h.icon,
|
|
1599
1599
|
lineHeight: 1
|
|
1600
1600
|
};
|
|
1601
1601
|
return /* @__PURE__ */ a("span", { className: l, style: g, ...d, children: [
|
|
1602
|
-
r ? /* @__PURE__ */ e("span", { style:
|
|
1603
|
-
t ? /* @__PURE__ */ e("span", { style:
|
|
1602
|
+
r ? /* @__PURE__ */ e("span", { style: C, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(st, { name: n }) }) : null,
|
|
1603
|
+
t ? /* @__PURE__ */ e("span", { style: x, children: t }) : null
|
|
1604
1604
|
] });
|
|
1605
1605
|
}
|
|
1606
|
-
const
|
|
1607
|
-
billing:
|
|
1608
|
-
inline:
|
|
1609
|
-
body:
|
|
1610
|
-
sheet:
|
|
1611
|
-
header:
|
|
1612
|
-
footer:
|
|
1613
|
-
titleIcon:
|
|
1614
|
-
heading:
|
|
1615
|
-
title:
|
|
1616
|
-
description:
|
|
1617
|
-
bodyWrap:
|
|
1618
|
-
scrollFade:
|
|
1619
|
-
section:
|
|
1620
|
-
fieldLabel:
|
|
1606
|
+
const wa = "rp_Billing-module_billing_jVpbPSwf", Ma = "rp_Billing-module_inline_Mf5K0TOB", ka = "rp_Billing-module_body_73T3WPhM", $a = "rp_Billing-module_sheet_uq-sE7Kj", xa = "rp_Billing-module_header_6ZibPvV0", Ca = "rp_Billing-module_footer_sZ8dMMt3", Aa = "rp_Billing-module_titleIcon_yvF5gUEf", La = "rp_Billing-module_heading_hXnE-5Dq", Sa = "rp_Billing-module_title_XVWBtjrY", Ba = "rp_Billing-module_description_15DMv8fm", Ra = "rp_Billing-module_bodyWrap_73GWDsL6", Fa = "rp_Billing-module_scrollFade_Vp55lLY8", Ta = "rp_Billing-module_section_CCEnjKJi", Pa = "rp_Billing-module_fieldLabel_j4TFB90Z", qa = "rp_Billing-module_amount_huNHfEM9", Ia = "rp_Billing-module_amountCurrency_5BAcrLkG", Ea = "rp_Billing-module_quickAmounts_-zXxHGvq", Ha = "rp_Billing-module_quickAmount_wZ1vL5t7", Da = "rp_Billing-module_quickAmountActive_UN-iKg7L", Oa = "rp_Billing-module_cashback_SEKfvhCV", Ua = "rp_Billing-module_cashbackHead_TeiHoLw6", za = "rp_Billing-module_cashbackRate_snXI6bxo", Xa = "rp_Billing-module_cashbackHint_8hFT1XBR", Ga = "rp_Billing-module_track_gUZMl3uW", Ya = "rp_Billing-module_trackDot_yY1N2NRt", ja = "rp_Billing-module_tiers_BavMzMhY", Wa = "rp_Billing-module_tier_HO96mY1F", Va = "rp_Billing-module_tierRate_vgFEdh-O", Ka = "rp_Billing-module_tierMin_N22iOx8J", Ja = "rp_Billing-module_tierFirst_6Hc74rSN", Za = "rp_Billing-module_tierMid_NeSUtEn1", Qa = "rp_Billing-module_tierLast_lE0S52qZ", en = "rp_Billing-module_tierCurrent_GctoON0O", tn = "rp_Billing-module_methodGroups_zpebVDsx", an = "rp_Billing-module_group_pHl7zEfy", nn = "rp_Billing-module_groupHead_P-SY4GHg", rn = "rp_Billing-module_groupTitle_wdOq-XTd", sn = "rp_Billing-module_groupBody_lrnARuI0", on = "rp_Billing-module_method_faV0uTen", ln = "rp_Billing-module_methodIcon_JUWyNcoC", cn = "rp_Billing-module_methodText_-dgM99xC", dn = "rp_Billing-module_methodLabel_5TAtp3w3", hn = "rp_Billing-module_methodDescription_DFZuV4o0", pn = "rp_Billing-module_methodFee_5X-xX3q5", mn = "rp_Billing-module_methodCheck_QhxGxyBe", un = "rp_Billing-module_checkIcon_5PuJJ6qi", gn = "rp_Billing-module_empty_XLKm1aHR", fn = "rp_Billing-module_region_LaGBn-om", bn = "rp_Billing-module_regionLabel_7ufpgJpv", vn = "rp_Billing-module_regionTrigger_V3TL-sZd", yn = "rp_Billing-module_regionValue_RRhFjyaZ", _n = "rp_Billing-module_regionGlobe_oSvgpNSR", Nn = "rp_Billing-module_optionGlobe_FVCNGrV9", wn = "rp_Billing-module_regionContent_644AhED-", Mn = "rp_Billing-module_regionHint_ioA4L3ju", kn = "rp_Billing-module_pay_htbzTpTf", $n = "rp_Billing-module_payPending_rNhFyReW", xn = "rp_Billing-module_error_VTbjGrSy", Cn = "rp_Billing-module_payLabel_9cFNb7Af", An = "rp_Billing-module_notice_uwuIHit3", S = {
|
|
1607
|
+
billing: wa,
|
|
1608
|
+
inline: Ma,
|
|
1609
|
+
body: ka,
|
|
1610
|
+
sheet: $a,
|
|
1611
|
+
header: xa,
|
|
1612
|
+
footer: Ca,
|
|
1613
|
+
titleIcon: Aa,
|
|
1614
|
+
heading: La,
|
|
1615
|
+
title: Sa,
|
|
1616
|
+
description: Ba,
|
|
1617
|
+
bodyWrap: Ra,
|
|
1618
|
+
scrollFade: Fa,
|
|
1619
|
+
section: Ta,
|
|
1620
|
+
fieldLabel: Pa,
|
|
1621
1621
|
amount: qa,
|
|
1622
|
-
amountCurrency:
|
|
1623
|
-
quickAmounts:
|
|
1624
|
-
quickAmount:
|
|
1625
|
-
quickAmountActive:
|
|
1626
|
-
cashback:
|
|
1627
|
-
cashbackHead:
|
|
1628
|
-
cashbackRate:
|
|
1629
|
-
cashbackHint:
|
|
1630
|
-
track:
|
|
1631
|
-
trackDot:
|
|
1632
|
-
tiers:
|
|
1633
|
-
tier:
|
|
1634
|
-
tierRate:
|
|
1635
|
-
tierMin:
|
|
1636
|
-
tierFirst:
|
|
1637
|
-
tierMid:
|
|
1638
|
-
tierLast:
|
|
1639
|
-
tierCurrent:
|
|
1640
|
-
methodGroups:
|
|
1641
|
-
group:
|
|
1642
|
-
groupHead:
|
|
1643
|
-
groupTitle:
|
|
1644
|
-
groupBody:
|
|
1645
|
-
method:
|
|
1646
|
-
methodIcon:
|
|
1647
|
-
methodText:
|
|
1648
|
-
methodLabel:
|
|
1649
|
-
methodDescription:
|
|
1650
|
-
methodFee:
|
|
1651
|
-
methodCheck:
|
|
1652
|
-
checkIcon:
|
|
1653
|
-
empty:
|
|
1654
|
-
region:
|
|
1655
|
-
regionLabel:
|
|
1656
|
-
regionTrigger:
|
|
1657
|
-
regionValue:
|
|
1658
|
-
regionGlobe:
|
|
1659
|
-
optionGlobe:
|
|
1660
|
-
regionContent:
|
|
1661
|
-
regionHint:
|
|
1662
|
-
pay:
|
|
1663
|
-
payPending:
|
|
1664
|
-
error:
|
|
1665
|
-
payLabel:
|
|
1666
|
-
notice:
|
|
1667
|
-
},
|
|
1622
|
+
amountCurrency: Ia,
|
|
1623
|
+
quickAmounts: Ea,
|
|
1624
|
+
quickAmount: Ha,
|
|
1625
|
+
quickAmountActive: Da,
|
|
1626
|
+
cashback: Oa,
|
|
1627
|
+
cashbackHead: Ua,
|
|
1628
|
+
cashbackRate: za,
|
|
1629
|
+
cashbackHint: Xa,
|
|
1630
|
+
track: Ga,
|
|
1631
|
+
trackDot: Ya,
|
|
1632
|
+
tiers: ja,
|
|
1633
|
+
tier: Wa,
|
|
1634
|
+
tierRate: Va,
|
|
1635
|
+
tierMin: Ka,
|
|
1636
|
+
tierFirst: Ja,
|
|
1637
|
+
tierMid: Za,
|
|
1638
|
+
tierLast: Qa,
|
|
1639
|
+
tierCurrent: en,
|
|
1640
|
+
methodGroups: tn,
|
|
1641
|
+
group: an,
|
|
1642
|
+
groupHead: nn,
|
|
1643
|
+
groupTitle: rn,
|
|
1644
|
+
groupBody: sn,
|
|
1645
|
+
method: on,
|
|
1646
|
+
methodIcon: ln,
|
|
1647
|
+
methodText: cn,
|
|
1648
|
+
methodLabel: dn,
|
|
1649
|
+
methodDescription: hn,
|
|
1650
|
+
methodFee: pn,
|
|
1651
|
+
methodCheck: mn,
|
|
1652
|
+
checkIcon: un,
|
|
1653
|
+
empty: gn,
|
|
1654
|
+
region: fn,
|
|
1655
|
+
regionLabel: bn,
|
|
1656
|
+
regionTrigger: vn,
|
|
1657
|
+
regionValue: yn,
|
|
1658
|
+
regionGlobe: _n,
|
|
1659
|
+
optionGlobe: Nn,
|
|
1660
|
+
regionContent: wn,
|
|
1661
|
+
regionHint: Mn,
|
|
1662
|
+
pay: kn,
|
|
1663
|
+
payPending: $n,
|
|
1664
|
+
error: xn,
|
|
1665
|
+
payLabel: Cn,
|
|
1666
|
+
notice: An
|
|
1667
|
+
}, Ln = {
|
|
1668
1668
|
title: "Top up",
|
|
1669
1669
|
amount: "Amount",
|
|
1670
1670
|
cashback: "Cashback",
|
|
@@ -1676,14 +1676,14 @@ const Na = "rp_Billing-module_billing_jVpbPSwf", wa = "rp_Billing-module_inline_
|
|
|
1676
1676
|
pending: "Preparing payment…",
|
|
1677
1677
|
empty: "No payment methods here."
|
|
1678
1678
|
};
|
|
1679
|
-
function
|
|
1679
|
+
function Sn(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
|
|
1686
|
+
function Or(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,7 +1691,7 @@ function Dr(t) {
|
|
|
1691
1691
|
)
|
|
1692
1692
|
) : "🌐";
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Bn(t, n) {
|
|
1695
1695
|
try {
|
|
1696
1696
|
return new Intl.NumberFormat(t, {
|
|
1697
1697
|
style: "currency",
|
|
@@ -1701,7 +1701,7 @@ function Sn(t, n) {
|
|
|
1701
1701
|
return n;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Et(t, n, r) {
|
|
1705
1705
|
try {
|
|
1706
1706
|
return new Intl.NumberFormat(t, {
|
|
1707
1707
|
style: "currency",
|
|
@@ -1712,7 +1712,7 @@ function It(t, n, r) {
|
|
|
1712
1712
|
return `${n} ${r.toFixed(2)}`;
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Rn(t, n, r) {
|
|
1716
1716
|
try {
|
|
1717
1717
|
return new Intl.NumberFormat(t, {
|
|
1718
1718
|
style: "currency",
|
|
@@ -1723,17 +1723,17 @@ function Bn(t, n, r) {
|
|
|
1723
1723
|
return `${n} ${Math.round(r)}`;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return t.next ? `Add ${
|
|
1726
|
+
function Fn(t) {
|
|
1727
|
+
return t.next ? `Add ${Et(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
|
|
1730
|
-
const [t, n] =
|
|
1731
|
-
return
|
|
1729
|
+
function Tn() {
|
|
1730
|
+
const [t, n] = Oe(null), [r, o] = Oe({ overflowing: !1, atEnd: !0 });
|
|
1731
|
+
return $e(() => {
|
|
1732
1732
|
if (!t) return;
|
|
1733
1733
|
const l = () => {
|
|
1734
|
-
const
|
|
1734
|
+
const h = t.scrollHeight - t.clientHeight > 1;
|
|
1735
1735
|
o({
|
|
1736
|
-
overflowing:
|
|
1736
|
+
overflowing: h,
|
|
1737
1737
|
atEnd: t.scrollTop + t.clientHeight >= t.scrollHeight - 1
|
|
1738
1738
|
});
|
|
1739
1739
|
};
|
|
@@ -1746,7 +1746,7 @@ function Fn() {
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}, [t]), [n, r.overflowing && !r.atEnd];
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const Ur = ({
|
|
1750
1750
|
locale: t = typeof navigator > "u" ? "en-US" : navigator.language,
|
|
1751
1751
|
countries: n,
|
|
1752
1752
|
cryptoMethods: r = [],
|
|
@@ -1754,12 +1754,12 @@ const Or = ({
|
|
|
1754
1754
|
tiers: l = [],
|
|
1755
1755
|
defaultCountryCode: i,
|
|
1756
1756
|
countryCode: d,
|
|
1757
|
-
onCountryChange:
|
|
1757
|
+
onCountryChange: h,
|
|
1758
1758
|
defaultAmount: g = 0,
|
|
1759
|
-
amount:
|
|
1760
|
-
onAmountChange:
|
|
1761
|
-
quickAmounts:
|
|
1762
|
-
defaultMethodId:
|
|
1759
|
+
amount: x,
|
|
1760
|
+
onAmountChange: C,
|
|
1761
|
+
quickAmounts: $ = [10, 25, 50, 100],
|
|
1762
|
+
defaultMethodId: B,
|
|
1763
1763
|
methodId: M,
|
|
1764
1764
|
onMethodChange: b,
|
|
1765
1765
|
minAmount: N = 0,
|
|
@@ -1767,100 +1767,100 @@ const Or = ({
|
|
|
1767
1767
|
title: E,
|
|
1768
1768
|
description: s,
|
|
1769
1769
|
copy: w,
|
|
1770
|
-
formatCashback:
|
|
1771
|
-
onPay:
|
|
1772
|
-
pending:
|
|
1770
|
+
formatCashback: A,
|
|
1771
|
+
onPay: T,
|
|
1772
|
+
pending: F = !1,
|
|
1773
1773
|
error: H,
|
|
1774
1774
|
children: ae,
|
|
1775
|
-
notice:
|
|
1776
|
-
variant:
|
|
1777
|
-
className:
|
|
1775
|
+
notice: X,
|
|
1776
|
+
variant: ie = "panel",
|
|
1777
|
+
className: W
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const Q = { ...
|
|
1780
|
-
() => i ??
|
|
1781
|
-
), [
|
|
1782
|
-
|
|
1783
|
-
),
|
|
1784
|
-
(
|
|
1785
|
-
) ?? n.find((
|
|
1786
|
-
const
|
|
1787
|
-
(
|
|
1788
|
-
),
|
|
1789
|
-
return
|
|
1790
|
-
}, [
|
|
1791
|
-
() => ee.flatMap((
|
|
1779
|
+
const Q = { ...Ln, ...w }, te = it(), Y = it(), ne = it(), [he, z] = Tn(), [v, q] = Oe(
|
|
1780
|
+
() => i ?? Sn(t) ?? n[0]?.code ?? ""
|
|
1781
|
+
), [p, _] = Oe(g), [y, I] = Oe(
|
|
1782
|
+
B
|
|
1783
|
+
), L = n.find(
|
|
1784
|
+
(u) => u.code === (d ?? v)
|
|
1785
|
+
) ?? n.find((u) => u.code === i) ?? n[0], O = x ?? p, P = L?.currency ?? "EUR", Z = Bn(t, P), ee = lt(() => {
|
|
1786
|
+
const u = (L?.groups ?? []).filter(
|
|
1787
|
+
(k) => k.methods.length > 0
|
|
1788
|
+
), m = r.length > 0 ? { id: "crypto", title: o, methods: r } : void 0;
|
|
1789
|
+
return m ? [...u, m] : [...u];
|
|
1790
|
+
}, [L, r, o]), oe = lt(
|
|
1791
|
+
() => ee.flatMap((u) => u.methods),
|
|
1792
1792
|
[ee]
|
|
1793
|
-
), ve =
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1796
|
-
(
|
|
1797
|
-
)?.id ??
|
|
1798
|
-
}, [M, y,
|
|
1799
|
-
() => [...l].sort((
|
|
1793
|
+
), ve = lt(() => {
|
|
1794
|
+
const u = M ?? y;
|
|
1795
|
+
return oe.find(
|
|
1796
|
+
(k) => k.id === u && !k.disabled
|
|
1797
|
+
)?.id ?? oe.find((k) => !k.disabled)?.id;
|
|
1798
|
+
}, [M, y, oe]), _e = oe.find((u) => u.id === ve), ce = lt(
|
|
1799
|
+
() => [...l].sort((u, m) => u.min - m.min),
|
|
1800
1800
|
[l]
|
|
1801
|
-
),
|
|
1802
|
-
(
|
|
1801
|
+
), pe = ce.reduce(
|
|
1802
|
+
(u, m) => O >= m.min ? m : u,
|
|
1803
1803
|
void 0
|
|
1804
|
-
),
|
|
1804
|
+
), xe = ce.find((u) => O < u.min), Fe = pe?.rate ?? 0, Ce = ce[ce.length - 1]?.min || 0, de = Math.max(0, Math.min(O, Ce)), Pe = Ce ? de / Ce * 100 : 0, Ae = {
|
|
1805
1805
|
amount: O,
|
|
1806
1806
|
rate: Fe,
|
|
1807
|
-
next:
|
|
1808
|
-
currency:
|
|
1807
|
+
next: xe,
|
|
1808
|
+
currency: P,
|
|
1809
1809
|
locale: t
|
|
1810
|
-
},
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
},
|
|
1814
|
-
const
|
|
1815
|
-
if (!
|
|
1816
|
-
d === void 0 && q(
|
|
1817
|
-
const
|
|
1818
|
-
...
|
|
1810
|
+
}, Le = A?.(Ae) ?? Fn(Ae), qe = (u) => {
|
|
1811
|
+
const m = Number.isFinite(u) ? Math.max(0, u) : 0;
|
|
1812
|
+
x === void 0 && _(m), C?.(m);
|
|
1813
|
+
}, Se = (u) => {
|
|
1814
|
+
const m = n.find((U) => U.code === u);
|
|
1815
|
+
if (!m) return;
|
|
1816
|
+
d === void 0 && q(u);
|
|
1817
|
+
const k = [
|
|
1818
|
+
...m.groups.flatMap((U) => U.methods),
|
|
1819
1819
|
...r
|
|
1820
1820
|
];
|
|
1821
|
-
if (!
|
|
1821
|
+
if (!k.some(
|
|
1822
1822
|
(U) => U.id === ve && !U.disabled
|
|
1823
1823
|
)) {
|
|
1824
|
-
const U =
|
|
1825
|
-
M === void 0 &&
|
|
1824
|
+
const U = k.find((K) => !K.disabled);
|
|
1825
|
+
M === void 0 && I(U?.id), U && b?.(U);
|
|
1826
1826
|
}
|
|
1827
|
-
|
|
1828
|
-
},
|
|
1829
|
-
const
|
|
1830
|
-
|
|
1831
|
-
},
|
|
1832
|
-
!
|
|
1827
|
+
h?.(m);
|
|
1828
|
+
}, R = (u) => {
|
|
1829
|
+
const m = oe.find((k) => k.id === u);
|
|
1830
|
+
m && (M === void 0 && I(u), b?.(m));
|
|
1831
|
+
}, D = !F && Number.isFinite(O) && O > 0 && O >= N && (f === void 0 || O <= f) && !!_e && !!L, V = () => {
|
|
1832
|
+
!D || !_e || !L || T?.({ amount: O, method: _e, country: L });
|
|
1833
1833
|
};
|
|
1834
1834
|
return /* @__PURE__ */ a(
|
|
1835
1835
|
"section",
|
|
1836
1836
|
{
|
|
1837
1837
|
className: re(
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1838
|
+
S.billing,
|
|
1839
|
+
ie === "inline" && S.inline,
|
|
1840
|
+
ie === "sheet" && S.sheet,
|
|
1841
|
+
W
|
|
1842
1842
|
),
|
|
1843
1843
|
"aria-labelledby": te,
|
|
1844
1844
|
children: [
|
|
1845
|
-
/* @__PURE__ */ a("header", { className:
|
|
1846
|
-
/* @__PURE__ */ e("span", { className:
|
|
1847
|
-
/* @__PURE__ */ a("div", { className:
|
|
1848
|
-
/* @__PURE__ */ e("h2", { className:
|
|
1849
|
-
s && /* @__PURE__ */ e("p", { className:
|
|
1845
|
+
/* @__PURE__ */ a("header", { className: S.header, children: [
|
|
1846
|
+
/* @__PURE__ */ e("span", { className: S.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(ze.Wallet, { size: 18 }) }),
|
|
1847
|
+
/* @__PURE__ */ a("div", { className: S.heading, children: [
|
|
1848
|
+
/* @__PURE__ */ e("h2", { className: S.title, id: te, children: E ?? Q.title }),
|
|
1849
|
+
s && /* @__PURE__ */ e("p", { className: S.description, children: s })
|
|
1850
1850
|
] })
|
|
1851
1851
|
] }),
|
|
1852
|
-
/* @__PURE__ */ a("div", { className:
|
|
1853
|
-
/* @__PURE__ */ a("div", { className:
|
|
1854
|
-
/* @__PURE__ */ a("div", { className:
|
|
1855
|
-
/* @__PURE__ */ e(
|
|
1856
|
-
/* @__PURE__ */ a(
|
|
1857
|
-
/* @__PURE__ */ e("span", { className:
|
|
1852
|
+
/* @__PURE__ */ a("div", { className: S.bodyWrap, children: [
|
|
1853
|
+
/* @__PURE__ */ a("div", { className: S.body, ref: he, children: [
|
|
1854
|
+
/* @__PURE__ */ a("div", { className: S.section, children: [
|
|
1855
|
+
/* @__PURE__ */ e(Nt, { className: S.fieldLabel, htmlFor: Y, children: Q.amount }),
|
|
1856
|
+
/* @__PURE__ */ a(wt.Root, { className: S.amount, disabled: F, children: [
|
|
1857
|
+
/* @__PURE__ */ e("span", { className: S.amountCurrency, "aria-hidden": "true", children: Z }),
|
|
1858
1858
|
/* @__PURE__ */ e(
|
|
1859
|
-
|
|
1859
|
+
wt.Control,
|
|
1860
1860
|
{
|
|
1861
|
-
disabled:
|
|
1862
|
-
id:
|
|
1863
|
-
className:
|
|
1861
|
+
disabled: F,
|
|
1862
|
+
id: Y,
|
|
1863
|
+
className: S.amountInput,
|
|
1864
1864
|
type: "number",
|
|
1865
1865
|
inputMode: "decimal",
|
|
1866
1866
|
min: N,
|
|
@@ -1868,58 +1868,58 @@ const Or = ({
|
|
|
1868
1868
|
step: "0.01",
|
|
1869
1869
|
placeholder: "0",
|
|
1870
1870
|
value: O === 0 ? "" : O,
|
|
1871
|
-
onChange: (
|
|
1872
|
-
const
|
|
1873
|
-
qe(Number.isFinite(
|
|
1871
|
+
onChange: (u) => {
|
|
1872
|
+
const m = Number.parseFloat(u.target.value);
|
|
1873
|
+
qe(Number.isFinite(m) ? m : 0);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
)
|
|
1877
1877
|
] }),
|
|
1878
|
-
|
|
1879
|
-
|
|
1878
|
+
$ && $.length > 0 && /* @__PURE__ */ e("div", { className: S.quickAmounts, children: $.map((u) => /* @__PURE__ */ a(
|
|
1879
|
+
J,
|
|
1880
1880
|
{
|
|
1881
1881
|
variant: "secondary",
|
|
1882
|
-
textVariant:
|
|
1882
|
+
textVariant: Vt.Button_Link_Extra_Small_1,
|
|
1883
1883
|
className: re(
|
|
1884
|
-
|
|
1885
|
-
O ===
|
|
1884
|
+
S.quickAmount,
|
|
1885
|
+
O === u && S.quickAmountActive
|
|
1886
1886
|
),
|
|
1887
|
-
"aria-pressed": O ===
|
|
1888
|
-
disabled:
|
|
1889
|
-
onClick: () => qe(
|
|
1887
|
+
"aria-pressed": O === u,
|
|
1888
|
+
disabled: F,
|
|
1889
|
+
onClick: () => qe(u),
|
|
1890
1890
|
children: [
|
|
1891
1891
|
"+",
|
|
1892
|
-
|
|
1892
|
+
u
|
|
1893
1893
|
]
|
|
1894
1894
|
},
|
|
1895
|
-
|
|
1895
|
+
u
|
|
1896
1896
|
)) })
|
|
1897
1897
|
] }),
|
|
1898
|
-
ce.length > 1 && /* @__PURE__ */ a("div", { className:
|
|
1899
|
-
/* @__PURE__ */ a("div", { className:
|
|
1898
|
+
ce.length > 1 && /* @__PURE__ */ a("div", { className: S.cashback, children: [
|
|
1899
|
+
/* @__PURE__ */ a("div", { className: S.cashbackHead, children: [
|
|
1900
1900
|
/* @__PURE__ */ e("span", { children: Q.cashback }),
|
|
1901
|
-
/* @__PURE__ */ a("strong", { className:
|
|
1901
|
+
/* @__PURE__ */ a("strong", { className: S.cashbackRate, children: [
|
|
1902
1902
|
Fe,
|
|
1903
1903
|
"%"
|
|
1904
1904
|
] })
|
|
1905
1905
|
] }),
|
|
1906
|
-
/* @__PURE__ */ e("p", { className:
|
|
1907
|
-
/* @__PURE__ */ a("div", { className:
|
|
1906
|
+
/* @__PURE__ */ e("p", { className: S.cashbackHint, children: Le }),
|
|
1907
|
+
/* @__PURE__ */ a("div", { className: S.track, children: [
|
|
1908
1908
|
/* @__PURE__ */ e(
|
|
1909
|
-
|
|
1909
|
+
Kt,
|
|
1910
1910
|
{
|
|
1911
|
-
className:
|
|
1912
|
-
value:
|
|
1913
|
-
max:
|
|
1911
|
+
className: S.progress,
|
|
1912
|
+
value: de,
|
|
1913
|
+
max: Ce || 1,
|
|
1914
1914
|
ariaLabel: Q.cashback
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
1918
1918
|
"span",
|
|
1919
1919
|
{
|
|
1920
|
-
className:
|
|
1920
|
+
className: S.trackDot,
|
|
1921
1921
|
style: {
|
|
1922
|
-
left: `calc(8px + (100% - 16px) * ${
|
|
1922
|
+
left: `calc(8px + (100% - 16px) * ${Pe / 100})`
|
|
1923
1923
|
},
|
|
1924
1924
|
"aria-hidden": "true"
|
|
1925
1925
|
}
|
|
@@ -1928,158 +1928,158 @@ const Or = ({
|
|
|
1928
1928
|
/* @__PURE__ */ e(
|
|
1929
1929
|
"div",
|
|
1930
1930
|
{
|
|
1931
|
-
className:
|
|
1931
|
+
className: S.tiers,
|
|
1932
1932
|
style: {
|
|
1933
1933
|
gridTemplateColumns: `repeat(${ce.length}, minmax(0, 1fr))`
|
|
1934
1934
|
},
|
|
1935
|
-
children: ce.map((
|
|
1935
|
+
children: ce.map((u, m) => /* @__PURE__ */ a(
|
|
1936
1936
|
"div",
|
|
1937
1937
|
{
|
|
1938
1938
|
className: re(
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1939
|
+
S.tier,
|
|
1940
|
+
m === 0 && S.tierFirst,
|
|
1941
|
+
m > 0 && m < ce.length - 1 && S.tierMid,
|
|
1942
|
+
m === ce.length - 1 && S.tierLast,
|
|
1943
|
+
u === pe && S.tierCurrent
|
|
1944
1944
|
),
|
|
1945
1945
|
children: [
|
|
1946
|
-
/* @__PURE__ */ a("span", { className:
|
|
1947
|
-
|
|
1946
|
+
/* @__PURE__ */ a("span", { className: S.tierRate, children: [
|
|
1947
|
+
u.rate,
|
|
1948
1948
|
"%"
|
|
1949
1949
|
] }),
|
|
1950
|
-
/* @__PURE__ */ e("span", { className:
|
|
1950
|
+
/* @__PURE__ */ e("span", { className: S.tierMin, children: Rn(t, P, u.min) })
|
|
1951
1951
|
]
|
|
1952
1952
|
},
|
|
1953
|
-
|
|
1953
|
+
u.min
|
|
1954
1954
|
))
|
|
1955
1955
|
}
|
|
1956
1956
|
)
|
|
1957
1957
|
] }),
|
|
1958
1958
|
/* @__PURE__ */ a(
|
|
1959
|
-
|
|
1959
|
+
Jt,
|
|
1960
1960
|
{
|
|
1961
|
-
disabled:
|
|
1961
|
+
disabled: F,
|
|
1962
1962
|
value: ve ?? "",
|
|
1963
|
-
onValueChange:
|
|
1963
|
+
onValueChange: R,
|
|
1964
1964
|
"aria-label": Q.methodLabel,
|
|
1965
|
-
className:
|
|
1965
|
+
className: S.methodGroups,
|
|
1966
1966
|
children: [
|
|
1967
|
-
ee.length === 0 && /* @__PURE__ */ e(
|
|
1968
|
-
ee.map((
|
|
1967
|
+
ee.length === 0 && /* @__PURE__ */ e(Zt, { className: S.empty, title: Q.empty }),
|
|
1968
|
+
ee.map((u) => /* @__PURE__ */ a(
|
|
1969
1969
|
"section",
|
|
1970
1970
|
{
|
|
1971
|
-
className:
|
|
1972
|
-
"aria-labelledby": `${te}-${
|
|
1971
|
+
className: S.group,
|
|
1972
|
+
"aria-labelledby": `${te}-${u.id}`,
|
|
1973
1973
|
children: [
|
|
1974
|
-
/* @__PURE__ */ a("div", { className:
|
|
1974
|
+
/* @__PURE__ */ a("div", { className: S.groupHead, children: [
|
|
1975
1975
|
/* @__PURE__ */ e(
|
|
1976
1976
|
"h3",
|
|
1977
1977
|
{
|
|
1978
|
-
className:
|
|
1979
|
-
id: `${te}-${
|
|
1980
|
-
children:
|
|
1978
|
+
className: S.groupTitle,
|
|
1979
|
+
id: `${te}-${u.id}`,
|
|
1980
|
+
children: u.title
|
|
1981
1981
|
}
|
|
1982
1982
|
),
|
|
1983
|
-
/* @__PURE__ */ e("span", { children:
|
|
1983
|
+
/* @__PURE__ */ e("span", { children: u.feeLabel ?? Q.fee })
|
|
1984
1984
|
] }),
|
|
1985
|
-
/* @__PURE__ */ e(
|
|
1986
|
-
|
|
1985
|
+
/* @__PURE__ */ e(Qt, { variant: "reference", className: S.groupBody, children: u.methods.map((m) => /* @__PURE__ */ a(
|
|
1986
|
+
ea,
|
|
1987
1987
|
{
|
|
1988
|
-
value:
|
|
1989
|
-
disabled:
|
|
1990
|
-
className:
|
|
1988
|
+
value: m.id,
|
|
1989
|
+
disabled: m.disabled,
|
|
1990
|
+
className: S.method,
|
|
1991
1991
|
children: [
|
|
1992
|
-
/* @__PURE__ */ e("span", { className:
|
|
1993
|
-
/* @__PURE__ */ a("span", { className:
|
|
1994
|
-
/* @__PURE__ */ a("span", { className:
|
|
1995
|
-
|
|
1996
|
-
|
|
1992
|
+
/* @__PURE__ */ e("span", { className: S.methodIcon, "aria-hidden": "true", children: m.icon ?? /* @__PURE__ */ e(ze.Card, { size: 22 }) }),
|
|
1993
|
+
/* @__PURE__ */ a("span", { className: S.methodText, children: [
|
|
1994
|
+
/* @__PURE__ */ a("span", { className: S.methodLabel, children: [
|
|
1995
|
+
m.label,
|
|
1996
|
+
m.badge && /* @__PURE__ */ e(ta, { children: m.badge })
|
|
1997
1997
|
] }),
|
|
1998
|
-
|
|
1998
|
+
m.description && /* @__PURE__ */ e("span", { className: S.methodDescription, children: m.description })
|
|
1999
1999
|
] }),
|
|
2000
|
-
|
|
2001
|
-
/* @__PURE__ */ e("span", { className:
|
|
2000
|
+
m.fee && /* @__PURE__ */ e("span", { className: S.methodFee, children: m.fee }),
|
|
2001
|
+
/* @__PURE__ */ e("span", { className: S.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(ze.Check, { size: 12, className: S.checkIcon }) })
|
|
2002
2002
|
]
|
|
2003
2003
|
},
|
|
2004
|
-
|
|
2004
|
+
m.id
|
|
2005
2005
|
)) })
|
|
2006
2006
|
]
|
|
2007
2007
|
},
|
|
2008
|
-
|
|
2008
|
+
u.id
|
|
2009
2009
|
))
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
2012
|
),
|
|
2013
2013
|
ae
|
|
2014
2014
|
] }),
|
|
2015
|
-
|
|
2015
|
+
z && /* @__PURE__ */ e("span", { className: S.scrollFade, "aria-hidden": "true" })
|
|
2016
2016
|
] }),
|
|
2017
|
-
/* @__PURE__ */ a("footer", { className:
|
|
2018
|
-
/* @__PURE__ */ a("div", { className:
|
|
2019
|
-
/* @__PURE__ */ e(
|
|
2017
|
+
/* @__PURE__ */ a("footer", { className: S.footer, children: [
|
|
2018
|
+
/* @__PURE__ */ a("div", { className: S.region, children: [
|
|
2019
|
+
/* @__PURE__ */ e(Nt, { className: S.regionLabel, htmlFor: ne, children: Q.region }),
|
|
2020
2020
|
/* @__PURE__ */ a(
|
|
2021
|
-
|
|
2021
|
+
aa,
|
|
2022
2022
|
{
|
|
2023
|
-
disabled:
|
|
2024
|
-
value:
|
|
2025
|
-
onValueChange:
|
|
2023
|
+
disabled: F || n.length === 0,
|
|
2024
|
+
value: L?.code ?? "",
|
|
2025
|
+
onValueChange: Se,
|
|
2026
2026
|
children: [
|
|
2027
2027
|
/* @__PURE__ */ a(
|
|
2028
|
-
|
|
2028
|
+
na,
|
|
2029
2029
|
{
|
|
2030
2030
|
id: ne,
|
|
2031
|
-
className:
|
|
2031
|
+
className: S.regionTrigger,
|
|
2032
2032
|
"aria-label": Q.region,
|
|
2033
2033
|
children: [
|
|
2034
|
-
/* @__PURE__ */ e(
|
|
2035
|
-
/* @__PURE__ */ e(
|
|
2036
|
-
/* @__PURE__ */ e(
|
|
2034
|
+
/* @__PURE__ */ e(ze.Globe, { size: 16, className: S.regionGlobe }),
|
|
2035
|
+
/* @__PURE__ */ e(ra, { className: S.regionValue }),
|
|
2036
|
+
/* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(ze.Down, { size: 16 }) })
|
|
2037
2037
|
]
|
|
2038
2038
|
}
|
|
2039
2039
|
),
|
|
2040
|
-
/* @__PURE__ */ e(
|
|
2041
|
-
|
|
2040
|
+
/* @__PURE__ */ e(sa, { children: /* @__PURE__ */ e(
|
|
2041
|
+
oa,
|
|
2042
2042
|
{
|
|
2043
2043
|
position: "popper",
|
|
2044
2044
|
sideOffset: 6,
|
|
2045
2045
|
align: "start",
|
|
2046
|
-
className:
|
|
2047
|
-
children: /* @__PURE__ */ e(
|
|
2048
|
-
/* @__PURE__ */ e(
|
|
2049
|
-
/* @__PURE__ */ e(
|
|
2050
|
-
/* @__PURE__ */ e(
|
|
2051
|
-
] },
|
|
2046
|
+
className: S.regionContent,
|
|
2047
|
+
children: /* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(ca, { children: n.map((u) => /* @__PURE__ */ a(da, { value: u.code, children: [
|
|
2048
|
+
/* @__PURE__ */ e(ze.Globe, { size: 15, className: S.optionGlobe }),
|
|
2049
|
+
/* @__PURE__ */ e(ha, { children: u.name }),
|
|
2050
|
+
/* @__PURE__ */ e(pa, {})
|
|
2051
|
+
] }, u.code)) }) })
|
|
2052
2052
|
}
|
|
2053
2053
|
) })
|
|
2054
2054
|
]
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
2057
|
-
/* @__PURE__ */ e("p", { className:
|
|
2057
|
+
/* @__PURE__ */ e("p", { className: S.regionHint, children: Q.regionHint })
|
|
2058
2058
|
] }),
|
|
2059
|
-
H && /* @__PURE__ */ a("p", { className:
|
|
2060
|
-
/* @__PURE__ */ e(
|
|
2059
|
+
H && /* @__PURE__ */ a("p", { className: S.error, role: "alert", children: [
|
|
2060
|
+
/* @__PURE__ */ e(ze.Close, { size: 14 }),
|
|
2061
2061
|
H
|
|
2062
2062
|
] }),
|
|
2063
2063
|
/* @__PURE__ */ e(
|
|
2064
|
-
|
|
2064
|
+
J,
|
|
2065
2065
|
{
|
|
2066
2066
|
variant: "primary",
|
|
2067
|
-
className: re(
|
|
2068
|
-
disabled: !
|
|
2069
|
-
onClick:
|
|
2070
|
-
children:
|
|
2071
|
-
/* @__PURE__ */ e(
|
|
2067
|
+
className: re(S.pay, F && S.payPending),
|
|
2068
|
+
disabled: !D,
|
|
2069
|
+
onClick: V,
|
|
2070
|
+
children: F ? /* @__PURE__ */ a(Ge, { children: [
|
|
2071
|
+
/* @__PURE__ */ e(ma, { label: Q.pending }),
|
|
2072
2072
|
/* @__PURE__ */ e("span", { children: Q.pending })
|
|
2073
|
-
] }) : /* @__PURE__ */ a(
|
|
2074
|
-
/* @__PURE__ */ a("span", { className:
|
|
2075
|
-
/* @__PURE__ */ e(
|
|
2073
|
+
] }) : /* @__PURE__ */ a(Ge, { children: [
|
|
2074
|
+
/* @__PURE__ */ a("span", { className: S.payLabel, children: [
|
|
2075
|
+
/* @__PURE__ */ e(ze.Card, { size: 16 }),
|
|
2076
2076
|
Q.pay
|
|
2077
2077
|
] }),
|
|
2078
|
-
/* @__PURE__ */ e("strong", { children:
|
|
2078
|
+
/* @__PURE__ */ e("strong", { children: Et(t, P, O) })
|
|
2079
2079
|
] })
|
|
2080
2080
|
}
|
|
2081
2081
|
),
|
|
2082
|
-
|
|
2082
|
+
X && /* @__PURE__ */ e("p", { className: S.notice, children: X })
|
|
2083
2083
|
] })
|
|
2084
2084
|
]
|
|
2085
2085
|
}
|
|
@@ -2093,20 +2093,20 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2096
|
+
}, xt = [
|
|
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
|
-
],
|
|
2103
|
+
], zr = ({
|
|
2104
2104
|
values: t,
|
|
2105
2105
|
labels: n,
|
|
2106
2106
|
stacked: r = !1,
|
|
2107
2107
|
label: o = "Daily token usage"
|
|
2108
2108
|
}) => {
|
|
2109
|
-
const l = Math.max(1, ...t), i = n ?? t.map((d,
|
|
2109
|
+
const l = Math.max(1, ...t), i = n ?? t.map((d, h) => String(h + 1));
|
|
2110
2110
|
return /* @__PURE__ */ a(
|
|
2111
2111
|
"div",
|
|
2112
2112
|
{
|
|
@@ -2124,12 +2124,12 @@ const Or = ({
|
|
|
2124
2124
|
{
|
|
2125
2125
|
className: Be["rp-bar-chart-bars"],
|
|
2126
2126
|
role: "img",
|
|
2127
|
-
"aria-label": `${o}: ${t.map((d,
|
|
2128
|
-
children: t.map((d,
|
|
2127
|
+
"aria-label": `${o}: ${t.map((d, h) => `${i[h] ?? h + 1}: ${d}`).join(", ")}`,
|
|
2128
|
+
children: t.map((d, h) => /* @__PURE__ */ a(
|
|
2129
2129
|
"div",
|
|
2130
2130
|
{
|
|
2131
2131
|
className: Be["rp-bar-chart-bar"],
|
|
2132
|
-
title: `${i[
|
|
2132
|
+
title: `${i[h] ?? h + 1}: ${d}`,
|
|
2133
2133
|
children: [
|
|
2134
2134
|
/* @__PURE__ */ e(
|
|
2135
2135
|
"i",
|
|
@@ -2149,7 +2149,7 @@ const Or = ({
|
|
|
2149
2149
|
),
|
|
2150
2150
|
style: {
|
|
2151
2151
|
height: `${d / l * 85 * (r ? 0.5 : 0.85)}%`,
|
|
2152
|
-
background: r ?
|
|
2152
|
+
background: r ? xt[h % xt.length] : void 0
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
2155
2155
|
),
|
|
@@ -2168,15 +2168,15 @@ const Or = ({
|
|
|
2168
2168
|
)
|
|
2169
2169
|
]
|
|
2170
2170
|
},
|
|
2171
|
-
|
|
2171
|
+
h
|
|
2172
2172
|
))
|
|
2173
2173
|
}
|
|
2174
2174
|
),
|
|
2175
|
-
/* @__PURE__ */ e("div", { className: Be["rp-bar-chart-labels"], children: i.map((d,
|
|
2175
|
+
/* @__PURE__ */ e("div", { className: Be["rp-bar-chart-labels"], children: i.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
|
|
2176
2176
|
]
|
|
2177
2177
|
}
|
|
2178
2178
|
);
|
|
2179
|
-
},
|
|
2179
|
+
}, Xe = {
|
|
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,34 +2189,34 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2192
|
+
}, Ct = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Xr = ({
|
|
2193
2193
|
levels: t,
|
|
2194
2194
|
columnLabels: n = [],
|
|
2195
2195
|
label: r = "Activity heatmap"
|
|
2196
2196
|
}) => {
|
|
2197
2197
|
const o = t[0]?.length ?? 0, l = o === 24;
|
|
2198
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2198
|
+
return /* @__PURE__ */ e("div", { className: Xe["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
|
|
2199
2199
|
"div",
|
|
2200
2200
|
{
|
|
2201
2201
|
className: re(
|
|
2202
|
-
l ?
|
|
2203
|
-
l &&
|
|
2202
|
+
l ? Xe["rp-heatmap-hours"] : Xe["rp-heatmap-grid"],
|
|
2203
|
+
l && Xe["rp-heatmap--hours"]
|
|
2204
2204
|
),
|
|
2205
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(
|
|
2209
|
-
/* @__PURE__ */ e("span", { className:
|
|
2208
|
+
children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(va, { children: [
|
|
2209
|
+
/* @__PURE__ */ e("span", { className: Xe["rp-heatmap-day"], children: d === 0 ? "" : Ct[d - 1] }),
|
|
2210
2210
|
Array.from(
|
|
2211
2211
|
{ length: o },
|
|
2212
|
-
(
|
|
2212
|
+
(h, g) => d === 0 ? /* @__PURE__ */ e("span", { className: Xe["rp-heatmap-month"], children: n[g] ?? "" }, g) : /* @__PURE__ */ e(
|
|
2213
2213
|
"i",
|
|
2214
2214
|
{
|
|
2215
2215
|
className: re(
|
|
2216
|
-
|
|
2217
|
-
|
|
2216
|
+
Xe["rp-heatmap-cell"],
|
|
2217
|
+
Xe[`rp-heatmap-level-${t[d - 1]?.[g] ?? 0}`]
|
|
2218
2218
|
),
|
|
2219
|
-
title: `${
|
|
2219
|
+
title: `${Ct[d - 1]}, ${l ? "hour" : "column"} ${g + 1}`
|
|
2220
2220
|
},
|
|
2221
2221
|
g
|
|
2222
2222
|
)
|
|
@@ -2224,47 +2224,47 @@ const Or = ({
|
|
|
2224
2224
|
] }, d))
|
|
2225
2225
|
}
|
|
2226
2226
|
) });
|
|
2227
|
-
},
|
|
2227
|
+
}, et = {
|
|
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
|
-
},
|
|
2234
|
+
}, Gr = ({ metrics: t }) => {
|
|
2235
2235
|
const n = re(
|
|
2236
|
-
|
|
2237
|
-
t.length === 6 &&
|
|
2236
|
+
et["rp-metric-strip"],
|
|
2237
|
+
t.length === 6 && et["rp-metric-strip--six"]
|
|
2238
2238
|
);
|
|
2239
|
-
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className:
|
|
2240
|
-
/* @__PURE__ */ e("b", { className:
|
|
2241
|
-
/* @__PURE__ */ e("span", { className:
|
|
2242
|
-
r.detail && /* @__PURE__ */ e("small", { className:
|
|
2239
|
+
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: et["rp-metric-strip-card"], children: [
|
|
2240
|
+
/* @__PURE__ */ e("b", { className: et["rp-metric-strip-value"], children: r.value }),
|
|
2241
|
+
/* @__PURE__ */ e("span", { className: et["rp-metric-strip-label"], children: r.label }),
|
|
2242
|
+
r.detail && /* @__PURE__ */ e("small", { className: et["rp-metric-strip-detail"], children: r.detail })
|
|
2243
2243
|
] }, r.label)) });
|
|
2244
|
-
},
|
|
2244
|
+
}, at = {
|
|
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
|
-
},
|
|
2250
|
+
}, Yr = ({
|
|
2251
2251
|
title: t,
|
|
2252
2252
|
actions: n,
|
|
2253
2253
|
children: r,
|
|
2254
2254
|
className: o,
|
|
2255
2255
|
footer: l
|
|
2256
2256
|
}) => {
|
|
2257
|
-
const i =
|
|
2257
|
+
const i = it(), d = re(at["rp-panel"], o);
|
|
2258
2258
|
return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": i, children: [
|
|
2259
|
-
/* @__PURE__ */ a("div", { className:
|
|
2260
|
-
/* @__PURE__ */ e("h2", { className:
|
|
2261
|
-
/* @__PURE__ */ e("span", { className:
|
|
2259
|
+
/* @__PURE__ */ a("div", { className: at["rp-panel-header"], children: [
|
|
2260
|
+
/* @__PURE__ */ e("h2", { className: at["rp-panel-title"], id: i, children: t }),
|
|
2261
|
+
/* @__PURE__ */ e("span", { className: at["rp-panel-spacer"] }),
|
|
2262
2262
|
n
|
|
2263
2263
|
] }),
|
|
2264
2264
|
r,
|
|
2265
|
-
l && /* @__PURE__ */ e("div", { className:
|
|
2265
|
+
l && /* @__PURE__ */ e("div", { className: at["rp-panel-footer"], children: l })
|
|
2266
2266
|
] });
|
|
2267
|
-
},
|
|
2267
|
+
}, De = {
|
|
2268
2268
|
"rp-ranking": "rp_Ranking-module_rp-ranking_J6gdvsdH",
|
|
2269
2269
|
"rp-ranking-row": "rp_Ranking-module_rp-ranking-row_gUD73n6g",
|
|
2270
2270
|
"rp-ranking-row-clickable": "rp_Ranking-module_rp-ranking-row-clickable_HfPGjDGs",
|
|
@@ -2274,29 +2274,29 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2277
|
+
}, jr = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
|
|
2278
2278
|
"div",
|
|
2279
2279
|
{
|
|
2280
|
-
className:
|
|
2280
|
+
className: De["rp-ranking"],
|
|
2281
2281
|
style: { "--rp-ranking-label-width": "140px" },
|
|
2282
2282
|
children: t.map((r) => /* @__PURE__ */ a(
|
|
2283
2283
|
"button",
|
|
2284
2284
|
{
|
|
2285
2285
|
type: "button",
|
|
2286
2286
|
className: re(
|
|
2287
|
-
|
|
2288
|
-
n &&
|
|
2287
|
+
De["rp-ranking-row"],
|
|
2288
|
+
n && De["rp-ranking-row-clickable"]
|
|
2289
2289
|
),
|
|
2290
2290
|
onClick: () => n?.(r),
|
|
2291
2291
|
disabled: !n,
|
|
2292
2292
|
children: [
|
|
2293
|
-
/* @__PURE__ */ a("span", { className:
|
|
2294
|
-
r.icon ? /* @__PURE__ */ e("span", { className:
|
|
2295
|
-
/* @__PURE__ */ e("span", { className:
|
|
2293
|
+
/* @__PURE__ */ a("span", { className: De["rp-ranking-label"], children: [
|
|
2294
|
+
r.icon ? /* @__PURE__ */ e("span", { className: De["rp-ranking-icon"], "aria-hidden": "true", children: r.icon }) : null,
|
|
2295
|
+
/* @__PURE__ */ e("span", { className: De["rp-ranking-name"], title: r.name, children: r.name })
|
|
2296
2296
|
] }),
|
|
2297
|
-
/* @__PURE__ */ e("span", { className:
|
|
2298
|
-
/* @__PURE__ */ e("span", { className:
|
|
2299
|
-
/* @__PURE__ */ e("span", { className:
|
|
2297
|
+
/* @__PURE__ */ e("span", { className: De["rp-ranking-track"], children: /* @__PURE__ */ e("i", { style: { width: `${Math.max(0, Math.min(100, r.share))}%` } }) }),
|
|
2298
|
+
/* @__PURE__ */ e("span", { className: De["rp-ranking-value"], children: r.value }),
|
|
2299
|
+
/* @__PURE__ */ e("span", { className: De["rp-ranking-cost"], children: r.cost })
|
|
2300
2300
|
]
|
|
2301
2301
|
},
|
|
2302
2302
|
r.name
|
|
@@ -2315,7 +2315,7 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2318
|
+
}, Pn = [
|
|
2319
2319
|
"Time",
|
|
2320
2320
|
"Agent",
|
|
2321
2321
|
"Requested",
|
|
@@ -2324,7 +2324,7 @@ const Or = ({
|
|
|
2324
2324
|
"Out",
|
|
2325
2325
|
"Cost",
|
|
2326
2326
|
"Status"
|
|
2327
|
-
],
|
|
2327
|
+
], Wr = ({ rows: t }) => /* @__PURE__ */ e(
|
|
2328
2328
|
"div",
|
|
2329
2329
|
{
|
|
2330
2330
|
className: ye["rp-request-table-scroll"],
|
|
@@ -2332,7 +2332,7 @@ const Or = ({
|
|
|
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:
|
|
2335
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Pn.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 }),
|
|
@@ -2379,7 +2379,7 @@ const Or = ({
|
|
|
2379
2379
|
] }, n.id)) })
|
|
2380
2380
|
] })
|
|
2381
2381
|
}
|
|
2382
|
-
),
|
|
2382
|
+
), We = {
|
|
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,12 +2387,12 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2390
|
+
}, Vr = ({ values: t, labels: n }) => {
|
|
2391
2391
|
const r = Math.max(1, ...t);
|
|
2392
2392
|
return /* @__PURE__ */ e(
|
|
2393
2393
|
"div",
|
|
2394
2394
|
{
|
|
2395
|
-
className:
|
|
2395
|
+
className: We["rp-session-shape"],
|
|
2396
2396
|
style: {
|
|
2397
2397
|
gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
|
|
2398
2398
|
},
|
|
@@ -2402,28 +2402,28 @@ const Or = ({
|
|
|
2402
2402
|
"div",
|
|
2403
2403
|
{
|
|
2404
2404
|
className: re(
|
|
2405
|
-
|
|
2406
|
-
o === r &&
|
|
2405
|
+
We["rp-session-shape-col"],
|
|
2406
|
+
o === r && We["rp-session-shape-col--peak"]
|
|
2407
2407
|
),
|
|
2408
2408
|
children: [
|
|
2409
|
-
/* @__PURE__ */ a("div", { className:
|
|
2410
|
-
/* @__PURE__ */ e("b", { className:
|
|
2409
|
+
/* @__PURE__ */ a("div", { className: We["rp-session-shape-plot"], children: [
|
|
2410
|
+
/* @__PURE__ */ e("b", { className: We["rp-session-shape-count"], children: o }),
|
|
2411
2411
|
/* @__PURE__ */ e(
|
|
2412
2412
|
"i",
|
|
2413
2413
|
{
|
|
2414
|
-
className:
|
|
2414
|
+
className: We["rp-session-shape-bar"],
|
|
2415
2415
|
style: { height: `${o / r * 110}px` }
|
|
2416
2416
|
}
|
|
2417
2417
|
)
|
|
2418
2418
|
] }),
|
|
2419
|
-
/* @__PURE__ */ e("span", { className:
|
|
2419
|
+
/* @__PURE__ */ e("span", { className: We["rp-session-shape-label"], children: n[l] })
|
|
2420
2420
|
]
|
|
2421
2421
|
},
|
|
2422
2422
|
l
|
|
2423
2423
|
))
|
|
2424
2424
|
}
|
|
2425
2425
|
);
|
|
2426
|
-
},
|
|
2426
|
+
}, Ne = {
|
|
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,175 +2437,175 @@ const Or = ({
|
|
|
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
|
-
},
|
|
2440
|
+
}, Kr = ({ items: t }) => /* @__PURE__ */ e("div", { className: Ne["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
|
|
2441
2441
|
"div",
|
|
2442
2442
|
{
|
|
2443
2443
|
className: re(
|
|
2444
|
-
|
|
2445
|
-
|
|
2444
|
+
Ne["rp-usage-list-row"],
|
|
2445
|
+
Ne["rp-usage-list-row--stat"]
|
|
2446
2446
|
),
|
|
2447
2447
|
children: [
|
|
2448
|
-
/* @__PURE__ */ e("span", { className:
|
|
2449
|
-
/* @__PURE__ */ a("div", { className:
|
|
2450
|
-
/* @__PURE__ */ e("div", { className:
|
|
2451
|
-
/* @__PURE__ */ e("div", { className:
|
|
2448
|
+
/* @__PURE__ */ e("span", { className: Ne["rp-usage-list-icon"], "aria-hidden": "true", children: n.icon ?? /* @__PURE__ */ e("span", { className: Ne["rp-usage-list-fallback-icon"] }) }),
|
|
2449
|
+
/* @__PURE__ */ a("div", { className: Ne["rp-usage-list-who"], children: [
|
|
2450
|
+
/* @__PURE__ */ e("div", { className: Ne["rp-usage-list-name"], children: n.name }),
|
|
2451
|
+
/* @__PURE__ */ e("div", { className: Ne["rp-usage-list-sub"], children: n.detail })
|
|
2452
2452
|
] }),
|
|
2453
|
-
/* @__PURE__ */ e("span", { className:
|
|
2454
|
-
/* @__PURE__ */ a("span", { className:
|
|
2455
|
-
/* @__PURE__ */ e("b", { className:
|
|
2456
|
-
/* @__PURE__ */ e("small", { className:
|
|
2453
|
+
/* @__PURE__ */ e("span", { className: Ne["rp-usage-list-share"], children: /* @__PURE__ */ e("i", { style: { width: `${n.share}%` } }) }),
|
|
2454
|
+
/* @__PURE__ */ a("span", { className: Ne["rp-usage-list-num"], children: [
|
|
2455
|
+
/* @__PURE__ */ e("b", { className: Ne["rp-usage-list-value"], children: n.value }),
|
|
2456
|
+
/* @__PURE__ */ e("small", { className: Ne["rp-usage-list-breakdown"], children: n.breakdown })
|
|
2457
2457
|
] }),
|
|
2458
|
-
/* @__PURE__ */ e("span", { className:
|
|
2458
|
+
/* @__PURE__ */ e("span", { className: Ne["rp-usage-list-cost"], children: n.cost })
|
|
2459
2459
|
]
|
|
2460
2460
|
},
|
|
2461
2461
|
n.name
|
|
2462
2462
|
)) }), qn = {
|
|
2463
2463
|
"rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
|
|
2464
2464
|
};
|
|
2465
|
-
function
|
|
2465
|
+
function Ht(t, n) {
|
|
2466
2466
|
const r = Re(null), o = Re(n ?? (t ? 7 : 14));
|
|
2467
|
-
return
|
|
2467
|
+
return $e(() => {
|
|
2468
2468
|
o.current = n ?? (t ? 7 : 14);
|
|
2469
|
-
}, [n, t]),
|
|
2469
|
+
}, [n, t]), $e(() => {
|
|
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
|
|
2475
|
-
let g = 0,
|
|
2474
|
+
const h = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2475
|
+
let g = 0, x = 0, C = 0, $ = !0, B = [], M = null;
|
|
2476
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),
|
|
2477
|
+
let f = 0, E = 0, s = new Float32Array(0), w = new Float32Array(0), A = 0, T = 0, F = null, H = null;
|
|
2478
2478
|
const ae = () => {
|
|
2479
|
-
if (
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2482
|
-
const y = Math.hypot(
|
|
2479
|
+
if (F) {
|
|
2480
|
+
const p = (F.targetX - F.x) * 0.22, _ = (F.targetY - F.y) * 0.22;
|
|
2481
|
+
F.x += p, F.y += _;
|
|
2482
|
+
const y = Math.hypot(p, _);
|
|
2483
2483
|
if (y > 0.02) {
|
|
2484
|
-
const
|
|
2485
|
-
for (let
|
|
2486
|
-
for (let
|
|
2487
|
-
const ee =
|
|
2488
|
-
w[
|
|
2484
|
+
const I = F.x / N + 1, L = F.y / N + 1, O = Math.min(y, 12) * 0.065;
|
|
2485
|
+
for (let P = Math.max(1, Math.floor(L - 7)); P < Math.min(E - 1, L + 8); P++)
|
|
2486
|
+
for (let Z = Math.max(1, Math.floor(I - 7)); Z < Math.min(f - 1, I + 8); Z++) {
|
|
2487
|
+
const ee = Z - I, oe = P - L, ve = (ee * p + oe * _) / y;
|
|
2488
|
+
w[P * f + Z] += ve * Math.exp(-(ee * ee + oe * oe) / 9) * O;
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
for (let
|
|
2492
|
+
for (let p = 1; p < E - 1; p++)
|
|
2493
2493
|
for (let _ = 1; _ < f - 1; _++) {
|
|
2494
|
-
const y =
|
|
2495
|
-
w[y] = (w[y] +
|
|
2494
|
+
const y = p * f + _, I = s[y - 1] + s[y + 1] + s[y - f] + s[y + f] - 4 * s[y], L = Math.min(_, p, f - 1 - _, E - 1 - p);
|
|
2495
|
+
w[y] = (w[y] + I * 0.32) * (L < 8 ? 0.88 : 0.985);
|
|
2496
2496
|
}
|
|
2497
|
-
for (let
|
|
2498
|
-
},
|
|
2499
|
-
const y = Math.max(0, Math.min(f - 2,
|
|
2500
|
-
return (s[ee] * (1 -
|
|
2501
|
-
},
|
|
2502
|
-
if (
|
|
2503
|
-
|
|
2497
|
+
for (let p = 0; p < s.length; p++) s[p] += w[p];
|
|
2498
|
+
}, X = (p, _) => {
|
|
2499
|
+
const y = Math.max(0, Math.min(f - 2, p / N + 1)), I = Math.max(0, Math.min(E - 2, _ / N + 1)), L = Math.floor(y), O = Math.floor(I), P = y - L, Z = I - O, ee = O * f + L;
|
|
2500
|
+
return (s[ee] * (1 - P) + s[ee + 1] * P) * (1 - Z) + (s[ee + f] * (1 - P) + s[ee + f + 1] * P) * Z;
|
|
2501
|
+
}, ie = (p) => {
|
|
2502
|
+
if (!$ || document.hidden) {
|
|
2503
|
+
C = 0;
|
|
2504
2504
|
return;
|
|
2505
2505
|
}
|
|
2506
|
-
if (
|
|
2507
|
-
|
|
2508
|
-
else for (;
|
|
2509
|
-
ae(),
|
|
2510
|
-
i.clearRect(0, 0, g,
|
|
2511
|
-
const _ = o.current, y = _ / 2,
|
|
2512
|
-
for (let
|
|
2513
|
-
for (let
|
|
2514
|
-
let
|
|
2515
|
-
if (M && !
|
|
2516
|
-
const
|
|
2506
|
+
if (T += Math.min(50, A ? p - A : 0), A = p, h.matches)
|
|
2507
|
+
T = 0;
|
|
2508
|
+
else for (; T >= 1e3 / 60; )
|
|
2509
|
+
ae(), T -= 1e3 / 60;
|
|
2510
|
+
i.clearRect(0, 0, g, x), B = B.filter((L) => p - L.time < 2400);
|
|
2511
|
+
const _ = o.current, y = _ / 2, I = _ * 0.25;
|
|
2512
|
+
for (let L = y, O = 0; L < x; L += _, O++)
|
|
2513
|
+
for (let P = y + O % 2 * _ / 2; P < g; P += _) {
|
|
2514
|
+
let Z = 0, ee = 0, oe = 0;
|
|
2515
|
+
if (M && !h.matches) {
|
|
2516
|
+
const k = (p - M.time) / 1e3, G = (P - g / 2) / (g * 0.58), U = (L - x * 0.42) / (x * 0.7), K = Math.hypot(G, U), j = 0.22 + 0.98 * Math.exp(-K * K * 2.1), le = Math.max(
|
|
2517
2517
|
0,
|
|
2518
|
-
Math.min(
|
|
2519
|
-
),
|
|
2520
|
-
|
|
2518
|
+
Math.min(k, 2.4) - Math.min(0.045, K * 0.025)
|
|
2519
|
+
), se = 1.55 * (1 - Math.exp(-le / 0.12)) * j;
|
|
2520
|
+
oe = G * 210 * se, ee = -260 * se * (1 - 0.3 * Math.tanh(U));
|
|
2521
2521
|
}
|
|
2522
|
-
if (!
|
|
2523
|
-
for (const
|
|
2524
|
-
const
|
|
2525
|
-
if (
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2522
|
+
if (!h.matches)
|
|
2523
|
+
for (const k of B) {
|
|
2524
|
+
const G = (p - k.time) / 1e3, U = Math.hypot(P - k.x, L - k.y);
|
|
2525
|
+
if (G < 0) continue;
|
|
2526
|
+
const K = U - G * 320;
|
|
2527
|
+
Z += Math.sin(K * 0.065) * Math.exp(-K * K / 13e3) * Math.max(0, 1 - G / 2.4) * 11;
|
|
2528
2528
|
}
|
|
2529
|
-
const ve =
|
|
2530
|
-
-Math.pow((
|
|
2531
|
-
) * 0.55, Te = Math.hypot(ce,
|
|
2529
|
+
const ve = h.matches ? 0 : X(P + N, L) - X(P - N, L), _e = h.matches ? 0 : X(P, L + N) - X(P, L - N), ce = 12 * Math.tanh(ve * 0.65), pe = 12 * Math.tanh(_e * 0.65), xe = Math.pow(Math.max(0, 1 - L / x), 0.6), Fe = 1 - Math.exp(
|
|
2530
|
+
-Math.pow((P - g / 2) / (g * 0.28), 2) - Math.pow((L - x * 0.38) / (x * 0.24), 2)
|
|
2531
|
+
) * 0.55, Te = Math.hypot(ce, pe);
|
|
2532
2532
|
if (t) {
|
|
2533
|
-
const
|
|
2534
|
-
let
|
|
2535
|
-
-((
|
|
2533
|
+
const k = Math.abs(X(P, L)) * 0.12 + Te * 0.035 + Math.abs(Z) * 0.035;
|
|
2534
|
+
let G = H ? Math.exp(
|
|
2535
|
+
-((P - H.x) ** 2 + (L - H.y) ** 2) / (2 * 24 ** 2)
|
|
2536
2536
|
) : 0, U = 0;
|
|
2537
|
-
if (!
|
|
2538
|
-
for (const
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
Math.exp(-(
|
|
2543
|
-
|
|
2544
|
-
), U = Math.max(U,
|
|
2537
|
+
if (!h.matches)
|
|
2538
|
+
for (const K of B) {
|
|
2539
|
+
const j = (p - K.time) / 1e3, le = Math.hypot(P - K.x, L - K.y), se = 32 + 64 * Math.min(1, j / 0.3), fe = Math.max(0, 1 - j / 2.4), me = Math.exp(-((le - j * 320) ** 2) / (2 * 36 ** 2)) * fe;
|
|
2540
|
+
G = Math.max(
|
|
2541
|
+
G,
|
|
2542
|
+
Math.exp(-(le ** 2) / (2 * se ** 2)) * fe,
|
|
2543
|
+
me
|
|
2544
|
+
), U = Math.max(U, me);
|
|
2545
2545
|
}
|
|
2546
|
-
i.globalAlpha = Math.min(0.28, 0.1 +
|
|
2547
|
-
|
|
2548
|
-
|
|
2546
|
+
i.globalAlpha = Math.min(0.28, 0.1 + k * 0.12 + U * 0.12) * G, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
|
|
2547
|
+
P + Z * 0.4 + ce * 0.25,
|
|
2548
|
+
L + Z + pe * 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
|
|
2555
|
+
const Ce = Z * 0.055 + Math.tanh((ve - _e) * 0.2) * 0.18, de = I + Math.abs(Z) * 0.16 + Te * 0.08, Pe = Math.sin(P * 12.9898 + L * 78.233) * 43758.5453, Ae = Pe - Math.floor(Pe), Le = p / 1e3, qe = Math.sin(P * 39.346 + L * 11.135) * 24634.6345, Se = qe - Math.floor(qe), R = Le / (3 + Se * 5) + Se * 17, D = R - Math.floor(R), V = D < 0.32 ? Math.pow(Math.sin(Math.PI * D / 0.32), 2) : 0, u = Ae < 0.22, m = h.matches || !u ? 1 : 1 - 0.98 * V;
|
|
2556
2556
|
i.save(), i.translate(
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
), i.rotate(
|
|
2557
|
+
P + Z * 0.4 + ce + oe,
|
|
2558
|
+
L + Z + pe + ee
|
|
2559
|
+
), i.rotate(Ce), i.globalAlpha = Math.min(
|
|
2560
2560
|
1,
|
|
2561
2561
|
Math.min(
|
|
2562
2562
|
0.95,
|
|
2563
|
-
0.38 +
|
|
2564
|
-
) *
|
|
2565
|
-
), i.strokeStyle = "#f5f8ff", i.lineWidth =
|
|
2563
|
+
0.38 + Ae * 0.22 + (u ? 0.32 : 0) + Math.abs(Z) * 0.045 + Te * 0.018
|
|
2564
|
+
) * xe * Fe * m
|
|
2565
|
+
), i.strokeStyle = "#f5f8ff", i.lineWidth = I * (u ? 0.357 : 0.3), i.beginPath(), i.moveTo(-de, 0), i.lineTo(de, 0), i.moveTo(0, -de), i.lineTo(0, de), i.stroke(), i.restore();
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2568
|
-
},
|
|
2569
|
-
cancelAnimationFrame(
|
|
2567
|
+
C = $ && !document.hidden && !h.matches ? requestAnimationFrame(ie) : 0;
|
|
2568
|
+
}, W = () => {
|
|
2569
|
+
cancelAnimationFrame(C), C = 0, A = 0, $ && !document.hidden && ie(performance.now());
|
|
2570
2570
|
}, Q = () => {
|
|
2571
|
-
const
|
|
2572
|
-
g =
|
|
2571
|
+
const p = l.getBoundingClientRect();
|
|
2572
|
+
g = p.width, x = p.height, f = Math.ceil(g / N) + 3, E = Math.ceil(x / N) + 3, s = new Float32Array(f * E), w = new Float32Array(f * E), F = null, T = 0;
|
|
2573
2573
|
const _ = Math.min(devicePixelRatio || 1, 2);
|
|
2574
|
-
l.width = g * _, l.height =
|
|
2574
|
+
l.width = g * _, l.height = x * _, i.setTransform(_, 0, 0, _, 0, 0), W();
|
|
2575
2575
|
};
|
|
2576
2576
|
let te = 0;
|
|
2577
|
-
const
|
|
2578
|
-
if (
|
|
2577
|
+
const Y = (p) => {
|
|
2578
|
+
if (h.matches || !b.matches || p.pointerType === "touch")
|
|
2579
2579
|
return;
|
|
2580
|
-
if (!t && (performance.now() < te ||
|
|
2581
|
-
|
|
2580
|
+
if (!t && (performance.now() < te || p.target.closest("#hero-download"))) {
|
|
2581
|
+
F = null;
|
|
2582
2582
|
return;
|
|
2583
2583
|
}
|
|
2584
|
-
const _ = l.getBoundingClientRect(), y =
|
|
2585
|
-
H = { x: y, y:
|
|
2584
|
+
const _ = l.getBoundingClientRect(), y = p.clientX - _.left, I = p.clientY - _.top;
|
|
2585
|
+
H = { x: y, y: I }, F ? (F.targetX = y, F.targetY = I) : F = { x: t ? y - 8 : y, y: I, targetX: y, targetY: I }, C || W();
|
|
2586
2586
|
}, ne = () => {
|
|
2587
|
-
|
|
2588
|
-
},
|
|
2589
|
-
if (
|
|
2587
|
+
F = null, H = null;
|
|
2588
|
+
}, he = (p) => {
|
|
2589
|
+
if (h.matches || p.button !== 0 || p.target.closest("a,button,input,select"))
|
|
2590
2590
|
return;
|
|
2591
|
-
const _ = l.getBoundingClientRect(), y =
|
|
2591
|
+
const _ = l.getBoundingClientRect(), y = p.clientX - _.left, I = p.clientY - _.top;
|
|
2592
2592
|
if (t)
|
|
2593
|
-
|
|
2593
|
+
B.push({ x: y, y: I, time: performance.now() }), B = B.slice(-5);
|
|
2594
2594
|
else {
|
|
2595
|
-
const
|
|
2596
|
-
for (let
|
|
2597
|
-
for (let ee = Math.max(1, Math.floor(
|
|
2598
|
-
const
|
|
2595
|
+
const L = y / N + 1, O = I / N + 1, P = 3;
|
|
2596
|
+
for (let Z = Math.max(1, Math.floor(O - P * 3)); Z < Math.min(E - 1, O + P * 3); Z++)
|
|
2597
|
+
for (let ee = Math.max(1, Math.floor(L - P * 3)); ee < Math.min(f - 1, L + P * 3); ee++) {
|
|
2598
|
+
const oe = ((ee - L) ** 2 + (Z - O) ** 2) / P ** 2, ve = (1 - oe) * Math.exp(-oe), _e = Z * f + ee;
|
|
2599
2599
|
w[_e] = Math.max(
|
|
2600
2600
|
-4,
|
|
2601
2601
|
Math.min(4, w[_e] - ve * 2.4)
|
|
2602
2602
|
);
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2607
|
-
if (t ||
|
|
2608
|
-
const _ =
|
|
2605
|
+
C || W();
|
|
2606
|
+
}, z = (p) => {
|
|
2607
|
+
if (t || h.matches) return;
|
|
2608
|
+
const _ = p.detail;
|
|
2609
2609
|
if (_.cancel) {
|
|
2610
2610
|
M = null, te = 0;
|
|
2611
2611
|
return;
|
|
@@ -2617,27 +2617,27 @@ function Et(t, n) {
|
|
|
2617
2617
|
if (_.progress > 0) return;
|
|
2618
2618
|
const y = d.querySelector("#hero-download");
|
|
2619
2619
|
if (!y) return;
|
|
2620
|
-
const
|
|
2620
|
+
const I = l.getBoundingClientRect(), L = y.getBoundingClientRect(), O = performance.now();
|
|
2621
2621
|
te = O + 3220, M = {
|
|
2622
|
-
x:
|
|
2623
|
-
y:
|
|
2622
|
+
x: L.left + L.width / 2 - I.left,
|
|
2623
|
+
y: L.top + L.height / 2 - I.top,
|
|
2624
2624
|
time: O,
|
|
2625
2625
|
progress: 0
|
|
2626
|
-
},
|
|
2626
|
+
}, B = [], s.fill(0), w.fill(0), F = null, B = B.slice(-5), C || W();
|
|
2627
2627
|
};
|
|
2628
|
-
d.addEventListener("hero-scroll-inertia",
|
|
2628
|
+
d.addEventListener("hero-scroll-inertia", z);
|
|
2629
2629
|
const v = new ResizeObserver(Q);
|
|
2630
2630
|
v.observe(l);
|
|
2631
|
-
const q = new IntersectionObserver((
|
|
2632
|
-
|
|
2631
|
+
const q = new IntersectionObserver((p) => {
|
|
2632
|
+
$ = p.some((_) => _.isIntersecting), W();
|
|
2633
2633
|
});
|
|
2634
|
-
return q.observe(l), d.addEventListener("pointermove",
|
|
2635
|
-
cancelAnimationFrame(
|
|
2634
|
+
return q.observe(l), d.addEventListener("pointermove", Y), d.addEventListener("pointerleave", ne), d.addEventListener("pointerdown", he), h.addEventListener("change", W), document.addEventListener("visibilitychange", W), Q(), () => {
|
|
2635
|
+
cancelAnimationFrame(C), v.disconnect(), q.disconnect(), d.removeEventListener("hero-scroll-inertia", z), d.removeEventListener("pointermove", Y), d.removeEventListener("pointerleave", ne), d.removeEventListener("pointerdown", he), h.removeEventListener("change", W), document.removeEventListener("visibilitychange", W);
|
|
2636
2636
|
};
|
|
2637
2637
|
}, [t]), r;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const r =
|
|
2639
|
+
function Jr({ background: t, cellSize: n }) {
|
|
2640
|
+
const r = Ht(!1, n);
|
|
2641
2641
|
return /* @__PURE__ */ e(
|
|
2642
2642
|
"canvas",
|
|
2643
2643
|
{
|
|
@@ -2648,176 +2648,176 @@ function Kr({ background: t, cellSize: n }) {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const At = {
|
|
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
|
|
2655
|
+
function Zr({ dots: t = !1 }) {
|
|
2656
2656
|
const n = Re(null);
|
|
2657
|
-
return
|
|
2657
|
+
return $e(() => {
|
|
2658
2658
|
const r = n.current;
|
|
2659
2659
|
if (!r || typeof window > "u") return;
|
|
2660
2660
|
const o = r.getContext("2d"), l = r.parentElement;
|
|
2661
2661
|
if (!o || !l) return;
|
|
2662
2662
|
const i = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2663
|
-
let d = 0,
|
|
2664
|
-
const
|
|
2665
|
-
let b = 0, N = 0, f = new Float32Array(0), E = new Float32Array(0), s = 0, w = 0,
|
|
2666
|
-
const
|
|
2667
|
-
if (
|
|
2668
|
-
const v = (
|
|
2669
|
-
|
|
2670
|
-
const
|
|
2671
|
-
if (
|
|
2672
|
-
const _ =
|
|
2673
|
-
for (let
|
|
2663
|
+
let d = 0, h = 0, g = 0, x = !0, C = [], $ = null;
|
|
2664
|
+
const B = 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, A = null, T = null;
|
|
2666
|
+
const F = () => {
|
|
2667
|
+
if (A) {
|
|
2668
|
+
const v = (A.targetX - A.x) * 0.22, q = (A.targetY - A.y) * 0.22;
|
|
2669
|
+
A.x += v, A.y += q;
|
|
2670
|
+
const p = Math.hypot(v, q);
|
|
2671
|
+
if (p > 0.02) {
|
|
2672
|
+
const _ = A.x / M + 1, y = A.y / M + 1, I = Math.min(p, 12) * 0.065;
|
|
2673
|
+
for (let L = Math.max(1, Math.floor(y - 7)); L < Math.min(N - 1, y + 8); L++)
|
|
2674
2674
|
for (let O = Math.max(1, Math.floor(_ - 7)); O < Math.min(b - 1, _ + 8); O++) {
|
|
2675
|
-
const
|
|
2676
|
-
E[
|
|
2675
|
+
const P = O - _, Z = L - y, ee = (P * v + Z * q) / p;
|
|
2676
|
+
E[L * b + O] += ee * Math.exp(-(P * P + Z * Z) / 9) * I;
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
2680
|
for (let v = 1; v < N - 1; v++)
|
|
2681
2681
|
for (let q = 1; q < b - 1; q++) {
|
|
2682
|
-
const
|
|
2683
|
-
E[
|
|
2682
|
+
const p = v * b + q, _ = f[p - 1] + f[p + 1] + f[p - b] + f[p + b] - 4 * f[p], y = Math.min(q, v, b - 1 - q, N - 1 - v);
|
|
2683
|
+
E[p] = (E[p] + _ * 0.32) * (y < 8 ? 0.88 : 0.985);
|
|
2684
2684
|
}
|
|
2685
2685
|
for (let v = 0; v < f.length; v++) f[v] += E[v];
|
|
2686
2686
|
}, H = (v, q) => {
|
|
2687
|
-
const
|
|
2688
|
-
return (f[
|
|
2687
|
+
const p = Math.max(0, Math.min(b - 2, v / M + 1)), _ = Math.max(0, Math.min(N - 2, q / M + 1)), y = Math.floor(p), I = Math.floor(_), L = p - y, O = _ - I, P = I * b + y;
|
|
2688
|
+
return (f[P] * (1 - L) + f[P + 1] * L) * (1 - O) + (f[P + b] * (1 - L) + f[P + b + 1] * L) * O;
|
|
2689
2689
|
}, ae = (v) => {
|
|
2690
2690
|
if (w += Math.min(50, s ? v - s : 0), s = v, i.matches)
|
|
2691
2691
|
w = 0;
|
|
2692
2692
|
else for (; w >= 1e3 / 60; )
|
|
2693
|
-
|
|
2694
|
-
o.clearRect(0, 0, d,
|
|
2693
|
+
F(), w -= 1e3 / 60;
|
|
2694
|
+
o.clearRect(0, 0, d, h), C = C.filter((p) => v - p.time < 2400);
|
|
2695
2695
|
const q = t ? 7 : 14;
|
|
2696
|
-
for (let
|
|
2696
|
+
for (let p = 7, _ = 0; p < h; p += q, _++)
|
|
2697
2697
|
for (let y = 7 + _ % 2 * q / 2; y < d; y += q) {
|
|
2698
|
-
let
|
|
2699
|
-
if (
|
|
2700
|
-
const
|
|
2698
|
+
let I = 0, L = 0, O = 0;
|
|
2699
|
+
if ($ && !i.matches) {
|
|
2700
|
+
const D = (v - $.time) / 1e3, V = (y - d / 2) / (d * 0.58), u = (p - h * 0.42) / (h * 0.7), m = Math.hypot(V, u), k = 0.22 + 0.98 * Math.exp(-m * m * 2.1), G = Math.max(
|
|
2701
2701
|
0,
|
|
2702
|
-
Math.min(
|
|
2703
|
-
), U = 1.55 * (1 - Math.exp(-
|
|
2704
|
-
O =
|
|
2702
|
+
Math.min(D, 2.4) - Math.min(0.045, m * 0.025)
|
|
2703
|
+
), U = 1.55 * (1 - Math.exp(-G / 0.12)) * k;
|
|
2704
|
+
O = V * 210 * U, L = -260 * U * (1 - 0.3 * Math.tanh(u));
|
|
2705
2705
|
}
|
|
2706
2706
|
if (!i.matches)
|
|
2707
|
-
for (const
|
|
2708
|
-
const
|
|
2709
|
-
if (
|
|
2710
|
-
const
|
|
2711
|
-
|
|
2707
|
+
for (const D of C) {
|
|
2708
|
+
const V = (v - D.time) / 1e3, u = Math.hypot(y - D.x, p - D.y);
|
|
2709
|
+
if (V < 0) continue;
|
|
2710
|
+
const m = u - V * 320;
|
|
2711
|
+
I += Math.sin(m * 0.065) * Math.exp(-m * m / 13e3) * Math.max(0, 1 - V / 2.4) * 11;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2714
|
-
-Math.pow((y - d / 2) / (d * 0.28), 2) - Math.pow((
|
|
2715
|
-
) * 0.55, ce = Math.hypot(ee,
|
|
2713
|
+
const P = i.matches ? 0 : H(y + M, p) - H(y - M, p), Z = i.matches ? 0 : H(y, p + M) - H(y, p - M), ee = 12 * Math.tanh(P * 0.65), oe = 12 * Math.tanh(Z * 0.65), ve = Math.pow(Math.max(0, 1 - p / h), 0.6), _e = 1 - Math.exp(
|
|
2714
|
+
-Math.pow((y - d / 2) / (d * 0.28), 2) - Math.pow((p - h * 0.38) / (h * 0.24), 2)
|
|
2715
|
+
) * 0.55, ce = Math.hypot(ee, oe);
|
|
2716
2716
|
if (t) {
|
|
2717
|
-
const
|
|
2718
|
-
let
|
|
2719
|
-
-((y -
|
|
2720
|
-
) : 0,
|
|
2717
|
+
const D = Math.abs(H(y, p)) * 0.12 + ce * 0.035 + Math.abs(I) * 0.035;
|
|
2718
|
+
let V = T ? Math.exp(
|
|
2719
|
+
-((y - T.x) ** 2 + (p - T.y) ** 2) / (2 * 24 ** 2)
|
|
2720
|
+
) : 0, u = 0;
|
|
2721
2721
|
if (!i.matches)
|
|
2722
|
-
for (const
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
Math.exp(-(
|
|
2727
|
-
|
|
2728
|
-
),
|
|
2722
|
+
for (const m of C) {
|
|
2723
|
+
const k = (v - m.time) / 1e3, G = Math.hypot(y - m.x, p - m.y), U = 32 + 64 * Math.min(1, k / 0.3), K = Math.max(0, 1 - k / 2.4), j = Math.exp(-((G - k * 320) ** 2) / (2 * 36 ** 2)) * K;
|
|
2724
|
+
V = Math.max(
|
|
2725
|
+
V,
|
|
2726
|
+
Math.exp(-(G ** 2) / (2 * U ** 2)) * K,
|
|
2727
|
+
j
|
|
2728
|
+
), u = Math.max(u, j);
|
|
2729
2729
|
}
|
|
2730
|
-
o.globalAlpha = Math.min(0.28, 0.1 +
|
|
2731
|
-
y +
|
|
2732
|
-
|
|
2730
|
+
o.globalAlpha = Math.min(0.28, 0.1 + D * 0.12 + u * 0.12) * V, o.fillStyle = "#8a8f98", o.beginPath(), o.arc(
|
|
2731
|
+
y + I * 0.4 + ee * 0.25,
|
|
2732
|
+
p + I + oe * 0.25,
|
|
2733
2733
|
1.25,
|
|
2734
2734
|
0,
|
|
2735
2735
|
Math.PI * 2
|
|
2736
2736
|
), o.fill();
|
|
2737
2737
|
continue;
|
|
2738
2738
|
}
|
|
2739
|
-
const
|
|
2739
|
+
const pe = I * 0.055 + Math.tanh((P - Z) * 0.2) * 0.18, xe = 3.5 + Math.abs(I) * 0.16 + ce * 0.08, Fe = Math.sin(y * 12.9898 + p * 78.233) * 43758.5453, Te = Fe - Math.floor(Fe), Ce = v / 1e3, de = Math.sin(y * 39.346 + p * 11.135) * 24634.6345, Pe = de - Math.floor(de), Ae = Ce / (3 + Pe * 5) + Pe * 17, Le = Ae - Math.floor(Ae), qe = Le < 0.32 ? Math.pow(Math.sin(Math.PI * Le / 0.32), 2) : 0, Se = Te < 0.22, R = i.matches || !Se ? 1 : 1 - 0.98 * qe;
|
|
2740
2740
|
o.save(), o.translate(
|
|
2741
|
-
y +
|
|
2742
|
-
|
|
2743
|
-
), o.rotate(
|
|
2741
|
+
y + I * 0.4 + ee + O,
|
|
2742
|
+
p + I + oe + L
|
|
2743
|
+
), o.rotate(pe), o.globalAlpha = Math.min(
|
|
2744
2744
|
1,
|
|
2745
2745
|
Math.min(
|
|
2746
2746
|
0.95,
|
|
2747
|
-
0.38 + Te * 0.22 + (
|
|
2748
|
-
) * ve * _e *
|
|
2749
|
-
), o.strokeStyle = "#f5f8ff", o.lineWidth =
|
|
2747
|
+
0.38 + Te * 0.22 + (Se ? 0.32 : 0) + Math.abs(I) * 0.045 + ce * 0.018
|
|
2748
|
+
) * ve * _e * R
|
|
2749
|
+
), o.strokeStyle = "#f5f8ff", o.lineWidth = Se ? 1.25 : 1.05, o.beginPath(), o.moveTo(-xe, 0), o.lineTo(xe, 0), o.moveTo(0, -xe), o.lineTo(0, xe), o.stroke(), o.restore();
|
|
2750
2750
|
}
|
|
2751
|
-
g =
|
|
2752
|
-
},
|
|
2751
|
+
g = x && !document.hidden && !i.matches ? requestAnimationFrame(ae) : 0;
|
|
2752
|
+
}, X = () => {
|
|
2753
2753
|
cancelAnimationFrame(g), s = 0, ae(performance.now());
|
|
2754
|
-
},
|
|
2754
|
+
}, ie = () => {
|
|
2755
2755
|
const v = r.getBoundingClientRect();
|
|
2756
|
-
d = v.width,
|
|
2756
|
+
d = v.width, h = v.height, b = Math.ceil(d / M) + 3, N = Math.ceil(h / M) + 3, f = new Float32Array(b * N), E = new Float32Array(b * N), A = null, w = 0;
|
|
2757
2757
|
const q = Math.min(devicePixelRatio || 1, 2);
|
|
2758
|
-
r.width = d * q, r.height =
|
|
2758
|
+
r.width = d * q, r.height = h * q, o.setTransform(q, 0, 0, q, 0, 0), X();
|
|
2759
2759
|
};
|
|
2760
|
-
let
|
|
2760
|
+
let W = 0;
|
|
2761
2761
|
const Q = (v) => {
|
|
2762
|
-
if (i.matches || !
|
|
2762
|
+
if (i.matches || !B.matches || v.pointerType === "touch")
|
|
2763
2763
|
return;
|
|
2764
|
-
if (!t && (performance.now() <
|
|
2765
|
-
|
|
2764
|
+
if (!t && (performance.now() < W || v.target.closest("#hero-download"))) {
|
|
2765
|
+
A = null;
|
|
2766
2766
|
return;
|
|
2767
2767
|
}
|
|
2768
|
-
const q = r.getBoundingClientRect(),
|
|
2769
|
-
|
|
2768
|
+
const q = r.getBoundingClientRect(), p = v.clientX - q.left, _ = v.clientY - q.top;
|
|
2769
|
+
T = { x: p, y: _ }, A ? (A.targetX = p, A.targetY = _) : A = { x: t ? p - 8 : p, y: _, targetX: p, targetY: _ }, g || X();
|
|
2770
2770
|
}, te = () => {
|
|
2771
|
-
|
|
2772
|
-
},
|
|
2771
|
+
A = null, T = null;
|
|
2772
|
+
}, Y = (v) => {
|
|
2773
2773
|
if (v.target.closest("a,button,input,select")) return;
|
|
2774
2774
|
const q = r.getBoundingClientRect();
|
|
2775
|
-
|
|
2775
|
+
C.push({
|
|
2776
2776
|
x: v.clientX - q.left,
|
|
2777
2777
|
y: v.clientY - q.top,
|
|
2778
2778
|
time: performance.now()
|
|
2779
|
-
}),
|
|
2779
|
+
}), C = C.slice(-5), g || X();
|
|
2780
2780
|
}, ne = (v) => {
|
|
2781
2781
|
if (t || i.matches) return;
|
|
2782
2782
|
const q = v.detail;
|
|
2783
2783
|
if (q.cancel) {
|
|
2784
|
-
|
|
2784
|
+
$ = null, W = 0;
|
|
2785
2785
|
return;
|
|
2786
2786
|
}
|
|
2787
|
-
if (
|
|
2788
|
-
|
|
2787
|
+
if ($ && q.progress > 0) {
|
|
2788
|
+
$.progress = q.progress;
|
|
2789
2789
|
return;
|
|
2790
2790
|
}
|
|
2791
2791
|
if (q.progress > 0) return;
|
|
2792
|
-
const
|
|
2793
|
-
if (!
|
|
2794
|
-
const _ = r.getBoundingClientRect(), y =
|
|
2795
|
-
|
|
2792
|
+
const p = l.querySelector("#hero-download");
|
|
2793
|
+
if (!p) return;
|
|
2794
|
+
const _ = r.getBoundingClientRect(), y = p.getBoundingClientRect(), I = performance.now();
|
|
2795
|
+
W = I + 3220, $ = {
|
|
2796
2796
|
x: y.left + y.width / 2 - _.left,
|
|
2797
2797
|
y: y.top + y.height / 2 - _.top,
|
|
2798
|
-
time:
|
|
2798
|
+
time: I,
|
|
2799
2799
|
progress: 0
|
|
2800
|
-
},
|
|
2800
|
+
}, C = [], f.fill(0), E.fill(0), A = null, C = C.slice(-5), g || X();
|
|
2801
2801
|
};
|
|
2802
2802
|
l.addEventListener("hero-scroll-inertia", ne);
|
|
2803
|
-
const
|
|
2804
|
-
|
|
2805
|
-
const
|
|
2806
|
-
|
|
2803
|
+
const he = new ResizeObserver(ie);
|
|
2804
|
+
he.observe(r);
|
|
2805
|
+
const z = new IntersectionObserver((v) => {
|
|
2806
|
+
x = v.some((q) => q.isIntersecting), X();
|
|
2807
2807
|
});
|
|
2808
|
-
return
|
|
2809
|
-
cancelAnimationFrame(g),
|
|
2808
|
+
return z.observe(r), l.addEventListener("pointermove", Q), l.addEventListener("pointerleave", te), l.addEventListener("pointerdown", Y), i.addEventListener("change", X), document.addEventListener("visibilitychange", X), ie(), () => {
|
|
2809
|
+
cancelAnimationFrame(g), he.disconnect(), z.disconnect(), l.removeEventListener("hero-scroll-inertia", ne), l.removeEventListener("pointermove", Q), l.removeEventListener("pointerleave", te), l.removeEventListener("pointerdown", Y), i.removeEventListener("change", X), document.removeEventListener("visibilitychange", X);
|
|
2810
2810
|
};
|
|
2811
2811
|
}, [t]), /* @__PURE__ */ e(
|
|
2812
2812
|
"canvas",
|
|
2813
2813
|
{
|
|
2814
|
-
className: `${
|
|
2814
|
+
className: `${At["rp-plus-field-canvas"]} ${t ? `${At["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
|
|
2820
|
+
const Ve = {
|
|
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 We = {
|
|
|
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
|
-
},
|
|
2828
|
+
}, Lt = 0.07, In = 0.66, En = 3.1, Hn = [0.0625, 0.25, 0.375, 0.5], St = 0.045, Dn = 0.44, On = 14, Un = 4, Bt = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], zn = [
|
|
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
|
-
],
|
|
2833
|
+
], Ke = (t) => {
|
|
2834
2834
|
const n = Math.sin(t * 127.1) * 43758.5453;
|
|
2835
2835
|
return n - Math.floor(n);
|
|
2836
|
-
},
|
|
2837
|
-
angle:
|
|
2838
|
-
width: 0.02 +
|
|
2839
|
-
dashes: 22 +
|
|
2840
|
-
phase:
|
|
2841
|
-
drift: (
|
|
2842
|
-
speed: 0.4 +
|
|
2843
|
-
})),
|
|
2844
|
-
const d = n * o / 2,
|
|
2845
|
-
for (let
|
|
2846
|
-
const
|
|
2847
|
-
for (let
|
|
2848
|
-
const
|
|
2836
|
+
}, Xn = Array.from({ length: On }, (t, n) => ({
|
|
2837
|
+
angle: Ke(n + 1) * Math.PI * 2,
|
|
2838
|
+
width: 0.02 + Ke(n + 21) * 0.05,
|
|
2839
|
+
dashes: 22 + Ke(n + 41) * 26,
|
|
2840
|
+
phase: Ke(n + 61) * Math.PI * 2,
|
|
2841
|
+
drift: (Ke(n + 81) - 0.5) * 0.09,
|
|
2842
|
+
speed: 0.4 + Ke(n + 101) * 0.7
|
|
2843
|
+
})), Gn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Yn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, jn = (t, n, r, o, l, i) => {
|
|
2844
|
+
const d = n * o / 2, h = r * l / 2, g = n * o * 0.5;
|
|
2845
|
+
for (let x = 0; x < r; x++) {
|
|
2846
|
+
const C = (x + 0.5) * l - h;
|
|
2847
|
+
for (let $ = 0; $ < n; $++) {
|
|
2848
|
+
const B = ($ + 0.5) * o - d, M = Math.hypot(B, C) / g, b = Math.atan2(C, B);
|
|
2849
2849
|
let N = 0;
|
|
2850
|
-
for (const E of
|
|
2851
|
-
const s =
|
|
2850
|
+
for (const E of Xn) {
|
|
2851
|
+
const s = Gn(b - E.angle - i * E.drift), w = Math.exp(-(s * s) / (2 * E.width * E.width));
|
|
2852
2852
|
if (w < 0.01) continue;
|
|
2853
|
-
const
|
|
2854
|
-
N = Math.max(N, w * (0.3 + 0.7 *
|
|
2853
|
+
const A = 0.5 + 0.5 * Math.sin(M * E.dashes - i * E.speed + E.phase);
|
|
2854
|
+
N = Math.max(N, w * (0.3 + 0.7 * A));
|
|
2855
2855
|
}
|
|
2856
|
-
N *= 0.7 + 0.6 *
|
|
2856
|
+
N *= 0.7 + 0.6 * Ke($ * 3.17 + x * 7.31);
|
|
2857
2857
|
const f = Math.min(1, Math.max(0, (M - 0.12) / 0.3));
|
|
2858
|
-
N *= f * f * (3 - 2 * f), t[
|
|
2858
|
+
N *= f * f * (3 - 2 * f), t[x * n + $] = Math.min(
|
|
2859
2859
|
1,
|
|
2860
|
-
Math.max(0, (N - 0.58) *
|
|
2860
|
+
Math.max(0, (N - 0.58) * En + 0.5)
|
|
2861
2861
|
);
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
|
-
},
|
|
2865
|
-
const i = Math.min(l *
|
|
2866
|
-
t.beginPath(), t.moveTo(d + i, r), t.lineTo(
|
|
2867
|
-
},
|
|
2868
|
-
t.clearRect(0, 0,
|
|
2869
|
-
for (let
|
|
2870
|
-
for (let
|
|
2871
|
-
const M =
|
|
2864
|
+
}, Wn = (t, n, r, o, l) => {
|
|
2865
|
+
const i = Math.min(l * Dn, (o - 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, o - i), t.quadraticCurveTo(h, o, h - 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
|
+
}, Vn = (t, n, r, o, l, i, d, h, g, x, C) => {
|
|
2868
|
+
t.clearRect(0, 0, x, C);
|
|
2869
|
+
for (let $ = 0; $ < o; $++)
|
|
2870
|
+
for (let B = 0; B < r; B++) {
|
|
2871
|
+
const M = $ * r + B, b = n[M];
|
|
2872
2872
|
if (b < 0) continue;
|
|
2873
|
-
const N =
|
|
2874
|
-
let E =
|
|
2875
|
-
if (N !== b && (E +=
|
|
2876
|
-
const w = Math.max(1, 2 *
|
|
2877
|
-
let
|
|
2878
|
-
if (
|
|
2879
|
-
const
|
|
2873
|
+
const N = $ > 0 ? n[M - r] : -1, f = $ < o - 1 ? n[M + r] : -1;
|
|
2874
|
+
let E = $ * i, s = ($ + 1) * i;
|
|
2875
|
+
if (N !== b && (E += St * 0.5 * i), f !== b && (s -= St * 0.5 * i), s <= E) continue;
|
|
2876
|
+
const w = Math.max(1, 2 * Hn[b] * In * l);
|
|
2877
|
+
let A = (B + 0.5) * l, T = 1;
|
|
2878
|
+
if (h) {
|
|
2879
|
+
const F = A - h.x, H = (E + s) / 2 - h.y, ae = Math.hypot(F, H) / g;
|
|
2880
2880
|
if (ae < 1) {
|
|
2881
|
-
const
|
|
2882
|
-
|
|
2881
|
+
const X = (1 - ae) ** 2;
|
|
2882
|
+
A += F * 0.06 * X, T = 1 - 0.7 * X;
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
t.globalAlpha =
|
|
2885
|
+
t.globalAlpha = T, t.fillStyle = d[b % Un], Wn(t, A, E, s, w), t.fill();
|
|
2886
2886
|
}
|
|
2887
2887
|
t.globalAlpha = 1;
|
|
2888
2888
|
};
|
|
2889
|
-
function
|
|
2889
|
+
function Kn() {
|
|
2890
2890
|
const t = Re(null);
|
|
2891
|
-
return
|
|
2891
|
+
return $e(() => {
|
|
2892
2892
|
const n = t.current, r = n?.parentElement;
|
|
2893
2893
|
if (!n || !r || typeof window > "u") return;
|
|
2894
2894
|
const o = n.getContext("2d");
|
|
2895
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,
|
|
2898
|
-
const
|
|
2899
|
-
const
|
|
2900
|
-
s =
|
|
2901
|
-
},
|
|
2902
|
-
|
|
2903
|
-
for (let
|
|
2904
|
-
E[
|
|
2905
|
-
|
|
2897
|
+
let d = 0, h = 0, g = 0, x = 0, C = 0, $ = 0, B = 0, M = !0, b = 0, N = 0, f = new Float32Array(0), E = new Int8Array(0), s = [...Bt], w = null;
|
|
2898
|
+
const A = () => {
|
|
2899
|
+
const Y = getComputedStyle(r);
|
|
2900
|
+
s = zn.map((ne, he) => Y.getPropertyValue(ne).trim() || Bt[he]);
|
|
2901
|
+
}, T = () => {
|
|
2902
|
+
jn(f, g, x, C, $, b);
|
|
2903
|
+
for (let Y = 0; Y < f.length; Y++)
|
|
2904
|
+
E[Y] = Yn(f[Y]);
|
|
2905
|
+
Vn(
|
|
2906
2906
|
o,
|
|
2907
2907
|
E,
|
|
2908
2908
|
g,
|
|
2909
|
-
$,
|
|
2910
2909
|
x,
|
|
2911
|
-
|
|
2910
|
+
C,
|
|
2911
|
+
$,
|
|
2912
2912
|
s,
|
|
2913
2913
|
w,
|
|
2914
|
-
Math.min(d,
|
|
2914
|
+
Math.min(d, h) * 0.18,
|
|
2915
2915
|
d,
|
|
2916
|
-
|
|
2916
|
+
h
|
|
2917
2917
|
);
|
|
2918
|
-
},
|
|
2919
|
-
|
|
2918
|
+
}, F = (Y) => {
|
|
2919
|
+
B = 0, !(!M || document.hidden) && (N && (b += Math.min(80, Y - N) * 28e-5), N = Y, T(), l.matches || (B = requestAnimationFrame(F)));
|
|
2920
2920
|
}, H = () => {
|
|
2921
|
-
cancelAnimationFrame(
|
|
2921
|
+
cancelAnimationFrame(B), B = 0, N = 0, M && !document.hidden && (B = requestAnimationFrame(F));
|
|
2922
2922
|
}, ae = () => {
|
|
2923
|
-
const
|
|
2924
|
-
d =
|
|
2923
|
+
const Y = r.getBoundingClientRect();
|
|
2924
|
+
d = Y.width, h = Y.height, g = Math.max(1, Math.round(d * Lt)), x = Math.max(1, Math.round(h * Lt)), C = d / g, $ = h / x, f = new Float32Array(g * x), E = new Int8Array(g * x);
|
|
2925
2925
|
const ne = Math.min(window.devicePixelRatio || 1, 2);
|
|
2926
|
-
n.width = Math.round(d * ne), n.height = Math.round(
|
|
2927
|
-
},
|
|
2928
|
-
if (l.matches || !i.matches ||
|
|
2926
|
+
n.width = Math.round(d * ne), n.height = Math.round(h * ne), o.setTransform(ne, 0, 0, ne, 0, 0), A(), H();
|
|
2927
|
+
}, X = (Y) => {
|
|
2928
|
+
if (l.matches || !i.matches || Y.pointerType === "touch")
|
|
2929
2929
|
return;
|
|
2930
2930
|
const ne = r.getBoundingClientRect();
|
|
2931
2931
|
w = {
|
|
2932
|
-
x:
|
|
2933
|
-
y:
|
|
2934
|
-
},
|
|
2935
|
-
},
|
|
2936
|
-
w = null,
|
|
2937
|
-
},
|
|
2938
|
-
|
|
2932
|
+
x: Y.clientX - ne.left,
|
|
2933
|
+
y: Y.clientY - ne.top
|
|
2934
|
+
}, B || H();
|
|
2935
|
+
}, ie = () => {
|
|
2936
|
+
w = null, B || H();
|
|
2937
|
+
}, W = new MutationObserver(() => {
|
|
2938
|
+
A(), B || H();
|
|
2939
2939
|
});
|
|
2940
|
-
|
|
2940
|
+
W.observe(document.body, {
|
|
2941
2941
|
attributes: !0,
|
|
2942
2942
|
attributeFilter: ["data-theme"],
|
|
2943
2943
|
subtree: !0
|
|
2944
2944
|
});
|
|
2945
2945
|
const Q = new ResizeObserver(ae);
|
|
2946
2946
|
Q.observe(r);
|
|
2947
|
-
const te = new IntersectionObserver((
|
|
2948
|
-
M =
|
|
2947
|
+
const te = new IntersectionObserver((Y) => {
|
|
2948
|
+
M = Y.some((ne) => ne.isIntersecting), H();
|
|
2949
2949
|
});
|
|
2950
|
-
return te.observe(n), window.addEventListener("pointermove",
|
|
2951
|
-
cancelAnimationFrame(
|
|
2950
|
+
return te.observe(n), window.addEventListener("pointermove", X, { passive: !0 }), window.addEventListener("pointerleave", ie), l.addEventListener("change", H), document.addEventListener("visibilitychange", H), ae(), () => {
|
|
2951
|
+
cancelAnimationFrame(B), Q.disconnect(), te.disconnect(), W.disconnect(), window.removeEventListener("pointermove", X), window.removeEventListener("pointerleave", ie), l.removeEventListener("change", H), document.removeEventListener("visibilitychange", H);
|
|
2952
2952
|
};
|
|
2953
2953
|
}, []), t;
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const n =
|
|
2955
|
+
function Qr({ className: t }) {
|
|
2956
|
+
const n = Kn();
|
|
2957
2957
|
return /* @__PURE__ */ a(
|
|
2958
2958
|
"div",
|
|
2959
2959
|
{
|
|
2960
|
-
className: `${
|
|
2960
|
+
className: `${Ve["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:
|
|
2966
|
+
className: Ve["rp-line-field-canvas"],
|
|
2967
2967
|
ref: n,
|
|
2968
2968
|
tabIndex: -1
|
|
2969
2969
|
}
|
|
2970
2970
|
),
|
|
2971
|
-
/* @__PURE__ */ e("div", { className:
|
|
2972
|
-
/* @__PURE__ */ e("div", { className:
|
|
2973
|
-
/* @__PURE__ */ e("div", { className:
|
|
2974
|
-
/* @__PURE__ */ e("div", { className:
|
|
2975
|
-
/* @__PURE__ */ e("div", { className:
|
|
2971
|
+
/* @__PURE__ */ e("div", { className: Ve["rp-line-field-veil"] }),
|
|
2972
|
+
/* @__PURE__ */ e("div", { className: Ve["rp-line-field-top"] }),
|
|
2973
|
+
/* @__PURE__ */ e("div", { className: Ve["rp-line-field-left"] }),
|
|
2974
|
+
/* @__PURE__ */ e("div", { className: Ve["rp-line-field-right"] }),
|
|
2975
|
+
/* @__PURE__ */ e("div", { className: Ve["rp-line-field-bottom"] })
|
|
2976
2976
|
]
|
|
2977
2977
|
}
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
2980
|
-
const
|
|
2980
|
+
const Jn = {
|
|
2981
2981
|
"rp-dotted-background-canvas": "rp_BackgroundDotted-module_rp-dotted-background-canvas_-HlLHshb"
|
|
2982
2982
|
};
|
|
2983
|
-
function
|
|
2984
|
-
const n =
|
|
2983
|
+
function Zn({ background: t }) {
|
|
2984
|
+
const n = Ht(!0);
|
|
2985
2985
|
return /* @__PURE__ */ e(
|
|
2986
2986
|
"canvas",
|
|
2987
2987
|
{
|
|
2988
|
-
className: `${
|
|
2988
|
+
className: `${Jn["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
|
|
2996
|
-
canvas:
|
|
2997
|
-
},
|
|
2995
|
+
const Qn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", er = {
|
|
2996
|
+
canvas: Qn
|
|
2997
|
+
}, nt = [
|
|
2998
2998
|
"#244cf0",
|
|
2999
2999
|
"#3459f1",
|
|
3000
3000
|
"#4869f3",
|
|
@@ -3007,184 +3007,194 @@ const Zn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Qn = {
|
|
|
3007
3007
|
"#d7defc",
|
|
3008
3008
|
"#e9edfe",
|
|
3009
3009
|
"#ffffff"
|
|
3010
|
-
],
|
|
3011
|
-
function
|
|
3010
|
+
], Rt = 24, ft = 90, we = 32, ct = 1, bt = 900;
|
|
3011
|
+
function pt(t, n) {
|
|
3012
3012
|
const r = (M, b) => {
|
|
3013
3013
|
let N = Math.imul(M, 374761393) + Math.imul(b, 668265263);
|
|
3014
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,
|
|
3016
|
-
return
|
|
3015
|
+
}, o = Math.floor(t), l = Math.floor(n), i = t - o, d = n - l, h = i * i * (3 - 2 * i), g = d * d * (3 - 2 * d), x = r(o, l), C = r(o + 1, l), $ = r(o, l + 1), B = r(o + 1, l + 1);
|
|
3016
|
+
return x + (C - x) * h + ($ - x) * g + (x - C - $ + B) * h * g;
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3019
|
-
const o = Math.floor(r), l = r - o, i = l * l * (3 - 2 * l), d =
|
|
3020
|
-
return d + (
|
|
3018
|
+
function rt(t, n, r) {
|
|
3019
|
+
const o = Math.floor(r), l = r - o, i = l * l * (3 - 2 * l), d = pt(t + o * 137.3, n + o * 193.7), h = pt(t + (o + 1) * 137.3, n + (o + 1) * 193.7);
|
|
3020
|
+
return d + (h - d) * i;
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3023
|
-
const l = t / 220 + o * 0.12, i = n / 220, d = (
|
|
3022
|
+
function tr(t, n, r, o) {
|
|
3023
|
+
const l = t / 220 + o * 0.12, i = n / 220, d = (rt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (rt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, g = l + d, x = i + h, C = rt(g, x, r * 0.09 + 47.2), $ = rt(g * 2, x * 2, r * 0.17 + 73.8), B = rt(
|
|
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((g * 0.62 +
|
|
3028
|
+
return 0.5 + Math.sin((g * 0.62 + x) * 2.2 + C * 5.5 + (B - 0.5) * 5) * 0.35 + ($ - 0.5) * 0.32;
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function ei({
|
|
3031
3031
|
scene: t,
|
|
3032
|
-
cellSize: n =
|
|
3032
|
+
cellSize: n = Rt,
|
|
3033
3033
|
density: r = 1,
|
|
3034
3034
|
speed: o = 1,
|
|
3035
3035
|
step: l = 0
|
|
3036
3036
|
}) {
|
|
3037
|
-
const i = Re(null), d = Re(t),
|
|
3038
|
-
return
|
|
3037
|
+
const i = Re(null), d = Re(t), h = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, g = Number.isFinite(n) ? Math.max(4, n) : Rt, x = Math.max(4, g / Math.sqrt(h)), C = Re(x), $ = Re(o), B = Re(Number.isFinite(l) ? l : 0), M = Re(null);
|
|
3038
|
+
return $e(() => {
|
|
3039
3039
|
d.current = t;
|
|
3040
|
-
}, [t]),
|
|
3041
|
-
|
|
3042
|
-
}, [
|
|
3043
|
-
|
|
3044
|
-
}, [o]),
|
|
3045
|
-
|
|
3046
|
-
}, [l]),
|
|
3040
|
+
}, [t]), $e(() => {
|
|
3041
|
+
C.current = x, M.current?.();
|
|
3042
|
+
}, [x]), $e(() => {
|
|
3043
|
+
$.current = Number.isFinite(o) ? Math.max(0, o) : 1;
|
|
3044
|
+
}, [o]), $e(() => {
|
|
3045
|
+
B.current = Number.isFinite(l) ? l : 0, M.current?.();
|
|
3046
|
+
}, [l]), $e(() => {
|
|
3047
3047
|
const b = i.current, N = b?.getContext("2d");
|
|
3048
3048
|
if (!b || !N) return;
|
|
3049
3049
|
const f = matchMedia("(prefers-reduced-motion: reduce)"), E = matchMedia("(any-hover: hover)"), s = b.parentElement ?? b;
|
|
3050
|
-
let w = 0,
|
|
3051
|
-
const
|
|
3052
|
-
let v = 0, q = 0,
|
|
3053
|
-
const
|
|
3054
|
-
v = Math.ceil(
|
|
3050
|
+
let w = 0, A = 0, T = 0, F = !1, H = d.current * 7.13, ae = d.current, X = 0, ie = 0, W = B.current * ct, Q = W, te = W, Y = bt, ne = W, he = 0;
|
|
3051
|
+
const z = { x: 0, y: 0, active: !1, down: !1, at: 0, id: -1 };
|
|
3052
|
+
let v = 0, q = 0, p = new Float32Array(0), _ = new Float32Array(0), y = new Float32Array(0), I = new Float32Array(0), L = new Float32Array(0), O = new Float32Array(0);
|
|
3053
|
+
const P = () => {
|
|
3054
|
+
v = Math.ceil(A / we) + 1, q = Math.ceil(T / we) + 1;
|
|
3055
3055
|
const R = v * q;
|
|
3056
|
-
|
|
3057
|
-
},
|
|
3058
|
-
const
|
|
3056
|
+
p = new Float32Array(R), _ = new Float32Array(R), y = new Float32Array(R), I = new Float32Array(R), L = new Float32Array(R), O = new Float32Array(R);
|
|
3057
|
+
}, Z = (R, D) => {
|
|
3058
|
+
const V = Math.max(0, Math.min(v - 1, R / we)), u = Math.max(0, Math.min(q - 1, D / we)), m = Math.floor(V), k = Math.floor(u), G = Math.min(m + 1, v - 1), U = Math.min(k + 1, q - 1), K = V - m, j = u - k, le = (He) => He[k * v + m] * (1 - K) * (1 - j) + He[k * v + G] * K * (1 - j) + He[U * v + m] * (1 - K) * j + He[U * v + G] * K * j, se = k * v + m, fe = k * v + G, me = U * v + m, Ie = U * v + G, Ee = ((p[fe] - p[se]) * (1 - j) + (p[Ie] - p[me]) * j) / we, Ue = ((_[me] - _[se]) * (1 - K) + (_[Ie] - _[fe]) * K) / we;
|
|
3059
3059
|
return {
|
|
3060
|
-
x:
|
|
3061
|
-
y:
|
|
3062
|
-
crest: Math.min(1, Math.max(0,
|
|
3060
|
+
x: le(p),
|
|
3061
|
+
y: le(_),
|
|
3062
|
+
crest: Math.min(1, Math.max(0, Ee + Ue))
|
|
3063
3063
|
};
|
|
3064
|
-
}, ee = (R,
|
|
3065
|
-
const
|
|
3066
|
-
for (let
|
|
3067
|
-
for (let
|
|
3068
|
-
const
|
|
3069
|
-
-(
|
|
3070
|
-
), me =
|
|
3071
|
-
y[
|
|
3072
|
-
const
|
|
3064
|
+
}, ee = (R, D, V, u, m = 0, k = ft * (z.down ? 1.25 : 1)) => {
|
|
3065
|
+
const G = Z(R, D);
|
|
3066
|
+
for (let U = Math.max(0, Math.floor((D - k * 2) / we)); U < Math.min(q, Math.ceil((D + k * 2) / we)); U++)
|
|
3067
|
+
for (let K = Math.max(0, Math.floor((R - k * 2) / we)); K < Math.min(v, Math.ceil((R + k * 2) / we)); K++) {
|
|
3068
|
+
const j = U * v + K, le = K * we - R - (m ? p[j] - G.x : 0), se = U * we - D - (m ? _[j] - G.y : 0), fe = Math.exp(
|
|
3069
|
+
-(le * le + se * se) / (k * k * 0.5)
|
|
3070
|
+
), me = m ? 1 / (1 + (Math.hypot(p[j], _[j]) / 48) ** 2) : 1, Ie = (V - le * m) * fe * me, Ee = (u - se * m) * fe * me;
|
|
3071
|
+
y[j] += Ie, I[j] += Ee, m && (p[j] += Ie * 0.02, _[j] += Ee * 0.02);
|
|
3072
|
+
const Ue = Math.max(
|
|
3073
3073
|
1,
|
|
3074
|
-
Math.hypot(y[
|
|
3074
|
+
Math.hypot(y[j], I[j]) / 900
|
|
3075
3075
|
);
|
|
3076
|
-
y[
|
|
3076
|
+
y[j] /= Ue, I[j] /= Ue;
|
|
3077
3077
|
}
|
|
3078
|
-
},
|
|
3079
|
-
const
|
|
3080
|
-
for (let
|
|
3081
|
-
for (let
|
|
3082
|
-
for (let
|
|
3083
|
-
const
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
v - 1 -
|
|
3087
|
-
q - 1 -
|
|
3088
|
-
),
|
|
3089
|
-
const
|
|
3090
|
-
return be[
|
|
3078
|
+
}, oe = (R) => {
|
|
3079
|
+
const D = Math.ceil(R / 8), V = R / D / 1e3;
|
|
3080
|
+
for (let u = 0; u < D; u++) {
|
|
3081
|
+
for (let m = 0; m < q; m++)
|
|
3082
|
+
for (let k = 0; k < v; k++) {
|
|
3083
|
+
const G = m * v + k, U = m * v + Math.max(0, k - 1), K = m * v + Math.min(v - 1, k + 1), j = Math.max(0, m - 1) * v + k, le = Math.min(q - 1, m + 1) * v + k, se = j - k + U % v, fe = j - k + K % v, me = le - k + U % v, Ie = le - k + K % v, Ee = (be) => (4 * (be[U] + be[K] + be[j] + be[le]) + be[se] + be[fe] + be[me] + be[Ie] - 20 * be[G]) / 6, Ue = Math.min(
|
|
3084
|
+
k,
|
|
3085
|
+
m,
|
|
3086
|
+
v - 1 - k,
|
|
3087
|
+
q - 1 - m
|
|
3088
|
+
), He = 1.7 + Math.max(0, 1 - Ue / 3) ** 2 * 12, Ze = (be, ot) => {
|
|
3089
|
+
const ut = Ee(be) * 2.2, Qe = Ee(ot) * 36;
|
|
3090
|
+
return be[G] + (ut + Qe - be[G] * He - ot[G] * 0.9) * V;
|
|
3091
3091
|
};
|
|
3092
|
-
|
|
3092
|
+
L[G] = Ze(y, p), O[G] = Ze(I, _);
|
|
3093
3093
|
}
|
|
3094
|
-
[y,
|
|
3095
|
-
for (let
|
|
3096
|
-
m
|
|
3097
|
-
const
|
|
3094
|
+
[y, L] = [L, y], [I, O] = [O, I];
|
|
3095
|
+
for (let m = 0; m < p.length; m++) {
|
|
3096
|
+
p[m] += y[m] * V, _[m] += I[m] * V;
|
|
3097
|
+
const k = Math.max(
|
|
3098
3098
|
1,
|
|
3099
|
-
Math.hypot(m
|
|
3099
|
+
Math.hypot(p[m], _[m]) / 72
|
|
3100
3100
|
);
|
|
3101
|
-
m
|
|
3101
|
+
p[m] /= k, _[m] /= k;
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
|
-
}, ve = (R,
|
|
3105
|
-
const
|
|
3104
|
+
}, ve = (R, D) => tr(R, D, ne, H), _e = (R, D, V) => {
|
|
3105
|
+
const u = R + V / 2, m = D + V / 2, k = Z(u, m), G = ve(u - k.x, m - k.y), U = Math.floor(u / C.current), K = Math.floor(m / C.current), j = pt(U * 17 + 31, K * 29 + 47), le = ne * (0.55 + j * 0.45) + j * 19, se = Math.floor(le), fe = le - se, me = pt(U + se * 193, K - se * 137), Ie = f.matches || me < 0.84 ? 0 : Math.sin(fe * Math.PI) ** 6 * (0.02 + j * 0.025), Ee = k.crest * 0.16 * Math.max(0, G) ** 2, Ue = G + Ee + Ie, He = Math.max(
|
|
3106
3106
|
0,
|
|
3107
|
-
Math.min(
|
|
3108
|
-
),
|
|
3109
|
-
N.fillStyle = "rgb(" + [1, 3, 5].map((
|
|
3110
|
-
const
|
|
3111
|
-
return Math.round(
|
|
3112
|
-
}).join(",") + ")", N.fillRect(R,
|
|
3107
|
+
Math.min(nt.length - 1, Ue * 1.08 * (nt.length - 1))
|
|
3108
|
+
), Ze = Math.floor(He), be = He - Ze, ot = nt[Ze], ut = nt[Math.min(Ze + 1, nt.length - 1)];
|
|
3109
|
+
N.fillStyle = "rgb(" + [1, 3, 5].map((Qe) => {
|
|
3110
|
+
const _t = parseInt(ot.slice(Qe, Qe + 2), 16), jt = parseInt(ut.slice(Qe, Qe + 2), 16);
|
|
3111
|
+
return Math.round(_t + (jt - _t) * be);
|
|
3112
|
+
}).join(",") + ")", N.fillRect(R, D, V + 0.6, V + 0.6);
|
|
3113
3113
|
}, ce = (R) => {
|
|
3114
3114
|
w = 0;
|
|
3115
|
-
const
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3115
|
+
const D = he ? Math.min(R - he, 64) : 16;
|
|
3116
|
+
he = R, ae = d.current, H += (ae * 7.13 - H) * (1 - Math.exp(-D / 500)), f.matches || (X += D / 1e3 * $.current, z.down && ee(
|
|
3117
|
+
z.x,
|
|
3118
|
+
z.y,
|
|
3119
|
+
0,
|
|
3120
|
+
0,
|
|
3121
|
+
-8 * D / 1e3,
|
|
3122
|
+
ft * 1.2
|
|
3123
|
+
), oe(D));
|
|
3124
|
+
const V = B.current * ct + ie;
|
|
3125
|
+
V !== te && (Q = W, te = V, Y = 0), Y = Math.min(bt, Y + D);
|
|
3126
|
+
const u = f.matches ? 1 : Y / bt, m = u * u * (3 - 2 * u);
|
|
3127
|
+
W = Q + (te - Q) * m, ne = X + W;
|
|
3128
|
+
for (let k = 0; k < T; k += C.current)
|
|
3129
|
+
for (let G = 0; G < A; G += C.current)
|
|
3130
|
+
_e(G, k, C.current);
|
|
3131
|
+
F && !document.hidden && !f.matches && (w = requestAnimationFrame(ce));
|
|
3132
|
+
}, pe = () => {
|
|
3133
|
+
cancelAnimationFrame(w), he = 0, document.hidden || ce(performance.now());
|
|
3127
3134
|
};
|
|
3128
3135
|
M.current = () => {
|
|
3129
|
-
w ||
|
|
3136
|
+
w || pe();
|
|
3130
3137
|
};
|
|
3131
|
-
const
|
|
3138
|
+
const xe = () => {
|
|
3132
3139
|
const R = b.getBoundingClientRect();
|
|
3133
|
-
(
|
|
3134
|
-
const
|
|
3135
|
-
b.width = Math.round(
|
|
3140
|
+
(A !== R.width || T !== R.height) && (A = R.width, T = R.height, P()), v || P();
|
|
3141
|
+
const D = Math.min(devicePixelRatio || 1, 2);
|
|
3142
|
+
b.width = Math.round(A * D), b.height = Math.round(T * D), N.setTransform(D, 0, 0, D, 0, 0), pe();
|
|
3136
3143
|
}, Fe = (R) => R.target instanceof Element && !!R.target.closest(
|
|
3137
3144
|
'a,button,input,textarea,select,[contenteditable],[role="button"],[role="switch"],[role="combobox"],[role="slider"]'
|
|
3138
3145
|
), Te = (R) => {
|
|
3139
|
-
if (f.matches || Fe(R) || (R.pointerType === "touch" || !E.matches) && !
|
|
3146
|
+
if (f.matches || !z.down && Fe(R) || (R.pointerType === "touch" || !E.matches) && !z.down || z.down && R.pointerId !== z.id)
|
|
3140
3147
|
return;
|
|
3141
|
-
const
|
|
3142
|
-
if (
|
|
3143
|
-
const
|
|
3148
|
+
const D = b.getBoundingClientRect(), V = performance.now(), u = R.clientX - D.left, m = R.clientY - D.top;
|
|
3149
|
+
if (z.active && (z.down || V - z.at < 150)) {
|
|
3150
|
+
const k = u - z.x, G = m - z.y, U = Math.hypot(k, G), K = Math.max(8, V - z.at) / 1e3, j = U / K, le = (z.down ? 3 : 0.65) * (0.5 + Math.min(j, 1800) / 900), se = Math.min(
|
|
3144
3151
|
64,
|
|
3145
|
-
Math.max(1, Math.ceil(
|
|
3146
|
-
),
|
|
3147
|
-
for (let me = 1; me <=
|
|
3152
|
+
Math.max(1, Math.ceil(U / (we / 2)))
|
|
3153
|
+
), fe = Math.min(1, 240 / Math.max(1, U));
|
|
3154
|
+
for (let me = 1; me <= se; me++)
|
|
3148
3155
|
ee(
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3156
|
+
z.x + k * me / se,
|
|
3157
|
+
z.y + G * me / se,
|
|
3158
|
+
k * fe * le / se,
|
|
3159
|
+
G * fe * le / se
|
|
3153
3160
|
);
|
|
3154
3161
|
}
|
|
3155
|
-
Object.assign(
|
|
3156
|
-
},
|
|
3162
|
+
Object.assign(z, { x: u, y: m, at: V, active: !0 }), w || pe();
|
|
3163
|
+
}, Ce = (R) => {
|
|
3157
3164
|
if (f.matches || Fe(R) || !R.isPrimary || R.button !== 0)
|
|
3158
3165
|
return;
|
|
3159
|
-
const
|
|
3160
|
-
Object.assign(
|
|
3161
|
-
x: R.clientX -
|
|
3162
|
-
y: R.clientY -
|
|
3166
|
+
const D = b.getBoundingClientRect();
|
|
3167
|
+
Object.assign(z, {
|
|
3168
|
+
x: R.clientX - D.left,
|
|
3169
|
+
y: R.clientY - D.top,
|
|
3163
3170
|
at: performance.now(),
|
|
3164
3171
|
active: !0,
|
|
3165
3172
|
down: !0,
|
|
3166
3173
|
id: R.pointerId
|
|
3167
|
-
});
|
|
3168
|
-
const
|
|
3174
|
+
}), s.setPointerCapture?.(R.pointerId);
|
|
3175
|
+
const V = Math.max(
|
|
3169
3176
|
0,
|
|
3170
|
-
|
|
3177
|
+
B.current * ct + ie - W
|
|
3171
3178
|
);
|
|
3172
|
-
|
|
3173
|
-
},
|
|
3174
|
-
R
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3179
|
+
ie += Math.max(0, 5 * ct - V), ee(z.x, z.y, 0, 0, -32, ft * 1.2), w || pe();
|
|
3180
|
+
}, de = () => {
|
|
3181
|
+
const R = z.id;
|
|
3182
|
+
z.active = !1, z.down = !1, z.id = -1, s.hasPointerCapture?.(R) && s.releasePointerCapture(R);
|
|
3183
|
+
}, Pe = (R) => {
|
|
3184
|
+
R.pointerId === z.id && de();
|
|
3185
|
+
}, Ae = () => {
|
|
3186
|
+
z.down || (z.active = !1);
|
|
3187
|
+
}, Le = () => {
|
|
3188
|
+
de(), f.matches && P(), pe();
|
|
3189
|
+
}, qe = new ResizeObserver(xe), Se = new IntersectionObserver((R) => {
|
|
3190
|
+
F = R.some((D) => D.isIntersecting), pe();
|
|
3181
3191
|
});
|
|
3182
|
-
return
|
|
3183
|
-
M.current = null, cancelAnimationFrame(w),
|
|
3192
|
+
return qe.observe(b), Se.observe(b), f.addEventListener("change", Le), E.addEventListener("change", Le), s.addEventListener("pointermove", Te), s.addEventListener("pointerdown", Ce), s.addEventListener("pointerleave", Ae), s.addEventListener("pointercancel", de), s.addEventListener("lostpointercapture", de), window.addEventListener("pointerup", Pe), window.addEventListener("blur", de), document.addEventListener("visibilitychange", pe), xe(), () => {
|
|
3193
|
+
M.current = null, de(), cancelAnimationFrame(w), qe.disconnect(), Se.disconnect(), f.removeEventListener("change", Le), E.removeEventListener("change", Le), s.removeEventListener("pointermove", Te), s.removeEventListener("pointerdown", Ce), s.removeEventListener("pointerleave", Ae), s.removeEventListener("pointercancel", de), s.removeEventListener("lostpointercapture", de), window.removeEventListener("pointerup", Pe), window.removeEventListener("blur", de), document.removeEventListener("visibilitychange", pe);
|
|
3184
3194
|
};
|
|
3185
|
-
}, []), /* @__PURE__ */ e("canvas", { ref: i, className:
|
|
3195
|
+
}, []), /* @__PURE__ */ e("canvas", { ref: i, className: er.canvas, "aria-hidden": "true" });
|
|
3186
3196
|
}
|
|
3187
|
-
const
|
|
3197
|
+
const ar = [
|
|
3188
3198
|
"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.",
|
|
3189
3199
|
"Different providers speak different protocols. A common interface carries messages across those boundaries while preserving the shape of each tool call.",
|
|
3190
3200
|
"Context follows the request. Earlier messages form the working memory of a conversation. A continuation returns to the source that owns its state.",
|
|
@@ -3213,29 +3223,29 @@ const tr = [
|
|
|
3213
3223
|
"The final token is only one part of completion. A terminal event tells the client that no further output is expected. Structured tools depend on that contract.",
|
|
3214
3224
|
"A shared connection reduces repetitive setup. Each local tool can use the same service while preserving its own interface, workspace, and interaction model.",
|
|
3215
3225
|
"Transparent provenance is a separate capability. Signed and verifiable model requests remain a future feature until a public verification path is available."
|
|
3216
|
-
],
|
|
3226
|
+
], Ft = (t) => {
|
|
3217
3227
|
const n = Math.max(0, Math.min(1, t));
|
|
3218
3228
|
return n * n * (3 - 2 * n);
|
|
3219
3229
|
};
|
|
3220
|
-
function
|
|
3230
|
+
function ti({
|
|
3221
3231
|
onComplete: t,
|
|
3222
3232
|
passages: n
|
|
3223
3233
|
}) {
|
|
3224
|
-
const r = n ??
|
|
3225
|
-
return
|
|
3234
|
+
const r = n ?? ar, o = Re(null);
|
|
3235
|
+
return $e(() => {
|
|
3226
3236
|
const l = o.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
|
|
3227
3237
|
if (!l || !i || d.matches) {
|
|
3228
3238
|
t();
|
|
3229
3239
|
return;
|
|
3230
3240
|
}
|
|
3231
|
-
let
|
|
3232
|
-
const
|
|
3233
|
-
|
|
3241
|
+
let h = 0, g = 0, x = 0;
|
|
3242
|
+
const C = () => {
|
|
3243
|
+
h = innerWidth, g = innerHeight;
|
|
3234
3244
|
const s = Math.min(devicePixelRatio || 1, 2);
|
|
3235
|
-
l.width =
|
|
3245
|
+
l.width = h * s, l.height = g * s, i.setTransform(s, 0, 0, s, 0, 0);
|
|
3236
3246
|
};
|
|
3237
|
-
|
|
3238
|
-
const
|
|
3247
|
+
C();
|
|
3248
|
+
const $ = r.map((s, w) => ({
|
|
3239
3249
|
text: s,
|
|
3240
3250
|
order: Math.random(),
|
|
3241
3251
|
x: Math.random() * 0.88 - 0.03,
|
|
@@ -3246,31 +3256,31 @@ function ei({
|
|
|
3246
3256
|
dark: Math.random() > 0.35,
|
|
3247
3257
|
phase: Math.random() * 1e3,
|
|
3248
3258
|
index: w
|
|
3249
|
-
})).sort((s, w) => s.order - w.order),
|
|
3250
|
-
const w = (s - b) * M /
|
|
3251
|
-
i.globalAlpha = 1, i.fillStyle = w < 650 || w >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0,
|
|
3252
|
-
for (const
|
|
3253
|
-
const H =
|
|
3254
|
-
i.save(), i.globalAlpha = 1 -
|
|
3255
|
-
let te = H,
|
|
3256
|
-
const ne =
|
|
3257
|
-
for (let
|
|
3258
|
-
const
|
|
3259
|
-
if (te + v > H +
|
|
3260
|
-
const q =
|
|
3259
|
+
})).sort((s, w) => s.order - w.order), B = 2500, M = 4e3, b = performance.now(), N = (s) => {
|
|
3260
|
+
const w = (s - b) * M / B, A = Ft((w - 2900) / 850), T = Math.floor(w / 340);
|
|
3261
|
+
i.globalAlpha = 1, i.fillStyle = w < 650 || w >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, h, g);
|
|
3262
|
+
for (const F of $) {
|
|
3263
|
+
const H = F.x * h, ae = F.y * g, X = F.width * h, ie = F.height * g, W = F.size * (w < 650 ? 1.6 : w < 1600 ? 1.15 : 1), Q = W * 1.04;
|
|
3264
|
+
i.save(), i.globalAlpha = 1 - A, i.fillStyle = F.dark ? "#101216" : "#f4f5f7", i.fillRect(H, ae, X, ie), i.beginPath(), i.rect(H, ae, X, ie), i.clip(), i.font = W + "px sans-serif", i.textBaseline = "top";
|
|
3265
|
+
let te = H, Y = ae - (w * 0.012 + F.phase) % Q;
|
|
3266
|
+
const ne = F.text.split(" ");
|
|
3267
|
+
for (let he = 0; he < ne.length; he++) {
|
|
3268
|
+
const z = ne[he], v = i.measureText(z + " ").width;
|
|
3269
|
+
if (te + v > H + X && (te = H, Y += Q), Y > ae + ie) break;
|
|
3270
|
+
const q = F.index * 53 + he * 17;
|
|
3261
3271
|
i.save();
|
|
3262
|
-
const
|
|
3263
|
-
if (i.translate(te + (_ - te) *
|
|
3272
|
+
const p = Math.round((Y - 7) / 14), _ = 7 + Math.round((te - 7) / 14) * 14 + p % 2 * 7, y = 7 + p * 14;
|
|
3273
|
+
if (i.translate(te + (_ - te) * A, Y + (y - Y) * A), i.scale(1 - A * 0.94, 1 - A * 0.94), w < 650 && (q + T) % 4 > 0) {
|
|
3264
3274
|
i.restore(), te += v;
|
|
3265
3275
|
continue;
|
|
3266
3276
|
}
|
|
3267
|
-
(q +
|
|
3277
|
+
(q + T) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(q + T) % 3], i.fillRect(0, 0, i.measureText(z).width, Q), i.fillStyle = (q + T) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = F.dark ? "#f5f8ff" : "#101216", i.fillText(w < 650 ? z.toUpperCase() : z, 0, 0), i.restore(), te += v;
|
|
3268
3278
|
}
|
|
3269
3279
|
i.restore();
|
|
3270
3280
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
const
|
|
3273
|
-
for (const [
|
|
3281
|
+
if (A > 0) {
|
|
3282
|
+
const F = document.querySelector(".rp-hero"), H = F?.getBoundingClientRect().height || g, ae = i.createLinearGradient(0, 0, 0, H);
|
|
3283
|
+
for (const [X, ie] of [
|
|
3274
3284
|
[0, "#0b205e"],
|
|
3275
3285
|
[0.35, "#214eaf"],
|
|
3276
3286
|
[0.55, "#3564cc"],
|
|
@@ -3278,24 +3288,24 @@ function ei({
|
|
|
3278
3288
|
[0.93, "#edf4ff"],
|
|
3279
3289
|
[1, "#fff"]
|
|
3280
3290
|
])
|
|
3281
|
-
ae.addColorStop(
|
|
3282
|
-
i.globalAlpha =
|
|
3283
|
-
for (let
|
|
3284
|
-
for (let
|
|
3285
|
-
const Q = Math.pow(Math.max(0, 1 -
|
|
3286
|
-
-Math.pow((
|
|
3291
|
+
ae.addColorStop(X, ie);
|
|
3292
|
+
i.globalAlpha = A, i.fillStyle = ae, i.fillRect(0, 0, h, g);
|
|
3293
|
+
for (let X = 7, ie = 0; X < g; X += 14, ie++)
|
|
3294
|
+
for (let W = 7 + ie % 2 * 7; W < h; W += 14) {
|
|
3295
|
+
const Q = Math.pow(Math.max(0, 1 - X / H), 0.6), te = 1 - Math.exp(
|
|
3296
|
+
-Math.pow((W - h / 2) / (h * 0.28), 2) - Math.pow((X - H * 0.38) / (H * 0.24), 2)
|
|
3287
3297
|
) * 0.55;
|
|
3288
|
-
i.globalAlpha =
|
|
3298
|
+
i.globalAlpha = A * 0.54 * Q * te, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(W - 3.5, X), i.lineTo(W + 3.5, X), i.moveTo(W, X - 3.5), i.lineTo(W, X + 3.5), i.stroke();
|
|
3289
3299
|
}
|
|
3290
3300
|
}
|
|
3291
|
-
i.globalAlpha = 1, l.style.opacity = String(1 -
|
|
3301
|
+
i.globalAlpha = 1, l.style.opacity = String(1 - Ft((w - 3750) / 250)), w < M ? x = requestAnimationFrame(N) : t();
|
|
3292
3302
|
};
|
|
3293
|
-
|
|
3294
|
-
const f = setTimeout(t,
|
|
3303
|
+
x = requestAnimationFrame(N);
|
|
3304
|
+
const f = setTimeout(t, B + 300), E = () => {
|
|
3295
3305
|
d.matches && t();
|
|
3296
3306
|
};
|
|
3297
|
-
return addEventListener("resize",
|
|
3298
|
-
cancelAnimationFrame(
|
|
3307
|
+
return addEventListener("resize", C), d.addEventListener("change", E), () => {
|
|
3308
|
+
cancelAnimationFrame(x), clearTimeout(f), removeEventListener("resize", C), d.removeEventListener("change", E);
|
|
3299
3309
|
};
|
|
3300
3310
|
}, [t, r]), /* @__PURE__ */ e(
|
|
3301
3311
|
"canvas",
|
|
@@ -3313,11 +3323,11 @@ function ei({
|
|
|
3313
3323
|
}
|
|
3314
3324
|
);
|
|
3315
3325
|
}
|
|
3316
|
-
const
|
|
3326
|
+
const nr = {
|
|
3317
3327
|
"rp-effect-card": "rp_EffectCard-module_rp-effect-card_hcD4035l",
|
|
3318
3328
|
"rp-effect-content": "rp_EffectCard-module_rp-effect-content_4Oy-i-OP"
|
|
3319
|
-
},
|
|
3320
|
-
function
|
|
3329
|
+
}, vt = { ...mt, ...nr };
|
|
3330
|
+
function rr({
|
|
3321
3331
|
className: t = "",
|
|
3322
3332
|
children: n,
|
|
3323
3333
|
contentHTML: r,
|
|
@@ -3326,14 +3336,14 @@ function nr({
|
|
|
3326
3336
|
return /* @__PURE__ */ a(
|
|
3327
3337
|
"div",
|
|
3328
3338
|
{
|
|
3329
|
-
className:
|
|
3339
|
+
className: vt["rp-card"] + " " + vt["rp-effect-card"] + " " + t,
|
|
3330
3340
|
...o,
|
|
3331
3341
|
children: [
|
|
3332
|
-
/* @__PURE__ */ e(
|
|
3342
|
+
/* @__PURE__ */ e(Zn, {}),
|
|
3333
3343
|
r === void 0 ? n : /* @__PURE__ */ e(
|
|
3334
3344
|
"div",
|
|
3335
3345
|
{
|
|
3336
|
-
className:
|
|
3346
|
+
className: vt["rp-effect-content"],
|
|
3337
3347
|
dangerouslySetInnerHTML: { __html: r }
|
|
3338
3348
|
}
|
|
3339
3349
|
)
|
|
@@ -3341,7 +3351,7 @@ function nr({
|
|
|
3341
3351
|
}
|
|
3342
3352
|
);
|
|
3343
3353
|
}
|
|
3344
|
-
function
|
|
3354
|
+
function ai(t = Math.random() * 4294967295) {
|
|
3345
3355
|
let n = t >>> 0;
|
|
3346
3356
|
const r = () => {
|
|
3347
3357
|
n += 1831565813;
|
|
@@ -3364,16 +3374,16 @@ function ti(t = Math.random() * 4294967295) {
|
|
|
3364
3374
|
phase: o(0, Math.PI * 2)
|
|
3365
3375
|
};
|
|
3366
3376
|
}
|
|
3367
|
-
function
|
|
3377
|
+
function ni(t, n, r, o) {
|
|
3368
3378
|
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,
|
|
3379
|
+
const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction, g = Math.exp(-o * t.decay) * Math.min(1, o / 0.08), x = o * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), C = (l - x) / t.width, $ = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, B = Math.exp(-C * C) * g * $, M = Math.pow(Math.max(0, Math.cos(h)), 8), b = Math.exp(-Math.pow((l - x * 0.6) / 95, 2)) * M * g, N = Math.exp(-l * l / 14e3) * Math.max(0, 1 - o / 0.6), f = B * t.strength + b * 22 + N * 8, E = b * 18 * Math.sin(h) * t.direction;
|
|
3370
3380
|
return {
|
|
3371
3381
|
x: (n * f - r * E) / Math.max(1, l),
|
|
3372
3382
|
y: (r * f + n * E) / Math.max(1, l),
|
|
3373
|
-
energy:
|
|
3383
|
+
energy: B * 0.55 + b * 0.8 + N * 0.3
|
|
3374
3384
|
};
|
|
3375
3385
|
}
|
|
3376
|
-
const
|
|
3386
|
+
const je = {
|
|
3377
3387
|
"rp-alert-dialog__trigger": "rp_AlertDialog-module_rp-alert-dialog__trigger_zDrVBZPv",
|
|
3378
3388
|
"rp-alert-dialog__overlay": "rp_AlertDialog-module_rp-alert-dialog__overlay_aHs-GNOy",
|
|
3379
3389
|
"rp-alert-dialog__content": "rp_AlertDialog-module_rp-alert-dialog__content_2yGt8Pjg",
|
|
@@ -3382,110 +3392,110 @@ const Ye = {
|
|
|
3382
3392
|
"rp-alert-dialog__action": "rp_AlertDialog-module_rp-alert-dialog__action_1Axjzt0X",
|
|
3383
3393
|
"rp-alert-dialog__cancel": "rp_AlertDialog-module_rp-alert-dialog__cancel_BkaoYoMJ",
|
|
3384
3394
|
"rp-alert-dialog__footer": "rp_AlertDialog-module_rp-alert-dialog__footer_7cTm367U"
|
|
3385
|
-
},
|
|
3395
|
+
}, Tt = (t) => /* @__PURE__ */ e(ge.Root, { ...t }), Dt = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3386
3396
|
ge.Trigger,
|
|
3387
3397
|
{
|
|
3388
3398
|
ref: r,
|
|
3389
3399
|
className: re(
|
|
3390
|
-
!n.asChild &&
|
|
3400
|
+
!n.asChild && je["rp-alert-dialog__trigger"],
|
|
3391
3401
|
t
|
|
3392
3402
|
),
|
|
3393
3403
|
...n
|
|
3394
3404
|
}
|
|
3395
3405
|
));
|
|
3396
|
-
|
|
3397
|
-
const
|
|
3406
|
+
Dt.displayName = ge.Trigger.displayName;
|
|
3407
|
+
const ir = ge.Portal, Ot = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3398
3408
|
ge.Overlay,
|
|
3399
3409
|
{
|
|
3400
3410
|
ref: r,
|
|
3401
|
-
className: re(
|
|
3411
|
+
className: re(je["rp-alert-dialog__overlay"], t),
|
|
3402
3412
|
...n
|
|
3403
3413
|
}
|
|
3404
3414
|
));
|
|
3405
|
-
|
|
3406
|
-
const
|
|
3415
|
+
Ot.displayName = ge.Overlay.displayName;
|
|
3416
|
+
const Ut = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3407
3417
|
ge.Content,
|
|
3408
3418
|
{
|
|
3409
3419
|
ref: r,
|
|
3410
|
-
className: re(
|
|
3420
|
+
className: re(je["rp-alert-dialog__content"], t),
|
|
3411
3421
|
...n
|
|
3412
3422
|
}
|
|
3413
3423
|
));
|
|
3414
|
-
|
|
3415
|
-
const
|
|
3424
|
+
Ut.displayName = ge.Content.displayName;
|
|
3425
|
+
const zt = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3416
3426
|
ge.Title,
|
|
3417
3427
|
{
|
|
3418
3428
|
ref: r,
|
|
3419
|
-
className: re(
|
|
3429
|
+
className: re(je["rp-alert-dialog__title"], t),
|
|
3420
3430
|
...n
|
|
3421
3431
|
}
|
|
3422
3432
|
));
|
|
3423
|
-
|
|
3424
|
-
const
|
|
3433
|
+
zt.displayName = ge.Title.displayName;
|
|
3434
|
+
const Xt = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3425
3435
|
ge.Description,
|
|
3426
3436
|
{
|
|
3427
3437
|
ref: r,
|
|
3428
|
-
className: re(
|
|
3438
|
+
className: re(je["rp-alert-dialog__description"], t),
|
|
3429
3439
|
...n
|
|
3430
3440
|
}
|
|
3431
3441
|
));
|
|
3432
|
-
|
|
3433
|
-
const
|
|
3442
|
+
Xt.displayName = ge.Description.displayName;
|
|
3443
|
+
const Gt = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3434
3444
|
ge.Action,
|
|
3435
3445
|
{
|
|
3436
3446
|
ref: r,
|
|
3437
3447
|
className: re(
|
|
3438
|
-
!n.asChild &&
|
|
3448
|
+
!n.asChild && je["rp-alert-dialog__action"],
|
|
3439
3449
|
t
|
|
3440
3450
|
),
|
|
3441
3451
|
...n
|
|
3442
3452
|
}
|
|
3443
3453
|
));
|
|
3444
|
-
|
|
3445
|
-
const
|
|
3454
|
+
Gt.displayName = ge.Action.displayName;
|
|
3455
|
+
const Yt = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3446
3456
|
ge.Cancel,
|
|
3447
3457
|
{
|
|
3448
3458
|
ref: r,
|
|
3449
3459
|
className: re(
|
|
3450
|
-
!n.asChild &&
|
|
3460
|
+
!n.asChild && je["rp-alert-dialog__cancel"],
|
|
3451
3461
|
t
|
|
3452
3462
|
),
|
|
3453
3463
|
...n
|
|
3454
3464
|
}
|
|
3455
3465
|
));
|
|
3456
|
-
|
|
3457
|
-
const
|
|
3466
|
+
Yt.displayName = ge.Cancel.displayName;
|
|
3467
|
+
const sr = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3458
3468
|
"div",
|
|
3459
3469
|
{
|
|
3460
3470
|
ref: r,
|
|
3461
|
-
className: re(
|
|
3471
|
+
className: re(je["rp-alert-dialog__footer"], t),
|
|
3462
3472
|
...n
|
|
3463
3473
|
}
|
|
3464
|
-
)),
|
|
3465
|
-
Root:
|
|
3466
|
-
Trigger:
|
|
3467
|
-
Portal:
|
|
3468
|
-
Overlay:
|
|
3469
|
-
Content:
|
|
3470
|
-
Title:
|
|
3471
|
-
Description:
|
|
3472
|
-
Action:
|
|
3473
|
-
Cancel:
|
|
3474
|
-
Footer:
|
|
3475
|
-
}),
|
|
3476
|
-
card:
|
|
3477
|
-
header:
|
|
3478
|
-
title:
|
|
3479
|
-
description:
|
|
3480
|
-
providers:
|
|
3481
|
-
providerButton:
|
|
3482
|
-
providerIcon:
|
|
3483
|
-
keyForm:
|
|
3484
|
-
divider:
|
|
3485
|
-
keyInputRow:
|
|
3486
|
-
keyInput:
|
|
3487
|
-
footer:
|
|
3488
|
-
},
|
|
3474
|
+
)), ri = Object.assign(Tt, {
|
|
3475
|
+
Root: Tt,
|
|
3476
|
+
Trigger: Dt,
|
|
3477
|
+
Portal: ir,
|
|
3478
|
+
Overlay: Ot,
|
|
3479
|
+
Content: Ut,
|
|
3480
|
+
Title: zt,
|
|
3481
|
+
Description: Xt,
|
|
3482
|
+
Action: Gt,
|
|
3483
|
+
Cancel: Yt,
|
|
3484
|
+
Footer: sr
|
|
3485
|
+
}), or = "rp_AuthCard-module_card_3af6mRI1", lr = "rp_AuthCard-module_header_WB-cRppT", cr = "rp_AuthCard-module_title_b2lbN-iF", dr = "rp_AuthCard-module_description_zPbJJzv5", hr = "rp_AuthCard-module_providers_Lr2Os9jM", pr = "rp_AuthCard-module_providerButton_ibhdV26C", mr = "rp_AuthCard-module_providerIcon_Uj09QL-n", ur = "rp_AuthCard-module_keyForm_0VG0GeLp", gr = "rp_AuthCard-module_divider_r-wmQ2Yq", fr = "rp_AuthCard-module_keyInputRow_n4XX9BYm", br = "rp_AuthCard-module_keyInput_rzjbrJea", vr = "rp_AuthCard-module_footer_51y8yr80", ke = {
|
|
3486
|
+
card: or,
|
|
3487
|
+
header: lr,
|
|
3488
|
+
title: cr,
|
|
3489
|
+
description: dr,
|
|
3490
|
+
providers: hr,
|
|
3491
|
+
providerButton: pr,
|
|
3492
|
+
providerIcon: mr,
|
|
3493
|
+
keyForm: ur,
|
|
3494
|
+
divider: gr,
|
|
3495
|
+
keyInputRow: fr,
|
|
3496
|
+
keyInput: br,
|
|
3497
|
+
footer: vr
|
|
3498
|
+
}, ii = ({
|
|
3489
3499
|
title: t = "Sign in to RouterPlus",
|
|
3490
3500
|
description: n = "Access models and manage your account",
|
|
3491
3501
|
providers: r = [],
|
|
@@ -3493,54 +3503,54 @@ const ir = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3493
3503
|
apiKeyPlaceholder: l = "Enter your rp_live_... API key",
|
|
3494
3504
|
onApiKeySubmit: i,
|
|
3495
3505
|
footer: d,
|
|
3496
|
-
className:
|
|
3506
|
+
className: h
|
|
3497
3507
|
}) => {
|
|
3498
|
-
const [g,
|
|
3499
|
-
|
|
3508
|
+
const [g, x] = Oe(""), C = ($) => {
|
|
3509
|
+
$.preventDefault(), g.trim() && i?.(g.trim());
|
|
3500
3510
|
};
|
|
3501
|
-
return /* @__PURE__ */ a(
|
|
3502
|
-
/* @__PURE__ */ a("div", { className:
|
|
3503
|
-
/* @__PURE__ */ e("h1", { className:
|
|
3504
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
3511
|
+
return /* @__PURE__ */ a(rr, { className: re(ke.card, h), children: [
|
|
3512
|
+
/* @__PURE__ */ a("div", { className: ke.header, children: [
|
|
3513
|
+
/* @__PURE__ */ e("h1", { className: ke.title, children: t }),
|
|
3514
|
+
n && /* @__PURE__ */ e("p", { className: ke.description, children: n })
|
|
3505
3515
|
] }),
|
|
3506
|
-
r.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
3507
|
-
|
|
3516
|
+
r.length > 0 && /* @__PURE__ */ e("div", { className: ke.providers, children: r.map(($) => /* @__PURE__ */ a(
|
|
3517
|
+
J,
|
|
3508
3518
|
{
|
|
3509
|
-
className:
|
|
3519
|
+
className: ke.providerButton,
|
|
3510
3520
|
variant: "outline",
|
|
3511
|
-
href:
|
|
3512
|
-
onClick:
|
|
3521
|
+
href: $.href,
|
|
3522
|
+
onClick: $.onClick,
|
|
3513
3523
|
children: [
|
|
3514
|
-
|
|
3515
|
-
/* @__PURE__ */ e("span", { children:
|
|
3524
|
+
$.icon && /* @__PURE__ */ e("span", { className: ke.providerIcon, "aria-hidden": "true", children: $.icon }),
|
|
3525
|
+
/* @__PURE__ */ e("span", { children: $.name })
|
|
3516
3526
|
]
|
|
3517
3527
|
},
|
|
3518
|
-
|
|
3528
|
+
$.id
|
|
3519
3529
|
)) }),
|
|
3520
|
-
i && /* @__PURE__ */ a("form", { className:
|
|
3521
|
-
/* @__PURE__ */ e("div", { className:
|
|
3522
|
-
/* @__PURE__ */ a("div", { className:
|
|
3530
|
+
i && /* @__PURE__ */ a("form", { className: ke.keyForm, onSubmit: C, children: [
|
|
3531
|
+
/* @__PURE__ */ e("div", { className: ke.divider, children: /* @__PURE__ */ e("span", { children: o }) }),
|
|
3532
|
+
/* @__PURE__ */ a("div", { className: ke.keyInputRow, children: [
|
|
3523
3533
|
/* @__PURE__ */ e(
|
|
3524
|
-
|
|
3534
|
+
ht,
|
|
3525
3535
|
{
|
|
3526
3536
|
type: "password",
|
|
3527
3537
|
placeholder: l,
|
|
3528
3538
|
value: g,
|
|
3529
|
-
onChange: (
|
|
3530
|
-
className:
|
|
3539
|
+
onChange: ($) => x($.target.value),
|
|
3540
|
+
className: ke.keyInput
|
|
3531
3541
|
}
|
|
3532
3542
|
),
|
|
3533
|
-
/* @__PURE__ */ e(
|
|
3543
|
+
/* @__PURE__ */ e(J, { variant: "primary", type: "submit", disabled: !g.trim(), children: "Continue" })
|
|
3534
3544
|
] })
|
|
3535
3545
|
] }),
|
|
3536
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
3546
|
+
d && /* @__PURE__ */ e("div", { className: ke.footer, children: d })
|
|
3537
3547
|
] });
|
|
3538
|
-
},
|
|
3539
|
-
footer:
|
|
3540
|
-
nav:
|
|
3541
|
-
link:
|
|
3542
|
-
copyright:
|
|
3543
|
-
},
|
|
3548
|
+
}, yr = "rp_Footer-module_footer_hxH87TcN", _r = "rp_Footer-module_nav_nBjfaMF3", Nr = "rp_Footer-module_link_8Rd1iGUN", wr = "rp_Footer-module_copyright_MOU-OKDL", dt = {
|
|
3549
|
+
footer: yr,
|
|
3550
|
+
nav: _r,
|
|
3551
|
+
link: Nr,
|
|
3552
|
+
copyright: wr
|
|
3553
|
+
}, si = ({
|
|
3544
3554
|
logoHref: t = "/",
|
|
3545
3555
|
links: n = [
|
|
3546
3556
|
{ label: "Sign in", href: "/auth" },
|
|
@@ -3555,68 +3565,68 @@ const ir = Ge(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3555
3565
|
],
|
|
3556
3566
|
copyright: r,
|
|
3557
3567
|
className: o
|
|
3558
|
-
}) => /* @__PURE__ */ a("footer", { className: re(
|
|
3559
|
-
/* @__PURE__ */ e(
|
|
3560
|
-
/* @__PURE__ */ e("nav", { className:
|
|
3568
|
+
}) => /* @__PURE__ */ a("footer", { className: re(dt.footer, o), children: [
|
|
3569
|
+
/* @__PURE__ */ e(Pt, { href: t, footer: !0 }),
|
|
3570
|
+
/* @__PURE__ */ e("nav", { className: dt.nav, "aria-label": "Footer navigation", children: n.map((l) => /* @__PURE__ */ e(
|
|
3561
3571
|
"a",
|
|
3562
3572
|
{
|
|
3563
3573
|
href: l.href,
|
|
3564
3574
|
target: l.target,
|
|
3565
3575
|
rel: l.rel,
|
|
3566
|
-
className:
|
|
3576
|
+
className: dt.link,
|
|
3567
3577
|
children: l.label
|
|
3568
3578
|
},
|
|
3569
3579
|
l.label
|
|
3570
3580
|
)) }),
|
|
3571
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
3572
|
-
] }),
|
|
3573
|
-
header:
|
|
3574
|
-
lead:
|
|
3575
|
-
logo:
|
|
3576
|
-
center:
|
|
3577
|
-
tools:
|
|
3578
|
-
},
|
|
3581
|
+
r && /* @__PURE__ */ e("div", { className: dt.copyright, children: r })
|
|
3582
|
+
] }), Mr = "rp_Header-module_header_Turig8tF", kr = "rp_Header-module_lead_0DaE0r8e", $r = "rp_Header-module_logo_mtMWQXw6", xr = "rp_Header-module_center_q6eURj1J", Cr = "rp_Header-module_tools_H6sckGtR", tt = {
|
|
3583
|
+
header: Mr,
|
|
3584
|
+
lead: kr,
|
|
3585
|
+
logo: $r,
|
|
3586
|
+
center: xr,
|
|
3587
|
+
tools: Cr
|
|
3588
|
+
}, Ar = [
|
|
3579
3589
|
{ value: "en", label: "English" },
|
|
3580
3590
|
{ value: "de", label: "Deutsch" },
|
|
3581
3591
|
{ value: "es", label: "Español" },
|
|
3582
3592
|
{ value: "fr", label: "Français" },
|
|
3583
3593
|
{ value: "ru", label: "Русский" }
|
|
3584
3594
|
];
|
|
3585
|
-
function
|
|
3595
|
+
function oi({
|
|
3586
3596
|
dark: t = !1,
|
|
3587
3597
|
onThemeChange: n,
|
|
3588
3598
|
language: r = "en",
|
|
3589
|
-
languages: o =
|
|
3599
|
+
languages: o = Ar,
|
|
3590
3600
|
onLanguageChange: l,
|
|
3591
3601
|
left: i,
|
|
3592
3602
|
afterLogo: d,
|
|
3593
|
-
center:
|
|
3603
|
+
center: h,
|
|
3594
3604
|
right: g,
|
|
3595
|
-
action:
|
|
3596
|
-
surface:
|
|
3597
|
-
href:
|
|
3605
|
+
action: x,
|
|
3606
|
+
surface: C = "hero",
|
|
3607
|
+
href: $ = "/en"
|
|
3598
3608
|
}) {
|
|
3599
|
-
const
|
|
3609
|
+
const B = g === void 0 ? x : g;
|
|
3600
3610
|
return /* @__PURE__ */ a(
|
|
3601
3611
|
"header",
|
|
3602
3612
|
{
|
|
3603
|
-
className:
|
|
3613
|
+
className: tt.header,
|
|
3604
3614
|
"data-theme": t ? "dark" : "light",
|
|
3605
|
-
"data-surface":
|
|
3615
|
+
"data-surface": C,
|
|
3606
3616
|
children: [
|
|
3607
|
-
/* @__PURE__ */ a("div", { className:
|
|
3617
|
+
/* @__PURE__ */ a("div", { className: tt.lead, children: [
|
|
3608
3618
|
i,
|
|
3609
|
-
/* @__PURE__ */ e(
|
|
3619
|
+
/* @__PURE__ */ e(Pt, { className: tt.logo, href: $ }),
|
|
3610
3620
|
d
|
|
3611
3621
|
] }),
|
|
3612
|
-
|
|
3613
|
-
/* @__PURE__ */ a("div", { className:
|
|
3614
|
-
/* @__PURE__ */ e(
|
|
3622
|
+
h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className: tt.center, children: h }),
|
|
3623
|
+
/* @__PURE__ */ a("div", { className: tt.tools, children: [
|
|
3624
|
+
/* @__PURE__ */ e(ua, { dark: t, onThemeChange: n }),
|
|
3615
3625
|
/* @__PURE__ */ e(
|
|
3616
|
-
|
|
3626
|
+
ga,
|
|
3617
3627
|
{
|
|
3618
|
-
className:
|
|
3619
|
-
triggerContent: /* @__PURE__ */ e(
|
|
3628
|
+
className: tt.language,
|
|
3629
|
+
triggerContent: /* @__PURE__ */ e(ya, { size: 18, "aria-hidden": "true" }),
|
|
3620
3630
|
popupAlign: "end",
|
|
3621
3631
|
popupTheme: t ? "dark" : "light",
|
|
3622
3632
|
options: o,
|
|
@@ -3625,76 +3635,76 @@ function si({
|
|
|
3625
3635
|
ariaLabel: `Change language: ${o.find((M) => M.value === r)?.label ?? r}`
|
|
3626
3636
|
}
|
|
3627
3637
|
),
|
|
3628
|
-
|
|
3638
|
+
B === void 0 ? /* @__PURE__ */ e(J, { variant: "primary", href: "/en/auth", children: "API Key" }) : B
|
|
3629
3639
|
] })
|
|
3630
3640
|
]
|
|
3631
3641
|
}
|
|
3632
3642
|
);
|
|
3633
3643
|
}
|
|
3634
3644
|
export {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3645
|
+
ri as AlertDialog,
|
|
3646
|
+
Gt as AlertDialogAction,
|
|
3647
|
+
Yt as AlertDialogCancel,
|
|
3648
|
+
Ut as AlertDialogContent,
|
|
3649
|
+
Xt as AlertDialogDescription,
|
|
3650
|
+
sr as AlertDialogFooter,
|
|
3651
|
+
Ot as AlertDialogOverlay,
|
|
3652
|
+
ir as AlertDialogPortal,
|
|
3653
|
+
Tt as AlertDialogRoot,
|
|
3654
|
+
zt as AlertDialogTitle,
|
|
3655
|
+
Dt as AlertDialogTrigger,
|
|
3656
|
+
ii as AuthCard,
|
|
3657
|
+
Zn as BackgroundDotted,
|
|
3658
|
+
Qr as BackgroundLineField,
|
|
3659
|
+
Jr as BackgroundPlus,
|
|
3660
|
+
ei as BackgroundSquare,
|
|
3661
|
+
zr as BarChart,
|
|
3662
|
+
Ur as Billing,
|
|
3663
|
+
ti as BrandIntro,
|
|
3664
|
+
Tr as CustomerDashboard,
|
|
3665
|
+
rr as EffectCard,
|
|
3666
|
+
si as Footer,
|
|
3667
|
+
oi as Header,
|
|
3668
|
+
Xr as Heatmap,
|
|
3669
|
+
Gr as MetricStrip,
|
|
3670
|
+
di as MonthlySubscription,
|
|
3671
|
+
Yr as Panel,
|
|
3672
|
+
Zr as PlusField,
|
|
3673
|
+
Hr as Provider,
|
|
3674
|
+
Dr as ProviderLogo,
|
|
3675
|
+
jr as Ranking,
|
|
3676
|
+
Wr as RequestTable,
|
|
3667
3677
|
ue as RouterPlusGlyph,
|
|
3668
|
-
|
|
3669
|
-
|
|
3678
|
+
Ir as RouterPlusHarnessMapping,
|
|
3679
|
+
st as RouterPlusIcon,
|
|
3670
3680
|
qr as RouterPlusProviderList,
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3681
|
+
Pr as RouterPlusShell,
|
|
3682
|
+
Er as RouterPlusUsageSummary,
|
|
3683
|
+
Vr as SessionShape,
|
|
3684
|
+
hi as Shop,
|
|
3685
|
+
pi as ShopAccountCard,
|
|
3686
|
+
mi as ShopCard,
|
|
3687
|
+
ui as SideNavigation,
|
|
3688
|
+
gi as SideNavigationBrand,
|
|
3689
|
+
fi as SideNavigationEmpty,
|
|
3690
|
+
bi as SideNavigationFooter,
|
|
3691
|
+
vi as SideNavigationHeader,
|
|
3692
|
+
yi as SideNavigationItem,
|
|
3693
|
+
_i as SideNavigationScroll,
|
|
3694
|
+
Ni as SideNavigationSection,
|
|
3695
|
+
wi as SideNavigationStatus,
|
|
3696
|
+
Mi as SideNavigationSubItem,
|
|
3697
|
+
ki as SideNavigationSubNav,
|
|
3698
|
+
$i as SideNavigationToggle,
|
|
3699
|
+
xi as Support,
|
|
3700
|
+
Ci as SupportDialog,
|
|
3701
|
+
Kr as UsageList,
|
|
3702
|
+
Or as flagForRegion,
|
|
3703
|
+
ai as generateBlast,
|
|
3704
|
+
Ai as glyphs,
|
|
3705
|
+
Li as icons,
|
|
3706
|
+
Sn as regionForLocale,
|
|
3707
|
+
Wt as routerPlusLogo,
|
|
3708
|
+
ni as sampleBlast,
|
|
3709
|
+
Si as useThemeTransition
|
|
3700
3710
|
};
|