@supatype/ssr 0.7.0 → 0.8.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/ssr@0.7.0 build /home/runner/work/supatype/supatype/packages/ssr
2
+ > @supatype/ssr@0.8.0 build /home/runner/work/supatype/supatype/packages/ssr
3
3
  > tsc --project tsconfig.json
4
4
 
@@ -0,0 +1,15 @@
1
+
2
+ > @supatype/ssr@0.8.0 test /home/runner/work/supatype/supatype/packages/ssr
3
+ > vitest run
4
+
5
+
6
+  RUN  v4.0.18 /home/runner/work/supatype/supatype/packages/ssr
7
+
8
+ ✓ tests/cookie-parser.test.ts (3 tests) 54ms
9
+ ✓ tests/server-client.test.ts (9 tests) 559ms
10
+
11
+  Test Files  2 passed (2)
12
+  Tests  12 passed (12)
13
+  Start at  21:33:35
14
+  Duration  5.55s (transform 3.56s, setup 0ms, import 4.32s, tests 613ms, environment 0ms)
15
+
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/ssr@0.7.0 typecheck /home/runner/work/supatype/supatype/packages/ssr
3
- > tsc --project tsconfig.json --noEmit
2
+ > @supatype/ssr@0.8.0 typecheck /home/runner/work/supatype/supatype/packages/ssr
3
+ > tsc --project tests/tsconfig.json --noEmit
4
4
 
package/README.md CHANGED
@@ -12,7 +12,8 @@ pnpm add @supatype/ssr
12
12
 
13
13
  ### Next.js App Router
14
14
 
15
- Create a server client factory that reads cookies on each request:
15
+ Create server client factories that read cookies on each request: one for Server Components, which
16
+ cannot write cookies, and one for Route Handlers and Server Actions, which can:
16
17
 
17
18
  ```ts
18
19
  // lib/supatype-server.ts
@@ -23,17 +24,26 @@ import type { Database } from "@/types/database"
23
24
  const url = process.env.NEXT_PUBLIC_SUPATYPE_URL!
24
25
  const anonKey = process.env.NEXT_PUBLIC_SUPATYPE_ANON_KEY!
25
26
 
27
+ // Server Components: no `setAll`, so the client never refreshes the session.
26
28
  export async function createClient() {
29
+ const cookieStore = await cookies()
30
+ return createServerClient<Database>(url, anonKey, {
31
+ cookies: {
32
+ getAll() { return cookieStore.getAll() },
33
+ },
34
+ })
35
+ }
36
+
37
+ // Route Handlers and Server Actions: a refreshed session goes back to the browser.
38
+ export async function createWritableClient() {
27
39
  const cookieStore = await cookies()
28
40
  return createServerClient<Database>(url, anonKey, {
29
41
  cookies: {
30
42
  getAll() { return cookieStore.getAll() },
31
43
  setAll(cookiesToSet) {
32
- try {
33
- cookiesToSet.forEach(({ name, value, options }) =>
34
- cookieStore.set(name, value, options ?? {})
35
- )
36
- } catch { /* no-op in read-only Server Component context */ }
44
+ cookiesToSet.forEach(({ name, value, options }) =>
45
+ cookieStore.set(name, value, options ?? {})
46
+ )
37
47
  },
38
48
  },
39
49
  })
@@ -58,7 +68,8 @@ Access the session in a Server Component or Route Handler:
58
68
  ```ts
59
69
  const supatype = await createClient()
60
70
  const { data: { session } } = await supatype.auth.getSession()
61
- // session is null if no valid cookie is present
71
+ // session is null if no valid cookie is present. Without `setAll` it is the cookie's session as it
72
+ // is: its access token may have expired, since that client never refreshes it.
62
73
  ```
63
74
 
64
75
  ### Cookie adapter interface
@@ -68,13 +79,28 @@ const { data: { session } } = await supatype.auth.getSession()
68
79
  ```ts
69
80
  interface CookieAdapter {
70
81
  getAll(): Array<{ name: string; value: string }>
71
- setAll(cookies: Array<{ name: string; value: string; options?: CookieOptions }>): void
82
+ setAll?(cookies: Array<{ name: string; value: string; options?: CookieOptions }>): void
72
83
  }
73
84
  ```
74
85
 
86
+ `setAll` is called whenever the session changes on the server: a refreshed access token, a sign-in
87
+ or a sign-out. It receives the session cookie (`<prefix>-auth-token`) in the format the browser
88
+ client writes, with `path: "/"`, `sameSite: "lax"` and a `maxAge` that ends with the access token;
89
+ a sign-out or a refused refresh sends an empty value with `maxAge: 0`. The value is not encoded:
90
+ pass it to your framework's cookie setter, which encodes it as it does any cookie. Add `secure` or
91
+ `httpOnly` in the adapter if you want them.
92
+
93
+ Leave `setAll` out where cookies are read-only, such as a Server Component. Without it the client
94
+ never refreshes the session: an expired access token is sent as it is, and the API refuses it. A
95
+ refresh spends the refresh token the browser holds and returns a new one, and a client that cannot
96
+ write cookies would keep that new one to itself, so the browser's own next refresh would be refused
97
+ and sign it out. Do not pass a `setAll` that swallows the failure there instead: the client then
98
+ refreshes as if the write had worked. Refresh in middleware, which can write cookies, before the
99
+ page renders, so a Server Component reads a session that is still valid.
100
+
75
101
  ### Cookie prefix
76
102
 
77
- Auth tokens are stored under `st-<project-ref>-auth-token` by default. If you've configured a custom prefix, pass it via `cookiePrefix`:
103
+ The browser client stores the session under `st-auth-token` by default. If you've configured a custom prefix (`auth.cookiePrefix` on `createClient`), pass the same one via `cookiePrefix`:
78
104
 
79
105
  ```ts
