@shiftengineering/folio 0.0.79 → 0.0.80

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,6 +1,6 @@
1
- import * as vr from "react";
2
- import bt, { createContext as Er, useState as Ee, useEffect as Pr, useContext as Rr } from "react";
3
- var Pe = { exports: {} }, Y = {};
1
+ import * as Er from "react";
2
+ import bt, { createContext as Rr, useState as Ee, useEffect as Pr, useContext as Or } from "react";
3
+ var Re = { exports: {} }, Y = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -35,13 +35,13 @@ var H = {};
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */
37
37
  var tt;
38
- function Or() {
38
+ function Sr() {
39
39
  return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = bt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, P = "@@iterator";
40
+ var e = bt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, R = "@@iterator";
41
41
  function L(o) {
42
42
  if (o === null || typeof o != "object")
43
43
  return null;
44
- var c = x && o[x] || o[P];
44
+ var c = x && o[x] || o[R];
45
45
  return typeof c == "function" ? c : null;
46
46
  }
47
47
  var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -49,29 +49,29 @@ function Or() {
49
49
  {
50
50
  for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), y = 1; y < c; y++)
51
51
  d[y - 1] = arguments[y];
52
- Lt("error", o, d);
52
+ Vt("error", o, d);
53
53
  }
54
54
  }
