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