80
106
  createServerClient(url, anonKey, {
@@ -86,10 +112,11 @@ createServerClient(url, anonKey, {
86
112
  ## How it works
87
113
 
88
114
  1. Reads all cookies via the adapter's `getAll()`
89
- 2. Finds the auth token cookie matching `<prefix>-*-auth-token`
90
- 3. Parses the JSON session value and checks the JWT `exp` claim, expired tokens are discarded
91
- 4. Passes the session as `initialSession` to `createClient`, so all subsequent requests carry the user's JWT automatically
92
- 5. Signature verification is handled server-side by the gateway when the token is forwarded
115
+ 2. Finds the auth token cookie `<prefix>-auth-token`, or one matching `<prefix>-*-auth-token`
116
+ 3. Parses the JSON session value and checks the JWT `exp` claim. A session whose access token has expired is kept only when it has a refresh token
117
+ 4. Passes the session as `initialSession` to `createClient`, so all subsequent requests carry the user's JWT automatically. The client keeps no session of its own and runs no refresh timer. With `setAll`, an expired access token is refreshed only when a request the client makes finds it expired; without `setAll`, it is never refreshed and is sent as it is. Parsing uses `atob` and `TextDecoder`, not Node's `Buffer`, so it works on edge runtimes
118
+ 5. Writes every change to the session (a refresh, a sign-in, a sign-out) back through the adapter's `setAll`, so the browser holds the new tokens
119
+ 6. Signature verification is handled server-side by the gateway when the token is forwarded
93
120
 
94
121
  ## API
95
122
 
@@ -99,5 +126,5 @@ Returns a fully-typed `SupatypeClient` pre-loaded with the user's session from c
99
126
 
100
127
  | Option | Type | Default | Description |
101
128
  |--------|------|---------|-------------|
102
- | `cookies` | `CookieAdapter` | required | Read/write cookie adapter |
103
- | `cookiePrefix` | `string` | `"st"` | Cookie name prefix |
129
+ | `cookies` | `CookieAdapter` | required | `getAll()` reads the request's cookies; optional `setAll()` writes the session cookie when the session changes, and without it the client never refreshes the session |
130
+ | `cookiePrefix` | `string` | `"st"` | Cookie name prefix: the session cookie is `<prefix>-auth-token` |
@@ -1,6 +1,14 @@
1
1
  import type { Session } from "@supatype/client";
2
+ import type { CookieToSet } from "./types.js";
3
+ /** The prefix `@supatype/client` names its session cookie with: `st-auth-token`. */
4
+ export declare const DEFAULT_COOKIE_PREFIX = "st";
2
5
  export declare function parseSessionFromCookies(cookies: Array<{
3
6
  name: string;
4
7
  value: string;
5
8
  }>, prefix?: string): Session | null;
9
+ /**
10
+ * The cookie that holds `session`, named and shaped as `@supatype/client` writes it in the browser
11
+ * and `parseSessionFromCookies` reads it; a null session clears the cookie.
12
+ */
13
+ export declare function sessionCookie(session: Session | null, prefix?: string): CookieToSet;
6
14
  //# sourceMappingURL=cookie-parser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookie-parser.d.ts","sourceRoot":"","sources":["../src/cookie-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAQ,MAAM,kBAAkB,CAAA;AAErD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,EAC/C,MAAM,GAAE,MAAa,GACpB,OAAO,GAAG,IAAI,CAoBhB"}
1
+ {"version":3,"file":"cookie-parser.d.ts","sourceRoot":"","sources":["../src/cookie-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAQ,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,OAAO,CAAA;AAEzC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,EAC/C,MAAM,GAAE,MAA8B,GACrC,OAAO,GAAG,IAAI,CAoBhB;AA4ED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,MAAM,GAAE,MAA8B,GAAG,WAAW,CAc1G"}
@@ -1,4 +1,6 @@
1
- export function parseSessionFromCookies(cookies, prefix = "st") {
1
+ /** The prefix `@supatype/client` names its session cookie with: `st-auth-token`. */
2
+ export const DEFAULT_COOKIE_PREFIX = "st";
3
+ export function parseSessionFromCookies(cookies, prefix = DEFAULT_COOKIE_PREFIX) {
2
4
  const candidates = cookies.filter((c) => c.name === `${prefix}-auth-token` ||
3
5
  (c.name.startsWith(`${prefix}-`) && c.name.endsWith("-auth-token")));
4
6
  if (candidates.length === 0)
@@ -26,23 +28,39 @@ function parseSessionValue(value) {
26
28
  }
27
29
  catch { /* not JSON */ }
28
30
  try {
29
- return normalizeSession(JSON.parse(Buffer.from(value, "base64").toString("utf-8")));
31
+ return normalizeSession(JSON.parse(decodeBase64(value)));
30
32
  }
31
33
  catch { /* not base64 JSON */ }
32
34
  return null;
33
35
  }
36
+ /**
37
+ * Base64 or base64url text decoded as UTF-8, with `atob` and `TextDecoder` rather than Node's
38
+ * `Buffer`: the server client also runs on edge runtimes, which have no `Buffer`. Throws on input
39
+ * that is not base64.
40
+ */
41
+ function decodeBase64(text) {
42
+ const standard = text.replace(/-/g, "+").replace(/_/g, "/");
43
+ const binary = atob(standard + "=".repeat((4 - (standard.length % 4)) % 4));
44
+ return new TextDecoder().decode(Uint8Array.from(binary, (c) => c.charCodeAt(0)));
45
+ }
46
+ /**
47
+ * The session a cookie holds. One whose access token has expired is kept when it carries a refresh
48
+ * token: the first request the client makes refreshes it, and the server client writes the new
49
+ * tokens back through `setAll`.
50
+ */
34
51
  function normalizeSession(r) {
35
52
  if (!isJsonObject(r))
36
53
  return null;
37
54
  if (typeof r["access_token"] !== "string")
38
55
  return null;
39
- if (isJwtExpired(r["access_token"]))
56
+ const refreshToken = typeof r["refresh_token"] === "string" ? r["refresh_token"] : "";
57
+ if (isJwtExpired(r["access_token"]) && refreshToken.trim() === "")
40
58
  return null;
41
59
  return {
42
60
  accessToken: r["access_token"],
43
61
  tokenType: typeof r["token_type"] === "string" ? r["token_type"] : "bearer",
44
62
  expiresIn: typeof r["expires_in"] === "number" ? r["expires_in"] : 3600,
45
- refreshToken: typeof r["refresh_token"] === "string" ? r["refresh_token"] : "",
63
+ refreshToken,
46
64
  user: normalizeUser(isJsonObject(r["user"]) ? r["user"] : {}),
47
65
  ...(typeof r["expires_at"] === "number" && { expiresAt: r["expires_at"] }),
48
66
  };
@@ -52,7 +70,7 @@ function isJwtExpired(token) {
52
70
  if (parts.length !== 3)
53
71
  return true;
54
72
  try {
55
- const payload = JSON.parse(Buffer.from(parts[1], "base64").toString("utf-8"));
73
+ const payload = JSON.parse(decodeBase64(parts[1]));
56
74
  // A payload that is not an object reads as expired, as it did when reading it threw.
57
75
  if (!isJsonObject(payload))
58
76
  return true;
@@ -77,4 +95,36 @@ function normalizeUser(raw) {
77
95
  ...(typeof raw["role"] === "string" && { role: raw["role"] }),
78
96
  };
79
97
  }
98
+ /**
99
+ * The cookie that holds `session`, named and shaped as `@supatype/client` writes it in the browser
100
+ * and `parseSessionFromCookies` reads it; a null session clears the cookie.
101
+ */
102
+ export function sessionCookie(session, prefix = DEFAULT_COOKIE_PREFIX) {
103
+ const name = `${prefix}-auth-token`;
104
+ if (session === null)
105
+ return { name, value: "", options: { path: "/", maxAge: 0 } };
106
+ const value = JSON.stringify({
107
+ access_token: session.accessToken,
108
+ refresh_token: session.refreshToken,
109
+ token_type: session.tokenType,
110
+ expires_in: session.expiresIn,
111
+ ...(session.expiresAt !== undefined && { expires_at: session.expiresAt }),
112
+ user: serializeUser(session.user),
113
+ });
114
+ // The browser client's cookie expires with the access token; one without `expiresAt` lasts the session.
115
+ const maxAge = session.expiresAt !== undefined ? Math.max(0, session.expiresAt - Math.floor(Date.now() / 1000)) : undefined;
116
+ return { name, value, options: { path: "/", sameSite: "lax", ...(maxAge !== undefined && { maxAge }) } };
117
+ }
118
+ function serializeUser(user) {
119
+ return {
120
+ id: user.id,
121
+ ...(user.email !== undefined && { email: user.email }),
122
+ ...(user.phone !== undefined && { phone: user.phone }),
123
+ ...(user.role !== undefined && { role: user.role }),
124
+ app_metadata: user.appMetadata,
125
+ user_metadata: user.userMetadata,
126
+ created_at: user.createdAt,
127
+ updated_at: user.updatedAt,
128
+ };
129
+ }
80
130
  //# sourceMappingURL=cookie-parser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookie-parser.js","sourceRoot":"","sources":["../src/cookie-parser.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,uBAAuB,CACrC,OAA+C,EAC/C,SAAiB,IAAI;IAErB,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAC/B,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,IAAI,KAAK,GAAG,MAAM,aAAa;QACjC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CACtE,CAAA;IACD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IAExC,gEAAgE;IAChE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACvB,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,KAAK,GAAG,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAA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O,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAA;AAC1G,CAAC;AAED,SAAS,aAAa,CAAC,IAAU;IAC/B,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;QACtD,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;QACtD,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QACnD,YAAY,EAAE,IAAI,CAAC,WAAW;QAC9B,aAAa,EAAE,IAAI,CAAC,YAAY;QAChC,UAAU,EAAE,IAAI,CAAC,SAAS;QAC1B,UAAU,EAAE,IAAI,CAAC,SAAS;KAC3B,CAAA;AACH,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { createServerClient } from "./server-client.js";
2
- export type { ServerClientOptions, CookieAdapter, CookieOptions } from "./types.js";
2
+ export type { ServerClientOptions, CookieAdapter, CookieOptions, CookieToSet } from "./types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA"}
@@ -1,4 +1,16 @@
1
1
  import type { SupatypeClient, AnyDatabase } from "@supatype/client";
2
2
  import type { ServerClientOptions } from "./types.js";
3
+ /**
4
+ * A client for one server request, signed in as the session the request's cookies carry.
5
+ *
6
+ * It keeps no session of its own and runs no refresh timer: the cookie is the only store, and the
7
+ * client lives as long as the request. With `setAll`, a refresh happens only when a request it
8
+ * makes finds the access token expired, and the rotated session goes back to the browser through
9
+ * `setAll`, so the browser holds the new refresh token rather than the one the refresh just spent.
10
+ *
11
+ * Without `setAll` (a Server Component) it never refreshes: an expired access token is sent as it
12
+ * is and refused. A refresh there would spend the browser's refresh token and return one the
13
+ * browser never receives, so the browser's own next refresh would be refused and sign it out.
14
+ */
3
15
  export declare function createServerClient<TDatabase extends AnyDatabase = AnyDatabase>(url: string, anonKey: string, options: ServerClientOptions): SupatypeClient<TDatabase>;
4
16
  //# sourceMappingURL=server-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-client.d.ts","sourceRoot":"","sources":["../src/server-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,wBAAgB,kBAAkB,CAAC,SAAS,SAAS,WAAW,GAAG,WAAW,EAC5E,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,mBAAmB,GAC3B,cAAc,CAAC,SAAS,CAAC,CAO3B"}
1
+ {"version":3,"file":"server-client.d.ts","sourceRoot":"","sources":["../src/server-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnE,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,SAAS,WAAW,GAAG,WAAW,EAC5E,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,mBAAmB,GAC3B,cAAc,CAAC,SAAS,CAAC,CAgB3B"}
@@ -1,11 +1,54 @@
1
1
  import { createClient } from "@supatype/client";
2
- import { parseSessionFromCookies } from "./cookie-parser.js";
2
+ import { DEFAULT_COOKIE_PREFIX, parseSessionFromCookies, sessionCookie } from "./cookie-parser.js";
3
+ /**
4
+ * A client for one server request, signed in as the session the request's cookies carry.
5
+ *
6
+ * It keeps no session of its own and runs no refresh timer: the cookie is the only store, and the
7
+ * client lives as long as the request. With `setAll`, a refresh happens only when a request it
8
+ * makes finds the access token expired, and the rotated session goes back to the browser through
9
+ * `setAll`, so the browser holds the new refresh token rather than the one the refresh just spent.
10
+ *
11
+ * Without `setAll` (a Server Component) it never refreshes: an expired access token is sent as it
12
+ * is and refused. A refresh there would spend the browser's refresh token and return one the
13
+ * browser never receives, so the browser's own next refresh would be refused and sign it out.
14
+ */
3
15
  export function createServerClient(url, anonKey, options) {
4
- const session = parseSessionFromCookies(options.cookies.getAll(), options.cookiePrefix);
5
- return createClient({
16
+ const prefix = options.cookiePrefix ?? DEFAULT_COOKIE_PREFIX;
17
+ const session = parseSessionFromCookies(options.cookies.getAll(), prefix);
18
+ const client = createClient({
6
19
  url,
7
20
  anonKey,
21
+ auth: {
22
+ persistSession: false,
23
+ autoRefreshToken: false,
24
+ refreshExpiredToken: options.cookies.setAll !== undefined,
25
+ detectSessionInUrl: false,
26
+ },
8
27
  ...(session !== null && { initialSession: session }),
9
28
  });
29
+ writeSessionChanges(client, options.cookies, prefix);
30
+ return client;
31
+ }
32
+ /**
33
+ * Send every change to the client's session (a refresh, a sign-in, a sign-out) back to the browser
34
+ * through the adapter's `setAll`, so the next request reads the new tokens rather than the old ones.
35
+ */
36
+ function writeSessionChanges(client, cookies, prefix) {
37
+ if (cookies.setAll === undefined)
38
+ return;
39
+ // `onAuthStateChange` reports the current state as it subscribes: that is the cookie just read.
40
+ let subscribed = false;
41
+ client.auth.onAuthStateChange((_event, next) => {
42
+ if (!subscribed)
43
+ return;
44
+ try {
45
+ cookies.setAll?.([sessionCookie(next, prefix)]);
46
+ }
47
+ catch {
48
+ // The cookie store refused the write; the session still works for this request. Where cookies
49
+ // are read-only (a Server Component), `setAll` is left out and the client does not refresh.
50
+ }
51
+ });
52
+ subscribed = true;
10
53
  }
11
54
  //# sourceMappingURL=server-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-client.js","sourceRoot":"","sources":["../src/server-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAG5D,MAAM,UAAU,kBAAkB,CAChC,GAAW,EACX,OAAe,EACf,OAA4B;IAE5B,MAAM,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACvF,OAAO,YAAY,CAAY;QAC7B,GAAG;QACH,OAAO;QACP,GAAG,CAAC,OAAO,KAAK,IAAI,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;KACrD,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"server-client.js","sourceRoot":"","sources":["../src/server-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGlG;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAChC,GAAW,EACX,OAAe,EACf,OAA4B;IAE5B,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,IAAI,qBAAqB,CAAA;IAC5D,MAAM,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,CAAA;IACzE,MAAM,MAAM,GAAG,YAAY,CAAY;QACrC,GAAG;QACH,OAAO;QACP,IAAI,EAAE;YACJ,cAAc,EAAE,KAAK;YACrB,gBAAgB,EAAE,KAAK;YACvB,mBAAmB,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS;YACzD,kBAAkB,EAAE,KAAK;SAC1B;QACD,GAAG,CAAC,OAAO,KAAK,IAAI,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;KACrD,CAAC,CAAA;IACF,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACpD,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;GAGG;AACH,SAAS,mBAAmB,CAC1B,MAAiC,EACjC,OAAsB,EACtB,MAAc;IAEd,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;QAAE,OAAM;IACxC,gGAAgG;IAChG,IAAI,UAAU,GAAG,KAAK,CAAA;IACtB,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;QAC7C,IAAI,CAAC,UAAU;YAAE,OAAM;QACvB,IAAI,CAAC;YACH,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,8FAA8F;YAC9F,4FAA4F;QAC9F,CAAC;IACH,CAAC,CAAC,CAAA;IACF,UAAU,GAAG,IAAI,CAAA;AACnB,CAAC"}
package/dist/types.d.ts CHANGED
@@ -6,20 +6,29 @@ export interface CookieOptions {
6
6
  httpOnly?: boolean | undefined;
7
7
  sameSite?: "strict" | "lax" | "none" | undefined;
8
8
  }
9
+ /** One cookie to write: `value` is unencoded, for the framework to encode as it writes any cookie. */
10
+ export interface CookieToSet {
11
+ name: string;
12
+ value: string;
13
+ options?: CookieOptions | undefined;
14
+ }
9
15
  export interface CookieAdapter {
10
16
  getAll(): Array<{
11
17
  name: string;
12
18
  value: string;
13
19
  }>;
14
- setAll(cookies: Array<{
15
- name: string;
16
- value: string;
17
- options?: CookieOptions | undefined;
18
- }>): void;
20
+ /**
21
+ * Writes the session cookie whenever the session changes on the server: a refreshed token, a
22
+ * sign-in, or a sign-out (an empty value with `maxAge: 0`). Leave it out where cookies cannot be
23
+ * written, such as a Server Component: without it the client never refreshes, since the browser
24
+ * would never receive the refresh token a refresh returns, and an expired access token is sent as
25
+ * it is and refused.
26
+ */
27
+ setAll?(cookies: CookieToSet[]): void;
19
28
  }
20
29
  export interface ServerClientOptions {
21
30
  cookies: CookieAdapter;
22
- /** Cookie name prefix. Default: "st". Supatype sets cookies as `st-<ref>-auth-token`. */
31
+ /** Cookie name prefix. Default: "st". The browser client writes its session as `st-auth-token`. */
23
32
  cookiePrefix?: string | undefined;
24
33
  }
25
34
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;CACjD;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,IAAI,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAChD,M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GED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatype/ssr",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "license": "MIT",
5
5
  "description": "Supatype server-side rendering utilities, create a client from cookie-based auth for Server Components, Route Handlers, and middleware",
6
6
  "type": "module",
@@ -13,15 +13,17 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@supatype/client": "0.7.0"
16
+ "@supatype/client": "0.8.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^22",
20
- "typescript": "^5"
20
+ "typescript": "^5",
21
+ "vitest": "^4.0.18"
21
22
  },
22
23
  "scripts": {
23
24
  "build": "tsc --project tsconfig.json",
24
- "typecheck": "tsc --project tsconfig.json --noEmit",
25
+ "typecheck": "tsc --project tests/tsconfig.json --noEmit",
26
+ "test": "vitest run",
25
27
  "clean": "rm -rf dist *.tsbuildinfo"
26
28
  }
27
29
  }
@@ -1,8 +1,12 @@
1
1
  import type { Session, User } from "@supatype/client"
2
+ import type { CookieToSet } from "./types.js"
3
+
4
+ /** The prefix `@supatype/client` names its session cookie with: `st-auth-token`. */
5
+ export const DEFAULT_COOKIE_PREFIX = "st"
2
6
 
3
7
  export function parseSessionFromCookies(
4
8
  cookies: Array<{ name: string; value: string }>,
5
- prefix: string = "st",
9
+ prefix: string = DEFAULT_COOKIE_PREFIX,
6
10
  ): Session | null {
7
11
  const candidates = cookies.filter(
8
12
  (c) =>
@@ -35,20 +39,37 @@ function parseSessionValue(value: string): Session | null {
35
39
  return normalizeSession(JSON.parse(decodeURIComponent(value)))
36
40
  } catch { /* not JSON */ }
37
41
  try {
38
- return normalizeSession(JSON.parse(Buffer.from(value, "base64").toString("utf-8")))
42
+ return normalizeSession(JSON.parse(decodeBase64(value)))
39
43
  } catch { /* not base64 JSON */ }
40
44
  return null
41
45
  }
42
46
 
47
+ /**
48
+ * Base64 or base64url text decoded as UTF-8, with `atob` and `TextDecoder` rather than Node's
49
+ * `Buffer`: the server client also runs on edge runtimes, which have no `Buffer`. Throws on input
50
+ * that is not base64.
51
+ */
52
+ function decodeBase64(text: string): string {
53
+ const standard = text.replace(/-/g, "+").replace(/_/g, "/")
54
+ const binary = atob(standard + "=".repeat((4 - (standard.length % 4)) % 4))
55
+ return new TextDecoder().decode(Uint8Array.from(binary, (c) => c.charCodeAt(0)))
56
+ }
57
+
58
+ /**
59
+ * The session a cookie holds. One whose access token has expired is kept when it carries a refresh
60
+ * token: the first request the client makes refreshes it, and the server client writes the new
61
+ * tokens back through `setAll`.
62
+ */
43
63
  function normalizeSession(r: unknown): Session | null {
44
64
  if (!isJsonObject(r)) return null
45
65
  if (typeof r["access_token"] !== "string") return null
46
- if (isJwtExpired(r["access_token"])) return null
66
+ const refreshToken = typeof r["refresh_token"] === "string" ? r["refresh_token"] : ""
67
+ if (isJwtExpired(r["access_token"]) && refreshToken.trim() === "") return null
47
68
  return {
48
69
  accessToken: r["access_token"],
49
70
  tokenType: typeof r["token_type"] === "string" ? r["token_type"] : "bearer",
50
71
  expiresIn: typeof r["expires_in"] === "number" ? r["expires_in"] : 3600,
51
- refreshToken: typeof r["refresh_token"] === "string" ? r["refresh_token"] : "",
72
+ refreshToken,
52
73
  user: normalizeUser(isJsonObject(r["user"]) ? r["user"] : {}),
53
74
  ...(typeof r["expires_at"] === "number" && { expiresAt: r["expires_at"] }),
54
75
  }
@@ -58,7 +79,7 @@ function isJwtExpired(token: string): boolean {
58
79
  const parts = token.split(".")
59
80
  if (parts.length !== 3) return true
60
81
  try {
61
- const payload = JSON.parse(Buffer.from(parts[1]!, "base64").toString("utf-8"))
82
+ const payload = JSON.parse(decodeBase64(parts[1]!))
62
83
  // A payload that is not an object reads as expired, as it did when reading it threw.
63
84
  if (!isJsonObject(payload)) return true
64
85
  const exp = typeof payload["exp"] === "number" ? payload["exp"] : null
@@ -81,3 +102,36 @@ function normalizeUser(raw: Record<string, unknown>): User {
81
102
  ...(typeof raw["role"] === "string" && { role: raw["role"] }),
82
103
  }
83
104
  }
105
+
106
+ /**
107
+ * The cookie that holds `session`, named and shaped as `@supatype/client` writes it in the browser
108
+ * and `parseSessionFromCookies` reads it; a null session clears the cookie.
109
+ */
110
+ export function sessionCookie(session: Session | null, prefix: string = DEFAULT_COOKIE_PREFIX): CookieToSet {
111
+ const name = `${prefix}-auth-token`
112
+ if (session === null) return { name, value: "", options: { path: "/", maxAge: 0 } }
113
+ const value = JSON.stringify({
114
+ access_token: session.accessToken,
115
+ refresh_token: session.refreshToken,
116
+ token_type: session.tokenType,
117
+ expires_in: session.expiresIn,
118
+ ...(session.expiresAt !== undefined && { expires_at: session.expiresAt }),
119
+ user: serializeUser(session.user),
120
+ })
121
+ // The browser client's cookie expires with the access token; one without `expiresAt` lasts the session.
122
+ const maxAge = session.expiresAt !== undefined ? Math.max(0, session.expiresAt - Math.floor(Date.now() / 1000)) : undefined
123
+ return { name, value, options: { path: "/", sameSite: "lax", ...(maxAge !== undefined && { maxAge }) } }
124
+ }
125
+
126
+ function serializeUser(user: User): Record<string, unknown> {
127
+ return {
128
+ id: user.id,
129
+ ...(user.email !== undefined && { email: user.email }),
130
+ ...(user.phone !== undefined && { phone: user.phone }),
131
+ ...(user.role !== undefined && { role: user.role }),
132
+ app_metadata: user.appMetadata,
133
+ user_metadata: user.userMetadata,
134
+ created_at: user.createdAt,
135
+ updated_at: user.updatedAt,
136
+ }
137
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { createServerClient } from "./server-client.js"
2
- export type { ServerClientOptions, CookieAdapter, CookieOptions } from "./types.js"
2
+ export type { ServerClientOptions, CookieAdapter, CookieOptions, CookieToSet } from "./types.js"
@@ -1,17 +1,62 @@
1
1
  import { createClient } from "@supatype/client"
2
2
  import type { SupatypeClient, AnyDatabase } from "@supatype/client"
3
- import { parseSessionFromCookies } from "./cookie-parser.js"
4
- import type { ServerClientOptions } from "./types.js"
3
+ import { DEFAULT_COOKIE_PREFIX, parseSessionFromCookies, sessionCookie } from "./cookie-parser.js"
4
+ import type { CookieAdapter, ServerClientOptions } from "./types.js"
5
5
 
6
+ /**
7
+ * A client for one server request, signed in as the session the request's cookies carry.
8
+ *
9
+ * It keeps no session of its own and runs no refresh timer: the cookie is the only store, and the
10
+ * client lives as long as the request. With `setAll`, a refresh happens only when a request it
11
+ * makes finds the access token expired, and the rotated session goes back to the browser through
12
+ * `setAll`, so the browser holds the new refresh token rather than the one the refresh just spent.
13
+ *
14
+ * Without `setAll` (a Server Component) it never refreshes: an expired access token is sent as it
15
+ * is and refused. A refresh there would spend the browser's refresh token and return one the
16
+ * browser never receives, so the browser's own next refresh would be refused and sign it out.
17
+ */
6
18
  export function createServerClient<TDatabase extends AnyDatabase = AnyDatabase>(
7
19
  url: string,
8
20
  anonKey: string,
9
21
  options: ServerClientOptions,
10
22
  ): SupatypeClient<TDatabase> {
11
- const session = parseSessionFromCookies(options.cookies.getAll(), options.cookiePrefix)
12
- return createClient<TDatabase>({
23
+ const prefix = options.cookiePrefix ?? DEFAULT_COOKIE_PREFIX
24
+ const session = parseSessionFromCookies(options.cookies.getAll(), prefix)
25
+ const client = createClient<TDatabase>({
13
26
  url,
14
27
  anonKey,
28
+ auth: {
29
+ persistSession: false,
30
+ autoRefreshToken: false,
31
+ refreshExpiredToken: options.cookies.setAll !== undefined,
32
+ detectSessionInUrl: false,
33
+ },
15
34
  ...(session !== null && { initialSession: session }),
16
35
  })
36
+ writeSessionChanges(client, options.cookies, prefix)
37
+ return client
38
+ }
39
+
40
+ /**
41
+ * Send every change to the client's session (a refresh, a sign-in, a sign-out) back to the browser
42
+ * through the adapter's `setAll`, so the next request reads the new tokens rather than the old ones.
43
+ */
44
+ function writeSessionChanges<TDatabase extends AnyDatabase>(
45
+ client: SupatypeClient<TDatabase>,
46
+ cookies: CookieAdapter,
47
+ prefix: string,
48
+ ): void {
49
+ if (cookies.setAll === undefined) return
50
+ // `onAuthStateChange` reports the current state as it subscribes: that is the cookie just read.
51
+ let subscribed = false
52
+ client.auth.onAuthStateChange((_event, next) => {
53
+ if (!subscribed) return
54
+ try {
55
+ cookies.setAll?.([sessionCookie(next, prefix)])
56
+ } catch {
57
+ // The cookie store refused the write; the session still works for this request. Where cookies
58
+ // are read-only (a Server Component), `setAll` is left out and the client does not refresh.
59
+ }
60
+ })
61
+ subscribed = true
17
62
  }
package/src/types.ts CHANGED
@@ -7,13 +7,27 @@ export interface CookieOptions {
7
7
  sameSite?: "strict" | "lax" | "none" | undefined
8
8
  }
9
9
 
10
+ /** One cookie to write: `value` is unencoded, for the framework to encode as it writes any cookie. */
11
+ export interface CookieToSet {
12
+ name: string
13
+ value: string
14
+ options?: CookieOptions | undefined
15
+ }
16
+
10
17
  export interface CookieAdapter {
11
18
  getAll(): Array<{ name: string; value: string }>
12
- setAll(cookies: Array<{ name: string; value: string; options?: CookieOptions | undefined }>): void
19
+ /**
20
+ * Writes the session cookie whenever the session changes on the server: a refreshed token, a
21
+ * sign-in, or a sign-out (an empty value with `maxAge: 0`). Leave it out where cookies cannot be
22
+ * written, such as a Server Component: without it the client never refreshes, since the browser
23
+ * would never receive the refresh token a refresh returns, and an expired access token is sent as
24
+ * it is and refused.
25
+ */
26
+ setAll?(cookies: CookieToSet[]): void
13
27
  }
14
28
 
15
29
  export interface ServerClientOptions {
16
30
  cookies: CookieAdapter
17
- /** Cookie name prefix. Default: "st". Supatype sets cookies as `st-<ref>-auth-token`. */
31
+ /** Cookie name prefix. Default: "st". The browser client writes its session as `st-auth-token`. */
18
32
  cookiePrefix?: string | undefined
19
33
  }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * The cookie parser runs where the server client runs, edge runtimes included, and those have no
3
+ * Node `Buffer`. Every case here reads the cookie with `Buffer` taken away.
4
+ */
5
+ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
6
+ import { parseSessionFromCookies } from "../src/cookie-parser.js"
7
+
8
+ /** base64url of `value`, encoded before `Buffer` is removed. */
9
+ const b64url = (value: string): string => Buffer.from(value).toString("base64url")
10
+ const b64 = (value: string): string => Buffer.from(value).toString("base64")
11
+
12
+ /** An unsigned JWT whose `exp` is `offsetSeconds` from now, its payload carrying `name`. */
13
+ function jwt(offsetSeconds: number, name: string): string {
14
+ const payload = { sub: "user-1", name, exp: Math.floor(Date.now() / 1000) + offsetSeconds }
15
+ return `e30.${b64url(JSON.stringify(payload))}.sig`
16
+ }
17
+
18
+ /** A session cookie value with no refresh token, so it survives only while its token is live. */
19
+ function sessionJson(accessToken: string): string {
20
+ return JSON.stringify({ access_token: accessToken, user: { id: "user-1", user_metadata: { name: "Zoë" } } })
21
+ }
22
+
23
+ describe("parseSessionFromCookies without Buffer", () => {
24
+ // Built while `Buffer` exists; the parser is then run without it.
25
+ let live: string
26
+ let expired: string
27
+ beforeEach(() => {
28
+ // `~?>` and the accented name put `-` and `_` and multi-byte UTF-8 into the base64url payload.
29
+ live = jwt(3600, "Zoë ~?>")
30
+ expired = jwt(-60, "Zoë ~?>")
31
+ vi.stubGlobal("Buffer", undefined)
32
+ })
33
+ afterEach(() => {
34
+ vi.unstubAllGlobals()
35
+ })
36
+
37
+ it("reads a URI-encoded JSON cookie whose token is live", () => {
38
+ const session = parseSessionFromCookies([{ name: "st-auth-token", value: encodeURIComponent(sessionJson(live)) }])
39
+ expect(session).toMatchObject({ accessToken: live, user: { id: "user-1" } })
40
+ })
41
+
42
+ it("drops a cookie whose token has expired and has no refresh token", () => {
43
+ const session = parseSessionFromCookies([{ name: "st-auth-token", value: encodeURIComponent(sessionJson(expired)) }])
44
+ expect(session).toBeNull()
45
+ })
46
+
47
+ it("reads a base64-encoded JSON cookie, keeping non-ASCII text intact", () => {
48
+ vi.unstubAllGlobals()
49
+ const value = b64(sessionJson(live))
50
+ vi.stubGlobal("Buffer", undefined)
51
+ const session = parseSessionFromCookies([{ name: "st-auth-token", value }])
52
+ expect(session?.user.userMetadata).toEqual({ name: "Zoë" })
53
+ })
54
+ })
@@ -0,0 +1,166 @@
1
+ /**
2
+ * A session refreshed on the server goes back to the browser through the adapter's `setAll`, in the
3
+ * cookie the browser client writes and `parseSessionFromCookies` reads.
4
+ */
5
+ import { afterEach, describe, expect, it, vi } from "vitest"
6
+ import { createServerClient } from "../src/index.js"
7
+ import { parseSessionFromCookies } from "../src/cookie-parser.js"
8
+ import type { CookieAdapter, CookieToSet } from "../src/index.js"
9
+
10
+ afterEach(() => {
11
+ vi.unstubAllGlobals()
12
+ })
13
+
14
+ /** An unsigned JWT whose `exp` is `offsetSeconds` from now. */
15
+ function jwt(offsetSeconds: number, sub = "user-1"): string {
16
+ const payload = { sub, role: "authenticated", exp: Math.floor(Date.now() / 1000) + offsetSeconds }
17
+ return `e30.${Buffer.from(JSON.stringify(payload)).toString("base64url")}.sig`
18
+ }
19
+
20
+ /** The cookie the browser client writes for a session. */
21
+ function sessionCookie(accessToken: string, refreshToken: string): { name: string; value: string } {
22
+ const value = JSON.stringify({ access_token: accessToken, refresh_token: refreshToken, user: { id: "user-1" } })
23
+ return { name: "st-auth-token", value: encodeURIComponent(value) }
24
+ }
25
+
26
+ /** An adapter over `cookies` that records every `setAll` call. */
27
+ function adapter(cookies: Array<{ name: string; value: string }>): { cookies: CookieAdapter; written: CookieToSet[][] } {
28
+ const written: CookieToSet[][] = []
29
+ return { cookies: { getAll: () => cookies, setAll: (c) => written.push(c) }, written }
30
+ }
31
+
32
+ /** A fetch the auth server answers: a refresh grant with `refresh`, anything else with `[]`. */
33
+ function stubFetch(refresh: { status: number; body: Record<string, unknown> }): void {
34
+ vi.stubGlobal("fetch", vi.fn<typeof fetch>((input) => {
35
+ const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url
36
+ const answer = url.includes("grant_type=refresh_token") ? refresh : { status: 200, body: {} }
37
+ return Promise.resolve(new Response(JSON.stringify(answer.body), {
38
+ status: answer.status,
39
+ headers: { "Content-Type": "application/json" },
40
+ }))
41
+ }))
42
+ }
43
+
44
+ describe("createServerClient", () => {
45
+ it("writes nothing for a session that needs no refresh", async () => {
46
+ stubFetch({ status: 500, body: {} })
47
+ const { cookies, written } = adapter([sessionCookie(jwt(3600), "r1")])
48
+ const client = createServerClient("http://api.test", "anon", { cookies })
49
+ await client.auth.ensureValidSession()
50
+ expect(written).toEqual([])
51
+ })
52
+
53
+ it("writes the refreshed session back in the cookie the parser reads", async () => {
54
+ const fresh = jwt(3600)
55
+ stubFetch({ status: 200, body: { access_token: fresh, refresh_token: "r2", expires_in: 3600, user: { id: "user-1" } } })
56
+ const { cookies, written } = adapter([sessionCookie(jwt(-60), "r1")])
57
+ const client = createServerClient("http://api.test", "anon", { cookies })
58
+ await client.auth.ensureValidSession()
59
+
60
+ const set = written.flat()
61
+ expect(set.map((c) => c.name)).toEqual(["st-auth-token"])
62
+ const session = parseSessionFromCookies(set)
63
+ expect(session).toMatchObject({ accessToken: fresh, refreshToken: "r2", user: { id: "user-1" } })
64
+ expect(set[0]?.options).toMatchObject({ path: "/", sameSite: "lax" })
65
+ })
66
+
67
+ it("clears the cookie when the refresh is refused", async () => {
68
+ stubFetch({ status: 400, body: { error: "invalid_grant" } })
69
+ const { cookies, written } = adapter([sessionCookie(jwt(-60), "r1")])
70
+ const client = createServerClient("http://api.test", "anon", { cookies })
71
+ await client.auth.ensureValidSession()
72
+
73
+ expect(written.flat()).toEqual([{ name: "st-auth-token", value: "", options: { path: "/", maxAge: 0 } }])
74
+ })
75
+
76
+ it("uses the configured prefix for the written cookie", async () => {
77
+ stubFetch({ status: 200, body: { access_token: jwt(3600), refresh_token: "r2", user: { id: "user-1" } } })
78
+ const old = { ...sessionCookie(jwt(-60), "r1"), name: "myapp-auth-token" }
79
+ const { cookies, written } = adapter([old])
80
+ await createServerClient("http://api.test", "anon", { cookies, cookiePrefix: "myapp" }).auth.ensureValidSession()
81
+ expect(written.flat().map((c) => c.name)).toEqual(["myapp-auth-token"])
82
+ })
83
+
84
+ })
85
+
86
+ /**
87
+ * A server client lives for one request. A refresh it starts on its own rotates the browser's refresh
88
+ * token, and a timer it leaves behind outlives the request it was made for.
89
+ */
90
+ describe("createServerClient lifetime", () => {
91
+ afterEach(() => {
92
+ vi.useRealTimers()
93
+ })
94
+
95
+ /** The Authorization header of the last request the stubbed fetch answered. */
96
+ function lastAuthorization(): string | null {
97
+ const last = vi.mocked(fetch).mock.calls.at(-1)
98
+ if (last === undefined) return null
99
+ const [input, init] = last
100
+ const headers = new Headers(input instanceof Request ? input.headers : init?.headers)
101
+ return headers.get("Authorization")
102
+ }
103
+
104
+ /** The refresh grants the stubbed fetch has answered. */
105
+ function refreshCalls(): number {
106
+ const calls = vi.mocked(fetch).mock.calls
107
+ return calls.filter(([input]) => String(input instanceof Request ? input.url : input).includes("grant_type=refresh_token")).length
108
+ }
109
+
110
+ it("schedules no refresh timer", () => {
111
+ vi.useFakeTimers()
112
+ stubFetch({ status: 500, body: {} })
113
+ const { cookies } = adapter([sessionCookie(jwt(3600), "r1")])
114
+ createServerClient("http://api.test", "anon", { cookies })
115
+ expect(vi.getTimerCount()).toBe(0)
116
+ })
117
+
118
+ it("does not refresh an expired session until a request needs it", async () => {
119
+ const fresh = jwt(3600)
120
+ stubFetch({ status: 200, body: { access_token: fresh, refresh_token: "r2", user: { id: "user-1" } } })
121
+ const { cookies, written } = adapter([sessionCookie(jwt(-60), "r1")])
122
+ const client = createServerClient("http://api.test", "anon", { cookies })
123
+ await new Promise((resolve) => setTimeout(resolve, 0))
124
+ expect(refreshCalls()).toBe(0)
125
+ expect(written).toEqual([])
126
+
127
+ await client.from("posts").select("*")
128
+ expect(refreshCalls()).toBe(1)
129
+ expect(parseSessionFromCookies(written.flat())).toMatchObject({ accessToken: fresh, refreshToken: "r2" })
130
+ })
131
+
132
+ it("refreshes and writes the cookies back with an adapter `setAll`", async () => {
133
+ const fresh = jwt(3600)
134
+ stubFetch({ status: 200, body: { access_token: fresh, refresh_token: "r2", user: { id: "user-1" } } })
135
+ const { cookies, written } = adapter([sessionCookie(jwt(-60), "r1")])
136
+ const client = createServerClient("http://api.test", "anon", { cookies })
137
+ await client.from("posts").select("*")
138
+ expect(refreshCalls()).toBe(1)
139
+ expect(lastAuthorization()).toBe(`Bearer ${fresh}`)
140
+ expect(parseSessionFromCookies(written.flat())).toMatchObject({ accessToken: fresh, refreshToken: "r2" })
141
+ })
142
+
143
+ // Without `setAll` (a Server Component) the browser never receives what a refresh returns, and the
144
+ // refresh has already spent the refresh token the browser holds, so its next refresh is refused.
145
+ it("never refreshes without an adapter `setAll`: the expired token goes out as it is", async () => {
146
+ stubFetch({ status: 200, body: { access_token: jwt(3600), refresh_token: "r2", user: { id: "user-1" } } })
147
+ const expired = jwt(-60)
148
+ const client = createServerClient("http://api.test", "anon", {
149
+ cookies: { getAll: () => [sessionCookie(expired, "r1")] },
150
+ })
151
+ await client.from("posts").select("*")
152
+ const { data } = await client.auth.getSession()
153
+ expect(refreshCalls()).toBe(0)
154
+ expect(lastAuthorization()).toBe(`Bearer ${expired}`)
155
+ expect(data.session?.accessToken).toBe(expired)
156
+ })
157
+
158
+ it("keeps the session out of any storage the runtime provides", async () => {
159
+ const setItem = vi.fn<(key: string, value: string) => void>()
160
+ vi.stubGlobal("window", { localStorage: { getItem: () => null, setItem, removeItem: () => undefined } })
161
+ stubFetch({ status: 200, body: { access_token: jwt(3600), refresh_token: "r2", user: { id: "user-1" } } })
162
+ const { cookies } = adapter([sessionCookie(jwt(-60), "r1")])
163
+ await createServerClient("http://api.test", "anon", { cookies }).auth.ensureValidSession()
164
+ expect(setItem).not.toHaveBeenCalled()
165
+ })
166
+ })
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "composite": false,
6
+ "rootDir": ".."
7
+ },
8
+ "include": ["../../../ts-reset.d.ts", "./**/*.ts", "../src/**/*.ts"]
9
+ }
@@ -1 +1 @@
1
- {"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../ts-reset.d.ts","../client/dist/select-types.d.ts","../client/dist/query-cache.d.ts","../client/dist/types.d.ts","../client/dist/fetch-with-retry.d.ts","../client/dist/auth.d.ts","../client/dist/filters.d.ts","../client/dist/query.d.ts","../client/dist/storage.d.ts","../client/dist/realtime.d.ts","../client/dist/table-subscription.d.ts","../client/dist/pkce.d.ts","../client/dist/identity.d.ts","../client/dist/errors.d.ts","../client/dist/exact-values.d.ts","../client/dist/field-kinds-registry.d.ts","../client/dist/draft-models-registry.d.ts","../client/dist/retry.d.ts","../client/dist/error-codes-doc.d.ts","../client/dist/serverless-docs.d.ts","../client/dist/preview.d.ts","../client/dist/graphql-document.d.ts","../client/dist/graphql-json.d.ts","../client/dist/graphql-transport.d.ts","../client/dist/index.d.ts","./src/cookie-parser.ts","./src/types.ts","./src/server-client.ts","./src/index.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/index.d.ts"],"fileIdsList":[[92,138,139,141,158,159],[92,140,141,158,159],[141,158,159],[92,141,146,158,159,176],[92,141,142,147,152,158,159,161,173,184],[92,141,142,143,152,158,159,161],[92,141,158,159],[87,88,89,92,141,158,159],[92,141,144,158,159,185],[92,141,145,146,153,158,159,162],[92,141,146,158,159,173,181],[92,141,147,149,152,158,159,161],[92,140,141,148,158,159],[92,141,149,150,158,159],[92,141,151,152,158,159],[92,140,141,152,158,159],[92,141,152,153,154,158,159,173,184],[92,141,152,153,154,158,159,168,173,176],[92,134,141,149,152,155,158,159,161,173,184],[92,141,152,153,155,156,158,159,161,173,181,184],[92,141,155,157,158,159,173,181,184],[90,91,92,93,94,95,96,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[92,141,152,158,159],[92,141,158,159,160,184],[92,141,149,152,158,159,161,173],[92,141,158,159,162],[92,141,158,159,163],[92,140,141,158,159,164],[92,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[92,141,158,159,166],[92,141,158,159,167],[92,141,152,158,159,168,169],[92,141,158,159,168,170,185,187],[92,141,153,158,159],[92,141,152,158,159,173,174,176],[92,141,158,159,175,176],[92,141,158,159,173,174],[92,141,158,159,176],[92,141,158,159,177],[92,138,141,158,159,173,178,184],[92,141,152,158,159,179,180],[92,141,158,159,179,180],[92,141,146,158,159,161,173,181],[92,141,158,159,182],[92,141,158,159,161,183],[92,141,155,158,159,167,184],[92,141,146,158,159,185],[92,141,158,159,173,186],[92,141,158,159,160,187],[92,141,158,159,188],[92,134,141,158,159],[92,134,141,152,154,158,159,164,173,176,184,186,187,189],[92,141,158,159,173,190],[92,106,110,141,158,159,184],[92,106,141,158,159,173,184],[92,101,141,158,159],[92,103,106,141,158,159,181,184],[92,141,158,159,161,181],[92,141,158,159,191],[92,101,141,158,159,191],[92,103,106,141,158,159,161,184],[92,98,99,102,105,141,152,158,159,173,184],[92,106,113,141,158,159],[92,98,104,141,158,159],[92,106,127,128,141,158,159],[92,102,106,141,158,159,176,184,191],[92,127,141,158,159,191],[92,100,101,141,158,159,191],[92,106,141,158,159],[92,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,141,158,159],[92,106,121,141,158,159],[92,106,113,114,141,158,159],[92,104,106,114,115,141,158,159],[92,105,141,158,159],[92,98,101,106,141,158,159],[92,106,110,114,115,141,158,159],[92,110,141,158,159],[92,104,106,109,141,158,159,184],[92,98,103,106,113,141,158,159],[92,141,158,159,173],[92,101,106,127,141,158,159,189,191],[61,62,92,141,158,159],[61,92,141,158,159],[72,92,141,158,159],[79,92,141,158,159],[61,62,65,80,92,141,158,159],[63,92,141,158,159],[59,60,61,62,63,65,66,67,68,69,70,71,73,74,75,76,77,78,80,81,92,141,158,159],[59,60,61,62,64,92,141,158,159],[65,92,141,158,159],[62,92,141,158,159],[61,67,92,141,158,159],[59,60,92,141,158,159],[82,92,141,158,159],[84,85,92,141,158,159],[82,83,84,92,141,158,159]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"15bab0fff998f77b6e108e361807ef924179b6123aaad7c94646879074e3b1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d7e2e5bbb8d950ac95afc421abf303862d31efbc1b96f7666ce1894b301ea15","impliedFormat":99},{"version":"6d811b90bfadc04ebeec6bb19fc2166f54bd527e5857893b9715546f27a7598f","impliedFormat":99},{"version":"076bcaa298067a19524868b10255bd24c5160f21a6f82f78e20ef6d177db38fe","impliedFormat":99},{"version":"28683f6633f7a4a4175b0f5fe9d368af8e904a4b58e4fbeab71456f871705a18","impliedFormat":99},{"version":"9efedc91c0d16354997f9e9d070abd1b90095cca1d06da7fc3e7f657f828acf9","impliedFormat":99},{"version":"01b7367b12aaf639bb876eefb9bae25d441a6ead1d2e4cb4f6dee6c8e17557cc","impliedFormat":99},{"version":"2e80e4660990382c6e3355c544627487c8548104eb5aa383dded7870a41443db","impliedFormat":99},{"version":"97f7607bc3483613d9d6b464b5b876d973eac1f2ec7eb65115ab1320903ae0cf","impliedFormat":99},{"version":"22ea3e51422593e5300966ce275130b75f747d86490c00dfb1304a9cc243e65d","impliedFormat":99},{"version":"607f7d1bdac5950af9b04233e45a3ec4443d5f5ed1d89f96c35088b0f57a7e83","impliedFormat":99},{"version":"5e42b1db10cc88f088e5e4749e97e57bad97d0e1bb963110f6dc2ea0b8c954ca","impliedFormat":99},{"version":"545f86d2cfc0dd394875274312e038bacc2c6ae32c9b4c51b3fb80deea3ef987","impliedFormat":99},{"version":"c875342f3a7a25f8efa15c8898af7d26c50be90c10dc44967ba9496f68638891","impliedFormat":99},{"version":"d0c12e47bd10372f73f67f078213327dcc65515773b4bd7be184b5ee68f17b09","impliedFormat":99},{"version":"fbabe42cd78d8c77ff2f2b959c50a6f9db42e9c4edc4e408ddc5634cdb6c6b81","impliedFormat":99},{"version":"6ffcb78f82098b708e68c1a3fde1e82505b1d9c4d4edd6136b6937151c6db8aa","impliedFormat":99},{"version":"9143a4409f10ae9f6362706e00e3b7ed082d4b2af0125aab31ecd30a6fefab13","impliedFormat":99},{"version":"28a54a7112bf676145d5489b10aab4b5329994e418d78da0aeb29387b0bbf366","impliedFormat":99},{"version":"2d177f86bfbb9344d4545d4db67f3c55f8c2d4d669a2be4e32eeb439aae7b1b8","impliedFormat":99},{"version":"4cb0a2644a82e5603500af9888ebcc963abf982c86ab614baf94dbf4ccade688","impliedFormat":99},{"version":"30291a2d1621b206d2ce27f2377dcaaf93d883e1f07a439eb196acbeb9a77488","impliedFormat":99},{"version":"e298b59cb235761a73d9ca3bb726db56bc6afed829a7f1e814680462ac3fd7bb","impliedFormat":99},{"version":"da9f23fd70b051d05322870461cb690446b148a8136a861077a091865c4dfd35","impliedFormat":99},{"version":"26c40c40b270da167285fdb837801d0411ce86e213e097f9533b78e9c12e2164","impliedFormat":99},{"version":"658aa9f6b09e2cc8d7a69a799419648ec2051a6756e6bf4deb47ca128d3616e3","signature":"516268e76e5648c62ad3f68dcf0ae2f7982c2407e4a621d3f44bcc9df06cc066","impliedFormat":99},{"version":"1b0775f7302569283dd376c2cbdbf0f7cc7057c7a694ed58594e097494d81e1e","signature":"e0497a3152385b6d74ec9389cdc3ab14688476e15c88c7a821193de3131e5da3","impliedFormat":99},{"version":"dfc9228b3460fe1fc6ef7b96b1fffd07871120bc1a8ecf7d4dfc856f2764f559","signature":"337c30d8dbff1c253d842227d6f73666502655abb670d73dd0255af21c03a905","impliedFormat":99},{"version":"2240578713882a71d2bdfd8fd767449bfe4d98ecf4628a74a19c14d939a09210","signature":"3d9ea544fa0f4bcc7cbae0bc6fea357b029ef87e71cd3c32f9ca6f73e8d62b69","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[58,[83,86]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[138,1],[139,1],[140,2],[92,3],[141,4],[142,5],[143,6],[87,7],[90,8],[88,7],[89,7],[144,9],[145,10],[146,11],[147,12],[148,13],[149,14],[150,14],[151,15],[152,16],[153,17],[154,18],[93,7],[91,7],[155,19],[156,20],[157,21],[191,22],[158,23],[159,7],[160,24],[161,25],[162,26],[163,27],[164,28],[165,29],[166,30],[167,31],[168,32],[169,32],[170,33],[171,7],[172,34],[173,35],[175,36],[174,37],[176,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,46],[185,47],[186,48],[187,49],[188,50],[94,7],[95,7],[96,7],[135,51],[136,7],[137,7],[189,52],[190,53],[97,7],[56,7],[57,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[50,7],[9,7],[51,7],[52,7],[53,7],[55,7],[54,7],[1,7],[113,54],[123,55],[112,54],[133,56],[104,57],[103,58],[132,59],[126,60],[131,61],[106,62],[120,63],[105,64],[129,65],[101,66],[100,59],[130,67],[102,68],[107,69],[108,7],[111,69],[98,7],[134,70],[124,71],[115,72],[116,73],[118,74],[114,75],[117,76],[127,59],[109,77],[110,78],[119,79],[99,80],[122,71],[121,69],[125,7],[128,81],[63,82],[74,7],[76,7],[71,83],[72,7],[62,7],[73,84],[64,7],[79,7],[80,85],[81,86],[70,87],[82,88],[69,7],[78,7],[60,83],[65,89],[67,90],[75,91],[59,83],[77,7],[66,82],[68,92],[61,93],[83,94],[86,95],[85,96],[84,7],[58,7]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../ts-reset.d.ts","../client/dist/select-types.d.ts","../client/dist/query-cache.d.ts","../client/dist/types.d.ts","../client/dist/fetch-with-retry.d.ts","../client/dist/auth.d.ts","../client/dist/filters.d.ts","../client/dist/query.d.ts","../client/dist/storage.d.ts","../client/dist/realtime.d.ts","../client/dist/table-subscription.d.ts","../client/dist/pkce.d.ts","../client/dist/identity.d.ts","../client/dist/errors.d.ts","../client/dist/exact-values.d.ts","../client/dist/field-kinds-registry.d.ts","../client/dist/draft-models-registry.d.ts","../client/dist/retry.d.ts","../client/dist/error-codes-doc.d.ts","../client/dist/serverless-docs.d.ts","../client/dist/preview.d.ts","../client/dist/graphql-document.d.ts","../client/dist/graphql-json.d.ts","../client/dist/graphql-transport.d.ts","../client/dist/index.d.ts","./src/types.ts","./src/cookie-parser.ts","./src/server-client.ts","./src/index.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@22.19.13/node_modules/@types/node/index.d.ts"],"fileIdsList":[[92,138,139,141,158,159],[92,140,141,158,159],[141,158,159],[92,141,146,158,159,176],[92,141,142,147,152,158,159,161,173,184],[92,141,142,143,152,158,159,161],[92,141,158,159],[87,88,89,92,141,158,159],[92,141,144,158,159,185],[92,141,145,146,153,158,159,162],[92,141,146,158,159,173,181],[92,141,147,149,152,158,159,161],[92,140,141,148,158,159],[92,141,149,150,158,159],[92,141,151,152,158,159],[92,140,141,152,158,159],[92,141,152,153,154,158,159,173,184],[92,141,152,153,154,158,159,168,173,176],[92,134,141,149,152,155,158,159,161,173,184],[92,141,152,153,155,156,158,159,161,173,181,184],[92,141,155,157,158,159,173,181,184],[90,91,92,93,94,95,96,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[92,141,152,158,159],[92,141,158,159,160,184],[92,141,149,152,158,159,161,173],[92,141,158,159,162],[92,141,158,159,163],[92,140,141,158,159,164],[92,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[92,141,158,159,166],[92,141,158,159,167],[92,141,152,158,159,168,169],[92,141,158,159,168,170,185,187],[92,141,153,158,159],[92,141,152,158,159,173,174,176],[92,141,158,159,175,176],[92,141,158,159,173,174],[92,141,158,159,176],[92,141,158,159,177],[92,138,141,158,159,173,178,184],[92,141,152,158,159,179,180],[92,141,158,159,179,180],[92,141,146,158,159,161,173,181],[92,141,158,159,182],[92,141,158,159,161,183],[92,141,155,158,159,167,184],[92,141,146,158,159,185],[92,141,158,159,173,186],[92,141,158,159,160,187],[92,141,158,159,188],[92,134,141,158,159],[92,134,141,152,154,158,159,164,173,176,184,186,187,189],[92,141,158,159,173,190],[92,106,110,141,158,159,184],[92,106,141,158,159,173,184],[92,101,141,158,159],[92,103,106,141,158,159,181,184],[92,141,158,159,161,181],[92,141,158,159,191],[92,101,141,158,159,191],[92,103,106,141,158,159,161,184],[92,98,99,102,105,141,152,158,159,173,184],[92,106,113,141,158,159],[92,98,104,141,158,159],[92,106,127,128,141,158,159],[92,102,106,141,158,159,176,184,191],[92,127,141,158,159,191],[92,100,101,141,158,159,191],[92,106,141,158,159],[92,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,141,158,159],[92,106,121,141,158,159],[92,106,113,114,141,158,159],[92,104,106,114,115,141,158,159],[92,105,141,158,159],[92,98,101,106,141,158,159],[92,106,110,114,115,141,158,159],[92,110,141,158,159],[92,104,106,109,141,158,159,184],[92,98,103,106,113,141,158,159],[92,141,158,159,173],[92,101,106,127,141,158,159,189,191],[61,62,92,141,158,159],[61,92,141,158,159],[72,92,141,158,159],[79,92,141,158,159],[61,62,65,80,92,141,158,159],[63,92,141,158,159],[59,60,61,62,63,65,66,67,68,69,70,71,73,74,75,76,77,78,80,81,92,141,158,159],[59,60,61,62,64,92,141,158,159],[65,92,141,158,159],[62,92,141,158,159],[61,67,92,141,158,159],[59,60,92,141,158,159],[82,83,92,141,158,159],[83,85,92,141,158,159],[82,83,84,92,141,158,159]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"15bab0fff998f77b6e108e361807ef924179b6123aaad7c94646879074e3b1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d7e2e5bbb8d950ac95afc421abf303862d31efbc1b96f7666ce1894b301ea15","impliedFormat":99},{"version":"6d811b90bfadc04ebeec6bb19fc2166f54bd527e5857893b9715546f27a7598f","impliedFormat":99},{"version":"78ab8003a5d6902c2ec1a710d19960f8d40761881458e6024714282f3f4c41dd","impliedFormat":99},{"version":"28683f6633f7a4a4175b0f5fe9d368af8e904a4b58e4fbeab71456f871705a18","impliedFormat":99},{"version":"7c971b1afedf099ede70d8da5f0ced1f1a7f92085a73ecaf65cb7327e463c3ee","impliedFormat":99},{"version":"01b7367b12aaf639bb876eefb9bae25d441a6ead1d2e4cb4f6dee6c8e17557cc","impliedFormat":99},{"version":"2e80e4660990382c6e3355c544627487c8548104eb5aa383dded7870a41443db","impliedFormat":99},{"version":"97f7607bc3483613d9d6b464b5b876d973eac1f2ec7eb65115ab1320903ae0cf","impliedFormat":99},{"version":"9e0df4b9675ea7d65448a78bb2818f4a2d982fb9cfda8963230db8d2d6bdf20f","impliedFormat":99},{"version":"607f7d1bdac5950af9b04233e45a3ec4443d5f5ed1d89f96c35088b0f57a7e83","impliedFormat":99},{"version":"5e42b1db10cc88f088e5e4749e97e57bad97d0e1bb963110f6dc2ea0b8c954ca","impliedFormat":99},{"version":"545f86d2cfc0dd394875274312e038bacc2c6ae32c9b4c51b3fb80deea3ef987","impliedFormat":99},{"version":"c875342f3a7a25f8efa15c8898af7d26c50be90c10dc44967ba9496f68638891","impliedFormat":99},{"version":"d0c12e47bd10372f73f67f078213327dcc65515773b4bd7be184b5ee68f17b09","impliedFormat":99},{"version":"fbabe42cd78d8c77ff2f2b959c50a6f9db42e9c4edc4e408ddc5634cdb6c6b81","impliedFormat":99},{"version":"6ffcb78f82098b708e68c1a3fde1e82505b1d9c4d4edd6136b6937151c6db8aa","impliedFormat":99},{"version":"9143a4409f10ae9f6362706e00e3b7ed082d4b2af0125aab31ecd30a6fefab13","impliedFormat":99},{"version":"28a54a7112bf676145d5489b10aab4b5329994e418d78da0aeb29387b0bbf366","impliedFormat":99},{"version":"2d177f86bfbb9344d4545d4db67f3c55f8c2d4d669a2be4e32eeb439aae7b1b8","impliedFormat":99},{"version":"4cb0a2644a82e5603500af9888ebcc963abf982c86ab614baf94dbf4ccade688","impliedFormat":99},{"version":"30291a2d1621b206d2ce27f2377dcaaf93d883e1f07a439eb196acbeb9a77488","impliedFormat":99},{"version":"e298b59cb235761a73d9ca3bb726db56bc6afed829a7f1e814680462ac3fd7bb","impliedFormat":99},{"version":"da9f23fd70b051d05322870461cb690446b148a8136a861077a091865c4dfd35","impliedFormat":99},{"version":"26c40c40b270da167285fdb837801d0411ce86e213e097f9533b78e9c12e2164","impliedFormat":99},{"version":"472c0514d8a5a2b04b7c9652e4c057714fdecbaecc888275f73206976f5b50ca","signature":"09f60ab17210c685c45cfc8ccb6a9b3bd5d3252c1b115d03cc54d68c37fdda3c","impliedFormat":99},{"version":"2eb9aa7e88d1aed6daa837ff6536199c2ababf748747fdd82762436dcd3f71ec","signature":"0a4c14c1cdb8d733d0ddc664fd003695b88ae6e64d0cf0d5c9326d9ed6ea2553","impliedFormat":99},{"version":"6ec03b1b502e7c2ea903a6b3ecc7d1a20289d690c01318733ffad277a4a326f9","signature":"95acfccee4e59e746930da54841885a65e6075f581196016c76385cdae7e4f72","impliedFormat":99},{"version":"c87b315cdf2cb81e7aadb567a7b99afc1efa4412868fda3fd418472d7fdbbb60","signature":"369f9d74c99e74146a36212a618310335783293a41d61b41554715920feba2b0","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[58,[83,86]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[138,1],[139,1],[140,2],[92,3],[141,4],[142,5],[143,6],[87,7],[90,8],[88,7],[89,7],[144,9],[145,10],[146,11],[147,12],[148,13],[149,14],[150,14],[151,15],[152,16],[153,17],[154,18],[93,7],[91,7],[155,19],[156,20],[157,21],[191,22],[158,23],[159,7],[160,24],[161,25],[162,26],[163,27],[164,28],[165,29],[166,30],[167,31],[168,32],[169,32],[170,33],[171,7],[172,34],[173,35],[175,36],[174,37],[176,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,46],[185,47],[186,48],[187,49],[188,50],[94,7],[95,7],[96,7],[135,51],[136,7],[137,7],[189,52],[190,53],[97,7],[56,7],[57,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[50,7],[9,7],[51,7],[52,7],[53,7],[55,7],[54,7],[1,7],[113,54],[123,55],[112,54],[133,56],[104,57],[103,58],[132,59],[126,60],[131,61],[106,62],[120,63],[105,64],[129,65],[101,66],[100,59],[130,67],[102,68],[107,69],[108,7],[111,69],[98,7],[134,70],[124,71],[115,72],[116,73],[118,74],[114,75],[117,76],[127,59],[109,77],[110,78],[119,79],[99,80],[122,71],[121,69],[125,7],[128,81],[63,82],[74,7],[76,7],[71,83],[72,7],[62,7],[73,84],[64,7],[79,7],[80,85],[81,86],[70,87],[82,88],[69,7],[78,7],[60,83],[65,89],[67,90],[75,91],[59,83],[77,7],[66,82],[68,92],[61,93],[84,94],[86,95],[85,96],[83,7],[58,7]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.9.3"}