react-state-custom 1.0.8 → 1.0.9

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/index.es.js CHANGED
@@ -1,16 +1,16 @@
1
- var Ne = Object.defineProperty;
2
- var Ae = (e, t, r) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Q = (e, t, r) => Ae(e, typeof t != "symbol" ? t + "" : t, r);
4
- import ke, { useMemo as z, useEffect as L, useState as U, useCallback as Me, Fragment as $e } from "react";
5
- function Ie(e) {
1
+ var Ae = Object.defineProperty;
2
+ var ke = (e, t, r) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var Q = (e, t, r) => ke(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import Me, { useRef as $e, useMemo as z, useEffect as L, useState as U, useCallback as Ie, Fragment as xe } from "react";
5
+ function De(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var Z = { exports: {} }, be;
9
- function xe() {
9
+ function Fe() {
10
10
  if (be) return Z.exports;
11
11
  be = 1;
12
- var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(a, o, f) {
13
- return Function.prototype.apply.call(a, o, f);
12
+ var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(a, o, l) {
13
+ return Function.prototype.apply.call(a, o, l);
14
14
  }, r;
15
15
  e && typeof e.ownKeys == "function" ? r = e.ownKeys : Object.getOwnPropertySymbols ? r = function(a) {
16
16
  return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a));
@@ -20,7 +20,7 @@ function xe() {
20
20
  function u(s) {
21
21
  console && console.warn && console.warn(s);
22
22
  }
23
- var l = Number.isNaN || function(a) {
23
+ var f = Number.isNaN || function(a) {
24
24
  return a !== a;
25
25
  };
26
26
  function n() {
@@ -28,7 +28,7 @@ function xe() {
28
28
  }
29
29
  Z.exports = n, Z.exports.once = N, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
30
30
  var c = 10;
31
- function h(s) {
31
+ function d(s) {
32
32
  if (typeof s != "function")
33
33
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof s);
34
34
  }
@@ -38,14 +38,14 @@ function xe() {
38
38
  return c;
39
39
  },
40
40
  set: function(s) {
41
- if (typeof s != "number" || s < 0 || l(s))
41
+ if (typeof s != "number" || s < 0 || f(s))
42
42
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + s + ".");
43
43
  c = s;
44
44
  }
45
45
  }), n.init = function() {
46
46
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
47
47
  }, n.prototype.setMaxListeners = function(a) {
48
- if (typeof a != "number" || a < 0 || l(a))
48
+ if (typeof a != "number" || a < 0 || f(a))
49
49
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + a + ".");
50
50
  return this._maxListeners = a, this;
51
51
  };
@@ -55,13 +55,13 @@ function xe() {
55
55
  n.prototype.getMaxListeners = function() {
56
56
  return p(this);
57
57
  }, n.prototype.emit = function(a) {
58
- for (var o = [], f = 1; f < arguments.length; f++) o.push(arguments[f]);
59
- var d = a === "error", _ = this._events;
58
+ for (var o = [], l = 1; l < arguments.length; l++) o.push(arguments[l]);
59
+ var h = a === "error", _ = this._events;
60
60
  if (_ !== void 0)
61
- d = d && _.error === void 0;
62
- else if (!d)
61
+ h = h && _.error === void 0;
62
+ else if (!h)
63
63
  return !1;
64
- if (d) {
64
+ if (h) {
65
65
  var b;
66
66
  if (o.length > 0 && (b = o[0]), b instanceof Error)
67
67
  throw b;
@@ -74,19 +74,19 @@ function xe() {
74
74
  if (typeof A == "function")
75
75
  t(A, this, o);
76
76
  else
77
- for (var B = A.length, H = M(A, B), f = 0; f < B; ++f)
78
- t(H[f], this, o);
77
+ for (var B = A.length, V = M(A, B), l = 0; l < B; ++l)
78
+ t(V[l], this, o);
79
79
  return !0;
80
80
  };
81
- function v(s, a, o, f) {
82
- var d, _, b;
83
- if (h(o), _ = s._events, _ === void 0 ? (_ = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (_.newListener !== void 0 && (s.emit(
81
+ function v(s, a, o, l) {
82
+ var h, _, b;
83
+ if (d(o), _ = s._events, _ === void 0 ? (_ = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (_.newListener !== void 0 && (s.emit(
84
84
  "newListener",
85
85
  a,
86
86
  o.listener ? o.listener : o
87
87
  ), _ = s._events), b = _[a]), b === void 0)
88
88
  b = _[a] = o, ++s._eventsCount;
89
- else if (typeof b == "function" ? b = _[a] = f ? [o, b] : [b, o] : f ? b.unshift(o) : b.push(o), d = p(s), d > 0 && b.length > d && !b.warned) {
89
+ else if (typeof b == "function" ? b = _[a] = l ? [o, b] : [b, o] : l ? b.unshift(o) : b.push(o), h = p(s), h > 0 && b.length > h && !b.warned) {
90
90
  b.warned = !0;
91
91
  var j = new Error("Possible EventEmitter memory leak detected. " + b.length + " " + String(a) + " listeners added. Use emitter.setMaxListeners() to increase limit");
92
92
  j.name = "MaxListenersExceededWarning", j.emitter = s, j.type = a, j.count = b.length, u(j);
@@ -103,57 +103,57 @@ function xe() {
103
103
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
104
104
  }
105
105
  function E(s, a, o) {
106
- var f = { fired: !1, wrapFn: void 0, target: s, type: a, listener: o }, d = g.bind(f);
107
- return d.listener = o, f.wrapFn = d, d;
106
+ var l = { fired: !1, wrapFn: void 0, target: s, type: a, listener: o }, h = g.bind(l);
107
+ return h.listener = o, l.wrapFn = h, h;
108
108
  }
109
109
  n.prototype.once = function(a, o) {
110
- return h(o), this.on(a, E(this, a, o)), this;
110
+ return d(o), this.on(a, E(this, a, o)), this;
111
111
  }, n.prototype.prependOnceListener = function(a, o) {
112
- return h(o), this.prependListener(a, E(this, a, o)), this;
112
+ return d(o), this.prependListener(a, E(this, a, o)), this;
113
113
  }, n.prototype.removeListener = function(a, o) {
114
- var f, d, _, b, j;
115
- if (h(o), d = this._events, d === void 0)
114
+ var l, h, _, b, j;
115
+ if (d(o), h = this._events, h === void 0)
116
116
  return this;
117
- if (f = d[a], f === void 0)
117
+ if (l = h[a], l === void 0)
118
118
  return this;
119
- if (f === o || f.listener === o)
120
- --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete d[a], d.removeListener && this.emit("removeListener", a, f.listener || o));
121
- else if (typeof f != "function") {
122
- for (_ = -1, b = f.length - 1; b >= 0; b--)
123
- if (f[b] === o || f[b].listener === o) {
124
- j = f[b].listener, _ = b;
119
+ if (l === o || l.listener === o)
120
+ --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete h[a], h.removeListener && this.emit("removeListener", a, l.listener || o));
121
+ else if (typeof l != "function") {
122
+ for (_ = -1, b = l.length - 1; b >= 0; b--)
123
+ if (l[b] === o || l[b].listener === o) {
124
+ j = l[b].listener, _ = b;
125
125
  break;
126
126
  }
127
127
  if (_ < 0)
128
128
  return this;
129
- _ === 0 ? f.shift() : y(f, _), f.length === 1 && (d[a] = f[0]), d.removeListener !== void 0 && this.emit("removeListener", a, j || o);
129
+ _ === 0 ? l.shift() : y(l, _), l.length === 1 && (h[a] = l[0]), h.removeListener !== void 0 && this.emit("removeListener", a, j || o);
130
130
  }
131
131
  return this;
132
132
  }, n.prototype.off = n.prototype.removeListener, n.prototype.removeAllListeners = function(a) {
133
- var o, f, d;
134
- if (f = this._events, f === void 0)
133
+ var o, l, h;
134
+ if (l = this._events, l === void 0)
135
135
  return this;
136
- if (f.removeListener === void 0)
137
- return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : f[a] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete f[a]), this;
136
+ if (l.removeListener === void 0)
137
+ return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : l[a] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete l[a]), this;
138
138
  if (arguments.length === 0) {
139
- var _ = Object.keys(f), b;
140
- for (d = 0; d < _.length; ++d)
141
- b = _[d], b !== "removeListener" && this.removeAllListeners(b);
139
+ var _ = Object.keys(l), b;
140
+ for (h = 0; h < _.length; ++h)
141
+ b = _[h], b !== "removeListener" && this.removeAllListeners(b);
142
142
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
143
143
  }
144
- if (o = f[a], typeof o == "function")
144
+ if (o = l[a], typeof o == "function")
145
145
  this.removeListener(a, o);
146
146
  else if (o !== void 0)
147
- for (d = o.length - 1; d >= 0; d--)
148
- this.removeListener(a, o[d]);
147
+ for (h = o.length - 1; h >= 0; h--)
148
+ this.removeListener(a, o[h]);
149
149
  return this;
150
150
  };
151
151
  function T(s, a, o) {
152
- var f = s._events;
153
- if (f === void 0)
152
+ var l = s._events;
153
+ if (l === void 0)
154
154
  return [];
155
- var d = f[a];
156
- return d === void 0 ? [] : typeof d == "function" ? o ? [d.listener || d] : [d] : o ? O(d) : M(d, d.length);
155
+ var h = l[a];
156
+ return h === void 0 ? [] : typeof h == "function" ? o ? [h.listener || h] : [h] : o ? O(h) : M(h, h.length);
157
157
  }
158
158
  n.prototype.listeners = function(a) {
159
159
  return T(this, a, !0);
@@ -177,8 +177,8 @@ function xe() {
177
177
  return this._eventsCount > 0 ? r(this._events) : [];
178
178
  };
179
179
  function M(s, a) {
180
- for (var o = new Array(a), f = 0; f < a; ++f)
181
- o[f] = s[f];
180
+ for (var o = new Array(a), l = 0; l < a; ++l)
181
+ o[l] = s[l];
182
182
  return o;
183
183
  }
184
184
  function y(s, a) {
@@ -192,78 +192,78 @@ function xe() {
192
192
  return a;
193
193
  }
194
194
  function N(s, a) {
195
- return new Promise(function(o, f) {
196
- function d(b) {
197
- s.removeListener(a, _), f(b);
195
+ return new Promise(function(o, l) {
196
+ function h(b) {
197
+ s.removeListener(a, _), l(b);
198
198
  }
199
199
  function _() {
200
- typeof s.removeListener == "function" && s.removeListener("error", d), o([].slice.call(arguments));
200
+ typeof s.removeListener == "function" && s.removeListener("error", h), o([].slice.call(arguments));
201
201
  }
202
- D(s, a, _, { once: !0 }), a !== "error" && x(s, d, { once: !0 });
202
+ D(s, a, _, { once: !0 }), a !== "error" && x(s, h, { once: !0 });
203
203
  });
204
204
  }
205
205
  function x(s, a, o) {
206
206
  typeof s.on == "function" && D(s, "error", a, o);
207
207
  }
208
- function D(s, a, o, f) {
208
+ function D(s, a, o, l) {
209
209
  if (typeof s.on == "function")
210
- f.once ? s.once(a, o) : s.on(a, o);
210
+ l.once ? s.once(a, o) : s.on(a, o);
211
211
  else if (typeof s.addEventListener == "function")
212
- s.addEventListener(a, function d(_) {
213
- f.once && s.removeEventListener(a, d), o(_);
212
+ s.addEventListener(a, function h(_) {
213
+ l.once && s.removeEventListener(a, h), o(_);
214
214
  });
215
215
  else
216
216
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof s);
217
217
  }
218
218
  return Z.exports;
219
219
  }
220
- var De = xe();
221
- const Fe = /* @__PURE__ */ Ie(De);
222
- var We = typeof global == "object" && global && global.Object === Object && global, ze = typeof self == "object" && self && self.Object === Object && self, re = We || ze || Function("return this")(), te = re.Symbol, Re = Object.prototype, Ye = Re.hasOwnProperty, Ge = Re.toString, q = te ? te.toStringTag : void 0;
223
- function Ue(e) {
224
- var t = Ye.call(e, q), r = e[q];
220
+ var We = Fe();
221
+ const ze = /* @__PURE__ */ De(We);
222
+ var Ye = typeof global == "object" && global && global.Object === Object && global, Ge = typeof self == "object" && self && self.Object === Object && self, re = Ye || Ge || Function("return this")(), te = re.Symbol, Se = Object.prototype, Ue = Se.hasOwnProperty, He = Se.toString, q = te ? te.toStringTag : void 0;
223
+ function Ve(e) {
224
+ var t = Ue.call(e, q), r = e[q];
225
225
  try {
226
226
  e[q] = void 0;
227
227
  var u = !0;
228
228
  } catch {
229
229
  }
230
- var l = Ge.call(e);
231
- return u && (t ? e[q] = r : delete e[q]), l;
230
+ var f = He.call(e);
231
+ return u && (t ? e[q] = r : delete e[q]), f;
232
232
  }
233
- var Ve = Object.prototype, He = Ve.toString;
234
- function qe(e) {
235
- return He.call(e);
233
+ var qe = Object.prototype, Je = qe.toString;
234
+ function Xe(e) {
235
+ return Je.call(e);
236
236
  }
237
- var Je = "[object Null]", Xe = "[object Undefined]", ge = te ? te.toStringTag : void 0;
238
- function Se(e) {
239
- return e == null ? e === void 0 ? Xe : Je : ge && ge in Object(e) ? Ue(e) : qe(e);
237
+ var Ke = "[object Null]", Be = "[object Undefined]", ge = te ? te.toStringTag : void 0;
238
+ function je(e) {
239
+ return e == null ? e === void 0 ? Be : Ke : ge && ge in Object(e) ? Ve(e) : Xe(e);
240
240
  }
241
- function Ke(e) {
242
- return e != null && typeof e == "object";
243
- }
244
- var Be = "[object Symbol]";
245
241
  function Qe(e) {
246
- return typeof e == "symbol" || Ke(e) && Se(e) == Be;
242
+ return e != null && typeof e == "object";
247
243
  }
248
- var Ze = /\s/;
244
+ var Ze = "[object Symbol]";
249
245
  function et(e) {
250
- for (var t = e.length; t-- && Ze.test(e.charAt(t)); )
246
+ return typeof e == "symbol" || Qe(e) && je(e) == Ze;
247
+ }
248
+ var tt = /\s/;
249
+ function rt(e) {
250
+ for (var t = e.length; t-- && tt.test(e.charAt(t)); )
251
251
  ;
252
252
  return t;
253
253
  }
254
- var tt = /^\s+/;
255
- function rt(e) {
256
- return e && e.slice(0, et(e) + 1).replace(tt, "");
254
+ var nt = /^\s+/;
255
+ function ot(e) {
256
+ return e && e.slice(0, rt(e) + 1).replace(nt, "");
257
257
  }
258
258
  function G(e) {
259
259
  var t = typeof e;
260
260
  return e != null && (t == "object" || t == "function");
261
261
  }
262
- var _e = NaN, nt = /^[-+]0x[0-9a-f]+$/i, ot = /^0b[01]+$/i, at = /^0o[0-7]+$/i, it = parseInt;
262
+ var _e = NaN, at = /^[-+]0x[0-9a-f]+$/i, it = /^0b[01]+$/i, st = /^0o[0-7]+$/i, ut = parseInt;
263
263
  function ye(e) {
264
264
  if (typeof e == "number")
265
265
  return e;
266
- if (Qe(e))
266
+ if (et(e))
267
267
  return _e;
268
268
  if (G(e)) {
269
269
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -271,29 +271,29 @@ function ye(e) {
271
271
  }
272
272
  if (typeof e != "string")
273
273
  return e === 0 ? e : +e;
274
- e = rt(e);
275
- var r = ot.test(e);
276
- return r || at.test(e) ? it(e.slice(2), r ? 2 : 8) : nt.test(e) ? _e : +e;
274
+ e = ot(e);
275
+ var r = it.test(e);
276
+ return r || st.test(e) ? ut(e.slice(2), r ? 2 : 8) : at.test(e) ? _e : +e;
277
277
  }
278
- var st = "[object AsyncFunction]", ut = "[object Function]", ct = "[object GeneratorFunction]", ft = "[object Proxy]";
279
- function lt(e) {
278
+ var ct = "[object AsyncFunction]", ft = "[object Function]", lt = "[object GeneratorFunction]", dt = "[object Proxy]";
279
+ function ht(e) {
280
280
  if (!G(e))
281
281
  return !1;
282
- var t = Se(e);
283
- return t == ut || t == ct || t == st || t == ft;
282
+ var t = je(e);
283
+ return t == ft || t == lt || t == ct || t == dt;
284
284
  }
285
285
  var ce = re["__core-js_shared__"], Ee = function() {
286
286
  var e = /[^.]+$/.exec(ce && ce.keys && ce.keys.IE_PROTO || "");
287
287
  return e ? "Symbol(src)_1." + e : "";
288
288
  }();
289
- function dt(e) {
289
+ function pt(e) {
290
290
  return !!Ee && Ee in e;
291
291
  }
292
- var ht = Function.prototype, pt = ht.toString;
293
- function vt(e) {
292
+ var vt = Function.prototype, mt = vt.toString;
293
+ function bt(e) {
294
294
  if (e != null) {
295
295
  try {
296
- return pt.call(e);
296
+ return mt.call(e);
297
297
  } catch {
298
298
  }
299
299
  try {
@@ -303,51 +303,51 @@ function vt(e) {
303
303
  }
304
304
  return "";
305
305
  }
306
- var mt = /[\\^$.*+?()[\]{}|]/g, bt = /^\[object .+?Constructor\]$/, gt = Function.prototype, _t = Object.prototype, yt = gt.toString, Et = _t.hasOwnProperty, wt = RegExp(
307
- "^" + yt.call(Et).replace(mt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
306
+ var gt = /[\\^$.*+?()[\]{}|]/g, _t = /^\[object .+?Constructor\]$/, yt = Function.prototype, Et = Object.prototype, wt = yt.toString, Tt = Et.hasOwnProperty, Ot = RegExp(
307
+ "^" + wt.call(Tt).replace(gt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
308
308
  );
309
- function Tt(e) {
310
- if (!G(e) || dt(e))
309
+ function Rt(e) {
310
+ if (!G(e) || pt(e))
311
311
  return !1;
312
- var t = lt(e) ? wt : bt;
313
- return t.test(vt(e));
312
+ var t = ht(e) ? Ot : _t;
313
+ return t.test(bt(e));
314
314
  }
315
- function Ot(e, t) {
315
+ function St(e, t) {
316
316
  return e == null ? void 0 : e[t];
317
317
  }
318
- function je(e, t) {
319
- var r = Ot(e, t);
320
- return Tt(r) ? r : void 0;
318
+ function Ce(e, t) {
319
+ var r = St(e, t);
320
+ return Rt(r) ? r : void 0;
321
321
  }
322
- function Rt(e, t) {
322
+ function jt(e, t) {
323
323
  return e === t || e !== e && t !== t;
324
324
  }
325
- var K = je(Object, "create");
326
- function St() {
325
+ var K = Ce(Object, "create");
326
+ function Ct() {
327
327
  this.__data__ = K ? K(null) : {}, this.size = 0;
328
328
  }
329
- function jt(e) {
329
+ function Lt(e) {
330
330
  var t = this.has(e) && delete this.__data__[e];
331
331
  return this.size -= t ? 1 : 0, t;
332
332
  }
333
- var Ct = "__lodash_hash_undefined__", Lt = Object.prototype, Pt = Lt.hasOwnProperty;
334
- function Nt(e) {
333
+ var Pt = "__lodash_hash_undefined__", Nt = Object.prototype, At = Nt.hasOwnProperty;
334
+ function kt(e) {
335
335
  var t = this.__data__;
336
336
  if (K) {
337
337
  var r = t[e];
338
- return r === Ct ? void 0 : r;
338
+ return r === Pt ? void 0 : r;
339
339
  }
340
- return Pt.call(t, e) ? t[e] : void 0;
340
+ return At.call(t, e) ? t[e] : void 0;
341
341
  }
342
- var At = Object.prototype, kt = At.hasOwnProperty;
343
- function Mt(e) {
342
+ var Mt = Object.prototype, $t = Mt.hasOwnProperty;
343
+ function It(e) {
344
344
  var t = this.__data__;
345
- return K ? t[e] !== void 0 : kt.call(t, e);
345
+ return K ? t[e] !== void 0 : $t.call(t, e);
346
346
  }
347
- var $t = "__lodash_hash_undefined__";
348
- function It(e, t) {
347
+ var xt = "__lodash_hash_undefined__";
348
+ function Dt(e, t) {
349
349
  var r = this.__data__;
350
- return this.size += this.has(e) ? 0 : 1, r[e] = K && t === void 0 ? $t : t, this;
350
+ return this.size += this.has(e) ? 0 : 1, r[e] = K && t === void 0 ? xt : t, this;
351
351
  }
352
352
  function $(e) {
353
353
  var t = -1, r = e == null ? 0 : e.length;
@@ -356,78 +356,78 @@ function $(e) {
356
356
  this.set(u[0], u[1]);
357
357
  }
358
358
  }
359
- $.prototype.clear = St;
360
- $.prototype.delete = jt;
361
- $.prototype.get = Nt;
362
- $.prototype.has = Mt;
363
- $.prototype.set = It;
364
- function xt() {
359
+ $.prototype.clear = Ct;
360
+ $.prototype.delete = Lt;
361
+ $.prototype.get = kt;
362
+ $.prototype.has = It;
363
+ $.prototype.set = Dt;
364
+ function Ft() {
365
365
  this.__data__ = [], this.size = 0;
366
366
  }
367
367
  function ne(e, t) {
368
368
  for (var r = e.length; r--; )
369
- if (Rt(e[r][0], t))
369
+ if (jt(e[r][0], t))
370
370
  return r;
371
371
  return -1;
372
372
  }
373
- var Dt = Array.prototype, Ft = Dt.splice;
374
- function Wt(e) {
373
+ var Wt = Array.prototype, zt = Wt.splice;
374
+ function Yt(e) {
375
375
  var t = this.__data__, r = ne(t, e);
376
376
  if (r < 0)
377
377
  return !1;
378
378
  var u = t.length - 1;
379
- return r == u ? t.pop() : Ft.call(t, r, 1), --this.size, !0;
379
+ return r == u ? t.pop() : zt.call(t, r, 1), --this.size, !0;
380
380
  }
381
- function zt(e) {
381
+ function Gt(e) {
382
382
  var t = this.__data__, r = ne(t, e);
383
383
  return r < 0 ? void 0 : t[r][1];
384
384
  }
385
- function Yt(e) {
385
+ function Ut(e) {
386
386
  return ne(this.__data__, e) > -1;
387
387
  }
388
- function Gt(e, t) {
388
+ function Ht(e, t) {
389
389
  var r = this.__data__, u = ne(r, e);
390
390
  return u < 0 ? (++this.size, r.push([e, t])) : r[u][1] = t, this;
391
391
  }
392
- function V(e) {
392
+ function H(e) {
393
393
  var t = -1, r = e == null ? 0 : e.length;
394
394
  for (this.clear(); ++t < r; ) {
395
395
  var u = e[t];
396
396
  this.set(u[0], u[1]);
397
397
  }
398
398
  }
399
- V.prototype.clear = xt;
400
- V.prototype.delete = Wt;
401
- V.prototype.get = zt;
402
- V.prototype.has = Yt;
403
- V.prototype.set = Gt;
404
- var Ut = je(re, "Map");
405
- function Vt() {
399
+ H.prototype.clear = Ft;
400
+ H.prototype.delete = Yt;
401
+ H.prototype.get = Gt;
402
+ H.prototype.has = Ut;
403
+ H.prototype.set = Ht;
404
+ var Vt = Ce(re, "Map");
405
+ function qt() {
406
406
  this.size = 0, this.__data__ = {
407
407
  hash: new $(),
408
- map: new (Ut || V)(),
408
+ map: new (Vt || H)(),
409
409
  string: new $()
410
410
  };
411
411
  }
412
- function Ht(e) {
412
+ function Jt(e) {
413
413
  var t = typeof e;
414
414
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
415
415
  }
416
416
  function oe(e, t) {
417
417
  var r = e.__data__;
418
- return Ht(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
418
+ return Jt(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
419
419
  }
420
- function qt(e) {
420
+ function Xt(e) {
421
421
  var t = oe(this, e).delete(e);
422
422
  return this.size -= t ? 1 : 0, t;
423
423
  }
424
- function Jt(e) {
424
+ function Kt(e) {
425
425
  return oe(this, e).get(e);
426
426
  }
427
- function Xt(e) {
427
+ function Bt(e) {
428
428
  return oe(this, e).has(e);
429
429
  }
430
- function Kt(e, t) {
430
+ function Qt(e, t) {
431
431
  var r = oe(this, e), u = r.size;
432
432
  return r.set(e, t), this.size += r.size == u ? 0 : 1, this;
433
433
  }
@@ -438,93 +438,105 @@ function I(e) {
438
438
  this.set(u[0], u[1]);
439
439
  }
440
440
  }
441
- I.prototype.clear = Vt;
442
- I.prototype.delete = qt;
443
- I.prototype.get = Jt;
444
- I.prototype.has = Xt;
445
- I.prototype.set = Kt;
446
- var Bt = "Expected a function";
441
+ I.prototype.clear = qt;
442
+ I.prototype.delete = Xt;
443
+ I.prototype.get = Kt;
444
+ I.prototype.has = Bt;
445
+ I.prototype.set = Qt;
446
+ var Zt = "Expected a function";
447
447
  function le(e, t) {
448
448
  if (typeof e != "function" || t != null && typeof t != "function")
449
- throw new TypeError(Bt);
449
+ throw new TypeError(Zt);
450
450
  var r = function() {
451
- var u = arguments, l = t ? t.apply(this, u) : u[0], n = r.cache;
452
- if (n.has(l))
453
- return n.get(l);
451
+ var u = arguments, f = t ? t.apply(this, u) : u[0], n = r.cache;
452
+ if (n.has(f))
453
+ return n.get(f);
454
454
  var c = e.apply(this, u);
455
- return r.cache = n.set(l, c) || n, c;
455
+ return r.cache = n.set(f, c) || n, c;
456
456
  };
457
457
  return r.cache = new (le.Cache || I)(), r;
458
458
  }
459
459
  le.Cache = I;
460
460
  var fe = function() {
461
461
  return re.Date.now();
462
- }, Qt = "Expected a function", Zt = Math.max, er = Math.min;
462
+ }, er = "Expected a function", tr = Math.max, rr = Math.min;
463
463
  function ae(e, t, r) {
464
- var u, l, n, c, h, p, v = 0, g = !1, E = !1, T = !0;
464
+ var u, f, n, c, d, p, v = 0, g = !1, E = !1, T = !0;
465
465
  if (typeof e != "function")
466
- throw new TypeError(Qt);
467
- t = ye(t) || 0, G(r) && (g = !!r.leading, E = "maxWait" in r, n = E ? Zt(ye(r.maxWait) || 0, t) : n, T = "trailing" in r ? !!r.trailing : T);
466
+ throw new TypeError(er);
467
+ t = ye(t) || 0, G(r) && (g = !!r.leading, E = "maxWait" in r, n = E ? tr(ye(r.maxWait) || 0, t) : n, T = "trailing" in r ? !!r.trailing : T);
468
468
  function C(o) {
469
- var f = u, d = l;
470
- return u = l = void 0, v = o, c = e.apply(d, f), c;
469
+ var l = u, h = f;
470
+ return u = f = void 0, v = o, c = e.apply(h, l), c;
471
471
  }
472
472
  function M(o) {
473
- return v = o, h = setTimeout(N, t), g ? C(o) : c;
473
+ return v = o, d = setTimeout(N, t), g ? C(o) : c;
474
474
  }
475
475
  function y(o) {
476
- var f = o - p, d = o - v, _ = t - f;
477
- return E ? er(_, n - d) : _;
476
+ var l = o - p, h = o - v, _ = t - l;
477
+ return E ? rr(_, n - h) : _;
478
478
  }
479
479
  function O(o) {
480
- var f = o - p, d = o - v;
481
- return p === void 0 || f >= t || f < 0 || E && d >= n;
480
+ var l = o - p, h = o - v;
481
+ return p === void 0 || l >= t || l < 0 || E && h >= n;
482
482
  }
483
483
  function N() {
484
484
  var o = fe();
485
485
  if (O(o))
486
486
  return x(o);
487
- h = setTimeout(N, y(o));
487
+ d = setTimeout(N, y(o));
488
488
  }
489
489
  function x(o) {
490
- return h = void 0, T && u ? C(o) : (u = l = void 0, c);
490
+ return d = void 0, T && u ? C(o) : (u = f = void 0, c);
491
491
  }
492
492
  function D() {
493
- h !== void 0 && clearTimeout(h), v = 0, u = p = l = h = void 0;
493
+ d !== void 0 && clearTimeout(d), v = 0, u = p = f = d = void 0;
494
494
  }
495
495
  function s() {
496
- return h === void 0 ? c : x(fe());
496
+ return d === void 0 ? c : x(fe());
497
497
  }
498
498
  function a() {
499
- var o = fe(), f = O(o);
500
- if (u = arguments, l = this, p = o, f) {
501
- if (h === void 0)
499
+ var o = fe(), l = O(o);
500
+ if (u = arguments, f = this, p = o, l) {
501
+ if (d === void 0)
502
502
  return M(p);
503
503
  if (E)
504
- return clearTimeout(h), h = setTimeout(N, t), C(p);
504
+ return clearTimeout(d), d = setTimeout(N, t), C(p);
505
505
  }
506
- return h === void 0 && (h = setTimeout(N, t)), c;
506
+ return d === void 0 && (d = setTimeout(N, t)), c;
507
507
  }
508
508
  return a.cancel = D, a.flush = s, a;
509
509
  }
510
- var tr = "Expected a function";
511
- function rr(e, t, r) {
512
- var u = !0, l = !0;
510
+ var nr = "Expected a function";
511
+ function or(e, t, r) {
512
+ var u = !0, f = !0;
513
513
  if (typeof e != "function")
514
- throw new TypeError(tr);
515
- return G(r) && (u = "leading" in r ? !!r.leading : u, l = "trailing" in r ? !!r.trailing : l), ae(e, t, {
514
+ throw new TypeError(nr);
515
+ return G(r) && (u = "leading" in r ? !!r.leading : u, f = "trailing" in r ? !!r.trailing : f), ae(e, t, {
516
516
  leading: u,
517
517
  maxWait: t,
518
- trailing: l
518
+ trailing: f
519
519
  });
520
520
  }
521
- class nr {
521
+ const we = () => Math.random().toString().slice(2), ar = (e) => {
522
+ const { current: { computedHash: t } } = $e({
523
+ get computedHash() {
524
+ let r = [], u = we();
525
+ return (f) => {
526
+ let n = !1;
527
+ return n = n || !f != !r, n = n || (f == null ? void 0 : f.length) != (r == null ? void 0 : r.length), n = n || f.some((c, d) => c != r[d]), r = f, n && (u = we()), u;
528
+ };
529
+ }
530
+ });
531
+ return t(e);
532
+ };
533
+ class ir {
522
534
  /**
523
535
  * Create a new Context instance.
524
536
  * @param name - The name of the context (for debugging).
525
537
  */
526
538
  constructor(t) {
527
- Q(this, "event", new Fe.EventEmitter());
539
+ Q(this, "event", new ze.EventEmitter());
528
540
  /**
529
541
  * The current data held by the context.
530
542
  */
@@ -550,13 +562,13 @@ class nr {
550
562
  * @returns Unsubscribe function.
551
563
  */
552
564
  subscribe(t, r) {
553
- const u = ({ value: l }) => {
554
- r(l);
565
+ const u = ({ value: f }) => {
566
+ r(f);
555
567
  };
556
568
  return this.event.addListener(String(t), u), t in this.data && r(this.data[t]), () => (this.event.removeListener(String(t), u), void 0);
557
569
  }
558
570
  }
559
- const or = le((e) => new nr(e)), Y = (e = "noname") => z(() => or(e), [e]), Ce = (e, ...t) => {
571
+ const sr = le((e) => new ir(e)), Y = (e = "noname") => z(() => sr(e), [e]), Le = (e, ...t) => {
560
572
  const r = new Error("[ctx] useRegistryChecker failed " + JSON.stringify({ names: t, ctx: (e == null ? void 0 : e.name) ?? "undefined" }));
561
573
  L(
562
574
  () => {
@@ -567,85 +579,85 @@ const or = le((e) => new nr(e)), Y = (e = "noname") => z(() => or(e), [e]), Ce =
567
579
  },
568
580
  [e, t.length]
569
581
  );
570
- }, hr = (e, t, r) => {
582
+ }, mr = (e, t, r) => {
571
583
  L(() => {
572
584
  e && e.data[t] != r && e.publish(t, r);
573
- }, [t, r, e]), Ce(e, t);
574
- }, ar = (e, t, r = 0) => {
575
- const [{ value: u }, l] = U(() => {
585
+ }, [t, r, e]), Le(e, t);
586
+ }, ur = (e, t, r = 0) => {
587
+ const [{ value: u }, f] = U(() => {
576
588
  var n;
577
589
  return { value: (n = e == null ? void 0 : e.data) == null ? void 0 : n[t] };
578
590
  });
579
591
  return L(() => {
580
592
  if (e) {
581
- let n = r == 0 ? (h) => l({ value: h }) : ae((h) => l({ value: h }), r), c = e.subscribe(t, n);
582
- return u != e.data[t] && l({ value: e.data[t] }), () => {
593
+ let n = r == 0 ? (d) => f({ value: d }) : ae((d) => f({ value: d }), r), c = e.subscribe(t, n);
594
+ return u != e.data[t] && f({ value: e.data[t] }), () => {
583
595
  c();
584
596
  };
585
597
  }
586
598
  }, [t, e]), e == null ? void 0 : e.data[t];
587
- }, pr = (e, t, r) => {
588
- const [, u] = U(0), l = z(
599
+ }, br = (e, t, r) => {
600
+ const [, u] = U(0), f = z(
589
601
  () => r(e == null ? void 0 : e.data[t]),
590
602
  [r, e == null ? void 0 : e.data[t]]
591
603
  );
592
604
  return L(() => {
593
605
  if (e) {
594
- let n = l, c = () => {
606
+ let n = f, c = () => {
595
607
  let p = r(e.data[t]);
596
608
  p != n && (n = p, u((v) => v + 1));
597
- }, h = e.subscribe(t, c);
598
- return c(), () => h();
609
+ }, d = e.subscribe(t, c);
610
+ return c(), () => d();
599
611
  }
600
- }, [t, e]), l;
601
- }, Le = (e, ...t) => {
612
+ }, [t, e]), f;
613
+ }, Pe = (e, ...t) => {
602
614
  L(() => {
603
615
  if (e)
604
616
  for (let [r, u] of t)
605
617
  e.data[r] != u && e.publish(r, u);
606
- }, [e, ...t.flat()]), Ce(e, ...t.map((r) => r[0]));
607
- }, vr = (e, ...t) => {
608
- const [, r] = U(0), u = t.map((l) => {
618
+ }, [e, ar(t.flat())]), Le(e, ...t.map((r) => r[0]));
619
+ }, gr = (e, ...t) => {
620
+ const [, r] = U(0), u = t.map((f) => {
609
621
  var n;
610
- return (n = e == null ? void 0 : e.data) == null ? void 0 : n[l];
622
+ return (n = e == null ? void 0 : e.data) == null ? void 0 : n[f];
611
623
  });
612
624
  return L(() => {
613
625
  if (e) {
614
- let l = u;
626
+ let f = u;
615
627
  const n = ae(() => {
616
628
  let p = t.map((v) => {
617
629
  var g;
618
630
  return (g = e == null ? void 0 : e.data) == null ? void 0 : g[v];
619
631
  });
620
- t.some((v, g) => l[g] != p[g]) && (l = p, r((v) => v + 1));
632
+ t.some((v, g) => f[g] != p[g]) && (f = p, r((v) => v + 1));
621
633
  }, 1);
622
- let c = t.map((p) => e.subscribe(p, n)), h = setTimeout(n, 1);
634
+ let c = t.map((p) => e.subscribe(p, n)), d = setTimeout(n, 1);
623
635
  return () => {
624
- clearTimeout(h), n.cancel(), c.forEach((p) => p());
636
+ clearTimeout(d), n.cancel(), c.forEach((p) => p());
625
637
  };
626
638
  }
627
- }, [e, ...t]), Object.fromEntries(t.map((l, n) => [l, u[n]]));
628
- }, mr = (e, t = 100, ...r) => {
629
- const [, u] = U(0), l = r.map((n) => {
639
+ }, [e, ...t]), Object.fromEntries(t.map((f, n) => [f, u[n]]));
640
+ }, _r = (e, t = 100, ...r) => {
641
+ const [, u] = U(0), f = r.map((n) => {
630
642
  var c;
631
643
  return (c = e == null ? void 0 : e.data) == null ? void 0 : c[n];
632
644
  });
633
645
  return L(() => {
634
646
  if (e) {
635
- let n = l;
636
- const c = rr(() => {
647
+ let n = f;
648
+ const c = or(() => {
637
649
  let v = r.map((g) => {
638
650
  var E;
639
651
  return (E = e == null ? void 0 : e.data) == null ? void 0 : E[g];
640
652
  });
641
653
  r.some((g, E) => n[E] != v[E]) && (n = v, u((g) => g + 1));
642
654
  }, t);
643
- let h = r.map((v) => e.subscribe(v, c)), p = setTimeout(c, 1);
655
+ let d = r.map((v) => e.subscribe(v, c)), p = setTimeout(c, 1);
644
656
  return () => {
645
- clearTimeout(p), c.cancel(), h.forEach((v) => v());
657
+ clearTimeout(p), c.cancel(), d.forEach((v) => v());
646
658
  };
647
659
  }
648
- }, [e, ...r]), l;
660
+ }, [e, ...r]), f;
649
661
  };
650
662
  var ee = { exports: {} }, J = {};
651
663
  /**
@@ -657,23 +669,23 @@ var ee = { exports: {} }, J = {};
657
669
  * This source code is licensed under the MIT license found in the
658
670
  * LICENSE file in the root directory of this source tree.
659
671
  */
660
- var we;
661
- function ir() {
662
- if (we) return J;
663
- we = 1;
672
+ var Te;
673
+ function cr() {
674
+ if (Te) return J;
675
+ Te = 1;
664
676
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
665
- function r(u, l, n) {
677
+ function r(u, f, n) {
666
678
  var c = null;
667
- if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
679
+ if (n !== void 0 && (c = "" + n), f.key !== void 0 && (c = "" + f.key), "key" in f) {
668
680
  n = {};
669
- for (var h in l)
670
- h !== "key" && (n[h] = l[h]);
671
- } else n = l;
672
- return l = n.ref, {
681
+ for (var d in f)
682
+ d !== "key" && (n[d] = f[d]);
683
+ } else n = f;
684
+ return f = n.ref, {
673
685
  $$typeof: e,
674
686
  type: u,
675
687
  key: c,
676
- ref: l !== void 0 ? l : null,
688
+ ref: f !== void 0 ? f : null,
677
689
  props: n
678
690
  };
679
691
  }
@@ -689,9 +701,9 @@ var X = {};
689
701
  * This source code is licensed under the MIT license found in the
690
702
  * LICENSE file in the root directory of this source tree.
691
703
  */
692
- var Te;
693
- function sr() {
694
- return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
704
+ var Oe;
705
+ function fr() {
706
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
695
707
  function e(i) {
696
708
  if (i == null) return null;
697
709
  if (typeof i == "function")
@@ -724,9 +736,9 @@ function sr() {
724
736
  case s:
725
737
  var m = i.render;
726
738
  return i = i.displayName, i || (i = m.displayName || m.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
727
- case f:
739
+ case l:
728
740
  return m = i.displayName || null, m !== null ? m : e(i.type) || "Memo";
729
- case d:
741
+ case h:
730
742
  m = i._payload, i = i._init;
731
743
  try {
732
744
  return e(i(m));
@@ -757,7 +769,7 @@ function sr() {
757
769
  }
758
770
  function u(i) {
759
771
  if (i === y) return "<>";
760
- if (typeof i == "object" && i !== null && i.$$typeof === d)
772
+ if (typeof i == "object" && i !== null && i.$$typeof === h)
761
773
  return "<...>";
762
774
  try {
763
775
  var m = e(i);
@@ -766,7 +778,7 @@ function sr() {
766
778
  return "<...>";
767
779
  }
768
780
  }
769
- function l() {
781
+ function f() {
770
782
  var i = j.A;
771
783
  return i === null ? null : i.getOwner();
772
784
  }
@@ -780,7 +792,7 @@ function sr() {
780
792
  }
781
793
  return i.key !== void 0;
782
794
  }
783
- function h(i, m) {
795
+ function d(i, m) {
784
796
  function w() {
785
797
  de || (de = !0, console.error(
786
798
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
@@ -845,8 +857,8 @@ function sr() {
845
857
  else E(S);
846
858
  if (A.call(m, "key")) {
847
859
  S = e(i);
848
- var F = Object.keys(m).filter(function(Pe) {
849
- return Pe !== "key";
860
+ var F = Object.keys(m).filter(function(Ne) {
861
+ return Ne !== "key";
850
862
  });
851
863
  R = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", me[S + R] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
852
864
  `A props object containing a "key" prop is being spread into JSX:
@@ -866,7 +878,7 @@ React keys must be passed directly to JSX without using spread:
866
878
  for (var ue in m)
867
879
  ue !== "key" && (w[ue] = m[ue]);
868
880
  } else w = m;
869
- return S && h(
881
+ return S && d(
870
882
  w,
871
883
  typeof i == "function" ? i.displayName || i.name || "Unknown" : i
872
884
  ), v(
@@ -874,7 +886,7 @@ React keys must be passed directly to JSX without using spread:
874
886
  S,
875
887
  P,
876
888
  k,
877
- l(),
889
+ f(),
878
890
  w,
879
891
  ie,
880
892
  se
@@ -883,7 +895,7 @@ React keys must be passed directly to JSX without using spread:
883
895
  function E(i) {
884
896
  typeof i == "object" && i !== null && i.$$typeof === C && i._store && (i._store.validated = 1);
885
897
  }
886
- var T = ke, C = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), D = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), b = Symbol.for("react.client.reference"), j = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, B = Array.isArray, H = console.createTask ? console.createTask : function() {
898
+ var T = Me, C = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), D = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), b = Symbol.for("react.client.reference"), j = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, B = Array.isArray, V = console.createTask ? console.createTask : function() {
887
899
  return null;
888
900
  };
889
901
  T = {
@@ -894,7 +906,7 @@ React keys must be passed directly to JSX without using spread:
894
906
  var de, he = {}, pe = T["react-stack-bottom-frame"].bind(
895
907
  T,
896
908
  n
897
- )(), ve = H(u(n)), me = {};
909
+ )(), ve = V(u(n)), me = {};
898
910
  X.Fragment = y, X.jsx = function(i, m, w, R, k) {
899
911
  var P = 1e4 > j.recentlyCreatedOwnerStacks++;
900
912
  return g(
@@ -905,7 +917,7 @@ React keys must be passed directly to JSX without using spread:
905
917
  R,
906
918
  k,
907
919
  P ? Error("react-stack-top-frame") : pe,
908
- P ? H(u(i)) : ve
920
+ P ? V(u(i)) : ve
909
921
  );
910
922
  }, X.jsxs = function(i, m, w, R, k) {
911
923
  var P = 1e4 > j.recentlyCreatedOwnerStacks++;
@@ -917,26 +929,26 @@ React keys must be passed directly to JSX without using spread:
917
929
  R,
918
930
  k,
919
931
  P ? Error("react-stack-top-frame") : pe,
920
- P ? H(u(i)) : ve
932
+ P ? V(u(i)) : ve
921
933
  );
922
934
  };
923
935
  }()), X;
924
936
  }
925
- var Oe;
926
- function ur() {
927
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ee.exports = ir() : ee.exports = sr()), ee.exports;
937
+ var Re;
938
+ function lr() {
939
+ return Re || (Re = 1, process.env.NODE_ENV === "production" ? ee.exports = cr() : ee.exports = fr()), ee.exports;
928
940
  }
929
- var W = ur();
930
- const br = (e, t) => {
941
+ var W = lr();
942
+ const yr = (e, t) => {
931
943
  const r = (n) => [
932
944
  e,
933
- ...Object.entries(n ?? {}).sort((c, h) => c[0].localeCompare(h[0])).flat()
945
+ ...Object.entries(n ?? {}).sort((c, d) => c[0].localeCompare(d[0])).flat()
934
946
  ].join("-");
935
947
  let u = /* @__PURE__ */ new Set();
936
- const l = (n) => {
937
- const c = r(n), h = Y(c), p = t(n), v = z(() => new Error().stack, []);
938
- return Le(
939
- h,
948
+ const f = (n) => {
949
+ const c = r(n), d = Y(c), p = t(n), v = z(() => new Error().stack, []);
950
+ return Pe(
951
+ d,
940
952
  ...Object.entries(p)
941
953
  ), L(() => {
942
954
  if (u.has(c)) {
@@ -948,44 +960,44 @@ const br = (e, t) => {
948
960
  };
949
961
  }), /* @__PURE__ */ W.jsx(W.Fragment, {});
950
962
  };
951
- return l.displayName = `State[${(t == null ? void 0 : t.name) ?? "??"}]`, {
963
+ return f.displayName = `State[${(t == null ? void 0 : t.name) ?? "??"}]`, {
952
964
  resolveCtxName: r,
953
- Root: l,
965
+ Root: f,
954
966
  useCtxStateStrict: (n) => {
955
- const c = r(n), h = z(() => new Error().stack, []);
967
+ const c = r(n), d = z(() => new Error().stack, []);
956
968
  return L(() => {
957
969
  if (!u.has(c)) {
958
970
  const p = new Error("RootContext [" + c + "] is not mounted");
959
- throw p.stack = h, p;
971
+ throw p.stack = d, p;
960
972
  }
961
973
  }, [c]), Y(c);
962
974
  },
963
975
  useCtxState: (n) => {
964
- const c = r(n), h = z(() => new Error().stack, []);
976
+ const c = r(n), d = z(() => new Error().stack, []);
965
977
  return L(() => {
966
978
  if (!u.has(c)) {
967
979
  const p = new Error("RootContext [" + c + "] is not mounted");
968
- p.stack = h;
980
+ p.stack = d;
969
981
  let v = setTimeout(() => console.error(p), 1e3);
970
982
  return () => clearTimeout(v);
971
983
  }
972
984
  }, [u.has(c)]), Y(c);
973
985
  }
974
986
  };
975
- }, cr = /* @__PURE__ */ function() {
987
+ }, dr = /* @__PURE__ */ function() {
976
988
  const e = /* @__PURE__ */ new WeakMap();
977
989
  return (t) => {
978
990
  let r = e.get(t);
979
991
  return r || e.set(t, r = ((t == null ? void 0 : t.name) ?? "") + Math.random().toString()), r;
980
992
  };
981
- }(), fr = (e) => [
993
+ }(), hr = (e) => [
982
994
  ...Object.entries(e ?? {}).sort((t, r) => t[0].localeCompare(r[0])).flat()
983
- ].join("-"), gr = ({ Wrapper: e = $e }) => {
984
- const t = Y("auto-ctx"), [r, u] = U({}), l = Me(
995
+ ].join("-"), Er = ({ Wrapper: e = xe }) => {
996
+ const t = Y("auto-ctx"), [r, u] = U({}), f = Ie(
985
997
  (n, c) => {
986
- const h = cr(n), p = fr(c);
998
+ const d = dr(n), p = hr(c);
987
999
  return u(({
988
- [h]: {
1000
+ [d]: {
989
1001
  Component: v = n,
990
1002
  subState: {
991
1003
  [p]: g = { params: c, counter: 0 },
@@ -995,7 +1007,7 @@ const br = (e, t) => {
995
1007
  ...T
996
1008
  }) => ({
997
1009
  ...T,
998
- [h]: {
1010
+ [d]: {
999
1011
  Component: v,
1000
1012
  subState: {
1001
1013
  ...E,
@@ -1006,7 +1018,7 @@ const br = (e, t) => {
1006
1018
  }
1007
1019
  }
1008
1020
  })), () => u(({
1009
- [h]: {
1021
+ [d]: {
1010
1022
  Component: v = n,
1011
1023
  subState: {
1012
1024
  [p]: g = { params: c, counter: 0 },
@@ -1016,7 +1028,7 @@ const br = (e, t) => {
1016
1028
  ...T
1017
1029
  }) => ({
1018
1030
  ...T,
1019
- [h]: {
1031
+ [d]: {
1020
1032
  Component: v,
1021
1033
  subState: {
1022
1034
  ...E,
@@ -1032,27 +1044,27 @@ const br = (e, t) => {
1032
1044
  },
1033
1045
  []
1034
1046
  );
1035
- return Le(
1047
+ return Pe(
1036
1048
  t,
1037
- ["subscribe", l],
1049
+ ["subscribe", f],
1038
1050
  ["state", r]
1039
1051
  ), /* @__PURE__ */ W.jsx(W.Fragment, { children: Object.entries(r).flatMap(
1040
- ([n, { Component: c, subState: h }]) => Object.entries(h).map(([p, { counter: v, params: g }]) => ({ key: n + p, Component: c, params: g, counter: v })).filter((p) => p.counter > 0).map(({ key: p, params: v, Component: g }) => /* @__PURE__ */ W.jsx(e, { children: /* @__PURE__ */ W.jsx(g, { ...v }) }, p))
1052
+ ([n, { Component: c, subState: d }]) => Object.entries(d).map(([p, { counter: v, params: g }]) => ({ key: n + p, Component: c, params: g, counter: v })).filter((p) => p.counter > 0).map(({ key: p, params: v, Component: g }) => /* @__PURE__ */ W.jsx(e, { children: /* @__PURE__ */ W.jsx(g, { ...v }) }, p))
1041
1053
  ) });
1042
- }, _r = ({ Root: e, useCtxState: t, useCtxStateStrict: r, resolveCtxName: u }) => ({
1043
- useCtxState: (l) => {
1044
- const n = u(l), c = ar(Y("auto-ctx"), "subscribe");
1045
- return L(() => c == null ? void 0 : c(e, l), [c, n]), Y(n);
1054
+ }, wr = ({ Root: e, useCtxState: t, useCtxStateStrict: r, resolveCtxName: u }) => ({
1055
+ useCtxState: (f) => {
1056
+ const n = u(f), c = ur(Y("auto-ctx"), "subscribe");
1057
+ return L(() => c == null ? void 0 : c(e, f), [c, n]), Y(n);
1046
1058
  }
1047
- }), yr = (e) => {
1048
- const [, t] = U(0), { proxy: r, finalGetter: u, openGetter: l, clean: n } = z(
1059
+ }), Tr = (e) => {
1060
+ const [, t] = U(0), { proxy: r, finalGetter: u, openGetter: f, clean: n } = z(
1049
1061
  () => {
1050
- const c = /* @__PURE__ */ new Set(), h = {}, p = /* @__PURE__ */ new Map(), v = new Proxy(
1062
+ const c = /* @__PURE__ */ new Set(), d = {}, p = /* @__PURE__ */ new Map(), v = new Proxy(
1051
1063
  e == null ? void 0 : e.data,
1052
1064
  {
1053
1065
  get(y, O) {
1054
1066
  if (g)
1055
- return c.add(O), h[O] = y[O];
1067
+ return c.add(O), d[O] = y[O];
1056
1068
  throw new Error("now allow here");
1057
1069
  }
1058
1070
  }
@@ -1060,7 +1072,7 @@ const br = (e, t) => {
1060
1072
  let g = !0, E = ae(() => {
1061
1073
  [...c.values()].some((y) => {
1062
1074
  var O;
1063
- return h[y] != ((O = e == null ? void 0 : e.data) == null ? void 0 : O[y]);
1075
+ return d[y] != ((O = e == null ? void 0 : e.data) == null ? void 0 : O[y]);
1064
1076
  }) && t((y) => y + 1);
1065
1077
  }, 0), T = () => {
1066
1078
  g = !0, c.clear();
@@ -1078,23 +1090,23 @@ const br = (e, t) => {
1078
1090
  },
1079
1091
  [e]
1080
1092
  );
1081
- return l(), setTimeout(u, 0), L(
1093
+ return f(), setTimeout(u, 0), L(
1082
1094
  () => () => n(),
1083
1095
  [n]
1084
1096
  ), r;
1085
1097
  };
1086
1098
  export {
1087
- gr as AutoRootCtx,
1088
- nr as Context,
1089
- _r as createAutoCtx,
1090
- br as createRootCtx,
1091
- or as getContext,
1099
+ Er as AutoRootCtx,
1100
+ ir as Context,
1101
+ wr as createAutoCtx,
1102
+ yr as createRootCtx,
1103
+ sr as getContext,
1092
1104
  Y as useDataContext,
1093
- hr as useDataSource,
1094
- Le as useDataSourceMultiple,
1095
- ar as useDataSubscribe,
1096
- vr as useDataSubscribeMultiple,
1097
- mr as useDataSubscribeMultipleWithDebounce,
1098
- pr as useDataSubscribeWithTransform,
1099
- yr as useQuickSubscribe
1105
+ mr as useDataSource,
1106
+ Pe as useDataSourceMultiple,
1107
+ ur as useDataSubscribe,
1108
+ gr as useDataSubscribeMultiple,
1109
+ _r as useDataSubscribeMultipleWithDebounce,
1110
+ br as useDataSubscribeWithTransform,
1111
+ Tr as useQuickSubscribe
1100
1112
  };