@devtable/settings-form 8.13.0 → 8.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,21 @@
1
- import { Box as me, TextInput as fe, Divider as Or, Group as se, NumberInput as Vt, PasswordInput as rr, Button as oe, Modal as Ve, Stack as Pr, SegmentedControl as Bt, useMantineTheme as Kt, Tooltip as Ht, Text as Qe, LoadingOverlay as Rr, Table as _r, Select as Gt, Switch as Jt } from "@mantine/core";
1
+ import { Box as ve, TextInput as fe, Divider as Pr, Group as se, NumberInput as Vt, PasswordInput as tr, Button as oe, Modal as Be, Stack as Rr, SegmentedControl as Bt, useMantineTheme as Kt, Tooltip as Ht, Text as Ze, LoadingOverlay as _r, Table as xr, Select as Gt, Switch as Jt } from "@mantine/core";
2
2
  import { showNotification as _e, updateNotification as le } from "@mantine/notifications";
3
3
  import * as $e from "react";
4
- import De, { useEffect as we, memo as ft, useRef as ue, useState as Ie, useCallback as Er, forwardRef as xr, useMemo as dt } from "react";
5
- import { Recycle as Xt, PlaylistAdd as Cr, Trash as jr, Edit as Qt } from "tabler-icons-react";
4
+ import ke, { useEffect as we, memo as dt, useRef as ue, useState as Ie, useCallback as Tr, forwardRef as Cr, useMemo as pt } from "react";
5
+ import { Recycle as Xt, PlaylistAdd as jr, Trash as Ar, Edit as Qt } from "tabler-icons-react";
6
6
  import Zt from "axios";
7
7
  import en from "crypto-js";
8
8
  import rn from "lodash";
9
- import { useForm as ke, Controller as J } from "react-hook-form";
9
+ import { useForm as De, Controller as J } from "react-hook-form";
10
10
  import { useBoolean as tn, useRequest as ze } from "ahooks";
