typeson-registry 7.2.1 → 9.0.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.
Files changed (189) hide show
  1. package/README.md +7 -2
  2. package/dist/index.d.ts +4 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +102 -37
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist/{index.umd.js → index.umd.cjs} +443 -356
  9. package/dist/index.umd.cjs.map +1 -0
  10. package/dist/index.umd.min.cjs +2 -0
  11. package/dist/index.umd.min.cjs.map +1 -0
  12. package/dist/presets/{array-nonindex-keys.umd.js → array-nonindex-keys.umd.cjs} +2 -2
  13. package/dist/presets/array-nonindex-keys.umd.cjs.map +1 -0
  14. package/dist/presets/builtin.umd.cjs +2 -0
  15. package/dist/presets/builtin.umd.cjs.map +1 -0
  16. package/dist/presets/postmessage.umd.cjs +2 -0
  17. package/dist/presets/postmessage.umd.cjs.map +1 -0
  18. package/dist/presets/socketio.umd.cjs +2 -0
  19. package/dist/presets/socketio.umd.cjs.map +1 -0
  20. package/dist/presets/{sparse-undefined.umd.js → sparse-undefined.umd.cjs} +2 -2
  21. package/dist/presets/sparse-undefined.umd.cjs.map +1 -0
  22. package/dist/presets/special-numbers.umd.cjs +2 -0
  23. package/dist/presets/special-numbers.umd.cjs.map +1 -0
  24. package/dist/presets/structured-cloning-throwing.d.ts.map +1 -1
  25. package/dist/presets/structured-cloning-throwing.umd.cjs +2 -0
  26. package/dist/presets/structured-cloning-throwing.umd.cjs.map +1 -0
  27. package/dist/presets/structured-cloning.d.ts.map +1 -1
  28. package/dist/presets/structured-cloning.umd.cjs +2 -0
  29. package/dist/presets/structured-cloning.umd.cjs.map +1 -0
  30. package/dist/presets/undef.umd.cjs +2 -0
  31. package/dist/presets/undef.umd.cjs.map +1 -0
  32. package/dist/presets/universal.umd.cjs +2 -0
  33. package/dist/presets/universal.umd.cjs.map +1 -0
  34. package/dist/types/arraybuffer.umd.cjs +2 -0
  35. package/dist/types/arraybuffer.umd.cjs.map +1 -0
  36. package/dist/types/bigint-object.d.ts.map +1 -1
  37. package/dist/types/bigint-object.umd.cjs +2 -0
  38. package/dist/types/bigint-object.umd.cjs.map +1 -0
  39. package/dist/types/bigint.d.ts.map +1 -1
  40. package/dist/types/{bigint.umd.js → bigint.umd.cjs} +1 -1
  41. package/dist/types/bigint.umd.cjs.map +1 -0
  42. package/dist/types/blob.umd.cjs +2 -0
  43. package/dist/types/blob.umd.cjs.map +1 -0
  44. package/dist/types/{cloneable.umd.js → cloneable.umd.cjs} +2 -2
  45. package/dist/types/cloneable.umd.cjs.map +1 -0
  46. package/dist/types/cryptokey.umd.cjs +2 -0
  47. package/dist/types/cryptokey.umd.cjs.map +1 -0
  48. package/dist/types/dataview.umd.cjs +2 -0
  49. package/dist/types/dataview.umd.cjs.map +1 -0
  50. package/dist/types/date.umd.cjs +2 -0
  51. package/dist/types/date.umd.cjs.map +1 -0
  52. package/dist/types/domexception.d.ts +6 -0
  53. package/dist/types/domexception.d.ts.map +1 -0
  54. package/dist/types/domexception.umd.cjs +2 -0
  55. package/dist/types/domexception.umd.cjs.map +1 -0
  56. package/dist/types/dompoint.d.ts +6 -0
  57. package/dist/types/dompoint.d.ts.map +1 -0
  58. package/dist/types/dompoint.umd.cjs +2 -0
  59. package/dist/types/dompoint.umd.cjs.map +1 -0
  60. package/dist/types/domrect.d.ts +6 -0
  61. package/dist/types/domrect.d.ts.map +1 -0
  62. package/dist/types/domrect.umd.cjs +2 -0
  63. package/dist/types/domrect.umd.cjs.map +1 -0
  64. package/dist/types/{nonbuiltin-ignore.umd.js → error.umd.cjs} +2 -2
  65. package/dist/types/error.umd.cjs.map +1 -0
  66. package/dist/types/errors.d.ts.map +1 -1
  67. package/dist/types/errors.umd.cjs +2 -0
  68. package/dist/types/errors.umd.cjs.map +1 -0
  69. package/dist/types/file.umd.cjs +2 -0
  70. package/dist/types/file.umd.cjs.map +1 -0
  71. package/dist/types/filelist.umd.cjs +2 -0
  72. package/dist/types/filelist.umd.cjs.map +1 -0
  73. package/dist/types/imagebitmap.umd.cjs +2 -0
  74. package/dist/types/imagebitmap.umd.cjs.map +1 -0
  75. package/dist/types/imagedata.umd.cjs +2 -0
  76. package/dist/types/imagedata.umd.cjs.map +1 -0
  77. package/dist/types/{infinity.umd.js → infinity.umd.cjs} +2 -2
  78. package/dist/types/infinity.umd.cjs.map +1 -0
  79. package/dist/types/intl-types.umd.cjs +2 -0
  80. package/dist/types/intl-types.umd.cjs.map +1 -0
  81. package/dist/types/map.umd.cjs +2 -0
  82. package/dist/types/map.umd.cjs.map +1 -0
  83. package/dist/types/{nan.umd.js → nan.umd.cjs} +2 -2
  84. package/dist/types/nan.umd.cjs.map +1 -0
  85. package/dist/types/{negative-infinity.umd.js → negative-infinity.umd.cjs} +2 -2
  86. package/dist/types/negative-infinity.umd.cjs.map +1 -0
  87. package/dist/types/{negative-zero.umd.js → negative-zero.umd.cjs} +2 -2
  88. package/dist/types/negative-zero.umd.cjs.map +1 -0
  89. package/dist/types/nonbuiltin-ignore.umd.cjs +2 -0
  90. package/dist/types/nonbuiltin-ignore.umd.cjs.map +1 -0
  91. package/dist/types/primitive-objects.umd.cjs +2 -0
  92. package/dist/types/primitive-objects.umd.cjs.map +1 -0
  93. package/dist/types/regexp.umd.cjs +2 -0
  94. package/dist/types/regexp.umd.cjs.map +1 -0
  95. package/dist/types/{resurrectable.umd.js → resurrectable.umd.cjs} +2 -2
  96. package/dist/types/resurrectable.umd.cjs.map +1 -0
  97. package/dist/types/set.umd.cjs +2 -0
  98. package/dist/types/set.umd.cjs.map +1 -0
  99. package/dist/types/typed-arrays-socketio.umd.cjs +2 -0
  100. package/dist/types/typed-arrays-socketio.umd.cjs.map +1 -0
  101. package/dist/types/typed-arrays.umd.cjs +2 -0
  102. package/dist/types/typed-arrays.umd.cjs.map +1 -0
  103. package/dist/types/{error.umd.js → undef.umd.cjs} +2 -2
  104. package/dist/types/undef.umd.cjs.map +1 -0
  105. package/dist/types/user-object.umd.cjs +2 -0
  106. package/dist/types/user-object.umd.cjs.map +1 -0
  107. package/dist/utils/generateUUID.d.ts.map +1 -1
  108. package/package.json +56 -54
  109. package/polyfills/createObjectURL.js +2 -2
  110. package/polyfills/createObjectURL.umd.cjs +2 -0
  111. package/polyfills/createObjectURL.umd.cjs.map +1 -0
  112. package/utils/generateUUID.js +5 -5
  113. package/utils/stringArrayBuffer.js +1 -1
  114. package/dist/index.umd.js.map +0 -1
  115. package/dist/index.umd.min.js +0 -2
  116. package/dist/index.umd.min.js.map +0 -1
  117. package/dist/polyfills/createObjectURL.umd.d.ts +0 -84
  118. package/dist/polyfills/createObjectURL.umd.d.ts.map +0 -1
  119. package/dist/presets/array-nonindex-keys.umd.js.map +0 -1
  120. package/dist/presets/builtin.umd.js +0 -2
  121. package/dist/presets/builtin.umd.js.map +0 -1
  122. package/dist/presets/postmessage.umd.js +0 -2
  123. package/dist/presets/postmessage.umd.js.map +0 -1
  124. package/dist/presets/socketio.umd.js +0 -2
  125. package/dist/presets/socketio.umd.js.map +0 -1
  126. package/dist/presets/sparse-undefined.umd.js.map +0 -1
  127. package/dist/presets/special-numbers.umd.js +0 -2
  128. package/dist/presets/special-numbers.umd.js.map +0 -1
  129. package/dist/presets/structured-cloning-throwing.umd.js +0 -2
  130. package/dist/presets/structured-cloning-throwing.umd.js.map +0 -1
  131. package/dist/presets/structured-cloning.umd.js +0 -2
  132. package/dist/presets/structured-cloning.umd.js.map +0 -1
  133. package/dist/presets/undef.umd.js +0 -2
  134. package/dist/presets/undef.umd.js.map +0 -1
  135. package/dist/presets/universal.umd.js +0 -2
  136. package/dist/presets/universal.umd.js.map +0 -1
  137. package/dist/types/arraybuffer.umd.js +0 -2
  138. package/dist/types/arraybuffer.umd.js.map +0 -1
  139. package/dist/types/bigint-object.umd.js +0 -2
  140. package/dist/types/bigint-object.umd.js.map +0 -1
  141. package/dist/types/bigint.umd.js.map +0 -1
  142. package/dist/types/blob.umd.js +0 -2
  143. package/dist/types/blob.umd.js.map +0 -1
  144. package/dist/types/cloneable.umd.js.map +0 -1
  145. package/dist/types/cryptokey.umd.js +0 -2
  146. package/dist/types/cryptokey.umd.js.map +0 -1
  147. package/dist/types/dataview.umd.js +0 -2
  148. package/dist/types/dataview.umd.js.map +0 -1
  149. package/dist/types/date.umd.js +0 -2
  150. package/dist/types/date.umd.js.map +0 -1
  151. package/dist/types/error.umd.js.map +0 -1
  152. package/dist/types/errors.umd.js +0 -2
  153. package/dist/types/errors.umd.js.map +0 -1
  154. package/dist/types/file.umd.js +0 -2
  155. package/dist/types/file.umd.js.map +0 -1
  156. package/dist/types/filelist.umd.js +0 -2
  157. package/dist/types/filelist.umd.js.map +0 -1
  158. package/dist/types/imagebitmap.umd.js +0 -2
  159. package/dist/types/imagebitmap.umd.js.map +0 -1
  160. package/dist/types/imagedata.umd.js +0 -2
  161. package/dist/types/imagedata.umd.js.map +0 -1
  162. package/dist/types/infinity.umd.js.map +0 -1
  163. package/dist/types/intl-types.umd.js +0 -2
  164. package/dist/types/intl-types.umd.js.map +0 -1
  165. package/dist/types/map.umd.js +0 -2
  166. package/dist/types/map.umd.js.map +0 -1
  167. package/dist/types/nan.umd.js.map +0 -1
  168. package/dist/types/negative-infinity.umd.js.map +0 -1
  169. package/dist/types/negative-zero.umd.js.map +0 -1
  170. package/dist/types/nonbuiltin-ignore.umd.js.map +0 -1
  171. package/dist/types/primitive-objects.umd.js +0 -2
  172. package/dist/types/primitive-objects.umd.js.map +0 -1
  173. package/dist/types/regexp.umd.js +0 -2
  174. package/dist/types/regexp.umd.js.map +0 -1
  175. package/dist/types/resurrectable.umd.js.map +0 -1
  176. package/dist/types/set.umd.js +0 -2
  177. package/dist/types/set.umd.js.map +0 -1
  178. package/dist/types/typed-arrays-socketio.umd.js +0 -2
  179. package/dist/types/typed-arrays-socketio.umd.js.map +0 -1
  180. package/dist/types/typed-arrays.umd.js +0 -2
  181. package/dist/types/typed-arrays.umd.js.map +0 -1
  182. package/dist/types/undef.umd.js +0 -2
  183. package/dist/types/undef.umd.js.map +0 -1
  184. package/dist/types/user-object.umd.js +0 -2
  185. package/dist/types/user-object.umd.js.map +0 -1
  186. package/dist/types/zero.umd.js +0 -2
  187. package/dist/types/zero.umd.js.map +0 -1
  188. package/polyfills/createObjectURL.umd.js +0 -2
  189. package/polyfills/createObjectURL.umd.js.map +0 -1
