@devtable/settings-form 10.1.0 → 10.3.0

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.
Files changed (30) hide show
  1. package/dist/account/account-list.d.ts +1 -2
  2. package/dist/account/add-account.d.ts +1 -2
  3. package/dist/account/delete-account.d.ts +1 -2
  4. package/dist/account/edit-account.d.ts +1 -2
  5. package/dist/account/login/form.d.ts +1 -2
  6. package/dist/account/login/index.d.ts +1 -2
  7. package/dist/api-key/add-api-key.d.ts +1 -2
  8. package/dist/api-key/api-key-list.d.ts +1 -2
  9. package/dist/api-key/delete-api-key.d.ts +1 -2
  10. package/dist/components/minimal-mocaco-editor.d.ts +1 -2
  11. package/dist/datasource/add-data-source/db-permission-tips.d.ts +1 -2
  12. package/dist/datasource/add-data-source/forms/database.d.ts +1 -2
  13. package/dist/datasource/add-data-source/forms/http.d.ts +1 -2
  14. package/dist/datasource/add-data-source/index.d.ts +1 -2
  15. package/dist/datasource/components/data-source-icon.d.ts +1 -2
  16. package/dist/datasource/components/function-string-field/function-string-editor.d.ts +1 -2
  17. package/dist/datasource/data-source-list.d.ts +1 -2
  18. package/dist/datasource/delete-data-source.d.ts +1 -2
  19. package/dist/datasource/edit-data-source/forms/http.d.ts +1 -2
  20. package/dist/datasource/edit-data-source/index.d.ts +1 -2
  21. package/dist/package-659e29fb.mjs +4 -0
  22. package/dist/settings-form.es.js +557 -469
  23. package/dist/settings-form.umd.js +16 -16
  24. package/dist/sql_snippet/add-sql_snippet.d.ts +1 -2
  25. package/dist/sql_snippet/delete-sql_snippet.d.ts +1 -2
  26. package/dist/sql_snippet/sql_snippet-list.d.ts +1 -2
  27. package/dist/sql_snippet/update-sql_snippet.d.ts +1 -2
  28. package/dist/stats.html +1 -1
  29. package/package.json +1 -1
  30. package/dist/package-eb53f5df.mjs +0 -76
@@ -1,12 +1,12 @@
1
1
  import Z, { useEffect as mt, forwardRef as Xe, useState as Ut, Component as _r } from "react";
2
- import { Box as le, TextInput as ce, Divider as Qe, Group as J, NumberInput as Ar, PasswordInput as Je, Button as Y, Modal as _e, Stack as Me, Alert as kr, SegmentedControl as Tr, Tooltip as Ve, Text as Te, ActionIcon as bt, LoadingOverlay as et, Table as tt, Select as Rr, Switch as Or, createStyles as Gt, useComponentDefaultProps as xr, useMantineTheme as Cr, ScrollArea as qt, Tabs as rt, HoverCard as dt } from "@mantine/core";
3
- import { showNotification as be, updateNotification as ee } from "@mantine/notifications";
2
+ import { Box as le, TextInput as ce, Divider as Qe, Group as ee, NumberInput as Ar, PasswordInput as Je, Button as Y, Modal as _e, Stack as Me, Alert as kr, SegmentedControl as Tr, Tooltip as Ve, Text as Re, ActionIcon as bt, LoadingOverlay as et, Table as tt, Select as Rr, Switch as Or, createStyles as Gt, useComponentDefaultProps as xr, useMantineTheme as Cr, ScrollArea as qt, Tabs as rt, HoverCard as dt } from "@mantine/core";
3
+ import { showNotification as be, updateNotification as te } from "@mantine/notifications";
4
4
  import { Recycle as Ir, AlertCircle as Dr, PlaylistAdd as nt, Trash as at, Edit as Lr } from "tabler-icons-react";
5
5
  import Fr from "axios";
6
6
  import Nr from "crypto-js";
7
7
  import $r from "lodash";
8
8
  import { useForm as we, Controller as G } from "react-hook-form";
9
- import { useBoolean as Pr, useRequest as Re } from "ahooks";
9
+ import { useBoolean as Pr, useRequest as Oe } from "ahooks";
10
10
  import Ht, { loader as pt } from "@monaco-editor/react";
11
11
  import { useModals as Be, closeAllModals as zr } from "@mantine/modals";
12
12
  import { IconLock as Yt, IconEdit as gt, IconNetwork as Mr, IconBrandMysql as Br, IconDatabase as jr, IconEye as Ur } from "@tabler/icons";
