authhero 0.265.1 → 0.267.0
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/authhero.cjs +13 -13
- package/dist/authhero.mjs +364 -340
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/authhero.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as o, OpenAPIHono as W, createRoute as
|
|
1
|
+
import { z as o, OpenAPIHono as W, createRoute as x } from "@hono/zod-openapi";
|
|
2
2
|
const Q = (t) => typeof t == "string", bi = () => {
|
|
3
3
|
let t, e;
|
|
4
4
|
const n = new Promise((r, i) => {
|
|
@@ -354,7 +354,7 @@ class Cs extends ba {
|
|
|
354
354
|
} : c;
|
|
355
355
|
const _ = this.resolve(e, i);
|
|
356
356
|
let w = _?.res;
|
|
357
|
-
const
|
|
357
|
+
const k = _?.usedKey || c, A = _?.exactUsedKey || c, j = ["[object Number]", "[object Function]", "[object RegExp]"], N = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, I = i.count !== void 0 && !Q(i.count), U = Cs.hasDefaultValue(i), J = I ? this.pluralResolver.getSuffix(f, i.count, i) : "", V = i.ordinal && I ? this.pluralResolver.getSuffix(f, i.count, {
|
|
358
358
|
ordinal: !1
|
|
359
359
|
}) : "", ee = I && !i.ordinal && i.count === 0, X = ee && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${J}`] || i[`defaultValue${V}`] || i.defaultValue;
|
|
360
360
|
let ue = w;
|
|
@@ -363,14 +363,14 @@ class Cs extends ba {
|
|
|
363
363
|
if (O && ue && fe && j.indexOf(he) < 0 && !(Q(N) && Array.isArray(ue))) {
|
|
364
364
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
365
365
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
366
|
-
const xe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
366
|
+
const xe = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(k, ue, {
|
|
367
367
|
...i,
|
|
368
368
|
ns: l
|
|
369
369
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
370
370
|
return s ? (_.res = xe, _.usedParams = this.getUsedParamsDetails(i), _) : xe;
|
|
371
371
|
}
|
|
372
372
|
if (a) {
|
|
373
|
-
const xe = Array.isArray(ue), be = xe ? [] : {}, Lt = xe ? A :
|
|
373
|
+
const xe = Array.isArray(ue), be = xe ? [] : {}, Lt = xe ? A : k;
|
|
374
374
|
for (const Ge in ue)
|
|
375
375
|
if (Object.prototype.hasOwnProperty.call(ue, Ge)) {
|
|
376
376
|
const rt = `${Lt}${a}${Ge}`;
|
|
@@ -471,9 +471,9 @@ class Cs extends ba {
|
|
|
471
471
|
i = p;
|
|
472
472
|
let f = d.namespaces;
|
|
473
473
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
474
|
-
const g = n.count !== void 0 && !Q(n.count), _ = g && !n.ordinal && n.count === 0, w = n.context !== void 0 && (Q(n.context) || typeof n.context == "number") && n.context !== "",
|
|
474
|
+
const g = n.count !== void 0 && !Q(n.count), _ = g && !n.ordinal && n.count === 0, w = n.context !== void 0 && (Q(n.context) || typeof n.context == "number") && n.context !== "", k = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
475
475
|
f.forEach((A) => {
|
|
476
|
-
this.isValidLookup(r) || (c = A, !Kp[`${
|
|
476
|
+
this.isValidLookup(r) || (c = A, !Kp[`${k[0]}-${A}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(c) && (Kp[`${k[0]}-${A}`] = !0, this.logger.warn(`key "${i}" for languages "${k.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((j) => {
|
|
477
477
|
if (this.isValidLookup(r)) return;
|
|
478
478
|
a = j;
|
|
479
479
|
const N = [p];
|
|
@@ -680,12 +680,12 @@ class P1 {
|
|
|
680
680
|
nestingPrefix: g,
|
|
681
681
|
nestingPrefixEscaped: _,
|
|
682
682
|
nestingSuffix: w,
|
|
683
|
-
nestingSuffixEscaped:
|
|
683
|
+
nestingSuffixEscaped: k,
|
|
684
684
|
nestingOptionsSeparator: A,
|
|
685
685
|
maxReplaces: j,
|
|
686
686
|
alwaysFormat: N
|
|
687
687
|
} = e.interpolation;
|
|
688
|
-
this.escape = n !== void 0 ? n : S1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? wr(s) : a || "{{", this.suffix = c ? wr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? wr(g) : _ || wr("$t("), this.nestingSuffix = w ? wr(w) :
|
|
688
|
+
this.escape = n !== void 0 ? n : S1, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? wr(s) : a || "{{", this.suffix = c ? wr(c) : l || "}}", this.formatSeparator = d || ",", this.unescapePrefix = p ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = g ? wr(g) : _ || wr("$t("), this.nestingSuffix = w ? wr(w) : k || wr(")"), this.nestingOptionsSeparator = A || ",", this.maxReplaces = j || 1e3, this.alwaysFormat = N !== void 0 ? N : !1, this.resetRegExp();
|
|
689
689
|
}
|
|
690
690
|
reset() {
|
|
691
691
|
this.options && this.init(this.options);
|
|
@@ -705,11 +705,11 @@ class P1 {
|
|
|
705
705
|
interpolationkey: _
|
|
706
706
|
}) : j;
|
|
707
707
|
}
|
|
708
|
-
const w = _.split(this.formatSeparator),
|
|
709
|
-
return this.format(Xp(n, l,
|
|
708
|
+
const w = _.split(this.formatSeparator), k = w.shift().trim(), A = w.join(this.formatSeparator).trim();
|
|
709
|
+
return this.format(Xp(n, l, k, this.options.keySeparator, this.options.ignoreJSONStructure), A, r, {
|
|
710
710
|
...i,
|
|
711
711
|
...n,
|
|
712
|
-
interpolationkey:
|
|
712
|
+
interpolationkey: k
|
|
713
713
|
});
|
|
714
714
|
};
|
|
715
715
|
this.resetRegExp();
|
|
@@ -735,8 +735,8 @@ class P1 {
|
|
|
735
735
|
} else
|
|
736
736
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), a = "";
|
|
737
737
|
else !Q(a) && !this.useRawValueToEscape && (a = zp(a));
|
|
738
|
-
const
|
|
739
|
-
if (e = e.replace(s[0],
|
|
738
|
+
const k = _.safeValue(a);
|
|
739
|
+
if (e = e.replace(s[0], k), f ? (_.regex.lastIndex += a.length, _.regex.lastIndex -= s[0].length) : _.regex.lastIndex = 0, c++, c >= this.maxReplaces)
|
|
740
740
|
break;
|
|
741
741
|
}
|
|
742
742
|
}), e;
|
|
@@ -756,8 +756,8 @@ class P1 {
|
|
|
756
756
|
...d,
|
|
757
757
|
...a
|
|
758
758
|
});
|
|
759
|
-
} catch (
|
|
760
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`,
|
|
759
|
+
} catch (k) {
|
|
760
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, k), `${l}${p}${g}`;
|
|
761
761
|
}
|
|
762
762
|
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, l;
|
|
763
763
|
};
|
|
@@ -3055,7 +3055,7 @@ function Al(t, e) {
|
|
|
3055
3055
|
return r(n, e);
|
|
3056
3056
|
}
|
|
3057
3057
|
const qw = new W().openapi(
|
|
3058
|
-
|
|
3058
|
+
x({
|
|
3059
3059
|
tags: ["branding"],
|
|
3060
3060
|
method: "get",
|
|
3061
3061
|
path: "/default",
|
|
@@ -3085,7 +3085,7 @@ const qw = new W().openapi(
|
|
|
3085
3085
|
return e ? t.json(e) : t.json(rf);
|
|
3086
3086
|
}
|
|
3087
3087
|
).openapi(
|
|
3088
|
-
|
|
3088
|
+
x({
|
|
3089
3089
|
tags: ["branding"],
|
|
3090
3090
|
method: "patch",
|
|
3091
3091
|
path: "/default",
|
|
@@ -3158,7 +3158,7 @@ const qw = new W().openapi(
|
|
|
3158
3158
|
url: "https://assets.sesamy.com/fonts/khteka/WOFF2/KHTeka-Regular.woff2"
|
|
3159
3159
|
}
|
|
3160
3160
|
}, Hw = new W().openapi(
|
|
3161
|
-
|
|
3161
|
+
x({
|
|
3162
3162
|
tags: ["branding"],
|
|
3163
3163
|
method: "get",
|
|
3164
3164
|
path: "/",
|
|
@@ -3188,7 +3188,7 @@ const qw = new W().openapi(
|
|
|
3188
3188
|
return e ? t.json(e) : t.json(Fw);
|
|
3189
3189
|
}
|
|
3190
3190
|
).openapi(
|
|
3191
|
-
|
|
3191
|
+
x({
|
|
3192
3192
|
tags: ["branding"],
|
|
3193
3193
|
method: "patch",
|
|
3194
3194
|
path: "/",
|
|
@@ -4661,13 +4661,13 @@ function cf(t, e, n, r, i) {
|
|
|
4661
4661
|
else {
|
|
4662
4662
|
for (p = 0; p < 64; p++)
|
|
4663
4663
|
for (f = 0; f < a >> 1; f++) co(s, f << 1, l, d);
|
|
4664
|
-
var
|
|
4664
|
+
var k = [];
|
|
4665
4665
|
for (p = 0; p < a; p++)
|
|
4666
|
-
|
|
4666
|
+
k.push((s[p] >> 24 & 255) >>> 0), k.push((s[p] >> 16 & 255) >>> 0), k.push((s[p] >> 8 & 255) >>> 0), k.push((s[p] & 255) >>> 0);
|
|
4667
4667
|
if (r) {
|
|
4668
|
-
r(null,
|
|
4668
|
+
r(null, k);
|
|
4669
4669
|
return;
|
|
4670
|
-
} else return
|
|
4670
|
+
} else return k;
|
|
4671
4671
|
}
|
|
4672
4672
|
r && xt(g);
|
|
4673
4673
|
}
|
|
@@ -4707,8 +4707,8 @@ function Cl(t, e, n, r) {
|
|
|
4707
4707
|
t += s >= "a" ? "\0" : "";
|
|
4708
4708
|
var f = Qw(t), g = B0(p, ao);
|
|
4709
4709
|
function _(w) {
|
|
4710
|
-
var
|
|
4711
|
-
return
|
|
4710
|
+
var k = [];
|
|
4711
|
+
return k.push("$2"), s >= "a" && k.push(s), k.push("$"), d < 10 && k.push("0"), k.push(d.toString()), k.push("$"), k.push(js(g, g.length)), k.push(js(w, L0.length * 4 - 1)), k.join("");
|
|
4712
4712
|
}
|
|
4713
4713
|
if (typeof n > "u")
|
|
4714
4714
|
return _(cf(f, g, d));
|
|
@@ -4716,8 +4716,8 @@ function Cl(t, e, n, r) {
|
|
|
4716
4716
|
f,
|
|
4717
4717
|
g,
|
|
4718
4718
|
d,
|
|
4719
|
-
function(w,
|
|
4720
|
-
w ? n(w, null) : n(null, _(
|
|
4719
|
+
function(w, k) {
|
|
4720
|
+
w ? n(w, null) : n(null, _(k));
|
|
4721
4721
|
},
|
|
4722
4722
|
r
|
|
4723
4723
|
);
|
|
@@ -5612,9 +5612,9 @@ function H0(t, e, n, r) {
|
|
|
5612
5612
|
i += r + `<!--${c[l][0][e.textNodeName]}-->`, s = !0;
|
|
5613
5613
|
continue;
|
|
5614
5614
|
} else if (l[0] === "?") {
|
|
5615
|
-
const w = pf(c[":@"], e),
|
|
5615
|
+
const w = pf(c[":@"], e), k = l === "?xml" ? "" : r;
|
|
5616
5616
|
let A = c[l][0][e.textNodeName];
|
|
5617
|
-
A = A.length !== 0 ? " " + A : "", i +=
|
|
5617
|
+
A = A.length !== 0 ? " " + A : "", i += k + `<${l}${A}${w}?>`, s = !0;
|
|
5618
5618
|
continue;
|
|
5619
5619
|
}
|
|
5620
5620
|
let p = r;
|
|
@@ -6388,30 +6388,30 @@ async function ev(t, e) {
|
|
|
6388
6388
|
);
|
|
6389
6389
|
if (!_)
|
|
6390
6390
|
return { scopes: a, permissions: [] };
|
|
6391
|
-
const w = _.scope || [],
|
|
6391
|
+
const w = _.scope || [], k = (d.scopes || []).map(
|
|
6392
6392
|
(N) => N.value
|
|
6393
6393
|
);
|
|
6394
6394
|
if (!p) {
|
|
6395
6395
|
let N;
|
|
6396
6396
|
return s.length === 0 ? N = w.filter(
|
|
6397
|
-
(I) =>
|
|
6397
|
+
(I) => k.includes(I)
|
|
6398
6398
|
) : N = s.filter(
|
|
6399
|
-
(I) =>
|
|
6399
|
+
(I) => k.includes(I) && w.includes(I)
|
|
6400
6400
|
), { scopes: [
|
|
6401
6401
|
.../* @__PURE__ */ new Set([...a, ...N])
|
|
6402
6402
|
], permissions: [] };
|
|
6403
6403
|
}
|
|
6404
6404
|
if (f === "access_token_authz") {
|
|
6405
6405
|
const N = w.filter(
|
|
6406
|
-
(O) =>
|
|
6406
|
+
(O) => k.includes(O)
|
|
6407
6407
|
);
|
|
6408
6408
|
return { scopes: a, permissions: N };
|
|
6409
6409
|
}
|
|
6410
6410
|
let A;
|
|
6411
6411
|
return s.length === 0 ? A = w.filter(
|
|
6412
|
-
(N) =>
|
|
6412
|
+
(N) => k.includes(N)
|
|
6413
6413
|
) : A = s.filter(
|
|
6414
|
-
(N) =>
|
|
6414
|
+
(N) => k.includes(N) && w.includes(N)
|
|
6415
6415
|
), { scopes: [
|
|
6416
6416
|
.../* @__PURE__ */ new Set([...a, ...A])
|
|
6417
6417
|
], permissions: [] };
|
|
@@ -6463,7 +6463,7 @@ async function Ps(t, e) {
|
|
|
6463
6463
|
void 0,
|
|
6464
6464
|
a
|
|
6465
6465
|
// Pass organizationId to get scoped permissions
|
|
6466
|
-
),
|
|
6466
|
+
), k = await t.env.data.userRoles.list(
|
|
6467
6467
|
n,
|
|
6468
6468
|
r,
|
|
6469
6469
|
void 0,
|
|
@@ -6473,7 +6473,7 @@ async function Ps(t, e) {
|
|
|
6473
6473
|
r,
|
|
6474
6474
|
void 0,
|
|
6475
6475
|
a
|
|
6476
|
-
) : [], j = [...
|
|
6476
|
+
) : [], j = [...k, ...A], N = [];
|
|
6477
6477
|
for (const V of j)
|
|
6478
6478
|
(await t.env.data.rolePermissions.list(
|
|
6479
6479
|
n,
|
|
@@ -6530,7 +6530,7 @@ async function Aa(t, e) {
|
|
|
6530
6530
|
// RFC 8693 act claim for impersonation
|
|
6531
6531
|
org_id: a ? a.id : void 0,
|
|
6532
6532
|
permissions: c
|
|
6533
|
-
},
|
|
6533
|
+
}, k = r && n.scope?.split(" ").includes("openid") ? {
|
|
6534
6534
|
// The audience for an id token is the client id
|
|
6535
6535
|
aud: n.client_id,
|
|
6536
6536
|
sub: r.user_id,
|
|
@@ -6575,7 +6575,7 @@ async function Aa(t, e) {
|
|
|
6575
6575
|
setCustomClaim: (O, I) => {
|
|
6576
6576
|
if (hf.includes(O))
|
|
6577
6577
|
throw new Error(`Cannot overwrite reserved claim '${O}'`);
|
|
6578
|
-
|
|
6578
|
+
k && (k[O] = I);
|
|
6579
6579
|
}
|
|
6580
6580
|
},
|
|
6581
6581
|
access: {
|
|
@@ -6608,7 +6608,7 @@ async function Aa(t, e) {
|
|
|
6608
6608
|
g,
|
|
6609
6609
|
w,
|
|
6610
6610
|
A
|
|
6611
|
-
), N =
|
|
6611
|
+
), N = k ? await df("RS256", g, k, A) : void 0;
|
|
6612
6612
|
return {
|
|
6613
6613
|
access_token: j,
|
|
6614
6614
|
refresh_token: e.refresh_token,
|
|
@@ -6706,7 +6706,27 @@ async function Kt(t, e) {
|
|
|
6706
6706
|
throw new D(500, {
|
|
6707
6707
|
message: "Login session not found for ticket auth."
|
|
6708
6708
|
});
|
|
6709
|
-
|
|
6709
|
+
s && !e.skipHooks && (e.authStrategy && s.app_metadata?.strategy !== e.authStrategy.strategy && (s.app_metadata = {
|
|
6710
|
+
...s.app_metadata,
|
|
6711
|
+
strategy: e.authStrategy.strategy
|
|
6712
|
+
}, await t.env.data.users.update(r.tenant.id, s.user_id, {
|
|
6713
|
+
app_metadata: {
|
|
6714
|
+
...s.app_metadata || {},
|
|
6715
|
+
strategy: e.authStrategy.strategy
|
|
6716
|
+
}
|
|
6717
|
+
})), await em(
|
|
6718
|
+
t,
|
|
6719
|
+
t.env.data,
|
|
6720
|
+
r.tenant.id,
|
|
6721
|
+
s,
|
|
6722
|
+
e.loginSession,
|
|
6723
|
+
{
|
|
6724
|
+
client: r,
|
|
6725
|
+
authParams: n,
|
|
6726
|
+
authStrategy: e.authStrategy
|
|
6727
|
+
}
|
|
6728
|
+
));
|
|
6729
|
+
const _ = mb(), w = me(12), k = await t.env.data.codes.create(r.tenant.id, {
|
|
6710
6730
|
code_id: me(),
|
|
6711
6731
|
code_type: "ticket",
|
|
6712
6732
|
login_id: e.loginSession.id,
|
|
@@ -6717,7 +6737,7 @@ async function Kt(t, e) {
|
|
|
6717
6737
|
nonce: n.nonce
|
|
6718
6738
|
});
|
|
6719
6739
|
return t.json({
|
|
6720
|
-
login_ticket:
|
|
6740
|
+
login_ticket: k.code_id,
|
|
6721
6741
|
co_verifier: _,
|
|
6722
6742
|
co_id: w
|
|
6723
6743
|
});
|
|
@@ -6770,7 +6790,7 @@ async function Kt(t, e) {
|
|
|
6770
6790
|
client: r,
|
|
6771
6791
|
session_id: d,
|
|
6772
6792
|
refresh_token: l,
|
|
6773
|
-
|
|
6793
|
+
authStrategy: e.authStrategy,
|
|
6774
6794
|
loginSession: e.loginSession,
|
|
6775
6795
|
responseType: a,
|
|
6776
6796
|
skipHooks: e.skipHooks,
|
|
@@ -6796,10 +6816,10 @@ async function Kt(t, e) {
|
|
|
6796
6816
|
console.warn(
|
|
6797
6817
|
"Session ID not available for WEB_MESSAGE, cookie will not be set."
|
|
6798
6818
|
);
|
|
6799
|
-
const w = new URL(n.redirect_uri),
|
|
6819
|
+
const w = new URL(n.redirect_uri), k = `${w.protocol}//${w.host}`;
|
|
6800
6820
|
return t.html(
|
|
6801
6821
|
Il(
|
|
6802
|
-
|
|
6822
|
+
k,
|
|
6803
6823
|
JSON.stringify({ ...p, state: n.state })
|
|
6804
6824
|
),
|
|
6805
6825
|
{
|
|
@@ -6898,10 +6918,13 @@ async function tv(t, e) {
|
|
|
6898
6918
|
scope: i
|
|
6899
6919
|
};
|
|
6900
6920
|
if (e.loginSession && n && !e.skipHooks) {
|
|
6901
|
-
e.
|
|
6921
|
+
e.authStrategy && n.app_metadata?.strategy !== e.authStrategy.strategy && (n.app_metadata = {
|
|
6922
|
+
...n.app_metadata,
|
|
6923
|
+
strategy: e.authStrategy.strategy
|
|
6924
|
+
}, await t.env.data.users.update(e.client.tenant.id, n.user_id, {
|
|
6902
6925
|
app_metadata: {
|
|
6903
6926
|
...n.app_metadata || {},
|
|
6904
|
-
strategy: e.strategy
|
|
6927
|
+
strategy: e.authStrategy.strategy
|
|
6905
6928
|
}
|
|
6906
6929
|
}));
|
|
6907
6930
|
const c = await em(
|
|
@@ -6913,11 +6936,7 @@ async function tv(t, e) {
|
|
|
6913
6936
|
{
|
|
6914
6937
|
client: e.client,
|
|
6915
6938
|
authParams: a,
|
|
6916
|
-
authStrategy: e.
|
|
6917
|
-
strategy: e.strategy,
|
|
6918
|
-
strategy_type: "social"
|
|
6919
|
-
// Social logins come through this path
|
|
6920
|
-
} : void 0
|
|
6939
|
+
authStrategy: e.authStrategy
|
|
6921
6940
|
}
|
|
6922
6941
|
);
|
|
6923
6942
|
if (c instanceof Response)
|
|
@@ -7666,10 +7685,10 @@ async function em(t, e, n, r, i, s) {
|
|
|
7666
7685
|
},
|
|
7667
7686
|
redirect: {
|
|
7668
7687
|
sendUserTo: (_, w) => {
|
|
7669
|
-
const
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
}), f =
|
|
7688
|
+
const k = new URL(_, t.req.url);
|
|
7689
|
+
k.searchParams.set("state", i.id), w?.query && Object.entries(w.query).forEach(([A, j]) => {
|
|
7690
|
+
k.searchParams.set(A, j);
|
|
7691
|
+
}), f = k.toString();
|
|
7673
7692
|
},
|
|
7674
7693
|
encodeToken: (_) => JSON.stringify({
|
|
7675
7694
|
payload: _.payload,
|
|
@@ -7864,7 +7883,7 @@ const wf = ut.extend({
|
|
|
7864
7883
|
}), wv = ut.extend({
|
|
7865
7884
|
organizations: o.array(Vn)
|
|
7866
7885
|
}), bv = new W().openapi(
|
|
7867
|
-
|
|
7886
|
+
x({
|
|
7868
7887
|
tags: ["users"],
|
|
7869
7888
|
method: "get",
|
|
7870
7889
|
path: "/",
|
|
@@ -7935,7 +7954,7 @@ const wf = ut.extend({
|
|
|
7935
7954
|
) : t.json(o.array(tn).parse(l));
|
|
7936
7955
|
}
|
|
7937
7956
|
).openapi(
|
|
7938
|
-
|
|
7957
|
+
x({
|
|
7939
7958
|
tags: ["users"],
|
|
7940
7959
|
method: "get",
|
|
7941
7960
|
path: "/{user_id}",
|
|
@@ -7974,7 +7993,7 @@ const wf = ut.extend({
|
|
|
7974
7993
|
return t.json(n);
|
|
7975
7994
|
}
|
|
7976
7995
|
).openapi(
|
|
7977
|
-
|
|
7996
|
+
x({
|
|
7978
7997
|
tags: ["users"],
|
|
7979
7998
|
method: "delete",
|
|
7980
7999
|
path: "/{user_id}",
|
|
@@ -8017,7 +8036,7 @@ const wf = ut.extend({
|
|
|
8017
8036
|
}, se(t, t.env.data.logs.create(t.var.tenant_id, r)), t.text("OK");
|
|
8018
8037
|
}
|
|
8019
8038
|
).openapi(
|
|
8020
|
-
|
|
8039
|
+
x({
|
|
8021
8040
|
tags: ["users"],
|
|
8022
8041
|
method: "post",
|
|
8023
8042
|
path: "/",
|
|
@@ -8095,11 +8114,11 @@ const wf = ut.extend({
|
|
|
8095
8114
|
);
|
|
8096
8115
|
}
|
|
8097
8116
|
t.set("user_id", w.user_id);
|
|
8098
|
-
const
|
|
8117
|
+
const k = oe(t, {
|
|
8099
8118
|
type: ie.SUCCESS_API_OPERATION,
|
|
8100
8119
|
description: "User created"
|
|
8101
8120
|
});
|
|
8102
|
-
se(t, t.env.data.logs.create(t.var.tenant_id,
|
|
8121
|
+
se(t, t.env.data.logs.create(t.var.tenant_id, k));
|
|
8103
8122
|
const A = w.identities ? w : {
|
|
8104
8123
|
...w,
|
|
8105
8124
|
identities: [
|
|
@@ -8121,7 +8140,7 @@ const wf = ut.extend({
|
|
|
8121
8140
|
}
|
|
8122
8141
|
}
|
|
8123
8142
|
).openapi(
|
|
8124
|
-
|
|
8143
|
+
x({
|
|
8125
8144
|
tags: ["users"],
|
|
8126
8145
|
method: "patch",
|
|
8127
8146
|
path: "/{user_id}",
|
|
@@ -8175,7 +8194,7 @@ const wf = ut.extend({
|
|
|
8175
8194
|
include_totals: !1,
|
|
8176
8195
|
q: `linked_to:${r}`
|
|
8177
8196
|
})).users.find(
|
|
8178
|
-
(
|
|
8197
|
+
(k) => k.connection === a
|
|
8179
8198
|
);
|
|
8180
8199
|
if (!w)
|
|
8181
8200
|
throw new v(404, {
|
|
@@ -8246,7 +8265,7 @@ const wf = ut.extend({
|
|
|
8246
8265
|
}, se(t, t.env.data.logs.create(t.var.tenant_id, g)), t.json(f);
|
|
8247
8266
|
}
|
|
8248
8267
|
).openapi(
|
|
8249
|
-
|
|
8268
|
+
x({
|
|
8250
8269
|
tags: ["users"],
|
|
8251
8270
|
method: "post",
|
|
8252
8271
|
path: "/{user_id}/identities",
|
|
@@ -8318,7 +8337,7 @@ const wf = ut.extend({
|
|
|
8318
8337
|
return t.json(a, { status: 201 });
|
|
8319
8338
|
}
|
|
8320
8339
|
).openapi(
|
|
8321
|
-
|
|
8340
|
+
x({
|
|
8322
8341
|
tags: ["users"],
|
|
8323
8342
|
method: "delete",
|
|
8324
8343
|
path: "/{user_id}/identities/{provider}/{linked_user_id}",
|
|
@@ -8362,7 +8381,7 @@ const wf = ut.extend({
|
|
|
8362
8381
|
return t.json([tn.parse(i)]);
|
|
8363
8382
|
}
|
|
8364
8383
|
).openapi(
|
|
8365
|
-
|
|
8384
|
+
x({
|
|
8366
8385
|
tags: ["users"],
|
|
8367
8386
|
method: "get",
|
|
8368
8387
|
path: "/{user_id}/sessions",
|
|
@@ -8404,7 +8423,7 @@ const wf = ut.extend({
|
|
|
8404
8423
|
return n ? t.json(s) : t.json(s.sessions);
|
|
8405
8424
|
}
|
|
8406
8425
|
).openapi(
|
|
8407
|
-
|
|
8426
|
+
x({
|
|
8408
8427
|
tags: ["users"],
|
|
8409
8428
|
method: "get",
|
|
8410
8429
|
path: "/{user_id}/permissions",
|
|
@@ -8453,7 +8472,7 @@ const wf = ut.extend({
|
|
|
8453
8472
|
return t.json(c);
|
|
8454
8473
|
}
|
|
8455
8474
|
).openapi(
|
|
8456
|
-
|
|
8475
|
+
x({
|
|
8457
8476
|
tags: ["users"],
|
|
8458
8477
|
method: "post",
|
|
8459
8478
|
path: "/{user_id}/permissions",
|
|
@@ -8515,7 +8534,7 @@ const wf = ut.extend({
|
|
|
8515
8534
|
);
|
|
8516
8535
|
}
|
|
8517
8536
|
).openapi(
|
|
8518
|
-
|
|
8537
|
+
x({
|
|
8519
8538
|
tags: ["users"],
|
|
8520
8539
|
method: "delete",
|
|
8521
8540
|
path: "/{user_id}/permissions",
|
|
@@ -8570,7 +8589,7 @@ const wf = ut.extend({
|
|
|
8570
8589
|
return t.json({ message: "Permissions removed successfully" });
|
|
8571
8590
|
}
|
|
8572
8591
|
).openapi(
|
|
8573
|
-
|
|
8592
|
+
x({
|
|
8574
8593
|
tags: ["users"],
|
|
8575
8594
|
method: "get",
|
|
8576
8595
|
path: "/{user_id}/roles",
|
|
@@ -8599,7 +8618,7 @@ const wf = ut.extend({
|
|
|
8599
8618
|
return t.json(r);
|
|
8600
8619
|
}
|
|
8601
8620
|
).openapi(
|
|
8602
|
-
|
|
8621
|
+
x({
|
|
8603
8622
|
tags: ["users"],
|
|
8604
8623
|
method: "post",
|
|
8605
8624
|
path: "/{user_id}/roles",
|
|
@@ -8637,7 +8656,7 @@ const wf = ut.extend({
|
|
|
8637
8656
|
);
|
|
8638
8657
|
}
|
|
8639
8658
|
).openapi(
|
|
8640
|
-
|
|
8659
|
+
x({
|
|
8641
8660
|
tags: ["users"],
|
|
8642
8661
|
method: "delete",
|
|
8643
8662
|
path: "/{user_id}/roles",
|
|
@@ -8672,7 +8691,7 @@ const wf = ut.extend({
|
|
|
8672
8691
|
return t.json({ message: "Roles removed successfully" });
|
|
8673
8692
|
}
|
|
8674
8693
|
).openapi(
|
|
8675
|
-
|
|
8694
|
+
x({
|
|
8676
8695
|
tags: ["users"],
|
|
8677
8696
|
method: "get",
|
|
8678
8697
|
path: "/{user_id}/organizations",
|
|
@@ -8721,7 +8740,7 @@ const wf = ut.extend({
|
|
|
8721
8740
|
}) : t.json(c.organizations);
|
|
8722
8741
|
}
|
|
8723
8742
|
).openapi(
|
|
8724
|
-
|
|
8743
|
+
x({
|
|
8725
8744
|
tags: ["users"],
|
|
8726
8745
|
method: "delete",
|
|
8727
8746
|
path: "/{user_id}/organizations/{organization_id}",
|
|
@@ -8821,7 +8840,7 @@ function $v() {
|
|
|
8821
8840
|
} : function($, S) {
|
|
8822
8841
|
return $[S];
|
|
8823
8842
|
}
|
|
8824
|
-
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : g1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : m1(),
|
|
8843
|
+
}, g = Object.getPrototypeOf(Function), _ = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : g1(), w = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : m1(), k = typeof WeakMap == "function" ? WeakMap : _1(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, j = p1(), N = f1(j);
|
|
8825
8844
|
function O($, S, E, B) {
|
|
8826
8845
|
if (G(E)) {
|
|
8827
8846
|
if (!Pp($))
|
|
@@ -9148,7 +9167,7 @@ function $v() {
|
|
|
9148
9167
|
function u1() {
|
|
9149
9168
|
var $;
|
|
9150
9169
|
!G(A) && typeof r.Reflect < "u" && !(A in r.Reflect) && typeof r.Reflect.defineMetadata == "function" && ($ = h1(r.Reflect));
|
|
9151
|
-
var S, E, B, Z = new
|
|
9170
|
+
var S, E, B, Z = new k(), Ae = {
|
|
9152
9171
|
registerProvider: Re,
|
|
9153
9172
|
getProvider: L,
|
|
9154
9173
|
setProvider: H
|
|
@@ -9228,7 +9247,7 @@ function $v() {
|
|
|
9228
9247
|
}), $;
|
|
9229
9248
|
}
|
|
9230
9249
|
function f1($) {
|
|
9231
|
-
var S = new
|
|
9250
|
+
var S = new k(), E = {
|
|
9232
9251
|
isProviderFor: function(q, H) {
|
|
9233
9252
|
var K = S.get(q);
|
|
9234
9253
|
return G(K) ? !1 : K.has(H);
|
|
@@ -9327,7 +9346,7 @@ function $v() {
|
|
|
9327
9346
|
}
|
|
9328
9347
|
}
|
|
9329
9348
|
function h1($) {
|
|
9330
|
-
var S = $.defineMetadata, E = $.hasOwnMetadata, B = $.getOwnMetadata, Z = $.getOwnMetadataKeys, Ae = $.deleteMetadata, Re = new
|
|
9349
|
+
var S = $.defineMetadata, E = $.hasOwnMetadata, B = $.getOwnMetadata, Z = $.getOwnMetadataKeys, Ae = $.deleteMetadata, Re = new k(), ae = {
|
|
9331
9350
|
isProviderFor: function(L, q) {
|
|
9332
9351
|
var H = Re.get(L);
|
|
9333
9352
|
return !G(H) && H.has(q) ? !0 : Z(L, q).length ? (G(H) && (H = new w(), Re.set(L, H)), H.add(q), !0) : !1;
|
|
@@ -17585,13 +17604,13 @@ class _3 {
|
|
|
17585
17604
|
}, p = "signingKey" in e ? { ...d, ...e.signingAlgorithm, ...e.signingKey.algorithm } : { ...d, ...e.signingAlgorithm }, f = Ve.resolve(dr);
|
|
17586
17605
|
l.tbsCertificate.signature = l.signatureAlgorithm = f.toAsnAlgorithm(p);
|
|
17587
17606
|
const g = T.serialize(l.tbsCertificate), _ = "signingKey" in e ? await n.subtle.sign(p, e.signingKey, g) : e.signature, w = Ve.resolveAll(Yo).reverse();
|
|
17588
|
-
let
|
|
17607
|
+
let k = null;
|
|
17589
17608
|
for (const A of w)
|
|
17590
|
-
if (
|
|
17609
|
+
if (k = A.toAsnSignature(p, _), k)
|
|
17591
17610
|
break;
|
|
17592
|
-
if (!
|
|
17611
|
+
if (!k)
|
|
17593
17612
|
throw Error("Cannot convert ASN.1 signature value to WebCrypto format");
|
|
17594
|
-
return l.signatureValue =
|
|
17613
|
+
return l.signatureValue = k, new wc(T.serialize(l));
|
|
17595
17614
|
}
|
|
17596
17615
|
}
|
|
17597
17616
|
var Gh;
|
|
@@ -17665,7 +17684,7 @@ async function w3(t) {
|
|
|
17665
17684
|
return Nl(await D0(s));
|
|
17666
17685
|
}
|
|
17667
17686
|
const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
17668
|
-
|
|
17687
|
+
x({
|
|
17669
17688
|
tags: ["keys"],
|
|
17670
17689
|
method: "get",
|
|
17671
17690
|
path: "/signing",
|
|
@@ -17697,7 +17716,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17697
17716
|
return t.json(n);
|
|
17698
17717
|
}
|
|
17699
17718
|
).openapi(
|
|
17700
|
-
|
|
17719
|
+
x({
|
|
17701
17720
|
tags: ["keys"],
|
|
17702
17721
|
method: "get",
|
|
17703
17722
|
path: "/signing/{kid}",
|
|
@@ -17734,7 +17753,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17734
17753
|
return t.json(r);
|
|
17735
17754
|
}
|
|
17736
17755
|
).openapi(
|
|
17737
|
-
|
|
17756
|
+
x({
|
|
17738
17757
|
tags: ["keys"],
|
|
17739
17758
|
method: "post",
|
|
17740
17759
|
path: "/signing/rotate",
|
|
@@ -17768,7 +17787,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17768
17787
|
return await t.env.data.keys.create({ ...n, type: "jwt_signing" }), t.text("OK", { status: 201 });
|
|
17769
17788
|
}
|
|
17770
17789
|
).openapi(
|
|
17771
|
-
|
|
17790
|
+
x({
|
|
17772
17791
|
tags: ["keys"],
|
|
17773
17792
|
method: "put",
|
|
17774
17793
|
path: "/signing/{kid}/revoke",
|
|
@@ -17803,7 +17822,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17803
17822
|
return await t.env.data.keys.create({ ...r, type: "jwt_signing" }), t.text("OK");
|
|
17804
17823
|
}
|
|
17805
17824
|
), $3 = new W().openapi(
|
|
17806
|
-
|
|
17825
|
+
x({
|
|
17807
17826
|
tags: ["users"],
|
|
17808
17827
|
method: "get",
|
|
17809
17828
|
path: "/",
|
|
@@ -17838,7 +17857,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17838
17857
|
), k3 = ut.extend({
|
|
17839
17858
|
clients: o.array(jr)
|
|
17840
17859
|
}), x3 = new W().openapi(
|
|
17841
|
-
|
|
17860
|
+
x({
|
|
17842
17861
|
tags: ["clients"],
|
|
17843
17862
|
method: "get",
|
|
17844
17863
|
path: "/",
|
|
@@ -17880,7 +17899,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17880
17899
|
}) : t.json(l);
|
|
17881
17900
|
}
|
|
17882
17901
|
).openapi(
|
|
17883
|
-
|
|
17902
|
+
x({
|
|
17884
17903
|
tags: ["clients"],
|
|
17885
17904
|
method: "get",
|
|
17886
17905
|
path: "/{id}",
|
|
@@ -17915,7 +17934,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17915
17934
|
return t.json(r);
|
|
17916
17935
|
}
|
|
17917
17936
|
).openapi(
|
|
17918
|
-
|
|
17937
|
+
x({
|
|
17919
17938
|
tags: ["clients"],
|
|
17920
17939
|
method: "delete",
|
|
17921
17940
|
path: "/{id}",
|
|
@@ -17945,7 +17964,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17945
17964
|
return t.text("OK");
|
|
17946
17965
|
}
|
|
17947
17966
|
).openapi(
|
|
17948
|
-
|
|
17967
|
+
x({
|
|
17949
17968
|
tags: ["clients"],
|
|
17950
17969
|
method: "patch",
|
|
17951
17970
|
path: "/{id}",
|
|
@@ -17989,7 +18008,7 @@ const b3 = 1e3 * 60 * 60 * 24, v3 = new W().openapi(
|
|
|
17989
18008
|
return t.json(s);
|
|
17990
18009
|
}
|
|
17991
18010
|
).openapi(
|
|
17992
|
-
|
|
18011
|
+
x({
|
|
17993
18012
|
tags: ["clients"],
|
|
17994
18013
|
method: "post",
|
|
17995
18014
|
path: "/",
|
|
@@ -18045,7 +18064,7 @@ du.extend({
|
|
|
18045
18064
|
const S3 = ut.extend({
|
|
18046
18065
|
tenants: o.array(Fn)
|
|
18047
18066
|
}), A3 = new W().openapi(
|
|
18048
|
-
|
|
18067
|
+
x({
|
|
18049
18068
|
tags: ["tenants", "settings"],
|
|
18050
18069
|
method: "get",
|
|
18051
18070
|
path: "/settings",
|
|
@@ -18079,7 +18098,7 @@ const S3 = ut.extend({
|
|
|
18079
18098
|
return t.json(e);
|
|
18080
18099
|
}
|
|
18081
18100
|
).openapi(
|
|
18082
|
-
|
|
18101
|
+
x({
|
|
18083
18102
|
tags: ["tenants", "settings"],
|
|
18084
18103
|
method: "patch",
|
|
18085
18104
|
path: "/settings",
|
|
@@ -18127,7 +18146,7 @@ const S3 = ut.extend({
|
|
|
18127
18146
|
return t.json(a);
|
|
18128
18147
|
}
|
|
18129
18148
|
).openapi(
|
|
18130
|
-
|
|
18149
|
+
x({
|
|
18131
18150
|
tags: ["tenants"],
|
|
18132
18151
|
method: "get",
|
|
18133
18152
|
path: "/",
|
|
@@ -18161,7 +18180,7 @@ const S3 = ut.extend({
|
|
|
18161
18180
|
return r ? t.json(a) : t.json(a.tenants);
|
|
18162
18181
|
}
|
|
18163
18182
|
).openapi(
|
|
18164
|
-
|
|
18183
|
+
x({
|
|
18165
18184
|
tags: ["tenants"],
|
|
18166
18185
|
method: "get",
|
|
18167
18186
|
path: "/{id}",
|
|
@@ -18193,7 +18212,7 @@ const S3 = ut.extend({
|
|
|
18193
18212
|
return t.json(n);
|
|
18194
18213
|
}
|
|
18195
18214
|
).openapi(
|
|
18196
|
-
|
|
18215
|
+
x({
|
|
18197
18216
|
tags: ["tenants"],
|
|
18198
18217
|
method: "delete",
|
|
18199
18218
|
path: "/{id}",
|
|
@@ -18218,7 +18237,7 @@ const S3 = ut.extend({
|
|
|
18218
18237
|
return await t.env.data.tenants.remove(e), t.text("OK");
|
|
18219
18238
|
}
|
|
18220
18239
|
).openapi(
|
|
18221
|
-
|
|
18240
|
+
x({
|
|
18222
18241
|
tags: ["tenants"],
|
|
18223
18242
|
method: "patch",
|
|
18224
18243
|
path: "/{id}",
|
|
@@ -18250,7 +18269,7 @@ const S3 = ut.extend({
|
|
|
18250
18269
|
return await t.env.data.tenants.update(e, n), t.text("OK");
|
|
18251
18270
|
}
|
|
18252
18271
|
).openapi(
|
|
18253
|
-
|
|
18272
|
+
x({
|
|
18254
18273
|
tags: ["tenants"],
|
|
18255
18274
|
method: "post",
|
|
18256
18275
|
path: "/",
|
|
@@ -18286,7 +18305,7 @@ const S3 = ut.extend({
|
|
|
18286
18305
|
), E3 = ut.extend({
|
|
18287
18306
|
logs: o.array(vl)
|
|
18288
18307
|
}), C3 = new W().openapi(
|
|
18289
|
-
|
|
18308
|
+
x({
|
|
18290
18309
|
tags: ["logs"],
|
|
18291
18310
|
method: "get",
|
|
18292
18311
|
path: "/",
|
|
@@ -18323,7 +18342,7 @@ const S3 = ut.extend({
|
|
|
18323
18342
|
return r ? t.json(a) : t.json(a.logs);
|
|
18324
18343
|
}
|
|
18325
18344
|
).openapi(
|
|
18326
|
-
|
|
18345
|
+
x({
|
|
18327
18346
|
tags: ["logs"],
|
|
18328
18347
|
method: "get",
|
|
18329
18348
|
path: "/{id}",
|
|
@@ -18386,7 +18405,7 @@ function T3() {
|
|
|
18386
18405
|
const R3 = ut.extend({
|
|
18387
18406
|
hooks: o.array(Ni)
|
|
18388
18407
|
}), B3 = new W().openapi(
|
|
18389
|
-
|
|
18408
|
+
x({
|
|
18390
18409
|
tags: ["hooks"],
|
|
18391
18410
|
method: "get",
|
|
18392
18411
|
path: "/",
|
|
@@ -18423,7 +18442,7 @@ const R3 = ut.extend({
|
|
|
18423
18442
|
return r ? t.json(a) : t.json(a.hooks);
|
|
18424
18443
|
}
|
|
18425
18444
|
).openapi(
|
|
18426
|
-
|
|
18445
|
+
x({
|
|
18427
18446
|
tags: ["hooks"],
|
|
18428
18447
|
method: "post",
|
|
18429
18448
|
path: "/",
|
|
@@ -18467,7 +18486,7 @@ const R3 = ut.extend({
|
|
|
18467
18486
|
return t.json(r, { status: 201 });
|
|
18468
18487
|
}
|
|
18469
18488
|
).openapi(
|
|
18470
|
-
|
|
18489
|
+
x({
|
|
18471
18490
|
tags: ["hooks"],
|
|
18472
18491
|
method: "patch",
|
|
18473
18492
|
path: "/{hook_id}",
|
|
@@ -18519,7 +18538,7 @@ const R3 = ut.extend({
|
|
|
18519
18538
|
return t.json(r);
|
|
18520
18539
|
}
|
|
18521
18540
|
).openapi(
|
|
18522
|
-
|
|
18541
|
+
x({
|
|
18523
18542
|
tags: ["hooks"],
|
|
18524
18543
|
method: "get",
|
|
18525
18544
|
path: "/{hook_id}",
|
|
@@ -18557,7 +18576,7 @@ const R3 = ut.extend({
|
|
|
18557
18576
|
return t.json(n);
|
|
18558
18577
|
}
|
|
18559
18578
|
).openapi(
|
|
18560
|
-
|
|
18579
|
+
x({
|
|
18561
18580
|
tags: ["hooks"],
|
|
18562
18581
|
method: "delete",
|
|
18563
18582
|
path: "/{hook_id}",
|
|
@@ -18592,7 +18611,7 @@ const R3 = ut.extend({
|
|
|
18592
18611
|
), L3 = ut.extend({
|
|
18593
18612
|
connections: o.array(Ft)
|
|
18594
18613
|
}), U3 = new W().openapi(
|
|
18595
|
-
|
|
18614
|
+
x({
|
|
18596
18615
|
tags: ["connections"],
|
|
18597
18616
|
method: "get",
|
|
18598
18617
|
path: "/",
|
|
@@ -18638,7 +18657,7 @@ const R3 = ut.extend({
|
|
|
18638
18657
|
return r ? t.json(a) : t.json(a.connections);
|
|
18639
18658
|
}
|
|
18640
18659
|
).openapi(
|
|
18641
|
-
|
|
18660
|
+
x({
|
|
18642
18661
|
tags: ["connections"],
|
|
18643
18662
|
method: "get",
|
|
18644
18663
|
path: "/{id}",
|
|
@@ -18676,7 +18695,7 @@ const R3 = ut.extend({
|
|
|
18676
18695
|
return t.json(n);
|
|
18677
18696
|
}
|
|
18678
18697
|
).openapi(
|
|
18679
|
-
|
|
18698
|
+
x({
|
|
18680
18699
|
tags: ["connections"],
|
|
18681
18700
|
method: "delete",
|
|
18682
18701
|
path: "/{id}",
|
|
@@ -18711,7 +18730,7 @@ const R3 = ut.extend({
|
|
|
18711
18730
|
return t.text("OK");
|
|
18712
18731
|
}
|
|
18713
18732
|
).openapi(
|
|
18714
|
-
|
|
18733
|
+
x({
|
|
18715
18734
|
tags: ["connections"],
|
|
18716
18735
|
method: "patch",
|
|
18717
18736
|
path: "/{id}",
|
|
@@ -18767,7 +18786,7 @@ const R3 = ut.extend({
|
|
|
18767
18786
|
return t.json(i);
|
|
18768
18787
|
}
|
|
18769
18788
|
).openapi(
|
|
18770
|
-
|
|
18789
|
+
x({
|
|
18771
18790
|
tags: ["connections"],
|
|
18772
18791
|
method: "post",
|
|
18773
18792
|
path: "/",
|
|
@@ -18810,7 +18829,7 @@ const R3 = ut.extend({
|
|
|
18810
18829
|
return t.json(r, { status: 201 });
|
|
18811
18830
|
}
|
|
18812
18831
|
), D3 = new W().openapi(
|
|
18813
|
-
|
|
18832
|
+
x({
|
|
18814
18833
|
tags: ["prompts"],
|
|
18815
18834
|
method: "get",
|
|
18816
18835
|
path: "/",
|
|
@@ -18842,7 +18861,7 @@ const R3 = ut.extend({
|
|
|
18842
18861
|
return e ? t.json(e) : t.json(Dc.parse({}));
|
|
18843
18862
|
}
|
|
18844
18863
|
).openapi(
|
|
18845
|
-
|
|
18864
|
+
x({
|
|
18846
18865
|
tags: ["prompts"],
|
|
18847
18866
|
method: "patch",
|
|
18848
18867
|
path: "/",
|
|
@@ -19378,7 +19397,7 @@ function ap(t) {
|
|
|
19378
19397
|
};
|
|
19379
19398
|
}
|
|
19380
19399
|
const _4 = new W().openapi(
|
|
19381
|
-
|
|
19400
|
+
x({
|
|
19382
19401
|
tags: ["emails"],
|
|
19383
19402
|
method: "get",
|
|
19384
19403
|
path: "/",
|
|
@@ -19412,7 +19431,7 @@ const _4 = new W().openapi(
|
|
|
19412
19431
|
return t.json(e);
|
|
19413
19432
|
}
|
|
19414
19433
|
).openapi(
|
|
19415
|
-
|
|
19434
|
+
x({
|
|
19416
19435
|
tags: ["emails"],
|
|
19417
19436
|
method: "post",
|
|
19418
19437
|
path: "/",
|
|
@@ -19447,7 +19466,7 @@ const _4 = new W().openapi(
|
|
|
19447
19466
|
), t.text("OK", { status: 201 });
|
|
19448
19467
|
}
|
|
19449
19468
|
).openapi(
|
|
19450
|
-
|
|
19469
|
+
x({
|
|
19451
19470
|
tags: ["emails"],
|
|
19452
19471
|
method: "patch",
|
|
19453
19472
|
path: "/",
|
|
@@ -19479,7 +19498,7 @@ const _4 = new W().openapi(
|
|
|
19479
19498
|
return await t.env.data.emailProviders.update(t.var.tenant_id, e), t.text("OK");
|
|
19480
19499
|
}
|
|
19481
19500
|
), y4 = new W().openapi(
|
|
19482
|
-
|
|
19501
|
+
x({
|
|
19483
19502
|
tags: ["sessions"],
|
|
19484
19503
|
method: "get",
|
|
19485
19504
|
path: "/{id}",
|
|
@@ -19514,7 +19533,7 @@ const _4 = new W().openapi(
|
|
|
19514
19533
|
return t.json(n);
|
|
19515
19534
|
}
|
|
19516
19535
|
).openapi(
|
|
19517
|
-
|
|
19536
|
+
x({
|
|
19518
19537
|
tags: ["sessions"],
|
|
19519
19538
|
method: "delete",
|
|
19520
19539
|
path: "/{id}",
|
|
@@ -19546,7 +19565,7 @@ const _4 = new W().openapi(
|
|
|
19546
19565
|
return t.text("OK");
|
|
19547
19566
|
}
|
|
19548
19567
|
).openapi(
|
|
19549
|
-
|
|
19568
|
+
x({
|
|
19550
19569
|
tags: ["sessions"],
|
|
19551
19570
|
method: "post",
|
|
19552
19571
|
path: "/{id}/revoke",
|
|
@@ -19580,7 +19599,7 @@ const _4 = new W().openapi(
|
|
|
19580
19599
|
return t.text("Session deletion request accepted.", { status: 202 });
|
|
19581
19600
|
}
|
|
19582
19601
|
), w4 = new W().openapi(
|
|
19583
|
-
|
|
19602
|
+
x({
|
|
19584
19603
|
tags: ["refresh_tokens"],
|
|
19585
19604
|
method: "get",
|
|
19586
19605
|
path: "/{id}",
|
|
@@ -19618,7 +19637,7 @@ const _4 = new W().openapi(
|
|
|
19618
19637
|
return t.json(n);
|
|
19619
19638
|
}
|
|
19620
19639
|
).openapi(
|
|
19621
|
-
|
|
19640
|
+
x({
|
|
19622
19641
|
tags: ["refresh_tokens"],
|
|
19623
19642
|
method: "delete",
|
|
19624
19643
|
path: "/{id}",
|
|
@@ -19653,7 +19672,7 @@ const _4 = new W().openapi(
|
|
|
19653
19672
|
return t.text("OK");
|
|
19654
19673
|
}
|
|
19655
19674
|
), b4 = new W().openapi(
|
|
19656
|
-
|
|
19675
|
+
x({
|
|
19657
19676
|
tags: ["custom-domains"],
|
|
19658
19677
|
method: "get",
|
|
19659
19678
|
path: "/",
|
|
@@ -19684,7 +19703,7 @@ const _4 = new W().openapi(
|
|
|
19684
19703
|
return t.json(e);
|
|
19685
19704
|
}
|
|
19686
19705
|
).openapi(
|
|
19687
|
-
|
|
19706
|
+
x({
|
|
19688
19707
|
tags: ["custom-domains"],
|
|
19689
19708
|
method: "get",
|
|
19690
19709
|
path: "/{id}",
|
|
@@ -19722,7 +19741,7 @@ const _4 = new W().openapi(
|
|
|
19722
19741
|
return t.json(n);
|
|
19723
19742
|
}
|
|
19724
19743
|
).openapi(
|
|
19725
|
-
|
|
19744
|
+
x({
|
|
19726
19745
|
tags: ["custom-domains"],
|
|
19727
19746
|
method: "delete",
|
|
19728
19747
|
path: "/{id}",
|
|
@@ -19757,7 +19776,7 @@ const _4 = new W().openapi(
|
|
|
19757
19776
|
return t.text("OK");
|
|
19758
19777
|
}
|
|
19759
19778
|
).openapi(
|
|
19760
|
-
|
|
19779
|
+
x({
|
|
19761
19780
|
tags: ["custom-domains"],
|
|
19762
19781
|
method: "patch",
|
|
19763
19782
|
path: "/{id}",
|
|
@@ -19809,7 +19828,7 @@ const _4 = new W().openapi(
|
|
|
19809
19828
|
return t.json(i);
|
|
19810
19829
|
}
|
|
19811
19830
|
).openapi(
|
|
19812
|
-
|
|
19831
|
+
x({
|
|
19813
19832
|
tags: ["custom-domains"],
|
|
19814
19833
|
method: "post",
|
|
19815
19834
|
path: "/",
|
|
@@ -19849,7 +19868,7 @@ const _4 = new W().openapi(
|
|
|
19849
19868
|
return t.json(n, { status: 201 });
|
|
19850
19869
|
}
|
|
19851
19870
|
).openapi(
|
|
19852
|
-
|
|
19871
|
+
x({
|
|
19853
19872
|
tags: ["custom-domains"],
|
|
19854
19873
|
method: "post",
|
|
19855
19874
|
path: "/{id}/verify",
|
|
@@ -19983,18 +20002,18 @@ function Sc(t, e) {
|
|
|
19983
20002
|
keyPrefix: c
|
|
19984
20003
|
} = e, l = new Set(s), d = a.length === 0, p = new Set(a), f = {};
|
|
19985
20004
|
for (const [g, _] of Object.entries(t)) {
|
|
19986
|
-
const w = d || p.has(g),
|
|
20005
|
+
const w = d || p.has(g), k = {};
|
|
19987
20006
|
for (const [A, j] of Object.entries(
|
|
19988
20007
|
_
|
|
19989
20008
|
))
|
|
19990
20009
|
if (typeof j == "function") {
|
|
19991
20010
|
if (!w) {
|
|
19992
|
-
|
|
20011
|
+
k[A] = j;
|
|
19993
20012
|
continue;
|
|
19994
20013
|
}
|
|
19995
20014
|
const N = `${g}:${A}`;
|
|
19996
20015
|
if (l.has(N)) {
|
|
19997
|
-
|
|
20016
|
+
k[A] = j;
|
|
19998
20017
|
continue;
|
|
19999
20018
|
}
|
|
20000
20019
|
const O = i[N] ?? r, I = [
|
|
@@ -20005,7 +20024,7 @@ function Sc(t, e) {
|
|
|
20005
20024
|
"set",
|
|
20006
20025
|
"used"
|
|
20007
20026
|
].includes(A);
|
|
20008
|
-
|
|
20027
|
+
k[A] = async (...U) => {
|
|
20009
20028
|
if (I)
|
|
20010
20029
|
return await j.apply(_, U);
|
|
20011
20030
|
const J = k4(
|
|
@@ -20034,8 +20053,8 @@ function Sc(t, e) {
|
|
|
20034
20053
|
return ee;
|
|
20035
20054
|
};
|
|
20036
20055
|
} else
|
|
20037
|
-
|
|
20038
|
-
f[g] =
|
|
20056
|
+
k[A] = j;
|
|
20057
|
+
f[g] = k;
|
|
20039
20058
|
}
|
|
20040
20059
|
return f;
|
|
20041
20060
|
}
|
|
@@ -20112,7 +20131,7 @@ function Ac(t = {}) {
|
|
|
20112
20131
|
const S4 = ut.extend({
|
|
20113
20132
|
forms: o.array(Ci)
|
|
20114
20133
|
}), A4 = new W().openapi(
|
|
20115
|
-
|
|
20134
|
+
x({
|
|
20116
20135
|
tags: ["forms"],
|
|
20117
20136
|
method: "get",
|
|
20118
20137
|
path: "/",
|
|
@@ -20155,7 +20174,7 @@ const S4 = ut.extend({
|
|
|
20155
20174
|
return i ? t.json(c) : t.json(c.forms);
|
|
20156
20175
|
}
|
|
20157
20176
|
).openapi(
|
|
20158
|
-
|
|
20177
|
+
x({
|
|
20159
20178
|
tags: ["forms"],
|
|
20160
20179
|
method: "get",
|
|
20161
20180
|
path: "/{id}",
|
|
@@ -20190,7 +20209,7 @@ const S4 = ut.extend({
|
|
|
20190
20209
|
return t.json(r);
|
|
20191
20210
|
}
|
|
20192
20211
|
).openapi(
|
|
20193
|
-
|
|
20212
|
+
x({
|
|
20194
20213
|
tags: ["forms"],
|
|
20195
20214
|
method: "delete",
|
|
20196
20215
|
path: "/{id}",
|
|
@@ -20222,7 +20241,7 @@ const S4 = ut.extend({
|
|
|
20222
20241
|
return t.text("OK");
|
|
20223
20242
|
}
|
|
20224
20243
|
).openapi(
|
|
20225
|
-
|
|
20244
|
+
x({
|
|
20226
20245
|
tags: ["forms"],
|
|
20227
20246
|
method: "patch",
|
|
20228
20247
|
path: "/{id}",
|
|
@@ -20271,7 +20290,7 @@ const S4 = ut.extend({
|
|
|
20271
20290
|
return t.json(s);
|
|
20272
20291
|
}
|
|
20273
20292
|
).openapi(
|
|
20274
|
-
|
|
20293
|
+
x({
|
|
20275
20294
|
tags: ["forms"],
|
|
20276
20295
|
method: "post",
|
|
20277
20296
|
path: "/",
|
|
@@ -20310,7 +20329,7 @@ const S4 = ut.extend({
|
|
|
20310
20329
|
), E4 = ut.extend({
|
|
20311
20330
|
roles: o.array(Pr)
|
|
20312
20331
|
}), C4 = new W().openapi(
|
|
20313
|
-
|
|
20332
|
+
x({
|
|
20314
20333
|
tags: ["roles"],
|
|
20315
20334
|
method: "get",
|
|
20316
20335
|
path: "/",
|
|
@@ -20347,7 +20366,7 @@ const S4 = ut.extend({
|
|
|
20347
20366
|
return r ? t.json(a) : t.json(a.roles);
|
|
20348
20367
|
}
|
|
20349
20368
|
).openapi(
|
|
20350
|
-
|
|
20369
|
+
x({
|
|
20351
20370
|
tags: ["roles"],
|
|
20352
20371
|
method: "get",
|
|
20353
20372
|
path: "/{id}",
|
|
@@ -20382,7 +20401,7 @@ const S4 = ut.extend({
|
|
|
20382
20401
|
return t.json(n);
|
|
20383
20402
|
}
|
|
20384
20403
|
).openapi(
|
|
20385
|
-
|
|
20404
|
+
x({
|
|
20386
20405
|
tags: ["roles"],
|
|
20387
20406
|
method: "post",
|
|
20388
20407
|
path: "/",
|
|
@@ -20419,7 +20438,7 @@ const S4 = ut.extend({
|
|
|
20419
20438
|
return t.json(n, { status: 201 });
|
|
20420
20439
|
}
|
|
20421
20440
|
).openapi(
|
|
20422
|
-
|
|
20441
|
+
x({
|
|
20423
20442
|
tags: ["roles"],
|
|
20424
20443
|
method: "patch",
|
|
20425
20444
|
path: "/{id}",
|
|
@@ -20466,7 +20485,7 @@ const S4 = ut.extend({
|
|
|
20466
20485
|
return t.json(i);
|
|
20467
20486
|
}
|
|
20468
20487
|
).openapi(
|
|
20469
|
-
|
|
20488
|
+
x({
|
|
20470
20489
|
tags: ["roles"],
|
|
20471
20490
|
method: "delete",
|
|
20472
20491
|
path: "/{id}",
|
|
@@ -20496,7 +20515,7 @@ const S4 = ut.extend({
|
|
|
20496
20515
|
return t.text("OK");
|
|
20497
20516
|
}
|
|
20498
20517
|
).openapi(
|
|
20499
|
-
|
|
20518
|
+
x({
|
|
20500
20519
|
tags: ["roles"],
|
|
20501
20520
|
method: "get",
|
|
20502
20521
|
path: "/{id}/permissions",
|
|
@@ -20545,7 +20564,7 @@ const S4 = ut.extend({
|
|
|
20545
20564
|
return t.json(c);
|
|
20546
20565
|
}
|
|
20547
20566
|
).openapi(
|
|
20548
|
-
|
|
20567
|
+
x({
|
|
20549
20568
|
tags: ["roles"],
|
|
20550
20569
|
method: "post",
|
|
20551
20570
|
path: "/{id}/permissions",
|
|
@@ -20606,7 +20625,7 @@ const S4 = ut.extend({
|
|
|
20606
20625
|
);
|
|
20607
20626
|
}
|
|
20608
20627
|
).openapi(
|
|
20609
|
-
|
|
20628
|
+
x({
|
|
20610
20629
|
tags: ["roles"],
|
|
20611
20630
|
method: "delete",
|
|
20612
20631
|
path: "/{id}/permissions",
|
|
@@ -20662,7 +20681,7 @@ const S4 = ut.extend({
|
|
|
20662
20681
|
), N4 = ut.extend({
|
|
20663
20682
|
resource_servers: o.array(Or)
|
|
20664
20683
|
}), j4 = new W().openapi(
|
|
20665
|
-
|
|
20684
|
+
x({
|
|
20666
20685
|
tags: ["resource-servers"],
|
|
20667
20686
|
method: "get",
|
|
20668
20687
|
path: "/",
|
|
@@ -20708,7 +20727,7 @@ const S4 = ut.extend({
|
|
|
20708
20727
|
return i ? t.json(c) : t.json(c.resource_servers);
|
|
20709
20728
|
}
|
|
20710
20729
|
).openapi(
|
|
20711
|
-
|
|
20730
|
+
x({
|
|
20712
20731
|
tags: ["resource-servers"],
|
|
20713
20732
|
method: "get",
|
|
20714
20733
|
path: "/{id}",
|
|
@@ -20746,7 +20765,7 @@ const S4 = ut.extend({
|
|
|
20746
20765
|
return t.json(r);
|
|
20747
20766
|
}
|
|
20748
20767
|
).openapi(
|
|
20749
|
-
|
|
20768
|
+
x({
|
|
20750
20769
|
tags: ["resource-servers"],
|
|
20751
20770
|
method: "delete",
|
|
20752
20771
|
path: "/{id}",
|
|
@@ -20778,7 +20797,7 @@ const S4 = ut.extend({
|
|
|
20778
20797
|
return t.text("OK");
|
|
20779
20798
|
}
|
|
20780
20799
|
).openapi(
|
|
20781
|
-
|
|
20800
|
+
x({
|
|
20782
20801
|
tags: ["resource-servers"],
|
|
20783
20802
|
method: "patch",
|
|
20784
20803
|
path: "/{id}",
|
|
@@ -20834,7 +20853,7 @@ const S4 = ut.extend({
|
|
|
20834
20853
|
return t.json(s);
|
|
20835
20854
|
}
|
|
20836
20855
|
).openapi(
|
|
20837
|
-
|
|
20856
|
+
x({
|
|
20838
20857
|
tags: ["resource-servers"],
|
|
20839
20858
|
method: "post",
|
|
20840
20859
|
path: "/",
|
|
@@ -20906,7 +20925,7 @@ const S4 = ut.extend({
|
|
|
20906
20925
|
}), O4 = ut.extend({
|
|
20907
20926
|
client_grants: o.array(Ir)
|
|
20908
20927
|
}), P4 = new W().openapi(
|
|
20909
|
-
|
|
20928
|
+
x({
|
|
20910
20929
|
tags: ["client-grants"],
|
|
20911
20930
|
method: "get",
|
|
20912
20931
|
path: "/",
|
|
@@ -20957,7 +20976,7 @@ const S4 = ut.extend({
|
|
|
20957
20976
|
return i ? t.json(w) : t.json(w.client_grants);
|
|
20958
20977
|
}
|
|
20959
20978
|
).openapi(
|
|
20960
|
-
|
|
20979
|
+
x({
|
|
20961
20980
|
tags: ["client-grants"],
|
|
20962
20981
|
method: "get",
|
|
20963
20982
|
path: "/{id}",
|
|
@@ -20994,7 +21013,7 @@ const S4 = ut.extend({
|
|
|
20994
21013
|
return t.json(r);
|
|
20995
21014
|
}
|
|
20996
21015
|
).openapi(
|
|
20997
|
-
|
|
21016
|
+
x({
|
|
20998
21017
|
tags: ["client-grants"],
|
|
20999
21018
|
method: "delete",
|
|
21000
21019
|
path: "/{id}",
|
|
@@ -21026,7 +21045,7 @@ const S4 = ut.extend({
|
|
|
21026
21045
|
return t.text("OK");
|
|
21027
21046
|
}
|
|
21028
21047
|
).openapi(
|
|
21029
|
-
|
|
21048
|
+
x({
|
|
21030
21049
|
tags: ["client-grants"],
|
|
21031
21050
|
method: "patch",
|
|
21032
21051
|
path: "/{id}",
|
|
@@ -21083,7 +21102,7 @@ const S4 = ut.extend({
|
|
|
21083
21102
|
return t.json(a);
|
|
21084
21103
|
}
|
|
21085
21104
|
).openapi(
|
|
21086
|
-
|
|
21105
|
+
x({
|
|
21087
21106
|
tags: ["client-grants"],
|
|
21088
21107
|
method: "post",
|
|
21089
21108
|
path: "/",
|
|
@@ -21191,7 +21210,7 @@ const S4 = ut.extend({
|
|
|
21191
21210
|
description: "Array of user IDs to remove from the organization"
|
|
21192
21211
|
})
|
|
21193
21212
|
}), q4 = new W().openapi(
|
|
21194
|
-
|
|
21213
|
+
x({
|
|
21195
21214
|
tags: ["organizations"],
|
|
21196
21215
|
method: "get",
|
|
21197
21216
|
path: "/",
|
|
@@ -21231,7 +21250,7 @@ const S4 = ut.extend({
|
|
|
21231
21250
|
return i ? t.json(c) : t.json(c.organizations);
|
|
21232
21251
|
}
|
|
21233
21252
|
).openapi(
|
|
21234
|
-
|
|
21253
|
+
x({
|
|
21235
21254
|
tags: ["organizations"],
|
|
21236
21255
|
method: "get",
|
|
21237
21256
|
path: "/{id}",
|
|
@@ -21266,7 +21285,7 @@ const S4 = ut.extend({
|
|
|
21266
21285
|
return t.json(r);
|
|
21267
21286
|
}
|
|
21268
21287
|
).openapi(
|
|
21269
|
-
|
|
21288
|
+
x({
|
|
21270
21289
|
tags: ["organizations"],
|
|
21271
21290
|
method: "delete",
|
|
21272
21291
|
path: "/{id}",
|
|
@@ -21296,7 +21315,7 @@ const S4 = ut.extend({
|
|
|
21296
21315
|
return t.text("OK");
|
|
21297
21316
|
}
|
|
21298
21317
|
).openapi(
|
|
21299
|
-
|
|
21318
|
+
x({
|
|
21300
21319
|
tags: ["organizations"],
|
|
21301
21320
|
method: "patch",
|
|
21302
21321
|
path: "/{id}",
|
|
@@ -21345,7 +21364,7 @@ const S4 = ut.extend({
|
|
|
21345
21364
|
return t.json(s);
|
|
21346
21365
|
}
|
|
21347
21366
|
).openapi(
|
|
21348
|
-
|
|
21367
|
+
x({
|
|
21349
21368
|
tags: ["organizations"],
|
|
21350
21369
|
method: "post",
|
|
21351
21370
|
path: "/",
|
|
@@ -21388,7 +21407,7 @@ const S4 = ut.extend({
|
|
|
21388
21407
|
return t.json(i, { status: 201 });
|
|
21389
21408
|
}
|
|
21390
21409
|
).openapi(
|
|
21391
|
-
|
|
21410
|
+
x({
|
|
21392
21411
|
tags: ["organizations"],
|
|
21393
21412
|
method: "get",
|
|
21394
21413
|
path: "/{id}/members",
|
|
@@ -21455,7 +21474,7 @@ const S4 = ut.extend({
|
|
|
21455
21474
|
}) : t.json(d);
|
|
21456
21475
|
}
|
|
21457
21476
|
).openapi(
|
|
21458
|
-
|
|
21477
|
+
x({
|
|
21459
21478
|
tags: ["organizations"],
|
|
21460
21479
|
method: "post",
|
|
21461
21480
|
path: "/{id}/members",
|
|
@@ -21505,7 +21524,7 @@ const S4 = ut.extend({
|
|
|
21505
21524
|
return new Response(null, { status: 204 });
|
|
21506
21525
|
}
|
|
21507
21526
|
).openapi(
|
|
21508
|
-
|
|
21527
|
+
x({
|
|
21509
21528
|
tags: ["organizations"],
|
|
21510
21529
|
method: "delete",
|
|
21511
21530
|
path: "/{id}/members",
|
|
@@ -21553,7 +21572,7 @@ const S4 = ut.extend({
|
|
|
21553
21572
|
return t.json({ message: "Members removed successfully" });
|
|
21554
21573
|
}
|
|
21555
21574
|
).openapi(
|
|
21556
|
-
|
|
21575
|
+
x({
|
|
21557
21576
|
tags: ["organizations"],
|
|
21558
21577
|
method: "get",
|
|
21559
21578
|
path: "/{id}/members/{user_id}/roles",
|
|
@@ -21601,7 +21620,7 @@ const S4 = ut.extend({
|
|
|
21601
21620
|
return t.json(a);
|
|
21602
21621
|
}
|
|
21603
21622
|
).openapi(
|
|
21604
|
-
|
|
21623
|
+
x({
|
|
21605
21624
|
tags: ["organizations"],
|
|
21606
21625
|
method: "post",
|
|
21607
21626
|
path: "/{id}/members/{user_id}/roles",
|
|
@@ -21664,7 +21683,7 @@ const S4 = ut.extend({
|
|
|
21664
21683
|
);
|
|
21665
21684
|
}
|
|
21666
21685
|
).openapi(
|
|
21667
|
-
|
|
21686
|
+
x({
|
|
21668
21687
|
tags: ["organizations"],
|
|
21669
21688
|
method: "delete",
|
|
21670
21689
|
path: "/{id}/members/{user_id}/roles",
|
|
@@ -21721,7 +21740,7 @@ const S4 = ut.extend({
|
|
|
21721
21740
|
return t.json({ message: "Roles removed successfully" });
|
|
21722
21741
|
}
|
|
21723
21742
|
).openapi(
|
|
21724
|
-
|
|
21743
|
+
x({
|
|
21725
21744
|
tags: ["organizations"],
|
|
21726
21745
|
method: "get",
|
|
21727
21746
|
path: "/{id}/roles",
|
|
@@ -21766,7 +21785,7 @@ const S4 = ut.extend({
|
|
|
21766
21785
|
return t.json(l.roles);
|
|
21767
21786
|
}
|
|
21768
21787
|
).openapi(
|
|
21769
|
-
|
|
21788
|
+
x({
|
|
21770
21789
|
tags: ["organizations"],
|
|
21771
21790
|
method: "get",
|
|
21772
21791
|
path: "/{id}/invitations",
|
|
@@ -21818,8 +21837,8 @@ const S4 = ut.extend({
|
|
|
21818
21837
|
const g = Xe(l);
|
|
21819
21838
|
if (g) {
|
|
21820
21839
|
const { sort_by: _, sort_order: w } = g;
|
|
21821
|
-
f.sort((
|
|
21822
|
-
const j =
|
|
21840
|
+
f.sort((k, A) => {
|
|
21841
|
+
const j = k[_], N = A[_];
|
|
21823
21842
|
if (j === void 0 || N === void 0 || j === N) return 0;
|
|
21824
21843
|
const O = j < N ? -1 : 1;
|
|
21825
21844
|
return w === "asc" ? O : -O;
|
|
@@ -21830,8 +21849,8 @@ const S4 = ut.extend({
|
|
|
21830
21849
|
const g = a.split(",").map((_) => _.trim());
|
|
21831
21850
|
f = f.map((_) => {
|
|
21832
21851
|
const w = {};
|
|
21833
|
-
for (const
|
|
21834
|
-
(c ? g.includes(
|
|
21852
|
+
for (const k of Object.keys(_))
|
|
21853
|
+
(c ? g.includes(k) : !g.includes(k)) && (w[k] = _[k]);
|
|
21835
21854
|
return w;
|
|
21836
21855
|
});
|
|
21837
21856
|
}
|
|
@@ -21843,7 +21862,7 @@ const S4 = ut.extend({
|
|
|
21843
21862
|
}) : t.json(f);
|
|
21844
21863
|
}
|
|
21845
21864
|
).openapi(
|
|
21846
|
-
|
|
21865
|
+
x({
|
|
21847
21866
|
tags: ["organizations"],
|
|
21848
21867
|
method: "get",
|
|
21849
21868
|
path: "/{id}/invitations/{invitation_id}",
|
|
@@ -21888,7 +21907,7 @@ const S4 = ut.extend({
|
|
|
21888
21907
|
return t.json(i);
|
|
21889
21908
|
}
|
|
21890
21909
|
).openapi(
|
|
21891
|
-
|
|
21910
|
+
x({
|
|
21892
21911
|
tags: ["organizations"],
|
|
21893
21912
|
method: "post",
|
|
21894
21913
|
path: "/{id}/invitations",
|
|
@@ -21941,7 +21960,7 @@ const S4 = ut.extend({
|
|
|
21941
21960
|
return t.json(l, { status: 201 });
|
|
21942
21961
|
}
|
|
21943
21962
|
).openapi(
|
|
21944
|
-
|
|
21963
|
+
x({
|
|
21945
21964
|
tags: ["organizations"],
|
|
21946
21965
|
method: "delete",
|
|
21947
21966
|
path: "/{id}/invitations/{invitation_id}",
|
|
@@ -22353,22 +22372,21 @@ var t$ = /* @__PURE__ */ new Map([
|
|
|
22353
22372
|
}
|
|
22354
22373
|
}, nl = class extends It {
|
|
22355
22374
|
toStringToBuffer(t) {
|
|
22356
|
-
const { children: e } = this, n = this.
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
if (n instanceof Promise)
|
|
22375
|
+
const { children: e } = this, n = { ...this.props };
|
|
22376
|
+
e.length && (n.children = e.length === 1 ? e[0] : e);
|
|
22377
|
+
const r = this.tag.call(null, n);
|
|
22378
|
+
if (!(typeof r == "boolean" || r == null))
|
|
22379
|
+
if (r instanceof Promise)
|
|
22362
22380
|
if (ei.length === 0)
|
|
22363
|
-
t.unshift("",
|
|
22381
|
+
t.unshift("", r);
|
|
22364
22382
|
else {
|
|
22365
|
-
const
|
|
22383
|
+
const i = ei.map((s) => [s, s.values.at(-1)]);
|
|
22366
22384
|
t.unshift(
|
|
22367
22385
|
"",
|
|
22368
|
-
|
|
22386
|
+
r.then((s) => (s instanceof It && (s.localContexts = i), s))
|
|
22369
22387
|
);
|
|
22370
22388
|
}
|
|
22371
|
-
else
|
|
22389
|
+
else r instanceof It ? r.toStringToBuffer(t) : typeof r == "number" || r.isEscaped ? (t[0] += r, r.callbacks && (t.callbacks ||= [], t.callbacks.push(...r.callbacks))) : In(r, t);
|
|
22372
22390
|
}
|
|
22373
22391
|
}, oy = class extends It {
|
|
22374
22392
|
toStringToBuffer(t) {
|
|
@@ -22583,8 +22601,8 @@ class p$ {
|
|
|
22583
22601
|
}
|
|
22584
22602
|
let e = this.H[0], n = this.H[1], r = this.H[2], i = this.H[3], s = this.H[4], a = this.H[5], c = this.H[6], l = this.H[7];
|
|
22585
22603
|
for (let d = 0; d < 64; d++) {
|
|
22586
|
-
const p = (Mt(s, 6) ^ Mt(s, 11) ^ Mt(s, 25)) >>> 0, f = (s & a ^ ~s & c) >>> 0, g = l + p + f + f$[d] + this.w[d] | 0, _ = (Mt(e, 2) ^ Mt(e, 13) ^ Mt(e, 22)) >>> 0, w = (e & n ^ e & r ^ n & r) >>> 0,
|
|
22587
|
-
l = c, c = a, a = s, s = i + g | 0, i = r, r = n, n = e, e = g +
|
|
22604
|
+
const p = (Mt(s, 6) ^ Mt(s, 11) ^ Mt(s, 25)) >>> 0, f = (s & a ^ ~s & c) >>> 0, g = l + p + f + f$[d] + this.w[d] | 0, _ = (Mt(e, 2) ^ Mt(e, 13) ^ Mt(e, 22)) >>> 0, w = (e & n ^ e & r ^ n & r) >>> 0, k = _ + w | 0;
|
|
22605
|
+
l = c, c = a, a = s, s = i + g | 0, i = r, r = n, n = e, e = g + k | 0;
|
|
22588
22606
|
}
|
|
22589
22607
|
this.H[0] = e + this.H[0] | 0, this.H[1] = n + this.H[1] | 0, this.H[2] = r + this.H[2] | 0, this.H[3] = i + this.H[3] | 0, this.H[4] = s + this.H[4] | 0, this.H[5] = a + this.H[5] | 0, this.H[6] = c + this.H[6] | 0, this.H[7] = l + this.H[7] | 0;
|
|
22590
22608
|
}
|
|
@@ -23857,8 +23875,8 @@ async function mg(t, { code: e, state: n }) {
|
|
|
23857
23875
|
if (!s)
|
|
23858
23876
|
throw new D(403, { message: "Session not found" });
|
|
23859
23877
|
if (s.authorization_url) {
|
|
23860
|
-
const w = new URL(s.authorization_url).hostname,
|
|
23861
|
-
if (w !==
|
|
23878
|
+
const w = new URL(s.authorization_url).hostname, k = t.var.host || "";
|
|
23879
|
+
if (w !== k && w) {
|
|
23862
23880
|
const A = new URL(`https://${w}/callback`);
|
|
23863
23881
|
return A.searchParams.set("state", n), A.searchParams.set("code", e), new Response("Redirecting", {
|
|
23864
23882
|
status: 307,
|
|
@@ -23915,7 +23933,10 @@ async function mg(t, { code: e, state: n }) {
|
|
|
23915
23933
|
authParams: s.authParams,
|
|
23916
23934
|
loginSession: s,
|
|
23917
23935
|
user: _,
|
|
23918
|
-
|
|
23936
|
+
authStrategy: {
|
|
23937
|
+
strategy: c.strategy,
|
|
23938
|
+
strategy_type: "social"
|
|
23939
|
+
}
|
|
23919
23940
|
});
|
|
23920
23941
|
}
|
|
23921
23942
|
async function _g(t, e, n, r, i, s) {
|
|
@@ -23952,7 +23973,7 @@ async function _g(t, e, n, r, i, s) {
|
|
|
23952
23973
|
);
|
|
23953
23974
|
}
|
|
23954
23975
|
const Y$ = new W().openapi(
|
|
23955
|
-
|
|
23976
|
+
x({
|
|
23956
23977
|
tags: ["oauth2"],
|
|
23957
23978
|
method: "get",
|
|
23958
23979
|
path: "/",
|
|
@@ -24023,7 +24044,7 @@ const Y$ = new W().openapi(
|
|
|
24023
24044
|
return c;
|
|
24024
24045
|
}
|
|
24025
24046
|
).openapi(
|
|
24026
|
-
|
|
24047
|
+
x({
|
|
24027
24048
|
tags: ["oauth2"],
|
|
24028
24049
|
method: "post",
|
|
24029
24050
|
path: "/",
|
|
@@ -24130,7 +24151,7 @@ function Q$(t, e, n = {}) {
|
|
|
24130
24151
|
return t.hostname === e.hostname;
|
|
24131
24152
|
}
|
|
24132
24153
|
const ek = new W().openapi(
|
|
24133
|
-
|
|
24154
|
+
x({
|
|
24134
24155
|
tags: ["oauth2"],
|
|
24135
24156
|
method: "get",
|
|
24136
24157
|
path: "/",
|
|
@@ -24227,7 +24248,7 @@ const ek = new W().openapi(
|
|
|
24227
24248
|
given_name: o.string().optional(),
|
|
24228
24249
|
email_verified: o.boolean()
|
|
24229
24250
|
}), tk = new W().openapi(
|
|
24230
|
-
|
|
24251
|
+
x({
|
|
24231
24252
|
tags: ["oauth2"],
|
|
24232
24253
|
method: "get",
|
|
24233
24254
|
path: "/",
|
|
@@ -24260,7 +24281,7 @@ const ek = new W().openapi(
|
|
|
24260
24281
|
return t.json(yg.parse({ ...e, sub: e.user_id }));
|
|
24261
24282
|
}
|
|
24262
24283
|
), nk = new W().openapi(
|
|
24263
|
-
|
|
24284
|
+
x({
|
|
24264
24285
|
tags: ["well known"],
|
|
24265
24286
|
method: "get",
|
|
24266
24287
|
path: "/jwks.json",
|
|
@@ -24290,7 +24311,7 @@ const ek = new W().openapi(
|
|
|
24290
24311
|
);
|
|
24291
24312
|
}
|
|
24292
24313
|
).openapi(
|
|
24293
|
-
|
|
24314
|
+
x({
|
|
24294
24315
|
tags: ["well known"],
|
|
24295
24316
|
method: "get",
|
|
24296
24317
|
path: "/openid-configuration",
|
|
@@ -25436,8 +25457,8 @@ var Yk = ";ext=", kr = function(e) {
|
|
|
25436
25457
|
return "([".concat(Pt, "]{1,").concat(e, "})");
|
|
25437
25458
|
};
|
|
25438
25459
|
function Iy(t) {
|
|
25439
|
-
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", c = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", f = "[ \\t]*", g = "(?:,{2}|;)", _ = Yk + kr(e), w = s + l + a + kr(e) + c,
|
|
25440
|
-
return _ + "|" + w + "|" +
|
|
25460
|
+
var e = "20", n = "15", r = "9", i = "6", s = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", c = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", d = "(?:[xx##~~]|int|int)", p = "[- ]+", f = "[ \\t]*", g = "(?:,{2}|;)", _ = Yk + kr(e), w = s + l + a + kr(e) + c, k = s + d + a + kr(r) + c, A = p + kr(i) + "#", j = f + g + a + kr(n) + c, N = f + "(?:,)+" + a + kr(r) + c;
|
|
25461
|
+
return _ + "|" + w + "|" + k + "|" + A + "|" + j + "|" + N;
|
|
25441
25462
|
}
|
|
25442
25463
|
var Qk = "[" + Pt + "]{" + wp + "}", e5 = "[" + bp + "]{0,1}(?:[" + ya + "]*[" + Pt + "]){3,}[" + ya + Pt + "]*", t5 = new RegExp("^[" + bp + "]{0,1}(?:[" + ya + "]*[" + Pt + "]){1,2}$", "i"), n5 = e5 + // Phone number extensions
|
|
25443
25464
|
"(?:" + Iy() + ")?", r5 = new RegExp(
|
|
@@ -26455,7 +26476,10 @@ async function kp(t, e) {
|
|
|
26455
26476
|
client: n.client,
|
|
26456
26477
|
user: n.user,
|
|
26457
26478
|
loginSession: n.loginSession,
|
|
26458
|
-
|
|
26479
|
+
authStrategy: {
|
|
26480
|
+
strategy: "email",
|
|
26481
|
+
strategy_type: "passwordless"
|
|
26482
|
+
}
|
|
26459
26483
|
});
|
|
26460
26484
|
}
|
|
26461
26485
|
const zg = o.object({
|
|
@@ -26509,7 +26533,7 @@ function A6(t) {
|
|
|
26509
26533
|
return {};
|
|
26510
26534
|
}
|
|
26511
26535
|
const E6 = new W().openapi(
|
|
26512
|
-
|
|
26536
|
+
x({
|
|
26513
26537
|
tags: ["oauth2"],
|
|
26514
26538
|
method: "post",
|
|
26515
26539
|
path: "/",
|
|
@@ -26797,6 +26821,11 @@ async function By(t, e, n, r, i) {
|
|
|
26797
26821
|
tenantId: s.id
|
|
26798
26822
|
}
|
|
26799
26823
|
});
|
|
26824
|
+
const f = oe(t, {
|
|
26825
|
+
type: ie.SUCCESS_CHANGE_PASSWORD_REQUEST,
|
|
26826
|
+
description: e
|
|
26827
|
+
});
|
|
26828
|
+
se(t, t.env.data.logs.create(s.id, f));
|
|
26800
26829
|
}
|
|
26801
26830
|
async function Sp(t, { to: e, code: n, language: r }) {
|
|
26802
26831
|
const i = await t.env.data.tenants.get(t.var.tenant_id);
|
|
@@ -26957,7 +26986,7 @@ async function I6(t, e, n, r, i) {
|
|
|
26957
26986
|
});
|
|
26958
26987
|
}
|
|
26959
26988
|
const O6 = new W().openapi(
|
|
26960
|
-
|
|
26989
|
+
x({
|
|
26961
26990
|
tags: ["dbconnections"],
|
|
26962
26991
|
method: "post",
|
|
26963
26992
|
path: "/signup",
|
|
@@ -27037,7 +27066,7 @@ const O6 = new W().openapi(
|
|
|
27037
27066
|
});
|
|
27038
27067
|
}
|
|
27039
27068
|
).openapi(
|
|
27040
|
-
|
|
27069
|
+
x({
|
|
27041
27070
|
tags: ["dbconnections"],
|
|
27042
27071
|
method: "post",
|
|
27043
27072
|
path: "/change_password",
|
|
@@ -27109,7 +27138,7 @@ function Bn() {
|
|
|
27109
27138
|
return e.toString();
|
|
27110
27139
|
}
|
|
27111
27140
|
const P6 = new W().openapi(
|
|
27112
|
-
|
|
27141
|
+
x({
|
|
27113
27142
|
tags: ["passwordless"],
|
|
27114
27143
|
method: "post",
|
|
27115
27144
|
path: "/start",
|
|
@@ -27166,7 +27195,7 @@ const P6 = new W().openapi(
|
|
|
27166
27195
|
login_id: _.id,
|
|
27167
27196
|
expires_at: new Date(Date.now() + ms).toISOString(),
|
|
27168
27197
|
redirect_uri: s.redirect_uri
|
|
27169
|
-
}),
|
|
27198
|
+
}), k = s?.ui_locales?.split(" ")?.map((A) => A.split("-")[0])[0];
|
|
27170
27199
|
return i === "link" ? await Ap(t, {
|
|
27171
27200
|
to: l,
|
|
27172
27201
|
code: w.code_id,
|
|
@@ -27174,15 +27203,15 @@ const P6 = new W().openapi(
|
|
|
27174
27203
|
...s,
|
|
27175
27204
|
client_id: r
|
|
27176
27205
|
},
|
|
27177
|
-
language:
|
|
27206
|
+
language: k
|
|
27178
27207
|
}) : await Sp(t, {
|
|
27179
27208
|
to: l,
|
|
27180
27209
|
code: w.code_id,
|
|
27181
|
-
language:
|
|
27210
|
+
language: k
|
|
27182
27211
|
}), t.html("OK");
|
|
27183
27212
|
}
|
|
27184
27213
|
).openapi(
|
|
27185
|
-
|
|
27214
|
+
x({
|
|
27186
27215
|
tags: ["passwordless"],
|
|
27187
27216
|
method: "get",
|
|
27188
27217
|
path: "/verify_redirect",
|
|
@@ -27269,7 +27298,7 @@ const P6 = new W().openapi(
|
|
|
27269
27298
|
const I = O;
|
|
27270
27299
|
"message" in I && typeof I.message == "string" && (_ = I.message);
|
|
27271
27300
|
}
|
|
27272
|
-
const w = t.get("ip"),
|
|
27301
|
+
const w = t.get("ip"), k = t.get("useragent"), A = t.get("auth0_client"), j = fn(A), N = await e.data.loginSessions.create(
|
|
27273
27302
|
f.tenant.id,
|
|
27274
27303
|
{
|
|
27275
27304
|
authParams: {
|
|
@@ -27279,7 +27308,7 @@ const P6 = new W().openapi(
|
|
|
27279
27308
|
expires_at: new Date(Date.now() + ms).toISOString(),
|
|
27280
27309
|
csrf_token: me(),
|
|
27281
27310
|
ip: w,
|
|
27282
|
-
useragent:
|
|
27311
|
+
useragent: k,
|
|
27283
27312
|
auth0Client: j
|
|
27284
27313
|
}
|
|
27285
27314
|
);
|
|
@@ -27374,26 +27403,15 @@ async function Ly(t, e, n, r) {
|
|
|
27374
27403
|
};
|
|
27375
27404
|
}
|
|
27376
27405
|
async function Uy(t, e, n, r, i) {
|
|
27377
|
-
const s = await Ly(t, e, n, r)
|
|
27378
|
-
|
|
27379
|
-
t.env.data,
|
|
27380
|
-
e.tenant.id,
|
|
27381
|
-
s.user,
|
|
27382
|
-
r,
|
|
27383
|
-
{
|
|
27384
|
-
client: e,
|
|
27385
|
-
authParams: n,
|
|
27386
|
-
authStrategy: {
|
|
27387
|
-
strategy: "Username-Password-Authentication",
|
|
27388
|
-
strategy_type: "database"
|
|
27389
|
-
}
|
|
27390
|
-
}
|
|
27391
|
-
);
|
|
27392
|
-
return a instanceof Response ? a : (s.user = a, Kt(t, {
|
|
27406
|
+
const s = await Ly(t, e, n, r);
|
|
27407
|
+
return Kt(t, {
|
|
27393
27408
|
...s,
|
|
27394
27409
|
ticketAuth: i,
|
|
27395
|
-
|
|
27396
|
-
|
|
27410
|
+
authStrategy: {
|
|
27411
|
+
strategy: "Username-Password-Authentication",
|
|
27412
|
+
strategy_type: "database"
|
|
27413
|
+
}
|
|
27414
|
+
});
|
|
27397
27415
|
}
|
|
27398
27416
|
async function T6(t, e, n, r) {
|
|
27399
27417
|
await Na(t, {
|
|
@@ -27441,7 +27459,7 @@ async function T6(t, e, n, r) {
|
|
|
27441
27459
|
await By(t, n, f.code_id, r);
|
|
27442
27460
|
}
|
|
27443
27461
|
const R6 = new W().openapi(
|
|
27444
|
-
|
|
27462
|
+
x({
|
|
27445
27463
|
tags: ["oauth"],
|
|
27446
27464
|
method: "post",
|
|
27447
27465
|
path: "/",
|
|
@@ -27638,18 +27656,18 @@ async function U6(t, e, n, r, i) {
|
|
|
27638
27656
|
if (!l)
|
|
27639
27657
|
throw new D(403, { message: "Client not found" });
|
|
27640
27658
|
t.set("client_id", c.authParams.client_id), await s.data.codes.used(e, n);
|
|
27641
|
-
const d = L6(i);
|
|
27642
|
-
let
|
|
27659
|
+
const d = L6(i), f = l.connections.find((k) => k.name === i)?.strategy || (d === "auth2" ? "Username-Password-Authentication" : "email"), g = f === "Username-Password-Authentication" ? "database" : "passwordless";
|
|
27660
|
+
let _ = await Na(t, {
|
|
27643
27661
|
username: c.authParams.username,
|
|
27644
27662
|
provider: d,
|
|
27645
27663
|
client: l,
|
|
27646
|
-
connection:
|
|
27664
|
+
connection: i,
|
|
27647
27665
|
isSocial: !1,
|
|
27648
27666
|
ip: t.var.ip
|
|
27649
27667
|
});
|
|
27650
|
-
t.set("username",
|
|
27651
|
-
const
|
|
27652
|
-
user:
|
|
27668
|
+
t.set("username", _.email || _.phone_number), t.set("user_id", _.user_id);
|
|
27669
|
+
const w = await Z0(t, {
|
|
27670
|
+
user: _,
|
|
27653
27671
|
client: l,
|
|
27654
27672
|
loginSession: c
|
|
27655
27673
|
});
|
|
@@ -27659,9 +27677,13 @@ async function U6(t, e, n, r, i) {
|
|
|
27659
27677
|
...r
|
|
27660
27678
|
},
|
|
27661
27679
|
loginSession: c,
|
|
27662
|
-
sessionId:
|
|
27663
|
-
user:
|
|
27664
|
-
client: l
|
|
27680
|
+
sessionId: w.id,
|
|
27681
|
+
user: _,
|
|
27682
|
+
client: l,
|
|
27683
|
+
authStrategy: {
|
|
27684
|
+
strategy: f,
|
|
27685
|
+
strategy_type: g
|
|
27686
|
+
}
|
|
27665
27687
|
});
|
|
27666
27688
|
}
|
|
27667
27689
|
async function D6({
|
|
@@ -27679,7 +27701,7 @@ async function D6({
|
|
|
27679
27701
|
organization: f
|
|
27680
27702
|
}) {
|
|
27681
27703
|
const { env: g } = t, _ = new URL(r), w = `${_.protocol}//${_.host}`;
|
|
27682
|
-
async function
|
|
27704
|
+
async function k(ee = "Login required") {
|
|
27683
27705
|
const X = oe(t, {
|
|
27684
27706
|
type: ie.FAILED_SILENT_AUTH,
|
|
27685
27707
|
description: ee
|
|
@@ -27696,11 +27718,11 @@ async function D6({
|
|
|
27696
27718
|
);
|
|
27697
27719
|
}
|
|
27698
27720
|
if (!n || n?.expires_at && new Date(n.expires_at) < /* @__PURE__ */ new Date() || n?.idle_expires_at && new Date(n.idle_expires_at) < /* @__PURE__ */ new Date())
|
|
27699
|
-
return
|
|
27721
|
+
return k();
|
|
27700
27722
|
t.set("user_id", n.user_id);
|
|
27701
27723
|
const j = await g.data.users.get(e.tenant.id, n.user_id);
|
|
27702
27724
|
if (!j)
|
|
27703
|
-
return console.error("User not found", n.user_id),
|
|
27725
|
+
return console.error("User not found", n.user_id), k("User not found");
|
|
27704
27726
|
t.set("username", j.email), t.set("connection", j.connection);
|
|
27705
27727
|
const N = await g.data.loginSessions.create(e.tenant.id, {
|
|
27706
27728
|
csrf_token: me(),
|
|
@@ -27779,7 +27801,7 @@ async function D6({
|
|
|
27779
27801
|
);
|
|
27780
27802
|
}
|
|
27781
27803
|
const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().openapi(
|
|
27782
|
-
|
|
27804
|
+
x({
|
|
27783
27805
|
tags: ["oauth"],
|
|
27784
27806
|
method: "get",
|
|
27785
27807
|
path: "/",
|
|
@@ -27866,7 +27888,7 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27866
27888
|
code_challenge: g,
|
|
27867
27889
|
code_challenge_method: _,
|
|
27868
27890
|
prompt: w,
|
|
27869
|
-
login_ticket:
|
|
27891
|
+
login_ticket: k,
|
|
27870
27892
|
realm: A,
|
|
27871
27893
|
auth0Client: j,
|
|
27872
27894
|
login_hint: N,
|
|
@@ -27941,11 +27963,11 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27941
27963
|
);
|
|
27942
27964
|
if (d && d !== "email")
|
|
27943
27965
|
return gg(t, U, d, J);
|
|
27944
|
-
if (
|
|
27966
|
+
if (k) {
|
|
27945
27967
|
const he = await U6(
|
|
27946
27968
|
t,
|
|
27947
27969
|
U.tenant.id,
|
|
27948
|
-
|
|
27970
|
+
k,
|
|
27949
27971
|
J,
|
|
27950
27972
|
A
|
|
27951
27973
|
);
|
|
@@ -27962,7 +27984,7 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
27962
27984
|
return fe instanceof Response ? fe : t.json(fe);
|
|
27963
27985
|
}
|
|
27964
27986
|
), q6 = new W().openapi(
|
|
27965
|
-
|
|
27987
|
+
x({
|
|
27966
27988
|
tags: ["oauth"],
|
|
27967
27989
|
method: "get",
|
|
27968
27990
|
path: "/",
|
|
@@ -28027,7 +28049,7 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
28027
28049
|
t.req.header("cookie")
|
|
28028
28050
|
), p = d ? await e.data.sessions.get(a.tenant.id, d) : void 0, f = p && !p.revoked_at ? p : void 0, g = new URL(t.req.url);
|
|
28029
28051
|
t.var.custom_domain && (g.hostname = t.var.custom_domain);
|
|
28030
|
-
const { ip: _, auth0_client: w, useragent:
|
|
28052
|
+
const { ip: _, auth0_client: w, useragent: k } = t.var, A = fn(w), j = await e.data.loginSessions.create(
|
|
28031
28053
|
a.tenant.id,
|
|
28032
28054
|
{
|
|
28033
28055
|
expires_at: new Date(
|
|
@@ -28037,7 +28059,7 @@ const M6 = ["email", "sms", "Username-Password-Authentication"], z6 = new W().op
|
|
|
28037
28059
|
csrf_token: me(),
|
|
28038
28060
|
authorization_url: g.toString(),
|
|
28039
28061
|
ip: _,
|
|
28040
|
-
useragent:
|
|
28062
|
+
useragent: k,
|
|
28041
28063
|
auth0Client: A
|
|
28042
28064
|
}
|
|
28043
28065
|
);
|
|
@@ -28388,16 +28410,16 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28388
28410
|
}).filter((ve) => ve !== null), f = l && d ? "email_or_phone_placeholder" : l ? "email_placeholder" : "phone_placeholder", g = y.t(
|
|
28389
28411
|
f,
|
|
28390
28412
|
l && d ? "Email or Phone Number" : l ? "Email Address" : "Phone Number"
|
|
28391
|
-
), _ = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", w = e?.colors?.primary_button_label || "#ffffff",
|
|
28413
|
+
), _ = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", w = e?.colors?.primary_button_label || "#ffffff", k = e?.colors?.body_text || "#333333", A = e?.colors?.input_background || "#ffffff", j = e?.colors?.input_border || "#d1d5db", N = e?.colors?.input_filled_text || "#111827", O = e?.colors?.error || "#dc2626", I = e?.colors?.widget_background || "#ffffff", U = e?.colors?.widget_border || "#e5e7eb", J = e?.borders?.widget_corner_radius || 8, V = e?.borders?.input_border_radius || 4, ee = e?.borders?.button_border_radius || 4, X = e?.borders?.show_widget_shadow ?? !0, ue = e?.fonts?.title?.size || 24, fe = e?.fonts?.title?.bold ?? !0, he = e?.fonts?.body_text?.size || 14, xe = {
|
|
28392
28414
|
backgroundColor: I,
|
|
28393
28415
|
borderColor: U,
|
|
28394
28416
|
borderRadius: `${J}px`,
|
|
28395
28417
|
boxShadow: X ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
28396
|
-
color:
|
|
28418
|
+
color: k
|
|
28397
28419
|
}, be = {
|
|
28398
28420
|
fontSize: `${ue}px`,
|
|
28399
28421
|
fontWeight: fe ? "700" : "400",
|
|
28400
|
-
color: e?.colors?.header ||
|
|
28422
|
+
color: e?.colors?.header || k
|
|
28401
28423
|
}, Lt = {
|
|
28402
28424
|
fontSize: `${he}px`,
|
|
28403
28425
|
color: e?.colors?.input_labels_placeholders || "#6b7280"
|
|
@@ -28491,7 +28513,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28491
28513
|
style: {
|
|
28492
28514
|
borderColor: j,
|
|
28493
28515
|
borderRadius: `${ee}px`,
|
|
28494
|
-
color:
|
|
28516
|
+
color: k
|
|
28495
28517
|
},
|
|
28496
28518
|
children: [
|
|
28497
28519
|
/* @__PURE__ */ u(G, { className: "h-5 w-5" }),
|
|
@@ -28876,7 +28898,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28876
28898
|
] })
|
|
28877
28899
|
] });
|
|
28878
28900
|
}, r8 = new W().openapi(
|
|
28879
|
-
|
|
28901
|
+
x({
|
|
28880
28902
|
tags: ["login"],
|
|
28881
28903
|
method: "get",
|
|
28882
28904
|
path: "/",
|
|
@@ -28930,7 +28952,7 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
28930
28952
|
);
|
|
28931
28953
|
}
|
|
28932
28954
|
).openapi(
|
|
28933
|
-
|
|
28955
|
+
x({
|
|
28934
28956
|
tags: ["login"],
|
|
28935
28957
|
method: "post",
|
|
28936
28958
|
path: "/",
|
|
@@ -29076,19 +29098,19 @@ const te = /* @__PURE__ */ vv(K6), bn = ({
|
|
|
29076
29098
|
r.login_selection
|
|
29077
29099
|
))
|
|
29078
29100
|
return t.redirect(`/u/enter-password?state=${n}`);
|
|
29079
|
-
let
|
|
29101
|
+
let k = Bn(), A = await e.data.codes.get(
|
|
29080
29102
|
i.tenant.id,
|
|
29081
|
-
|
|
29103
|
+
k,
|
|
29082
29104
|
"otp"
|
|
29083
29105
|
);
|
|
29084
29106
|
for (; A; )
|
|
29085
|
-
|
|
29107
|
+
k = Bn(), A = await e.data.codes.get(
|
|
29086
29108
|
i.tenant.id,
|
|
29087
|
-
|
|
29109
|
+
k,
|
|
29088
29110
|
"otp"
|
|
29089
29111
|
);
|
|
29090
29112
|
const j = await t.env.data.codes.create(i.tenant.id, {
|
|
29091
|
-
code_id:
|
|
29113
|
+
code_id: k,
|
|
29092
29114
|
code_type: "otp",
|
|
29093
29115
|
login_id: s.id,
|
|
29094
29116
|
expires_at: new Date(Date.now() + ms).toISOString(),
|
|
@@ -29521,7 +29543,7 @@ var Io = "_hp", i8 = {
|
|
|
29521
29543
|
} else
|
|
29522
29544
|
w = s.querySelectorAll(t);
|
|
29523
29545
|
l = r ? l ?? "" : void 0, r && (p[$s] = l);
|
|
29524
|
-
const
|
|
29546
|
+
const k = Cp(
|
|
29525
29547
|
(N) => {
|
|
29526
29548
|
if (_.length > 0) {
|
|
29527
29549
|
let O = !1;
|
|
@@ -29549,7 +29571,7 @@ var Io = "_hp", i8 = {
|
|
|
29549
29571
|
[l]
|
|
29550
29572
|
), A = Np(e.ref, (N) => {
|
|
29551
29573
|
const O = _[0];
|
|
29552
|
-
if (n === 2 && (N.innerHTML = ""), (g || w) &&
|
|
29574
|
+
if (n === 2 && (N.innerHTML = ""), (g || w) && k(N), !c && !a)
|
|
29553
29575
|
return;
|
|
29554
29576
|
let I = Yg[N.getAttribute(O)] ||= new Promise(
|
|
29555
29577
|
(U, J) => {
|
|
@@ -29563,7 +29585,7 @@ var Io = "_hp", i8 = {
|
|
|
29563
29585
|
const N = vs[t][0];
|
|
29564
29586
|
if (e[N]) {
|
|
29565
29587
|
const O = e[N], I = Yg[O] ||= new Promise((U, J) => {
|
|
29566
|
-
|
|
29588
|
+
k(f), f.addEventListener("load", U), f.addEventListener("error", J);
|
|
29567
29589
|
});
|
|
29568
29590
|
y8(I);
|
|
29569
29591
|
}
|
|
@@ -29826,7 +29848,7 @@ const gr = (t) => {
|
|
|
29826
29848
|
}) => {
|
|
29827
29849
|
const c = new URLSearchParams({
|
|
29828
29850
|
state: i
|
|
29829
|
-
}), l = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", d = e?.colors?.primary_button_label || "#ffffff", p = e?.colors?.body_text || "#333333", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.widget_background || "#ffffff", _ = e?.colors?.widget_border || "#e5e7eb", w = e?.borders?.widget_corner_radius || 8,
|
|
29851
|
+
}), l = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", d = e?.colors?.primary_button_label || "#ffffff", p = e?.colors?.body_text || "#333333", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.widget_background || "#ffffff", _ = e?.colors?.widget_border || "#e5e7eb", w = e?.borders?.widget_corner_radius || 8, k = e?.borders?.button_border_radius || 4, A = e?.borders?.show_widget_shadow ?? !0, j = e?.fonts?.title?.size || 24, N = e?.fonts?.title?.bold ?? !0, O = e?.fonts?.body_text?.size || 14, I = {
|
|
29830
29852
|
backgroundColor: g,
|
|
29831
29853
|
borderColor: _,
|
|
29832
29854
|
borderRadius: `${w}px`,
|
|
@@ -29842,7 +29864,7 @@ const gr = (t) => {
|
|
|
29842
29864
|
}, V = {
|
|
29843
29865
|
backgroundColor: l,
|
|
29844
29866
|
color: d,
|
|
29845
|
-
borderRadius: `${
|
|
29867
|
+
borderRadius: `${k}px`
|
|
29846
29868
|
}, ee = e?.widget?.logo_position || "center", X = ee === "left" ? "text-left" : ee === "right" ? "text-right" : "text-center", ue = e?.widget?.logo_url || n?.logo_url, fe = ee !== "none" && ue;
|
|
29847
29869
|
return /* @__PURE__ */ u("div", { className: te("flex flex-col gap-6 w-full max-w-sm", a), children: [
|
|
29848
29870
|
/* @__PURE__ */ u(bn, { style: I, className: "border", children: [
|
|
@@ -29949,7 +29971,7 @@ const gr = (t) => {
|
|
|
29949
29971
|
),
|
|
29950
29972
|
style: {
|
|
29951
29973
|
borderColor: f,
|
|
29952
|
-
borderRadius: `${
|
|
29974
|
+
borderRadius: `${k}px`,
|
|
29953
29975
|
color: p
|
|
29954
29976
|
},
|
|
29955
29977
|
children: y.t(
|
|
@@ -29971,7 +29993,7 @@ const gr = (t) => {
|
|
|
29971
29993
|
a ? /* @__PURE__ */ u(wt, { state: a }) : ""
|
|
29972
29994
|
] });
|
|
29973
29995
|
}, O8 = new W().openapi(
|
|
29974
|
-
|
|
29996
|
+
x({
|
|
29975
29997
|
tags: ["login"],
|
|
29976
29998
|
method: "get",
|
|
29977
29999
|
path: "/",
|
|
@@ -30084,7 +30106,7 @@ const gr = (t) => {
|
|
|
30084
30106
|
}
|
|
30085
30107
|
}
|
|
30086
30108
|
).openapi(
|
|
30087
|
-
|
|
30109
|
+
x({
|
|
30088
30110
|
tags: ["login"],
|
|
30089
30111
|
method: "post",
|
|
30090
30112
|
path: "/",
|
|
@@ -30223,11 +30245,12 @@ const gr = (t) => {
|
|
|
30223
30245
|
]
|
|
30224
30246
|
}
|
|
30225
30247
|
);
|
|
30226
|
-
}, T8 = ({ width: t = 22, height: e = 17 }) => /* @__PURE__ */ u(
|
|
30248
|
+
}, T8 = ({ width: t = 22, height: e = 17, className: n }) => /* @__PURE__ */ u(
|
|
30227
30249
|
"svg",
|
|
30228
30250
|
{
|
|
30229
30251
|
width: t,
|
|
30230
30252
|
height: e,
|
|
30253
|
+
className: n,
|
|
30231
30254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30232
30255
|
viewBox: "0 0 576 512",
|
|
30233
30256
|
children: /* @__PURE__ */ u(
|
|
@@ -30238,11 +30261,12 @@ const gr = (t) => {
|
|
|
30238
30261
|
}
|
|
30239
30262
|
)
|
|
30240
30263
|
}
|
|
30241
|
-
), R8 = ({ width: t = 23, height: e = 18 }) => /* @__PURE__ */ u(
|
|
30264
|
+
), R8 = ({ width: t = 23, height: e = 18, className: n }) => /* @__PURE__ */ u(
|
|
30242
30265
|
"svg",
|
|
30243
30266
|
{
|
|
30244
30267
|
width: t,
|
|
30245
30268
|
height: e,
|
|
30269
|
+
className: n,
|
|
30246
30270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30247
30271
|
viewBox: "0 0 640 512",
|
|
30248
30272
|
children: /* @__PURE__ */ u(
|
|
@@ -30256,7 +30280,7 @@ const gr = (t) => {
|
|
|
30256
30280
|
), su = ({
|
|
30257
30281
|
name: t,
|
|
30258
30282
|
placeholder: e = y.t("password")
|
|
30259
|
-
}) => /* @__PURE__ */ u("div", { className: "password-input relative mb-2", children: [
|
|
30283
|
+
}) => /* @__PURE__ */ u("div", { className: "password-input relative mb-2", "data-password-toggle": !0, children: [
|
|
30260
30284
|
/* @__PURE__ */ u(
|
|
30261
30285
|
"input",
|
|
30262
30286
|
{
|
|
@@ -30273,18 +30297,12 @@ const gr = (t) => {
|
|
|
30273
30297
|
type: "button",
|
|
30274
30298
|
"aria-label": y.t("show_password"),
|
|
30275
30299
|
title: y.t("show_password"),
|
|
30276
|
-
className: "
|
|
30277
|
-
|
|
30278
|
-
|
|
30279
|
-
|
|
30280
|
-
|
|
30281
|
-
|
|
30282
|
-
{
|
|
30283
|
-
type: "button",
|
|
30284
|
-
"aria-label": y.t("hide_password"),
|
|
30285
|
-
title: y.t("hide_password"),
|
|
30286
|
-
className: "show-password-toggle-hide !hidden absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",
|
|
30287
|
-
children: /* @__PURE__ */ u(R8, {})
|
|
30300
|
+
className: "absolute right-0 top-0 w-10 h-full rounded-r-lg text-gray-400 column hover:bg-black/5",
|
|
30301
|
+
"data-password-toggle-btn": !0,
|
|
30302
|
+
children: [
|
|
30303
|
+
/* @__PURE__ */ u(T8, { "data-show-icon": !0 }),
|
|
30304
|
+
/* @__PURE__ */ u(R8, { "data-hide-icon": !0, className: "hidden" })
|
|
30305
|
+
]
|
|
30288
30306
|
}
|
|
30289
30307
|
)
|
|
30290
30308
|
] });
|
|
@@ -30386,10 +30404,10 @@ const ul = (t) => {
|
|
|
30386
30404
|
email: i,
|
|
30387
30405
|
className: s
|
|
30388
30406
|
}) => {
|
|
30389
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb",
|
|
30407
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, N = e?.borders?.show_widget_shadow ?? !0, O = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, U = e?.fonts?.body_text?.size || 14, J = {
|
|
30390
30408
|
backgroundColor: _,
|
|
30391
30409
|
borderColor: w,
|
|
30392
|
-
borderRadius: `${
|
|
30410
|
+
borderRadius: `${k}px`,
|
|
30393
30411
|
boxShadow: N ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30394
30412
|
color: l
|
|
30395
30413
|
}, V = {
|
|
@@ -30547,7 +30565,7 @@ const ul = (t) => {
|
|
|
30547
30565
|
] }) }) })
|
|
30548
30566
|
] }) });
|
|
30549
30567
|
}, U8 = new W().openapi(
|
|
30550
|
-
|
|
30568
|
+
x({
|
|
30551
30569
|
tags: ["login"],
|
|
30552
30570
|
method: "get",
|
|
30553
30571
|
path: "/",
|
|
@@ -30602,7 +30620,7 @@ const ul = (t) => {
|
|
|
30602
30620
|
);
|
|
30603
30621
|
}
|
|
30604
30622
|
).openapi(
|
|
30605
|
-
|
|
30623
|
+
x({
|
|
30606
30624
|
tags: ["login"],
|
|
30607
30625
|
method: "post",
|
|
30608
30626
|
path: "/",
|
|
@@ -30804,9 +30822,9 @@ const ul = (t) => {
|
|
|
30804
30822
|
code: s,
|
|
30805
30823
|
className: a
|
|
30806
30824
|
}) => {
|
|
30807
|
-
const c = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", l = e?.colors?.primary_button_label || "#ffffff", d = e?.colors?.body_text || "#333333", p = e?.colors?.input_background || "#ffffff", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.input_filled_text || "#111827", _ = e?.colors?.error || "#dc2626", w = e?.colors?.widget_background || "#ffffff",
|
|
30825
|
+
const c = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", l = e?.colors?.primary_button_label || "#ffffff", d = e?.colors?.body_text || "#333333", p = e?.colors?.input_background || "#ffffff", f = e?.colors?.input_border || "#d1d5db", g = e?.colors?.input_filled_text || "#111827", _ = e?.colors?.error || "#dc2626", w = e?.colors?.widget_background || "#ffffff", k = e?.colors?.widget_border || "#e5e7eb", A = e?.borders?.widget_corner_radius || 8, j = e?.borders?.input_border_radius || 4, N = e?.borders?.button_border_radius || 4, O = e?.borders?.show_widget_shadow ?? !0, I = e?.fonts?.title?.size || 24, U = e?.fonts?.title?.bold ?? !0, J = e?.fonts?.body_text?.size || 14, V = {
|
|
30808
30826
|
backgroundColor: w,
|
|
30809
|
-
borderColor:
|
|
30827
|
+
borderColor: k,
|
|
30810
30828
|
borderRadius: `${A}px`,
|
|
30811
30829
|
boxShadow: O ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
30812
30830
|
color: d
|
|
@@ -31039,7 +31057,7 @@ const ul = (t) => {
|
|
|
31039
31057
|
] })
|
|
31040
31058
|
] }) });
|
|
31041
31059
|
}, D8 = new W().openapi(
|
|
31042
|
-
|
|
31060
|
+
x({
|
|
31043
31061
|
tags: ["login"],
|
|
31044
31062
|
method: "get",
|
|
31045
31063
|
path: "/",
|
|
@@ -31110,7 +31128,7 @@ const ul = (t) => {
|
|
|
31110
31128
|
);
|
|
31111
31129
|
}
|
|
31112
31130
|
).openapi(
|
|
31113
|
-
|
|
31131
|
+
x({
|
|
31114
31132
|
tags: ["login"],
|
|
31115
31133
|
method: "post",
|
|
31116
31134
|
path: "/",
|
|
@@ -31287,7 +31305,7 @@ const ul = (t) => {
|
|
|
31287
31305
|
),
|
|
31288
31306
|
400
|
|
31289
31307
|
);
|
|
31290
|
-
const _ = f?.authParams.username === c.authParams.username, w = `auth2|${ka()}`,
|
|
31308
|
+
const _ = f?.authParams.username === c.authParams.username, w = `auth2|${ka()}`, k = await r.data.users.create(a.tenant.id, {
|
|
31291
31309
|
user_id: w,
|
|
31292
31310
|
email: c.authParams.username,
|
|
31293
31311
|
email_verified: _,
|
|
@@ -31301,7 +31319,7 @@ const ul = (t) => {
|
|
|
31301
31319
|
algorithm: "bcrypt"
|
|
31302
31320
|
}), !_) {
|
|
31303
31321
|
const j = c.authParams?.ui_locales?.split(" ")?.map((N) => N.split("-")[0])[0];
|
|
31304
|
-
return await Ep(t,
|
|
31322
|
+
return await Ep(t, k, j), t.html(
|
|
31305
31323
|
/* @__PURE__ */ u(
|
|
31306
31324
|
Tt,
|
|
31307
31325
|
{
|
|
@@ -31408,10 +31426,10 @@ const ul = (t) => {
|
|
|
31408
31426
|
email: i,
|
|
31409
31427
|
className: s
|
|
31410
31428
|
}) => {
|
|
31411
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb",
|
|
31429
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, N = e?.borders?.show_widget_shadow ?? !0, O = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, U = e?.fonts?.body_text?.size || 14, J = {
|
|
31412
31430
|
backgroundColor: _,
|
|
31413
31431
|
borderColor: w,
|
|
31414
|
-
borderRadius: `${
|
|
31432
|
+
borderRadius: `${k}px`,
|
|
31415
31433
|
boxShadow: N ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31416
31434
|
color: l
|
|
31417
31435
|
}, V = {
|
|
@@ -31614,7 +31632,7 @@ const ul = (t) => {
|
|
|
31614
31632
|
] }) })
|
|
31615
31633
|
] }) });
|
|
31616
31634
|
}, M8 = new W().openapi(
|
|
31617
|
-
|
|
31635
|
+
x({
|
|
31618
31636
|
tags: ["login"],
|
|
31619
31637
|
method: "get",
|
|
31620
31638
|
path: "/",
|
|
@@ -31671,7 +31689,7 @@ const ul = (t) => {
|
|
|
31671
31689
|
);
|
|
31672
31690
|
}
|
|
31673
31691
|
).openapi(
|
|
31674
|
-
|
|
31692
|
+
x({
|
|
31675
31693
|
tags: ["login"],
|
|
31676
31694
|
method: "post",
|
|
31677
31695
|
path: "/",
|
|
@@ -31837,6 +31855,12 @@ const ul = (t) => {
|
|
|
31837
31855
|
) ? await s.data.passwords.update(l.tenant.id, _) : await s.data.passwords.create(l.tenant.id, _), f.email_verified || await s.data.users.update(l.tenant.id, f.user_id, {
|
|
31838
31856
|
email_verified: !0
|
|
31839
31857
|
});
|
|
31858
|
+
const k = oe(t, {
|
|
31859
|
+
type: ie.SUCCESS_CHANGE_PASSWORD,
|
|
31860
|
+
description: `Password changed for ${f.email}`,
|
|
31861
|
+
userId: f.user_id
|
|
31862
|
+
});
|
|
31863
|
+
se(t, t.env.data.logs.create(l.tenant.id, k));
|
|
31840
31864
|
} catch {
|
|
31841
31865
|
return p ? t.html(
|
|
31842
31866
|
/* @__PURE__ */ u(
|
|
@@ -31928,10 +31952,10 @@ const ul = (t) => {
|
|
|
31928
31952
|
email: i,
|
|
31929
31953
|
className: s
|
|
31930
31954
|
}) => {
|
|
31931
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb",
|
|
31955
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_background || "#ffffff", p = e?.colors?.input_border || "#d1d5db", f = e?.colors?.input_filled_text || "#111827", g = e?.colors?.error || "#dc2626", _ = e?.colors?.widget_background || "#ffffff", w = e?.colors?.widget_border || "#e5e7eb", k = e?.borders?.widget_corner_radius || 8, A = e?.borders?.input_border_radius || 4, j = e?.borders?.button_border_radius || 4, N = e?.borders?.show_widget_shadow ?? !0, O = e?.fonts?.title?.size || 24, I = e?.fonts?.title?.bold ?? !0, U = e?.fonts?.body_text?.size || 14, J = {
|
|
31932
31956
|
backgroundColor: _,
|
|
31933
31957
|
borderColor: w,
|
|
31934
|
-
borderRadius: `${
|
|
31958
|
+
borderRadius: `${k}px`,
|
|
31935
31959
|
boxShadow: N ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
31936
31960
|
color: l
|
|
31937
31961
|
}, V = {
|
|
@@ -32031,7 +32055,7 @@ const ul = (t) => {
|
|
|
32031
32055
|
/* @__PURE__ */ u(wt, { state: i })
|
|
32032
32056
|
] });
|
|
32033
32057
|
}, H8 = new W().openapi(
|
|
32034
|
-
|
|
32058
|
+
x({
|
|
32035
32059
|
tags: ["login"],
|
|
32036
32060
|
method: "get",
|
|
32037
32061
|
path: "/",
|
|
@@ -32084,7 +32108,7 @@ const ul = (t) => {
|
|
|
32084
32108
|
);
|
|
32085
32109
|
}
|
|
32086
32110
|
).openapi(
|
|
32087
|
-
|
|
32111
|
+
x({
|
|
32088
32112
|
tags: ["login"],
|
|
32089
32113
|
method: "post",
|
|
32090
32114
|
path: "/",
|
|
@@ -32177,7 +32201,7 @@ const ul = (t) => {
|
|
|
32177
32201
|
user: r,
|
|
32178
32202
|
className: i
|
|
32179
32203
|
}) => {
|
|
32180
|
-
const s = t?.colors?.primary_button || e?.colors?.primary || "#0066cc", a = t?.colors?.primary_button_label || "#ffffff", c = t?.colors?.body_text || "#333333", l = t?.colors?.widget_background || "#ffffff", d = t?.colors?.widget_border || "#e5e7eb", p = t?.borders?.widget_corner_radius || 8, f = t?.borders?.button_border_radius || 4, g = t?.borders?.show_widget_shadow ?? !0, _ = t?.fonts?.title?.size || 24, w = t?.fonts?.title?.bold ?? !0,
|
|
32204
|
+
const s = t?.colors?.primary_button || e?.colors?.primary || "#0066cc", a = t?.colors?.primary_button_label || "#ffffff", c = t?.colors?.body_text || "#333333", l = t?.colors?.widget_background || "#ffffff", d = t?.colors?.widget_border || "#e5e7eb", p = t?.borders?.widget_corner_radius || 8, f = t?.borders?.button_border_radius || 4, g = t?.borders?.show_widget_shadow ?? !0, _ = t?.fonts?.title?.size || 24, w = t?.fonts?.title?.bold ?? !0, k = t?.fonts?.body_text?.size || 14, A = {
|
|
32181
32205
|
backgroundColor: l,
|
|
32182
32206
|
borderColor: d,
|
|
32183
32207
|
borderRadius: `${p}px`,
|
|
@@ -32188,7 +32212,7 @@ const ul = (t) => {
|
|
|
32188
32212
|
fontWeight: w ? "700" : "400",
|
|
32189
32213
|
color: t?.colors?.header || c
|
|
32190
32214
|
}, N = {
|
|
32191
|
-
fontSize: `${
|
|
32215
|
+
fontSize: `${k}px`,
|
|
32192
32216
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
32193
32217
|
}, O = {
|
|
32194
32218
|
backgroundColor: s,
|
|
@@ -32196,7 +32220,7 @@ const ul = (t) => {
|
|
|
32196
32220
|
borderRadius: `${f}px`
|
|
32197
32221
|
}, I = {
|
|
32198
32222
|
color: t?.colors?.links_focused_components || s,
|
|
32199
|
-
fontSize: `${
|
|
32223
|
+
fontSize: `${k}px`
|
|
32200
32224
|
}, U = t?.widget?.logo_position || "center", J = U === "left" ? "text-left" : U === "right" ? "text-right" : "text-center", V = t?.widget?.logo_url || e?.logo_url, ee = U !== "none" && V;
|
|
32201
32225
|
return /* @__PURE__ */ u("div", { className: te("flex flex-col gap-6 w-full max-w-sm", i), children: /* @__PURE__ */ u(bn, { style: A, className: "border", children: [
|
|
32202
32226
|
/* @__PURE__ */ u(vn, { children: [
|
|
@@ -32246,7 +32270,7 @@ const ul = (t) => {
|
|
|
32246
32270
|
] }) }) })
|
|
32247
32271
|
] }) });
|
|
32248
32272
|
}, G8 = new W().openapi(
|
|
32249
|
-
|
|
32273
|
+
x({
|
|
32250
32274
|
tags: ["login"],
|
|
32251
32275
|
method: "get",
|
|
32252
32276
|
path: "/",
|
|
@@ -32342,7 +32366,7 @@ const ul = (t) => {
|
|
|
32342
32366
|
) : t.redirect(`/u/login/identifier?state=${n}`);
|
|
32343
32367
|
}
|
|
32344
32368
|
).openapi(
|
|
32345
|
-
|
|
32369
|
+
x({
|
|
32346
32370
|
tags: ["login"],
|
|
32347
32371
|
method: "post",
|
|
32348
32372
|
path: "/",
|
|
@@ -32470,7 +32494,7 @@ const ul = (t) => {
|
|
|
32470
32494
|
}
|
|
32471
32495
|
);
|
|
32472
32496
|
}, X8 = new W().openapi(
|
|
32473
|
-
|
|
32497
|
+
x({
|
|
32474
32498
|
tags: ["login"],
|
|
32475
32499
|
method: "get",
|
|
32476
32500
|
path: "/",
|
|
@@ -32537,7 +32561,7 @@ const ul = (t) => {
|
|
|
32537
32561
|
);
|
|
32538
32562
|
}
|
|
32539
32563
|
).openapi(
|
|
32540
|
-
|
|
32564
|
+
x({
|
|
32541
32565
|
tags: ["login"],
|
|
32542
32566
|
method: "post",
|
|
32543
32567
|
path: "/",
|
|
@@ -32675,7 +32699,7 @@ const ul = (t) => {
|
|
|
32675
32699
|
}
|
|
32676
32700
|
);
|
|
32677
32701
|
}, Z8 = new W().openapi(
|
|
32678
|
-
|
|
32702
|
+
x({
|
|
32679
32703
|
tags: ["login"],
|
|
32680
32704
|
method: "get",
|
|
32681
32705
|
path: "/",
|
|
@@ -32724,7 +32748,7 @@ const ul = (t) => {
|
|
|
32724
32748
|
);
|
|
32725
32749
|
}
|
|
32726
32750
|
).openapi(
|
|
32727
|
-
|
|
32751
|
+
x({
|
|
32728
32752
|
tags: ["login"],
|
|
32729
32753
|
method: "post",
|
|
32730
32754
|
path: "/",
|
|
@@ -32924,7 +32948,7 @@ const ul = (t) => {
|
|
|
32924
32948
|
]
|
|
32925
32949
|
}
|
|
32926
32950
|
), Y8 = new W().openapi(
|
|
32927
|
-
|
|
32951
|
+
x({
|
|
32928
32952
|
tags: ["login"],
|
|
32929
32953
|
method: "get",
|
|
32930
32954
|
path: "/",
|
|
@@ -32979,7 +33003,7 @@ const ul = (t) => {
|
|
|
32979
33003
|
);
|
|
32980
33004
|
}
|
|
32981
33005
|
).openapi(
|
|
32982
|
-
|
|
33006
|
+
x({
|
|
32983
33007
|
tags: ["login"],
|
|
32984
33008
|
method: "post",
|
|
32985
33009
|
path: "/",
|
|
@@ -33080,7 +33104,7 @@ const ul = (t) => {
|
|
|
33080
33104
|
);
|
|
33081
33105
|
}
|
|
33082
33106
|
), Q8 = new W().openapi(
|
|
33083
|
-
|
|
33107
|
+
x({
|
|
33084
33108
|
tags: ["login"],
|
|
33085
33109
|
method: "get",
|
|
33086
33110
|
path: "/",
|
|
@@ -33178,7 +33202,7 @@ const ul = (t) => {
|
|
|
33178
33202
|
}
|
|
33179
33203
|
);
|
|
33180
33204
|
}, tx = new W().openapi(
|
|
33181
|
-
|
|
33205
|
+
x({
|
|
33182
33206
|
tags: ["login"],
|
|
33183
33207
|
method: "get",
|
|
33184
33208
|
path: "/",
|
|
@@ -33216,7 +33240,7 @@ const ul = (t) => {
|
|
|
33216
33240
|
);
|
|
33217
33241
|
}
|
|
33218
33242
|
).openapi(
|
|
33219
|
-
|
|
33243
|
+
x({
|
|
33220
33244
|
tags: ["login"],
|
|
33221
33245
|
method: "post",
|
|
33222
33246
|
path: "/",
|
|
@@ -33275,7 +33299,7 @@ const ul = (t) => {
|
|
|
33275
33299
|
}
|
|
33276
33300
|
);
|
|
33277
33301
|
}, rx = new W().openapi(
|
|
33278
|
-
|
|
33302
|
+
x({
|
|
33279
33303
|
tags: ["login"],
|
|
33280
33304
|
method: "get",
|
|
33281
33305
|
path: "/",
|
|
@@ -33312,7 +33336,7 @@ const ul = (t) => {
|
|
|
33312
33336
|
);
|
|
33313
33337
|
}
|
|
33314
33338
|
), ix = new W().openapi(
|
|
33315
|
-
|
|
33339
|
+
x({
|
|
33316
33340
|
tags: ["login"],
|
|
33317
33341
|
method: "get",
|
|
33318
33342
|
path: "/",
|
|
@@ -33382,7 +33406,7 @@ const ul = (t) => {
|
|
|
33382
33406
|
loginSession: n,
|
|
33383
33407
|
className: r
|
|
33384
33408
|
}) => {
|
|
33385
|
-
const i = t?.colors?.primary_button || e?.colors?.primary || "#0066cc", s = t?.colors?.primary_button_label || "#ffffff", a = t?.colors?.body_text || "#333333", c = t?.colors?.widget_background || "#ffffff", l = t?.colors?.widget_border || "#e5e7eb", d = t?.colors?.success || "#10b981", p = t?.borders?.widget_corner_radius || 8, f = t?.borders?.button_border_radius || 4, g = t?.borders?.show_widget_shadow ?? !0, _ = t?.fonts?.title?.size || 24, w = t?.fonts?.title?.bold ?? !0,
|
|
33409
|
+
const i = t?.colors?.primary_button || e?.colors?.primary || "#0066cc", s = t?.colors?.primary_button_label || "#ffffff", a = t?.colors?.body_text || "#333333", c = t?.colors?.widget_background || "#ffffff", l = t?.colors?.widget_border || "#e5e7eb", d = t?.colors?.success || "#10b981", p = t?.borders?.widget_corner_radius || 8, f = t?.borders?.button_border_radius || 4, g = t?.borders?.show_widget_shadow ?? !0, _ = t?.fonts?.title?.size || 24, w = t?.fonts?.title?.bold ?? !0, k = t?.fonts?.body_text?.size || 14, A = {
|
|
33386
33410
|
backgroundColor: c,
|
|
33387
33411
|
borderColor: l,
|
|
33388
33412
|
borderRadius: `${p}px`,
|
|
@@ -33393,7 +33417,7 @@ const ul = (t) => {
|
|
|
33393
33417
|
fontWeight: w ? "700" : "400",
|
|
33394
33418
|
color: t?.colors?.header || a
|
|
33395
33419
|
}, N = {
|
|
33396
|
-
fontSize: `${
|
|
33420
|
+
fontSize: `${k}px`,
|
|
33397
33421
|
color: t?.colors?.input_labels_placeholders || "#6b7280"
|
|
33398
33422
|
}, O = {
|
|
33399
33423
|
backgroundColor: i,
|
|
@@ -33465,7 +33489,7 @@ const ul = (t) => {
|
|
|
33465
33489
|
) })
|
|
33466
33490
|
] }) });
|
|
33467
33491
|
}, ax = new W().openapi(
|
|
33468
|
-
|
|
33492
|
+
x({
|
|
33469
33493
|
tags: ["login"],
|
|
33470
33494
|
method: "get",
|
|
33471
33495
|
path: "/",
|
|
@@ -33515,7 +33539,7 @@ const ul = (t) => {
|
|
|
33515
33539
|
)).filter((w) => w.provider !== "auth2");
|
|
33516
33540
|
if (_.length > 0) {
|
|
33517
33541
|
const w = _.filter(
|
|
33518
|
-
(
|
|
33542
|
+
(k) => !k.linked_to
|
|
33519
33543
|
);
|
|
33520
33544
|
w.length > 1 && console.error("More than one primary user found for email", d), w.length === 0 && console.error("No primary user found for email", d), w.length === 1 && await r.data.users.update(i.tenant.id, p.user_id, {
|
|
33521
33545
|
linked_to: w[0]?.user_id
|
|
@@ -33584,7 +33608,7 @@ const ul = (t) => {
|
|
|
33584
33608
|
}
|
|
33585
33609
|
);
|
|
33586
33610
|
}, lx = new W().openapi(
|
|
33587
|
-
|
|
33611
|
+
x({
|
|
33588
33612
|
tags: ["login"],
|
|
33589
33613
|
method: "get",
|
|
33590
33614
|
path: "/",
|
|
@@ -33631,7 +33655,7 @@ function qW() {
|
|
|
33631
33655
|
t.innerHTML = Wy, t.setAttribute("data-authhero-tailwind", ""), document.head.appendChild(t);
|
|
33632
33656
|
}
|
|
33633
33657
|
}
|
|
33634
|
-
const dx = 'var Fe={Stringify:1},A=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},je=/[&<>\'"]/,Ke=async(e,t)=>{let r="";t||=[];const n=await Promise.all(e);for(let a=n.length-1;r+=n[a],a--,!(a<0);a--){let s=n[a];typeof s=="object"&&t.push(...s.callbacks||[]);const i=s.isEscaped;if(s=await(typeof s=="object"?s.toString():s),typeof s=="object"&&t.push(...s.callbacks||[]),s.isEscaped??i)r+=s;else{const l=[r];C(s,l),r=l[0]}}return A(r,t)},C=(e,t)=>{const r=e.search(je);if(r===-1){t[0]+=e;return}let n,a,s=0;for(a=r;a<e.length;a++){switch(e.charCodeAt(a)){case 34:n=""";break;case 39:n="'";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}t[0]+=e.substring(s,a)+n,s=a+1}t[0]+=e.substring(s,a)},We=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:Fe.Stringify,buffer:r,context:n})),r[0]},Y=Symbol("RENDERER"),X=Symbol("ERROR_HANDLER"),d=Symbol("STASH"),ke=Symbol("INTERNAL"),Ue=Symbol("MEMO"),q=Symbol("PERMALINK"),ce=e=>(e[ke]=!0,e),we=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:ce(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:ce(()=>{e.pop()}),props:{}});const a={tag:"",props:n,type:""};return a[X]=s=>{throw e.pop(),s},a},Te=e=>{const t=[e],r=we(t);return r.values=t,r.Provider=r,k.push(r),r},k=[],Le=e=>{const t=[e],r=n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new $e("",{},n.children):n.children).toString():""}finally{t.pop()}return a instanceof Promise?a.then(s=>A(s,s.callbacks)):A(a)};return r.values=t,r.Provider=r,r[Y]=we(t),k.push(r),r},L=e=>e.values.at(-1),O={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},G={},B="data-precedence",$=e=>Array.isArray(e)?e:[e],fe=new WeakMap,ue=(e,t,r,n)=>({buffer:a,context:s})=>{if(!a)return;const i=fe.get(s)||{};fe.set(s,i);const l=i[e]||=[];let u=!1;const c=O[e];if(c.length>0){e:for(const[,f]of l)for(const o of c)if((f?.[o]??null)===r?.[o]){u=!0;break e}}if(u?a[0]=a[0].replaceAll(t,""):c.length>0?l.push([t,r,n]):l.unshift([t,r,n]),a[0].indexOf("</head>")!==-1){let f;if(n===void 0)f=l.map(([o])=>o);else{const o=[];f=l.map(([v,,p])=>{let y=o.indexOf(p);return y===-1&&(o.push(p),y=o.length-1),[v,y]}).sort((v,p)=>v[1]-p[1]).map(([v])=>v)}f.forEach(o=>{a[0]=a[0].replaceAll(o,"")}),a[0]=a[0].replace(/(?=<\\/head>)/,f.join(""))}},D=(e,t,r)=>A(new S(e,r,$(t??[])).toString()),I=(e,t,r,n)=>{if("itemProp"in r)return D(e,t,r);let{precedence:a,blocking:s,...i}=r;a=n?a??"":void 0,n&&(i[B]=a);const l=new S(e,i,$(t||[])).toString();return l instanceof Promise?l.then(u=>A(l,[...u.callbacks||[],ue(e,u,i,a)])):A(l,[ue(e,l,i,a)])},Ze=({children:e,...t})=>{const r=ee();if(r){const n=L(r);if(n==="svg"||n==="head")return new S("title",t,$(e??[]))}return I("title",e,t,!1)},Ve=({children:e,...t})=>{const r=ee();return["src","async"].some(n=>!t[n])||r&&L(r)==="head"?D("script",e,t):I("script",e,t,!1)},ze=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,I("style",e,t,!0)):D("style",e,t),Je=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?D("link",e,t):I("link",e,t,"precedence"in t),Xe=({children:e,...t})=>{const r=ee();return r&&L(r)==="head"?D("meta",e,t):I("meta",e,t,!1)},Pe=(e,{children:t,...r})=>new S(e,r,$(t??[])),Ge=e=>(typeof e.action=="function"&&(e.action=q in e.action?e.action[q]:void 0),Pe("form",e)),Ne=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=q in t.formAction?t.formAction[q]:void 0),Pe(e,t)),Qe=e=>Ne("input",e),Ye=e=>Ne("button",e);const U=Object.freeze(Object.defineProperty({__proto__:null,button:Ye,form:Ge,input:Qe,link:Je,meta:Xe,script:Ve,style:ze,title:Ze},Symbol.toStringTag,{value:"Module"}));var et=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),F=e=>et.get(e)||e,Me=(e,t)=>{for(const[r,n]of Object.entries(e)){const a=r[0]==="-"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`);t(a,n==null?null:typeof n=="number"?a.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${n}`:`${n}px`:n)}},N=void 0,ee=()=>N,tt=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,rt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],nt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],te=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const a=e[r];if(typeof a=="string")C(a,t);else{if(typeof a=="boolean"||a===null||a===void 0)continue;a instanceof S?a.toStringToBuffer(t):typeof a=="number"||a.isEscaped?t[0]+=a:a instanceof Promise?t.unshift("",a):te(a,t)}}},S=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){this.tag=e,this.props=t,this.children=r}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){const e=[""];this.localContexts?.forEach(([t,r])=>{t.values.push(r)});try{this.toStringToBuffer(e)}finally{this.localContexts?.forEach(([t])=>{t.values.pop()})}return e.length===1?"callbacks"in e?We(A(e[0],e.callbacks)).toString():e[0]:Ke(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=N&&L(N)==="svg"?s=>tt(F(s)):s=>F(s);for(let[s,i]of Object.entries(r))if(s=a(s),s!=="children"){if(s==="style"&&typeof i=="object"){let l="";Me(i,(u,c)=>{c!=null&&(l+=`${l?";":""}${u}:${c}`)}),e[0]+=\' style="\',C(l,e),e[0]+=\'"\'}else if(typeof i=="string")e[0]+=` ${s}="`,C(i,e),e[0]+=\'"\';else if(i!=null)if(typeof i=="number"||i.isEscaped)e[0]+=` ${s}="${i}"`;else if(typeof i=="boolean"&&nt.includes(s))i&&(e[0]+=` ${s}=""`);else if(s==="dangerouslySetInnerHTML"){if(n.length>0)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n=[A(i.__html)]}else if(i instanceof Promise)e[0]+=` ${s}="`,e.unshift(\'"\',i);else if(typeof i=="function"){if(!s.startsWith("on")&&s!=="ref")throw new Error(`Invalid prop \'${s}\' of type \'function\' supplied to \'${t}\'.`)}else e[0]+=` ${s}="`,C(i.toString(),e),e[0]+=\'"\'}if(rt.includes(t)&&n.length===0){e[0]+="/>";return}e[0]+=">",te(n,e),e[0]+=`</${t}>`}},Z=class extends S{toStringToBuffer(e){const{children:t}=this,r=this.tag.call(null,{...this.props,children:t.length<=1?t[0]:t});if(!(typeof r=="boolean"||r==null))if(r instanceof Promise)if(k.length===0)e.unshift("",r);else{const n=k.map(a=>[a,a.values.at(-1)]);e.unshift("",r.then(a=>(a instanceof S&&(a.localContexts=n),a)))}else r instanceof S?r.toStringToBuffer(e):typeof r=="number"||r.isEscaped?(e[0]+=r,r.callbacks&&(e.callbacks||=[],e.callbacks.push(...r.callbacks))):C(r,e)}},$e=class extends S{toStringToBuffer(e){te(this.children,e)}},ve=!1,V=(e,t,r)=>{if(!ve){for(const n in G)U[n][Y]=G[n];ve=!0}return typeof e=="function"?new Z(e,t,r):U[e]?new Z(U[e],t,r):e==="svg"||e==="head"?(N||=Le(""),new S(e,t,[new Z(N,{value:e},r)])):new S(e,t,r)},at=({children:e})=>new $e("",{children:e},Array.isArray(e)?e:e?[e]:[]);function x(e,t,r){let n;if(!t||!("children"in t))n=V(e,t,[]);else{const a=t.children;n=Array.isArray(a)?V(e,t,a):V(e,t,[a])}return n.key=r,n}var M="_hp",st={Change:"Input",DoubleClick:"DblClick"},it={svg:"2000/svg",math:"1998/Math/MathML"},w=[],Q=new WeakMap,T=void 0,lt=()=>T,b=e=>"t"in e,z={onClick:["click",!1]},de=e=>{if(!e.startsWith("on"))return;if(z[e])return z[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return z[e]=[(st[r]||r).toLowerCase(),!!n]}},pe=(e,t)=>T&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,"-$1").toLowerCase():t,ot=(e,t,r)=>{t||={};for(let n in t){const a=t[n];if(n!=="children"&&(!r||r[n]!==a)){n=F(n);const s=de(n);if(s){if(r?.[n]!==a&&(r&&e.removeEventListener(s[0],r[n],s[1]),a!=null)){if(typeof a!="function")throw new Error(`Event handler for "${n}" is not a function`);e.addEventListener(s[0],a,s[1])}}else if(n==="dangerouslySetInnerHTML"&&a)e.innerHTML=a.__html;else if(n==="ref"){let i;typeof a=="function"?i=a(e)||(()=>a(null)):a&&"current"in a&&(a.current=e,i=()=>a.current=null),Q.set(e,i)}else if(n==="style"){const i=e.style;typeof a=="string"?i.cssText=a:(i.cssText="",a!=null&&Me(a,i.setProperty.bind(i)))}else{if(n==="value"){const l=e.nodeName;if(l==="INPUT"||l==="TEXTAREA"||l==="SELECT"){if(e.value=a==null||a===!1?null:a,l==="TEXTAREA"){e.textContent=a;continue}else if(l==="SELECT"){e.selectedIndex===-1&&(e.selectedIndex=0);continue}}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=a);const i=pe(e,n);a==null||a===!1?e.removeAttribute(i):a===!0?e.setAttribute(i,""):typeof a=="string"||typeof a=="number"?e.setAttribute(i,a):e.setAttribute(i,a.toString())}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=F(n);const s=de(n);s?e.removeEventListener(s[0],a,s[1]):n==="ref"?Q.get(e)?.():e.removeAttribute(pe(e,n))}}},ct=(e,t)=>{t[d][0]=0,w.push([e,t]);const r=t.tag[Y]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{w.pop()}},De=(e,t,r,n,a)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag=="function"&&e[d][1][ne]?.forEach(s=>a.push(s)),e.vC.forEach(s=>{if(b(s))r.push(s);else if(typeof s.tag=="function"||s.tag===""){s.c=t;const i=r.length;if(De(s,t,r,n,a),s.s){for(let l=i;l<r.length;l++)r[l].s=!0;s.s=!1}}else r.push(s),s.vR?.length&&(n.push(...s.vR),delete s.vR)})},ft=e=>{for(;;e=e.tag===M||!e.vC||!e.pP?e.nN:e.vC[0]){if(!e)return null;if(e.tag!==M&&e.e)return e.e}},Ie=e=>{b(e)||(e[d]?.[1][ne]?.forEach(t=>t[2]?.()),Q.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Ie)),e.p||(e.e?.remove(),delete e.e),typeof e.tag=="function"&&(P.delete(e),H.delete(e),delete e[d][3],e.a=!0)},re=(e,t,r)=>{e.c=t,Re(e,t,r)},he=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},me=Symbol(),Re=(e,t,r)=>{const n=[],a=[],s=[];De(e,t,n,a,s),a.forEach(Ie);const i=r?void 0:t.childNodes;let l,u=null;if(r)l=-1;else if(!i.length)l=0;else{const c=he(i,ft(e.nN));c!==void 0?(u=i[c],l=c):l=he(i,n.find(f=>f.tag!==M&&f.e)?.e)??-1,l===-1&&(r=!0)}for(let c=0,f=n.length;c<f;c++,l++){const o=n[c];let v;if(o.s&&o.e)v=o.e,o.s=!1;else{const p=r||!o.e;b(o)?(o.e&&o.d&&(o.e.textContent=o.t),o.d=!1,v=o.e||=document.createTextNode(o.t)):(v=o.e||=o.n?document.createElementNS(o.n,o.tag):document.createElement(o.tag),ot(v,o.props,o.pP),Re(o,v,p))}o.tag===M?l--:r?v.parentNode||t.appendChild(v):i[l]!==v&&i[l-1]!==v&&(i[l+1]===v?t.appendChild(i[l]):t.insertBefore(v,u||i[l]||null))}if(e.pP&&delete e.pP,s.length){const c=[],f=[];s.forEach(([,o,,v,p])=>{o&&c.push(o),v&&f.push(v),p?.()}),c.forEach(o=>o()),f.length&&requestAnimationFrame(()=>{f.forEach(o=>o())})}},ut=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),H=new WeakMap,j=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?ct(e,t):$(t.props.children),r[0]?.tag===""&&r[0][X]&&(a=r[0][X],e[5].push([e,a,t]));const s=n?[...t.pC]:t.vC?[...t.vC]:void 0,i=[];let l;for(let u=0;u<r.length;u++){Array.isArray(r[u])&&r.splice(u,1,...r[u].flat());let c=xe(r[u]);if(c){typeof c.tag=="function"&&!c.tag[ke]&&(k.length>0&&(c[d][2]=k.map(o=>[o,o.values.at(-1)])),e[5]?.length&&(c[d][3]=e[5].at(-1)));let f;if(s&&s.length){const o=s.findIndex(b(c)?v=>b(v):c.key!==void 0?v=>v.key===c.key&&v.tag===c.tag:v=>v.tag===c.tag);o!==-1&&(f=s[o],s.splice(o,1))}if(f)if(b(c))f.t!==c.t&&(f.t=c.t,f.d=!0),c=f;else{const o=f.pP=f.props;if(f.props=c.props,f.f||=c.f||t.f,typeof c.tag=="function"){const v=f[d][2];f[d][2]=c[d][2]||[],f[d][3]=c[d][3],!f.f&&((f.o||f)===c.o||f.tag[Ue]?.(o,f.props))&&ut(v,f[d][2])&&(f.s=!0)}c=f}else if(!b(c)&&T){const o=L(T);o&&(c.n=o)}if(!b(c)&&!c.s&&(j(e,c),delete c.f),i.push(c),l&&!l.s&&!c.s)for(let o=l;o&&!b(o);o=o.vC?.at(-1))o.nN=c;l=c}}t.vR=n?[...t.vC,...s||[]]:s||[],t.vC=i,n&&delete t.pC}catch(s){if(t.f=!0,s===me){if(a)return;throw s}const[i,l,u]=t[d]?.[3]||[];if(l){const c=()=>_([0,!1,e[2]],u),f=H.get(u)||[];f.push(c),H.set(u,f);const o=l(s,()=>{const v=H.get(u);if(v){const p=v.indexOf(c);if(p!==-1)return v.splice(p,1),c()}});if(o){if(e[0]===1)e[1]=!0;else if(j(e,u,[o]),(l.length===1||e!==i)&&u.c){re(u,u.c,!1);return}throw me}}throw s}finally{a&&e[5].pop()}},xe=e=>{if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return{t:e.toString(),d:!0};if("vR"in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag=="function")e[d]=[0,[]];else{const t=it[e.tag];t&&(T||=Te(""),e.props.children=[{tag:T,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Oe=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Oe(n,t,r)))},ge=(e,t)=>{t[d][2]?.forEach(([r,n])=>{r.values.push(n)});try{j(e,t,void 0)}catch{return}if(t.a){delete t.a;return}t[d][2]?.forEach(([r])=>{r.values.pop()}),(e[0]!==1||!e[1])&&re(t,t.c,!1)},P=new WeakMap,ye=[],_=async(e,t)=>{e[5]||=[];const r=P.get(t);r&&r[0](void 0);let n;const a=new Promise(s=>n=s);if(P.set(t,[n,()=>{e[2]?e[2](e,t,s=>{ge(s,t)}).then(()=>n(t)):(ge(e,t),n(t))}]),ye.length)ye.at(-1).add(t);else{await Promise.resolve();const s=P.get(t);s&&(P.delete(t),s[1]())}return a},vt=(e,t)=>{const r=[];r[5]=[],r[4]=!0,j(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();re(e,n,!0),Oe(e,n,t),t.replaceChildren(n)},dt=(e,t,r)=>({tag:M,props:{children:e},key:r,e:t,p:1}),pt=0,ne=1,ht=2,mt=3,J=new WeakMap,ae=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),gt=void 0,Ee=[],Be=e=>{const t=()=>typeof e=="function"?e():e,r=w.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[d][1][pt]||=[],s=n[d][0]++;return a[s]||=[t(),i=>{const l=gt,u=a[s];if(typeof i=="function"&&(i=i(u[0])),!Object.is(i,u[0]))if(u[0]=i,Ee.length){const[c,f]=Ee.at(-1);Promise.all([c===3?n:_([c,!1,l],n),f]).then(([o])=>{if(!o||!(c===2||c===3))return;const v=o.vC;requestAnimationFrame(()=>{setTimeout(()=>{v===o.vC&&_([c===3?1:0,!1,l],o)})})})}else _([0,!1,l],n)}]},yt=(e,t,r)=>{const n=w.at(-1);if(!n)return;const[,a]=n,s=a[d][1][ne]||=[],i=a[d][0]++,[l,,u]=s[i]||=[];if(ae(l,r)){u&&u();const c=()=>{f[e]=void 0,f[2]=t()},f=[r,void 0,void 0,void 0,void 0];f[e]=c,s[i]=f}},He=(e,t)=>yt(3,e,t),se=(e,t)=>{const r=w.at(-1);if(!r)return e;const[,n]=r,a=n[d][1][ht]||=[],s=n[d][0]++,i=a[s];return ae(i?.[1],t)?a[s]=[e,t]:e=a[s][0],e},Et=e=>{const t=J.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>J.set(e,[r]),r=>J.set(e,[void 0,r])),e},St=(e,t)=>{const r=w.at(-1);if(!r)return e();const[,n]=r,a=n[d][1][mt]||=[],s=n[d][0]++,i=a[s];return ae(i?.[1],t)&&(a[s]=[e(),t]),a[s][0]},bt=Te({pending:!1,data:null,method:null,action:null}),Se=new Set,At=e=>{Se.add(e),e.finally(()=>Se.delete(e))},ie=(e,t)=>St(()=>r=>{let n;e&&(typeof e=="function"?n=e(r)||(()=>{e(null)}):e&&"current"in e&&(e.current=r,n=()=>{e.current=null}));const a=t(r);return()=>{a?.(),n?.()}},[e]),be=Object.create(null),Ae=Object.create(null),R=(e,t,r,n,a)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const s=document.head;let{onLoad:i,onError:l,precedence:u,blocking:c,...f}=t,o=null,v=!1;const p=O[e];let y;if(p.length>0){const m=s.querySelectorAll(e);e:for(const g of m)for(const h of O[e])if(g.getAttribute(h)===t[h]){o=g;break e}if(!o){const g=p.reduce((h,E)=>t[E]===void 0?h:`${h}-${E}-${t[E]}`,e);v=!Ae[g],o=Ae[g]||=(()=>{const h=document.createElement(e);for(const E of p)t[E]!==void 0&&h.setAttribute(E,t[E]),t.rel&&h.setAttribute("rel",t.rel);return h})()}}else y=s.querySelectorAll(e);u=n?u??"":void 0,n&&(f[B]=u);const le=se(m=>{if(p.length>0){let g=!1;for(const h of s.querySelectorAll(e)){if(g&&h.getAttribute(B)!==u){s.insertBefore(m,h);return}h.getAttribute(B)===u&&(g=!0)}s.appendChild(m)}else if(y){let g=!1;for(const h of y)if(h===m){g=!0;break}g||s.insertBefore(m,s.contains(y[0])?y[0]:s.querySelector(e)),y=void 0}},[u]),oe=ie(t.ref,m=>{const g=p[0];if(r===2&&(m.innerHTML=""),(v||y)&&le(m),!l&&!i)return;let h=be[m.getAttribute(g)]||=new Promise((E,W)=>{m.addEventListener("load",E),m.addEventListener("error",W)});i&&(h=h.then(i)),l&&(h=h.catch(l)),h.catch(()=>{})});if(a&&c==="render"){const m=O[e][0];if(t[m]){const g=t[m],h=be[g]||=new Promise((E,W)=>{le(o),o.addEventListener("load",E),o.addEventListener("error",W)});Et(h)}}const K={tag:e,type:e,props:{...f,ref:oe},ref:oe};return K.p=r,o&&(K.e=o),dt(K,s)},Ct=e=>{const t=lt();return(t&&L(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:R("title",e,void 0,!1,!1)},kt=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:R("script",e,1,!1,!0),wt=e=>!e||!["href","precedence"].every(t=>t in e)?{tag:"style",props:e,type:"style",ref:e.ref}:(e["data-href"]=e.href,delete e.href,R("style",e,2,!0,!0)),Tt=e=>!e||["onLoad","onError"].some(t=>t in e)||e.rel==="stylesheet"&&(!("precedence"in e)||"disabled"in e)?{tag:"link",props:e,type:"link",ref:e.ref}:R("link",e,1,"precedence"in e,!0),Lt=e=>R("meta",e,void 0,!1,!1),_e=Symbol(),Pt=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=Be([null,!1]),s=se(async c=>{const f=c.isTrusted?t:c.detail[_e];if(typeof f!="function")return;c.preventDefault();const o=new FormData(c.target);a([o,!0]);const v=f(o);v instanceof Promise&&(At(v),await v),a([null,!0])},[]),i=ie(e.ref,c=>(c.addEventListener("submit",s),()=>{c.removeEventListener("submit",s)})),[l,u]=n;return n[1]=!1,{tag:bt,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?t:null},children:{tag:"form",props:{...r,ref:i},type:"form",ref:i}},f:u}},qe=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=se(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[_e]:t}}))},[]);r.ref=ie(r.ref,a=>(a.addEventListener("click",n),()=>{a.removeEventListener("click",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},Nt=e=>qe("input",e),Mt=e=>qe("button",e);Object.assign(G,{title:Ct,script:kt,style:wt,link:Tt,meta:Lt,form:Pt,input:Nt,button:Mt});Le(null);new TextEncoder;var $t=(e,t={})=>{let r;return Object.keys(t).length>0&&console.warn("createRoot options are not supported yet"),{render(n){if(r===null)throw new Error("Cannot update an unmounted root");r?r(n):vt(xe({tag:()=>{const[a,s]=Be(n);return r=s,a},props:{}}),e)},unmount(){r?.(null),r=null}}},Dt=(e,t,r={})=>{const n=$t(e,r);return n.render(t),n};function It(){return He(()=>{const e=document.querySelectorAll("form"),t=[];return e.forEach(r=>{const n=s=>{if(s.defaultPrevented)return;const i=s.submitter;i&&i.type==="submit"&&(i.classList.add("is-loading"),i.disabled=!0)};r.addEventListener("submit",n);const a=s=>{s.persisted&&r.querySelectorAll("button[type=submit]").forEach(l=>{l.classList.remove("is-loading"),l.disabled=!1})};window.addEventListener("pageshow",a),t.push(()=>{r.removeEventListener("submit",n),window.removeEventListener("pageshow",a)})}),()=>{t.forEach(r=>r())}},[]),null}function Rt(){return He(()=>{document.querySelectorAll("[data-password-toggle]").forEach(t=>{const r=t.querySelector("input[type=\'password\'], input[data-password-input]"),n=t.querySelector("[data-password-toggle-btn]"),a=n?.querySelector("[data-show-icon]"),s=n?.querySelector("[data-hide-icon]");if(!r||!n||!a||!s)return;const i=u=>{u?(r.type="text",r.setAttribute("data-password-input","text"),a.classList.add("hidden"),s.classList.remove("hidden")):(r.type="password",r.setAttribute("data-password-input","password"),s.classList.add("hidden"),a.classList.remove("hidden"))},l=u=>{u.preventDefault();const c=r.type==="password";i(c)};return n.addEventListener("click",l),()=>{n.removeEventListener("click",l)}})},[]),null}function xt(){return document.querySelectorAll("[data-input-otp-container]").forEach(t=>{const r=Array.from(t.querySelectorAll("[data-input-otp-slot]"));if(!r.length)return;const n=t.closest("form");let a=null;if(n&&r.length>0){const l=r[0]?.getAttribute("name");l&&(a=n.querySelector(`input[name="${l}"][type="hidden"]`),a||(a=document.createElement("input"),a.type="hidden",a.name=l,n.appendChild(a)),r.forEach(u=>u.removeAttribute("name")))}const s=()=>{if(a){const i=r.map(l=>l.value).join("");a.value=i,i.length===r.length&&n&&setTimeout(()=>{n.requestSubmit()},100)}};r.forEach((i,l)=>{i.addEventListener("input",u=>{const c=u.target;let f=c.value;f=f.replace(/[^0-9]/g,""),f.length>1&&(f=f.charAt(0)),c.value=f,f&&l<r.length-1&&r[l+1]?.focus(),s()}),i.addEventListener("paste",u=>{u.preventDefault();const f=(u.clipboardData?.getData("text")||"").replace(/[^0-9]/g,"");for(let v=0;v<Math.min(f.length,r.length-l);v++){const p=r[l+v],y=f.charAt(v);p&&y&&(p.value=y)}const o=r.findIndex((v,p)=>p>=l&&!v.value);o!==-1?r[o]?.focus():r[Math.min(l+f.length,r.length-1)]?.focus(),s()}),i.addEventListener("keydown",u=>{if(u.key==="Backspace"){const c=u.target;if(!c.value&&l>0){u.preventDefault();const f=r[l-1];f&&(f.value="",f.focus()),s()}else c.value&&setTimeout(()=>s(),0)}else u.key==="ArrowLeft"&&l>0?(u.preventDefault(),r[l-1]?.focus()):u.key==="ArrowRight"&&l<r.length-1&&(u.preventDefault(),r[l+1]?.focus())}),i.addEventListener("focus",()=>{i.select()})}),s()}),null}const Ce=document.getElementById("client-root");Ce&&Dt(Ce,x(at,{children:[x(It,{}),x(Rt,{}),x(xt,{})]}));\n', ux = (t) => /* @__PURE__ */ u(
|
|
33658
|
+
const dx = 'var Fe={Stringify:1},A=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},je=/[&<>\'"]/,Ke=async(e,t)=>{let r="";t||=[];const n=await Promise.all(e);for(let a=n.length-1;r+=n[a],a--,!(a<0);a--){let s=n[a];typeof s=="object"&&t.push(...s.callbacks||[]);const i=s.isEscaped;if(s=await(typeof s=="object"?s.toString():s),typeof s=="object"&&t.push(...s.callbacks||[]),s.isEscaped??i)r+=s;else{const l=[r];C(s,l),r=l[0]}}return A(r,t)},C=(e,t)=>{const r=e.search(je);if(r===-1){t[0]+=e;return}let n,a,s=0;for(a=r;a<e.length;a++){switch(e.charCodeAt(a)){case 34:n=""";break;case 39:n="'";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}t[0]+=e.substring(s,a)+n,s=a+1}t[0]+=e.substring(s,a)},We=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:Fe.Stringify,buffer:r,context:n})),r[0]},Y=Symbol("RENDERER"),X=Symbol("ERROR_HANDLER"),d=Symbol("STASH"),ke=Symbol("INTERNAL"),Ue=Symbol("MEMO"),q=Symbol("PERMALINK"),ce=e=>(e[ke]=!0,e),we=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:ce(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:ce(()=>{e.pop()}),props:{}});const a={tag:"",props:n,type:""};return a[X]=s=>{throw e.pop(),s},a},Te=e=>{const t=[e],r=we(t);return r.values=t,r.Provider=r,k.push(r),r},k=[],Le=e=>{const t=[e],r=n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new $e("",{},n.children):n.children).toString():""}finally{t.pop()}return a instanceof Promise?a.then(s=>A(s,s.callbacks)):A(a)};return r.values=t,r.Provider=r,r[Y]=we(t),k.push(r),r},L=e=>e.values.at(-1),O={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},G={},B="data-precedence",$=e=>Array.isArray(e)?e:[e],fe=new WeakMap,ue=(e,t,r,n)=>({buffer:a,context:s})=>{if(!a)return;const i=fe.get(s)||{};fe.set(s,i);const l=i[e]||=[];let u=!1;const c=O[e];if(c.length>0){e:for(const[,f]of l)for(const o of c)if((f?.[o]??null)===r?.[o]){u=!0;break e}}if(u?a[0]=a[0].replaceAll(t,""):c.length>0?l.push([t,r,n]):l.unshift([t,r,n]),a[0].indexOf("</head>")!==-1){let f;if(n===void 0)f=l.map(([o])=>o);else{const o=[];f=l.map(([v,,p])=>{let y=o.indexOf(p);return y===-1&&(o.push(p),y=o.length-1),[v,y]}).sort((v,p)=>v[1]-p[1]).map(([v])=>v)}f.forEach(o=>{a[0]=a[0].replaceAll(o,"")}),a[0]=a[0].replace(/(?=<\\/head>)/,f.join(""))}},D=(e,t,r)=>A(new S(e,r,$(t??[])).toString()),I=(e,t,r,n)=>{if("itemProp"in r)return D(e,t,r);let{precedence:a,blocking:s,...i}=r;a=n?a??"":void 0,n&&(i[B]=a);const l=new S(e,i,$(t||[])).toString();return l instanceof Promise?l.then(u=>A(l,[...u.callbacks||[],ue(e,u,i,a)])):A(l,[ue(e,l,i,a)])},Ze=({children:e,...t})=>{const r=ee();if(r){const n=L(r);if(n==="svg"||n==="head")return new S("title",t,$(e??[]))}return I("title",e,t,!1)},Ve=({children:e,...t})=>{const r=ee();return["src","async"].some(n=>!t[n])||r&&L(r)==="head"?D("script",e,t):I("script",e,t,!1)},ze=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,I("style",e,t,!0)):D("style",e,t),Je=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?D("link",e,t):I("link",e,t,"precedence"in t),Xe=({children:e,...t})=>{const r=ee();return r&&L(r)==="head"?D("meta",e,t):I("meta",e,t,!1)},Pe=(e,{children:t,...r})=>new S(e,r,$(t??[])),Ge=e=>(typeof e.action=="function"&&(e.action=q in e.action?e.action[q]:void 0),Pe("form",e)),Ne=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=q in t.formAction?t.formAction[q]:void 0),Pe(e,t)),Qe=e=>Ne("input",e),Ye=e=>Ne("button",e);const U=Object.freeze(Object.defineProperty({__proto__:null,button:Ye,form:Ge,input:Qe,link:Je,meta:Xe,script:Ve,style:ze,title:Ze},Symbol.toStringTag,{value:"Module"}));var et=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),F=e=>et.get(e)||e,Me=(e,t)=>{for(const[r,n]of Object.entries(e)){const a=r[0]==="-"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`);t(a,n==null?null:typeof n=="number"?a.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${n}`:`${n}px`:n)}},N=void 0,ee=()=>N,tt=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,rt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],nt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],te=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const a=e[r];if(typeof a=="string")C(a,t);else{if(typeof a=="boolean"||a===null||a===void 0)continue;a instanceof S?a.toStringToBuffer(t):typeof a=="number"||a.isEscaped?t[0]+=a:a instanceof Promise?t.unshift("",a):te(a,t)}}},S=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){this.tag=e,this.props=t,this.children=r}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){const e=[""];this.localContexts?.forEach(([t,r])=>{t.values.push(r)});try{this.toStringToBuffer(e)}finally{this.localContexts?.forEach(([t])=>{t.values.pop()})}return e.length===1?"callbacks"in e?We(A(e[0],e.callbacks)).toString():e[0]:Ke(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=N&&L(N)==="svg"?s=>tt(F(s)):s=>F(s);for(let[s,i]of Object.entries(r))if(s=a(s),s!=="children"){if(s==="style"&&typeof i=="object"){let l="";Me(i,(u,c)=>{c!=null&&(l+=`${l?";":""}${u}:${c}`)}),e[0]+=\' style="\',C(l,e),e[0]+=\'"\'}else if(typeof i=="string")e[0]+=` ${s}="`,C(i,e),e[0]+=\'"\';else if(i!=null)if(typeof i=="number"||i.isEscaped)e[0]+=` ${s}="${i}"`;else if(typeof i=="boolean"&&nt.includes(s))i&&(e[0]+=` ${s}=""`);else if(s==="dangerouslySetInnerHTML"){if(n.length>0)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n=[A(i.__html)]}else if(i instanceof Promise)e[0]+=` ${s}="`,e.unshift(\'"\',i);else if(typeof i=="function"){if(!s.startsWith("on")&&s!=="ref")throw new Error(`Invalid prop \'${s}\' of type \'function\' supplied to \'${t}\'.`)}else e[0]+=` ${s}="`,C(i.toString(),e),e[0]+=\'"\'}if(rt.includes(t)&&n.length===0){e[0]+="/>";return}e[0]+=">",te(n,e),e[0]+=`</${t}>`}},Z=class extends S{toStringToBuffer(e){const{children:t}=this,r={...this.props};t.length&&(r.children=t.length===1?t[0]:t);const n=this.tag.call(null,r);if(!(typeof n=="boolean"||n==null))if(n instanceof Promise)if(k.length===0)e.unshift("",n);else{const a=k.map(s=>[s,s.values.at(-1)]);e.unshift("",n.then(s=>(s instanceof S&&(s.localContexts=a),s)))}else n instanceof S?n.toStringToBuffer(e):typeof n=="number"||n.isEscaped?(e[0]+=n,n.callbacks&&(e.callbacks||=[],e.callbacks.push(...n.callbacks))):C(n,e)}},$e=class extends S{toStringToBuffer(e){te(this.children,e)}},ve=!1,V=(e,t,r)=>{if(!ve){for(const n in G)U[n][Y]=G[n];ve=!0}return typeof e=="function"?new Z(e,t,r):U[e]?new Z(U[e],t,r):e==="svg"||e==="head"?(N||=Le(""),new S(e,t,[new Z(N,{value:e},r)])):new S(e,t,r)},at=({children:e})=>new $e("",{children:e},Array.isArray(e)?e:e?[e]:[]);function x(e,t,r){let n;if(!t||!("children"in t))n=V(e,t,[]);else{const a=t.children;n=Array.isArray(a)?V(e,t,a):V(e,t,[a])}return n.key=r,n}var M="_hp",st={Change:"Input",DoubleClick:"DblClick"},it={svg:"2000/svg",math:"1998/Math/MathML"},w=[],Q=new WeakMap,T=void 0,lt=()=>T,b=e=>"t"in e,z={onClick:["click",!1]},de=e=>{if(!e.startsWith("on"))return;if(z[e])return z[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return z[e]=[(st[r]||r).toLowerCase(),!!n]}},pe=(e,t)=>T&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,"-$1").toLowerCase():t,ot=(e,t,r)=>{t||={};for(let n in t){const a=t[n];if(n!=="children"&&(!r||r[n]!==a)){n=F(n);const s=de(n);if(s){if(r?.[n]!==a&&(r&&e.removeEventListener(s[0],r[n],s[1]),a!=null)){if(typeof a!="function")throw new Error(`Event handler for "${n}" is not a function`);e.addEventListener(s[0],a,s[1])}}else if(n==="dangerouslySetInnerHTML"&&a)e.innerHTML=a.__html;else if(n==="ref"){let i;typeof a=="function"?i=a(e)||(()=>a(null)):a&&"current"in a&&(a.current=e,i=()=>a.current=null),Q.set(e,i)}else if(n==="style"){const i=e.style;typeof a=="string"?i.cssText=a:(i.cssText="",a!=null&&Me(a,i.setProperty.bind(i)))}else{if(n==="value"){const l=e.nodeName;if(l==="INPUT"||l==="TEXTAREA"||l==="SELECT"){if(e.value=a==null||a===!1?null:a,l==="TEXTAREA"){e.textContent=a;continue}else if(l==="SELECT"){e.selectedIndex===-1&&(e.selectedIndex=0);continue}}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=a);const i=pe(e,n);a==null||a===!1?e.removeAttribute(i):a===!0?e.setAttribute(i,""):typeof a=="string"||typeof a=="number"?e.setAttribute(i,a):e.setAttribute(i,a.toString())}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=F(n);const s=de(n);s?e.removeEventListener(s[0],a,s[1]):n==="ref"?Q.get(e)?.():e.removeAttribute(pe(e,n))}}},ct=(e,t)=>{t[d][0]=0,w.push([e,t]);const r=t.tag[Y]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{w.pop()}},De=(e,t,r,n,a)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag=="function"&&e[d][1][ne]?.forEach(s=>a.push(s)),e.vC.forEach(s=>{if(b(s))r.push(s);else if(typeof s.tag=="function"||s.tag===""){s.c=t;const i=r.length;if(De(s,t,r,n,a),s.s){for(let l=i;l<r.length;l++)r[l].s=!0;s.s=!1}}else r.push(s),s.vR?.length&&(n.push(...s.vR),delete s.vR)})},ft=e=>{for(;;e=e.tag===M||!e.vC||!e.pP?e.nN:e.vC[0]){if(!e)return null;if(e.tag!==M&&e.e)return e.e}},Ie=e=>{b(e)||(e[d]?.[1][ne]?.forEach(t=>t[2]?.()),Q.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Ie)),e.p||(e.e?.remove(),delete e.e),typeof e.tag=="function"&&(P.delete(e),H.delete(e),delete e[d][3],e.a=!0)},re=(e,t,r)=>{e.c=t,Re(e,t,r)},he=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},me=Symbol(),Re=(e,t,r)=>{const n=[],a=[],s=[];De(e,t,n,a,s),a.forEach(Ie);const i=r?void 0:t.childNodes;let l,u=null;if(r)l=-1;else if(!i.length)l=0;else{const c=he(i,ft(e.nN));c!==void 0?(u=i[c],l=c):l=he(i,n.find(f=>f.tag!==M&&f.e)?.e)??-1,l===-1&&(r=!0)}for(let c=0,f=n.length;c<f;c++,l++){const o=n[c];let v;if(o.s&&o.e)v=o.e,o.s=!1;else{const p=r||!o.e;b(o)?(o.e&&o.d&&(o.e.textContent=o.t),o.d=!1,v=o.e||=document.createTextNode(o.t)):(v=o.e||=o.n?document.createElementNS(o.n,o.tag):document.createElement(o.tag),ot(v,o.props,o.pP),Re(o,v,p))}o.tag===M?l--:r?v.parentNode||t.appendChild(v):i[l]!==v&&i[l-1]!==v&&(i[l+1]===v?t.appendChild(i[l]):t.insertBefore(v,u||i[l]||null))}if(e.pP&&delete e.pP,s.length){const c=[],f=[];s.forEach(([,o,,v,p])=>{o&&c.push(o),v&&f.push(v),p?.()}),c.forEach(o=>o()),f.length&&requestAnimationFrame(()=>{f.forEach(o=>o())})}},ut=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),H=new WeakMap,j=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?ct(e,t):$(t.props.children),r[0]?.tag===""&&r[0][X]&&(a=r[0][X],e[5].push([e,a,t]));const s=n?[...t.pC]:t.vC?[...t.vC]:void 0,i=[];let l;for(let u=0;u<r.length;u++){Array.isArray(r[u])&&r.splice(u,1,...r[u].flat());let c=xe(r[u]);if(c){typeof c.tag=="function"&&!c.tag[ke]&&(k.length>0&&(c[d][2]=k.map(o=>[o,o.values.at(-1)])),e[5]?.length&&(c[d][3]=e[5].at(-1)));let f;if(s&&s.length){const o=s.findIndex(b(c)?v=>b(v):c.key!==void 0?v=>v.key===c.key&&v.tag===c.tag:v=>v.tag===c.tag);o!==-1&&(f=s[o],s.splice(o,1))}if(f)if(b(c))f.t!==c.t&&(f.t=c.t,f.d=!0),c=f;else{const o=f.pP=f.props;if(f.props=c.props,f.f||=c.f||t.f,typeof c.tag=="function"){const v=f[d][2];f[d][2]=c[d][2]||[],f[d][3]=c[d][3],!f.f&&((f.o||f)===c.o||f.tag[Ue]?.(o,f.props))&&ut(v,f[d][2])&&(f.s=!0)}c=f}else if(!b(c)&&T){const o=L(T);o&&(c.n=o)}if(!b(c)&&!c.s&&(j(e,c),delete c.f),i.push(c),l&&!l.s&&!c.s)for(let o=l;o&&!b(o);o=o.vC?.at(-1))o.nN=c;l=c}}t.vR=n?[...t.vC,...s||[]]:s||[],t.vC=i,n&&delete t.pC}catch(s){if(t.f=!0,s===me){if(a)return;throw s}const[i,l,u]=t[d]?.[3]||[];if(l){const c=()=>_([0,!1,e[2]],u),f=H.get(u)||[];f.push(c),H.set(u,f);const o=l(s,()=>{const v=H.get(u);if(v){const p=v.indexOf(c);if(p!==-1)return v.splice(p,1),c()}});if(o){if(e[0]===1)e[1]=!0;else if(j(e,u,[o]),(l.length===1||e!==i)&&u.c){re(u,u.c,!1);return}throw me}}throw s}finally{a&&e[5].pop()}},xe=e=>{if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return{t:e.toString(),d:!0};if("vR"in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag=="function")e[d]=[0,[]];else{const t=it[e.tag];t&&(T||=Te(""),e.props.children=[{tag:T,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Oe=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Oe(n,t,r)))},ge=(e,t)=>{t[d][2]?.forEach(([r,n])=>{r.values.push(n)});try{j(e,t,void 0)}catch{return}if(t.a){delete t.a;return}t[d][2]?.forEach(([r])=>{r.values.pop()}),(e[0]!==1||!e[1])&&re(t,t.c,!1)},P=new WeakMap,ye=[],_=async(e,t)=>{e[5]||=[];const r=P.get(t);r&&r[0](void 0);let n;const a=new Promise(s=>n=s);if(P.set(t,[n,()=>{e[2]?e[2](e,t,s=>{ge(s,t)}).then(()=>n(t)):(ge(e,t),n(t))}]),ye.length)ye.at(-1).add(t);else{await Promise.resolve();const s=P.get(t);s&&(P.delete(t),s[1]())}return a},vt=(e,t)=>{const r=[];r[5]=[],r[4]=!0,j(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();re(e,n,!0),Oe(e,n,t),t.replaceChildren(n)},dt=(e,t,r)=>({tag:M,props:{children:e},key:r,e:t,p:1}),pt=0,ne=1,ht=2,mt=3,J=new WeakMap,ae=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),gt=void 0,Ee=[],Be=e=>{const t=()=>typeof e=="function"?e():e,r=w.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[d][1][pt]||=[],s=n[d][0]++;return a[s]||=[t(),i=>{const l=gt,u=a[s];if(typeof i=="function"&&(i=i(u[0])),!Object.is(i,u[0]))if(u[0]=i,Ee.length){const[c,f]=Ee.at(-1);Promise.all([c===3?n:_([c,!1,l],n),f]).then(([o])=>{if(!o||!(c===2||c===3))return;const v=o.vC;requestAnimationFrame(()=>{setTimeout(()=>{v===o.vC&&_([c===3?1:0,!1,l],o)})})})}else _([0,!1,l],n)}]},yt=(e,t,r)=>{const n=w.at(-1);if(!n)return;const[,a]=n,s=a[d][1][ne]||=[],i=a[d][0]++,[l,,u]=s[i]||=[];if(ae(l,r)){u&&u();const c=()=>{f[e]=void 0,f[2]=t()},f=[r,void 0,void 0,void 0,void 0];f[e]=c,s[i]=f}},He=(e,t)=>yt(3,e,t),se=(e,t)=>{const r=w.at(-1);if(!r)return e;const[,n]=r,a=n[d][1][ht]||=[],s=n[d][0]++,i=a[s];return ae(i?.[1],t)?a[s]=[e,t]:e=a[s][0],e},Et=e=>{const t=J.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>J.set(e,[r]),r=>J.set(e,[void 0,r])),e},St=(e,t)=>{const r=w.at(-1);if(!r)return e();const[,n]=r,a=n[d][1][mt]||=[],s=n[d][0]++,i=a[s];return ae(i?.[1],t)&&(a[s]=[e(),t]),a[s][0]},bt=Te({pending:!1,data:null,method:null,action:null}),Se=new Set,At=e=>{Se.add(e),e.finally(()=>Se.delete(e))},ie=(e,t)=>St(()=>r=>{let n;e&&(typeof e=="function"?n=e(r)||(()=>{e(null)}):e&&"current"in e&&(e.current=r,n=()=>{e.current=null}));const a=t(r);return()=>{a?.(),n?.()}},[e]),be=Object.create(null),Ae=Object.create(null),R=(e,t,r,n,a)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const s=document.head;let{onLoad:i,onError:l,precedence:u,blocking:c,...f}=t,o=null,v=!1;const p=O[e];let y;if(p.length>0){const m=s.querySelectorAll(e);e:for(const g of m)for(const h of O[e])if(g.getAttribute(h)===t[h]){o=g;break e}if(!o){const g=p.reduce((h,E)=>t[E]===void 0?h:`${h}-${E}-${t[E]}`,e);v=!Ae[g],o=Ae[g]||=(()=>{const h=document.createElement(e);for(const E of p)t[E]!==void 0&&h.setAttribute(E,t[E]),t.rel&&h.setAttribute("rel",t.rel);return h})()}}else y=s.querySelectorAll(e);u=n?u??"":void 0,n&&(f[B]=u);const le=se(m=>{if(p.length>0){let g=!1;for(const h of s.querySelectorAll(e)){if(g&&h.getAttribute(B)!==u){s.insertBefore(m,h);return}h.getAttribute(B)===u&&(g=!0)}s.appendChild(m)}else if(y){let g=!1;for(const h of y)if(h===m){g=!0;break}g||s.insertBefore(m,s.contains(y[0])?y[0]:s.querySelector(e)),y=void 0}},[u]),oe=ie(t.ref,m=>{const g=p[0];if(r===2&&(m.innerHTML=""),(v||y)&&le(m),!l&&!i)return;let h=be[m.getAttribute(g)]||=new Promise((E,W)=>{m.addEventListener("load",E),m.addEventListener("error",W)});i&&(h=h.then(i)),l&&(h=h.catch(l)),h.catch(()=>{})});if(a&&c==="render"){const m=O[e][0];if(t[m]){const g=t[m],h=be[g]||=new Promise((E,W)=>{le(o),o.addEventListener("load",E),o.addEventListener("error",W)});Et(h)}}const K={tag:e,type:e,props:{...f,ref:oe},ref:oe};return K.p=r,o&&(K.e=o),dt(K,s)},Ct=e=>{const t=lt();return(t&&L(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:R("title",e,void 0,!1,!1)},kt=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:R("script",e,1,!1,!0),wt=e=>!e||!["href","precedence"].every(t=>t in e)?{tag:"style",props:e,type:"style",ref:e.ref}:(e["data-href"]=e.href,delete e.href,R("style",e,2,!0,!0)),Tt=e=>!e||["onLoad","onError"].some(t=>t in e)||e.rel==="stylesheet"&&(!("precedence"in e)||"disabled"in e)?{tag:"link",props:e,type:"link",ref:e.ref}:R("link",e,1,"precedence"in e,!0),Lt=e=>R("meta",e,void 0,!1,!1),_e=Symbol(),Pt=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=Be([null,!1]),s=se(async c=>{const f=c.isTrusted?t:c.detail[_e];if(typeof f!="function")return;c.preventDefault();const o=new FormData(c.target);a([o,!0]);const v=f(o);v instanceof Promise&&(At(v),await v),a([null,!0])},[]),i=ie(e.ref,c=>(c.addEventListener("submit",s),()=>{c.removeEventListener("submit",s)})),[l,u]=n;return n[1]=!1,{tag:bt,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?t:null},children:{tag:"form",props:{...r,ref:i},type:"form",ref:i}},f:u}},qe=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=se(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[_e]:t}}))},[]);r.ref=ie(r.ref,a=>(a.addEventListener("click",n),()=>{a.removeEventListener("click",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},Nt=e=>qe("input",e),Mt=e=>qe("button",e);Object.assign(G,{title:Ct,script:kt,style:wt,link:Tt,meta:Lt,form:Pt,input:Nt,button:Mt});Le(null);new TextEncoder;var $t=(e,t={})=>{let r;return Object.keys(t).length>0&&console.warn("createRoot options are not supported yet"),{render(n){if(r===null)throw new Error("Cannot update an unmounted root");r?r(n):vt(xe({tag:()=>{const[a,s]=Be(n);return r=s,a},props:{}}),e)},unmount(){r?.(null),r=null}}},Dt=(e,t,r={})=>{const n=$t(e,r);return n.render(t),n};function It(){return He(()=>{const e=document.querySelectorAll("form"),t=[];return e.forEach(r=>{const n=s=>{if(s.defaultPrevented)return;const i=s.submitter;i&&i.type==="submit"&&(i.classList.add("is-loading"),i.disabled=!0)};r.addEventListener("submit",n);const a=s=>{s.persisted&&r.querySelectorAll("button[type=submit]").forEach(l=>{l.classList.remove("is-loading"),l.disabled=!1})};window.addEventListener("pageshow",a),t.push(()=>{r.removeEventListener("submit",n),window.removeEventListener("pageshow",a)})}),()=>{t.forEach(r=>r())}},[]),null}function Rt(){return He(()=>{document.querySelectorAll("[data-password-toggle]").forEach(t=>{const r=t.querySelector("input[type=\'password\'], input[data-password-input]"),n=t.querySelector("[data-password-toggle-btn]"),a=n?.querySelector("[data-show-icon]"),s=n?.querySelector("[data-hide-icon]");if(!r||!n||!a||!s)return;const i=u=>{u?(r.type="text",r.setAttribute("data-password-input","text"),a.classList.add("hidden"),s.classList.remove("hidden")):(r.type="password",r.setAttribute("data-password-input","password"),s.classList.add("hidden"),a.classList.remove("hidden"))},l=u=>{u.preventDefault();const c=r.type==="password";i(c)};return n.addEventListener("click",l),()=>{n.removeEventListener("click",l)}})},[]),null}function xt(){return document.querySelectorAll("[data-input-otp-container]").forEach(t=>{const r=Array.from(t.querySelectorAll("[data-input-otp-slot]"));if(!r.length)return;const n=t.closest("form");let a=null;if(n&&r.length>0){const l=r[0]?.getAttribute("name");l&&(a=n.querySelector(`input[name="${l}"][type="hidden"]`),a||(a=document.createElement("input"),a.type="hidden",a.name=l,n.appendChild(a)),r.forEach(u=>u.removeAttribute("name")))}const s=()=>{if(a){const i=r.map(l=>l.value).join("");a.value=i,i.length===r.length&&n&&setTimeout(()=>{n.requestSubmit()},100)}};r.forEach((i,l)=>{i.addEventListener("input",u=>{const c=u.target;let f=c.value;f=f.replace(/[^0-9]/g,""),f.length>1&&(f=f.charAt(0)),c.value=f,f&&l<r.length-1&&r[l+1]?.focus(),s()}),i.addEventListener("paste",u=>{u.preventDefault();const f=(u.clipboardData?.getData("text")||"").replace(/[^0-9]/g,"");for(let v=0;v<Math.min(f.length,r.length-l);v++){const p=r[l+v],y=f.charAt(v);p&&y&&(p.value=y)}const o=r.findIndex((v,p)=>p>=l&&!v.value);o!==-1?r[o]?.focus():r[Math.min(l+f.length,r.length-1)]?.focus(),s()}),i.addEventListener("keydown",u=>{if(u.key==="Backspace"){const c=u.target;if(!c.value&&l>0){u.preventDefault();const f=r[l-1];f&&(f.value="",f.focus()),s()}else c.value&&setTimeout(()=>s(),0)}else u.key==="ArrowLeft"&&l>0?(u.preventDefault(),r[l-1]?.focus()):u.key==="ArrowRight"&&l<r.length-1&&(u.preventDefault(),r[l+1]?.focus())}),i.addEventListener("focus",()=>{i.select()})}),s()}),null}const Ce=document.getElementById("client-root");Ce&&Dt(Ce,x(at,{children:[x(It,{}),x(Rt,{}),x(xt,{})]}));\n', ux = (t) => /* @__PURE__ */ u(
|
|
33635
33659
|
"div",
|
|
33636
33660
|
{
|
|
33637
33661
|
className: "rich-text mb-6 prose prose-gray max-w-none [&>*:last-child]:mb-0 [&_h1]:mb-6 [&_h2]:mb-6",
|
|
@@ -33753,7 +33777,7 @@ const fl = ({
|
|
|
33753
33777
|
] }) })
|
|
33754
33778
|
] });
|
|
33755
33779
|
}, gx = new W().openapi(
|
|
33756
|
-
|
|
33780
|
+
x({
|
|
33757
33781
|
tags: ["forms"],
|
|
33758
33782
|
method: "get",
|
|
33759
33783
|
path: "/:formId/nodes/:nodeId",
|
|
@@ -33798,7 +33822,7 @@ const fl = ({
|
|
|
33798
33822
|
);
|
|
33799
33823
|
}
|
|
33800
33824
|
).openapi(
|
|
33801
|
-
|
|
33825
|
+
x({
|
|
33802
33826
|
tags: ["forms"],
|
|
33803
33827
|
method: "post",
|
|
33804
33828
|
path: "/:formId/nodes/:nodeId",
|
|
@@ -33869,16 +33893,16 @@ const fl = ({
|
|
|
33869
33893
|
);
|
|
33870
33894
|
if (!w || !w.user_id)
|
|
33871
33895
|
throw new Error("Session expired");
|
|
33872
|
-
const
|
|
33896
|
+
const k = await t.env.data.users.get(
|
|
33873
33897
|
t.var.tenant_id,
|
|
33874
33898
|
w.user_id
|
|
33875
33899
|
);
|
|
33876
|
-
if (!
|
|
33900
|
+
if (!k)
|
|
33877
33901
|
throw new Error("Session expired");
|
|
33878
33902
|
return await Kt(t, {
|
|
33879
33903
|
authParams: _.authParams,
|
|
33880
33904
|
client: a,
|
|
33881
|
-
user:
|
|
33905
|
+
user: k,
|
|
33882
33906
|
loginSession: _,
|
|
33883
33907
|
skipHooks: !0
|
|
33884
33908
|
});
|
|
@@ -33987,14 +34011,14 @@ const fl = ({
|
|
|
33987
34011
|
user: i,
|
|
33988
34012
|
className: s
|
|
33989
34013
|
}) => {
|
|
33990
|
-
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_border || "#d1d5db", p = e?.colors?.widget_background || "#ffffff", f = e?.colors?.widget_border || "#e5e7eb", g = e?.borders?.widget_corner_radius || 8, _ = e?.borders?.button_border_radius || 4, w = e?.borders?.show_widget_shadow ?? !0,
|
|
34014
|
+
const a = e?.colors?.primary_button || n?.colors?.primary || "#0066cc", c = e?.colors?.primary_button_label || "#ffffff", l = e?.colors?.body_text || "#333333", d = e?.colors?.input_border || "#d1d5db", p = e?.colors?.widget_background || "#ffffff", f = e?.colors?.widget_border || "#e5e7eb", g = e?.borders?.widget_corner_radius || 8, _ = e?.borders?.button_border_radius || 4, w = e?.borders?.show_widget_shadow ?? !0, k = e?.fonts?.title?.size || 24, A = e?.fonts?.title?.bold ?? !0, j = e?.fonts?.body_text?.size || 14, N = {
|
|
33991
34015
|
backgroundColor: p,
|
|
33992
34016
|
borderColor: f,
|
|
33993
34017
|
borderRadius: `${g}px`,
|
|
33994
34018
|
boxShadow: w ? "0 1px 3px 0 rgba(0, 0, 0, 0.1)" : "none",
|
|
33995
34019
|
color: l
|
|
33996
34020
|
}, O = {
|
|
33997
|
-
fontSize: `${
|
|
34021
|
+
fontSize: `${k}px`,
|
|
33998
34022
|
fontWeight: A ? "700" : "400",
|
|
33999
34023
|
color: e?.colors?.header || l
|
|
34000
34024
|
}, I = {
|
|
@@ -34172,7 +34196,7 @@ const fl = ({
|
|
|
34172
34196
|
) })
|
|
34173
34197
|
] }) });
|
|
34174
34198
|
}, mx = new W().openapi(
|
|
34175
|
-
|
|
34199
|
+
x({
|
|
34176
34200
|
tags: ["impersonation"],
|
|
34177
34201
|
method: "get",
|
|
34178
34202
|
path: "/",
|
|
@@ -34267,7 +34291,7 @@ const fl = ({
|
|
|
34267
34291
|
);
|
|
34268
34292
|
}
|
|
34269
34293
|
).openapi(
|
|
34270
|
-
|
|
34294
|
+
x({
|
|
34271
34295
|
tags: ["impersonation"],
|
|
34272
34296
|
method: "post",
|
|
34273
34297
|
path: "/continue",
|
|
@@ -34323,7 +34347,7 @@ const fl = ({
|
|
|
34323
34347
|
});
|
|
34324
34348
|
}
|
|
34325
34349
|
).openapi(
|
|
34326
|
-
|
|
34350
|
+
x({
|
|
34327
34351
|
tags: ["impersonation"],
|
|
34328
34352
|
method: "post",
|
|
34329
34353
|
path: "/switch",
|
|
@@ -35416,9 +35440,9 @@ const lS = function(t) {
|
|
|
35416
35440
|
else if (this.options.unpairedTags.indexOf(c) !== -1)
|
|
35417
35441
|
s = a.closeIndex;
|
|
35418
35442
|
else {
|
|
35419
|
-
const
|
|
35420
|
-
if (!
|
|
35421
|
-
s =
|
|
35443
|
+
const k = this.readStopNodeData(t, l, f + 1);
|
|
35444
|
+
if (!k) throw new Error(`Unexpected end of ${l}`);
|
|
35445
|
+
s = k.i, _ = k.tagContent;
|
|
35422
35446
|
}
|
|
35423
35447
|
const w = new Ei(c);
|
|
35424
35448
|
c !== d && p && (w[":@"] = this.buildAttributesMap(d, i, c)), _ && (_ = this.parseTextData(_, c, i, !0, p, !0, !0)), i = i.substr(0, i.lastIndexOf(".")), w.add(this.options.textNodeName, _), this.addChild(n, w, i);
|
|
@@ -35670,9 +35694,9 @@ function t1(t, e, n, r) {
|
|
|
35670
35694
|
i += r + `<!--${c[l][0][e.textNodeName]}-->`, s = !0;
|
|
35671
35695
|
continue;
|
|
35672
35696
|
} else if (l[0] === "?") {
|
|
35673
|
-
const w = g0(c[":@"], e),
|
|
35697
|
+
const w = g0(c[":@"], e), k = l === "?xml" ? "" : r;
|
|
35674
35698
|
let A = c[l][0][e.textNodeName];
|
|
35675
|
-
A = A.length !== 0 ? " " + A : "", i +=
|
|
35699
|
+
A = A.length !== 0 ? " " + A : "", i += k + `<${l}${A}${w}?>`, s = !0;
|
|
35676
35700
|
continue;
|
|
35677
35701
|
}
|
|
35678
35702
|
let p = r;
|
|
@@ -36094,7 +36118,7 @@ function VS(t) {
|
|
|
36094
36118
|
}).build(n);
|
|
36095
36119
|
}
|
|
36096
36120
|
const KS = new W().openapi(
|
|
36097
|
-
|
|
36121
|
+
x({
|
|
36098
36122
|
tags: ["saml"],
|
|
36099
36123
|
method: "get",
|
|
36100
36124
|
path: "/metadata/{client_id}",
|
|
@@ -36145,7 +36169,7 @@ const KS = new W().openapi(
|
|
|
36145
36169
|
});
|
|
36146
36170
|
}
|
|
36147
36171
|
).openapi(
|
|
36148
|
-
|
|
36172
|
+
x({
|
|
36149
36173
|
tags: ["saml"],
|
|
36150
36174
|
method: "get",
|
|
36151
36175
|
path: "/{client_id}",
|