@@ -4,363 +4,363 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TypesonNamespace = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- function _iterableToArrayLimit(arr, i) {
8
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
9
- if (null != _i) {
10
- var _s,
11
- _e,
12
- _x,
13
- _r,
14
- _arr = [],
15
- _n = !0,
16
- _d = !1;
7
+ function _iterableToArrayLimit(r, l) {
8
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
+ if (null != t) {
10
+ var e,
11
+ n,
12
+ i,
13
+ u,
14
+ a = [],
15
+ f = !0,
16
+ o = !1;
17
17
  try {
18
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
19
- if (Object(_i) !== _i) return;
20
- _n = !1;
21
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
22
- } catch (err) {
23
- _d = !0, _e = err;
18
+ if (i = (t = t.call(r)).next, 0 === l) {
19
+ if (Object(t) !== t) return;
20
+ f = !1;
21
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
22
+ } catch (r) {
23
+ o = !0, n = r;
24
24
  } finally {
25
25
  try {
26
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
26
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
27
27
  } finally {
28
- if (_d) throw _e;
28
+ if (o) throw n;
29
29
  }
30
30
  }
31
- return _arr;
31
+ return a;
32
32
  }
33
33
  }
34
- function ownKeys$1(object, enumerableOnly) {
35
- var keys = Object.keys(object);
34
+ function ownKeys$1(e, r) {
35
+ var t = Object.keys(e);
36
36
  if (Object.getOwnPropertySymbols) {
37
- var symbols = Object.getOwnPropertySymbols(object);
38
- enumerableOnly && (symbols = symbols.filter(function (sym) {
39
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
40
- })), keys.push.apply(keys, symbols);
37
+ var o = Object.getOwnPropertySymbols(e);
38
+ r && (o = o.filter(function (r) {
39
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
40
+ })), t.push.apply(t, o);
41
41
  }
42
- return keys;
42
+ return t;
43
43
  }
44
- function _objectSpread2$1(target) {
45
- for (var i = 1; i < arguments.length; i++) {
46
- var source = null != arguments[i] ? arguments[i] : {};
47
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
48
- _defineProperty$1(target, key, source[key]);
49
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
50
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44
+ function _objectSpread2$1(e) {
45
+ for (var r = 1; r < arguments.length; r++) {
46
+ var t = null != arguments[r] ? arguments[r] : {};
47
+ r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
48
+ _defineProperty$1(e, r, t[r]);
49
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
50
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
51
51
  });
52
52
  }
53
- return target;
53
+ return e;
54
54
  }
55
55
  function _regeneratorRuntime() {
56
56
  _regeneratorRuntime = function () {
57
- return exports;
57
+ return e;
58
58
  };
59
- var exports = {},
60
- Op = Object.prototype,
61
- hasOwn = Op.hasOwnProperty,
62
- defineProperty = Object.defineProperty || function (obj, key, desc) {
63
- obj[key] = desc.value;
64
- },
65
- $Symbol = "function" == typeof Symbol ? Symbol : {},
66
- iteratorSymbol = $Symbol.iterator || "@@iterator",
67
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
68
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
69
- function define(obj, key, value) {
70
- return Object.defineProperty(obj, key, {
71
- value: value,
59
+ var t,
60
+ e = {},
61
+ r = Object.prototype,
62
+ n = r.hasOwnProperty,
63
+ o = Object.defineProperty || function (t, e, r) {
64
+ t[e] = r.value;
65
+ },
66
+ i = "function" == typeof Symbol ? Symbol : {},
67
+ a = i.iterator || "@@iterator",
68
+ c = i.asyncIterator || "@@asyncIterator",
69
+ u = i.toStringTag || "@@toStringTag";
70
+ function define(t, e, r) {
71
+ return Object.defineProperty(t, e, {
72
+ value: r,
72
73
  enumerable: !0,
73
74
  configurable: !0,
74
75
  writable: !0
75
- }), obj[key];
76
+ }), t[e];
76
77
  }
77
78
  try {
78
79
  define({}, "");
79
- } catch (err) {
80
- define = function (obj, key, value) {
81
- return obj[key] = value;
80
+ } catch (t) {
81
+ define = function (t, e, r) {
82
+ return t[e] = r;
82
83
  };
83
84
  }
84
- function wrap(innerFn, outerFn, self, tryLocsList) {
85
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
86
- generator = Object.create(protoGenerator.prototype),
87
- context = new Context(tryLocsList || []);
88
- return defineProperty(generator, "_invoke", {
89
- value: makeInvokeMethod(innerFn, self, context)
90
- }), generator;
85
+ function wrap(t, e, r, n) {
86
+ var i = e && e.prototype instanceof Generator ? e : Generator,
87
+ a = Object.create(i.prototype),
88
+ c = new Context(n || []);
89
+ return o(a, "_invoke", {
90
+ value: makeInvokeMethod(t, r, c)
91
+ }), a;
91
92
  }
92
- function tryCatch(fn, obj, arg) {
93
+ function tryCatch(t, e, r) {
93
94
  try {
94
95
  return {
95
96
  type: "normal",
96
- arg: fn.call(obj, arg)
97
+ arg: t.call(e, r)
97
98
  };
98
- } catch (err) {
99
+ } catch (t) {
99
100
  return {
100
101
  type: "throw",
101
- arg: err
102
+ arg: t
102
103
  };
103
104
  }
104
105
  }
105
- exports.wrap = wrap;
106
- var ContinueSentinel = {};
106
+ e.wrap = wrap;
107
+ var h = "suspendedStart",
108
+ l = "suspendedYield",
109
+ f = "executing",
110
+ s = "completed",
111
+ y = {};
107
112
  function Generator() {}
108
113
  function GeneratorFunction() {}
109
114
  function GeneratorFunctionPrototype() {}
110
- var IteratorPrototype = {};
111
- define(IteratorPrototype, iteratorSymbol, function () {
115
+ var p = {};
116
+ define(p, a, function () {
112
117
  return this;
113
118
  });
114
- var getProto = Object.getPrototypeOf,
115
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
116
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
117
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
118
- function defineIteratorMethods(prototype) {
119
- ["next", "throw", "return"].forEach(function (method) {
120
- define(prototype, method, function (arg) {
121
- return this._invoke(method, arg);
119
+ var d = Object.getPrototypeOf,
120
+ v = d && d(d(values([])));
121
+ v && v !== r && n.call(v, a) && (p = v);
122
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
123
+ function defineIteratorMethods(t) {
124
+ ["next", "throw", "return"].forEach(function (e) {
125
+ define(t, e, function (t) {
126
+ return this._invoke(e, t);
122
127
  });
123
128
  });
124
129
  }
125
- function AsyncIterator(generator, PromiseImpl) {
126
- function invoke(method, arg, resolve, reject) {
127
- var record = tryCatch(generator[method], generator, arg);
128
- if ("throw" !== record.type) {
129
- var result = record.arg,
130
- value = result.value;
131
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
132
- invoke("next", value, resolve, reject);
133
- }, function (err) {
134
- invoke("throw", err, resolve, reject);
135
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
136
- result.value = unwrapped, resolve(result);
137
- }, function (error) {
138
- return invoke("throw", error, resolve, reject);
130
+ function AsyncIterator(t, e) {
131
+ function invoke(r, o, i, a) {
132
+ var c = tryCatch(t[r], t, o);
133
+ if ("throw" !== c.type) {
134
+ var u = c.arg,
135
+ h = u.value;
136
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
137
+ invoke("next", t, i, a);
138
+ }, function (t) {
139
+ invoke("throw", t, i, a);
140
+ }) : e.resolve(h).then(function (t) {
141
+ u.value = t, i(u);
142
+ }, function (t) {
143
+ return invoke("throw", t, i, a);
139
144
  });
140
145
  }
141
- reject(record.arg);
146
+ a(c.arg);
142
147
  }
143
- var previousPromise;
144
- defineProperty(this, "_invoke", {
145
- value: function (method, arg) {
148
+ var r;
149
+ o(this, "_invoke", {
150
+ value: function (t, n) {
146
151
  function callInvokeWithMethodAndArg() {
147
- return new PromiseImpl(function (resolve, reject) {
148
- invoke(method, arg, resolve, reject);
152
+ return new e(function (e, r) {
153
+ invoke(t, n, e, r);
149
154
  });
150
155
  }
151
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
156
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
152
157
  }
153
158
  });
154
159
  }
155
- function makeInvokeMethod(innerFn, self, context) {
156
- var state = "suspendedStart";
157
- return function (method, arg) {
158
- if ("executing" === state) throw new Error("Generator is already running");
159
- if ("completed" === state) {
160
- if ("throw" === method) throw arg;
161
- return doneResult();
160
+ function makeInvokeMethod(e, r, n) {
161
+ var o = h;
162
+ return function (i, a) {
163
+ if (o === f) throw new Error("Generator is already running");
164
+ if (o === s) {
165
+ if ("throw" === i) throw a;
166
+ return {
167
+ value: t,
168
+ done: !0
169
+ };
162
170
  }
163
- for (context.method = method, context.arg = arg;;) {
164
- var delegate = context.delegate;
165
- if (delegate) {
166
- var delegateResult = maybeInvokeDelegate(delegate, context);
167
- if (delegateResult) {
168
- if (delegateResult === ContinueSentinel) continue;
169
- return delegateResult;
171
+ for (n.method = i, n.arg = a;;) {
172
+ var c = n.delegate;
173
+ if (c) {
174
+ var u = maybeInvokeDelegate(c, n);
175
+ if (u) {
176
+ if (u === y) continue;
177
+ return u;
170
178
  }
171
179
  }
172
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
173
- if ("suspendedStart" === state) throw state = "completed", context.arg;
174
- context.dispatchException(context.arg);
175
- } else "return" === context.method && context.abrupt("return", context.arg);
176
- state = "executing";
177
- var record = tryCatch(innerFn, self, context);
178
- if ("normal" === record.type) {
179
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
180
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
181
+ if (o === h) throw o = s, n.arg;
182
+ n.dispatchException(n.arg);
183
+ } else "return" === n.method && n.abrupt("return", n.arg);
184
+ o = f;
185
+ var p = tryCatch(e, r, n);
186
+ if ("normal" === p.type) {
187
+ if (o = n.done ? s : l, p.arg === y) continue;
180
188
  return {
181
- value: record.arg,
182
- done: context.done
189
+ value: p.arg,
190
+ done: n.done
183
191
  };
184
192
  }
185
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
193
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
186
194
  }
187
195
  };
188
196
  }
189
- function maybeInvokeDelegate(delegate, context) {
190
- var methodName = context.method,
191
- method = delegate.iterator[methodName];
192
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
193
- var record = tryCatch(method, delegate.iterator, context.arg);
194
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
195
- var info = record.arg;
196
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
197
- }
198
- function pushTryEntry(locs) {
199
- var entry = {
200
- tryLoc: locs[0]
197
+ function maybeInvokeDelegate(e, r) {
198
+ var n = r.method,
199
+ o = e.iterator[n];
200
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
201
+ var i = tryCatch(o, e.iterator, r.arg);
202
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
203
+ var a = i.arg;
204
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
205
+ }
206
+ function pushTryEntry(t) {
207
+ var e = {
208
+ tryLoc: t[0]
201
209
  };
202
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
210
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
203
211
  }
204
- function resetTryEntry(entry) {
205
- var record = entry.completion || {};
206
- record.type = "normal", delete record.arg, entry.completion = record;
212
+ function resetTryEntry(t) {
213
+ var e = t.completion || {};
214
+ e.type = "normal", delete e.arg, t.completion = e;
207
215
  }
208
- function Context(tryLocsList) {
216
+ function Context(t) {
209
217
  this.tryEntries = [{
210
218
  tryLoc: "root"
211
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
212
- }
213
- function values(iterable) {
214
- if (iterable) {
215
- var iteratorMethod = iterable[iteratorSymbol];
216
- if (iteratorMethod) return iteratorMethod.call(iterable);
217
- if ("function" == typeof iterable.next) return iterable;
218
- if (!isNaN(iterable.length)) {
219
- var i = -1,
220
- next = function next() {
221
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
222
- return next.value = undefined, next.done = !0, next;
219
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
220
+ }
221
+ function values(e) {
222
+ if (e || "" === e) {
223
+ var r = e[a];
224
+ if (r) return r.call(e);
225
+ if ("function" == typeof e.next) return e;
226
+ if (!isNaN(e.length)) {
227
+ var o = -1,
228
+ i = function next() {
229
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
230
+ return next.value = t, next.done = !0, next;
223
231
  };
224
- return next.next = next;
232
+ return i.next = i;
225
233
  }
226
234
  }
227
- return {
228
- next: doneResult
229
- };
235
+ throw new TypeError(typeof e + " is not iterable");
230
236
  }
231
- function doneResult() {
232
- return {
233
- value: undefined,
234
- done: !0
235
- };
236
- }
237
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
237
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
238
238
  value: GeneratorFunctionPrototype,
239
239
  configurable: !0
240
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
240
+ }), o(GeneratorFunctionPrototype, "constructor", {
241
241
  value: GeneratorFunction,
242
242
  configurable: !0
243
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
244
- var ctor = "function" == typeof genFun && genFun.constructor;
245
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
246
- }, exports.mark = function (genFun) {
247
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
248
- }, exports.awrap = function (arg) {
243
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
244
+ var e = "function" == typeof t && t.constructor;
245
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
246
+ }, e.mark = function (t) {
247
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
248
+ }, e.awrap = function (t) {
249
249
  return {
250
- __await: arg
250
+ __await: t
251
251
  };
252
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
252
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
253
253
  return this;
254
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
255
- void 0 === PromiseImpl && (PromiseImpl = Promise);
256
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
257
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
258
- return result.done ? result.value : iter.next();
254
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
255
+ void 0 === i && (i = Promise);
256
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
257
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
258
+ return t.done ? t.value : a.next();
259
259
  });
260
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
260
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
261
261
  return this;
262
- }), define(Gp, "toString", function () {
262
+ }), define(g, "toString", function () {
263
263
  return "[object Generator]";
264
- }), exports.keys = function (val) {
265
- var object = Object(val),
266
- keys = [];
267
- for (var key in object) keys.push(key);
268
- return keys.reverse(), function next() {
269
- for (; keys.length;) {
270
- var key = keys.pop();
271
- if (key in object) return next.value = key, next.done = !1, next;
264
+ }), e.keys = function (t) {
265
+ var e = Object(t),
266
+ r = [];
267
+ for (var n in e) r.push(n);
268
+ return r.reverse(), function next() {
269
+ for (; r.length;) {
270
+ var t = r.pop();
271
+ if (t in e) return next.value = t, next.done = !1, next;
272
272
  }
273
273
  return next.done = !0, next;
274
274
  };
275
- }, exports.values = values, Context.prototype = {
275
+ }, e.values = values, Context.prototype = {
276
276
  constructor: Context,
277
- reset: function (skipTempReset) {
278
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
277
+ reset: function (e) {
278
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
279
279
  },
280
280
  stop: function () {
281
281
  this.done = !0;
282
- var rootRecord = this.tryEntries[0].completion;
283
- if ("throw" === rootRecord.type) throw rootRecord.arg;
282
+ var t = this.tryEntries[0].completion;
283
+ if ("throw" === t.type) throw t.arg;
284
284
  return this.rval;
285
285
  },
286
- dispatchException: function (exception) {
287
- if (this.done) throw exception;
288
- var context = this;
289
- function handle(loc, caught) {
290
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
286
+ dispatchException: function (e) {
287
+ if (this.done) throw e;
288
+ var r = this;
289
+ function handle(n, o) {
290
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
291
291
  }
292
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
293
- var entry = this.tryEntries[i],
294
- record = entry.completion;
295
- if ("root" === entry.tryLoc) return handle("end");
296
- if (entry.tryLoc <= this.prev) {
297
- var hasCatch = hasOwn.call(entry, "catchLoc"),
298
- hasFinally = hasOwn.call(entry, "finallyLoc");
299
- if (hasCatch && hasFinally) {
300
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
301
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
302
- } else if (hasCatch) {
303
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
292
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
293
+ var i = this.tryEntries[o],
294
+ a = i.completion;
295
+ if ("root" === i.tryLoc) return handle("end");
296
+ if (i.tryLoc <= this.prev) {
297
+ var c = n.call(i, "catchLoc"),
298
+ u = n.call(i, "finallyLoc");
299
+ if (c && u) {
300
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
301
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
302
+ } else if (c) {
303
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
304
304
  } else {
305
- if (!hasFinally) throw new Error("try statement without catch or finally");
306
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
305
+ if (!u) throw new Error("try statement without catch or finally");
306
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
307
307
  }
308
308
  }
309
309
  }
310
310
  },
311
- abrupt: function (type, arg) {
312
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
313
- var entry = this.tryEntries[i];
314
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
315
- var finallyEntry = entry;
311
+ abrupt: function (t, e) {
312
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
313
+ var o = this.tryEntries[r];
314
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
315
+ var i = o;
316
316
  break;
317
317
  }
318
318
  }
319
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
320
- var record = finallyEntry ? finallyEntry.completion : {};
321
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
322
- },
323
- complete: function (record, afterLoc) {
324
- if ("throw" === record.type) throw record.arg;
325
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
326
- },
327
- finish: function (finallyLoc) {
328
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
329
- var entry = this.tryEntries[i];
330
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
319
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
320
+ var a = i ? i.completion : {};
321
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
322
+ },
323
+ complete: function (t, e) {
324
+ if ("throw" === t.type) throw t.arg;
325
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
326
+ },
327
+ finish: function (t) {
328
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
329
+ var r = this.tryEntries[e];
330
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
331
331
  }
332
332
  },
333
- catch: function (tryLoc) {
334
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
- var entry = this.tryEntries[i];
336
- if (entry.tryLoc === tryLoc) {
337
- var record = entry.completion;
338
- if ("throw" === record.type) {
339
- var thrown = record.arg;
340
- resetTryEntry(entry);
333
+ catch: function (t) {
334
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
+ var r = this.tryEntries[e];
336
+ if (r.tryLoc === t) {
337
+ var n = r.completion;
338
+ if ("throw" === n.type) {
339
+ var o = n.arg;
340
+ resetTryEntry(r);
341
341
  }
342
- return thrown;
342
+ return o;
343
343
  }
344
344
  }
345
345
  throw new Error("illegal catch attempt");
346
346
  },
347
- delegateYield: function (iterable, resultName, nextLoc) {
347
+ delegateYield: function (e, r, n) {
348
348
  return this.delegate = {
349
- iterator: values(iterable),
350
- resultName: resultName,
351
- nextLoc: nextLoc
352
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
349
+ iterator: values(e),
350
+ resultName: r,
351
+ nextLoc: n
352
+ }, "next" === this.method && (this.arg = t), y;
353
353
  }
354
- }, exports;
354
+ }, e;
355
355
  }
356
- function _typeof$1(obj) {
356
+ function _typeof$1(o) {
357
357
  "@babel/helpers - typeof";
358
358
 
359
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
360
- return typeof obj;
361
- } : function (obj) {
362
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
363
- }, _typeof$1(obj);
359
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
360
+ return typeof o;
361
+ } : function (o) {
362
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
363
+ }, _typeof$1(o);
364
364
  }
365
365
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
366
366
  try {
@@ -666,10 +666,10 @@
666
666
  return null !== e && "object" === _typeof(e);
667
667
  }
668
668
  function escapeKeyPathComponent(e) {
669
- return e.replace(/''/g, "''''").replace(/^$/, "''").replace(/~/g, "~0").replace(/\./g, "~1");
669
+ return e.replaceAll("''", "''''").replace(/^$/, "''").replaceAll("~", "~0").replaceAll(".", "~1");
670
670
  }
671
671
  function unescapeKeyPathComponent(e) {
672
- return e.replace(/~1/g, ".").replace(/~0/g, "~").replace(/^''$/, "").replace(/''''/g, "''");
672
+ return e.replaceAll("~1", ".").replaceAll("~0", "~").replace(/^''$/, "").replaceAll("''''", "''");
673
673
  }
674
674
  function getByKeyPath(e, t) {
675
675
  if ("" === t) return e;
@@ -791,22 +791,22 @@
791
791
  u = _objectSpread2(_objectSpread2({
792
792
  sync: !0
793
793
  }, this.options), c),
794
- y = u.sync,
795
- p = {},
796
- l = [],
794
+ l = u.sync,
795
+ y = {},
796
+ p = [],
797
797
  f = [],
798
798
  v = [],
799
799
  h = !("cyclic" in u) || u.cyclic,
800
800
  d = u.encapsulateObserver,
801
801
  b = function finish(e) {
802
- var t = Object.values(p);
802
+ var t = Object.values(y);
803
803
  if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
804
804
  if (t.length) {
805
805
  if (u.returnTypeNames) return _toConsumableArray(new Set(t));
806
- e && isPlainObject(e) && !o(e, "$types") ? e.$types = p : e = {
806
+ e && isPlainObject(e) && !o(e, "$types") ? e.$types = y : e = {
807
807
  $: e,
808
808
  $types: {
809
- $: p
809
+ $: y
810
810
  }
811
811
  };
812
812
  } else isObject(e) && o(e, "$types") && (e = {
@@ -826,23 +826,23 @@
826
826
  c = _slicedToArray(a[0], 7),
827
827
  s = c[0],
828
828
  u = c[2],
829
- y = c[3],
830
- p = c[4],
831
- l = c[5],
829
+ l = c[3],
830
+ y = c[4],
831
+ p = c[5],
832
832
  f = c[6],
833
- v = m(s, n, u, y, i, !0, f),
833
+ v = m(s, n, u, l, i, !0, f),
834
834
  h = hasConstructorOf(v, e);
835
835
  return function _invoke(e, t) {
836
836
  var r = e();
837
837
  return r && r.then ? r.then(t) : t(r);
838
838
  }(function () {
839
839
  if (s && h) return _await(v.p, function (e) {
840
- p[l] = e;
840
+ y[p] = e;
841
841
  var r = _(t, i);
842
842
  return o = !0, r;
843
843
  });
844
844
  }, function (e) {
845
- return o ? e : (s ? p[l] = v : t = h ? v.p : v, _(t, i));
845
+ return o ? e : (s ? y[p] = v : t = h ? v.p : v, _(t, i));
846
846
  });
847
847
  }))), function () {
848
848
  return t;
@@ -859,7 +859,7 @@
859
859
  e[t] = n[r];
860
860
  });
861
861
  },
862
- m = function _encapsulate(t, r, a, c, y, v, h) {
862
+ m = function _encapsulate(t, r, a, c, l, v, h) {
863
863
  var b,
864
864
  _ = {},
865
865
  m = _typeof(r),
@@ -871,32 +871,32 @@
871
871
  value: r,
872
872
  cyclic: a,
873
873
  stateObj: c,
874
- promisesData: y,
874
+ promisesData: l,
875
875
  resolvingTypesonPromise: v,
876
876
  awaitingTypesonPromise: hasConstructorOf(r, e)
877
877
  }, {
878
878
  type: i
879
879
  }));
880
880
  } : null;
881
- if (["string", "boolean", "number", "undefined"].includes(m)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (b = c.replaced ? r : j(t, r, c, y, !1, v, g)) !== r && (_ = {
881
+ if (["string", "boolean", "number", "undefined"].includes(m)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (b = c.replaced ? r : j(t, r, c, l, !1, v, g)) !== r && (_ = {
882
882
  replaced: b
883
883
  }) : b = r, g && g(), b;
884
884
  if (null === r) return g && g(), r;
885
885
  if (a && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
886
- var S = l.indexOf(r);
887
- if (!(S < 0)) return p[t] = "#", g && g({
886
+ var S = p.indexOf(r);
887
+ if (!(S < 0)) return y[t] = "#", g && g({
888
888
  cyclicKeypath: f[S]
889
889
  }), "#" + f[S];
890
- !0 === a && (l.push(r), f.push(t));
890
+ !0 === a && (p.push(r), f.push(t));
891
891
  }
892
892
  var P,
893
893
  T,
894
894
  w = isPlainObject(r),
895
895
  A = i$1(r),
896
- C = (w || A) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : j(t, r, c, y, w || A, null, g);
896
+ C = (w || A) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : j(t, r, c, l, w || A, null, g);
897
897
  if (C !== r ? (b = C, _ = {
898
898
  replaced: C
899
- }) : "" === t && hasConstructorOf(r, e) ? (y.push([t, r, a, c, void 0, void 0, c.type]), b = r) : A && "object" !== c.iterateIn || "array" === c.iterateIn ? (P = new Array(r.length), _ = {
899
+ }) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, a, c, void 0, void 0, c.type]), b = r) : A && "object" !== c.iterateIn || "array" === c.iterateIn ? (P = new Array(r.length), _ = {
900
900
  clone: P
901
901
  }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !w && "object" !== c.iterateIn ? b = r : (P = {}, c.addLength && (P.length = r.length), _ = {
902
902
  clone: P
@@ -909,8 +909,8 @@
909
909
  };
910
910
  O(c, i, function () {
911
911
  var o = t + (t ? "." : "") + escapeKeyPathComponent(n),
912
- i = _encapsulate(o, r[n], Boolean(a), c, y, v);
913
- hasConstructorOf(i, e) ? y.push([o, i, Boolean(a), c, P, n, c.type]) : void 0 !== i && (P[n] = i);
912
+ i = _encapsulate(o, r[n], Boolean(a), c, l, v);
913
+ hasConstructorOf(i, e) ? l.push([o, i, Boolean(a), c, P, n, c.type]) : void 0 !== i && (P[n] = i);
914
914
  });
915
915
  };
916
916
  for (var N in r) k(N);
@@ -923,8 +923,8 @@
923
923
  O(c, {
924
924
  ownKeys: !0
925
925
  }, function () {
926
- var t = _encapsulate(o, r[n], Boolean(a), c, y, v);
927
- hasConstructorOf(t, e) ? y.push([o, t, Boolean(a), c, P, n, c.type]) : void 0 !== t && (P[n] = t);
926
+ var t = _encapsulate(o, r[n], Boolean(a), c, l, v);
927
+ hasConstructorOf(t, e) ? l.push([o, t, Boolean(a), c, P, n, c.type]) : void 0 !== t && (P[n] = t);
928
928
  });
929
929
  }), g && g({
930
930
  endIterateOwn: !0,
@@ -937,8 +937,8 @@
937
937
  O(c, {
938
938
  ownKeys: !1
939
939
  }, function () {
940
- var t = _encapsulate(o, void 0, Boolean(a), c, y, v);
941
- hasConstructorOf(t, e) ? y.push([o, t, Boolean(a), c, P, n, c.type]) : void 0 !== t && (P[n] = t);
940
+ var t = _encapsulate(o, void 0, Boolean(a), c, l, v);
941
+ hasConstructorOf(t, e) ? l.push([o, t, Boolean(a), c, P, n, c.type]) : void 0 !== t && (P[n] = t);
942
942
  });
943
943
  }
944
944
  }, K = 0; K < I; K++) E(K);
@@ -951,38 +951,38 @@
951
951
  },
952
952
  j = function replace(e, t, r, n, o, i, a) {
953
953
  for (var c = o ? s.plainObjectReplacers : s.nonplainObjectReplacers, u = c.length; u--;) {
954
- var l = c[u];
955
- if (l.test(t, r)) {
956
- var f = l.type;
954
+ var p = c[u];
955
+ if (p.test(t, r)) {
956
+ var f = p.type;
957
957
  if (s.revivers[f]) {
958
- var v = p[e];
959
- p[e] = v ? [f].concat(v) : f;
958
+ var v = y[e];
959
+ y[e] = v ? [f].concat(v) : f;
960
960
  }
961
961
  if (Object.assign(r, {
962
962
  type: f,
963
963
  replaced: !0
964
- }), (y || !l.replaceAsync) && !l.replace) return a && a({
964
+ }), (l || !p.replaceAsync) && !p.replace) return a && a({
965
965
  typeDetected: !0
966
966
  }), m(e, t, h && "readonly", r, n, i, f);
967
967
  a && a({
968
968
  replacing: !0
969
969
  });
970
970
  var d = void 0;
971
- if (y || !l.replaceAsync) {
972
- if (void 0 === l.replace) throw new TypeError("Missing replacer");
973
- d = l.replace(t, r);
974
- } else d = l.replaceAsync(t, r);
971
+ if (l || !p.replaceAsync) {
972
+ if (void 0 === p.replace) throw new TypeError("Missing replacer");
973
+ d = p.replace(t, r);
974
+ } else d = p.replaceAsync(t, r);
975
975
  return m(e, d, h && "readonly", r, n, i, f);
976
976
  }
977
977
  }
978
978
  return t;
979
979
  },
980
980
  g = m("", t, h, null != r ? r : {}, v);
981
- if (v.length) return y && u.throwOnBadSyncType ? function () {
981
+ if (v.length) return l && u.throwOnBadSyncType ? function () {
982
982
  throw new TypeError("Sync method requested but async result obtained");
983
983
  }() : Promise.resolve(_(g, v)).then(b);
984
- if (!y && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
985
- return u.stringification && y ? [b(g)] : y ? b(g) : Promise.resolve(b(g));
984
+ if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
985
+ return u.stringification && l ? [b(g)] : l ? b(g) : Promise.resolve(b(g));
986
986
  }
987
987
  }, {
988
988
  key: "encapsulateSync",
@@ -1019,17 +1019,17 @@
1019
1019
  var u = t.$types;
1020
1020
  if (!0 === u) return finishRevival(t.$);
1021
1021
  if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
1022
- var y = [],
1023
- p = {},
1024
- l = !0;
1025
- u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, l = !1);
1022
+ var l = [],
1023
+ y = {},
1024
+ p = !0;
1025
+ u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, p = !1);
1026
1026
  var f = function executeReviver(e, t) {
1027
1027
  var r,
1028
1028
  n = _slicedToArray(null !== (r = o.revivers[e]) && void 0 !== r ? r : [], 1)[0];
1029
1029
  if (!n) throw new Error("Unregistered type: " + e);
1030
1030
  if (c && !("revive" in n)) return t;
1031
- if (!c && n.reviveAsync) return n.reviveAsync(t, p);
1032
- if (n.revive) return n.revive(t, p);
1031
+ if (!c && n.reviveAsync) return n.reviveAsync(t, y);
1032
+ if (n.revive) return n.revive(t, y);
1033
1033
  throw new Error("Missing reviver");
1034
1034
  },
1035
1035
  v = [];
@@ -1072,8 +1072,8 @@
1072
1072
  return hasConstructorOf(d, e) ? h = d.then(function () {
1073
1073
  return t;
1074
1074
  }) : (h = function _revive(t, r, o, a, c) {
1075
- if (!l || "$types" !== t) {
1076
- var p = u[t],
1075
+ if (!p || "$types" !== t) {
1076
+ var y = u[t],
1077
1077
  h = i$1(r);
1078
1078
  if (h || isPlainObject(r)) {
1079
1079
  var d = h ? new Array(r.length) : {};
@@ -1085,23 +1085,23 @@
1085
1085
  hasConstructorOf(i, e) ? v.push(i.then(function (e) {
1086
1086
  return a(e);
1087
1087
  })) : a(i);
1088
- }), r = d; y.length;) {
1089
- var b = _slicedToArray(y[0], 4),
1088
+ }), r = d; l.length;) {
1089
+ var b = _slicedToArray(l[0], 4),
1090
1090
  _ = b[0],
1091
1091
  O = b[1],
1092
1092
  m = b[2],
1093
1093
  j = b[3],
1094
1094
  g = getByKeyPath(_, O);
1095
1095
  if (void 0 === g) break;
1096
- m[j] = g, y.splice(0, 1);
1096
+ m[j] = g, l.splice(0, 1);
1097
1097
  }
1098
1098
  }
1099
- if (!p) return r;
1100
- if ("#" === p) {
1099
+ if (!y) return r;
1100
+ if ("#" === y) {
1101
1101
  var S = getByKeyPath(o, r.slice(1));
1102
- return void 0 === S && y.push([o, r.slice(1), a, c]), S;
1102
+ return void 0 === S && l.push([o, r.slice(1), a, c]), S;
1103
1103
  }
1104
- return [].concat(p).reduce(function reducer(t, r) {
1104
+ return [].concat(y).reduce(function reducer(t, r) {
1105
1105
  if (hasConstructorOf(t, e)) return t.then(function (e) {
1106
1106
  return reducer(e, r);
1107
1107
  });
@@ -1155,34 +1155,34 @@
1155
1155
  return e.type === t;
1156
1156
  });
1157
1157
  if (s.length && (c.splice(c.indexOf(s[0]), 1), delete r.revivers[t], delete r.types[t]), "function" == typeof a) {
1158
- var y = a;
1158
+ var l = a;
1159
1159
  a = {
1160
1160
  test: function test(e) {
1161
- return e && e.constructor === y;
1161
+ return e && e.constructor === l;
1162
1162
  },
1163
1163
  replace: function replace(e) {
1164
1164
  return _objectSpread2({}, e);
1165
1165
  },
1166
1166
  revive: function revive(e) {
1167
- return Object.assign(Object.create(y.prototype), e);
1167
+ return Object.assign(Object.create(l.prototype), e);
1168
1168
  }
1169
1169
  };
1170
1170
  } else if (i$1(a)) {
1171
- var p = _slicedToArray(a, 3);
1171
+ var y = _slicedToArray(a, 3);
1172
1172
  a = {
1173
- test: p[0],
1174
- replace: p[1],
1175
- revive: p[2]
1173
+ test: y[0],
1174
+ replace: y[1],
1175
+ revive: y[2]
1176
1176
  };
1177
1177
  }
1178
1178
  if (null !== (n = a) && void 0 !== n && n.test) {
1179
- var l = {
1179
+ var p = {
1180
1180
  type: t,
1181
1181
  test: a.test.bind(a)
1182
1182
  };
1183
- a.replace && (l.replace = a.replace.bind(a)), a.replaceAsync && (l.replaceAsync = a.replaceAsync.bind(a));
1183
+ a.replace && (p.replace = a.replace.bind(a)), a.replaceAsync && (p.replaceAsync = a.replaceAsync.bind(a));
1184
1184
  var f = "number" == typeof o.fallback ? o.fallback : o.fallback ? 0 : Number.POSITIVE_INFINITY;
1185
- if (a.testPlainObjects ? r.plainObjectReplacers.splice(f, 0, l) : r.nonplainObjectReplacers.splice(f, 0, l), a.revive || a.reviveAsync) {
1185
+ if (a.testPlainObjects ? r.plainObjectReplacers.splice(f, 0, p) : r.nonplainObjectReplacers.splice(f, 0, p), a.revive || a.reviveAsync) {
1186
1186
  var v = {};
1187
1187
  a.revive && (v.revive = a.revive.bind(a)), a.reviveAsync && (v.reviveAsync = a.reviveAsync.bind(a)), r.revivers[t] = [v, {
1188
1188
  plain: a.testPlainObjects
@@ -1356,8 +1356,6 @@
1356
1356
  }
1357
1357
  };
1358
1358
 
1359
- /* globals BigInt */
1360
-
1361
1359
  /**
1362
1360
  * @type {import('typeson').TypeSpecSet}
1363
1361
  */
@@ -1433,7 +1431,7 @@
1433
1431
 
1434
1432
  var array = new Uint8Array(str.length);
1435
1433
  for (var i = 0; i < str.length; i++) {
1436
- // eslint-disable-next-line max-len -- Long
1434
+ // eslint-disable-next-line @stylistic/max-len -- Long
1437
1435
  // eslint-disable-next-line unicorn/prefer-code-point -- Iterating char. codes
1438
1436
  array[i] = str.charCodeAt(i); // & 0xff;
1439
1437
  }
@@ -1501,8 +1499,6 @@
1501
1499
  }
1502
1500
  };
1503
1501
 
1504
- /* globals performance */
1505
-
1506
1502
  // The `performance` global is optional
1507
1503
 
1508
1504
  /**
@@ -1519,7 +1515,10 @@
1519
1515
  // use high-precision timer if available
1520
1516
  /* c8 ignore next 4 */
1521
1517
  typeof performance !== 'undefined' && typeof performance.now === 'function' ? performance.now() : 0);
1522
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
1518
+
1519
+ // eslint-disable-next-line @stylistic/max-len -- Long
1520
+ // eslint-disable-next-line no-use-extend-native/no-use-extend-native -- Need to update plugin
1521
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replaceAll(/[xy]/g, function (c) {
1523
1522
  /* eslint-disable no-bitwise */
1524
1523
  var r = Math.trunc((d + Math.random() * 16) % 16);
1525
1524
  d = Math.floor(d / 16);
@@ -1722,6 +1721,86 @@
1722
1721
  }
1723
1722
  };
1724
1723
 
1724
+ /**
1725
+ * @type {import('typeson').TypeSpecSet}
1726
+ */
1727
+ var domexception = {
1728
+ domexception: {
1729
+ test: function test(x) {
1730
+ return toStringTag(x) === 'DOMException';
1731
+ },
1732
+ replace: function replace(de) {
1733
+ // `code` is based on `name` and readonly, so no
1734
+ // need to keep here
1735
+ return {
1736
+ name: de.name,
1737
+ message: de.message
1738
+ };
1739
+ },
1740
+ revive: function revive(_ref) {
1741
+ var message = _ref.message,
1742
+ name = _ref.name;
1743
+ return new DOMException(message, name);
1744
+ }
1745
+ }
1746
+ };
1747
+
1748
+ /* globals DOMPoint */
1749
+
1750
+ /**
1751
+ * @type {import('typeson').TypeSpecSet}
1752
+ */
1753
+ var dompoint = {
1754
+ dompoint: {
1755
+ test: function test(x) {
1756
+ return toStringTag(x) === 'DOMPoint';
1757
+ },
1758
+ replace: function replace(dp) {
1759
+ return {
1760
+ x: dp.x,
1761
+ y: dp.y,
1762
+ z: dp.z,
1763
+ w: dp.w
1764
+ };
1765
+ },
1766
+ revive: function revive(_ref) {
1767
+ var x = _ref.x,
1768
+ y = _ref.y,
1769
+ z = _ref.z,
1770
+ w = _ref.w;
1771
+ return new DOMPoint(x, y, z, w);
1772
+ }
1773
+ }
1774
+ };
1775
+
1776
+ /* globals DOMRect */
1777
+
1778
+ /**
1779
+ * @type {import('typeson').TypeSpecSet}
1780
+ */
1781
+ var domrect = {
1782
+ domrect: {
1783
+ test: function test(x) {
1784
+ return toStringTag(x) === 'DOMRect';
1785
+ },
1786
+ replace: function replace(dr) {
1787
+ return {
1788
+ x: dr.x,
1789
+ y: dr.y,
1790
+ width: dr.width,
1791
+ height: dr.height
1792
+ };
1793
+ },
1794
+ revive: function revive(_ref) {
1795
+ var x = _ref.x,
1796
+ y = _ref.y,
1797
+ width = _ref.width,
1798
+ height = _ref.height;
1799
+ return new DOMRect(x, y, width, height);
1800
+ }
1801
+ }
1802
+ };
1803
+
1725
1804
  /**
1726
1805
  * @type {import('typeson').TypeSpecSet}
1727
1806
  */
@@ -1790,9 +1869,12 @@
1790
1869
  create$2(AggregateError);
1791
1870
  }
1792
1871
 
1793
- /* c8 ignore next 2 */
1794
- // @ts-ignore Non-standard
1795
- typeof InternalError === 'function' && create$2(InternalError);
1872
+ /* c8 ignore next 5 */
1873
+ // @ts-expect-error Non-standard
1874
+ if (typeof InternalError === 'function') {
1875
+ // @ts-expect-error Non-standard
1876
+ create$2(InternalError);
1877
+ }
1796
1878
 
1797
1879
  /* eslint-disable jsdoc/valid-types -- https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/131 */
1798
1880
  /**
@@ -2121,12 +2203,12 @@
2121
2203
  test: function test(x) {
2122
2204
  return x === Number.POSITIVE_INFINITY;
2123
2205
  },
2124
- replace: function replace(n) {
2206
+ replace: function replace() {
2125
2207
  return 'Infinity';
2126
- },
2127
- revive: function revive(s) {
2208
+ } /* n */,
2209
+ revive: function revive() {
2128
2210
  return Number.POSITIVE_INFINITY;
2129
- }
2211
+ } /* s */
2130
2212
  }
2131
2213
  };
2132
2214
 
@@ -2205,12 +2287,12 @@
2205
2287
  test: function test(x) {
2206
2288
  return Number.isNaN(x);
2207
2289
  },
2208
- replace: function replace(n) {
2290
+ replace: function replace() {
2209
2291
  return 'NaN';
2210
- },
2211
- revive: function revive(s) {
2292
+ } /* n */,
2293
+ revive: function revive() {
2212
2294
  return Number.NaN;
2213
- }
2295
+ } /* s */
2214
2296
  }
2215
2297
  };
2216
2298
 
@@ -2222,12 +2304,12 @@
2222
2304
  test: function test(x) {
2223
2305
  return x === Number.NEGATIVE_INFINITY;
2224
2306
  },
2225
- replace: function replace(n) {
2307
+ replace: function replace() {
2226
2308
  return '-Infinity';
2227
- },
2228
- revive: function revive(s) {
2309
+ } /* n */,
2310
+ revive: function revive() {
2229
2311
  return Number.NEGATIVE_INFINITY;
2230
- }
2312
+ } /* s */
2231
2313
  }
2232
2314
  };
2233
2315
 
@@ -2239,13 +2321,13 @@
2239
2321
  test: function test(x) {
2240
2322
  return Object.is(x, -0);
2241
2323
  },
2242
- replace: function replace(n) {
2324
+ replace: function replace() {
2243
2325
  // Just adding 0 here for minimized space; will still revive as -0
2244
2326
  return 0;
2245
- },
2246
- revive: function revive(s) {
2327
+ } /* n */,
2328
+ revive: function revive() {
2247
2329
  return -0;
2248
- }
2330
+ } /* s */
2249
2331
  }
2250
2332
  };
2251
2333
 
@@ -2261,9 +2343,9 @@
2261
2343
  // function objects, however
2262
2344
  'Boolean', 'Number', 'String', 'Error', 'RegExp', 'Math', 'Date', 'Map', 'Set', 'JSON', 'ArrayBuffer', 'SharedArrayBuffer', 'DataView', 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', 'Float32Array', 'Float64Array', 'Promise', 'String Iterator', 'Array Iterator', 'Map Iterator', 'Set Iterator', 'WeakMap', 'WeakSet', 'Atomics', 'Module'].includes(toStringTag(x));
2263
2345
  },
2264
- replace: function replace(rexp) {
2346
+ replace: function replace() {
2265
2347
  // Not in use
2266
- }
2348
+ } /* rexp */
2267
2349
  }
2268
2350
  };
2269
2351
 
@@ -2524,14 +2606,14 @@
2524
2606
  test: function test(x, stateObj) {
2525
2607
  return typeof x === 'undefined' && (stateObj.ownKeys || !('ownKeys' in stateObj));
2526
2608
  },
2527
- replace: function replace(n) {
2609
+ replace: function replace() {
2528
2610
  return 0;
2529
- },
2530
- revive: function revive(s$1) {
2611
+ } /* n */,
2612
+ revive: function revive() {
2531
2613
  // Will add `undefined` (returning `undefined` would instead
2532
2614
  // avoid explicitly setting)
2533
2615
  return new s();
2534
- }
2616
+ } /* s */
2535
2617
  }
2536
2618
  };
2537
2619
 
@@ -2540,7 +2622,7 @@
2540
2622
  */
2541
2623
  var userObject = {
2542
2624
  userObject: {
2543
- test: function test(x, stateObj) {
2625
+ test: function test(x /* , stateObj */) {
2544
2626
  return isUserObject(x);
2545
2627
  },
2546
2628
  replace: function replace(n) {
@@ -2612,12 +2694,12 @@
2612
2694
  test: function test(x, stateObj) {
2613
2695
  return typeof x === 'undefined' && stateObj.ownKeys === false;
2614
2696
  },
2615
- replace: function replace(n) {
2697
+ replace: function replace() {
2616
2698
  return 0;
2617
- },
2618
- revive: function revive(s) {
2699
+ } /* n */,
2700
+ revive: function revive() {
2619
2701
  return undefined;
2620
- } // Will avoid adding anything
2702
+ } /* s */ // Will avoid adding anything
2621
2703
  }
2622
2704
  }];
2623
2705
 
@@ -2711,12 +2793,12 @@
2711
2793
  test: function test(x, stateObj) {
2712
2794
  return typeof x === 'undefined' && stateObj.ownKeys === false;
2713
2795
  },
2714
- replace: function replace(n) {
2796
+ replace: function replace() {
2715
2797
  return 0;
2716
- },
2717
- revive: function revive(s) {
2798
+ } /* n */,
2799
+ revive: function revive() {
2718
2800
  return undefined;
2719
- } // Will avoid adding anything
2801
+ } /* s */ // Will avoid adding anything
2720
2802
  }
2721
2803
  }];
2722
2804
 
@@ -2745,9 +2827,11 @@
2745
2827
  typeof ArrayBuffer === 'function' ? arraybuffer : [], /* c8 ignore next */
2746
2828
  typeof Uint8Array === 'function' ? typedArrays : [], /* c8 ignore next */
2747
2829
  typeof DataView === 'function' ? dataview : [], /* c8 ignore next */
2748
- typeof Intl !== 'undefined' ? intlTypes : [], /* c8 ignore next */
2749
2830
  typeof crypto !== 'undefined' ? cryptokey : [], /* c8 ignore next */
2750
- typeof BigInt !== 'undefined' ? [bigint, bigintObject] : []);
2831
+ typeof BigInt !== 'undefined' ? [bigint, bigintObject] : [], /* c8 ignore next */
2832
+ typeof DOMException !== 'undefined' ? domexception : [], /* c8 ignore next */
2833
+ typeof DOMRect !== 'undefined' ? domrect : [], /* c8 ignore next */
2834
+ typeof DOMPoint !== 'undefined' ? dompoint : []);
2751
2835
 
2752
2836
  /**
2753
2837
  * @type {import('typeson').Preset}
@@ -2845,6 +2929,9 @@
2845
2929
  exports.cryptokey = cryptokey;
2846
2930
  exports.dataview = dataview;
2847
2931
  exports.date = date;
2932
+ exports.domexception = domexception;
2933
+ exports.dompoint = dompoint;
2934
+ exports.domrect = domrect;
2848
2935
  exports.error = error;
2849
2936
  exports.errors = errors;
2850
2937
  exports.escapeKeyPathComponent = escapeKeyPathComponent;
@@ -2887,4 +2974,4 @@
2887
2974
  exports.userObject = userObject;
2888
2975
 
2889
2976
  }));
2890
- //# sourceMappingURL=index.umd.js.map
2977
+ //# sourceMappingURL=index.umd.cjs.map