@ahoo-wang/fetcher-react 3.13.3 → 3.13.5

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,160 +1,160 @@
1
- var te = Object.defineProperty;
2
- var o = (r, e) => te(r, "name", { value: e, configurable: !0 });
1
+ var se = Object.defineProperty;
2
+ var s = (r, e) => se(r, "name", { value: e, configurable: !0 });
3
3
  import { c as S } from "react/compiler-runtime";
4
- import { useRef as L, useEffect as q, useState as P, useCallback as Q, useMemo as U, useReducer as re, useSyncExternalStore as ne, createContext as ce, useContext as se } from "react";
5
- import { jsx as A, Fragment as k } from "react/jsx-runtime";
6
- import { nameGenerator as oe } from "@ahoo-wang/fetcher-eventbus";
7
- import { produce as ue } from "immer";
8
- import { fetcherRegistrar as le, getFetcher as ie, JsonResultExtractor as ae } from "@ahoo-wang/fetcher";
9
- import { JsonEventStreamResultExtractor as fe } from "@ahoo-wang/fetcher-eventstream";
10
- function K(r) {
4
+ import { useRef as _, useEffect as q, useState as M, useCallback as Q, useMemo as U, createContext as K, useContext as V, useReducer as oe, useSyncExternalStore as ue } from "react";
5
+ import { jsx as $, Fragment as k } from "react/jsx-runtime";
6
+ import { nameGenerator as le } from "@ahoo-wang/fetcher-eventbus";
7
+ import { produce as ie } from "immer";
8
+ import { fetcherRegistrar as ae, getFetcher as fe, JsonResultExtractor as de } from "@ahoo-wang/fetcher";
9
+ import { JsonEventStreamResultExtractor as me } from "@ahoo-wang/fetcher-eventstream";
10
+ function W(r) {
11
11
  if (!r || r.length === 0)
12
12
  throw new Error("Method name cannot be empty");
13
13
  return `use${r.charAt(0).toUpperCase() + r.slice(1)}`;
14
14
  }
15
- o(K, "methodNameToHookName");
16
- function V(r) {
17
- const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ o((u) => {
15
+ s(W, "methodNameToHookName");
16
+ function J(r) {
17
+ const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ s((u) => {
18
18
  Object.getOwnPropertyNames(u).forEach((c) => {
19
19
  if (!t.has(c) && c !== "constructor") {
20
20
  t.add(c);
21
- const i = u[c];
22
- typeof i == "function" && e.set(c, i.bind(r));
21
+ const l = u[c];
22
+ typeof l == "function" && e.set(c, l.bind(r));
23
23
  }
24
24
  });
25
25
  }, "processObject");
26
26
  n(r);
27
- let s = Object.getPrototypeOf(r);
28
- for (; s && s !== Object.prototype; )
29
- n(s), s = Object.getPrototypeOf(s);
27
+ let o = Object.getPrototypeOf(r);
28
+ for (; o && o !== Object.prototype; )
29
+ n(o), o = Object.getPrototypeOf(o);
30
30
  return e;
31
31
  }
32
- o(V, "collectMethods");
33
- function O(r) {
34
- const e = L(r);
32
+ s(J, "collectMethods");
33
+ function C(r) {
34
+ const e = _(r);
35
35
  return e.current = r, e;
36
36
  }
37
- o(O, "useLatest");
38
- function D(r, e) {
37
+ s(C, "useLatest");
38
+ function T(r, e) {
39
39
  const t = S(19);
40
40
  if (e.leading === !1 && e.trailing === !1)
41
41
  throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
42
- const n = L(void 0), s = L(null), u = L(null), c = O(r), i = O(e);
43
- let l;
44
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o(() => {
42
+ const n = _(void 0), o = _(null), u = _(null), c = C(r), l = C(e);
43
+ let i;
44
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s(() => {
45
45
  n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
46
- }, "t0"), t[0] = l) : l = t[0];
47
- const m = l;
46
+ }, "t0"), t[0] = i) : i = t[0];
47
+ const m = i;
48
48
  let f;
49
- t[1] !== i ? (f = /* @__PURE__ */ o((R) => u.current ? R - u.current >= i.current.delay : !0, "t1"), t[1] = i, t[2] = f) : f = t[2];
49
+ t[1] !== l ? (f = /* @__PURE__ */ s((p) => u.current ? p - u.current >= l.current.delay : !0, "t1"), t[1] = l, t[2] = f) : f = t[2];
50
50
  const a = f;
51
51
  let d;
52
- t[3] !== c ? (d = /* @__PURE__ */ o((R, _) => {
53
- u.current = R, c.current(..._);
52
+ t[3] !== c ? (d = /* @__PURE__ */ s((p, O) => {
53
+ u.current = p, c.current(...O);
54
54
  }, "t2"), t[3] = c, t[4] = d) : d = t[4];
55
55
  const h = d;
56
56
  let y;
57
- t[5] !== h || t[6] !== i ? (y = /* @__PURE__ */ o(() => {
57
+ t[5] !== h || t[6] !== l ? (y = /* @__PURE__ */ s(() => {
58
58
  n.current = setTimeout(() => {
59
- if (s.current) {
60
- const R = Date.now();
61
- h(R, s.current);
59
+ if (o.current) {
60
+ const p = Date.now();
61
+ h(p, o.current);
62
62
  }
63
63
  n.current = void 0;
64
- }, i.current.delay);
65
- }, "t3"), t[5] = h, t[6] = i, t[7] = y) : y = t[7];
66
- const E = y;
67
- let x;
68
- t[8] !== h || t[9] !== i || t[10] !== E || t[11] !== a ? (x = /* @__PURE__ */ o((...R) => {
69
- const _ = R;
64
+ }, l.current.delay);
65
+ }, "t3"), t[5] = h, t[6] = l, t[7] = y) : y = t[7];
66
+ const g = y;
67
+ let b;
68
+ t[8] !== h || t[9] !== l || t[10] !== g || t[11] !== a ? (b = /* @__PURE__ */ s((...p) => {
69
+ const O = p;
70
70
  m();
71
71
  const {
72
72
  leading: N,
73
73
  trailing: j
74
- } = i.current, H = N === void 0 ? !1 : N, B = j === void 0 ? !0 : j;
75
- if (s.current = _, B && !H) {
76
- E();
74
+ } = l.current, H = N === void 0 ? !1 : N, B = j === void 0 ? !0 : j;
75
+ if (o.current = O, B && !H) {
76
+ g();
77
77
  return;
78
78
  }
79
79
  const G = Date.now();
80
80
  if (H && a(G)) {
81
- h(G, _);
81
+ h(G, O);
82
82
  return;
83
83
  }
84
- B && E();
85
- }, "t4"), t[8] = h, t[9] = i, t[10] = E, t[11] = a, t[12] = x) : x = t[12];
86
- const g = x;
87
- let b;
88
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(() => {
89
- m(), s.current = null;
90
- }, "t5"), t[13] = b) : b = t[13];
91
- const F = b;
92
- let w;
93
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o(() => n.current !== void 0, "t6"), t[14] = w) : w = t[14];
94
- const v = w;
95
- let p, C;
96
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(() => () => {
97
- F();
98
- }, "t7"), C = [F], t[15] = p, t[16] = C) : (p = t[15], C = t[16]), q(p, C);
99
- let $;
100
- return t[17] !== g ? ($ = {
101
- run: g,
102
- cancel: F,
103
- isPending: v
104
- }, t[17] = g, t[18] = $) : $ = t[18], $;
84
+ B && g();
85
+ }, "t4"), t[8] = h, t[9] = l, t[10] = g, t[11] = a, t[12] = b) : b = t[12];
86
+ const x = b;
87
+ let E;
88
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ s(() => {
89
+ m(), o.current = null;
90
+ }, "t5"), t[13] = E) : E = t[13];
91
+ const v = E;
92
+ let F;
93
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ s(() => n.current !== void 0, "t6"), t[14] = F) : F = t[14];
94
+ const w = F;
95
+ let R, L;
96
+ t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ s(() => () => {
97
+ v();
98
+ }, "t7"), L = [v], t[15] = R, t[16] = L) : (R = t[15], L = t[16]), q(R, L);
99
+ let I;
100
+ return t[17] !== x ? (I = {
101
+ run: x,
102
+ cancel: v,
103
+ isPending: w
104
+ }, t[17] = x, t[18] = I) : I = t[18], I;
105
105
  }
106
- o(D, "useDebouncedCallback");
107
- function W() {
108
- const r = S(3), e = L(!1);
106
+ s(T, "useDebouncedCallback");
107
+ function Y() {
108
+ const r = S(3), e = _(!1);
109
109
  let t;
110
- r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ o(() => e.current, "t0"), r[0] = t) : t = r[0];
110
+ r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current, "t0"), r[0] = t) : t = r[0];
111
111
  const n = t;
112
- let s, u;
113
- return r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(() => (e.current = !0, () => {
112
+ let o, u;
113
+ return r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ s(() => (e.current = !0, () => {
114
114
  e.current = !1;
115
- }), "t1"), u = [], r[1] = s, r[2] = u) : (s = r[1], u = r[2]), q(s, u), n;
115
+ }), "t1"), u = [], r[1] = o, r[2] = u) : (o = r[1], u = r[2]), q(o, u), n;
116
116
  }
