@telicent-oss/ds 0.27.2 → 0.27.4-TELFE-644.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ds.js CHANGED
@@ -16,7 +16,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
16
16
  });
17
17
  var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _l;
18
18
  import * as React$2 from "react";
19
- import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, useState, useEffect, useRef, useCallback, createElement as createElement$1, PureComponent, createContext, useLayoutEffect, useImperativeHandle, useMemo, memo, Component } from "react";
19
+ import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, useState, useEffect, useRef, useCallback, memo, useMemo, PureComponent, createElement as createElement$1, createContext, useLayoutEffect, useImperativeHandle, Component } from "react";
20
20
  import * as ReactDOM from "react-dom";
21
21
  import ReactDOM__default, { flushSync, createPortal } from "react-dom";
22
22
  function _mergeNamespaces(n, m) {
@@ -2447,7 +2447,8 @@ const TeliHeader = ({
2447
2447
  }) => /* @__PURE__ */ jsx$1("header", { ...headerProps, children: /* @__PURE__ */ jsx$1("nav", { ...navProps, children: children2 }) });
2448
2448
  var util;
2449
2449
  (function(util2) {
2450
- util2.assertEqual = (val) => val;
2450
+ util2.assertEqual = (_2) => {
2451
+ };
2451
2452
  function assertIs(_arg) {
2452
2453
  }
2453
2454
  util2.assertIs = assertIs;
@@ -2491,7 +2492,7 @@ var util;
2491
2492
  }
2492
2493
  return void 0;
2493
2494
  };
2494
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
2495
+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
2495
2496
  function joinValues(array2, separator = " | ") {
2496
2497
  return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
2497
2498
  }
@@ -2543,7 +2544,7 @@ const getParsedType = (data) => {
2543
2544
  case "string":
2544
2545
  return ZodParsedType.string;
2545
2546
  case "number":
2546
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2547
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2547
2548
  case "boolean":
2548
2549
  return ZodParsedType.boolean;
2549
2550
  case "function":
@@ -2904,24 +2905,11 @@ const isAborted = (x2) => x2.status === "aborted";
2904
2905
  const isDirty = (x2) => x2.status === "dirty";
2905
2906
  const isValid = (x2) => x2.status === "valid";
2906
2907
  const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
2907
- function __classPrivateFieldGet(receiver, state, kind, f) {
2908
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2909
- return state.get(receiver);
2910
- }
2911
- function __classPrivateFieldSet(receiver, state, value2, kind, f) {
2912
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2913
- return state.set(receiver, value2), value2;
2914
- }
2915
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
2916
- var e = new Error(message);
2917
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2918
- };
2919
2908
  var errorUtil;
2920
2909
  (function(errorUtil2) {
2921
2910
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
2922
- errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
2911
+ errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
2923
2912
  })(errorUtil || (errorUtil = {}));
2924
- var _ZodEnum_cache, _ZodNativeEnum_cache;
2925
2913
  class ParseInputLazyPath {
2926
2914
  constructor(parent, value2, path, key) {
2927
2915
  this._cachedPath = [];
@@ -2932,7 +2920,7 @@ class ParseInputLazyPath {
2932
2920
  }
2933
2921
  get path() {
2934
2922
  if (!this._cachedPath.length) {
2935
- if (this._key instanceof Array) {
2923
+ if (Array.isArray(this._key)) {
2936
2924
  this._cachedPath.push(...this._path, ...this._key);
2937
2925
  } else {
2938
2926
  this._cachedPath.push(...this._path, this._key);
@@ -2970,17 +2958,16 @@ function processCreateParams(params) {
2970
2958
  if (errorMap2)
2971
2959
  return { errorMap: errorMap2, description };
2972
2960
  const customMap = (iss, ctx) => {
2973
- var _a2, _b2;
2974
2961
  const { message } = params;
2975
2962
  if (iss.code === "invalid_enum_value") {
2976
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
2963
+ return { message: message ?? ctx.defaultError };
2977
2964
  }
2978
2965
  if (typeof ctx.data === "undefined") {
2979
- return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
2966
+ return { message: message ?? required_error ?? ctx.defaultError };
2980
2967
  }
2981
2968
  if (iss.code !== "invalid_type")
2982
2969
  return { message: ctx.defaultError };
2983
- return { message: (_b2 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b2 !== void 0 ? _b2 : ctx.defaultError };
2970
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
2984
2971
  };
2985
2972
  return { errorMap: customMap, description };
2986
2973
  }
@@ -3032,14 +3019,13 @@ class ZodType {
3032
3019
  throw result.error;
3033
3020
  }
3034
3021
  safeParse(data, params) {
3035
- var _a2;
3036
3022
  const ctx = {
3037
3023
  common: {
3038
3024
  issues: [],
3039
- async: (_a2 = params === null || params === void 0 ? void 0 : params.async) !== null && _a2 !== void 0 ? _a2 : false,
3040
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
3025
+ async: (params == null ? void 0 : params.async) ?? false,
3026
+ contextualErrorMap: params == null ? void 0 : params.errorMap
3041
3027
  },
3042
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3028
+ path: (params == null ? void 0 : params.path) || [],
3043
3029
  schemaErrorMap: this._def.errorMap,
3044
3030
  parent: null,
3045
3031
  data,
@@ -3070,7 +3056,7 @@ class ZodType {
3070
3056
  issues: ctx.common.issues
3071
3057
  };
3072
3058
  } catch (err) {
3073
- if ((_b2 = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b2 === void 0 ? void 0 : _b2.includes("encountered")) {
3059
+ if ((_b2 = (_a2 = err == null ? void 0 : err.message) == null ? void 0 : _a2.toLowerCase()) == null ? void 0 : _b2.includes("encountered")) {
3074
3060
  this["~standard"].async = true;
3075
3061
  }
3076
3062
  ctx.common = {
@@ -3095,10 +3081,10 @@ class ZodType {
3095
3081
  const ctx = {
3096
3082
  common: {
3097
3083
  issues: [],
3098
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
3084
+ contextualErrorMap: params == null ? void 0 : params.errorMap,
3099
3085
  async: true
3100
3086
  },
3101
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3087
+ path: (params == null ? void 0 : params.path) || [],
3102
3088
  schemaErrorMap: this._def.errorMap,
3103
3089
  parent: null,
3104
3090
  data,
@@ -3288,13 +3274,14 @@ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
3288
3274
  const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
3289
3275
  const dateRegex = new RegExp(`^${dateRegexSource}$`);
3290
3276
  function timeRegexSource(args) {
3291
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
3277
+ let secondsRegexSource = `[0-5]\\d`;
3292
3278
  if (args.precision) {
3293
- regex = `${regex}\\.\\d{${args.precision}}`;
3279
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
3294
3280
  } else if (args.precision == null) {
3295
- regex = `${regex}(\\.\\d+)?`;
3281
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
3296
3282
  }
3297
- return regex;
3283
+ const secondsQuantifier = args.precision ? "+" : "?";
3284
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
3298
3285
  }
3299
3286
  function timeRegex(args) {
3300
3287
  return new RegExp(`^${timeRegexSource(args)}$`);
@@ -3326,12 +3313,14 @@ function isValidJWT(jwt, alg) {
3326
3313
  const decoded = JSON.parse(atob(base64));
3327
3314
  if (typeof decoded !== "object" || decoded === null)
3328
3315
  return false;
3329
- if (!decoded.typ || !decoded.alg)
3316
+ if ("typ" in decoded && (decoded == null ? void 0 : decoded.typ) !== "JWT")
3317
+ return false;
3318
+ if (!decoded.alg)
3330
3319
  return false;
3331
3320
  if (alg && decoded.alg !== alg)
3332
3321
  return false;
3333
3322
  return true;
3334
- } catch (_a2) {
3323
+ } catch {
3335
3324
  return false;
3336
3325
  }
3337
3326
  }
@@ -3490,7 +3479,7 @@ class ZodString extends ZodType {
3490
3479
  } else if (check.kind === "url") {
3491
3480
  try {
3492
3481
  new URL(input.data);
3493
- } catch (_a2) {
3482
+ } catch {
3494
3483
  ctx = this._getOrReturnCtx(input, ctx);
3495
3484
  addIssueToContext(ctx, {
3496
3485
  validation: "url",
@@ -3702,7 +3691,6 @@ class ZodString extends ZodType {
3702
3691
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
3703
3692
  }
3704
3693
  datetime(options) {
3705
- var _a2, _b2;
3706
3694
  if (typeof options === "string") {
3707
3695
  return this._addCheck({
3708
3696
  kind: "datetime",
@@ -3714,10 +3702,10 @@ class ZodString extends ZodType {
3714
3702
  }
3715
3703
  return this._addCheck({
3716
3704
  kind: "datetime",
3717
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3718
- offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
3719
- local: (_b2 = options === null || options === void 0 ? void 0 : options.local) !== null && _b2 !== void 0 ? _b2 : false,
3720
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3705
+ precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3706
+ offset: (options == null ? void 0 : options.offset) ?? false,
3707
+ local: (options == null ? void 0 : options.local) ?? false,
3708
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3721
3709
  });
3722
3710
  }
3723
3711
  date(message) {
@@ -3733,8 +3721,8 @@ class ZodString extends ZodType {
3733
3721
  }
3734
3722
  return this._addCheck({
3735
3723
  kind: "time",
3736
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3737
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3724
+ precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3725
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3738
3726
  });
3739
3727
  }
3740
3728
  duration(message) {
@@ -3751,8 +3739,8 @@ class ZodString extends ZodType {
3751
3739
  return this._addCheck({
3752
3740
  kind: "includes",
3753
3741
  value: value2,
3754
- position: options === null || options === void 0 ? void 0 : options.position,
3755
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3742
+ position: options == null ? void 0 : options.position,
3743
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3756
3744
  });
3757
3745
  }
3758
3746
  startsWith(value2, message) {
@@ -3884,11 +3872,10 @@ class ZodString extends ZodType {
3884
3872
  }
3885
3873
  }
3886
3874
  ZodString.create = (params) => {
3887
- var _a2;
3888
3875
  return new ZodString({
3889
3876
  checks: [],
3890
3877
  typeName: ZodFirstPartyTypeKind.ZodString,
3891
- coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
3878
+ coerce: (params == null ? void 0 : params.coerce) ?? false,
3892
3879
  ...processCreateParams(params)
3893
3880
  });
3894
3881
  };
@@ -3896,9 +3883,9 @@ function floatSafeRemainder(val, step) {
3896
3883
  const valDecCount = (val.toString().split(".")[1] || "").length;
3897
3884
  const stepDecCount = (step.toString().split(".")[1] || "").length;
3898
3885
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
3899
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
3900
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
3901
- return valInt % stepInt / Math.pow(10, decCount);
3886
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
3887
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
3888
+ return valInt % stepInt / 10 ** decCount;
3902
3889
  }
3903
3890
  class ZodNumber extends ZodType {
3904
3891
  constructor() {
@@ -4108,7 +4095,8 @@ class ZodNumber extends ZodType {
4108
4095
  return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
4109
4096
  }
4110
4097
  get isFinite() {
4111
- let max2 = null, min2 = null;
4098
+ let max2 = null;
4099
+ let min2 = null;
4112
4100
  for (const ch of this._def.checks) {
4113
4101
  if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
4114
4102
  return true;
@@ -4127,7 +4115,7 @@ ZodNumber.create = (params) => {
4127
4115
  return new ZodNumber({
4128
4116
  checks: [],
4129
4117
  typeName: ZodFirstPartyTypeKind.ZodNumber,
4130
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4118
+ coerce: (params == null ? void 0 : params.coerce) || false,
4131
4119
  ...processCreateParams(params)
4132
4120
  });
4133
4121
  };
@@ -4141,7 +4129,7 @@ class ZodBigInt extends ZodType {
4141
4129
  if (this._def.coerce) {
4142
4130
  try {
4143
4131
  input.data = BigInt(input.data);
4144
- } catch (_a2) {
4132
+ } catch {
4145
4133
  return this._getInvalidInput(input);
4146
4134
  }
4147
4135
  }
@@ -4296,11 +4284,10 @@ class ZodBigInt extends ZodType {
4296
4284
  }
4297
4285
  }
4298
4286
  ZodBigInt.create = (params) => {
4299
- var _a2;
4300
4287
  return new ZodBigInt({
4301
4288
  checks: [],
4302
4289
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
4303
- coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
4290
+ coerce: (params == null ? void 0 : params.coerce) ?? false,
4304
4291
  ...processCreateParams(params)
4305
4292
  });
4306
4293
  };
@@ -4325,7 +4312,7 @@ class ZodBoolean extends ZodType {
4325
4312
  ZodBoolean.create = (params) => {
4326
4313
  return new ZodBoolean({
4327
4314
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
4328
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4315
+ coerce: (params == null ? void 0 : params.coerce) || false,
4329
4316
  ...processCreateParams(params)
4330
4317
  });
4331
4318
  };
@@ -4344,7 +4331,7 @@ class ZodDate extends ZodType {
4344
4331
  });
4345
4332
  return INVALID;
4346
4333
  }
4347
- if (isNaN(input.data.getTime())) {
4334
+ if (Number.isNaN(input.data.getTime())) {
4348
4335
  const ctx2 = this._getOrReturnCtx(input);
4349
4336
  addIssueToContext(ctx2, {
4350
4337
  code: ZodIssueCode.invalid_date
@@ -4433,7 +4420,7 @@ class ZodDate extends ZodType {
4433
4420
  ZodDate.create = (params) => {
4434
4421
  return new ZodDate({
4435
4422
  checks: [],
4436
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4423
+ coerce: (params == null ? void 0 : params.coerce) || false,
4437
4424
  typeName: ZodFirstPartyTypeKind.ZodDate,
4438
4425
  ...processCreateParams(params)
4439
4426
  });
@@ -4708,7 +4695,8 @@ class ZodObject extends ZodType {
4708
4695
  return this._cached;
4709
4696
  const shape2 = this._def.shape();
4710
4697
  const keys = util.objectKeys(shape2);
4711
- return this._cached = { shape: shape2, keys };
4698
+ this._cached = { shape: shape2, keys };
4699
+ return this._cached;
4712
4700
  }
4713
4701
  _parse(input) {
4714
4702
  const parsedType = this._getType(input);
@@ -4806,11 +4794,11 @@ class ZodObject extends ZodType {
4806
4794
  unknownKeys: "strict",
4807
4795
  ...message !== void 0 ? {
4808
4796
  errorMap: (issue, ctx) => {
4809
- var _a2, _b2, _c2, _d2;
4810
- const defaultError = (_c2 = (_b2 = (_a2 = this._def).errorMap) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, issue, ctx).message) !== null && _c2 !== void 0 ? _c2 : ctx.defaultError;
4797
+ var _a2, _b2;
4798
+ const defaultError = ((_b2 = (_a2 = this._def).errorMap) == null ? void 0 : _b2.call(_a2, issue, ctx).message) ?? ctx.defaultError;
4811
4799
  if (issue.code === "unrecognized_keys")
4812
4800
  return {
4813
- message: (_d2 = errorUtil.errToObj(message).message) !== null && _d2 !== void 0 ? _d2 : defaultError
4801
+ message: errorUtil.errToObj(message).message ?? defaultError
4814
4802
  };
4815
4803
  return {
4816
4804
  message: defaultError
@@ -4941,11 +4929,11 @@ class ZodObject extends ZodType {
4941
4929
  }
4942
4930
  pick(mask) {
4943
4931
  const shape2 = {};
4944
- util.objectKeys(mask).forEach((key) => {
4932
+ for (const key of util.objectKeys(mask)) {
4945
4933
  if (mask[key] && this.shape[key]) {
4946
4934
  shape2[key] = this.shape[key];
4947
4935
  }
4948
- });
4936
+ }
4949
4937
  return new ZodObject({
4950
4938
  ...this._def,
4951
4939
  shape: () => shape2
@@ -4953,11 +4941,11 @@ class ZodObject extends ZodType {
4953
4941
  }
4954
4942
  omit(mask) {
4955
4943
  const shape2 = {};
4956
- util.objectKeys(this.shape).forEach((key) => {
4944
+ for (const key of util.objectKeys(this.shape)) {
4957
4945
  if (!mask[key]) {
4958
4946
  shape2[key] = this.shape[key];
4959
4947
  }
4960
- });
4948
+ }
4961
4949
  return new ZodObject({
4962
4950
  ...this._def,
4963
4951
  shape: () => shape2
@@ -4971,14 +4959,14 @@ class ZodObject extends ZodType {
4971
4959
  }
4972
4960
  partial(mask) {
4973
4961
  const newShape = {};
4974
- util.objectKeys(this.shape).forEach((key) => {
4962
+ for (const key of util.objectKeys(this.shape)) {
4975
4963
  const fieldSchema = this.shape[key];
4976
4964
  if (mask && !mask[key]) {
4977
4965
  newShape[key] = fieldSchema;
4978
4966
  } else {
4979
4967
  newShape[key] = fieldSchema.optional();
4980
4968
  }
4981
- });
4969
+ }
4982
4970
  return new ZodObject({
4983
4971
  ...this._def,
4984
4972
  shape: () => newShape
@@ -4986,7 +4974,7 @@ class ZodObject extends ZodType {
4986
4974
  }
4987
4975
  required(mask) {
4988
4976
  const newShape = {};
4989
- util.objectKeys(this.shape).forEach((key) => {
4977
+ for (const key of util.objectKeys(this.shape)) {
4990
4978
  if (mask && !mask[key]) {
4991
4979
  newShape[key] = this.shape[key];
4992
4980
  } else {
@@ -4997,7 +4985,7 @@ class ZodObject extends ZodType {
4997
4985
  }
4998
4986
  newShape[key] = newField;
4999
4987
  }
5000
- });
4988
+ }
5001
4989
  return new ZodObject({
5002
4990
  ...this._def,
5003
4991
  shape: () => newShape
@@ -5613,12 +5601,7 @@ class ZodFunction extends ZodType {
5613
5601
  return makeIssue({
5614
5602
  data: args,
5615
5603
  path: ctx.path,
5616
- errorMaps: [
5617
- ctx.common.contextualErrorMap,
5618
- ctx.schemaErrorMap,
5619
- getErrorMap(),
5620
- errorMap
5621
- ].filter((x2) => !!x2),
5604
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5622
5605
  issueData: {
5623
5606
  code: ZodIssueCode.invalid_arguments,
5624
5607
  argumentsError: error
@@ -5629,12 +5612,7 @@ class ZodFunction extends ZodType {
5629
5612
  return makeIssue({
5630
5613
  data: returns,
5631
5614
  path: ctx.path,
5632
- errorMaps: [
5633
- ctx.common.contextualErrorMap,
5634
- ctx.schemaErrorMap,
5635
- getErrorMap(),
5636
- errorMap
5637
- ].filter((x2) => !!x2),
5615
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5638
5616
  issueData: {
5639
5617
  code: ZodIssueCode.invalid_return_type,
5640
5618
  returnTypeError: error
@@ -5758,10 +5736,6 @@ function createZodEnum(values2, params) {
5758
5736
  });
5759
5737
  }
5760
5738
  class ZodEnum extends ZodType {
5761
- constructor() {
5762
- super(...arguments);
5763
- _ZodEnum_cache.set(this, void 0);
5764
- }
5765
5739
  _parse(input) {
5766
5740
  if (typeof input.data !== "string") {
5767
5741
  const ctx = this._getOrReturnCtx(input);
@@ -5773,10 +5747,10 @@ class ZodEnum extends ZodType {
5773
5747
  });
5774
5748
  return INVALID;
5775
5749
  }
5776
- if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
5777
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
5750
+ if (!this._cache) {
5751
+ this._cache = new Set(this._def.values);
5778
5752
  }
5779
- if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
5753
+ if (!this._cache.has(input.data)) {
5780
5754
  const ctx = this._getOrReturnCtx(input);
5781
5755
  const expectedValues = this._def.values;
5782
5756
  addIssueToContext(ctx, {
@@ -5825,13 +5799,8 @@ class ZodEnum extends ZodType {
5825
5799
  });
5826
5800
  }
5827
5801
  }
5828
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
5829
5802
  ZodEnum.create = createZodEnum;
5830
5803
  class ZodNativeEnum extends ZodType {
5831
- constructor() {
5832
- super(...arguments);
5833
- _ZodNativeEnum_cache.set(this, void 0);
5834
- }
5835
5804
  _parse(input) {
5836
5805
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
5837
5806
  const ctx = this._getOrReturnCtx(input);
@@ -5844,10 +5813,10 @@ class ZodNativeEnum extends ZodType {
5844
5813
  });
5845
5814
  return INVALID;
5846
5815
  }
5847
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
5848
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
5816
+ if (!this._cache) {
5817
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
5849
5818
  }
5850
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
5819
+ if (!this._cache.has(input.data)) {
5851
5820
  const expectedValues = util.objectValues(nativeEnumValues);
5852
5821
  addIssueToContext(ctx, {
5853
5822
  received: ctx.data,
@@ -5862,7 +5831,6 @@ class ZodNativeEnum extends ZodType {
5862
5831
  return this._def.values;
5863
5832
  }
5864
5833
  }
5865
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
5866
5834
  ZodNativeEnum.create = (values2, params) => {
5867
5835
  return new ZodNativeEnum({
5868
5836
  values: values2,
@@ -6003,7 +5971,7 @@ class ZodEffects extends ZodType {
6003
5971
  parent: ctx
6004
5972
  });
6005
5973
  if (!isValid(base))
6006
- return base;
5974
+ return INVALID;
6007
5975
  const result = effect2.transform(base.value, checkCtx);
6008
5976
  if (result instanceof Promise) {
6009
5977
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -6012,8 +5980,11 @@ class ZodEffects extends ZodType {
6012
5980
  } else {
6013
5981
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
6014
5982
  if (!isValid(base))
6015
- return base;
6016
- return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
5983
+ return INVALID;
5984
+ return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({
5985
+ status: status.value,
5986
+ value: result
5987
+ }));
6017
5988
  });
6018
5989
  }
6019
5990
  }
@@ -6273,21 +6244,19 @@ function cleanParams(params, data) {
6273
6244
  function custom(check, _params = {}, fatal) {
6274
6245
  if (check)
6275
6246
  return ZodAny.create().superRefine((data, ctx) => {
6276
- var _a2, _b2;
6277
6247
  const r2 = check(data);
6278
6248
  if (r2 instanceof Promise) {
6279
6249
  return r2.then((r3) => {
6280
- var _a3, _b3;
6281
6250
  if (!r3) {
6282
6251
  const params = cleanParams(_params, data);
6283
- const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
6252
+ const _fatal = params.fatal ?? fatal ?? true;
6284
6253
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6285
6254
  }
6286
6255
  });
6287
6256
  }
6288
6257
  if (!r2) {
6289
6258
  const params = cleanParams(_params, data);
6290
- const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6259
+ const _fatal = params.fatal ?? fatal ?? true;
6291
6260
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6292
6261
  }
6293
6262
  return;
@@ -6387,99 +6356,98 @@ const coerce$1 = {
6387
6356
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
6388
6357
  };
6389
6358
  const NEVER = INVALID;
6390
- var z = /* @__PURE__ */ Object.freeze({
6359
+ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6391
6360
  __proto__: null,
6392
- defaultErrorMap: errorMap,
6393
- setErrorMap,
6394
- getErrorMap,
6395
- makeIssue,
6361
+ BRAND,
6362
+ DIRTY,
6396
6363
  EMPTY_PATH,
6397
- addIssueToContext,
6398
- ParseStatus,
6399
6364
  INVALID,
6400
- DIRTY,
6365
+ NEVER,
6401
6366
  OK,
6402
- isAborted,
6403
- isDirty,
6404
- isValid,
6405
- isAsync,
6406
- get util() {
6407
- return util;
6408
- },
6409
- get objectUtil() {
6410
- return objectUtil;
6411
- },
6412
- ZodParsedType,
6413
- getParsedType,
6414
- ZodType,
6415
- datetimeRegex,
6416
- ZodString,
6417
- ZodNumber,
6367
+ ParseStatus,
6368
+ Schema: ZodType,
6369
+ ZodAny,
6370
+ ZodArray,
6418
6371
  ZodBigInt,
6419
6372
  ZodBoolean,
6373
+ ZodBranded,
6374
+ ZodCatch,
6420
6375
  ZodDate,
6421
- ZodSymbol,
6422
- ZodUndefined,
6423
- ZodNull,
6424
- ZodAny,
6425
- ZodUnknown,
6426
- ZodNever,
6427
- ZodVoid,
6428
- ZodArray,
6429
- ZodObject,
6430
- ZodUnion,
6376
+ ZodDefault,
6431
6377
  ZodDiscriminatedUnion,
6432
- ZodIntersection,
6433
- ZodTuple,
6434
- ZodRecord,
6435
- ZodMap,
6436
- ZodSet,
6378
+ ZodEffects,
6379
+ ZodEnum,
6380
+ ZodError,
6381
+ get ZodFirstPartyTypeKind() {
6382
+ return ZodFirstPartyTypeKind;
6383
+ },
6437
6384
  ZodFunction,
6385
+ ZodIntersection,
6386
+ ZodIssueCode,
6438
6387
  ZodLazy,
6439
6388
  ZodLiteral,
6440
- ZodEnum,
6389
+ ZodMap,
6390
+ ZodNaN,
6441
6391
  ZodNativeEnum,
6442
- ZodPromise,
6443
- ZodEffects,
6444
- ZodTransformer: ZodEffects,
6445
- ZodOptional,
6392
+ ZodNever,
6393
+ ZodNull,
6446
6394
  ZodNullable,
6447
- ZodDefault,
6448
- ZodCatch,
6449
- ZodNaN,
6450
- BRAND,
6451
- ZodBranded,
6395
+ ZodNumber,
6396
+ ZodObject,
6397
+ ZodOptional,
6398
+ ZodParsedType,
6452
6399
  ZodPipeline,
6400
+ ZodPromise,
6453
6401
  ZodReadonly,
6454
- custom,
6455
- Schema: ZodType,
6402
+ ZodRecord,
6456
6403
  ZodSchema: ZodType,
6457
- late,
6458
- get ZodFirstPartyTypeKind() {
6459
- return ZodFirstPartyTypeKind;
6460
- },
6461
- coerce: coerce$1,
6404
+ ZodSet,
6405
+ ZodString,
6406
+ ZodSymbol,
6407
+ ZodTransformer: ZodEffects,
6408
+ ZodTuple,
6409
+ ZodType,
6410
+ ZodUndefined,
6411
+ ZodUnion,
6412
+ ZodUnknown,
6413
+ ZodVoid,
6414
+ addIssueToContext,
6462
6415
  any: anyType,
6463
6416
  array: arrayType,
6464
6417
  bigint: bigIntType,
6465
6418
  boolean: booleanType,
6419
+ coerce: coerce$1,
6420
+ custom,
6466
6421
  date: dateType,
6422
+ datetimeRegex,
6423
+ defaultErrorMap: errorMap,
6467
6424
  discriminatedUnion: discriminatedUnionType,
6468
6425
  effect: effectsType,
6469
- "enum": enumType,
6470
- "function": functionType,
6471
- "instanceof": instanceOfType,
6426
+ enum: enumType,
6427
+ function: functionType,
6428
+ getErrorMap,
6429
+ getParsedType,
6430
+ instanceof: instanceOfType,
6472
6431
  intersection: intersectionType,
6432
+ isAborted,
6433
+ isAsync,
6434
+ isDirty,
6435
+ isValid,
6436
+ late,
6473
6437
  lazy: lazyType,
6474
6438
  literal: literalType,
6439
+ makeIssue,
6475
6440
  map: mapType,
6476
6441
  nan: nanType,
6477
6442
  nativeEnum: nativeEnumType,
6478
6443
  never: neverType,
6479
- "null": nullType,
6444
+ null: nullType,
6480
6445
  nullable: nullableType,
6481
6446
  number: numberType,
6482
6447
  object: objectType,
6448
+ get objectUtil() {
6449
+ return objectUtil;
6450
+ },
6483
6451
  oboolean,
6484
6452
  onumber,
6485
6453
  optional: optionalType,
@@ -6487,22 +6455,23 @@ var z = /* @__PURE__ */ Object.freeze({
6487
6455
  pipeline: pipelineType,
6488
6456
  preprocess: preprocessType,
6489
6457
  promise: promiseType,
6458
+ quotelessJson,
6490
6459
  record: recordType,
6491
6460
  set: setType,
6461
+ setErrorMap,
6492
6462
  strictObject: strictObjectType,
6493
6463
  string: stringType,
6494
6464
  symbol: symbolType,
6495
6465
  transformer: effectsType,
6496
6466
  tuple: tupleType,
6497
- "undefined": undefinedType,
6467
+ undefined: undefinedType,
6498
6468
  union: unionType,
6499
6469
  unknown: unknownType,
6500
- "void": voidType,
6501
- NEVER,
6502
- ZodIssueCode,
6503
- quotelessJson,
6504
- ZodError
6505
- });
6470
+ get util() {
6471
+ return util;
6472
+ },
6473
+ void: voidType
6474
+ }, Symbol.toStringTag, { value: "Module" }));
6506
6475
  const TeliBrand = ({
6507
6476
  appName,
6508
6477
  beta,
@@ -6512,7 +6481,7 @@ const TeliBrand = ({
6512
6481
  }) => {
6513
6482
  const isDefaultSize = size === "base";
6514
6483
  const isJumboSize = size === "jumbo";
6515
- const validateAppName = z.string({
6484
+ const validateAppName = stringType({
6516
6485
  required_error: "Provide missing appName prop.",
6517
6486
  invalid_type_error: "appName must be a string"
6518
6487
  }).safeParse(appName);
@@ -6584,14 +6553,14 @@ function _toPropertyKey$1(t2) {
6584
6553
  var i = _toPrimitive$1(t2, "string");
6585
6554
  return "symbol" == typeof i ? i : i + "";
6586
6555
  }
6587
- const noop$5 = () => {
6556
+ const noop$4 = () => {
6588
6557
  };
6589
6558
  let _WINDOW = {};
6590
6559
  let _DOCUMENT = {};
6591
6560
  let _MUTATION_OBSERVER = null;
6592
6561
  let _PERFORMANCE = {
6593
- mark: noop$5,
6594
- measure: noop$5
6562
+ mark: noop$4,
6563
+ measure: noop$4
6595
6564
  };
6596
6565
  try {
6597
6566
  if (typeof window !== "undefined") _WINDOW = window;
@@ -12335,12 +12304,12 @@ const createTheme$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
12335
12304
  private_createBreakpoints: createBreakpoints,
12336
12305
  unstable_applyStyles: applyStyles$2
12337
12306
  }, Symbol.toStringTag, { value: "Module" }));
12338
- function isObjectEmpty$1(obj) {
12307
+ function isObjectEmpty$2(obj) {
12339
12308
  return Object.keys(obj).length === 0;
12340
12309
  }
12341
12310
  function useTheme$4(defaultTheme2 = null) {
12342
12311
  const contextTheme = React$2.useContext(ThemeContext$1);
12343
- return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
12312
+ return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme2 : contextTheme;
12344
12313
  }
12345
12314
  const systemDefaultTheme$2 = createTheme$3();
12346
12315
  function useTheme$3(defaultTheme2 = systemDefaultTheme$2) {
@@ -12521,7 +12490,7 @@ function requireReactIs_production() {
12521
12490
  if (hasRequiredReactIs_production) return reactIs_production;
12522
12491
  hasRequiredReactIs_production = 1;
12523
12492
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12524
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12493
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12525
12494
  function typeOf(object) {
12526
12495
  if ("object" === typeof object && null !== object) {
12527
12496
  var $$typeof = object.$$typeof;
@@ -12533,6 +12502,7 @@ function requireReactIs_production() {
12533
12502
  case REACT_STRICT_MODE_TYPE:
12534
12503
  case REACT_SUSPENSE_TYPE:
12535
12504
  case REACT_SUSPENSE_LIST_TYPE:
12505
+ case REACT_VIEW_TRANSITION_TYPE:
12536
12506
  return object;
12537
12507
  default:
12538
12508
  switch (object = object && object.$$typeof, object) {
@@ -12601,7 +12571,7 @@ function requireReactIs_production() {
12601
12571
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12602
12572
  };
12603
12573
  reactIs_production.isValidElementType = function(type) {
12604
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12574
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12605
12575
  };
12606
12576
  reactIs_production.typeOf = typeOf;
12607
12577
  return reactIs_production;
@@ -12632,6 +12602,7 @@ function requireReactIs_development() {
12632
12602
  case REACT_STRICT_MODE_TYPE:
12633
12603
  case REACT_SUSPENSE_TYPE:
12634
12604
  case REACT_SUSPENSE_LIST_TYPE:
12605
+ case REACT_VIEW_TRANSITION_TYPE:
12635
12606
  return object;
12636
12607
  default:
12637
12608
  switch (object = object && object.$$typeof, object) {
@@ -12652,7 +12623,7 @@ function requireReactIs_development() {
12652
12623
  }
12653
12624
  }
12654
12625
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12655
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12626
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12656
12627
  reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
12657
12628
  reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
12658
12629
  reactIs_development.Element = REACT_ELEMENT_TYPE;
@@ -12702,7 +12673,7 @@ function requireReactIs_development() {
12702
12673
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12703
12674
  };
12704
12675
  reactIs_development.isValidElementType = function(type) {
12705
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12676
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12706
12677
  };
12707
12678
  reactIs_development.typeOf = typeOf;
12708
12679
  }();
@@ -13266,7 +13237,7 @@ function requirePropFactory(componentNameInError, Component2) {
13266
13237
  };
13267
13238
  return requireProp;
13268
13239
  }
13269
- function setRef$1(ref, value2) {
13240
+ function setRef(ref, value2) {
13270
13241
  if (typeof ref === "function") {
13271
13242
  ref(value2);
13272
13243
  } else if (ref) {
@@ -13353,7 +13324,7 @@ function useForkRef$1(...refs) {
13353
13324
  }
13354
13325
  return (instance) => {
13355
13326
  refs.forEach((ref) => {
13356
- setRef$1(ref, instance);
13327
+ setRef(ref, instance);
13357
13328
  });
13358
13329
  };
13359
13330
  }, refs);
@@ -15371,7 +15342,9 @@ function createTheme$1(options = {}, ...args) {
15371
15342
  transitions: transitionsInput = {},
15372
15343
  typography: typographyInput = {}
15373
15344
  } = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1g);
15374
- if (options.vars) {
15345
+ if (options.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
15346
+ // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
15347
+ options.generateCssVars === void 0) {
15375
15348
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
15376
15349
  Please use another name.` : formatMuiErrorMessage$1(18));
15377
15350
  }
@@ -15731,9 +15704,21 @@ function ThemeProvider(_ref2) {
15731
15704
  theme: themeInput
15732
15705
  } = _ref2, props = _objectWithoutPropertiesLoose$1(_ref2, _excluded$1e);
15733
15706
  const scopedTheme = themeInput[THEME_ID];
15707
+ let finalTheme = scopedTheme || themeInput;
15708
+ if (typeof themeInput !== "function") {
15709
+ if (scopedTheme && !scopedTheme.vars) {
15710
+ finalTheme = _extends$3({}, scopedTheme, {
15711
+ vars: null
15712
+ });
15713
+ } else if (themeInput && !themeInput.vars) {
15714
+ finalTheme = _extends$3({}, themeInput, {
15715
+ vars: null
15716
+ });
15717
+ }
15718
+ }
15734
15719
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider$1, _extends$3({}, props, {
15735
15720
  themeId: scopedTheme ? THEME_ID : void 0,
15736
- theme: scopedTheme || themeInput
15721
+ theme: finalTheme
15737
15722
  }));
15738
15723
  }
15739
15724
  process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
@@ -16395,7 +16380,7 @@ Transition$1.propTypes = process.env.NODE_ENV !== "production" ? {
16395
16380
  */
16396
16381
  onExited: PropTypes.func
16397
16382
  } : {};
16398
- function noop$4() {
16383
+ function noop$3() {
16399
16384
  }
16400
16385
  Transition$1.defaultProps = {
16401
16386
  in: false,
@@ -16404,12 +16389,12 @@ Transition$1.defaultProps = {
16404
16389
  appear: false,
16405
16390
  enter: true,
16406
16391
  exit: true,
16407
- onEnter: noop$4,
16408
- onEntering: noop$4,
16409
- onEntered: noop$4,
16410
- onExit: noop$4,
16411
- onExiting: noop$4,
16412
- onExited: noop$4
16392
+ onEnter: noop$3,
16393
+ onEntering: noop$3,
16394
+ onEntered: noop$3,
16395
+ onExit: noop$3,
16396
+ onExiting: noop$3,
16397
+ onExited: noop$3
16413
16398
  };
16414
16399
  Transition$1.UNMOUNTED = UNMOUNTED;
16415
16400
  Transition$1.EXITED = EXITED;
@@ -18945,7 +18930,7 @@ function useAutocomplete(props) {
18945
18930
  multiple
18946
18931
  ]);
18947
18932
  const handleListboxRef = useEventCallback((node2) => {
18948
- setRef$1(listboxRef, node2);
18933
+ setRef(listboxRef, node2);
18949
18934
  if (!node2) {
18950
18935
  return;
18951
18936
  }
@@ -19116,7 +19101,7 @@ function useAutocomplete(props) {
19116
19101
  case "PageUp":
19117
19102
  event.preventDefault();
19118
19103
  changeHighlightedIndex({
19119
- diff: -5,
19104
+ diff: -pageSize,
19120
19105
  direction: "previous",
19121
19106
  reason: "keyboard",
19122
19107
  event
@@ -19464,12 +19449,12 @@ function _interopRequireWildcard$2(e, r2) {
19464
19449
  }
19465
19450
  return n.default = e, t2 && t2.set(e, n), n;
19466
19451
  }
19467
- function isObjectEmpty(obj) {
19452
+ function isObjectEmpty$1(obj) {
19468
19453
  return Object.keys(obj).length === 0;
19469
19454
  }
19470
19455
  function useTheme(defaultTheme2 = null) {
19471
19456
  const contextTheme = React$1.useContext(_styledEngine.ThemeContext);
19472
- return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
19457
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
19473
19458
  }
19474
19459
  default_1 = useThemeWithoutDefault.default = useTheme;
19475
19460
  var top = "top";
@@ -20836,9 +20821,9 @@ const Portal = /* @__PURE__ */ React$2.forwardRef(function Portal2(props, forwar
20836
20821
  }, [container, disablePortal]);
20837
20822
  useEnhancedEffect(() => {
20838
20823
  if (mountNode && !disablePortal) {
20839
- setRef$1(forwardedRef, mountNode);
20824
+ setRef(forwardedRef, mountNode);
20840
20825
  return () => {
20841
- setRef$1(forwardedRef, null);
20826
+ setRef(forwardedRef, null);
20842
20827
  };
20843
20828
  }
20844
20829
  return void 0;
@@ -22047,8 +22032,14 @@ const styles$7 = {
22047
22032
  transform: "translateZ(0)"
22048
22033
  }
22049
22034
  };
22035
+ function isObjectEmpty(object) {
22036
+ for (const _2 in object) {
22037
+ return false;
22038
+ }
22039
+ return true;
22040
+ }
22050
22041
  function isEmpty$1(obj) {
22051
- return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflowing;
22042
+ return isObjectEmpty(obj) || obj.outerHeightStyle === 0 && !obj.overflowing;
22052
22043
  }
22053
22044
  const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAutosize2(props, forwardedRef) {
22054
22045
  const {
@@ -22061,32 +22052,35 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
22061
22052
  const {
22062
22053
  current: isControlled
22063
22054
  } = React$2.useRef(value2 != null);
22064
- const inputRef = React$2.useRef(null);
22065
- const handleRef = useForkRef$1(forwardedRef, inputRef);
22055
+ const textareaRef = React$2.useRef(null);
22056
+ const handleRef = useForkRef$1(forwardedRef, textareaRef);
22066
22057
  const heightRef = React$2.useRef(null);
22067
- const shadowRef = React$2.useRef(null);
22058
+ const hiddenTextareaRef = React$2.useRef(null);
22068
22059
  const calculateTextareaStyles = React$2.useCallback(() => {
22069
- const input = inputRef.current;
22070
- const containerWindow = ownerWindow(input);
22071
- const computedStyle = containerWindow.getComputedStyle(input);
22060
+ const textarea = textareaRef.current;
22061
+ const hiddenTextarea = hiddenTextareaRef.current;
22062
+ if (!textarea || !hiddenTextarea) {
22063
+ return void 0;
22064
+ }
22065
+ const containerWindow = ownerWindow(textarea);
22066
+ const computedStyle = containerWindow.getComputedStyle(textarea);
22072
22067
  if (computedStyle.width === "0px") {
22073
22068
  return {
22074
22069
  outerHeightStyle: 0,
22075
22070
  overflowing: false
22076
22071
  };
22077
22072
  }
22078
- const inputShallow = shadowRef.current;
22079
- inputShallow.style.width = computedStyle.width;
22080
- inputShallow.value = input.value || props.placeholder || "x";
22081
- if (inputShallow.value.slice(-1) === "\n") {
22082
- inputShallow.value += " ";
22073
+ hiddenTextarea.style.width = computedStyle.width;
22074
+ hiddenTextarea.value = textarea.value || props.placeholder || "x";
22075
+ if (hiddenTextarea.value.slice(-1) === "\n") {
22076
+ hiddenTextarea.value += " ";
22083
22077
  }
22084
22078
  const boxSizing2 = computedStyle.boxSizing;
22085
22079
  const padding2 = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
22086
22080
  const border2 = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
22087
- const innerHeight2 = inputShallow.scrollHeight;
22088
- inputShallow.value = "x";
22089
- const singleRowHeight = inputShallow.scrollHeight;
22081
+ const innerHeight2 = hiddenTextarea.scrollHeight;
22082
+ hiddenTextarea.value = "x";
22083
+ const singleRowHeight = hiddenTextarea.scrollHeight;
22090
22084
  let outerHeight2 = innerHeight2;
22091
22085
  if (minRows) {
22092
22086
  outerHeight2 = Math.max(Number(minRows) * singleRowHeight, outerHeight2);
@@ -22102,48 +22096,60 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
22102
22096
  overflowing
22103
22097
  };
22104
22098
  }, [maxRows, minRows, props.placeholder]);
22099
+ const didHeightChange = useEventCallback(() => {
22100
+ const textarea = textareaRef.current;
22101
+ const textareaStyles = calculateTextareaStyles();
22102
+ if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22103
+ return false;
22104
+ }
22105
+ const outerHeightStyle = textareaStyles.outerHeightStyle;
22106
+ return heightRef.current != null && heightRef.current !== outerHeightStyle;
22107
+ });
22105
22108
  const syncHeight = React$2.useCallback(() => {
22109
+ const textarea = textareaRef.current;
22106
22110
  const textareaStyles = calculateTextareaStyles();
22107
- if (isEmpty$1(textareaStyles)) {
22111
+ if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22108
22112
  return;
22109
22113
  }
22110
22114
  const outerHeightStyle = textareaStyles.outerHeightStyle;
22111
- const input = inputRef.current;
22112
22115
  if (heightRef.current !== outerHeightStyle) {
22113
22116
  heightRef.current = outerHeightStyle;
22114
- input.style.height = `${outerHeightStyle}px`;
22117
+ textarea.style.height = `${outerHeightStyle}px`;
22115
22118
  }
22116
- input.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22119
+ textarea.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22117
22120
  }, [calculateTextareaStyles]);
22121
+ const frameRef = React$2.useRef(-1);
22118
22122
  useEnhancedEffect(() => {
22119
- const handleResize = () => {
22120
- syncHeight();
22121
- };
22122
- let rAF;
22123
- const rAFHandleResize = () => {
22124
- cancelAnimationFrame(rAF);
22125
- rAF = requestAnimationFrame(() => {
22126
- handleResize();
22127
- });
22128
- };
22129
- const debounceHandleResize = debounce$1(handleResize);
22130
- const input = inputRef.current;
22131
- const containerWindow = ownerWindow(input);
22132
- containerWindow.addEventListener("resize", debounceHandleResize);
22123
+ const debouncedHandleResize = debounce$1(syncHeight);
22124
+ const textarea = textareaRef == null ? void 0 : textareaRef.current;
22125
+ if (!textarea) {
22126
+ return void 0;
22127
+ }
22128
+ const containerWindow = ownerWindow(textarea);
22129
+ containerWindow.addEventListener("resize", debouncedHandleResize);
22133
22130
  let resizeObserver;
22134
22131
  if (typeof ResizeObserver !== "undefined") {
22135
- resizeObserver = new ResizeObserver(process.env.NODE_ENV === "test" ? rAFHandleResize : handleResize);
22136
- resizeObserver.observe(input);
22132
+ resizeObserver = new ResizeObserver(() => {
22133
+ if (didHeightChange()) {
22134
+ resizeObserver.unobserve(textarea);
22135
+ cancelAnimationFrame(frameRef.current);
22136
+ syncHeight();
22137
+ frameRef.current = requestAnimationFrame(() => {
22138
+ resizeObserver.observe(textarea);
22139
+ });
22140
+ }
22141
+ });
22142
+ resizeObserver.observe(textarea);
22137
22143
  }
22138
22144
  return () => {
22139
- debounceHandleResize.clear();
22140
- cancelAnimationFrame(rAF);
22141
- containerWindow.removeEventListener("resize", debounceHandleResize);
22145
+ debouncedHandleResize.clear();
22146
+ cancelAnimationFrame(frameRef.current);
22147
+ containerWindow.removeEventListener("resize", debouncedHandleResize);
22142
22148
  if (resizeObserver) {
22143
22149
  resizeObserver.disconnect();
22144
22150
  }
22145
22151
  };
22146
- }, [calculateTextareaStyles, syncHeight]);
22152
+ }, [calculateTextareaStyles, syncHeight, didHeightChange]);
22147
22153
  useEnhancedEffect(() => {
22148
22154
  syncHeight();
22149
22155
  });
@@ -22166,7 +22172,7 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
22166
22172
  "aria-hidden": true,
22167
22173
  className: props.className,
22168
22174
  readOnly: true,
22169
- ref: shadowRef,
22175
+ ref: hiddenTextareaRef,
22170
22176
  tabIndex: -1,
22171
22177
  style: _extends$3({}, styles$7.shadow, style2, {
22172
22178
  paddingTop: 0,
@@ -43394,7 +43400,7 @@ const typography = {
43394
43400
  };
43395
43401
  const DEFAULT_THEME = "dark";
43396
43402
  const TELICENT_THEME = "telicent-theme";
43397
- const ThemeEnum = z.enum(["dark", "light"]);
43403
+ const ThemeEnum = enumType(["dark", "light"]);
43398
43404
  const useTeliTheme = () => {
43399
43405
  const getTheme = () => {
43400
43406
  const savedTheme = localStorage.getItem(TELICENT_THEME);
@@ -43526,7 +43532,7 @@ var Subscribable = class {
43526
43532
  }
43527
43533
  };
43528
43534
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
43529
- function noop$3() {
43535
+ function noop$2() {
43530
43536
  }
43531
43537
  function functionalUpdate(updater, input) {
43532
43538
  return typeof updater === "function" ? updater(input) : updater;
@@ -43624,7 +43630,7 @@ function partialMatchKey(a, b) {
43624
43630
  return false;
43625
43631
  }
43626
43632
  if (a && b && typeof a === "object" && typeof b === "object") {
43627
- return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
43633
+ return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));
43628
43634
  }
43629
43635
  return false;
43630
43636
  }
@@ -43639,10 +43645,11 @@ function replaceEqualDeep(a, b) {
43639
43645
  const bItems = array2 ? b : Object.keys(b);
43640
43646
  const bSize = bItems.length;
43641
43647
  const copy2 = array2 ? [] : {};
43648
+ const aItemsSet = new Set(aItems);
43642
43649
  let equalItems = 0;
43643
43650
  for (let i = 0; i < bSize; i++) {
43644
43651
  const key = array2 ? i : bItems[i];
43645
- if ((!array2 && aItems.includes(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43652
+ if ((!array2 && aItemsSet.has(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43646
43653
  copy2[key] = void 0;
43647
43654
  equalItems++;
43648
43655
  } else {
@@ -43709,6 +43716,7 @@ function replaceData(prevData, data, options) {
43709
43716
  console.error(
43710
43717
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`
43711
43718
  );
43719
+ throw error;
43712
43720
  }
43713
43721
  }
43714
43722
  return replaceEqualDeep(prevData, data);
@@ -43740,6 +43748,12 @@ function ensureQueryFn(options, fetchOptions2) {
43740
43748
  }
43741
43749
  return options.queryFn;
43742
43750
  }
43751
+ function shouldThrowError(throwOnError, params) {
43752
+ if (typeof throwOnError === "function") {
43753
+ return throwOnError(...params);
43754
+ }
43755
+ return !!throwOnError;
43756
+ }
43743
43757
  var FocusManager = (_d = class extends Subscribable {
43744
43758
  constructor() {
43745
43759
  super();
@@ -44015,6 +44029,7 @@ function createRetryer(config2) {
44015
44029
  }
44016
44030
  };
44017
44031
  }
44032
+ var defaultScheduler = (cb) => setTimeout(cb, 0);
44018
44033
  function createNotifyManager() {
44019
44034
  let queue = [];
44020
44035
  let transactions = 0;
@@ -44024,7 +44039,7 @@ function createNotifyManager() {
44024
44039
  let batchNotifyFn = (callback) => {
44025
44040
  callback();
44026
44041
  };
44027
- let scheduleFn = (cb) => setTimeout(cb, 0);
44042
+ let scheduleFn = defaultScheduler;
44028
44043
  const schedule2 = (callback) => {
44029
44044
  if (transactions) {
44030
44045
  queue.push(callback);
@@ -44176,7 +44191,7 @@ var Query = (_g = class extends Removable {
44176
44191
  var _a2, _b2;
44177
44192
  const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
44178
44193
  (_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
44179
- return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
44194
+ return promise ? promise.then(noop$2).catch(noop$2) : Promise.resolve();
44180
44195
  }
44181
44196
  destroy() {
44182
44197
  super.destroy();
@@ -44197,19 +44212,33 @@ var Query = (_g = class extends Removable {
44197
44212
  }
44198
44213
  return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
44199
44214
  }
44200
- isStale() {
44201
- if (this.state.isInvalidated) {
44202
- return true;
44215
+ isStatic() {
44216
+ if (this.getObserversCount() > 0) {
44217
+ return this.observers.some(
44218
+ (observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
44219
+ );
44203
44220
  }
44221
+ return false;
44222
+ }
44223
+ isStale() {
44204
44224
  if (this.getObserversCount() > 0) {
44205
44225
  return this.observers.some(
44206
44226
  (observer) => observer.getCurrentResult().isStale
44207
44227
  );
44208
44228
  }
44209
- return this.state.data === void 0;
44229
+ return this.state.data === void 0 || this.state.isInvalidated;
44210
44230
  }
44211
44231
  isStaleByTime(staleTime = 0) {
44212
- return this.state.isInvalidated || this.state.data === void 0 || !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44232
+ if (this.state.data === void 0) {
44233
+ return true;
44234
+ }
44235
+ if (staleTime === "static") {
44236
+ return false;
44237
+ }
44238
+ if (this.state.isInvalidated) {
44239
+ return true;
44240
+ }
44241
+ return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44213
44242
  }
44214
44243
  onFocus() {
44215
44244
  var _a2;
@@ -44292,12 +44321,16 @@ var Query = (_g = class extends Removable {
44292
44321
  };
44293
44322
  const fetchFn = () => {
44294
44323
  const queryFn = ensureQueryFn(this.options, fetchOptions2);
44295
- const queryFnContext = {
44296
- client: __privateGet(this, _client),
44297
- queryKey: this.queryKey,
44298
- meta: this.meta
44324
+ const createQueryFnContext = () => {
44325
+ const queryFnContext2 = {
44326
+ client: __privateGet(this, _client),
44327
+ queryKey: this.queryKey,
44328
+ meta: this.meta
44329
+ };
44330
+ addSignalProperty(queryFnContext2);
44331
+ return queryFnContext2;
44299
44332
  };
44300
- addSignalProperty(queryFnContext);
44333
+ const queryFnContext = createQueryFnContext();
44301
44334
  __privateSet(this, _abortSignalConsumed, false);
44302
44335
  if (this.options.persister) {
44303
44336
  return this.options.persister(
@@ -44308,19 +44341,20 @@ var Query = (_g = class extends Removable {
44308
44341
  }
44309
44342
  return queryFn(queryFnContext);
44310
44343
  };
44311
- const context = {
44312
- fetchOptions: fetchOptions2,
44313
- options: this.options,
44314
- queryKey: this.queryKey,
44315
- client: __privateGet(this, _client),
44316
- state: this.state,
44317
- fetchFn
44344
+ const createFetchContext = () => {
44345
+ const context2 = {
44346
+ fetchOptions: fetchOptions2,
44347
+ options: this.options,
44348
+ queryKey: this.queryKey,
44349
+ client: __privateGet(this, _client),
44350
+ state: this.state,
44351
+ fetchFn
44352
+ };
44353
+ addSignalProperty(context2);
44354
+ return context2;
44318
44355
  };
44319
- addSignalProperty(context);
44320
- (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(
44321
- context,
44322
- this
44323
- );
44356
+ const context = createFetchContext();
44357
+ (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(context, this);
44324
44358
  __privateSet(this, _revertState, this.state);
44325
44359
  if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_b2 = context.fetchOptions) == null ? void 0 : _b2.meta)) {
44326
44360
  __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_c2 = context.fetchOptions) == null ? void 0 : _c2.meta });
@@ -44421,6 +44455,7 @@ var Query = (_g = class extends Removable {
44421
44455
  fetchMeta: action.meta ?? null
44422
44456
  };
44423
44457
  case "success":
44458
+ __privateSet(this, _revertState, void 0);
44424
44459
  return {
44425
44460
  ...state,
44426
44461
  data: action.data,
@@ -44645,6 +44680,9 @@ var Mutation = (_i = class extends Removable {
44645
44680
  }
44646
44681
  async execute(variables) {
44647
44682
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t7;
44683
+ const onContinue = () => {
44684
+ __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44685
+ };
44648
44686
  __privateSet(this, _retryer2, createRetryer({
44649
44687
  fn: () => {
44650
44688
  if (!this.options.mutationFn) {
@@ -44658,9 +44696,7 @@ var Mutation = (_i = class extends Removable {
44658
44696
  onPause: () => {
44659
44697
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pause" });
44660
44698
  },
44661
- onContinue: () => {
44662
- __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44663
- },
44699
+ onContinue,
44664
44700
  retry: this.options.retry ?? 0,
44665
44701
  retryDelay: this.options.retryDelay,
44666
44702
  networkMode: this.options.networkMode,
@@ -44669,7 +44705,9 @@ var Mutation = (_i = class extends Removable {
44669
44705
  const restored = this.state.status === "pending";
44670
44706
  const isPaused = !__privateGet(this, _retryer2).canStart();
44671
44707
  try {
44672
- if (!restored) {
44708
+ if (restored) {
44709
+ onContinue();
44710
+ } else {
44673
44711
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
44674
44712
  await ((_b2 = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b2.call(
44675
44713
  _a2,
@@ -44930,7 +44968,7 @@ var MutationCache = (_j = class extends Subscribable {
44930
44968
  const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
44931
44969
  return notifyManager.batch(
44932
44970
  () => Promise.all(
44933
- pausedMutations.map((mutation) => mutation.continue().catch(noop$3))
44971
+ pausedMutations.map((mutation) => mutation.continue().catch(noop$2))
44934
44972
  )
44935
44973
  );
44936
44974
  }
@@ -44974,17 +45012,19 @@ function infiniteQueryBehavior(pages) {
44974
45012
  if (param == null && data.pages.length) {
44975
45013
  return Promise.resolve(data);
44976
45014
  }
44977
- const queryFnContext = {
44978
- client: context.client,
44979
- queryKey: context.queryKey,
44980
- pageParam: param,
44981
- direction: previous ? "backward" : "forward",
44982
- meta: context.options.meta
45015
+ const createQueryFnContext = () => {
45016
+ const queryFnContext2 = {
45017
+ client: context.client,
45018
+ queryKey: context.queryKey,
45019
+ pageParam: param,
45020
+ direction: previous ? "backward" : "forward",
45021
+ meta: context.options.meta
45022
+ };
45023
+ addSignalProperty(queryFnContext2);
45024
+ return queryFnContext2;
44983
45025
  };
44984
- addSignalProperty(queryFnContext);
44985
- const page = await queryFn(
44986
- queryFnContext
44987
- );
45026
+ const queryFnContext = createQueryFnContext();
45027
+ const page = await queryFn(queryFnContext);
44988
45028
  const { maxPages } = context.options;
44989
45029
  const addTo = previous ? addToStart : addToEnd;
44990
45030
  return {
@@ -45067,8 +45107,7 @@ var QueryClient = (_k = class {
45067
45107
  }
45068
45108
  mount() {
45069
45109
  __privateWrapper(this, _mountCount)._++;
45070
- if (__privateGet(this, _mountCount) !== 1)
45071
- return;
45110
+ if (__privateGet(this, _mountCount) !== 1) return;
45072
45111
  __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
45073
45112
  if (focused) {
45074
45113
  await this.resumePausedMutations();
@@ -45085,8 +45124,7 @@ var QueryClient = (_k = class {
45085
45124
  unmount() {
45086
45125
  var _a2, _b2;
45087
45126
  __privateWrapper(this, _mountCount)._--;
45088
- if (__privateGet(this, _mountCount) !== 0)
45089
- return;
45127
+ if (__privateGet(this, _mountCount) !== 0) return;
45090
45128
  (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
45091
45129
  __privateSet(this, _unsubscribeFocus, void 0);
45092
45130
  (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
@@ -45098,6 +45136,13 @@ var QueryClient = (_k = class {
45098
45136
  isMutating(filters) {
45099
45137
  return __privateGet(this, _mutationCache2).findAll({ ...filters, status: "pending" }).length;
45100
45138
  }
45139
+ /**
45140
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
45141
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
45142
+ *
45143
+ * Hint: Do not use this function inside a component, because it won't receive updates.
45144
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
45145
+ */
45101
45146
  getQueryData(queryKey) {
45102
45147
  var _a2;
45103
45148
  const options = this.defaultQueryOptions({ queryKey });
@@ -45158,15 +45203,17 @@ var QueryClient = (_k = class {
45158
45203
  }
45159
45204
  resetQueries(filters, options) {
45160
45205
  const queryCache = __privateGet(this, _queryCache);
45161
- const refetchFilters = {
45162
- type: "active",
45163
- ...filters
45164
- };
45165
45206
  return notifyManager.batch(() => {
45166
45207
  queryCache.findAll(filters).forEach((query) => {
45167
45208
  query.reset();
45168
45209
  });
45169
- return this.refetchQueries(refetchFilters, options);
45210
+ return this.refetchQueries(
45211
+ {
45212
+ type: "active",
45213
+ ...filters
45214
+ },
45215
+ options
45216
+ );
45170
45217
  });
45171
45218
  }
45172
45219
  cancelQueries(filters, cancelOptions = {}) {
@@ -45174,7 +45221,7 @@ var QueryClient = (_k = class {
45174
45221
  const promises = notifyManager.batch(
45175
45222
  () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
45176
45223
  );
45177
- return Promise.all(promises).then(noop$3).catch(noop$3);
45224
+ return Promise.all(promises).then(noop$2).catch(noop$2);
45178
45225
  }
45179
45226
  invalidateQueries(filters, options = {}) {
45180
45227
  return notifyManager.batch(() => {
@@ -45184,11 +45231,13 @@ var QueryClient = (_k = class {
45184
45231
  if ((filters == null ? void 0 : filters.refetchType) === "none") {
45185
45232
  return Promise.resolve();
45186
45233
  }
45187
- const refetchFilters = {
45188
- ...filters,
45189
- type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45190
- };
45191
- return this.refetchQueries(refetchFilters, options);
45234
+ return this.refetchQueries(
45235
+ {
45236
+ ...filters,
45237
+ type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45238
+ },
45239
+ options
45240
+ );
45192
45241
  });
45193
45242
  }
45194
45243
  refetchQueries(filters, options = {}) {
@@ -45197,15 +45246,15 @@ var QueryClient = (_k = class {
45197
45246
  cancelRefetch: options.cancelRefetch ?? true
45198
45247
  };
45199
45248
  const promises = notifyManager.batch(
45200
- () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
45249
+ () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
45201
45250
  let promise = query.fetch(void 0, fetchOptions2);
45202
45251
  if (!fetchOptions2.throwOnError) {
45203
- promise = promise.catch(noop$3);
45252
+ promise = promise.catch(noop$2);
45204
45253
  }
45205
45254
  return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
45206
45255
  })
45207
45256
  );
45208
- return Promise.all(promises).then(noop$3);
45257
+ return Promise.all(promises).then(noop$2);
45209
45258
  }
45210
45259
  fetchQuery(options) {
45211
45260
  const defaultedOptions = this.defaultQueryOptions(options);
@@ -45218,14 +45267,14 @@ var QueryClient = (_k = class {
45218
45267
  ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
45219
45268
  }
45220
45269
  prefetchQuery(options) {
45221
- return this.fetchQuery(options).then(noop$3).catch(noop$3);
45270
+ return this.fetchQuery(options).then(noop$2).catch(noop$2);
45222
45271
  }
45223
45272
  fetchInfiniteQuery(options) {
45224
45273
  options.behavior = infiniteQueryBehavior(options.pages);
45225
45274
  return this.fetchQuery(options);
45226
45275
  }
45227
45276
  prefetchInfiniteQuery(options) {
45228
- return this.fetchInfiniteQuery(options).then(noop$3).catch(noop$3);
45277
+ return this.fetchInfiniteQuery(options).then(noop$2).catch(noop$2);
45229
45278
  }
45230
45279
  ensureInfiniteQueryData(options) {
45231
45280
  options.behavior = infiniteQueryBehavior(options.pages);
@@ -45273,10 +45322,10 @@ var QueryClient = (_k = class {
45273
45322
  }
45274
45323
  getMutationDefaults(mutationKey) {
45275
45324
  const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
45276
- let result = {};
45325
+ const result = {};
45277
45326
  defaults2.forEach((queryDefault) => {
45278
45327
  if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
45279
- result = { ...result, ...queryDefault.defaultOptions };
45328
+ Object.assign(result, queryDefault.defaultOptions);
45280
45329
  }
45281
45330
  });
45282
45331
  return result;
@@ -45399,7 +45448,7 @@ var QueryObserver = (_l = class extends Subscribable {
45399
45448
  __privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
45400
45449
  __privateGet(this, _currentQuery).removeObserver(this);
45401
45450
  }
45402
- setOptions(options, notifyOptions) {
45451
+ setOptions(options) {
45403
45452
  const prevOptions = this.options;
45404
45453
  const prevQuery = __privateGet(this, _currentQuery);
45405
45454
  this.options = __privateGet(this, _client2).defaultQueryOptions(options);
@@ -45426,7 +45475,7 @@ var QueryObserver = (_l = class extends Subscribable {
45426
45475
  )) {
45427
45476
  __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
45428
45477
  }
45429
- this.updateResult(notifyOptions);
45478
+ this.updateResult();
45430
45479
  if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
45431
45480
  __privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
45432
45481
  }
@@ -45449,19 +45498,13 @@ var QueryObserver = (_l = class extends Subscribable {
45449
45498
  return __privateGet(this, _currentResult);
45450
45499
  }
45451
45500
  trackResult(result, onPropTracked) {
45452
- const trackedResult = {};
45453
- Object.keys(result).forEach((key) => {
45454
- Object.defineProperty(trackedResult, key, {
45455
- configurable: false,
45456
- enumerable: true,
45457
- get: () => {
45458
- this.trackProp(key);
45459
- onPropTracked == null ? void 0 : onPropTracked(key);
45460
- return result[key];
45461
- }
45462
- });
45501
+ return new Proxy(result, {
45502
+ get: (target, key) => {
45503
+ this.trackProp(key);
45504
+ onPropTracked == null ? void 0 : onPropTracked(key);
45505
+ return Reflect.get(target, key);
45506
+ }
45463
45507
  });
45464
- return trackedResult;
45465
45508
  }
45466
45509
  trackProp(key) {
45467
45510
  __privateGet(this, _trackedProps).add(key);
@@ -45516,40 +45559,18 @@ var QueryObserver = (_l = class extends Subscribable {
45516
45559
  }
45517
45560
  }
45518
45561
  let { error, errorUpdatedAt, status } = newState;
45519
- if (options.select && newState.data !== void 0) {
45520
- if (prevResult && newState.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45521
- data = __privateGet(this, _selectResult);
45522
- } else {
45523
- try {
45524
- __privateSet(this, _selectFn, options.select);
45525
- data = options.select(newState.data);
45526
- data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45527
- __privateSet(this, _selectResult, data);
45528
- __privateSet(this, _selectError, null);
45529
- } catch (selectError) {
45530
- __privateSet(this, _selectError, selectError);
45531
- }
45532
- }
45533
- } else {
45534
- data = newState.data;
45535
- }
45562
+ data = newState.data;
45563
+ let skipSelect = false;
45536
45564
  if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
45537
45565
  let placeholderData;
45538
45566
  if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
45539
45567
  placeholderData = prevResult.data;
45568
+ skipSelect = true;
45540
45569
  } else {
45541
45570
  placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
45542
45571
  (_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
45543
45572
  __privateGet(this, _lastQueryWithDefinedData)
45544
45573
  ) : options.placeholderData;
45545
- if (options.select && placeholderData !== void 0) {
45546
- try {
45547
- placeholderData = options.select(placeholderData);
45548
- __privateSet(this, _selectError, null);
45549
- } catch (selectError) {
45550
- __privateSet(this, _selectError, selectError);
45551
- }
45552
- }
45553
45574
  }
45554
45575
  if (placeholderData !== void 0) {
45555
45576
  status = "success";
@@ -45561,6 +45582,21 @@ var QueryObserver = (_l = class extends Subscribable {
45561
45582
  isPlaceholderData = true;
45562
45583
  }
45563
45584
  }
45585
+ if (options.select && data !== void 0 && !skipSelect) {
45586
+ if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45587
+ data = __privateGet(this, _selectResult);
45588
+ } else {
45589
+ try {
45590
+ __privateSet(this, _selectFn, options.select);
45591
+ data = options.select(data);
45592
+ data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45593
+ __privateSet(this, _selectResult, data);
45594
+ __privateSet(this, _selectError, null);
45595
+ } catch (selectError) {
45596
+ __privateSet(this, _selectError, selectError);
45597
+ }
45598
+ }
45599
+ }
45564
45600
  if (__privateGet(this, _selectError)) {
45565
45601
  error = __privateGet(this, _selectError);
45566
45602
  data = __privateGet(this, _selectResult);
@@ -45633,7 +45669,7 @@ var QueryObserver = (_l = class extends Subscribable {
45633
45669
  }
45634
45670
  return nextResult;
45635
45671
  }
45636
- updateResult(notifyOptions) {
45672
+ updateResult() {
45637
45673
  const prevResult = __privateGet(this, _currentResult);
45638
45674
  const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
45639
45675
  __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
@@ -45645,7 +45681,6 @@ var QueryObserver = (_l = class extends Subscribable {
45645
45681
  return;
45646
45682
  }
45647
45683
  __privateSet(this, _currentResult, nextResult);
45648
- const defaultNotifyOptions = {};
45649
45684
  const shouldNotifyListeners = () => {
45650
45685
  if (!prevResult) {
45651
45686
  return true;
@@ -45667,10 +45702,7 @@ var QueryObserver = (_l = class extends Subscribable {
45667
45702
  return changed && includedProps.has(typedKey);
45668
45703
  });
45669
45704
  };
45670
- if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {
45671
- defaultNotifyOptions.listeners = true;
45672
- }
45673
- __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { ...defaultNotifyOptions, ...notifyOptions });
45705
+ __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { listeners: shouldNotifyListeners() });
45674
45706
  }
45675
45707
  onQueryUpdate() {
45676
45708
  this.updateResult();
@@ -45685,7 +45717,7 @@ var QueryObserver = (_l = class extends Subscribable {
45685
45717
  fetchOptions2
45686
45718
  );
45687
45719
  if (!(fetchOptions2 == null ? void 0 : fetchOptions2.throwOnError)) {
45688
- promise = promise.catch(noop$3);
45720
+ promise = promise.catch(noop$2);
45689
45721
  }
45690
45722
  return promise;
45691
45723
  }, updateStaleTimeout_fn = function() {
@@ -45762,7 +45794,7 @@ function shouldFetchOnMount(query, options) {
45762
45794
  return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
45763
45795
  }
45764
45796
  function shouldFetchOn(query, options, field) {
45765
- if (resolveEnabled(options.enabled, query) !== false) {
45797
+ if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
45766
45798
  const value2 = typeof field === "function" ? field(query) : field;
45767
45799
  return value2 === "always" || value2 !== false && isStale(query, options);
45768
45800
  }
@@ -45821,14 +45853,6 @@ function createValue() {
45821
45853
  }
45822
45854
  var QueryErrorResetBoundaryContext = React$2.createContext(createValue());
45823
45855
  var useQueryErrorResetBoundary = () => React$2.useContext(QueryErrorResetBoundaryContext);
45824
- function shouldThrowError(throwError, params) {
45825
- if (typeof throwError === "function") {
45826
- return throwError(...params);
45827
- }
45828
- return !!throwError;
45829
- }
45830
- function noop$2() {
45831
- }
45832
45856
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
45833
45857
  if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
45834
45858
  if (!errorResetBoundary.isReset()) {
@@ -45851,9 +45875,10 @@ var getHasError = ({
45851
45875
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
45852
45876
  };
45853
45877
  var ensureSuspenseTimers = (defaultedOptions) => {
45854
- const originalStaleTime = defaultedOptions.staleTime;
45855
45878
  if (defaultedOptions.suspense) {
45856
- defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);
45879
+ const clamp2 = (value2) => value2 === "static" ? value2 : Math.max(value2 ?? 1e3, 1e3);
45880
+ const originalStaleTime = defaultedOptions.staleTime;
45881
+ defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp2(originalStaleTime(...args)) : clamp2(originalStaleTime);
45857
45882
  if (typeof defaultedOptions.gcTime === "number") {
45858
45883
  defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);
45859
45884
  }
@@ -45873,14 +45898,21 @@ function useBaseQuery(options, Observer, queryClient2) {
45873
45898
  );
45874
45899
  }
45875
45900
  }
45876
- const client = useQueryClient();
45877
45901
  const isRestoring = useIsRestoring();
45878
45902
  const errorResetBoundary = useQueryErrorResetBoundary();
45903
+ const client = useQueryClient();
45879
45904
  const defaultedOptions = client.defaultQueryOptions(options);
45880
45905
  (_b2 = (_a2 = client.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
45881
45906
  _a2,
45882
45907
  defaultedOptions
45883
45908
  );
45909
+ if (process.env.NODE_ENV !== "production") {
45910
+ if (!defaultedOptions.queryFn) {
45911
+ console.error(
45912
+ `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
45913
+ );
45914
+ }
45915
+ }
45884
45916
  defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
45885
45917
  ensureSuspenseTimers(defaultedOptions);
45886
45918
  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
@@ -45907,7 +45939,7 @@ function useBaseQuery(options, Observer, queryClient2) {
45907
45939
  () => observer.getCurrentResult()
45908
45940
  );
45909
45941
  React$2.useEffect(() => {
45910
- observer.setOptions(defaultedOptions, { listeners: false });
45942
+ observer.setOptions(defaultedOptions);
45911
45943
  }, [defaultedOptions, observer]);
45912
45944
  if (shouldSuspend(defaultedOptions, result)) {
45913
45945
  throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
@@ -46561,33 +46593,33 @@ const fetchOptions = {
46561
46593
  "Content-Type": "application/json"
46562
46594
  }
46563
46595
  };
46564
- const documentSchema = z.object({
46565
- uri: z.string(),
46566
- primaryName: z.string(),
46567
- types: z.array(z.string()),
46568
- literals: z.object({
46569
- "telicent:primaryName": z.array(z.string())
46596
+ const documentSchema = objectType({
46597
+ uri: stringType(),
46598
+ primaryName: stringType(),
46599
+ types: arrayType(stringType()),
46600
+ literals: objectType({
46601
+ "telicent:primaryName": arrayType(stringType())
46570
46602
  }),
46571
- isState: z.boolean(),
46572
- inLocation: z.string(),
46573
- metadata: z.object({
46574
- documentFormat: z.string(),
46575
- generatedBy: z.string(),
46576
- generatorVersion: z.string()
46603
+ isState: booleanType(),
46604
+ inLocation: stringType(),
46605
+ metadata: objectType({
46606
+ documentFormat: stringType(),
46607
+ generatedBy: stringType(),
46608
+ generatorVersion: stringType()
46577
46609
  })
46578
46610
  });
46579
- const resultSchema = z.object({
46580
- id: z.string().url(),
46581
- score: z.number(),
46611
+ const resultSchema = objectType({
46612
+ id: stringType().url(),
46613
+ score: numberType(),
46582
46614
  document: documentSchema
46583
46615
  });
46584
- const ApiTypeAheadResponseSchema = z.object({
46585
- maybeMore: z.boolean(),
46586
- limit: z.number(),
46587
- offset: z.number(),
46588
- query: z.string(),
46589
- type: z.literal("phrase"),
46590
- results: z.array(resultSchema)
46616
+ const ApiTypeAheadResponseSchema = objectType({
46617
+ maybeMore: booleanType(),
46618
+ limit: numberType(),
46619
+ offset: numberType(),
46620
+ query: stringType(),
46621
+ type: literalType("phrase"),
46622
+ results: arrayType(resultSchema)
46591
46623
  });
46592
46624
  const fetchSearchResults = async (url, queryParamKey, query) => {
46593
46625
  const queryParams = new URLSearchParams({
@@ -51253,7 +51285,7 @@ lodash.exports;
51253
51285
  return symbolToString ? symbolToString.call(value2) : "";
51254
51286
  }
51255
51287
  var result2 = value2 + "";
51256
- return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
51288
+ return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
51257
51289
  }
51258
51290
  function baseUniq(array2, iteratee2, comparator) {
51259
51291
  var index = -1, includes2 = arrayIncludes, length2 = array2.length, isCommon = true, result2 = [], seen = result2;
@@ -52460,7 +52492,7 @@ lodash.exports;
52460
52492
  return value2;
52461
52493
  }
52462
52494
  var result2 = value2 + "";
52463
- return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
52495
+ return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
52464
52496
  }
52465
52497
  function toSource(func) {
52466
52498
  if (func != null) {
@@ -53524,7 +53556,7 @@ lodash.exports;
53524
53556
  }
53525
53557
  var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
53526
53558
  function isSafeInteger(value2) {
53527
- return isInteger2(value2) && value2 >= -9007199254740991 && value2 <= MAX_SAFE_INTEGER;
53559
+ return isInteger2(value2) && value2 >= -MAX_SAFE_INTEGER && value2 <= MAX_SAFE_INTEGER;
53528
53560
  }
53529
53561
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
53530
53562
  function isString2(value2) {
@@ -53565,7 +53597,7 @@ lodash.exports;
53565
53597
  return value2 === 0 ? value2 : 0;
53566
53598
  }
53567
53599
  value2 = toNumber(value2);
53568
- if (value2 === INFINITY || value2 === -Infinity) {
53600
+ if (value2 === INFINITY || value2 === -INFINITY) {
53569
53601
  var sign = value2 < 0 ? -1 : 1;
53570
53602
  return sign * MAX_INTEGER;
53571
53603
  }
@@ -53600,7 +53632,7 @@ lodash.exports;
53600
53632
  return copyObject(value2, keysIn(value2));
53601
53633
  }
53602
53634
  function toSafeInteger(value2) {
53603
- return value2 ? baseClamp(toInteger(value2), -9007199254740991, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53635
+ return value2 ? baseClamp(toInteger(value2), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53604
53636
  }
53605
53637
  function toString3(value2) {
53606
53638
  return value2 == null ? "" : baseToString(value2);
@@ -54879,7 +54911,7 @@ const TeliBasicTable = ({
54879
54911
  return null;
54880
54912
  }
54881
54913
  const renderDefaultColumnCell = (column2, index) => {
54882
- const columnSchema = z.string({
54914
+ const columnSchema = stringType({
54883
54915
  required_error: "Column is required",
54884
54916
  invalid_type_error: "Column must be a string"
54885
54917
  });
@@ -55312,22 +55344,41 @@ function resolveComponentProps$1(componentProps, ownerState, slotState) {
55312
55344
  }
55313
55345
  return componentProps;
55314
55346
  }
55315
- function setRef(ref, value2) {
55316
- if (typeof ref === "function") {
55317
- ref(value2);
55318
- } else if (ref) {
55319
- ref.current = value2;
55320
- }
55321
- }
55322
55347
  function useForkRef(...refs) {
55348
+ const cleanupRef = React$2.useRef(void 0);
55349
+ const refEffect = React$2.useCallback((instance) => {
55350
+ const cleanups = refs.map((ref) => {
55351
+ if (ref == null) {
55352
+ return null;
55353
+ }
55354
+ if (typeof ref === "function") {
55355
+ const refCallback = ref;
55356
+ const refCleanup = refCallback(instance);
55357
+ return typeof refCleanup === "function" ? refCleanup : () => {
55358
+ refCallback(null);
55359
+ };
55360
+ }
55361
+ ref.current = instance;
55362
+ return () => {
55363
+ ref.current = null;
55364
+ };
55365
+ });
55366
+ return () => {
55367
+ cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
55368
+ };
55369
+ }, refs);
55323
55370
  return React$2.useMemo(() => {
55324
55371
  if (refs.every((ref) => ref == null)) {
55325
55372
  return null;
55326
55373
  }
55327
- return (instance) => {
55328
- refs.forEach((ref) => {
55329
- setRef(ref, instance);
55330
- });
55374
+ return (value2) => {
55375
+ if (cleanupRef.current) {
55376
+ cleanupRef.current();
55377
+ cleanupRef.current = void 0;
55378
+ }
55379
+ if (value2 != null) {
55380
+ cleanupRef.current = refEffect(value2);
55381
+ }
55331
55382
  };
55332
55383
  }, refs);
55333
55384
  }
@@ -59235,23 +59286,6 @@ cjs.exports.default = Draggable;
59235
59286
  cjs.exports.DraggableCore = DraggableCore2;
59236
59287
  var cjsExports = cjs.exports;
59237
59288
  const Draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
59238
- var __extends$2 = /* @__PURE__ */ function() {
59239
- var extendStatics2 = function(d, b) {
59240
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
59241
- d2.__proto__ = b2;
59242
- } || function(d2, b2) {
59243
- for (var p2 in b2) if (Object.prototype.hasOwnProperty.call(b2, p2)) d2[p2] = b2[p2];
59244
- };
59245
- return extendStatics2(d, b);
59246
- };
59247
- return function(d, b) {
59248
- extendStatics2(d, b);
59249
- function __() {
59250
- this.constructor = d;
59251
- }
59252
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59253
- };
59254
- }();
59255
59289
  var __assign$2 = function() {
59256
59290
  __assign$2 = Object.assign || function(t2) {
59257
59291
  for (var s2, i = 1, n = arguments.length; i < n; i++) {
@@ -59280,7 +59314,8 @@ var colSizeBase = {
59280
59314
  var edgeBase = {
59281
59315
  width: "20px",
59282
59316
  height: "20px",
59283
- position: "absolute"
59317
+ position: "absolute",
59318
+ zIndex: 1
59284
59319
  };
59285
59320
  var styles = {
59286
59321
  top: __assign$2(__assign$2({}, rowSizeBase), { top: "-5px" }),
@@ -59292,26 +59327,19 @@ var styles = {
59292
59327
  bottomLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
59293
59328
  topLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", top: "-10px", cursor: "nw-resize" })
59294
59329
  };
59295
- var Resizer = (
59296
- /** @class */
59297
- function(_super) {
59298
- __extends$2(Resizer2, _super);
59299
- function Resizer2() {
59300
- var _this = _super !== null && _super.apply(this, arguments) || this;
59301
- _this.onMouseDown = function(e) {
59302
- _this.props.onResizeStart(e, _this.props.direction);
59303
- };
59304
- _this.onTouchStart = function(e) {
59305
- _this.props.onResizeStart(e, _this.props.direction);
59306
- };
59307
- return _this;
59308
- }
59309
- Resizer2.prototype.render = function() {
59310
- return React$2.createElement("div", { className: this.props.className || "", style: __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
59311
- };
59312
- return Resizer2;
59313
- }(React$2.PureComponent)
59314
- );
59330
+ var Resizer = memo(function(props) {
59331
+ var onResizeStart = props.onResizeStart, direction = props.direction, children2 = props.children, replaceStyles = props.replaceStyles, className = props.className;
59332
+ var onMouseDown = useCallback(function(e) {
59333
+ onResizeStart(e, direction);
59334
+ }, [onResizeStart, direction]);
59335
+ var onTouchStart = useCallback(function(e) {
59336
+ onResizeStart(e, direction);
59337
+ }, [onResizeStart, direction]);
59338
+ var style2 = useMemo(function() {
59339
+ return __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[direction]), replaceStyles !== null && replaceStyles !== void 0 ? replaceStyles : {});
59340
+ }, [replaceStyles, direction]);
59341
+ return jsxRuntimeExports.jsx("div", { className: className || void 0, style: style2, onMouseDown, onTouchStart, children: children2 });
59342
+ });
59315
59343
  var __extends$1 = /* @__PURE__ */ function() {
59316
59344
  var extendStatics2 = function(d, b) {
59317
59345
  extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -59322,6 +59350,8 @@ var __extends$1 = /* @__PURE__ */ function() {
59322
59350
  return extendStatics2(d, b);
59323
59351
  };
59324
59352
  return function(d, b) {
59353
+ if (typeof b !== "function" && b !== null)
59354
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59325
59355
  extendStatics2(d, b);
59326
59356
  function __() {
59327
59357
  this.constructor = d;
@@ -59393,7 +59423,7 @@ var getStringSize = function(n) {
59393
59423
  if (n.endsWith("vmin")) {
59394
59424
  return n;
59395
59425
  }
59396
- return n + "px";
59426
+ return "".concat(n, "px");
59397
59427
  };
59398
59428
  var getPixelSize = function(size, parentSize, innerWidth2, innerHeight2) {
59399
59429
  if (size && typeof size === "string") {
@@ -59481,6 +59511,10 @@ var Resizable = (
59481
59511
  _this.resizableBottom = 0;
59482
59512
  _this.targetLeft = 0;
59483
59513
  _this.targetTop = 0;
59514
+ _this.delta = {
59515
+ width: 0,
59516
+ height: 0
59517
+ };
59484
59518
  _this.appendBase = function() {
59485
59519
  if (!_this.resizable || !_this.window) {
59486
59520
  return null;
@@ -59608,7 +59642,7 @@ var Resizable = (
59608
59642
  var parentSize = _this.getParentSize();
59609
59643
  var value2 = Number(_this.state[key].toString().replace("px", ""));
59610
59644
  var percent = value2 / parentSize[key] * 100;
59611
- return percent + "%";
59645
+ return "".concat(percent, "%");
59612
59646
  }
59613
59647
  return getStringSize(_this.state[key]);
59614
59648
  };
@@ -59905,28 +59939,29 @@ var Resizable = (
59905
59939
  width: newWidth - original.width,
59906
59940
  height: newHeight - original.height
59907
59941
  };
59942
+ this.delta = delta;
59908
59943
  if (width2 && typeof width2 === "string") {
59909
59944
  if (width2.endsWith("%")) {
59910
59945
  var percent = newWidth / parentSize.width * 100;
59911
- newWidth = percent + "%";
59946
+ newWidth = "".concat(percent, "%");
59912
59947
  } else if (width2.endsWith("vw")) {
59913
59948
  var vw = newWidth / this.window.innerWidth * 100;
59914
- newWidth = vw + "vw";
59949
+ newWidth = "".concat(vw, "vw");
59915
59950
  } else if (width2.endsWith("vh")) {
59916
59951
  var vh = newWidth / this.window.innerHeight * 100;
59917
- newWidth = vh + "vh";
59952
+ newWidth = "".concat(vh, "vh");
59918
59953
  }
59919
59954
  }
59920
59955
  if (height2 && typeof height2 === "string") {
59921
59956
  if (height2.endsWith("%")) {
59922
59957
  var percent = newHeight / parentSize.height * 100;
59923
- newHeight = percent + "%";
59958
+ newHeight = "".concat(percent, "%");
59924
59959
  } else if (height2.endsWith("vw")) {
59925
59960
  var vw = newHeight / this.window.innerWidth * 100;
59926
- newHeight = vw + "vw";
59961
+ newHeight = "".concat(vw, "vw");
59927
59962
  } else if (height2.endsWith("vh")) {
59928
59963
  var vh = newHeight / this.window.innerHeight * 100;
59929
- newHeight = vh + "vh";
59964
+ newHeight = "".concat(vh, "vh");
59930
59965
  }
59931
59966
  }
59932
59967
  var newState = {
@@ -59955,16 +59990,13 @@ var Resizable = (
59955
59990
  };
59956
59991
  Resizable2.prototype.onMouseUp = function(event) {
59957
59992
  var _a2, _b2;
59958
- var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction, original = _c2.original;
59993
+ var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction;
59994
+ _c2.original;
59959
59995
  if (!isResizing || !this.resizable) {
59960
59996
  return;
59961
59997
  }
59962
- var delta = {
59963
- width: this.size.width - original.width,
59964
- height: this.size.height - original.height
59965
- };
59966
59998
  if (this.props.onResizeStop) {
59967
- this.props.onResizeStop(event, direction, this.resizable, delta);
59999
+ this.props.onResizeStop(event, direction, this.resizable, this.delta);
59968
60000
  }
59969
60001
  if (this.props.size) {
59970
60002
  this.setState({ width: (_a2 = this.props.size.width) !== null && _a2 !== void 0 ? _a2 : "auto", height: (_b2 = this.props.size.height) !== null && _b2 !== void 0 ? _b2 : "auto" });
@@ -59987,11 +60019,11 @@ var Resizable = (
59987
60019
  }
59988
60020
  var resizers = Object.keys(enable).map(function(dir) {
59989
60021
  if (enable[dir] !== false) {
59990
- return React$2.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null);
60022
+ return jsxRuntimeExports.jsx(Resizer, { direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir], children: handleComponent && handleComponent[dir] ? handleComponent[dir] : null }, dir);
59991
60023
  }
59992
60024
  return null;
59993
60025
  });
59994
- return React$2.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers);
60026
+ return jsxRuntimeExports.jsx("div", { className: handleWrapperClass, style: handleWrapperStyle, children: resizers });
59995
60027
  };
59996
60028
  Resizable2.prototype.render = function() {
59997
60029
  var _this = this;
@@ -60007,21 +60039,16 @@ var Resizable = (
60007
60039
  style2.flexBasis = this.state.flexBasis;
60008
60040
  }
60009
60041
  var Wrapper = this.props.as || "div";
60010
- return React$2.createElement(
60011
- Wrapper,
60012
- __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60013
- // `ref` is after `extendsProps` to ensure this one wins over a version
60014
- // passed in
60015
- ref: function(c) {
60016
- if (c) {
60017
- _this.resizable = c;
60018
- }
60042
+ return jsxRuntimeExports.jsxs(Wrapper, __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60043
+ // `ref` is after `extendsProps` to ensure this one wins over a version
60044
+ // passed in
60045
+ ref: function(c) {
60046
+ if (c) {
60047
+ _this.resizable = c;
60019
60048
  }
60020
- }),
60021
- this.state.isResizing && React$2.createElement("div", { style: this.state.backgroundStyle }),
60022
- this.props.children,
60023
- this.renderResizer()
60024
- );
60049
+ },
60050
+ children: [this.state.isResizing && jsxRuntimeExports.jsx("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
60051
+ }));
60025
60052
  };
60026
60053
  Resizable2.defaultProps = {
60027
60054
  as: "div",
@@ -60052,7 +60079,7 @@ var Resizable = (
60052
60079
  snapGap: 0
60053
60080
  };
60054
60081
  return Resizable2;
60055
- }(React$2.PureComponent)
60082
+ }(PureComponent)
60056
60083
  );
60057
60084
  /*! *****************************************************************************
60058
60085
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -60461,7 +60488,7 @@ var Rnd = (
60461
60488
  _a2.onDragStart;
60462
60489
  _a2.onDrag;
60463
60490
  _a2.onDragStop;
60464
- var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]);
60491
+ var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, dragPositionOffset = _a2.dragPositionOffset, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]);
60465
60492
  var defaultValue = this.props.default ? __assign({}, this.props.default) : void 0;
60466
60493
  delete resizableProps.default;
60467
60494
  var cursorStyle = disableDragging || dragHandleClassName ? { cursor: "auto" } : { cursor: "move" };
@@ -60501,7 +60528,8 @@ var Rnd = (
60501
60528
  cancel,
60502
60529
  scale,
60503
60530
  allowAnyClick,
60504
- nodeRef: this.resizableElement
60531
+ nodeRef: this.resizableElement,
60532
+ positionOffset: dragPositionOffset
60505
60533
  },
60506
60534
  createElement$1(Resizable, __assign({}, resizableProps, { ref: function(c) {
60507
60535
  if (!c)
@@ -61804,42 +61832,42 @@ const UIThemeProvider = ({
61804
61832
  /* @__PURE__ */ jsx$1(CssBaseline, {}),
61805
61833
  children2
61806
61834
  ] });
61807
- const reactElementSchema = z.object({
61808
- type: z.union([z.string(), z.function(), z.symbol(), z.object({}).passthrough()]),
61835
+ const reactElementSchema = objectType({
61836
+ type: unionType([stringType(), functionType(), symbolType(), objectType({}).passthrough()]),
61809
61837
  // Type can be a string or a function (JSXElementConstructor)
61810
- props: z.record(z.any()),
61838
+ props: recordType(anyType()),
61811
61839
  // Props is an object with any keys
61812
- key: z.union([z.string(), z.number(), z.null()]).optional()
61840
+ key: unionType([stringType(), numberType(), nullType()]).optional()
61813
61841
  // Key is either string, number, or null
61814
61842
  });
61815
- const allModalPropsSchema = z.object({
61816
- open: z.boolean(),
61843
+ const allModalPropsSchema = objectType({
61844
+ open: booleanType(),
61817
61845
  children: reactElementSchema,
61818
- className: z.string().optional(),
61819
- id: z.string().optional(),
61820
- role: z.string().optional(),
61821
- closeAfterTransition: z.boolean().optional(),
61822
- components: z.any().optional(),
61823
- componentsProps: z.any().optional(),
61824
- container: z.any().optional(),
61825
- disableAutoFocus: z.boolean().optional(),
61826
- disableEnforceFocus: z.boolean().optional(),
61827
- disableEscapeKeyDown: z.boolean().optional(),
61828
- disablePortal: z.boolean().optional(),
61829
- disableRestoreFocus: z.boolean().optional(),
61830
- disableScrollLock: z.boolean().optional(),
61831
- hideBackdrop: z.boolean().optional(),
61832
- keepMounted: z.boolean().optional(),
61833
- manager: z.any().optional(),
61834
- onBackdropClick: z.function().optional(),
61835
- onClose: z.function().optional(),
61836
- onTransitionEnter: z.function().optional(),
61837
- onTransitionExit: z.function().optional(),
61838
- sx: z.any().optional(),
61839
- BackdropComponent: z.any().optional(),
61840
- BackdropProps: z.any().optional(),
61841
- slots: z.any().optional(),
61842
- slotProps: z.any().optional()
61846
+ className: stringType().optional(),
61847
+ id: stringType().optional(),
61848
+ role: stringType().optional(),
61849
+ closeAfterTransition: booleanType().optional(),
61850
+ components: anyType().optional(),
61851
+ componentsProps: anyType().optional(),
61852
+ container: anyType().optional(),
61853
+ disableAutoFocus: booleanType().optional(),
61854
+ disableEnforceFocus: booleanType().optional(),
61855
+ disableEscapeKeyDown: booleanType().optional(),
61856
+ disablePortal: booleanType().optional(),
61857
+ disableRestoreFocus: booleanType().optional(),
61858
+ disableScrollLock: booleanType().optional(),
61859
+ hideBackdrop: booleanType().optional(),
61860
+ keepMounted: booleanType().optional(),
61861
+ manager: anyType().optional(),
61862
+ onBackdropClick: functionType().optional(),
61863
+ onClose: functionType().optional(),
61864
+ onTransitionEnter: functionType().optional(),
61865
+ onTransitionExit: functionType().optional(),
61866
+ sx: anyType().optional(),
61867
+ BackdropComponent: anyType().optional(),
61868
+ BackdropProps: anyType().optional(),
61869
+ slots: anyType().optional(),
61870
+ slotProps: anyType().optional()
61843
61871
  });
61844
61872
  const modalPropsSchema = allModalPropsSchema.omit({
61845
61873
  slots: true,
@@ -69239,7 +69267,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
69239
69267
  if (!t3) continue;
69240
69268
  S3 = y4.imageName, e3.iconsInText = e3.iconsInText || true, A4 = t3.paddedRect;
69241
69269
  const r5 = t3.displaySize;
69242
- y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -3, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69270
+ y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -su, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69243
69271
  const n4 = I2 ? r5[0] * y4.scale - Vl * a4 : r5[1] * y4.scale - Vl * a4;
69244
69272
  n4 > 0 && n4 > _5 && (_5 = n4);
69245
69273
  } else {
@@ -70274,7 +70302,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
70274
70302
  return n2;
70275
70303
  }
70276
70304
  function Fc(t3, e2, r3) {
70277
- const n2 = [{ fixed: -1, stretch: 0 }];
70305
+ const n2 = [{ fixed: -Pc, stretch: 0 }];
70278
70306
  for (const [e3, r4] of t3) {
70279
70307
  const t4 = n2[n2.length - 1];
70280
70308
  n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch }), n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch + (r4 - e3) });
@@ -72458,7 +72486,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
72458
72486
  for (let h2 = i2; h2 < i2 + a2; h2++) I(t3, h2 * o3 + e2, 1, s3, r3, n2, l2);
72459
72487
  }
72460
72488
  function I(t3, e2, i2, s3, a2, o3, r3) {
72461
- o3[0] = 0, r3[0] = -1e20, r3[1] = w2, a2[0] = t3[e2];
72489
+ o3[0] = 0, r3[0] = -w2, r3[1] = w2, a2[0] = t3[e2];
72462
72490
  for (let n2 = 1, l2 = 0, h2 = 0; n2 < s3; n2++) {
72463
72491
  a2[n2] = t3[e2 + n2 * i2];
72464
72492
  const s4 = n2 * n2;
@@ -78777,7 +78805,7 @@ uniform ${i3} ${s4} u_${a3};
78777
78805
  if (this._popup && (this._popup.remove(), this._popup = null, this._element.removeEventListener("keypress", this._onKeyPress), this._originalTabIndex || this._element.removeAttribute("tabindex")), t3) {
78778
78806
  if (!("offset" in t3.options)) {
78779
78807
  const e2 = 38.1, i2 = 13.5, s3 = Math.abs(i2) / Math.SQRT2;
78780
- t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -38.1], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-13.5, -1 * (e2 - i2)] } : this._offset;
78808
+ t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -e2], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-i2, -1 * (e2 - i2)] } : this._offset;
78781
78809
  }
78782
78810
  this._popup = t3, this._lngLat && this._popup.setLngLat(this._lngLat), this._originalTabIndex = this._element.getAttribute("tabindex"), this._originalTabIndex || this._element.setAttribute("tabindex", "0"), this._element.addEventListener("keypress", this._onKeyPress);
78783
78811
  }
@@ -80183,10 +80211,10 @@ const DocumentMarker = ({
80183
80211
  height: "28px"
80184
80212
  }, children: faIcon ? /* @__PURE__ */ jsx$1("i", { "data-icon": faIcon, className: classNames(faIcon, "px-1") }) : /* @__PURE__ */ jsx$1("p", { className: "p-1 font-body", children: labelCharacters }) }, marker.uri) });
80185
80213
  };
80186
- z.object({
80187
- label: z.string(),
80188
- uri: z.string(),
80189
- image: z.string()
80214
+ objectType({
80215
+ label: stringType(),
80216
+ uri: stringType(),
80217
+ image: stringType()
80190
80218
  });
80191
80219
  const useStyleSelector = (initialMapConfig) => {
80192
80220
  const [selected, setSelected] = useState(null);
@@ -80493,7 +80521,8 @@ const AuthModal = ({
80493
80521
  m: 2,
80494
80522
  p: 2
80495
80523
  }, open: isOpen, children: /* @__PURE__ */ jsxs(FlexBox, { sx: {
80496
- p: 2
80524
+ p: 2,
80525
+ overflowY: "auto"
80497
80526
  }, children: [
80498
80527
  /* @__PURE__ */ jsxs(H3, { children: [
80499
80528
  /* @__PURE__ */ jsx$1("i", { className: "fa-regular fa-circle-exclamation" }),
@@ -82904,8 +82933,7 @@ function withSessionHandling(instance, {
82904
82933
  if (((_a2 = err.response) == null ? void 0 : _a2.status) === 401) {
82905
82934
  if (queryClient2) {
82906
82935
  keysToInvalidate.forEach((key) => queryClient2.invalidateQueries({
82907
- queryKey: key,
82908
- exact: true
82936
+ queryKey: key
82909
82937
  }));
82910
82938
  }
82911
82939
  broadcastChannel == null ? void 0 : broadcastChannel.postMessage("unauthorized");
@@ -82920,13 +82948,17 @@ const createApi = (baseURL) => {
82920
82948
  const instance = axios.create({
82921
82949
  baseURL
82922
82950
  });
82923
- return {
82951
+ const api2 = {
82924
82952
  instance,
82925
- withSessionHandling: (config2) => withSessionHandling(instance, config2),
82953
+ withSessionHandling: (config2) => {
82954
+ withSessionHandling(instance, config2);
82955
+ return api2;
82956
+ },
82926
82957
  build: () => ({
82927
82958
  instance
82928
82959
  })
82929
82960
  };
82961
+ return api2;
82930
82962
  };
82931
82963
  const base64Codec = {
82932
82964
  param: "safeB64",
@@ -82956,7 +82988,7 @@ const getCodec = (mode) => {
82956
82988
  return uriComponentCodec;
82957
82989
  }
82958
82990
  };
82959
- const ENCODE_SEARCH_PARAMS_MODES_Schema = z.union([z.literal("as base64"), z.literal("as uri component")]);
82991
+ const ENCODE_SEARCH_PARAMS_MODES_Schema = unionType([literalType("as base64"), literalType("as uri component")]);
82960
82992
  /**
82961
82993
  * @remix-run/router v1.23.0
82962
82994
  *
@@ -83203,7 +83235,7 @@ new Set(validMutationMethodsArr);
83203
83235
  const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
83204
83236
  new Set(validRequestMethodsArr);
83205
83237
  /**
83206
- * React Router v6.30.0
83238
+ * React Router v6.30.1
83207
83239
  *
83208
83240
  * Copyright (c) Remix Software Inc.
83209
83241
  *
@@ -83441,7 +83473,7 @@ function useNavigateStable() {
83441
83473
  new Promise(() => {
83442
83474
  });
83443
83475
  /**
83444
- * React Router DOM v6.30.0
83476
+ * React Router DOM v6.30.1
83445
83477
  *
83446
83478
  * Copyright (c) Remix Software Inc.
83447
83479
  *
@@ -84070,15 +84102,15 @@ const autoLoggedOut = {
84070
84102
  set,
84071
84103
  remove
84072
84104
  };
84073
- const WipeOnMessageConfigSchema = z.object({
84074
- register: z.object({
84075
- scriptURL: z.string(),
84105
+ const WipeOnMessageConfigSchema = objectType({
84106
+ register: objectType({
84107
+ scriptURL: stringType(),
84076
84108
  // valid string
84077
- scope: z.string()
84109
+ scope: stringType()
84078
84110
  // service-worker scope
84079
84111
  }),
84080
- fetchStatus: z.function().args().returns(z.promise(z.object({
84081
- status: z.number()
84112
+ fetchStatus: functionType().args().returns(promiseType(objectType({
84113
+ status: numberType()
84082
84114
  })))
84083
84115
  });
84084
84116
  const setupWipeOnMessage = async (triggerWipe, checkUser, config2) => {
@@ -84139,15 +84171,15 @@ const setupCheckUserPolling = async (checkUser, checkUserPollTime) => {
84139
84171
  const pollInterval = setInterval(() => checkUser("poll"), checkUserPollTime);
84140
84172
  window.addEventListener("beforeunload", () => clearInterval(pollInterval));
84141
84173
  };
84142
- const WipeConfigSchema = z.object({
84143
- onAuthErrorOnLoad: z.function(),
84144
- autoLogoutURL: z.preprocess((val) => typeof val === "string" ? new URL(val) : val, z.instanceof(URL)).optional(),
84174
+ const WipeConfigSchema = objectType({
84175
+ onAuthErrorOnLoad: functionType(),
84176
+ autoLogoutURL: preprocessType((val) => typeof val === "string" ? new URL(val) : val, instanceOfType(URL)).optional(),
84145
84177
  wipeOnMessage: WipeOnMessageConfigSchema.optional(),
84146
- isCheckOnPageVisibility: z.boolean().optional(),
84147
- isClickGating: z.boolean().optional(),
84148
- checkUserPollTime: z.number().int().positive().optional(),
84149
- verbose: z.boolean().optional(),
84150
- fetchCurrentUser: z.function().args().returns(z.promise(z.union([z.string(), z.void()])))
84178
+ isCheckOnPageVisibility: booleanType().optional(),
84179
+ isClickGating: booleanType().optional(),
84180
+ checkUserPollTime: numberType().int().positive().optional(),
84181
+ verbose: booleanType().optional(),
84182
+ fetchCurrentUser: functionType().args().returns(promiseType(unionType([stringType(), voidType()])))
84151
84183
  }).optional();
84152
84184
  let isSetup = false;
84153
84185
  const setupWipe = async (config2) => {