11
- import { useModals as tr, closeAllModals as nn } from "@mantine/modals";
12
- function on(e) {
11
+ import * as nn from "monaco-editor";
12
+ import on from "monaco-editor/esm/vs/editor/editor.worker?worker";
13
+ import an from "monaco-editor/esm/vs/language/css/css.worker?worker";
14
+ import sn from "monaco-editor/esm/vs/language/html/html.worker?worker";
15
+ import cn from "monaco-editor/esm/vs/language/json/json.worker?worker";
16
+ import un from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
17
+ import { useModals as nr, closeAllModals as ln } from "@mantine/modals";
18
+ function fn(e) {
13
19
  e = e || {};
14
20
  const r = Object.keys(e).sort(), t = [];
15
21
  for (let o = 0; o < r.length; o++) {
@@ -28,8 +34,8 @@ function on(e) {
28
34
  }
29
35
  return t.sort().join("&");
30
36
  }
31
- function an(e, r) {
32
- let t = on(e);
37
+ function dn(e, r) {
38
+ let t = fn(e);
33
39
  return t += "&key=" + r, en.MD5(t).toString().toUpperCase();
34
40
  }
35
41
  const ne = {
@@ -43,7 +49,7 @@ const ne = {
43
49
  return {
44
50
  app_id: this.app_id,
45
51
  nonce_str: r,
46
- sign: an(
52
+ sign: dn(
47
53
  {
48
54
  app_id: this.app_id,
49
55
  nonce_str: r,
@@ -71,10 +77,10 @@ const ne = {
71
77
  };
72
78
  }
73
79
  };
74
- function nr(e) {
80
+ function or(e) {
75
81
  ne.baseURL !== e.apiBaseURL && (ne.baseURL = e.apiBaseURL), e.app_id && (ne.app_id = e.app_id), e.app_secret && (ne.app_secret = e.app_secret);
76
82
  }
77
- const sn = {
83
+ const pn = {
78
84
  login: async (e, r) => {
79
85
  const t = {
80
86
  name: e,
@@ -121,7 +127,7 @@ const sn = {
121
127
  if (!!e)
122
128
  return ne.getRequest("POST")("/account/delete", { id: e });
123
129
  }
124
- }, cn = {
130
+ }, gn = {
125
131
  list: async () => await ne.getRequest("POST")("/api/key/list", {
126
132
  filter: {
127
133
  search: ""
@@ -145,7 +151,7 @@ const sn = {
145
151
  if (!!e)
146
152
  return ne.getRequest("POST")("/api/key/delete", { id: e });
147
153
  }
148
- }, un = {
154
+ }, hn = {
149
155
  list: async () => await ne.getRequest("POST")("/datasource/list", {
150
156
  filter: {},
151
157
  sort: [
@@ -167,13 +173,13 @@ const sn = {
167
173
  delete: async (e) => {
168
174
  await ne.getRequest("POST")("/datasource/delete", { id: e });
169
175
  }
170
- }, ln = {
176
+ }, mn = {
171
177
  list: async () => await ne.getRequest("GET")("/role/list", {})
172
178
  }, de = {
173
- datasource: un,
174
- account: sn,
175
- role: ln,
176
- api_key: cn
179
+ datasource: hn,
180
+ account: pn,
181
+ role: mn,
182
+ api_key: gn
177
183
  }, qe = {
178
184
  size: "sm",
179
185
  spacing: "md",
@@ -181,7 +187,7 @@ const sn = {
181
187
  size: "xs"
182
188
  }
183
189
  };
184
- var or = { exports: {} }, Le = {};
190
+ var ir = { exports: {} }, Le = {};
185
191
  /**
186
192
  * @license React
187
193
  * react-jsx-runtime.production.min.js
@@ -191,21 +197,21 @@ var or = { exports: {} }, Le = {};
191
197
  * This source code is licensed under the MIT license found in the
192
198
  * LICENSE file in the root directory of this source tree.
193
199
  */
194
- var Kr;
195
- function fn() {
196
- if (Kr)
200
+ var Hr;
201
+ function vn() {
202
+ if (Hr)
197
203
  return Le;
198
- Kr = 1;
199
- var e = De, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
200
- function c(u, d, v) {
201
- var y, h = {}, m = null, x = null;
202
- v !== void 0 && (m = "" + v), d.key !== void 0 && (m = "" + d.key), d.ref !== void 0 && (x = d.ref);
203
- for (y in d)
204
- o.call(d, y) && !i.hasOwnProperty(y) && (h[y] = d[y]);
204
+ Hr = 1;
205
+ var e = ke, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
206
+ function c(u, d, m) {
207
+ var b, h = {}, v = null, x = null;
208
+ m !== void 0 && (v = "" + m), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (x = d.ref);
209
+ for (b in d)
210
+ o.call(d, b) && !i.hasOwnProperty(b) && (h[b] = d[b]);
205
211
  if (u && u.defaultProps)
206
- for (y in d = u.defaultProps, d)
207
- h[y] === void 0 && (h[y] = d[y]);
208
- return { $$typeof: r, type: u, key: m, ref: x, props: h, _owner: s.current };
212
+ for (b in d = u.defaultProps, d)
213
+ h[b] === void 0 && (h[b] = d[b]);
214
+ return { $$typeof: r, type: u, key: v, ref: x, props: h, _owner: s.current };
209
215
  }
210
216
  return Le.Fragment = t, Le.jsx = c, Le.jsxs = c, Le;
211
217
  }
@@ -219,29 +225,29 @@ var Ue = {};
219
225
  * This source code is licensed under the MIT license found in the
220
226
  * LICENSE file in the root directory of this source tree.
221
227
  */
222
- var Hr;
223
- function dn() {
224
- return Hr || (Hr = 1, process.env.NODE_ENV !== "production" && function() {
225
- var e = De, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, D = "@@iterator";
228
+ var Gr;
229
+ function yn() {
230
+ return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
231
+ var e = ke, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, k = "@@iterator";
226
232
  function G(n) {
227
233
  if (n === null || typeof n != "object")
228
234
  return null;
229
- var f = Y && n[Y] || n[D];
235
+ var f = Y && n[Y] || n[k];
230
236
  return typeof f == "function" ? f : null;
231
237
  }
232
238
  var K = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
233
- function k(n) {
239
+ function D(n) {
234
240
  {
235
- for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
236
- b[E - 1] = arguments[E];
237
- H("error", n, b);
241
+ for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
242
+ y[E - 1] = arguments[E];
243
+ H("error", n, y);
238
244
  }
239
245
  }
240
- function H(n, f, b) {
246
+ function H(n, f, y) {
241
247
  {
242
248
  var E = K.ReactDebugCurrentFrame, L = E.getStackAddendum();
243
- L !== "" && (f += "%s", b = b.concat([L]));
244
- var V = b.map(function(q) {
249
+ L !== "" && (f += "%s", y = y.concat([L]));
250
+ var V = y.map(function(q) {
245
251
  return String(q);
246
252
  });
247
253
  V.unshift("Warning: " + f), Function.prototype.apply.call(console[n], console, V);
@@ -250,22 +256,22 @@ function dn() {
250
256
  var N = !1, p = !1, X = !1, ee = !1, Se = !1, Q;
251
257
  Q = Symbol.for("react.module.reference");
252
258
  function $(n) {
253
- return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === v || n === y || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === m || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
259
+ return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === m || n === b || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === v || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
254
260
  }
255
- function ge(n, f, b) {
261
+ function ge(n, f, y) {
256
262
  var E = n.displayName;
257
263
  if (E)
258
264
  return E;
259
265
  var L = f.displayName || f.name || "";
260
- return L !== "" ? b + "(" + L + ")" : b;
266
+ return L !== "" ? y + "(" + L + ")" : y;
261
267
  }
262
- function be(n) {
268
+ function ye(n) {
263
269
  return n.displayName || "Context";
264
270
  }
265
271
  function ie(n) {
266
272
  if (n == null)
267
273
  return null;
268
- if (typeof n.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
274
+ if (typeof n.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
269
275
  return n.displayName || n.name || null;
270
276
  if (typeof n == "string")
271
277
  return n;
@@ -278,25 +284,25 @@ function dn() {
278
284
  return "Profiler";
279
285
  case s:
280
286
  return "StrictMode";
281
- case v:
287
+ case m:
282
288
  return "Suspense";
283
- case y:
289
+ case b:
284
290
  return "SuspenseList";
285
291
  }
286
292
  if (typeof n == "object")
287
293
  switch (n.$$typeof) {
288
294
  case u:
289
295
  var f = n;
290
- return be(f) + ".Consumer";
296
+ return ye(f) + ".Consumer";
291
297
  case c:
292
- var b = n;
293
- return be(b._context) + ".Provider";
298
+ var y = n;
299
+ return ye(y._context) + ".Provider";
294
300
  case d:
295
301
  return ge(n, n.render, "ForwardRef");
296
302
  case h:
297
303
  var E = n.displayName || null;
298
304
  return E !== null ? E : ie(n.type) || "Memo";
299
- case m: {
305
+ case v: {
300
306
  var L = n, V = L._payload, q = L._init;
301
307
  try {
302
308
  return ie(q(V));
@@ -366,11 +372,11 @@ function dn() {
366
372
  })
367
373
  });
368
374
  }
369
- B < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
375
+ B < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
370
376
  }
371
377
  }
372
378
  var R = K.ReactCurrentDispatcher, _;
373
- function j(n, f, b) {
379
+ function j(n, f, y) {
374
380
  {
375
381
  if (_ === void 0)
376
382
  try {
@@ -392,9 +398,9 @@ function dn() {
392
398
  if (!n || F)
393
399
  return "";
394
400
  {
395
- var b = A.get(n);
396
- if (b !== void 0)
397
- return b;
401
+ var y = A.get(n);
402
+ if (y !== void 0)
403
+ return y;
398
404
  }
399
405
  var E;
400
406
  F = !0;
@@ -445,9 +451,9 @@ function dn() {
445
451
  if (Z !== 1 || re !== 1)
446
452
  do
447
453
  if (Z--, re--, re < 0 || M[Z] !== ce[re]) {
448
- var ve = `
454
+ var me = `
449
455
  ` + M[Z].replace(" at new ", " at ");
450
- return n.displayName && ve.includes("<anonymous>") && (ve = ve.replace("<anonymous>", n.displayName)), typeof n == "function" && A.set(n, ve), ve;
456
+ return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" && A.set(n, me), me;
451
457
  }
452
458
  while (Z >= 1 && re >= 0);
453
459
  break;
@@ -456,17 +462,17 @@ function dn() {
456
462
  } finally {
457
463
  F = !1, R.current = V, C(), Error.prepareStackTrace = L;
458
464
  }
459
- var Me = n ? n.displayName || n.name : "", Br = Me ? j(Me) : "";
460
- return typeof n == "function" && A.set(n, Br), Br;
465
+ var Me = n ? n.displayName || n.name : "", Kr = Me ? j(Me) : "";
466
+ return typeof n == "function" && A.set(n, Kr), Kr;
461
467
  }
462
- function he(n, f, b) {
468
+ function he(n, f, y) {
463
469
  return w(n, !1);
464
470
  }
465
471
  function je(n) {
466
472
  var f = n.prototype;
467
473
  return !!(f && f.isReactComponent);
468
474
  }
469
- function Ce(n, f, b) {
475
+ function Ce(n, f, y) {
470
476
  if (n == null)
471
477
  return "";
472
478
  if (typeof n == "function")
@@ -474,9 +480,9 @@ function dn() {
474
480
  if (typeof n == "string")
475
481
  return j(n);
476
482
  switch (n) {
477
- case v:
483
+ case m:
478
484
  return j("Suspense");
479
- case y:
485
+ case b:
480
486
  return j("SuspenseList");
481
487
  }
482
488
  if (typeof n == "object")
@@ -484,77 +490,77 @@ function dn() {
484
490
  case d:
485
491
  return he(n.render);
486
492
  case h:
487
- return Ce(n.type, f, b);
488
- case m: {
493
+ return Ce(n.type, f, y);
494
+ case v: {
489
495
  var E = n, L = E._payload, V = E._init;
490
496
  try {
491
- return Ce(V(L), f, b);
497
+ return Ce(V(L), f, y);
492
498
  } catch {
493
499
  }
494
500
  }
495
501
  }
496
502
  return "";
497
503
  }
498
- var Ke = Object.prototype.hasOwnProperty, zr = {}, Dr = K.ReactDebugCurrentFrame;
499
- function He(n) {
504
+ var He = Object.prototype.hasOwnProperty, kr = {}, Dr = K.ReactDebugCurrentFrame;
505
+ function Ge(n) {
500
506
  if (n) {
501
- var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
502
- Dr.setExtraStackFrame(b);
507
+ var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
508
+ Dr.setExtraStackFrame(y);
503
509
  } else
504
510
  Dr.setExtraStackFrame(null);
505
511
  }
506
- function Pt(n, f, b, E, L) {
512
+ function Pt(n, f, y, E, L) {
507
513
  {
508
- var V = Function.call.bind(Ke);
514
+ var V = Function.call.bind(He);
509
515
  for (var q in n)
510
516
  if (V(n, q)) {
511
517
  var M = void 0;
512
518
  try {
513
519
  if (typeof n[q] != "function") {
514
- var ce = Error((E || "React class") + ": " + b + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
520
+ var ce = Error((E || "React class") + ": " + y + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
515
521
  throw ce.name = "Invariant Violation", ce;
516
522
  }
517
- M = n[q](f, q, E, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
523
+ M = n[q](f, q, E, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
518
524
  } catch (Z) {
519
525
  M = Z;
520
526
  }
521
- M && !(M instanceof Error) && (He(L), 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).", E || "React class", b, q, typeof M), He(null)), M instanceof Error && !(M.message in zr) && (zr[M.message] = !0, He(L), k("Failed %s type: %s", b, M.message), He(null));
527
+ M && !(M instanceof Error) && (Ge(L), D("%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).", E || "React class", y, q, typeof M), Ge(null)), M instanceof Error && !(M.message in kr) && (kr[M.message] = !0, Ge(L), D("Failed %s type: %s", y, M.message), Ge(null));
522
528
  }
523
529
  }
524
530
  }
525
531
  var Rt = Array.isArray;
526
- function sr(n) {
532
+ function cr(n) {
527
533
  return Rt(n);
528
534
  }
529
535
  function _t(n) {
530
536
  {
531
- var f = typeof Symbol == "function" && Symbol.toStringTag, b = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
532
- return b;
537
+ var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
538
+ return y;
533
539
  }
534
540
  }
535
541
  function xt(n) {
536
542
  try {
537
- return kr(n), !1;
543
+ return qr(n), !1;
538
544
  } catch {
539
545
  return !0;
540
546
  }
541
547
  }
542
- function kr(n) {
548
+ function qr(n) {
543
549
  return "" + n;
544
550
  }
545
- function qr(n) {
551
+ function Fr(n) {
546
552
  if (xt(n))
547
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(n)), kr(n);
553
+ return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(n)), qr(n);
548
554
  }
549
555
  var Fe = K.ReactCurrentOwner, Ct = {
550
556
  key: !0,
551
557
  ref: !0,
552
558
  __self: !0,
553
559
  __source: !0
554
- }, Fr, $r, cr;
555
- cr = {};
560
+ }, $r, Lr, ur;
561
+ ur = {};
556
562
  function jt(n) {
557
- if (Ke.call(n, "ref")) {
563
+ if (He.call(n, "ref")) {
558
564
  var f = Object.getOwnPropertyDescriptor(n, "ref").get;
559
565
  if (f && f.isReactWarning)
560
566
  return !1;
@@ -562,7 +568,7 @@ function dn() {
562
568
  return n.ref !== void 0;
563
569
  }
564
570
  function At(n) {
565
- if (Ke.call(n, "key")) {
571
+ if (He.call(n, "key")) {
566
572
  var f = Object.getOwnPropertyDescriptor(n, "key").get;
567
573
  if (f && f.isReactWarning)
568
574
  return !1;
@@ -571,38 +577,38 @@ function dn() {
571
577
  }
572
578
  function Mt(n, f) {
573
579
  if (typeof n.ref == "string" && Fe.current && f && Fe.current.stateNode !== f) {
574
- var b = ie(Fe.current.type);
575
- cr[b] || (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', ie(Fe.current.type), n.ref), cr[b] = !0);
580
+ var y = ie(Fe.current.type);
581
+ ur[y] || (D('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', ie(Fe.current.type), n.ref), ur[y] = !0);
576
582
  }
577
583
  }
578
584
  function It(n, f) {
579
585
  {
580
- var b = function() {
581
- Fr || (Fr = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
586
+ var y = function() {
587
+ $r || ($r = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
582
588
  };
583
- b.isReactWarning = !0, Object.defineProperty(n, "key", {
584
- get: b,
589
+ y.isReactWarning = !0, Object.defineProperty(n, "key", {
590
+ get: y,
585
591
  configurable: !0
586
592
  });
587
593
  }
588
594
  }
589
595
  function zt(n, f) {
590
596
  {
591
- var b = function() {
592
- $r || ($r = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
597
+ var y = function() {
598
+ Lr || (Lr = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
593
599
  };
594
- b.isReactWarning = !0, Object.defineProperty(n, "ref", {
595
- get: b,
600
+ y.isReactWarning = !0, Object.defineProperty(n, "ref", {
601
+ get: y,
596
602
  configurable: !0
597
603
  });
598
604
  }
599
605
  }
600
- var Dt = function(n, f, b, E, L, V, q) {
606
+ var kt = function(n, f, y, E, L, V, q) {
601
607
  var M = {
602
608
  $$typeof: r,
603
609
  type: n,
604
610
  key: f,
605
- ref: b,
611
+ ref: y,
606
612
  props: q,
607
613
  _owner: V
608
614
  };
@@ -623,12 +629,12 @@ function dn() {
623
629
  value: L
624
630
  }), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
625
631
  };
626
- function kt(n, f, b, E, L) {
632
+ function Dt(n, f, y, E, L) {
627
633
  {
628
634
  var V, q = {}, M = null, ce = null;
629
- b !== void 0 && (qr(b), M = "" + b), At(f) && (qr(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
635
+ y !== void 0 && (Fr(y), M = "" + y), At(f) && (Fr(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
630
636
  for (V in f)
631
- Ke.call(f, V) && !Ct.hasOwnProperty(V) && (q[V] = f[V]);
637
+ He.call(f, V) && !Ct.hasOwnProperty(V) && (q[V] = f[V]);
632
638
  if (n && n.defaultProps) {
633
639
  var Z = n.defaultProps;
634
640
  for (V in Z)
@@ -638,26 +644,26 @@ function dn() {
638
644
  var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
639
645
  M && It(q, re), ce && zt(q, re);
640
646
  }
641
- return Dt(n, M, ce, L, E, Fe.current, q);
647
+ return kt(n, M, ce, L, E, Fe.current, q);
642
648
  }
643
649
  }
644
- var ur = K.ReactCurrentOwner, Lr = K.ReactDebugCurrentFrame;
650
+ var lr = K.ReactCurrentOwner, Ur = K.ReactDebugCurrentFrame;
645
651
  function Ae(n) {
646
652
  if (n) {
647
- var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
648
- Lr.setExtraStackFrame(b);
653
+ var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
654
+ Ur.setExtraStackFrame(y);
649
655
  } else
650
- Lr.setExtraStackFrame(null);
656
+ Ur.setExtraStackFrame(null);
651
657
  }
652
- var lr;
653
- lr = !1;
654
- function fr(n) {
658
+ var fr;
659
+ fr = !1;
660
+ function dr(n) {
655
661
  return typeof n == "object" && n !== null && n.$$typeof === r;
656
662
  }
657
- function Ur() {
663
+ function Wr() {
658
664
  {
659
- if (ur.current) {
660
- var n = ie(ur.current.type);
665
+ if (lr.current) {
666
+ var n = ie(lr.current.type);
661
667
  if (n)
662
668
  return `
663
669
 
@@ -669,56 +675,56 @@ Check the render method of \`` + n + "`.";
669
675
  function qt(n) {
670
676
  {
671
677
  if (n !== void 0) {
672
- var f = n.fileName.replace(/^.*[\\\/]/, ""), b = n.lineNumber;
678
+ var f = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
673
679
  return `
674
680
 
675
- Check your code at ` + f + ":" + b + ".";
681
+ Check your code at ` + f + ":" + y + ".";
676
682
  }
677
683
  return "";
678
684
  }
679
685
  }
680
- var Wr = {};
686
+ var Yr = {};
681
687
  function Ft(n) {
682
688
  {
683
- var f = Ur();
689
+ var f = Wr();
684
690
  if (!f) {
685
- var b = typeof n == "string" ? n : n.displayName || n.name;
686
- b && (f = `
691
+ var y = typeof n == "string" ? n : n.displayName || n.name;
692
+ y && (f = `
687
693
 
688
- Check the top-level render call using <` + b + ">.");
694
+ Check the top-level render call using <` + y + ">.");
689
695
  }
690
696
  return f;
691
697
  }
692
698
  }
693
- function Yr(n, f) {
699
+ function Nr(n, f) {
694
700
  {
695
701
  if (!n._store || n._store.validated || n.key != null)
696
702
  return;
697
703
  n._store.validated = !0;
698
- var b = Ft(f);
699
- if (Wr[b])
704
+ var y = Ft(f);
705
+ if (Yr[y])
700
706
  return;
701
- Wr[b] = !0;
707
+ Yr[y] = !0;
702
708
  var E = "";
703
- n && n._owner && n._owner !== ur.current && (E = " It was passed a child from " + ie(n._owner.type) + "."), Ae(n), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, E), Ae(null);
709
+ n && n._owner && n._owner !== lr.current && (E = " It was passed a child from " + ie(n._owner.type) + "."), Ae(n), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, E), Ae(null);
704
710
  }
705
711
  }
706
- function Nr(n, f) {
712
+ function Vr(n, f) {
707
713
  {
708
714
  if (typeof n != "object")
709
715
  return;
710
- if (sr(n))
711
- for (var b = 0; b < n.length; b++) {
712
- var E = n[b];
713
- fr(E) && Yr(E, f);
716
+ if (cr(n))
717
+ for (var y = 0; y < n.length; y++) {
718
+ var E = n[y];
719
+ dr(E) && Nr(E, f);
714
720
  }
715
- else if (fr(n))
721
+ else if (dr(n))
716
722
  n._store && (n._store.validated = !0);
717
723
  else if (n) {
718
724
  var L = G(n);
719
725
  if (typeof L == "function" && L !== n.entries)
720
726
  for (var V = L.call(n), q; !(q = V.next()).done; )
721
- fr(q.value) && Yr(q.value, f);
727
+ dr(q.value) && Nr(q.value, f);
722
728
  }
723
729
  }
724
730
  }
@@ -727,81 +733,81 @@ Check the top-level render call using <` + b + ">.");
727
733
  var f = n.type;
728
734
  if (f == null || typeof f == "string")
729
735
  return;
730
- var b;
736
+ var y;
731
737
  if (typeof f == "function")
732
- b = f.propTypes;
738
+ y = f.propTypes;
733
739
  else if (typeof f == "object" && (f.$$typeof === d || f.$$typeof === h))
734
- b = f.propTypes;
740
+ y = f.propTypes;
735
741
  else
736
742
  return;
737
- if (b) {
743
+ if (y) {
738
744
  var E = ie(f);
739
- Pt(b, n.props, "prop", E, n);
740
- } else if (f.PropTypes !== void 0 && !lr) {
741
- lr = !0;
745
+ Pt(y, n.props, "prop", E, n);
746
+ } else if (f.PropTypes !== void 0 && !fr) {
747
+ fr = !0;
742
748
  var L = ie(f);
743
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
749
+ D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
744
750
  }
745
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
751
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
746
752
  }
747
753
  }
748
754
  function Lt(n) {
749
755
  {
750
- for (var f = Object.keys(n.props), b = 0; b < f.length; b++) {
751
- var E = f[b];
756
+ for (var f = Object.keys(n.props), y = 0; y < f.length; y++) {
757
+ var E = f[y];
752
758
  if (E !== "children" && E !== "key") {
753
- Ae(n), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ae(null);
759
+ Ae(n), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ae(null);
754
760
  break;
755
761
  }
756
762
  }
757
- n.ref !== null && (Ae(n), k("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
763
+ n.ref !== null && (Ae(n), D("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
758
764
  }
759
765
  }
760
- function Vr(n, f, b, E, L, V) {
766
+ function Br(n, f, y, E, L, V) {
761
767
  {
762
768
  var q = $(n);
763
769
  if (!q) {
764
770
  var M = "";
765
771
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
766
772
  var ce = qt(L);
767
- ce ? M += ce : M += Ur();
773
+ ce ? M += ce : M += Wr();
768
774
  var Z;
769
- n === null ? Z = "null" : sr(n) ? Z = "array" : n !== void 0 && n.$$typeof === r ? (Z = "<" + (ie(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof n, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, M);
775
+ n === null ? Z = "null" : cr(n) ? Z = "array" : n !== void 0 && n.$$typeof === r ? (Z = "<" + (ie(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof n, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, M);
770
776
  }
771
- var re = kt(n, f, b, L, V);
777
+ var re = Dt(n, f, y, L, V);
772
778
  if (re == null)
773
779
  return re;
774
780
  if (q) {
775
- var ve = f.children;
776
- if (ve !== void 0)
781
+ var me = f.children;
782
+ if (me !== void 0)
777
783
  if (E)
778
- if (sr(ve)) {
779
- for (var Me = 0; Me < ve.length; Me++)
780
- Nr(ve[Me], n);
781
- Object.freeze && Object.freeze(ve);
784
+ if (cr(me)) {
785
+ for (var Me = 0; Me < me.length; Me++)
786
+ Vr(me[Me], n);
787
+ Object.freeze && Object.freeze(me);
782
788
  } else
783
- 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.");
789
+ D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
784
790
  else
785
- Nr(ve, n);
791
+ Vr(me, n);
786
792
  }
787
793
  return n === o ? Lt(re) : $t(re), re;
788
794
  }
789
795
  }
790
- function Ut(n, f, b) {
791
- return Vr(n, f, b, !0);
796
+ function Ut(n, f, y) {
797
+ return Br(n, f, y, !0);
792
798
  }
793
- function Wt(n, f, b) {
794
- return Vr(n, f, b, !1);
799
+ function Wt(n, f, y) {
800
+ return Br(n, f, y, !1);
795
801
  }
796
802
  var Yt = Wt, Nt = Ut;
797
803
  Ue.Fragment = o, Ue.jsx = Yt, Ue.jsxs = Nt;
798
804
  }()), Ue;
799
805
  }
800
806
  (function(e) {
801
- process.env.NODE_ENV === "production" ? e.exports = fn() : e.exports = dn();
802
- })(or);
803
- const Oe = or.exports.Fragment, a = or.exports.jsx, I = or.exports.jsxs;
804
- function pn({
807
+ process.env.NODE_ENV === "production" ? e.exports = vn() : e.exports = yn();
808
+ })(ir);
809
+ const Oe = ir.exports.Fragment, a = ir.exports.jsx, I = ir.exports.jsxs;
810
+ function bn({
805
811
  submit: e,
806
812
  styles: r = qe,
807
813
  type: t
@@ -810,7 +816,7 @@ function pn({
810
816
  control: o,
811
817
  setValue: s,
812
818
  handleSubmit: i
813
- } = ke({
819
+ } = De({
814
820
  defaultValues: {
815
821
  type: t,
816
822
  key: "",
@@ -825,7 +831,7 @@ function pn({
825
831
  });
826
832
  return we(() => {
827
833
  s("type", t);
828
- }, [s, t]), /* @__PURE__ */ a(me, {
834
+ }, [s, t]), /* @__PURE__ */ a(ve, {
829
835
  mx: "auto",
830
836
  children: /* @__PURE__ */ I("form", {
831
837
  onSubmit: i(e),
@@ -842,7 +848,7 @@ function pn({
842
848
  placeholder: "A unique name",
843
849
  ...c
844
850
  })
845
- }), /* @__PURE__ */ a(Or, {
851
+ }), /* @__PURE__ */ a(Pr, {
846
852
  label: "Connection Info",
847
853
  labelPosition: "center"
848
854
  }), /* @__PURE__ */ I(se, {
@@ -896,7 +902,7 @@ function pn({
896
902
  control: o,
897
903
  render: ({
898
904
  field: c
899
- }) => /* @__PURE__ */ a(rr, {
905
+ }) => /* @__PURE__ */ a(tr, {
900
906
  mb: r.spacing,
901
907
  size: r.size,
902
908
  required: !0,
@@ -927,7 +933,7 @@ function pn({
927
933
  })
928
934
  });
929
935
  }
930
- function gn(e, r, t) {
936
+ function wn(e, r, t) {
931
937
  return r in e ? Object.defineProperty(e, r, {
932
938
  value: t,
933
939
  enumerable: !0,
@@ -935,7 +941,7 @@ function gn(e, r, t) {
935
941
  writable: !0
936
942
  }) : e[r] = t, e;
937
943
  }
938
- function Gr(e, r) {
944
+ function Jr(e, r) {
939
945
  var t = Object.keys(e);
940
946
  if (Object.getOwnPropertySymbols) {
941
947
  var o = Object.getOwnPropertySymbols(e);
@@ -945,18 +951,18 @@ function Gr(e, r) {
945
951
  }
946
952
  return t;
947
953
  }
948
- function Jr(e) {
954
+ function Xr(e) {
949
955
  for (var r = 1; r < arguments.length; r++) {
950
956
  var t = arguments[r] != null ? arguments[r] : {};
951
- r % 2 ? Gr(Object(t), !0).forEach(function(o) {
952
- gn(e, o, t[o]);
953
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Gr(Object(t)).forEach(function(o) {
957
+ r % 2 ? Jr(Object(t), !0).forEach(function(o) {
958
+ wn(e, o, t[o]);
959
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Jr(Object(t)).forEach(function(o) {
954
960
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
955
961
  });
956
962
  }
957
963
  return e;
958
964
  }
959
- function hn(e, r) {
965
+ function Sn(e, r) {
960
966
  if (e == null)
961
967
  return {};
962
968
  var t = {}, o = Object.keys(e), s, i;
@@ -964,10 +970,10 @@ function hn(e, r) {
964
970
  s = o[i], !(r.indexOf(s) >= 0) && (t[s] = e[s]);
965
971
  return t;
966
972
  }
967
- function vn(e, r) {
973
+ function En(e, r) {
968
974
  if (e == null)
969
975
  return {};
970
- var t = hn(e, r), o, s;
976
+ var t = Sn(e, r), o, s;
971
977
  if (Object.getOwnPropertySymbols) {
972
978
  var i = Object.getOwnPropertySymbols(e);
973
979
  for (s = 0; s < i.length; s++)
@@ -975,14 +981,14 @@ function vn(e, r) {
975
981
  }
976
982
  return t;
977
983
  }
978
- function mn(e, r) {
979
- return bn(e) || yn(e, r) || wn(e, r) || Sn();
984
+ function Tn(e, r) {
985
+ return On(e) || Pn(e, r) || Rn(e, r) || _n();
980
986
  }
981
- function bn(e) {
987
+ function On(e) {
982
988
  if (Array.isArray(e))
983
989
  return e;
984
990
  }
985
- function yn(e, r) {
991
+ function Pn(e, r) {
986
992
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
987
993
  var t = [], o = !0, s = !1, i = void 0;
988
994
  try {
@@ -1001,28 +1007,28 @@ function yn(e, r) {
1001
1007
  return t;
1002
1008
  }
1003
1009
  }
1004
- function wn(e, r) {
1010
+ function Rn(e, r) {
1005
1011
  if (!!e) {
1006
1012
  if (typeof e == "string")
1007
- return Xr(e, r);
1013
+ return Qr(e, r);
1008
1014
  var t = Object.prototype.toString.call(e).slice(8, -1);
1009
1015
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
1010
1016
  return Array.from(e);
1011
1017
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1012
- return Xr(e, r);
1018
+ return Qr(e, r);
1013
1019
  }
1014
1020
  }
1015
- function Xr(e, r) {
1021
+ function Qr(e, r) {
1016
1022
  (r == null || r > e.length) && (r = e.length);
1017
1023
  for (var t = 0, o = new Array(r); t < r; t++)
1018
1024
  o[t] = e[t];
1019
1025
  return o;
1020
1026
  }
1021
- function Sn() {
1027
+ function _n() {
1022
1028
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1023
1029
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1024
1030
  }
1025
- function En(e, r, t) {
1031
+ function xn(e, r, t) {
1026
1032
  return r in e ? Object.defineProperty(e, r, {
1027
1033
  value: t,
1028
1034
  enumerable: !0,
@@ -1030,7 +1036,7 @@ function En(e, r, t) {
1030
1036
  writable: !0
1031
1037
  }) : e[r] = t, e;
1032
1038
  }
1033
- function Qr(e, r) {
1039
+ function Zr(e, r) {
1034
1040
  var t = Object.keys(e);
1035
1041
  if (Object.getOwnPropertySymbols) {
1036
1042
  var o = Object.getOwnPropertySymbols(e);
@@ -1040,18 +1046,18 @@ function Qr(e, r) {
1040
1046
  }
1041
1047
  return t;
1042
1048
  }
1043
- function Zr(e) {
1049
+ function et(e) {
1044
1050
  for (var r = 1; r < arguments.length; r++) {
1045
1051
  var t = arguments[r] != null ? arguments[r] : {};
1046
- r % 2 ? Qr(Object(t), !0).forEach(function(o) {
1047
- En(e, o, t[o]);
1048
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Qr(Object(t)).forEach(function(o) {
1052
+ r % 2 ? Zr(Object(t), !0).forEach(function(o) {
1053
+ xn(e, o, t[o]);
1054
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Zr(Object(t)).forEach(function(o) {
1049
1055
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
1050
1056
  });
1051
1057
  }
1052
1058
  return e;
1053
1059
  }
1054
- function Tn() {
1060
+ function Cn() {
1055
1061
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1056
1062
  r[t] = arguments[t];
1057
1063
  return function(o) {
@@ -1071,38 +1077,38 @@ function We(e) {
1071
1077
  };
1072
1078
  };
1073
1079
  }
1074
- function Ze(e) {
1080
+ function er(e) {
1075
1081
  return {}.toString.call(e).includes("Object");
1076
1082
  }
1077
- function On(e) {
1083
+ function jn(e) {
1078
1084
  return !Object.keys(e).length;
1079
1085
  }
1080
- function Ne(e) {
1086
+ function Ve(e) {
1081
1087
  return typeof e == "function";
1082
1088
  }
1083
- function Pn(e, r) {
1089
+ function An(e, r) {
1084
1090
  return Object.prototype.hasOwnProperty.call(e, r);
1085
1091
  }
1086
- function Rn(e, r) {
1087
- return Ze(r) || Re("changeType"), Object.keys(r).some(function(t) {
1088
- return !Pn(e, t);
1092
+ function Mn(e, r) {
1093
+ return er(r) || Re("changeType"), Object.keys(r).some(function(t) {
1094
+ return !An(e, t);
1089
1095
  }) && Re("changeField"), r;
1090
1096
  }
1091
- function _n(e) {
1092
- Ne(e) || Re("selectorType");
1097
+ function In(e) {
1098
+ Ve(e) || Re("selectorType");
1093
1099
  }
1094
- function xn(e) {
1095
- Ne(e) || Ze(e) || Re("handlerType"), Ze(e) && Object.values(e).some(function(r) {
1096
- return !Ne(r);
1100
+ function zn(e) {
1101
+ Ve(e) || er(e) || Re("handlerType"), er(e) && Object.values(e).some(function(r) {
1102
+ return !Ve(r);
1097
1103
  }) && Re("handlersType");
1098
1104
  }
1099
- function Cn(e) {
1100
- e || Re("initialIsRequired"), Ze(e) || Re("initialType"), On(e) && Re("initialContent");
1105
+ function kn(e) {
1106
+ e || Re("initialIsRequired"), er(e) || Re("initialType"), jn(e) && Re("initialContent");
1101
1107
  }
1102
- function jn(e, r) {
1108
+ function Dn(e, r) {
1103
1109
  throw new Error(e[r] || e.default);
1104
1110
  }
1105
- var An = {
1111
+ var qn = {
1106
1112
  initialIsRequired: "initial state is required",
1107
1113
  initialType: "initial state should be an object",
1108
1114
  initialContent: "initial state shouldn't be an empty object",
@@ -1112,49 +1118,49 @@ var An = {
1112
1118
  changeType: "provided value of changes should be an object",
1113
1119
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
1114
1120
  default: "an unknown error accured in `state-local` package"
1115
- }, Re = We(jn)(An), Ge = {
1116
- changes: Rn,
1117
- selector: _n,
1118
- handler: xn,
1119
- initial: Cn
1121
+ }, Re = We(Dn)(qn), Je = {
1122
+ changes: Mn,
1123
+ selector: In,
1124
+ handler: zn,
1125
+ initial: kn
1120
1126
  };
1121
- function Mn(e) {
1127
+ function Fn(e) {
1122
1128
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1123
- Ge.initial(e), Ge.handler(r);
1129
+ Je.initial(e), Je.handler(r);
1124
1130
  var t = {
1125
1131
  current: e
1126
- }, o = We(Dn)(t, r), s = We(zn)(t), i = We(Ge.changes)(e), c = We(In)(t);
1132
+ }, o = We(Un)(t, r), s = We(Ln)(t), i = We(Je.changes)(e), c = We($n)(t);
1127
1133
  function u() {
1128
- var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(y) {
1129
- return y;
1134
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
1135
+ return b;
1130
1136
  };
1131
- return Ge.selector(v), v(t.current);
1137
+ return Je.selector(m), m(t.current);
1132
1138
  }
1133
- function d(v) {
1134
- Tn(o, s, i, c)(v);
1139
+ function d(m) {
1140
+ Cn(o, s, i, c)(m);
1135
1141
  }
1136
1142
  return [u, d];
1137
1143
  }
1138
- function In(e, r) {
1139
- return Ne(r) ? r(e.current) : r;
1144
+ function $n(e, r) {
1145
+ return Ve(r) ? r(e.current) : r;
1140
1146
  }
1141
- function zn(e, r) {
1142
- return e.current = Zr(Zr({}, e.current), r), r;
1147
+ function Ln(e, r) {
1148
+ return e.current = et(et({}, e.current), r), r;
1143
1149
  }
1144
- function Dn(e, r, t) {
1145
- return Ne(r) ? r(e.current) : Object.keys(t).forEach(function(o) {
1150
+ function Un(e, r, t) {
1151
+ return Ve(r) ? r(e.current) : Object.keys(t).forEach(function(o) {
1146
1152
  var s;
1147
1153
  return (s = r[o]) === null || s === void 0 ? void 0 : s.call(r, e.current[o]);
1148
1154
  }), t;
1149
1155
  }
1150
- var kn = {
1151
- create: Mn
1152
- }, qn = {
1156
+ var Wn = {
1157
+ create: Fn
1158
+ }, Yn = {
1153
1159
  paths: {
1154
1160
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
1155
1161
  }
1156
1162
  };
1157
- function Fn(e) {
1163
+ function Nn(e) {
1158
1164
  return function r() {
1159
1165
  for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
1160
1166
  s[i] = arguments[i];
@@ -1165,23 +1171,23 @@ function Fn(e) {
1165
1171
  };
1166
1172
  };
1167
1173
  }
1168
- function $n(e) {
1174
+ function Vn(e) {
1169
1175
  return {}.toString.call(e).includes("Object");
1170
1176
  }
1171
- function Ln(e) {
1172
- return e || et("configIsRequired"), $n(e) || et("configType"), e.urls ? (Un(), {
1177
+ function Bn(e) {
1178
+ return e || rt("configIsRequired"), Vn(e) || rt("configType"), e.urls ? (Kn(), {
1173
1179
  paths: {
1174
1180
  vs: e.urls.monacoBase
1175
1181
  }
1176
1182
  }) : e;
1177
1183
  }
1178
- function Un() {
1179
- console.warn(pt.deprecation);
1184
+ function Kn() {
1185
+ console.warn(gt.deprecation);
1180
1186
  }
1181
- function Wn(e, r) {
1187
+ function Hn(e, r) {
1182
1188
  throw new Error(e[r] || e.default);
1183
1189
  }
1184
- var pt = {
1190
+ var gt = {
1185
1191
  configIsRequired: "the configuration object is required",
1186
1192
  configType: "the configuration object should be an object",
1187
1193
  default: "an unknown error accured in `@monaco-editor/loader` package",
@@ -1195,9 +1201,9 @@ var pt = {
1195
1201
 
1196
1202
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
1197
1203
  `
1198
- }, et = Fn(Wn)(pt), Yn = {
1199
- config: Ln
1200
- }, Nn = function() {
1204
+ }, rt = Nn(Hn)(gt), Gn = {
1205
+ config: Bn
1206
+ }, Jn = function() {
1201
1207
  for (var r = arguments.length, t = new Array(r), o = 0; o < r; o++)
1202
1208
  t[o] = arguments[o];
1203
1209
  return function(s) {
@@ -1206,43 +1212,43 @@ var pt = {
1206
1212
  }, s);
1207
1213
  };
1208
1214
  };
1209
- function gt(e, r) {
1215
+ function ht(e, r) {
1210
1216
  return Object.keys(r).forEach(function(t) {
1211
- r[t] instanceof Object && e[t] && Object.assign(r[t], gt(e[t], r[t]));
1212
- }), Jr(Jr({}, e), r);
1217
+ r[t] instanceof Object && e[t] && Object.assign(r[t], ht(e[t], r[t]));
1218
+ }), Xr(Xr({}, e), r);
1213
1219
  }
1214
- var Vn = {
1220
+ var Xn = {
1215
1221
  type: "cancelation",
1216
1222
  msg: "operation is manually canceled"
1217
1223
  };
1218
- function dr(e) {
1224
+ function pr(e) {
1219
1225
  var r = !1, t = new Promise(function(o, s) {
1220
1226
  e.then(function(i) {
1221
- return r ? s(Vn) : o(i);
1227
+ return r ? s(Xn) : o(i);
1222
1228
  }), e.catch(s);
1223
1229
  });
1224
1230
  return t.cancel = function() {
1225
1231
  return r = !0;
1226
1232
  }, t;
1227
1233
  }
1228
- var Bn = kn.create({
1229
- config: qn,
1234
+ var Qn = Wn.create({
1235
+ config: Yn,
1230
1236
  isInitialized: !1,
1231
1237
  resolve: null,
1232
1238
  reject: null,
1233
1239
  monaco: null
1234
- }), ht = mn(Bn, 2), Be = ht[0], ir = ht[1];
1235
- function Kn(e) {
1236
- var r = Yn.config(e), t = r.monaco, o = vn(r, ["monaco"]);
1237
- ir(function(s) {
1240
+ }), mt = Tn(Qn, 2), Ke = mt[0], ar = mt[1];
1241
+ function Zn(e) {
1242
+ var r = Gn.config(e), t = r.monaco, o = En(r, ["monaco"]);
1243
+ ar(function(s) {
1238
1244
  return {
1239
- config: gt(s.config, o),
1245
+ config: ht(s.config, o),
1240
1246
  monaco: t
1241
1247
  };
1242
1248
  });
1243
1249
  }
1244
- function Hn() {
1245
- var e = Be(function(r) {
1250
+ function eo() {
1251
+ var e = Ke(function(r) {
1246
1252
  var t = r.monaco, o = r.isInitialized, s = r.resolve;
1247
1253
  return {
1248
1254
  monaco: t,
@@ -1251,37 +1257,37 @@ function Hn() {
1251
1257
  };
1252
1258
  });
1253
1259
  if (!e.isInitialized) {
1254
- if (ir({
1260
+ if (ar({
1255
1261
  isInitialized: !0
1256
1262
  }), e.monaco)
1257
- return e.resolve(e.monaco), dr(pr);
1263
+ return e.resolve(e.monaco), pr(gr);
1258
1264
  if (window.monaco && window.monaco.editor)
1259
- return vt(window.monaco), e.resolve(window.monaco), dr(pr);
1260
- Nn(Gn, Xn)(Qn);
1265
+ return vt(window.monaco), e.resolve(window.monaco), pr(gr);
1266
+ Jn(ro, no)(oo);
1261
1267
  }
1262
- return dr(pr);
1268
+ return pr(gr);
1263
1269
  }
1264
- function Gn(e) {
1270
+ function ro(e) {
1265
1271
  return document.body.appendChild(e);
1266
1272
  }
1267
- function Jn(e) {
1273
+ function to(e) {
1268
1274
  var r = document.createElement("script");
1269
1275
  return e && (r.src = e), r;
1270
1276
  }
1271
- function Xn(e) {
1272
- var r = Be(function(o) {
1277
+ function no(e) {
1278
+ var r = Ke(function(o) {
1273
1279
  var s = o.config, i = o.reject;
1274
1280
  return {
1275
1281
  config: s,
1276
1282
  reject: i
1277
1283
  };
1278
- }), t = Jn("".concat(r.config.paths.vs, "/loader.js"));
1284
+ }), t = to("".concat(r.config.paths.vs, "/loader.js"));
1279
1285
  return t.onload = function() {
1280
1286
  return e();
1281
1287
  }, t.onerror = r.reject, t;
1282
1288
  }
1283
- function Qn() {
1284
- var e = Be(function(t) {
1289
+ function oo() {
1290
+ var e = Ke(function(t) {
1285
1291
  var o = t.config, s = t.resolve, i = t.reject;
1286
1292
  return {
1287
1293
  config: o,
@@ -1296,26 +1302,26 @@ function Qn() {
1296
1302
  });
1297
1303
  }
1298
1304
  function vt(e) {
1299
- Be().monaco || ir({
1305
+ Ke().monaco || ar({
1300
1306
  monaco: e
1301
1307
  });
1302
1308
  }
1303
- function Zn() {
1304
- return Be(function(e) {
1309
+ function io() {
1310
+ return Ke(function(e) {
1305
1311
  var r = e.monaco;
1306
1312
  return r;
1307
1313
  });
1308
1314
  }
1309
- var pr = new Promise(function(e, r) {
1310
- return ir({
1315
+ var gr = new Promise(function(e, r) {
1316
+ return ar({
1311
1317
  resolve: e,
1312
1318
  reject: r
1313
1319
  });
1314
- }), mt = {
1315
- config: Kn,
1316
- init: Hn,
1317
- __getMonacoInstance: Zn
1318
- }, S = { exports: {} }, gr = { exports: {} }, U = {};
1320
+ }), Ye = {
1321
+ config: Zn,
1322
+ init: eo,
1323
+ __getMonacoInstance: io
1324
+ }, S = { exports: {} }, hr = { exports: {} }, U = {};
1319
1325
  /** @license React v16.13.1
1320
1326
  * react-is.production.min.js
1321
1327
  *
@@ -1324,12 +1330,12 @@ var pr = new Promise(function(e, r) {
1324
1330
  * This source code is licensed under the MIT license found in the
1325
1331
  * LICENSE file in the root directory of this source tree.
1326
1332
  */
1327
- var rt;
1328
- function eo() {
1329
- if (rt)
1333
+ var tt;
1334
+ function ao() {
1335
+ if (tt)
1330
1336
  return U;
1331
- rt = 1;
1332
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
1337
+ tt = 1;
1338
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1333
1339
  function H(p) {
1334
1340
  if (typeof p == "object" && p !== null) {
1335
1341
  var X = p.$$typeof;
@@ -1337,7 +1343,7 @@ function eo() {
1337
1343
  case r:
1338
1344
  switch (p = p.type, p) {
1339
1345
  case d:
1340
- case v:
1346
+ case m:
1341
1347
  case o:
1342
1348
  case i:
1343
1349
  case s:
@@ -1346,7 +1352,7 @@ function eo() {
1346
1352
  default:
1347
1353
  switch (p = p && p.$$typeof, p) {
1348
1354
  case u:
1349
- case y:
1355
+ case b:
1350
1356
  case Y:
1351
1357
  case x:
1352
1358
  case c:
@@ -1361,9 +1367,9 @@ function eo() {
1361
1367
  }
1362
1368
  }
1363
1369
  function N(p) {
1364
- return H(p) === v;
1370
+ return H(p) === m;
1365
1371
  }
1366
- return U.AsyncMode = d, U.ConcurrentMode = v, U.ContextConsumer = u, U.ContextProvider = c, U.Element = r, U.ForwardRef = y, U.Fragment = o, U.Lazy = Y, U.Memo = x, U.Portal = t, U.Profiler = i, U.StrictMode = s, U.Suspense = h, U.isAsyncMode = function(p) {
1372
+ return U.AsyncMode = d, U.ConcurrentMode = m, U.ContextConsumer = u, U.ContextProvider = c, U.Element = r, U.ForwardRef = b, U.Fragment = o, U.Lazy = Y, U.Memo = x, U.Portal = t, U.Profiler = i, U.StrictMode = s, U.Suspense = h, U.isAsyncMode = function(p) {
1367
1373
  return N(p) || H(p) === d;
1368
1374
  }, U.isConcurrentMode = N, U.isContextConsumer = function(p) {
1369
1375
  return H(p) === u;
@@ -1372,7 +1378,7 @@ function eo() {
1372
1378
  }, U.isElement = function(p) {
1373
1379
  return typeof p == "object" && p !== null && p.$$typeof === r;
1374
1380
  }, U.isForwardRef = function(p) {
1375
- return H(p) === y;
1381
+ return H(p) === b;
1376
1382
  }, U.isFragment = function(p) {
1377
1383
  return H(p) === o;
1378
1384
  }, U.isLazy = function(p) {
@@ -1388,7 +1394,7 @@ function eo() {
1388
1394
  }, U.isSuspense = function(p) {
1389
1395
  return H(p) === h;
1390
1396
  }, U.isValidElementType = function(p) {
1391
- return typeof p == "string" || typeof p == "function" || p === o || p === v || p === i || p === s || p === h || p === m || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === y || p.$$typeof === G || p.$$typeof === K || p.$$typeof === k || p.$$typeof === D);
1397
+ return typeof p == "string" || typeof p == "function" || p === o || p === m || p === i || p === s || p === h || p === v || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === b || p.$$typeof === G || p.$$typeof === K || p.$$typeof === D || p.$$typeof === k);
1392
1398
  }, U.typeOf = H, U;
1393
1399
  }
1394
1400
  var W = {};
@@ -1400,12 +1406,12 @@ var W = {};
1400
1406
  * This source code is licensed under the MIT license found in the
1401
1407
  * LICENSE file in the root directory of this source tree.
1402
1408
  */
1403
- var tt;
1404
- function ro() {
1405
- return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
1406
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
1409
+ var nt;
1410
+ function so() {
1411
+ return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
1412
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1407
1413
  function H(w) {
1408
- return typeof w == "string" || typeof w == "function" || w === o || w === v || w === i || w === s || w === h || w === m || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === y || w.$$typeof === G || w.$$typeof === K || w.$$typeof === k || w.$$typeof === D);
1414
+ return typeof w == "string" || typeof w == "function" || w === o || w === m || w === i || w === s || w === h || w === v || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === b || w.$$typeof === G || w.$$typeof === K || w.$$typeof === D || w.$$typeof === k);
1409
1415
  }
1410
1416
  function N(w) {
1411
1417
  if (typeof w == "object" && w !== null) {
@@ -1415,7 +1421,7 @@ function ro() {
1415
1421
  var je = w.type;
1416
1422
  switch (je) {
1417
1423
  case d:
1418
- case v:
1424
+ case m:
1419
1425
  case o:
1420
1426
  case i:
1421
1427
  case s:
@@ -1425,7 +1431,7 @@ function ro() {
1425
1431
  var Ce = je && je.$$typeof;
1426
1432
  switch (Ce) {
1427
1433
  case u:
1428
- case y:
1434
+ case b:
1429
1435
  case Y:
1430
1436
  case x:
1431
1437
  case c:
@@ -1439,12 +1445,12 @@ function ro() {
1439
1445
  }
1440
1446
  }
1441
1447
  }
1442
- var p = d, X = v, ee = u, Se = c, Q = r, $ = y, ge = o, be = Y, ie = x, z = t, B = i, te = s, pe = h, Ee = !1;
1448
+ var p = d, X = m, ee = u, Se = c, Q = r, $ = b, ge = o, ye = Y, ie = x, z = t, B = i, te = s, pe = h, Ee = !1;
1443
1449
  function Pe(w) {
1444
1450
  return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(w) || N(w) === d;
1445
1451
  }
1446
1452
  function l(w) {
1447
- return N(w) === v;
1453
+ return N(w) === m;
1448
1454
  }
1449
1455
  function g(w) {
1450
1456
  return N(w) === u;
@@ -1456,7 +1462,7 @@ function ro() {
1456
1462
  return typeof w == "object" && w !== null && w.$$typeof === r;
1457
1463
  }
1458
1464
  function P(w) {
1459
- return N(w) === y;
1465
+ return N(w) === b;
1460
1466
  }
1461
1467
  function C(w) {
1462
1468
  return N(w) === o;
@@ -1479,25 +1485,25 @@ function ro() {
1479
1485
  function ae(w) {
1480
1486
  return N(w) === h;
1481
1487
  }
1482
- W.AsyncMode = p, W.ConcurrentMode = X, W.ContextConsumer = ee, W.ContextProvider = Se, W.Element = Q, W.ForwardRef = $, W.Fragment = ge, W.Lazy = be, W.Memo = ie, W.Portal = z, W.Profiler = B, W.StrictMode = te, W.Suspense = pe, W.isAsyncMode = Pe, W.isConcurrentMode = l, W.isContextConsumer = g, W.isContextProvider = T, W.isElement = O, W.isForwardRef = P, W.isFragment = C, W.isLazy = R, W.isMemo = _, W.isPortal = j, W.isProfiler = F, W.isStrictMode = A, W.isSuspense = ae, W.isValidElementType = H, W.typeOf = N;
1488
+ W.AsyncMode = p, W.ConcurrentMode = X, W.ContextConsumer = ee, W.ContextProvider = Se, W.Element = Q, W.ForwardRef = $, W.Fragment = ge, W.Lazy = ye, W.Memo = ie, W.Portal = z, W.Profiler = B, W.StrictMode = te, W.Suspense = pe, W.isAsyncMode = Pe, W.isConcurrentMode = l, W.isContextConsumer = g, W.isContextProvider = T, W.isElement = O, W.isForwardRef = P, W.isFragment = C, W.isLazy = R, W.isMemo = _, W.isPortal = j, W.isProfiler = F, W.isStrictMode = A, W.isSuspense = ae, W.isValidElementType = H, W.typeOf = N;
1483
1489
  }()), W;
1484
1490
  }
1485
- var nt;
1486
- function bt() {
1487
- return nt || (nt = 1, function(e) {
1488
- process.env.NODE_ENV === "production" ? e.exports = eo() : e.exports = ro();
1489
- }(gr)), gr.exports;
1491
+ var ot;
1492
+ function yt() {
1493
+ return ot || (ot = 1, function(e) {
1494
+ process.env.NODE_ENV === "production" ? e.exports = ao() : e.exports = so();
1495
+ }(hr)), hr.exports;
1490
1496
  }
1491
1497
  /*
1492
1498
  object-assign
1493
1499
  (c) Sindre Sorhus
1494
1500
  @license MIT
1495
1501
  */
1496
- var hr, ot;
1497
- function to() {
1498
- if (ot)
1499
- return hr;
1500
- ot = 1;
1502
+ var mr, it;
1503
+ function co() {
1504
+ if (it)
1505
+ return mr;
1506
+ it = 1;
1501
1507
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1502
1508
  function o(i) {
1503
1509
  if (i == null)
@@ -1513,54 +1519,54 @@ function to() {
1513
1519
  return !1;
1514
1520
  for (var c = {}, u = 0; u < 10; u++)
1515
1521
  c["_" + String.fromCharCode(u)] = u;
1516
- var d = Object.getOwnPropertyNames(c).map(function(y) {
1517
- return c[y];
1522
+ var d = Object.getOwnPropertyNames(c).map(function(b) {
1523
+ return c[b];
1518
1524
  });
1519
1525
  if (d.join("") !== "0123456789")
1520
1526
  return !1;
1521
- var v = {};
1522
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
1523
- v[y] = y;
1524
- }), Object.keys(Object.assign({}, v)).join("") === "abcdefghijklmnopqrst";
1527
+ var m = {};
1528
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
1529
+ m[b] = b;
1530
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
1525
1531
  } catch {
1526
1532
  return !1;
1527
1533
  }
1528
1534
  }
1529
- return hr = s() ? Object.assign : function(i, c) {
1530
- for (var u, d = o(i), v, y = 1; y < arguments.length; y++) {
1531
- u = Object(arguments[y]);
1535
+ return mr = s() ? Object.assign : function(i, c) {
1536
+ for (var u, d = o(i), m, b = 1; b < arguments.length; b++) {
1537
+ u = Object(arguments[b]);
1532
1538
  for (var h in u)
1533
1539
  r.call(u, h) && (d[h] = u[h]);
1534
1540
  if (e) {
1535
- v = e(u);
1536
- for (var m = 0; m < v.length; m++)
1537
- t.call(u, v[m]) && (d[v[m]] = u[v[m]]);
1541
+ m = e(u);
1542
+ for (var v = 0; v < m.length; v++)
1543
+ t.call(u, m[v]) && (d[m[v]] = u[m[v]]);
1538
1544
  }
1539
1545
  }
1540
1546
  return d;
1541
- }, hr;
1547
+ }, mr;
1542
1548
  }
1543
- var vr, it;
1544
- function Ar() {
1545
- if (it)
1549
+ var vr, at;
1550
+ function Mr() {
1551
+ if (at)
1546
1552
  return vr;
1547
- it = 1;
1553
+ at = 1;
1548
1554
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1549
1555
  return vr = e, vr;
1550
1556
  }
1551
- var mr, at;
1552
- function yt() {
1553
- return at || (at = 1, mr = Function.call.bind(Object.prototype.hasOwnProperty)), mr;
1557
+ var yr, st;
1558
+ function bt() {
1559
+ return st || (st = 1, yr = Function.call.bind(Object.prototype.hasOwnProperty)), yr;
1554
1560
  }
1555
- var br, st;
1556
- function no() {
1557
- if (st)
1561
+ var br, ct;
1562
+ function uo() {
1563
+ if (ct)
1558
1564
  return br;
1559
- st = 1;
1565
+ ct = 1;
1560
1566
  var e = function() {
1561
1567
  };
1562
1568
  if (process.env.NODE_ENV !== "production") {
1563
- var r = Ar(), t = {}, o = yt();
1569
+ var r = Mr(), t = {}, o = bt();
1564
1570
  e = function(i) {
1565
1571
  var c = "Warning: " + i;
1566
1572
  typeof console < "u" && console.error(c);
@@ -1570,27 +1576,27 @@ function no() {
1570
1576
  }
1571
1577
  };
1572
1578
  }
1573
- function s(i, c, u, d, v) {
1579
+ function s(i, c, u, d, m) {
1574
1580
  if (process.env.NODE_ENV !== "production") {
1575
- for (var y in i)
1576
- if (o(i, y)) {
1581
+ for (var b in i)
1582
+ if (o(i, b)) {
1577
1583
  var h;
1578
1584
  try {
1579
- if (typeof i[y] != "function") {
1580
- var m = Error(
1581
- (d || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1585
+ if (typeof i[b] != "function") {
1586
+ var v = Error(
1587
+ (d || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1582
1588
  );
1583
- throw m.name = "Invariant Violation", m;
1589
+ throw v.name = "Invariant Violation", v;
1584
1590
  }
1585
- h = i[y](c, y, d, u, null, r);
1591
+ h = i[b](c, b, d, u, null, r);
1586
1592
  } catch (Y) {
1587
1593
  h = Y;
1588
1594
  }
1589
1595
  if (h && !(h instanceof Error) && e(
1590
- (d || "React class") + ": type specification of " + u + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1596
+ (d || "React class") + ": type specification of " + u + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1591
1597
  ), h instanceof Error && !(h.message in t)) {
1592
1598
  t[h.message] = !0;
1593
- var x = v ? v() : "";
1599
+ var x = m ? m() : "";
1594
1600
  e(
1595
1601
  "Failed " + u + " type: " + h.message + (x != null ? x : "")
1596
1602
  );
@@ -1602,12 +1608,12 @@ function no() {
1602
1608
  process.env.NODE_ENV !== "production" && (t = {});
1603
1609
  }, br = s, br;
1604
1610
  }
1605
- var yr, ct;
1606
- function oo() {
1607
- if (ct)
1608
- return yr;
1609
- ct = 1;
1610
- var e = bt(), r = to(), t = Ar(), o = yt(), s = no(), i = function() {
1611
+ var wr, ut;
1612
+ function lo() {
1613
+ if (ut)
1614
+ return wr;
1615
+ ut = 1;
1616
+ var e = yt(), r = co(), t = Mr(), o = bt(), s = uo(), i = function() {
1611
1617
  };
1612
1618
  process.env.NODE_ENV !== "production" && (i = function(u) {
1613
1619
  var d = "Warning: " + u;
@@ -1620,14 +1626,14 @@ function oo() {
1620
1626
  function c() {
1621
1627
  return null;
1622
1628
  }
1623
- return yr = function(u, d) {
1624
- var v = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
1629
+ return wr = function(u, d) {
1630
+ var m = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
1625
1631
  function h(l) {
1626
- var g = l && (v && l[v] || l[y]);
1632
+ var g = l && (m && l[m] || l[b]);
1627
1633
  if (typeof g == "function")
1628
1634
  return g;
1629
1635
  }
1630
- var m = "<<anonymous>>", x = {
1636
+ var v = "<<anonymous>>", x = {
1631
1637
  array: K("array"),
1632
1638
  bigint: K("bigint"),
1633
1639
  bool: K("boolean"),
@@ -1636,7 +1642,7 @@ function oo() {
1636
1642
  object: K("object"),
1637
1643
  string: K("string"),
1638
1644
  symbol: K("symbol"),
1639
- any: k(),
1645
+ any: D(),
1640
1646
  arrayOf: H,
1641
1647
  element: N(),
1642
1648
  elementType: p(),
@@ -1645,21 +1651,21 @@ function oo() {
1645
1651
  objectOf: Se,
1646
1652
  oneOf: ee,
1647
1653
  oneOfType: Q,
1648
- shape: be,
1654
+ shape: ye,
1649
1655
  exact: ie
1650
1656
  };
1651
1657
  function Y(l, g) {
1652
1658
  return l === g ? l !== 0 || 1 / l === 1 / g : l !== l && g !== g;
1653
1659
  }
1654
- function D(l, g) {
1660
+ function k(l, g) {
1655
1661
  this.message = l, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
1656
1662
  }
1657
- D.prototype = Error.prototype;
1663
+ k.prototype = Error.prototype;
1658
1664
  function G(l) {
1659
1665
  if (process.env.NODE_ENV !== "production")
1660
1666
  var g = {}, T = 0;
1661
1667
  function O(C, R, _, j, F, A, ae) {
1662
- if (j = j || m, A = A || _, ae !== t) {
1668
+ if (j = j || v, A = A || _, ae !== t) {
1663
1669
  if (d) {
1664
1670
  var w = new Error(
1665
1671
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -1672,7 +1678,7 @@ function oo() {
1672
1678
  ), g[he] = !0, T++);
1673
1679
  }
1674
1680
  }
1675
- return R[_] == null ? C ? R[_] === null ? new D("The " + F + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new D("The " + F + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, F, A);
1681
+ return R[_] == null ? C ? R[_] === null ? new k("The " + F + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new k("The " + F + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, F, A);
1676
1682
  }
1677
1683
  var P = O.bind(null, !1);
1678
1684
  return P.isRequired = O.bind(null, !0), P;
@@ -1682,7 +1688,7 @@ function oo() {
1682
1688
  var j = T[O], F = te(j);
1683
1689
  if (F !== l) {
1684
1690
  var A = pe(j);
1685
- return new D(
1691
+ return new k(
1686
1692
  "Invalid " + C + " `" + R + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + l + "`."),
1687
1693
  { expectedType: l }
1688
1694
  );
@@ -1691,17 +1697,17 @@ function oo() {
1691
1697
  }
1692
1698
  return G(g);
1693
1699
  }
1694
- function k() {
1700
+ function D() {
1695
1701
  return G(c);
1696
1702
  }
1697
1703
  function H(l) {
1698
1704
  function g(T, O, P, C, R) {
1699
1705
  if (typeof l != "function")
1700
- return new D("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
1706
+ return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
1701
1707
  var _ = T[O];
1702
1708
  if (!Array.isArray(_)) {
1703
1709
  var j = te(_);
1704
- return new D("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
1710
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
1705
1711
  }
1706
1712
  for (var F = 0; F < _.length; F++) {
1707
1713
  var A = l(_, F, P, C, R + "[" + F + "]", t);
@@ -1717,7 +1723,7 @@ function oo() {
1717
1723
  var R = g[T];
1718
1724
  if (!u(R)) {
1719
1725
  var _ = te(R);
1720
- return new D("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
1726
+ return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
1721
1727
  }
1722
1728
  return null;
1723
1729
  }
@@ -1728,7 +1734,7 @@ function oo() {
1728
1734
  var R = g[T];
1729
1735
  if (!e.isValidElementType(R)) {
1730
1736
  var _ = te(R);
1731
- return new D("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
1737
+ return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
1732
1738
  }
1733
1739
  return null;
1734
1740
  }
@@ -1737,8 +1743,8 @@ function oo() {
1737
1743
  function X(l) {
1738
1744
  function g(T, O, P, C, R) {
1739
1745
  if (!(T[O] instanceof l)) {
1740
- var _ = l.name || m, j = Pe(T[O]);
1741
- return new D("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
1746
+ var _ = l.name || v, j = Pe(T[O]);
1747
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
1742
1748
  }
1743
1749
  return null;
1744
1750
  }
@@ -1757,17 +1763,17 @@ function oo() {
1757
1763
  var he = pe(w);
1758
1764
  return he === "symbol" ? String(w) : w;
1759
1765
  });
1760
- return new D("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
1766
+ return new k("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
1761
1767
  }
1762
1768
  return G(g);
1763
1769
  }
1764
1770
  function Se(l) {
1765
1771
  function g(T, O, P, C, R) {
1766
1772
  if (typeof l != "function")
1767
- return new D("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
1773
+ return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
1768
1774
  var _ = T[O], j = te(_);
1769
1775
  if (j !== "object")
1770
- return new D("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
1776
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
1771
1777
  for (var F in _)
1772
1778
  if (o(_, F)) {
1773
1779
  var A = l(_, F, P, C, R + "." + F, t);
@@ -1796,26 +1802,26 @@ function oo() {
1796
1802
  w.data && o(w.data, "expectedType") && F.push(w.data.expectedType);
1797
1803
  }
1798
1804
  var he = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1799
- return new D("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
1805
+ return new k("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
1800
1806
  }
1801
1807
  return G(O);
1802
1808
  }
1803
1809
  function $() {
1804
1810
  function l(g, T, O, P, C) {
1805
- return z(g[T]) ? null : new D("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1811
+ return z(g[T]) ? null : new k("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1806
1812
  }
1807
1813
  return G(l);
1808
1814
  }
1809
1815
  function ge(l, g, T, O, P) {
1810
- return new D(
1816
+ return new k(
1811
1817
  (l || "React class") + ": " + g + " type `" + T + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
1812
1818
  );
1813
1819
  }
1814
- function be(l) {
1820
+ function ye(l) {
1815
1821
  function g(T, O, P, C, R) {
1816
1822
  var _ = T[O], j = te(_);
1817
1823
  if (j !== "object")
1818
- return new D("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1824
+ return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1819
1825
  for (var F in l) {
1820
1826
  var A = l[F];
1821
1827
  if (typeof A != "function")
@@ -1832,14 +1838,14 @@ function oo() {
1832
1838
  function g(T, O, P, C, R) {
1833
1839
  var _ = T[O], j = te(_);
1834
1840
  if (j !== "object")
1835
- return new D("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1841
+ return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1836
1842
  var F = r({}, T[O], l);
1837
1843
  for (var A in F) {
1838
1844
  var ae = l[A];
1839
1845
  if (o(l, A) && typeof ae != "function")
1840
1846
  return ge(P, C, R, A, pe(ae));
1841
1847
  if (!ae)
1842
- return new D(
1848
+ return new k(
1843
1849
  "Invalid " + C + " `" + R + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(T[O], null, " ") + `
1844
1850
  Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1845
1851
  );
@@ -1918,28 +1924,28 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1918
1924
  }
1919
1925
  }
1920
1926
  function Pe(l) {
1921
- return !l.constructor || !l.constructor.name ? m : l.constructor.name;
1927
+ return !l.constructor || !l.constructor.name ? v : l.constructor.name;
1922
1928
  }
1923
1929
  return x.checkPropTypes = s, x.resetWarningCache = s.resetWarningCache, x.PropTypes = x, x;
1924
- }, yr;
1930
+ }, wr;
1925
1931
  }
1926
- var wr, ut;
1927
- function io() {
1928
- if (ut)
1929
- return wr;
1930
- ut = 1;
1931
- var e = Ar();
1932
+ var Sr, lt;
1933
+ function fo() {
1934
+ if (lt)
1935
+ return Sr;
1936
+ lt = 1;
1937
+ var e = Mr();
1932
1938
  function r() {
1933
1939
  }
1934
1940
  function t() {
1935
1941
  }
1936
- return t.resetWarningCache = r, wr = function() {
1937
- function o(c, u, d, v, y, h) {
1942
+ return t.resetWarningCache = r, Sr = function() {
1943
+ function o(c, u, d, m, b, h) {
1938
1944
  if (h !== e) {
1939
- var m = new Error(
1945
+ var v = new Error(
1940
1946
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1941
1947
  );
1942
- throw m.name = "Invariant Violation", m;
1948
+ throw v.name = "Invariant Violation", v;
1943
1949
  }
1944
1950
  }
1945
1951
  o.isRequired = o;
@@ -1970,29 +1976,29 @@ function io() {
1970
1976
  resetWarningCache: r
1971
1977
  };
1972
1978
  return i.PropTypes = i, i;
1973
- }, wr;
1979
+ }, Sr;
1974
1980
  }
1975
1981
  if (process.env.NODE_ENV !== "production") {
1976
- var ao = bt(), so = !0;
1977
- S.exports = oo()(ao.isElement, so);
1982
+ var po = yt(), go = !0;
1983
+ S.exports = lo()(po.isElement, go);
1978
1984
  } else
1979
- S.exports = io()();
1980
- const co = {
1985
+ S.exports = fo()();
1986
+ const ho = {
1981
1987
  display: "flex",
1982
1988
  height: "100%",
1983
1989
  width: "100%",
1984
1990
  justifyContent: "center",
1985
1991
  alignItems: "center"
1986
1992
  };
1987
- function uo({
1993
+ function mo({
1988
1994
  content: e
1989
1995
  }) {
1990
1996
  return /* @__PURE__ */ a("div", {
1991
- style: co,
1997
+ style: ho,
1992
1998
  children: e
1993
1999
  });
1994
2000
  }
1995
- const Sr = {
2001
+ const Er = {
1996
2002
  wrapper: {
1997
2003
  display: "flex",
1998
2004
  position: "relative",
@@ -2016,18 +2022,18 @@ function wt({
2016
2022
  }) {
2017
2023
  return /* @__PURE__ */ I("section", {
2018
2024
  style: {
2019
- ...Sr.wrapper,
2025
+ ...Er.wrapper,
2020
2026
  width: e,
2021
2027
  height: r
2022
2028
  },
2023
2029
  ...c,
2024
- children: [!t && /* @__PURE__ */ a(uo, {
2030
+ children: [!t && /* @__PURE__ */ a(mo, {
2025
2031
  content: o
2026
2032
  }), /* @__PURE__ */ a("div", {
2027
2033
  ref: s,
2028
2034
  style: {
2029
- ...Sr.fullWidth,
2030
- ...!t && Sr.hide
2035
+ ...Er.fullWidth,
2036
+ ...!t && Er.hide
2031
2037
  },
2032
2038
  className: i
2033
2039
  })]
@@ -2041,31 +2047,31 @@ wt.propTypes = {
2041
2047
  className: S.exports.string,
2042
2048
  wrapperProps: S.exports.object
2043
2049
  };
2044
- var St = /* @__PURE__ */ ft(wt);
2050
+ var St = /* @__PURE__ */ dt(wt);
2045
2051
  function Et(e) {
2046
2052
  we(e, []);
2047
2053
  }
2048
- function ye(e, r, t = !0) {
2054
+ function be(e, r, t = !0) {
2049
2055
  const o = ue(!0);
2050
2056
  we(o.current || !t ? () => {
2051
2057
  o.current = !1;
2052
2058
  } : e, r);
2053
2059
  }
2054
- function Ye() {
2060
+ function Ne() {
2055
2061
  }
2056
- function er(e, r, t, o) {
2057
- return lo(e, o) || fo(e, r, t, o);
2062
+ function rr(e, r, t, o) {
2063
+ return vo(e, o) || yo(e, r, t, o);
2058
2064
  }
2059
- function lo(e, r) {
2065
+ function vo(e, r) {
2060
2066
  return e.editor.getModel(Tt(e, r));
2061
2067
  }
2062
- function fo(e, r, t, o) {
2068
+ function yo(e, r, t, o) {
2063
2069
  return e.editor.createModel(r, t, o && Tt(e, o));
2064
2070
  }
2065
2071
  function Tt(e, r) {
2066
2072
  return e.Uri.parse(r);
2067
2073
  }
2068
- function po(e) {
2074
+ function bo(e) {
2069
2075
  return e === void 0;
2070
2076
  }
2071
2077
  function Ot({
@@ -2078,58 +2084,58 @@ function Ot({
2078
2084
  modifiedModelPath: c,
2079
2085
  keepCurrentOriginalModel: u,
2080
2086
  keepCurrentModifiedModel: d,
2081
- theme: v,
2082
- loading: y,
2087
+ theme: m,
2088
+ loading: b,
2083
2089
  options: h,
2084
- height: m,
2090
+ height: v,
2085
2091
  width: x,
2086
2092
  className: Y,
2087
- wrapperProps: D,
2093
+ wrapperProps: k,
2088
2094
  beforeMount: G,
2089
2095
  onMount: K
2090
2096
  }) {
2091
- const [k, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), $ = ue(G);
2097
+ const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), $ = ue(G);
2092
2098
  Et(() => {
2093
- const z = mt.init();
2099
+ const z = Ye.init();
2094
2100
  return z.then((B) => (ee.current = B) && p(!1)).catch((B) => (B == null ? void 0 : B.type) !== "cancelation" && console.error("Monaco initialization: error:", B)), () => X.current ? ie() : z.cancel();
2095
- }), ye(() => {
2101
+ }), be(() => {
2096
2102
  const z = X.current.getModifiedEditor();
2097
2103
  z.getOption(ee.current.editor.EditorOption.readOnly) ? z.setValue(r) : r !== z.getValue() && (z.executeEdits("", [{
2098
2104
  range: z.getModel().getFullModelRange(),
2099
2105
  text: r,
2100
2106
  forceMoveMarkers: !0
2101
2107
  }]), z.pushUndoStop());
2102
- }, [r], k), ye(() => {
2108
+ }, [r], D), be(() => {
2103
2109
  X.current.getModel().original.setValue(e);
2104
- }, [e], k), ye(() => {
2110
+ }, [e], D), be(() => {
2105
2111
  const {
2106
2112
  original: z,
2107
2113
  modified: B
2108
2114
  } = X.current.getModel();
2109
2115
  ee.current.editor.setModelLanguage(z, o || t), ee.current.editor.setModelLanguage(B, s || t);
2110
- }, [t, o, s], k), ye(() => {
2111
- ee.current.editor.setTheme(v);
2112
- }, [v], k), ye(() => {
2116
+ }, [t, o, s], D), be(() => {
2117
+ ee.current.editor.setTheme(m);
2118
+ }, [m], D), be(() => {
2113
2119
  X.current.updateOptions(h);
2114
- }, [h], k);
2115
- const ge = Er(() => {
2120
+ }, [h], D);
2121
+ const ge = Tr(() => {
2116
2122
  $.current(ee.current);
2117
- const z = er(ee.current, e, o || t, i), B = er(ee.current, r, s || t, c);
2123
+ const z = rr(ee.current, e, o || t, i), B = rr(ee.current, r, s || t, c);
2118
2124
  X.current.setModel({
2119
2125
  original: z,
2120
2126
  modified: B
2121
2127
  });
2122
- }, [t, r, s, e, o, i, c]), be = Er(() => {
2128
+ }, [t, r, s, e, o, i, c]), ye = Tr(() => {
2123
2129
  X.current = ee.current.editor.createDiffEditor(Se.current, {
2124
2130
  automaticLayout: !0,
2125
2131
  ...h
2126
- }), ge(), ee.current.editor.setTheme(v), H(!0);
2127
- }, [h, v, ge]);
2132
+ }), ge(), ee.current.editor.setTheme(m), H(!0);
2133
+ }, [h, m, ge]);
2128
2134
  we(() => {
2129
- k && Q.current(X.current, ee.current);
2130
- }, [k]), we(() => {
2131
- !N && !k && be();
2132
- }, [N, k, be]);
2135
+ D && Q.current(X.current, ee.current);
2136
+ }, [D]), we(() => {
2137
+ !N && !D && ye();
2138
+ }, [N, D, ye]);
2133
2139
  function ie() {
2134
2140
  const z = X.current.getModel();
2135
2141
  if (!u) {
@@ -2144,12 +2150,12 @@ function Ot({
2144
2150
  }
2145
2151
  return /* @__PURE__ */ a(St, {
2146
2152
  width: x,
2147
- height: m,
2148
- isEditorReady: k,
2149
- loading: y,
2153
+ height: v,
2154
+ isEditorReady: D,
2155
+ loading: b,
2150
2156
  _ref: Se,
2151
2157
  className: Y,
2152
- wrapperProps: D
2158
+ wrapperProps: k
2153
2159
  });
2154
2160
  }
2155
2161
  Ot.propTypes = {
@@ -2181,17 +2187,17 @@ Ot.defaultProps = {
2181
2187
  width: "100%",
2182
2188
  height: "100%",
2183
2189
  wrapperProps: {},
2184
- beforeMount: Ye,
2185
- onMount: Ye
2190
+ beforeMount: Ne,
2191
+ onMount: Ne
2186
2192
  };
2187
- function go(e) {
2193
+ function wo(e) {
2188
2194
  const r = ue();
2189
2195
  return we(() => {
2190
2196
  r.current = e;
2191
2197
  }, [e]), r.current;
2192
2198
  }
2193
- const Je = /* @__PURE__ */ new Map();
2194
- function Mr({
2199
+ const Xe = /* @__PURE__ */ new Map();
2200
+ function Ir({
2195
2201
  defaultValue: e,
2196
2202
  defaultLanguage: r,
2197
2203
  defaultPath: t,
@@ -2201,54 +2207,54 @@ function Mr({
2201
2207
  theme: c,
2202
2208
  line: u,
2203
2209
  loading: d,
2204
- options: v,
2205
- overrideServices: y,
2210
+ options: m,
2211
+ overrideServices: b,
2206
2212
  saveViewState: h,
2207
- keepCurrentModel: m,
2213
+ keepCurrentModel: v,
2208
2214
  width: x,
2209
2215
  height: Y,
2210
- className: D,
2216
+ className: k,
2211
2217
  wrapperProps: G,
2212
2218
  beforeMount: K,
2213
- onMount: k,
2219
+ onMount: D,
2214
2220
  onChange: H,
2215
2221
  onValidate: N
2216
2222
  }) {
2217
- const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), $ = ue(null), ge = ue(null), be = ue(k), ie = ue(K), z = ue(null), B = ue(o), te = go(i), pe = ue(!1);
2223
+ const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), $ = ue(null), ge = ue(null), ye = ue(D), ie = ue(K), z = ue(null), B = ue(o), te = wo(i), pe = ue(!1);
2218
2224
  Et(() => {
2219
- const l = mt.init();
2225
+ const l = Ye.init();
2220
2226
  return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () => $.current ? Pe() : l.cancel();
2221
- }), ye(() => {
2222
- const l = er(Q.current, e || o, r || s, i);
2223
- l !== $.current.getModel() && (h && Je.set(te, $.current.saveViewState()), $.current.setModel(l), h && $.current.restoreViewState(Je.get(i)));
2224
- }, [i], p), ye(() => {
2225
- $.current.updateOptions(v);
2226
- }, [v], p), ye(() => {
2227
+ }), be(() => {
2228
+ const l = rr(Q.current, e || o, r || s, i);
2229
+ l !== $.current.getModel() && (h && Xe.set(te, $.current.saveViewState()), $.current.setModel(l), h && $.current.restoreViewState(Xe.get(i)));
2230
+ }, [i], p), be(() => {
2231
+ $.current.updateOptions(m);
2232
+ }, [m], p), be(() => {
2227
2233
  $.current.getOption(Q.current.editor.EditorOption.readOnly) ? $.current.setValue(o) : o !== $.current.getValue() && ($.current.executeEdits("", [{
2228
2234
  range: $.current.getModel().getFullModelRange(),
2229
2235
  text: o,
2230
2236
  forceMoveMarkers: !0
2231
2237
  }]), $.current.pushUndoStop());
2232
- }, [o], p), ye(() => {
2238
+ }, [o], p), be(() => {
2233
2239
  Q.current.editor.setModelLanguage($.current.getModel(), s);
2234
- }, [s], p), ye(() => {
2235
- po(u) || $.current.revealLine(u);
2236
- }, [u], p), ye(() => {
2240
+ }, [s], p), be(() => {
2241
+ bo(u) || $.current.revealLine(u);
2242
+ }, [u], p), be(() => {
2237
2243
  Q.current.editor.setTheme(c);
2238
2244
  }, [c], p);
2239
- const Ee = Er(() => {
2245
+ const Ee = Tr(() => {
2240
2246
  if (!pe.current) {
2241
2247
  ie.current(Q.current);
2242
- const l = i || t, g = er(Q.current, o || e, r || s, l);
2248
+ const l = i || t, g = rr(Q.current, o || e, r || s, l);
2243
2249
  $.current = Q.current.editor.create(ge.current, {
2244
2250
  model: g,
2245
2251
  automaticLayout: !0,
2246
- ...v
2247
- }, y), h && $.current.restoreViewState(Je.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
2252
+ ...m
2253
+ }, b), h && $.current.restoreViewState(Xe.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
2248
2254
  }
2249
- }, [e, r, t, o, s, i, v, y, h, c]);
2255
+ }, [e, r, t, o, s, i, m, b, h, c]);
2250
2256
  we(() => {
2251
- p && be.current($.current, Q.current);
2257
+ p && ye.current($.current, Q.current);
2252
2258
  }, [p]), we(() => {
2253
2259
  !ee && !p && Ee();
2254
2260
  }, [ee, p, Ee]), B.current = o, we(() => {
@@ -2277,8 +2283,8 @@ function Mr({
2277
2283
  }, [p, N]);
2278
2284
  function Pe() {
2279
2285
  var l;
2280
- if ((l = z.current) === null || l === void 0 || l.dispose(), m)
2281
- h && Je.set(i, $.current.saveViewState());
2286
+ if ((l = z.current) === null || l === void 0 || l.dispose(), v)
2287
+ h && Xe.set(i, $.current.saveViewState());
2282
2288
  else {
2283
2289
  var g;
2284
2290
  (g = $.current.getModel()) === null || g === void 0 || g.dispose();
@@ -2291,11 +2297,11 @@ function Mr({
2291
2297
  isEditorReady: p,
2292
2298
  loading: d,
2293
2299
  _ref: ge,
2294
- className: D,
2300
+ className: k,
2295
2301
  wrapperProps: G
2296
2302
  });
2297
2303
  }
2298
- Mr.propTypes = {
2304
+ Ir.propTypes = {
2299
2305
  defaultValue: S.exports.string,
2300
2306
  defaultPath: S.exports.string,
2301
2307
  defaultLanguage: S.exports.string,
@@ -2318,7 +2324,7 @@ Mr.propTypes = {
2318
2324
  onChange: S.exports.func,
2319
2325
  onValidate: S.exports.func
2320
2326
  };
2321
- Mr.defaultProps = {
2327
+ Ir.defaultProps = {
2322
2328
  theme: "light",
2323
2329
  loading: "Loading...",
2324
2330
  options: {},
@@ -2328,19 +2334,28 @@ Mr.defaultProps = {
2328
2334
  width: "100%",
2329
2335
  height: "100%",
2330
2336
  wrapperProps: {},
2331
- beforeMount: Ye,
2332
- onMount: Ye,
2333
- onValidate: Ye
2337
+ beforeMount: Ne,
2338
+ onMount: Ne,
2339
+ onValidate: Ne
2340
+ };
2341
+ var So = /* @__PURE__ */ dt(Ir);
2342
+ self.MonacoEnvironment = {
2343
+ getWorker(e, r) {
2344
+ return r === "json" ? new cn() : r === "css" || r === "scss" || r === "less" ? new an() : r === "html" || r === "handlebars" || r === "razor" ? new sn() : r === "typescript" || r === "javascript" ? new un() : new on();
2345
+ }
2334
2346
  };
2335
- var ho = /* @__PURE__ */ ft(Mr);
2336
- const vo = ({
2347
+ function Eo() {
2348
+ Ye.__getMonacoInstance() || (console.log("loading monaco"), Ye.config({ monaco: nn }), Ye.init().then((r) => console.log("here is the monaco instance:", r)));
2349
+ }
2350
+ Eo();
2351
+ const To = ({
2337
2352
  value: e,
2338
2353
  onChange: r
2339
- }) => /* @__PURE__ */ a(me, {
2354
+ }) => /* @__PURE__ */ a(ve, {
2340
2355
  sx: {
2341
2356
  position: "relative"
2342
2357
  },
2343
- children: /* @__PURE__ */ a(ho, {
2358
+ children: /* @__PURE__ */ a(So, {
2344
2359
  height: "500px",
2345
2360
  defaultLanguage: "javascript",
2346
2361
  value: e,
@@ -2354,7 +2369,7 @@ const vo = ({
2354
2369
  }
2355
2370
  }
2356
2371
  })
2357
- }), lt = xr(({
2372
+ }), ft = Cr(({
2358
2373
  value: e,
2359
2374
  onChange: r,
2360
2375
  label: t,
@@ -2364,11 +2379,11 @@ const vo = ({
2364
2379
  }, c) => {
2365
2380
  const [u, {
2366
2381
  setTrue: d,
2367
- setFalse: v
2368
- }] = tn(), [y, h] = Ie(e), m = () => {
2369
- v(), r(y);
2382
+ setFalse: m
2383
+ }] = tn(), [b, h] = Ie(e), v = () => {
2384
+ m(), r(b);
2370
2385
  }, x = () => {
2371
- v(), h(e);
2386
+ m(), h(e);
2372
2387
  }, Y = () => {
2373
2388
  h(s);
2374
2389
  };
@@ -2383,16 +2398,16 @@ const vo = ({
2383
2398
  flexGrow: 1
2384
2399
  },
2385
2400
  children: t
2386
- }), /* @__PURE__ */ a(Ve, {
2401
+ }), /* @__PURE__ */ a(Be, {
2387
2402
  size: 800,
2388
2403
  title: o,
2389
2404
  opened: u,
2390
- onClose: v,
2405
+ onClose: m,
2391
2406
  closeOnClickOutside: !1,
2392
2407
  withCloseButton: !1,
2393
- children: u && /* @__PURE__ */ I(Pr, {
2394
- children: [/* @__PURE__ */ a(vo, {
2395
- value: y,
2408
+ children: u && /* @__PURE__ */ I(Rr, {
2409
+ children: [/* @__PURE__ */ a(To, {
2410
+ value: b,
2396
2411
  onChange: h
2397
2412
  }), /* @__PURE__ */ I(se, {
2398
2413
  position: "apart",
@@ -2410,7 +2425,7 @@ const vo = ({
2410
2425
  variant: "subtle",
2411
2426
  children: "Cancel"
2412
2427
  }), /* @__PURE__ */ a(oe, {
2413
- onClick: m,
2428
+ onClick: v,
2414
2429
  children: "OK"
2415
2430
  })]
2416
2431
  })]
@@ -2418,13 +2433,13 @@ const vo = ({
2418
2433
  })
2419
2434
  })]
2420
2435
  });
2421
- }), Xe = {
2436
+ }), Qe = {
2422
2437
  pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
2423
2438
  `),
2424
2439
  post: ["function post_process(res, utils) {", " // your code goes here", " return data", "}"].join(`
2425
2440
  `)
2426
2441
  };
2427
- function mo({
2442
+ function Oo({
2428
2443
  submit: e,
2429
2444
  styles: r = qe
2430
2445
  }) {
@@ -2432,20 +2447,20 @@ function mo({
2432
2447
  control: t,
2433
2448
  setValue: o,
2434
2449
  handleSubmit: s
2435
- } = ke({
2450
+ } = De({
2436
2451
  defaultValues: {
2437
2452
  type: "http",
2438
2453
  key: "",
2439
2454
  config: {
2440
2455
  host: "",
2441
2456
  processing: {
2442
- pre: Xe.pre,
2443
- post: Xe.post
2457
+ pre: Qe.pre,
2458
+ post: Qe.post
2444
2459
  }
2445
2460
  }
2446
2461
  }
2447
2462
  });
2448
- return /* @__PURE__ */ a(me, {
2463
+ return /* @__PURE__ */ a(ve, {
2449
2464
  mx: "auto",
2450
2465
  children: /* @__PURE__ */ I("form", {
2451
2466
  onSubmit: s(e),
@@ -2462,7 +2477,7 @@ function mo({
2462
2477
  placeholder: "A unique name",
2463
2478
  ...i
2464
2479
  })
2465
- }), /* @__PURE__ */ a(Or, {
2480
+ }), /* @__PURE__ */ a(Pr, {
2466
2481
  label: "Connection Info",
2467
2482
  labelPosition: "center"
2468
2483
  }), /* @__PURE__ */ a(J, {
@@ -2487,10 +2502,10 @@ function mo({
2487
2502
  control: t,
2488
2503
  render: ({
2489
2504
  field: i
2490
- }) => /* @__PURE__ */ a(lt, {
2505
+ }) => /* @__PURE__ */ a(ft, {
2491
2506
  label: "Pre Processing",
2492
2507
  modalTitle: "This function will run before sending the request (for scenarios like encryption)",
2493
- defaultValue: Xe.pre,
2508
+ defaultValue: Qe.pre,
2494
2509
  ...i,
2495
2510
  styles: r
2496
2511
  })
@@ -2499,10 +2514,10 @@ function mo({
2499
2514
  control: t,
2500
2515
  render: ({
2501
2516
  field: i
2502
- }) => /* @__PURE__ */ a(lt, {
2517
+ }) => /* @__PURE__ */ a(ft, {
2503
2518
  label: "Post Processing",
2504
2519
  modalTitle: "This function will run after sending the request (for scenarios like decryption)",
2505
- defaultValue: Xe.post,
2520
+ defaultValue: Qe.post,
2506
2521
  ...i,
2507
2522
  styles: r
2508
2523
  })
@@ -2519,14 +2534,14 @@ function mo({
2519
2534
  })
2520
2535
  });
2521
2536
  }
2522
- function bo({
2537
+ function Po({
2523
2538
  postSubmit: e,
2524
2539
  styles: r = qe
2525
2540
  }) {
2526
2541
  const [t, o] = Ie("postgresql"), s = async ({
2527
2542
  type: u,
2528
2543
  key: d,
2529
- config: v
2544
+ config: m
2530
2545
  }) => {
2531
2546
  _e({
2532
2547
  id: "for-creating",
@@ -2538,23 +2553,23 @@ function bo({
2538
2553
  console.log({
2539
2554
  type: u,
2540
2555
  key: d,
2541
- config: v
2542
- }), await de.datasource.create(u, d, v), le({
2556
+ config: m
2557
+ }), await de.datasource.create(u, d, m), le({
2543
2558
  id: "for-creating",
2544
2559
  title: "Successful",
2545
2560
  message: "Data source is added",
2546
2561
  color: "green"
2547
2562
  }), e();
2548
- } catch (y) {
2563
+ } catch (b) {
2549
2564
  le({
2550
2565
  id: "for-creating",
2551
2566
  title: "Failed",
2552
- message: y.message,
2567
+ message: b.message,
2553
2568
  color: "red"
2554
2569
  });
2555
2570
  }
2556
2571
  }, i = t === "postgresql" || t === "mysql", c = t === "http";
2557
- return /* @__PURE__ */ I(me, {
2572
+ return /* @__PURE__ */ I(ve, {
2558
2573
  mx: "auto",
2559
2574
  children: [/* @__PURE__ */ a(Bt, {
2560
2575
  fullWidth: !0,
@@ -2572,23 +2587,23 @@ function bo({
2572
2587
  }],
2573
2588
  value: t,
2574
2589
  onChange: (u) => o(u)
2575
- }), i && /* @__PURE__ */ a(pn, {
2590
+ }), i && /* @__PURE__ */ a(bn, {
2576
2591
  submit: s,
2577
2592
  styles: r,
2578
2593
  type: t
2579
- }), c && /* @__PURE__ */ a(mo, {
2594
+ }), c && /* @__PURE__ */ a(Oo, {
2580
2595
  submit: s,
2581
2596
  styles: r
2582
2597
  })]
2583
2598
  });
2584
2599
  }
2585
- function yo({
2600
+ function Ro({
2586
2601
  onSuccess: e,
2587
2602
  styles: r = qe
2588
2603
  }) {
2589
- const [t, o] = De.useState(!1), s = () => o(!0), i = () => o(!1);
2604
+ const [t, o] = ke.useState(!1), s = () => o(!0), i = () => o(!1);
2590
2605
  return /* @__PURE__ */ I(Oe, {
2591
- children: [/* @__PURE__ */ a(Ve, {
2606
+ children: [/* @__PURE__ */ a(Be, {
2592
2607
  overflow: "inside",
2593
2608
  opened: t,
2594
2609
  onClose: () => o(!1),
@@ -2597,7 +2612,7 @@ function yo({
2597
2612
  onDragStart: (u) => {
2598
2613
  u.stopPropagation();
2599
2614
  },
2600
- children: /* @__PURE__ */ a(bo, {
2615
+ children: /* @__PURE__ */ a(Po, {
2601
2616
  postSubmit: () => {
2602
2617
  e(), i();
2603
2618
  },
@@ -2606,33 +2621,33 @@ function yo({
2606
2621
  }), /* @__PURE__ */ a(oe, {
2607
2622
  size: r.button.size,
2608
2623
  onClick: s,
2609
- leftIcon: /* @__PURE__ */ a(Cr, {
2624
+ leftIcon: /* @__PURE__ */ a(jr, {
2610
2625
  size: 20
2611
2626
  }),
2612
2627
  children: "Add a Data Source"
2613
2628
  })]
2614
2629
  });
2615
2630
  }
2616
- function Tr() {
2617
- return Tr = Object.assign ? Object.assign.bind() : function(e) {
2631
+ function Or() {
2632
+ return Or = Object.assign ? Object.assign.bind() : function(e) {
2618
2633
  for (var r = 1; r < arguments.length; r++) {
2619
2634
  var t = arguments[r];
2620
2635
  for (var o in t)
2621
2636
  Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
2622
2637
  }
2623
2638
  return e;
2624
- }, Tr.apply(this, arguments);
2639
+ }, Or.apply(this, arguments);
2625
2640
  }
2626
- function wo(e, r) {
2641
+ function _o(e, r) {
2627
2642
  if (e == null)
2628
2643
  return {};
2629
2644
  var t, o, s = function(c, u) {
2630
2645
  if (c == null)
2631
2646
  return {};
2632
- var d, v, y = {}, h = Object.keys(c);
2633
- for (v = 0; v < h.length; v++)
2634
- d = h[v], u.indexOf(d) >= 0 || (y[d] = c[d]);
2635
- return y;
2647
+ var d, m, b = {}, h = Object.keys(c);
2648
+ for (m = 0; m < h.length; m++)
2649
+ d = h[m], u.indexOf(d) >= 0 || (b[d] = c[d]);
2650
+ return b;
2636
2651
  }(e, r);
2637
2652
  if (Object.getOwnPropertySymbols) {
2638
2653
  var i = Object.getOwnPropertySymbols(e);
@@ -2641,19 +2656,19 @@ function wo(e, r) {
2641
2656
  }
2642
2657
  return s;
2643
2658
  }
2644
- var So = ["size", "color", "stroke"];
2645
- function Eo(e) {
2646
- var r = e.size, t = r === void 0 ? 24 : r, o = e.color, s = o === void 0 ? "currentColor" : o, i = e.stroke, c = i === void 0 ? 2 : i, u = wo(e, So);
2647
- return $e.createElement("svg", Tr({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: t, height: t, viewBox: "0 0 24 24", strokeWidth: c, stroke: s, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, u), $e.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), $e.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), $e.createElement("circle", { cx: 12, cy: 16, r: 1 }), $e.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
2659
+ var xo = ["size", "color", "stroke"];
2660
+ function Co(e) {
2661
+ var r = e.size, t = r === void 0 ? 24 : r, o = e.color, s = o === void 0 ? "currentColor" : o, i = e.stroke, c = i === void 0 ? 2 : i, u = _o(e, xo);
2662
+ return $e.createElement("svg", Or({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: t, height: t, viewBox: "0 0 24 24", strokeWidth: c, stroke: s, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, u), $e.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), $e.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), $e.createElement("circle", { cx: 12, cy: 16, r: 1 }), $e.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
2648
2663
  }
2649
- function To({
2664
+ function jo({
2650
2665
  id: e,
2651
2666
  name: r,
2652
2667
  isProtected: t,
2653
2668
  onSuccess: o,
2654
2669
  styles: s = qe
2655
2670
  }) {
2656
- const i = tr(), c = async () => {
2671
+ const i = nr(), c = async () => {
2657
2672
  !e || (_e({
2658
2673
  id: "for-deleting",
2659
2674
  title: "Pending",
@@ -2667,7 +2682,7 @@ function To({
2667
2682
  }), o());
2668
2683
  }, u = () => i.openConfirmModal({
2669
2684
  title: "Delete this data source?",
2670
- children: /* @__PURE__ */ a(Qe, {
2685
+ children: /* @__PURE__ */ a(Ze, {
2671
2686
  size: s.size,
2672
2687
  children: "This action won't affect your database."
2673
2688
  }),
@@ -2687,7 +2702,7 @@ function To({
2687
2702
  },
2688
2703
  label: "This is a preset datasource, it can not be deleted",
2689
2704
  children: /* @__PURE__ */ a("span", {
2690
- children: /* @__PURE__ */ a(Eo, {
2705
+ children: /* @__PURE__ */ a(Co, {
2691
2706
  size: 16,
2692
2707
  color: d.colors.gray[7]
2693
2708
  })
@@ -2696,17 +2711,17 @@ function To({
2696
2711
  size: s.button.size,
2697
2712
  color: "red",
2698
2713
  onClick: u,
2699
- leftIcon: /* @__PURE__ */ a(jr, {
2714
+ leftIcon: /* @__PURE__ */ a(Ar, {
2700
2715
  size: 20
2701
2716
  }),
2702
2717
  children: "Delete"
2703
2718
  });
2704
2719
  }
2705
- function No({
2720
+ function ti({
2706
2721
  styles: e = qe,
2707
2722
  config: r
2708
2723
  }) {
2709
- nr(r);
2724
+ or(r);
2710
2725
  const {
2711
2726
  data: t = [],
2712
2727
  loading: o,
@@ -2723,17 +2738,17 @@ function No({
2723
2738
  children: [/* @__PURE__ */ a(se, {
2724
2739
  pt: e.spacing,
2725
2740
  position: "right",
2726
- children: /* @__PURE__ */ a(yo, {
2741
+ children: /* @__PURE__ */ a(Ro, {
2727
2742
  onSuccess: s
2728
2743
  })
2729
- }), /* @__PURE__ */ I(me, {
2744
+ }), /* @__PURE__ */ I(ve, {
2730
2745
  mt: e.spacing,
2731
2746
  sx: {
2732
2747
  position: "relative"
2733
2748
  },
2734
- children: [/* @__PURE__ */ a(Rr, {
2749
+ children: [/* @__PURE__ */ a(_r, {
2735
2750
  visible: o
2736
- }), /* @__PURE__ */ I(_r, {
2751
+ }), /* @__PURE__ */ I(xr, {
2737
2752
  horizontalSpacing: e.spacing,
2738
2753
  verticalSpacing: e.spacing,
2739
2754
  fontSize: e.size,
@@ -2764,7 +2779,7 @@ function No({
2764
2779
  width: 200,
2765
2780
  children: /* @__PURE__ */ a(se, {
2766
2781
  position: "left",
2767
- children: /* @__PURE__ */ a(To, {
2782
+ children: /* @__PURE__ */ a(jo, {
2768
2783
  isProtected: d,
2769
2784
  id: i,
2770
2785
  name: c,
@@ -2778,25 +2793,25 @@ function No({
2778
2793
  })]
2779
2794
  });
2780
2795
  }
2781
- const Oo = xr(({
2796
+ const Ao = Cr(({
2782
2797
  label: e,
2783
2798
  value: r,
2784
2799
  description: t,
2785
2800
  ...o
2786
- }, s) => /* @__PURE__ */ I(Pr, {
2801
+ }, s) => /* @__PURE__ */ I(Rr, {
2787
2802
  spacing: 2,
2788
2803
  ref: s,
2789
2804
  ...o,
2790
- children: [/* @__PURE__ */ a(Qe, {
2805
+ children: [/* @__PURE__ */ a(Ze, {
2791
2806
  size: "sm",
2792
2807
  children: e
2793
- }), /* @__PURE__ */ a(Qe, {
2808
+ }), /* @__PURE__ */ a(Ze, {
2794
2809
  size: "xs",
2795
2810
  color: "dimmed",
2796
2811
  className: "role-description",
2797
2812
  children: t
2798
2813
  })]
2799
- })), Ir = xr(({
2814
+ })), zr = Cr(({
2800
2815
  styles: e,
2801
2816
  value: r,
2802
2817
  onChange: t
@@ -2818,7 +2833,7 @@ const Oo = xr(({
2818
2833
  size: e.size,
2819
2834
  required: !0,
2820
2835
  label: "Role",
2821
- itemComponent: Oo,
2836
+ itemComponent: Ao,
2822
2837
  data: s,
2823
2838
  disabled: i,
2824
2839
  styles: () => ({
@@ -2842,7 +2857,7 @@ const Oo = xr(({
2842
2857
  size: "xs"
2843
2858
  }
2844
2859
  };
2845
- function Po({
2860
+ function Mo({
2846
2861
  postSubmit: e,
2847
2862
  styles: r = xe,
2848
2863
  initialRoleID: t
@@ -2850,7 +2865,7 @@ function Po({
2850
2865
  const {
2851
2866
  control: o,
2852
2867
  handleSubmit: s
2853
- } = ke({
2868
+ } = De({
2854
2869
  defaultValues: {
2855
2870
  name: "",
2856
2871
  email: "",
@@ -2858,14 +2873,14 @@ function Po({
2858
2873
  password: ""
2859
2874
  }
2860
2875
  });
2861
- return /* @__PURE__ */ a(me, {
2876
+ return /* @__PURE__ */ a(ve, {
2862
2877
  mx: "auto",
2863
2878
  children: /* @__PURE__ */ I("form", {
2864
2879
  onSubmit: s(async ({
2865
2880
  name: c,
2866
2881
  email: u,
2867
2882
  password: d,
2868
- role_id: v
2883
+ role_id: m
2869
2884
  }) => {
2870
2885
  try {
2871
2886
  _e({
@@ -2873,17 +2888,17 @@ function Po({
2873
2888
  title: "Pending",
2874
2889
  message: "Adding account...",
2875
2890
  loading: !0
2876
- }), await de.account.create(c, u, d, v), le({
2891
+ }), await de.account.create(c, u, d, m), le({
2877
2892
  id: "for-creating",
2878
2893
  title: "Successful",
2879
2894
  message: "Account is added",
2880
2895
  color: "green"
2881
2896
  }), e();
2882
- } catch (y) {
2897
+ } catch (b) {
2883
2898
  le({
2884
2899
  id: "for-creating",
2885
2900
  title: "Failed",
2886
- message: y.message,
2901
+ message: b.message,
2887
2902
  color: "red"
2888
2903
  });
2889
2904
  }
@@ -2917,7 +2932,7 @@ function Po({
2917
2932
  control: o,
2918
2933
  render: ({
2919
2934
  field: c
2920
- }) => /* @__PURE__ */ a(rr, {
2935
+ }) => /* @__PURE__ */ a(tr, {
2921
2936
  mb: r.spacing,
2922
2937
  size: r.size,
2923
2938
  required: !0,
@@ -2930,7 +2945,7 @@ function Po({
2930
2945
  control: o,
2931
2946
  render: ({
2932
2947
  field: c
2933
- }) => /* @__PURE__ */ a(Ir, {
2948
+ }) => /* @__PURE__ */ a(zr, {
2934
2949
  styles: r,
2935
2950
  ...c
2936
2951
  })
@@ -2946,14 +2961,14 @@ function Po({
2946
2961
  })
2947
2962
  });
2948
2963
  }
2949
- function Ro({
2964
+ function Io({
2950
2965
  onSuccess: e,
2951
2966
  styles: r = xe,
2952
2967
  initialRoleID: t
2953
2968
  }) {
2954
- const [o, s] = De.useState(!1), i = () => s(!0), c = () => s(!1);
2969
+ const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1);
2955
2970
  return /* @__PURE__ */ I(Oe, {
2956
- children: [/* @__PURE__ */ a(Ve, {
2971
+ children: [/* @__PURE__ */ a(Be, {
2957
2972
  overflow: "inside",
2958
2973
  opened: o,
2959
2974
  onClose: () => s(!1),
@@ -2962,7 +2977,7 @@ function Ro({
2962
2977
  onDragStart: (d) => {
2963
2978
  d.stopPropagation();
2964
2979
  },
2965
- children: /* @__PURE__ */ a(Po, {
2980
+ children: /* @__PURE__ */ a(Mo, {
2966
2981
  postSubmit: () => {
2967
2982
  e(), c();
2968
2983
  },
@@ -2972,20 +2987,20 @@ function Ro({
2972
2987
  }), /* @__PURE__ */ a(oe, {
2973
2988
  size: r.button.size,
2974
2989
  onClick: i,
2975
- leftIcon: /* @__PURE__ */ a(Cr, {
2990
+ leftIcon: /* @__PURE__ */ a(jr, {
2976
2991
  size: 20
2977
2992
  }),
2978
2993
  children: "Add an Account"
2979
2994
  })]
2980
2995
  });
2981
2996
  }
2982
- function _o({
2997
+ function zo({
2983
2998
  id: e,
2984
2999
  name: r,
2985
3000
  onSuccess: t,
2986
3001
  styles: o = xe
2987
3002
  }) {
2988
- const s = tr(), i = async () => {
3003
+ const s = nr(), i = async () => {
2989
3004
  if (!!e) {
2990
3005
  _e({
2991
3006
  id: "for-deleting",
@@ -3022,13 +3037,13 @@ function _o({
3022
3037
  size: o.button.size,
3023
3038
  color: "red",
3024
3039
  onClick: c,
3025
- leftIcon: /* @__PURE__ */ a(jr, {
3040
+ leftIcon: /* @__PURE__ */ a(Ar, {
3026
3041
  size: 20
3027
3042
  }),
3028
3043
  children: "Delete"
3029
3044
  });
3030
3045
  }
3031
- function xo({
3046
+ function ko({
3032
3047
  id: e,
3033
3048
  name: r,
3034
3049
  email: t,
@@ -3040,7 +3055,7 @@ function xo({
3040
3055
  control: c,
3041
3056
  handleSubmit: u,
3042
3057
  watch: d
3043
- } = ke({
3058
+ } = De({
3044
3059
  defaultValues: {
3045
3060
  name: r,
3046
3061
  email: t,
@@ -3048,11 +3063,11 @@ function xo({
3048
3063
  reset_password: !1,
3049
3064
  new_password: ""
3050
3065
  }
3051
- }), v = async ({
3052
- name: m,
3066
+ }), m = async ({
3067
+ name: v,
3053
3068
  email: x,
3054
3069
  role_id: Y,
3055
- reset_password: D,
3070
+ reset_password: k,
3056
3071
  new_password: G
3057
3072
  }) => {
3058
3073
  try {
@@ -3063,10 +3078,10 @@ function xo({
3063
3078
  loading: !0
3064
3079
  }), await de.account.edit({
3065
3080
  id: e,
3066
- name: m,
3081
+ name: v,
3067
3082
  email: x,
3068
3083
  role_id: Y,
3069
- reset_password: D,
3084
+ reset_password: k,
3070
3085
  new_password: G
3071
3086
  }), le({
3072
3087
  id: "for-updating",
@@ -3082,45 +3097,45 @@ function xo({
3082
3097
  color: "red"
3083
3098
  });
3084
3099
  }
3085
- }, [y, h] = d(["reset_password", "new_password"]);
3086
- return /* @__PURE__ */ a(me, {
3100
+ }, [b, h] = d(["reset_password", "new_password"]);
3101
+ return /* @__PURE__ */ a(ve, {
3087
3102
  mx: "auto",
3088
3103
  children: /* @__PURE__ */ I("form", {
3089
- onSubmit: u(v),
3104
+ onSubmit: u(m),
3090
3105
  children: [/* @__PURE__ */ a(J, {
3091
3106
  name: "name",
3092
3107
  control: c,
3093
3108
  render: ({
3094
- field: m
3109
+ field: v
3095
3110
  }) => /* @__PURE__ */ a(fe, {
3096
3111
  mb: i.spacing,
3097
3112
  size: i.size,
3098
3113
  required: !0,
3099
3114
  label: "Username",
3100
- ...m
3115
+ ...v
3101
3116
  })
3102
3117
  }), /* @__PURE__ */ a(J, {
3103
3118
  name: "email",
3104
3119
  control: c,
3105
3120
  render: ({
3106
- field: m
3121
+ field: v
3107
3122
  }) => /* @__PURE__ */ a(fe, {
3108
3123
  mb: i.spacing,
3109
3124
  size: i.size,
3110
3125
  required: !0,
3111
3126
  label: "Email",
3112
- ...m
3127
+ ...v
3113
3128
  })
3114
3129
  }), /* @__PURE__ */ a(J, {
3115
3130
  name: "role_id",
3116
3131
  control: c,
3117
3132
  render: ({
3118
- field: m
3119
- }) => /* @__PURE__ */ a(Ir, {
3133
+ field: v
3134
+ }) => /* @__PURE__ */ a(zr, {
3120
3135
  styles: i,
3121
- ...m
3136
+ ...v
3122
3137
  })
3123
- }), /* @__PURE__ */ a(Or, {
3138
+ }), /* @__PURE__ */ a(Pr, {
3124
3139
  my: 20,
3125
3140
  variant: "dashed",
3126
3141
  label: "",
@@ -3129,32 +3144,32 @@ function xo({
3129
3144
  name: "reset_password",
3130
3145
  control: c,
3131
3146
  render: ({
3132
- field: m
3147
+ field: v
3133
3148
  }) => /* @__PURE__ */ a(Jt, {
3134
3149
  mb: i.spacing,
3135
3150
  size: i.size,
3136
3151
  label: "Reset password",
3137
- checked: m.value,
3138
- onChange: (x) => m.onChange(x.currentTarget.checked),
3152
+ checked: v.value,
3153
+ onChange: (x) => v.onChange(x.currentTarget.checked),
3139
3154
  styles: {
3140
3155
  label: {
3141
3156
  verticalAlign: "middle"
3142
3157
  }
3143
3158
  }
3144
3159
  })
3145
- }), y && /* @__PURE__ */ a(J, {
3160
+ }), b && /* @__PURE__ */ a(J, {
3146
3161
  name: "new_password",
3147
3162
  control: c,
3148
3163
  render: ({
3149
- field: m
3150
- }) => /* @__PURE__ */ a(rr, {
3164
+ field: v
3165
+ }) => /* @__PURE__ */ a(tr, {
3151
3166
  autoComplete: "off",
3152
3167
  mb: i.spacing,
3153
3168
  size: i.size,
3154
3169
  required: !0,
3155
3170
  description: "Password must be at least 8 characters long",
3156
3171
  label: "New Password",
3157
- ...m
3172
+ ...v
3158
3173
  })
3159
3174
  }), /* @__PURE__ */ a(se, {
3160
3175
  position: "right",
@@ -3168,16 +3183,16 @@ function xo({
3168
3183
  })
3169
3184
  });
3170
3185
  }
3171
- function Co({
3186
+ function Do({
3172
3187
  account: e,
3173
3188
  onSuccess: r,
3174
3189
  styles: t = xe
3175
3190
  }) {
3176
- const [o, s] = De.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
3191
+ const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
3177
3192
  r(), c();
3178
3193
  };
3179
3194
  return /* @__PURE__ */ I(Oe, {
3180
- children: [/* @__PURE__ */ a(Ve, {
3195
+ children: [/* @__PURE__ */ a(Be, {
3181
3196
  overflow: "inside",
3182
3197
  opened: o,
3183
3198
  onClose: () => s(!1),
@@ -3186,7 +3201,7 @@ function Co({
3186
3201
  onDragStart: (d) => {
3187
3202
  d.stopPropagation();
3188
3203
  },
3189
- children: /* @__PURE__ */ a(xo, {
3204
+ children: /* @__PURE__ */ a(ko, {
3190
3205
  ...e,
3191
3206
  postSubmit: u,
3192
3207
  styles: t
@@ -3201,12 +3216,12 @@ function Co({
3201
3216
  })]
3202
3217
  });
3203
3218
  }
3204
- function Vo({
3219
+ function ni({
3205
3220
  styles: e = xe,
3206
3221
  config: r
3207
3222
  }) {
3208
- var v, y;
3209
- nr(r);
3223
+ var m, b;
3224
+ or(r);
3210
3225
  const {
3211
3226
  data: t = [],
3212
3227
  loading: o,
@@ -3221,33 +3236,33 @@ function Vo({
3221
3236
  }), {
3222
3237
  data: i = [],
3223
3238
  loading: c
3224
- } = ze(async () => (await de.role.list()).map((m) => ({
3225
- label: m.name,
3226
- value: m.id,
3227
- description: m.description,
3228
- disabled: m.id === 50
3239
+ } = ze(async () => (await de.role.list()).map((v) => ({
3240
+ label: v.name,
3241
+ value: v.id,
3242
+ description: v.description,
3243
+ disabled: v.id === 50
3229
3244
  })), {
3230
3245
  refreshDeps: []
3231
- }), u = dt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3232
- var m;
3233
- return (m = u.get(h)) != null ? m : h;
3246
+ }), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3247
+ var v;
3248
+ return (v = u.get(h)) != null ? v : h;
3234
3249
  };
3235
3250
  return /* @__PURE__ */ I(Oe, {
3236
3251
  children: [/* @__PURE__ */ a(se, {
3237
3252
  pt: e.spacing,
3238
3253
  position: "right",
3239
- children: /* @__PURE__ */ a(Ro, {
3254
+ children: /* @__PURE__ */ a(Io, {
3240
3255
  onSuccess: s,
3241
- initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
3256
+ initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
3242
3257
  })
3243
- }), /* @__PURE__ */ I(me, {
3258
+ }), /* @__PURE__ */ I(ve, {
3244
3259
  mt: e.spacing,
3245
3260
  sx: {
3246
3261
  position: "relative"
3247
3262
  },
3248
- children: [/* @__PURE__ */ a(Rr, {
3263
+ children: [/* @__PURE__ */ a(_r, {
3249
3264
  visible: o || c
3250
- }), /* @__PURE__ */ I(_r, {
3265
+ }), /* @__PURE__ */ I(xr, {
3251
3266
  horizontalSpacing: e.spacing,
3252
3267
  verticalSpacing: e.spacing,
3253
3268
  fontSize: e.size,
@@ -3267,10 +3282,10 @@ function Vo({
3267
3282
  }), /* @__PURE__ */ a("tbody", {
3268
3283
  children: t.map((h) => {
3269
3284
  const {
3270
- id: m,
3285
+ id: v,
3271
3286
  name: x,
3272
3287
  email: Y,
3273
- role_id: D
3288
+ role_id: k
3274
3289
  } = h;
3275
3290
  return /* @__PURE__ */ I("tr", {
3276
3291
  children: [/* @__PURE__ */ a("td", {
@@ -3281,42 +3296,42 @@ function Vo({
3281
3296
  children: Y
3282
3297
  }), /* @__PURE__ */ a("td", {
3283
3298
  width: 200,
3284
- children: d(D)
3299
+ children: d(k)
3285
3300
  }), /* @__PURE__ */ a("td", {
3286
3301
  width: 200,
3287
3302
  children: /* @__PURE__ */ I(se, {
3288
3303
  position: "left",
3289
- children: [/* @__PURE__ */ a(Co, {
3304
+ children: [/* @__PURE__ */ a(Do, {
3290
3305
  account: h,
3291
3306
  onSuccess: s
3292
- }), /* @__PURE__ */ a(_o, {
3293
- id: m,
3307
+ }), /* @__PURE__ */ a(zo, {
3308
+ id: v,
3294
3309
  name: x,
3295
3310
  onSuccess: s
3296
3311
  })]
3297
3312
  })
3298
3313
  })]
3299
- }, m);
3314
+ }, v);
3300
3315
  })
3301
3316
  })]
3302
3317
  })]
3303
3318
  })]
3304
3319
  });
3305
3320
  }
3306
- function jo({
3321
+ function qo({
3307
3322
  postSubmit: e,
3308
3323
  styles: r = xe
3309
3324
  }) {
3310
3325
  const {
3311
3326
  control: t,
3312
3327
  handleSubmit: o
3313
- } = ke({
3328
+ } = De({
3314
3329
  defaultValues: {
3315
3330
  name: "",
3316
3331
  password: ""
3317
3332
  }
3318
3333
  });
3319
- return /* @__PURE__ */ a(me, {
3334
+ return /* @__PURE__ */ a(ve, {
3320
3335
  mx: "auto",
3321
3336
  children: /* @__PURE__ */ I("form", {
3322
3337
  onSubmit: o(async ({
@@ -3363,7 +3378,7 @@ function jo({
3363
3378
  control: t,
3364
3379
  render: ({
3365
3380
  field: i
3366
- }) => /* @__PURE__ */ a(rr, {
3381
+ }) => /* @__PURE__ */ a(tr, {
3367
3382
  mb: r.spacing,
3368
3383
  size: r.size,
3369
3384
  required: !0,
@@ -3382,46 +3397,46 @@ function jo({
3382
3397
  })
3383
3398
  });
3384
3399
  }
3385
- function Bo({
3400
+ function oi({
3386
3401
  styles: e = xe,
3387
3402
  config: r,
3388
3403
  onSuccess: t
3389
3404
  }) {
3390
- return nr(r), /* @__PURE__ */ a(Oe, {
3391
- children: /* @__PURE__ */ a(me, {
3405
+ return or(r), /* @__PURE__ */ a(Oe, {
3406
+ children: /* @__PURE__ */ a(ve, {
3392
3407
  mt: e.spacing,
3393
3408
  sx: {
3394
3409
  position: "relative"
3395
3410
  },
3396
- children: /* @__PURE__ */ a(jo, {
3411
+ children: /* @__PURE__ */ a(qo, {
3397
3412
  styles: e,
3398
3413
  postSubmit: t
3399
3414
  })
3400
3415
  })
3401
3416
  });
3402
3417
  }
3403
- const ar = {
3418
+ const sr = {
3404
3419
  size: "sm",
3405
3420
  spacing: "md",
3406
3421
  button: {
3407
3422
  size: "xs"
3408
3423
  }
3409
3424
  };
3410
- function Ao({
3425
+ function Fo({
3411
3426
  postSubmit: e,
3412
- styles: r = ar,
3427
+ styles: r = sr,
3413
3428
  initialRoleID: t
3414
3429
  }) {
3415
3430
  const {
3416
3431
  control: o,
3417
3432
  handleSubmit: s
3418
- } = ke({
3433
+ } = De({
3419
3434
  defaultValues: {
3420
3435
  name: "",
3421
3436
  role_id: t
3422
3437
  }
3423
3438
  });
3424
- return /* @__PURE__ */ a(me, {
3439
+ return /* @__PURE__ */ a(ve, {
3425
3440
  mx: "auto",
3426
3441
  children: /* @__PURE__ */ I("form", {
3427
3442
  onSubmit: s(async ({
@@ -3437,14 +3452,14 @@ function Ao({
3437
3452
  });
3438
3453
  const {
3439
3454
  app_id: d,
3440
- app_secret: v
3455
+ app_secret: m
3441
3456
  } = await de.api_key.create(c, u);
3442
3457
  le({
3443
3458
  id: "for-creating",
3444
3459
  title: "Successful",
3445
3460
  message: "API Key is added",
3446
3461
  color: "green"
3447
- }), e(d, v);
3462
+ }), e(d, m);
3448
3463
  } catch (d) {
3449
3464
  le({
3450
3465
  id: "for-creating",
@@ -3471,7 +3486,7 @@ function Ao({
3471
3486
  control: o,
3472
3487
  render: ({
3473
3488
  field: c
3474
- }) => /* @__PURE__ */ a(Ir, {
3489
+ }) => /* @__PURE__ */ a(zr, {
3475
3490
  styles: r,
3476
3491
  ...c
3477
3492
  })
@@ -3487,32 +3502,32 @@ function Ao({
3487
3502
  })
3488
3503
  });
3489
3504
  }
3490
- function Mo({
3505
+ function $o({
3491
3506
  onSuccess: e,
3492
- styles: r = ar,
3507
+ styles: r = sr,
3493
3508
  initialRoleID: t
3494
3509
  }) {
3495
- const o = tr(), [s, i] = De.useState(!1), c = () => i(!0), u = () => i(!1);
3510
+ const o = nr(), [s, i] = ke.useState(!1), c = () => i(!0), u = () => i(!1);
3496
3511
  return /* @__PURE__ */ I(Oe, {
3497
- children: [/* @__PURE__ */ a(Ve, {
3512
+ children: [/* @__PURE__ */ a(Be, {
3498
3513
  overflow: "inside",
3499
3514
  opened: s,
3500
3515
  onClose: () => i(!1),
3501
3516
  title: "Add an API Key",
3502
3517
  trapFocus: !0,
3503
- onDragStart: (v) => {
3504
- v.stopPropagation();
3518
+ onDragStart: (m) => {
3519
+ m.stopPropagation();
3505
3520
  },
3506
- children: /* @__PURE__ */ a(Ao, {
3507
- postSubmit: (v, y) => {
3521
+ children: /* @__PURE__ */ a(Fo, {
3522
+ postSubmit: (m, b) => {
3508
3523
  u(), o.openModal({
3509
3524
  title: "API Key is generated",
3510
- children: /* @__PURE__ */ I(Pr, {
3511
- children: [/* @__PURE__ */ a(Qe, {
3525
+ children: /* @__PURE__ */ I(Rr, {
3526
+ children: [/* @__PURE__ */ a(Ze, {
3512
3527
  color: "dimmed",
3513
3528
  children: "Make sure you save it - you won't be able to access it again."
3514
3529
  }), /* @__PURE__ */ a(fe, {
3515
- defaultValue: v,
3530
+ defaultValue: m,
3516
3531
  disabled: !0,
3517
3532
  label: "APP ID",
3518
3533
  styles: {
@@ -3521,7 +3536,7 @@ function Mo({
3521
3536
  }
3522
3537
  }
3523
3538
  }), /* @__PURE__ */ a(fe, {
3524
- defaultValue: y,
3539
+ defaultValue: b,
3525
3540
  disabled: !0,
3526
3541
  label: "APP Secret",
3527
3542
  styles: {
@@ -3532,7 +3547,7 @@ function Mo({
3532
3547
  }), /* @__PURE__ */ a(oe, {
3533
3548
  size: "sm",
3534
3549
  onClick: () => {
3535
- nn();
3550
+ ln();
3536
3551
  },
3537
3552
  children: "I've saved this API Key"
3538
3553
  })]
@@ -3548,20 +3563,20 @@ function Mo({
3548
3563
  }), /* @__PURE__ */ a(oe, {
3549
3564
  size: r.button.size,
3550
3565
  onClick: c,
3551
- leftIcon: /* @__PURE__ */ a(Cr, {
3566
+ leftIcon: /* @__PURE__ */ a(jr, {
3552
3567
  size: 20
3553
3568
  }),
3554
3569
  children: "Add an API Key"
3555
3570
  })]
3556
3571
  });
3557
3572
  }
3558
- function Io({
3573
+ function Lo({
3559
3574
  id: e,
3560
3575
  name: r,
3561
3576
  onSuccess: t,
3562
- styles: o = ar
3577
+ styles: o = sr
3563
3578
  }) {
3564
- const s = tr(), i = async () => {
3579
+ const s = nr(), i = async () => {
3565
3580
  if (!!e) {
3566
3581
  _e({
3567
3582
  id: "for-deleting",
@@ -3598,18 +3613,18 @@ function Io({
3598
3613
  size: o.button.size,
3599
3614
  color: "red",
3600
3615
  onClick: c,
3601
- leftIcon: /* @__PURE__ */ a(jr, {
3616
+ leftIcon: /* @__PURE__ */ a(Ar, {
3602
3617
  size: 20
3603
3618
  }),
3604
3619
  children: "Delete"
3605
3620
  });
3606
3621
  }
3607
- function Ko({
3608
- styles: e = ar,
3622
+ function ii({
3623
+ styles: e = sr,
3609
3624
  config: r
3610
3625
  }) {
3611
- var v, y;
3612
- nr(r);
3626
+ var m, b;
3627
+ or(r);
3613
3628
  const {
3614
3629
  data: t = [],
3615
3630
  loading: o,
@@ -3624,33 +3639,33 @@ function Ko({
3624
3639
  }), {
3625
3640
  data: i = [],
3626
3641
  loading: c
3627
- } = ze(async () => (await de.role.list()).map((m) => ({
3628
- label: m.name,
3629
- value: m.id,
3630
- description: m.description,
3631
- disabled: m.id === 50
3642
+ } = ze(async () => (await de.role.list()).map((v) => ({
3643
+ label: v.name,
3644
+ value: v.id,
3645
+ description: v.description,
3646
+ disabled: v.id === 50
3632
3647
  })), {
3633
3648
  refreshDeps: []
3634
- }), u = dt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3635
- var m;
3636
- return (m = u.get(h)) != null ? m : h;
3649
+ }), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3650
+ var v;
3651
+ return (v = u.get(h)) != null ? v : h;
3637
3652
  };
3638
3653
  return /* @__PURE__ */ I(Oe, {
3639
3654
  children: [/* @__PURE__ */ a(se, {
3640
3655
  pt: e.spacing,
3641
3656
  position: "right",
3642
- children: /* @__PURE__ */ a(Mo, {
3657
+ children: /* @__PURE__ */ a($o, {
3643
3658
  onSuccess: s,
3644
- initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
3659
+ initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
3645
3660
  })
3646
- }), /* @__PURE__ */ I(me, {
3661
+ }), /* @__PURE__ */ I(ve, {
3647
3662
  mt: e.spacing,
3648
3663
  sx: {
3649
3664
  position: "relative"
3650
3665
  },
3651
- children: [/* @__PURE__ */ a(Rr, {
3666
+ children: [/* @__PURE__ */ a(_r, {
3652
3667
  visible: o || c
3653
- }), /* @__PURE__ */ I(_r, {
3668
+ }), /* @__PURE__ */ I(xr, {
3654
3669
  horizontalSpacing: e.spacing,
3655
3670
  verticalSpacing: e.spacing,
3656
3671
  fontSize: e.size,
@@ -3670,10 +3685,10 @@ function Ko({
3670
3685
  }), /* @__PURE__ */ a("tbody", {
3671
3686
  children: t.map((h) => {
3672
3687
  const {
3673
- id: m,
3688
+ id: v,
3674
3689
  name: x,
3675
3690
  app_id: Y,
3676
- role_id: D
3691
+ role_id: k
3677
3692
  } = h;
3678
3693
  return /* @__PURE__ */ I("tr", {
3679
3694
  children: [/* @__PURE__ */ a("td", {
@@ -3684,36 +3699,36 @@ function Ko({
3684
3699
  children: Y
3685
3700
  }), /* @__PURE__ */ a("td", {
3686
3701
  width: 200,
3687
- children: d(D)
3702
+ children: d(k)
3688
3703
  }), /* @__PURE__ */ a("td", {
3689
3704
  width: 200,
3690
3705
  children: /* @__PURE__ */ a(se, {
3691
3706
  position: "left",
3692
- children: /* @__PURE__ */ a(Io, {
3693
- id: m,
3707
+ children: /* @__PURE__ */ a(Lo, {
3708
+ id: v,
3694
3709
  name: x,
3695
3710
  onSuccess: s
3696
3711
  })
3697
3712
  })
3698
3713
  })]
3699
- }, m);
3714
+ }, v);
3700
3715
  })
3701
3716
  })]
3702
3717
  })]
3703
3718
  })]
3704
3719
  });
3705
3720
  }
3706
- const Ho = () => import("./package.56c71e70.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
3721
+ const ai = () => import("./package.b74d5f91.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
3707
3722
  export {
3708
- Ko as APIKeyList,
3709
- Vo as AccountList,
3710
- Mo as AddAPIKey,
3711
- Ro as AddAccount,
3712
- yo as AddDataSource,
3713
- No as DataSourceList,
3714
- Io as DeleteAPIKey,
3715
- _o as DeleteAccount,
3716
- To as DeleteDataSource,
3717
- Bo as Login,
3718
- Ho as getVersion
3723
+ ii as APIKeyList,
3724
+ ni as AccountList,
3725
+ $o as AddAPIKey,
3726
+ Io as AddAccount,
3727
+ Ro as AddDataSource,
3728
+ ti as DataSourceList,
3729
+ Lo as DeleteAPIKey,
3730
+ zo as DeleteAccount,
3731
+ jo as DeleteDataSource,
3732
+ oi as Login,
3733
+ ai as getVersion
3719
3734
  };