117
- o(W, "useMounted");
118
- var de = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(de || {});
119
- function me(r) {
120
- const [e, t] = P(
117
+ s(Y, "useMounted");
118
+ var he = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(he || {});
119
+ function ye(r) {
120
+ const [e, t] = M(
121
121
  r?.initialStatus ?? "idle"
122
122
  /* IDLE */
123
- ), [n, s] = P(void 0), [u, c] = P(void 0), i = W(), l = O(r), m = Q(() => {
124
- i() && (t(
123
+ ), [n, o] = M(void 0), [u, c] = M(void 0), l = Y(), i = C(r), m = Q(() => {
124
+ l() && (t(
125
125
  "loading"
126
126
  /* LOADING */
127
127
  ), c(void 0));
128
- }, [i]), f = Q(async (h) => {
129
- if (i()) {
130
- s(h), t(
128
+ }, [l]), f = Q(async (h) => {
129
+ if (l()) {
130
+ o(h), t(
131
131
  "success"
132
132
  /* SUCCESS */
133
133
  ), c(void 0);
134
134
  try {
135
- await l.current?.onSuccess?.(h);
135
+ await i.current?.onSuccess?.(h);
136
136
  } catch (y) {
137
137
  console.warn("PromiseState onSuccess callback error:", y);
138
138
  }
139
139
  }
140
- }, [i, l]), a = Q(async (h) => {
141
- if (i()) {
140
+ }, [l, i]), a = Q(async (h) => {
141
+ if (l()) {
142
142
  c(h), t(
143
143
  "error"
144
144
  /* ERROR */
145
- ), s(void 0);
145
+ ), o(void 0);
146
146
  try {
147
- await l.current?.onError?.(h);
147
+ await i.current?.onError?.(h);
148
148
  } catch (y) {
149
149
  console.warn("PromiseState onError callback error:", y);
150
150
  }
151
151
  }
152
- }, [i, l]), d = Q(() => {
153
- i() && (t(
152
+ }, [l, i]), d = Q(() => {
153
+ l() && (t(
154
154
  "idle"
155
155
  /* IDLE */
156
- ), c(void 0), s(void 0));
157
- }, [i]);
156
+ ), c(void 0), o(void 0));
157
+ }, [l]);
158
158
  return U(() => ({
159
159
  status: e,
160
160
  loading: e === "loading",
@@ -166,25 +166,25 @@ function me(r) {
166
166
  setIdle: d
167
167
  }), [e, n, u, m, f, a, d]);
168
168
  }
169
- o(me, "usePromiseState");
170
- function he() {
171
- const r = S(6), e = L(0);
169
+ s(ye, "usePromiseState");
170
+ function ge() {
171
+ const r = S(6), e = _(0);
172
172
  let t;
173
- r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ o(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
173
+ r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
174
174
  const n = t;
175
- let s;
176
- r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(() => e.current, "t1"), r[1] = s) : s = r[1];
177
- const u = s;
175
+ let o;
176
+ r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ s(() => e.current, "t1"), r[1] = o) : o = r[1];
177
+ const u = o;
178
178
  let c;
179
- r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o((h) => h === e.current, "t2"), r[2] = c) : c = r[2];
180
- const i = c;
181
- let l;
182
- r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o(() => {
179
+ r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s((h) => h === e.current, "t2"), r[2] = c) : c = r[2];
180
+ const l = c;
181
+ let i;
182
+ r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s(() => {
183
183
  e.current = e.current + 1;
184
- }, "t3"), r[3] = l) : l = r[3];
185
- const m = l;
184
+ }, "t3"), r[3] = i) : i = r[3];
185
+ const m = i;
186
186
  let f;
187
- r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ o(() => {
187
+ r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(() => {
188
188
  e.current = 0;
189
189
  }, "t4"), r[4] = f) : f = r[4];
190
190
  const a = f;
@@ -192,145 +192,149 @@ function he() {
192
192
  return r[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
193
193
  generate: n,
194
194
  current: u,
195
- isLatest: i,
195
+ isLatest: l,
196
196
  invalidate: m,
197
197
  reset: a
198
198
  }, r[5] = d) : d = r[5], d;
199
199
  }
200
- o(he, "useRequestId");
201
- function T(r) {
200
+ s(ge, "useRequestId");
201
+ function D(r) {
202
202
  const {
203
203
  loading: e,
204
204
  result: t,
205
205
  error: n,
206
- status: s,
206
+ status: o,
207
207
  setLoading: u,
208
208
  setSuccess: c,
209
- setError: i,
210
- setIdle: l
211
- } = me(r), m = W(), f = he(), a = L(void 0), d = r?.propagateError, h = O(r?.onAbort), y = Q(async () => {
209
+ setError: l,
210
+ setIdle: i
211
+ } = ye(r), m = Y(), f = ge(), a = _(void 0), d = r?.propagateError, h = C(r?.onAbort), y = Q(async () => {
212
212
  try {
213
213
  await h.current?.();
214
- } catch (b) {
215
- console.warn("useExecutePromise onAbort callback error:", b);
214
+ } catch (E) {
215
+ console.warn("useExecutePromise onAbort callback error:", E);
216
216
  }
217
- }, [h]), E = Q(async (b) => {
217
+ }, [h]), g = Q(async (E) => {
218
218
  a.current && (a.current.abort(), await y());
219
- const F = new AbortController();
220
- a.current = F;
221
- const w = f.generate();
219
+ const v = new AbortController();
220
+ a.current = v;
221
+ const F = f.generate();
222
222
  u();
223
223
  try {
224
- const v = await b(F);
225
- m() && f.isLatest(w) && await c(v);
226
- } catch (v) {
227
- if (v instanceof Error && v.name === "AbortError") {
228
- m() && l();
224
+ const w = await E(v);
225
+ m() && f.isLatest(F) && await c(w);
226
+ } catch (w) {
227
+ if (w instanceof Error && w.name === "AbortError") {
228
+ m() && i();
229
229
  return;
230
230
  }
231
- if (m() && f.isLatest(w) && await i(v), d)
232
- throw v;
231
+ if (m() && f.isLatest(F) && await l(w), d)
232
+ throw w;
233
233
  } finally {
234
- a.current === F && (a.current = void 0);
234
+ a.current === v && (a.current = void 0);
235
235
  }
236
- }, [u, c, i, l, m, f, d, y]), x = Q(() => {
237
- m() && l();
238
- }, [l, m]), g = Q(async () => {
239
- x(), a.current && (a.current.abort(), a.current = void 0, await y());
240
- }, [x, y]);
236
+ }, [u, c, l, i, m, f, d, y]), b = Q(() => {
237
+ m() && i();
238
+ }, [i, m]), x = Q(async () => {
239
+ b(), a.current && (a.current.abort(), a.current = void 0, await y());
240
+ }, [b, y]);
241
241
  return q(() => () => {
242
- g();
243
- }, [g]), U(() => ({
242
+ x();
243
+ }, [x]), U(() => ({
244
244
  loading: e,
245
245
  result: t,
246
246
  error: n,
247
- status: s,
248
- execute: E,
249
- reset: x,
250
- abort: g
251
- }), [e, t, n, s, E, x, g]);
247
+ status: o,
248
+ execute: g,
249
+ reset: b,
250
+ abort: x
251
+ }), [e, t, n, o, g, b, x]);
252
252
  }
253
- o(T, "useExecutePromise");
254
- function Pe(r) {
253
+ s(D, "useExecutePromise");
254
+ function ze(r) {
255
255
  const e = S(10), {
256
256
  loading: t,
257
257
  result: n,
258
- error: s,
258
+ error: o,
259
259
  execute: u,
260
260
  reset: c,
261
- abort: i,
262
- status: l
263
- } = T(r), {
261
+ abort: l,
262
+ status: i
263
+ } = D(r), {
264
264
  run: m,
265
265
  cancel: f,
266
266
  isPending: a
267
- } = D(u, r.debounce);
267
+ } = T(u, r.debounce);
268
268
  let d;
269
- return e[0] !== i || e[1] !== f || e[2] !== s || e[3] !== a || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== m || e[8] !== l ? (d = {
269
+ return e[0] !== l || e[1] !== f || e[2] !== o || e[3] !== a || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== m || e[8] !== i ? (d = {
270
270
  loading: t,
271
271
  result: n,
272
- error: s,
273
- status: l,
272
+ error: o,
273
+ status: i,
274
274
  reset: c,
275
- abort: i,
275
+ abort: l,
276
276
  run: m,
277
277
  cancel: f,
278
278
  isPending: a
279
- }, e[0] = i, e[1] = f, e[2] = s, e[3] = a, e[4] = t, e[5] = c, e[6] = n, e[7] = m, e[8] = l, e[9] = d) : d = e[9], d;
279
+ }, e[0] = l, e[1] = f, e[2] = o, e[3] = a, e[4] = t, e[5] = c, e[6] = n, e[7] = m, e[8] = i, e[9] = d) : d = e[9], d;
280
280
  }
281
- o(Pe, "useDebouncedExecutePromise");
282
- function ke(r) {
281
+ s(ze, "useDebouncedExecutePromise");
282
+ function Te(r) {
283
283
  const e = S(22), t = r.autoExecute;
284
284
  let n;
285
285
  e[0] !== r ? (n = {
286
286
  ...r,
287
287
  autoExecute: !1
288
288
  }, e[0] = r, e[1] = n) : n = e[1];
289
- const s = n, {
289
+ const o = n, {
290
290
  loading: u,
291
291
  result: c,
292
- error: i,
293
- status: l,
292
+ error: l,
293
+ status: i,
294
294
  execute: m,
295
295
  reset: f,
296
296
  abort: a,
297
297
  getQuery: d,
298
298
  setQuery: h
299
- } = I(s), {
299
+ } = P(o), {
300
300
  run: y,
301
- cancel: E,
302
- isPending: x
303
- } = D(m, r.debounce);
304
- let g;
305
- e[2] !== t || e[3] !== y || e[4] !== h ? (g = /* @__PURE__ */ o((p) => {
306
- h(p), t && y();
307
- }, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = g) : g = e[5];
308
- const b = g;
309
- let F, w;
310
- e[6] !== t || e[7] !== y ? (F = /* @__PURE__ */ o(() => {
301
+ cancel: g,
302
+ isPending: b
303
+ } = T(m, r.debounce);
304
+ let x;
305
+ e[2] !== t || e[3] !== y || e[4] !== h ? (x = /* @__PURE__ */ s((R) => {
306
+ h(R), t && y();
307
+ }, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = x) : x = e[5];
308
+ const E = x;
309
+ let v, F;
310
+ e[6] !== t || e[7] !== y ? (v = /* @__PURE__ */ s(() => {
311
311
  t && y();
312
- }, "t2"), w = [y, t], e[6] = t, e[7] = y, e[8] = F, e[9] = w) : (F = e[8], w = e[9]), q(F, w);
313
- let v;
314
- return e[10] !== a || e[11] !== E || e[12] !== i || e[13] !== d || e[14] !== x || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== b || e[20] !== l ? (v = {
312
+ }, "t2"), F = [y, t], e[6] = t, e[7] = y, e[8] = v, e[9] = F) : (v = e[8], F = e[9]), q(v, F);
313
+ let w;
314
+ return e[10] !== a || e[11] !== g || e[12] !== l || e[13] !== d || e[14] !== b || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== E || e[20] !== i ? (w = {
315
315
  loading: u,
316
316
  result: c,
317
- error: i,
318
- status: l,
317
+ error: l,
318
+ status: i,
319
319
  reset: f,
320
320
  abort: a,
321
321
  getQuery: d,
322
- setQuery: b,
322
+ setQuery: E,
323
323
  run: y,
324
- cancel: E,
325
- isPending: x
326
- }, e[10] = a, e[11] = E, e[12] = i, e[13] = d, e[14] = x, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = b, e[20] = l, e[21] = v) : v = e[21], v;
324
+ cancel: g,
325
+ isPending: b
326
+ }, e[10] = a, e[11] = g, e[12] = l, e[13] = d, e[14] = b, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = E, e[20] = i, e[21] = w) : w = e[21], w;
327
327
  }
328
- o(ke, "useDebouncedQuery");
329
- function ye() {
328
+ s(Te, "useDebouncedQuery");
329
+ function X() {
330
330
  return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
331
331
  }
332
- o(ye, "getFullscreenElement");
333
- async function Ee(r) {
332
+ s(X, "getFullscreenElement");
333
+ function De() {
334
+ return !!X();
335
+ }
336
+ s(De, "isFullscreen");
337
+ async function xe(r) {
334
338
  try {
335
339
  if (r.requestFullscreen)
336
340
  await r.requestFullscreen();
@@ -346,8 +350,8 @@ async function Ee(r) {
346
350
  throw console.error("Failed to enter fullscreen:", e), e;
347
351
  }
348
352
  }
349
- o(Ee, "enterFullscreen");
350
- async function ge() {
353
+ s(xe, "enterFullscreen");
354
+ async function be() {
351
355
  try {
352
356
  if (document.exitFullscreen)
353
357
  await document.exitFullscreen();
@@ -363,59 +367,89 @@ async function ge() {
363
367
  throw console.error("Failed to exit fullscreen:", r), r;
364
368
  }
365
369
  }
366
- o(ge, "exitFullscreen");
367
- function xe(r) {
370
+ s(be, "exitFullscreen");
371
+ function Ee(r) {
368
372
  document.addEventListener("fullscreenchange", r), document.addEventListener("webkitfullscreenchange", r), document.addEventListener("mozfullscreenchange", r), document.addEventListener("MSFullscreenChange", r);
369
373
  }
370
- o(xe, "addFullscreenChangeListener");
371
- function be(r) {
374
+ s(Ee, "addFullscreenChangeListener");
375
+ function Fe(r) {
372
376
  document.removeEventListener("fullscreenchange", r), document.removeEventListener("webkitfullscreenchange", r), document.removeEventListener("mozfullscreenchange", r), document.removeEventListener("MSFullscreenChange", r);
373
377
  }
374
- o(be, "removeFullscreenChangeListener");
375
- function ze(r) {
376
- const e = S(18);
378
+ s(Fe, "removeFullscreenChangeListener");
379
+ function ve(r) {
380
+ const e = S(19);
377
381
  let t;
378
382
  e[0] !== r ? (t = r === void 0 ? {} : r, e[0] = r, e[1] = t) : t = e[1];
379
383
  const n = t, {
380
- target: s,
381
- onChange: u
382
- } = n, [c, i] = P(!1);
384
+ target: o
385
+ } = n, u = _(null);
386
+ let c;
387
+ e[2] !== o ? (c = /* @__PURE__ */ s(() => u.current ?? o?.current ?? document.documentElement, "t2"), e[2] = o, e[3] = c) : c = e[3];
388
+ const l = c, [i, m] = M(!1);
389
+ let f;
390
+ e[4] !== l ? (f = /* @__PURE__ */ s(() => {
391
+ const F = X() === l();
392
+ m(F);
393
+ }, "t3"), e[4] = l, e[5] = f) : f = e[5];
394
+ const a = f;
395
+ let d, h;
396
+ e[6] !== a ? (d = /* @__PURE__ */ s(() => (Ee(a), () => {
397
+ Fe(a);
398
+ }), "t4"), h = [a], e[6] = a, e[7] = d, e[8] = h) : (d = e[7], h = e[8]), q(d, h);
399
+ let y;
400
+ e[9] !== l ? (y = /* @__PURE__ */ s(async (F) => {
401
+ F !== void 0 && (u.current = F);
402
+ const w = l();
403
+ await xe(w);
404
+ }, "t6"), e[9] = l, e[10] = y) : y = e[10];
405
+ const g = y, b = we;
406
+ let x;
407
+ e[11] !== g || e[12] !== i ? (x = /* @__PURE__ */ s(async (F) => {
408
+ i ? await b() : await g(F);
409
+ }, "t7"), e[11] = g, e[12] = i, e[13] = x) : x = e[13];
410
+ const E = x;
411
+ let v;
412
+ return e[14] !== g || e[15] !== i || e[16] !== l || e[17] !== E ? (v = {
413
+ fullscreen: i,
414
+ getTarget: l,
415
+ toggle: E,
416
+ enter: g,
417
+ exit: b
418
+ }, e[14] = g, e[15] = i, e[16] = l, e[17] = E, e[18] = v) : v = e[18], v;
419
+ }
420
+ s(ve, "useFullscreen");
421
+ async function we() {
422
+ await be();
423
+ }
424
+ s(we, "_temp$1");
425
+ const Z = K(void 0);
426
+ function Ue(r) {
427
+ const e = S(13);
428
+ let t, n, o;
429
+ e[0] !== r ? ({
430
+ children: t,
431
+ target: o,
432
+ ...n
433
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = o) : (t = e[1], n = e[2], o = e[3]);
434
+ const u = _(null), c = o ?? u;
383
435
  let l;
384
- e[2] !== c || e[3] !== u || e[4] !== s ? (l = /* @__PURE__ */ o(() => {
385
- const F = ye() === (s?.current || document.documentElement);
386
- F !== c && (i(F), u?.(F));
387
- }, "t2"), e[2] = c, e[3] = u, e[4] = s, e[5] = l) : l = e[5];
388
- const m = l;
389
- let f, a;
390
- e[6] !== m ? (f = /* @__PURE__ */ o(() => (xe(m), () => {
391
- be(m);
392
- }), "t3"), a = [m], e[6] = m, e[7] = f, e[8] = a) : (f = e[7], a = e[8]), q(f, a);
393
- let d;
394
- e[9] !== s ? (d = /* @__PURE__ */ o(async () => {
395
- const b = s?.current || document.documentElement;
396
- await Ee(b);
397
- }, "t5"), e[9] = s, e[10] = d) : d = e[10];
398
- const h = d, y = Fe;
399
- let E;
400
- e[11] !== h || e[12] !== c ? (E = /* @__PURE__ */ o(async () => {
401
- c ? await y() : await h();
402
- }, "t6"), e[11] = h, e[12] = c, e[13] = E) : E = e[13];
403
- const x = E;
404
- let g;
405
- return e[14] !== h || e[15] !== c || e[16] !== x ? (g = {
406
- isFullscreen: c,
407
- toggle: x,
408
- enter: h,
409
- exit: y
410
- }, e[14] = h, e[15] = c, e[16] = x, e[17] = g) : g = e[17], g;
436
+ e[4] !== n || e[5] !== c ? (l = {
437
+ target: c,
438
+ ...n
439
+ }, e[4] = n, e[5] = c, e[6] = l) : l = e[6];
440
+ const i = ve(l), m = o ? void 0 : u;
441
+ let f;
442
+ e[7] !== t || e[8] !== m ? (f = /* @__PURE__ */ $("div", { ref: m, children: t }), e[7] = t, e[8] = m, e[9] = f) : f = e[9];
443
+ let a;
444
+ return e[10] !== i || e[11] !== f ? (a = /* @__PURE__ */ $(Z.Provider, { value: i, children: f }), e[10] = i, e[11] = f, e[12] = a) : a = e[12], a;
411
445
  }
412
- o(ze, "useFullscreen");
413
- async function Fe() {
414
- await ge();
446
+ s(Ue, "FullscreenProvider");
447
+ function Ne() {
448
+ return V(Z);
415
449
  }
416
- o(Fe, "_temp$1");
417
- function De() {
418
- const r = L(/* @__PURE__ */ new Map()), e = Q((a) => r.current.get(a), []), t = Q((a, d) => r.current.set(a, d), []), n = Q((a) => r.current.has(a), []), s = Q((a) => r.current.delete(a), []), u = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), i = Q(() => r.current.values(), []), l = Q(() => r.current.entries(), []), m = Q(() => r.current[Symbol.iterator](), []), f = Q((a) => (d) => {
450
+ s(Ne, "useFullscreenContext");
451
+ function je() {
452
+ const r = _(/* @__PURE__ */ new Map()), e = Q((a) => r.current.get(a), []), t = Q((a, d) => r.current.set(a, d), []), n = Q((a) => r.current.has(a), []), o = Q((a) => r.current.delete(a), []), u = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), l = Q(() => r.current.values(), []), i = Q(() => r.current.entries(), []), m = Q(() => r.current[Symbol.iterator](), []), f = Q((a) => (d) => {
419
453
  d ? r.current.set(a, d) : r.current.delete(a);
420
454
  }, []);
421
455
  return q(() => () => {
@@ -425,75 +459,75 @@ function De() {
425
459
  get: e,
426
460
  set: t,
427
461
  has: n,
428
- delete: s,
462
+ delete: o,
429
463
  clear: u,
430
464
  keys: c,
431
- values: i,
432
- entries: l,
465
+ values: l,
466
+ entries: i,
433
467
  get size() {
434
468
  return r.current.size;
435
469
  },
436
470
  [Symbol.iterator]: m
437
- }), [f, e, t, n, s, u, c, i, l, m]);
471
+ }), [f, e, t, n, o, u, c, l, i, m]);
438
472
  }
439
- o(De, "useRefs");
440
- function Te() {
441
- const [, r] = re(we, 0);
473
+ s(je, "useRefs");
474
+ function He() {
475
+ const [, r] = oe(Se, 0);
442
476
  return r;
443
477
  }
444
- o(Te, "useForceUpdate");
445
- function we(r) {
478
+ s(He, "useForceUpdate");
479
+ function Se(r) {
446
480
  return r + 1;
447
481
  }
448
- o(we, "_temp");
449
- function J(r) {
482
+ s(Se, "_temp");
483
+ function ee(r) {
450
484
  const e = S(12), {
451
485
  initialQuery: t,
452
486
  query: n,
453
- autoExecute: s,
487
+ autoExecute: o,
454
488
  execute: u
455
- } = r, c = s === void 0 ? !0 : s, l = L(n ?? t);
489
+ } = r, c = o === void 0 ? !0 : o, i = _(n ?? t);
456
490
  let m;
457
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(() => l.current, "t1"), e[0] = m) : m = e[0];
491
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ s(() => i.current, "t1"), e[0] = m) : m = e[0];
458
492
  const f = m;
459
493
  let a;
460
- e[1] !== c || e[2] !== u ? (a = /* @__PURE__ */ o(() => {
461
- const b = f();
462
- c && z(b) && u(b);
494
+ e[1] !== c || e[2] !== u ? (a = /* @__PURE__ */ s(() => {
495
+ const E = f();
496
+ c && z(E) && u(E);
463
497
  }, "t2"), e[1] = c, e[2] = u, e[3] = a) : a = e[3];
464
498
  const d = a;
465
499
  let h;
466
- e[4] !== d ? (h = /* @__PURE__ */ o((b) => {
467
- l.current = b, d();
500
+ e[4] !== d ? (h = /* @__PURE__ */ s((E) => {
501
+ i.current = E, d();
468
502
  }, "t3"), e[4] = d, e[5] = h) : h = e[5];
469
503
  const y = h;
470
- let E, x;
471
- e[6] !== d || e[7] !== n ? (E = /* @__PURE__ */ o(() => {
472
- z(n) && (l.current = n), d();
473
- }, "t4"), x = [d, n], e[6] = d, e[7] = n, e[8] = E, e[9] = x) : (E = e[8], x = e[9]), q(E, x);
474
- let g;
475
- return e[10] !== y ? (g = {
504
+ let g, b;
505
+ e[6] !== d || e[7] !== n ? (g = /* @__PURE__ */ s(() => {
506
+ z(n) && (i.current = n), d();
507
+ }, "t4"), b = [d, n], e[6] = d, e[7] = n, e[8] = g, e[9] = b) : (g = e[8], b = e[9]), q(g, b);
508
+ let x;
509
+ return e[10] !== y ? (x = {
476
510
  getQuery: f,
477
511
  setQuery: y
478
- }, e[10] = y, e[11] = g) : g = e[11], g;
512
+ }, e[10] = y, e[11] = x) : x = e[11], x;
479
513
  }
480
- o(J, "useQueryState");
514
+ s(ee, "useQueryState");
481
515
  function z(r) {
482
516
  return r !== void 0;
483
517
  }
484
- o(z, "isValidateQuery");
485
- function I(r) {
486
- const e = S(21), t = O(r), {
518
+ s(z, "isValidateQuery");
519
+ function P(r) {
520
+ const e = S(21), t = C(r), {
487
521
  loading: n,
488
- result: s,
522
+ result: o,
489
523
  error: u,
490
524
  status: c,
491
- execute: i,
492
- reset: l,
525
+ execute: l,
526
+ reset: i,
493
527
  abort: m
494
- } = T(r);
528
+ } = D(r);
495
529
  let f;
496
- e[0] !== t || e[1] !== i ? (f = /* @__PURE__ */ o((b) => i(/* @__PURE__ */ o(async (w) => t.current.execute(b, t.current.attributes, w), "queryExecutor")), "t0"), e[0] = t, e[1] = i, e[2] = f) : f = e[2];
530
+ e[0] !== t || e[1] !== l ? (f = /* @__PURE__ */ s((E) => l(/* @__PURE__ */ s(async (F) => t.current.execute(E, t.current.attributes, F), "queryExecutor")), "t0"), e[0] = t, e[1] = l, e[2] = f) : f = e[2];
497
531
  const a = f;
498
532
  let d;
499
533
  e[3] !== a || e[4] !== r.autoExecute || e[5] !== r.initialQuery || e[6] !== r.query ? (d = {
@@ -505,147 +539,147 @@ function I(r) {
505
539
  const {
506
540
  getQuery: h,
507
541
  setQuery: y
508
- } = J(d);
509
- let E;
510
- e[8] !== a || e[9] !== h ? (E = /* @__PURE__ */ o(async () => {
511
- const b = h();
512
- if (z(b))
513
- return await a(b);
514
- }, "t2"), e[8] = a, e[9] = h, e[10] = E) : E = e[10];
515
- const x = E;
542
+ } = ee(d);
516
543
  let g;
517
- return e[11] !== m || e[12] !== u || e[13] !== x || e[14] !== h || e[15] !== n || e[16] !== l || e[17] !== s || e[18] !== y || e[19] !== c ? (g = {
544
+ e[8] !== a || e[9] !== h ? (g = /* @__PURE__ */ s(async () => {
545
+ const E = h();
546
+ if (z(E))
547
+ return await a(E);
548
+ }, "t2"), e[8] = a, e[9] = h, e[10] = g) : g = e[10];
549
+ const b = g;
550
+ let x;
551
+ return e[11] !== m || e[12] !== u || e[13] !== b || e[14] !== h || e[15] !== n || e[16] !== i || e[17] !== o || e[18] !== y || e[19] !== c ? (x = {
518
552
  loading: n,
519
- result: s,
553
+ result: o,
520
554
  error: u,
521
555
  status: c,
522
- execute: x,
523
- reset: l,
556
+ execute: b,
557
+ reset: i,
524
558
  abort: m,
525
559
  getQuery: h,
526
560
  setQuery: y
527
- }, e[11] = m, e[12] = u, e[13] = x, e[14] = h, e[15] = n, e[16] = l, e[17] = s, e[18] = y, e[19] = c, e[20] = g) : g = e[20], g;
561
+ }, e[11] = m, e[12] = u, e[13] = b, e[14] = h, e[15] = n, e[16] = i, e[17] = o, e[18] = y, e[19] = c, e[20] = x) : x = e[20], x;
528
562
  }
529
- o(I, "useQuery");
530
- function ve(r, e) {
531
- const t = S(10), n = T(e);
532
- let s, u;
563
+ s(P, "useQuery");
564
+ function Qe(r, e) {
565
+ const t = S(10), n = D(e);
566
+ let o, u;
533
567
  t[0] !== n ? ({
534
- execute: s,
568
+ execute: o,
535
569
  ...u
536
- } = n, t[0] = n, t[1] = s, t[2] = u) : (s = t[1], u = t[2]);
537
- const c = O(e?.onBeforeExecute);
538
- let i;
539
- t[3] !== r || t[4] !== c || t[5] !== s ? (i = /* @__PURE__ */ o((...f) => {
570
+ } = n, t[0] = n, t[1] = o, t[2] = u) : (o = t[1], u = t[2]);
571
+ const c = C(e?.onBeforeExecute);
572
+ let l;
573
+ t[3] !== r || t[4] !== c || t[5] !== o ? (l = /* @__PURE__ */ s((...f) => {
540
574
  const a = f;
541
- return s((d) => (c.current && c.current(d, a), r(...a)));
542
- }, "t1"), t[3] = r, t[4] = c, t[5] = s, t[6] = i) : i = t[6];
543
- const l = i;
575
+ return o((d) => (c.current && c.current(d, a), r(...a)));
576
+ }, "t1"), t[3] = r, t[4] = c, t[5] = o, t[6] = l) : l = t[6];
577
+ const i = l;
544
578
  let m;
545
- return t[7] !== l || t[8] !== u ? (m = {
579
+ return t[7] !== i || t[8] !== u ? (m = {
546
580
  ...u,
547
- execute: l
548
- }, t[7] = l, t[8] = u, t[9] = m) : m = t[9], m;
581
+ execute: i
582
+ }, t[7] = i, t[8] = u, t[9] = m) : m = t[9], m;
549
583
  }
550
- o(ve, "useApiMethodExecute");
551
- function Se(r) {
552
- return /* @__PURE__ */ o(function(t) {
553
- return ve(r, t);
584
+ s(Qe, "useApiMethodExecute");
585
+ function Re(r) {
586
+ return /* @__PURE__ */ s(function(t) {
587
+ return Qe(r, t);
554
588
  }, "useApiMethod");
555
589
  }
556
- o(Se, "createHookForMethod");
557
- function Ue(r) {
590
+ s(Re, "createHookForMethod");
591
+ function Be(r) {
558
592
  const {
559
593
  api: e
560
594
  } = r, t = {};
561
- return V(e).forEach((s, u) => {
562
- const c = K(u);
563
- t[c] = Se(s);
595
+ return J(e).forEach((o, u) => {
596
+ const c = W(u);
597
+ t[c] = Re(o);
564
598
  }), t;
565
599
  }
566
- o(Ue, "createExecuteApiHooks");
567
- function Qe(r) {
568
- return /* @__PURE__ */ o(function(t) {
569
- const n = O(t?.onBeforeExecute), s = Q(async (c, i, l) => (n.current && n.current(l, c), r(c, i, l)), [n]), u = {
600
+ s(Be, "createExecuteApiHooks");
601
+ function pe(r) {
602
+ return /* @__PURE__ */ s(function(t) {
603
+ const n = C(t?.onBeforeExecute), o = Q(async (c, l, i) => (n.current && n.current(i, c), r(c, l, i)), [n]), u = {
570
604
  ...t,
571
- execute: s
605
+ execute: o
572
606
  };
573
- return I(u);
607
+ return P(u);
574
608
  }, "useApiMethodQuery");
575
609
  }
576
- o(Qe, "createQueryHookForMethod");
577
- function Ne(r) {
610
+ s(pe, "createQueryHookForMethod");
611
+ function Ge(r) {
578
612
  const {
579
613
  api: e
580
614
  } = r, t = {};
581
- return V(e).forEach((s, u) => {
582
- const c = K(u);
583
- t[c] = Qe(s);
615
+ return J(e).forEach((o, u) => {
616
+ const c = W(u);
617
+ t[c] = pe(o);
584
618
  }), t;
585
619
  }
586
- o(Ne, "createQueryApiHooks");
587
- function Y(r, e) {
620
+ s(Ge, "createQueryApiHooks");
621
+ function te(r, e) {
588
622
  const t = S(13);
589
623
  let n;
590
- t[0] !== r ? (n = /* @__PURE__ */ o((h) => r.addListener({
591
- name: oe.generate("useKeyStorage"),
624
+ t[0] !== r ? (n = /* @__PURE__ */ s((h) => r.addListener({
625
+ name: le.generate("useKeyStorage"),
592
626
  handle: h
593
627
  }), "t0"), t[0] = r, t[1] = n) : n = t[1];
594
- const s = n;
628
+ const o = n;
595
629
  let u;
596
- t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */ o(() => {
630
+ t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */ s(() => {
597
631
  const h = r.get();
598
632
  return h !== null ? h : e ?? null;
599
633
  }, "t1"), t[2] = e, t[3] = r, t[4] = u) : u = t[4];
600
- const c = u, i = ne(s, c, c);
601
- let l;
602
- t[5] !== r ? (l = /* @__PURE__ */ o((h) => r.set(h), "t2"), t[5] = r, t[6] = l) : l = t[6];
603
- const m = l;
634
+ const c = u, l = ue(o, c, c);
635
+ let i;
636
+ t[5] !== r ? (i = /* @__PURE__ */ s((h) => r.set(h), "t2"), t[5] = r, t[6] = i) : i = t[6];
637
+ const m = i;
604
638
  let f;
605
- t[7] !== r ? (f = /* @__PURE__ */ o(() => r.remove(), "t3"), t[7] = r, t[8] = f) : f = t[8];
639
+ t[7] !== r ? (f = /* @__PURE__ */ s(() => r.remove(), "t3"), t[7] = r, t[8] = f) : f = t[8];
606
640
  const a = f;
607
641
  let d;
608
- return t[9] !== a || t[10] !== m || t[11] !== i ? (d = [i, m, a], t[9] = a, t[10] = m, t[11] = i, t[12] = d) : d = t[12], d;
642
+ return t[9] !== a || t[10] !== m || t[11] !== l ? (d = [l, m, a], t[9] = a, t[10] = m, t[11] = l, t[12] = d) : d = t[12], d;
609
643
  }
610
- o(Y, "useKeyStorage");
611
- function je(r, e) {
612
- const t = S(8), [n, s, u] = Y(r, e);
644
+ s(te, "useKeyStorage");
645
+ function Ke(r, e) {
646
+ const t = S(8), [n, o, u] = te(r, e);
613
647
  let c;
614
- t[0] !== u || t[1] !== s || t[2] !== n ? (c = /* @__PURE__ */ o((m) => {
615
- const f = ue(n, m);
648
+ t[0] !== u || t[1] !== o || t[2] !== n ? (c = /* @__PURE__ */ s((m) => {
649
+ const f = ie(n, m);
616
650
  if (f === null) {
617
651
  u();
618
652
  return;
619
653
  }
620
- return s(f);
621
- }, "t0"), t[0] = u, t[1] = s, t[2] = n, t[3] = c) : c = t[3];
622
- const i = c;
623
- let l;
624
- return t[4] !== u || t[5] !== i || t[6] !== n ? (l = [n, i, u], t[4] = u, t[5] = i, t[6] = n, t[7] = l) : l = t[7], l;
654
+ return o(f);
655
+ }, "t0"), t[0] = u, t[1] = o, t[2] = n, t[3] = c) : c = t[3];
656
+ const l = c;
657
+ let i;
658
+ return t[4] !== u || t[5] !== l || t[6] !== n ? (i = [n, l, u], t[4] = u, t[5] = l, t[6] = n, t[7] = i) : i = t[7], i;
625
659
  }
626
- o(je, "useImmerKeyStorage");
627
- const pe = {
660
+ s(Ke, "useImmerKeyStorage");
661
+ const _e = {
628
662
  jti: "",
629
663
  sub: "anonymous",
630
664
  iat: 0,
631
665
  exp: 0
632
666
  };
633
- function Re(r, e) {
667
+ function Oe(r, e) {
634
668
  const t = S(13);
635
669
  let n;
636
670
  t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
637
- const s = n, [u, , c] = Y(r), i = O(s);
638
- let l;
639
- t[2] !== i || t[3] !== r ? (l = /* @__PURE__ */ o(async (E) => {
640
- const x = typeof E == "function" ? await E() : E;
641
- r.signIn(x), i.current.onSignIn?.();
642
- }, "t2"), t[2] = i, t[3] = r, t[4] = l) : l = t[4];
643
- const m = l;
671
+ const o = n, [u, , c] = te(r), l = C(o);
672
+ let i;
673
+ t[2] !== l || t[3] !== r ? (i = /* @__PURE__ */ s(async (g) => {
674
+ const b = typeof g == "function" ? await g() : g;
675
+ r.signIn(b), l.current.onSignIn?.();
676
+ }, "t2"), t[2] = l, t[3] = r, t[4] = i) : i = t[4];
677
+ const m = i;
644
678
  let f;
645
- t[5] !== i || t[6] !== c ? (f = /* @__PURE__ */ o(() => {
646
- c(), i.current.onSignOut?.();
647
- }, "t3"), t[5] = i, t[6] = c, t[7] = f) : f = t[7];
648
- const a = f, d = u?.access?.payload ?? pe, h = u?.authenticated ?? !1;
679
+ t[5] !== l || t[6] !== c ? (f = /* @__PURE__ */ s(() => {
680
+ c(), l.current.onSignOut?.();
681
+ }, "t3"), t[5] = l, t[6] = c, t[7] = f) : f = t[7];
682
+ const a = f, d = u?.access?.payload ?? _e, h = u?.authenticated ?? !1;
649
683
  let y;
650
684
  return t[8] !== m || t[9] !== a || t[10] !== d || t[11] !== h ? (y = {
651
685
  currentUser: d,
@@ -654,237 +688,237 @@ function Re(r, e) {
654
688
  signOut: a
655
689
  }, t[8] = m, t[9] = a, t[10] = d, t[11] = h, t[12] = y) : y = t[12], y;
656
690
  }
657
- o(Re, "useSecurity");
658
- const X = ce(void 0);
659
- function He(r) {
691
+ s(Oe, "useSecurity");
692
+ const re = K(void 0);
693
+ function Ve(r) {
660
694
  const e = S(7);
661
- let t, n, s;
695
+ let t, n, o;
662
696
  e[0] !== r ? ({
663
697
  tokenStorage: n,
664
698
  children: t,
665
- ...s
666
- } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s) : (t = e[1], n = e[2], s = e[3]);
667
- const u = Re(n, s);
699
+ ...o
700
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = o) : (t = e[1], n = e[2], o = e[3]);
701
+ const u = Oe(n, o);
668
702
  let c;
669
- return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */ A(X.Provider, { value: u, children: t }), e[4] = t, e[5] = u, e[6] = c) : c = e[6], c;
703
+ return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */ $(re.Provider, { value: u, children: t }), e[4] = t, e[5] = u, e[6] = c) : c = e[6], c;
670
704
  }
671
- o(He, "SecurityProvider");
672
- function Z() {
673
- const r = se(X);
705
+ s(Ve, "SecurityProvider");
706
+ function ne() {
707
+ const r = V(re);
674
708
  if (!r)
675
709
  throw new Error("useSecurityContext must be used within a SecurityProvider");
676
710
  return r;
677
711
  }
678
- o(Z, "useSecurityContext");
679
- function Be(r) {
712
+ s(ne, "useSecurityContext");
713
+ function We(r) {
680
714
  const e = S(2), {
681
715
  children: t,
682
716
  fallback: n,
683
- onUnauthorized: s
717
+ onUnauthorized: o
684
718
  } = r, {
685
719
  authenticated: u
686
- } = Z();
720
+ } = ne();
687
721
  if (u) {
688
722
  let c;
689
- return e[0] !== t ? (c = /* @__PURE__ */ A(k, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
723
+ return e[0] !== t ? (c = /* @__PURE__ */ $(k, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
690
724
  }
691
- return s && s(), n;
725
+ return o && o(), n;
692
726
  }
693
- o(Be, "RouteGuard");
694
- function Ge(r) {
727
+ s(We, "RouteGuard");
728
+ function Je(r) {
695
729
  const e = S(14), {
696
730
  children: t,
697
731
  fallback: n,
698
- refreshing: s,
732
+ refreshing: o,
699
733
  tokenManager: u
700
734
  } = r, {
701
735
  authenticated: c
702
- } = Z(), i = u.isRefreshNeeded && u.isRefreshable;
703
- let l;
704
- e[0] !== i || e[1] !== u ? (l = /* @__PURE__ */ o(async () => {
705
- if (i)
736
+ } = ne(), l = u.isRefreshNeeded && u.isRefreshable;
737
+ let i;
738
+ e[0] !== l || e[1] !== u ? (i = /* @__PURE__ */ s(async () => {
739
+ if (l)
706
740
  try {
707
741
  await u.refresh();
708
- } catch (E) {
709
- console.error(E);
742
+ } catch (g) {
743
+ console.error(g);
710
744
  }
711
- }, "t1"), e[0] = i, e[1] = u, e[2] = l) : l = e[2];
712
- const m = l;
745
+ }, "t1"), e[0] = l, e[1] = u, e[2] = i) : i = e[2];
746
+ const m = i;
713
747
  let f, a;
714
- if (e[3] !== m ? (f = /* @__PURE__ */ o(() => {
748
+ if (e[3] !== m ? (f = /* @__PURE__ */ s(() => {
715
749
  m();
716
750
  }, "t2"), a = [m], e[3] = m, e[4] = f, e[5] = a) : (f = e[4], a = e[5]), q(f, a), c) {
717
- let E;
718
- return e[6] !== t ? (E = /* @__PURE__ */ A(k, { children: t }), e[6] = t, e[7] = E) : E = e[7], E;
751
+ let g;
752
+ return e[6] !== t ? (g = /* @__PURE__ */ $(k, { children: t }), e[6] = t, e[7] = g) : g = e[7], g;
719
753
  }
720
- if (!i) {
721
- let E;
722
- return e[8] !== n ? (E = /* @__PURE__ */ A(k, { children: n }), e[8] = n, e[9] = E) : E = e[9], E;
754
+ if (!l) {
755
+ let g;
756
+ return e[8] !== n ? (g = /* @__PURE__ */ $(k, { children: n }), e[8] = n, e[9] = g) : g = e[9], g;
723
757
  }
724
758
  let d;
725
- e[10] !== s ? (d = s ?? /* @__PURE__ */ A("p", { children: "Refreshing..." }), e[10] = s, e[11] = d) : d = e[11];
759
+ e[10] !== o ? (d = o ?? /* @__PURE__ */ $("p", { children: "Refreshing..." }), e[10] = o, e[11] = d) : d = e[11];
726
760
  const h = d;
727
761
  let y;
728
- return e[12] !== h ? (y = /* @__PURE__ */ A(k, { children: h }), e[12] = h, e[13] = y) : y = e[13], y;
762
+ return e[12] !== h ? (y = /* @__PURE__ */ $(k, { children: h }), e[12] = h, e[13] = y) : y = e[13], y;
729
763
  }
730
- o(Ge, "RefreshableRouteGuard");
731
- function ee(r) {
764
+ s(Je, "RefreshableRouteGuard");
765
+ function ce(r) {
732
766
  const e = S(21);
733
767
  let t;
734
768
  e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
735
769
  const {
736
770
  fetcher: n
737
- } = t, s = n === void 0 ? le.default : n, {
771
+ } = t, o = n === void 0 ? ae.default : n, {
738
772
  loading: u,
739
773
  result: c,
740
- error: i,
741
- status: l,
774
+ error: l,
775
+ status: i,
742
776
  execute: m,
743
777
  reset: f,
744
778
  abort: a
745
- } = T(r), [d, h] = P(void 0), y = O(r);
746
- let E;
747
- e[2] !== s ? (E = ie(s), e[2] = s, e[3] = E) : E = e[3];
748
- const x = E;
779
+ } = D(r), [d, h] = M(void 0), y = C(r);
749
780
  let g;
750
- e[4] !== x || e[5] !== y || e[6] !== m ? (g = /* @__PURE__ */ o(async ($) => {
781
+ e[2] !== o ? (g = fe(o), e[2] = o, e[3] = g) : g = e[3];
782
+ const b = g;
783
+ let x;
784
+ e[4] !== b || e[5] !== y || e[6] !== m ? (x = /* @__PURE__ */ s(async (I) => {
751
785
  try {
752
- await m(async (R) => {
753
- $.abortController = R;
754
- const _ = await x.exchange($, y.current);
755
- return h(_), await _.extractResult();
786
+ await m(async (p) => {
787
+ I.abortController = p;
788
+ const O = await b.exchange(I, y.current);
789
+ return h(O), await O.extractResult();
756
790
  });
757
- } catch (R) {
758
- const _ = R;
759
- throw h(void 0), _;
791
+ } catch (p) {
792
+ const O = p;
793
+ throw h(void 0), O;
760
794
  }
761
- }, "t3"), e[4] = x, e[5] = y, e[6] = m, e[7] = g) : g = e[7];
762
- const b = g;
763
- let F;
764
- e[8] !== f ? (F = /* @__PURE__ */ o(() => {
765
- f(), h(void 0);
766
- }, "t4"), e[8] = f, e[9] = F) : F = e[9];
767
- const w = F;
795
+ }, "t3"), e[4] = b, e[5] = y, e[6] = m, e[7] = x) : x = e[7];
796
+ const E = x;
768
797
  let v;
769
- e[10] !== a ? (v = /* @__PURE__ */ o(() => {
798
+ e[8] !== f ? (v = /* @__PURE__ */ s(() => {
799
+ f(), h(void 0);
800
+ }, "t4"), e[8] = f, e[9] = v) : v = e[9];
801
+ const F = v;
802
+ let w;
803
+ e[10] !== a ? (w = /* @__PURE__ */ s(() => {
770
804
  a(), h(void 0);
771
- }, "t5"), e[10] = a, e[11] = v) : v = e[11];
772
- const p = v;
773
- let C;
774
- return e[12] !== p || e[13] !== i || e[14] !== d || e[15] !== b || e[16] !== u || e[17] !== w || e[18] !== c || e[19] !== l ? (C = {
805
+ }, "t5"), e[10] = a, e[11] = w) : w = e[11];
806
+ const R = w;
807
+ let L;
808
+ return e[12] !== R || e[13] !== l || e[14] !== d || e[15] !== E || e[16] !== u || e[17] !== F || e[18] !== c || e[19] !== i ? (L = {
775
809
  loading: u,
776
810
  result: c,
777
- error: i,
778
- status: l,
811
+ error: l,
812
+ status: i,
779
813
  exchange: d,
780
- execute: b,
781
- reset: w,
782
- abort: p
783
- }, e[12] = p, e[13] = i, e[14] = d, e[15] = b, e[16] = u, e[17] = w, e[18] = c, e[19] = l, e[20] = C) : C = e[20], C;
814
+ execute: E,
815
+ reset: F,
816
+ abort: R
817
+ }, e[12] = R, e[13] = l, e[14] = d, e[15] = E, e[16] = u, e[17] = F, e[18] = c, e[19] = i, e[20] = L) : L = e[20], L;
784
818
  }
785
- o(ee, "useFetcher");
786
- function Ke(r) {
819
+ s(ce, "useFetcher");
820
+ function Ye(r) {
787
821
  const e = S(11), {
788
822
  loading: t,
789
823
  result: n,
790
- error: s,
824
+ error: o,
791
825
  status: u,
792
826
  exchange: c,
793
- execute: i,
794
- reset: l,
827
+ execute: l,
828
+ reset: i,
795
829
  abort: m
796
- } = ee(r), {
830
+ } = ce(r), {
797
831
  run: f,
798
832
  cancel: a,
799
833
  isPending: d
800
- } = D(i, r.debounce);
834
+ } = T(l, r.debounce);
801
835
  let h;
802
- return e[0] !== m || e[1] !== a || e[2] !== s || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== l || e[7] !== n || e[8] !== f || e[9] !== u ? (h = {
836
+ return e[0] !== m || e[1] !== a || e[2] !== o || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== i || e[7] !== n || e[8] !== f || e[9] !== u ? (h = {
803
837
  loading: t,
804
838
  result: n,
805
- error: s,
839
+ error: o,
806
840
  status: u,
807
841
  exchange: c,
808
- reset: l,
842
+ reset: i,
809
843
  abort: m,
810
844
  run: f,
811
845
  cancel: a,
812
846
  isPending: d
813
- }, e[0] = m, e[1] = a, e[2] = s, e[3] = c, e[4] = d, e[5] = t, e[6] = l, e[7] = n, e[8] = f, e[9] = u, e[10] = h) : h = e[10], h;
847
+ }, e[0] = m, e[1] = a, e[2] = o, e[3] = c, e[4] = d, e[5] = t, e[6] = i, e[7] = n, e[8] = f, e[9] = u, e[10] = h) : h = e[10], h;
814
848
  }
815
- o(Ke, "useDebouncedFetcher");
816
- function Ve(r) {
849
+ s(Ye, "useDebouncedFetcher");
850
+ function Xe(r) {
817
851
  const e = S(22), t = r.autoExecute;
818
852
  let n;
819
853
  e[0] !== r ? (n = {
820
854
  ...r,
821
855
  autoExecute: !1
822
856
  }, e[0] = r, e[1] = n) : n = e[1];
823
- const s = n, {
857
+ const o = n, {
824
858
  loading: u,
825
859
  result: c,
826
- error: i,
827
- status: l,
860
+ error: l,
861
+ status: i,
828
862
  execute: m,
829
863
  reset: f,
830
864
  abort: a,
831
865
  getQuery: d,
832
866
  setQuery: h
833
- } = M(s), {
867
+ } = A(o), {
834
868
  run: y,
835
- cancel: E,
836
- isPending: x
837
- } = D(m, r.debounce);
838
- let g;
839
- e[2] !== t || e[3] !== y || e[4] !== h ? (g = /* @__PURE__ */ o((p) => {
840
- h(p), t && y();
841
- }, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = g) : g = e[5];
842
- const b = g;
843
- let F, w;
844
- e[6] !== t || e[7] !== y ? (F = /* @__PURE__ */ o(() => {
869
+ cancel: g,
870
+ isPending: b
871
+ } = T(m, r.debounce);
872
+ let x;
873
+ e[2] !== t || e[3] !== y || e[4] !== h ? (x = /* @__PURE__ */ s((R) => {
874
+ h(R), t && y();
875
+ }, "t1"), e[2] = t, e[3] = y, e[4] = h, e[5] = x) : x = e[5];
876
+ const E = x;
877
+ let v, F;
878
+ e[6] !== t || e[7] !== y ? (v = /* @__PURE__ */ s(() => {
845
879
  t && y();
846
- }, "t2"), w = [y, t], e[6] = t, e[7] = y, e[8] = F, e[9] = w) : (F = e[8], w = e[9]), q(F, w);
847
- let v;
848
- return e[10] !== a || e[11] !== E || e[12] !== i || e[13] !== d || e[14] !== x || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== b || e[20] !== l ? (v = {
880
+ }, "t2"), F = [y, t], e[6] = t, e[7] = y, e[8] = v, e[9] = F) : (v = e[8], F = e[9]), q(v, F);
881
+ let w;
882
+ return e[10] !== a || e[11] !== g || e[12] !== l || e[13] !== d || e[14] !== b || e[15] !== u || e[16] !== f || e[17] !== c || e[18] !== y || e[19] !== E || e[20] !== i ? (w = {
849
883
  loading: u,
850
884
  result: c,
851
- error: i,
852
- status: l,
885
+ error: l,
886
+ status: i,
853
887
  reset: f,
854
888
  abort: a,
855
889
  getQuery: d,
856
- setQuery: b,
890
+ setQuery: E,
857
891
  run: y,
858
- cancel: E,
859
- isPending: x
860
- }, e[10] = a, e[11] = E, e[12] = i, e[13] = d, e[14] = x, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = b, e[20] = l, e[21] = v) : v = e[21], v;
892
+ cancel: g,
893
+ isPending: b
894
+ }, e[10] = a, e[11] = g, e[12] = l, e[13] = d, e[14] = b, e[15] = u, e[16] = f, e[17] = c, e[18] = y, e[19] = E, e[20] = i, e[21] = w) : w = e[21], w;
861
895
  }
862
- o(Ve, "useDebouncedFetcherQuery");
863
- function M(r) {
896
+ s(Xe, "useDebouncedFetcherQuery");
897
+ function A(r) {
864
898
  const e = S(23);
865
899
  let t;
866
900
  e[0] !== r ? (t = {
867
- resultExtractor: ae,
901
+ resultExtractor: de,
868
902
  ...r
869
903
  }, e[0] = r, e[1] = t) : t = e[1];
870
- const n = t, s = O(n), {
904
+ const n = t, o = C(n), {
871
905
  loading: u,
872
906
  result: c,
873
- error: i,
874
- status: l,
907
+ error: l,
908
+ status: i,
875
909
  execute: m,
876
910
  reset: f,
877
911
  abort: a
878
- } = ee(n);
912
+ } = ce(n);
879
913
  let d;
880
- e[2] !== m || e[3] !== s ? (d = /* @__PURE__ */ o((w) => {
881
- const v = {
882
- url: s.current.url,
914
+ e[2] !== m || e[3] !== o ? (d = /* @__PURE__ */ s((F) => {
915
+ const w = {
916
+ url: o.current.url,
883
917
  method: "POST",
884
- body: w
918
+ body: F
885
919
  };
886
- return m(v);
887
- }, "t1"), e[2] = m, e[3] = s, e[4] = d) : d = e[4];
920
+ return m(w);
921
+ }, "t1"), e[2] = m, e[3] = o, e[4] = d) : d = e[4];
888
922
  const h = d;
889
923
  let y;
890
924
  e[5] !== h || e[6] !== n.autoExecute || e[7] !== n.initialQuery || e[8] !== n.query ? (y = {
@@ -894,145 +928,149 @@ function M(r) {
894
928
  execute: h
895
929
  }, e[5] = h, e[6] = n.autoExecute, e[7] = n.initialQuery, e[8] = n.query, e[9] = y) : y = e[9];
896
930
  const {
897
- getQuery: E,
898
- setQuery: x
899
- } = J(y);
900
- let g;
901
- e[10] !== h || e[11] !== E ? (g = /* @__PURE__ */ o(async () => {
902
- const w = E();
903
- if (z(w))
904
- return await h(w);
905
- }, "t3"), e[10] = h, e[11] = E, e[12] = g) : g = e[12];
906
- const b = g;
907
- let F;
908
- return e[13] !== a || e[14] !== i || e[15] !== b || e[16] !== E || e[17] !== u || e[18] !== f || e[19] !== c || e[20] !== x || e[21] !== l ? (F = {
931
+ getQuery: g,
932
+ setQuery: b
933
+ } = ee(y);
934
+ let x;
935
+ e[10] !== h || e[11] !== g ? (x = /* @__PURE__ */ s(async () => {
936
+ const F = g();
937
+ if (z(F))
938
+ return await h(F);
939
+ }, "t3"), e[10] = h, e[11] = g, e[12] = x) : x = e[12];
940
+ const E = x;
941
+ let v;
942
+ return e[13] !== a || e[14] !== l || e[15] !== E || e[16] !== g || e[17] !== u || e[18] !== f || e[19] !== c || e[20] !== b || e[21] !== i ? (v = {
909
943
  loading: u,
910
944
  result: c,
911
- error: i,
912
- status: l,
913
- execute: b,
945
+ error: l,
946
+ status: i,
947
+ execute: E,
914
948
  reset: f,
915
949
  abort: a,
916
- getQuery: E,
917
- setQuery: x
918
- }, e[13] = a, e[14] = i, e[15] = b, e[16] = E, e[17] = u, e[18] = f, e[19] = c, e[20] = x, e[21] = l, e[22] = F) : F = e[22], F;
950
+ getQuery: g,
951
+ setQuery: b
952
+ }, e[13] = a, e[14] = l, e[15] = E, e[16] = g, e[17] = u, e[18] = f, e[19] = c, e[20] = b, e[21] = i, e[22] = v) : v = e[22], v;
919
953
  }
920
- o(M, "useFetcherQuery");
921
- function We(r) {
922
- return M(r);
954
+ s(A, "useFetcherQuery");
955
+ function Ze(r) {
956
+ return A(r);
923
957
  }
924
- o(We, "useFetcherCountQuery");
925
- function Je(r) {
926
- return M(r);
958
+ s(Ze, "useFetcherCountQuery");
959
+ function et(r) {
960
+ return A(r);
927
961
  }
928
- o(Je, "useFetcherListQuery");
929
- function Ye(r) {
962
+ s(et, "useFetcherListQuery");
963
+ function tt(r) {
930
964
  const e = S(2);
931
965
  let t;
932
966
  return e[0] !== r ? (t = {
933
967
  ...r,
934
- resultExtractor: fe
935
- }, e[0] = r, e[1] = t) : t = e[1], M(t);
936
- }
937
- o(Ye, "useFetcherListStreamQuery");
938
- function Xe(r) {
939
- return M(r);
940
- }
941
- o(Xe, "useFetcherPagedQuery");
942
- function Ze(r) {
943
- return M(r);
944
- }
945
- o(Ze, "useFetcherSingleQuery");
946
- function et(r) {
947
- return I(r);
948
- }
949
- o(et, "useCountQuery");
950
- function tt(r) {
951
- return I(r);
968
+ resultExtractor: me
969
+ }, e[0] = r, e[1] = t) : t = e[1], A(t);
952
970
  }
953
- o(tt, "useListQuery");
971
+ s(tt, "useFetcherListStreamQuery");
954
972
  function rt(r) {
955
- return I(r);
973
+ return A(r);
956
974
  }
957
- o(rt, "useListStreamQuery");
975
+ s(rt, "useFetcherPagedQuery");
958
976
  function nt(r) {
959
- return I(r);
977
+ return A(r);
960
978
  }
961
- o(nt, "usePagedQuery");
979
+ s(nt, "useFetcherSingleQuery");
962
980
  function ct(r) {
963
- return I(r);
981
+ return P(r);
964
982
  }
965
- o(ct, "useSingleQuery");
983
+ s(ct, "useCountQuery");
966
984
  function st(r) {
985
+ return P(r);
986
+ }
987
+ s(st, "useListQuery");
988
+ function ot(r) {
989
+ return P(r);
990
+ }
991
+ s(ot, "useListStreamQuery");
992
+ function ut(r) {
993
+ return P(r);
994
+ }
995
+ s(ut, "usePagedQuery");
996
+ function lt(r) {
997
+ return P(r);
998
+ }
999
+ s(lt, "useSingleQuery");
1000
+ function it(r) {
967
1001
  const e = S(13), {
968
1002
  bus: t,
969
1003
  handler: n
970
1004
  } = r;
971
- let s;
972
- e[0] !== t || e[1] !== n ? (s = /* @__PURE__ */ o(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = s) : s = e[2];
973
- const u = s;
1005
+ let o;
1006
+ e[0] !== t || e[1] !== n ? (o = /* @__PURE__ */ s(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = o) : o = e[2];
1007
+ const u = o;
974
1008
  let c;
975
- e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */ o(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = c) : c = e[5];
976
- const i = c;
977
- let l, m;
978
- e[6] !== t || e[7] !== n ? (l = /* @__PURE__ */ o(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
1009
+ e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */ s(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = c) : c = e[5];
1010
+ const l = c;
1011
+ let i, m;
1012
+ e[6] !== t || e[7] !== n ? (i = /* @__PURE__ */ s(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
979
1013
  t.off(n.name);
980
- }), "t2"), m = [t, n], e[6] = t, e[7] = n, e[8] = l, e[9] = m) : (l = e[8], m = e[9]), q(l, m);
1014
+ }), "t2"), m = [t, n], e[6] = t, e[7] = n, e[8] = i, e[9] = m) : (i = e[8], m = e[9]), q(i, m);
981
1015
  let f;
982
- return e[10] !== u || e[11] !== i ? (f = {
1016
+ return e[10] !== u || e[11] !== l ? (f = {
983
1017
  subscribe: u,
984
- unsubscribe: i
985
- }, e[10] = u, e[11] = i, e[12] = f) : f = e[12], f;
1018
+ unsubscribe: l
1019
+ }, e[10] = u, e[11] = l, e[12] = f) : f = e[12], f;
986
1020
  }
987
- o(st, "useEventSubscription");
1021
+ s(it, "useEventSubscription");
988
1022
  export {
989
- pe as ANONYMOUS_USER,
990
- de as PromiseStatus,
991
- Ge as RefreshableRouteGuard,
992
- Be as RouteGuard,
993
- X as SecurityContext,
994
- He as SecurityProvider,
995
- xe as addFullscreenChangeListener,
996
- V as collectMethods,
997
- Ue as createExecuteApiHooks,
998
- Ne as createQueryApiHooks,
999
- Ee as enterFullscreen,
1000
- ge as exitFullscreen,
1001
- ye as getFullscreenElement,
1023
+ _e as ANONYMOUS_USER,
1024
+ Z as FullscreenContext,
1025
+ Ue as FullscreenProvider,
1026
+ he as PromiseStatus,
1027
+ Je as RefreshableRouteGuard,
1028
+ We as RouteGuard,
1029
+ re as SecurityContext,
1030
+ Ve as SecurityProvider,
1031
+ Ee as addFullscreenChangeListener,
1032
+ J as collectMethods,
1033
+ Be as createExecuteApiHooks,
1034
+ Ge as createQueryApiHooks,
1035
+ xe as enterFullscreen,
1036
+ be as exitFullscreen,
1037
+ X as getFullscreenElement,
1038
+ De as isFullscreen,
1002
1039
  z as isValidateQuery,
1003
- K as methodNameToHookName,
1004
- be as removeFullscreenChangeListener,
1005
- et as useCountQuery,
1006
- D as useDebouncedCallback,
1007
- Pe as useDebouncedExecutePromise,
1008
- Ke as useDebouncedFetcher,
1009
- Ve as useDebouncedFetcherQuery,
1010
- ke as useDebouncedQuery,
1011
- st as useEventSubscription,
1012
- T as useExecutePromise,
1013
- ee as useFetcher,
1014
- We as useFetcherCountQuery,
1015
- Je as useFetcherListQuery,
1016
- Ye as useFetcherListStreamQuery,
1017
- Xe as useFetcherPagedQuery,
1018
- M as useFetcherQuery,
1019
- Ze as useFetcherSingleQuery,
1020
- Te as useForceUpdate,
1021
- ze as useFullscreen,
1022
- je as useImmerKeyStorage,
1023
- Y as useKeyStorage,
1024
- O as useLatest,
1025
- tt as useListQuery,
1026
- rt as useListStreamQuery,
1027
- W as useMounted,
1028
- nt as usePagedQuery,
1029
- me as usePromiseState,
1030
- I as useQuery,
1031
- J as useQueryState,
1032
- De as useRefs,
1033
- he as useRequestId,
1034
- Re as useSecurity,
1035
- Z as useSecurityContext,
1036
- ct as useSingleQuery
1040
+ W as methodNameToHookName,
1041
+ Fe as removeFullscreenChangeListener,
1042
+ ct as useCountQuery,
1043
+ T as useDebouncedCallback,
1044
+ ze as useDebouncedExecutePromise,
1045
+ Ye as useDebouncedFetcher,
1046
+ Xe as useDebouncedFetcherQuery,
1047
+ Te as useDebouncedQuery,
1048
+ it as useEventSubscription,
1049
+ D as useExecutePromise,
1050
+ ce as useFetcher,
1051
+ Ze as useFetcherCountQuery,
1052
+ et as useFetcherListQuery,
1053
+ tt as useFetcherListStreamQuery,
1054
+ rt as useFetcherPagedQuery,
1055
+ A as useFetcherQuery,
1056
+ nt as useFetcherSingleQuery,
1057
+ He as useForceUpdate,
1058
+ ve as useFullscreen,
1059
+ Ne as useFullscreenContext,
1060
+ Ke as useImmerKeyStorage,
1061
+ te as useKeyStorage,
1062
+ C as useLatest,
1063
+ st as useListQuery,
1064
+ ot as useListStreamQuery,
1065
+ Y as useMounted,
1066
+ ut as usePagedQuery,
1067
+ ye as usePromiseState,
1068
+ P as useQuery,
1069
+ ee as useQueryState,
1070
+ je as useRefs,
1071
+ ge as useRequestId,
1072
+ Oe as useSecurity,
1073
+ ne as useSecurityContext,
1074
+ lt as useSingleQuery
1037
1075
  };
1038
1076
  //# sourceMappingURL=index.es.js.map