@@ -60,7 +60,7 @@ var Ft;
60
60
  function Vr() {
61
61
  return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
62
62
  var e = Z, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
63
- function E(i) {
63
+ function _(i) {
64
64
  if (i === null || typeof i != "object")
65
65
  return null;
66
66
  var v = y && i[y] || i[h];
@@ -71,23 +71,23 @@ function Vr() {
71
71
  {
72
72
  for (var v = arguments.length, T = new Array(v > 1 ? v - 1 : 0), D = 1; D < v; D++)
73
73
  T[D - 1] = arguments[D];
74
- $("error", i, T);
74
+ N("error", i, T);
75
75
  }
76
76
  }
77
- function $(i, v, T) {
77
+ function N(i, v, T) {
78
78
  {
79
- var D = A.ReactDebugCurrentFrame, j = D.getStackAddendum();
80
- j !== "" && (v += "%s", T = T.concat([j]));
81
- var V = T.map(function(M) {
82
- return String(M);
79
+ var D = A.ReactDebugCurrentFrame, U = D.getStackAddendum();
80
+ U !== "" && (v += "%s", T = T.concat([U]));
81
+ var V = T.map(function(z) {
82
+ return String(z);
83
83
  });
84
84
  V.unshift("Warning: " + v), Function.prototype.apply.call(console[i], console, V);
85
85
  }
86
86
  }
87
- var B = !1, ie = !1, q = !1, W = !1, X = !1, L;
87
+ var M = !1, oe = !1, q = !1, W = !1, X = !1, L;
88
88
  L = Symbol.for("react.module.reference");
89
89
  function F(i) {
90
- return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || X || i === s || i === f || i === b || W || i === g || B || ie || q || typeof i == "object" && i !== null && (i.$$typeof === c || i.$$typeof === u || i.$$typeof === l || i.$$typeof === p || i.$$typeof === d || // This needs to include all possible module reference object
90
+ return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || X || i === s || i === f || i === b || W || i === g || M || oe || q || typeof i == "object" && i !== null && (i.$$typeof === c || i.$$typeof === u || i.$$typeof === l || i.$$typeof === p || i.$$typeof === d || // This needs to include all possible module reference object
91
91
  // types supported by any Flight configuration anywhere since
92
92
  // we don't know which Flight build this will end up being used
93
93
  // with.
@@ -97,13 +97,13 @@ function Vr() {
97
97
  var D = i.displayName;
98
98
  if (D)
99
99
  return D;
100
- var j = v.displayName || v.name || "";
101
- return j !== "" ? T + "(" + j + ")" : T;
100
+ var U = v.displayName || v.name || "";
101
+ return U !== "" ? T + "(" + U + ")" : T;
102
102
  }
103
- function te(i) {
103
+ function re(i) {
104
104
  return i.displayName || "Context";
105
105
  }
106
- function R(i) {
106
+ function O(i) {
107
107
  if (i == null)
108
108
  return null;
109
109
  if (typeof i.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
@@ -128,19 +128,19 @@ function Vr() {
128
128
  switch (i.$$typeof) {
129
129
  case p:
130
130
  var v = i;
131
- return te(v) + ".Consumer";
131
+ return re(v) + ".Consumer";
132
132
  case l:
133
133
  var T = i;
134
- return te(T._context) + ".Provider";
134
+ return re(T._context) + ".Provider";
135
135
  case d:
136
136
  return H(i, i.render, "ForwardRef");
137
137
  case u:
138
138
  var D = i.displayName || null;
139
- return D !== null ? D : R(i.type) || "Memo";
139
+ return D !== null ? D : O(i.type) || "Memo";
140
140
  case c: {
141
- var j = i, V = j._payload, M = j._init;
141
+ var U = i, V = U._payload, z = U._init;
142
142
  try {
143
- return R(M(V));
143
+ return O(z(V));
144
144
  } catch {
145
145
  return null;
146
146
  }
@@ -148,14 +148,14 @@ function Vr() {
148
148
  }
149
149
  return null;
150
150
  }
151
- var _ = Object.assign, S = 0, O, w, x, I, N, U, P;
151
+ var E = Object.assign, S = 0, R, w, x, I, $, j, B;
152
152
  function K() {
153
153
  }
154
154
  K.__reactDisabledLog = !0;
155
- function oe() {
155
+ function J() {
156
156
  {
157
157
  if (S === 0) {
158
- O = console.log, w = console.info, x = console.warn, I = console.error, N = console.group, U = console.groupCollapsed, P = console.groupEnd;
158
+ R = console.log, w = console.info, x = console.warn, I = console.error, $ = console.group, j = console.groupCollapsed, B = console.groupEnd;
159
159
  var i = {
160
160
  configurable: !0,
161
161
  enumerable: !0,
@@ -175,7 +175,7 @@ function Vr() {
175
175
  S++;
176
176
  }
177
177
  }
178
- function de() {
178
+ function he() {
179
179
  {
180
180
  if (S--, S === 0) {
181
181
  var i = {
@@ -184,53 +184,53 @@ function Vr() {
184
184
  writable: !0
185
185
  };
186
186
  Object.defineProperties(console, {
187
- log: _({}, i, {
188
- value: O
187
+ log: E({}, i, {
188
+ value: R
189
189
  }),
190
- info: _({}, i, {
190
+ info: E({}, i, {
191
191
  value: w
192
192
  }),
193
- warn: _({}, i, {
193
+ warn: E({}, i, {
194
194
  value: x
195
195
  }),
196
- error: _({}, i, {
196
+ error: E({}, i, {
197
197
  value: I
198
198
  }),
199
- group: _({}, i, {
200
- value: N
199
+ group: E({}, i, {
200
+ value: $
201
201
  }),
202
- groupCollapsed: _({}, i, {
203
- value: U
202
+ groupCollapsed: E({}, i, {
203
+ value: j
204
204
  }),
205
- groupEnd: _({}, i, {
206
- value: P
205
+ groupEnd: E({}, i, {
206
+ value: B
207
207
  })
208
208
  });
209
209
  }
210
210
  S < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
211
211
  }
212
212
  }
213
- var pe = A.ReactCurrentDispatcher, ye;
214
- function fe(i, v, T) {
213
+ var de = A.ReactCurrentDispatcher, ye;
214
+ function pe(i, v, T) {
215
215
  {
216
216
  if (ye === void 0)
217
217
  try {
218
218
  throw Error();
219
- } catch (j) {
220
- var D = j.stack.trim().match(/\n( *(at )?)/);
219
+ } catch (U) {
220
+ var D = U.stack.trim().match(/\n( *(at )?)/);
221
221
  ye = D && D[1] || "";
222
222
  }
223
223
  return `
224
224
  ` + ye + i;
225
225
  }
226
226
  }
227
- var re = !1, ue;
227
+ var ne = !1, ue;
228
228
  {
229
- var De = typeof WeakMap == "function" ? WeakMap : Map;
230
- ue = new De();
229
+ var ke = typeof WeakMap == "function" ? WeakMap : Map;
230
+ ue = new ke();
231
231
  }
232
- function ke(i, v) {
233
- if (!i || re)
232
+ function Te(i, v) {
233
+ if (!i || ne)
234
234
  return "";
235
235
  {
236
236
  var T = ue.get(i);
@@ -238,34 +238,34 @@ function Vr() {
238
238
  return T;
239
239
  }
240
240
  var D;
241
- re = !0;
242
- var j = Error.prepareStackTrace;
241
+ ne = !0;
242
+ var U = Error.prepareStackTrace;
243
243
  Error.prepareStackTrace = void 0;
244
244
  var V;
245
- V = pe.current, pe.current = null, oe();
245
+ V = de.current, de.current = null, J();
246
246
  try {
247
247
  if (v) {
248
- var M = function() {
248
+ var z = function() {
249
249
  throw Error();
250
250
  };
251
- if (Object.defineProperty(M.prototype, "props", {
251
+ if (Object.defineProperty(z.prototype, "props", {
252
252
  set: function() {
253
253
  throw Error();
254
254
  }
255
255
  }), typeof Reflect == "object" && Reflect.construct) {
256
256
  try {
257
- Reflect.construct(M, []);
257
+ Reflect.construct(z, []);
258
258
  } catch (Se) {
259
259
  D = Se;
260
260
  }
261
- Reflect.construct(i, [], M);
261
+ Reflect.construct(i, [], z);
262
262
  } else {
263
263
  try {
264
- M.call();
264
+ z.call();
265
265
  } catch (Se) {
266
266
  D = Se;
267
267
  }
268
- i.call(M.prototype);
268
+ i.call(z.prototype);
269
269
  }
270
270
  } else {
271
271
  try {
@@ -277,31 +277,31 @@ function Vr() {
277
277
  }
278
278
  } catch (Se) {
279
279
  if (Se && D && typeof Se.stack == "string") {
280
- for (var z = Se.stack.split(`
280
+ for (var P = Se.stack.split(`
281
281
  `), ge = D.stack.split(`
282
- `), ne = z.length - 1, ae = ge.length - 1; ne >= 1 && ae >= 0 && z[ne] !== ge[ae]; )
283
- ae--;
284
- for (; ne >= 1 && ae >= 0; ne--, ae--)
285
- if (z[ne] !== ge[ae]) {
286
- if (ne !== 1 || ae !== 1)
282
+ `), ae = P.length - 1, ie = ge.length - 1; ae >= 1 && ie >= 0 && P[ae] !== ge[ie]; )
283
+ ie--;
284
+ for (; ae >= 1 && ie >= 0; ae--, ie--)
285
+ if (P[ae] !== ge[ie]) {
286
+ if (ae !== 1 || ie !== 1)
287
287
  do
288
- if (ne--, ae--, ae < 0 || z[ne] !== ge[ae]) {
288
+ if (ae--, ie--, ie < 0 || P[ae] !== ge[ie]) {
289
289
  var me = `
290
- ` + z[ne].replace(" at new ", " at ");
290
+ ` + P[ae].replace(" at new ", " at ");
291
291
  return i.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", i.displayName)), typeof i == "function" && ue.set(i, me), me;
292
292
  }
293
- while (ne >= 1 && ae >= 0);
293
+ while (ae >= 1 && ie >= 0);
294
294
  break;
295
295
  }
296
296
  }
297
297
  } finally {
298
- re = !1, pe.current = V, de(), Error.prepareStackTrace = j;
298
+ ne = !1, de.current = V, he(), Error.prepareStackTrace = U;
299
299
  }
300
- var xe = i ? i.displayName || i.name : "", Dt = xe ? fe(xe) : "";
300
+ var Ce = i ? i.displayName || i.name : "", Dt = Ce ? pe(Ce) : "";
301
301
  return typeof i == "function" && ue.set(i, Dt), Dt;
302
302
  }
303
303
  function tr(i, v, T) {
304
- return ke(i, !1);
304
+ return Te(i, !1);
305
305
  }
306
306
  function rr(i) {
307
307
  var v = i.prototype;
@@ -311,14 +311,14 @@ function Vr() {
311
311
  if (i == null)
312
312
  return "";
313
313
  if (typeof i == "function")
314
- return ke(i, rr(i));
314
+ return Te(i, rr(i));
315
315
  if (typeof i == "string")
316
- return fe(i);
316
+ return pe(i);
317
317
  switch (i) {
318
318
  case f:
319
- return fe("Suspense");
319
+ return pe("Suspense");
320
320
  case b:
321
- return fe("SuspenseList");
321
+ return pe("SuspenseList");
322
322
  }
323
323
  if (typeof i == "object")
324
324
  switch (i.$$typeof) {
@@ -327,9 +327,9 @@ function Vr() {
327
327
  case u:
328
328
  return Ge(i.type, v, T);
329
329
  case c: {
330
- var D = i, j = D._payload, V = D._init;
330
+ var D = i, U = D._payload, V = D._init;
331
331
  try {
332
- return Ge(V(j), v, T);
332
+ return Ge(V(U), v, T);
333
333
  } catch {
334
334
  }
335
335
  }
@@ -344,22 +344,22 @@ function Vr() {
344
344
  } else
345
345
  wt.setExtraStackFrame(null);
346
346
  }
347
- function nr(i, v, T, D, j) {
347
+ function nr(i, v, T, D, U) {
348
348
  {
349
349
  var V = Function.call.bind(qe);
350
- for (var M in i)
351
- if (V(i, M)) {
352
- var z = void 0;
350
+ for (var z in i)
351
+ if (V(i, z)) {
352
+ var P = void 0;
353
353
  try {
354
- if (typeof i[M] != "function") {
355
- var ge = Error((D || "React class") + ": " + T + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
354
+ if (typeof i[z] != "function") {
355
+ var ge = Error((D || "React class") + ": " + T + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
356
356
  throw ge.name = "Invariant Violation", ge;
357
357
  }
358
- z = i[M](v, M, D, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
359
- } catch (ne) {
360
- z = ne;
358
+ P = i[z](v, z, D, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
359
+ } catch (ae) {
360
+ P = ae;
361
361
  }
362
- z && !(z instanceof Error) && (He(j), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", T, M, typeof z), He(null)), z instanceof Error && !(z.message in St) && (St[z.message] = !0, He(j), k("Failed %s type: %s", T, z.message), He(null));
362
+ P && !(P instanceof Error) && (He(U), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", T, z, typeof P), He(null)), P instanceof Error && !(P.message in St) && (St[P.message] = !0, He(U), k("Failed %s type: %s", T, P.message), He(null));
363
363
  }
364
364
  }
365
365
  }
@@ -412,8 +412,8 @@ function Vr() {
412
412
  }
413
413
  function cr(i, v) {
414
414
  if (typeof i.ref == "string" && Le.current && v && Le.current.stateNode !== v) {
415
- var T = R(Le.current.type);
416
- st[T] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Le.current.type), i.ref), st[T] = !0);
415
+ var T = O(Le.current.type);
416
+ st[T] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(Le.current.type), i.ref), st[T] = !0);
417
417
  }
418
418
  }
419
419
  function dr(i, v) {
@@ -438,55 +438,55 @@ function Vr() {
438
438
  });
439
439
  }
440
440
  }
441
- var gr = function(i, v, T, D, j, V, M) {
442
- var z = {
441
+ var gr = function(i, v, T, D, U, V, z) {
442
+ var P = {
443
443
  // This tag allows us to uniquely identify this as a React Element
444
444
  $$typeof: t,
445
445
  // Built-in properties that belong on the element
446
446
  type: i,
447
447
  key: v,
448
448
  ref: T,
449
- props: M,
449
+ props: z,
450
450
  // Record the component responsible for creating this element.
451
451
  _owner: V
452
452
  };
453
- return z._store = {}, Object.defineProperty(z._store, "validated", {
453
+ return P._store = {}, Object.defineProperty(P._store, "validated", {
454
454
  configurable: !1,
455
455
  enumerable: !1,
456
456
  writable: !0,
457
457
  value: !1
458
- }), Object.defineProperty(z, "_self", {
458
+ }), Object.defineProperty(P, "_self", {
459
459
  configurable: !1,
460
460
  enumerable: !1,
461
461
  writable: !1,
462
462
  value: D
463
- }), Object.defineProperty(z, "_source", {
463
+ }), Object.defineProperty(P, "_source", {
464
464
  configurable: !1,
465
465
  enumerable: !1,
466
466
  writable: !1,
467
- value: j
468
- }), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
467
+ value: U
468
+ }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
469
469
  };
470
- function fr(i, v, T, D, j) {
470
+ function fr(i, v, T, D, U) {
471
471
  {
472
- var V, M = {}, z = null, ge = null;
473
- T !== void 0 && (_t(T), z = "" + T), ur(v) && (_t(v.key), z = "" + v.key), lr(v) && (ge = v.ref, cr(v, j));
472
+ var V, z = {}, P = null, ge = null;
473
+ T !== void 0 && (_t(T), P = "" + T), ur(v) && (_t(v.key), P = "" + v.key), lr(v) && (ge = v.ref, cr(v, U));
474
474
  for (V in v)
475
- qe.call(v, V) && !sr.hasOwnProperty(V) && (M[V] = v[V]);
475
+ qe.call(v, V) && !sr.hasOwnProperty(V) && (z[V] = v[V]);
476
476
  if (i && i.defaultProps) {
477
- var ne = i.defaultProps;
478
- for (V in ne)
479
- M[V] === void 0 && (M[V] = ne[V]);
477
+ var ae = i.defaultProps;
478
+ for (V in ae)
479
+ z[V] === void 0 && (z[V] = ae[V]);
480
480
  }
481
- if (z || ge) {
482
- var ae = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
483
- z && dr(M, ae), ge && pr(M, ae);
481
+ if (P || ge) {
482
+ var ie = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
483
+ P && dr(z, ie), ge && pr(z, ie);
484
484
  }
485
- return gr(i, z, ge, j, D, Le.current, M);
485
+ return gr(i, P, ge, U, D, Le.current, z);
486
486
  }
487
487
  }
488
488
  var lt = A.ReactCurrentOwner, Tt = A.ReactDebugCurrentFrame;
489
- function Oe(i) {
489
+ function xe(i) {
490
490
  if (i) {
491
491
  var v = i._owner, T = Ge(i.type, i._source, v ? v.type : null);
492
492
  Tt.setExtraStackFrame(T);
@@ -501,7 +501,7 @@ function Vr() {
501
501
  function Rt() {
502
502
  {
503
503
  if (lt.current) {
504
- var i = R(lt.current.type);
504
+ var i = O(lt.current.type);
505
505
  if (i)
506
506
  return `
507
507
 
@@ -544,7 +544,7 @@ Check the top-level render call using <` + T + ">.");
544
544
  return;
545
545
  Ot[T] = !0;
546
546
  var D = "";
547
- i && i._owner && i._owner !== lt.current && (D = " It was passed a child from " + R(i._owner.type) + "."), Oe(i), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, D), Oe(null);
547
+ i && i._owner && i._owner !== lt.current && (D = " It was passed a child from " + O(i._owner.type) + "."), xe(i), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, D), xe(null);
548
548
  }
549
549
  }
550
550
  function Ct(i, v) {
@@ -559,10 +559,10 @@ Check the top-level render call using <` + T + ">.");
559
559
  else if (ct(i))
560
560
  i._store && (i._store.validated = !0);
561
561
  else if (i) {
562
- var j = E(i);
563
- if (typeof j == "function" && j !== i.entries)
564
- for (var V = j.call(i), M; !(M = V.next()).done; )
565
- ct(M.value) && xt(M.value, v);
562
+ var U = _(i);
563
+ if (typeof U == "function" && U !== i.entries)
564
+ for (var V = U.call(i), z; !(z = V.next()).done; )
565
+ ct(z.value) && xt(z.value, v);
566
566
  }
567
567
  }
568
568
  }
@@ -581,12 +581,12 @@ Check the top-level render call using <` + T + ">.");
581
581
  else
582
582
  return;
583
583
  if (T) {
584
- var D = R(v);
584
+ var D = O(v);
585
585
  nr(T, i.props, "prop", D, i);
586
586
  } else if (v.PropTypes !== void 0 && !ut) {
587
587
  ut = !0;
588
- var j = R(v);
589
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
588
+ var U = O(v);
589
+ k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
590
590
  }
591
591
  typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
592
592
  }
@@ -596,41 +596,41 @@ Check the top-level render call using <` + T + ">.");
596
596
  for (var v = Object.keys(i.props), T = 0; T < v.length; T++) {
597
597
  var D = v[T];
598
598
  if (D !== "children" && D !== "key") {
599
- Oe(i), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), Oe(null);
599
+ xe(i), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), xe(null);
600
600
  break;
601
601
  }
602
602
  }
603
- i.ref !== null && (Oe(i), k("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
603
+ i.ref !== null && (xe(i), k("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
604
604
  }
605
605
  }
606
- function It(i, v, T, D, j, V) {
606
+ function It(i, v, T, D, U, V) {
607
607
  {
608
- var M = F(i);
609
- if (!M) {
610
- var z = "";
611
- (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
612
- var ge = hr(j);
613
- ge ? z += ge : z += Rt();
614
- var ne;
615
- i === null ? ne = "null" : ot(i) ? ne = "array" : i !== void 0 && i.$$typeof === t ? (ne = "<" + (R(i.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof i, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, z);
608
+ var z = F(i);
609
+ if (!z) {
610
+ var P = "";
611
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
612
+ var ge = hr(U);
613
+ ge ? P += ge : P += Rt();
614
+ var ae;
615
+ i === null ? ae = "null" : ot(i) ? ae = "array" : i !== void 0 && i.$$typeof === t ? (ae = "<" + (O(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof i, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, P);
616
616
  }
617
- var ae = fr(i, v, T, j, V);
618
- if (ae == null)
619
- return ae;
620
- if (M) {
617
+ var ie = fr(i, v, T, U, V);
618
+ if (ie == null)
619
+ return ie;
620
+ if (z) {
621
621
  var me = v.children;
622
622
  if (me !== void 0)
623
623
  if (D)
624
624
  if (ot(me)) {
625
- for (var xe = 0; xe < me.length; xe++)
626
- Ct(me[xe], i);
625
+ for (var Ce = 0; Ce < me.length; Ce++)
626
+ Ct(me[Ce], i);
627
627
  Object.freeze && Object.freeze(me);
628
628
  } else
629
629
  k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
630
630
  else
631
631
  Ct(me, i);
632
632
  }
633
- return i === n ? yr(ae) : br(ae), ae;
633
+ return i === n ? yr(ie) : br(ie), ie;
634
634
  }
635
635
  }
636
636
  function vr(i, v, T) {
@@ -646,7 +646,7 @@ Check the top-level render call using <` + T + ">.");
646
646
  (function(e) {
647
647
  process.env.NODE_ENV === "production" ? e.exports = Yr() : e.exports = Vr();
648
648
  })(Hr);
649
- const he = ze.Fragment, a = ze.jsx, C = ze.jsxs;
649
+ const fe = ze.Fragment, a = ze.jsx, C = ze.jsxs;
650
650
  function Wr(e) {
651
651
  e = e || {};
652
652
  const t = Object.keys(e).sort(), r = [];
@@ -829,59 +829,62 @@ var ft = {}, en = {
829
829
  (function(r, n) {
830
830
  e.exports = n();
831
831
  })(qr, function() {
832
- var r = 1e3, n = 6e4, s = 36e5, o = "millisecond", l = "second", p = "minute", d = "hour", f = "day", b = "week", u = "month", c = "quarter", g = "year", y = "date", h = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, $ = function(R, _, S) {
833
- var O = String(R);
834
- return !O || O.length >= _ ? R : "" + Array(_ + 1 - O.length).join(S) + R;
835
- }, B = { s: $, z: function(R) {
836
- var _ = -R.utcOffset(), S = Math.abs(_), O = Math.floor(S / 60), w = S % 60;
837
- return (_ <= 0 ? "+" : "-") + $(O, 2, "0") + ":" + $(w, 2, "0");
838
- }, m: function R(_, S) {
839
- if (_.date() < S.date())
840
- return -R(S, _);
841
- var O = 12 * (S.year() - _.year()) + (S.month() - _.month()), w = _.clone().add(O, u), x = S - w < 0, I = _.clone().add(O + (x ? -1 : 1), u);
842
- return +(-(O + (S - w) / (x ? w - I : I - w)) || 0);
843
- }, a: function(R) {
844
- return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
845
- }, p: function(R) {
846
- return { M: u, y: g, w: b, d: f, D: y, h: d, m: p, s: l, ms: o, Q: c }[R] || String(R || "").toLowerCase().replace(/s$/, "");
847
- }, u: function(R) {
848
- return R === void 0;
849
- } }, ie = "en", q = {};
850
- q[ie] = k;
851
- var W = function(R) {
852
- return R instanceof H;
853
- }, X = function R(_, S, O) {
832
+ var r = 1e3, n = 6e4, s = 36e5, o = "millisecond", l = "second", p = "minute", d = "hour", f = "day", b = "week", u = "month", c = "quarter", g = "year", y = "date", h = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
833
+ var E = ["th", "st", "nd", "rd"], S = O % 100;
834
+ return "[" + O + (E[(S - 20) % 10] || E[S] || E[0]) + "]";
835
+ } }, N = function(O, E, S) {
836
+ var R = String(O);
837
+ return !R || R.length >= E ? O : "" + Array(E + 1 - R.length).join(S) + O;
838
+ }, M = { s: N, z: function(O) {
839
+ var E = -O.utcOffset(), S = Math.abs(E), R = Math.floor(S / 60), w = S % 60;
840
+ return (E <= 0 ? "+" : "-") + N(R, 2, "0") + ":" + N(w, 2, "0");
841
+ }, m: function O(E, S) {
842
+ if (E.date() < S.date())
843
+ return -O(S, E);
844
+ var R = 12 * (S.year() - E.year()) + (S.month() - E.month()), w = E.clone().add(R, u), x = S - w < 0, I = E.clone().add(R + (x ? -1 : 1), u);
845
+ return +(-(R + (S - w) / (x ? w - I : I - w)) || 0);
846
+ }, a: function(O) {
847
+ return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
848
+ }, p: function(O) {
849
+ return { M: u, y: g, w: b, d: f, D: y, h: d, m: p, s: l, ms: o, Q: c }[O] || String(O || "").toLowerCase().replace(/s$/, "");
850
+ }, u: function(O) {
851
+ return O === void 0;
852
+ } }, oe = "en", q = {};
853
+ q[oe] = k;
854
+ var W = function(O) {
855
+ return O instanceof H;
856
+ }, X = function O(E, S, R) {
854
857
  var w;
855
- if (!_)
856
- return ie;
857
- if (typeof _ == "string") {
858
- var x = _.toLowerCase();
858
+ if (!E)
859
+ return oe;
860
+ if (typeof E == "string") {
861
+ var x = E.toLowerCase();
859
862
  q[x] && (w = x), S && (q[x] = S, w = x);
860
- var I = _.split("-");
863
+ var I = E.split("-");
861
864
  if (!w && I.length > 1)
862
- return R(I[0]);
865
+ return O(I[0]);
863
866
  } else {
864
- var N = _.name;
865
- q[N] = _, w = N;
866
- }
867
- return !O && w && (ie = w), w || !O && ie;
868
- }, L = function(R, _) {
869
- if (W(R))
870
- return R.clone();
871
- var S = typeof _ == "object" ? _ : {};
872
- return S.date = R, S.args = arguments, new H(S);
873
- }, F = B;
874
- F.l = X, F.i = W, F.w = function(R, _) {
875
- return L(R, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
867
+ var $ = E.name;
868
+ q[$] = E, w = $;
869
+ }
870
+ return !R && w && (oe = w), w || !R && oe;
871
+ }, L = function(O, E) {
872
+ if (W(O))
873
+ return O.clone();
874
+ var S = typeof E == "object" ? E : {};
875
+ return S.date = O, S.args = arguments, new H(S);
876
+ }, F = M;
877
+ F.l = X, F.i = W, F.w = function(O, E) {
878
+ return L(O, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
876
879
  };
877
880
  var H = function() {
878
- function R(S) {
881
+ function O(S) {
879
882
  this.$L = X(S.locale, null, !0), this.parse(S);
880
883
  }
881
- var _ = R.prototype;
882
- return _.parse = function(S) {
883
- this.$d = function(O) {
884
- var w = O.date, x = O.utc;
884
+ var E = O.prototype;
885
+ return E.parse = function(S) {
886
+ this.$d = function(R) {
887
+ var w = R.date, x = R.utc;
885
888
  if (w === null)
886
889
  return /* @__PURE__ */ new Date(NaN);
887
890
  if (F.u(w))
@@ -889,144 +892,226 @@ var ft = {}, en = {
889
892
  if (w instanceof Date)
890
893
  return new Date(w);
891
894
  if (typeof w == "string" && !/Z$/i.test(w)) {
892
- var I = w.match(E);
895
+ var I = w.match(_);
893
896
  if (I) {
894
- var N = I[2] - 1 || 0, U = (I[7] || "0").substring(0, 3);
895
- return x ? new Date(Date.UTC(I[1], N, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, U)) : new Date(I[1], N, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, U);
897
+ var $ = I[2] - 1 || 0, j = (I[7] || "0").substring(0, 3);
898
+ return x ? new Date(Date.UTC(I[1], $, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, j)) : new Date(I[1], $, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, j);
896
899
  }
897
900
  }
898
901
  return new Date(w);
899
902
  }(S), this.$x = S.x || {}, this.init();
900
- }, _.init = function() {
903
+ }, E.init = function() {
901
904
  var S = this.$d;
902
905
  this.$y = S.getFullYear(), this.$M = S.getMonth(), this.$D = S.getDate(), this.$W = S.getDay(), this.$H = S.getHours(), this.$m = S.getMinutes(), this.$s = S.getSeconds(), this.$ms = S.getMilliseconds();
903
- }, _.$utils = function() {
906
+ }, E.$utils = function() {
904
907
  return F;
905
- }, _.isValid = function() {
908
+ }, E.isValid = function() {
906
909
  return this.$d.toString() !== h;
907
- }, _.isSame = function(S, O) {
910
+ }, E.isSame = function(S, R) {
908
911
  var w = L(S);
909
- return this.startOf(O) <= w && w <= this.endOf(O);
910
- }, _.isAfter = function(S, O) {
911
- return L(S) < this.startOf(O);
912
- }, _.isBefore = function(S, O) {
913
- return this.endOf(O) < L(S);
914
- }, _.$g = function(S, O, w) {
915
- return F.u(S) ? this[O] : this.set(w, S);
916
- }, _.unix = function() {
912
+ return this.startOf(R) <= w && w <= this.endOf(R);
913
+ }, E.isAfter = function(S, R) {
914
+ return L(S) < this.startOf(R);
915
+ }, E.isBefore = function(S, R) {
916
+ return this.endOf(R) < L(S);
917
+ }, E.$g = function(S, R, w) {
918
+ return F.u(S) ? this[R] : this.set(w, S);
919
+ }, E.unix = function() {
917
920
  return Math.floor(this.valueOf() / 1e3);
918
- }, _.valueOf = function() {
921
+ }, E.valueOf = function() {
919
922
  return this.$d.getTime();
920
- }, _.startOf = function(S, O) {
921
- var w = this, x = !!F.u(O) || O, I = F.p(S), N = function(fe, re) {
922
- var ue = F.w(w.$u ? Date.UTC(w.$y, re, fe) : new Date(w.$y, re, fe), w);
923
+ }, E.startOf = function(S, R) {
924
+ var w = this, x = !!F.u(R) || R, I = F.p(S), $ = function(pe, ne) {
925
+ var ue = F.w(w.$u ? Date.UTC(w.$y, ne, pe) : new Date(w.$y, ne, pe), w);
923
926
  return x ? ue : ue.endOf(f);
924
- }, U = function(fe, re) {
925
- return F.w(w.toDate()[fe].apply(w.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), w);
926
- }, P = this.$W, K = this.$M, oe = this.$D, de = "set" + (this.$u ? "UTC" : "");
927
+ }, j = function(pe, ne) {
928
+ return F.w(w.toDate()[pe].apply(w.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), w);
929
+ }, B = this.$W, K = this.$M, J = this.$D, he = "set" + (this.$u ? "UTC" : "");
927
930
  switch (I) {
928
931
  case g:
929
- return x ? N(1, 0) : N(31, 11);
932
+ return x ? $(1, 0) : $(31, 11);
930
933
  case u:
931
- return x ? N(1, K) : N(0, K + 1);
934
+ return x ? $(1, K) : $(0, K + 1);
932
935
  case b:
933
- var pe = this.$locale().weekStart || 0, ye = (P < pe ? P + 7 : P) - pe;
934
- return N(x ? oe - ye : oe + (6 - ye), K);
936
+ var de = this.$locale().weekStart || 0, ye = (B < de ? B + 7 : B) - de;
937
+ return $(x ? J - ye : J + (6 - ye), K);
935
938
  case f:
936
939
  case y:
937
- return U(de + "Hours", 0);
940
+ return j(he + "Hours", 0);
938
941
  case d:
939
- return U(de + "Minutes", 1);
942
+ return j(he + "Minutes", 1);
940
943
  case p:
941
- return U(de + "Seconds", 2);
944
+ return j(he + "Seconds", 2);
942
945
  case l:
943
- return U(de + "Milliseconds", 3);
946
+ return j(he + "Milliseconds", 3);
944
947
  default:
945
948
  return this.clone();
946
949
  }
947
- }, _.endOf = function(S) {
950
+ }, E.endOf = function(S) {
948
951
  return this.startOf(S, !1);
949
- }, _.$set = function(S, O) {
950
- var w, x = F.p(S), I = "set" + (this.$u ? "UTC" : ""), N = (w = {}, w[f] = I + "Date", w[y] = I + "Date", w[u] = I + "Month", w[g] = I + "FullYear", w[d] = I + "Hours", w[p] = I + "Minutes", w[l] = I + "Seconds", w[o] = I + "Milliseconds", w)[x], U = x === f ? this.$D + (O - this.$W) : O;
952
+ }, E.$set = function(S, R) {
953
+ var w, x = F.p(S), I = "set" + (this.$u ? "UTC" : ""), $ = (w = {}, w[f] = I + "Date", w[y] = I + "Date", w[u] = I + "Month", w[g] = I + "FullYear", w[d] = I + "Hours", w[p] = I + "Minutes", w[l] = I + "Seconds", w[o] = I + "Milliseconds", w)[x], j = x === f ? this.$D + (R - this.$W) : R;
951
954
  if (x === u || x === g) {
952
- var P = this.clone().set(y, 1);
953
- P.$d[N](U), P.init(), this.$d = P.set(y, Math.min(this.$D, P.daysInMonth())).$d;
955
+ var B = this.clone().set(y, 1);
956
+ B.$d[$](j), B.init(), this.$d = B.set(y, Math.min(this.$D, B.daysInMonth())).$d;
954
957
  } else
955
- N && this.$d[N](U);
958
+ $ && this.$d[$](j);
956
959
  return this.init(), this;
957
- }, _.set = function(S, O) {
958
- return this.clone().$set(S, O);
959
- }, _.get = function(S) {
960
+ }, E.set = function(S, R) {
961
+ return this.clone().$set(S, R);
962
+ }, E.get = function(S) {
960
963
  return this[F.p(S)]();
961
- }, _.add = function(S, O) {
964
+ }, E.add = function(S, R) {
962
965
  var w, x = this;
963
966
  S = Number(S);
964
- var I = F.p(O), N = function(K) {
965
- var oe = L(x);
966
- return F.w(oe.date(oe.date() + Math.round(K * S)), x);
967
+ var I = F.p(R), $ = function(K) {
968
+ var J = L(x);
969
+ return F.w(J.date(J.date() + Math.round(K * S)), x);
967
970
  };
968
971
  if (I === u)
969
972
  return this.set(u, this.$M + S);
970
973
  if (I === g)
971
974
  return this.set(g, this.$y + S);
972
975
  if (I === f)
973
- return N(1);
976
+ return $(1);
974
977
  if (I === b)
975
- return N(7);
976
- var U = (w = {}, w[p] = n, w[d] = s, w[l] = r, w)[I] || 1, P = this.$d.getTime() + S * U;
977
- return F.w(P, this);
978
- }, _.subtract = function(S, O) {
979
- return this.add(-1 * S, O);
980
- }, _.format = function(S) {
981
- var O = this, w = this.$locale();
978
+ return $(7);
979
+ var j = (w = {}, w[p] = n, w[d] = s, w[l] = r, w)[I] || 1, B = this.$d.getTime() + S * j;
980
+ return F.w(B, this);
981
+ }, E.subtract = function(S, R) {
982
+ return this.add(-1 * S, R);
983
+ }, E.format = function(S) {
984
+ var R = this, w = this.$locale();
982
985
  if (!this.isValid())
983
986
  return w.invalidDate || h;
984
- var x = S || "YYYY-MM-DDTHH:mm:ssZ", I = F.z(this), N = this.$H, U = this.$m, P = this.$M, K = w.weekdays, oe = w.months, de = function(re, ue, De, ke) {
985
- return re && (re[ue] || re(O, x)) || De[ue].slice(0, ke);
986
- }, pe = function(re) {
987
- return F.s(N % 12 || 12, re, "0");
988
- }, ye = w.meridiem || function(re, ue, De) {
989
- var ke = re < 12 ? "AM" : "PM";
990
- return De ? ke.toLowerCase() : ke;
991
- }, fe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: P + 1, MM: F.s(P + 1, 2, "0"), MMM: de(w.monthsShort, P, oe, 3), MMMM: de(oe, P), D: this.$D, DD: F.s(this.$D, 2, "0"), d: String(this.$W), dd: de(w.weekdaysMin, this.$W, K, 2), ddd: de(w.weekdaysShort, this.$W, K, 3), dddd: K[this.$W], H: String(N), HH: F.s(N, 2, "0"), h: pe(1), hh: pe(2), a: ye(N, U, !0), A: ye(N, U, !1), m: String(U), mm: F.s(U, 2, "0"), s: String(this.$s), ss: F.s(this.$s, 2, "0"), SSS: F.s(this.$ms, 3, "0"), Z: I };
992
- return x.replace(A, function(re, ue) {
993
- return ue || fe[re] || I.replace(":", "");
987
+ var x = S || "YYYY-MM-DDTHH:mm:ssZ", I = F.z(this), $ = this.$H, j = this.$m, B = this.$M, K = w.weekdays, J = w.months, he = w.meridiem, de = function(ne, ue, ke, Te) {
988
+ return ne && (ne[ue] || ne(R, x)) || ke[ue].slice(0, Te);
989
+ }, ye = function(ne) {
990
+ return F.s($ % 12 || 12, ne, "0");
991
+ }, pe = he || function(ne, ue, ke) {
992
+ var Te = ne < 12 ? "AM" : "PM";
993
+ return ke ? Te.toLowerCase() : Te;
994
+ };
995
+ return x.replace(A, function(ne, ue) {
996
+ return ue || function(ke) {
997
+ switch (ke) {
998
+ case "YY":
999
+ return String(R.$y).slice(-2);
1000
+ case "YYYY":
1001
+ return F.s(R.$y, 4, "0");
1002
+ case "M":
1003
+ return B + 1;
1004
+ case "MM":
1005
+ return F.s(B + 1, 2, "0");
1006
+ case "MMM":
1007
+ return de(w.monthsShort, B, J, 3);
1008
+ case "MMMM":
1009
+ return de(J, B);
1010
+ case "D":
1011
+ return R.$D;
1012
+ case "DD":
1013
+ return F.s(R.$D, 2, "0");
1014
+ case "d":
1015
+ return String(R.$W);
1016
+ case "dd":
1017
+ return de(w.weekdaysMin, R.$W, K, 2);
1018
+ case "ddd":
1019
+ return de(w.weekdaysShort, R.$W, K, 3);
1020
+ case "dddd":
1021
+ return K[R.$W];
1022
+ case "H":
1023
+ return String($);
1024
+ case "HH":
1025
+ return F.s($, 2, "0");
1026
+ case "h":
1027
+ return ye(1);
1028
+ case "hh":
1029
+ return ye(2);
1030
+ case "a":
1031
+ return pe($, j, !0);
1032
+ case "A":
1033
+ return pe($, j, !1);
1034
+ case "m":
1035
+ return String(j);
1036
+ case "mm":
1037
+ return F.s(j, 2, "0");
1038
+ case "s":
1039
+ return String(R.$s);
1040
+ case "ss":
1041
+ return F.s(R.$s, 2, "0");
1042
+ case "SSS":
1043
+ return F.s(R.$ms, 3, "0");
1044
+ case "Z":
1045
+ return I;
1046
+ }
1047
+ return null;
1048
+ }(ne) || I.replace(":", "");
994
1049
  });
995
- }, _.utcOffset = function() {
1050
+ }, E.utcOffset = function() {
996
1051
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
997
- }, _.diff = function(S, O, w) {
998
- var x, I = F.p(O), N = L(S), U = (N.utcOffset() - this.utcOffset()) * n, P = this - N, K = F.m(this, N);
999
- return K = (x = {}, x[g] = K / 12, x[u] = K, x[c] = K / 3, x[b] = (P - U) / 6048e5, x[f] = (P - U) / 864e5, x[d] = P / s, x[p] = P / n, x[l] = P / r, x)[I] || P, w ? K : F.a(K);
1000
- }, _.daysInMonth = function() {
1052
+ }, E.diff = function(S, R, w) {
1053
+ var x, I = this, $ = F.p(R), j = L(S), B = (j.utcOffset() - this.utcOffset()) * n, K = this - j, J = function() {
1054
+ return F.m(I, j);
1055
+ };
1056
+ switch ($) {
1057
+ case g:
1058
+ x = J() / 12;
1059
+ break;
1060
+ case u:
1061
+ x = J();
1062
+ break;
1063
+ case c:
1064
+ x = J() / 3;
1065
+ break;
1066
+ case b:
1067
+ x = (K - B) / 6048e5;
1068
+ break;
1069
+ case f:
1070
+ x = (K - B) / 864e5;
1071
+ break;
1072
+ case d:
1073
+ x = K / s;
1074
+ break;
1075
+ case p:
1076
+ x = K / n;
1077
+ break;
1078
+ case l:
1079
+ x = K / r;
1080
+ break;
1081
+ default:
1082
+ x = K;
1083
+ }
1084
+ return w ? x : F.a(x);
1085
+ }, E.daysInMonth = function() {
1001
1086
  return this.endOf(u).$D;
1002
- }, _.$locale = function() {
1087
+ }, E.$locale = function() {
1003
1088
  return q[this.$L];
1004
- }, _.locale = function(S, O) {
1089
+ }, E.locale = function(S, R) {
1005
1090
  if (!S)
1006
1091
  return this.$L;
1007
- var w = this.clone(), x = X(S, O, !0);
1092
+ var w = this.clone(), x = X(S, R, !0);
1008
1093
  return x && (w.$L = x), w;
1009
- }, _.clone = function() {
1094
+ }, E.clone = function() {
1010
1095
  return F.w(this.$d, this);
1011
- }, _.toDate = function() {
1096
+ }, E.toDate = function() {
1012
1097
  return new Date(this.valueOf());
1013
- }, _.toJSON = function() {
1098
+ }, E.toJSON = function() {
1014
1099
  return this.isValid() ? this.toISOString() : null;
1015
- }, _.toISOString = function() {
1100
+ }, E.toISOString = function() {
1016
1101
  return this.$d.toISOString();
1017
- }, _.toString = function() {
1102
+ }, E.toString = function() {
1018
1103
  return this.$d.toUTCString();
1019
- }, R;
1020
- }(), te = H.prototype;
1021
- return L.prototype = te, [["$ms", o], ["$s", l], ["$m", p], ["$H", d], ["$W", f], ["$M", u], ["$y", g], ["$D", y]].forEach(function(R) {
1022
- te[R[1]] = function(_) {
1023
- return this.$g(_, R[0], R[1]);
1104
+ }, O;
1105
+ }(), re = H.prototype;
1106
+ return L.prototype = re, [["$ms", o], ["$s", l], ["$m", p], ["$H", d], ["$W", f], ["$M", u], ["$y", g], ["$D", y]].forEach(function(O) {
1107
+ re[O[1]] = function(E) {
1108
+ return this.$g(E, O[0], O[1]);
1024
1109
  };
1025
- }), L.extend = function(R, _) {
1026
- return R.$i || (R(_, H, L), R.$i = !0), L;
1027
- }, L.locale = X, L.isDayjs = W, L.unix = function(R) {
1028
- return L(1e3 * R);
1029
- }, L.en = q[ie], L.Ls = q, L.p = {}, L;
1110
+ }), L.extend = function(O, E) {
1111
+ return O.$i || (O(E, H, L), O.$i = !0), L;
1112
+ }, L.locale = X, L.isDayjs = W, L.unix = function(O) {
1113
+ return L(1e3 * O);
1114
+ }, L.en = q[oe], L.Ls = q, L.p = {}, L;
1030
1115
  });
1031
1116
  })(en);
1032
1117
  const Nt = ft, tn = {
@@ -1094,7 +1179,7 @@ function rn({
1094
1179
  field: l
1095
1180
  }) => /* @__PURE__ */ a(ce, { mb: t.spacing, size: t.size, required: !0, label: "Name", placeholder: "A unique name", ...l }) }),
1096
1181
  /* @__PURE__ */ a(Qe, { label: "Connection Info", labelPosition: "center" }),
1097
- /* @__PURE__ */ C(J, { grow: !0, children: [
1182
+ /* @__PURE__ */ C(ee, { grow: !0, children: [
1098
1183
  /* @__PURE__ */ a(G, { name: "config.host", control: n, render: ({
1099
1184
  field: l
1100
1185
  }) => /* @__PURE__ */ a(ce, { mb: t.spacing, size: t.size, required: !0, label: "Host", sx: {
@@ -1102,9 +1187,12 @@ function rn({
1102
1187
  }, ...l }) }),
1103
1188
  /* @__PURE__ */ a(G, { name: "config.port", control: n, render: ({
1104
1189
  field: l
1105
- }) => /* @__PURE__ */ a(Ar, { mb: t.spacing, size: t.size, required: !0, label: "Port", hideControls: !0, sx: {
1106
- width: "8em"
1107
- }, ...l }) })
1190
+ }) => (
1191
+ // @ts-expect-error type of onChange
1192
+ /* @__PURE__ */ a(Ar, { mb: t.spacing, size: t.size, required: !0, label: "Port", hideControls: !0, sx: {
1193
+ width: "8em"
1194
+ }, ...l })
1195
+ ) })
1108
1196
  ] }),
1109
1197
  /* @__PURE__ */ a(G, { name: "config.username", control: n, render: ({
1110
1198
  field: l
@@ -1115,7 +1203,7 @@ function rn({
1115
1203
  /* @__PURE__ */ a(G, { name: "config.database", control: n, render: ({
1116
1204
  field: l
1117
1205
  }) => /* @__PURE__ */ a(ce, { mb: t.spacing, size: t.size, required: !0, label: "Database", ...l }) }),
1118
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1206
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1119
1207
  ] }) });
1120
1208
  }
1121
1209
  const nn = ({
@@ -1149,15 +1237,15 @@ const nn = ({
1149
1237
  };
1150
1238
  return mt(() => {
1151
1239
  u(e);
1152
- }, [e]), /* @__PURE__ */ C(he, { children: [
1240
+ }, [e]), /* @__PURE__ */ C(fe, { children: [
1153
1241
  /* @__PURE__ */ a(Y, { variant: "filled", size: o.button.size, onClick: d, sx: {
1154
1242
  flexGrow: 1
1155
1243
  }, children: r }),
1156
1244
  /* @__PURE__ */ a(_e, { size: 800, title: n, opened: p, onClose: f, closeOnClickOutside: !1, withCloseButton: !1, children: p && /* @__PURE__ */ C(Me, { children: [
1157
1245
  /* @__PURE__ */ a(nn, { value: b, onChange: u }),
1158
- /* @__PURE__ */ C(J, { position: "apart", children: [
1246
+ /* @__PURE__ */ C(ee, { position: "apart", children: [
1159
1247
  /* @__PURE__ */ a(Y, { onClick: y, color: "red", leftIcon: /* @__PURE__ */ a(Ir, { size: 20 }), children: "Rest" }),
1160
- /* @__PURE__ */ C(J, { position: "right", children: [
1248
+ /* @__PURE__ */ C(ee, { position: "right", children: [
1161
1249
  /* @__PURE__ */ a(Y, { onClick: g, variant: "subtle", children: "Cancel" }),
1162
1250
  /* @__PURE__ */ a(Y, { onClick: c, children: "OK" })
1163
1251
  ] })
@@ -1201,7 +1289,7 @@ function an({
1201
1289
  }) => /* @__PURE__ */ a(ce, { mb: t.spacing, size: t.size, required: !0, label: "Base URL", sx: {
1202
1290
  flexGrow: 1
1203
1291
  }, ...o }) }),
1204
- /* @__PURE__ */ C(J, { grow: !0, children: [
1292
+ /* @__PURE__ */ C(ee, { grow: !0, children: [
1205
1293
  /* @__PURE__ */ a(G, { name: "config.processing.pre", control: r, render: ({
1206
1294
  field: o
1207
1295
  }) => /* @__PURE__ */ a(We, { label: "Pre Processing", modalTitle: "This function will run before sending the request (for scenarios like encryption)", defaultValue: Ye.pre, ...o, styles: t }) }),
@@ -1209,7 +1297,7 @@ function an({
1209
1297
  field: o
1210
1298
  }) => /* @__PURE__ */ a(We, { label: "Post Processing", modalTitle: "This function will run after sending the request (for scenarios like decryption)", defaultValue: Ye.post, ...o, styles: t }) })
1211
1299
  ] }),
1212
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1300
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1213
1301
  ] }) });
1214
1302
  }
1215
1303
  function on({
@@ -1241,14 +1329,14 @@ function sn({
1241
1329
  type: p,
1242
1330
  key: d,
1243
1331
  config: f
1244
- }), await se.datasource.create(p, d, f), ee({
1332
+ }), await se.datasource.create(p, d, f), te({
1245
1333
  id: "for-creating",
1246
1334
  title: "Successful",
1247
1335
  message: "Data source is added",
1248
1336
  color: "green"
1249
1337
  }), e();
1250
1338
  } catch (b) {
1251
- ee({
1339
+ te({
1252
1340
  id: "for-creating",
1253
1341
  title: "Failed",
1254
1342
  message: b.message,
@@ -1277,7 +1365,7 @@ function ln({
1277
1365
  styles: t = ve
1278
1366
  }) {
1279
1367
  const [r, n] = Z.useState(!1), s = () => n(!0), o = () => n(!1);
1280
- return /* @__PURE__ */ C(he, { children: [
1368
+ return /* @__PURE__ */ C(fe, { children: [
1281
1369
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: r, onClose: () => n(!1), title: "Add a data source", trapFocus: !0, onDragStart: (p) => {
1282
1370
  p.stopPropagation();
1283
1371
  }, children: /* @__PURE__ */ a(sn, { postSubmit: () => {
@@ -1313,7 +1401,7 @@ function dn({
1313
1401
  title: "Pending",
1314
1402
  message: "Deleting data source...",
1315
1403
  loading: !0
1316
- }), await se.datasource.delete(e), ee({
1404
+ }), await se.datasource.delete(e), te({
1317
1405
  id: "for-deleting",
1318
1406
  title: "Successful",
1319
1407
  message: `Data source [${t}] is deleted`,
@@ -1321,7 +1409,7 @@ function dn({
1321
1409
  }), n());
1322
1410
  }, p = () => o.openConfirmModal({
1323
1411
  title: "Delete this data source?",
1324
- children: /* @__PURE__ */ a(Te, { size: s.size, children: "This action won't affect your database." }),
1412
+ children: /* @__PURE__ */ a(Re, { size: s.size, children: "This action won't affect your database." }),
1325
1413
  labels: {
1326
1414
  confirm: "Confirm",
1327
1415
  cancel: "Cancel"
@@ -1365,7 +1453,7 @@ function pn({
1365
1453
  }) => /* @__PURE__ */ a(ce, { mb: n.spacing, size: n.size, label: "Base URL", sx: {
1366
1454
  flexGrow: 1
1367
1455
  }, ...l }) }),
1368
- /* @__PURE__ */ C(J, { grow: !0, children: [
1456
+ /* @__PURE__ */ C(ee, { grow: !0, children: [
1369
1457
  /* @__PURE__ */ a(G, { name: "config.processing.pre", control: s, render: ({
1370
1458
  field: l
1371
1459
  }) => /* @__PURE__ */ a(We, { label: "Pre Processing", modalTitle: "This function will run before sending the request (for scenarios like encryption)", defaultValue: $t.pre, ...l, styles: n }) }),
@@ -1373,7 +1461,7 @@ function pn({
1373
1461
  field: l
1374
1462
  }) => /* @__PURE__ */ a(We, { label: "Post Processing", modalTitle: "This function will run after sending the request (for scenarios like decryption)", defaultValue: $t.post, ...l, styles: n }) })
1375
1463
  ] }),
1376
- /* @__PURE__ */ a(J, { position: "right", mt: n.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: n.button.size, children: "Save" }) })
1464
+ /* @__PURE__ */ a(ee, { position: "right", mt: n.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: n.button.size, children: "Save" }) })
1377
1465
  ] }) });
1378
1466
  }
1379
1467
  function gn({
@@ -1393,14 +1481,14 @@ function gn({
1393
1481
  try {
1394
1482
  console.log({
1395
1483
  config: s
1396
- }), await se.datasource.update(e.id, s), ee({
1484
+ }), await se.datasource.update(e.id, s), te({
1397
1485
  id: "for-updating",
1398
1486
  title: "Successful",
1399
1487
  message: "Data source is updated",
1400
1488
  color: "green"
1401
1489
  }), t();
1402
1490
  } catch (o) {
1403
- ee({
1491
+ te({
1404
1492
  id: "for-updating",
1405
1493
  title: "Failed",
1406
1494
  message: o.message,
@@ -1430,7 +1518,7 @@ function fn({
1430
1518
  focus: !1
1431
1519
  }, label: "Only HTTP datasources can be edited", children: /* @__PURE__ */ a(Y, { size: r.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a(gt, { size: 16 }), sx: {
1432
1520
  transform: "none !important"
1433
- }, children: "Edit" }) }) : /* @__PURE__ */ C(he, { children: [
1521
+ }, children: "Edit" }) }) : /* @__PURE__ */ C(fe, { children: [
1434
1522
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: n, onClose: () => s(!1), title: "Add a data source", trapFocus: !0, onDragStart: (d) => {
1435
1523
  d.stopPropagation();
1436
1524
  }, children: /* @__PURE__ */ a(gn, { dataSource: e, postSubmit: p, styles: r }) }),
@@ -1449,11 +1537,11 @@ const hn = {
1449
1537
  function bn({
1450
1538
  type: e
1451
1539
  }) {
1452
- return /* @__PURE__ */ C(J, { children: [
1540
+ return /* @__PURE__ */ C(ee, { children: [
1453
1541
  /* @__PURE__ */ a(bt, { size: "xs", sx: {
1454
1542
  transform: "none !important"
1455
1543
  }, children: mn[e] }),
1456
- /* @__PURE__ */ a(Te, { sx: {
1544
+ /* @__PURE__ */ a(Re, { sx: {
1457
1545
  cusor: "default",
1458
1546
  userSelect: "none"
1459
1547
  }, children: hn[e] })
@@ -1468,7 +1556,7 @@ function Sa({
1468
1556
  data: r = [],
1469
1557
  loading: n,
1470
1558
  refresh: s
1471
- } = Re(async () => {
1559
+ } = Oe(async () => {
1472
1560
  const {
1473
1561
  data: o
1474
1562
  } = await se.datasource.list();
@@ -1476,8 +1564,8 @@ function Sa({
1476
1564
  }, {
1477
1565
  refreshDeps: []
1478
1566
  });
1479
- return /* @__PURE__ */ C(he, { children: [
1480
- /* @__PURE__ */ a(J, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(ln, { onSuccess: s }) }),
1567
+ return /* @__PURE__ */ C(fe, { children: [
1568
+ /* @__PURE__ */ a(ee, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(ln, { onSuccess: s }) }),
1481
1569
  /* @__PURE__ */ C(le, { mt: e.spacing, sx: {
1482
1570
  position: "relative"
1483
1571
  }, children: [
@@ -1498,7 +1586,7 @@ function Sa({
1498
1586
  return /* @__PURE__ */ C("tr", { children: [
1499
1587
  /* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(bn, { type: d }) }),
1500
1588
  /* @__PURE__ */ a("td", { children: p }),
1501
- /* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(J, { position: "left", children: [
1589
+ /* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(ee, { position: "left", children: [
1502
1590
  /* @__PURE__ */ a(fn, { dataSource: o, onSuccess: s, styles: e }),
1503
1591
  /* @__PURE__ */ a(dn, { isProtected: f, id: l, name: p, onSuccess: s, styles: e })
1504
1592
  ] }) })
@@ -1514,8 +1602,8 @@ const yn = Xe(({
1514
1602
  description: r,
1515
1603
  ...n
1516
1604
  }, s) => /* @__PURE__ */ C(Me, { spacing: 2, ref: s, ...n, children: [
1517
- /* @__PURE__ */ a(Te, { size: "sm", children: e }),
1518
- /* @__PURE__ */ a(Te, { size: "xs", color: "dimmed", className: "role-description", children: r })
1605
+ /* @__PURE__ */ a(Re, { size: "sm", children: e }),
1606
+ /* @__PURE__ */ a(Re, { size: "xs", color: "dimmed", className: "role-description", children: r })
1519
1607
  ] })), yt = Xe(({
1520
1608
  styles: e,
1521
1609
  value: t,
@@ -1524,7 +1612,7 @@ const yn = Xe(({
1524
1612
  const {
1525
1613
  data: s = [],
1526
1614
  loading: o
1527
- } = Re(async () => (await se.role.list()).map((p) => ({
1615
+ } = Oe(async () => (await se.role.list()).map((p) => ({
1528
1616
  label: p.id,
1529
1617
  value: p.id,
1530
1618
  description: p.description,
@@ -1578,14 +1666,14 @@ function vn({
1578
1666
  title: "Pending",
1579
1667
  message: "Adding account...",
1580
1668
  loading: !0
1581
- }), await se.account.create(l, p, d, f), ee({
1669
+ }), await se.account.create(l, p, d, f), te({
1582
1670
  id: "for-creating",
1583
1671
  title: "Successful",
1584
1672
  message: "Account is added",
1585
1673
  color: "green"
1586
1674
  }), e();
1587
1675
  } catch (b) {
1588
- ee({
1676
+ te({
1589
1677
  id: "for-creating",
1590
1678
  title: "Failed",
1591
1679
  message: b.message,
@@ -1605,7 +1693,7 @@ function vn({
1605
1693
  /* @__PURE__ */ a(G, { name: "role_id", control: n, render: ({
1606
1694
  field: l
1607
1695
  }) => /* @__PURE__ */ a(yt, { styles: t, ...l }) }),
1608
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1696
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1609
1697
  ] }) });
1610
1698
  }
1611
1699
  function Sn({
@@ -1614,7 +1702,7 @@ function Sn({
1614
1702
  initialRoleID: r
1615
1703
  }) {
1616
1704
  const [n, s] = Z.useState(!1), o = () => s(!0), l = () => s(!1);
1617
- return /* @__PURE__ */ C(he, { children: [
1705
+ return /* @__PURE__ */ C(fe, { children: [
1618
1706
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: n, onClose: () => s(!1), title: "Add an Account", trapFocus: !0, onDragStart: (d) => {
1619
1707
  d.stopPropagation();
1620
1708
  }, children: /* @__PURE__ */ a(vn, { postSubmit: () => {
@@ -1638,14 +1726,14 @@ function wn({
1638
1726
  loading: !0
1639
1727
  });
1640
1728
  try {
1641
- await se.account.delete(e), ee({
1729
+ await se.account.delete(e), te({
1642
1730
  id: "for-deleting",
1643
1731
  title: "Successful",
1644
1732
  message: `Account [${t}] is deleted`,
1645
1733
  color: "green"
1646
1734
  }), r();
1647
1735
  } catch (p) {
1648
- ee({
1736
+ te({
1649
1737
  id: "for-deleting",
1650
1738
  title: "Failed",
1651
1739
  message: p.message,
@@ -1689,7 +1777,7 @@ function En({
1689
1777
  email: g,
1690
1778
  role_id: y,
1691
1779
  reset_password: h,
1692
- new_password: E
1780
+ new_password: _
1693
1781
  }) => {
1694
1782
  try {
1695
1783
  be({
@@ -1703,15 +1791,15 @@ function En({
1703
1791
  email: g.trim(),
1704
1792
  role_id: y,
1705
1793
  reset_password: h,
1706
- new_password: E.trim()
1707
- }), ee({
1794
+ new_password: _.trim()
1795
+ }), te({
1708
1796
  id: "for-updating",
1709
1797
  title: "Successful",
1710
1798
  message: "Account is updated",
1711
1799
  color: "green"
1712
1800
  }), s();
1713
1801
  } catch (A) {
1714
- ee({
1802
+ te({
1715
1803
  id: "for-updating",
1716
1804
  title: "Failed",
1717
1805
  message: A.message,
@@ -1747,7 +1835,7 @@ function En({
1747
1835
  }) => /* @__PURE__ */ a(Je, { autoComplete: "off", mb: o.spacing, size: o.size, required: !0, description: "Password must be at least 8 characters long", label: "New Password", ...c })
1748
1836
  }
1749
1837
  ),
1750
- /* @__PURE__ */ a(J, { position: "right", mt: o.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: o.button.size, children: "Submit" }) })
1838
+ /* @__PURE__ */ a(ee, { position: "right", mt: o.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: o.button.size, children: "Submit" }) })
1751
1839
  ] }) });
1752
1840
  }
1753
1841
  function _n({
@@ -1758,7 +1846,7 @@ function _n({
1758
1846
  const [n, s] = Z.useState(!1), o = () => s(!0), l = () => s(!1), p = () => {
1759
1847
  t(), l();
1760
1848
  };
1761
- return /* @__PURE__ */ C(he, { children: [
1849
+ return /* @__PURE__ */ C(fe, { children: [
1762
1850
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: n, onClose: () => s(!1), title: `Editing ${e.name}`, trapFocus: !0, onDragStart: (d) => {
1763
1851
  d.stopPropagation();
1764
1852
  }, children: /* @__PURE__ */ a(En, { ...e, postSubmit: p, styles: r }) }),
@@ -1775,7 +1863,7 @@ function wa({
1775
1863
  data: r = [],
1776
1864
  loading: n,
1777
1865
  refresh: s
1778
- } = Re(async () => {
1866
+ } = Oe(async () => {
1779
1867
  const {
1780
1868
  data: d
1781
1869
  } = await se.account.list();
@@ -1785,7 +1873,7 @@ function wa({
1785
1873
  }), {
1786
1874
  data: o = [],
1787
1875
  loading: l
1788
- } = Re(async () => (await se.role.list()).map((f) => ({
1876
+ } = Oe(async () => (await se.role.list()).map((f) => ({
1789
1877
  label: f.id,
1790
1878
  value: f.id,
1791
1879
  description: f.description,
@@ -1793,8 +1881,8 @@ function wa({
1793
1881
  })), {
1794
1882
  refreshDeps: []
1795
1883
  });
1796
- return /* @__PURE__ */ C(he, { children: [
1797
- /* @__PURE__ */ a(J, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Sn, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
1884
+ return /* @__PURE__ */ C(fe, { children: [
1885
+ /* @__PURE__ */ a(ee, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Sn, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
1798
1886
  /* @__PURE__ */ C(le, { mt: e.spacing, sx: {
1799
1887
  position: "relative"
1800
1888
  }, children: [
@@ -1817,7 +1905,7 @@ function wa({
1817
1905
  /* @__PURE__ */ a("td", { width: 200, children: b }),
1818
1906
  /* @__PURE__ */ a("td", { width: 200, children: u }),
1819
1907
  /* @__PURE__ */ a("td", { width: 200, children: c }),
1820
- /* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ C(J, { position: "left", children: [
1908
+ /* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ C(ee, { position: "left", children: [
1821
1909
  /* @__PURE__ */ a(_n, { account: d, onSuccess: s }),
1822
1910
  /* @__PURE__ */ a(wn, { id: f, name: b, onSuccess: s })
1823
1911
  ] }) })
@@ -1852,14 +1940,14 @@ function An({
1852
1940
  loading: !0
1853
1941
  });
1854
1942
  const p = await se.account.login(o.trim(), l.trim());
1855
- window.localStorage.setItem("token", p.token), ee({
1943
+ window.localStorage.setItem("token", p.token), te({
1856
1944
  id: "for-login",
1857
1945
  title: "Successful",
1858
1946
  message: "Logged in",
1859
1947
  color: "green"
1860
1948
  }), e(p);
1861
1949
  } catch (p) {
1862
- ee({
1950
+ te({
1863
1951
  id: "for-login",
1864
1952
  title: "Login Failed",
1865
1953
  message: p.message,
@@ -1873,7 +1961,7 @@ function An({
1873
1961
  /* @__PURE__ */ a(G, { name: "password", control: r, render: ({
1874
1962
  field: o
1875
1963
  }) => /* @__PURE__ */ a(Je, { mb: t.spacing, size: t.size, required: !0, label: "Password", ...o }) }),
1876
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Submit" }) })
1964
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Submit" }) })
1877
1965
  ] }) });
1878
1966
  }
1879
1967
  function Ea({
@@ -1881,7 +1969,7 @@ function Ea({
1881
1969
  config: t,
1882
1970
  onSuccess: r
1883
1971
  }) {
1884
- return je(t), /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(le, { mt: e.spacing, sx: {
1972
+ return je(t), /* @__PURE__ */ a(fe, { children: /* @__PURE__ */ a(le, { mt: e.spacing, sx: {
1885
1973
  position: "relative"
1886
1974
  }, children: /* @__PURE__ */ a(An, { styles: e, postSubmit: r }) }) });
1887
1975
  }
@@ -1921,14 +2009,14 @@ function kn({
1921
2009
  app_id: d,
1922
2010
  app_secret: f
1923
2011
  } = await se.api_key.create(l, p);
1924
- ee({
2012
+ te({
1925
2013
  id: "for-creating",
1926
2014
  title: "Successful",
1927
2015
  message: "API Key is added",
1928
2016
  color: "green"
1929
2017
  }), e(d, f);
1930
2018
  } catch (d) {
1931
- ee({
2019
+ te({
1932
2020
  id: "for-creating",
1933
2021
  title: "Failed",
1934
2022
  message: d.message,
@@ -1942,7 +2030,7 @@ function kn({
1942
2030
  /* @__PURE__ */ a(G, { name: "role_id", control: n, render: ({
1943
2031
  field: l
1944
2032
  }) => /* @__PURE__ */ a(yt, { styles: t, ...l }) }),
1945
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
2033
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
1946
2034
  ] }) });
1947
2035
  }
1948
2036
  function Tn({
@@ -1951,14 +2039,14 @@ function Tn({
1951
2039
  initialRoleID: r
1952
2040
  }) {
1953
2041
  const n = Be(), [s, o] = Z.useState(!1), l = () => o(!0), p = () => o(!1);
1954
- return /* @__PURE__ */ C(he, { children: [
2042
+ return /* @__PURE__ */ C(fe, { children: [
1955
2043
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: s, onClose: () => o(!1), title: "Add an API Key", trapFocus: !0, onDragStart: (f) => {
1956
2044
  f.stopPropagation();
1957
2045
  }, children: /* @__PURE__ */ a(kn, { postSubmit: (f, b) => {
1958
2046
  p(), n.openModal({
1959
2047
  title: "API Key is generated",
1960
2048
  children: /* @__PURE__ */ C(Me, { children: [
1961
- /* @__PURE__ */ a(Te, { color: "dimmed", children: "Make sure you save it - you won't be able to access it again." }),
2049
+ /* @__PURE__ */ a(Re, { color: "dimmed", children: "Make sure you save it - you won't be able to access it again." }),
1962
2050
  /* @__PURE__ */ a(ce, { defaultValue: f, disabled: !0, label: "APP ID", styles: {
1963
2051
  input: {
1964
2052
  cursor: "text !important"
@@ -1996,14 +2084,14 @@ function Rn({
1996
2084
  loading: !0
1997
2085
  });
1998
2086
  try {
1999
- await se.api_key.delete(e), ee({
2087
+ await se.api_key.delete(e), te({
2000
2088
  id: "for-deleting",
2001
2089
  title: "Successful",
2002
2090
  message: `API Key [${t}] is deleted`,
2003
2091
  color: "green"
2004
2092
  }), r();
2005
2093
  } catch (p) {
2006
- ee({
2094
+ te({
2007
2095
  id: "for-deleting",
2008
2096
  title: "Failed",
2009
2097
  message: p.message,
@@ -2032,7 +2120,7 @@ function _a({
2032
2120
  data: r = [],
2033
2121
  loading: n,
2034
2122
  refresh: s
2035
- } = Re(async () => {
2123
+ } = Oe(async () => {
2036
2124
  const {
2037
2125
  data: d
2038
2126
  } = await se.api_key.list();
@@ -2042,7 +2130,7 @@ function _a({
2042
2130
  }), {
2043
2131
  data: o = [],
2044
2132
  loading: l
2045
- } = Re(async () => (await se.role.list()).map((f) => ({
2133
+ } = Oe(async () => (await se.role.list()).map((f) => ({
2046
2134
  label: f.id,
2047
2135
  value: f.id,
2048
2136
  description: f.description,
@@ -2050,8 +2138,8 @@ function _a({
2050
2138
  })), {
2051
2139
  refreshDeps: []
2052
2140
  });
2053
- return /* @__PURE__ */ C(he, { children: [
2054
- /* @__PURE__ */ a(J, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Tn, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
2141
+ return /* @__PURE__ */ C(fe, { children: [
2142
+ /* @__PURE__ */ a(ee, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(Tn, { onSuccess: s, initialRoleID: ((p = o == null ? void 0 : o[0]) == null ? void 0 : p.value) ?? "INACTIVE" }) }),
2055
2143
  /* @__PURE__ */ C(le, { mt: e.spacing, sx: {
2056
2144
  position: "relative"
2057
2145
  }, children: [
@@ -2074,7 +2162,7 @@ function _a({
2074
2162
  /* @__PURE__ */ a("td", { width: 200, children: b }),
2075
2163
  /* @__PURE__ */ a("td", { width: 200, children: u }),
2076
2164
  /* @__PURE__ */ a("td", { width: 200, children: c }),
2077
- /* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(J, { position: "left", children: /* @__PURE__ */ a(Rn, { id: f, name: b, onSuccess: s }) }) })
2165
+ /* @__PURE__ */ a("td", { width: 200, children: /* @__PURE__ */ a(ee, { position: "left", children: /* @__PURE__ */ a(Rn, { id: f, name: b, onSuccess: s }) }) })
2078
2166
  ] }, f);
2079
2167
  }) })
2080
2168
  ] })
@@ -2101,7 +2189,7 @@ const Vt = ({
2101
2189
  },
2102
2190
  readOnly: o || !t
2103
2191
  } });
2104
- }, Ie = {
2192
+ }, De = {
2105
2193
  size: "sm",
2106
2194
  spacing: "md",
2107
2195
  button: {
@@ -2110,7 +2198,7 @@ const Vt = ({
2110
2198
  };
2111
2199
  function On({
2112
2200
  postSubmit: e,
2113
- styles: t = Ie
2201
+ styles: t = De
2114
2202
  }) {
2115
2203
  const {
2116
2204
  control: r,
@@ -2128,14 +2216,14 @@ function On({
2128
2216
  title: "Pending",
2129
2217
  message: "Adding SQL Snippet...",
2130
2218
  loading: !0
2131
- }), await se.sql_snippet.create(o), ee({
2219
+ }), await se.sql_snippet.create(o), te({
2132
2220
  id: "for-creating",
2133
2221
  title: "Successful",
2134
2222
  message: "SQL Snippet is added",
2135
2223
  color: "green"
2136
2224
  }), e();
2137
2225
  } catch (l) {
2138
- ee({
2226
+ te({
2139
2227
  id: "for-creating",
2140
2228
  title: "Failed",
2141
2229
  message: l.message,
@@ -2149,20 +2237,20 @@ function On({
2149
2237
  /* @__PURE__ */ a(G, { name: "content", control: r, render: ({
2150
2238
  field: o
2151
2239
  }) => /* @__PURE__ */ C(Me, { spacing: 4, children: [
2152
- /* @__PURE__ */ a(Te, { size: 14, fw: 500, color: "#212529", sx: {
2240
+ /* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
2153
2241
  cursor: "default"
2154
2242
  }, children: "Content" }),
2155
2243
  /* @__PURE__ */ a(Vt, { height: "600px", ...o })
2156
2244
  ] }) }),
2157
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
2245
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
2158
2246
  ] }) });
2159
2247
  }
2160
2248
  function xn({
2161
2249
  onSuccess: e,
2162
- styles: t = Ie
2250
+ styles: t = De
2163
2251
  }) {
2164
2252
  const [r, n] = Z.useState(!1), s = () => n(!0), o = () => n(!1);
2165
- return /* @__PURE__ */ C(he, { children: [
2253
+ return /* @__PURE__ */ C(fe, { children: [
2166
2254
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: r, onClose: () => n(!1), title: "Add a SQL Snippet", trapFocus: !0, onDragStart: (p) => {
2167
2255
  p.stopPropagation();
2168
2256
  }, size: "80vw", children: /* @__PURE__ */ a(On, { postSubmit: () => {
@@ -2173,7 +2261,7 @@ function xn({
2173
2261
  }
2174
2262
  function Cn({
2175
2263
  postSubmit: e,
2176
- styles: t = Ie,
2264
+ styles: t = De,
2177
2265
  id: r,
2178
2266
  content: n
2179
2267
  }) {
@@ -2193,14 +2281,14 @@ function Cn({
2193
2281
  title: "Pending",
2194
2282
  message: "Updating SQL Snippet...",
2195
2283
  loading: !0
2196
- }), await se.sql_snippet.update(p), ee({
2284
+ }), await se.sql_snippet.update(p), te({
2197
2285
  id: "for-updating",
2198
2286
  title: "Successful",
2199
2287
  message: "SQL Snippet is updated",
2200
2288
  color: "green"
2201
2289
  }), e();
2202
2290
  } catch (d) {
2203
- ee({
2291
+ te({
2204
2292
  id: "for-updating",
2205
2293
  title: "Failed",
2206
2294
  message: d.message,
@@ -2214,21 +2302,21 @@ function Cn({
2214
2302
  /* @__PURE__ */ a(G, { name: "content", control: s, render: ({
2215
2303
  field: p
2216
2304
  }) => /* @__PURE__ */ C(Me, { spacing: 4, children: [
2217
- /* @__PURE__ */ a(Te, { size: 14, fw: 500, color: "#212529", sx: {
2305
+ /* @__PURE__ */ a(Re, { size: 14, fw: 500, color: "#212529", sx: {
2218
2306
  cursor: "default"
2219
2307
  }, children: "Content" }),
2220
2308
  /* @__PURE__ */ a(Vt, { height: "600px", ...p })
2221
2309
  ] }) }),
2222
- /* @__PURE__ */ a(J, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
2310
+ /* @__PURE__ */ a(ee, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a(Y, { type: "submit", size: t.button.size, children: "Save" }) })
2223
2311
  ] }) });
2224
2312
  }
2225
2313
  function In({
2226
2314
  onSuccess: e,
2227
- styles: t = Ie,
2315
+ styles: t = De,
2228
2316
  ...r
2229
2317
  }) {
2230
2318
  const [n, s] = Z.useState(!1), o = () => s(!0), l = () => s(!1);
2231
- return /* @__PURE__ */ C(he, { children: [
2319
+ return /* @__PURE__ */ C(fe, { children: [
2232
2320
  /* @__PURE__ */ a(_e, { overflow: "inside", opened: n, onClose: () => s(!1), title: "Edit a SQL Snippet", trapFocus: !0, onDragStart: (d) => {
2233
2321
  d.stopPropagation();
2234
2322
  }, size: "80vw", children: /* @__PURE__ */ a(Cn, { postSubmit: () => {
@@ -2307,8 +2395,8 @@ var ht = function() {
2307
2395
  return g[h];
2308
2396
  y = /** @type {Record<string, any>} */
2309
2397
  {}, g[h] = y;
2310
- for (var E in c)
2311
- c.hasOwnProperty(E) && (y[E] = u(c[E], g));
2398
+ for (var _ in c)
2399
+ c.hasOwnProperty(_) && (y[_] = u(c[_], g));
2312
2400
  return (
2313
2401
  /** @type {any} */
2314
2402
  y
@@ -2509,28 +2597,28 @@ var ht = function() {
2509
2597
  insertBefore: function(u, c, g, y) {
2510
2598
  y = y || /** @type {any} */
2511
2599
  n.languages;
2512
- var h = y[u], E = {};
2600
+ var h = y[u], _ = {};
2513
2601
  for (var A in h)
2514
2602
  if (h.hasOwnProperty(A)) {
2515
2603
  if (A == c)
2516
2604
  for (var k in g)
2517
- g.hasOwnProperty(k) && (E[k] = g[k]);
2518
- g.hasOwnProperty(A) || (E[A] = h[A]);
2605
+ g.hasOwnProperty(k) && (_[k] = g[k]);
2606
+ g.hasOwnProperty(A) || (_[A] = h[A]);
2519
2607
  }
2520
- var $ = y[u];
2521
- return y[u] = E, n.languages.DFS(n.languages, function(B, ie) {
2522
- ie === $ && B != u && (this[B] = E);
2523
- }), E;
2608
+ var N = y[u];
2609
+ return y[u] = _, n.languages.DFS(n.languages, function(M, oe) {
2610
+ oe === N && M != u && (this[M] = _);
2611
+ }), _;
2524
2612
  },
2525
2613
  // Traverse a language definition with Depth First Search
2526
2614
  DFS: function u(c, g, y, h) {
2527
2615
  h = h || {};
2528
- var E = n.util.objId;
2616
+ var _ = n.util.objId;
2529
2617
  for (var A in c)
2530
2618
  if (c.hasOwnProperty(A)) {
2531
2619
  g.call(c, A, c[A], y || A);
2532
- var k = c[A], $ = n.util.type(k);
2533
- $ === "Object" && !h[E(k)] ? (h[E(k)] = !0, u(k, g, null, h)) : $ === "Array" && !h[E(k)] && (h[E(k)] = !0, u(k, g, A, h));
2620
+ var k = c[A], N = n.util.type(k);
2621
+ N === "Object" && !h[_(k)] ? (h[_(k)] = !0, u(k, g, null, h)) : N === "Array" && !h[_(k)] && (h[_(k)] = !0, u(k, g, A, h));
2534
2622
  }
2535
2623
  }
2536
2624
  },
@@ -2646,8 +2734,8 @@ var ht = function() {
2646
2734
  return c;
2647
2735
  if (Array.isArray(c)) {
2648
2736
  var y = "";
2649
- return c.forEach(function($) {
2650
- y += u($, g);
2737
+ return c.forEach(function(N) {
2738
+ y += u(N, g);
2651
2739
  }), y;
2652
2740
  }
2653
2741
  var h = {
@@ -2657,8 +2745,8 @@ var ht = function() {
2657
2745
  classes: ["token", c.type],
2658
2746
  attributes: {},
2659
2747
  language: g
2660
- }, E = c.alias;
2661
- E && (Array.isArray(E) ? Array.prototype.push.apply(h.classes, E) : h.classes.push(E)), n.hooks.run("wrap", h);
2748
+ }, _ = c.alias;
2749
+ _ && (Array.isArray(_) ? Array.prototype.push.apply(h.classes, _) : h.classes.push(_)), n.hooks.run("wrap", h);
2662
2750
  var A = "";
2663
2751
  for (var k in h.attributes)
2664
2752
  A += " " + k + '="' + (h.attributes[k] || "").replace(/"/g, "&quot;") + '"';
@@ -2668,54 +2756,54 @@ var ht = function() {
2668
2756
  u.lastIndex = c;
2669
2757
  var h = u.exec(g);
2670
2758
  if (h && y && h[1]) {
2671
- var E = h[1].length;
2672
- h.index += E, h[0] = h[0].slice(E);
2759
+ var _ = h[1].length;
2760
+ h.index += _, h[0] = h[0].slice(_);
2673
2761
  }
2674
2762
  return h;
2675
2763
  }
2676
- function l(u, c, g, y, h, E) {
2764
+ function l(u, c, g, y, h, _) {
2677
2765
  for (var A in g)
2678
2766
  if (!(!g.hasOwnProperty(A) || !g[A])) {
2679
2767
  var k = g[A];
2680
2768
  k = Array.isArray(k) ? k : [k];
2681
- for (var $ = 0; $ < k.length; ++$) {
2682
- if (E && E.cause == A + "," + $)
2769
+ for (var N = 0; N < k.length; ++N) {
2770
+ if (_ && _.cause == A + "," + N)
2683
2771
  return;
2684
- var B = k[$], ie = B.inside, q = !!B.lookbehind, W = !!B.greedy, X = B.alias;
2685
- if (W && !B.pattern.global) {
2686
- var L = B.pattern.toString().match(/[imsuy]*$/)[0];
2687
- B.pattern = RegExp(B.pattern.source, L + "g");
2772
+ var M = k[N], oe = M.inside, q = !!M.lookbehind, W = !!M.greedy, X = M.alias;
2773
+ if (W && !M.pattern.global) {
2774
+ var L = M.pattern.toString().match(/[imsuy]*$/)[0];
2775
+ M.pattern = RegExp(M.pattern.source, L + "g");
2688
2776
  }
2689
- for (var F = B.pattern || B, H = y.next, te = h; H !== c.tail && !(E && te >= E.reach); te += H.value.length, H = H.next) {
2690
- var R = H.value;
2777
+ for (var F = M.pattern || M, H = y.next, re = h; H !== c.tail && !(_ && re >= _.reach); re += H.value.length, H = H.next) {
2778
+ var O = H.value;
2691
2779
  if (c.length > u.length)
2692
2780
  return;
2693
- if (!(R instanceof s)) {
2694
- var _ = 1, S;
2781
+ if (!(O instanceof s)) {
2782
+ var E = 1, S;
2695
2783
  if (W) {
2696
- if (S = o(F, te, u, q), !S || S.index >= u.length)
2784
+ if (S = o(F, re, u, q), !S || S.index >= u.length)
2697
2785
  break;
2698
- var I = S.index, O = S.index + S[0].length, w = te;
2786
+ var I = S.index, R = S.index + S[0].length, w = re;
2699
2787
  for (w += H.value.length; I >= w; )
2700
2788
  H = H.next, w += H.value.length;
2701
- if (w -= H.value.length, te = w, H.value instanceof s)
2789
+ if (w -= H.value.length, re = w, H.value instanceof s)
2702
2790
  continue;
2703
- for (var x = H; x !== c.tail && (w < O || typeof x.value == "string"); x = x.next)
2704
- _++, w += x.value.length;
2705
- _--, R = u.slice(te, w), S.index -= te;
2706
- } else if (S = o(F, 0, R, q), !S)
2791
+ for (var x = H; x !== c.tail && (w < R || typeof x.value == "string"); x = x.next)
2792
+ E++, w += x.value.length;
2793
+ E--, O = u.slice(re, w), S.index -= re;
2794
+ } else if (S = o(F, 0, O, q), !S)
2707
2795
  continue;
2708
- var I = S.index, N = S[0], U = R.slice(0, I), P = R.slice(I + N.length), K = te + R.length;
2709
- E && K > E.reach && (E.reach = K);
2710
- var oe = H.prev;
2711
- U && (oe = d(c, oe, U), te += U.length), f(c, oe, _);
2712
- var de = new s(A, ie ? n.tokenize(N, ie) : N, X, N);
2713
- if (H = d(c, oe, de), P && d(c, H, P), _ > 1) {
2714
- var pe = {
2715
- cause: A + "," + $,
2796
+ var I = S.index, $ = S[0], j = O.slice(0, I), B = O.slice(I + $.length), K = re + O.length;
2797
+ _ && K > _.reach && (_.reach = K);
2798
+ var J = H.prev;
2799
+ j && (J = d(c, J, j), re += j.length), f(c, J, E);
2800
+ var he = new s(A, oe ? n.tokenize($, oe) : $, X, $);
2801
+ if (H = d(c, J, he), B && d(c, H, B), E > 1) {
2802
+ var de = {
2803
+ cause: A + "," + N,
2716
2804
  reach: K
2717
2805
  };
2718
- l(u, c, g, H.prev, te, pe), E && pe.reach > E.reach && (E.reach = pe.reach);
2806
+ l(u, c, g, H.prev, re, de), _ && de.reach > _.reach && (_.reach = de.reach);
2719
2807
  }
2720
2808
  }
2721
2809
  }
@@ -3923,12 +4011,12 @@ m.languages.js = m.languages.javascript;
3923
4011
  u(h.content);
3924
4012
  continue;
3925
4013
  }
3926
- var E = h.content[1], A = h.content[3];
3927
- if (E && A && E.type === "code-language" && A.type === "code-block" && typeof E.content == "string") {
3928
- var k = E.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
4014
+ var _ = h.content[1], A = h.content[3];
4015
+ if (_ && A && _.type === "code-language" && A.type === "code-block" && typeof _.content == "string") {
4016
+ var k = _.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
3929
4017
  k = (/[a-z][\w-]*/i.exec(k) || [""])[0].toLowerCase();
3930
- var $ = "language-" + k;
3931
- A.alias ? typeof A.alias == "string" ? A.alias = [A.alias, $] : A.alias.push($) : A.alias = [$];
4018
+ var N = "language-" + k;
4019
+ A.alias ? typeof A.alias == "string" ? A.alias = [A.alias, N] : A.alias.push(N) : A.alias = [N];
3932
4020
  }
3933
4021
  }
3934
4022
  }
@@ -3942,9 +4030,9 @@ m.languages.js = m.languages.javascript;
3942
4030
  break;
3943
4031
  }
3944
4032
  }
3945
- var E = e.languages[u];
3946
- if (E)
3947
- b.content = e.highlight(f(b.content), E, u);
4033
+ var _ = e.languages[u];
4034
+ if (_)
4035
+ b.content = e.highlight(f(b.content), _, u);
3948
4036
  else if (u && u !== "none" && e.plugins.autoloader) {
3949
4037
  var A = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
3950
4038
  b.attributes.id = A, e.plugins.autoloader.loadLanguages(u, function() {
@@ -4044,30 +4132,30 @@ m.hooks.add("after-tokenize", function(t) {
4044
4132
  function s(h) {
4045
4133
  return r[n + h];
4046
4134
  }
4047
- function o(h, E) {
4048
- E = E || 0;
4135
+ function o(h, _) {
4136
+ _ = _ || 0;
4049
4137
  for (var A = 0; A < h.length; A++) {
4050
- var k = s(A + E);
4138
+ var k = s(A + _);
4051
4139
  if (!k || k.type !== h[A])
4052
4140
  return !1;
4053
4141
  }
4054
4142
  return !0;
4055
4143
  }
4056
- function l(h, E) {
4144
+ function l(h, _) {
4057
4145
  for (var A = 1, k = n; k < r.length; k++) {
4058
- var $ = r[k], B = $.content;
4059
- if ($.type === "punctuation" && typeof B == "string") {
4060
- if (h.test(B))
4146
+ var N = r[k], M = N.content;
4147
+ if (N.type === "punctuation" && typeof M == "string") {
4148
+ if (h.test(M))
4061
4149
  A++;
4062
- else if (E.test(B) && (A--, A === 0))
4150
+ else if (_.test(M) && (A--, A === 0))
4063
4151
  return k;
4064
4152
  }
4065
4153
  }
4066
4154
  return -1;
4067
4155
  }
4068
- function p(h, E) {
4156
+ function p(h, _) {
4069
4157
  var A = h.alias;
4070
- A ? Array.isArray(A) || (h.alias = A = [A]) : h.alias = A = [], A.push(E);
4158
+ A ? Array.isArray(A) || (h.alias = A = [A]) : h.alias = A = [], A.push(_);
4071
4159
  }
4072
4160
  for (; n < r.length; ) {
4073
4161
  var d = r[n++];
@@ -4170,55 +4258,55 @@ m.languages.sql = {
4170
4258
  return "___" + y.toUpperCase() + "_" + g + "___";
4171
4259
  }
4172
4260
  function d(g, y, h) {
4173
- var E = {
4261
+ var _ = {
4174
4262
  code: g,
4175
4263
  grammar: y,
4176
4264
  language: h
4177
4265
  };
4178
- return e.hooks.run("before-tokenize", E), E.tokens = e.tokenize(E.code, E.grammar), e.hooks.run("after-tokenize", E), E.tokens;
4266
+ return e.hooks.run("before-tokenize", _), _.tokens = e.tokenize(_.code, _.grammar), e.hooks.run("after-tokenize", _), _.tokens;
4179
4267
  }
4180
4268
  function f(g) {
4181
4269
  var y = {};
4182
4270
  y["interpolation-punctuation"] = s;
4183
4271
  var h = e.tokenize(g, y);
4184
4272
  if (h.length === 3) {
4185
- var E = [1, 1];
4186
- E.push.apply(E, d(h[1], e.languages.javascript, "javascript")), h.splice.apply(h, E);
4273
+ var _ = [1, 1];
4274
+ _.push.apply(_, d(h[1], e.languages.javascript, "javascript")), h.splice.apply(h, _);
4187
4275
  }
4188
4276
  return new e.Token("interpolation", h, n.alias, g);
4189
4277
  }
4190
4278
  function b(g, y, h) {
4191
- var E = e.tokenize(g, {
4279
+ var _ = e.tokenize(g, {
4192
4280
  interpolation: {
4193
4281
  pattern: RegExp(o),
4194
4282
  lookbehind: !0
4195
4283
  }
4196
- }), A = 0, k = {}, $ = E.map(function(W) {
4284
+ }), A = 0, k = {}, N = _.map(function(W) {
4197
4285
  if (typeof W == "string")
4198
4286
  return W;
4199
4287
  for (var X = W.content, L; g.indexOf(L = p(A++, h)) !== -1; )
4200
4288
  ;
4201
4289
  return k[L] = X, L;
4202
- }).join(""), B = d($, y, h), ie = Object.keys(k);
4290
+ }).join(""), M = d(N, y, h), oe = Object.keys(k);
4203
4291
  A = 0;
4204
4292
  function q(W) {
4205
4293
  for (var X = 0; X < W.length; X++) {
4206
- if (A >= ie.length)
4294
+ if (A >= oe.length)
4207
4295
  return;
4208
4296
  var L = W[X];
4209
4297
  if (typeof L == "string" || typeof L.content == "string") {
4210
- var F = ie[A], H = typeof L == "string" ? L : (
4298
+ var F = oe[A], H = typeof L == "string" ? L : (
4211
4299
  /** @type {string} */
4212
4300
  L.content
4213
- ), te = H.indexOf(F);
4214
- if (te !== -1) {
4301
+ ), re = H.indexOf(F);
4302
+ if (re !== -1) {
4215
4303
  ++A;
4216
- var R = H.substring(0, te), _ = f(k[F]), S = H.substring(te + F.length), O = [];
4217
- if (R && O.push(R), O.push(_), S) {
4304
+ var O = H.substring(0, re), E = f(k[F]), S = H.substring(re + F.length), R = [];
4305
+ if (O && R.push(O), R.push(E), S) {
4218
4306
  var w = [S];
4219
- q(w), O.push.apply(O, w);
4307
+ q(w), R.push.apply(R, w);
4220
4308
  }
4221
- typeof L == "string" ? (W.splice.apply(W, [X, 1].concat(O)), X += O.length - 1) : L.content = O;
4309
+ typeof L == "string" ? (W.splice.apply(W, [X, 1].concat(R)), X += R.length - 1) : L.content = R;
4222
4310
  }
4223
4311
  } else {
4224
4312
  var x = L.content;
@@ -4226,7 +4314,7 @@ m.languages.sql = {
4226
4314
  }
4227
4315
  }
4228
4316
  }
4229
- return q(B), new e.Token(h, B, "language-" + h, g);
4317
+ return q(M), new e.Token(h, M, "language-" + h, g);
4230
4318
  }
4231
4319
  var u = {
4232
4320
  javascript: !0,
@@ -4240,24 +4328,24 @@ m.languages.sql = {
4240
4328
  if (!(g.language in u))
4241
4329
  return;
4242
4330
  function y(h) {
4243
- for (var E = 0, A = h.length; E < A; E++) {
4244
- var k = h[E];
4331
+ for (var _ = 0, A = h.length; _ < A; _++) {
4332
+ var k = h[_];
4245
4333
  if (typeof k != "string") {
4246
- var $ = k.content;
4247
- if (!Array.isArray($)) {
4248
- typeof $ != "string" && y([$]);
4334
+ var N = k.content;
4335
+ if (!Array.isArray(N)) {
4336
+ typeof N != "string" && y([N]);
4249
4337
  continue;
4250
4338
  }
4251
4339
  if (k.type === "template-string") {
4252
- var B = $[1];
4253
- if ($.length === 3 && typeof B != "string" && B.type === "embedded-code") {
4254
- var ie = c(B), q = B.alias, W = Array.isArray(q) ? q[0] : q, X = e.languages[W];
4340
+ var M = N[1];
4341
+ if (N.length === 3 && typeof M != "string" && M.type === "embedded-code") {
4342
+ var oe = c(M), q = M.alias, W = Array.isArray(q) ? q[0] : q, X = e.languages[W];
4255
4343
  if (!X)
4256
4344
  continue;
4257
- $[1] = b(ie, X, W);
4345
+ N[1] = b(oe, X, W);
4258
4346
  }
4259
4347
  } else
4260
- y($);
4348
+ y(N);
4261
4349
  }
4262
4350
  }
4263
4351
  }
@@ -4633,8 +4721,8 @@ delete m.languages.go["class-name"];
4633
4721
  var b = o[s], u = r.tokenStack[b], c = typeof f == "string" ? f : f.content, g = t(n, b), y = c.indexOf(g);
4634
4722
  if (y > -1) {
4635
4723
  ++s;
4636
- var h = c.substring(0, y), E = new e.Token(n, e.tokenize(u, r.grammar), "language-" + n, u), A = c.substring(y + g.length), k = [];
4637
- h && k.push.apply(k, l([h])), k.push(E), A && k.push.apply(k, l([A])), typeof f == "string" ? p.splice.apply(p, [d, 1].concat(k)) : f.content = k;
4724
+ var h = c.substring(0, y), _ = new e.Token(n, e.tokenize(u, r.grammar), "language-" + n, u), A = c.substring(y + g.length), k = [];
4725
+ h && k.push.apply(k, l([h])), k.push(_), A && k.push.apply(k, l([A])), typeof f == "string" ? p.splice.apply(p, [d, 1].concat(k)) : f.content = k;
4638
4726
  }
4639
4727
  } else
4640
4728
  f.content && l(f.content);
@@ -5662,7 +5750,7 @@ var qn = Gt((e, { colorScheme: t, native: r, maxLineSize: n, radius: s }) => ({
5662
5750
  }
5663
5751
  }));
5664
5752
  const Hn = qn;
5665
- var Yn = Object.defineProperty, Vn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, Ke = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ce = (e, t) => {
5753
+ var Yn = Object.defineProperty, Vn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, Ke = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (e, t) => {
5666
5754
  for (var r in t || (t = {}))
5667
5755
  Kt.call(t, r) && Bt(e, r, t[r]);
5668
5756
  if (Ke)
@@ -5702,10 +5790,10 @@ const Zn = {
5702
5790
  scrollAreaComponent: g,
5703
5791
  colorScheme: y,
5704
5792
  trim: h,
5705
- unstyled: E,
5793
+ unstyled: _,
5706
5794
  radius: A,
5707
5795
  getPrismTheme: k
5708
- } = r, $ = Kn(r, [
5796
+ } = r, N = Kn(r, [
5709
5797
  "className",
5710
5798
  "children",
5711
5799
  "language",
@@ -5722,17 +5810,17 @@ const Zn = {
5722
5810
  "unstyled",
5723
5811
  "radius",
5724
5812
  "getPrismTheme"
5725
- ]), B = h && typeof s == "string" ? s.trim() : s, ie = B.split(`
5813
+ ]), M = h && typeof s == "string" ? s.trim() : s, oe = M.split(`
5726
5814
  `).length.toString().length, q = Cr(), W = Gr(), X = y || q.colorScheme, { classes: L, cx: F } = Hn({
5727
5815
  colorScheme: X,
5728
5816
  native: g !== qt,
5729
- maxLineSize: ie,
5817
+ maxLineSize: oe,
5730
5818
  radius: A
5731
- }, { classNames: p, styles: d, unstyled: E, name: "Prism" });
5732
- return /* @__PURE__ */ Z.createElement(le, Pe(Ce({
5819
+ }, { classNames: p, styles: d, unstyled: _, name: "Prism" });
5820
+ return /* @__PURE__ */ Z.createElement(le, Pe(Ie({
5733
5821
  className: F(L.root, n),
5734
5822
  ref: t
5735
- }, $), {
5823
+ }, N), {
5736
5824
  translate: "no"
5737
5825
  }), !l && /* @__PURE__ */ Z.createElement(Ve, {
5738
5826
  label: W.copied ? b : f,
@@ -5741,53 +5829,53 @@ const Zn = {
5741
5829
  arrowSize: 6,
5742
5830
  offset: 6,
5743
5831
  color: W.copied ? "teal" : void 0,
5744
- unstyled: E
5832
+ unstyled: _
5745
5833
  }, /* @__PURE__ */ Z.createElement(bt, {
5746
5834
  className: L.copy,
5747
5835
  "aria-label": W.copied ? b : f,
5748
- onClick: () => W.copy(B),
5749
- unstyled: E
5836
+ onClick: () => W.copy(M),
5837
+ unstyled: _
5750
5838
  }, /* @__PURE__ */ Z.createElement(Wt, {
5751
5839
  copied: W.copied
5752
- }))), /* @__PURE__ */ Z.createElement(Bn, Pe(Ce({}, Nn), {
5840
+ }))), /* @__PURE__ */ Z.createElement(Bn, Pe(Ie({}, Nn), {
5753
5841
  theme: k(q, X),
5754
- code: B,
5842
+ code: M,
5755
5843
  language: o
5756
5844
  }), ({
5757
5845
  className: H,
5758
- style: te,
5759
- tokens: R,
5760
- getLineProps: _,
5846
+ style: re,
5847
+ tokens: O,
5848
+ getLineProps: E,
5761
5849
  getTokenProps: S
5762
5850
  }) => /* @__PURE__ */ Z.createElement(g, {
5763
5851
  className: L.scrollArea,
5764
5852
  dir: "ltr"
5765
5853
  }, /* @__PURE__ */ Z.createElement("pre", {
5766
5854
  className: F(L.code, H),
5767
- style: te,
5855
+ style: re,
5768
5856
  dir: "ltr"
5769
- }, R.map((O, w) => {
5770
- var x, I, N, U;
5771
- if (w === R.length - 1 && O.length === 1 && O[0].content === `
5857
+ }, O.map((R, w) => {
5858
+ var x, I, $, j;
5859
+ if (w === O.length - 1 && R.length === 1 && R[0].content === `
5772
5860
  `)
5773
5861
  return null;
5774
- const P = w + 1, K = _({ line: O, key: w }), oe = P in c, de = X === "dark" ? q.fn.rgba(q.fn.themeColor((x = c[P]) == null ? void 0 : x.color, 9), 0.25) : q.fn.themeColor((I = c[P]) == null ? void 0 : I.color, 0);
5775
- return /* @__PURE__ */ Z.createElement("div", Pe(Ce({}, K), {
5862
+ const B = w + 1, K = E({ line: R, key: w }), J = B in c, he = X === "dark" ? q.fn.rgba(q.fn.themeColor((x = c[B]) == null ? void 0 : x.color, 9), 0.25) : q.fn.themeColor((I = c[B]) == null ? void 0 : I.color, 0);
5863
+ return /* @__PURE__ */ Z.createElement("div", Pe(Ie({}, K), {
5776
5864
  className: F(L.line, K.className),
5777
- style: Ce({}, oe ? { backgroundColor: de } : null)
5865
+ style: Ie({}, J ? { backgroundColor: he } : null)
5778
5866
  }), u && /* @__PURE__ */ Z.createElement("div", {
5779
5867
  className: L.lineNumber,
5780
5868
  style: {
5781
- color: oe ? q.fn.themeColor((N = c[P]) == null ? void 0 : N.color, X === "dark" ? 5 : 8) : void 0
5869
+ color: J ? q.fn.themeColor(($ = c[B]) == null ? void 0 : $.color, X === "dark" ? 5 : 8) : void 0
5782
5870
  }
5783
- }, ((U = c[P]) == null ? void 0 : U.label) || P), /* @__PURE__ */ Z.createElement("div", {
5871
+ }, ((j = c[B]) == null ? void 0 : j.label) || B), /* @__PURE__ */ Z.createElement("div", {
5784
5872
  className: L.lineContent
5785
- }, O.map((pe, ye) => {
5786
- var fe, re;
5787
- const ue = S({ token: pe, key: ye });
5788
- return /* @__PURE__ */ Z.createElement("span", Pe(Ce({}, ue), {
5789
- style: Pe(Ce({}, ue.style), {
5790
- color: oe ? q.fn.themeColor((fe = c[P]) == null ? void 0 : fe.color, X === "dark" ? 5 : 8) : (re = ue == null ? void 0 : ue.style) == null ? void 0 : re.color
5873
+ }, R.map((de, ye) => {
5874
+ var pe, ne;
5875
+ const ue = S({ token: de, key: ye });
5876
+ return /* @__PURE__ */ Z.createElement("span", Pe(Ie({}, ue), {
5877
+ style: Pe(Ie({}, ue.style), {
5878
+ color: J ? q.fn.themeColor((pe = c[B]) == null ? void 0 : pe.color, X === "dark" ? 5 : 8) : (ne = ue == null ? void 0 : ue.style) == null ? void 0 : ne.color
5791
5879
  })
5792
5880
  }));
5793
5881
  })));
@@ -5916,7 +6004,7 @@ Ue.Panel = aa;
5916
6004
  function ia({
5917
6005
  id: e,
5918
6006
  onSuccess: t,
5919
- styles: r = Ie
6007
+ styles: r = De
5920
6008
  }) {
5921
6009
  const n = Be(), s = async () => {
5922
6010
  if (e) {
@@ -5927,14 +6015,14 @@ function ia({
5927
6015
  loading: !0
5928
6016
  });
5929
6017
  try {
5930
- await se.sql_snippet.delete(e), ee({
6018
+ await se.sql_snippet.delete(e), te({
5931
6019
  id: "for-deleting",
5932
6020
  title: "Successful",
5933
6021
  message: `SQL Snippet [${e}] is deleted`,
5934
6022
  color: "green"
5935
6023
  }), t();
5936
6024
  } catch (l) {
5937
- ee({
6025
+ te({
5938
6026
  id: "for-deleting",
5939
6027
  title: "Failed",
5940
6028
  message: l.message,
@@ -5965,7 +6053,7 @@ function oa({
5965
6053
  ] });
5966
6054
  }
5967
6055
  function Aa({
5968
- styles: e = Ie,
6056
+ styles: e = De,
5969
6057
  config: t
5970
6058
  }) {
5971
6059
  je(t);
@@ -5973,7 +6061,7 @@ function Aa({
5973
6061
  data: r = [],
5974
6062
  loading: n,
5975
6063
  refresh: s
5976
- } = Re(async () => {
6064
+ } = Oe(async () => {
5977
6065
  const {
5978
6066
  data: o
5979
6067
  } = await se.sql_snippet.list({
@@ -5986,8 +6074,8 @@ function Aa({
5986
6074
  }, {
5987
6075
  refreshDeps: []
5988
6076
  });
5989
- return /* @__PURE__ */ C(he, { children: [
5990
- /* @__PURE__ */ a(J, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(xn, { onSuccess: s }) }),
6077
+ return /* @__PURE__ */ C(fe, { children: [
6078
+ /* @__PURE__ */ a(ee, { pt: e.spacing, position: "right", children: /* @__PURE__ */ a(xn, { onSuccess: s }) }),
5991
6079
  /* @__PURE__ */ C(le, { mt: e.spacing, sx: {
5992
6080
  position: "relative"
5993
6081
  }, children: [
@@ -6012,7 +6100,7 @@ function Aa({
6012
6100
  /* @__PURE__ */ a("td", { width: 50, children: /* @__PURE__ */ a(oa, { content: p }) }),
6013
6101
  /* @__PURE__ */ a("td", { width: 200, children: d }),
6014
6102
  /* @__PURE__ */ a("td", { width: 200, children: f }),
6015
- /* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(J, { position: "left", children: [
6103
+ /* @__PURE__ */ a("td", { width: 400, children: /* @__PURE__ */ C(ee, { position: "left", children: [
6016
6104
  /* @__PURE__ */ a(In, { ...o, onSuccess: s }),
6017
6105
  /* @__PURE__ */ a(ia, { id: l, onSuccess: s })
6018
6106
  ] }) })
@@ -6022,7 +6110,7 @@ function Aa({
6022
6110
  ] })
6023
6111
  ] });
6024
6112
  }
6025
- const ka = () => import("./package-eb53f5df.mjs").then(({
6113
+ const ka = () => import("./package-659e29fb.mjs").then(({
6026
6114
  version: e
6027
6115
  }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
6028
6116
  export {