react-state-custom 1.0.25 → 1.0.27

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,59 +1,98 @@
1
- import A, { useRef as j, useMemo as g, useEffect as m, useState as p, useCallback as F, Fragment as H, useContext as G } from "react";
2
- import { jsx as h, Fragment as D, jsxs as v } from "react/jsx-runtime";
3
- function C(e, t) {
4
- let n = null, r = function(...o) {
5
- n && clearTimeout(n), n = setTimeout(() => {
6
- e(...o);
7
- }, t);
1
+ import M, { useRef as P, useMemo as D, useEffect as g, useState as R, useCallback as Z, Fragment as x, useContext as ee } from "react";
2
+ import { jsx as v, Fragment as $, jsxs as T } from "react/jsx-runtime";
3
+ var L = { exports: {} }, U = {};
4
+ /**
5
+ * @license React
6
+ * react-compiler-runtime.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var H;
14
+ function te() {
15
+ if (H) return U;
16
+ H = 1;
17
+ var s = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
18
+ return U.c = function(e) {
19
+ return s.H.useMemoCache(e);
20
+ }, U;
21
+ }
22
+ var V = {};
23
+ /**
24
+ * @license React
25
+ * react-compiler-runtime.development.js
26
+ *
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+ var F;
33
+ function ne() {
34
+ return F || (F = 1, process.env.NODE_ENV !== "production" && function() {
35
+ var s = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
36
+ V.c = function(e) {
37
+ var t = s.H;
38
+ return t === null && console.error(
39
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
40
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
41
+ 2. You might be breaking the Rules of Hooks
42
+ 3. You might have more than one copy of React in the same app
43
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
44
+ ), t.useMemoCache(e);
45
+ };
46
+ }()), V;
47
+ }
48
+ var G;
49
+ function se() {
50
+ return G || (G = 1, process.env.NODE_ENV === "production" ? L.exports = te() : L.exports = ne()), L.exports;
51
+ }
52
+ var C = se();
53
+ function k(s, e) {
54
+ let t = null, n = function(...a) {
55
+ t && clearTimeout(t), t = setTimeout(() => {
56
+ s(...a);
57
+ }, e);
8
58
  };
9
- return r.cancel = () => clearTimeout(n), r;
59
+ return n.cancel = () => clearTimeout(t), n;
10
60
  }
11
- function U(e) {
12
- const t = /* @__PURE__ */ new Map(), n = function(...r) {
13
- const o = JSON.stringify(r);
14
- if (t.has(o))
15
- return t.get(o);
16
- const a = e(...r);
17
- return t.set(o, a), a;
61
+ function re(s) {
62
+ const e = /* @__PURE__ */ new Map(), t = function(...n) {
63
+ const a = JSON.stringify(n);
64
+ if (e.has(a))
65
+ return e.get(a);
66
+ const r = s(...n);
67
+ return e.set(a, r), r;
18
68
  };
19
- return n.cache = t, n;
69
+ return t.cache = e, t;
20
70
  }
21
- const y = () => Math.random().toString().slice(2), K = (e) => {
22
- const { current: { computedHash: t } } = j({
23
- /**
24
- * Getter for the computed hash function.
25
- *
26
- * - Initializes with an empty array and a random hash.
27
- * - Returns a function that compares the current array to the previous one.
28
- * - Updates the hash if any difference is detected.
29
- */
30
- get computedHash() {
31
- let n = [], r = y();
32
- return (o) => {
33
- let a = !1;
34
- return a = a || !o != !n, a = a || o?.length != n?.length, a = a || o.some((s, i) => s != n[i]), n = o, a && (r = y()), r;
35
- };
36
- }
71
+ const q = () => Math.random().toString().slice(2), oe = (s) => {
72
+ const e = P({
73
+ values: [],
74
+ id: q()
37
75
  });
38
- return t(e);
39
- }, T = "@--change-event";
40
- class $ extends Event {
41
- constructor(t, n) {
42
- super(String(t)), this.event = t, this.value = n;
76
+ let t = !1;
77
+ return t = t || !s != !e.current.values, t = t || s?.length != e.current.values?.length, t = t || s?.some((n, a) => n != e.current.values[a]), t && (e.current.values = s, e.current.id = q()), e.current.id;
78
+ }, I = "@--change-event";
79
+ class ae extends Event {
80
+ constructor(e, t) {
81
+ super(String(e)), this.event = e, this.value = t;
43
82
  }
44
83
  }
45
- class R extends Event {
46
- constructor(t) {
47
- super(T, t), this.value = t;
84
+ class J extends Event {
85
+ constructor(e) {
86
+ super(I, e), this.value = e;
48
87
  }
49
88
  }
50
- class J extends EventTarget {
89
+ class ie extends EventTarget {
51
90
  /**
52
91
  * Create a new Context instance.
53
92
  * @param name - The name of the context (for debugging).
54
93
  */
55
- constructor(t) {
56
- console.log("[CONTEXT] %s", t), super(), this.name = t;
94
+ constructor(e) {
95
+ super(), this.name = e;
57
96
  }
58
97
  /**
59
98
  * The current data held by the context.
@@ -69,11 +108,11 @@ class J extends EventTarget {
69
108
  * @param key - The key to update.
70
109
  * @param value - The new value.
71
110
  */
72
- publish(t, n) {
73
- if (n != this.data[t]) {
74
- this.data[t] = n;
75
- let r = new $(t, n);
76
- this.dispatchEvent(r), this.dispatchEvent(new R(r));
111
+ publish(e, t) {
112
+ if (t != this.data[e]) {
113
+ this.data[e] = t;
114
+ let n = new ae(e, t);
115
+ this.dispatchEvent(n), this.dispatchEvent(new J(n));
77
116
  }
78
117
  }
79
118
  /**
@@ -82,389 +121,582 @@ class J extends EventTarget {
82
121
  * @param _listener - Callback invoked with the new value.
83
122
  * @returns Unsubscribe function.
84
123
  */
85
- subscribe(t, n) {
86
- const r = ({ event: o, value: a }) => {
87
- n(a);
124
+ subscribe(e, t) {
125
+ const n = ({
126
+ event: a,
127
+ value: r
128
+ }) => {
129
+ t(r);
88
130
  };
89
- return this.addEventListener(String(t), r), t in this.data && n(this.data[t]), () => this.removeEventListener(String(t), r);
131
+ return this.addEventListener(String(e), n), e in this.data && t(this.data[e]), () => this.removeEventListener(String(e), n);
90
132
  }
91
- subscribeAll(t) {
92
- const n = (r) => {
93
- if (r instanceof R) {
94
- const { value: o } = r;
95
- t(o.event, this.data);
133
+ subscribeAll(e) {
134
+ const t = (n) => {
135
+ if (n instanceof J) {
136
+ const {
137
+ value: a
138
+ } = n;
139
+ e(a.event, this.data);
96
140
  }
97
141
  };
98
- return this.addEventListener(String(T), n), () => this.removeEventListener(String(T), n);
142
+ return this.addEventListener(String(I), t), () => this.removeEventListener(String(I), t);
99
143
  }
100
144
  }
101
- const S = U((e) => new J(e)), b = (e = "noname") => {
102
- const t = g(() => S(e), [e]);
103
- return m(() => (t.useCounter += 1, () => {
104
- t.useCounter -= 1, t.useCounter <= 0 && setTimeout(() => {
105
- t.useCounter <= 0 && S.cache.delete(JSON.stringify([e]));
145
+ const A = re((s) => new ie(s)), w = (s = "noname") => {
146
+ const e = D(() => A(s), [s]);
147
+ return g(() => (e.useCounter += 1, () => {
148
+ e.useCounter -= 1, e.useCounter <= 0 && setTimeout(() => {
149
+ e.useCounter <= 0 && A.cache.delete(JSON.stringify([s]));
106
150
  }, 100);
107
- }), [t]), t;
108
- }, V = (e, ...t) => {
109
- const n = new Error("[ctx] useRegistryChecker failed " + JSON.stringify({ names: t, ctx: e?.name ?? "undefined" }));
110
- m(
111
- () => {
112
- if (e)
113
- return t.some((r) => e.registry.has(r)) && console.error(n), t.forEach((r) => e.registry.add(r)), () => {
114
- t.forEach((r) => e.registry.delete(r));
115
- };
116
- },
117
- [e, t.length]
118
- );
119
- }, re = (e, t, n) => {
120
- m(() => {
121
- e && e.data[t] != n && e.publish(t, n);
122
- }, [t, n, e]), V(e, t);
123
- }, W = (e, t, n = 0) => {
124
- const [{ value: r }, o] = p(() => ({ value: e?.data?.[t] }));
125
- return m(() => {
126
- if (e) {
127
- let a = n == 0 ? (i) => o({ value: i }) : C((i) => o({ value: i }), n), s = e.subscribe(t, a);
128
- return r != e.data[t] && o({ value: e.data[t] }), () => {
129
- s();
151
+ }), [e]), e;
152
+ }, W = (s, ...e) => {
153
+ const t = C.c(6), n = e;
154
+ new Error("[ctx] useRegistryChecker failed " + JSON.stringify({
155
+ names: n,
156
+ ctx: s?.name ?? "undefined"
157
+ }));
158
+ let a;
159
+ t[0] !== s || t[1] !== n ? (a = () => {
160
+ if (s)
161
+ return n.some((l) => s.registry.has(l)), n.forEach((l) => s.registry.add(l)), () => {
162
+ n.forEach((l) => s.registry.delete(l));
163
+ };
164
+ }, t[0] = s, t[1] = n, t[2] = a) : a = t[2];
165
+ let r;
166
+ t[3] !== s || t[4] !== n.length ? (r = [s, n.length], t[3] = s, t[4] = n.length, t[5] = r) : r = t[5], g(a, r);
167
+ }, ke = (s, e, t) => {
168
+ const n = C.c(5);
169
+ let a, r;
170
+ n[0] !== s || n[1] !== e || n[2] !== t ? (a = () => {
171
+ s && s.data[e] != t && s.publish(e, t);
172
+ }, r = [e, t, s], n[0] = s, n[1] = e, n[2] = t, n[3] = a, n[4] = r) : (a = n[3], r = n[4]), g(a, r), W(s, e);
173
+ }, le = (s, e, t) => {
174
+ const n = C.c(11), a = t === void 0 ? 0 : t;
175
+ let r;
176
+ n[0] !== s?.data || n[1] !== e ? (r = () => ({
177
+ value: s?.data?.[e]
178
+ }), n[0] = s?.data, n[1] = e, n[2] = r) : r = n[2];
179
+ const [l, i] = R(r), {
180
+ value: o
181
+ } = l;
182
+ let u;
183
+ n[3] !== s || n[4] !== a || n[5] !== e || n[6] !== o ? (u = () => {
184
+ if (s) {
185
+ const d = a == 0 ? (m) => i({
186
+ value: m
187
+ }) : k((m) => i({
188
+ value: m
189
+ }), a), f = s.subscribe(e, d);
190
+ return o != s.data[e] && i({
191
+ value: s.data[e]
192
+ }), () => {
193
+ f();
130
194
  };
131
195
  }
132
- }, [t, e]), e?.data[t];
133
- }, se = (e, t, n) => {
134
- const [, r] = p(0), o = g(
135
- () => n(e?.data[t]),
136
- [n, e?.data[t]]
137
- );
138
- return m(() => {
139
- if (e) {
140
- let a = o, s = () => {
141
- let c = n(e.data[t]);
142
- c != a && (a = c, r((l) => l + 1));
143
- }, i = e.subscribe(t, s);
144
- return s(), () => i();
196
+ }, n[3] = s, n[4] = a, n[5] = e, n[6] = o, n[7] = u) : u = n[7];
197
+ let c;
198
+ return n[8] !== s || n[9] !== e ? (c = [e, s], n[8] = s, n[9] = e, n[10] = c) : c = n[10], g(u, c), s?.data[e];
199
+ }, Oe = (s, e, t) => {
200
+ const [, n] = R(0), a = D(() => t(s?.data[e]), [t, s?.data[e]]);
201
+ return g(() => {
202
+ if (s) {
203
+ let r = a, l = () => {
204
+ let o = t(s.data[e]);
205
+ o != r && (r = o, n((u) => u + 1));
206
+ }, i = s.subscribe(e, l);
207
+ return l(), () => i();
145
208
  }
146
- }, [t, e]), o;
147
- }, L = (e, ...t) => {
148
- m(() => {
149
- if (e)
150
- for (let [n, r] of t)
151
- e.data[n] != r && e.publish(n, r);
152
- }, [e, K(t.flat())]), V(e, ...t.map((n) => n[0]));
153
- }, ae = (e, ...t) => {
154
- const [, n] = p(0), r = t.map((o) => e?.data?.[o]);
155
- return m(() => {
156
- if (e) {
157
- let o = r;
158
- const a = C(() => {
159
- let c = t.map((l) => e?.data?.[l]);
160
- t.some((l, u) => o[u] != c[u]) && (o = c, n((l) => l + 1));
161
- }, 1);
162
- let s = t.map((c) => e.subscribe(c, a)), i = setTimeout(a, 1);
209
+ }, [e, s]), a;
210
+ }, Y = (s, ...e) => {
211
+ g(() => {
212
+ if (s)
213
+ for (let [t, n] of e)
214
+ s.data[t] != n && s.publish(t, n);
215
+ }, [s, oe(e.flat())]), W(s, ...e.map((t) => t[0]));
216
+ }, Ae = (s, ...e) => {
217
+ const t = C.c(18), n = e, [, a] = R(0);
218
+ let r;
219
+ if (t[0] !== s?.data || t[1] !== n) {
220
+ let c;
221
+ t[3] !== s?.data ? (c = (d) => s?.data?.[d], t[3] = s?.data, t[4] = c) : c = t[4], r = n.map(c), t[0] = s?.data, t[1] = n, t[2] = r;
222
+ } else
223
+ r = t[2];
224
+ const l = r;
225
+ let i;
226
+ t[5] !== s || t[6] !== n || t[7] !== l || t[8] !== a ? (i = () => {
227
+ if (s) {
228
+ let c = l;
229
+ const d = k(() => {
230
+ const p = n.map((h) => s?.data?.[h]);
231
+ n.some((h, b) => c[b] != p[b]) && (c = p, a(ce));
232
+ }, 1), f = n.map((p) => s.subscribe(p, d)), m = setTimeout(d, 1);
163
233
  return () => {
164
- clearTimeout(i), a.cancel(), s.forEach((c) => c());
234
+ clearTimeout(m), d.cancel(), f.forEach(ue);
165
235
  };
166
236
  }
167
- }, [e, ...t]), Object.fromEntries(t.map((o, a) => [o, r[a]]));
168
- }, oe = (e, t = 50, ...n) => {
169
- const [, r] = p(0), o = n.map((a) => e?.data?.[a]);
170
- return m(() => {
171
- if (e) {
172
- let a = o;
173
- const s = C(() => {
174
- let l = n.map((u) => e?.data?.[u]);
175
- n.some((u, d) => a[d] != l[d]) && (a = l, r((u) => u + 1));
176
- }, t);
177
- let i = n.map((l) => e.subscribe(l, s)), c = setTimeout(s, 1);
237
+ }, t[5] = s, t[6] = n, t[7] = l, t[8] = a, t[9] = i) : i = t[9];
238
+ let o;
239
+ t[10] !== s || t[11] !== n ? (o = [s, ...n], t[10] = s, t[11] = n, t[12] = o) : o = t[12], g(i, o);
240
+ let u;
241
+ if (t[13] !== n || t[14] !== l) {
242
+ let c;
243
+ t[16] !== l ? (c = (d, f) => [d, l[f]], t[16] = l, t[17] = c) : c = t[17], u = Object.fromEntries(n.map(c)), t[13] = n, t[14] = l, t[15] = u;
244
+ } else
245
+ u = t[15];
246
+ return u;
247
+ }, Ke = (s, e, ...t) => {
248
+ const n = C.c(14), a = e === void 0 ? 50 : e, r = t, [, l] = R(0);
249
+ let i;
250
+ if (n[0] !== s?.data || n[1] !== r) {
251
+ let d;
252
+ n[3] !== s?.data ? (d = (f) => s?.data?.[f], n[3] = s?.data, n[4] = d) : d = n[4], i = r.map(d), n[0] = s?.data, n[1] = r, n[2] = i;
253
+ } else
254
+ i = n[2];
255
+ const o = i;
256
+ let u;
257
+ n[5] !== s || n[6] !== a || n[7] !== r || n[8] !== o || n[9] !== l ? (u = () => {
258
+ if (s) {
259
+ let d = o;
260
+ const f = k(() => {
261
+ const h = r.map((b) => s?.data?.[b]);
262
+ r.some((b, S) => d[S] != h[S]) && (d = h, l(fe));
263
+ }, a), m = r.map((h) => s.subscribe(h, f)), p = setTimeout(f, 1);
178
264
  return () => {
179
- clearTimeout(c), s.cancel(), i.forEach((l) => l());
265
+ clearTimeout(p), f.cancel(), m.forEach(de);
180
266
  };
181
267
  }
182
- }, [e, ...n]), o;
183
- }, ce = (e, t) => {
184
- const n = (s) => [
185
- e,
186
- ...Object.entries(s ?? {}).sort((i, c) => i[0].localeCompare(c[0])).flat()
187
- ].join("-"), r = /* @__PURE__ */ new Set(), o = ({}) => /* @__PURE__ */ h(D, {}), a = (s) => {
188
- const i = t(s), c = n(s), l = b(c), u = g(() => new Error().stack, []);
189
- return L(
190
- l,
191
- ...Object.entries(i)
192
- ), m(() => {
193
- if (r.has(c)) {
194
- const d = new Error("RootContext " + c + " are mounted more than once");
195
- throw d.stack = u, d;
268
+ }, n[5] = s, n[6] = a, n[7] = r, n[8] = o, n[9] = l, n[10] = u) : u = n[10];
269
+ let c;
270
+ return n[11] !== s || n[12] !== r ? (c = [s, ...r], n[11] = s, n[12] = r, n[13] = c) : c = n[13], g(u, c), o;
271
+ };
272
+ function ce(s) {
273
+ return s + 1;
274
+ }
275
+ function ue(s) {
276
+ return s();
277
+ }
278
+ function fe(s) {
279
+ return s + 1;
280
+ }
281
+ function de(s) {
282
+ return s();
283
+ }
284
+ const B = (s = void 0) => Object.keys(s ?? {}).sort().map((e) => {
285
+ const t = s?.[e];
286
+ if (t !== null && (typeof t == "object" || typeof t == "function"))
287
+ throw new Error(`Parameter "${e}" must be a primitive value (string, number, bigint, null, or undefined), but received ${typeof t}`);
288
+ return e + "=" + t;
289
+ }).join("&"), Le = (s, e) => {
290
+ const t = (i) => [s, B(i)].filter(Boolean).join("?"), n = /* @__PURE__ */ new Set(), a = (i) => {
291
+ const o = C.c(5), u = e(i), c = t(i), d = w(c);
292
+ let f;
293
+ o[0] === Symbol.for("react.memo_cache_sentinel") ? (f = new Error(), o[0] = f) : f = o[0];
294
+ const m = f.stack;
295
+ let p;
296
+ o[1] !== u ? (p = Object.entries(u), o[1] = u, o[2] = p) : p = o[2], Y(d, ...p);
297
+ let h;
298
+ return o[3] !== c ? (h = () => {
299
+ if (n.has(c)) {
300
+ const b = new Error("RootContext " + c + " are mounted more than once");
301
+ throw b.stack = m, b;
196
302
  }
197
- return r.add(c), () => {
198
- r.delete(c);
303
+ return n.add(c), () => {
304
+ n.delete(c);
199
305
  };
200
- }), /* @__PURE__ */ h(o, { ...s, ...i });
306
+ }, o[3] = c, o[4] = h) : h = o[4], g(h), u;
307
+ }, r = (i) => {
308
+ const o = C.c(1);
309
+ let u;
310
+ return o[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ v($, {}), o[0] = u) : u = o[0], u;
311
+ }, l = (i) => {
312
+ const o = C.c(3), u = a(i);
313
+ let c;
314
+ return o[0] !== i || o[1] !== u ? (c = /* @__PURE__ */ v(r, { ...i, ...u }), o[0] = i, o[1] = u, o[2] = c) : c = o[2], c;
201
315
  };
202
- return a.displayName = `StateContainer[${e}]`, o.displayName = `Debug[${e}]`, {
203
- name: e,
204
- resolveCtxName: n,
205
- Root: a,
316
+ return a.displayName = `useState[${s}]`, l.displayName = `StateContainer[${s}]`, r.displayName = `Debug[${s}]`, {
317
+ name: s,
318
+ getCtxName: t,
319
+ useRootState: a,
320
+ Root: l,
206
321
  /**
207
322
  * Strict consumer: throws if the corresponding Root for these props isn't mounted.
208
323
  * Use in development/tests to fail fast when wiring is incorrect.
209
324
  */
210
- useCtxStateStrict: (s) => {
211
- const i = n(s), c = g(() => new Error().stack, []);
212
- return m(() => {
213
- if (!r.has(i)) {
214
- const l = new Error("RootContext [" + i + "] is not mounted");
215
- throw l.stack = c, l;
325
+ useCtxStateStrict: (i) => {
326
+ const o = t(i), u = D(() => new Error().stack, []);
327
+ return g(() => {
328
+ if (!n.has(o)) {
329
+ const c = new Error("RootContext [" + o + "] is not mounted");
330
+ throw c.stack = u, c;
216
331
  }
217
- }, [i]), b(i);
332
+ }, [o]), w(o);
218
333
  },
219
334
  /**
220
335
  * Lenient consumer: schedules a console.error if the Root isn't mounted instead of throwing.
221
336
  * Useful in production to avoid hard crashes while still surfacing misconfiguration.
222
337
  */
223
- useCtxState: (s) => {
224
- const i = n(s), c = g(() => new Error().stack, []);
225
- return m(() => {
226
- if (!r.has(i)) {
227
- const l = new Error("RootContext [" + i + "] is not mounted");
228
- l.stack = c;
229
- let u = setTimeout(() => console.error(l), 1e3);
230
- return () => clearTimeout(u);
338
+ useCtxState: (i) => {
339
+ const o = t(i), u = D(() => new Error().stack, []);
340
+ return g(() => {
341
+ if (!n.has(o)) {
342
+ const c = new Error("RootContext [" + o + "] is not mounted");
343
+ c.stack = u;
344
+ let d = setTimeout(() => console.error(c), 1e3);
345
+ return () => clearTimeout(d);
231
346
  }
232
- }, [r.has(i)]), b(i);
347
+ }, [n.has(o)]), w(o);
233
348
  }
234
349
  };
235
- }, I = /* @__PURE__ */ function() {
236
- const e = /* @__PURE__ */ new WeakMap();
237
- return (t) => {
238
- let n = e.get(t);
239
- return n || e.set(t, n = (t?.name ?? "") + ":" + Math.random().toString()), n;
240
- };
241
- }(), O = (e) => [
242
- ...Object.entries(e ?? {}).sort((t, n) => t[0].localeCompare(n[0])).flat()
243
- ].join("-"), ie = ({ Wrapper: e = H }) => {
244
- const t = b("auto-ctx"), [n, r] = p({}), o = F(
245
- (s, i, c, l = 0) => {
246
- const u = [s, I(i), O(c)].join(":");
247
- return r((d) => ({
248
- ...d,
249
- [u]: {
250
- ...d[u] ?? { Component: i, params: c, paramKey: O(c) },
251
- counter: (d[u]?.counter ?? 0) + 1,
252
- keepUntil: void 0
350
+ }, he = (s) => {
351
+ const e = C.c(1);
352
+ let t;
353
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ v($, {}), e[0] = t) : t = e[0], t;
354
+ }, me = ({
355
+ useStateFn: s,
356
+ params: e,
357
+ debugging: t
358
+ }) => {
359
+ const n = s(e);
360
+ return t ? /* @__PURE__ */ v(he, { ...n }) : /* @__PURE__ */ v($, {});
361
+ }, je = ({
362
+ Wrapper: s = x,
363
+ debugging: e = !1
364
+ }) => {
365
+ const t = w("auto-ctx"), [n, a] = R({}), r = Z((i, o, u, c = 0) => {
366
+ const d = [i, B(u)].filter(Boolean).join("?");
367
+ return a((f) => ({
368
+ ...f,
369
+ [d]: {
370
+ ...f[d] ?? {
371
+ useStateFn: o,
372
+ params: u
373
+ },
374
+ counter: (f[d]?.counter ?? 0) + 1,
375
+ keepUntil: void 0,
376
+ useStateFn: o
377
+ }
378
+ })), () => a(({
379
+ [d]: f,
380
+ ...m
381
+ }) => ({
382
+ ...m,
383
+ ...f?.counter > 1 || c > 0 ? {
384
+ [d]: {
385
+ ...f,
386
+ counter: f.counter - 1,
387
+ keepUntil: f.counter > 1 ? void 0 : Date.now() + c
253
388
  }
254
- })), () => r(({ [u]: d, ...w }) => ({
255
- ...w,
256
- ...d?.counter > 1 || l > 0 ? {
257
- [u]: {
258
- ...d,
259
- counter: d.counter - 1,
260
- keepUntil: d.counter > 1 ? void 0 : Date.now() + l
261
- }
262
- } : {}
263
- }));
264
- },
265
- []
266
- ), a = g(
267
- () => Object.entries(n).filter(([, { counter: s, keepUntil: i }]) => s <= 0 && i).toSorted(([, { keepUntil: s = 0 }], [, { keepUntil: i = 0 }]) => s - i)?.at(0),
268
- [n]
269
- );
270
- return console.log({ state: n, nextDelete: a }), m(() => {
271
- if (a) {
272
- const [s, { keepUntil: i }] = a;
273
- if (typeof i > "u")
274
- throw new Error("Invalid state mfr");
275
- let c = setTimeout(() => {
276
- r(({ [s]: l, ...u }) => u);
277
- }, Math.max(0, i - Date.now()));
389
+ } : {}
390
+ }));
391
+ }, []), l = D(() => Object.entries(n).filter(([, {
392
+ counter: i,
393
+ keepUntil: o
394
+ }]) => i <= 0 && o).toSorted(([, {
395
+ keepUntil: i = 0
396
+ }], [, {
397
+ keepUntil: o = 0
398
+ }]) => i - o)?.at(0), [n]);
399
+ return g(() => {
400
+ if (l) {
401
+ const [i, {
402
+ keepUntil: o
403
+ }] = l;
404
+ if (typeof o > "u") throw new Error("Invalid state mgr");
405
+ let u = setTimeout(() => {
406
+ a(({
407
+ [i]: c,
408
+ ...d
409
+ }) => d);
410
+ }, Math.max(0, o - Date.now()));
278
411
  return () => {
279
- clearTimeout(c);
412
+ clearTimeout(u);
280
413
  };
281
414
  }
282
- }, [a]), L(
283
- t,
284
- ["subscribe", o],
285
- ["state", n]
286
- ), /* @__PURE__ */ h(D, { children: Object.entries(n).filter(([, { counter: s, keepUntil: i = 0 }]) => s > 0 || i >= Date.now()).map(([s, { Component: i, params: c, counter: l, paramKey: u, keepUntil: d }]) => /* @__PURE__ */ h(e, { children: /* @__PURE__ */ h(i, { ...c }, u) }, s)) });
287
- }, le = ({ Root: e, resolveCtxName: t, name: n }, r = 0) => ({
288
- useCtxState: (o) => {
289
- const a = t(o), s = W(b("auto-ctx"), "subscribe");
290
- return m(
291
- () => s?.(n, e, o, r),
292
- [e, s, n, a, r]
293
- ), b(a);
415
+ }, [l]), Y(t, ["subscribe", r], ["state", n]), /* @__PURE__ */ v($, { children: Object.entries(n).filter(([, {
416
+ counter: i,
417
+ keepUntil: o = 0
418
+ }]) => i > 0 || o >= Date.now()).map(([i, {
419
+ useStateFn: o,
420
+ params: u
421
+ }]) => /* @__PURE__ */ v(s, { children: /* @__PURE__ */ v(me, { params: u, useStateFn: o, debugging: e }, i) }, i)) });
422
+ }, Ue = ({
423
+ useRootState: s,
424
+ getCtxName: e,
425
+ name: t
426
+ }, n = 0) => ({
427
+ useCtxState: (a) => {
428
+ const r = e(a), l = le(w("auto-ctx"), "subscribe");
429
+ return g(() => l?.(t, s, a, n), [s, l, t, r, n]), w(r);
294
430
  }
295
- }), ue = (e) => {
296
- const [, t] = p(0), { proxy: n, finalGetter: r, openGetter: o, clean: a } = g(
297
- () => {
298
- const s = /* @__PURE__ */ new Set(), i = {}, c = /* @__PURE__ */ new Map(), l = new Proxy(
299
- e?.data,
300
- {
301
- get(f, E) {
302
- if (u)
303
- return s.add(E), i[E] = f[E];
304
- throw new Error("now allow here");
305
- }
306
- }
307
- );
308
- let u = !0, d = C(() => {
309
- [...s.values()].some((f) => i[f] != e?.data?.[f]) && t((f) => f + 1);
310
- }, 0), w = () => {
311
- u = !0, s.clear();
312
- }, k = () => {
313
- u = !1, [...s.values()].filter((f) => !c.has(f)).forEach((f) => {
314
- c.set(f, e?.subscribe(f, d));
315
- }), [...c.keys()].filter((f) => !s.has(f)).forEach((f) => {
316
- c.get(f)?.(), c.delete(f);
317
- });
318
- };
319
- return { proxy: l, finalGetter: k, openGetter: w, clean: () => {
320
- w(), k(), t((f) => f + 1);
321
- } };
322
- },
323
- [e]
324
- );
325
- return o(), setTimeout(r, 0), m(
326
- () => () => a(),
327
- [a]
328
- ), n;
431
+ }), Ve = (s) => {
432
+ const [, e] = R(0), {
433
+ proxy: t,
434
+ finalGetter: n,
435
+ openGetter: a,
436
+ clean: r
437
+ } = D(() => {
438
+ const l = /* @__PURE__ */ new Set(), i = {}, o = /* @__PURE__ */ new Map(), u = new Proxy(s?.data, {
439
+ get(h, b) {
440
+ if (c)
441
+ return l.add(b), i[b] = h[b];
442
+ throw new Error("useQuickSubscribe: Cannot access context data outside render phase. Destructure needed properties immediately during render.");
443
+ },
444
+ ownKeys(h) {
445
+ return console.warn("useQuickSubscribe: Rest object operations aren't recommended as they bypass selective subscription and may cause performance issues"), Reflect.ownKeys(h);
446
+ }
447
+ });
448
+ let c = !0, d = k(() => {
449
+ [...l.values()].some((h) => i[h] != s?.data?.[h]) && e((h) => h + 1);
450
+ }, 0), f = () => {
451
+ c = !0, l.clear();
452
+ }, m = () => {
453
+ c = !1, [...l.values()].filter((h) => !o.has(h)).forEach((h) => {
454
+ o.set(h, s?.subscribe(h, d));
455
+ }), [...o.keys()].filter((h) => !l.has(h)).forEach((h) => {
456
+ o.get(h)?.(), o.delete(h);
457
+ });
458
+ };
459
+ return {
460
+ proxy: u,
461
+ finalGetter: m,
462
+ openGetter: f,
463
+ clean: () => {
464
+ f(), m(), e((h) => h + 1);
465
+ }
466
+ };
467
+ }, [s]);
468
+ return a(), setTimeout(n, 0), g(() => () => r(), [r]), t;
329
469
  };
330
- function z(e) {
331
- return { highlight: g(
332
- () => P(e.toLowerCase().split(" "), "gi"),
333
- [e]
334
- ) };
470
+ function pe(s) {
471
+ const e = C.c(4);
472
+ let t;
473
+ e[0] !== s ? (t = s ? ve(s.trim().toLowerCase().split(" "), "gi") : void 0, e[0] = s, e[1] = t) : t = e[1];
474
+ const n = t;
475
+ let a;
476
+ return e[2] !== n ? (a = {
477
+ highlight: n
478
+ }, e[2] = n, e[3] = a) : a = e[3], a;
335
479
  }
336
- function B(e) {
337
- return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
480
+ function be(s) {
481
+ return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
338
482
  }
339
- function P(e, t = "gi") {
340
- const n = e.map(B).join("|");
341
- return new RegExp(`(${n})`, t);
483
+ function ve(s, e = "gi") {
484
+ const t = s.map(be).join("|");
485
+ return new RegExp(`(${t})`, e);
342
486
  }
343
- function q(e, t) {
344
- const n = [];
345
- let r = 0;
346
- for (const o of e.matchAll(t)) {
347
- const [a] = o, s = o.index;
348
- s > r && n.push(e.slice(r, s)), n.push(/* @__PURE__ */ h("mark", { children: a }, s)), r = s + a.length;
487
+ function ge(s, e) {
488
+ const t = [];
489
+ let n = 0;
490
+ for (const a of s.matchAll(e)) {
491
+ const [r] = a, l = a.index;
492
+ l > n && t.push(s.slice(n, l)), t.push(/* @__PURE__ */ v("mark", { children: r }, l)), n = l + r.length;
349
493
  }
350
- return r < e.length && n.push(e.slice(r)), n;
494
+ return n < s.length && t.push(s.slice(n)), t;
351
495
  }
352
- const M = A.createContext({
496
+ const Q = M.createContext({
353
497
  highlight: void 0
354
- }), Q = ({ children: e, highlight: t }) => /* @__PURE__ */ h(M.Provider, { value: z(t), children: e }), X = ({ text: e }) => {
355
- const { highlight: t } = G(M), n = g(
356
- () => t ? q(e, t) : e,
357
- [e, t]
358
- );
359
- return /* @__PURE__ */ h(D, { children: n });
360
- }, x = ({ name: e, value: t }) => {
361
- const n = g(() => {
362
- try {
363
- return JSON.stringify({ [e]: t }, null, 2);
364
- } catch (r) {
365
- return String(r);
366
- }
367
- }, [e, t]);
368
- return /* @__PURE__ */ h("pre", { children: n });
369
- }, _ = ({ selectedKey: e, setKey: t, currentKey: n, highlight: r, ...o }) => {
370
- const a = S(n), s = j(void 0);
371
- return m(() => {
372
- if (s.current) {
373
- let i = C(() => {
374
- s.current && (s.current?.classList.add("state-key-updated"), requestAnimationFrame(() => s.current?.classList.remove("state-key-updated")));
498
+ }), Ce = (s) => {
499
+ const e = C.c(3), {
500
+ children: t,
501
+ highlight: n
502
+ } = s, a = pe(n);
503
+ let r;
504
+ return e[0] !== t || e[1] !== a ? (r = /* @__PURE__ */ v(Q.Provider, { value: a, children: t }), e[0] = t, e[1] = a, e[2] = r) : r = e[2], r;
505
+ }, Se = (s) => {
506
+ const e = C.c(5), {
507
+ text: t
508
+ } = s, {
509
+ highlight: n
510
+ } = ee(Q);
511
+ let a;
512
+ e[0] !== n || e[1] !== t ? (a = n ? ge(t, n) : t, e[0] = n, e[1] = t, e[2] = a) : a = e[2];
513
+ const r = a;
514
+ let l;
515
+ return e[3] !== r ? (l = /* @__PURE__ */ v($, { children: r }), e[3] = r, e[4] = l) : l = e[4], l;
516
+ }, z = (s) => {
517
+ const e = C.c(5), {
518
+ name: t,
519
+ value: n
520
+ } = s;
521
+ let a;
522
+ try {
523
+ let i;
524
+ e[0] !== t || e[1] !== n ? (i = JSON.stringify({
525
+ [t]: n
526
+ }, null, 2), e[0] = t, e[1] = n, e[2] = i) : i = e[2], a = i;
527
+ } catch (i) {
528
+ a = String(i);
529
+ }
530
+ const r = a;
531
+ let l;
532
+ return e[3] !== r ? (l = /* @__PURE__ */ v("pre", { children: r }), e[3] = r, e[4] = l) : l = e[4], l;
533
+ }, _e = (s) => {
534
+ const e = C.c(26);
535
+ let t, n, a, r;
536
+ if (e[0] !== s) {
537
+ const {
538
+ selectedKey: E,
539
+ setKey: y,
540
+ currentKey: N,
541
+ highlight: O,
542
+ ..._
543
+ } = s;
544
+ a = E, r = y, t = N, n = _, e[0] = s, e[1] = t, e[2] = n, e[3] = a, e[4] = r;
545
+ } else
546
+ t = e[1], n = e[2], a = e[3], r = e[4];
547
+ let l;
548
+ e[5] !== t ? (l = A(t), e[5] = t, e[6] = l) : l = e[6];
549
+ const i = l, o = P(void 0);
550
+ let u, c;
551
+ e[7] !== i ? (u = () => {
552
+ if (o.current) {
553
+ const E = k(() => {
554
+ o.current && (o.current?.classList.add("state-key-updated"), requestAnimationFrame(() => o.current?.classList.remove("state-key-updated")));
375
555
  }, 5);
376
- return a.subscribeAll(i);
377
- }
378
- }, [a, s]), /* @__PURE__ */ v(
379
- "div",
380
- {
381
- ref: s,
382
- className: "state-key",
383
- title: n,
384
- "data-active": n == e,
385
- onClick: () => t(n),
386
- ...o,
387
- children: [
388
- /* @__PURE__ */ h("div", { className: "state-key-name", children: /* @__PURE__ */ h(X, { text: String(n) }) }),
389
- /* @__PURE__ */ v("div", { className: "state-key-meta", children: [
390
- Object.keys(a.data).length,
391
- " items"
392
- ] })
393
- ]
556
+ return i.subscribeAll(E);
394
557
  }
395
- );
396
- }, N = S.cache, Y = ({ Component: e }) => {
397
- const [t, n] = p(() => [...N.keys()]), [r, o] = p(""), [a, s] = p("");
398
- m(() => {
399
- let c = setInterval(() => {
400
- n(
401
- (l) => l.length != N.size ? [...N.keys()] : l
402
- );
558
+ }, c = [i, o], e[7] = i, e[8] = u, e[9] = c) : (u = e[8], c = e[9]), g(u, c);
559
+ const d = t == a;
560
+ let f;
561
+ e[10] !== t || e[11] !== r ? (f = () => r(t), e[10] = t, e[11] = r, e[12] = f) : f = e[12];
562
+ const m = String(t);
563
+ let p;
564
+ e[13] !== m ? (p = /* @__PURE__ */ v("div", { className: "state-key-name", children: /* @__PURE__ */ v(Se, { text: m }) }), e[13] = m, e[14] = p) : p = e[14];
565
+ let h;
566
+ e[15] !== i.data ? (h = Object.keys(i.data), e[15] = i.data, e[16] = h) : h = e[16];
567
+ let b;
568
+ e[17] !== h.length ? (b = /* @__PURE__ */ T("div", { className: "state-key-meta", children: [
569
+ h.length,
570
+ " items"
571
+ ] }), e[17] = h.length, e[18] = b) : b = e[18];
572
+ let S;
573
+ return e[19] !== t || e[20] !== n || e[21] !== d || e[22] !== f || e[23] !== p || e[24] !== b ? (S = /* @__PURE__ */ T("div", { ref: o, className: "state-key", title: t, "data-active": d, onClick: f, ...n, children: [
574
+ p,
575
+ b
576
+ ] }), e[19] = t, e[20] = n, e[21] = d, e[22] = f, e[23] = p, e[24] = b, e[25] = S) : S = e[25], S;
577
+ }, j = A.cache, Re = (s) => {
578
+ const e = C.c(27), {
579
+ Component: t
580
+ } = s, [n, a] = R(ye), [r, l] = R(""), [i, o] = R("");
581
+ let u, c;
582
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
583
+ const _ = setInterval(() => {
584
+ a(Ne);
403
585
  }, 50);
404
- return () => clearInterval(c);
405
- }, [N]);
406
- const i = g(
407
- () => {
408
- const c = r.toLowerCase().split(" ");
409
- return (l) => {
410
- const u = l.toLowerCase();
411
- return c.every((d) => u.includes(d));
412
- };
413
- },
414
- [r]
415
- );
416
- return /* @__PURE__ */ v("div", { className: "main-panel", children: [
417
- /* @__PURE__ */ v("div", { className: "state-list", children: [
418
- /* @__PURE__ */ h(
419
- "input",
420
- {
421
- placeholder: "Type to Filter ...",
422
- className: "state-filter",
423
- value: r,
424
- onChange: (c) => o(c.target.value)
425
- }
426
- ),
427
- /* @__PURE__ */ h(Q, { highlight: r, children: t.map((c) => JSON.parse(c)?.[0]).filter((c) => c != "auto-ctx" && c).filter(i).map((c) => /* @__PURE__ */ h(_, { selectedKey: a, setKey: s, currentKey: c })) })
428
- ] }),
429
- /* @__PURE__ */ h("div", { className: "state-view", children: /* @__PURE__ */ h(Z, { dataKey: a, Component: e }, a) })
430
- ] });
431
- }, Z = ({ dataKey: e, Component: t = x }) => {
432
- const n = S(e), [r, o] = p({ ...n?.data });
433
- return m(() => {
434
- let a = C(o, 5);
435
- return n.subscribeAll((s, i) => a({ ...i }));
436
- }, [n]), /* @__PURE__ */ h(
437
- t,
438
- {
439
- value: r,
440
- name: e
441
- }
442
- );
443
- }, he = ({ toggleButton: e = "[x]", Component: t = x, ...n }) => {
444
- const [r, o] = p(!1);
445
- return /* @__PURE__ */ v(D, { children: [
446
- /* @__PURE__ */ h("button", { className: "react-state-dev-btn", "data-active": r, onClick: () => o(!0), ...n, children: n?.children ?? "Toggle Dev Tool" }),
447
- /* @__PURE__ */ v("div", { className: "react-state-dev-container", "data-active": r, children: [
448
- /* @__PURE__ */ h("button", { className: "close-btn", onClick: () => o(!1), children: "[x]" }),
449
- r && /* @__PURE__ */ h(Y, { Component: t })
450
- ] })
451
- ] });
586
+ return () => clearInterval(_);
587
+ }, c = [j], e[0] = u, e[1] = c) : (u = e[0], c = e[1]), g(u, c);
588
+ let d;
589
+ e[2] !== r ? (d = r.toLowerCase().split(" "), e[2] = r, e[3] = d) : d = e[3];
590
+ const f = d;
591
+ let m;
592
+ e[4] !== f ? (m = (_) => {
593
+ const K = _.toLowerCase();
594
+ return f.every((X) => K.includes(X));
595
+ }, e[4] = f, e[5] = m) : m = e[5];
596
+ const p = m;
597
+ let h;
598
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (h = (_) => l(_.target.value), e[6] = h) : h = e[6];
599
+ let b;
600
+ e[7] !== r ? (b = /* @__PURE__ */ v("input", { placeholder: "Type to Filter ...", className: "state-filter", value: r, onChange: h }), e[7] = r, e[8] = b) : b = e[8];
601
+ let S;
602
+ if (e[9] !== n || e[10] !== p || e[11] !== i) {
603
+ let _;
604
+ e[13] !== i ? (_ = (K) => /* @__PURE__ */ v(_e, { selectedKey: i, setKey: o, currentKey: K }, K), e[13] = i, e[14] = _) : _ = e[14], S = n.map(we).filter(De).filter(p).map(_), e[9] = n, e[10] = p, e[11] = i, e[12] = S;
605
+ } else
606
+ S = e[12];
607
+ let E;
608
+ e[15] !== r || e[16] !== S ? (E = /* @__PURE__ */ v(Ce, { highlight: r, children: S }), e[15] = r, e[16] = S, e[17] = E) : E = e[17];
609
+ let y;
610
+ e[18] !== b || e[19] !== E ? (y = /* @__PURE__ */ T("div", { className: "state-list", children: [
611
+ b,
612
+ E
613
+ ] }), e[18] = b, e[19] = E, e[20] = y) : y = e[20];
614
+ let N;
615
+ e[21] !== t || e[22] !== i ? (N = /* @__PURE__ */ v("div", { className: "state-view", children: /* @__PURE__ */ v(Ee, { dataKey: i, Component: t }, i) }), e[21] = t, e[22] = i, e[23] = N) : N = e[23];
616
+ let O;
617
+ return e[24] !== N || e[25] !== y ? (O = /* @__PURE__ */ T("div", { className: "main-panel", children: [
618
+ y,
619
+ N
620
+ ] }), e[24] = N, e[25] = y, e[26] = O) : O = e[26], O;
621
+ }, Ee = (s) => {
622
+ const e = C.c(11), {
623
+ dataKey: t,
624
+ Component: n
625
+ } = s, a = n === void 0 ? z : n;
626
+ let r;
627
+ e[0] !== t ? (r = A(t), e[0] = t, e[1] = r) : r = e[1];
628
+ const l = r, i = l?.data;
629
+ let o;
630
+ e[2] !== i ? (o = {
631
+ ...i
632
+ }, e[2] = i, e[3] = o) : o = e[3];
633
+ const [u, c] = R(o);
634
+ let d, f;
635
+ e[4] !== l ? (d = () => {
636
+ const p = k(c, 5);
637
+ return l.subscribeAll((h, b) => p({
638
+ ...b
639
+ }));
640
+ }, f = [l], e[4] = l, e[5] = d, e[6] = f) : (d = e[5], f = e[6]), g(d, f);
641
+ let m;
642
+ return e[7] !== a || e[8] !== u || e[9] !== t ? (m = /* @__PURE__ */ v(a, { value: u, name: t }), e[7] = a, e[8] = u, e[9] = t, e[10] = m) : m = e[10], m;
643
+ };
644
+ function ye() {
645
+ return [...j.keys()];
646
+ }
647
+ function Ne(s) {
648
+ return s.length != j.size ? [...j.keys()] : s;
649
+ }
650
+ function we(s) {
651
+ return JSON.parse(s)?.[0];
652
+ }
653
+ function De(s) {
654
+ return s != "auto-ctx" && s;
655
+ }
656
+ const Ie = (s) => {
657
+ const e = C.c(19);
658
+ let t, n, a;
659
+ e[0] !== s ? ({
660
+ toggleButton: n,
661
+ Component: a,
662
+ ...t
663
+ } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = a) : (t = e[1], n = e[2], a = e[3]);
664
+ const r = a === void 0 ? z : a, [l, i] = R(!1);
665
+ let o;
666
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (o = () => i(!0), e[4] = o) : o = e[4];
667
+ const u = t?.children ?? "Toggle Dev Tool";
668
+ let c;
669
+ e[5] !== l || e[6] !== t || e[7] !== u ? (c = /* @__PURE__ */ v("button", { className: "react-state-dev-btn", "data-active": l, onClick: o, ...t, children: u }), e[5] = l, e[6] = t, e[7] = u, e[8] = c) : c = e[8];
670
+ let d;
671
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ v("button", { className: "close-btn", onClick: () => i(!1), children: "[x]" }), e[9] = d) : d = e[9];
672
+ let f;
673
+ e[10] !== r || e[11] !== l ? (f = l && /* @__PURE__ */ v(Re, { Component: r }), e[10] = r, e[11] = l, e[12] = f) : f = e[12];
674
+ let m;
675
+ e[13] !== l || e[14] !== f ? (m = /* @__PURE__ */ T("div", { className: "react-state-dev-container", "data-active": l, children: [
676
+ d,
677
+ f
678
+ ] }), e[13] = l, e[14] = f, e[15] = m) : m = e[15];
679
+ let p;
680
+ return e[16] !== c || e[17] !== m ? (p = /* @__PURE__ */ T($, { children: [
681
+ c,
682
+ m
683
+ ] }), e[16] = c, e[17] = m, e[18] = p) : p = e[18], p;
452
684
  };
453
685
  export {
454
- ie as AutoRootCtx,
455
- J as Context,
456
- he as DevToolContainer,
457
- le as createAutoCtx,
458
- ce as createRootCtx,
459
- S as getContext,
460
- K as useArrayHash,
461
- b as useDataContext,
462
- re as useDataSource,
463
- L as useDataSourceMultiple,
464
- W as useDataSubscribe,
465
- ae as useDataSubscribeMultiple,
466
- oe as useDataSubscribeMultipleWithDebounce,
467
- se as useDataSubscribeWithTransform,
468
- ue as useQuickSubscribe
686
+ je as AutoRootCtx,
687
+ ie as Context,
688
+ Ie as DevToolContainer,
689
+ Ue as createAutoCtx,
690
+ Le as createRootCtx,
691
+ A as getContext,
692
+ oe as useArrayChangeId,
693
+ w as useDataContext,
694
+ ke as useDataSource,
695
+ Y as useDataSourceMultiple,
696
+ le as useDataSubscribe,
697
+ Ae as useDataSubscribeMultiple,
698
+ Ke as useDataSubscribeMultipleWithDebounce,
699
+ Oe as useDataSubscribeWithTransform,
700
+ Ve as useQuickSubscribe
469
701
  };
470
702
  //# sourceMappingURL=index.es.js.map