@eloquentai/chat-sdk 0.28.6 → 0.28.7
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/{index-Cf9rnIgh.js → index-BOytacTX.js} +2 -2
- package/dist/{index-Cf9rnIgh.js.map → index-BOytacTX.js.map} +1 -1
- package/dist/{index-BrPq_oiC.js → index-DGqJFU3a.js} +646 -634
- package/dist/index-DGqJFU3a.js.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/lib/eloquent-ai-api-client.d.ts +4 -0
- package/dist/lib/url-params.d.ts +5 -0
- package/package.json +1 -1
- package/dist/index-BrPq_oiC.js.map +0 -1
|
@@ -6,16 +6,16 @@ import Bg, { createPortal as ms } from "react-dom";
|
|
|
6
6
|
import Vg from "react-dom/client";
|
|
7
7
|
try {
|
|
8
8
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
9
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "80a2c361-fdcb-469e-9981-6738ab99e117", e._sentryDebugIdIdentifier = "sentry-dbid-80a2c361-fdcb-469e-9981-6738ab99e117");
|
|
10
10
|
} catch {
|
|
11
11
|
}
|
|
12
12
|
{
|
|
13
13
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
14
|
-
e.SENTRY_RELEASE = { id: "
|
|
14
|
+
e.SENTRY_RELEASE = { id: "0dfd37d46807efa81c5c2671a1472b78d24e7766" };
|
|
15
15
|
}
|
|
16
16
|
if (typeof window < "u") {
|
|
17
17
|
const e = "production";
|
|
18
|
-
import("./index-
|
|
18
|
+
import("./index-BOytacTX.js").then((t) => {
|
|
19
19
|
t.init({
|
|
20
20
|
dsn: void 0,
|
|
21
21
|
environment: e,
|
|
@@ -5603,7 +5603,7 @@ dh.displayName = fh;
|
|
|
5603
5603
|
function al(e) {
|
|
5604
5604
|
return e ? "open" : "closed";
|
|
5605
5605
|
}
|
|
5606
|
-
var hh = "DialogTitleWarning", [
|
|
5606
|
+
var hh = "DialogTitleWarning", [yN, ph] = Bb(hh, {
|
|
5607
5607
|
contentName: gr,
|
|
5608
5608
|
titleName: ol,
|
|
5609
5609
|
docsSlug: "dialog"
|
|
@@ -24207,9 +24207,17 @@ class rE {
|
|
|
24207
24207
|
return r;
|
|
24208
24208
|
}
|
|
24209
24209
|
}
|
|
24210
|
-
|
|
24210
|
+
function iE() {
|
|
24211
|
+
if (typeof window > "u")
|
|
24212
|
+
return {};
|
|
24213
|
+
const e = new URLSearchParams(window.location.search), t = {};
|
|
24214
|
+
return e.forEach((n, r) => {
|
|
24215
|
+
t[r] = n;
|
|
24216
|
+
}), t;
|
|
24217
|
+
}
|
|
24218
|
+
const oE = "eloquent-ai::conversation-data", aE = 1800 * 1e3;
|
|
24211
24219
|
function Rl({ appId: e }) {
|
|
24212
|
-
const t = Dr(() => `${
|
|
24220
|
+
const t = Dr(() => `${oE}-${e}`, [e]), n = Dr(
|
|
24213
24221
|
() => ({
|
|
24214
24222
|
conversationId: null,
|
|
24215
24223
|
userId: null,
|
|
@@ -24230,7 +24238,7 @@ function Rl({ appId: e }) {
|
|
|
24230
24238
|
}, [t, n]), i = ft(() => {
|
|
24231
24239
|
try {
|
|
24232
24240
|
const l = r();
|
|
24233
|
-
return l.lastActivity ? Date.now() - l.lastActivity >
|
|
24241
|
+
return l.lastActivity ? Date.now() - l.lastActivity > aE : !0;
|
|
24234
24242
|
} catch (l) {
|
|
24235
24243
|
return console.error("Error checking conversation expiration:", l), !0;
|
|
24236
24244
|
}
|
|
@@ -24286,7 +24294,7 @@ function Rl({ appId: e }) {
|
|
|
24286
24294
|
updateLastActivity: s
|
|
24287
24295
|
};
|
|
24288
24296
|
}
|
|
24289
|
-
const
|
|
24297
|
+
const sE = "Logging", lE = "x-amz-user-agent", cE = "NoHubcallbackProvidedException";
|
|
24290
24298
|
var on;
|
|
24291
24299
|
(function(e) {
|
|
24292
24300
|
e.DEBUG = "DEBUG", e.ERROR = "ERROR", e.INFO = "INFO", e.WARN = "WARN", e.VERBOSE = "VERBOSE", e.NONE = "NONE";
|
|
@@ -24403,7 +24411,7 @@ class vn {
|
|
|
24403
24411
|
this._log(on.VERBOSE, ...t);
|
|
24404
24412
|
}
|
|
24405
24413
|
addPluggable(t) {
|
|
24406
|
-
t && t.getCategoryName() ===
|
|
24414
|
+
t && t.getCategoryName() === sE && (this._pluggables.push(t), t.configure(this._config));
|
|
24407
24415
|
}
|
|
24408
24416
|
listPluggables() {
|
|
24409
24417
|
return this._pluggables;
|
|
@@ -24429,7 +24437,7 @@ class Vr extends Error {
|
|
|
24429
24437
|
}
|
|
24430
24438
|
}
|
|
24431
24439
|
const Tl = typeof Symbol < "u" ? Symbol("amplify_default") : "@@amplify_default", mi = new vn("Hub");
|
|
24432
|
-
class
|
|
24440
|
+
class uE {
|
|
24433
24441
|
constructor(t) {
|
|
24434
24442
|
this.listeners = /* @__PURE__ */ new Map(), this.protectedChannels = [
|
|
24435
24443
|
"core",
|
|
@@ -24477,7 +24485,7 @@ class cE {
|
|
|
24477
24485
|
let i;
|
|
24478
24486
|
if (typeof n != "function")
|
|
24479
24487
|
throw new Vr({
|
|
24480
|
-
name:
|
|
24488
|
+
name: cE,
|
|
24481
24489
|
message: "No callback supplied to Hub"
|
|
24482
24490
|
});
|
|
24483
24491
|
i = n;
|
|
@@ -24501,7 +24509,7 @@ class cE {
|
|
|
24501
24509
|
});
|
|
24502
24510
|
}
|
|
24503
24511
|
}
|
|
24504
|
-
const Pl = new
|
|
24512
|
+
const Pl = new uE("__default__"), fE = () => {
|
|
24505
24513
|
if (typeof window < "u" && typeof window.btoa == "function")
|
|
24506
24514
|
return window.btoa;
|
|
24507
24515
|
if (typeof btoa == "function")
|
|
@@ -24511,7 +24519,7 @@ const Pl = new cE("__default__"), uE = () => {
|
|
|
24511
24519
|
message: "Cannot resolve the `btoa` function from the environment."
|
|
24512
24520
|
});
|
|
24513
24521
|
}, Qp = (e) => e && e["nonRetryable"], mo = new vn("retryUtil");
|
|
24514
|
-
async function
|
|
24522
|
+
async function dE(e, t, n, r) {
|
|
24515
24523
|
if (typeof e != "function")
|
|
24516
24524
|
throw Error("functionToRetry must be a function");
|
|
24517
24525
|
return new Promise(async (i, o) => {
|
|
@@ -24547,7 +24555,7 @@ const em = (e) => {
|
|
|
24547
24555
|
(r && typeof r == "object" || typeof r == "function") && em(r);
|
|
24548
24556
|
}
|
|
24549
24557
|
return Object.freeze(e);
|
|
24550
|
-
},
|
|
24558
|
+
}, hE = new vn("parseAWSExports"), pE = {
|
|
24551
24559
|
API_KEY: "apiKey",
|
|
24552
24560
|
AWS_IAM: "iam",
|
|
24553
24561
|
AMAZON_COGNITO_USER_POOLS: "userPool",
|
|
@@ -24560,7 +24568,7 @@ const em = (e) => {
|
|
|
24560
24568
|
// ref: https://github.com/aws-amplify/amplify-js/pull/12922
|
|
24561
24569
|
// TODO: @v7 remove next line
|
|
24562
24570
|
LAMBDA: "lambda"
|
|
24563
|
-
},
|
|
24571
|
+
}, mE = (e = {}) => {
|
|
24564
24572
|
if (!Object.prototype.hasOwnProperty.call(e, "aws_project_region"))
|
|
24565
24573
|
throw new Vr({
|
|
24566
24574
|
name: "InvalidParameterException",
|
|
@@ -24603,8 +24611,8 @@ const em = (e) => {
|
|
|
24603
24611
|
if (Array.isArray(o) && (q.Interactions = {
|
|
24604
24612
|
LexV1: Object.fromEntries(o.map((oe) => [oe.name, oe]))
|
|
24605
24613
|
}), r) {
|
|
24606
|
-
const oe =
|
|
24607
|
-
oe ||
|
|
24614
|
+
const oe = pE[n];
|
|
24615
|
+
oe || hE.debug(`Invalid authentication type ${n}. Falling back to IAM.`), q.API = {
|
|
24608
24616
|
GraphQL: {
|
|
24609
24617
|
endpoint: r,
|
|
24610
24618
|
apiKey: t,
|
|
@@ -24652,9 +24660,9 @@ const em = (e) => {
|
|
|
24652
24660
|
if (q.Auth && ge && (q.Auth.Cognito.loginWith = {
|
|
24653
24661
|
...q.Auth.Cognito.loginWith,
|
|
24654
24662
|
oauth: {
|
|
24655
|
-
...
|
|
24663
|
+
...gE(te),
|
|
24656
24664
|
...N && {
|
|
24657
|
-
providers:
|
|
24665
|
+
providers: vE(m)
|
|
24658
24666
|
}
|
|
24659
24667
|
}
|
|
24660
24668
|
}), j && (q.Storage = {
|
|
@@ -24701,31 +24709,31 @@ const em = (e) => {
|
|
|
24701
24709
|
} : H;
|
|
24702
24710
|
}
|
|
24703
24711
|
return q;
|
|
24704
|
-
}, nf = (e) => e?.split(",") ?? [],
|
|
24712
|
+
}, nf = (e) => e?.split(",") ?? [], gE = ({ domain: e, scope: t, redirectSignIn: n, redirectSignOut: r, responseType: i }) => ({
|
|
24705
24713
|
domain: e,
|
|
24706
24714
|
scopes: t,
|
|
24707
24715
|
redirectSignIn: nf(n),
|
|
24708
24716
|
redirectSignOut: nf(r),
|
|
24709
24717
|
responseType: i
|
|
24710
|
-
}),
|
|
24718
|
+
}), vE = (e) => e.map((t) => {
|
|
24711
24719
|
const n = t.toLowerCase();
|
|
24712
24720
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
24713
|
-
}),
|
|
24721
|
+
}), bE = Symbol("oauth-listener"), zt = [];
|
|
24714
24722
|
for (let e = 0; e < 256; ++e)
|
|
24715
24723
|
zt.push((e + 256).toString(16).slice(1));
|
|
24716
|
-
function
|
|
24724
|
+
function yE(e, t = 0) {
|
|
24717
24725
|
return (zt[e[t + 0]] + zt[e[t + 1]] + zt[e[t + 2]] + zt[e[t + 3]] + "-" + zt[e[t + 4]] + zt[e[t + 5]] + "-" + zt[e[t + 6]] + zt[e[t + 7]] + "-" + zt[e[t + 8]] + zt[e[t + 9]] + "-" + zt[e[t + 10]] + zt[e[t + 11]] + zt[e[t + 12]] + zt[e[t + 13]] + zt[e[t + 14]] + zt[e[t + 15]]).toLowerCase();
|
|
24718
24726
|
}
|
|
24719
|
-
const
|
|
24720
|
-
function
|
|
24721
|
-
return crypto.getRandomValues(
|
|
24722
|
-
}
|
|
24723
|
-
function xE(e, t, n) {
|
|
24724
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : kE(e, t, n);
|
|
24727
|
+
const wE = new Uint8Array(16);
|
|
24728
|
+
function xE() {
|
|
24729
|
+
return crypto.getRandomValues(wE);
|
|
24725
24730
|
}
|
|
24726
24731
|
function kE(e, t, n) {
|
|
24732
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : _E(e, t, n);
|
|
24733
|
+
}
|
|
24734
|
+
function _E(e, t, n) {
|
|
24727
24735
|
e = e || {};
|
|
24728
|
-
const r = e.random ?? e.rng?.() ??
|
|
24736
|
+
const r = e.random ?? e.rng?.() ?? xE();
|
|
24729
24737
|
if (r.length < 16)
|
|
24730
24738
|
throw new Error("Random bytes length must be >= 16");
|
|
24731
24739
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
@@ -24735,13 +24743,13 @@ function kE(e, t, n) {
|
|
|
24735
24743
|
t[n + i] = r[i];
|
|
24736
24744
|
return t;
|
|
24737
24745
|
}
|
|
24738
|
-
return
|
|
24746
|
+
return yE(r);
|
|
24739
24747
|
}
|
|
24740
|
-
function
|
|
24748
|
+
function SE(e) {
|
|
24741
24749
|
const { version: t } = e;
|
|
24742
24750
|
return t ? t.startsWith("1") : !1;
|
|
24743
24751
|
}
|
|
24744
|
-
function
|
|
24752
|
+
function CE(e) {
|
|
24745
24753
|
if (!e)
|
|
24746
24754
|
return;
|
|
24747
24755
|
const { bucket_name: t, aws_region: n, buckets: r } = e;
|
|
@@ -24749,11 +24757,11 @@ function SE(e) {
|
|
|
24749
24757
|
S3: {
|
|
24750
24758
|
bucket: t,
|
|
24751
24759
|
region: n,
|
|
24752
|
-
buckets: r &&
|
|
24760
|
+
buckets: r && ME(r)
|
|
24753
24761
|
}
|
|
24754
24762
|
};
|
|
24755
24763
|
}
|
|
24756
|
-
function
|
|
24764
|
+
function EE(e) {
|
|
24757
24765
|
if (!e)
|
|
24758
24766
|
return;
|
|
24759
24767
|
const { user_pool_id: t, user_pool_client_id: n, identity_pool_id: r, password_policy: i, mfa_configuration: o, mfa_methods: a, unauthenticated_identities_enabled: s, oauth: l, username_attributes: u, standard_required_attributes: h, groups: p, passwordless: v } = e, m = {
|
|
@@ -24773,7 +24781,7 @@ function CE(e) {
|
|
|
24773
24781
|
requireSpecialCharacters: i.require_symbols,
|
|
24774
24782
|
minLength: i.min_length ?? 6
|
|
24775
24783
|
}), o && (m.Cognito.mfa = {
|
|
24776
|
-
status:
|
|
24784
|
+
status: DE(o),
|
|
24777
24785
|
smsEnabled: a?.includes("SMS"),
|
|
24778
24786
|
totpEnabled: a?.includes("TOTP")
|
|
24779
24787
|
}), s && (m.Cognito.allowGuestAccess = s), l && (m.Cognito.loginWith = {
|
|
@@ -24783,7 +24791,7 @@ function CE(e) {
|
|
|
24783
24791
|
redirectSignOut: l.redirect_sign_out_uri,
|
|
24784
24792
|
responseType: l.response_type === "token" ? "token" : "code",
|
|
24785
24793
|
scopes: l.scopes,
|
|
24786
|
-
providers:
|
|
24794
|
+
providers: LE(l.identity_providers)
|
|
24787
24795
|
}
|
|
24788
24796
|
}), u && (m.Cognito.loginWith = {
|
|
24789
24797
|
...m.Cognito.loginWith,
|
|
@@ -24801,7 +24809,7 @@ function CE(e) {
|
|
|
24801
24809
|
preferredChallenge: v.preferred_challenge
|
|
24802
24810
|
}), m;
|
|
24803
24811
|
}
|
|
24804
|
-
function
|
|
24812
|
+
function AE(e) {
|
|
24805
24813
|
if (!e?.amazon_pinpoint)
|
|
24806
24814
|
return;
|
|
24807
24815
|
const { amazon_pinpoint: t } = e;
|
|
@@ -24812,7 +24820,7 @@ function EE(e) {
|
|
|
24812
24820
|
}
|
|
24813
24821
|
};
|
|
24814
24822
|
}
|
|
24815
|
-
function
|
|
24823
|
+
function IE(e) {
|
|
24816
24824
|
if (!e)
|
|
24817
24825
|
return;
|
|
24818
24826
|
const { aws_region: t, geofence_collections: n, maps: r, search_indices: i } = e;
|
|
@@ -24825,7 +24833,7 @@ function AE(e) {
|
|
|
24825
24833
|
}
|
|
24826
24834
|
};
|
|
24827
24835
|
}
|
|
24828
|
-
function
|
|
24836
|
+
function RE(e) {
|
|
24829
24837
|
if (!e)
|
|
24830
24838
|
return;
|
|
24831
24839
|
const { aws_region: t, default_authorization_type: n, url: r, api_key: i, model_introspection: o } = e;
|
|
@@ -24839,7 +24847,7 @@ function IE(e) {
|
|
|
24839
24847
|
}
|
|
24840
24848
|
};
|
|
24841
24849
|
}
|
|
24842
|
-
function
|
|
24850
|
+
function TE(e) {
|
|
24843
24851
|
if (!e?.events)
|
|
24844
24852
|
return;
|
|
24845
24853
|
const { url: t, aws_region: n, api_key: r, default_authorization_type: i } = e.events;
|
|
@@ -24852,7 +24860,7 @@ function RE(e) {
|
|
|
24852
24860
|
}
|
|
24853
24861
|
};
|
|
24854
24862
|
}
|
|
24855
|
-
function
|
|
24863
|
+
function PE(e) {
|
|
24856
24864
|
if (!e)
|
|
24857
24865
|
return;
|
|
24858
24866
|
const { aws_region: t, channels: n, amazon_pinpoint_app_id: r } = e, i = n.includes("IN_APP_MESSAGING"), o = n.includes("APNS") || n.includes("FCM");
|
|
@@ -24871,15 +24879,15 @@ function TE(e) {
|
|
|
24871
24879
|
}
|
|
24872
24880
|
}), a;
|
|
24873
24881
|
}
|
|
24874
|
-
function
|
|
24882
|
+
function OE(e) {
|
|
24875
24883
|
const t = {};
|
|
24876
|
-
if (e.storage && (t.Storage =
|
|
24877
|
-
const n =
|
|
24884
|
+
if (e.storage && (t.Storage = CE(e.storage)), e.auth && (t.Auth = EE(e.auth)), e.analytics && (t.Analytics = AE(e.analytics)), e.geo && (t.Geo = IE(e.geo)), e.data && (t.API = RE(e.data)), e.custom) {
|
|
24885
|
+
const n = TE(e.custom);
|
|
24878
24886
|
n && "Events" in n && (t.API = { ...t.API, ...n });
|
|
24879
24887
|
}
|
|
24880
|
-
return e.notifications && (t.Notifications =
|
|
24888
|
+
return e.notifications && (t.Notifications = PE(e.notifications)), t;
|
|
24881
24889
|
}
|
|
24882
|
-
const
|
|
24890
|
+
const NE = {
|
|
24883
24891
|
AMAZON_COGNITO_USER_POOLS: "userPool",
|
|
24884
24892
|
API_KEY: "apiKey",
|
|
24885
24893
|
AWS_IAM: "iam",
|
|
@@ -24887,7 +24895,7 @@ const OE = {
|
|
|
24887
24895
|
OPENID_CONNECT: "oidc"
|
|
24888
24896
|
};
|
|
24889
24897
|
function tm(e) {
|
|
24890
|
-
return
|
|
24898
|
+
return NE[e];
|
|
24891
24899
|
}
|
|
24892
24900
|
const rf = {
|
|
24893
24901
|
GOOGLE: "Google",
|
|
@@ -24895,13 +24903,13 @@ const rf = {
|
|
|
24895
24903
|
FACEBOOK: "Facebook",
|
|
24896
24904
|
SIGN_IN_WITH_APPLE: "Apple"
|
|
24897
24905
|
};
|
|
24898
|
-
function
|
|
24906
|
+
function LE(e = []) {
|
|
24899
24907
|
return e.reduce((t, n) => (rf[n] !== void 0 && t.push(rf[n]), t), []);
|
|
24900
24908
|
}
|
|
24901
|
-
function
|
|
24909
|
+
function DE(e) {
|
|
24902
24910
|
return e === "OPTIONAL" ? "optional" : e === "REQUIRED" ? "on" : "off";
|
|
24903
24911
|
}
|
|
24904
|
-
function
|
|
24912
|
+
function ME(e) {
|
|
24905
24913
|
const t = {};
|
|
24906
24914
|
return e.forEach(({ name: n, bucket_name: r, aws_region: i, paths: o }) => {
|
|
24907
24915
|
if (n in t)
|
|
@@ -24914,8 +24922,8 @@ function DE(e) {
|
|
|
24914
24922
|
};
|
|
24915
24923
|
}), t;
|
|
24916
24924
|
}
|
|
24917
|
-
const
|
|
24918
|
-
var pn = 64,
|
|
24925
|
+
const zE = (e) => Object.keys(e).some((t) => t.startsWith("aws_")) ? mE(e) : SE(e) ? OE(e) : e;
|
|
24926
|
+
var pn = 64, FE = 32, jE = new Uint32Array([
|
|
24919
24927
|
1116352408,
|
|
24920
24928
|
1899447441,
|
|
24921
24929
|
3049323471,
|
|
@@ -24980,7 +24988,7 @@ var pn = 64, zE = 32, FE = new Uint32Array([
|
|
|
24980
24988
|
2756734187,
|
|
24981
24989
|
3204031479,
|
|
24982
24990
|
3329325298
|
|
24983
|
-
]),
|
|
24991
|
+
]), $E = [
|
|
24984
24992
|
1779033703,
|
|
24985
24993
|
3144134277,
|
|
24986
24994
|
1013904242,
|
|
@@ -24989,17 +24997,17 @@ var pn = 64, zE = 32, FE = new Uint32Array([
|
|
|
24989
24997
|
2600822924,
|
|
24990
24998
|
528734635,
|
|
24991
24999
|
1541459225
|
|
24992
|
-
],
|
|
25000
|
+
], UE = Math.pow(2, 53) - 1, Ao = (
|
|
24993
25001
|
/** @class */
|
|
24994
25002
|
(function() {
|
|
24995
25003
|
function e() {
|
|
24996
|
-
this.state = Int32Array.from(
|
|
25004
|
+
this.state = Int32Array.from($E), this.temp = new Int32Array(64), this.buffer = new Uint8Array(64), this.bufferLength = 0, this.bytesHashed = 0, this.finished = !1;
|
|
24997
25005
|
}
|
|
24998
25006
|
return e.prototype.update = function(t) {
|
|
24999
25007
|
if (this.finished)
|
|
25000
25008
|
throw new Error("Attempted to update an already finished hash.");
|
|
25001
25009
|
var n = 0, r = t.byteLength;
|
|
25002
|
-
if (this.bytesHashed += r, this.bytesHashed * 8 >
|
|
25010
|
+
if (this.bytesHashed += r, this.bytesHashed * 8 > UE)
|
|
25003
25011
|
throw new Error("Cannot hash more than 2^53 - 1 bits");
|
|
25004
25012
|
for (; r > 0; )
|
|
25005
25013
|
this.buffer[this.bufferLength++] = t[n++], r--, this.bufferLength === pn && (this.hashBuffer(), this.bufferLength = 0);
|
|
@@ -25015,7 +25023,7 @@ var pn = 64, zE = 32, FE = new Uint32Array([
|
|
|
25015
25023
|
n.setUint8(i, 0);
|
|
25016
25024
|
n.setUint32(pn - 8, Math.floor(t / 4294967296), !0), n.setUint32(pn - 4, t), this.hashBuffer(), this.finished = !0;
|
|
25017
25025
|
}
|
|
25018
|
-
for (var o = new Uint8Array(
|
|
25026
|
+
for (var o = new Uint8Array(FE), i = 0; i < 8; i++)
|
|
25019
25027
|
o[i * 4] = this.state[i] >>> 24 & 255, o[i * 4 + 1] = this.state[i] >>> 16 & 255, o[i * 4 + 2] = this.state[i] >>> 8 & 255, o[i * 4 + 3] = this.state[i] >>> 0 & 255;
|
|
25020
25028
|
return o;
|
|
25021
25029
|
}, e.prototype.hashBuffer = function() {
|
|
@@ -25028,31 +25036,31 @@ var pn = 64, zE = 32, FE = new Uint32Array([
|
|
|
25028
25036
|
var C = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3;
|
|
25029
25037
|
this.temp[v] = (y + this.temp[v - 7] | 0) + (C + this.temp[v - 16] | 0);
|
|
25030
25038
|
}
|
|
25031
|
-
var L = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (
|
|
25039
|
+
var L = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (jE[v] + this.temp[v] | 0) | 0) | 0, R = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
|
|
25032
25040
|
p = h, h = u, u = l, l = s + L | 0, s = a, a = o, o = i, i = L + R | 0;
|
|
25033
25041
|
}
|
|
25034
25042
|
r[0] += i, r[1] += o, r[2] += a, r[3] += s, r[4] += l, r[5] += u, r[6] += h, r[7] += p;
|
|
25035
25043
|
}, e;
|
|
25036
25044
|
})()
|
|
25037
25045
|
);
|
|
25038
|
-
const
|
|
25039
|
-
var
|
|
25046
|
+
const BE = (e) => new TextEncoder().encode(e);
|
|
25047
|
+
var VE = typeof Buffer < "u" && Buffer.from ? function(e) {
|
|
25040
25048
|
return Buffer.from(e, "utf8");
|
|
25041
|
-
} :
|
|
25049
|
+
} : BE;
|
|
25042
25050
|
function nm(e) {
|
|
25043
|
-
return e instanceof Uint8Array ? e : typeof e == "string" ?
|
|
25051
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? VE(e) : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(e);
|
|
25044
25052
|
}
|
|
25045
|
-
function
|
|
25053
|
+
function WE(e) {
|
|
25046
25054
|
return typeof e == "string" ? e.length === 0 : e.byteLength === 0;
|
|
25047
25055
|
}
|
|
25048
|
-
var
|
|
25056
|
+
var qE = (
|
|
25049
25057
|
/** @class */
|
|
25050
25058
|
(function() {
|
|
25051
25059
|
function e(t) {
|
|
25052
25060
|
this.secret = t, this.hash = new Ao(), this.reset();
|
|
25053
25061
|
}
|
|
25054
25062
|
return e.prototype.update = function(t) {
|
|
25055
|
-
if (!(
|
|
25063
|
+
if (!(WE(t) || this.error))
|
|
25056
25064
|
try {
|
|
25057
25065
|
this.hash.update(nm(t));
|
|
25058
25066
|
} catch (n) {
|
|
@@ -25071,7 +25079,7 @@ var WE = (
|
|
|
25071
25079
|
}, e.prototype.reset = function() {
|
|
25072
25080
|
if (this.hash = new Ao(), this.secret) {
|
|
25073
25081
|
this.outer = new Ao();
|
|
25074
|
-
var t =
|
|
25082
|
+
var t = HE(this.secret), n = new Uint8Array(pn);
|
|
25075
25083
|
n.set(t);
|
|
25076
25084
|
for (var r = 0; r < pn; r++)
|
|
25077
25085
|
t[r] ^= 54, n[r] ^= 92;
|
|
@@ -25082,7 +25090,7 @@ var WE = (
|
|
|
25082
25090
|
}, e;
|
|
25083
25091
|
})()
|
|
25084
25092
|
);
|
|
25085
|
-
function
|
|
25093
|
+
function HE(e) {
|
|
25086
25094
|
var t = nm(e);
|
|
25087
25095
|
if (t.byteLength > pn) {
|
|
25088
25096
|
var n = new Ao();
|
|
@@ -25096,7 +25104,7 @@ for (let e = 0; e < 256; e++) {
|
|
|
25096
25104
|
let t = e.toString(16).toLowerCase();
|
|
25097
25105
|
t.length === 1 && (t = `0${t}`), rm[e] = t;
|
|
25098
25106
|
}
|
|
25099
|
-
function
|
|
25107
|
+
function ZE(e) {
|
|
25100
25108
|
let t = "";
|
|
25101
25109
|
for (let n = 0; n < e.byteLength; n++)
|
|
25102
25110
|
t += rm[e[n]];
|
|
@@ -25158,123 +25166,123 @@ var vf;
|
|
|
25158
25166
|
(function(e) {
|
|
25159
25167
|
e.UploadData = "1", e.DownloadData = "2", e.List = "3", e.Copy = "4", e.Remove = "5", e.GetProperties = "6", e.GetUrl = "7", e.GetDataAccess = "8", e.ListCallerAccessGrants = "9";
|
|
25160
25168
|
})(vf || (vf = {}));
|
|
25161
|
-
const
|
|
25162
|
-
function
|
|
25169
|
+
const GE = "6.16.4", oa = () => typeof global < "u", Yr = () => typeof window < "u", im = () => typeof document < "u", Ol = () => typeof process < "u", Ii = (e, t) => !!Object.keys(e).find((n) => n.startsWith(t));
|
|
25170
|
+
function YE() {
|
|
25163
25171
|
const e = (r) => r.startsWith("_react") || r.startsWith("__react"), t = (r) => Object.keys(r).find(e), n = () => Array.from(document.querySelectorAll("[id]"));
|
|
25164
25172
|
return im() && n().some(t);
|
|
25165
25173
|
}
|
|
25166
|
-
function
|
|
25174
|
+
function XE() {
|
|
25167
25175
|
return Ol() && typeof process.env < "u" && !!Object.keys(process.env).find((e) => e.includes("react"));
|
|
25168
25176
|
}
|
|
25169
|
-
function
|
|
25177
|
+
function KE() {
|
|
25170
25178
|
return Yr() && Ii(window, "__VUE");
|
|
25171
25179
|
}
|
|
25172
|
-
function
|
|
25180
|
+
function JE() {
|
|
25173
25181
|
return oa() && Ii(global, "__VUE");
|
|
25174
25182
|
}
|
|
25175
|
-
function
|
|
25183
|
+
function QE() {
|
|
25176
25184
|
return Yr() && Ii(window, "__SVELTE");
|
|
25177
25185
|
}
|
|
25178
|
-
function
|
|
25186
|
+
function eA() {
|
|
25179
25187
|
return Ol() && typeof process.env < "u" && !!Object.keys(process.env).find((e) => e.includes("svelte"));
|
|
25180
25188
|
}
|
|
25181
|
-
function
|
|
25189
|
+
function tA() {
|
|
25182
25190
|
return Yr() && window.next && typeof window.next == "object";
|
|
25183
25191
|
}
|
|
25184
|
-
function
|
|
25192
|
+
function nA() {
|
|
25185
25193
|
return oa() && (Ii(global, "__next") || Ii(global, "__NEXT"));
|
|
25186
25194
|
}
|
|
25187
|
-
function
|
|
25195
|
+
function rA() {
|
|
25188
25196
|
return Yr() && (window.__NUXT__ !== void 0 || window.$nuxt !== void 0);
|
|
25189
25197
|
}
|
|
25190
|
-
function
|
|
25198
|
+
function iA() {
|
|
25191
25199
|
return oa() && typeof global.__NUXT_PATHS__ < "u";
|
|
25192
25200
|
}
|
|
25193
|
-
function
|
|
25201
|
+
function oA() {
|
|
25194
25202
|
const e = !!(im() && document.querySelector("[ng-version]")), t = !!(Yr() && typeof window.ng < "u");
|
|
25195
25203
|
return e || t;
|
|
25196
25204
|
}
|
|
25197
|
-
function
|
|
25205
|
+
function aA() {
|
|
25198
25206
|
return Ol() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
|
|
25199
25207
|
}
|
|
25200
|
-
function
|
|
25208
|
+
function sA() {
|
|
25201
25209
|
return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
|
|
25202
25210
|
}
|
|
25203
|
-
function
|
|
25211
|
+
function lA() {
|
|
25204
25212
|
return oa() && typeof global.expo < "u";
|
|
25205
25213
|
}
|
|
25206
|
-
function
|
|
25214
|
+
function cA() {
|
|
25207
25215
|
return Yr();
|
|
25208
25216
|
}
|
|
25209
|
-
const
|
|
25217
|
+
const uA = [
|
|
25210
25218
|
// First, detect mobile
|
|
25211
|
-
{ platform: _t.Expo, detectionMethod:
|
|
25212
|
-
{ platform: _t.ReactNative, detectionMethod:
|
|
25219
|
+
{ platform: _t.Expo, detectionMethod: lA },
|
|
25220
|
+
{ platform: _t.ReactNative, detectionMethod: sA },
|
|
25213
25221
|
// Next, detect web frameworks
|
|
25214
|
-
{ platform: _t.NextJs, detectionMethod:
|
|
25215
|
-
{ platform: _t.Nuxt, detectionMethod:
|
|
25216
|
-
{ platform: _t.Angular, detectionMethod:
|
|
25217
|
-
{ platform: _t.React, detectionMethod:
|
|
25218
|
-
{ platform: _t.VueJs, detectionMethod:
|
|
25219
|
-
{ platform: _t.Svelte, detectionMethod:
|
|
25220
|
-
{ platform: _t.WebUnknown, detectionMethod:
|
|
25222
|
+
{ platform: _t.NextJs, detectionMethod: tA },
|
|
25223
|
+
{ platform: _t.Nuxt, detectionMethod: rA },
|
|
25224
|
+
{ platform: _t.Angular, detectionMethod: oA },
|
|
25225
|
+
{ platform: _t.React, detectionMethod: YE },
|
|
25226
|
+
{ platform: _t.VueJs, detectionMethod: KE },
|
|
25227
|
+
{ platform: _t.Svelte, detectionMethod: QE },
|
|
25228
|
+
{ platform: _t.WebUnknown, detectionMethod: cA },
|
|
25221
25229
|
// Last, detect ssr frameworks
|
|
25222
|
-
{ platform: _t.NextJsSSR, detectionMethod:
|
|
25223
|
-
{ platform: _t.NuxtSSR, detectionMethod:
|
|
25224
|
-
{ platform: _t.ReactSSR, detectionMethod:
|
|
25225
|
-
{ platform: _t.VueJsSSR, detectionMethod:
|
|
25226
|
-
{ platform: _t.AngularSSR, detectionMethod:
|
|
25227
|
-
{ platform: _t.SvelteSSR, detectionMethod:
|
|
25230
|
+
{ platform: _t.NextJsSSR, detectionMethod: nA },
|
|
25231
|
+
{ platform: _t.NuxtSSR, detectionMethod: iA },
|
|
25232
|
+
{ platform: _t.ReactSSR, detectionMethod: XE },
|
|
25233
|
+
{ platform: _t.VueJsSSR, detectionMethod: JE },
|
|
25234
|
+
{ platform: _t.AngularSSR, detectionMethod: aA },
|
|
25235
|
+
{ platform: _t.SvelteSSR, detectionMethod: eA }
|
|
25228
25236
|
];
|
|
25229
|
-
function
|
|
25230
|
-
return
|
|
25237
|
+
function fA() {
|
|
25238
|
+
return uA.find((e) => e.detectionMethod())?.platform || _t.ServerSideUnknown;
|
|
25231
25239
|
}
|
|
25232
25240
|
let _i;
|
|
25233
25241
|
const cs = [];
|
|
25234
25242
|
let Os = !1;
|
|
25235
|
-
const
|
|
25243
|
+
const dA = 10, hA = 10, pA = 1e3, om = () => {
|
|
25236
25244
|
if (!_i) {
|
|
25237
|
-
if (_i =
|
|
25245
|
+
if (_i = fA(), Os)
|
|
25238
25246
|
for (; cs.length; )
|
|
25239
25247
|
cs.pop()?.();
|
|
25240
25248
|
else
|
|
25241
25249
|
cs.forEach((e) => {
|
|
25242
25250
|
e();
|
|
25243
25251
|
});
|
|
25244
|
-
bf(_t.ServerSideUnknown,
|
|
25252
|
+
bf(_t.ServerSideUnknown, dA), bf(_t.WebUnknown, hA);
|
|
25245
25253
|
}
|
|
25246
25254
|
return _i;
|
|
25247
25255
|
};
|
|
25248
|
-
function
|
|
25256
|
+
function mA() {
|
|
25249
25257
|
_i = void 0;
|
|
25250
25258
|
}
|
|
25251
25259
|
function bf(e, t) {
|
|
25252
25260
|
_i === e && !Os && setTimeout(() => {
|
|
25253
|
-
|
|
25261
|
+
mA(), Os = !0, setTimeout(om, pA);
|
|
25254
25262
|
}, t);
|
|
25255
25263
|
}
|
|
25256
|
-
const
|
|
25264
|
+
const gA = {}, vA = (e, t) => gA[e]?.[t]?.additionalDetails, bA = "aws-amplify", yA = (e) => e.replace(/\+.*/, ""), wA = ({ category: e, action: t } = {}) => {
|
|
25257
25265
|
const n = [
|
|
25258
|
-
[
|
|
25266
|
+
[bA, yA(GE)]
|
|
25259
25267
|
];
|
|
25260
25268
|
if (e && n.push([e, t]), n.push(["framework", om()]), e && t) {
|
|
25261
|
-
const r =
|
|
25269
|
+
const r = vA(e, t);
|
|
25262
25270
|
r && r.forEach((i) => {
|
|
25263
25271
|
n.push(i);
|
|
25264
25272
|
});
|
|
25265
25273
|
}
|
|
25266
25274
|
return n;
|
|
25267
|
-
},
|
|
25275
|
+
}, xA = (e) => wA(e).map(([r, i]) => r && i ? `${r}/${i}` : r).join(" ");
|
|
25268
25276
|
function Ft(e) {
|
|
25269
25277
|
return typeof e == "function";
|
|
25270
25278
|
}
|
|
25271
|
-
function
|
|
25279
|
+
function kA(e) {
|
|
25272
25280
|
var t = function(r) {
|
|
25273
25281
|
Error.call(r), r.stack = new Error().stack;
|
|
25274
25282
|
}, n = e(t);
|
|
25275
25283
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
25276
25284
|
}
|
|
25277
|
-
var us =
|
|
25285
|
+
var us = kA(function(e) {
|
|
25278
25286
|
return function(n) {
|
|
25279
25287
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
25280
25288
|
` + n.map(function(r, i) {
|
|
@@ -25385,9 +25393,9 @@ function am(e) {
|
|
|
25385
25393
|
function wf(e) {
|
|
25386
25394
|
Ft(e) ? e() : e.unsubscribe();
|
|
25387
25395
|
}
|
|
25388
|
-
var
|
|
25396
|
+
var _A = {
|
|
25389
25397
|
Promise: void 0
|
|
25390
|
-
},
|
|
25398
|
+
}, SA = {
|
|
25391
25399
|
setTimeout: function(e, t) {
|
|
25392
25400
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
25393
25401
|
n[r - 2] = arguments[r];
|
|
@@ -25399,20 +25407,20 @@ var kA = {
|
|
|
25399
25407
|
delegate: void 0
|
|
25400
25408
|
};
|
|
25401
25409
|
function sm(e) {
|
|
25402
|
-
|
|
25410
|
+
SA.setTimeout(function() {
|
|
25403
25411
|
throw e;
|
|
25404
25412
|
});
|
|
25405
25413
|
}
|
|
25406
25414
|
function xf() {
|
|
25407
25415
|
}
|
|
25408
|
-
function
|
|
25416
|
+
function CA(e) {
|
|
25409
25417
|
e();
|
|
25410
25418
|
}
|
|
25411
25419
|
var Ll = (function(e) {
|
|
25412
25420
|
nl(t, e);
|
|
25413
25421
|
function t(n) {
|
|
25414
25422
|
var r = e.call(this) || this;
|
|
25415
|
-
return r.isStopped = !1, n ? (r.destination = n, am(n) && n.add(r)) : r.destination =
|
|
25423
|
+
return r.isStopped = !1, n ? (r.destination = n, am(n) && n.add(r)) : r.destination = IA, r;
|
|
25416
25424
|
}
|
|
25417
25425
|
return t.create = function(n, r, i) {
|
|
25418
25426
|
return new Ns(n, r, i);
|
|
@@ -25439,7 +25447,7 @@ var Ll = (function(e) {
|
|
|
25439
25447
|
this.unsubscribe();
|
|
25440
25448
|
}
|
|
25441
25449
|
}, t;
|
|
25442
|
-
})(Nl),
|
|
25450
|
+
})(Nl), EA = (function() {
|
|
25443
25451
|
function e(t) {
|
|
25444
25452
|
this.partialObserver = t;
|
|
25445
25453
|
}
|
|
@@ -25478,29 +25486,29 @@ var Ll = (function(e) {
|
|
|
25478
25486
|
next: n ?? void 0,
|
|
25479
25487
|
error: r ?? void 0,
|
|
25480
25488
|
complete: i ?? void 0
|
|
25481
|
-
} : a = n, o.destination = new
|
|
25489
|
+
} : a = n, o.destination = new EA(a), o;
|
|
25482
25490
|
}
|
|
25483
25491
|
return t;
|
|
25484
25492
|
})(Ll);
|
|
25485
25493
|
function go(e) {
|
|
25486
25494
|
sm(e);
|
|
25487
25495
|
}
|
|
25488
|
-
function
|
|
25496
|
+
function AA(e) {
|
|
25489
25497
|
throw e;
|
|
25490
25498
|
}
|
|
25491
|
-
var
|
|
25499
|
+
var IA = {
|
|
25492
25500
|
closed: !0,
|
|
25493
25501
|
next: xf,
|
|
25494
|
-
error:
|
|
25502
|
+
error: AA,
|
|
25495
25503
|
complete: xf
|
|
25496
25504
|
}, Dl = (function() {
|
|
25497
25505
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
25498
25506
|
})();
|
|
25499
|
-
function
|
|
25507
|
+
function RA(e) {
|
|
25500
25508
|
return e;
|
|
25501
25509
|
}
|
|
25502
|
-
function
|
|
25503
|
-
return e.length === 0 ?
|
|
25510
|
+
function TA(e) {
|
|
25511
|
+
return e.length === 0 ? RA : e.length === 1 ? e[0] : function(n) {
|
|
25504
25512
|
return e.reduce(function(r, i) {
|
|
25505
25513
|
return i(r);
|
|
25506
25514
|
}, n);
|
|
@@ -25514,8 +25522,8 @@ var ln = (function() {
|
|
|
25514
25522
|
var n = new e();
|
|
25515
25523
|
return n.source = this, n.operator = t, n;
|
|
25516
25524
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
25517
|
-
var i = this, o =
|
|
25518
|
-
return
|
|
25525
|
+
var i = this, o = OA(t) ? t : new Ns(t, n, r);
|
|
25526
|
+
return CA(function() {
|
|
25519
25527
|
var a = i, s = a.operator, l = a.source;
|
|
25520
25528
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
25521
25529
|
}), o;
|
|
@@ -25549,7 +25557,7 @@ var ln = (function() {
|
|
|
25549
25557
|
}, e.prototype.pipe = function() {
|
|
25550
25558
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
25551
25559
|
t[n] = arguments[n];
|
|
25552
|
-
return
|
|
25560
|
+
return TA(t)(this);
|
|
25553
25561
|
}, e.prototype.toPromise = function(t) {
|
|
25554
25562
|
var n = this;
|
|
25555
25563
|
return t = kf(t), new t(function(r, i) {
|
|
@@ -25568,20 +25576,20 @@ var ln = (function() {
|
|
|
25568
25576
|
})();
|
|
25569
25577
|
function kf(e) {
|
|
25570
25578
|
var t;
|
|
25571
|
-
return (t = e ??
|
|
25572
|
-
}
|
|
25573
|
-
function TA(e) {
|
|
25574
|
-
return e && Ft(e.next) && Ft(e.error) && Ft(e.complete);
|
|
25579
|
+
return (t = e ?? _A.Promise) !== null && t !== void 0 ? t : Promise;
|
|
25575
25580
|
}
|
|
25576
25581
|
function PA(e) {
|
|
25577
|
-
return e && e
|
|
25582
|
+
return e && Ft(e.next) && Ft(e.error) && Ft(e.complete);
|
|
25578
25583
|
}
|
|
25579
25584
|
function OA(e) {
|
|
25585
|
+
return e && e instanceof Ll || PA(e) && am(e);
|
|
25586
|
+
}
|
|
25587
|
+
function NA(e) {
|
|
25580
25588
|
return Ft(e?.lift);
|
|
25581
25589
|
}
|
|
25582
25590
|
function aa(e) {
|
|
25583
25591
|
return function(t) {
|
|
25584
|
-
if (
|
|
25592
|
+
if (NA(t))
|
|
25585
25593
|
return t.lift(function(n) {
|
|
25586
25594
|
try {
|
|
25587
25595
|
return e(n, this);
|
|
@@ -25593,9 +25601,9 @@ function aa(e) {
|
|
|
25593
25601
|
};
|
|
25594
25602
|
}
|
|
25595
25603
|
function Ml(e, t, n, r, i) {
|
|
25596
|
-
return new
|
|
25604
|
+
return new LA(e, t, n, r, i);
|
|
25597
25605
|
}
|
|
25598
|
-
var
|
|
25606
|
+
var LA = (function(e) {
|
|
25599
25607
|
nl(t, e);
|
|
25600
25608
|
function t(n, r, i, o, a, s) {
|
|
25601
25609
|
var l = e.call(this, n) || this;
|
|
@@ -25645,10 +25653,10 @@ function fm(e) {
|
|
|
25645
25653
|
function dm(e) {
|
|
25646
25654
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
25647
25655
|
}
|
|
25648
|
-
function
|
|
25656
|
+
function DA() {
|
|
25649
25657
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
25650
25658
|
}
|
|
25651
|
-
var hm =
|
|
25659
|
+
var hm = DA();
|
|
25652
25660
|
function pm(e) {
|
|
25653
25661
|
return Ft(e?.[hm]);
|
|
25654
25662
|
}
|
|
@@ -25691,21 +25699,21 @@ function zl(e) {
|
|
|
25691
25699
|
return e;
|
|
25692
25700
|
if (e != null) {
|
|
25693
25701
|
if (um(e))
|
|
25694
|
-
return DA(e);
|
|
25695
|
-
if (lm(e))
|
|
25696
25702
|
return MA(e);
|
|
25697
|
-
if (
|
|
25703
|
+
if (lm(e))
|
|
25698
25704
|
return zA(e);
|
|
25705
|
+
if (cm(e))
|
|
25706
|
+
return FA(e);
|
|
25699
25707
|
if (fm(e))
|
|
25700
25708
|
return vm(e);
|
|
25701
25709
|
if (pm(e))
|
|
25702
|
-
return FA(e);
|
|
25703
|
-
if (gm(e))
|
|
25704
25710
|
return jA(e);
|
|
25711
|
+
if (gm(e))
|
|
25712
|
+
return $A(e);
|
|
25705
25713
|
}
|
|
25706
25714
|
throw dm(e);
|
|
25707
25715
|
}
|
|
25708
|
-
function
|
|
25716
|
+
function MA(e) {
|
|
25709
25717
|
return new ln(function(t) {
|
|
25710
25718
|
var n = e[Dl]();
|
|
25711
25719
|
if (Ft(n.subscribe))
|
|
@@ -25713,14 +25721,14 @@ function DA(e) {
|
|
|
25713
25721
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
25714
25722
|
});
|
|
25715
25723
|
}
|
|
25716
|
-
function
|
|
25724
|
+
function zA(e) {
|
|
25717
25725
|
return new ln(function(t) {
|
|
25718
25726
|
for (var n = 0; n < e.length && !t.closed; n++)
|
|
25719
25727
|
t.next(e[n]);
|
|
25720
25728
|
t.complete();
|
|
25721
25729
|
});
|
|
25722
25730
|
}
|
|
25723
|
-
function
|
|
25731
|
+
function FA(e) {
|
|
25724
25732
|
return new ln(function(t) {
|
|
25725
25733
|
e.then(function(n) {
|
|
25726
25734
|
t.closed || (t.next(n), t.complete());
|
|
@@ -25729,7 +25737,7 @@ function zA(e) {
|
|
|
25729
25737
|
}).then(null, sm);
|
|
25730
25738
|
});
|
|
25731
25739
|
}
|
|
25732
|
-
function
|
|
25740
|
+
function jA(e) {
|
|
25733
25741
|
return new ln(function(t) {
|
|
25734
25742
|
var n, r;
|
|
25735
25743
|
try {
|
|
@@ -25752,15 +25760,15 @@ function FA(e) {
|
|
|
25752
25760
|
}
|
|
25753
25761
|
function vm(e) {
|
|
25754
25762
|
return new ln(function(t) {
|
|
25755
|
-
|
|
25763
|
+
UA(e, t).catch(function(n) {
|
|
25756
25764
|
return t.error(n);
|
|
25757
25765
|
});
|
|
25758
25766
|
});
|
|
25759
25767
|
}
|
|
25760
|
-
function
|
|
25768
|
+
function $A(e) {
|
|
25761
25769
|
return vm(mm(e));
|
|
25762
25770
|
}
|
|
25763
|
-
function
|
|
25771
|
+
function UA(e, t) {
|
|
25764
25772
|
var n, r, i, o;
|
|
25765
25773
|
return qd(this, void 0, void 0, function() {
|
|
25766
25774
|
var a, s;
|
|
@@ -25830,13 +25838,13 @@ function ym(e, t) {
|
|
|
25830
25838
|
}, t));
|
|
25831
25839
|
});
|
|
25832
25840
|
}
|
|
25833
|
-
function UA(e, t) {
|
|
25834
|
-
return zl(e).pipe(ym(t), bm(t));
|
|
25835
|
-
}
|
|
25836
25841
|
function BA(e, t) {
|
|
25837
25842
|
return zl(e).pipe(ym(t), bm(t));
|
|
25838
25843
|
}
|
|
25839
25844
|
function VA(e, t) {
|
|
25845
|
+
return zl(e).pipe(ym(t), bm(t));
|
|
25846
|
+
}
|
|
25847
|
+
function WA(e, t) {
|
|
25840
25848
|
return new ln(function(n) {
|
|
25841
25849
|
var r = 0;
|
|
25842
25850
|
return t.schedule(function() {
|
|
@@ -25844,7 +25852,7 @@ function VA(e, t) {
|
|
|
25844
25852
|
});
|
|
25845
25853
|
});
|
|
25846
25854
|
}
|
|
25847
|
-
function
|
|
25855
|
+
function qA(e, t) {
|
|
25848
25856
|
return new ln(function(n) {
|
|
25849
25857
|
var r;
|
|
25850
25858
|
return mr(n, t, function() {
|
|
@@ -25877,30 +25885,30 @@ function wm(e, t) {
|
|
|
25877
25885
|
});
|
|
25878
25886
|
});
|
|
25879
25887
|
}
|
|
25880
|
-
function
|
|
25888
|
+
function HA(e, t) {
|
|
25881
25889
|
return wm(mm(e), t);
|
|
25882
25890
|
}
|
|
25883
|
-
function
|
|
25891
|
+
function ZA(e, t) {
|
|
25884
25892
|
if (e != null) {
|
|
25885
25893
|
if (um(e))
|
|
25886
|
-
return
|
|
25894
|
+
return BA(e, t);
|
|
25887
25895
|
if (lm(e))
|
|
25888
|
-
return
|
|
25896
|
+
return WA(e, t);
|
|
25889
25897
|
if (cm(e))
|
|
25890
|
-
return
|
|
25898
|
+
return VA(e, t);
|
|
25891
25899
|
if (fm(e))
|
|
25892
25900
|
return wm(e, t);
|
|
25893
25901
|
if (pm(e))
|
|
25894
|
-
return WA(e, t);
|
|
25895
|
-
if (gm(e))
|
|
25896
25902
|
return qA(e, t);
|
|
25903
|
+
if (gm(e))
|
|
25904
|
+
return HA(e, t);
|
|
25897
25905
|
}
|
|
25898
25906
|
throw dm(e);
|
|
25899
25907
|
}
|
|
25900
|
-
function ZA(e, t) {
|
|
25901
|
-
return t ? HA(e, t) : zl(e);
|
|
25902
|
-
}
|
|
25903
25908
|
function GA(e, t) {
|
|
25909
|
+
return t ? ZA(e, t) : zl(e);
|
|
25910
|
+
}
|
|
25911
|
+
function YA(e, t) {
|
|
25904
25912
|
return aa(function(n, r) {
|
|
25905
25913
|
var i = 0;
|
|
25906
25914
|
n.subscribe(Ml(r, function(o) {
|
|
@@ -25908,7 +25916,7 @@ function GA(e, t) {
|
|
|
25908
25916
|
}));
|
|
25909
25917
|
});
|
|
25910
25918
|
}
|
|
25911
|
-
function
|
|
25919
|
+
function XA(e, t) {
|
|
25912
25920
|
return aa(function(n, r) {
|
|
25913
25921
|
var i = 0;
|
|
25914
25922
|
n.subscribe(Ml(r, function(o) {
|
|
@@ -25916,7 +25924,7 @@ function YA(e, t) {
|
|
|
25916
25924
|
}));
|
|
25917
25925
|
});
|
|
25918
25926
|
}
|
|
25919
|
-
const
|
|
25927
|
+
const KA = () => {
|
|
25920
25928
|
if (typeof self > "u")
|
|
25921
25929
|
return !1;
|
|
25922
25930
|
const e = self;
|
|
@@ -25924,7 +25932,7 @@ const XA = () => {
|
|
|
25924
25932
|
};
|
|
25925
25933
|
class jr {
|
|
25926
25934
|
networkMonitor(t) {
|
|
25927
|
-
const n =
|
|
25935
|
+
const n = KA() ? self : typeof window < "u" && window;
|
|
25928
25936
|
return n ? new ln((r) => {
|
|
25929
25937
|
r.next({ online: n.navigator.onLine });
|
|
25930
25938
|
const i = () => {
|
|
@@ -25935,7 +25943,7 @@ class jr {
|
|
|
25935
25943
|
return n.addEventListener("online", i), n.addEventListener("offline", o), jr._observers.push(r), () => {
|
|
25936
25944
|
n.removeEventListener("online", i), n.removeEventListener("offline", o), jr._observers = jr._observers.filter((a) => a !== r);
|
|
25937
25945
|
};
|
|
25938
|
-
}) :
|
|
25946
|
+
}) : GA([{ online: !0 }]);
|
|
25939
25947
|
}
|
|
25940
25948
|
// expose observers to simulate offline mode for integration testing
|
|
25941
25949
|
static _observerOverride(t) {
|
|
@@ -25950,7 +25958,7 @@ class jr {
|
|
|
25950
25958
|
}
|
|
25951
25959
|
jr._observers = [];
|
|
25952
25960
|
const _f = new vn("Auth");
|
|
25953
|
-
class
|
|
25961
|
+
class JA {
|
|
25954
25962
|
/**
|
|
25955
25963
|
* Configure Auth category
|
|
25956
25964
|
*
|
|
@@ -26000,9 +26008,9 @@ class KA {
|
|
|
26000
26008
|
}
|
|
26001
26009
|
}
|
|
26002
26010
|
const Sf = (e) => `You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;
|
|
26003
|
-
class
|
|
26011
|
+
class QA {
|
|
26004
26012
|
constructor() {
|
|
26005
|
-
this.oAuthListener = void 0, this.isConfigured = !1, this.resourcesConfig = {}, this.libraryOptions = {}, this.Auth = new
|
|
26013
|
+
this.oAuthListener = void 0, this.isConfigured = !1, this.resourcesConfig = {}, this.libraryOptions = {}, this.Auth = new JA();
|
|
26006
26014
|
}
|
|
26007
26015
|
/**
|
|
26008
26016
|
* Configures Amplify for use with your back-end resources.
|
|
@@ -26018,7 +26026,7 @@ class JA {
|
|
|
26018
26026
|
* @param libraryOptions - Additional options for customizing the behavior of the library.
|
|
26019
26027
|
*/
|
|
26020
26028
|
configure(t, n) {
|
|
26021
|
-
const r =
|
|
26029
|
+
const r = zE(t);
|
|
26022
26030
|
this.resourcesConfig = r, n && (this.libraryOptions = n), this.resourcesConfig = em(this.resourcesConfig), this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth), (this.resourcesConfig.Analytics?.Pinpoint || this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint || this.resourcesConfig.Notifications?.PushNotification?.Pinpoint) && console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."), Pl.dispatch("core", {
|
|
26023
26031
|
event: "configure",
|
|
26024
26032
|
data: this.resourcesConfig
|
|
@@ -26033,28 +26041,28 @@ class JA {
|
|
|
26033
26041
|
return this.isConfigured || console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."), this.resourcesConfig;
|
|
26034
26042
|
}
|
|
26035
26043
|
/** @internal */
|
|
26036
|
-
[
|
|
26044
|
+
[bE](t) {
|
|
26037
26045
|
this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ? t(this.resourcesConfig.Auth?.Cognito) : this.oAuthListener = t;
|
|
26038
26046
|
}
|
|
26039
26047
|
notifyOAuthListener() {
|
|
26040
26048
|
!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth || !this.oAuthListener || (this.oAuthListener(this.resourcesConfig.Auth?.Cognito), this.oAuthListener = void 0);
|
|
26041
26049
|
}
|
|
26042
26050
|
}
|
|
26043
|
-
const Fl = new
|
|
26044
|
-
function
|
|
26051
|
+
const Fl = new QA(), eI = (e, t) => e.Auth.fetchAuthSession(t), xm = (e) => eI(Fl, e), km = 300 * 1e3;
|
|
26052
|
+
function tI(e = km) {
|
|
26045
26053
|
return (r) => {
|
|
26046
26054
|
const i = 2 ** r * 100 + 100 * Math.random();
|
|
26047
26055
|
return i > e ? !1 : i;
|
|
26048
26056
|
};
|
|
26049
26057
|
}
|
|
26050
|
-
const Ls =
|
|
26058
|
+
const Ls = kE, jl = URL, _m = URLSearchParams, Sm = (e) => Object.keys(e).map((t) => t.toLowerCase()).sort().join(";"), nI = "X-Amz-Date", rI = "X-Amz-Security-Token", iI = "authorization", oI = "host", aI = nI.toLowerCase(), sI = rI.toLowerCase(), Cm = "aws4_request", Em = "AWS4-HMAC-SHA256", lI = "AWS4", cI = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", Am = "UNSIGNED-PAYLOAD", uI = (e, t, n) => `${e}/${t}/${n}/${Cm}`, fI = (e) => {
|
|
26051
26059
|
const t = e.toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
26052
26060
|
return {
|
|
26053
26061
|
longDate: t,
|
|
26054
26062
|
shortDate: t.slice(0, 8)
|
|
26055
26063
|
};
|
|
26056
|
-
},
|
|
26057
|
-
const { accessKeyId: o, secretAccessKey: a, sessionToken: s } = e, { longDate: l, shortDate: u } =
|
|
26064
|
+
}, dI = ({ credentials: e, signingDate: t = /* @__PURE__ */ new Date(), signingRegion: n, signingService: r, uriEscapePath: i = !0 }) => {
|
|
26065
|
+
const { accessKeyId: o, secretAccessKey: a, sessionToken: s } = e, { longDate: l, shortDate: u } = fI(t), h = uI(u, n, r);
|
|
26058
26066
|
return {
|
|
26059
26067
|
accessKeyId: o,
|
|
26060
26068
|
credentialScope: h,
|
|
@@ -26067,38 +26075,38 @@ const Ls = xE, jl = URL, _m = URLSearchParams, Sm = (e) => Object.keys(e).map((t
|
|
|
26067
26075
|
uriEscapePath: i
|
|
26068
26076
|
};
|
|
26069
26077
|
}, vi = (e, t) => {
|
|
26070
|
-
const n = new
|
|
26078
|
+
const n = new qE(e ?? void 0);
|
|
26071
26079
|
return n.update(t), n.digestSync();
|
|
26072
26080
|
}, Ds = (e, t) => {
|
|
26073
26081
|
const n = vi(e, t);
|
|
26074
|
-
return
|
|
26075
|
-
},
|
|
26082
|
+
return ZE(n);
|
|
26083
|
+
}, hI = (e) => Object.entries(e).map(([t, n]) => ({
|
|
26076
26084
|
key: t.toLowerCase(),
|
|
26077
26085
|
value: n?.trim().replace(/\s+/g, " ") ?? ""
|
|
26078
26086
|
})).sort((t, n) => t.key < n.key ? -1 : 1).map((t) => `${t.key}:${t.value}
|
|
26079
|
-
`).join(""),
|
|
26087
|
+
`).join(""), pI = (e) => Array.from(e).sort(([t, n], [r, i]) => t === r ? n < i ? -1 : 1 : t < r ? -1 : 1).map(([t, n]) => `${Cf(t)}=${Cf(n)}`).join("&"), Cf = (e) => encodeURIComponent(e).replace(/[!'()*]/g, mI), mI = (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`, gI = (e, t = !0) => e ? t ? encodeURIComponent(e).replace(/%2F/g, "/") : e : "/", vI = (e) => e == null ? cI : bI(e) ? Ds(null, e) : Am, bI = (e) => (
|
|
26080
26088
|
// Exclude UNSIGNED_PAYLOAD constant to prevent it from being hashed as a string
|
|
26081
|
-
e !== Am && (typeof e == "string" || ArrayBuffer.isView(e) ||
|
|
26082
|
-
),
|
|
26089
|
+
e !== Am && (typeof e == "string" || ArrayBuffer.isView(e) || yI(e))
|
|
26090
|
+
), yI = (e) => typeof ArrayBuffer == "function" && e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", wI = ({ body: e, headers: t, method: n, url: r }, i = !0) => [
|
|
26083
26091
|
n,
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26092
|
+
gI(r.pathname, i),
|
|
26093
|
+
pI(r.searchParams),
|
|
26094
|
+
hI(t),
|
|
26087
26095
|
Sm(t),
|
|
26088
|
-
|
|
26096
|
+
vI(e)
|
|
26089
26097
|
].join(`
|
|
26090
|
-
`),
|
|
26091
|
-
const i = `${
|
|
26098
|
+
`), xI = (e, t, n, r) => {
|
|
26099
|
+
const i = `${lI}${e}`, o = vi(i, t), a = vi(o, n), s = vi(a, r);
|
|
26092
26100
|
return vi(s, Cm);
|
|
26093
|
-
},
|
|
26094
|
-
`),
|
|
26095
|
-
const l =
|
|
26096
|
-
return Ds(
|
|
26097
|
-
},
|
|
26098
|
-
const n =
|
|
26099
|
-
s[
|
|
26100
|
-
const l = { ...e, headers: s }, u =
|
|
26101
|
-
return s[
|
|
26101
|
+
}, kI = (e, t, n) => [Em, e, t, n].join(`
|
|
26102
|
+
`), _I = (e, { credentialScope: t, longDate: n, secretAccessKey: r, shortDate: i, signingRegion: o, signingService: a, uriEscapePath: s }) => {
|
|
26103
|
+
const l = wI(e, s), u = Ds(null, l), h = kI(n, t, u);
|
|
26104
|
+
return Ds(xI(r, i, o, a), h);
|
|
26105
|
+
}, SI = (e, t) => {
|
|
26106
|
+
const n = dI(t), { accessKeyId: r, credentialScope: i, longDate: o, sessionToken: a } = n, s = { ...e.headers };
|
|
26107
|
+
s[oI] = e.url.host, s[aI] = o, a && (s[sI] = a);
|
|
26108
|
+
const l = { ...e, headers: s }, u = _I(l, n), h = `Credential=${r}/${i}`, p = `SignedHeaders=${Sm(s)}`, v = `Signature=${u}`;
|
|
26109
|
+
return s[iI] = `${Em} ${h}, ${p}, ${v}`, l;
|
|
26102
26110
|
};
|
|
26103
26111
|
function Io(e) {
|
|
26104
26112
|
"@babel/helpers - typeof";
|
|
@@ -26108,10 +26116,10 @@ function Io(e) {
|
|
|
26108
26116
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
26109
26117
|
}, Io(e);
|
|
26110
26118
|
}
|
|
26111
|
-
function
|
|
26119
|
+
function CI(e) {
|
|
26112
26120
|
return Io(e) == "object" && e !== null;
|
|
26113
26121
|
}
|
|
26114
|
-
var
|
|
26122
|
+
var EI = typeof Symbol == "function" && Symbol.toStringTag != null ? Symbol.toStringTag : "@@toStringTag";
|
|
26115
26123
|
function Ms(e, t) {
|
|
26116
26124
|
for (var n = /\r\n|[\n\r]/g, r = 1, i = t + 1, o; (o = n.exec(e.body)) && o.index < t; )
|
|
26117
26125
|
r += 1, i = t + 1 - (o.index + o[0].length);
|
|
@@ -26120,7 +26128,7 @@ function Ms(e, t) {
|
|
|
26120
26128
|
column: i
|
|
26121
26129
|
};
|
|
26122
26130
|
}
|
|
26123
|
-
function
|
|
26131
|
+
function AI(e) {
|
|
26124
26132
|
return Im(e.source, Ms(e.source, e.start));
|
|
26125
26133
|
}
|
|
26126
26134
|
function Im(e, t) {
|
|
@@ -26152,14 +26160,14 @@ function Ef(e) {
|
|
|
26152
26160
|
}));
|
|
26153
26161
|
return t.map(function(r) {
|
|
26154
26162
|
var i = r[0], o = r[1];
|
|
26155
|
-
return
|
|
26163
|
+
return II(n, i) + (o ? " | " + o : " |");
|
|
26156
26164
|
}).join(`
|
|
26157
26165
|
`);
|
|
26158
26166
|
}
|
|
26159
26167
|
function Ro(e) {
|
|
26160
26168
|
return Array(e + 1).join(" ");
|
|
26161
26169
|
}
|
|
26162
|
-
function
|
|
26170
|
+
function II(e, t) {
|
|
26163
26171
|
return Ro(e - t.length) + t;
|
|
26164
26172
|
}
|
|
26165
26173
|
function To(e) {
|
|
@@ -26180,39 +26188,39 @@ function Af(e, t) {
|
|
|
26180
26188
|
}
|
|
26181
26189
|
return n;
|
|
26182
26190
|
}
|
|
26183
|
-
function
|
|
26191
|
+
function RI(e) {
|
|
26184
26192
|
for (var t = 1; t < arguments.length; t++) {
|
|
26185
26193
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
26186
26194
|
t % 2 ? Af(Object(n), !0).forEach(function(r) {
|
|
26187
|
-
|
|
26195
|
+
TI(e, r, n[r]);
|
|
26188
26196
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Af(Object(n)).forEach(function(r) {
|
|
26189
26197
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
26190
26198
|
});
|
|
26191
26199
|
}
|
|
26192
26200
|
return e;
|
|
26193
26201
|
}
|
|
26194
|
-
function
|
|
26202
|
+
function TI(e, t, n) {
|
|
26195
26203
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
26196
26204
|
}
|
|
26197
|
-
function
|
|
26205
|
+
function PI(e, t) {
|
|
26198
26206
|
if (!(e instanceof t))
|
|
26199
26207
|
throw new TypeError("Cannot call a class as a function");
|
|
26200
26208
|
}
|
|
26201
|
-
function
|
|
26209
|
+
function OI(e, t) {
|
|
26202
26210
|
for (var n = 0; n < t.length; n++) {
|
|
26203
26211
|
var r = t[n];
|
|
26204
26212
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
26205
26213
|
}
|
|
26206
26214
|
}
|
|
26207
|
-
function
|
|
26208
|
-
return t &&
|
|
26215
|
+
function NI(e, t, n) {
|
|
26216
|
+
return t && OI(e.prototype, t), e;
|
|
26209
26217
|
}
|
|
26210
|
-
function
|
|
26218
|
+
function LI(e, t) {
|
|
26211
26219
|
if (typeof t != "function" && t !== null)
|
|
26212
26220
|
throw new TypeError("Super expression must either be null or a function");
|
|
26213
26221
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ri(e, t);
|
|
26214
26222
|
}
|
|
26215
|
-
function
|
|
26223
|
+
function DI(e) {
|
|
26216
26224
|
var t = Tm();
|
|
26217
26225
|
return function() {
|
|
26218
26226
|
var r = Ti(e), i;
|
|
@@ -26235,7 +26243,7 @@ function bi(e) {
|
|
|
26235
26243
|
function zs(e) {
|
|
26236
26244
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
26237
26245
|
return zs = function(r) {
|
|
26238
|
-
if (r === null || !
|
|
26246
|
+
if (r === null || !MI(r)) return r;
|
|
26239
26247
|
if (typeof r != "function")
|
|
26240
26248
|
throw new TypeError("Super expression must either be null or a function");
|
|
26241
26249
|
if (typeof t < "u") {
|
|
@@ -26266,7 +26274,7 @@ function Tm() {
|
|
|
26266
26274
|
return !1;
|
|
26267
26275
|
}
|
|
26268
26276
|
}
|
|
26269
|
-
function
|
|
26277
|
+
function MI(e) {
|
|
26270
26278
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
26271
26279
|
}
|
|
26272
26280
|
function Ri(e, t) {
|
|
@@ -26280,11 +26288,11 @@ function Ti(e) {
|
|
|
26280
26288
|
}, Ti(e);
|
|
26281
26289
|
}
|
|
26282
26290
|
var fs = /* @__PURE__ */ (function(e) {
|
|
26283
|
-
|
|
26284
|
-
var t =
|
|
26291
|
+
LI(n, e);
|
|
26292
|
+
var t = DI(n);
|
|
26285
26293
|
function n(r, i, o, a, s, l, u) {
|
|
26286
26294
|
var h, p, v, m;
|
|
26287
|
-
|
|
26295
|
+
PI(this, n), m = t.call(this, r), m.name = "GraphQLError", m.originalError = l ?? void 0, m.nodes = If(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
26288
26296
|
for (var y = [], C = 0, L = (R = m.nodes) !== null && R !== void 0 ? R : []; C < L.length; C++) {
|
|
26289
26297
|
var R, j = L[C], M = j.loc;
|
|
26290
26298
|
M != null && y.push(M);
|
|
@@ -26297,7 +26305,7 @@ var fs = /* @__PURE__ */ (function(e) {
|
|
|
26297
26305
|
return Ms(K.source, K.start);
|
|
26298
26306
|
}), m.path = s ?? void 0;
|
|
26299
26307
|
var Y = l?.extensions;
|
|
26300
|
-
return u == null &&
|
|
26308
|
+
return u == null && CI(Y) ? m.extensions = RI({}, Y) : m.extensions = u ?? {}, Object.defineProperties(bi(m), {
|
|
26301
26309
|
message: {
|
|
26302
26310
|
enumerable: !0
|
|
26303
26311
|
},
|
|
@@ -26335,15 +26343,15 @@ var fs = /* @__PURE__ */ (function(e) {
|
|
|
26335
26343
|
configurable: !0
|
|
26336
26344
|
}), m);
|
|
26337
26345
|
}
|
|
26338
|
-
return
|
|
26346
|
+
return NI(n, [{
|
|
26339
26347
|
key: "toString",
|
|
26340
26348
|
value: function() {
|
|
26341
|
-
return
|
|
26349
|
+
return zI(this);
|
|
26342
26350
|
}
|
|
26343
26351
|
// FIXME: workaround to not break chai comparisons, should be remove in v16
|
|
26344
26352
|
// $FlowFixMe[unsupported-syntax] Flow doesn't support computed properties yet
|
|
26345
26353
|
}, {
|
|
26346
|
-
key:
|
|
26354
|
+
key: EI,
|
|
26347
26355
|
get: function() {
|
|
26348
26356
|
return "Object";
|
|
26349
26357
|
}
|
|
@@ -26352,14 +26360,14 @@ var fs = /* @__PURE__ */ (function(e) {
|
|
|
26352
26360
|
function If(e) {
|
|
26353
26361
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
26354
26362
|
}
|
|
26355
|
-
function
|
|
26363
|
+
function zI(e) {
|
|
26356
26364
|
var t = e.message;
|
|
26357
26365
|
if (e.nodes)
|
|
26358
26366
|
for (var n = 0, r = e.nodes; n < r.length; n++) {
|
|
26359
26367
|
var i = r[n];
|
|
26360
26368
|
i.loc && (t += `
|
|
26361
26369
|
|
|
26362
|
-
` +
|
|
26370
|
+
` + AI(i.loc));
|
|
26363
26371
|
}
|
|
26364
26372
|
else if (e.source && e.locations)
|
|
26365
26373
|
for (var o = 0, a = e.locations; o < a.length; o++) {
|
|
@@ -26370,16 +26378,16 @@ function MI(e) {
|
|
|
26370
26378
|
}
|
|
26371
26379
|
return t;
|
|
26372
26380
|
}
|
|
26373
|
-
class
|
|
26381
|
+
class FI extends Error {
|
|
26374
26382
|
constructor() {
|
|
26375
26383
|
super(...arguments), this.nonRetryable = !0;
|
|
26376
26384
|
}
|
|
26377
26385
|
}
|
|
26378
|
-
const
|
|
26379
|
-
function
|
|
26386
|
+
const jI = (e, t, n = km, r) => dE(e, t, tI(n));
|
|
26387
|
+
function $I(e) {
|
|
26380
26388
|
return Array.from(e, (t) => String.fromCodePoint(t)).join("");
|
|
26381
26389
|
}
|
|
26382
|
-
const
|
|
26390
|
+
const UI = {
|
|
26383
26391
|
/**
|
|
26384
26392
|
* Convert input to base64-encoded string
|
|
26385
26393
|
* @param input - string to convert to base64
|
|
@@ -26390,11 +26398,11 @@ const $I = {
|
|
|
26390
26398
|
urlSafe: !1,
|
|
26391
26399
|
skipPadding: !1
|
|
26392
26400
|
}) {
|
|
26393
|
-
const n = typeof e == "string" ? e :
|
|
26394
|
-
let r =
|
|
26401
|
+
const n = typeof e == "string" ? e : $I(e);
|
|
26402
|
+
let r = fE()(n);
|
|
26395
26403
|
return t.urlSafe && (r = r.replace(/\+/g, "-").replace(/\//g, "_")), t.skipPadding && (r = r.replace(/=/g, "")), r;
|
|
26396
26404
|
}
|
|
26397
|
-
},
|
|
26405
|
+
}, BI = 5e3, VI = [400, 401, 403], WI = [
|
|
26398
26406
|
"BadRequestException",
|
|
26399
26407
|
"UnauthorizedException"
|
|
26400
26408
|
], Pm = "ConnectionStateChange";
|
|
@@ -26410,11 +26418,11 @@ var Ht;
|
|
|
26410
26418
|
(function(e) {
|
|
26411
26419
|
e[e.CLOSED = 0] = "CLOSED", e[e.READY = 1] = "READY", e[e.CONNECTING = 2] = "CONNECTING";
|
|
26412
26420
|
})(Ht || (Ht = {}));
|
|
26413
|
-
const
|
|
26421
|
+
const qI = {
|
|
26414
26422
|
accept: "application/json, text/javascript",
|
|
26415
26423
|
"content-encoding": "amz-1.0",
|
|
26416
26424
|
"content-type": "application/json; charset=UTF-8"
|
|
26417
|
-
}, Rf = 15e3,
|
|
26425
|
+
}, Rf = 15e3, HI = 15e3, ZI = 300 * 1e3, GI = 5 * 1e3, YI = 65 * 1e3, XI = 5 * 1e3, KI = 60 * 1e3;
|
|
26418
26426
|
var xn;
|
|
26419
26427
|
(function(e) {
|
|
26420
26428
|
e.CONNECTION_CLOSED = "Connection closed", e.CONNECTION_FAILED = "Connection failed", e.REALTIME_SUBSCRIPTION_INIT_ERROR = "AppSync Realtime subscription init error", e.SUBSCRIPTION_ACK = "Subscription ack", e.TIMEOUT_DISCONNECT = "Timeout disconnect";
|
|
@@ -26440,7 +26448,7 @@ const Tf = () => new jr().networkMonitor(), mn = {
|
|
|
26440
26448
|
ONLINE: { networkState: "connected" },
|
|
26441
26449
|
OFFLINE: { networkState: "disconnected" }
|
|
26442
26450
|
};
|
|
26443
|
-
class
|
|
26451
|
+
class JI {
|
|
26444
26452
|
constructor() {
|
|
26445
26453
|
this._networkMonitoringSubscription = void 0, this._linkedConnectionState = {
|
|
26446
26454
|
networkState: "connected",
|
|
@@ -26474,7 +26482,7 @@ class KI {
|
|
|
26474
26482
|
*/
|
|
26475
26483
|
get connectionStateObservable() {
|
|
26476
26484
|
let t;
|
|
26477
|
-
return this._linkedConnectionStateObservable.pipe(
|
|
26485
|
+
return this._linkedConnectionStateObservable.pipe(YA((n) => this.connectionStatesTranslator(n))).pipe(XA((n) => {
|
|
26478
26486
|
const r = n !== t;
|
|
26479
26487
|
return t = n, r;
|
|
26480
26488
|
}));
|
|
@@ -26501,7 +26509,7 @@ var Wr;
|
|
|
26501
26509
|
(function(e) {
|
|
26502
26510
|
e.START_RECONNECT = "START_RECONNECT", e.HALT_RECONNECT = "HALT_RECONNECT";
|
|
26503
26511
|
})(Wr || (Wr = {}));
|
|
26504
|
-
class
|
|
26512
|
+
class QI {
|
|
26505
26513
|
constructor() {
|
|
26506
26514
|
this.reconnectObservers = [];
|
|
26507
26515
|
}
|
|
@@ -26518,8 +26526,8 @@ class JI {
|
|
|
26518
26526
|
t === Wr.START_RECONNECT && this.reconnectSetTimeoutId === void 0 && this.reconnectIntervalId === void 0 && (this.reconnectSetTimeoutId = setTimeout(() => {
|
|
26519
26527
|
this._triggerReconnect(), this.reconnectIntervalId = setInterval(() => {
|
|
26520
26528
|
this._triggerReconnect();
|
|
26521
|
-
},
|
|
26522
|
-
},
|
|
26529
|
+
}, KI);
|
|
26530
|
+
}, XI)), t === Wr.HALT_RECONNECT && (this.reconnectIntervalId && (clearInterval(this.reconnectIntervalId), this.reconnectIntervalId = void 0), this.reconnectSetTimeoutId && (clearTimeout(this.reconnectSetTimeoutId), this.reconnectSetTimeoutId = void 0));
|
|
26523
26531
|
}
|
|
26524
26532
|
/**
|
|
26525
26533
|
* Complete all reconnect observers
|
|
@@ -26535,10 +26543,10 @@ class JI {
|
|
|
26535
26543
|
});
|
|
26536
26544
|
}
|
|
26537
26545
|
}
|
|
26538
|
-
const Pf = "wss://",
|
|
26546
|
+
const Pf = "wss://", eR = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i, tR = /^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i, Of = "/realtime", nR = (e) => e.match(eR) === null, rR = (e) => e.match(tR) !== null, iR = (e) => {
|
|
26539
26547
|
let t = e ?? "";
|
|
26540
|
-
return
|
|
26541
|
-
},
|
|
26548
|
+
return rR(t) ? t = t.concat(Of).replace("ddpg-api", "grt-gamma").replace("appsync-api", "appsync-realtime-api") : nR(t) ? t = t.concat(Of) : t = t.replace("appsync-api", "appsync-realtime-api").replace("gogi-beta", "grt-beta").replace("ddpg-api", "grt-gamma"), t = t.replace("https://", Pf).replace("http://", Pf), new jl(t);
|
|
26549
|
+
}, oR = (e) => {
|
|
26542
26550
|
if (!e)
|
|
26543
26551
|
return {};
|
|
26544
26552
|
if ("Authorization" in e) {
|
|
@@ -26546,13 +26554,13 @@ const Pf = "wss://", QI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26546
26554
|
return n;
|
|
26547
26555
|
}
|
|
26548
26556
|
return e;
|
|
26549
|
-
},
|
|
26550
|
-
const t =
|
|
26557
|
+
}, aR = (e) => {
|
|
26558
|
+
const t = oR(e), n = new _m();
|
|
26551
26559
|
return Object.entries(t).forEach(([r, i]) => {
|
|
26552
26560
|
n.append(r, i);
|
|
26553
26561
|
}), n;
|
|
26554
|
-
},
|
|
26555
|
-
const n =
|
|
26562
|
+
}, sR = (e, t) => {
|
|
26563
|
+
const n = iR(e), r = new _m(n.search);
|
|
26556
26564
|
for (const [i, o] of t.entries())
|
|
26557
26565
|
r.append(i, o);
|
|
26558
26566
|
return n.search = r.toString(), n.toString();
|
|
@@ -26573,14 +26581,14 @@ const Pf = "wss://", QI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26573
26581
|
}, Nf = new vn("AWSAppSyncRealTimeProvider Auth"), Lf = async ({ host: e }) => ({
|
|
26574
26582
|
Authorization: (await xm())?.tokens?.accessToken?.toString(),
|
|
26575
26583
|
host: e
|
|
26576
|
-
}),
|
|
26584
|
+
}), lR = async ({ apiKey: e, host: t }) => {
|
|
26577
26585
|
const r = (/* @__PURE__ */ new Date()).toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
26578
26586
|
return {
|
|
26579
26587
|
host: t,
|
|
26580
26588
|
"x-amz-date": r,
|
|
26581
26589
|
"x-api-key": e
|
|
26582
26590
|
};
|
|
26583
|
-
},
|
|
26591
|
+
}, cR = async ({ payload: e, canonicalUri: t, appSyncGraphqlEndpoint: n, region: r }) => {
|
|
26584
26592
|
const i = {
|
|
26585
26593
|
region: r,
|
|
26586
26594
|
service: "appsync"
|
|
@@ -26588,9 +26596,9 @@ const Pf = "wss://", QI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26588
26596
|
url: `${n}${t}`,
|
|
26589
26597
|
data: e,
|
|
26590
26598
|
method: "POST",
|
|
26591
|
-
headers: { ...
|
|
26599
|
+
headers: { ...qI }
|
|
26592
26600
|
};
|
|
26593
|
-
return
|
|
26601
|
+
return SI({
|
|
26594
26602
|
headers: a.headers,
|
|
26595
26603
|
method: a.method,
|
|
26596
26604
|
url: new jl(a.url),
|
|
@@ -26609,8 +26617,8 @@ const Pf = "wss://", QI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26609
26617
|
};
|
|
26610
26618
|
}, Om = async ({ apiKey: e, authenticationType: t, canonicalUri: n, appSyncGraphqlEndpoint: r, region: i, additionalCustomHeaders: o, payload: a }) => {
|
|
26611
26619
|
const s = {
|
|
26612
|
-
apiKey:
|
|
26613
|
-
iam:
|
|
26620
|
+
apiKey: lR,
|
|
26621
|
+
iam: cR,
|
|
26614
26622
|
oidc: Lf,
|
|
26615
26623
|
userPool: Lf,
|
|
26616
26624
|
lambda: Df,
|
|
@@ -26634,17 +26642,17 @@ const Pf = "wss://", QI = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
26634
26642
|
}, Mf = (e) => {
|
|
26635
26643
|
Pl.dispatch("api", e, "PubSub", Tl);
|
|
26636
26644
|
};
|
|
26637
|
-
class
|
|
26645
|
+
class uR {
|
|
26638
26646
|
constructor(t) {
|
|
26639
|
-
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = Ht.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new
|
|
26647
|
+
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = Ht.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new JI(), this.reconnectionMonitor = new QI(), this._establishConnection = async (n, r) => {
|
|
26640
26648
|
this.logger.debug(`Establishing WebSocket connection to ${n}`);
|
|
26641
26649
|
try {
|
|
26642
26650
|
await this._openConnection(n, r), await this._initiateHandshake();
|
|
26643
26651
|
} catch (i) {
|
|
26644
26652
|
const { errorType: o, errorCode: a } = i;
|
|
26645
|
-
throw
|
|
26653
|
+
throw VI.includes(a) || // Event API does not currently return `errorCode`. This may change in the future.
|
|
26646
26654
|
// For now fall back to also checking known non-retryable error types
|
|
26647
|
-
|
|
26655
|
+
WI.includes(o) ? new FI(o) : o ? new Error(o) : i;
|
|
26648
26656
|
}
|
|
26649
26657
|
}, this.logger = new vn(t.providerName), this.wsProtocolName = t.wsProtocolName, this.wsConnectUri = t.connectUri, this.connectionStateMonitorSubscription = this._startConnectionStateMonitoring();
|
|
26650
26658
|
}
|
|
@@ -26810,7 +26818,7 @@ class cR {
|
|
|
26810
26818
|
subscriptionFailedCallback: h,
|
|
26811
26819
|
startAckTimeoutId: setTimeout(() => {
|
|
26812
26820
|
this._timeoutStartSubscriptionAck(r);
|
|
26813
|
-
},
|
|
26821
|
+
}, HI)
|
|
26814
26822
|
}), this.awsRealTimeSocket && this.awsRealTimeSocket.send(u);
|
|
26815
26823
|
}
|
|
26816
26824
|
// Log logic for start subscription failures
|
|
@@ -26881,7 +26889,7 @@ class cR {
|
|
|
26881
26889
|
}
|
|
26882
26890
|
keepAliveHeartbeat(t) {
|
|
26883
26891
|
const n = Date.now();
|
|
26884
|
-
n - this.keepAliveTimestamp >
|
|
26892
|
+
n - this.keepAliveTimestamp > YI ? this.connectionStateMonitor.record(mn.KEEP_ALIVE_MISSED) : this.connectionStateMonitor.record(mn.KEEP_ALIVE), n - this.keepAliveTimestamp > t && this._errorDisconnect(xn.TIMEOUT_DISCONNECT);
|
|
26885
26893
|
}
|
|
26886
26894
|
_handleIncomingSubscriptionMessage(t) {
|
|
26887
26895
|
if (typeof t.data != "string")
|
|
@@ -26989,10 +26997,10 @@ class cR {
|
|
|
26989
26997
|
appSyncGraphqlEndpoint: t,
|
|
26990
26998
|
region: i,
|
|
26991
26999
|
additionalCustomHeaders: o
|
|
26992
|
-
}), h = u ? JSON.stringify(u) : "", v = `header-${
|
|
27000
|
+
}), h = u ? JSON.stringify(u) : "", v = `header-${UI.convert(h, {
|
|
26993
27001
|
urlSafe: !0,
|
|
26994
27002
|
skipPadding: !0
|
|
26995
|
-
})}`, m =
|
|
27003
|
+
})}`, m = aR(o), y = sR(t, m);
|
|
26996
27004
|
await this._establishRetryableConnection(y, v), this.promiseArray.forEach(({ res: C }) => {
|
|
26997
27005
|
this.logger.debug("Notifying connection successful"), C();
|
|
26998
27006
|
}), this.socketStatus = Ht.READY, this.promiseArray = [];
|
|
@@ -27004,7 +27012,7 @@ class cR {
|
|
|
27004
27012
|
});
|
|
27005
27013
|
}
|
|
27006
27014
|
async _establishRetryableConnection(t, n) {
|
|
27007
|
-
this.logger.debug("Establishing retryable connection"), await
|
|
27015
|
+
this.logger.debug("Establishing retryable connection"), await jI(this._establishConnection.bind(this), [t, n], BI);
|
|
27008
27016
|
}
|
|
27009
27017
|
async _openConnection(t, n) {
|
|
27010
27018
|
return new Promise((r, i) => {
|
|
@@ -27064,14 +27072,14 @@ class cR {
|
|
|
27064
27072
|
_registerWebsocketHandlers(t) {
|
|
27065
27073
|
this.awsRealTimeSocket && (this.keepAliveHeartbeatIntervalId = setInterval(() => {
|
|
27066
27074
|
this.keepAliveHeartbeat(t);
|
|
27067
|
-
},
|
|
27075
|
+
}, GI), this.awsRealTimeSocket.onmessage = this._handleIncomingSubscriptionMessage.bind(this), this.awsRealTimeSocket.onerror = (n) => {
|
|
27068
27076
|
this.logger.debug(n), this._errorDisconnect(xn.CONNECTION_CLOSED);
|
|
27069
27077
|
}, this.awsRealTimeSocket.onclose = (n) => {
|
|
27070
27078
|
this.logger.debug(`WebSocket closed ${n.reason}`), this._closeSocket(), this._errorDisconnect(xn.CONNECTION_CLOSED);
|
|
27071
27079
|
});
|
|
27072
27080
|
}
|
|
27073
27081
|
}
|
|
27074
|
-
const Oo = (e, t) => e ? e === "identityPool" ? "iam" : e : t,
|
|
27082
|
+
const Oo = (e, t) => e ? e === "identityPool" ? "iam" : e : t, fR = () => {
|
|
27075
27083
|
const t = Fl.getConfig().API?.Events;
|
|
27076
27084
|
if (!t)
|
|
27077
27085
|
throw new Error("Amplify configuration is missing. Have you called Amplify.configure()?");
|
|
@@ -27094,13 +27102,13 @@ const Oo = (e, t) => e ? e === "identityPool" ? "iam" : e : t, uR = () => {
|
|
|
27094
27102
|
if (t === void 0)
|
|
27095
27103
|
throw new Error(`Event must be a valid JSON value. Received ${e}`);
|
|
27096
27104
|
return [t];
|
|
27097
|
-
}, zf = "AWSAppSyncEventsProvider",
|
|
27098
|
-
class
|
|
27105
|
+
}, zf = "AWSAppSyncEventsProvider", dR = "aws-appsync-event-ws", hR = "";
|
|
27106
|
+
class pR extends uR {
|
|
27099
27107
|
constructor() {
|
|
27100
27108
|
super({
|
|
27101
27109
|
providerName: zf,
|
|
27102
|
-
wsProtocolName:
|
|
27103
|
-
connectUri:
|
|
27110
|
+
wsProtocolName: dR,
|
|
27111
|
+
connectUri: hR
|
|
27104
27112
|
}), this.allowNoSubscriptions = !0;
|
|
27105
27113
|
}
|
|
27106
27114
|
getProviderName() {
|
|
@@ -27134,7 +27142,7 @@ class hR extends cR {
|
|
|
27134
27142
|
}),
|
|
27135
27143
|
...o,
|
|
27136
27144
|
...i,
|
|
27137
|
-
[
|
|
27145
|
+
[lE]: xA(r)
|
|
27138
27146
|
}, L = {
|
|
27139
27147
|
id: n,
|
|
27140
27148
|
channel: u,
|
|
@@ -27171,7 +27179,7 @@ class hR extends cR {
|
|
|
27171
27179
|
};
|
|
27172
27180
|
}
|
|
27173
27181
|
_extractConnectionTimeout(t) {
|
|
27174
|
-
const { connectionTimeoutMs: n =
|
|
27182
|
+
const { connectionTimeoutMs: n = ZI } = t;
|
|
27175
27183
|
return n;
|
|
27176
27184
|
}
|
|
27177
27185
|
_extractErrorCodeAndType(t) {
|
|
@@ -27179,9 +27187,9 @@ class hR extends cR {
|
|
|
27179
27187
|
return { errorCode: r, errorType: n };
|
|
27180
27188
|
}
|
|
27181
27189
|
}
|
|
27182
|
-
const vo = new
|
|
27183
|
-
async function
|
|
27184
|
-
const n =
|
|
27190
|
+
const vo = new pR(), gi = /* @__PURE__ */ new Set();
|
|
27191
|
+
async function mR(e, t) {
|
|
27192
|
+
const n = fR();
|
|
27185
27193
|
n.authenticationType = Oo(t?.authMode, n.authenticationType), n.apiKey = t?.apiKey || n.apiKey, n.authToken = t?.authToken || n.authToken, await vo.connect(n);
|
|
27186
27194
|
const r = Ls();
|
|
27187
27195
|
gi.add(r);
|
|
@@ -27318,7 +27326,7 @@ function nr(...e) {
|
|
|
27318
27326
|
function jf(e) {
|
|
27319
27327
|
return JSON.stringify(e);
|
|
27320
27328
|
}
|
|
27321
|
-
function
|
|
27329
|
+
function gR(e) {
|
|
27322
27330
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
27323
27331
|
}
|
|
27324
27332
|
const Mm = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
@@ -27326,7 +27334,7 @@ const Mm = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
|
27326
27334
|
function Bo(e) {
|
|
27327
27335
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
27328
27336
|
}
|
|
27329
|
-
const
|
|
27337
|
+
const vR = $l(() => {
|
|
27330
27338
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
27331
27339
|
return !1;
|
|
27332
27340
|
try {
|
|
@@ -27348,7 +27356,7 @@ function Pi(e) {
|
|
|
27348
27356
|
function zm(e) {
|
|
27349
27357
|
return Pi(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
27350
27358
|
}
|
|
27351
|
-
const
|
|
27359
|
+
const bR = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
27352
27360
|
function qr(e) {
|
|
27353
27361
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27354
27362
|
}
|
|
@@ -27369,10 +27377,10 @@ function Oe(e) {
|
|
|
27369
27377
|
}
|
|
27370
27378
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
27371
27379
|
}
|
|
27372
|
-
function
|
|
27380
|
+
function yR(e) {
|
|
27373
27381
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
27374
27382
|
}
|
|
27375
|
-
function
|
|
27383
|
+
function wR(e, t) {
|
|
27376
27384
|
const n = e._zod.def, r = n.checks;
|
|
27377
27385
|
if (r && r.length > 0)
|
|
27378
27386
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
@@ -27390,7 +27398,7 @@ function yR(e, t) {
|
|
|
27390
27398
|
});
|
|
27391
27399
|
return rr(e, o);
|
|
27392
27400
|
}
|
|
27393
|
-
function
|
|
27401
|
+
function xR(e, t) {
|
|
27394
27402
|
const n = e._zod.def, r = n.checks;
|
|
27395
27403
|
if (r && r.length > 0)
|
|
27396
27404
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
@@ -27408,7 +27416,7 @@ function wR(e, t) {
|
|
|
27408
27416
|
});
|
|
27409
27417
|
return rr(e, o);
|
|
27410
27418
|
}
|
|
27411
|
-
function
|
|
27419
|
+
function kR(e, t) {
|
|
27412
27420
|
if (!Pi(t))
|
|
27413
27421
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
27414
27422
|
const n = e._zod.def.checks;
|
|
@@ -27426,7 +27434,7 @@ function xR(e, t) {
|
|
|
27426
27434
|
});
|
|
27427
27435
|
return rr(e, i);
|
|
27428
27436
|
}
|
|
27429
|
-
function
|
|
27437
|
+
function _R(e, t) {
|
|
27430
27438
|
if (!Pi(t))
|
|
27431
27439
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
27432
27440
|
const n = nr(e._zod.def, {
|
|
@@ -27437,7 +27445,7 @@ function kR(e, t) {
|
|
|
27437
27445
|
});
|
|
27438
27446
|
return rr(e, n);
|
|
27439
27447
|
}
|
|
27440
|
-
function
|
|
27448
|
+
function SR(e, t) {
|
|
27441
27449
|
const n = nr(e._zod.def, {
|
|
27442
27450
|
get shape() {
|
|
27443
27451
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
@@ -27451,7 +27459,7 @@ function _R(e, t) {
|
|
|
27451
27459
|
});
|
|
27452
27460
|
return rr(e, n);
|
|
27453
27461
|
}
|
|
27454
|
-
function
|
|
27462
|
+
function CR(e, t, n) {
|
|
27455
27463
|
const i = t._zod.def.checks;
|
|
27456
27464
|
if (i && i.length > 0)
|
|
27457
27465
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
@@ -27479,7 +27487,7 @@ function SR(e, t, n) {
|
|
|
27479
27487
|
});
|
|
27480
27488
|
return rr(t, a);
|
|
27481
27489
|
}
|
|
27482
|
-
function
|
|
27490
|
+
function ER(e, t, n) {
|
|
27483
27491
|
const r = nr(t._zod.def, {
|
|
27484
27492
|
get shape() {
|
|
27485
27493
|
const i = t._zod.def.shape, o = { ...i };
|
|
@@ -27552,13 +27560,13 @@ const jm = (e, t) => {
|
|
|
27552
27560
|
enumerable: !1
|
|
27553
27561
|
});
|
|
27554
27562
|
}, $m = se("$ZodError", jm), Um = se("$ZodError", jm, { Parent: Error });
|
|
27555
|
-
function
|
|
27563
|
+
function AR(e, t = (n) => n.message) {
|
|
27556
27564
|
const n = {}, r = [];
|
|
27557
27565
|
for (const i of e.issues)
|
|
27558
27566
|
i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
|
|
27559
27567
|
return { formErrors: r, fieldErrors: n };
|
|
27560
27568
|
}
|
|
27561
|
-
function
|
|
27569
|
+
function IR(e, t = (n) => n.message) {
|
|
27562
27570
|
const n = { _errors: [] }, r = (i) => {
|
|
27563
27571
|
for (const o of i.issues)
|
|
27564
27572
|
if (o.code === "invalid_union" && o.errors.length)
|
|
@@ -27604,50 +27612,50 @@ const Wl = (e) => (t, n, r, i) => {
|
|
|
27604
27612
|
success: !1,
|
|
27605
27613
|
error: new (e ?? $m)(o.issues.map((a) => yr(a, i, br())))
|
|
27606
27614
|
} : { success: !0, data: o.value };
|
|
27607
|
-
},
|
|
27615
|
+
}, RR = /* @__PURE__ */ sa(Um), la = (e) => async (t, n, r) => {
|
|
27608
27616
|
const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
27609
27617
|
let o = t._zod.run({ value: n, issues: [] }, i);
|
|
27610
27618
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
27611
27619
|
success: !1,
|
|
27612
27620
|
error: new e(o.issues.map((a) => yr(a, i, br())))
|
|
27613
27621
|
} : { success: !0, data: o.value };
|
|
27614
|
-
},
|
|
27622
|
+
}, TR = /* @__PURE__ */ la(Um), PR = (e) => (t, n, r) => {
|
|
27615
27623
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27616
27624
|
return Wl(e)(t, n, i);
|
|
27617
|
-
},
|
|
27625
|
+
}, OR = (e) => (t, n, r) => Wl(e)(t, n, r), NR = (e) => async (t, n, r) => {
|
|
27618
27626
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27619
27627
|
return ql(e)(t, n, i);
|
|
27620
|
-
},
|
|
27628
|
+
}, LR = (e) => async (t, n, r) => ql(e)(t, n, r), DR = (e) => (t, n, r) => {
|
|
27621
27629
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27622
27630
|
return sa(e)(t, n, i);
|
|
27623
|
-
},
|
|
27631
|
+
}, MR = (e) => (t, n, r) => sa(e)(t, n, r), zR = (e) => async (t, n, r) => {
|
|
27624
27632
|
const i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
27625
27633
|
return la(e)(t, n, i);
|
|
27626
|
-
},
|
|
27627
|
-
function
|
|
27628
|
-
return new RegExp(
|
|
27634
|
+
}, FR = (e) => async (t, n, r) => la(e)(t, n, r), jR = /^[cC][^\s-]{8,}$/, $R = /^[0-9a-z]+$/, UR = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, BR = /^[0-9a-vA-V]{20}$/, VR = /^[A-Za-z0-9]{27}$/, WR = /^[a-zA-Z0-9_-]{21}$/, qR = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, HR = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, $f = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, ZR = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, GR = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
27635
|
+
function YR() {
|
|
27636
|
+
return new RegExp(GR, "u");
|
|
27629
27637
|
}
|
|
27630
|
-
const
|
|
27638
|
+
const XR = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, KR = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, JR = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, QR = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, e2 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Bm = /^[A-Za-z0-9_-]*$/, t2 = /^\+[1-9]\d{6,14}$/, Vm = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", n2 = /* @__PURE__ */ new RegExp(`^${Vm}$`);
|
|
27631
27639
|
function Wm(e) {
|
|
27632
27640
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
27633
27641
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
27634
27642
|
}
|
|
27635
|
-
function
|
|
27643
|
+
function r2(e) {
|
|
27636
27644
|
return new RegExp(`^${Wm(e)}$`);
|
|
27637
27645
|
}
|
|
27638
|
-
function
|
|
27646
|
+
function i2(e) {
|
|
27639
27647
|
const t = Wm({ precision: e.precision }), n = ["Z"];
|
|
27640
27648
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
27641
27649
|
const r = `${t}(?:${n.join("|")})`;
|
|
27642
27650
|
return new RegExp(`^${Vm}T(?:${r})$`);
|
|
27643
27651
|
}
|
|
27644
|
-
const
|
|
27652
|
+
const o2 = (e) => {
|
|
27645
27653
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
27646
27654
|
return new RegExp(`^${t}$`);
|
|
27647
|
-
},
|
|
27655
|
+
}, a2 = /^[^A-Z]*$/, s2 = /^[^a-z]*$/, Dn = /* @__PURE__ */ se("$ZodCheck", (e, t) => {
|
|
27648
27656
|
var n;
|
|
27649
27657
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
27650
|
-
}),
|
|
27658
|
+
}), l2 = /* @__PURE__ */ se("$ZodCheckMaxLength", (e, t) => {
|
|
27651
27659
|
var n;
|
|
27652
27660
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27653
27661
|
const i = r.value;
|
|
@@ -27670,7 +27678,7 @@ const i2 = (e) => {
|
|
|
27670
27678
|
continue: !t.abort
|
|
27671
27679
|
});
|
|
27672
27680
|
};
|
|
27673
|
-
}),
|
|
27681
|
+
}), c2 = /* @__PURE__ */ se("$ZodCheckMinLength", (e, t) => {
|
|
27674
27682
|
var n;
|
|
27675
27683
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27676
27684
|
const i = r.value;
|
|
@@ -27693,7 +27701,7 @@ const i2 = (e) => {
|
|
|
27693
27701
|
continue: !t.abort
|
|
27694
27702
|
});
|
|
27695
27703
|
};
|
|
27696
|
-
}),
|
|
27704
|
+
}), u2 = /* @__PURE__ */ se("$ZodCheckLengthEquals", (e, t) => {
|
|
27697
27705
|
var n;
|
|
27698
27706
|
Dn.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
27699
27707
|
const i = r.value;
|
|
@@ -27733,7 +27741,7 @@ const i2 = (e) => {
|
|
|
27733
27741
|
});
|
|
27734
27742
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
27735
27743
|
});
|
|
27736
|
-
}),
|
|
27744
|
+
}), f2 = /* @__PURE__ */ se("$ZodCheckRegex", (e, t) => {
|
|
27737
27745
|
ca.init(e, t), e._zod.check = (n) => {
|
|
27738
27746
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
27739
27747
|
origin: "string",
|
|
@@ -27745,11 +27753,11 @@ const i2 = (e) => {
|
|
|
27745
27753
|
continue: !t.abort
|
|
27746
27754
|
});
|
|
27747
27755
|
};
|
|
27748
|
-
}),
|
|
27749
|
-
t.pattern ?? (t.pattern = o2), ca.init(e, t);
|
|
27750
|
-
}), d2 = /* @__PURE__ */ se("$ZodCheckUpperCase", (e, t) => {
|
|
27756
|
+
}), d2 = /* @__PURE__ */ se("$ZodCheckLowerCase", (e, t) => {
|
|
27751
27757
|
t.pattern ?? (t.pattern = a2), ca.init(e, t);
|
|
27752
|
-
}), h2 = /* @__PURE__ */ se("$
|
|
27758
|
+
}), h2 = /* @__PURE__ */ se("$ZodCheckUpperCase", (e, t) => {
|
|
27759
|
+
t.pattern ?? (t.pattern = s2), ca.init(e, t);
|
|
27760
|
+
}), p2 = /* @__PURE__ */ se("$ZodCheckIncludes", (e, t) => {
|
|
27753
27761
|
Dn.init(e, t);
|
|
27754
27762
|
const n = qr(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
27755
27763
|
t.pattern = r, e._zod.onattach.push((i) => {
|
|
@@ -27766,7 +27774,7 @@ const i2 = (e) => {
|
|
|
27766
27774
|
continue: !t.abort
|
|
27767
27775
|
});
|
|
27768
27776
|
};
|
|
27769
|
-
}),
|
|
27777
|
+
}), m2 = /* @__PURE__ */ se("$ZodCheckStartsWith", (e, t) => {
|
|
27770
27778
|
Dn.init(e, t);
|
|
27771
27779
|
const n = new RegExp(`^${qr(t.prefix)}.*`);
|
|
27772
27780
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -27783,7 +27791,7 @@ const i2 = (e) => {
|
|
|
27783
27791
|
continue: !t.abort
|
|
27784
27792
|
});
|
|
27785
27793
|
};
|
|
27786
|
-
}),
|
|
27794
|
+
}), g2 = /* @__PURE__ */ se("$ZodCheckEndsWith", (e, t) => {
|
|
27787
27795
|
Dn.init(e, t);
|
|
27788
27796
|
const n = new RegExp(`.*${qr(t.suffix)}$`);
|
|
27789
27797
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -27800,12 +27808,12 @@ const i2 = (e) => {
|
|
|
27800
27808
|
continue: !t.abort
|
|
27801
27809
|
});
|
|
27802
27810
|
};
|
|
27803
|
-
}),
|
|
27811
|
+
}), v2 = /* @__PURE__ */ se("$ZodCheckOverwrite", (e, t) => {
|
|
27804
27812
|
Dn.init(e, t), e._zod.check = (n) => {
|
|
27805
27813
|
n.value = t.tx(n.value);
|
|
27806
27814
|
};
|
|
27807
27815
|
});
|
|
27808
|
-
class
|
|
27816
|
+
class b2 {
|
|
27809
27817
|
constructor(t = []) {
|
|
27810
27818
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
27811
27819
|
}
|
|
@@ -27828,13 +27836,13 @@ class v2 {
|
|
|
27828
27836
|
`));
|
|
27829
27837
|
}
|
|
27830
27838
|
}
|
|
27831
|
-
const
|
|
27839
|
+
const y2 = {
|
|
27832
27840
|
major: 4,
|
|
27833
27841
|
minor: 3,
|
|
27834
27842
|
patch: 6
|
|
27835
27843
|
}, Ct = /* @__PURE__ */ se("$ZodType", (e, t) => {
|
|
27836
27844
|
var n;
|
|
27837
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
27845
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = y2;
|
|
27838
27846
|
const r = [...e._zod.def.checks ?? []];
|
|
27839
27847
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
27840
27848
|
for (const i of r)
|
|
@@ -27897,17 +27905,17 @@ const b2 = {
|
|
|
27897
27905
|
ct(e, "~standard", () => ({
|
|
27898
27906
|
validate: (i) => {
|
|
27899
27907
|
try {
|
|
27900
|
-
const o =
|
|
27908
|
+
const o = RR(e, i);
|
|
27901
27909
|
return o.success ? { value: o.data } : { issues: o.error?.issues };
|
|
27902
27910
|
} catch {
|
|
27903
|
-
return
|
|
27911
|
+
return TR(e, i).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
|
|
27904
27912
|
}
|
|
27905
27913
|
},
|
|
27906
27914
|
vendor: "zod",
|
|
27907
27915
|
version: 1
|
|
27908
27916
|
}));
|
|
27909
27917
|
}), Hl = /* @__PURE__ */ se("$ZodString", (e, t) => {
|
|
27910
|
-
Ct.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
27918
|
+
Ct.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? o2(e._zod.bag), e._zod.parse = (n, r) => {
|
|
27911
27919
|
if (t.coerce)
|
|
27912
27920
|
try {
|
|
27913
27921
|
n.value = String(n.value);
|
|
@@ -27922,9 +27930,9 @@ const b2 = {
|
|
|
27922
27930
|
};
|
|
27923
27931
|
}), vt = /* @__PURE__ */ se("$ZodStringFormat", (e, t) => {
|
|
27924
27932
|
ca.init(e, t), Hl.init(e, t);
|
|
27925
|
-
}),
|
|
27926
|
-
t.pattern ?? (t.pattern =
|
|
27927
|
-
}),
|
|
27933
|
+
}), w2 = /* @__PURE__ */ se("$ZodGUID", (e, t) => {
|
|
27934
|
+
t.pattern ?? (t.pattern = HR), vt.init(e, t);
|
|
27935
|
+
}), x2 = /* @__PURE__ */ se("$ZodUUID", (e, t) => {
|
|
27928
27936
|
if (t.version) {
|
|
27929
27937
|
const r = {
|
|
27930
27938
|
v1: 1,
|
|
@@ -27942,9 +27950,9 @@ const b2 = {
|
|
|
27942
27950
|
} else
|
|
27943
27951
|
t.pattern ?? (t.pattern = $f());
|
|
27944
27952
|
vt.init(e, t);
|
|
27945
|
-
}),
|
|
27946
|
-
t.pattern ?? (t.pattern =
|
|
27947
|
-
}),
|
|
27953
|
+
}), k2 = /* @__PURE__ */ se("$ZodEmail", (e, t) => {
|
|
27954
|
+
t.pattern ?? (t.pattern = ZR), vt.init(e, t);
|
|
27955
|
+
}), _2 = /* @__PURE__ */ se("$ZodURL", (e, t) => {
|
|
27948
27956
|
vt.init(e, t), e._zod.check = (n) => {
|
|
27949
27957
|
try {
|
|
27950
27958
|
const r = n.value.trim(), i = new URL(r);
|
|
@@ -27976,32 +27984,32 @@ const b2 = {
|
|
|
27976
27984
|
});
|
|
27977
27985
|
}
|
|
27978
27986
|
};
|
|
27979
|
-
}),
|
|
27980
|
-
t.pattern ?? (t.pattern =
|
|
27981
|
-
}),
|
|
27982
|
-
t.pattern ?? (t.pattern =
|
|
27983
|
-
}),
|
|
27984
|
-
t.pattern ?? (t.pattern = FR), vt.init(e, t);
|
|
27985
|
-
}), E2 = /* @__PURE__ */ se("$ZodCUID2", (e, t) => {
|
|
27987
|
+
}), S2 = /* @__PURE__ */ se("$ZodEmoji", (e, t) => {
|
|
27988
|
+
t.pattern ?? (t.pattern = YR()), vt.init(e, t);
|
|
27989
|
+
}), C2 = /* @__PURE__ */ se("$ZodNanoID", (e, t) => {
|
|
27990
|
+
t.pattern ?? (t.pattern = WR), vt.init(e, t);
|
|
27991
|
+
}), E2 = /* @__PURE__ */ se("$ZodCUID", (e, t) => {
|
|
27986
27992
|
t.pattern ?? (t.pattern = jR), vt.init(e, t);
|
|
27987
|
-
}), A2 = /* @__PURE__ */ se("$
|
|
27993
|
+
}), A2 = /* @__PURE__ */ se("$ZodCUID2", (e, t) => {
|
|
27988
27994
|
t.pattern ?? (t.pattern = $R), vt.init(e, t);
|
|
27989
|
-
}), I2 = /* @__PURE__ */ se("$
|
|
27995
|
+
}), I2 = /* @__PURE__ */ se("$ZodULID", (e, t) => {
|
|
27990
27996
|
t.pattern ?? (t.pattern = UR), vt.init(e, t);
|
|
27991
|
-
}), R2 = /* @__PURE__ */ se("$
|
|
27997
|
+
}), R2 = /* @__PURE__ */ se("$ZodXID", (e, t) => {
|
|
27992
27998
|
t.pattern ?? (t.pattern = BR), vt.init(e, t);
|
|
27993
|
-
}), T2 = /* @__PURE__ */ se("$
|
|
27999
|
+
}), T2 = /* @__PURE__ */ se("$ZodKSUID", (e, t) => {
|
|
28000
|
+
t.pattern ?? (t.pattern = VR), vt.init(e, t);
|
|
28001
|
+
}), P2 = /* @__PURE__ */ se("$ZodISODateTime", (e, t) => {
|
|
28002
|
+
t.pattern ?? (t.pattern = i2(t)), vt.init(e, t);
|
|
28003
|
+
}), O2 = /* @__PURE__ */ se("$ZodISODate", (e, t) => {
|
|
28004
|
+
t.pattern ?? (t.pattern = n2), vt.init(e, t);
|
|
28005
|
+
}), N2 = /* @__PURE__ */ se("$ZodISOTime", (e, t) => {
|
|
27994
28006
|
t.pattern ?? (t.pattern = r2(t)), vt.init(e, t);
|
|
27995
|
-
}),
|
|
27996
|
-
t.pattern ?? (t.pattern =
|
|
27997
|
-
}),
|
|
27998
|
-
t.pattern ?? (t.pattern =
|
|
27999
|
-
}),
|
|
28000
|
-
t.pattern ?? (t.pattern =
|
|
28001
|
-
}), L2 = /* @__PURE__ */ se("$ZodIPv4", (e, t) => {
|
|
28002
|
-
t.pattern ?? (t.pattern = YR), vt.init(e, t), e._zod.bag.format = "ipv4";
|
|
28003
|
-
}), D2 = /* @__PURE__ */ se("$ZodIPv6", (e, t) => {
|
|
28004
|
-
t.pattern ?? (t.pattern = XR), vt.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
28007
|
+
}), L2 = /* @__PURE__ */ se("$ZodISODuration", (e, t) => {
|
|
28008
|
+
t.pattern ?? (t.pattern = qR), vt.init(e, t);
|
|
28009
|
+
}), D2 = /* @__PURE__ */ se("$ZodIPv4", (e, t) => {
|
|
28010
|
+
t.pattern ?? (t.pattern = XR), vt.init(e, t), e._zod.bag.format = "ipv4";
|
|
28011
|
+
}), M2 = /* @__PURE__ */ se("$ZodIPv6", (e, t) => {
|
|
28012
|
+
t.pattern ?? (t.pattern = KR), vt.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
28005
28013
|
try {
|
|
28006
28014
|
new URL(`http://[${n.value}]`);
|
|
28007
28015
|
} catch {
|
|
@@ -28014,10 +28022,10 @@ const b2 = {
|
|
|
28014
28022
|
});
|
|
28015
28023
|
}
|
|
28016
28024
|
};
|
|
28017
|
-
}),
|
|
28018
|
-
t.pattern ?? (t.pattern =
|
|
28019
|
-
}),
|
|
28020
|
-
t.pattern ?? (t.pattern =
|
|
28025
|
+
}), z2 = /* @__PURE__ */ se("$ZodCIDRv4", (e, t) => {
|
|
28026
|
+
t.pattern ?? (t.pattern = JR), vt.init(e, t);
|
|
28027
|
+
}), F2 = /* @__PURE__ */ se("$ZodCIDRv6", (e, t) => {
|
|
28028
|
+
t.pattern ?? (t.pattern = QR), vt.init(e, t), e._zod.check = (n) => {
|
|
28021
28029
|
const r = n.value.split("/");
|
|
28022
28030
|
try {
|
|
28023
28031
|
if (r.length !== 2)
|
|
@@ -28053,8 +28061,8 @@ function qm(e) {
|
|
|
28053
28061
|
return !1;
|
|
28054
28062
|
}
|
|
28055
28063
|
}
|
|
28056
|
-
const
|
|
28057
|
-
t.pattern ?? (t.pattern =
|
|
28064
|
+
const j2 = /* @__PURE__ */ se("$ZodBase64", (e, t) => {
|
|
28065
|
+
t.pattern ?? (t.pattern = e2), vt.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
28058
28066
|
qm(n.value) || n.issues.push({
|
|
28059
28067
|
code: "invalid_format",
|
|
28060
28068
|
format: "base64",
|
|
@@ -28064,15 +28072,15 @@ const F2 = /* @__PURE__ */ se("$ZodBase64", (e, t) => {
|
|
|
28064
28072
|
});
|
|
28065
28073
|
};
|
|
28066
28074
|
});
|
|
28067
|
-
function
|
|
28075
|
+
function $2(e) {
|
|
28068
28076
|
if (!Bm.test(e))
|
|
28069
28077
|
return !1;
|
|
28070
28078
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
28071
28079
|
return qm(n);
|
|
28072
28080
|
}
|
|
28073
|
-
const
|
|
28081
|
+
const U2 = /* @__PURE__ */ se("$ZodBase64URL", (e, t) => {
|
|
28074
28082
|
t.pattern ?? (t.pattern = Bm), vt.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
28075
|
-
|
|
28083
|
+
$2(n.value) || n.issues.push({
|
|
28076
28084
|
code: "invalid_format",
|
|
28077
28085
|
format: "base64url",
|
|
28078
28086
|
input: n.value,
|
|
@@ -28080,10 +28088,10 @@ const $2 = /* @__PURE__ */ se("$ZodBase64URL", (e, t) => {
|
|
|
28080
28088
|
continue: !t.abort
|
|
28081
28089
|
});
|
|
28082
28090
|
};
|
|
28083
|
-
}),
|
|
28084
|
-
t.pattern ?? (t.pattern =
|
|
28091
|
+
}), B2 = /* @__PURE__ */ se("$ZodE164", (e, t) => {
|
|
28092
|
+
t.pattern ?? (t.pattern = t2), vt.init(e, t);
|
|
28085
28093
|
});
|
|
28086
|
-
function
|
|
28094
|
+
function V2(e, t = null) {
|
|
28087
28095
|
try {
|
|
28088
28096
|
const n = e.split(".");
|
|
28089
28097
|
if (n.length !== 3)
|
|
@@ -28097,9 +28105,9 @@ function B2(e, t = null) {
|
|
|
28097
28105
|
return !1;
|
|
28098
28106
|
}
|
|
28099
28107
|
}
|
|
28100
|
-
const
|
|
28108
|
+
const W2 = /* @__PURE__ */ se("$ZodJWT", (e, t) => {
|
|
28101
28109
|
vt.init(e, t), e._zod.check = (n) => {
|
|
28102
|
-
|
|
28110
|
+
V2(n.value, t.alg) || n.issues.push({
|
|
28103
28111
|
code: "invalid_format",
|
|
28104
28112
|
format: "jwt",
|
|
28105
28113
|
input: n.value,
|
|
@@ -28107,9 +28115,9 @@ const V2 = /* @__PURE__ */ se("$ZodJWT", (e, t) => {
|
|
|
28107
28115
|
continue: !t.abort
|
|
28108
28116
|
});
|
|
28109
28117
|
};
|
|
28110
|
-
}),
|
|
28118
|
+
}), q2 = /* @__PURE__ */ se("$ZodUnknown", (e, t) => {
|
|
28111
28119
|
Ct.init(e, t), e._zod.parse = (n) => n;
|
|
28112
|
-
}),
|
|
28120
|
+
}), H2 = /* @__PURE__ */ se("$ZodNever", (e, t) => {
|
|
28113
28121
|
Ct.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
28114
28122
|
expected: "never",
|
|
28115
28123
|
code: "invalid_type",
|
|
@@ -28120,7 +28128,7 @@ const V2 = /* @__PURE__ */ se("$ZodJWT", (e, t) => {
|
|
|
28120
28128
|
function Uf(e, t, n) {
|
|
28121
28129
|
e.issues.length && t.issues.push(...Fm(n, e.issues)), t.value[n] = e.value;
|
|
28122
28130
|
}
|
|
28123
|
-
const
|
|
28131
|
+
const Z2 = /* @__PURE__ */ se("$ZodArray", (e, t) => {
|
|
28124
28132
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28125
28133
|
const i = n.value;
|
|
28126
28134
|
if (!Array.isArray(i))
|
|
@@ -28155,7 +28163,7 @@ function Hm(e) {
|
|
|
28155
28163
|
for (const r of t)
|
|
28156
28164
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
28157
28165
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
28158
|
-
const n =
|
|
28166
|
+
const n = yR(e.shape);
|
|
28159
28167
|
return {
|
|
28160
28168
|
...e,
|
|
28161
28169
|
keys: t,
|
|
@@ -28183,7 +28191,7 @@ function Zm(e, t, n, r, i, o) {
|
|
|
28183
28191
|
inst: o
|
|
28184
28192
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
28185
28193
|
}
|
|
28186
|
-
const
|
|
28194
|
+
const G2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
|
|
28187
28195
|
if (Ct.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
28188
28196
|
const s = t.shape;
|
|
28189
28197
|
Object.defineProperty(t, "shape", {
|
|
@@ -28228,10 +28236,10 @@ const Z2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
|
|
|
28228
28236
|
}
|
|
28229
28237
|
return o ? Zm(h, u, s, l, r.value, e) : h.length ? Promise.all(h).then(() => s) : s;
|
|
28230
28238
|
};
|
|
28231
|
-
}),
|
|
28232
|
-
|
|
28239
|
+
}), Y2 = /* @__PURE__ */ se("$ZodObjectJIT", (e, t) => {
|
|
28240
|
+
G2.init(e, t);
|
|
28233
28241
|
const n = e._zod.parse, r = $l(() => Hm(t)), i = (v) => {
|
|
28234
|
-
const m = new
|
|
28242
|
+
const m = new b2(["shape", "payload", "ctx"]), y = r.value, C = (M) => {
|
|
28235
28243
|
const Y = jf(M);
|
|
28236
28244
|
return `shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`;
|
|
28237
28245
|
};
|
|
@@ -28284,7 +28292,7 @@ const Z2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
|
|
|
28284
28292
|
return (M, Y) => j(v, M, Y);
|
|
28285
28293
|
};
|
|
28286
28294
|
let o;
|
|
28287
|
-
const a = Bo, s = !Lm.jitless, u = s &&
|
|
28295
|
+
const a = Bo, s = !Lm.jitless, u = s && vR.value, h = t.catchall;
|
|
28288
28296
|
let p;
|
|
28289
28297
|
e._zod.parse = (v, m) => {
|
|
28290
28298
|
p ?? (p = r.value);
|
|
@@ -28309,7 +28317,7 @@ function Bf(e, t, n, r) {
|
|
|
28309
28317
|
errors: e.map((o) => o.issues.map((a) => yr(a, r, br())))
|
|
28310
28318
|
}), t);
|
|
28311
28319
|
}
|
|
28312
|
-
const
|
|
28320
|
+
const X2 = /* @__PURE__ */ se("$ZodUnion", (e, t) => {
|
|
28313
28321
|
Ct.init(e, t), ct(e._zod, "optin", () => t.options.some((i) => i._zod.optin === "optional") ? "optional" : void 0), ct(e._zod, "optout", () => t.options.some((i) => i._zod.optout === "optional") ? "optional" : void 0), ct(e._zod, "values", () => {
|
|
28314
28322
|
if (t.options.every((i) => i._zod.values))
|
|
28315
28323
|
return new Set(t.options.flatMap((i) => Array.from(i._zod.values)));
|
|
@@ -28340,7 +28348,7 @@ const Y2 = /* @__PURE__ */ se("$ZodUnion", (e, t) => {
|
|
|
28340
28348
|
}
|
|
28341
28349
|
return a ? Promise.all(s).then((l) => Bf(l, i, e, o)) : Bf(s, i, e, o);
|
|
28342
28350
|
};
|
|
28343
|
-
}),
|
|
28351
|
+
}), K2 = /* @__PURE__ */ se("$ZodIntersection", (e, t) => {
|
|
28344
28352
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28345
28353
|
const i = n.value, o = t.left._zod.run({ value: i, issues: [] }, r), a = t.right._zod.run({ value: i, issues: [] }, r);
|
|
28346
28354
|
return o instanceof Promise || a instanceof Promise ? Promise.all([o, a]).then(([l, u]) => Vf(n, l, u)) : Vf(n, o, a);
|
|
@@ -28405,10 +28413,10 @@ function Vf(e, t, n) {
|
|
|
28405
28413
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);
|
|
28406
28414
|
return e.value = a.data, e;
|
|
28407
28415
|
}
|
|
28408
|
-
const
|
|
28416
|
+
const J2 = /* @__PURE__ */ se("$ZodEnum", (e, t) => {
|
|
28409
28417
|
Ct.init(e, t);
|
|
28410
28418
|
const n = Dm(t.entries), r = new Set(n);
|
|
28411
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((i) =>
|
|
28419
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((i) => bR.has(typeof i)).map((i) => typeof i == "string" ? qr(i) : i.toString()).join("|")})$`), e._zod.parse = (i, o) => {
|
|
28412
28420
|
const a = i.value;
|
|
28413
28421
|
return r.has(a) || i.issues.push({
|
|
28414
28422
|
code: "invalid_value",
|
|
@@ -28417,7 +28425,7 @@ const K2 = /* @__PURE__ */ se("$ZodEnum", (e, t) => {
|
|
|
28417
28425
|
inst: e
|
|
28418
28426
|
}), i;
|
|
28419
28427
|
};
|
|
28420
|
-
}),
|
|
28428
|
+
}), Q2 = /* @__PURE__ */ se("$ZodLiteral", (e, t) => {
|
|
28421
28429
|
if (Ct.init(e, t), t.values.length === 0)
|
|
28422
28430
|
throw new Error("Cannot create literal schema with no valid values");
|
|
28423
28431
|
const n = new Set(t.values);
|
|
@@ -28430,7 +28438,7 @@ const K2 = /* @__PURE__ */ se("$ZodEnum", (e, t) => {
|
|
|
28430
28438
|
inst: e
|
|
28431
28439
|
}), r;
|
|
28432
28440
|
};
|
|
28433
|
-
}),
|
|
28441
|
+
}), eT = /* @__PURE__ */ se("$ZodTransform", (e, t) => {
|
|
28434
28442
|
Ct.init(e, t), e._zod.parse = (n, r) => {
|
|
28435
28443
|
if (r.direction === "backward")
|
|
28436
28444
|
throw new Nm(e.constructor.name);
|
|
@@ -28456,14 +28464,14 @@ const Gm = /* @__PURE__ */ se("$ZodOptional", (e, t) => {
|
|
|
28456
28464
|
}
|
|
28457
28465
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
28458
28466
|
};
|
|
28459
|
-
}),
|
|
28467
|
+
}), tT = /* @__PURE__ */ se("$ZodExactOptional", (e, t) => {
|
|
28460
28468
|
Gm.init(e, t), ct(e._zod, "values", () => t.innerType._zod.values), ct(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
|
|
28461
|
-
}),
|
|
28469
|
+
}), nT = /* @__PURE__ */ se("$ZodNullable", (e, t) => {
|
|
28462
28470
|
Ct.init(e, t), ct(e._zod, "optin", () => t.innerType._zod.optin), ct(e._zod, "optout", () => t.innerType._zod.optout), ct(e._zod, "pattern", () => {
|
|
28463
28471
|
const n = t.innerType._zod.pattern;
|
|
28464
28472
|
return n ? new RegExp(`^(${Bl(n.source)}|null)$`) : void 0;
|
|
28465
28473
|
}), ct(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
28466
|
-
}),
|
|
28474
|
+
}), rT = /* @__PURE__ */ se("$ZodDefault", (e, t) => {
|
|
28467
28475
|
Ct.init(e, t), e._zod.optin = "optional", ct(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
28468
28476
|
if (r.direction === "backward")
|
|
28469
28477
|
return t.innerType._zod.run(n, r);
|
|
@@ -28476,9 +28484,9 @@ const Gm = /* @__PURE__ */ se("$ZodOptional", (e, t) => {
|
|
|
28476
28484
|
function qf(e, t) {
|
|
28477
28485
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
28478
28486
|
}
|
|
28479
|
-
const
|
|
28487
|
+
const iT = /* @__PURE__ */ se("$ZodPrefault", (e, t) => {
|
|
28480
28488
|
Ct.init(e, t), e._zod.optin = "optional", ct(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
28481
|
-
}),
|
|
28489
|
+
}), oT = /* @__PURE__ */ se("$ZodNonOptional", (e, t) => {
|
|
28482
28490
|
Ct.init(e, t), ct(e._zod, "values", () => {
|
|
28483
28491
|
const n = t.innerType._zod.values;
|
|
28484
28492
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
@@ -28495,7 +28503,7 @@ function Hf(e, t) {
|
|
|
28495
28503
|
inst: t
|
|
28496
28504
|
}), e;
|
|
28497
28505
|
}
|
|
28498
|
-
const
|
|
28506
|
+
const aT = /* @__PURE__ */ se("$ZodCatch", (e, t) => {
|
|
28499
28507
|
Ct.init(e, t), ct(e._zod, "optin", () => t.innerType._zod.optin), ct(e._zod, "optout", () => t.innerType._zod.optout), ct(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
28500
28508
|
if (r.direction === "backward")
|
|
28501
28509
|
return t.innerType._zod.run(n, r);
|
|
@@ -28514,7 +28522,7 @@ const oT = /* @__PURE__ */ se("$ZodCatch", (e, t) => {
|
|
|
28514
28522
|
input: n.value
|
|
28515
28523
|
}), n.issues = []), n);
|
|
28516
28524
|
};
|
|
28517
|
-
}),
|
|
28525
|
+
}), sT = /* @__PURE__ */ se("$ZodPipe", (e, t) => {
|
|
28518
28526
|
Ct.init(e, t), ct(e._zod, "values", () => t.in._zod.values), ct(e._zod, "optin", () => t.in._zod.optin), ct(e._zod, "optout", () => t.out._zod.optout), ct(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
28519
28527
|
if (r.direction === "backward") {
|
|
28520
28528
|
const o = t.out._zod.run(n, r);
|
|
@@ -28527,7 +28535,7 @@ const oT = /* @__PURE__ */ se("$ZodCatch", (e, t) => {
|
|
|
28527
28535
|
function yo(e, t, n) {
|
|
28528
28536
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
28529
28537
|
}
|
|
28530
|
-
const
|
|
28538
|
+
const lT = /* @__PURE__ */ se("$ZodReadonly", (e, t) => {
|
|
28531
28539
|
Ct.init(e, t), ct(e._zod, "propValues", () => t.innerType._zod.propValues), ct(e._zod, "values", () => t.innerType._zod.values), ct(e._zod, "optin", () => t.innerType?._zod?.optin), ct(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
|
|
28532
28540
|
if (r.direction === "backward")
|
|
28533
28541
|
return t.innerType._zod.run(n, r);
|
|
@@ -28538,7 +28546,7 @@ const sT = /* @__PURE__ */ se("$ZodReadonly", (e, t) => {
|
|
|
28538
28546
|
function Zf(e) {
|
|
28539
28547
|
return e.value = Object.freeze(e.value), e;
|
|
28540
28548
|
}
|
|
28541
|
-
const
|
|
28549
|
+
const cT = /* @__PURE__ */ se("$ZodCustom", (e, t) => {
|
|
28542
28550
|
Dn.init(e, t), Ct.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
28543
28551
|
const r = n.value, i = t.fn(r);
|
|
28544
28552
|
if (i instanceof Promise)
|
|
@@ -28562,7 +28570,7 @@ function Gf(e, t, n, r) {
|
|
|
28562
28570
|
}
|
|
28563
28571
|
}
|
|
28564
28572
|
var Yf;
|
|
28565
|
-
class
|
|
28573
|
+
class uT {
|
|
28566
28574
|
constructor() {
|
|
28567
28575
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
28568
28576
|
}
|
|
@@ -28591,20 +28599,20 @@ class cT {
|
|
|
28591
28599
|
return this._map.has(t);
|
|
28592
28600
|
}
|
|
28593
28601
|
}
|
|
28594
|
-
function
|
|
28595
|
-
return new
|
|
28602
|
+
function fT() {
|
|
28603
|
+
return new uT();
|
|
28596
28604
|
}
|
|
28597
|
-
(Yf = globalThis).__zod_globalRegistry ?? (Yf.__zod_globalRegistry =
|
|
28605
|
+
(Yf = globalThis).__zod_globalRegistry ?? (Yf.__zod_globalRegistry = fT());
|
|
28598
28606
|
const yi = globalThis.__zod_globalRegistry;
|
|
28599
28607
|
// @__NO_SIDE_EFFECTS__
|
|
28600
|
-
function
|
|
28608
|
+
function dT(e, t) {
|
|
28601
28609
|
return new e({
|
|
28602
28610
|
type: "string",
|
|
28603
28611
|
...Oe(t)
|
|
28604
28612
|
});
|
|
28605
28613
|
}
|
|
28606
28614
|
// @__NO_SIDE_EFFECTS__
|
|
28607
|
-
function
|
|
28615
|
+
function hT(e, t) {
|
|
28608
28616
|
return new e({
|
|
28609
28617
|
type: "string",
|
|
28610
28618
|
format: "email",
|
|
@@ -28624,7 +28632,7 @@ function Xf(e, t) {
|
|
|
28624
28632
|
});
|
|
28625
28633
|
}
|
|
28626
28634
|
// @__NO_SIDE_EFFECTS__
|
|
28627
|
-
function
|
|
28635
|
+
function pT(e, t) {
|
|
28628
28636
|
return new e({
|
|
28629
28637
|
type: "string",
|
|
28630
28638
|
format: "uuid",
|
|
@@ -28634,7 +28642,7 @@ function hT(e, t) {
|
|
|
28634
28642
|
});
|
|
28635
28643
|
}
|
|
28636
28644
|
// @__NO_SIDE_EFFECTS__
|
|
28637
|
-
function
|
|
28645
|
+
function mT(e, t) {
|
|
28638
28646
|
return new e({
|
|
28639
28647
|
type: "string",
|
|
28640
28648
|
format: "uuid",
|
|
@@ -28645,7 +28653,7 @@ function pT(e, t) {
|
|
|
28645
28653
|
});
|
|
28646
28654
|
}
|
|
28647
28655
|
// @__NO_SIDE_EFFECTS__
|
|
28648
|
-
function
|
|
28656
|
+
function gT(e, t) {
|
|
28649
28657
|
return new e({
|
|
28650
28658
|
type: "string",
|
|
28651
28659
|
format: "uuid",
|
|
@@ -28656,7 +28664,7 @@ function mT(e, t) {
|
|
|
28656
28664
|
});
|
|
28657
28665
|
}
|
|
28658
28666
|
// @__NO_SIDE_EFFECTS__
|
|
28659
|
-
function
|
|
28667
|
+
function vT(e, t) {
|
|
28660
28668
|
return new e({
|
|
28661
28669
|
type: "string",
|
|
28662
28670
|
format: "uuid",
|
|
@@ -28667,7 +28675,7 @@ function gT(e, t) {
|
|
|
28667
28675
|
});
|
|
28668
28676
|
}
|
|
28669
28677
|
// @__NO_SIDE_EFFECTS__
|
|
28670
|
-
function
|
|
28678
|
+
function bT(e, t) {
|
|
28671
28679
|
return new e({
|
|
28672
28680
|
type: "string",
|
|
28673
28681
|
format: "url",
|
|
@@ -28677,7 +28685,7 @@ function vT(e, t) {
|
|
|
28677
28685
|
});
|
|
28678
28686
|
}
|
|
28679
28687
|
// @__NO_SIDE_EFFECTS__
|
|
28680
|
-
function
|
|
28688
|
+
function yT(e, t) {
|
|
28681
28689
|
return new e({
|
|
28682
28690
|
type: "string",
|
|
28683
28691
|
format: "emoji",
|
|
@@ -28687,7 +28695,7 @@ function bT(e, t) {
|
|
|
28687
28695
|
});
|
|
28688
28696
|
}
|
|
28689
28697
|
// @__NO_SIDE_EFFECTS__
|
|
28690
|
-
function
|
|
28698
|
+
function wT(e, t) {
|
|
28691
28699
|
return new e({
|
|
28692
28700
|
type: "string",
|
|
28693
28701
|
format: "nanoid",
|
|
@@ -28697,7 +28705,7 @@ function yT(e, t) {
|
|
|
28697
28705
|
});
|
|
28698
28706
|
}
|
|
28699
28707
|
// @__NO_SIDE_EFFECTS__
|
|
28700
|
-
function
|
|
28708
|
+
function xT(e, t) {
|
|
28701
28709
|
return new e({
|
|
28702
28710
|
type: "string",
|
|
28703
28711
|
format: "cuid",
|
|
@@ -28707,7 +28715,7 @@ function wT(e, t) {
|
|
|
28707
28715
|
});
|
|
28708
28716
|
}
|
|
28709
28717
|
// @__NO_SIDE_EFFECTS__
|
|
28710
|
-
function
|
|
28718
|
+
function kT(e, t) {
|
|
28711
28719
|
return new e({
|
|
28712
28720
|
type: "string",
|
|
28713
28721
|
format: "cuid2",
|
|
@@ -28717,7 +28725,7 @@ function xT(e, t) {
|
|
|
28717
28725
|
});
|
|
28718
28726
|
}
|
|
28719
28727
|
// @__NO_SIDE_EFFECTS__
|
|
28720
|
-
function
|
|
28728
|
+
function _T(e, t) {
|
|
28721
28729
|
return new e({
|
|
28722
28730
|
type: "string",
|
|
28723
28731
|
format: "ulid",
|
|
@@ -28727,7 +28735,7 @@ function kT(e, t) {
|
|
|
28727
28735
|
});
|
|
28728
28736
|
}
|
|
28729
28737
|
// @__NO_SIDE_EFFECTS__
|
|
28730
|
-
function
|
|
28738
|
+
function ST(e, t) {
|
|
28731
28739
|
return new e({
|
|
28732
28740
|
type: "string",
|
|
28733
28741
|
format: "xid",
|
|
@@ -28737,7 +28745,7 @@ function _T(e, t) {
|
|
|
28737
28745
|
});
|
|
28738
28746
|
}
|
|
28739
28747
|
// @__NO_SIDE_EFFECTS__
|
|
28740
|
-
function
|
|
28748
|
+
function CT(e, t) {
|
|
28741
28749
|
return new e({
|
|
28742
28750
|
type: "string",
|
|
28743
28751
|
format: "ksuid",
|
|
@@ -28747,7 +28755,7 @@ function ST(e, t) {
|
|
|
28747
28755
|
});
|
|
28748
28756
|
}
|
|
28749
28757
|
// @__NO_SIDE_EFFECTS__
|
|
28750
|
-
function
|
|
28758
|
+
function ET(e, t) {
|
|
28751
28759
|
return new e({
|
|
28752
28760
|
type: "string",
|
|
28753
28761
|
format: "ipv4",
|
|
@@ -28757,7 +28765,7 @@ function CT(e, t) {
|
|
|
28757
28765
|
});
|
|
28758
28766
|
}
|
|
28759
28767
|
// @__NO_SIDE_EFFECTS__
|
|
28760
|
-
function
|
|
28768
|
+
function AT(e, t) {
|
|
28761
28769
|
return new e({
|
|
28762
28770
|
type: "string",
|
|
28763
28771
|
format: "ipv6",
|
|
@@ -28767,7 +28775,7 @@ function ET(e, t) {
|
|
|
28767
28775
|
});
|
|
28768
28776
|
}
|
|
28769
28777
|
// @__NO_SIDE_EFFECTS__
|
|
28770
|
-
function
|
|
28778
|
+
function IT(e, t) {
|
|
28771
28779
|
return new e({
|
|
28772
28780
|
type: "string",
|
|
28773
28781
|
format: "cidrv4",
|
|
@@ -28777,7 +28785,7 @@ function AT(e, t) {
|
|
|
28777
28785
|
});
|
|
28778
28786
|
}
|
|
28779
28787
|
// @__NO_SIDE_EFFECTS__
|
|
28780
|
-
function
|
|
28788
|
+
function RT(e, t) {
|
|
28781
28789
|
return new e({
|
|
28782
28790
|
type: "string",
|
|
28783
28791
|
format: "cidrv6",
|
|
@@ -28787,7 +28795,7 @@ function IT(e, t) {
|
|
|
28787
28795
|
});
|
|
28788
28796
|
}
|
|
28789
28797
|
// @__NO_SIDE_EFFECTS__
|
|
28790
|
-
function
|
|
28798
|
+
function TT(e, t) {
|
|
28791
28799
|
return new e({
|
|
28792
28800
|
type: "string",
|
|
28793
28801
|
format: "base64",
|
|
@@ -28797,7 +28805,7 @@ function RT(e, t) {
|
|
|
28797
28805
|
});
|
|
28798
28806
|
}
|
|
28799
28807
|
// @__NO_SIDE_EFFECTS__
|
|
28800
|
-
function
|
|
28808
|
+
function PT(e, t) {
|
|
28801
28809
|
return new e({
|
|
28802
28810
|
type: "string",
|
|
28803
28811
|
format: "base64url",
|
|
@@ -28807,7 +28815,7 @@ function TT(e, t) {
|
|
|
28807
28815
|
});
|
|
28808
28816
|
}
|
|
28809
28817
|
// @__NO_SIDE_EFFECTS__
|
|
28810
|
-
function
|
|
28818
|
+
function OT(e, t) {
|
|
28811
28819
|
return new e({
|
|
28812
28820
|
type: "string",
|
|
28813
28821
|
format: "e164",
|
|
@@ -28817,7 +28825,7 @@ function PT(e, t) {
|
|
|
28817
28825
|
});
|
|
28818
28826
|
}
|
|
28819
28827
|
// @__NO_SIDE_EFFECTS__
|
|
28820
|
-
function
|
|
28828
|
+
function NT(e, t) {
|
|
28821
28829
|
return new e({
|
|
28822
28830
|
type: "string",
|
|
28823
28831
|
format: "jwt",
|
|
@@ -28827,7 +28835,7 @@ function OT(e, t) {
|
|
|
28827
28835
|
});
|
|
28828
28836
|
}
|
|
28829
28837
|
// @__NO_SIDE_EFFECTS__
|
|
28830
|
-
function
|
|
28838
|
+
function LT(e, t) {
|
|
28831
28839
|
return new e({
|
|
28832
28840
|
type: "string",
|
|
28833
28841
|
format: "datetime",
|
|
@@ -28839,7 +28847,7 @@ function NT(e, t) {
|
|
|
28839
28847
|
});
|
|
28840
28848
|
}
|
|
28841
28849
|
// @__NO_SIDE_EFFECTS__
|
|
28842
|
-
function
|
|
28850
|
+
function DT(e, t) {
|
|
28843
28851
|
return new e({
|
|
28844
28852
|
type: "string",
|
|
28845
28853
|
format: "date",
|
|
@@ -28848,7 +28856,7 @@ function LT(e, t) {
|
|
|
28848
28856
|
});
|
|
28849
28857
|
}
|
|
28850
28858
|
// @__NO_SIDE_EFFECTS__
|
|
28851
|
-
function
|
|
28859
|
+
function MT(e, t) {
|
|
28852
28860
|
return new e({
|
|
28853
28861
|
type: "string",
|
|
28854
28862
|
format: "time",
|
|
@@ -28858,7 +28866,7 @@ function DT(e, t) {
|
|
|
28858
28866
|
});
|
|
28859
28867
|
}
|
|
28860
28868
|
// @__NO_SIDE_EFFECTS__
|
|
28861
|
-
function
|
|
28869
|
+
function zT(e, t) {
|
|
28862
28870
|
return new e({
|
|
28863
28871
|
type: "string",
|
|
28864
28872
|
format: "duration",
|
|
@@ -28867,13 +28875,13 @@ function MT(e, t) {
|
|
|
28867
28875
|
});
|
|
28868
28876
|
}
|
|
28869
28877
|
// @__NO_SIDE_EFFECTS__
|
|
28870
|
-
function
|
|
28878
|
+
function FT(e) {
|
|
28871
28879
|
return new e({
|
|
28872
28880
|
type: "unknown"
|
|
28873
28881
|
});
|
|
28874
28882
|
}
|
|
28875
28883
|
// @__NO_SIDE_EFFECTS__
|
|
28876
|
-
function
|
|
28884
|
+
function jT(e, t) {
|
|
28877
28885
|
return new e({
|
|
28878
28886
|
type: "never",
|
|
28879
28887
|
...Oe(t)
|
|
@@ -28881,7 +28889,7 @@ function FT(e, t) {
|
|
|
28881
28889
|
}
|
|
28882
28890
|
// @__NO_SIDE_EFFECTS__
|
|
28883
28891
|
function Ym(e, t) {
|
|
28884
|
-
return new
|
|
28892
|
+
return new l2({
|
|
28885
28893
|
check: "max_length",
|
|
28886
28894
|
...Oe(t),
|
|
28887
28895
|
maximum: e
|
|
@@ -28889,7 +28897,7 @@ function Ym(e, t) {
|
|
|
28889
28897
|
}
|
|
28890
28898
|
// @__NO_SIDE_EFFECTS__
|
|
28891
28899
|
function Wo(e, t) {
|
|
28892
|
-
return new
|
|
28900
|
+
return new c2({
|
|
28893
28901
|
check: "min_length",
|
|
28894
28902
|
...Oe(t),
|
|
28895
28903
|
minimum: e
|
|
@@ -28897,15 +28905,15 @@ function Wo(e, t) {
|
|
|
28897
28905
|
}
|
|
28898
28906
|
// @__NO_SIDE_EFFECTS__
|
|
28899
28907
|
function Xm(e, t) {
|
|
28900
|
-
return new
|
|
28908
|
+
return new u2({
|
|
28901
28909
|
check: "length_equals",
|
|
28902
28910
|
...Oe(t),
|
|
28903
28911
|
length: e
|
|
28904
28912
|
});
|
|
28905
28913
|
}
|
|
28906
28914
|
// @__NO_SIDE_EFFECTS__
|
|
28907
|
-
function
|
|
28908
|
-
return new
|
|
28915
|
+
function $T(e, t) {
|
|
28916
|
+
return new f2({
|
|
28909
28917
|
check: "string_format",
|
|
28910
28918
|
format: "regex",
|
|
28911
28919
|
...Oe(t),
|
|
@@ -28913,24 +28921,24 @@ function jT(e, t) {
|
|
|
28913
28921
|
});
|
|
28914
28922
|
}
|
|
28915
28923
|
// @__NO_SIDE_EFFECTS__
|
|
28916
|
-
function
|
|
28917
|
-
return new
|
|
28924
|
+
function UT(e) {
|
|
28925
|
+
return new d2({
|
|
28918
28926
|
check: "string_format",
|
|
28919
28927
|
format: "lowercase",
|
|
28920
28928
|
...Oe(e)
|
|
28921
28929
|
});
|
|
28922
28930
|
}
|
|
28923
28931
|
// @__NO_SIDE_EFFECTS__
|
|
28924
|
-
function
|
|
28925
|
-
return new
|
|
28932
|
+
function BT(e) {
|
|
28933
|
+
return new h2({
|
|
28926
28934
|
check: "string_format",
|
|
28927
28935
|
format: "uppercase",
|
|
28928
28936
|
...Oe(e)
|
|
28929
28937
|
});
|
|
28930
28938
|
}
|
|
28931
28939
|
// @__NO_SIDE_EFFECTS__
|
|
28932
|
-
function
|
|
28933
|
-
return new
|
|
28940
|
+
function VT(e, t) {
|
|
28941
|
+
return new p2({
|
|
28934
28942
|
check: "string_format",
|
|
28935
28943
|
format: "includes",
|
|
28936
28944
|
...Oe(t),
|
|
@@ -28938,8 +28946,8 @@ function BT(e, t) {
|
|
|
28938
28946
|
});
|
|
28939
28947
|
}
|
|
28940
28948
|
// @__NO_SIDE_EFFECTS__
|
|
28941
|
-
function
|
|
28942
|
-
return new
|
|
28949
|
+
function WT(e, t) {
|
|
28950
|
+
return new m2({
|
|
28943
28951
|
check: "string_format",
|
|
28944
28952
|
format: "starts_with",
|
|
28945
28953
|
...Oe(t),
|
|
@@ -28947,8 +28955,8 @@ function VT(e, t) {
|
|
|
28947
28955
|
});
|
|
28948
28956
|
}
|
|
28949
28957
|
// @__NO_SIDE_EFFECTS__
|
|
28950
|
-
function
|
|
28951
|
-
return new
|
|
28958
|
+
function qT(e, t) {
|
|
28959
|
+
return new g2({
|
|
28952
28960
|
check: "string_format",
|
|
28953
28961
|
format: "ends_with",
|
|
28954
28962
|
...Oe(t),
|
|
@@ -28957,33 +28965,33 @@ function WT(e, t) {
|
|
|
28957
28965
|
}
|
|
28958
28966
|
// @__NO_SIDE_EFFECTS__
|
|
28959
28967
|
function Xr(e) {
|
|
28960
|
-
return new
|
|
28968
|
+
return new v2({
|
|
28961
28969
|
check: "overwrite",
|
|
28962
28970
|
tx: e
|
|
28963
28971
|
});
|
|
28964
28972
|
}
|
|
28965
28973
|
// @__NO_SIDE_EFFECTS__
|
|
28966
|
-
function
|
|
28974
|
+
function HT(e) {
|
|
28967
28975
|
return /* @__PURE__ */ Xr((t) => t.normalize(e));
|
|
28968
28976
|
}
|
|
28969
28977
|
// @__NO_SIDE_EFFECTS__
|
|
28970
|
-
function
|
|
28978
|
+
function ZT() {
|
|
28971
28979
|
return /* @__PURE__ */ Xr((e) => e.trim());
|
|
28972
28980
|
}
|
|
28973
28981
|
// @__NO_SIDE_EFFECTS__
|
|
28974
|
-
function
|
|
28982
|
+
function GT() {
|
|
28975
28983
|
return /* @__PURE__ */ Xr((e) => e.toLowerCase());
|
|
28976
28984
|
}
|
|
28977
28985
|
// @__NO_SIDE_EFFECTS__
|
|
28978
|
-
function
|
|
28986
|
+
function YT() {
|
|
28979
28987
|
return /* @__PURE__ */ Xr((e) => e.toUpperCase());
|
|
28980
28988
|
}
|
|
28981
28989
|
// @__NO_SIDE_EFFECTS__
|
|
28982
|
-
function
|
|
28983
|
-
return /* @__PURE__ */ Xr((e) =>
|
|
28990
|
+
function XT() {
|
|
28991
|
+
return /* @__PURE__ */ Xr((e) => gR(e));
|
|
28984
28992
|
}
|
|
28985
28993
|
// @__NO_SIDE_EFFECTS__
|
|
28986
|
-
function
|
|
28994
|
+
function KT(e, t, n) {
|
|
28987
28995
|
return new e({
|
|
28988
28996
|
type: "array",
|
|
28989
28997
|
element: t,
|
|
@@ -28994,7 +29002,7 @@ function XT(e, t, n) {
|
|
|
28994
29002
|
});
|
|
28995
29003
|
}
|
|
28996
29004
|
// @__NO_SIDE_EFFECTS__
|
|
28997
|
-
function
|
|
29005
|
+
function JT(e, t, n) {
|
|
28998
29006
|
return new e({
|
|
28999
29007
|
type: "custom",
|
|
29000
29008
|
check: "custom",
|
|
@@ -29003,8 +29011,8 @@ function KT(e, t, n) {
|
|
|
29003
29011
|
});
|
|
29004
29012
|
}
|
|
29005
29013
|
// @__NO_SIDE_EFFECTS__
|
|
29006
|
-
function
|
|
29007
|
-
const t = /* @__PURE__ */
|
|
29014
|
+
function QT(e) {
|
|
29015
|
+
const t = /* @__PURE__ */ eP((n) => (n.addIssue = (r) => {
|
|
29008
29016
|
if (typeof r == "string")
|
|
29009
29017
|
n.issues.push(Oi(r, n.value, t._zod.def));
|
|
29010
29018
|
else {
|
|
@@ -29015,7 +29023,7 @@ function JT(e) {
|
|
|
29015
29023
|
return t;
|
|
29016
29024
|
}
|
|
29017
29025
|
// @__NO_SIDE_EFFECTS__
|
|
29018
|
-
function
|
|
29026
|
+
function eP(e, t) {
|
|
29019
29027
|
const n = new Dn({
|
|
29020
29028
|
check: "custom",
|
|
29021
29029
|
...Oe(t)
|
|
@@ -29249,24 +29257,24 @@ function qt(e, t) {
|
|
|
29249
29257
|
}
|
|
29250
29258
|
return !1;
|
|
29251
29259
|
}
|
|
29252
|
-
const
|
|
29260
|
+
const tP = (e, t = {}) => (n) => {
|
|
29253
29261
|
const r = Km({ ...n, processors: t });
|
|
29254
29262
|
return jt(e, r), Jm(r, e), Qm(r, e);
|
|
29255
29263
|
}, qo = (e, t, n = {}) => (r) => {
|
|
29256
29264
|
const { libraryOptions: i, target: o } = r ?? {}, a = Km({ ...i ?? {}, target: o, io: t, processors: n });
|
|
29257
29265
|
return jt(e, a), Jm(a, e), Qm(a, e);
|
|
29258
|
-
},
|
|
29266
|
+
}, nP = {
|
|
29259
29267
|
guid: "uuid",
|
|
29260
29268
|
url: "uri",
|
|
29261
29269
|
datetime: "date-time",
|
|
29262
29270
|
json_string: "json-string",
|
|
29263
29271
|
regex: ""
|
|
29264
29272
|
// do not set
|
|
29265
|
-
},
|
|
29273
|
+
}, rP = (e, t, n, r) => {
|
|
29266
29274
|
const i = n;
|
|
29267
29275
|
i.type = "string";
|
|
29268
29276
|
const { minimum: o, maximum: a, format: s, patterns: l, contentEncoding: u } = e._zod.bag;
|
|
29269
|
-
if (typeof o == "number" && (i.minLength = o), typeof a == "number" && (i.maxLength = a), s && (i.format =
|
|
29277
|
+
if (typeof o == "number" && (i.minLength = o), typeof a == "number" && (i.maxLength = a), s && (i.format = nP[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), u && (i.contentEncoding = u), l && l.size > 0) {
|
|
29270
29278
|
const h = [...l];
|
|
29271
29279
|
h.length === 1 ? i.pattern = h[0].source : h.length > 1 && (i.allOf = [
|
|
29272
29280
|
...h.map((p) => ({
|
|
@@ -29275,13 +29283,13 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29275
29283
|
}))
|
|
29276
29284
|
]);
|
|
29277
29285
|
}
|
|
29278
|
-
}, rP = (e, t, n, r) => {
|
|
29279
|
-
n.not = {};
|
|
29280
29286
|
}, iP = (e, t, n, r) => {
|
|
29287
|
+
n.not = {};
|
|
29281
29288
|
}, oP = (e, t, n, r) => {
|
|
29289
|
+
}, aP = (e, t, n, r) => {
|
|
29282
29290
|
const i = e._zod.def, o = Dm(i.entries);
|
|
29283
29291
|
o.every((a) => typeof a == "number") && (n.type = "number"), o.every((a) => typeof a == "string") && (n.type = "string"), n.enum = o;
|
|
29284
|
-
},
|
|
29292
|
+
}, sP = (e, t, n, r) => {
|
|
29285
29293
|
const i = e._zod.def, o = [];
|
|
29286
29294
|
for (const a of i.values)
|
|
29287
29295
|
if (a === void 0) {
|
|
@@ -29298,16 +29306,16 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29298
29306
|
n.type = a === null ? "null" : typeof a, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [a] : n.const = a;
|
|
29299
29307
|
} else
|
|
29300
29308
|
o.every((a) => typeof a == "number") && (n.type = "number"), o.every((a) => typeof a == "string") && (n.type = "string"), o.every((a) => typeof a == "boolean") && (n.type = "boolean"), o.every((a) => a === null) && (n.type = "null"), n.enum = o;
|
|
29301
|
-
},
|
|
29309
|
+
}, lP = (e, t, n, r) => {
|
|
29302
29310
|
if (t.unrepresentable === "throw")
|
|
29303
29311
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
29304
|
-
},
|
|
29312
|
+
}, cP = (e, t, n, r) => {
|
|
29305
29313
|
if (t.unrepresentable === "throw")
|
|
29306
29314
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
29307
|
-
},
|
|
29315
|
+
}, uP = (e, t, n, r) => {
|
|
29308
29316
|
const i = n, o = e._zod.def, { minimum: a, maximum: s } = e._zod.bag;
|
|
29309
29317
|
typeof a == "number" && (i.minItems = a), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = jt(o.element, t, { ...r, path: [...r.path, "items"] });
|
|
29310
|
-
},
|
|
29318
|
+
}, fP = (e, t, n, r) => {
|
|
29311
29319
|
const i = n, o = e._zod.def;
|
|
29312
29320
|
i.type = "object", i.properties = {};
|
|
29313
29321
|
const a = o.shape;
|
|
@@ -29324,13 +29332,13 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29324
29332
|
...r,
|
|
29325
29333
|
path: [...r.path, "additionalProperties"]
|
|
29326
29334
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
29327
|
-
},
|
|
29335
|
+
}, dP = (e, t, n, r) => {
|
|
29328
29336
|
const i = e._zod.def, o = i.inclusive === !1, a = i.options.map((s, l) => jt(s, t, {
|
|
29329
29337
|
...r,
|
|
29330
29338
|
path: [...r.path, o ? "oneOf" : "anyOf", l]
|
|
29331
29339
|
}));
|
|
29332
29340
|
o ? n.oneOf = a : n.anyOf = a;
|
|
29333
|
-
},
|
|
29341
|
+
}, hP = (e, t, n, r) => {
|
|
29334
29342
|
const i = e._zod.def, o = jt(i.left, t, {
|
|
29335
29343
|
...r,
|
|
29336
29344
|
path: [...r.path, "allOf", 0]
|
|
@@ -29342,25 +29350,25 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29342
29350
|
...s(a) ? a.allOf : [a]
|
|
29343
29351
|
];
|
|
29344
29352
|
n.allOf = l;
|
|
29345
|
-
},
|
|
29353
|
+
}, pP = (e, t, n, r) => {
|
|
29346
29354
|
const i = e._zod.def, o = jt(i.innerType, t, r), a = t.seen.get(e);
|
|
29347
29355
|
t.target === "openapi-3.0" ? (a.ref = i.innerType, n.nullable = !0) : n.anyOf = [o, { type: "null" }];
|
|
29348
|
-
},
|
|
29356
|
+
}, mP = (e, t, n, r) => {
|
|
29349
29357
|
const i = e._zod.def;
|
|
29350
29358
|
jt(i.innerType, t, r);
|
|
29351
29359
|
const o = t.seen.get(e);
|
|
29352
29360
|
o.ref = i.innerType;
|
|
29353
|
-
},
|
|
29361
|
+
}, gP = (e, t, n, r) => {
|
|
29354
29362
|
const i = e._zod.def;
|
|
29355
29363
|
jt(i.innerType, t, r);
|
|
29356
29364
|
const o = t.seen.get(e);
|
|
29357
29365
|
o.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
29358
|
-
},
|
|
29366
|
+
}, vP = (e, t, n, r) => {
|
|
29359
29367
|
const i = e._zod.def;
|
|
29360
29368
|
jt(i.innerType, t, r);
|
|
29361
29369
|
const o = t.seen.get(e);
|
|
29362
29370
|
o.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
29363
|
-
},
|
|
29371
|
+
}, bP = (e, t, n, r) => {
|
|
29364
29372
|
const i = e._zod.def;
|
|
29365
29373
|
jt(i.innerType, t, r);
|
|
29366
29374
|
const o = t.seen.get(e);
|
|
@@ -29372,12 +29380,12 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29372
29380
|
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
29373
29381
|
}
|
|
29374
29382
|
n.default = a;
|
|
29375
|
-
},
|
|
29383
|
+
}, yP = (e, t, n, r) => {
|
|
29376
29384
|
const i = e._zod.def, o = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
|
|
29377
29385
|
jt(o, t, r);
|
|
29378
29386
|
const a = t.seen.get(e);
|
|
29379
29387
|
a.ref = o;
|
|
29380
|
-
},
|
|
29388
|
+
}, wP = (e, t, n, r) => {
|
|
29381
29389
|
const i = e._zod.def;
|
|
29382
29390
|
jt(i.innerType, t, r);
|
|
29383
29391
|
const o = t.seen.get(e);
|
|
@@ -29387,38 +29395,38 @@ const eP = (e, t = {}) => (n) => {
|
|
|
29387
29395
|
jt(i.innerType, t, r);
|
|
29388
29396
|
const o = t.seen.get(e);
|
|
29389
29397
|
o.ref = i.innerType;
|
|
29390
|
-
},
|
|
29391
|
-
T2.init(e, t), yt.init(e, t);
|
|
29392
|
-
});
|
|
29393
|
-
function xP(e) {
|
|
29394
|
-
return /* @__PURE__ */ NT(wP, e);
|
|
29395
|
-
}
|
|
29396
|
-
const kP = /* @__PURE__ */ se("ZodISODate", (e, t) => {
|
|
29398
|
+
}, xP = /* @__PURE__ */ se("ZodISODateTime", (e, t) => {
|
|
29397
29399
|
P2.init(e, t), yt.init(e, t);
|
|
29398
29400
|
});
|
|
29399
|
-
function
|
|
29400
|
-
return /* @__PURE__ */ LT(
|
|
29401
|
+
function kP(e) {
|
|
29402
|
+
return /* @__PURE__ */ LT(xP, e);
|
|
29401
29403
|
}
|
|
29402
|
-
const
|
|
29404
|
+
const _P = /* @__PURE__ */ se("ZodISODate", (e, t) => {
|
|
29403
29405
|
O2.init(e, t), yt.init(e, t);
|
|
29404
29406
|
});
|
|
29405
|
-
function
|
|
29406
|
-
return /* @__PURE__ */ DT(
|
|
29407
|
+
function SP(e) {
|
|
29408
|
+
return /* @__PURE__ */ DT(_P, e);
|
|
29407
29409
|
}
|
|
29408
|
-
const
|
|
29410
|
+
const CP = /* @__PURE__ */ se("ZodISOTime", (e, t) => {
|
|
29409
29411
|
N2.init(e, t), yt.init(e, t);
|
|
29410
29412
|
});
|
|
29411
|
-
function
|
|
29412
|
-
return /* @__PURE__ */ MT(
|
|
29413
|
+
function EP(e) {
|
|
29414
|
+
return /* @__PURE__ */ MT(CP, e);
|
|
29413
29415
|
}
|
|
29414
|
-
const
|
|
29416
|
+
const AP = /* @__PURE__ */ se("ZodISODuration", (e, t) => {
|
|
29417
|
+
L2.init(e, t), yt.init(e, t);
|
|
29418
|
+
});
|
|
29419
|
+
function IP(e) {
|
|
29420
|
+
return /* @__PURE__ */ zT(AP, e);
|
|
29421
|
+
}
|
|
29422
|
+
const RP = (e, t) => {
|
|
29415
29423
|
$m.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
29416
29424
|
format: {
|
|
29417
|
-
value: (n) =>
|
|
29425
|
+
value: (n) => IR(e, n)
|
|
29418
29426
|
// enumerable: false,
|
|
29419
29427
|
},
|
|
29420
29428
|
flatten: {
|
|
29421
|
-
value: (n) =>
|
|
29429
|
+
value: (n) => AR(e, n)
|
|
29422
29430
|
// enumerable: false,
|
|
29423
29431
|
},
|
|
29424
29432
|
addIssue: {
|
|
@@ -29440,21 +29448,21 @@ const IP = (e, t) => {
|
|
|
29440
29448
|
// enumerable: false,
|
|
29441
29449
|
}
|
|
29442
29450
|
});
|
|
29443
|
-
}, yn = se("ZodError",
|
|
29451
|
+
}, yn = se("ZodError", RP, {
|
|
29444
29452
|
Parent: Error
|
|
29445
|
-
}),
|
|
29453
|
+
}), TP = /* @__PURE__ */ Wl(yn), PP = /* @__PURE__ */ ql(yn), OP = /* @__PURE__ */ sa(yn), NP = /* @__PURE__ */ la(yn), LP = /* @__PURE__ */ PR(yn), DP = /* @__PURE__ */ OR(yn), MP = /* @__PURE__ */ NR(yn), zP = /* @__PURE__ */ LR(yn), FP = /* @__PURE__ */ DR(yn), jP = /* @__PURE__ */ MR(yn), $P = /* @__PURE__ */ zR(yn), UP = /* @__PURE__ */ FR(yn), Et = /* @__PURE__ */ se("ZodType", (e, t) => (Ct.init(e, t), Object.assign(e["~standard"], {
|
|
29446
29454
|
jsonSchema: {
|
|
29447
29455
|
input: qo(e, "input"),
|
|
29448
29456
|
output: qo(e, "output")
|
|
29449
29457
|
}
|
|
29450
|
-
}), e.toJSONSchema =
|
|
29458
|
+
}), e.toJSONSchema = tP(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(nr(t, {
|
|
29451
29459
|
checks: [
|
|
29452
29460
|
...t.checks ?? [],
|
|
29453
29461
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
29454
29462
|
]
|
|
29455
29463
|
}), {
|
|
29456
29464
|
parent: !0
|
|
29457
|
-
}), e.with = e.check, e.clone = (n, r) => rr(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) =>
|
|
29465
|
+
}), e.with = e.check, e.clone = (n, r) => rr(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => TP(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => OP(e, n, r), e.parseAsync = async (n, r) => PP(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => NP(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => LP(e, n, r), e.decode = (n, r) => DP(e, n, r), e.encodeAsync = async (n, r) => MP(e, n, r), e.decodeAsync = async (n, r) => zP(e, n, r), e.safeEncode = (n, r) => FP(e, n, r), e.safeDecode = (n, r) => jP(e, n, r), e.safeEncodeAsync = async (n, r) => $P(e, n, r), e.safeDecodeAsync = async (n, r) => UP(e, n, r), e.refine = (n, r) => e.check(NO(n, r)), e.superRefine = (n) => e.check(LO(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ Xr(n)), e.optional = () => Qf(e), e.exactOptional = () => wO(e), e.nullable = () => ed(e), e.nullish = () => Qf(ed(e)), e.nonoptional = (n) => EO(e, n), e.array = () => uO(e), e.or = (n) => ng([e, n]), e.and = (n) => pO(e, n), e.transform = (n) => td(e, bO(n)), e.default = (n) => _O(e, n), e.prefault = (n) => CO(e, n), e.catch = (n) => IO(e, n), e.pipe = (n) => td(e, n), e.readonly = () => PO(e), e.describe = (n) => {
|
|
29458
29466
|
const r = e.clone();
|
|
29459
29467
|
return yi.add(r, { description: n }), r;
|
|
29460
29468
|
}, Object.defineProperty(e, "description", {
|
|
@@ -29468,75 +29476,75 @@ const IP = (e, t) => {
|
|
|
29468
29476
|
const r = e.clone();
|
|
29469
29477
|
return yi.add(r, n[0]), r;
|
|
29470
29478
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), tg = /* @__PURE__ */ se("_ZodString", (e, t) => {
|
|
29471
|
-
Hl.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) =>
|
|
29479
|
+
Hl.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) => rP(e, r, i);
|
|
29472
29480
|
const n = e._zod.bag;
|
|
29473
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */
|
|
29474
|
-
}),
|
|
29475
|
-
Hl.init(e, t), tg.init(e, t), e.email = (n) => e.check(/* @__PURE__ */
|
|
29481
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ $T(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ VT(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ WT(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ qT(...r)), e.min = (...r) => e.check(/* @__PURE__ */ Wo(...r)), e.max = (...r) => e.check(/* @__PURE__ */ Ym(...r)), e.length = (...r) => e.check(/* @__PURE__ */ Xm(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ Wo(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ UT(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ BT(r)), e.trim = () => e.check(/* @__PURE__ */ ZT()), e.normalize = (...r) => e.check(/* @__PURE__ */ HT(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ GT()), e.toUpperCase = () => e.check(/* @__PURE__ */ YT()), e.slugify = () => e.check(/* @__PURE__ */ XT());
|
|
29482
|
+
}), BP = /* @__PURE__ */ se("ZodString", (e, t) => {
|
|
29483
|
+
Hl.init(e, t), tg.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ hT(VP, n)), e.url = (n) => e.check(/* @__PURE__ */ bT(WP, n)), e.jwt = (n) => e.check(/* @__PURE__ */ NT(oO, n)), e.emoji = (n) => e.check(/* @__PURE__ */ yT(qP, n)), e.guid = (n) => e.check(/* @__PURE__ */ Xf(Kf, n)), e.uuid = (n) => e.check(/* @__PURE__ */ pT(wo, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ mT(wo, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ gT(wo, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ vT(wo, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ wT(HP, n)), e.guid = (n) => e.check(/* @__PURE__ */ Xf(Kf, n)), e.cuid = (n) => e.check(/* @__PURE__ */ xT(ZP, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ kT(GP, n)), e.ulid = (n) => e.check(/* @__PURE__ */ _T(YP, n)), e.base64 = (n) => e.check(/* @__PURE__ */ TT(nO, n)), e.base64url = (n) => e.check(/* @__PURE__ */ PT(rO, n)), e.xid = (n) => e.check(/* @__PURE__ */ ST(XP, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ CT(KP, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ ET(JP, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ AT(QP, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ IT(eO, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ RT(tO, n)), e.e164 = (n) => e.check(/* @__PURE__ */ OT(iO, n)), e.datetime = (n) => e.check(kP(n)), e.date = (n) => e.check(SP(n)), e.time = (n) => e.check(EP(n)), e.duration = (n) => e.check(IP(n));
|
|
29476
29484
|
});
|
|
29477
29485
|
function bt(e) {
|
|
29478
|
-
return /* @__PURE__ */
|
|
29486
|
+
return /* @__PURE__ */ dT(BP, e);
|
|
29479
29487
|
}
|
|
29480
29488
|
const yt = /* @__PURE__ */ se("ZodStringFormat", (e, t) => {
|
|
29481
29489
|
vt.init(e, t), tg.init(e, t);
|
|
29482
|
-
}),
|
|
29483
|
-
|
|
29490
|
+
}), VP = /* @__PURE__ */ se("ZodEmail", (e, t) => {
|
|
29491
|
+
k2.init(e, t), yt.init(e, t);
|
|
29484
29492
|
}), Kf = /* @__PURE__ */ se("ZodGUID", (e, t) => {
|
|
29485
|
-
y2.init(e, t), yt.init(e, t);
|
|
29486
|
-
}), wo = /* @__PURE__ */ se("ZodUUID", (e, t) => {
|
|
29487
29493
|
w2.init(e, t), yt.init(e, t);
|
|
29488
|
-
}),
|
|
29489
|
-
|
|
29490
|
-
}), WP = /* @__PURE__ */ se("
|
|
29494
|
+
}), wo = /* @__PURE__ */ se("ZodUUID", (e, t) => {
|
|
29495
|
+
x2.init(e, t), yt.init(e, t);
|
|
29496
|
+
}), WP = /* @__PURE__ */ se("ZodURL", (e, t) => {
|
|
29491
29497
|
_2.init(e, t), yt.init(e, t);
|
|
29492
|
-
}), qP = /* @__PURE__ */ se("
|
|
29498
|
+
}), qP = /* @__PURE__ */ se("ZodEmoji", (e, t) => {
|
|
29493
29499
|
S2.init(e, t), yt.init(e, t);
|
|
29494
|
-
}), HP = /* @__PURE__ */ se("
|
|
29500
|
+
}), HP = /* @__PURE__ */ se("ZodNanoID", (e, t) => {
|
|
29495
29501
|
C2.init(e, t), yt.init(e, t);
|
|
29496
|
-
}), ZP = /* @__PURE__ */ se("
|
|
29502
|
+
}), ZP = /* @__PURE__ */ se("ZodCUID", (e, t) => {
|
|
29497
29503
|
E2.init(e, t), yt.init(e, t);
|
|
29498
|
-
}), GP = /* @__PURE__ */ se("
|
|
29504
|
+
}), GP = /* @__PURE__ */ se("ZodCUID2", (e, t) => {
|
|
29499
29505
|
A2.init(e, t), yt.init(e, t);
|
|
29500
|
-
}), YP = /* @__PURE__ */ se("
|
|
29506
|
+
}), YP = /* @__PURE__ */ se("ZodULID", (e, t) => {
|
|
29501
29507
|
I2.init(e, t), yt.init(e, t);
|
|
29502
|
-
}), XP = /* @__PURE__ */ se("
|
|
29508
|
+
}), XP = /* @__PURE__ */ se("ZodXID", (e, t) => {
|
|
29503
29509
|
R2.init(e, t), yt.init(e, t);
|
|
29504
|
-
}), KP = /* @__PURE__ */ se("
|
|
29505
|
-
|
|
29506
|
-
}), JP = /* @__PURE__ */ se("
|
|
29510
|
+
}), KP = /* @__PURE__ */ se("ZodKSUID", (e, t) => {
|
|
29511
|
+
T2.init(e, t), yt.init(e, t);
|
|
29512
|
+
}), JP = /* @__PURE__ */ se("ZodIPv4", (e, t) => {
|
|
29507
29513
|
D2.init(e, t), yt.init(e, t);
|
|
29508
|
-
}), QP = /* @__PURE__ */ se("
|
|
29514
|
+
}), QP = /* @__PURE__ */ se("ZodIPv6", (e, t) => {
|
|
29509
29515
|
M2.init(e, t), yt.init(e, t);
|
|
29510
|
-
}), eO = /* @__PURE__ */ se("
|
|
29516
|
+
}), eO = /* @__PURE__ */ se("ZodCIDRv4", (e, t) => {
|
|
29511
29517
|
z2.init(e, t), yt.init(e, t);
|
|
29512
|
-
}), tO = /* @__PURE__ */ se("
|
|
29518
|
+
}), tO = /* @__PURE__ */ se("ZodCIDRv6", (e, t) => {
|
|
29513
29519
|
F2.init(e, t), yt.init(e, t);
|
|
29514
|
-
}), nO = /* @__PURE__ */ se("
|
|
29515
|
-
|
|
29516
|
-
}), rO = /* @__PURE__ */ se("
|
|
29520
|
+
}), nO = /* @__PURE__ */ se("ZodBase64", (e, t) => {
|
|
29521
|
+
j2.init(e, t), yt.init(e, t);
|
|
29522
|
+
}), rO = /* @__PURE__ */ se("ZodBase64URL", (e, t) => {
|
|
29517
29523
|
U2.init(e, t), yt.init(e, t);
|
|
29518
|
-
}), iO = /* @__PURE__ */ se("
|
|
29519
|
-
|
|
29520
|
-
}), oO = /* @__PURE__ */ se("
|
|
29521
|
-
W2.init(e, t),
|
|
29524
|
+
}), iO = /* @__PURE__ */ se("ZodE164", (e, t) => {
|
|
29525
|
+
B2.init(e, t), yt.init(e, t);
|
|
29526
|
+
}), oO = /* @__PURE__ */ se("ZodJWT", (e, t) => {
|
|
29527
|
+
W2.init(e, t), yt.init(e, t);
|
|
29528
|
+
}), aO = /* @__PURE__ */ se("ZodUnknown", (e, t) => {
|
|
29529
|
+
q2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => oP();
|
|
29522
29530
|
});
|
|
29523
29531
|
function Jf() {
|
|
29524
|
-
return /* @__PURE__ */
|
|
29532
|
+
return /* @__PURE__ */ FT(aO);
|
|
29525
29533
|
}
|
|
29526
|
-
const
|
|
29527
|
-
|
|
29534
|
+
const sO = /* @__PURE__ */ se("ZodNever", (e, t) => {
|
|
29535
|
+
H2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => iP(e, n, r);
|
|
29528
29536
|
});
|
|
29529
|
-
function
|
|
29530
|
-
return /* @__PURE__ */
|
|
29537
|
+
function lO(e) {
|
|
29538
|
+
return /* @__PURE__ */ jT(sO, e);
|
|
29531
29539
|
}
|
|
29532
|
-
const
|
|
29533
|
-
|
|
29540
|
+
const cO = /* @__PURE__ */ se("ZodArray", (e, t) => {
|
|
29541
|
+
Z2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => uP(e, n, r, i), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ Wo(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ Wo(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ Ym(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ Xm(n, r)), e.unwrap = () => e.element;
|
|
29534
29542
|
});
|
|
29535
|
-
function
|
|
29536
|
-
return /* @__PURE__ */
|
|
29543
|
+
function uO(e, t) {
|
|
29544
|
+
return /* @__PURE__ */ KT(cO, e, t);
|
|
29537
29545
|
}
|
|
29538
|
-
const
|
|
29539
|
-
|
|
29546
|
+
const fO = /* @__PURE__ */ se("ZodObject", (e, t) => {
|
|
29547
|
+
Y2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => fP(e, n, r, i), ct(e, "shape", () => t.shape), e.keyof = () => mO(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Jf() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Jf() }), e.strict = () => e.clone({ ...e._zod.def, catchall: lO() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => kR(e, n), e.safeExtend = (n) => _R(e, n), e.merge = (n) => SR(e, n), e.pick = (n) => wR(e, n), e.omit = (n) => xR(e, n), e.partial = (...n) => CR(rg, e, n[0]), e.required = (...n) => ER(ig, e, n[0]);
|
|
29540
29548
|
});
|
|
29541
29549
|
function Mt(e, t) {
|
|
29542
29550
|
const n = {
|
|
@@ -29544,30 +29552,30 @@ function Mt(e, t) {
|
|
|
29544
29552
|
shape: e ?? {},
|
|
29545
29553
|
...Oe(t)
|
|
29546
29554
|
};
|
|
29547
|
-
return new
|
|
29555
|
+
return new fO(n);
|
|
29548
29556
|
}
|
|
29549
|
-
const
|
|
29550
|
-
|
|
29557
|
+
const dO = /* @__PURE__ */ se("ZodUnion", (e, t) => {
|
|
29558
|
+
X2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => dP(e, n, r, i), e.options = t.options;
|
|
29551
29559
|
});
|
|
29552
29560
|
function ng(e, t) {
|
|
29553
|
-
return new
|
|
29561
|
+
return new dO({
|
|
29554
29562
|
type: "union",
|
|
29555
29563
|
options: e,
|
|
29556
29564
|
...Oe(t)
|
|
29557
29565
|
});
|
|
29558
29566
|
}
|
|
29559
|
-
const
|
|
29560
|
-
|
|
29567
|
+
const hO = /* @__PURE__ */ se("ZodIntersection", (e, t) => {
|
|
29568
|
+
K2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => hP(e, n, r, i);
|
|
29561
29569
|
});
|
|
29562
|
-
function
|
|
29563
|
-
return new
|
|
29570
|
+
function pO(e, t) {
|
|
29571
|
+
return new hO({
|
|
29564
29572
|
type: "intersection",
|
|
29565
29573
|
left: e,
|
|
29566
29574
|
right: t
|
|
29567
29575
|
});
|
|
29568
29576
|
}
|
|
29569
29577
|
const $s = /* @__PURE__ */ se("ZodEnum", (e, t) => {
|
|
29570
|
-
|
|
29578
|
+
J2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (r, i, o) => aP(e, r, i), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
29571
29579
|
const n = new Set(Object.keys(t.entries));
|
|
29572
29580
|
e.extract = (r, i) => {
|
|
29573
29581
|
const o = {};
|
|
@@ -29597,7 +29605,7 @@ const $s = /* @__PURE__ */ se("ZodEnum", (e, t) => {
|
|
|
29597
29605
|
});
|
|
29598
29606
|
};
|
|
29599
29607
|
});
|
|
29600
|
-
function
|
|
29608
|
+
function mO(e, t) {
|
|
29601
29609
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
29602
29610
|
return new $s({
|
|
29603
29611
|
type: "enum",
|
|
@@ -29605,8 +29613,8 @@ function pO(e, t) {
|
|
|
29605
29613
|
...Oe(t)
|
|
29606
29614
|
});
|
|
29607
29615
|
}
|
|
29608
|
-
const
|
|
29609
|
-
|
|
29616
|
+
const gO = /* @__PURE__ */ se("ZodLiteral", (e, t) => {
|
|
29617
|
+
Q2.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => sP(e, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", {
|
|
29610
29618
|
get() {
|
|
29611
29619
|
if (t.values.length > 1)
|
|
29612
29620
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -29615,14 +29623,14 @@ const mO = /* @__PURE__ */ se("ZodLiteral", (e, t) => {
|
|
|
29615
29623
|
});
|
|
29616
29624
|
});
|
|
29617
29625
|
function ir(e, t) {
|
|
29618
|
-
return new
|
|
29626
|
+
return new gO({
|
|
29619
29627
|
type: "literal",
|
|
29620
29628
|
values: Array.isArray(e) ? e : [e],
|
|
29621
29629
|
...Oe(t)
|
|
29622
29630
|
});
|
|
29623
29631
|
}
|
|
29624
|
-
const
|
|
29625
|
-
|
|
29632
|
+
const vO = /* @__PURE__ */ se("ZodTransform", (e, t) => {
|
|
29633
|
+
eT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => cP(e, n), e._zod.parse = (n, r) => {
|
|
29626
29634
|
if (r.direction === "backward")
|
|
29627
29635
|
throw new Nm(e.constructor.name);
|
|
29628
29636
|
n.addIssue = (o) => {
|
|
@@ -29637,8 +29645,8 @@ const gO = /* @__PURE__ */ se("ZodTransform", (e, t) => {
|
|
|
29637
29645
|
return i instanceof Promise ? i.then((o) => (n.value = o, n)) : (n.value = i, n);
|
|
29638
29646
|
};
|
|
29639
29647
|
});
|
|
29640
|
-
function
|
|
29641
|
-
return new
|
|
29648
|
+
function bO(e) {
|
|
29649
|
+
return new vO({
|
|
29642
29650
|
type: "transform",
|
|
29643
29651
|
transform: e
|
|
29644
29652
|
});
|
|
@@ -29652,29 +29660,29 @@ function Qf(e) {
|
|
|
29652
29660
|
innerType: e
|
|
29653
29661
|
});
|
|
29654
29662
|
}
|
|
29655
|
-
const
|
|
29656
|
-
|
|
29663
|
+
const yO = /* @__PURE__ */ se("ZodExactOptional", (e, t) => {
|
|
29664
|
+
tT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => eg(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29657
29665
|
});
|
|
29658
|
-
function
|
|
29659
|
-
return new
|
|
29666
|
+
function wO(e) {
|
|
29667
|
+
return new yO({
|
|
29660
29668
|
type: "optional",
|
|
29661
29669
|
innerType: e
|
|
29662
29670
|
});
|
|
29663
29671
|
}
|
|
29664
|
-
const
|
|
29665
|
-
|
|
29672
|
+
const xO = /* @__PURE__ */ se("ZodNullable", (e, t) => {
|
|
29673
|
+
nT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => pP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29666
29674
|
});
|
|
29667
29675
|
function ed(e) {
|
|
29668
|
-
return new
|
|
29676
|
+
return new xO({
|
|
29669
29677
|
type: "nullable",
|
|
29670
29678
|
innerType: e
|
|
29671
29679
|
});
|
|
29672
29680
|
}
|
|
29673
|
-
const
|
|
29674
|
-
|
|
29681
|
+
const kO = /* @__PURE__ */ se("ZodDefault", (e, t) => {
|
|
29682
|
+
rT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => gP(e, n, r, i), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
29675
29683
|
});
|
|
29676
|
-
function
|
|
29677
|
-
return new
|
|
29684
|
+
function _O(e, t) {
|
|
29685
|
+
return new kO({
|
|
29678
29686
|
type: "default",
|
|
29679
29687
|
innerType: e,
|
|
29680
29688
|
get defaultValue() {
|
|
@@ -29682,11 +29690,11 @@ function kO(e, t) {
|
|
|
29682
29690
|
}
|
|
29683
29691
|
});
|
|
29684
29692
|
}
|
|
29685
|
-
const
|
|
29686
|
-
|
|
29693
|
+
const SO = /* @__PURE__ */ se("ZodPrefault", (e, t) => {
|
|
29694
|
+
iT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => vP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29687
29695
|
});
|
|
29688
|
-
function
|
|
29689
|
-
return new
|
|
29696
|
+
function CO(e, t) {
|
|
29697
|
+
return new SO({
|
|
29690
29698
|
type: "prefault",
|
|
29691
29699
|
innerType: e,
|
|
29692
29700
|
get defaultValue() {
|
|
@@ -29695,94 +29703,91 @@ function SO(e, t) {
|
|
|
29695
29703
|
});
|
|
29696
29704
|
}
|
|
29697
29705
|
const ig = /* @__PURE__ */ se("ZodNonOptional", (e, t) => {
|
|
29698
|
-
|
|
29706
|
+
oT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => mP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29699
29707
|
});
|
|
29700
|
-
function
|
|
29708
|
+
function EO(e, t) {
|
|
29701
29709
|
return new ig({
|
|
29702
29710
|
type: "nonoptional",
|
|
29703
29711
|
innerType: e,
|
|
29704
29712
|
...Oe(t)
|
|
29705
29713
|
});
|
|
29706
29714
|
}
|
|
29707
|
-
const
|
|
29708
|
-
|
|
29715
|
+
const AO = /* @__PURE__ */ se("ZodCatch", (e, t) => {
|
|
29716
|
+
aT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => bP(e, n, r, i), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
29709
29717
|
});
|
|
29710
|
-
function
|
|
29711
|
-
return new
|
|
29718
|
+
function IO(e, t) {
|
|
29719
|
+
return new AO({
|
|
29712
29720
|
type: "catch",
|
|
29713
29721
|
innerType: e,
|
|
29714
29722
|
catchValue: typeof t == "function" ? t : () => t
|
|
29715
29723
|
});
|
|
29716
29724
|
}
|
|
29717
|
-
const
|
|
29718
|
-
|
|
29725
|
+
const RO = /* @__PURE__ */ se("ZodPipe", (e, t) => {
|
|
29726
|
+
sT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => yP(e, n, r, i), e.in = t.in, e.out = t.out;
|
|
29719
29727
|
});
|
|
29720
29728
|
function td(e, t) {
|
|
29721
|
-
return new
|
|
29729
|
+
return new RO({
|
|
29722
29730
|
type: "pipe",
|
|
29723
29731
|
in: e,
|
|
29724
29732
|
out: t
|
|
29725
29733
|
// ...util.normalizeParams(params),
|
|
29726
29734
|
});
|
|
29727
29735
|
}
|
|
29728
|
-
const
|
|
29729
|
-
|
|
29736
|
+
const TO = /* @__PURE__ */ se("ZodReadonly", (e, t) => {
|
|
29737
|
+
lT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => wP(e, n, r, i), e.unwrap = () => e._zod.def.innerType;
|
|
29730
29738
|
});
|
|
29731
|
-
function
|
|
29732
|
-
return new
|
|
29739
|
+
function PO(e) {
|
|
29740
|
+
return new TO({
|
|
29733
29741
|
type: "readonly",
|
|
29734
29742
|
innerType: e
|
|
29735
29743
|
});
|
|
29736
29744
|
}
|
|
29737
|
-
const
|
|
29738
|
-
|
|
29745
|
+
const OO = /* @__PURE__ */ se("ZodCustom", (e, t) => {
|
|
29746
|
+
cT.init(e, t), Et.init(e, t), e._zod.processJSONSchema = (n, r, i) => lP(e, n);
|
|
29739
29747
|
});
|
|
29740
|
-
function
|
|
29741
|
-
return /* @__PURE__ */
|
|
29748
|
+
function NO(e, t = {}) {
|
|
29749
|
+
return /* @__PURE__ */ JT(OO, e, t);
|
|
29742
29750
|
}
|
|
29743
|
-
function
|
|
29744
|
-
return /* @__PURE__ */
|
|
29751
|
+
function LO(e) {
|
|
29752
|
+
return /* @__PURE__ */ QT(e);
|
|
29745
29753
|
}
|
|
29746
|
-
const
|
|
29754
|
+
const DO = Mt({
|
|
29747
29755
|
type: ir("utterance"),
|
|
29748
29756
|
content: bt(),
|
|
29749
29757
|
role: bt()
|
|
29750
|
-
}),
|
|
29758
|
+
}), MO = Mt({
|
|
29751
29759
|
type: ir("agent_cognition"),
|
|
29752
29760
|
content: bt()
|
|
29753
|
-
}),
|
|
29761
|
+
}), zO = Mt({
|
|
29754
29762
|
type: ir("chat_closed_expired"),
|
|
29755
29763
|
content: bt()
|
|
29756
|
-
}),
|
|
29764
|
+
}), FO = Mt({
|
|
29757
29765
|
type: ir("agent_captured_url"),
|
|
29758
29766
|
content: bt()
|
|
29759
|
-
}),
|
|
29767
|
+
}), jO = Mt({
|
|
29760
29768
|
type: ir("agent_topic"),
|
|
29761
29769
|
content: bt()
|
|
29762
|
-
}),
|
|
29770
|
+
}), $O = Mt({
|
|
29763
29771
|
type: ir("agent_summary"),
|
|
29764
29772
|
content: bt()
|
|
29765
|
-
}),
|
|
29773
|
+
}), UO = Mt({
|
|
29766
29774
|
type: ir("chat_rating"),
|
|
29767
29775
|
content: bt()
|
|
29768
|
-
}),
|
|
29776
|
+
}), BO = Mt({
|
|
29769
29777
|
type: ir("error"),
|
|
29770
29778
|
code: bt()
|
|
29771
|
-
}), BO = Mt({
|
|
29772
|
-
message_id: bt().nullable(),
|
|
29773
|
-
created_at: bt(),
|
|
29774
|
-
data: LO
|
|
29775
29779
|
}), VO = Mt({
|
|
29780
|
+
message_id: bt().nullable(),
|
|
29776
29781
|
created_at: bt(),
|
|
29777
|
-
data:
|
|
29782
|
+
data: DO
|
|
29778
29783
|
}), WO = Mt({
|
|
29779
29784
|
created_at: bt(),
|
|
29780
|
-
data:
|
|
29785
|
+
data: BO
|
|
29781
29786
|
}), qO = Mt({
|
|
29782
|
-
message_id: bt().nullable(),
|
|
29783
29787
|
created_at: bt(),
|
|
29784
29788
|
data: MO
|
|
29785
29789
|
}), HO = Mt({
|
|
29790
|
+
message_id: bt().nullable(),
|
|
29786
29791
|
created_at: bt(),
|
|
29787
29792
|
data: zO
|
|
29788
29793
|
}), ZO = Mt({
|
|
@@ -29794,15 +29799,18 @@ const LO = Mt({
|
|
|
29794
29799
|
}), YO = Mt({
|
|
29795
29800
|
created_at: bt(),
|
|
29796
29801
|
data: $O
|
|
29797
|
-
}), XO =
|
|
29798
|
-
|
|
29802
|
+
}), XO = Mt({
|
|
29803
|
+
created_at: bt(),
|
|
29804
|
+
data: UO
|
|
29805
|
+
}), KO = ng([
|
|
29799
29806
|
VO,
|
|
29800
29807
|
WO,
|
|
29801
|
-
|
|
29808
|
+
qO,
|
|
29802
29809
|
ZO,
|
|
29803
29810
|
GO,
|
|
29804
|
-
|
|
29805
|
-
|
|
29811
|
+
YO,
|
|
29812
|
+
HO,
|
|
29813
|
+
XO
|
|
29806
29814
|
]);
|
|
29807
29815
|
Mt({
|
|
29808
29816
|
message_id: bt(),
|
|
@@ -29814,8 +29822,8 @@ Mt({
|
|
|
29814
29822
|
content: bt()
|
|
29815
29823
|
})
|
|
29816
29824
|
});
|
|
29817
|
-
const
|
|
29818
|
-
function
|
|
29825
|
+
const JO = 500, QO = 3e4, eN = 6e4;
|
|
29826
|
+
function tN({
|
|
29819
29827
|
chatSettings: e,
|
|
29820
29828
|
chatId: t,
|
|
29821
29829
|
messages: n,
|
|
@@ -29829,7 +29837,7 @@ function eN({
|
|
|
29829
29837
|
onAgentSummary: h,
|
|
29830
29838
|
onRatingRequest: p,
|
|
29831
29839
|
fetchHistory: v,
|
|
29832
|
-
backupPollingInterval: m =
|
|
29840
|
+
backupPollingInterval: m = eN
|
|
29833
29841
|
}) {
|
|
29834
29842
|
const [y, C] = Ue(!1), L = at(/* @__PURE__ */ new Set());
|
|
29835
29843
|
Qe(() => {
|
|
@@ -29873,7 +29881,7 @@ function eN({
|
|
|
29873
29881
|
}, []), we = ft(
|
|
29874
29882
|
async (Ae) => {
|
|
29875
29883
|
N();
|
|
29876
|
-
const $e = ge ? { authMode: "lambda", authToken: ge } : void 0, st = await
|
|
29884
|
+
const $e = ge ? { authMode: "lambda", authToken: ge } : void 0, st = await mR(
|
|
29877
29885
|
`/default/chat/${Ae}`,
|
|
29878
29886
|
$e
|
|
29879
29887
|
);
|
|
@@ -29883,7 +29891,7 @@ function eN({
|
|
|
29883
29891
|
console.warn("Unexpected event type:", At.type);
|
|
29884
29892
|
return;
|
|
29885
29893
|
}
|
|
29886
|
-
const it =
|
|
29894
|
+
const it = KO.safeParse(At.event);
|
|
29887
29895
|
if (!it.success) {
|
|
29888
29896
|
console.error("Invalid conversation response:", it.error);
|
|
29889
29897
|
return;
|
|
@@ -29979,8 +29987,8 @@ function eN({
|
|
|
29979
29987
|
const Ae = j.current;
|
|
29980
29988
|
if (!Ae) return;
|
|
29981
29989
|
const $e = Math.min(
|
|
29982
|
-
|
|
29983
|
-
|
|
29990
|
+
JO * Math.pow(2, M.current),
|
|
29991
|
+
QO
|
|
29984
29992
|
);
|
|
29985
29993
|
M.current += 1, Y.current = setTimeout(async () => {
|
|
29986
29994
|
Y.current = null, ie.current = !0;
|
|
@@ -30024,7 +30032,7 @@ function eN({
|
|
|
30024
30032
|
Ee();
|
|
30025
30033
|
}, [Ee]), { connect: ze, disconnect: Ee, clearProcessedIds: Fe };
|
|
30026
30034
|
}
|
|
30027
|
-
function
|
|
30035
|
+
function nN({
|
|
30028
30036
|
appId: e,
|
|
30029
30037
|
userId: t,
|
|
30030
30038
|
userName: n,
|
|
@@ -30078,7 +30086,7 @@ function tN({
|
|
|
30078
30086
|
}, [u]);
|
|
30079
30087
|
Qe(() => {
|
|
30080
30088
|
}, [te]);
|
|
30081
|
-
const H = ft((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect: T, disconnect: A, clearProcessedIds: F } =
|
|
30089
|
+
const H = ft((W) => K.current ? K.current.getChatHistory(W) : Promise.resolve([]), []), { connect: T, disconnect: A, clearProcessedIds: F } = tN({
|
|
30082
30090
|
chatSettings: s,
|
|
30083
30091
|
chatId: h?.id ?? null,
|
|
30084
30092
|
messages: l,
|
|
@@ -30127,7 +30135,10 @@ function tN({
|
|
|
30127
30135
|
userId: i || t,
|
|
30128
30136
|
deviceId: o,
|
|
30129
30137
|
userName: n,
|
|
30130
|
-
userData: r
|
|
30138
|
+
userData: r,
|
|
30139
|
+
externalMetadata: {
|
|
30140
|
+
searchParams: iE()
|
|
30141
|
+
}
|
|
30131
30142
|
})).chat_id, p({ id: X }), await T(X));
|
|
30132
30143
|
const k = await a.replyToConversation({
|
|
30133
30144
|
text: W.content,
|
|
@@ -30181,7 +30192,7 @@ function tN({
|
|
|
30181
30192
|
onRateChat: D
|
|
30182
30193
|
};
|
|
30183
30194
|
}
|
|
30184
|
-
class
|
|
30195
|
+
class rN {
|
|
30185
30196
|
httpClient;
|
|
30186
30197
|
userId = null;
|
|
30187
30198
|
conversationId = null;
|
|
@@ -30228,7 +30239,8 @@ class nN {
|
|
|
30228
30239
|
user_name: t.userName,
|
|
30229
30240
|
external_id: t.externalId,
|
|
30230
30241
|
user_data: t.userData
|
|
30231
|
-
}
|
|
30242
|
+
},
|
|
30243
|
+
...t.externalMetadata && Object.keys(t.externalMetadata).length > 0 ? { external_metadata: t.externalMetadata } : {}
|
|
30232
30244
|
}), { data: r } = n;
|
|
30233
30245
|
return r;
|
|
30234
30246
|
}
|
|
@@ -30261,7 +30273,7 @@ class nN {
|
|
|
30261
30273
|
}
|
|
30262
30274
|
}
|
|
30263
30275
|
const xo = /* @__PURE__ */ new Map(), ko = /* @__PURE__ */ new Map();
|
|
30264
|
-
function
|
|
30276
|
+
function iN(e, t, n) {
|
|
30265
30277
|
const r = n?.dedupe !== !1, [i, o] = Ue(
|
|
30266
30278
|
() => xo.get(e)
|
|
30267
30279
|
), { publishApiError: a, publishNetworkError: s } = ji(), [l, u] = Ue(void 0), [h, p] = Ue(!1), v = at(!0);
|
|
@@ -30289,7 +30301,7 @@ function rN(e, t, n) {
|
|
|
30289
30301
|
}, [e, r, t, a, s]);
|
|
30290
30302
|
return { data: i, error: l, isLoading: h, fetch: m };
|
|
30291
30303
|
}
|
|
30292
|
-
function
|
|
30304
|
+
function oN(e) {
|
|
30293
30305
|
const { appId: t, initialUserId: n } = e, { getSavedChatData: r } = Rl({ appId: t }), [i, o] = Ue(!1), [a, s] = Ue(""), [l, u] = Ue(""), [h, p] = Ue(null);
|
|
30294
30306
|
return Qe(() => {
|
|
30295
30307
|
const v = r();
|
|
@@ -30301,7 +30313,7 @@ function iN(e) {
|
|
|
30301
30313
|
externalId: h
|
|
30302
30314
|
};
|
|
30303
30315
|
}
|
|
30304
|
-
function
|
|
30316
|
+
function aN({
|
|
30305
30317
|
apiUrl: e,
|
|
30306
30318
|
appId: t,
|
|
30307
30319
|
initialUserId: n,
|
|
@@ -30313,14 +30325,14 @@ function oN({
|
|
|
30313
30325
|
externalId: a,
|
|
30314
30326
|
deviceId: s,
|
|
30315
30327
|
isReady: l
|
|
30316
|
-
} =
|
|
30328
|
+
} = oN({ appId: t, initialUserId: n }), { isChatExpired: u, clearChatData: h, getSavedChatData: p } = Rl({
|
|
30317
30329
|
appId: t
|
|
30318
30330
|
}), { current: v } = at(e || Nw()), [m] = Ue(
|
|
30319
|
-
new
|
|
30331
|
+
new rN({
|
|
30320
30332
|
baseURL: v,
|
|
30321
30333
|
appId: t
|
|
30322
30334
|
})
|
|
30323
|
-
), [y, C] = Ue(null), [L, R] = Ue(null), [j, M] = Ue([]), [Y, K] = Ue(!1), ie =
|
|
30335
|
+
), [y, C] = Ue(null), [L, R] = Ue(null), [j, M] = Ue([]), [Y, K] = Ue(!1), ie = iN(`sdk-boot-${t}`, () => m.boot()).fetch;
|
|
30324
30336
|
return Qe(() => {
|
|
30325
30337
|
if (u())
|
|
30326
30338
|
h();
|
|
@@ -30374,7 +30386,7 @@ function oN({
|
|
|
30374
30386
|
isReady: Y
|
|
30375
30387
|
};
|
|
30376
30388
|
}
|
|
30377
|
-
function
|
|
30389
|
+
function sN(e) {
|
|
30378
30390
|
const [t, n] = Ue(!1), [r, i] = Ue(
|
|
30379
30391
|
null
|
|
30380
30392
|
), o = e ?? t, a = typeof window > "u";
|
|
@@ -30396,7 +30408,7 @@ function aN(e) {
|
|
|
30396
30408
|
portalContainer: r
|
|
30397
30409
|
};
|
|
30398
30410
|
}
|
|
30399
|
-
function
|
|
30411
|
+
function lN({
|
|
30400
30412
|
environment: e,
|
|
30401
30413
|
apiUrl: t,
|
|
30402
30414
|
appId: n,
|
|
@@ -30408,7 +30420,7 @@ function sN({
|
|
|
30408
30420
|
initialOpen: l = !1,
|
|
30409
30421
|
proactiveMessageHideDelay: u = 5e3
|
|
30410
30422
|
}) {
|
|
30411
|
-
const { isMobile: h, portalContainer: p } =
|
|
30423
|
+
const { isMobile: h, portalContainer: p } = sN(s), {
|
|
30412
30424
|
userId: v,
|
|
30413
30425
|
externalId: m,
|
|
30414
30426
|
deviceId: y,
|
|
@@ -30417,7 +30429,7 @@ function sN({
|
|
|
30417
30429
|
currentChat: R,
|
|
30418
30430
|
messages: j,
|
|
30419
30431
|
isReady: M
|
|
30420
|
-
} =
|
|
30432
|
+
} = aN({
|
|
30421
30433
|
apiUrl: t,
|
|
30422
30434
|
appId: n,
|
|
30423
30435
|
initialUserId: r,
|
|
@@ -30431,7 +30443,7 @@ function sN({
|
|
|
30431
30443
|
text: "",
|
|
30432
30444
|
isVisible: !1,
|
|
30433
30445
|
autoHideDelay: u
|
|
30434
|
-
}), { onSendMessage: J, onCleanMessages: le, onRateChat: X } =
|
|
30446
|
+
}), { onSendMessage: J, onCleanMessages: le, onRateChat: X } = nN({
|
|
30435
30447
|
appId: n,
|
|
30436
30448
|
userId: v,
|
|
30437
30449
|
userName: i,
|
|
@@ -30505,7 +30517,7 @@ function sN({
|
|
|
30505
30517
|
onRateChat: X
|
|
30506
30518
|
};
|
|
30507
30519
|
}
|
|
30508
|
-
function
|
|
30520
|
+
function cN() {
|
|
30509
30521
|
const [e, t] = Ue(!1), [n, r] = Ue(null), i = at(null), o = at(null), a = ft((l = "...") => {
|
|
30510
30522
|
const u = () => {
|
|
30511
30523
|
r(l), t(!0), o.current = null, i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
@@ -30523,13 +30535,13 @@ function lN() {
|
|
|
30523
30535
|
hideCognition: s
|
|
30524
30536
|
};
|
|
30525
30537
|
}
|
|
30526
|
-
function
|
|
30538
|
+
function uN({
|
|
30527
30539
|
children: e
|
|
30528
30540
|
}) {
|
|
30529
|
-
const t =
|
|
30541
|
+
const t = cN();
|
|
30530
30542
|
return /* @__PURE__ */ O(Dp.Provider, { value: t, children: e });
|
|
30531
30543
|
}
|
|
30532
|
-
const
|
|
30544
|
+
const fN = ({
|
|
30533
30545
|
children: e
|
|
30534
30546
|
}) => {
|
|
30535
30547
|
const [t, n] = Ue(null), [r, i] = Ue(!1), o = IC(n), u = {
|
|
@@ -30541,8 +30553,8 @@ const uN = ({
|
|
|
30541
30553
|
clearError: () => n(null)
|
|
30542
30554
|
};
|
|
30543
30555
|
return /* @__PURE__ */ O(jp.Provider, { value: u, children: e });
|
|
30544
|
-
},
|
|
30545
|
-
function
|
|
30556
|
+
}, dN = 100;
|
|
30557
|
+
function hN({
|
|
30546
30558
|
appId: e,
|
|
30547
30559
|
userId: t,
|
|
30548
30560
|
userName: n,
|
|
@@ -30577,7 +30589,7 @@ function dN({
|
|
|
30577
30589
|
isChatClosed: I,
|
|
30578
30590
|
onStartNewChat: D,
|
|
30579
30591
|
onRateChat: W
|
|
30580
|
-
} =
|
|
30592
|
+
} = lN({
|
|
30581
30593
|
environment: C,
|
|
30582
30594
|
apiUrl: L,
|
|
30583
30595
|
appId: e,
|
|
@@ -30629,7 +30641,7 @@ function dN({
|
|
|
30629
30641
|
// 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
|
|
30630
30642
|
"--chat-mobile-viewport-height": "100dvh",
|
|
30631
30643
|
height: M ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
|
|
30632
|
-
maxHeight: M ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${
|
|
30644
|
+
maxHeight: M ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${dN}px)`,
|
|
30633
30645
|
border: "none",
|
|
30634
30646
|
zIndex: 2147483e3,
|
|
30635
30647
|
position: "fixed",
|
|
@@ -30724,20 +30736,20 @@ function dN({
|
|
|
30724
30736
|
);
|
|
30725
30737
|
return /* @__PURE__ */ O(kn, { children: v ? J() : te ? /* @__PURE__ */ O(eE, { container: te, children: J() }) : null });
|
|
30726
30738
|
}
|
|
30727
|
-
function
|
|
30728
|
-
return /* @__PURE__ */ O(
|
|
30739
|
+
function pN(e) {
|
|
30740
|
+
return /* @__PURE__ */ O(fN, { children: /* @__PURE__ */ O(uN, { children: /* @__PURE__ */ O(hN, { ...e }) }) });
|
|
30729
30741
|
}
|
|
30730
|
-
function
|
|
30742
|
+
function wN(e, t) {
|
|
30731
30743
|
return ((r, i, o) => {
|
|
30732
30744
|
const a = Vg.createRoot(i);
|
|
30733
30745
|
return a.render(/* @__PURE__ */ O(r, { ...o })), a.unmount;
|
|
30734
|
-
})(
|
|
30746
|
+
})(pN, e, t);
|
|
30735
30747
|
}
|
|
30736
30748
|
export {
|
|
30737
|
-
|
|
30749
|
+
pN as C,
|
|
30738
30750
|
QC as a,
|
|
30739
30751
|
Sh as g,
|
|
30740
|
-
|
|
30741
|
-
|
|
30752
|
+
wN as r,
|
|
30753
|
+
tN as u
|
|
30742
30754
|
};
|
|
30743
|
-
//# sourceMappingURL=index-
|
|
30755
|
+
//# sourceMappingURL=index-DGqJFU3a.js.map
|