xmirror-components 1.0.14 → 1.0.15

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.
@@ -1,10 +1,11 @@
1
- import kr, { forwardRef as qr, useRef as j, useMemo as yr, useEffect as Z, useState as Mr, useCallback as Wr } from "react";
2
- import { message as $r, notification as Fr, Modal as Ir, App as Er, Checkbox as Lr, Switch as Yr } from "antd";
3
- var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function Tr(r) {
5
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1
+ (function(){"use strict"})();
2
+ import Pr, { forwardRef as Hr, useRef as j, useMemo as he, useEffect as J, useState as Ar, useCallback as Ur, Fragment as zr } from "react";
3
+ import { message as Dr, notification as Vr, Modal as Jr, App as Cr, Checkbox as Xr, Switch as Zr, Button as Qr, Tooltip as Kr } from "antd";
4
+ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
+ function Ye(e) {
6
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
7
  }
7
- var se = { exports: {} }, te = {};
8
+ var ve = { exports: {} }, te = {};
8
9
  /**
9
10
  * @license React
10
11
  * react-jsx-runtime.production.js
@@ -14,27 +15,27 @@ var se = { exports: {} }, te = {};
14
15
  * This source code is licensed under the MIT license found in the
15
16
  * LICENSE file in the root directory of this source tree.
16
17
  */
17
- var er;
18
- function Gr() {
19
- if (er) return te;
20
- er = 1;
21
- var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
22
- function n(a, i, o) {
18
+ var ur;
19
+ function et() {
20
+ if (ur) return te;
21
+ ur = 1;
22
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
23
+ function r(a, i, o) {
23
24
  var c = null;
24
25
  if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
25
26
  o = {};
26
- for (var f in i)
27
- f !== "key" && (o[f] = i[f]);
27
+ for (var s in i)
28
+ s !== "key" && (o[s] = i[s]);
28
29
  } else o = i;
29
30
  return i = o.ref, {
30
- $$typeof: r,
31
+ $$typeof: e,
31
32
  type: a,
32
33
  key: c,
33
34
  ref: i !== void 0 ? i : null,
34
35
  props: o
35
36
  };
36
37
  }
37
- return te.Fragment = e, te.jsx = n, te.jsxs = n, te;
38
+ return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
38
39
  }
39
40
  var ne = {};
40
41
  /**
@@ -46,471 +47,471 @@ var ne = {};
46
47
  * This source code is licensed under the MIT license found in the
47
48
  * LICENSE file in the root directory of this source tree.
48
49
  */
49
- var rr;
50
- function Ur() {
51
- return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
52
- function r(t) {
53
- if (t == null) return null;
54
- if (typeof t == "function")
55
- return t.$$typeof === Cr ? null : t.displayName || t.name || null;
56
- if (typeof t == "string") return t;
57
- switch (t) {
58
- case L:
50
+ var cr;
51
+ function rt() {
52
+ return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
53
+ function e(n) {
54
+ if (n == null) return null;
55
+ if (typeof n == "function")
56
+ return n.$$typeof === Br ? null : n.displayName || n.name || null;
57
+ if (typeof n == "string") return n;
58
+ switch (n) {
59
+ case B:
59
60
  return "Fragment";
60
- case G:
61
+ case Y:
61
62
  return "Portal";
62
63
  case P:
63
64
  return "Profiler";
64
- case W:
65
+ case $:
65
66
  return "StrictMode";
66
- case U:
67
+ case H:
67
68
  return "Suspense";
68
69
  case T:
69
70
  return "SuspenseList";
70
71
  }
71
- if (typeof t == "object")
72
- switch (typeof t.tag == "number" && console.error(
72
+ if (typeof n == "object")
73
+ switch (typeof n.tag == "number" && console.error(
73
74
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
74
- ), t.$$typeof) {
75
- case oe:
76
- return (t.displayName || "Context") + ".Provider";
75
+ ), n.$$typeof) {
76
+ case se:
77
+ return (n.displayName || "Context") + ".Provider";
77
78
  case Q:
78
- return (t._context.displayName || "Context") + ".Consumer";
79
+ return (n._context.displayName || "Context") + ".Consumer";
79
80
  case K:
80
- var l = t.render;
81
- return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
82
- case C:
83
- return l = t.displayName || null, l !== null ? l : r(t.type) || "Memo";
84
- case $:
85
- l = t._payload, t = t._init;
81
+ var v = n.render;
82
+ return n = n.displayName, n || (n = v.displayName || v.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
83
+ case A:
84
+ return v = n.displayName || null, v !== null ? v : e(n.type) || "Memo";
85
+ case L:
86
+ v = n._payload, n = n._init;
86
87
  try {
87
- return r(t(l));
88
+ return e(n(v));
88
89
  } catch {
89
90
  }
90
91
  }
91
92
  return null;
92
93
  }
93
- function e(t) {
94
- return "" + t;
94
+ function t(n) {
95
+ return "" + n;
95
96
  }
96
- function n(t) {
97
+ function r(n) {
97
98
  try {
98
- e(t);
99
- var l = !1;
99
+ t(n);
100
+ var v = !1;
100
101
  } catch {
101
- l = !0;
102
+ v = !0;
102
103
  }
103
- if (l) {
104
- l = console;
105
- var d = l.error, p = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
106
- return d.call(
107
- l,
104
+ if (v) {
105
+ v = console;
106
+ var g = v.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
107
+ return g.call(
108
+ v,
108
109
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- p
110
- ), e(t);
110
+ y
111
+ ), t(n);
111
112
  }
112
113
  }
113
114
  function a() {
114
115
  }
115
116
  function i() {
116
117
  if (ee === 0) {
117
- Ge = console.log, Ue = console.info, Be = console.warn, He = console.error, ze = console.group, De = console.groupCollapsed, Ve = console.groupEnd;
118
- var t = {
118
+ Je = console.log, Xe = console.info, Ze = console.warn, Qe = console.error, Ke = console.group, er = console.groupCollapsed, rr = console.groupEnd;
119
+ var n = {
119
120
  configurable: !0,
120
121
  enumerable: !0,
121
122
  value: a,
122
123
  writable: !0
123
124
  };
124
125
  Object.defineProperties(console, {
125
- info: t,
126
- log: t,
127
- warn: t,
128
- error: t,
129
- group: t,
130
- groupCollapsed: t,
131
- groupEnd: t
126
+ info: n,
127
+ log: n,
128
+ warn: n,
129
+ error: n,
130
+ group: n,
131
+ groupCollapsed: n,
132
+ groupEnd: n
132
133
  });
133
134
  }
134
135
  ee++;
135
136
  }
136
137
  function o() {
137
138
  if (ee--, ee === 0) {
138
- var t = { configurable: !0, enumerable: !0, writable: !0 };
139
+ var n = { configurable: !0, enumerable: !0, writable: !0 };
139
140
  Object.defineProperties(console, {
140
- log: H({}, t, { value: Ge }),
141
- info: H({}, t, { value: Ue }),
142
- warn: H({}, t, { value: Be }),
143
- error: H({}, t, { value: He }),
144
- group: H({}, t, { value: ze }),
145
- groupCollapsed: H({}, t, { value: De }),
146
- groupEnd: H({}, t, { value: Ve })
141
+ log: z({}, n, { value: Je }),
142
+ info: z({}, n, { value: Xe }),
143
+ warn: z({}, n, { value: Ze }),
144
+ error: z({}, n, { value: Qe }),
145
+ group: z({}, n, { value: Ke }),
146
+ groupCollapsed: z({}, n, { value: er }),
147
+ groupEnd: z({}, n, { value: rr })
147
148
  });
148
149
  }
149
150
  0 > ee && console.error(
150
151
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
151
152
  );
152
153
  }
153
- function c(t) {
154
- if (he === void 0)
154
+ function c(n) {
155
+ if (Te === void 0)
155
156
  try {
156
157
  throw Error();
157
- } catch (d) {
158
- var l = d.stack.trim().match(/\n( *(at )?)/);
159
- he = l && l[1] || "", Je = -1 < d.stack.indexOf(`
160
- at`) ? " (<anonymous>)" : -1 < d.stack.indexOf("@") ? "@unknown:0:0" : "";
158
+ } catch (g) {
159
+ var v = g.stack.trim().match(/\n( *(at )?)/);
160
+ Te = v && v[1] || "", tr = -1 < g.stack.indexOf(`
161
+ at`) ? " (<anonymous>)" : -1 < g.stack.indexOf("@") ? "@unknown:0:0" : "";
161
162
  }
162
163
  return `
163
- ` + he + t + Je;
164
+ ` + Te + n + tr;
164
165
  }
165
- function f(t, l) {
166
- if (!t || pe) return "";
167
- var d = ye.get(t);
168
- if (d !== void 0) return d;
169
- pe = !0, d = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
- var p = null;
171
- p = B.H, B.H = null, i();
166
+ function s(n, v) {
167
+ if (!n || we) return "";
168
+ var g = je.get(n);
169
+ if (g !== void 0) return g;
170
+ we = !0, g = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
171
+ var y = null;
172
+ y = U.H, U.H = null, i();
172
173
  try {
173
- var _ = {
174
+ var O = {
174
175
  DetermineComponentFrameRoot: function() {
175
176
  try {
176
- if (l) {
177
- var Y = function() {
177
+ if (v) {
178
+ var G = function() {
178
179
  throw Error();
179
180
  };
180
- if (Object.defineProperty(Y.prototype, "props", {
181
+ if (Object.defineProperty(G.prototype, "props", {
181
182
  set: function() {
182
183
  throw Error();
183
184
  }
184
185
  }), typeof Reflect == "object" && Reflect.construct) {
185
186
  try {
186
- Reflect.construct(Y, []);
187
+ Reflect.construct(G, []);
187
188
  } catch (I) {
188
- var ce = I;
189
+ var le = I;
189
190
  }
190
- Reflect.construct(t, [], Y);
191
+ Reflect.construct(n, [], G);
191
192
  } else {
192
193
  try {
193
- Y.call();
194
+ G.call();
194
195
  } catch (I) {
195
- ce = I;
196
+ le = I;
196
197
  }
197
- t.call(Y.prototype);
198
+ n.call(G.prototype);
198
199
  }
199
200
  } else {
200
201
  try {
201
202
  throw Error();
202
203
  } catch (I) {
203
- ce = I;
204
+ le = I;
204
205
  }
205
- (Y = t()) && typeof Y.catch == "function" && Y.catch(function() {
206
+ (G = n()) && typeof G.catch == "function" && G.catch(function() {
206
207
  });
207
208
  }
208
209
  } catch (I) {
209
- if (I && ce && typeof I.stack == "string")
210
- return [I.stack, ce.stack];
210
+ if (I && le && typeof I.stack == "string")
211
+ return [I.stack, le.stack];
211
212
  }
212
213
  return [null, null];
213
214
  }
214
215
  };
215
- _.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
+ O.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
217
  var w = Object.getOwnPropertyDescriptor(
217
- _.DetermineComponentFrameRoot,
218
+ O.DetermineComponentFrameRoot,
218
219
  "name"
219
220
  );
220
221
  w && w.configurable && Object.defineProperty(
221
- _.DetermineComponentFrameRoot,
222
+ O.DetermineComponentFrameRoot,
222
223
  "name",
223
224
  { value: "DetermineComponentFrameRoot" }
224
225
  );
225
- var h = _.DetermineComponentFrameRoot(), F = h[0], J = h[1];
226
- if (F && J) {
227
- var S = F.split(`
228
- `), z = J.split(`
226
+ var h = O.DetermineComponentFrameRoot(), F = h[0], X = h[1];
227
+ if (F && X) {
228
+ var R = F.split(`
229
+ `), D = X.split(`
229
230
  `);
230
- for (h = w = 0; w < S.length && !S[w].includes(
231
+ for (h = w = 0; w < R.length && !R[w].includes(
231
232
  "DetermineComponentFrameRoot"
232
233
  ); )
233
234
  w++;
234
- for (; h < z.length && !z[h].includes(
235
+ for (; h < D.length && !D[h].includes(
235
236
  "DetermineComponentFrameRoot"
236
237
  ); )
237
238
  h++;
238
- if (w === S.length || h === z.length)
239
- for (w = S.length - 1, h = z.length - 1; 1 <= w && 0 <= h && S[w] !== z[h]; )
239
+ if (w === R.length || h === D.length)
240
+ for (w = R.length - 1, h = D.length - 1; 1 <= w && 0 <= h && R[w] !== D[h]; )
240
241
  h--;
241
242
  for (; 1 <= w && 0 <= h; w--, h--)
242
- if (S[w] !== z[h]) {
243
+ if (R[w] !== D[h]) {
243
244
  if (w !== 1 || h !== 1)
244
245
  do
245
- if (w--, h--, 0 > h || S[w] !== z[h]) {
246
+ if (w--, h--, 0 > h || R[w] !== D[h]) {
246
247
  var re = `
247
- ` + S[w].replace(
248
+ ` + R[w].replace(
248
249
  " at new ",
249
250
  " at "
250
251
  );
251
- return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" && ye.set(t, re), re;
252
+ return n.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", n.displayName)), typeof n == "function" && je.set(n, re), re;
252
253
  }
253
254
  while (1 <= w && 0 <= h);
254
255
  break;
255
256
  }
256
257
  }
257
258
  } finally {
258
- pe = !1, B.H = p, o(), Error.prepareStackTrace = d;
259
+ we = !1, U.H = y, o(), Error.prepareStackTrace = g;
259
260
  }
260
- return S = (S = t ? t.displayName || t.name : "") ? c(S) : "", typeof t == "function" && ye.set(t, S), S;
261
+ return R = (R = n ? n.displayName || n.name : "") ? c(R) : "", typeof n == "function" && je.set(n, R), R;
261
262
  }
262
- function s(t) {
263
- if (t == null) return "";
264
- if (typeof t == "function") {
265
- var l = t.prototype;
266
- return f(
267
- t,
268
- !(!l || !l.isReactComponent)
263
+ function f(n) {
264
+ if (n == null) return "";
265
+ if (typeof n == "function") {
266
+ var v = n.prototype;
267
+ return s(
268
+ n,
269
+ !(!v || !v.isReactComponent)
269
270
  );
270
271
  }
271
- if (typeof t == "string") return c(t);
272
- switch (t) {
273
- case U:
272
+ if (typeof n == "string") return c(n);
273
+ switch (n) {
274
+ case H:
274
275
  return c("Suspense");
275
276
  case T:
276
277
  return c("SuspenseList");
277
278
  }
278
- if (typeof t == "object")
279
- switch (t.$$typeof) {
279
+ if (typeof n == "object")
280
+ switch (n.$$typeof) {
280
281
  case K:
281
- return t = f(t.render, !1), t;
282
- case C:
283
- return s(t.type);
284
- case $:
285
- l = t._payload, t = t._init;
282
+ return n = s(n.render, !1), n;
283
+ case A:
284
+ return f(n.type);
285
+ case L:
286
+ v = n._payload, n = n._init;
286
287
  try {
287
- return s(t(l));
288
+ return f(n(v));
288
289
  } catch {
289
290
  }
290
291
  }
291
292
  return "";
292
293
  }
293
294
  function u() {
294
- var t = B.A;
295
- return t === null ? null : t.getOwner();
295
+ var n = U.A;
296
+ return n === null ? null : n.getOwner();
296
297
  }
297
- function m(t) {
298
- if (Ye.call(t, "key")) {
299
- var l = Object.getOwnPropertyDescriptor(t, "key").get;
300
- if (l && l.isReactWarning) return !1;
298
+ function d(n) {
299
+ if (Ve.call(n, "key")) {
300
+ var v = Object.getOwnPropertyDescriptor(n, "key").get;
301
+ if (v && v.isReactWarning) return !1;
301
302
  }
302
- return t.key !== void 0;
303
+ return n.key !== void 0;
303
304
  }
304
- function v(t, l) {
305
- function d() {
306
- Xe || (Xe = !0, console.error(
305
+ function l(n, v) {
306
+ function g() {
307
+ nr || (nr = !0, console.error(
307
308
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
308
- l
309
+ v
309
310
  ));
310
311
  }
311
- d.isReactWarning = !0, Object.defineProperty(t, "key", {
312
- get: d,
312
+ g.isReactWarning = !0, Object.defineProperty(n, "key", {
313
+ get: g,
313
314
  configurable: !0
314
315
  });
315
316
  }
316
- function y() {
317
- var t = r(this.type);
318
- return Ze[t] || (Ze[t] = !0, console.error(
317
+ function p() {
318
+ var n = e(this.type);
319
+ return ar[n] || (ar[n] = !0, console.error(
319
320
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
320
- )), t = this.props.ref, t !== void 0 ? t : null;
321
+ )), n = this.props.ref, n !== void 0 ? n : null;
321
322
  }
322
- function g(t, l, d, p, _, w) {
323
- return d = w.ref, t = {
324
- $$typeof: k,
325
- type: t,
326
- key: l,
323
+ function m(n, v, g, y, O, w) {
324
+ return g = w.ref, n = {
325
+ $$typeof: q,
326
+ type: n,
327
+ key: v,
327
328
  props: w,
328
- _owner: _
329
- }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(t, "ref", {
329
+ _owner: O
330
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(n, "ref", {
330
331
  enumerable: !1,
331
- get: y
332
- }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
332
+ get: p
333
+ }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
333
334
  configurable: !1,
334
335
  enumerable: !1,
335
336
  writable: !0,
336
337
  value: 0
337
- }), Object.defineProperty(t, "_debugInfo", {
338
+ }), Object.defineProperty(n, "_debugInfo", {
338
339
  configurable: !1,
339
340
  enumerable: !1,
340
341
  writable: !0,
341
342
  value: null
342
- }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
343
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
343
344
  }
344
- function b(t, l, d, p, _, w) {
345
- if (typeof t == "string" || typeof t == "function" || t === L || t === P || t === W || t === U || t === T || t === ue || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === C || t.$$typeof === oe || t.$$typeof === Q || t.$$typeof === K || t.$$typeof === Ar || t.getModuleId !== void 0)) {
346
- var h = l.children;
345
+ function b(n, v, g, y, O, w) {
346
+ if (typeof n == "string" || typeof n == "function" || n === B || n === P || n === $ || n === H || n === T || n === fe || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === A || n.$$typeof === se || n.$$typeof === Q || n.$$typeof === K || n.$$typeof === Gr || n.getModuleId !== void 0)) {
347
+ var h = v.children;
347
348
  if (h !== void 0)
348
- if (p)
349
- if (ge(h)) {
350
- for (p = 0; p < h.length; p++)
351
- E(h[p], t);
349
+ if (y)
350
+ if (Ee(h)) {
351
+ for (y = 0; y < h.length; y++)
352
+ E(h[y], n);
352
353
  Object.freeze && Object.freeze(h);
353
354
  } else
354
355
  console.error(
355
356
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
356
357
  );
357
- else E(h, t);
358
+ else E(h, n);
358
359
  } else
359
- h = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? p = "null" : ge(t) ? p = "array" : t !== void 0 && t.$$typeof === k ? (p = "<" + (r(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : p = typeof t, console.error(
360
+ h = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), n === null ? y = "null" : Ee(n) ? y = "array" : n !== void 0 && n.$$typeof === q ? (y = "<" + (e(n.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof n, console.error(
360
361
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
361
- p,
362
+ y,
362
363
  h
363
364
  );
364
- if (Ye.call(l, "key")) {
365
- h = r(t);
366
- var F = Object.keys(l).filter(function(S) {
367
- return S !== "key";
365
+ if (Ve.call(v, "key")) {
366
+ h = e(n);
367
+ var F = Object.keys(v).filter(function(R) {
368
+ return R !== "key";
368
369
  });
369
- p = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", Qe[h + p] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
370
+ y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
370
371
  `A props object containing a "key" prop is being spread into JSX:
371
372
  let props = %s;
372
373
  <%s {...props} />
373
374
  React keys must be passed directly to JSX without using spread:
374
375
  let props = %s;
375
376
  <%s key={someKey} {...props} />`,
376
- p,
377
+ y,
377
378
  h,
378
379
  F,
379
380
  h
380
- ), Qe[h + p] = !0);
381
+ ), or[h + y] = !0);
381
382
  }
382
- if (h = null, d !== void 0 && (n(d), h = "" + d), m(l) && (n(l.key), h = "" + l.key), "key" in l) {
383
- d = {};
384
- for (var J in l)
385
- J !== "key" && (d[J] = l[J]);
386
- } else d = l;
387
- return h && v(
388
- d,
389
- typeof t == "function" ? t.displayName || t.name || "Unknown" : t
390
- ), g(t, h, w, _, u(), d);
383
+ if (h = null, g !== void 0 && (r(g), h = "" + g), d(v) && (r(v.key), h = "" + v.key), "key" in v) {
384
+ g = {};
385
+ for (var X in v)
386
+ X !== "key" && (g[X] = v[X]);
387
+ } else g = v;
388
+ return h && l(
389
+ g,
390
+ typeof n == "function" ? n.displayName || n.name || "Unknown" : n
391
+ ), m(n, h, w, O, u(), g);
391
392
  }
392
- function E(t, l) {
393
- if (typeof t == "object" && t && t.$$typeof !== Nr) {
394
- if (ge(t))
395
- for (var d = 0; d < t.length; d++) {
396
- var p = t[d];
397
- x(p) && q(p, l);
393
+ function E(n, v) {
394
+ if (typeof n == "object" && n && n.$$typeof !== Yr) {
395
+ if (Ee(n))
396
+ for (var g = 0; g < n.length; g++) {
397
+ var y = n[g];
398
+ x(y) && M(y, v);
398
399
  }
399
- else if (x(t))
400
- t._store && (t._store.validated = 1);
401
- else if (t === null || typeof t != "object" ? d = null : (d = Le && t[Le] || t["@@iterator"], d = typeof d == "function" ? d : null), typeof d == "function" && d !== t.entries && (d = d.call(t), d !== t))
402
- for (; !(t = d.next()).done; )
403
- x(t.value) && q(t.value, l);
400
+ else if (x(n))
401
+ n._store && (n._store.validated = 1);
402
+ else if (n === null || typeof n != "object" ? g = null : (g = De && n[De] || n["@@iterator"], g = typeof g == "function" ? g : null), typeof g == "function" && g !== n.entries && (g = g.call(n), g !== n))
403
+ for (; !(n = g.next()).done; )
404
+ x(n.value) && M(n.value, v);
404
405
  }
405
406
  }
406
- function x(t) {
407
- return typeof t == "object" && t !== null && t.$$typeof === k;
407
+ function x(n) {
408
+ return typeof n == "object" && n !== null && n.$$typeof === q;
408
409
  }
409
- function q(t, l) {
410
- if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, l = N(l), !Ke[l])) {
411
- Ke[l] = !0;
412
- var d = "";
413
- t && t._owner != null && t._owner !== u() && (d = null, typeof t._owner.tag == "number" ? d = r(t._owner.type) : typeof t._owner.name == "string" && (d = t._owner.name), d = " It was passed a child from " + d + ".");
414
- var p = B.getCurrentStack;
415
- B.getCurrentStack = function() {
416
- var _ = s(t.type);
417
- return p && (_ += p() || ""), _;
410
+ function M(n, v) {
411
+ if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, v = k(v), !ir[v])) {
412
+ ir[v] = !0;
413
+ var g = "";
414
+ n && n._owner != null && n._owner !== u() && (g = null, typeof n._owner.tag == "number" ? g = e(n._owner.type) : typeof n._owner.name == "string" && (g = n._owner.name), g = " It was passed a child from " + g + ".");
415
+ var y = U.getCurrentStack;
416
+ U.getCurrentStack = function() {
417
+ var O = f(n.type);
418
+ return y && (O += y() || ""), O;
418
419
  }, console.error(
419
420
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
420
- l,
421
- d
422
- ), B.getCurrentStack = p;
421
+ v,
422
+ g
423
+ ), U.getCurrentStack = y;
423
424
  }
424
425
  }
425
- function N(t) {
426
- var l = "", d = u();
427
- return d && (d = r(d.type)) && (l = `
426
+ function k(n) {
427
+ var v = "", g = u();
428
+ return g && (g = e(g.type)) && (v = `
428
429
 
429
- Check the render method of \`` + d + "`."), l || (t = r(t)) && (l = `
430
+ Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
430
431
 
431
- Check the top-level render call using <` + t + ">."), l;
432
+ Check the top-level render call using <` + n + ">."), v;
432
433
  }
433
- var M = kr, k = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ue = Symbol.for("react.offscreen"), Le = Symbol.iterator, Cr = Symbol.for("react.client.reference"), B = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ye = Object.prototype.hasOwnProperty, H = Object.assign, Ar = Symbol.for("react.client.reference"), ge = Array.isArray, ee = 0, Ge, Ue, Be, He, ze, De, Ve;
434
+ var W = Pr, q = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), se = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), De = Symbol.iterator, Br = Symbol.for("react.client.reference"), U = W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ve = Object.prototype.hasOwnProperty, z = Object.assign, Gr = Symbol.for("react.client.reference"), Ee = Array.isArray, ee = 0, Je, Xe, Ze, Qe, Ke, er, rr;
434
435
  a.__reactDisabledLog = !0;
435
- var he, Je, pe = !1, ye = new (typeof WeakMap == "function" ? WeakMap : Map)(), Nr = Symbol.for("react.client.reference"), Xe, Ze = {}, Qe = {}, Ke = {};
436
- ne.Fragment = L, ne.jsx = function(t, l, d, p, _) {
437
- return b(t, l, d, !1, p, _);
438
- }, ne.jsxs = function(t, l, d, p, _) {
439
- return b(t, l, d, !0, p, _);
436
+ var Te, tr, we = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Yr = Symbol.for("react.client.reference"), nr, ar = {}, or = {}, ir = {};
437
+ ne.Fragment = B, ne.jsx = function(n, v, g, y, O) {
438
+ return b(n, v, g, !1, y, O);
439
+ }, ne.jsxs = function(n, v, g, y, O) {
440
+ return b(n, v, g, !0, y, O);
440
441
  };
441
442
  }()), ne;
442
443
  }
443
- var tr;
444
- function Br() {
445
- return tr || (tr = 1, process.env.NODE_ENV === "production" ? se.exports = Gr() : se.exports = Ur()), se.exports;
444
+ var sr;
445
+ function tt() {
446
+ return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
446
447
  }
447
- var V = Br();
448
- let wr = $r, Hr = Fr, zr = Ir;
449
- function Dr({ children: r }) {
450
- const e = Er.useApp();
451
- return wr = e.message, zr = e.modal, Hr = e.notification, r || "";
448
+ var C = tt();
449
+ let Nr = Dr, nt = Vr, at = Jr;
450
+ function ot({ children: e }) {
451
+ const t = Cr.useApp();
452
+ return Nr = t.message, at = t.modal, nt = t.notification, e || "";
452
453
  }
453
- function $t({ children: r, ...e }) {
454
- return /* @__PURE__ */ V.jsx(
455
- Er,
454
+ function jn({ children: e, ...t }) {
455
+ return /* @__PURE__ */ C.jsx(
456
+ Cr,
456
457
  {
457
- ...e,
458
- children: /* @__PURE__ */ V.jsx(Dr, { children: r })
458
+ ...t,
459
+ children: /* @__PURE__ */ C.jsx(ot, { children: e })
459
460
  }
460
461
  );
461
462
  }
462
- const Ft = qr(
463
- ({ type: r = "", className: e = "", symbol: n = !1, ...a }, i) => n ? /* @__PURE__ */ V.jsx(
463
+ const it = Hr(
464
+ ({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ C.jsx(
464
465
  "svg",
465
466
  {
466
- className: `iconfont-symbol ${r} ${e}`,
467
+ className: `iconfont-symbol ${e} ${t}`,
467
468
  "aria-hidden": "true",
468
469
  ref: i,
469
470
  ...a,
470
- children: /* @__PURE__ */ V.jsx("use", { xlinkHref: `#${r}` })
471
+ children: /* @__PURE__ */ C.jsx("use", { xlinkHref: `#${e}` })
471
472
  }
472
- ) : /* @__PURE__ */ V.jsx(
473
+ ) : /* @__PURE__ */ C.jsx(
473
474
  "i",
474
475
  {
475
- className: `iconfont ${r} ${e}`,
476
+ className: `iconfont ${e} ${t}`,
476
477
  ref: i,
477
478
  ...a
478
479
  }
479
480
  )
480
- ), It = ({
481
- checked: r,
482
- onChange: e,
483
- trueValue: n = !0,
481
+ ), Sn = ({
482
+ checked: e,
483
+ onChange: t,
484
+ trueValue: r = !0,
484
485
  falseValue: a = !1,
485
486
  trueLabel: i = "",
486
487
  falseLabel: o = "",
487
488
  children: c,
488
- ...f
489
+ ...s
489
490
  }) => {
490
- const s = r === n, u = (m) => {
491
- e == null || e(m.target.checked ? n : a, m);
491
+ const f = e === r, u = (d) => {
492
+ t == null || t(d.target.checked ? r : a, d);
492
493
  };
493
- return /* @__PURE__ */ V.jsx(
494
- Lr,
494
+ return /* @__PURE__ */ C.jsx(
495
+ Xr,
495
496
  {
496
- checked: s,
497
+ checked: f,
497
498
  onChange: u,
498
- ...f,
499
- children: c || (s ? i : o)
499
+ ...s,
500
+ children: c || (f ? i : o)
500
501
  }
501
502
  );
502
- }, Lt = ({
503
- checked: r,
504
- onChange: e,
505
- trueValue: n = !0,
503
+ }, On = ({
504
+ checked: e,
505
+ onChange: t,
506
+ trueValue: r = !0,
506
507
  falseValue: a = !1,
507
508
  ...i
508
509
  }) => {
509
- const o = r === n, c = (f, s) => {
510
- e == null || e(f ? n : a, s);
510
+ const o = e === r, c = (s, f) => {
511
+ t == null || t(s ? r : a, f);
511
512
  };
512
- return /* @__PURE__ */ V.jsx(
513
- Yr,
513
+ return /* @__PURE__ */ C.jsx(
514
+ Zr,
514
515
  {
515
516
  checked: o,
516
517
  onChange: c,
@@ -518,80 +519,150 @@ const Ft = qr(
518
519
  }
519
520
  );
520
521
  };
521
- var Vr = function(r) {
522
- return function(e, n) {
522
+ var ut = typeof global == "object" && global && global.Object === Object && global, ct = typeof self == "object" && self && self.Object === Object && self, st = ut || ct || Function("return this")(), me = st.Symbol, kr = Object.prototype, ft = kr.hasOwnProperty, lt = kr.toString, ae = me ? me.toStringTag : void 0;
523
+ function dt(e) {
524
+ var t = ft.call(e, ae), r = e[ae];
525
+ try {
526
+ e[ae] = void 0;
527
+ var a = !0;
528
+ } catch {
529
+ }
530
+ var i = lt.call(e);
531
+ return a && (t ? e[ae] = r : delete e[ae]), i;
532
+ }
533
+ var vt = Object.prototype, gt = vt.toString;
534
+ function bt(e) {
535
+ return gt.call(e);
536
+ }
537
+ var mt = "[object Null]", ht = "[object Undefined]", fr = me ? me.toStringTag : void 0;
538
+ function pt(e) {
539
+ return e == null ? e === void 0 ? ht : mt : fr && fr in Object(e) ? dt(e) : bt(e);
540
+ }
541
+ function yt(e) {
542
+ return e != null && typeof e == "object";
543
+ }
544
+ var Et = Array.isArray;
545
+ function Tt() {
546
+ }
547
+ var wt = "[object String]";
548
+ function jt(e) {
549
+ return typeof e == "string" || !Et(e) && yt(e) && pt(e) == wt;
550
+ }
551
+ var Se = { exports: {} };
552
+ /*!
553
+ Copyright (c) 2018 Jed Watson.
554
+ Licensed under the MIT License (MIT), see
555
+ http://jedwatson.github.io/classnames
556
+ */
557
+ var lr;
558
+ function St() {
559
+ return lr || (lr = 1, function(e) {
560
+ (function() {
561
+ var t = {}.hasOwnProperty;
562
+ function r() {
563
+ for (var o = "", c = 0; c < arguments.length; c++) {
564
+ var s = arguments[c];
565
+ s && (o = i(o, a(s)));
566
+ }
567
+ return o;
568
+ }
569
+ function a(o) {
570
+ if (typeof o == "string" || typeof o == "number")
571
+ return o;
572
+ if (typeof o != "object")
573
+ return "";
574
+ if (Array.isArray(o))
575
+ return r.apply(null, o);
576
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
577
+ return o.toString();
578
+ var c = "";
579
+ for (var s in o)
580
+ t.call(o, s) && o[s] && (c = i(c, s));
581
+ return c;
582
+ }
583
+ function i(o, c) {
584
+ return c ? o ? o + " " + c : o + c : o;
585
+ }
586
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
587
+ })();
588
+ }(Se)), Se.exports;
589
+ }
590
+ var Ot = St();
591
+ const _t = /* @__PURE__ */ Ye(Ot);
592
+ var Rt = function(e) {
593
+ return function(t, r) {
523
594
  var a = j(!1);
524
- r(function() {
595
+ e(function() {
525
596
  return function() {
526
597
  a.current = !1;
527
598
  };
528
- }, []), r(function() {
599
+ }, []), e(function() {
529
600
  if (!a.current)
530
601
  a.current = !0;
531
602
  else
532
- return e();
533
- }, n);
603
+ return t();
604
+ }, r);
534
605
  };
535
- }, A = function() {
536
- return A = Object.assign || function(e) {
537
- for (var n, a = 1, i = arguments.length; a < i; a++) {
538
- n = arguments[a];
539
- for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
606
+ }, N = function() {
607
+ return N = Object.assign || function(t) {
608
+ for (var r, a = 1, i = arguments.length; a < i; a++) {
609
+ r = arguments[a];
610
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
540
611
  }
541
- return e;
542
- }, A.apply(this, arguments);
612
+ return t;
613
+ }, N.apply(this, arguments);
543
614
  };
544
- function jr(r, e) {
545
- var n = {};
546
- for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && e.indexOf(a) < 0 && (n[a] = r[a]);
547
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
548
- for (var i = 0, a = Object.getOwnPropertySymbols(r); i < a.length; i++)
549
- e.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, a[i]) && (n[a[i]] = r[a[i]]);
550
- return n;
615
+ function qr(e, t) {
616
+ var r = {};
617
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
618
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
619
+ for (var i = 0, a = Object.getOwnPropertySymbols(e); i < a.length; i++)
620
+ t.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[i]) && (r[a[i]] = e[a[i]]);
621
+ return r;
551
622
  }
552
- function Jr(r, e, n, a) {
623
+ function xt(e, t, r, a) {
553
624
  function i(o) {
554
- return o instanceof n ? o : new n(function(c) {
625
+ return o instanceof r ? o : new r(function(c) {
555
626
  c(o);
556
627
  });
557
628
  }
558
- return new (n || (n = Promise))(function(o, c) {
559
- function f(m) {
629
+ return new (r || (r = Promise))(function(o, c) {
630
+ function s(d) {
560
631
  try {
561
- u(a.next(m));
562
- } catch (v) {
563
- c(v);
632
+ u(a.next(d));
633
+ } catch (l) {
634
+ c(l);
564
635
  }
565
636
  }
566
- function s(m) {
637
+ function f(d) {
567
638
  try {
568
- u(a.throw(m));
569
- } catch (v) {
570
- c(v);
639
+ u(a.throw(d));
640
+ } catch (l) {
641
+ c(l);
571
642
  }
572
643
  }
573
- function u(m) {
574
- m.done ? o(m.value) : i(m.value).then(f, s);
644
+ function u(d) {
645
+ d.done ? o(d.value) : i(d.value).then(s, f);
575
646
  }
576
- u((a = a.apply(r, e || [])).next());
647
+ u((a = a.apply(e, t || [])).next());
577
648
  });
578
649
  }
579
- function Xr(r, e) {
580
- var n = { label: 0, sent: function() {
650
+ function Pt(e, t) {
651
+ var r = { label: 0, sent: function() {
581
652
  if (o[0] & 1) throw o[1];
582
653
  return o[1];
583
654
  }, trys: [], ops: [] }, a, i, o, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
584
- return c.next = f(0), c.throw = f(1), c.return = f(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
655
+ return c.next = s(0), c.throw = s(1), c.return = s(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
585
656
  return this;
586
657
  }), c;
587
- function f(u) {
588
- return function(m) {
589
- return s([u, m]);
658
+ function s(u) {
659
+ return function(d) {
660
+ return f([u, d]);
590
661
  };
591
662
  }
592
- function s(u) {
663
+ function f(u) {
593
664
  if (a) throw new TypeError("Generator is already executing.");
594
- for (; c && (c = 0, u[0] && (n = 0)), n; ) try {
665
+ for (; c && (c = 0, u[0] && (r = 0)), r; ) try {
595
666
  if (a = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o;
596
667
  switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
597
668
  case 0:
@@ -599,36 +670,36 @@ function Xr(r, e) {
599
670
  o = u;
600
671
  break;
601
672
  case 4:
602
- return n.label++, { value: u[1], done: !1 };
673
+ return r.label++, { value: u[1], done: !1 };
603
674
  case 5:
604
- n.label++, i = u[1], u = [0];
675
+ r.label++, i = u[1], u = [0];
605
676
  continue;
606
677
  case 7:
607
- u = n.ops.pop(), n.trys.pop();
678
+ u = r.ops.pop(), r.trys.pop();
608
679
  continue;
609
680
  default:
610
- if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
611
- n = 0;
681
+ if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
682
+ r = 0;
612
683
  continue;
613
684
  }
614
685
  if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) {
615
- n.label = u[1];
686
+ r.label = u[1];
616
687
  break;
617
688
  }
618
- if (u[0] === 6 && n.label < o[1]) {
619
- n.label = o[1], o = u;
689
+ if (u[0] === 6 && r.label < o[1]) {
690
+ r.label = o[1], o = u;
620
691
  break;
621
692
  }
622
- if (o && n.label < o[2]) {
623
- n.label = o[2], n.ops.push(u);
693
+ if (o && r.label < o[2]) {
694
+ r.label = o[2], r.ops.push(u);
624
695
  break;
625
696
  }
626
- o[2] && n.ops.pop(), n.trys.pop();
697
+ o[2] && r.ops.pop(), r.trys.pop();
627
698
  continue;
628
699
  }
629
- u = e.call(r, n);
630
- } catch (m) {
631
- u = [6, m], i = 0;
700
+ u = t.call(e, r);
701
+ } catch (d) {
702
+ u = [6, d], i = 0;
632
703
  } finally {
633
704
  a = o = 0;
634
705
  }
@@ -636,52 +707,52 @@ function Xr(r, e) {
636
707
  return { value: u[0] ? u[1] : void 0, done: !0 };
637
708
  }
638
709
  }
639
- function R(r, e) {
640
- var n = typeof Symbol == "function" && r[Symbol.iterator];
641
- if (!n) return r;
642
- var a = n.call(r), i, o = [], c;
710
+ function S(e, t) {
711
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
712
+ if (!r) return e;
713
+ var a = r.call(e), i, o = [], c;
643
714
  try {
644
- for (; (e === void 0 || e-- > 0) && !(i = a.next()).done; ) o.push(i.value);
645
- } catch (f) {
646
- c = { error: f };
715
+ for (; (t === void 0 || t-- > 0) && !(i = a.next()).done; ) o.push(i.value);
716
+ } catch (s) {
717
+ c = { error: s };
647
718
  } finally {
648
719
  try {
649
- i && !i.done && (n = a.return) && n.call(a);
720
+ i && !i.done && (r = a.return) && r.call(a);
650
721
  } finally {
651
722
  if (c) throw c.error;
652
723
  }
653
724
  }
654
725
  return o;
655
726
  }
656
- function O(r, e, n) {
657
- if (n || arguments.length === 2) for (var a = 0, i = e.length, o; a < i; a++)
658
- (o || !(a in e)) && (o || (o = Array.prototype.slice.call(e, 0, a)), o[a] = e[a]);
659
- return r.concat(o || Array.prototype.slice.call(e));
727
+ function _(e, t, r) {
728
+ if (r || arguments.length === 2) for (var a = 0, i = t.length, o; a < i; a++)
729
+ (o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
730
+ return e.concat(o || Array.prototype.slice.call(t));
660
731
  }
661
- var ve = function(r) {
662
- return typeof r == "function";
663
- }, me = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
664
- function X(r) {
665
- me && (ve(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
666
- var e = j(r);
667
- e.current = yr(function() {
668
- return r;
669
- }, [r]);
670
- var n = j();
671
- return n.current || (n.current = function() {
732
+ var ue = function(e) {
733
+ return typeof e == "function";
734
+ }, pe = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
735
+ function Z(e) {
736
+ pe && (ue(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
737
+ var t = j(e);
738
+ t.current = he(function() {
739
+ return e;
740
+ }, [e]);
741
+ var r = j();
742
+ return r.current || (r.current = function() {
672
743
  for (var a = [], i = 0; i < arguments.length; i++)
673
744
  a[i] = arguments[i];
674
- return e.current.apply(this, a);
675
- }), n.current;
745
+ return t.current.apply(this, a);
746
+ }), r.current;
676
747
  }
677
- const We = Vr(Z);
678
- var _r = function(r, e) {
679
- var n = e.manual, a = e.ready, i = a === void 0 ? !0 : a, o = e.defaultParams, c = o === void 0 ? [] : o, f = e.refreshDeps, s = f === void 0 ? [] : f, u = e.refreshDepsAction, m = j(!1);
680
- return m.current = !1, We(function() {
681
- !n && i && (m.current = !0, r.run.apply(r, O([], R(c), !1)));
682
- }, [i]), We(function() {
683
- m.current || n || (m.current = !0, u ? u() : r.refresh());
684
- }, O([], R(s), !1)), {
748
+ const Be = Rt(J);
749
+ var Mr = function(e, t) {
750
+ var r = t.manual, a = t.ready, i = a === void 0 ? !0 : a, o = t.defaultParams, c = o === void 0 ? [] : o, s = t.refreshDeps, f = s === void 0 ? [] : s, u = t.refreshDepsAction, d = j(!1);
751
+ return d.current = !1, Be(function() {
752
+ !r && i && (d.current = !0, e.run.apply(e, _([], S(c), !1)));
753
+ }, [i]), Be(function() {
754
+ d.current || r || (d.current = !0, u ? u() : e.refresh());
755
+ }, _([], S(f), !1)), {
685
756
  onBefore: function() {
686
757
  if (!i)
687
758
  return {
@@ -690,87 +761,87 @@ var _r = function(r, e) {
690
761
  }
691
762
  };
692
763
  };
693
- _r.onInit = function(r) {
694
- var e = r.ready, n = e === void 0 ? !0 : e, a = r.manual;
764
+ Mr.onInit = function(e) {
765
+ var t = e.ready, r = t === void 0 ? !0 : t, a = e.manual;
695
766
  return {
696
- loading: !a && n
767
+ loading: !a && r
697
768
  };
698
769
  };
699
- function Zr(r, e) {
700
- if (r === e) return !0;
701
- for (var n = 0; n < r.length; n++)
702
- if (!Object.is(r[n], e[n])) return !1;
770
+ function Ge(e, t) {
771
+ if (e === t) return !0;
772
+ for (var r = 0; r < e.length; r++)
773
+ if (!Object.is(e[r], t[r])) return !1;
703
774
  return !0;
704
775
  }
705
- function Rr(r, e) {
706
- var n = j({
707
- deps: e,
776
+ function Wr(e, t) {
777
+ var r = j({
778
+ deps: t,
708
779
  obj: void 0,
709
780
  initialized: !1
710
781
  }).current;
711
- return (n.initialized === !1 || !Zr(n.deps, e)) && (n.deps = e, n.obj = r(), n.initialized = !0), n.obj;
782
+ return (r.initialized === !1 || !Ge(r.deps, t)) && (r.deps = t, r.obj = e(), r.initialized = !0), r.obj;
712
783
  }
713
- function Or(r) {
714
- var e = j(r);
715
- return e.current = r, e;
784
+ function He(e) {
785
+ var t = j(e);
786
+ return t.current = e, t;
716
787
  }
717
- var $e = function(r) {
718
- me && (ve(r) || console.error("useUnmount expected parameter is a function, got ".concat(typeof r)));
719
- var e = Or(r);
720
- Z(function() {
788
+ var ye = function(e) {
789
+ pe && (ue(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
790
+ var t = He(e);
791
+ J(function() {
721
792
  return function() {
722
- e.current();
793
+ t.current();
723
794
  };
724
795
  }, []);
725
- }, le = /* @__PURE__ */ new Map(), Qr = function(r, e, n) {
726
- var a = le.get(r);
796
+ }, ge = /* @__PURE__ */ new Map(), At = function(e, t, r) {
797
+ var a = ge.get(e);
727
798
  a != null && a.timer && clearTimeout(a.timer);
728
799
  var i = void 0;
729
- e > -1 && (i = setTimeout(function() {
730
- le.delete(r);
731
- }, e)), le.set(r, A(A({}, n), {
800
+ t > -1 && (i = setTimeout(function() {
801
+ ge.delete(e);
802
+ }, t)), ge.set(e, N(N({}, r), {
732
803
  timer: i
733
804
  }));
734
- }, Kr = function(r) {
735
- return le.get(r);
736
- }, de = /* @__PURE__ */ new Map(), et = function(r) {
737
- return de.get(r);
738
- }, rt = function(r, e) {
739
- de.set(r, e), e.then(function(n) {
740
- return de.delete(r), n;
805
+ }, Ct = function(e) {
806
+ return ge.get(e);
807
+ }, be = /* @__PURE__ */ new Map(), Nt = function(e) {
808
+ return be.get(e);
809
+ }, kt = function(e, t) {
810
+ be.set(e, t), t.then(function(r) {
811
+ return be.delete(e), r;
741
812
  }).catch(function() {
742
- de.delete(r);
813
+ be.delete(e);
743
814
  });
744
- }, D = {}, tt = function(r, e) {
745
- D[r] && D[r].forEach(function(n) {
746
- return n(e);
815
+ }, V = {}, qt = function(e, t) {
816
+ V[e] && V[e].forEach(function(r) {
817
+ return r(t);
747
818
  });
748
- }, Ee = function(r, e) {
749
- return D[r] || (D[r] = []), D[r].push(e), function() {
750
- var a = D[r].indexOf(e);
751
- D[r].splice(a, 1);
819
+ }, Oe = function(e, t) {
820
+ return V[e] || (V[e] = []), V[e].push(t), function() {
821
+ var a = V[e].indexOf(t);
822
+ V[e].splice(a, 1);
752
823
  };
753
- }, nt = function(r, e) {
754
- var n = e.cacheKey, a = e.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = e.staleTime, c = o === void 0 ? 0 : o, f = e.setCache, s = e.getCache, u = j(), m = j(), v = function(g, b) {
755
- f ? f(b) : Qr(g, i, b), tt(g, b.data);
756
- }, y = function(g, b) {
757
- return b === void 0 && (b = []), s ? s(b) : Kr(g);
824
+ }, Mt = function(e, t) {
825
+ var r = t.cacheKey, a = t.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = t.staleTime, c = o === void 0 ? 0 : o, s = t.setCache, f = t.getCache, u = j(), d = j(), l = function(m, b) {
826
+ s ? s(b) : At(m, i, b), qt(m, b.data);
827
+ }, p = function(m, b) {
828
+ return b === void 0 && (b = []), f ? f(b) : Ct(m);
758
829
  };
759
- return Rr(function() {
760
- if (n) {
761
- var g = y(n);
762
- g && Object.hasOwnProperty.call(g, "data") && (r.state.data = g.data, r.state.params = g.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - g.time <= c) && (r.state.loading = !1)), u.current = Ee(n, function(b) {
763
- r.setState({
830
+ return Wr(function() {
831
+ if (r) {
832
+ var m = p(r);
833
+ m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current = Oe(r, function(b) {
834
+ e.setState({
764
835
  data: b
765
836
  });
766
837
  });
767
838
  }
768
- }, []), $e(function() {
769
- var g;
770
- (g = u.current) === null || g === void 0 || g.call(u);
771
- }), n ? {
772
- onBefore: function(g) {
773
- var b = y(n, g);
839
+ }, []), ye(function() {
840
+ var m;
841
+ (m = u.current) === null || m === void 0 || m.call(u);
842
+ }), r ? {
843
+ onBefore: function(m) {
844
+ var b = p(r, m);
774
845
  return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
775
846
  loading: !1,
776
847
  data: b == null ? void 0 : b.data,
@@ -781,268 +852,268 @@ var $e = function(r) {
781
852
  error: void 0
782
853
  };
783
854
  },
784
- onRequest: function(g, b) {
785
- var E = et(n);
786
- return E && E !== m.current ? {
855
+ onRequest: function(m, b) {
856
+ var E = Nt(r);
857
+ return E && E !== d.current ? {
787
858
  servicePromise: E
788
- } : (E = g.apply(void 0, O([], R(b), !1)), m.current = E, rt(n, E), {
859
+ } : (E = m.apply(void 0, _([], S(b), !1)), d.current = E, kt(r, E), {
789
860
  servicePromise: E
790
861
  });
791
862
  },
792
- onSuccess: function(g, b) {
863
+ onSuccess: function(m, b) {
793
864
  var E;
794
- n && ((E = u.current) === null || E === void 0 || E.call(u), v(n, {
795
- data: g,
865
+ r && ((E = u.current) === null || E === void 0 || E.call(u), l(r, {
866
+ data: m,
796
867
  params: b,
797
868
  time: (/* @__PURE__ */ new Date()).getTime()
798
- }), u.current = Ee(n, function(x) {
799
- r.setState({
869
+ }), u.current = Oe(r, function(x) {
870
+ e.setState({
800
871
  data: x
801
872
  });
802
873
  }));
803
874
  },
804
- onMutate: function(g) {
875
+ onMutate: function(m) {
805
876
  var b;
806
- n && ((b = u.current) === null || b === void 0 || b.call(u), v(n, {
807
- data: g,
808
- params: r.state.params,
877
+ r && ((b = u.current) === null || b === void 0 || b.call(u), l(r, {
878
+ data: m,
879
+ params: e.state.params,
809
880
  time: (/* @__PURE__ */ new Date()).getTime()
810
- }), u.current = Ee(n, function(E) {
811
- r.setState({
881
+ }), u.current = Oe(r, function(E) {
882
+ e.setState({
812
883
  data: E
813
884
  });
814
885
  }));
815
886
  }
816
887
  } : {};
817
- }, Te, nr;
818
- function Fe() {
819
- if (nr) return Te;
820
- nr = 1;
821
- function r(e) {
822
- var n = typeof e;
823
- return e != null && (n == "object" || n == "function");
888
+ }, _e, dr;
889
+ function Ue() {
890
+ if (dr) return _e;
891
+ dr = 1;
892
+ function e(t) {
893
+ var r = typeof t;
894
+ return t != null && (r == "object" || r == "function");
824
895
  }
825
- return Te = r, Te;
896
+ return _e = e, _e;
826
897
  }
827
- var we, ar;
828
- function at() {
829
- if (ar) return we;
830
- ar = 1;
831
- var r = typeof fe == "object" && fe && fe.Object === Object && fe;
832
- return we = r, we;
898
+ var Re, vr;
899
+ function Wt() {
900
+ if (vr) return Re;
901
+ vr = 1;
902
+ var e = typeof de == "object" && de && de.Object === Object && de;
903
+ return Re = e, Re;
833
904
  }
834
- var je, ir;
835
- function Sr() {
836
- if (ir) return je;
837
- ir = 1;
838
- var r = at(), e = typeof self == "object" && self && self.Object === Object && self, n = r || e || Function("return this")();
839
- return je = n, je;
905
+ var xe, gr;
906
+ function $r() {
907
+ if (gr) return xe;
908
+ gr = 1;
909
+ var e = Wt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
910
+ return xe = r, xe;
840
911
  }
841
- var _e, or;
842
- function it() {
843
- if (or) return _e;
844
- or = 1;
845
- var r = Sr(), e = function() {
846
- return r.Date.now();
912
+ var Pe, br;
913
+ function $t() {
914
+ if (br) return Pe;
915
+ br = 1;
916
+ var e = $r(), t = function() {
917
+ return e.Date.now();
847
918
  };
848
- return _e = e, _e;
919
+ return Pe = t, Pe;
849
920
  }
850
- var Re, ur;
851
- function ot() {
852
- if (ur) return Re;
853
- ur = 1;
854
- var r = /\s/;
855
- function e(n) {
856
- for (var a = n.length; a-- && r.test(n.charAt(a)); )
921
+ var Ae, mr;
922
+ function Lt() {
923
+ if (mr) return Ae;
924
+ mr = 1;
925
+ var e = /\s/;
926
+ function t(r) {
927
+ for (var a = r.length; a-- && e.test(r.charAt(a)); )
857
928
  ;
858
929
  return a;
859
930
  }
860
- return Re = e, Re;
931
+ return Ae = t, Ae;
861
932
  }
862
- var Oe, cr;
863
- function ut() {
864
- if (cr) return Oe;
865
- cr = 1;
866
- var r = ot(), e = /^\s+/;
867
- function n(a) {
868
- return a && a.slice(0, r(a) + 1).replace(e, "");
933
+ var Ce, hr;
934
+ function Ft() {
935
+ if (hr) return Ce;
936
+ hr = 1;
937
+ var e = Lt(), t = /^\s+/;
938
+ function r(a) {
939
+ return a && a.slice(0, e(a) + 1).replace(t, "");
869
940
  }
870
- return Oe = n, Oe;
941
+ return Ce = r, Ce;
871
942
  }
872
- var Se, fr;
873
- function xr() {
874
- if (fr) return Se;
875
- fr = 1;
876
- var r = Sr(), e = r.Symbol;
877
- return Se = e, Se;
943
+ var Ne, pr;
944
+ function Lr() {
945
+ if (pr) return Ne;
946
+ pr = 1;
947
+ var e = $r(), t = e.Symbol;
948
+ return Ne = t, Ne;
878
949
  }
879
- var xe, sr;
880
- function ct() {
881
- if (sr) return xe;
882
- sr = 1;
883
- var r = xr(), e = Object.prototype, n = e.hasOwnProperty, a = e.toString, i = r ? r.toStringTag : void 0;
950
+ var ke, yr;
951
+ function It() {
952
+ if (yr) return ke;
953
+ yr = 1;
954
+ var e = Lr(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, i = e ? e.toStringTag : void 0;
884
955
  function o(c) {
885
- var f = n.call(c, i), s = c[i];
956
+ var s = r.call(c, i), f = c[i];
886
957
  try {
887
958
  c[i] = void 0;
888
959
  var u = !0;
889
960
  } catch {
890
961
  }
891
- var m = a.call(c);
892
- return u && (f ? c[i] = s : delete c[i]), m;
962
+ var d = a.call(c);
963
+ return u && (s ? c[i] = f : delete c[i]), d;
893
964
  }
894
- return xe = o, xe;
965
+ return ke = o, ke;
895
966
  }
896
- var Pe, lr;
897
- function ft() {
898
- if (lr) return Pe;
899
- lr = 1;
900
- var r = Object.prototype, e = r.toString;
901
- function n(a) {
902
- return e.call(a);
967
+ var qe, Er;
968
+ function Bt() {
969
+ if (Er) return qe;
970
+ Er = 1;
971
+ var e = Object.prototype, t = e.toString;
972
+ function r(a) {
973
+ return t.call(a);
903
974
  }
904
- return Pe = n, Pe;
975
+ return qe = r, qe;
905
976
  }
906
- var Ce, dr;
907
- function st() {
908
- if (dr) return Ce;
909
- dr = 1;
910
- var r = xr(), e = ct(), n = ft(), a = "[object Null]", i = "[object Undefined]", o = r ? r.toStringTag : void 0;
911
- function c(f) {
912
- return f == null ? f === void 0 ? i : a : o && o in Object(f) ? e(f) : n(f);
977
+ var Me, Tr;
978
+ function Gt() {
979
+ if (Tr) return Me;
980
+ Tr = 1;
981
+ var e = Lr(), t = It(), r = Bt(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
982
+ function c(s) {
983
+ return s == null ? s === void 0 ? i : a : o && o in Object(s) ? t(s) : r(s);
913
984
  }
914
- return Ce = c, Ce;
985
+ return Me = c, Me;
915
986
  }
916
- var Ae, vr;
917
- function lt() {
918
- if (vr) return Ae;
919
- vr = 1;
920
- function r(e) {
921
- return e != null && typeof e == "object";
987
+ var We, wr;
988
+ function Yt() {
989
+ if (wr) return We;
990
+ wr = 1;
991
+ function e(t) {
992
+ return t != null && typeof t == "object";
922
993
  }
923
- return Ae = r, Ae;
994
+ return We = e, We;
924
995
  }
925
- var Ne, mr;
926
- function dt() {
927
- if (mr) return Ne;
928
- mr = 1;
929
- var r = st(), e = lt(), n = "[object Symbol]";
996
+ var $e, jr;
997
+ function Ht() {
998
+ if (jr) return $e;
999
+ jr = 1;
1000
+ var e = Gt(), t = Yt(), r = "[object Symbol]";
930
1001
  function a(i) {
931
- return typeof i == "symbol" || e(i) && r(i) == n;
1002
+ return typeof i == "symbol" || t(i) && e(i) == r;
932
1003
  }
933
- return Ne = a, Ne;
1004
+ return $e = a, $e;
934
1005
  }
935
- var ke, br;
936
- function vt() {
937
- if (br) return ke;
938
- br = 1;
939
- var r = ut(), e = Fe(), n = dt(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, f = parseInt;
940
- function s(u) {
1006
+ var Le, Sr;
1007
+ function Ut() {
1008
+ if (Sr) return Le;
1009
+ Sr = 1;
1010
+ var e = Ft(), t = Ue(), r = Ht(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, s = parseInt;
1011
+ function f(u) {
941
1012
  if (typeof u == "number")
942
1013
  return u;
943
- if (n(u))
1014
+ if (r(u))
944
1015
  return a;
945
- if (e(u)) {
946
- var m = typeof u.valueOf == "function" ? u.valueOf() : u;
947
- u = e(m) ? m + "" : m;
1016
+ if (t(u)) {
1017
+ var d = typeof u.valueOf == "function" ? u.valueOf() : u;
1018
+ u = t(d) ? d + "" : d;
948
1019
  }
949
1020
  if (typeof u != "string")
950
1021
  return u === 0 ? u : +u;
951
- u = r(u);
952
- var v = o.test(u);
953
- return v || c.test(u) ? f(u.slice(2), v ? 2 : 8) : i.test(u) ? a : +u;
1022
+ u = e(u);
1023
+ var l = o.test(u);
1024
+ return l || c.test(u) ? s(u.slice(2), l ? 2 : 8) : i.test(u) ? a : +u;
954
1025
  }
955
- return ke = s, ke;
1026
+ return Le = f, Le;
956
1027
  }
957
- var qe, gr;
958
- function Pr() {
959
- if (gr) return qe;
960
- gr = 1;
961
- var r = Fe(), e = it(), n = vt(), a = "Expected a function", i = Math.max, o = Math.min;
962
- function c(f, s, u) {
963
- var m, v, y, g, b, E, x = 0, q = !1, N = !1, M = !0;
964
- if (typeof f != "function")
1028
+ var Fe, Or;
1029
+ function Fr() {
1030
+ if (Or) return Fe;
1031
+ Or = 1;
1032
+ var e = Ue(), t = $t(), r = Ut(), a = "Expected a function", i = Math.max, o = Math.min;
1033
+ function c(s, f, u) {
1034
+ var d, l, p, m, b, E, x = 0, M = !1, k = !1, W = !0;
1035
+ if (typeof s != "function")
965
1036
  throw new TypeError(a);
966
- s = n(s) || 0, r(u) && (q = !!u.leading, N = "maxWait" in u, y = N ? i(n(u.maxWait) || 0, s) : y, M = "trailing" in u ? !!u.trailing : M);
967
- function k(T) {
968
- var C = m, $ = v;
969
- return m = v = void 0, x = T, g = f.apply($, C), g;
1037
+ f = r(f) || 0, e(u) && (M = !!u.leading, k = "maxWait" in u, p = k ? i(r(u.maxWait) || 0, f) : p, W = "trailing" in u ? !!u.trailing : W);
1038
+ function q(T) {
1039
+ var A = d, L = l;
1040
+ return d = l = void 0, x = T, m = s.apply(L, A), m;
970
1041
  }
971
- function G(T) {
972
- return x = T, b = setTimeout(P, s), q ? k(T) : g;
1042
+ function Y(T) {
1043
+ return x = T, b = setTimeout(P, f), M ? q(T) : m;
973
1044
  }
974
- function L(T) {
975
- var C = T - E, $ = T - x, ue = s - C;
976
- return N ? o(ue, y - $) : ue;
1045
+ function B(T) {
1046
+ var A = T - E, L = T - x, fe = f - A;
1047
+ return k ? o(fe, p - L) : fe;
977
1048
  }
978
- function W(T) {
979
- var C = T - E, $ = T - x;
980
- return E === void 0 || C >= s || C < 0 || N && $ >= y;
1049
+ function $(T) {
1050
+ var A = T - E, L = T - x;
1051
+ return E === void 0 || A >= f || A < 0 || k && L >= p;
981
1052
  }
982
1053
  function P() {
983
- var T = e();
984
- if (W(T))
1054
+ var T = t();
1055
+ if ($(T))
985
1056
  return Q(T);
986
- b = setTimeout(P, L(T));
1057
+ b = setTimeout(P, B(T));
987
1058
  }
988
1059
  function Q(T) {
989
- return b = void 0, M && m ? k(T) : (m = v = void 0, g);
1060
+ return b = void 0, W && d ? q(T) : (d = l = void 0, m);
990
1061
  }
991
- function oe() {
992
- b !== void 0 && clearTimeout(b), x = 0, m = E = v = b = void 0;
1062
+ function se() {
1063
+ b !== void 0 && clearTimeout(b), x = 0, d = E = l = b = void 0;
993
1064
  }
994
1065
  function K() {
995
- return b === void 0 ? g : Q(e());
1066
+ return b === void 0 ? m : Q(t());
996
1067
  }
997
- function U() {
998
- var T = e(), C = W(T);
999
- if (m = arguments, v = this, E = T, C) {
1068
+ function H() {
1069
+ var T = t(), A = $(T);
1070
+ if (d = arguments, l = this, E = T, A) {
1000
1071
  if (b === void 0)
1001
- return G(E);
1002
- if (N)
1003
- return clearTimeout(b), b = setTimeout(P, s), k(E);
1072
+ return Y(E);
1073
+ if (k)
1074
+ return clearTimeout(b), b = setTimeout(P, f), q(E);
1004
1075
  }
1005
- return b === void 0 && (b = setTimeout(P, s)), g;
1076
+ return b === void 0 && (b = setTimeout(P, f)), m;
1006
1077
  }
1007
- return U.cancel = oe, U.flush = K, U;
1078
+ return H.cancel = se, H.flush = K, H;
1008
1079
  }
1009
- return qe = c, qe;
1080
+ return Fe = c, Fe;
1010
1081
  }
1011
- var mt = Pr();
1012
- const bt = /* @__PURE__ */ Tr(mt);
1013
- var gt = function(r, e) {
1014
- var n = e.debounceWait, a = e.debounceLeading, i = e.debounceTrailing, o = e.debounceMaxWait, c = j(), f = yr(function() {
1015
- var s = {};
1016
- return a !== void 0 && (s.leading = a), i !== void 0 && (s.trailing = i), o !== void 0 && (s.maxWait = o), s;
1082
+ var zt = Fr();
1083
+ const Dt = /* @__PURE__ */ Ye(zt);
1084
+ var Vt = function(e, t) {
1085
+ var r = t.debounceWait, a = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, c = j(), s = he(function() {
1086
+ var f = {};
1087
+ return a !== void 0 && (f.leading = a), i !== void 0 && (f.trailing = i), o !== void 0 && (f.maxWait = o), f;
1017
1088
  }, [a, i, o]);
1018
- return Z(function() {
1019
- if (n) {
1020
- var s = r.runAsync.bind(r);
1021
- return c.current = bt(function(u) {
1089
+ return J(function() {
1090
+ if (r) {
1091
+ var f = e.runAsync.bind(e);
1092
+ return c.current = Dt(function(u) {
1022
1093
  u();
1023
- }, n, f), r.runAsync = function() {
1024
- for (var u = [], m = 0; m < arguments.length; m++)
1025
- u[m] = arguments[m];
1026
- return new Promise(function(v, y) {
1027
- var g;
1028
- (g = c.current) === null || g === void 0 || g.call(c, function() {
1029
- s.apply(void 0, O([], R(u), !1)).then(v).catch(y);
1094
+ }, r, s), e.runAsync = function() {
1095
+ for (var u = [], d = 0; d < arguments.length; d++)
1096
+ u[d] = arguments[d];
1097
+ return new Promise(function(l, p) {
1098
+ var m;
1099
+ (m = c.current) === null || m === void 0 || m.call(c, function() {
1100
+ f.apply(void 0, _([], S(u), !1)).then(l).catch(p);
1030
1101
  });
1031
1102
  });
1032
1103
  }, function() {
1033
1104
  var u;
1034
- (u = c.current) === null || u === void 0 || u.cancel(), r.runAsync = s;
1105
+ (u = c.current) === null || u === void 0 || u.cancel(), e.runAsync = f;
1035
1106
  };
1036
1107
  }
1037
- }, [n, f]), n ? {
1108
+ }, [r, s]), r ? {
1038
1109
  onCancel: function() {
1039
- var s;
1040
- (s = c.current) === null || s === void 0 || s.cancel();
1110
+ var f;
1111
+ (f = c.current) === null || f === void 0 || f.cancel();
1041
1112
  }
1042
1113
  } : {};
1043
- }, ht = function(r, e) {
1044
- var n = e.loadingDelay, a = e.ready, i = j();
1045
- if (!n)
1114
+ }, Jt = function(e, t) {
1115
+ var r = t.loadingDelay, a = t.ready, i = j();
1116
+ if (!r)
1046
1117
  return {};
1047
1118
  var o = function() {
1048
1119
  i.current && clearTimeout(i.current);
@@ -1050,10 +1121,10 @@ var gt = function(r, e) {
1050
1121
  return {
1051
1122
  onBefore: function() {
1052
1123
  return o(), a !== !1 && (i.current = setTimeout(function() {
1053
- r.setState({
1124
+ e.setState({
1054
1125
  loading: !0
1055
1126
  });
1056
- }, n)), {
1127
+ }, r)), {
1057
1128
  loading: !1
1058
1129
  };
1059
1130
  },
@@ -1064,37 +1135,37 @@ var gt = function(r, e) {
1064
1135
  o();
1065
1136
  }
1066
1137
  };
1067
- }, be = !!(typeof window < "u" && window.document && window.document.createElement);
1068
- function Ie() {
1069
- return be ? document.visibilityState !== "hidden" : !0;
1138
+ }, ce = !!(typeof window < "u" && window.document && window.document.createElement);
1139
+ function ze() {
1140
+ return ce ? document.visibilityState !== "hidden" : !0;
1070
1141
  }
1071
- var ae = [];
1072
- function pt(r) {
1073
- return ae.push(r), function() {
1074
- var n = ae.indexOf(r);
1075
- ae.splice(n, 1);
1142
+ var oe = [];
1143
+ function Xt(e) {
1144
+ return oe.push(e), function() {
1145
+ var r = oe.indexOf(e);
1146
+ oe.splice(r, 1);
1076
1147
  };
1077
1148
  }
1078
- if (be) {
1079
- var yt = function() {
1080
- if (Ie())
1081
- for (var r = 0; r < ae.length; r++) {
1082
- var e = ae[r];
1083
- e();
1149
+ if (ce) {
1150
+ var Zt = function() {
1151
+ if (ze())
1152
+ for (var e = 0; e < oe.length; e++) {
1153
+ var t = oe[e];
1154
+ t();
1084
1155
  }
1085
1156
  };
1086
- window.addEventListener("visibilitychange", yt, !1);
1157
+ window.addEventListener("visibilitychange", Zt, !1);
1087
1158
  }
1088
- var Et = function(r, e) {
1089
- var n = e.pollingInterval, a = e.pollingWhenHidden, i = a === void 0 ? !0 : a, o = e.pollingErrorRetryCount, c = o === void 0 ? -1 : o, f = j(), s = j(), u = j(0), m = function() {
1090
- var v;
1091
- f.current && clearTimeout(f.current), (v = s.current) === null || v === void 0 || v.call(s);
1159
+ var Qt = function(e, t) {
1160
+ var r = t.pollingInterval, a = t.pollingWhenHidden, i = a === void 0 ? !0 : a, o = t.pollingErrorRetryCount, c = o === void 0 ? -1 : o, s = j(), f = j(), u = j(0), d = function() {
1161
+ var l;
1162
+ s.current && clearTimeout(s.current), (l = f.current) === null || l === void 0 || l.call(f);
1092
1163
  };
1093
- return We(function() {
1094
- n || m();
1095
- }, [n]), n ? {
1164
+ return Be(function() {
1165
+ r || d();
1166
+ }, [r]), r ? {
1096
1167
  onBefore: function() {
1097
- m();
1168
+ d();
1098
1169
  },
1099
1170
  onError: function() {
1100
1171
  u.current += 1;
@@ -1104,67 +1175,67 @@ var Et = function(r, e) {
1104
1175
  },
1105
1176
  onFinally: function() {
1106
1177
  c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
1107
- c !== -1 && u.current <= c ? f.current = setTimeout(function() {
1108
- !i && !Ie() ? s.current = pt(function() {
1109
- r.refresh();
1110
- }) : r.refresh();
1111
- }, n) : u.current = 0;
1178
+ c !== -1 && u.current <= c ? s.current = setTimeout(function() {
1179
+ !i && !ze() ? f.current = Xt(function() {
1180
+ e.refresh();
1181
+ }) : e.refresh();
1182
+ }, r) : u.current = 0;
1112
1183
  },
1113
1184
  onCancel: function() {
1114
- m();
1185
+ d();
1115
1186
  }
1116
1187
  } : {};
1117
1188
  };
1118
- function Tt(r, e) {
1119
- var n = !1;
1189
+ function Kt(e, t) {
1190
+ var r = !1;
1120
1191
  return function() {
1121
1192
  for (var a = [], i = 0; i < arguments.length; i++)
1122
1193
  a[i] = arguments[i];
1123
- n || (n = !0, r.apply(void 0, O([], R(a), !1)), setTimeout(function() {
1124
- n = !1;
1125
- }, e));
1194
+ r || (r = !0, e.apply(void 0, _([], S(a), !1)), setTimeout(function() {
1195
+ r = !1;
1196
+ }, t));
1126
1197
  };
1127
1198
  }
1128
- function wt() {
1129
- return be && typeof navigator.onLine < "u" ? navigator.onLine : !0;
1199
+ function en() {
1200
+ return ce && typeof navigator.onLine < "u" ? navigator.onLine : !0;
1130
1201
  }
1131
1202
  var ie = [];
1132
- function jt(r) {
1133
- return ie.push(r), function() {
1134
- var n = ie.indexOf(r);
1135
- n > -1 && ie.splice(n, 1);
1203
+ function rn(e) {
1204
+ return ie.push(e), function() {
1205
+ var r = ie.indexOf(e);
1206
+ r > -1 && ie.splice(r, 1);
1136
1207
  };
1137
1208
  }
1138
- if (be) {
1139
- var hr = function() {
1140
- if (!(!Ie() || !wt()))
1141
- for (var r = 0; r < ie.length; r++) {
1142
- var e = ie[r];
1143
- e();
1209
+ if (ce) {
1210
+ var _r = function() {
1211
+ if (!(!ze() || !en()))
1212
+ for (var e = 0; e < ie.length; e++) {
1213
+ var t = ie[e];
1214
+ t();
1144
1215
  }
1145
1216
  };
1146
- window.addEventListener("visibilitychange", hr, !1), window.addEventListener("focus", hr, !1);
1217
+ window.addEventListener("visibilitychange", _r, !1), window.addEventListener("focus", _r, !1);
1147
1218
  }
1148
- var _t = function(r, e) {
1149
- var n = e.refreshOnWindowFocus, a = e.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
1150
- var f;
1151
- (f = o.current) === null || f === void 0 || f.call(o);
1219
+ var tn = function(e, t) {
1220
+ var r = t.refreshOnWindowFocus, a = t.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
1221
+ var s;
1222
+ (s = o.current) === null || s === void 0 || s.call(o);
1152
1223
  };
1153
- return Z(function() {
1154
- if (n) {
1155
- var f = Tt(r.refresh.bind(r), i);
1156
- o.current = jt(function() {
1157
- f();
1224
+ return J(function() {
1225
+ if (r) {
1226
+ var s = Kt(e.refresh.bind(e), i);
1227
+ o.current = rn(function() {
1228
+ s();
1158
1229
  });
1159
1230
  }
1160
1231
  return function() {
1161
1232
  c();
1162
1233
  };
1163
- }, [n, i]), $e(function() {
1234
+ }, [r, i]), ye(function() {
1164
1235
  c();
1165
1236
  }), {};
1166
- }, Rt = function(r, e) {
1167
- var n = e.retryInterval, a = e.retryCount, i = j(), o = j(0), c = j(!1);
1237
+ }, nn = function(e, t) {
1238
+ var r = t.retryInterval, a = t.retryCount, i = j(), o = j(0), c = j(!1);
1168
1239
  return a ? {
1169
1240
  onBefore: function() {
1170
1241
  c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
@@ -1174,10 +1245,10 @@ var _t = function(r, e) {
1174
1245
  },
1175
1246
  onError: function() {
1176
1247
  if (o.current += 1, a === -1 || o.current <= a) {
1177
- var f = n ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
1248
+ var s = r ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
1178
1249
  i.current = setTimeout(function() {
1179
- c.current = !0, r.refresh();
1180
- }, f);
1250
+ c.current = !0, e.refresh();
1251
+ }, s);
1181
1252
  } else
1182
1253
  o.current = 0;
1183
1254
  },
@@ -1185,118 +1256,118 @@ var _t = function(r, e) {
1185
1256
  o.current = 0, i.current && clearTimeout(i.current);
1186
1257
  }
1187
1258
  } : {};
1188
- }, Me, pr;
1189
- function Ot() {
1190
- if (pr) return Me;
1191
- pr = 1;
1192
- var r = Pr(), e = Fe(), n = "Expected a function";
1259
+ }, Ie, Rr;
1260
+ function an() {
1261
+ if (Rr) return Ie;
1262
+ Rr = 1;
1263
+ var e = Fr(), t = Ue(), r = "Expected a function";
1193
1264
  function a(i, o, c) {
1194
- var f = !0, s = !0;
1265
+ var s = !0, f = !0;
1195
1266
  if (typeof i != "function")
1196
- throw new TypeError(n);
1197
- return e(c) && (f = "leading" in c ? !!c.leading : f, s = "trailing" in c ? !!c.trailing : s), r(i, o, {
1198
- leading: f,
1267
+ throw new TypeError(r);
1268
+ return t(c) && (s = "leading" in c ? !!c.leading : s, f = "trailing" in c ? !!c.trailing : f), e(i, o, {
1269
+ leading: s,
1199
1270
  maxWait: o,
1200
- trailing: s
1271
+ trailing: f
1201
1272
  });
1202
1273
  }
1203
- return Me = a, Me;
1274
+ return Ie = a, Ie;
1204
1275
  }
1205
- var St = Ot();
1206
- const xt = /* @__PURE__ */ Tr(St);
1207
- var Pt = function(r, e) {
1208
- var n = e.throttleWait, a = e.throttleLeading, i = e.throttleTrailing, o = j(), c = {};
1209
- return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), Z(function() {
1210
- if (n) {
1211
- var f = r.runAsync.bind(r);
1212
- return o.current = xt(function(s) {
1213
- s();
1214
- }, n, c), r.runAsync = function() {
1215
- for (var s = [], u = 0; u < arguments.length; u++)
1216
- s[u] = arguments[u];
1217
- return new Promise(function(m, v) {
1218
- var y;
1219
- (y = o.current) === null || y === void 0 || y.call(o, function() {
1220
- f.apply(void 0, O([], R(s), !1)).then(m).catch(v);
1276
+ var on = an();
1277
+ const un = /* @__PURE__ */ Ye(on);
1278
+ var cn = function(e, t) {
1279
+ var r = t.throttleWait, a = t.throttleLeading, i = t.throttleTrailing, o = j(), c = {};
1280
+ return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), J(function() {
1281
+ if (r) {
1282
+ var s = e.runAsync.bind(e);
1283
+ return o.current = un(function(f) {
1284
+ f();
1285
+ }, r, c), e.runAsync = function() {
1286
+ for (var f = [], u = 0; u < arguments.length; u++)
1287
+ f[u] = arguments[u];
1288
+ return new Promise(function(d, l) {
1289
+ var p;
1290
+ (p = o.current) === null || p === void 0 || p.call(o, function() {
1291
+ s.apply(void 0, _([], S(f), !1)).then(d).catch(l);
1221
1292
  });
1222
1293
  });
1223
1294
  }, function() {
1224
- var s;
1225
- r.runAsync = f, (s = o.current) === null || s === void 0 || s.cancel();
1295
+ var f;
1296
+ e.runAsync = s, (f = o.current) === null || f === void 0 || f.cancel();
1226
1297
  };
1227
1298
  }
1228
- }, [n, a, i]), n ? {
1299
+ }, [r, a, i]), r ? {
1229
1300
  onCancel: function() {
1230
- var f;
1231
- (f = o.current) === null || f === void 0 || f.cancel();
1301
+ var s;
1302
+ (s = o.current) === null || s === void 0 || s.cancel();
1232
1303
  }
1233
1304
  } : {};
1234
- }, Ct = function(r) {
1235
- me && (ve(r) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof r, '".'))), Z(function() {
1236
- r == null || r();
1305
+ }, sn = function(e) {
1306
+ pe && (ue(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), J(function() {
1307
+ e == null || e();
1237
1308
  }, []);
1238
- }, At = function() {
1239
- var r = R(Mr({}), 2), e = r[1];
1240
- return Wr(function() {
1241
- return e({});
1309
+ }, fn = function() {
1310
+ var e = S(Ar({}), 2), t = e[1];
1311
+ return Ur(function() {
1312
+ return t({});
1242
1313
  }, []);
1243
- }, Nt = (
1314
+ }, ln = (
1244
1315
  /** @class */
1245
1316
  function() {
1246
- function r(e, n, a, i) {
1247
- i === void 0 && (i = {}), this.serviceRef = e, this.options = n, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
1317
+ function e(t, r, a, i) {
1318
+ i === void 0 && (i = {}), this.serviceRef = t, this.options = r, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
1248
1319
  loading: !1,
1249
1320
  params: void 0,
1250
1321
  data: void 0,
1251
1322
  error: void 0
1252
- }, this.state = A(A(A({}, this.state), {
1253
- loading: !n.manual
1323
+ }, this.state = N(N(N({}, this.state), {
1324
+ loading: !r.manual
1254
1325
  }), i);
1255
1326
  }
1256
- return r.prototype.setState = function(e) {
1257
- e === void 0 && (e = {}), this.state = A(A({}, this.state), e), this.subscribe();
1258
- }, r.prototype.runPluginHandler = function(e) {
1259
- for (var n = [], a = 1; a < arguments.length; a++)
1260
- n[a - 1] = arguments[a];
1327
+ return e.prototype.setState = function(t) {
1328
+ t === void 0 && (t = {}), this.state = N(N({}, this.state), t), this.subscribe();
1329
+ }, e.prototype.runPluginHandler = function(t) {
1330
+ for (var r = [], a = 1; a < arguments.length; a++)
1331
+ r[a - 1] = arguments[a];
1261
1332
  var i = this.pluginImpls.map(function(o) {
1262
1333
  var c;
1263
- return (c = o[e]) === null || c === void 0 ? void 0 : c.call.apply(c, O([o], R(n), !1));
1334
+ return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c, _([o], S(r), !1));
1264
1335
  }).filter(Boolean);
1265
- return Object.assign.apply(Object, O([{}], R(i), !1));
1266
- }, r.prototype.runAsync = function() {
1267
- for (var e = [], n = 0; n < arguments.length; n++)
1268
- e[n] = arguments[n];
1269
- return Jr(this, void 0, void 0, function() {
1270
- var a, i, o, c, f, s, u, m, v, y, g, b, E, x, q, N, M, k, G, L, W;
1271
- return Xr(this, function(P) {
1336
+ return Object.assign.apply(Object, _([{}], S(i), !1));
1337
+ }, e.prototype.runAsync = function() {
1338
+ for (var t = [], r = 0; r < arguments.length; r++)
1339
+ t[r] = arguments[r];
1340
+ return xt(this, void 0, void 0, function() {
1341
+ var a, i, o, c, s, f, u, d, l, p, m, b, E, x, M, k, W, q, Y, B, $;
1342
+ return Pt(this, function(P) {
1272
1343
  switch (P.label) {
1273
1344
  case 0:
1274
- if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", e), o = i.stopNow, c = o === void 0 ? !1 : o, f = i.returnNow, s = f === void 0 ? !1 : f, u = jr(i, ["stopNow", "returnNow"]), c)
1345
+ if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u = qr(i, ["stopNow", "returnNow"]), c)
1275
1346
  return [2, new Promise(function() {
1276
1347
  })];
1277
- if (this.setState(A({
1348
+ if (this.setState(N({
1278
1349
  loading: !0,
1279
- params: e
1280
- }, u)), s)
1350
+ params: t
1351
+ }, u)), f)
1281
1352
  return [2, Promise.resolve(u.data)];
1282
- (E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, e), P.label = 1;
1353
+ (E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, t), P.label = 1;
1283
1354
  case 1:
1284
- return P.trys.push([1, 3, , 4]), m = this.runPluginHandler("onRequest", this.serviceRef.current, e).servicePromise, m || (m = (g = this.serviceRef).current.apply(g, O([], R(e), !1))), [4, m];
1355
+ return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m, _([], S(t), !1))), [4, d];
1285
1356
  case 2:
1286
- return v = P.sent(), a !== this.count ? [2, new Promise(function() {
1357
+ return l = P.sent(), a !== this.count ? [2, new Promise(function() {
1287
1358
  })] : (this.setState({
1288
- data: v,
1359
+ data: l,
1289
1360
  error: void 0,
1290
1361
  loading: !1
1291
- }), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, v, e), this.runPluginHandler("onSuccess", v, e), (M = (N = this.options).onFinally) === null || M === void 0 || M.call(N, e, v, void 0), a === this.count && this.runPluginHandler("onFinally", e, v, void 0), [2, v]);
1362
+ }), (M = (x = this.options).onSuccess) === null || M === void 0 || M.call(x, l, t), this.runPluginHandler("onSuccess", l, t), (W = (k = this.options).onFinally) === null || W === void 0 || W.call(k, t, l, void 0), a === this.count && this.runPluginHandler("onFinally", t, l, void 0), [2, l]);
1292
1363
  case 3:
1293
- if (y = P.sent(), a !== this.count)
1364
+ if (p = P.sent(), a !== this.count)
1294
1365
  return [2, new Promise(function() {
1295
1366
  })];
1296
1367
  throw this.setState({
1297
- error: y,
1368
+ error: p,
1298
1369
  loading: !1
1299
- }), (G = (k = this.options).onError) === null || G === void 0 || G.call(k, y, e), this.runPluginHandler("onError", y, e), (W = (L = this.options).onFinally) === null || W === void 0 || W.call(L, e, void 0, y), a === this.count && this.runPluginHandler("onFinally", e, void 0, y), y;
1370
+ }), (Y = (q = this.options).onError) === null || Y === void 0 || Y.call(q, p, t), this.runPluginHandler("onError", p, t), ($ = (B = this.options).onFinally) === null || $ === void 0 || $.call(B, t, void 0, p), a === this.count && this.runPluginHandler("onFinally", t, void 0, p), p;
1300
1371
  case 4:
1301
1372
  return [
1302
1373
  2
@@ -1305,87 +1376,241 @@ var Pt = function(r, e) {
1305
1376
  }
1306
1377
  });
1307
1378
  });
1308
- }, r.prototype.run = function() {
1309
- for (var e = this, n = [], a = 0; a < arguments.length; a++)
1310
- n[a] = arguments[a];
1311
- this.runAsync.apply(this, O([], R(n), !1)).catch(function(i) {
1312
- e.options.onError || console.error(i);
1379
+ }, e.prototype.run = function() {
1380
+ for (var t = this, r = [], a = 0; a < arguments.length; a++)
1381
+ r[a] = arguments[a];
1382
+ this.runAsync.apply(this, _([], S(r), !1)).catch(function(i) {
1383
+ t.options.onError || console.error(i);
1313
1384
  });
1314
- }, r.prototype.cancel = function() {
1385
+ }, e.prototype.cancel = function() {
1315
1386
  this.count += 1, this.setState({
1316
1387
  loading: !1
1317
1388
  }), this.runPluginHandler("onCancel");
1318
- }, r.prototype.refresh = function() {
1319
- this.run.apply(this, O([], R(this.state.params || []), !1));
1320
- }, r.prototype.refreshAsync = function() {
1321
- return this.runAsync.apply(this, O([], R(this.state.params || []), !1));
1322
- }, r.prototype.mutate = function(e) {
1323
- var n = ve(e) ? e(this.state.data) : e;
1324
- this.runPluginHandler("onMutate", n), this.setState({
1325
- data: n
1389
+ }, e.prototype.refresh = function() {
1390
+ this.run.apply(this, _([], S(this.state.params || []), !1));
1391
+ }, e.prototype.refreshAsync = function() {
1392
+ return this.runAsync.apply(this, _([], S(this.state.params || []), !1));
1393
+ }, e.prototype.mutate = function(t) {
1394
+ var r = ue(t) ? t(this.state.data) : t;
1395
+ this.runPluginHandler("onMutate", r), this.setState({
1396
+ data: r
1326
1397
  });
1327
- }, r;
1398
+ }, e;
1328
1399
  }()
1329
1400
  );
1330
- function kt(r, e, n) {
1331
- e === void 0 && (e = {}), n === void 0 && (n = []);
1332
- var a = e.manual, i = a === void 0 ? !1 : a, o = e.ready, c = o === void 0 ? !0 : o, f = jr(e, ["manual", "ready"]);
1333
- me && e.defaultParams && !Array.isArray(e.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof e.defaultParams));
1334
- var s = A({
1401
+ function dn(e, t, r) {
1402
+ t === void 0 && (t = {}), r === void 0 && (r = []);
1403
+ var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s = qr(t, ["manual", "ready"]);
1404
+ pe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
1405
+ var f = N({
1335
1406
  manual: i,
1336
1407
  ready: c
1337
- }, f), u = Or(r), m = At(), v = Rr(function() {
1338
- var y = n.map(function(g) {
1408
+ }, s), u = He(e), d = fn(), l = Wr(function() {
1409
+ var p = r.map(function(m) {
1339
1410
  var b;
1340
- return (b = g == null ? void 0 : g.onInit) === null || b === void 0 ? void 0 : b.call(g, s);
1411
+ return (b = m == null ? void 0 : m.onInit) === null || b === void 0 ? void 0 : b.call(m, f);
1341
1412
  }).filter(Boolean);
1342
- return new Nt(u, s, m, Object.assign.apply(Object, O([{}], R(y), !1)));
1413
+ return new ln(u, f, d, Object.assign.apply(Object, _([{}], S(p), !1)));
1343
1414
  }, []);
1344
- return v.options = s, v.pluginImpls = n.map(function(y) {
1345
- return y(v, s);
1346
- }), Ct(function() {
1415
+ return l.options = f, l.pluginImpls = r.map(function(p) {
1416
+ return p(l, f);
1417
+ }), sn(function() {
1347
1418
  if (!i && c) {
1348
- var y = v.state.params || e.defaultParams || [];
1349
- v.run.apply(v, O([], R(y), !1));
1419
+ var p = l.state.params || t.defaultParams || [];
1420
+ l.run.apply(l, _([], S(p), !1));
1350
1421
  }
1351
- }), $e(function() {
1352
- v.cancel();
1422
+ }), ye(function() {
1423
+ l.cancel();
1353
1424
  }), {
1354
- loading: v.state.loading,
1355
- data: v.state.data,
1356
- error: v.state.error,
1357
- params: v.state.params || [],
1358
- cancel: X(v.cancel.bind(v)),
1359
- refresh: X(v.refresh.bind(v)),
1360
- refreshAsync: X(v.refreshAsync.bind(v)),
1361
- run: X(v.run.bind(v)),
1362
- runAsync: X(v.runAsync.bind(v)),
1363
- mutate: X(v.mutate.bind(v))
1425
+ loading: l.state.loading,
1426
+ data: l.state.data,
1427
+ error: l.state.error,
1428
+ params: l.state.params || [],
1429
+ cancel: Z(l.cancel.bind(l)),
1430
+ refresh: Z(l.refresh.bind(l)),
1431
+ refreshAsync: Z(l.refreshAsync.bind(l)),
1432
+ run: Z(l.run.bind(l)),
1433
+ runAsync: Z(l.runAsync.bind(l)),
1434
+ mutate: Z(l.mutate.bind(l))
1364
1435
  };
1365
1436
  }
1366
- function qt(r, e, n) {
1367
- return kt(r, e, O(O([], R(n || []), !1), [gt, ht, Et, _t, Pt, _r, nt, Rt], !1));
1437
+ function vn(e, t, r) {
1438
+ return dn(e, t, _(_([], S(r || []), !1), [Vt, Jt, Qt, tn, cn, Mr, Mt, nn], !1));
1439
+ }
1440
+ function gn(e, t) {
1441
+ var r = S(Ar(e), 2), a = r[0], i = r[1], o = he(function() {
1442
+ var c = !0, s = function() {
1443
+ return i(function(l) {
1444
+ return l === e ? c : e;
1445
+ });
1446
+ }, f = function(l) {
1447
+ return i(l);
1448
+ }, u = function() {
1449
+ return i(e);
1450
+ }, d = function() {
1451
+ return i(c);
1452
+ };
1453
+ return {
1454
+ toggle: s,
1455
+ set: f,
1456
+ setLeft: u,
1457
+ setRight: d
1458
+ };
1459
+ }, []);
1460
+ return [a, o];
1461
+ }
1462
+ function bn(e) {
1463
+ var t = S(gn(!1), 2), r = t[0], a = t[1], i = a.toggle, o = a.set, c = he(function() {
1464
+ var s = function() {
1465
+ return o(!0);
1466
+ }, f = function() {
1467
+ return o(!1);
1468
+ };
1469
+ return {
1470
+ toggle: i,
1471
+ set: function(u) {
1472
+ return o(!!u);
1473
+ },
1474
+ setTrue: s,
1475
+ setFalse: f
1476
+ };
1477
+ }, []);
1478
+ return [r, c];
1479
+ }
1480
+ function Ir(e, t) {
1481
+ if (ce) {
1482
+ if (!e)
1483
+ return t;
1484
+ var r;
1485
+ return ue(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
1486
+ }
1368
1487
  }
1369
- function Yt(r, e, n) {
1370
- const a = qt(r, {
1371
- ...e,
1488
+ var mn = function(e) {
1489
+ var t = function(r, a, i) {
1490
+ var o = j(!1), c = j([]), s = j([]), f = j();
1491
+ e(function() {
1492
+ var u, d = Array.isArray(i) ? i : [i], l = d.map(function(p) {
1493
+ return Ir(p);
1494
+ });
1495
+ if (!o.current) {
1496
+ o.current = !0, c.current = l, s.current = a, f.current = r();
1497
+ return;
1498
+ }
1499
+ (l.length !== c.current.length || !Ge(c.current, l) || !Ge(s.current, a)) && ((u = f.current) === null || u === void 0 || u.call(f), c.current = l, s.current = a, f.current = r());
1500
+ }), ye(function() {
1501
+ var u;
1502
+ (u = f.current) === null || u === void 0 || u.call(f), o.current = !1;
1503
+ });
1504
+ };
1505
+ return t;
1506
+ }, hn = mn(J);
1507
+ function xr(e, t, r) {
1508
+ r === void 0 && (r = {});
1509
+ var a = r.enable, i = a === void 0 ? !0 : a, o = He(t);
1510
+ hn(function() {
1511
+ if (i) {
1512
+ var c = Ir(r.target, window);
1513
+ if (c != null && c.addEventListener) {
1514
+ var s = function(u) {
1515
+ return o.current(u);
1516
+ }, f = Array.isArray(e) ? e : [e];
1517
+ return f.forEach(function(u) {
1518
+ c.addEventListener(u, s, {
1519
+ capture: r.capture,
1520
+ once: r.once,
1521
+ passive: r.passive
1522
+ });
1523
+ }), function() {
1524
+ f.forEach(function(u) {
1525
+ c.removeEventListener(u, s, {
1526
+ capture: r.capture
1527
+ });
1528
+ });
1529
+ };
1530
+ }
1531
+ }
1532
+ }, [e, r.capture, r.once, r.passive, i], r.target);
1533
+ }
1534
+ const pn = function(e, t) {
1535
+ var r = {}, a = r.onEnter, i = r.onLeave, o = r.onChange, c = S(bn(), 2), s = c[0], f = c[1], u = f.setTrue, d = f.setFalse;
1536
+ return xr("mouseenter", function() {
1537
+ a == null || a(), u(), o == null || o(!0);
1538
+ }, {
1539
+ target: e
1540
+ }), xr("mouseleave", function() {
1541
+ i == null || i(), d(), o == null || o(!1);
1542
+ }, {
1543
+ target: e
1544
+ }), s;
1545
+ }, yn = {}, En = (e, t) => {
1546
+ const r = j(null), {
1547
+ icon: a,
1548
+ tooltipDisabled: i = !1,
1549
+ onClick: o = Tt,
1550
+ disabled: c,
1551
+ size: s = "middle",
1552
+ style: f = {},
1553
+ className: u,
1554
+ loading: d = !1,
1555
+ ...l
1556
+ } = e, p = pn(r), m = () => jt(a) && a.includes("icon-") ? /* @__PURE__ */ C.jsx(it, { type: a }) : a, b = /* @__PURE__ */ C.jsx(
1557
+ Qr,
1558
+ {
1559
+ onClick: o,
1560
+ size: s,
1561
+ disabled: c,
1562
+ style: f,
1563
+ ref: t,
1564
+ loading: d,
1565
+ className: _t([u, yn.btn_icon__warp]),
1566
+ icon: m()
1567
+ }
1568
+ );
1569
+ if (!a)
1570
+ throw new Error("IconButton 组件必须传入 icon 属性");
1571
+ return /* @__PURE__ */ C.jsxs(zr, { children: [
1572
+ i && b,
1573
+ !i && /* @__PURE__ */ C.jsx(
1574
+ Kr,
1575
+ {
1576
+ open: p,
1577
+ trigger: "contextMenu",
1578
+ destroyTooltipOnHide: !0,
1579
+ ...l,
1580
+ children: /* @__PURE__ */ C.jsx(
1581
+ "span",
1582
+ {
1583
+ ref: r,
1584
+ style: { display: "inline-block" },
1585
+ className: "icon-button-box",
1586
+ children: b
1587
+ }
1588
+ )
1589
+ }
1590
+ )
1591
+ ] });
1592
+ }, _n = Pr.forwardRef(En);
1593
+ function Rn(e, t, r) {
1594
+ const a = vn(e, {
1595
+ ...t,
1372
1596
  onError(o, c) {
1373
- var f;
1374
- ((e == null ? void 0 : e.errorMessage) ?? !0) && wr.error(o.message), (f = e == null ? void 0 : e.onError) == null || f.call(e, o, c);
1597
+ var s;
1598
+ ((t == null ? void 0 : t.errorMessage) ?? !0) && Nr.error(o.message), (s = t == null ? void 0 : t.onError) == null || s.call(t, o, c);
1375
1599
  }
1376
- }, n), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
1600
+ }, r), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
1377
1601
  return {
1378
1602
  ...a,
1379
1603
  data: i
1380
1604
  };
1381
1605
  }
1382
1606
  export {
1383
- $t as App,
1384
- It as CheckboxValue,
1385
- Ft as IconFont,
1386
- Lt as SwitchValue,
1387
- wr as message,
1388
- zr as modal,
1389
- Hr as notification,
1390
- Yt as useRequest
1607
+ jn as App,
1608
+ Sn as CheckboxValue,
1609
+ _n as IconButton,
1610
+ it as IconFont,
1611
+ On as SwitchValue,
1612
+ Nr as message,
1613
+ at as modal,
1614
+ nt as notification,
1615
+ Rn as useRequest
1391
1616
  };