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