55
- function Lt(o, c, d) {
55
+ function Vt(o, c, d) {
56
56
  {
57
57
  var y = j.ReactDebugCurrentFrame, E = y.getStackAddendum();
58
58
  E !== "" && (c += "%s", d = d.concat([E]));
59
- var R = d.map(function(v) {
59
+ var P = d.map(function(v) {
60
60
  return String(v);
61
61
  });
62
- R.unshift("Warning: " + c), Function.prototype.apply.call(console[o], console, R);
62
+ P.unshift("Warning: " + c), Function.prototype.apply.call(console[o], console, P);
63
63
  }
64
64
  }
65
- var Vt = !1, qt = !1, zt = !1, Mt = !1, Wt = !1, ke;
65
+ var qt = !1, zt = !1, Mt = !1, Wt = !1, Kt = !1, ke;
66
66
  ke = Symbol.for("react.module.reference");
67
67
  function Bt(o) {
68
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || Wt || o === i || o === f || o === m || Mt || o === b || Vt || qt || zt || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === p || o.$$typeof === u || o.$$typeof === l || o.$$typeof === a || // This needs to include all possible module reference object
68
+ return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || Kt || o === i || o === f || o === m || Wt || o === b || qt || zt || Mt || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === p || o.$$typeof === u || o.$$typeof === l || o.$$typeof === a || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
72
72
  o.$$typeof === ke || o.getModuleId !== void 0));
73
73
  }
74
- function Kt(o, c, d) {
74
+ function Yt(o, c, d) {
75
75
  var y = o.displayName;
76
76
  if (y)
77
77
  return y;
@@ -111,14 +111,14 @@ function Or() {
111
111
  var d = o;
112
112
  return Ce(d._context) + ".Provider";
113
113
  case a:
114
- return Kt(o, o.render, "ForwardRef");
114
+ return Yt(o, o.render, "ForwardRef");
115
115
  case p:
116
116
  var y = o.displayName || null;
117
117
  return y !== null ? y : I(o.type) || "Memo";
118
118
  case h: {
119
- var E = o, R = E._payload, v = E._init;
119
+ var E = o, P = E._payload, v = E._init;
120
120
  try {
121
- return I(v(R));
121
+ return I(v(P));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -126,14 +126,14 @@ function Or() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var $ = Object.assign, B = 0, je, Ae, Ie, Fe, De, $e, Ne;
129
+ var N = Object.assign, K = 0, je, Ae, Ie, De, Fe, Ne, $e;
130
130
  function Ue() {
131
131
  }
132
132
  Ue.__reactDisabledLog = !0;
133
- function Yt() {
133
+ function Ht() {
134
134
  {
135
- if (B === 0) {
136
- je = console.log, Ae = console.info, Ie = console.warn, Fe = console.error, De = console.group, $e = console.groupCollapsed, Ne = console.groupEnd;
135
+ if (K === 0) {
136
+ je = console.log, Ae = console.info, Ie = console.warn, De = console.error, Fe = console.group, Ne = console.groupCollapsed, $e = console.groupEnd;
137
137
  var o = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
@@ -150,42 +150,42 @@ function Or() {
150
150
  groupEnd: o
151
151
  });
152
152
  }
153
- B++;
153
+ K++;
154
154
  }
155
155
  }
156
- function Ht() {
156
+ function Gt() {
157
157
  {
158
- if (B--, B === 0) {
158
+ if (K--, K === 0) {
159
159
  var o = {
160
160
  configurable: !0,
161
161
  enumerable: !0,
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: $({}, o, {
165
+ log: N({}, o, {
166
166
  value: je
167
167
  }),
168
- info: $({}, o, {
168
+ info: N({}, o, {
169
169
  value: Ae
170
170
  }),
171
- warn: $({}, o, {
171
+ warn: N({}, o, {
172
172
  value: Ie
173
173
  }),
174
- error: $({}, o, {
175
- value: Fe
176
- }),
177
- group: $({}, o, {
174
+ error: N({}, o, {
178
175
  value: De
179
176
  }),
180
- groupCollapsed: $({}, o, {
181
- value: $e
177
+ group: N({}, o, {
178
+ value: Fe
182
179
  }),
183
- groupEnd: $({}, o, {
180
+ groupCollapsed: N({}, o, {
184
181
  value: Ne
182
+ }),
183
+ groupEnd: N({}, o, {
184
+ value: $e
185
185
  })
186
186
  });
187
187
  }
188
- B < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ K < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
191
  var ue = j.ReactCurrentDispatcher, ce;
@@ -204,8 +204,8 @@ function Or() {
204
204
  }
205
205
  var le = !1, te;
206
206
  {
207
- var Gt = typeof WeakMap == "function" ? WeakMap : Map;
208
- te = new Gt();
207
+ var Xt = typeof WeakMap == "function" ? WeakMap : Map;
208
+ te = new Xt();
209
209
  }
210
210
  function Le(o, c) {
211
211
  if (!o || le)
@@ -219,8 +219,8 @@ function Or() {
219
219
  le = !0;
220
220
  var E = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
- var R;
223
- R = ue.current, ue.current = null, Yt();
222
+ var P;
223
+ P = ue.current, ue.current = null, Ht();
224
224
  try {
225
225
  if (c) {
226
226
  var v = function() {
@@ -257,31 +257,31 @@ function Or() {
257
257
  if (k && y && typeof k.stack == "string") {
258
258
  for (var g = k.stack.split(`
259
259
  `), _ = y.stack.split(`
260
- `), T = g.length - 1, O = _.length - 1; T >= 1 && O >= 0 && g[T] !== _[O]; )
261
- O--;
262
- for (; T >= 1 && O >= 0; T--, O--)
263
- if (g[T] !== _[O]) {
264
- if (T !== 1 || O !== 1)
260
+ `), O = g.length - 1, T = _.length - 1; O >= 1 && T >= 0 && g[O] !== _[T]; )
261
+ T--;
262
+ for (; O >= 1 && T >= 0; O--, T--)
263
+ if (g[O] !== _[T]) {
264
+ if (O !== 1 || T !== 1)
265
265
  do
266
- if (T--, O--, O < 0 || g[T] !== _[O]) {
266
+ if (O--, T--, T < 0 || g[O] !== _[T]) {
267
267
  var C = `
268
- ` + g[T].replace(" at new ", " at ");
268
+ ` + g[O].replace(" at new ", " at ");
269
269
  return o.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", o.displayName)), typeof o == "function" && te.set(o, C), C;
270
270
  }
271
- while (T >= 1 && O >= 0);
271
+ while (O >= 1 && T >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- le = !1, ue.current = R, Ht(), Error.prepareStackTrace = E;
276
+ le = !1, ue.current = P, Gt(), Error.prepareStackTrace = E;
277
277
  }
278
- var q = o ? o.displayName || o.name : "", N = q ? ee(q) : "";
279
- return typeof o == "function" && te.set(o, N), N;
278
+ var q = o ? o.displayName || o.name : "", $ = q ? ee(q) : "";
279
+ return typeof o == "function" && te.set(o, $), $;
280
280
  }
281
- function Xt(o, c, d) {
281
+ function Jt(o, c, d) {
282
282
  return Le(o, !1);
283
283
  }
284
- function Jt(o) {
284
+ function Zt(o) {
285
285
  var c = o.prototype;
286
286
  return !!(c && c.isReactComponent);
287
287
  }
@@ -289,7 +289,7 @@ function Or() {
289
289
  if (o == null)
290
290
  return "";
291
291
  if (typeof o == "function")
292
- return Le(o, Jt(o));
292
+ return Le(o, Zt(o));
293
293
  if (typeof o == "string")
294
294
  return ee(o);
295
295
  switch (o) {
@@ -301,20 +301,20 @@ function Or() {
301
301
  if (typeof o == "object")
302
302
  switch (o.$$typeof) {
303
303
  case a:
304
- return Xt(o.render);
304
+ return Jt(o.render);
305
305
  case p:
306
306
  return re(o.type, c, d);
307
307
  case h: {
308
- var y = o, E = y._payload, R = y._init;
308
+ var y = o, E = y._payload, P = y._init;
309
309
  try {
310
- return re(R(E), c, d);
310
+ return re(P(E), c, d);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var K = Object.prototype.hasOwnProperty, Ve = {}, qe = j.ReactDebugCurrentFrame;
317
+ var B = Object.prototype.hasOwnProperty, Ve = {}, qe = j.ReactDebugCurrentFrame;
318
318
  function ne(o) {
319
319
  if (o) {
320
320
  var c = o._owner, d = re(o.type, o._source, c ? c.type : null);
@@ -322,11 +322,11 @@ function Or() {
322
322
  } else
323
323
  qe.setExtraStackFrame(null);
324
324
  }
325
- function Zt(o, c, d, y, E) {
325
+ function Qt(o, c, d, y, E) {
326
326
  {
327
- var R = Function.call.bind(K);
327
+ var P = Function.call.bind(B);
328
328
  for (var v in o)
329
- if (R(o, v)) {
329
+ if (P(o, v)) {
330
330
  var g = void 0;
331
331
  try {
332
332
  if (typeof o[v] != "function") {
@@ -334,24 +334,24 @@ function Or() {
334
334
  throw _.name = "Invariant Violation", _;
335
335
  }
336
336
  g = o[v](c, v, y, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (T) {
338
- g = T;
337
+ } catch (O) {
338
+ g = O;
339
339
  }
340
340
  g && !(g instanceof Error) && (ne(E), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", d, v, typeof g), ne(null)), g instanceof Error && !(g.message in Ve) && (Ve[g.message] = !0, ne(E), S("Failed %s type: %s", d, g.message), ne(null));
341
341
  }
342
342
  }
343
343
  }
344
- var Qt = Array.isArray;
344
+ var er = Array.isArray;
345
345
  function fe(o) {
346
- return Qt(o);
346
+ return er(o);
347
347
  }
348
- function er(o) {
348
+ function tr(o) {
349
349
  {
350
350
  var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && o[Symbol.toStringTag] || o.constructor.name || "Object";
351
351
  return d;
352
352
  }
353
353
  }
354
- function tr(o) {
354
+ function rr(o) {
355
355
  try {
356
356
  return ze(o), !1;
357
357
  } catch {
@@ -362,38 +362,38 @@ function Or() {
362
362
  return "" + o;
363
363
  }
364
364
  function Me(o) {
365
- if (tr(o))
366
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(o)), ze(o);
365
+ if (rr(o))
366
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(o)), ze(o);
367
367
  }
368
- var We = j.ReactCurrentOwner, rr = {
368
+ var We = j.ReactCurrentOwner, nr = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
372
372
  __source: !0
373
- }, Be, Ke;
374
- function nr(o) {
375
- if (K.call(o, "ref")) {
373
+ }, Ke, Be;
374
+ function or(o) {
375
+ if (B.call(o, "ref")) {
376
376
  var c = Object.getOwnPropertyDescriptor(o, "ref").get;
377
377
  if (c && c.isReactWarning)
378
378
  return !1;
379
379
  }
380
380
  return o.ref !== void 0;
381
381
  }
382
- function or(o) {
383
- if (K.call(o, "key")) {
382
+ function ir(o) {
383
+ if (B.call(o, "key")) {
384
384
  var c = Object.getOwnPropertyDescriptor(o, "key").get;
385
385
  if (c && c.isReactWarning)
386
386
  return !1;
387
387
  }
388
388
  return o.key !== void 0;
389
389
  }
390
- function ir(o, c) {
390
+ function sr(o, c) {
391
391
  typeof o.ref == "string" && We.current;
392
392
  }
393
- function sr(o, c) {
393
+ function ar(o, c) {
394
394
  {
395
395
  var d = function() {
396
- Be || (Be = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
396
+ Ke || (Ke = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
397
397
  };
398
398
  d.isReactWarning = !0, Object.defineProperty(o, "key", {
399
399
  get: d,
@@ -401,10 +401,10 @@ function Or() {
401
401
  });
402
402
  }
403
403
  }
404
- function ar(o, c) {
404
+ function ur(o, c) {
405
405
  {
406
406
  var d = function() {
407
- Ke || (Ke = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
407
+ Be || (Be = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
408
408
  };
409
409
  d.isReactWarning = !0, Object.defineProperty(o, "ref", {
410
410
  get: d,
@@ -412,7 +412,7 @@ function Or() {
412
412
  });
413
413
  }
414
414
  }
415
- var ur = function(o, c, d, y, E, R, v) {
415
+ var cr = function(o, c, d, y, E, P, v) {
416
416
  var g = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: t,
@@ -422,7 +422,7 @@ function Or() {
422
422
  ref: d,
423
423
  props: v,
424
424
  // Record the component responsible for creating this element.
425
- _owner: R
425
+ _owner: P
426
426
  };
427
427
  return g._store = {}, Object.defineProperty(g._store, "validated", {
428
428
  configurable: !1,
@@ -441,22 +441,22 @@ function Or() {
441
441
  value: E
442
442
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
443
443
  };
444
- function cr(o, c, d, y, E) {
444
+ function lr(o, c, d, y, E) {
445
445
  {
446
- var R, v = {}, g = null, _ = null;
447
- d !== void 0 && (Me(d), g = "" + d), or(c) && (Me(c.key), g = "" + c.key), nr(c) && (_ = c.ref, ir(c, E));
448
- for (R in c)
449
- K.call(c, R) && !rr.hasOwnProperty(R) && (v[R] = c[R]);
446
+ var P, v = {}, g = null, _ = null;
447
+ d !== void 0 && (Me(d), g = "" + d), ir(c) && (Me(c.key), g = "" + c.key), or(c) && (_ = c.ref, sr(c, E));
448
+ for (P in c)
449
+ B.call(c, P) && !nr.hasOwnProperty(P) && (v[P] = c[P]);
450
450
  if (o && o.defaultProps) {
451
- var T = o.defaultProps;
452
- for (R in T)
453
- v[R] === void 0 && (v[R] = T[R]);
451
+ var O = o.defaultProps;
452
+ for (P in O)
453
+ v[P] === void 0 && (v[P] = O[P]);
454
454
  }
455
455
  if (g || _) {
456
- var O = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
457
- g && sr(v, O), _ && ar(v, O);
456
+ var T = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
457
+ g && ar(v, T), _ && ur(v, T);
458
458
  }
459
- return ur(o, g, _, E, y, We.current, v);
459
+ return cr(o, g, _, E, y, We.current, v);
460
460
  }
461
461
  }
462
462
  var de = j.ReactCurrentOwner, Ye = j.ReactDebugCurrentFrame;
@@ -484,11 +484,11 @@ Check the render method of \`` + o + "`.";
484
484
  return "";
485
485
  }
486
486
  }
487
- function lr(o) {
487
+ function fr(o) {
488
488
  return "";
489
489
  }
490
490
  var Ge = {};
491
- function fr(o) {
491
+ function dr(o) {
492
492
  {
493
493
  var c = He();
494
494
  if (!c) {
@@ -505,7 +505,7 @@ Check the top-level render call using <` + d + ">.");
505
505
  if (!o._store || o._store.validated || o.key != null)
506
506
  return;
507
507
  o._store.validated = !0;
508
- var d = fr(c);
508
+ var d = dr(c);
509
509
  if (Ge[d])
510
510
  return;
511
511
  Ge[d] = !0;
@@ -527,12 +527,12 @@ Check the top-level render call using <` + d + ">.");
527
527
  else if (o) {
528
528
  var E = L(o);
529
529
  if (typeof E == "function" && E !== o.entries)
530
- for (var R = E.call(o), v; !(v = R.next()).done; )
530
+ for (var P = E.call(o), v; !(v = P.next()).done; )
531
531
  pe(v.value) && Xe(v.value, c);
532
532
  }
533
533
  }
534
534
  }
535
- function dr(o) {
535
+ function mr(o) {
536
536
  {
537
537
  var c = o.type;
538
538
  if (c == null || typeof c == "string")
@@ -548,7 +548,7 @@ Check the top-level render call using <` + d + ">.");
548
548
  return;
549
549
  if (d) {
550
550
  var y = I(c);
551
- Zt(d, o.props, "prop", y, o);
551
+ Qt(d, o.props, "prop", y, o);
552
552
  } else if (c.PropTypes !== void 0 && !me) {
553
553
  me = !0;
554
554
  var E = I(c);
@@ -557,7 +557,7 @@ Check the top-level render call using <` + d + ">.");
557
557
  typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
- function mr(o) {
560
+ function pr(o) {
561
561
  {
562
562
  for (var c = Object.keys(o.props), d = 0; d < c.length; d++) {
563
563
  var y = c[d];
@@ -570,20 +570,20 @@ Check the top-level render call using <` + d + ">.");
570
570
  }
571
571
  }
572
572
  var Ze = {};
573
- function Qe(o, c, d, y, E, R) {
573
+ function Qe(o, c, d, y, E, P) {
574
574
  {
575
575
  var v = Bt(o);
576
576
  if (!v) {
577
577
  var g = "";
578
578
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
- var _ = lr();
579
+ var _ = fr();
580
580
  _ ? g += _ : g += He();
581
- var T;
582
- o === null ? T = "null" : fe(o) ? T = "array" : o !== void 0 && o.$$typeof === t ? (T = "<" + (I(o.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : T = typeof o, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, g);
581
+ var O;
582
+ o === null ? O = "null" : fe(o) ? O = "array" : o !== void 0 && o.$$typeof === t ? (O = "<" + (I(o.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof o, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
583
583
  }
584
- var O = cr(o, c, d, E, R);
585
- if (O == null)
586
- return O;
584
+ var T = lr(o, c, d, E, P);
585
+ if (T == null)
586
+ return T;
587
587
  if (v) {
588
588
  var C = c.children;
589
589
  if (C !== void 0)
@@ -597,48 +597,48 @@ Check the top-level render call using <` + d + ">.");
597
597
  else
598
598
  Je(C, o);
599
599
  }
600
- if (K.call(c, "key")) {
601
- var N = I(o), k = Object.keys(c).filter(function(wr) {
602
- return wr !== "key";
600
+ if (B.call(c, "key")) {
601
+ var $ = I(o), k = Object.keys(c).filter(function(vr) {
602
+ return vr !== "key";
603
603
  }), ye = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!Ze[N + ye]) {
605
- var br = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
604
+ if (!Ze[$ + ye]) {
605
+ var wr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
606
606
  S(`A props object containing a "key" prop is being spread into JSX:
607
607
  let props = %s;
608
608
  <%s {...props} />
609
609
  React keys must be passed directly to JSX without using spread:
610
610
  let props = %s;
611
- <%s key={someKey} {...props} />`, ye, N, br, N), Ze[N + ye] = !0;
611
+ <%s key={someKey} {...props} />`, ye, $, wr, $), Ze[$ + ye] = !0;
612
612
  }
613
613
  }
614
- return o === n ? mr(O) : dr(O), O;
614
+ return o === n ? pr(T) : mr(T), T;
615
615
  }
616
616
  }
617
- function pr(o, c, d) {
617
+ function yr(o, c, d) {
618
618
  return Qe(o, c, d, !0);
619
619
  }
620
- function yr(o, c, d) {
620
+ function hr(o, c, d) {
621
621
  return Qe(o, c, d, !1);
622
622
  }
623
- var hr = yr, gr = pr;
624
- H.Fragment = n, H.jsx = hr, H.jsxs = gr;
623
+ var gr = hr, br = yr;
624
+ H.Fragment = n, H.jsx = gr, H.jsxs = br;
625
625
  }()), H;
626
626
  }
627
- process.env.NODE_ENV === "production" ? Pe.exports = Tr() : Pe.exports = Or();
628
- var Re = Pe.exports, _e = /* @__PURE__ */ ((e) => (e.PDF = "application/pdf", e.TXT = "text/plain", e.CSV = "text/csv", e))(_e || {});
629
- const he = 4e3 * 1024 * 1024, Sr = [
627
+ process.env.NODE_ENV === "production" ? Re.exports = Tr() : Re.exports = Sr();
628
+ var Pe = Re.exports, wt = /* @__PURE__ */ ((e) => (e.NOT_CHUNKED = "NOT_CHUNKED", e.CHUNKED = "CHUNKED", e.ERROR_CHUNKING = "ERROR_CHUNKING", e))(wt || {}), _e = /* @__PURE__ */ ((e) => (e.PDF = "application/pdf", e.TXT = "text/plain", e.CSV = "text/csv", e))(_e || {});
629
+ const he = 4e3 * 1024 * 1024, xr = [
630
630
  ".txt",
631
631
  ".json",
632
632
  ".py",
633
633
  ".ts",
634
634
  ".tsx"
635
- ], xr = {
635
+ ], _r = {
636
636
  "application/pdf": {
637
637
  extensions: [".pdf"],
638
638
  maxSize: he
639
639
  },
640
640
  "text/plain": {
641
- extensions: Sr,
641
+ extensions: xr,
642
642
  maxSize: he
643
643
  },
644
644
  "text/csv": {
@@ -646,7 +646,7 @@ const he = 4e3 * 1024 * 1024, Sr = [
646
646
  maxSize: he
647
647
  }
648
648
  };
649
- Object.entries(xr).reduce(
649
+ Object.entries(_r).reduce(
650
650
  (e, [t, r]) => ({
651
651
  ...e,
652
652
  [t]: r.extensions
@@ -683,15 +683,15 @@ function W(e) {
683
683
  };
684
684
  },
685
685
  pipe(...r) {
686
- return r.reduce(_r, t);
686
+ return r.reduce(kr, t);
687
687
  }
688
688
  };
689
689
  return t;
690
690
  }
691
- function _r(e, t) {
691
+ function kr(e, t) {
692
692
  return t(e);
693
693
  }
694
- function kr(e) {
694
+ function Cr(e) {
695
695
  const t = new AbortController();
696
696
  return new Promise((n, i) => {
697
697
  let s = !1;
@@ -714,7 +714,7 @@ function kr(e) {
714
714
  });
715
715
  });
716
716
  }
717
- function Cr(e) {
717
+ function jr(e) {
718
718
  return (t) => {
719
719
  let r = 0, n = null;
720
720
  const i = [];
@@ -752,7 +752,7 @@ function Cr(e) {
752
752
  }));
753
753
  };
754
754
  }
755
- function jr(e) {
755
+ function Ar(e) {
756
756
  return (t) => W((r) => t.subscribe({
757
757
  next(n) {
758
758
  var i;
@@ -768,7 +768,7 @@ function jr(e) {
768
768
  }
769
769
  }));
770
770
  }
771
- function Ar(e) {
771
+ function Ir(e) {
772
772
  let t = e;
773
773
  const r = [], n = (u) => {
774
774
  t !== void 0 && u.next(t), r.push(u);
@@ -785,7 +785,7 @@ function Ar(e) {
785
785
  }
786
786
  }, s.get = () => t, s;
787
787
  }
788
- function Ir(e) {
788
+ function Dr(e) {
789
789
  return W((t) => {
790
790
  function r(i = 0, s = e.op) {
791
791
  const u = e.links[i];
@@ -801,17 +801,17 @@ function Ir(e) {
801
801
  return r().subscribe(t);
802
802
  });
803
803
  }
804
- const wt = () => {
804
+ const vt = () => {
805
805
  }, rt = (e) => {
806
806
  Object.freeze && Object.freeze(e);
807
807
  };
808
- function vt(e, t, r) {
808
+ function Et(e, t, r) {
809
809
  var n, i;
810
810
  const s = t.join(".");
811
- return (n = r)[i = s] ?? (n[i] = new Proxy(wt, {
811
+ return (n = r)[i = s] ?? (n[i] = new Proxy(vt, {
812
812
  get(u, l) {
813
813
  if (!(typeof l != "string" || l === "then"))
814
- return vt(e, [
814
+ return Et(e, [
815
815
  ...t,
816
816
  l
817
817
  ], r);
@@ -834,7 +834,7 @@ function vt(e, t, r) {
834
834
  }
835
835
  })), r[s];
836
836
  }
837
- const Fr = (e) => vt(e, [], /* @__PURE__ */ Object.create(null)), Dr = (e) => new Proxy(wt, {
837
+ const Fr = (e) => Et(e, [], /* @__PURE__ */ Object.create(null)), Nr = (e) => new Proxy(vt, {
838
838
  get(t, r) {
839
839
  if (r !== "then")
840
840
  return e(r);
@@ -870,7 +870,7 @@ class ge extends Error {
870
870
  super("Unable to transform response from server");
871
871
  }
872
872
  }
873
- function Nr(e, t) {
873
+ function Ur(e, t) {
874
874
  let r;
875
875
  try {
876
876
  r = $r(e, t);
@@ -897,29 +897,29 @@ function oe(e, t, r) {
897
897
  writable: !0
898
898
  }) : e[t] = r, e;
899
899
  }
900
- function Ur(e) {
901
- return e instanceof F || /**
900
+ function Lr(e) {
901
+ return e instanceof D || /**
902
902
  * @deprecated
903
903
  * Delete in next major
904
904
  */
905
905
  e instanceof Error && e.name === "TRPCClientError";
906
906
  }
907
- function Lr(e) {
907
+ function Vr(e) {
908
908
  return X(e) && X(e.error) && typeof e.error.code == "number" && typeof e.error.message == "string";
909
909
  }
910
- function Vr(e, t) {
910
+ function qr(e, t) {
911
911
  return typeof e == "string" ? e : X(e) && typeof e.message == "string" ? e.message : t;
912
912
  }
913
- class F extends Error {
913
+ class D extends Error {
914
914
  static from(t, r = {}) {
915
915
  const n = t;
916
- return Ur(n) ? (r.meta && (n.meta = {
916
+ return Lr(n) ? (r.meta && (n.meta = {
917
917
  ...n.meta,
918
918
  ...r.meta
919
- }), n) : Lr(n) ? new F(n.error.message, {
919
+ }), n) : Vr(n) ? new D(n.error.message, {
920
920
  ...r,
921
921
  result: n
922
- }) : new F(Vr(n, "Unknown error"), {
922
+ }) : new D(qr(n, "Unknown error"), {
923
923
  ...r,
924
924
  cause: n
925
925
  });
@@ -935,7 +935,7 @@ class F extends Error {
935
935
  * Additional meta data about the error
936
936
  * In the case of HTTP-errors, we'll have `response` and potentially `responseJSON` here
937
937
  */
938
- oe(this, "meta", void 0), this.meta = r == null ? void 0 : r.meta, this.cause = n, this.shape = (i = r == null ? void 0 : r.result) == null ? void 0 : i.error, this.data = (s = r == null ? void 0 : r.result) == null ? void 0 : s.error.data, this.name = "TRPCClientError", Object.setPrototypeOf(this, F.prototype);
938
+ oe(this, "meta", void 0), this.meta = r == null ? void 0 : r.meta, this.cause = n, this.shape = (i = r == null ? void 0 : r.result) == null ? void 0 : i.error, this.data = (s = r == null ? void 0 : r.result) == null ? void 0 : s.error.data, this.name = "TRPCClientError", Object.setPrototypeOf(this, D.prototype);
939
939
  }
940
940
  }
941
941
  function be(e, t, r) {
@@ -946,23 +946,23 @@ function be(e, t, r) {
946
946
  writable: !0
947
947
  }) : e[t] = r, e;
948
948
  }
949
- class qr {
949
+ class zr {
950
950
  $request(t) {
951
- return Ir({
951
+ return Dr({
952
952
  links: this.links,
953
953
  op: {
954
954
  ...t,
955
955
  context: t.context ?? {},
956
956
  id: ++this.requestId
957
957
  }
958
- }).pipe(Cr());
958
+ }).pipe(jr());
959
959
  }
960
960
  async requestAsPromise(t) {
961
961
  try {
962
962
  const r = this.$request(t);
963
- return (await kr(r)).result.data;
963
+ return (await Cr(r)).result.data;
964
964
  } catch (r) {
965
- throw F.from(r);
965
+ throw D.from(r);
966
966
  }
967
967
  }
968
968
  query(t, r, n) {
@@ -1029,26 +1029,26 @@ class qr {
1029
1029
  be(this, "links", void 0), be(this, "runtime", void 0), be(this, "requestId", void 0), this.requestId = 0, this.runtime = {}, this.links = t.links.map((r) => r(this.runtime));
1030
1030
  }
1031
1031
  }
1032
- const zr = Symbol.for("trpc_untypedClient"), Mr = {
1032
+ const Mr = Symbol.for("trpc_untypedClient"), Wr = {
1033
1033
  query: "query",
1034
1034
  mutate: "mutation",
1035
1035
  subscribe: "subscription"
1036
- }, Wr = (e) => Mr[e];
1036
+ }, Kr = (e) => Wr[e];
1037
1037
  function Br(e) {
1038
1038
  const t = Fr(({ path: r, args: n }) => {
1039
1039
  const i = [
1040
1040
  ...r
1041
- ], s = Wr(i.pop()), u = i.join(".");
1041
+ ], s = Kr(i.pop()), u = i.join(".");
1042
1042
  return e[s](u, ...n);
1043
1043
  });
1044
- return Dr((r) => r === zr ? e : t[r]);
1044
+ return Nr((r) => r === Mr ? e : t[r]);
1045
1045
  }
1046
- function Kr(e) {
1047
- const t = new qr(e);
1046
+ function Yr(e) {
1047
+ const t = new zr(e);
1048
1048
  return Br(t);
1049
1049
  }
1050
1050
  const it = (e) => typeof e == "function";
1051
- function Yr(e) {
1051
+ function Hr(e) {
1052
1052
  if (e)
1053
1053
  return e;
1054
1054
  if (typeof window < "u" && it(window.fetch))
@@ -1080,7 +1080,7 @@ function at(e) {
1080
1080
  (m = h.reject) == null || m.call(h, new Error("Aborted")), f++;
1081
1081
  continue;
1082
1082
  }
1083
- if (e.validate(b.concat(h).map((P) => P.key))) {
1083
+ if (e.validate(b.concat(h).map((R) => R.key))) {
1084
1084
  b.push(h), f++;
1085
1085
  continue;
1086
1086
  }
@@ -1107,14 +1107,14 @@ function at(e) {
1107
1107
  var h;
1108
1108
  await Promise.all(p.map(async (b, x) => {
1109
1109
  var L, j;
1110
- const P = f.items[x];
1110
+ const R = f.items[x];
1111
1111
  try {
1112
1112
  const S = await Promise.resolve(b);
1113
- (L = P.resolve) == null || L.call(P, S);
1113
+ (L = R.resolve) == null || L.call(R, S);
1114
1114
  } catch (S) {
1115
- (j = P.reject) == null || j.call(P, S);
1115
+ (j = R.reject) == null || j.call(R, S);
1116
1116
  }
1117
- P.batch = null, P.reject = null, P.resolve = null;
1117
+ R.batch = null, R.reject = null, R.resolve = null;
1118
1118
  }));
1119
1119
  for (const b of f.items)
1120
1120
  (h = b.reject) == null || h.call(b, new Error("Missing result")), b.batch = null;
@@ -1141,7 +1141,7 @@ function at(e) {
1141
1141
  load: u
1142
1142
  };
1143
1143
  }
1144
- function Hr(...e) {
1144
+ function Gr(...e) {
1145
1145
  const t = new AbortController(), r = e.length;
1146
1146
  let n = 0;
1147
1147
  const i = () => {
@@ -1153,7 +1153,7 @@ function Hr(...e) {
1153
1153
  });
1154
1154
  return t.signal;
1155
1155
  }
1156
- function Gr(e) {
1156
+ function Xr(e) {
1157
1157
  const t = e;
1158
1158
  return t ? "input" in t ? t : {
1159
1159
  input: t,
@@ -1169,15 +1169,15 @@ function Gr(e) {
1169
1169
  }
1170
1170
  };
1171
1171
  }
1172
- function Xr(e) {
1172
+ function Jr(e) {
1173
1173
  return {
1174
1174
  url: e.url.toString(),
1175
1175
  fetch: e.fetch,
1176
- transformer: Gr(e.transformer),
1176
+ transformer: Xr(e.transformer),
1177
1177
  methodOverride: e.methodOverride
1178
1178
  };
1179
1179
  }
1180
- function Jr(e) {
1180
+ function Zr(e) {
1181
1181
  const t = {};
1182
1182
  for (let r = 0; r < e.length; r++) {
1183
1183
  const n = e[r];
@@ -1185,47 +1185,47 @@ function Jr(e) {
1185
1185
  }
1186
1186
  return t;
1187
1187
  }
1188
- const Zr = {
1188
+ const Qr = {
1189
1189
  query: "GET",
1190
1190
  mutation: "POST",
1191
1191
  subscription: "PATCH"
1192
1192
  };
1193
- function Et(e) {
1194
- return "input" in e ? e.transformer.input.serialize(e.input) : Jr(e.inputs.map((t) => e.transformer.input.serialize(t)));
1193
+ function Rt(e) {
1194
+ return "input" in e ? e.transformer.input.serialize(e.input) : Zr(e.inputs.map((t) => e.transformer.input.serialize(t)));
1195
1195
  }
1196
1196
  const Pt = (e) => {
1197
1197
  const t = e.url.split("?");
1198
1198
  let n = t[0].replace(/\/$/, "") + "/" + e.path;
1199
1199
  const i = [];
1200
1200
  if (t[1] && i.push(t[1]), "inputs" in e && i.push("batch=1"), e.type === "query" || e.type === "subscription") {
1201
- const s = Et(e);
1201
+ const s = Rt(e);
1202
1202
  s !== void 0 && e.methodOverride !== "POST" && i.push(`input=${encodeURIComponent(JSON.stringify(s))}`);
1203
1203
  }
1204
1204
  return i.length && (n += "?" + i.join("&")), n;
1205
- }, Qr = (e) => {
1205
+ }, en = (e) => {
1206
1206
  if (e.type === "query" && e.methodOverride !== "POST")
1207
1207
  return;
1208
- const t = Et(e);
1208
+ const t = Rt(e);
1209
1209
  return t !== void 0 ? JSON.stringify(t) : void 0;
1210
- }, en = (e) => on({
1210
+ }, tn = (e) => sn({
1211
1211
  ...e,
1212
1212
  contentTypeHeader: "application/json",
1213
1213
  getUrl: Pt,
1214
- getBody: Qr
1214
+ getBody: en
1215
1215
  });
1216
- class tn extends Error {
1216
+ class rn extends Error {
1217
1217
  constructor() {
1218
1218
  const t = "AbortError";
1219
1219
  super(t), this.name = t, this.message = t;
1220
1220
  }
1221
1221
  }
1222
- const rn = (e) => {
1222
+ const nn = (e) => {
1223
1223
  var t;
1224
1224
  if (e != null && e.aborted)
1225
- throw (t = e.throwIfAborted) == null || t.call(e), typeof DOMException < "u" ? new DOMException("AbortError", "AbortError") : new tn();
1225
+ throw (t = e.throwIfAborted) == null || t.call(e), typeof DOMException < "u" ? new DOMException("AbortError", "AbortError") : new rn();
1226
1226
  };
1227
- async function nn(e) {
1228
- rn(e.signal);
1227
+ async function on(e) {
1228
+ nn(e.signal);
1229
1229
  const t = e.getUrl(e), r = e.getBody(e), { type: n } = e, i = await (async () => {
1230
1230
  const u = await e.headers();
1231
1231
  return Symbol.iterator in u ? Object.fromEntries(u) : u;
@@ -1238,15 +1238,15 @@ async function nn(e) {
1238
1238
  } : void 0,
1239
1239
  ...i
1240
1240
  };
1241
- return Yr(e.fetch)(t, {
1242
- method: e.methodOverride ?? Zr[n],
1241
+ return Hr(e.fetch)(t, {
1242
+ method: e.methodOverride ?? Qr[n],
1243
1243
  signal: e.signal,
1244
1244
  body: r,
1245
1245
  headers: s
1246
1246
  });
1247
1247
  }
1248
- async function on(e) {
1249
- const t = {}, r = await nn(e);
1248
+ async function sn(e) {
1249
+ const t = {}, r = await on(e);
1250
1250
  t.response = r;
1251
1251
  const n = await r.json();
1252
1252
  return t.responseJSON = n, {
@@ -1254,8 +1254,8 @@ async function on(e) {
1254
1254
  meta: t
1255
1255
  };
1256
1256
  }
1257
- function sn(e) {
1258
- const t = Xr(e), r = e.maxURLLength ?? 1 / 0;
1257
+ function an(e) {
1258
+ const t = Jr(e), r = e.maxURLLength ?? 1 / 0;
1259
1259
  return () => {
1260
1260
  const n = (l) => ({
1261
1261
  validate(a) {
@@ -1271,7 +1271,7 @@ function sn(e) {
1271
1271
  }).length <= r;
1272
1272
  },
1273
1273
  async fetch(a) {
1274
- const f = a.map((P) => P.path).join(","), m = a.map((P) => P.input), p = Hr(...a.map((P) => P.signal)), h = await en({
1274
+ const f = a.map((R) => R.path).join(","), m = a.map((R) => R.input), p = Gr(...a.map((R) => R.signal)), h = await tn({
1275
1275
  ...t,
1276
1276
  path: f,
1277
1277
  inputs: m,
@@ -1283,9 +1283,9 @@ function sn(e) {
1283
1283
  },
1284
1284
  signal: p
1285
1285
  });
1286
- return (Array.isArray(h.json) ? h.json : a.map(() => h.json)).map((P) => ({
1286
+ return (Array.isArray(h.json) ? h.json : a.map(() => h.json)).map((R) => ({
1287
1287
  meta: h.meta,
1288
- json: P
1288
+ json: R
1289
1289
  }));
1290
1290
  }
1291
1291
  }), i = at(n("query")), s = at(n("mutation")), u = {
@@ -1300,9 +1300,9 @@ function sn(e) {
1300
1300
  let p;
1301
1301
  return m.then((h) => {
1302
1302
  p = h;
1303
- const b = Nr(h.json, t.transformer.output);
1303
+ const b = Ur(h.json, t.transformer.output);
1304
1304
  if (!b.ok) {
1305
- a.error(F.from(b.error, {
1305
+ a.error(D.from(b.error, {
1306
1306
  meta: h.meta
1307
1307
  }));
1308
1308
  return;
@@ -1312,7 +1312,7 @@ function sn(e) {
1312
1312
  result: b.result
1313
1313
  }), a.complete();
1314
1314
  }).catch((h) => {
1315
- a.error(F.from(h, {
1315
+ a.error(D.from(h, {
1316
1316
  meta: p == null ? void 0 : p.meta
1317
1317
  }));
1318
1318
  }), () => {
@@ -1320,7 +1320,7 @@ function sn(e) {
1320
1320
  });
1321
1321
  };
1322
1322
  }
1323
- function an(e) {
1323
+ function un(e) {
1324
1324
  return typeof FormData > "u" ? !1 : e instanceof FormData;
1325
1325
  }
1326
1326
  const we = {
@@ -1372,7 +1372,7 @@ const we = {
1372
1372
  }
1373
1373
  }
1374
1374
  };
1375
- function un(e) {
1375
+ function cn(e) {
1376
1376
  const { direction: t, type: r, withContext: n, path: i, id: s, input: u } = e, l = [], a = [];
1377
1377
  if (e.colorMode === "none")
1378
1378
  l.push(t === "up" ? ">>" : "<<", r, `#${s}`, i);
@@ -1404,8 +1404,8 @@ function un(e) {
1404
1404
  args: a
1405
1405
  };
1406
1406
  }
1407
- const cn = ({ c: e = console, colorMode: t = "css", withContext: r }) => (n) => {
1408
- const i = n.input, s = an(i) ? Object.fromEntries(i) : i, { parts: u, args: l } = un({
1407
+ const ln = ({ c: e = console, colorMode: t = "css", withContext: r }) => (n) => {
1408
+ const i = n.input, s = un(i) ? Object.fromEntries(i) : i, { parts: u, args: l } = cn({
1409
1409
  ...n,
1410
1410
  colorMode: t,
1411
1411
  input: s,
@@ -1415,8 +1415,8 @@ const cn = ({ c: e = console, colorMode: t = "css", withContext: r }) => (n) =>
1415
1415
  u.join(" ")
1416
1416
  ].concat(l));
1417
1417
  };
1418
- function ln(e = {}) {
1419
- const { enabled: t = () => !0 } = e, r = e.colorMode ?? (typeof window > "u" ? "ansi" : "css"), n = e.withContext ?? r === "css", { logger: i = cn({
1418
+ function fn(e = {}) {
1419
+ const { enabled: t = () => !0 } = e, r = e.colorMode ?? (typeof window > "u" ? "ansi" : "css"), n = e.withContext ?? r === "css", { logger: i = ln({
1420
1420
  c: e.console,
1421
1421
  colorMode: r,
1422
1422
  withContext: n
@@ -1443,7 +1443,7 @@ function ln(e = {}) {
1443
1443
  result: m
1444
1444
  });
1445
1445
  }
1446
- return u(s).pipe(jr({
1446
+ return u(s).pipe(Ar({
1447
1447
  next(m) {
1448
1448
  f(m);
1449
1449
  },
@@ -1453,8 +1453,8 @@ function ln(e = {}) {
1453
1453
  })).subscribe(l);
1454
1454
  });
1455
1455
  }
1456
- const fn = (e, ...t) => typeof e == "function" ? e(...t) : e;
1457
- function dn() {
1456
+ const dn = (e, ...t) => typeof e == "function" ? e(...t) : e;
1457
+ function mn() {
1458
1458
  let e, t;
1459
1459
  return {
1460
1460
  promise: new Promise((n, i) => {
@@ -1464,8 +1464,8 @@ function dn() {
1464
1464
  reject: t
1465
1465
  };
1466
1466
  }
1467
- async function mn(e) {
1468
- const t = await fn(e.url);
1467
+ async function pn(e) {
1468
+ const t = await dn(e.url);
1469
1469
  if (!e.connectionParams) return t;
1470
1470
  const n = `${t.includes("?") ? "&" : "?"}connectionParams=1`;
1471
1471
  return t + n;
@@ -1478,13 +1478,13 @@ function U(e, t, r) {
1478
1478
  writable: !0
1479
1479
  }) : e[t] = r, e;
1480
1480
  }
1481
- function pn(e) {
1482
- const { promise: t, resolve: r, reject: n } = dn();
1481
+ function yn(e) {
1482
+ const { promise: t, resolve: r, reject: n } = mn();
1483
1483
  return e.addEventListener("open", () => {
1484
1484
  e.removeEventListener("error", n), r();
1485
1485
  }), e.addEventListener("error", n), t;
1486
1486
  }
1487
- function yn(e, { intervalMs: t, pongTimeoutMs: r }) {
1487
+ function hn(e, { intervalMs: t, pongTimeoutMs: r }) {
1488
1488
  let n, i;
1489
1489
  function s() {
1490
1490
  n = setTimeout(() => {
@@ -1527,10 +1527,10 @@ class se {
1527
1527
  async open() {
1528
1528
  if (this.openPromise) return this.openPromise;
1529
1529
  this.id = ++se.connectCount;
1530
- const t = mn(this.urlOptions).then((r) => new this.WebSocketPonyfill(r));
1531
- this.openPromise = t.then(pn), this.ws = await t, this.ws.addEventListener("message", function({ data: r }) {
1530
+ const t = pn(this.urlOptions).then((r) => new this.WebSocketPonyfill(r));
1531
+ this.openPromise = t.then(yn), this.ws = await t, this.ws.addEventListener("message", function({ data: r }) {
1532
1532
  r === "PING" && this.send("PONG");
1533
- }), this.keepAliveOpts.enabled && yn(this.ws, this.keepAliveOpts), this.ws.addEventListener("close", () => {
1533
+ }), this.keepAliveOpts.enabled && hn(this.ws, this.keepAliveOpts), this.ws.addEventListener("close", () => {
1534
1534
  this.ws = null;
1535
1535
  });
1536
1536
  try {
@@ -1552,13 +1552,13 @@ class se {
1552
1552
  }
1553
1553
  }
1554
1554
  constructor(t) {
1555
- if (U(this, "id", ++se.connectCount), U(this, "WebSocketPonyfill", void 0), U(this, "urlOptions", void 0), U(this, "keepAliveOpts", void 0), U(this, "wsObservable", Ar(null)), U(this, "openPromise", null), this.WebSocketPonyfill = t.WebSocketPonyfill ?? WebSocket, !this.WebSocketPonyfill)
1555
+ if (U(this, "id", ++se.connectCount), U(this, "WebSocketPonyfill", void 0), U(this, "urlOptions", void 0), U(this, "keepAliveOpts", void 0), U(this, "wsObservable", Ir(null)), U(this, "openPromise", null), this.WebSocketPonyfill = t.WebSocketPonyfill ?? WebSocket, !this.WebSocketPonyfill)
1556
1556
  throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");
1557
1557
  this.urlOptions = t.urlOptions, this.keepAliveOpts = t.keepAlive;
1558
1558
  }
1559
1559
  }
1560
1560
  U(se, "connectCount", 0);
1561
- class hn {
1561
+ class gn {
1562
1562
  constructor() {
1563
1563
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
1564
1564
  }
@@ -1575,9 +1575,9 @@ class hn {
1575
1575
  this.keyToValue.clear(), this.valueToKey.clear();
1576
1576
  }
1577
1577
  }
1578
- class Rt {
1578
+ class Ot {
1579
1579
  constructor(t) {
1580
- this.generateIdentifier = t, this.kv = new hn();
1580
+ this.generateIdentifier = t, this.kv = new gn();
1581
1581
  }
1582
1582
  register(t, r) {
1583
1583
  this.kv.getByValue(t) || (r || (r = this.generateIdentifier(t)), this.kv.set(r, t));
@@ -1592,7 +1592,7 @@ class Rt {
1592
1592
  return this.kv.getByKey(t);
1593
1593
  }
1594
1594
  }
1595
- class gn extends Rt {
1595
+ class bn extends Ot {
1596
1596
  constructor() {
1597
1597
  super((t) => t.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
1598
1598
  }
@@ -1603,7 +1603,7 @@ class gn extends Rt {
1603
1603
  return this.classToAllowedProps.get(t);
1604
1604
  }
1605
1605
  }
1606
- function bn(e) {
1606
+ function wn(e) {
1607
1607
  if ("values" in Object)
1608
1608
  return Object.values(e);
1609
1609
  const t = [];
@@ -1611,8 +1611,8 @@ function bn(e) {
1611
1611
  e.hasOwnProperty(r) && t.push(e[r]);
1612
1612
  return t;
1613
1613
  }
1614
- function wn(e, t) {
1615
- const r = bn(e);
1614
+ function vn(e, t) {
1615
+ const r = wn(e);
1616
1616
  if ("find" in r)
1617
1617
  return r.find(t);
1618
1618
  const n = r;
@@ -1635,7 +1635,7 @@ function ut(e, t) {
1635
1635
  return n;
1636
1636
  }
1637
1637
  }
1638
- class vn {
1638
+ class En {
1639
1639
  constructor() {
1640
1640
  this.transfomers = {};
1641
1641
  }
@@ -1643,13 +1643,13 @@ class vn {
1643
1643
  this.transfomers[t.name] = t;
1644
1644
  }
1645
1645
  findApplicable(t) {
1646
- return wn(this.transfomers, (r) => r.isApplicable(t));
1646
+ return vn(this.transfomers, (r) => r.isApplicable(t));
1647
1647
  }
1648
1648
  findByName(t) {
1649
1649
  return this.transfomers[t];
1650
1650
  }
1651
1651
  }
1652
- const En = (e) => Object.prototype.toString.call(e).slice(8, -1), Tt = (e) => typeof e > "u", Pn = (e) => e === null, J = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Te = (e) => J(e) && Object.keys(e).length === 0, D = (e) => Array.isArray(e), Rn = (e) => typeof e == "string", Tn = (e) => typeof e == "number" && !isNaN(e), On = (e) => typeof e == "boolean", Sn = (e) => e instanceof RegExp, Z = (e) => e instanceof Map, Q = (e) => e instanceof Set, Ot = (e) => En(e) === "Symbol", xn = (e) => e instanceof Date && !isNaN(e.valueOf()), _n = (e) => e instanceof Error, ct = (e) => typeof e == "number" && isNaN(e), kn = (e) => On(e) || Pn(e) || Tt(e) || Tn(e) || Rn(e) || Ot(e), Cn = (e) => typeof e == "bigint", jn = (e) => e === 1 / 0 || e === -1 / 0, An = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), In = (e) => e instanceof URL, St = (e) => e.replace(/\./g, "\\."), ve = (e) => e.map(String).map(St).join("."), G = (e) => {
1652
+ const Rn = (e) => Object.prototype.toString.call(e).slice(8, -1), Tt = (e) => typeof e > "u", Pn = (e) => e === null, J = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Oe = (e) => J(e) && Object.keys(e).length === 0, F = (e) => Array.isArray(e), On = (e) => typeof e == "string", Tn = (e) => typeof e == "number" && !isNaN(e), Sn = (e) => typeof e == "boolean", xn = (e) => e instanceof RegExp, Z = (e) => e instanceof Map, Q = (e) => e instanceof Set, St = (e) => Rn(e) === "Symbol", _n = (e) => e instanceof Date && !isNaN(e.valueOf()), kn = (e) => e instanceof Error, ct = (e) => typeof e == "number" && isNaN(e), Cn = (e) => Sn(e) || Pn(e) || Tt(e) || Tn(e) || On(e) || St(e), jn = (e) => typeof e == "bigint", An = (e) => e === 1 / 0 || e === -1 / 0, In = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Dn = (e) => e instanceof URL, xt = (e) => e.replace(/\./g, "\\."), ve = (e) => e.map(String).map(xt).join("."), G = (e) => {
1653
1653
  const t = [];
1654
1654
  let r = "";
1655
1655
  for (let i = 0; i < e.length; i++) {
@@ -1675,12 +1675,12 @@ function A(e, t, r, n) {
1675
1675
  untransform: n
1676
1676
  };
1677
1677
  }
1678
- const xt = [
1678
+ const _t = [
1679
1679
  A(Tt, "undefined", () => null, () => {
1680
1680
  }),
1681
- A(Cn, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
1682
- A(xn, "Date", (e) => e.toISOString(), (e) => new Date(e)),
1683
- A(_n, "Error", (e, t) => {
1681
+ A(jn, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
1682
+ A(_n, "Date", (e) => e.toISOString(), (e) => new Date(e)),
1683
+ A(kn, "Error", (e, t) => {
1684
1684
  const r = {
1685
1685
  name: e.name,
1686
1686
  message: e.message
@@ -1694,7 +1694,7 @@ const xt = [
1694
1694
  r[n] = e[n];
1695
1695
  }), r;
1696
1696
  }),
1697
- A(Sn, "regexp", (e) => "" + e, (e) => {
1697
+ A(xn, "regexp", (e) => "" + e, (e) => {
1698
1698
  const t = e.slice(1, e.lastIndexOf("/")), r = e.slice(e.lastIndexOf("/") + 1);
1699
1699
  return new RegExp(t, r);
1700
1700
  }),
@@ -1707,9 +1707,9 @@ const xt = [
1707
1707
  (e) => new Set(e)
1708
1708
  ),
1709
1709
  A(Z, "map", (e) => [...e.entries()], (e) => new Map(e)),
1710
- A((e) => ct(e) || jn(e), "number", (e) => ct(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1710
+ A((e) => ct(e) || An(e), "number", (e) => ct(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1711
1711
  A((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
1712
- A(In, "URL", (e) => e.toString(), (e) => new URL(e))
1712
+ A(Dn, "URL", (e) => e.toString(), (e) => new URL(e))
1713
1713
  ];
1714
1714
  function ae(e, t, r, n) {
1715
1715
  return {
@@ -1719,7 +1719,7 @@ function ae(e, t, r, n) {
1719
1719
  untransform: n
1720
1720
  };
1721
1721
  }
1722
- const _t = ae((e, t) => Ot(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
1722
+ const kt = ae((e, t) => St(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
1723
1723
  const n = r.symbolRegistry.getValue(t[1]);
1724
1724
  if (!n)
1725
1725
  throw new Error("Trying to deserialize unknown symbol");
@@ -1734,16 +1734,16 @@ const _t = ae((e, t) => Ot(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t)
1734
1734
  Float32Array,
1735
1735
  Float64Array,
1736
1736
  Uint8ClampedArray
1737
- ].reduce((e, t) => (e[t.name] = t, e), {}), kt = ae(An, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
1737
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Ct = ae(In, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
1738
1738
  const r = Fn[t[1]];
1739
1739
  if (!r)
1740
1740
  throw new Error("Trying to deserialize unknown typed array");
1741
1741
  return new r(e);
1742
1742
  });
1743
- function Ct(e, t) {
1743
+ function jt(e, t) {
1744
1744
  return e != null && e.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
1745
1745
  }
1746
- const jt = ae(Ct, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
1746
+ const At = ae(jt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
1747
1747
  const r = t.classRegistry.getAllowedProps(e.constructor);
1748
1748
  if (!r)
1749
1749
  return { ...e };
@@ -1756,44 +1756,44 @@ const jt = ae(Ct, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
1756
1756
  if (!n)
1757
1757
  throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
1758
1758
  return Object.assign(Object.create(n.prototype), e);
1759
- }), At = ae((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
1759
+ }), It = ae((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
1760
1760
  const n = r.customTransformerRegistry.findByName(t[1]);
1761
1761
  if (!n)
1762
1762
  throw new Error("Trying to deserialize unknown custom value");
1763
1763
  return n.deserialize(e);
1764
- }), Dn = [jt, _t, At, kt], lt = (e, t) => {
1765
- const r = ut(Dn, (i) => i.isApplicable(e, t));
1764
+ }), Nn = [At, kt, It, Ct], lt = (e, t) => {
1765
+ const r = ut(Nn, (i) => i.isApplicable(e, t));
1766
1766
  if (r)
1767
1767
  return {
1768
1768
  value: r.transform(e, t),
1769
1769
  type: r.annotation(e, t)
1770
1770
  };
1771
- const n = ut(xt, (i) => i.isApplicable(e, t));
1771
+ const n = ut(_t, (i) => i.isApplicable(e, t));
1772
1772
  if (n)
1773
1773
  return {
1774
1774
  value: n.transform(e, t),
1775
1775
  type: n.annotation
1776
1776
  };
1777
- }, It = {};
1778
- xt.forEach((e) => {
1779
- It[e.annotation] = e;
1777
+ }, Dt = {};
1778
+ _t.forEach((e) => {
1779
+ Dt[e.annotation] = e;
1780
1780
  });
1781
1781
  const $n = (e, t, r) => {
1782
- if (D(t))
1782
+ if (F(t))
1783
1783
  switch (t[0]) {
1784
1784
  case "symbol":
1785
- return _t.untransform(e, t, r);
1785
+ return kt.untransform(e, t, r);
1786
1786
  case "class":
1787
- return jt.untransform(e, t, r);
1788
- case "custom":
1789
1787
  return At.untransform(e, t, r);
1788
+ case "custom":
1789
+ return It.untransform(e, t, r);
1790
1790
  case "typed-array":
1791
- return kt.untransform(e, t, r);
1791
+ return Ct.untransform(e, t, r);
1792
1792
  default:
1793
1793
  throw new Error("Unknown transformation: " + t);
1794
1794
  }
1795
1795
  else {
1796
- const n = It[t];
1796
+ const n = Dt[t];
1797
1797
  if (!n)
1798
1798
  throw new Error("Unknown transformation: " + t);
1799
1799
  return n.untransform(e, r);
@@ -1814,7 +1814,7 @@ function Ft(e) {
1814
1814
  if (ie(e, "constructor"))
1815
1815
  throw new Error("constructor is not allowed as a property");
1816
1816
  }
1817
- const Nn = (e, t) => {
1817
+ const Un = (e, t) => {
1818
1818
  Ft(t);
1819
1819
  for (let r = 0; r < t.length; r++) {
1820
1820
  const n = t[r];
@@ -1834,13 +1834,13 @@ const Nn = (e, t) => {
1834
1834
  e = e[n];
1835
1835
  }
1836
1836
  return e;
1837
- }, Oe = (e, t, r) => {
1837
+ }, Te = (e, t, r) => {
1838
1838
  if (Ft(t), t.length === 0)
1839
1839
  return r(e);
1840
1840
  let n = e;
1841
1841
  for (let s = 0; s < t.length - 1; s++) {
1842
1842
  const u = t[s];
1843
- if (D(n)) {
1843
+ if (F(n)) {
1844
1844
  const l = +u;
1845
1845
  n = n[l];
1846
1846
  } else if (J(n))
@@ -1863,7 +1863,7 @@ const Nn = (e, t) => {
1863
1863
  }
1864
1864
  }
1865
1865
  const i = t[t.length - 1];
1866
- if (D(n) ? n[+i] = r(n[+i]) : J(n) && (n[i] = r(n[i])), Q(n)) {
1866
+ if (F(n) ? n[+i] = r(n[+i]) : J(n) && (n[i] = r(n[i])), Q(n)) {
1867
1867
  const s = z(n, +i), u = r(s);
1868
1868
  s !== u && (n.delete(s), n.add(u));
1869
1869
  }
@@ -1886,7 +1886,7 @@ const Nn = (e, t) => {
1886
1886
  function Se(e, t, r = []) {
1887
1887
  if (!e)
1888
1888
  return;
1889
- if (!D(e)) {
1889
+ if (!F(e)) {
1890
1890
  M(e, (s, u) => Se(s, t, [...r, ...G(u)]));
1891
1891
  return;
1892
1892
  }
@@ -1895,33 +1895,33 @@ function Se(e, t, r = []) {
1895
1895
  Se(s, t, [...r, ...G(u)]);
1896
1896
  }), t(n, r);
1897
1897
  }
1898
- function Un(e, t, r) {
1898
+ function Ln(e, t, r) {
1899
1899
  return Se(t, (n, i) => {
1900
- e = Oe(e, i, (s) => $n(s, n, r));
1900
+ e = Te(e, i, (s) => $n(s, n, r));
1901
1901
  }), e;
1902
1902
  }
1903
- function Ln(e, t) {
1903
+ function Vn(e, t) {
1904
1904
  function r(n, i) {
1905
- const s = Nn(e, G(i));
1905
+ const s = Un(e, G(i));
1906
1906
  n.map(G).forEach((u) => {
1907
- e = Oe(e, u, () => s);
1907
+ e = Te(e, u, () => s);
1908
1908
  });
1909
1909
  }
1910
- if (D(t)) {
1910
+ if (F(t)) {
1911
1911
  const [n, i] = t;
1912
1912
  n.forEach((s) => {
1913
- e = Oe(e, G(s), () => e);
1913
+ e = Te(e, G(s), () => e);
1914
1914
  }), i && M(i, r);
1915
1915
  } else
1916
1916
  M(t, r);
1917
1917
  return e;
1918
1918
  }
1919
- const Vn = (e, t) => J(e) || D(e) || Z(e) || Q(e) || Ct(e, t);
1920
- function qn(e, t, r) {
1919
+ const qn = (e, t) => J(e) || F(e) || Z(e) || Q(e) || jt(e, t);
1920
+ function zn(e, t, r) {
1921
1921
  const n = r.get(e);
1922
1922
  n ? n.push(t) : r.set(e, [t]);
1923
1923
  }
1924
- function zn(e, t) {
1924
+ function Mn(e, t) {
1925
1925
  const r = {};
1926
1926
  let n;
1927
1927
  return e.forEach((i) => {
@@ -1930,19 +1930,19 @@ function zn(e, t) {
1930
1930
  t || (i = i.map((l) => l.map(String)).sort((l, a) => l.length - a.length));
1931
1931
  const [s, ...u] = i;
1932
1932
  s.length === 0 ? n = u.map(ve) : r[ve(s)] = u.map(ve);
1933
- }), n ? Te(r) ? [n] : [n, r] : Te(r) ? void 0 : r;
1933
+ }), n ? Oe(r) ? [n] : [n, r] : Oe(r) ? void 0 : r;
1934
1934
  }
1935
- const Dt = (e, t, r, n, i = [], s = [], u = /* @__PURE__ */ new Map()) => {
1936
- const l = kn(e);
1935
+ const Nt = (e, t, r, n, i = [], s = [], u = /* @__PURE__ */ new Map()) => {
1936
+ const l = Cn(e);
1937
1937
  if (!l) {
1938
- qn(e, i, t);
1938
+ zn(e, i, t);
1939
1939
  const b = u.get(e);
1940
1940
  if (b)
1941
1941
  return n ? {
1942
1942
  transformedValue: null
1943
1943
  } : b;
1944
1944
  }
1945
- if (!Vn(e, r)) {
1945
+ if (!qn(e, r)) {
1946
1946
  const b = lt(e, r), x = b ? {
1947
1947
  transformedValue: b.value,
1948
1948
  annotations: [b.type]
@@ -1955,16 +1955,16 @@ const Dt = (e, t, r, n, i = [], s = [], u = /* @__PURE__ */ new Map()) => {
1955
1955
  return {
1956
1956
  transformedValue: null
1957
1957
  };
1958
- const a = lt(e, r), f = (a == null ? void 0 : a.value) ?? e, m = D(f) ? [] : {}, p = {};
1958
+ const a = lt(e, r), f = (a == null ? void 0 : a.value) ?? e, m = F(f) ? [] : {}, p = {};
1959
1959
  M(f, (b, x) => {
1960
1960
  if (x === "__proto__" || x === "constructor" || x === "prototype")
1961
1961
  throw new Error(`Detected property ${x}. This is a prototype pollution risk, please remove it from your object.`);
1962
- const P = Dt(b, t, r, n, [...i, x], [...s, e], u);
1963
- m[x] = P.transformedValue, D(P.annotations) ? p[x] = P.annotations : J(P.annotations) && M(P.annotations, (L, j) => {
1964
- p[St(x) + "." + j] = L;
1962
+ const R = Nt(b, t, r, n, [...i, x], [...s, e], u);
1963
+ m[x] = R.transformedValue, F(R.annotations) ? p[x] = R.annotations : J(R.annotations) && M(R.annotations, (L, j) => {
1964
+ p[xt(x) + "." + j] = L;
1965
1965
  });
1966
1966
  });
1967
- const h = Te(p) ? {
1967
+ const h = Oe(p) ? {
1968
1968
  transformedValue: m,
1969
1969
  annotations: a ? [a.type] : void 0
1970
1970
  } : {
@@ -1979,13 +1979,13 @@ function $t(e) {
1979
1979
  function ft(e) {
1980
1980
  return $t(e) === "Array";
1981
1981
  }
1982
- function Mn(e) {
1982
+ function Wn(e) {
1983
1983
  if ($t(e) !== "Object")
1984
1984
  return !1;
1985
1985
  const t = Object.getPrototypeOf(e);
1986
1986
  return !!t && t.constructor === Object && t === Object.prototype;
1987
1987
  }
1988
- function Wn(e, t, r, n, i) {
1988
+ function Kn(e, t, r, n, i) {
1989
1989
  const s = {}.propertyIsEnumerable.call(n, t) ? "enumerable" : "nonenumerable";
1990
1990
  s === "enumerable" && (e[t] = r), i && s === "nonenumerable" && Object.defineProperty(e, t, {
1991
1991
  value: r,
@@ -1997,14 +1997,14 @@ function Wn(e, t, r, n, i) {
1997
1997
  function xe(e, t = {}) {
1998
1998
  if (ft(e))
1999
1999
  return e.map((i) => xe(i, t));
2000
- if (!Mn(e))
2000
+ if (!Wn(e))
2001
2001
  return e;
2002
2002
  const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
2003
2003
  return [...r, ...n].reduce((i, s) => {
2004
2004
  if (ft(t.props) && !t.props.includes(s))
2005
2005
  return i;
2006
2006
  const u = e[s], l = xe(u, t);
2007
- return Wn(i, s, l, e, t.nonenumerable), i;
2007
+ return Kn(i, s, l, e, t.nonenumerable), i;
2008
2008
  }, {});
2009
2009
  }
2010
2010
  class w {
@@ -2012,17 +2012,17 @@ class w {
2012
2012
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
2013
2013
  */
2014
2014
  constructor({ dedupe: t = !1 } = {}) {
2015
- this.classRegistry = new gn(), this.symbolRegistry = new Rt((r) => r.description ?? ""), this.customTransformerRegistry = new vn(), this.allowedErrorProps = [], this.dedupe = t;
2015
+ this.classRegistry = new bn(), this.symbolRegistry = new Ot((r) => r.description ?? ""), this.customTransformerRegistry = new En(), this.allowedErrorProps = [], this.dedupe = t;
2016
2016
  }
2017
2017
  serialize(t) {
2018
- const r = /* @__PURE__ */ new Map(), n = Dt(t, r, this, this.dedupe), i = {
2018
+ const r = /* @__PURE__ */ new Map(), n = Nt(t, r, this, this.dedupe), i = {
2019
2019
  json: n.transformedValue
2020
2020
  };
2021
2021
  n.annotations && (i.meta = {
2022
2022
  ...i.meta,
2023
2023
  values: n.annotations
2024
2024
  });
2025
- const s = zn(r, this.dedupe);
2025
+ const s = Mn(r, this.dedupe);
2026
2026
  return s && (i.meta = {
2027
2027
  ...i.meta,
2028
2028
  referentialEqualities: s
@@ -2031,7 +2031,7 @@ class w {
2031
2031
  deserialize(t) {
2032
2032
  const { json: r, meta: n } = t;
2033
2033
  let i = xe(r);
2034
- return n != null && n.values && (i = Un(i, n.values, this)), n != null && n.referentialEqualities && (i = Ln(i, n.referentialEqualities)), i;
2034
+ return n != null && n.values && (i = Ln(i, n.values, this)), n != null && n.referentialEqualities && (i = Vn(i, n.referentialEqualities)), i;
2035
2035
  }
2036
2036
  stringify(t) {
2037
2037
  return JSON.stringify(this.serialize(t));
@@ -2072,14 +2072,14 @@ w.registerClass;
2072
2072
  w.registerCustom;
2073
2073
  w.registerSymbol;
2074
2074
  w.allowErrorProps;
2075
- const Bn = "dev-jwt-token-for-testing", Kn = async () => Bn, Nt = Er(null);
2076
- function Yn(e, t) {
2077
- const r = Kr({
2075
+ const Bn = "dev-jwt-token-for-testing", Yn = async () => Bn, Ut = Rr(null);
2076
+ function Hn(e, t) {
2077
+ const r = Yr({
2078
2078
  links: [
2079
- ln({
2079
+ fn({
2080
2080
  enabled: (n) => process.env.NODE_ENV === "development" && typeof window < "u" || n.direction === "down" && n.result instanceof Error
2081
2081
  }),
2082
- sn({
2082
+ an({
2083
2083
  url: `${e}/trpc`,
2084
2084
  headers: async () => ({
2085
2085
  Authorization: `Bearer ${await t()}`
@@ -2117,7 +2117,8 @@ function Yn(e, t) {
2117
2117
  // You might need to calculate or pass size
2118
2118
  metadata: null,
2119
2119
  isArtifact: !1,
2120
- summary: null
2120
+ summary: null,
2121
+ chunkingStatus: wt.NOT_CHUNKED
2121
2122
  }
2122
2123
  });
2123
2124
  s.push({
@@ -2139,26 +2140,26 @@ function Yn(e, t) {
2139
2140
  }))
2140
2141
  };
2141
2142
  }
2142
- function Zn({
2143
+ function Qn({
2143
2144
  children: e,
2144
2145
  host: t = "http://localhost",
2145
2146
  port: r = 5174,
2146
- getToken: n = Kn
2147
+ getToken: n = Yn
2147
2148
  }) {
2148
2149
  const [i, s] = Ee(null);
2149
2150
  return Pr(() => {
2150
- const u = `${t}:${r}`, l = Yn(u, n);
2151
+ const u = `${t}:${r}`, l = Hn(u, n);
2151
2152
  s(l);
2152
- }, [t, r, n]), /* @__PURE__ */ Re.jsx(Nt.Provider, { value: { host: t, port: r, client: i }, children: e });
2153
+ }, [t, r, n]), /* @__PURE__ */ Pe.jsx(Ut.Provider, { value: { host: t, port: r, client: i }, children: e });
2153
2154
  }
2154
- function Ut() {
2155
- const e = Rr(Nt);
2155
+ function Lt() {
2156
+ const e = Or(Ut);
2156
2157
  if (!e)
2157
2158
  throw new Error("useFolioContext must be used within a FolioProvider");
2158
2159
  return e;
2159
2160
  }
2160
- const { useEffect: Hn, useRef: Gn, useState: Xn } = vr;
2161
- function Qn({
2161
+ const { useEffect: Gn, useRef: Xn, useState: Jn } = Er;
2162
+ function eo({
2162
2163
  width: e = "100%",
2163
2164
  height: t = "100vh",
2164
2165
  allow: r = "camera; microphone; clipboard-read; clipboard-write; fullscreen",
@@ -2166,10 +2167,10 @@ function Qn({
2166
2167
  className: i = "",
2167
2168
  iframeProps: s = {}
2168
2169
  }) {
2169
- const { host: u, port: l } = Ut(), a = Gn(null), [f, m] = Xn();
2170
- return Hn(() => {
2170
+ const { host: u, port: l } = Lt(), a = Xn(null), [f, m] = Jn();
2171
+ return Gn(() => {
2171
2172
  m(`${u}:${l}`);
2172
- }, [u, l]), f ? /* @__PURE__ */ Re.jsx(
2173
+ }, [u, l]), f ? /* @__PURE__ */ Pe.jsx(
2173
2174
  "div",
2174
2175
  {
2175
2176
  className: `folio-embed-container ${i}`,
@@ -2179,7 +2180,7 @@ function Qn({
2179
2180
  overflow: "hidden",
2180
2181
  ...n
2181
2182
  },
2182
- children: /* @__PURE__ */ Re.jsx(
2183
+ children: /* @__PURE__ */ Pe.jsx(
2183
2184
  "iframe",
2184
2185
  {
2185
2186
  ref: a,
@@ -2200,8 +2201,8 @@ function Qn({
2200
2201
  }
2201
2202
  ) : null;
2202
2203
  }
2203
- function eo() {
2204
- const { client: e } = Ut(), [t, r] = Ee(!1), [n, i] = Ee(null);
2204
+ function to() {
2205
+ const { client: e } = Lt(), [t, r] = Ee(!1), [n, i] = Ee(null);
2205
2206
  return {
2206
2207
  isLoading: t,
2207
2208
  error: n,
@@ -2256,7 +2257,7 @@ function eo() {
2256
2257
  };
2257
2258
  }
2258
2259
  export {
2259
- Qn as FolioEmbed,
2260
- Zn as FolioProvider,
2261
- eo as useFolio
2260
+ eo as FolioEmbed,
2261
+ Qn as FolioProvider,
2262
+ to as useFolio
2262
2263
  };