@babsey/code-graph 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { openBlock as m, createElementBlock as y, createElementVNode as h, createStaticVNode as Vt, defineComponent as ie, toRef as On, ref as te, createVNode as J, unref as H, useModel as ia, resolveComponent as Cn, createCommentVNode as K, mergeModels as os, onMounted as Nn, onBeforeUnmount as ws, watch as ks, createBlock as oe, withCtx as we, normalizeProps as la, guardReactiveProps as ua, renderSlot as ke, mergeProps as da, toDisplayString as X, computed as F, onUpdated as Ms, normalizeStyle as Tn, normalizeClass as Me, withModifiers as et, Fragment as se, createTextVNode as Ss, withDirectives as at, withKeys as fn, vModelText as gt, renderList as Ve, nextTick as xs, resolveDynamicComponent as is, inject as ca, Transition as Os, reactive as Pe, vShow as ha, markRaw as ce, shallowReadonly as fa } from "vue";
2
- import { BaklavaEditor as pa, Components as pn, useViewModel as bt, useGraph as In, useTemporaryConnection as ma, useTransform as va, useNodeCategories as _a, displayInSidebar as Cs, CheckboxInterfaceComponent as ya, IntegerInterfaceComponent as ga, NumberInterfaceComponent as ba, SliderInterfaceComponent as wa, Commands as Ue, DEFAULT_TOOLBAR_COMMANDS as ka, DEFAULT_SETTINGS as Ma, useCommandHandler as Sa, useHistory as xa, useClipboard as Oa, registerDeleteNodesCommand as Ca, registerSaveSubgraphCommand as Na, registerSwitchToMainGraphCommand as Ta, registerSidebarCommands as Ia, registerZoomToFitCommands as Da, setViewNodeProperties as Ya } from "@baklavajs/renderer-vue";
1
+ import { openBlock as m, createElementBlock as _, createElementVNode as h, createStaticVNode as Vt, defineComponent as ie, toRef as Cn, ref as te, createVNode as J, unref as H, useModel as ia, resolveComponent as On, createCommentVNode as q, mergeModels as os, onMounted as Nn, onBeforeUnmount as ws, watch as ks, createBlock as oe, withCtx as we, normalizeProps as la, guardReactiveProps as ua, renderSlot as ke, mergeProps as da, toDisplayString as X, computed as F, onUpdated as Ms, normalizeStyle as Tn, normalizeClass as Me, withModifiers as et, Fragment as se, createTextVNode as Ss, withDirectives as at, withKeys as fn, vModelText as gt, renderList as Ve, nextTick as xs, resolveDynamicComponent as is, inject as ca, Transition as Cs, reactive as Pe, vShow as ha, markRaw as ce, shallowReadonly as fa } from "vue";
2
+ import { BaklavaEditor as pa, Components as pn, useViewModel as bt, useGraph as In, useTemporaryConnection as ma, useTransform as va, useNodeCategories as _a, displayInSidebar as Os, CheckboxInterfaceComponent as ya, IntegerInterfaceComponent as ga, NumberInterfaceComponent as ba, SliderInterfaceComponent as wa, Commands as Ue, DEFAULT_TOOLBAR_COMMANDS as ka, DEFAULT_SETTINGS as Ma, useCommandHandler as Sa, useHistory as xa, useClipboard as Ca, registerDeleteNodesCommand as Oa, registerSaveSubgraphCommand as Na, registerSwitchToMainGraphCommand as Ta, registerSidebarCommands as Ia, registerZoomToFitCommands as Da, setViewNodeProperties as Ya } from "@baklavajs/renderer-vue";
3
3
  import { GRAPH_NODE_TYPE_PREFIX as Ea, NodeInterface as Ns, AbstractNode as Ra, Graph as Pa, GRAPH_INPUT_NODE_TYPE as $a, GRAPH_OUTPUT_NODE_TYPE as La, getGraphNodeTypeString as Ts, GraphTemplate as Aa, Editor as Ua } from "@baklavajs/core";
4
4
  import { usePointer as Wa, onClickOutside as Ha } from "@vueuse/core";
5
5
  import ot from "mustache";
@@ -26,7 +26,7 @@ const B = (e, t) => {
26
26
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-check"
27
27
  };
28
28
  function Ba(e, t) {
29
- return m(), y("svg", za, [...t[0] || (t[0] = [
29
+ return m(), _("svg", za, [...t[0] || (t[0] = [
30
30
  h("path", {
31
31
  stroke: "none",
32
32
  d: "M0 0h24v24H0z",
@@ -48,7 +48,7 @@ const Ds = /* @__PURE__ */ B(ja, [["render", Ba]]), Za = {}, qa = {
48
48
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
49
49
  };
50
50
  function Ka(e, t) {
51
- return m(), y("svg", qa, [...t[0] || (t[0] = [
51
+ return m(), _("svg", qa, [...t[0] || (t[0] = [
52
52
  h("path", {
53
53
  stroke: "none",
54
54
  d: "M0 0h24v24H0z",
@@ -75,7 +75,7 @@ const Ys = /* @__PURE__ */ B(Za, [["render", Ka]]), Xa = {}, Ja = {
75
75
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-code-variable"
76
76
  };
77
77
  function Qa(e, t) {
78
- return m(), y("svg", Ja, [...t[0] || (t[0] = [
78
+ return m(), _("svg", Ja, [...t[0] || (t[0] = [
79
79
  h("path", {
80
80
  stroke: "none",
81
81
  d: "M0 0h24v24H0z",
@@ -97,7 +97,7 @@ const Es = /* @__PURE__ */ B(Xa, [["render", Qa]]), eo = {}, to = {
97
97
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-copy"
98
98
  };
99
99
  function no(e, t) {
100
- return m(), y("svg", to, [...t[0] || (t[0] = [
100
+ return m(), _("svg", to, [...t[0] || (t[0] = [
101
101
  h("path", {
102
102
  stroke: "none",
103
103
  d: "M0 0h24v24H0z",
@@ -120,7 +120,7 @@ const Rs = /* @__PURE__ */ B(eo, [["render", no]]), so = {}, ro = {
120
120
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
121
121
  };
122
122
  function ao(e, t) {
123
- return m(), y("svg", ro, [...t[0] || (t[0] = [
123
+ return m(), _("svg", ro, [...t[0] || (t[0] = [
124
124
  h("path", {
125
125
  stroke: "none",
126
126
  d: "M0 0h24v24H0z",
@@ -144,7 +144,7 @@ const Ps = /* @__PURE__ */ B(so, [["render", ao]]), oo = {}, io = {
144
144
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-download"
145
145
  };
146
146
  function lo(e, t) {
147
- return m(), y("svg", io, [...t[0] || (t[0] = [
147
+ return m(), _("svg", io, [...t[0] || (t[0] = [
148
148
  h("path", {
149
149
  stroke: "none",
150
150
  d: "M0 0h24v24H0z",
@@ -164,7 +164,7 @@ const $s = /* @__PURE__ */ B(oo, [["render", lo]]), uo = {}, co = {
164
164
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
165
165
  };
166
166
  function ho(e, t) {
167
- return m(), y("svg", co, [...t[0] || (t[0] = [
167
+ return m(), _("svg", co, [...t[0] || (t[0] = [
168
168
  h("path", {
169
169
  stroke: "none",
170
170
  d: "M0 0h24v24H0z",
@@ -182,7 +182,7 @@ const fo = /* @__PURE__ */ B(uo, [["render", ho]]), po = {}, mo = {
182
182
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
183
183
  };
184
184
  function vo(e, t) {
185
- return m(), y("svg", mo, [...t[0] || (t[0] = [
185
+ return m(), _("svg", mo, [...t[0] || (t[0] = [
186
186
  h("path", {
187
187
  stroke: "none",
188
188
  d: "M0 0h24v24H0z",
@@ -200,7 +200,7 @@ const _o = /* @__PURE__ */ B(po, [["render", vo]]), yo = {}, go = {
200
200
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
201
201
  };
202
202
  function bo(e, t) {
203
- return m(), y("svg", go, [...t[0] || (t[0] = [
203
+ return m(), _("svg", go, [...t[0] || (t[0] = [
204
204
  h("path", {
205
205
  stroke: "none",
206
206
  d: "M0 0h24v24H0z",
@@ -218,7 +218,7 @@ const wo = /* @__PURE__ */ B(yo, [["render", bo]]), ko = {}, Mo = {
218
218
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
219
219
  };
220
220
  function So(e, t) {
221
- return m(), y("svg", Mo, [...t[0] || (t[0] = [
221
+ return m(), _("svg", Mo, [...t[0] || (t[0] = [
222
222
  h("path", {
223
223
  stroke: "none",
224
224
  d: "M0 0h24v24H0z",
@@ -227,7 +227,7 @@ function So(e, t) {
227
227
  h("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-5.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
228
228
  ])]);
229
229
  }
230
- const Ls = /* @__PURE__ */ B(ko, [["render", So]]), xo = {}, Oo = {
230
+ const Ls = /* @__PURE__ */ B(ko, [["render", So]]), xo = {}, Co = {
231
231
  xmlns: "http://www.w3.org/2000/svg",
232
232
  width: "24",
233
233
  height: "24",
@@ -235,8 +235,8 @@ const Ls = /* @__PURE__ */ B(ko, [["render", So]]), xo = {}, Oo = {
235
235
  fill: "currentColor",
236
236
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
237
237
  };
238
- function Co(e, t) {
239
- return m(), y("svg", Oo, [...t[0] || (t[0] = [
238
+ function Oo(e, t) {
239
+ return m(), _("svg", Co, [...t[0] || (t[0] = [
240
240
  h("path", {
241
241
  stroke: "none",
242
242
  d: "M0 0h24v24H0z",
@@ -245,7 +245,7 @@ function Co(e, t) {
245
245
  h("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
246
246
  ])]);
247
247
  }
248
- const Dn = /* @__PURE__ */ B(xo, [["render", Co]]), No = {}, To = {
248
+ const Dn = /* @__PURE__ */ B(xo, [["render", Oo]]), No = {}, To = {
249
249
  xmlns: "http://www.w3.org/2000/svg",
250
250
  width: "24",
251
251
  height: "24",
@@ -258,7 +258,7 @@ const Dn = /* @__PURE__ */ B(xo, [["render", Co]]), No = {}, To = {
258
258
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
259
259
  };
260
260
  function Io(e, t) {
261
- return m(), y("svg", To, [...t[0] || (t[0] = [
261
+ return m(), _("svg", To, [...t[0] || (t[0] = [
262
262
  Vt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2"></path><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path><path d="M8 11v-4a4 4 0 1 1 8 0v4"></path><path d="M20 21l2 -2l-2 -2"></path><path d="M17 17l-2 2l2 2"></path>', 6)
263
263
  ])]);
264
264
  }
@@ -275,7 +275,7 @@ const Yn = /* @__PURE__ */ B(No, [["render", Io]]), Do = {}, Yo = {
275
275
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-player-play"
276
276
  };
277
277
  function Eo(e, t) {
278
- return m(), y("svg", Yo, [...t[0] || (t[0] = [
278
+ return m(), _("svg", Yo, [...t[0] || (t[0] = [
279
279
  h("path", {
280
280
  stroke: "none",
281
281
  d: "M0 0h24v24H0z",
@@ -297,7 +297,7 @@ const Ro = /* @__PURE__ */ B(Do, [["render", Eo]]), Po = {}, $o = {
297
297
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-plus"
298
298
  };
299
299
  function Lo(e, t) {
300
- return m(), y("svg", $o, [...t[0] || (t[0] = [
300
+ return m(), _("svg", $o, [...t[0] || (t[0] = [
301
301
  h("path", {
302
302
  stroke: "none",
303
303
  d: "M0 0h24v24H0z",
@@ -320,7 +320,7 @@ const As = /* @__PURE__ */ B(Po, [["render", Lo]]), Ao = {}, Uo = {
320
320
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-restore"
321
321
  };
322
322
  function Wo(e, t) {
323
- return m(), y("svg", Uo, [...t[0] || (t[0] = [
323
+ return m(), _("svg", Uo, [...t[0] || (t[0] = [
324
324
  h("path", {
325
325
  stroke: "none",
326
326
  d: "M0 0h24v24H0z",
@@ -344,7 +344,7 @@ const Us = /* @__PURE__ */ B(Ao, [["render", Wo]]), Ho = {}, Fo = {
344
344
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
345
345
  };
346
346
  function Vo(e, t) {
347
- return m(), y("svg", Fo, [...t[0] || (t[0] = [
347
+ return m(), _("svg", Fo, [...t[0] || (t[0] = [
348
348
  Vt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 2h5v4h-5z"></path><path d="M15 10h5v4h-5z"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h5"></path><path d="M7.5 6v4"></path><path d="M7.5 14v4"></path>', 8)
349
349
  ])]);
350
350
  }
@@ -361,7 +361,7 @@ const Ws = /* @__PURE__ */ B(Ho, [["render", Vo]]), Go = {}, jo = {
361
361
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
362
362
  };
363
363
  function zo(e, t) {
364
- return m(), y("svg", jo, [...t[0] || (t[0] = [
364
+ return m(), _("svg", jo, [...t[0] || (t[0] = [
365
365
  Vt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 2h4v4m-4 0h-1v-1"></path><path d="M15 11v-1h5v4h-2"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h2"></path><path d="M7.5 7.5v2.5"></path><path d="M7.5 14v4"></path><path d="M3 3l18 18"></path>', 9)
366
366
  ])]);
367
367
  }
@@ -378,7 +378,7 @@ const Hs = /* @__PURE__ */ B(Go, [["render", zo]]), Bo = {}, Zo = {
378
378
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
379
379
  };
380
380
  function qo(e, t) {
381
- return m(), y("svg", Zo, [...t[0] || (t[0] = [
381
+ return m(), _("svg", Zo, [...t[0] || (t[0] = [
382
382
  Vt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M21 18a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3"></path><path d="M3 3m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"></path><path d="M12 9v8"></path><path d="M9 14l3 3l3 -3"></path>', 5)
383
383
  ])]);
384
384
  }
@@ -395,7 +395,7 @@ const Fs = /* @__PURE__ */ B(Bo, [["render", qo]]), Ko = {}, Xo = {
395
395
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-upload"
396
396
  };
397
397
  function Jo(e, t) {
398
- return m(), y("svg", Xo, [...t[0] || (t[0] = [
398
+ return m(), _("svg", Xo, [...t[0] || (t[0] = [
399
399
  h("path", {
400
400
  stroke: "none",
401
401
  d: "M0 0h24v24H0z",
@@ -419,7 +419,7 @@ const Vs = /* @__PURE__ */ B(Ko, [["render", Jo]]), Qo = {}, ei = {
419
419
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-x"
420
420
  };
421
421
  function ti(e, t) {
422
- return m(), y("svg", ei, [...t[0] || (t[0] = [
422
+ return m(), _("svg", ei, [...t[0] || (t[0] = [
423
423
  h("path", {
424
424
  stroke: "none",
425
425
  d: "M0 0h24v24H0z",
@@ -429,7 +429,7 @@ function ti(e, t) {
429
429
  h("path", { d: "M6 6l12 12" }, null, -1)
430
430
  ])]);
431
431
  }
432
- const Gs = /* @__PURE__ */ B(Qo, [["render", ti]]), sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
432
+ const Gs = /* @__PURE__ */ B(Qo, [["render", ti]]), rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
433
433
  __proto__: null,
434
434
  Check: Ds,
435
435
  ChevronDown: Ys,
@@ -478,7 +478,7 @@ function ri() {
478
478
  );
479
479
  }
480
480
  });
481
- var l = i(279), u = /* @__PURE__ */ i.n(l), d = i(370), _ = /* @__PURE__ */ i.n(d), p = i(817), I = /* @__PURE__ */ i.n(p);
481
+ var l = i(279), u = /* @__PURE__ */ i.n(l), d = i(370), y = /* @__PURE__ */ i.n(d), p = i(817), I = /* @__PURE__ */ i.n(p);
482
482
  function b(k) {
483
483
  try {
484
484
  return document.execCommand(k);
@@ -486,10 +486,10 @@ function ri() {
486
486
  return !1;
487
487
  }
488
488
  }
489
- var O = function(S) {
489
+ var C = function(S) {
490
490
  var M = I()(S);
491
491
  return b("cut"), M;
492
- }, f = O;
492
+ }, f = C;
493
493
  function w(k) {
494
494
  var S = document.documentElement.getAttribute("dir") === "rtl", M = document.createElement("textarea");
495
495
  M.style.fontSize = "12pt", M.style.border = "0", M.style.padding = "0", M.style.margin = "0", M.style.position = "absolute", M.style[S ? "right" : "left"] = "-9999px";
@@ -507,20 +507,20 @@ function ri() {
507
507
  }, N = "";
508
508
  return typeof S == "string" ? N = U(S, M) : S instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(S?.type) ? N = U(S.value, M) : (N = I()(S), b("copy")), N;
509
509
  }, V = R;
510
- function Ce(k) {
510
+ function Oe(k) {
511
511
  "@babel/helpers - typeof";
512
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ce = function(M) {
512
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(M) {
513
513
  return typeof M;
514
- } : Ce = function(M) {
514
+ } : Oe = function(M) {
515
515
  return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M;
516
- }, Ce(k);
516
+ }, Oe(k);
517
517
  }
518
518
  var Ne = function() {
519
519
  var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = S.action, N = M === void 0 ? "copy" : M, D = S.container, P = S.target, pe = S.text;
520
520
  if (N !== "copy" && N !== "cut")
521
521
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
522
522
  if (P !== void 0)
523
- if (P && Ce(P) === "object" && P.nodeType === 1) {
523
+ if (P && Oe(P) === "object" && P.nodeType === 1) {
524
524
  if (N === "copy" && P.hasAttribute("disabled"))
525
525
  throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
526
526
  if (N === "cut" && (P.hasAttribute("readonly") || P.hasAttribute("disabled")))
@@ -544,7 +544,7 @@ function ri() {
544
544
  return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M;
545
545
  }, ge(k);
546
546
  }
547
- function C(k, S) {
547
+ function O(k, S) {
548
548
  if (!(k instanceof S))
549
549
  throw new TypeError("Cannot call a class as a function");
550
550
  }
@@ -612,7 +612,7 @@ function ri() {
612
612
  var S = Nt(M);
613
613
  function M(N, D) {
614
614
  var P;
615
- return C(this, M), P = S.call(this), P.resolveOptions(D), P.listenClick(N), P;
615
+ return O(this, M), P = S.call(this), P.resolveOptions(D), P.listenClick(N), P;
616
616
  }
617
617
  return re(M, [{
618
618
  key: "resolveOptions",
@@ -628,7 +628,7 @@ function ri() {
628
628
  key: "listenClick",
629
629
  value: function(D) {
630
630
  var P = this;
631
- this.listener = _()(D, "click", function(pe) {
631
+ this.listener = y()(D, "click", function(pe) {
632
632
  return P.onClick(pe);
633
633
  });
634
634
  }
@@ -756,22 +756,22 @@ function ri() {
756
756
  /***/
757
757
  (function(a, o, i) {
758
758
  var l = i(828);
759
- function u(p, I, b, O, f) {
760
- var w = _.apply(this, arguments);
759
+ function u(p, I, b, C, f) {
760
+ var w = y.apply(this, arguments);
761
761
  return p.addEventListener(b, w, f), {
762
762
  destroy: function() {
763
763
  p.removeEventListener(b, w, f);
764
764
  }
765
765
  };
766
766
  }
767
- function d(p, I, b, O, f) {
767
+ function d(p, I, b, C, f) {
768
768
  return typeof p.addEventListener == "function" ? u.apply(null, arguments) : typeof b == "function" ? u.bind(null, document).apply(null, arguments) : (typeof p == "string" && (p = document.querySelectorAll(p)), Array.prototype.map.call(p, function(w) {
769
- return u(w, I, b, O, f);
769
+ return u(w, I, b, C, f);
770
770
  }));
771
771
  }
772
- function _(p, I, b, O) {
772
+ function y(p, I, b, C) {
773
773
  return function(f) {
774
- f.delegateTarget = l(f.target, I), f.delegateTarget && O.call(p, f);
774
+ f.delegateTarget = l(f.target, I), f.delegateTarget && C.call(p, f);
775
775
  };
776
776
  }
777
777
  a.exports = d;
@@ -799,41 +799,41 @@ function ri() {
799
799
  /***/
800
800
  (function(a, o, i) {
801
801
  var l = i(879), u = i(438);
802
- function d(b, O, f) {
803
- if (!b && !O && !f)
802
+ function d(b, C, f) {
803
+ if (!b && !C && !f)
804
804
  throw new Error("Missing required arguments");
805
- if (!l.string(O))
805
+ if (!l.string(C))
806
806
  throw new TypeError("Second argument must be a String");
807
807
  if (!l.fn(f))
808
808
  throw new TypeError("Third argument must be a Function");
809
809
  if (l.node(b))
810
- return _(b, O, f);
810
+ return y(b, C, f);
811
811
  if (l.nodeList(b))
812
- return p(b, O, f);
812
+ return p(b, C, f);
813
813
  if (l.string(b))
814
- return I(b, O, f);
814
+ return I(b, C, f);
815
815
  throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
816
816
  }
817
- function _(b, O, f) {
818
- return b.addEventListener(O, f), {
817
+ function y(b, C, f) {
818
+ return b.addEventListener(C, f), {
819
819
  destroy: function() {
820
- b.removeEventListener(O, f);
820
+ b.removeEventListener(C, f);
821
821
  }
822
822
  };
823
823
  }
824
- function p(b, O, f) {
824
+ function p(b, C, f) {
825
825
  return Array.prototype.forEach.call(b, function(w) {
826
- w.addEventListener(O, f);
826
+ w.addEventListener(C, f);
827
827
  }), {
828
828
  destroy: function() {
829
829
  Array.prototype.forEach.call(b, function(w) {
830
- w.removeEventListener(O, f);
830
+ w.removeEventListener(C, f);
831
831
  });
832
832
  }
833
833
  };
834
834
  }
835
- function I(b, O, f) {
836
- return u(document.body, b, O, f);
835
+ function I(b, C, f) {
836
+ return u(document.body, b, C, f);
837
837
  }
838
838
  a.exports = d;
839
839
  })
@@ -851,8 +851,8 @@ function ri() {
851
851
  u || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), u || i.removeAttribute("readonly"), l = i.value;
852
852
  } else {
853
853
  i.hasAttribute("contenteditable") && i.focus();
854
- var d = window.getSelection(), _ = document.createRange();
855
- _.selectNodeContents(i), d.removeAllRanges(), d.addRange(_), l = d.toString();
854
+ var d = window.getSelection(), y = document.createRange();
855
+ y.selectNodeContents(i), d.removeAllRanges(), d.addRange(y), l = d.toString();
856
856
  }
857
857
  return l;
858
858
  }
@@ -875,23 +875,23 @@ function ri() {
875
875
  },
876
876
  once: function(i, l, u) {
877
877
  var d = this;
878
- function _() {
879
- d.off(i, _), l.apply(u, arguments);
878
+ function y() {
879
+ d.off(i, y), l.apply(u, arguments);
880
880
  }
881
- return _._ = l, this.on(i, _, u);
881
+ return y._ = l, this.on(i, y, u);
882
882
  },
883
883
  emit: function(i) {
884
- var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), d = 0, _ = u.length;
885
- for (d; d < _; d++)
884
+ var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), d = 0, y = u.length;
885
+ for (d; d < y; d++)
886
886
  u[d].fn.apply(u[d].ctx, l);
887
887
  return this;
888
888
  },
889
889
  off: function(i, l) {
890
- var u = this.e || (this.e = {}), d = u[i], _ = [];
890
+ var u = this.e || (this.e = {}), d = u[i], y = [];
891
891
  if (d && l)
892
892
  for (var p = 0, I = d.length; p < I; p++)
893
- d[p].fn !== l && d[p].fn._ !== l && _.push(d[p]);
894
- return _.length ? u[i] = _ : delete u[i], this;
893
+ d[p].fn !== l && d[p].fn._ !== l && y.push(d[p]);
894
+ return y.length ? u[i] = y : delete u[i], this;
895
895
  }
896
896
  }, a.exports = o, a.exports.TinyEmitter = o;
897
897
  })
@@ -965,17 +965,17 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
965
965
  __name: "CopyToClipboard",
966
966
  props: { text: String },
967
967
  setup(e) {
968
- const { toClipboard: t } = ii(), s = On(e, "text"), r = te(!1), a = async () => {
968
+ const { toClipboard: t } = ii(), s = Cn(e, "text"), r = te(!1), a = async () => {
969
969
  try {
970
970
  await t(s.value), r.value = !0, setTimeout(() => r.value = !1, 1500), console.log("Copied to clipboard");
971
971
  } catch (o) {
972
972
  console.error(o);
973
973
  }
974
974
  };
975
- return (o, i) => (m(), y("div", null, [
976
- r.value ? (m(), y("button", li, [
975
+ return (o, i) => (m(), _("div", null, [
976
+ r.value ? (m(), _("button", li, [
977
977
  J(H(Ds))
978
- ])) : (m(), y("button", {
978
+ ])) : (m(), _("button", {
979
979
  key: 1,
980
980
  onClick: a,
981
981
  class: "baklava-button"
@@ -997,17 +997,17 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
997
997
  setup(e, { emit: t }) {
998
998
  const n = ia(e, "modelValue"), s = t, r = (a) => s("update:locked", a);
999
999
  return (a, o) => {
1000
- const i = Cn("codemirror");
1001
- return m(), y("div", ui, [
1000
+ const i = On("codemirror");
1001
+ return m(), _("div", ui, [
1002
1002
  h("div", di, [
1003
- e.locked ? (m(), y("button", {
1003
+ e.locked ? (m(), _("button", {
1004
1004
  key: 0,
1005
1005
  class: "baklava-button",
1006
1006
  title: "The code is locked.",
1007
1007
  onClick: o[0] || (o[0] = (l) => r(!1))
1008
1008
  }, [
1009
1009
  J(H(Yn))
1010
- ])) : K("", !0),
1010
+ ])) : q("", !0),
1011
1011
  J(js, { text: e.modelValue }, null, 8, ["text"])
1012
1012
  ]),
1013
1013
  J(i, {
@@ -1027,7 +1027,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1027
1027
  viewModel: {}
1028
1028
  },
1029
1029
  setup(e) {
1030
- const n = On(e, "viewModel"), s = (r) => r.events.update.emit(null);
1030
+ const n = Cn(e, "viewModel"), s = (r) => r.events.update.emit(null);
1031
1031
  return Nn(n.value.onMounted), ws(n.value.onBeforeUnmount), ks(n, (r, a) => {
1032
1032
  a && a.onBeforeUnmount(), r && r.onMounted();
1033
1033
  }), (r, a) => (m(), oe(H(pa), { viewModel: n.value }, {
@@ -1056,7 +1056,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1056
1056
  viewModel: {}
1057
1057
  },
1058
1058
  setup(e) {
1059
- return (t, n) => (m(), y("div", fi, [
1059
+ return (t, n) => (m(), _("div", fi, [
1060
1060
  h("div", null, "Editor graph: " + X(e.viewModel.editor.graph.shortId), 1),
1061
1061
  h("div", null, "Displayed graph: " + X(e.viewModel.displayedGraph.shortId), 1),
1062
1062
  h("div", null, "Graphs: " + X(e.viewModel.editor.graphIds), 1),
@@ -1067,10 +1067,10 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1067
1067
  }), mi = ["data-node-type", "id"], vi = {
1068
1068
  class: "__title-label",
1069
1069
  style: { "flex-grow": "1" }
1070
- }, _i = { key: 0 }, yi = {
1070
+ }, _i = { key: 0 }, yi = { key: 1 }, gi = {
1071
1071
  class: "__menu",
1072
1072
  style: { display: "flex" }
1073
- }, gi = { class: "__outputs" }, bi = { key: 0 }, wi = ["id", "title"], ki = { class: "__inputs" }, Mi = { key: 0 }, Si = ["id", "title"], zs = /* @__PURE__ */ ie({
1073
+ }, bi = { class: "__outputs" }, wi = { key: 0 }, ki = ["id", "title"], Mi = { class: "__inputs" }, Si = { key: 0 }, xi = ["id", "title"], zs = /* @__PURE__ */ ie({
1074
1074
  __name: "CodeGraphNode",
1075
1075
  props: {
1076
1076
  node: {},
@@ -1079,8 +1079,8 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1079
1079
  },
1080
1080
  emits: ["select", "start-drag", "update"],
1081
1081
  setup(e, { emit: t }) {
1082
- const n = pn.ContextMenu, s = pn.NodeInterface, r = e, a = F(() => r.node), o = t, { viewModel: i } = bt(), { graph: l, switchGraph: u } = In(), d = te(null), _ = te(!1), p = te(""), I = te(null), b = te(!1);
1083
- let O = 0, f = 0;
1082
+ const n = pn.ContextMenu, s = pn.NodeInterface, r = e, a = F(() => r.node), o = t, { viewModel: i } = bt(), { graph: l, switchGraph: u } = In(), d = te(null), y = te(!1), p = te(""), I = te(null), b = te(!1);
1083
+ let C = 0, f = 0;
1084
1084
  const w = te(!1), U = F(() => {
1085
1085
  const W = [
1086
1086
  { value: "edit", label: "Edit" },
@@ -1095,13 +1095,13 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1095
1095
  "--hidden": a.value.state?.hidden
1096
1096
  })), V = F(() => ({
1097
1097
  "--reverse-y": r.node.reverseY ?? i.value.settings.nodes.reverseY
1098
- })), Ce = F(() => ({
1098
+ })), Oe = F(() => ({
1099
1099
  top: `${r.node.position?.y ?? 0}px`,
1100
1100
  left: `${r.node.position?.x ?? 0}px`,
1101
1101
  "--width": `${r.node.width ?? i.value.settings.nodes.defaultWidth}px`
1102
1102
  })), Ne = F(() => Object.values(r.node.inputs).filter((W) => !W.hidden)), dt = F(() => Object.values(r.node.outputs).filter((W) => !W.hidden)), ge = () => {
1103
1103
  on(), o("select");
1104
- }, C = (W) => {
1104
+ }, O = (W) => {
1105
1105
  r.selected || ge(), o("start-drag", W);
1106
1106
  }, ee = () => {
1107
1107
  w.value = !0;
@@ -1120,23 +1120,23 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1120
1120
  l.value.removeNode(r.node);
1121
1121
  break;
1122
1122
  case "rename":
1123
- p.value = r.node.title, _.value = !0, await xs(), I.value?.focus();
1123
+ p.value = r.node.title, y.value = !0, await xs(), I.value?.focus();
1124
1124
  break;
1125
1125
  case "editSubgraph":
1126
1126
  u(r.node.template);
1127
1127
  break;
1128
1128
  }
1129
1129
  }, Nt = () => {
1130
- a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), _.value = !1;
1130
+ a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), y.value = !1;
1131
1131
  }, Tt = () => {
1132
1132
  d.value && i.value.hooks.renderNode.execute({ node: r.node, el: d.value });
1133
1133
  }, ln = (W) => {
1134
- b.value = !0, O = r.node.width, f = W.clientX, W.preventDefault();
1134
+ b.value = !0, C = r.node.width, f = W.clientX, W.preventDefault();
1135
1135
  }, It = (W) => {
1136
1136
  a.value.state && (a.value.state.integrated = W, o("update"));
1137
1137
  }, Ge = (W) => {
1138
1138
  if (!b.value) return;
1139
- const Z = W.clientX - f, k = O + Z / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
1139
+ const Z = W.clientX - f, k = C + Z / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
1140
1140
  a.value.width = Math.max(S, Math.min(M, k));
1141
1141
  }, Xe = () => {
1142
1142
  b.value = !1;
@@ -1145,23 +1145,23 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1145
1145
  Tt(), window.addEventListener("mousemove", Ge), window.addEventListener("mouseup", Xe);
1146
1146
  }), Ms(Tt), ws(() => {
1147
1147
  window.removeEventListener("mousemove", Ge), window.removeEventListener("mouseup", Xe);
1148
- }), (W, Z) => (m(), y("div", {
1148
+ }), (W, Z) => (m(), _("div", {
1149
1149
  class: Me([R.value, "baklava-node"]),
1150
1150
  "data-node-type": a.value.type,
1151
1151
  id: a.value.id,
1152
- style: Tn(Ce.value),
1152
+ style: Tn(Oe.value),
1153
1153
  ref_key: "el",
1154
1154
  ref: d,
1155
1155
  onPointerdown: ge
1156
1156
  }, [
1157
- H(i).settings.nodes.resizable ? (m(), y("div", {
1157
+ H(i).settings.nodes.resizable ? (m(), _("div", {
1158
1158
  key: 0,
1159
1159
  class: "__resize-handle",
1160
1160
  onMousedown: ln
1161
- }, null, 32)) : K("", !0),
1161
+ }, null, 32)) : q("", !0),
1162
1162
  h("div", {
1163
1163
  class: "__title",
1164
- onPointerdown: et(C, ["self", "stop"]),
1164
+ onPointerdown: et(O, ["self", "stop"]),
1165
1165
  onContextmenu: et(ee, ["prevent"])
1166
1166
  }, [
1167
1167
  a.value.inputs._code ? (m(), oe(H(mn), {
@@ -1172,8 +1172,8 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1172
1172
  class: "--input",
1173
1173
  "data-interface-type": "node",
1174
1174
  style: { "flex-grow": "0" }
1175
- }, null, 8, ["intf", "node", "title"])) : K("", !0),
1176
- _.value ? at((m(), y("input", {
1175
+ }, null, 8, ["intf", "node", "title"])) : q("", !0),
1176
+ y.value ? at((m(), _("input", {
1177
1177
  key: 2,
1178
1178
  ref_key: "renameInputEl",
1179
1179
  ref: I,
@@ -1186,24 +1186,25 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1186
1186
  onKeydown: fn(Nt, ["enter"])
1187
1187
  }, null, 544)), [
1188
1188
  [gt, p.value]
1189
- ]) : (m(), y(se, { key: 1 }, [
1189
+ ]) : (m(), _(se, { key: 1 }, [
1190
1190
  h("div", vi, [
1191
- a.value.idx > -1 ? (m(), y("span", _i, X(a.value.idx + 1) + " - ", 1)) : K("", !0),
1192
- Ss(" " + X(a.value.title), 1)
1191
+ a.value.idx > -1 ? (m(), _("span", _i, X(a.value.idx + 1) + " - ", 1)) : q("", !0),
1192
+ Ss(" " + X(a.value.title) + " ", 1),
1193
+ H(i).showNodeId ? (m(), _("span", yi, X(a.value.shortId), 1)) : q("", !0)
1193
1194
  ]),
1194
- h("div", yi, [
1195
- a.value.isCodeNode ? (m(), y(se, { key: 0 }, [
1195
+ h("div", gi, [
1196
+ a.value.isCodeNode ? (m(), _(se, { key: 0 }, [
1196
1197
  a.value.state.lockCode ? (m(), oe(H(Yn), {
1197
1198
  key: 0,
1198
1199
  class: "--clickable mx-1",
1199
1200
  onClick: Z[0] || (Z[0] = (k) => a.value.lockCode = !1)
1200
- })) : K("", !0),
1201
+ })) : q("", !0),
1201
1202
  a.value.isSelected && !H(i).displayedGraph.sidebar.visible ? (m(), oe(H(Dn), {
1202
1203
  key: 1,
1203
1204
  class: "--clickable mx-1",
1204
1205
  onClick: re
1205
- })) : K("", !0),
1206
- a.value.hasConnectedOutputNodes ? (m(), y(se, { key: 2 }, [
1206
+ })) : q("", !0),
1207
+ a.value.hasConnectedOutputNodes ? (m(), _(se, { key: 2 }, [
1207
1208
  a.value.state.integrated ? (m(), oe(H(Es), {
1208
1209
  key: 1,
1209
1210
  class: "--clickable mx-1",
@@ -1213,8 +1214,8 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1213
1214
  class: "--clickable mx-1",
1214
1215
  onClick: Z[1] || (Z[1] = (k) => It(!0))
1215
1216
  }))
1216
- ], 64)) : K("", !0)
1217
- ], 64)) : K("", !0),
1217
+ ], 64)) : q("", !0)
1218
+ ], 64)) : q("", !0),
1218
1219
  J(H(Ps), {
1219
1220
  class: "--clickable mx-1",
1220
1221
  onClick: ee
@@ -1236,7 +1237,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1236
1237
  class: "--output",
1237
1238
  title: a.value.outputs._code.value,
1238
1239
  "data-interface-type": "node"
1239
- }, null, 8, ["node", "intf", "title"])) : K("", !0)
1240
+ }, null, 8, ["node", "intf", "title"])) : q("", !0)
1240
1241
  ], 32),
1241
1242
  h("div", {
1242
1243
  class: Me(["__content", V.value]),
@@ -1245,19 +1246,19 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1245
1246
  onContextmenu: Z[6] || (Z[6] = et(() => {
1246
1247
  }, ["prevent"]))
1247
1248
  }, [
1248
- h("div", gi, [
1249
- (m(!0), y(se, null, Ve(dt.value, (k) => (m(), y(se, {
1249
+ h("div", bi, [
1250
+ (m(!0), _(se, null, Ve(dt.value, (k) => (m(), _(se, {
1250
1251
  key: k.id
1251
1252
  }, [
1252
- a.value.state?.hidden ? (m(), y("div", bi, [
1253
- k.port ? (m(), y("div", {
1253
+ a.value.state?.hidden ? (m(), _("div", wi, [
1254
+ k.port ? (m(), _("div", {
1254
1255
  key: 0,
1255
1256
  id: k.id,
1256
1257
  title: k.name,
1257
1258
  class: "baklava-node-interface --output --connected"
1258
1259
  }, [...Z[7] || (Z[7] = [
1259
1260
  h("div", { class: "__port" }, null, -1)
1260
- ])], 8, wi)) : K("", !0)
1261
+ ])], 8, ki)) : q("", !0)
1261
1262
  ])) : ke(W.$slots, "nodeInterface", {
1262
1263
  key: 1,
1263
1264
  type: "output",
@@ -1272,19 +1273,19 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1272
1273
  ])
1273
1274
  ], 64))), 128))
1274
1275
  ]),
1275
- h("div", ki, [
1276
- (m(!0), y(se, null, Ve(Ne.value, (k) => (m(), y(se, {
1276
+ h("div", Mi, [
1277
+ (m(!0), _(se, null, Ve(Ne.value, (k) => (m(), _(se, {
1277
1278
  key: k.id
1278
1279
  }, [
1279
- a.value.state?.hidden ? (m(), y("div", Mi, [
1280
- k.port ? (m(), y("div", {
1280
+ a.value.state?.hidden ? (m(), _("div", Si, [
1281
+ k.port ? (m(), _("div", {
1281
1282
  key: 0,
1282
1283
  id: k.id,
1283
1284
  title: k.name,
1284
1285
  class: "baklava-node-interface --input --connected"
1285
1286
  }, [...Z[8] || (Z[8] = [
1286
1287
  h("div", { class: "__port" }, null, -1)
1287
- ])], 8, Si)) : K("", !0)
1288
+ ])], 8, xi)) : q("", !0)
1288
1289
  ])) : ke(W.$slots, "nodeInterface", {
1289
1290
  key: 1,
1290
1291
  node: a.value,
@@ -1302,7 +1303,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1302
1303
  ], 34)
1303
1304
  ], 46, mi));
1304
1305
  }
1305
- }), xi = ["id"], Oi = { class: "align-middle" }, mn = /* @__PURE__ */ ie({
1306
+ }), Ci = ["id"], Oi = { class: "align-middle" }, mn = /* @__PURE__ */ ie({
1306
1307
  __name: "CodeGraphNodeInterface",
1307
1308
  props: {
1308
1309
  node: {},
@@ -1318,24 +1319,24 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1318
1319
  }, d = () => {
1319
1320
  a.value && n.value.hooks.renderInterface.execute({ intf: t.intf, el: a.value });
1320
1321
  };
1321
- return Nn(d), Ms(d), (_, p) => (m(), y("div", {
1322
+ return Nn(d), Ms(d), (y, p) => (m(), _("div", {
1322
1323
  id: e.intf.id,
1323
1324
  ref_key: "el",
1324
1325
  ref: a,
1325
1326
  class: Me(["baklava-node-interface", i.value])
1326
1327
  }, [
1327
- e.intf.port ? (m(), y("div", {
1328
+ e.intf.port ? (m(), _("div", {
1328
1329
  key: 0,
1329
1330
  class: Me([{ "--selected": H(r)?.from === e.intf }, "__port"]),
1330
1331
  onPointerover: l,
1331
1332
  onPointerout: u
1332
- }, null, 34)) : K("", !0),
1333
+ }, null, 34)) : q("", !0),
1333
1334
  h("span", Oi, [
1334
- ke(_.$slots, "default")
1335
+ ke(y.$slots, "default")
1335
1336
  ])
1336
- ], 10, xi));
1337
+ ], 10, Ci));
1337
1338
  }
1338
- }), Ci = ["title"], Ni = {
1339
+ }), Ni = ["title"], Ti = {
1339
1340
  key: 0,
1340
1341
  class: "__label"
1341
1342
  }, vn = /* @__PURE__ */ ie({
@@ -1349,7 +1350,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1349
1350
  emits: ["update:modelValue"],
1350
1351
  setup(e, { emit: t }) {
1351
1352
  const n = t;
1352
- return (s, r) => (m(), y("div", {
1353
+ return (s, r) => (m(), _("div", {
1353
1354
  class: Me(["baklava-checkbox", { "--checked": e.inversed ? !e.modelValue : e.modelValue, "--disabled": e.disabled }]),
1354
1355
  title: e.name,
1355
1356
  onClick: r[0] || (r[0] = (a) => n("update:modelValue", !e.modelValue))
@@ -1368,27 +1369,27 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1368
1369
  })
1369
1370
  ])
1370
1371
  ], -1)),
1371
- e.name ? (m(), y("div", Ni, X(e.name), 1)) : K("", !0)
1372
- ], 10, Ci));
1372
+ e.name ? (m(), _("div", Ti, X(e.name), 1)) : q("", !0)
1373
+ ], 10, Ni));
1373
1374
  }
1374
- }), Ti = { class: "__header" }, Ii = { class: "__node-name" }, Di = { class: "__interfaces" }, Yi = { class: "__inputs" }, Ei = { style: { display: "flex" } }, Ri = { class: "__outputs" }, Pi = {
1375
+ }), Ii = { class: "__header" }, Di = { class: "__node-name" }, Yi = { class: "__interfaces" }, Ei = { class: "__inputs" }, Ri = { style: { display: "flex" } }, Pi = { class: "__outputs" }, $i = {
1375
1376
  key: 0,
1376
1377
  class: "__interface"
1377
- }, $i = ["placeholder"], Li = { style: { display: "flex" } }, Bs = /* @__PURE__ */ ie({
1378
+ }, Li = ["placeholder"], Ai = { style: { display: "flex" } }, Bs = /* @__PURE__ */ ie({
1378
1379
  __name: "CodeGraphSidebar",
1379
1380
  setup(e) {
1380
- const { viewModel: t } = bt(), { graph: n } = In(), s = te(null), r = On(t.value.settings.sidebar, "width"), a = F(() => t.value.settings.sidebar.resizable);
1381
+ const { viewModel: t } = bt(), { graph: n } = In(), s = te(null), r = Cn(t.value.settings.sidebar, "width"), a = F(() => t.value.settings.sidebar.resizable);
1381
1382
  let o = 0, i = 0;
1382
1383
  const l = F(() => {
1383
1384
  const w = n.value.sidebar.nodeId;
1384
1385
  return n.value.nodes.find((U) => U.id === w);
1385
1386
  }), u = F(() => l.value), d = F(() => ({
1386
1387
  width: `${r.value}px`
1387
- })), _ = F(() => u.value ? Object.values(u.value.inputs).filter((w) => w.displayInSidebar && w.component) : []), p = F(() => u.value ? Object.values(u.value.outputs).filter((w) => w.displayInSidebar && w.component) : []), I = () => {
1388
+ })), y = F(() => u.value ? Object.values(u.value.inputs).filter((w) => w.displayInSidebar && w.component) : []), p = F(() => u.value ? Object.values(u.value.outputs).filter((w) => w.displayInSidebar && w.component) : []), I = () => {
1388
1389
  n.value.sidebar.visible = !1;
1389
1390
  }, b = () => {
1390
1391
  l.value && (l.value.state.variableNameNumberAppendix = u.value.state.variableName.length === 0, l.value.events.update.emit(null));
1391
- }, O = (w) => {
1392
+ }, C = (w) => {
1392
1393
  o = r.value, i = w.clientX, window.addEventListener("mousemove", f), window.addEventListener(
1393
1394
  "mouseup",
1394
1395
  () => {
@@ -1401,35 +1402,35 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1401
1402
  let V = o - R;
1402
1403
  V < 300 ? V = 300 : V > 0.9 * U && (V = 0.9 * U), r.value = V;
1403
1404
  };
1404
- return (w, U) => (m(), y("div", {
1405
+ return (w, U) => (m(), _("div", {
1405
1406
  class: Me([{ "--open": H(n).sidebar.visible }, "baklava-sidebar"]),
1406
1407
  style: Tn(d.value),
1407
1408
  ref_key: "el",
1408
1409
  ref: s
1409
1410
  }, [
1410
- a.value ? (m(), y("div", {
1411
+ a.value ? (m(), _("div", {
1411
1412
  key: 0,
1412
1413
  class: "__resizer",
1413
- onMousedown: O
1414
- }, null, 32)) : K("", !0),
1415
- l.value ? (m(), y(se, { key: 1 }, [
1416
- h("div", Ti, [
1414
+ onMousedown: C
1415
+ }, null, 32)) : q("", !0),
1416
+ l.value ? (m(), _(se, { key: 1 }, [
1417
+ h("div", Ii, [
1417
1418
  h("button", {
1418
1419
  tabindex: "-1",
1419
1420
  class: "__close",
1420
1421
  onClick: I
1421
1422
  }, "×"),
1422
- h("div", Ii, [
1423
+ h("div", Di, [
1423
1424
  h("b", null, X(l.value.title), 1)
1424
1425
  ])
1425
1426
  ]),
1426
- h("div", Di, [
1427
- h("div", Yi, [
1428
- (m(!0), y(se, null, Ve(_.value, (R) => (m(), y("div", {
1427
+ h("div", Yi, [
1428
+ h("div", Ei, [
1429
+ (m(!0), _(se, null, Ve(y.value, (R) => (m(), _("div", {
1429
1430
  key: R.id,
1430
1431
  class: "__interface"
1431
1432
  }, [
1432
- h("div", Ei, [
1433
+ h("div", Ri, [
1433
1434
  R.hidden != null ? (m(), oe(vn, {
1434
1435
  key: 0,
1435
1436
  modelValue: R.hidden,
@@ -1440,7 +1441,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1440
1441
  disabled: !R.optional,
1441
1442
  inversed: "",
1442
1443
  style: { "padding-right": "8px" }
1443
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : K("", !0),
1444
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
1444
1445
  (m(), oe(is(R.component), {
1445
1446
  modelValue: R.value,
1446
1447
  "onUpdate:modelValue": (V) => R.value = V,
@@ -1451,8 +1452,8 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1451
1452
  ])
1452
1453
  ]))), 128))
1453
1454
  ]),
1454
- h("div", Ri, [
1455
- u.value && u.value.state ? (m(), y("div", Pi, [
1455
+ h("div", Pi, [
1456
+ u.value && u.value.state ? (m(), _("div", $i, [
1456
1457
  U[3] || (U[3] = h("label", null, "Variable name", -1)),
1457
1458
  at(h("input", {
1458
1459
  "onUpdate:modelValue": U[1] || (U[1] = (R) => u.value.state.variableName = R),
@@ -1462,15 +1463,15 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1462
1463
  title: "Variable name",
1463
1464
  onBlur: b,
1464
1465
  onKeydown: fn(b, ["enter"])
1465
- }, null, 40, $i), [
1466
+ }, null, 40, Li), [
1466
1467
  [gt, u.value.state.variableName]
1467
1468
  ])
1468
- ])) : K("", !0),
1469
- (m(!0), y(se, null, Ve(p.value, (R) => (m(), y("div", {
1469
+ ])) : q("", !0),
1470
+ (m(!0), _(se, null, Ve(p.value, (R) => (m(), _("div", {
1470
1471
  key: R.id,
1471
1472
  class: "__interface"
1472
1473
  }, [
1473
- h("div", Li, [
1474
+ h("div", Ai, [
1474
1475
  R.hidden != null ? (m(), oe(vn, {
1475
1476
  key: 0,
1476
1477
  modelValue: R.hidden,
@@ -1481,7 +1482,7 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1481
1482
  disabled: !R.optional,
1482
1483
  inversed: "",
1483
1484
  style: { "padding-right": "8px" }
1484
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : K("", !0),
1485
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
1485
1486
  (m(), oe(is(R.component), {
1486
1487
  modelValue: R.value,
1487
1488
  "onUpdate:modelValue": (V) => R.value = V,
@@ -1494,23 +1495,23 @@ const oi = /* @__PURE__ */ ni(ai), ii = (e) => ({
1494
1495
  ])
1495
1496
  ]),
1496
1497
  ke(w.$slots, "codeEditor", { node: l.value })
1497
- ], 64)) : K("", !0)
1498
+ ], 64)) : q("", !0)
1498
1499
  ], 6));
1499
1500
  }
1500
1501
  });
1501
- function Ai(e, t) {
1502
+ function Ui(e, t) {
1502
1503
  return Object.fromEntries(Object.entries(e).filter(t));
1503
1504
  }
1504
- function Ui(e, t) {
1505
+ function Wi(e, t) {
1505
1506
  return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
1506
1507
  }
1507
- const Wi = {
1508
+ const Hi = {
1508
1509
  class: "baklava-node --palette",
1509
1510
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1510
- }, Hi = {
1511
+ }, Fi = {
1511
1512
  key: 0,
1512
1513
  style: { display: "flex", "justify-content": "space-between" }
1513
- }, Fi = ["onClick"], Vi = {
1514
+ }, Vi = ["onClick"], Gi = {
1514
1515
  key: 0,
1515
1516
  style: { margin: "auto 0", "font-size": "12px" }
1516
1517
  }, Zs = /* @__PURE__ */ ie({
@@ -1518,40 +1519,40 @@ const Wi = {
1518
1519
  setup(e) {
1519
1520
  const t = pn.PaletteEntry, { viewModel: n } = bt(), { x: s, y: r } = Wa(), { transform: a } = va(), o = _a(n), i = ca("editorEl"), l = te(""), u = te(null), d = () => l.value ? o.value.filter(
1520
1521
  (b) => b.name.toLowerCase().includes(l.value.toLowerCase()) || Object.values(b.nodeTypes).some(
1521
- (O) => O.title.toLowerCase().includes(l.value.toLowerCase())
1522
+ (C) => C.title.toLowerCase().includes(l.value.toLowerCase())
1522
1523
  )
1523
- ) : o.value, _ = (b) => l.value ? Ai(b, (O) => {
1524
- const f = O[1];
1524
+ ) : o.value, y = (b) => l.value ? Ui(b, (C) => {
1525
+ const f = C[1];
1525
1526
  return f.category.includes(l.value.toLowerCase()) || f.title?.toLowerCase().includes(l.value.toLowerCase());
1526
1527
  }) : b, p = F(() => {
1527
1528
  if (!u.value || !i?.value) return {};
1528
- const { left: b, top: O } = i.value.getBoundingClientRect();
1529
+ const { left: b, top: C } = i.value.getBoundingClientRect();
1529
1530
  return {
1530
- top: `${r.value - O}px`,
1531
+ top: `${r.value - C}px`,
1531
1532
  left: `${s.value - b}px`
1532
1533
  };
1533
- }), I = (b, O) => {
1534
+ }), I = (b, C) => {
1534
1535
  u.value = {
1535
1536
  type: b,
1536
- nodeInformation: O
1537
+ nodeInformation: C
1537
1538
  };
1538
1539
  const f = () => {
1539
- const w = Pe(new O.type());
1540
+ const w = Pe(new C.type());
1540
1541
  n.value.displayedGraph.addNode(w);
1541
1542
  const U = i.value.getBoundingClientRect(), [R, V] = a(s.value - U.left, r.value - U.top);
1542
1543
  w.position.x = R, w.position.y = V, u.value = null, document.removeEventListener("pointerup", f);
1543
1544
  };
1544
1545
  document.addEventListener("pointerup", f);
1545
1546
  };
1546
- return (b, O) => (m(), y(se, null, [
1547
+ return (b, C) => (m(), _(se, null, [
1547
1548
  h("div", {
1548
1549
  class: Me([{ "--open": H(n).settings.palette.enabled }, "baklava-node-palette"]),
1549
- onContextmenu: O[1] || (O[1] = et(() => {
1550
+ onContextmenu: C[1] || (C[1] = et(() => {
1550
1551
  }, ["stop", "prevent"]))
1551
1552
  }, [
1552
- h("div", Wi, [
1553
+ h("div", Hi, [
1553
1554
  at(h("input", {
1554
- "onUpdate:modelValue": O[0] || (O[0] = (f) => l.value = f),
1555
+ "onUpdate:modelValue": C[0] || (C[0] = (f) => l.value = f),
1555
1556
  type: "text",
1556
1557
  class: "baklava-input",
1557
1558
  title: "Filter nodes",
@@ -1560,17 +1561,17 @@ const Wi = {
1560
1561
  [gt, l.value]
1561
1562
  ])
1562
1563
  ]),
1563
- (m(!0), y(se, null, Ve(d(), (f) => (m(), y("section", {
1564
+ (m(!0), _(se, null, Ve(d(), (f) => (m(), _("section", {
1564
1565
  key: f.name
1565
1566
  }, [
1566
- f.name !== "default" ? (m(), y("h3", Hi, [
1567
+ f.name !== "default" ? (m(), _("h3", Fi, [
1567
1568
  h("div", {
1568
1569
  onClick: (w) => l.value = f.name,
1569
1570
  style: { cursor: "pointer" }
1570
- }, X(f.name), 9, Fi),
1571
- Object.keys(_(f.nodeTypes)).length < Object.values(f.nodeTypes).length ? (m(), y("div", Vi, " ( " + X(Object.keys(_(f.nodeTypes)).length) + " / " + X(Object.values(f.nodeTypes).length) + " ) ", 1)) : K("", !0)
1572
- ])) : K("", !0),
1573
- (m(!0), y(se, null, Ve(_(f.nodeTypes), (w, U) => (m(), oe(H(t), {
1571
+ }, X(f.name), 9, Vi),
1572
+ Object.keys(y(f.nodeTypes)).length < Object.values(f.nodeTypes).length ? (m(), _("div", Gi, " ( " + X(Object.keys(y(f.nodeTypes)).length) + " / " + X(Object.values(f.nodeTypes).length) + " ) ", 1)) : q("", !0)
1573
+ ])) : q("", !0),
1574
+ (m(!0), _(se, null, Ve(y(f.nodeTypes), (w, U) => (m(), oe(H(t), {
1574
1575
  key: U,
1575
1576
  title: w.title,
1576
1577
  type: U,
@@ -1578,9 +1579,9 @@ const Wi = {
1578
1579
  }, null, 8, ["title", "type", "onPointerdown"]))), 128))
1579
1580
  ]))), 128))
1580
1581
  ], 34),
1581
- J(Os, { name: "fade" }, {
1582
+ J(Cs, { name: "fade" }, {
1582
1583
  default: we(() => [
1583
- u.value ? (m(), y("div", {
1584
+ u.value ? (m(), _("div", {
1584
1585
  key: 0,
1585
1586
  class: "baklava-dragged-node",
1586
1587
  style: Tn(p.value)
@@ -1589,29 +1590,29 @@ const Wi = {
1589
1590
  type: u.value.type,
1590
1591
  title: u.value.nodeInformation.title
1591
1592
  }, null, 8, ["type", "title"])
1592
- ], 4)) : K("", !0)
1593
+ ], 4)) : q("", !0)
1593
1594
  ]),
1594
1595
  _: 1
1595
1596
  })
1596
1597
  ], 64));
1597
1598
  }
1598
- }), Gi = {}, ji = { class: "prependIcon" }, zi = { class: "appendIcon" };
1599
- function Bi(e, t) {
1600
- const n = Cn("router-link");
1599
+ }), ji = {}, zi = { class: "prependIcon" }, Bi = { class: "appendIcon" };
1600
+ function Zi(e, t) {
1601
+ const n = On("router-link");
1601
1602
  return m(), oe(n, { class: "navItem" }, {
1602
1603
  default: we(() => [
1603
- h("span", ji, [
1604
+ h("span", zi, [
1604
1605
  ke(e.$slots, "prependIcon")
1605
1606
  ]),
1606
1607
  ke(e.$slots, "default"),
1607
- h("span", zi, [
1608
+ h("span", Bi, [
1608
1609
  ke(e.$slots, "appendIcon")
1609
1610
  ])
1610
1611
  ]),
1611
1612
  _: 3
1612
1613
  });
1613
1614
  }
1614
- const _n = /* @__PURE__ */ B(Gi, [["render", Bi]]), Zi = { class: "navbar" }, qi = ["onClick"], Ki = /* @__PURE__ */ ie({
1615
+ const _n = /* @__PURE__ */ B(ji, [["render", Zi]]), qi = { class: "navbar" }, Ki = ["onClick"], Xi = /* @__PURE__ */ ie({
1615
1616
  __name: "NavBar",
1616
1617
  props: {
1617
1618
  viewModel: {},
@@ -1623,9 +1624,9 @@ const _n = /* @__PURE__ */ B(Gi, [["render", Bi]]), Zi = { class: "navbar" }, qi
1623
1624
  const n = t, s = (r) => {
1624
1625
  n("click:remove", r);
1625
1626
  };
1626
- return (r, a) => (m(), y("nav", Zi, [
1627
+ return (r, a) => (m(), _("nav", qi, [
1627
1628
  ke(r.$slots, "prepend"),
1628
- (m(!0), y(se, null, Ve(e.editorStates, (o) => (m(), oe(_n, {
1629
+ (m(!0), _(se, null, Ve(e.editorStates, (o) => (m(), oe(_n, {
1629
1630
  key: o.graph.id,
1630
1631
  class: Me({ active: o.graph.id === e.viewModel.displayedGraph.id }),
1631
1632
  to: { name: e.routes?.edit ?? "edit", params: { editorId: o.graph.id } }
@@ -1636,7 +1637,7 @@ const _n = /* @__PURE__ */ B(Gi, [["render", Bi]]), Zi = { class: "navbar" }, qi
1636
1637
  onClick: et((i) => s(o.graph.id), ["prevent"])
1637
1638
  }, [
1638
1639
  J(H(Gs))
1639
- ], 8, qi)
1640
+ ], 8, Ki)
1640
1641
  ]),
1641
1642
  default: we(() => [
1642
1643
  Ss(X(o.graph.id.slice(0, 6)) + " ", 1)
@@ -1656,17 +1657,17 @@ const _n = /* @__PURE__ */ B(Gi, [["render", Bi]]), Zi = { class: "navbar" }, qi
1656
1657
  ])
1657
1658
  ]));
1658
1659
  }
1659
- }), Xi = ["title"], Gt = /* @__PURE__ */ ie({
1660
+ }), Ji = ["title"], Gt = /* @__PURE__ */ ie({
1660
1661
  __name: "CodeNodeInterface",
1661
1662
  props: {
1662
1663
  intf: {}
1663
1664
  },
1664
1665
  setup(e) {
1665
- return (t, n) => (m(), y("div", {
1666
+ return (t, n) => (m(), _("div", {
1666
1667
  title: e.intf.value
1667
- }, X(e.intf.name), 9, Xi));
1668
+ }, X(e.intf.name), 9, Ji));
1668
1669
  }
1669
- }), Ji = ie({
1670
+ }), Qi = ie({
1670
1671
  props: {
1671
1672
  intf: {
1672
1673
  type: Object,
@@ -1686,22 +1687,22 @@ const _n = /* @__PURE__ */ B(Gi, [["render", Bi]]), Zi = { class: "navbar" }, qi
1686
1687
  }
1687
1688
  }) };
1688
1689
  }
1689
- }), Qi = { style: { position: "relative" } }, el = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-10px", "background-color": "var(--baklava-node-color-background)" } }, tl = ["placeholder", "title"];
1690
- function nl(e, t, n, s, r, a) {
1691
- return m(), y("div", Qi, [
1692
- h("label", el, X(e.intf.name), 1),
1690
+ }), el = { style: { position: "relative" } }, tl = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-10px", "background-color": "var(--baklava-node-color-background)" } }, nl = ["placeholder", "title"];
1691
+ function sl(e, t, n, s, r, a) {
1692
+ return m(), _("div", el, [
1693
+ h("label", tl, X(e.intf.name), 1),
1693
1694
  at(h("input", {
1694
1695
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
1695
1696
  type: "text",
1696
1697
  class: "baklava-input",
1697
1698
  placeholder: e.intf.name,
1698
1699
  title: e.intf.name
1699
- }, null, 8, tl), [
1700
+ }, null, 8, nl), [
1700
1701
  [gt, e.v]
1701
1702
  ])
1702
1703
  ]);
1703
1704
  }
1704
- const jt = /* @__PURE__ */ B(Ji, [["render", nl]]), sl = ie({
1705
+ const jt = /* @__PURE__ */ B(Qi, [["render", sl]]), rl = ie({
1705
1706
  components: {
1706
1707
  "i-arrow": Ys
1707
1708
  },
@@ -1721,39 +1722,39 @@ const jt = /* @__PURE__ */ B(Ji, [["render", nl]]), sl = ie({
1721
1722
  n.value = !1;
1722
1723
  }), { el: t, open: n, selectedItem: s, selectedText: r, setSelected: a };
1723
1724
  }
1724
- }), rl = ["title"], al = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-10px", "background-color": "var(--baklava-node-color-background)" } }, ol = { class: "__selected" }, il = { class: "__text" }, ll = { class: "__icon" }, ul = { class: "__dropdown" }, dl = ["onClick"];
1725
- function cl(e, t, n, s, r, a) {
1726
- const o = Cn("i-arrow");
1727
- return m(), y("div", {
1725
+ }), al = ["title"], ol = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-10px", "background-color": "var(--baklava-node-color-background)" } }, il = { class: "__selected" }, ll = { class: "__text" }, ul = { class: "__icon" }, dl = { class: "__dropdown" }, cl = ["onClick"];
1726
+ function hl(e, t, n, s, r, a) {
1727
+ const o = On("i-arrow");
1728
+ return m(), _("div", {
1728
1729
  ref: "el",
1729
1730
  class: Me(["baklava-select", { "--open": e.open }]),
1730
1731
  title: e.intf.name,
1731
1732
  onClick: t[0] || (t[0] = (i) => e.open = !e.open)
1732
1733
  }, [
1733
- h("label", al, X(e.intf.name), 1),
1734
- h("div", ol, [
1735
- h("div", il, X(e.selectedText), 1),
1736
- h("div", ll, [
1734
+ h("label", ol, X(e.intf.name), 1),
1735
+ h("div", il, [
1736
+ h("div", ll, X(e.selectedText), 1),
1737
+ h("div", ul, [
1737
1738
  J(o)
1738
1739
  ])
1739
1740
  ]),
1740
- J(Os, { name: "slide-fade" }, {
1741
+ J(Cs, { name: "slide-fade" }, {
1741
1742
  default: we(() => [
1742
- at(h("div", ul, [
1743
- (m(!0), y(se, null, Ve(e.intf.items, (i, l) => (m(), y("div", {
1743
+ at(h("div", dl, [
1744
+ (m(!0), _(se, null, Ve(e.intf.items, (i, l) => (m(), _("div", {
1744
1745
  key: l,
1745
1746
  class: Me(["item", { "--active": i === e.selectedItem }]),
1746
1747
  onClick: (u) => e.setSelected(i)
1747
- }, X(typeof i == "string" ? i : i.text), 11, dl))), 128))
1748
+ }, X(typeof i == "string" ? i : i.text), 11, cl))), 128))
1748
1749
  ], 512), [
1749
1750
  [ha, e.open]
1750
1751
  ])
1751
1752
  ]),
1752
1753
  _: 1
1753
1754
  })
1754
- ], 10, rl);
1755
+ ], 10, al);
1755
1756
  }
1756
- const qs = /* @__PURE__ */ B(sl, [["render", cl]]), hl = ie({
1757
+ const qs = /* @__PURE__ */ B(rl, [["render", hl]]), fl = ie({
1757
1758
  props: {
1758
1759
  intf: {
1759
1760
  type: Object,
@@ -1773,22 +1774,22 @@ const qs = /* @__PURE__ */ B(sl, [["render", cl]]), hl = ie({
1773
1774
  }
1774
1775
  }) };
1775
1776
  }
1776
- }), fl = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-6px", "background-color": "var(--baklava-node-color-background)" } }, pl = ["placeholder", "title"];
1777
- function ml(e, t, n, s, r, a) {
1778
- return m(), y("div", null, [
1779
- h("label", fl, X(e.intf.name), 1),
1777
+ }), pl = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-6px", "background-color": "var(--baklava-node-color-background)" } }, ml = ["placeholder", "title"];
1778
+ function vl(e, t, n, s, r, a) {
1779
+ return m(), _("div", null, [
1780
+ h("label", pl, X(e.intf.name), 1),
1780
1781
  at(h("textarea", {
1781
1782
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
1782
1783
  rows: "5",
1783
1784
  class: "baklava-input",
1784
1785
  placeholder: e.intf.name,
1785
1786
  title: e.intf.name
1786
- }, null, 8, pl), [
1787
+ }, null, 8, ml), [
1787
1788
  [gt, e.v]
1788
1789
  ])
1789
1790
  ]);
1790
1791
  }
1791
- const Ks = /* @__PURE__ */ B(hl, [["render", ml]]), rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1792
+ const Ks = /* @__PURE__ */ B(fl, [["render", vl]]), af = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1792
1793
  __proto__: null,
1793
1794
  CodeEditor: ci,
1794
1795
  CodeGraphEditor: hi,
@@ -1799,16 +1800,16 @@ const Ks = /* @__PURE__ */ B(hl, [["render", ml]]), rf = /* @__PURE__ */ Object.
1799
1800
  CodeNodeInterface: Gt,
1800
1801
  CodeNodePalette: Zs,
1801
1802
  CopyToClipboard: js,
1802
- NavBar: Ki,
1803
+ NavBar: Xi,
1803
1804
  NavItem: _n,
1804
1805
  SelectInterface: qs,
1805
1806
  SidebarCheckbox: vn,
1806
1807
  TextInputInterface: jt,
1807
1808
  TextareaInputInterface: Ks
1808
- }, Symbol.toStringTag, { value: "Module" })), vl = (e, t) => {
1809
+ }, Symbol.toStringTag, { value: "Module" })), _l = (e, t) => {
1809
1810
  switch (e) {
1810
1811
  case "CheckboxInterface":
1811
- return new gl(t.id, !!t.value);
1812
+ return new bl(t.id, !!t.value);
1812
1813
  case "IntegerInterface":
1813
1814
  return new nr(
1814
1815
  t.id,
@@ -1817,7 +1818,7 @@ const Ks = /* @__PURE__ */ B(hl, [["render", ml]]), rf = /* @__PURE__ */ Object.
1817
1818
  t.max
1818
1819
  );
1819
1820
  case "ListInputInterface":
1820
- return new wl(t.id, String(t.value));
1821
+ return new kl(t.id, String(t.value));
1821
1822
  case "NumberInterface":
1822
1823
  return new sr(
1823
1824
  t.id,
@@ -1826,28 +1827,28 @@ const Ks = /* @__PURE__ */ B(hl, [["render", ml]]), rf = /* @__PURE__ */ Object.
1826
1827
  t.max
1827
1828
  );
1828
1829
  case "SelectInterface":
1829
- return new kl(t.id, t.value, t.items);
1830
+ return new Ml(t.id, t.value, t.items);
1830
1831
  case "SliderInterface":
1831
- return new Ml(
1832
+ return new Sl(
1832
1833
  t.id,
1833
1834
  Number(t.value),
1834
1835
  t.min,
1835
1836
  t.max
1836
1837
  );
1837
1838
  case "TupleInputInterface":
1838
- return new Sl(t.id, String(t.value));
1839
+ return new xl(t.id, String(t.value));
1839
1840
  default:
1840
1841
  return new Bt(t.id, String(t.value));
1841
1842
  }
1842
- }, _l = (e, t = !0) => {
1843
+ }, yl = (e, t = !0) => {
1843
1844
  const n = [], s = Object.keys(e);
1844
1845
  return s.forEach((r) => {
1845
1846
  if (e[r]?.hidden) return;
1846
1847
  const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
1847
1848
  n.push(`${o}{{ inputs.${r} }}`);
1848
1849
  }), n;
1849
- }, Xs = new qe("boolean"), yl = new qe("dict"), Js = new qe("list"), yn = new qe("node"), Qs = new qe("number"), er = new qe("string"), tr = new qe("tuple"), af = (e) => {
1850
- new Fa(e.editor, { viewPlugin: e }).addTypes(Xs, yl, Js, yn, Qs, er, tr);
1850
+ }, Xs = new qe("boolean"), gl = new qe("dict"), Js = new qe("list"), yn = new qe("node"), Qs = new qe("number"), er = new qe("string"), tr = new qe("tuple"), of = (e) => {
1851
+ new Fa(e.editor, { viewPlugin: e }).addTypes(Xs, gl, Js, yn, Qs, er, tr);
1851
1852
  };
1852
1853
  class le extends Ns {
1853
1854
  component = ce(Gt);
@@ -1892,7 +1893,10 @@ const zt = (e) => {
1892
1893
  class kt extends le {
1893
1894
  component = ce(Gt);
1894
1895
  constructor(t = "", n) {
1895
- super(t, n), this.use(Cs, !0);
1896
+ super(t, n), this.use(Os, !0);
1897
+ }
1898
+ get connections() {
1899
+ return this.connectionCount === 0 ? [] : this.code?.graph?.connections.filter((t) => t.to.id === this.id) ?? [];
1896
1900
  }
1897
1901
  get value() {
1898
1902
  return super.value;
@@ -1901,7 +1905,7 @@ class kt extends le {
1901
1905
  super.value = t, this.name !== "_code" && this.setHidden(!1);
1902
1906
  }
1903
1907
  }
1904
- class gl extends kt {
1908
+ class bl extends kt {
1905
1909
  component = ce(ya);
1906
1910
  componentName = "CheckboxInterface";
1907
1911
  constructor(t, n) {
@@ -1909,7 +1913,7 @@ class gl extends kt {
1909
1913
  }
1910
1914
  getValue = () => this.value ? "True" : "False";
1911
1915
  }
1912
- class bl extends le {
1916
+ class wl extends le {
1913
1917
  component = ce(Gt);
1914
1918
  isCodeNodeOutput = !0;
1915
1919
  suffix = "";
@@ -1919,6 +1923,9 @@ class bl extends le {
1919
1923
  get codeValue() {
1920
1924
  return this.node?.outputs._code?.value ?? "";
1921
1925
  }
1926
+ get connections() {
1927
+ return this.connectionCount === 0 ? [] : this.code?.graph?.connections.filter((t) => t.from.id === this.id) ?? [];
1928
+ }
1922
1929
  get node() {
1923
1930
  const { graph: t } = In();
1924
1931
  return t.value.findNodeById(this.nodeId);
@@ -1942,7 +1949,7 @@ class nr extends En {
1942
1949
  return Number.isInteger(t) && super.validate(t);
1943
1950
  }
1944
1951
  }
1945
- class wl extends kt {
1952
+ class kl extends kt {
1946
1953
  component = ce(jt);
1947
1954
  componentName = "ListInputInterface";
1948
1955
  constructor(t, n = "") {
@@ -1960,7 +1967,7 @@ class Rn extends kt {
1960
1967
  }
1961
1968
  getValue = () => `"${this.value}"`;
1962
1969
  }
1963
- class kl extends Rn {
1970
+ class Ml extends Rn {
1964
1971
  component = ce(qs);
1965
1972
  componentName = "SelectInterface";
1966
1973
  items = [];
@@ -1968,7 +1975,7 @@ class kl extends Rn {
1968
1975
  super(t, n), s && (this.items = s);
1969
1976
  }
1970
1977
  }
1971
- class Ml extends En {
1978
+ class Sl extends En {
1972
1979
  component = ce(wa);
1973
1980
  componentName = "SliderInterface";
1974
1981
  min = 0;
@@ -1979,10 +1986,10 @@ class Ml extends En {
1979
1986
  class Bt extends Rn {
1980
1987
  component = ce(jt);
1981
1988
  }
1982
- class of extends Rn {
1989
+ class lf extends Rn {
1983
1990
  component = ce(Ks);
1984
1991
  }
1985
- class Sl extends kt {
1992
+ class xl extends kt {
1986
1993
  component = ce(jt);
1987
1994
  componentName = "TupleInputInterface";
1988
1995
  constructor(t, n = "") {
@@ -2011,7 +2018,7 @@ class rr extends Ra {
2011
2018
  script: "",
2012
2019
  variableName: ""
2013
2020
  }), this.codeTemplate = function() {
2014
- return `${this.name}(${_l(this.codeNodeInputs).join(", ")})`;
2021
+ return `${this.name}(${yl(this.codeNodeInputs).join(", ")})`;
2015
2022
  };
2016
2023
  }
2017
2024
  get code() {
@@ -2133,7 +2140,13 @@ class rr extends Ra {
2133
2140
  * Remove this node from the graph.
2134
2141
  */
2135
2142
  remove() {
2136
- this.graph?.removeNode(this);
2143
+ this.graph && this.graph.removeNode(this);
2144
+ }
2145
+ /**
2146
+ * Remove connections of this node.
2147
+ */
2148
+ removeConnections() {
2149
+ this.graph && this.graph.removeConnectionsByNodeId(this.id);
2137
2150
  }
2138
2151
  /**
2139
2152
  * Render code of this node.
@@ -2222,7 +2235,7 @@ class Pn extends rr {
2222
2235
  return super.save();
2223
2236
  }
2224
2237
  }
2225
- function lf(e) {
2238
+ function uf(e) {
2226
2239
  return class extends Pn {
2227
2240
  type = e.type;
2228
2241
  inputs = {};
@@ -2256,10 +2269,10 @@ function lf(e) {
2256
2269
  }
2257
2270
  };
2258
2271
  }
2259
- class xl extends Pn {
2272
+ class Cl extends Pn {
2260
2273
  }
2261
- function uf(e) {
2262
- return class extends xl {
2274
+ function df(e) {
2275
+ return class extends Cl {
2263
2276
  type = e.type;
2264
2277
  inputs = {};
2265
2278
  outputs = {};
@@ -2307,14 +2320,14 @@ function uf(e) {
2307
2320
  if (!this.inputs[n]) {
2308
2321
  const s = t.inputs[n], r = s.value;
2309
2322
  let a;
2310
- s.component ? a = vl(s.component, { ...s, id: n }) : typeof r == "number" ? 0 < r && r < 1 ? a = new sr(n, Number(r)) : a = new nr(n, Number(r)) : a = new Bt(n, String(r)), a.use(Cs, !0), this.addInput(n, a);
2323
+ s.component ? a = _l(s.component, { ...s, id: n }) : typeof r == "number" ? 0 < r && r < 1 ? a = new sr(n, Number(r)) : a = new nr(n, Number(r)) : a = new Bt(n, String(r)), a.use(Os, !0), this.addInput(n, a);
2311
2324
  }
2312
2325
  this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
2313
2326
  }
2314
2327
  for (const n of Object.keys(t.outputs))
2315
2328
  if (!(this.staticOutputKeys.includes(n) || !t.outputs[n])) {
2316
2329
  if (!this.outputs[n]) {
2317
- const s = new bl(n);
2330
+ const s = new wl(n);
2318
2331
  this.addOutput(n, s);
2319
2332
  }
2320
2333
  this.outputs[n] && (this.outputs[n].load(t.outputs[n]), this.outputs[n].nodeId = this.id);
@@ -2422,12 +2435,12 @@ class $n {
2422
2435
  this.state.script = ot.render(this.state.template ?? "", t ?? {});
2423
2436
  }
2424
2437
  }
2425
- class df extends $n {
2438
+ class cf extends $n {
2426
2439
  constructor() {
2427
2440
  super(), this.loadTemplate(import("./python-CKuCd7tg.js"));
2428
2441
  }
2429
2442
  }
2430
- class cf extends $n {
2443
+ class hf extends $n {
2431
2444
  constructor() {
2432
2445
  super(), this.loadTemplate(import("./javascript-DK1c6Ap1.js"));
2433
2446
  }
@@ -2563,6 +2576,13 @@ class Mt extends Pa {
2563
2576
  const n = super.load(t);
2564
2577
  return this.nodes.forEach((s) => s.afterGraphLoaded()), n;
2565
2578
  }
2579
+ /**
2580
+ * Remove connections to or from the node.
2581
+ * @param nodeId node ID
2582
+ */
2583
+ removeConnectionsByNodeId(t) {
2584
+ this.connections.filter((n) => n.to.nodeId === t || n.from.nodeId === t).forEach((n) => this.removeConnection(n));
2585
+ }
2566
2586
  /**
2567
2587
  * Render code script.
2568
2588
  */
@@ -2609,10 +2629,10 @@ const ar = (e) => {
2609
2629
  return e.nodes.length === 0 || e.nodes.forEach((n) => {
2610
2630
  n && (n.hasOwnProperty("subgraph") ? t.push(...ar(n.subgraph)) : n.hasOwnProperty("isCodeNode") && t.push(n));
2611
2631
  }), t;
2612
- }, hf = (e = 0, t = 100) => ({
2632
+ }, ff = (e = 0, t = 100) => ({
2613
2633
  x: e * (Ln + 70),
2614
2634
  y: t
2615
- }), ff = (e) => {
2635
+ }), pf = (e) => {
2616
2636
  const t = { ...e.position };
2617
2637
  return t.x -= Ln + 70, t.y += 50, t;
2618
2638
  }, hs = "__baklava_SubgraphInputNode", fs = "__baklava_SubgraphOutputNode";
@@ -2694,39 +2714,39 @@ class dr extends lr {
2694
2714
  };
2695
2715
  }
2696
2716
  const Ol = "CREATE_SUBGRAPH", ps = [$a, La];
2697
- function Cl(e, t, n) {
2717
+ function Nl(e, t, n) {
2698
2718
  const s = () => e.value.selectedNodes.filter((a) => !ps.includes(a.type)).length > 0, r = () => {
2699
2719
  const { viewModel: a } = bt(), o = e.value, i = e.value.editor;
2700
2720
  if (o.selectedNodes.length === 0) return;
2701
- const l = o.selectedNodes.filter((C) => !ps.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), d = l.flatMap((C) => Object.values(C.outputs)), _ = o.connections.filter(
2702
- (C) => !d.includes(C.from) && u.includes(C.to)
2721
+ const l = o.selectedNodes.filter((O) => !ps.includes(O.type)), u = l.flatMap((O) => Object.values(O.inputs)), d = l.flatMap((O) => Object.values(O.outputs)), y = o.connections.filter(
2722
+ (O) => !d.includes(O.from) && u.includes(O.to)
2703
2723
  ), p = o.connections.filter(
2704
- (C) => d.includes(C.from) && !u.includes(C.to)
2724
+ (O) => d.includes(O.from) && !u.includes(O.to)
2705
2725
  ), I = o.connections.filter(
2706
- (C) => d.includes(C.from) && u.includes(C.to)
2707
- ), b = l.map((C) => C.save()), O = I.map((C) => ({
2708
- id: C.id,
2709
- from: C.from.id,
2710
- to: C.to.id
2711
- })), f = /* @__PURE__ */ new Map(), { xLeft: w, xRight: U, yTop: R } = Nl(l);
2712
- for (const [C, ee] of _.entries()) {
2726
+ (O) => d.includes(O.from) && u.includes(O.to)
2727
+ ), b = l.map((O) => O.save()), C = I.map((O) => ({
2728
+ id: O.id,
2729
+ from: O.from.id,
2730
+ to: O.to.id
2731
+ })), f = /* @__PURE__ */ new Map(), { xLeft: w, xRight: U, yTop: R } = Tl(l);
2732
+ for (const [O, ee] of y.entries()) {
2713
2733
  const re = new ur();
2714
2734
  re.inputs.name.value = ee.to.name, b.push({
2715
2735
  ...re.save(),
2716
- position: { x: U - a.value.settings.nodes.defaultWidth - 100, y: R + C * 200 }
2717
- }), O.push({ id: Ze(), from: re.outputs.placeholder.id, to: ee.to.id }), f.set(ee.to.id, re.graphInterfaceId);
2736
+ position: { x: U - a.value.settings.nodes.defaultWidth - 100, y: R + O * 200 }
2737
+ }), C.push({ id: Ze(), from: re.outputs.placeholder.id, to: ee.to.id }), f.set(ee.to.id, re.graphInterfaceId);
2718
2738
  }
2719
- for (const [C, ee] of p.entries()) {
2739
+ for (const [O, ee] of p.entries()) {
2720
2740
  const re = new dr();
2721
2741
  re.inputs.name.value = ee.from.name, b.push({
2722
2742
  ...re.save(),
2723
- position: { x: w + 100, y: R + C * 200 }
2724
- }), O.push({ id: Ze(), from: ee.from.id, to: re.inputs.placeholder.id }), f.set(ee.from.id, re.graphInterfaceId);
2743
+ position: { x: w + 100, y: R + O * 200 }
2744
+ }), C.push({ id: Ze(), from: ee.from.id, to: re.inputs.placeholder.id }), f.set(ee.from.id, re.graphInterfaceId);
2725
2745
  }
2726
2746
  const V = Pe(
2727
2747
  new an(
2728
2748
  {
2729
- connections: O,
2749
+ connections: C,
2730
2750
  nodes: b,
2731
2751
  // ignored, but still providing to make TS happy
2732
2752
  inputs: [],
@@ -2736,28 +2756,28 @@ function Cl(e, t, n) {
2736
2756
  )
2737
2757
  );
2738
2758
  i.addGraphTemplate(V);
2739
- const Ce = i.nodeTypes.get(Ts(V));
2740
- if (!Ce) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
2759
+ const Oe = i.nodeTypes.get(Ts(V));
2760
+ if (!Oe) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
2741
2761
  o.activeTransactions++;
2742
- const Ne = Pe(new Ce.type());
2762
+ const Ne = Pe(new Oe.type());
2743
2763
  o.addNode(Ne);
2744
2764
  const dt = Math.round(
2745
- l.map((C) => C.position.x).reduce((C, ee) => C + ee, 0) / l.length
2765
+ l.map((O) => O.position.x).reduce((O, ee) => O + ee, 0) / l.length
2746
2766
  ), ge = Math.round(
2747
- l.map((C) => C.position.y).reduce((C, ee) => C + ee, 0) / l.length
2767
+ l.map((O) => O.position.y).reduce((O, ee) => O + ee, 0) / l.length
2748
2768
  );
2749
- Ne.position.x = dt, Ne.position.y = ge, _.forEach((C) => {
2750
- o.removeConnection(C), o.addConnection(C.from, Ne.inputs[f.get(C.to.id)]);
2751
- }), p.forEach((C) => {
2752
- o.removeConnection(C), o.addConnection(Ne.outputs[f.get(C.from.id)], C.to);
2753
- }), l.forEach((C) => o.removeNode(C)), o.activeTransactions--, t.canExecuteCommand(Ue.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(Ue.SAVE_SUBGRAPH_COMMAND), n(V), e.value.panning = { ...o.panning }, e.value.scaling = o.scaling;
2769
+ Ne.position.x = dt, Ne.position.y = ge, y.forEach((O) => {
2770
+ o.removeConnection(O), o.addConnection(O.from, Ne.inputs[f.get(O.to.id)]);
2771
+ }), p.forEach((O) => {
2772
+ o.removeConnection(O), o.addConnection(Ne.outputs[f.get(O.from.id)], O.to);
2773
+ }), l.forEach((O) => o.removeNode(O)), o.activeTransactions--, t.canExecuteCommand(Ue.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(Ue.SAVE_SUBGRAPH_COMMAND), n(V), e.value.panning = { ...o.panning }, e.value.scaling = o.scaling;
2754
2774
  };
2755
2775
  t.registerCommand(Ol, {
2756
2776
  canExecute: s,
2757
2777
  execute: r
2758
2778
  });
2759
2779
  }
2760
- function Nl(e) {
2780
+ function Tl(e) {
2761
2781
  const t = e.reduce((r, a) => {
2762
2782
  const o = a.position.x;
2763
2783
  return o < r ? o : r;
@@ -2770,7 +2790,7 @@ function Nl(e) {
2770
2790
  return o > r ? o : r;
2771
2791
  }, -1 / 0), xRight: t, yTop: n };
2772
2792
  }
2773
- const Tl = [
2793
+ const Il = [
2774
2794
  "component",
2775
2795
  "connectionCount",
2776
2796
  "events",
@@ -2785,7 +2805,7 @@ const Tl = [
2785
2805
  "templateId",
2786
2806
  "value"
2787
2807
  ];
2788
- function Il(e) {
2808
+ function Dl(e) {
2789
2809
  return class extends rr {
2790
2810
  type = Ts(e);
2791
2811
  get title() {
@@ -2877,13 +2897,13 @@ function Il(e) {
2877
2897
  const r = new le(n.name, void 0);
2878
2898
  return new Proxy(r, {
2879
2899
  get: (a, o) => {
2880
- if (Tl.includes(o) || o in a || typeof o == "string" && o.startsWith("__v_"))
2900
+ if (Il.includes(o) || o in a || typeof o == "string" && o.startsWith("__v_"))
2881
2901
  return Reflect.get(a, o);
2882
2902
  let i;
2883
2903
  s ? i = this.subgraph?.nodes.find(
2884
- (_) => ir.isGraphInputNode(_) && _.graphInterfaceId === n.id
2904
+ (y) => ir.isGraphInputNode(y) && y.graphInterfaceId === n.id
2885
2905
  )?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
2886
- (_) => lr.isGraphOutputNode(_) && _.graphInterfaceId === n.id
2906
+ (y) => lr.isGraphOutputNode(y) && y.graphInterfaceId === n.id
2887
2907
  )?.inputs.placeholder.id;
2888
2908
  const l = this.subgraph?.connections.find((d) => i === (s ? d.from : d.to)?.id), u = s ? l?.to : l?.from;
2889
2909
  if (u) return Reflect.get(u, o);
@@ -2896,7 +2916,7 @@ var cr;
2896
2916
  function v() {
2897
2917
  return cr.apply(null, arguments);
2898
2918
  }
2899
- function Dl(e) {
2919
+ function Yl(e) {
2900
2920
  cr = e;
2901
2921
  }
2902
2922
  function ve(e) {
@@ -2940,7 +2960,7 @@ function We(e, t) {
2940
2960
  function xe(e, t, n, s) {
2941
2961
  return Pr(e, t, n, s, !0).utc();
2942
2962
  }
2943
- function Yl() {
2963
+ function El() {
2944
2964
  return {
2945
2965
  empty: !1,
2946
2966
  unusedTokens: [],
@@ -2961,7 +2981,7 @@ function Yl() {
2961
2981
  };
2962
2982
  }
2963
2983
  function T(e) {
2964
- return e._pf == null && (e._pf = Yl()), e._pf;
2984
+ return e._pf == null && (e._pf = El()), e._pf;
2965
2985
  }
2966
2986
  var gn;
2967
2987
  Array.prototype.some ? gn = Array.prototype.some : gn = function(e) {
@@ -3033,13 +3053,13 @@ function pr(e, t) {
3033
3053
  }
3034
3054
  v.suppressDeprecationWarnings = !1;
3035
3055
  v.deprecationHandler = null;
3036
- function Oe(e) {
3056
+ function Ce(e) {
3037
3057
  return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
3038
3058
  }
3039
- function El(e) {
3059
+ function Rl(e) {
3040
3060
  var t, n;
3041
3061
  for (n in e)
3042
- $(e, n) && (t = e[n], Oe(t) ? this[n] = t : this["_" + n] = t);
3062
+ $(e, n) && (t = e[n], Ce(t) ? this[n] = t : this["_" + n] = t);
3043
3063
  this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
3044
3064
  (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
3045
3065
  );
@@ -3062,7 +3082,7 @@ Object.keys ? wn = Object.keys : wn = function(e) {
3062
3082
  $(e, t) && n.push(t);
3063
3083
  return n;
3064
3084
  };
3065
- var Rl = {
3085
+ var Pl = {
3066
3086
  sameDay: "[Today at] LT",
3067
3087
  nextDay: "[Tomorrow at] LT",
3068
3088
  nextWeek: "dddd [at] LT",
@@ -3070,9 +3090,9 @@ var Rl = {
3070
3090
  lastWeek: "[Last] dddd [at] LT",
3071
3091
  sameElse: "L"
3072
3092
  };
3073
- function Pl(e, t, n) {
3093
+ function $l(e, t, n) {
3074
3094
  var s = this._calendar[e] || this._calendar.sameElse;
3075
- return Oe(s) ? s.call(t, n) : s;
3095
+ return Ce(s) ? s.call(t, n) : s;
3076
3096
  }
3077
3097
  function Se(e, t, n) {
3078
3098
  var s = "" + Math.abs(e), r = t - s.length, a = e >= 0;
@@ -3092,22 +3112,22 @@ function x(e, t, n, s) {
3092
3112
  );
3093
3113
  });
3094
3114
  }
3095
- function $l(e) {
3115
+ function Ll(e) {
3096
3116
  return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
3097
3117
  }
3098
- function Ll(e) {
3118
+ function Al(e) {
3099
3119
  var t = e.match(Fn), n, s;
3100
3120
  for (n = 0, s = t.length; n < s; n++)
3101
- nt[t[n]] ? t[n] = nt[t[n]] : t[n] = $l(t[n]);
3121
+ nt[t[n]] ? t[n] = nt[t[n]] : t[n] = Ll(t[n]);
3102
3122
  return function(r) {
3103
3123
  var a = "", o;
3104
3124
  for (o = 0; o < s; o++)
3105
- a += Oe(t[o]) ? t[o].call(r, e) : t[o];
3125
+ a += Ce(t[o]) ? t[o].call(r, e) : t[o];
3106
3126
  return a;
3107
3127
  };
3108
3128
  }
3109
3129
  function Pt(e, t) {
3110
- return e.isValid() ? (t = mr(t, e.localeData()), dn[t] = dn[t] || Ll(t), dn[t](e)) : e.localeData().invalidDate();
3130
+ return e.isValid() ? (t = mr(t, e.localeData()), dn[t] = dn[t] || Al(t), dn[t](e)) : e.localeData().invalidDate();
3111
3131
  }
3112
3132
  function mr(e, t) {
3113
3133
  var n = 5;
@@ -3121,7 +3141,7 @@ function mr(e, t) {
3121
3141
  ), Yt.lastIndex = 0, n -= 1;
3122
3142
  return e;
3123
3143
  }
3124
- var Al = {
3144
+ var Ul = {
3125
3145
  LTS: "h:mm:ss A",
3126
3146
  LT: "h:mm A",
3127
3147
  L: "MM/DD/YYYY",
@@ -3129,21 +3149,21 @@ var Al = {
3129
3149
  LLL: "MMMM D, YYYY h:mm A",
3130
3150
  LLLL: "dddd, MMMM D, YYYY h:mm A"
3131
3151
  };
3132
- function Ul(e) {
3152
+ function Wl(e) {
3133
3153
  var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
3134
3154
  return t || !n ? t : (this._longDateFormat[e] = n.match(Fn).map(function(s) {
3135
3155
  return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
3136
3156
  }).join(""), this._longDateFormat[e]);
3137
3157
  }
3138
- var Wl = "Invalid date";
3139
- function Hl() {
3158
+ var Hl = "Invalid date";
3159
+ function Fl() {
3140
3160
  return this._invalidDate;
3141
3161
  }
3142
- var Fl = "%d", Vl = /\d{1,2}/;
3143
- function Gl(e) {
3162
+ var Vl = "%d", Gl = /\d{1,2}/;
3163
+ function jl(e) {
3144
3164
  return this._ordinal.replace("%d", e);
3145
3165
  }
3146
- var jl = {
3166
+ var zl = {
3147
3167
  future: "in %s",
3148
3168
  past: "%s ago",
3149
3169
  s: "a few seconds",
@@ -3161,13 +3181,13 @@ var jl = {
3161
3181
  y: "a year",
3162
3182
  yy: "%d years"
3163
3183
  };
3164
- function zl(e, t, n, s) {
3184
+ function Bl(e, t, n, s) {
3165
3185
  var r = this._relativeTime[n];
3166
- return Oe(r) ? r(e, t, n, s) : r.replace(/%d/i, e);
3186
+ return Ce(r) ? r(e, t, n, s) : r.replace(/%d/i, e);
3167
3187
  }
3168
- function Bl(e, t) {
3188
+ function Zl(e, t) {
3169
3189
  var n = this._relativeTime[e > 0 ? "future" : "past"];
3170
- return Oe(n) ? n(t) : n.replace(/%s/i, t);
3190
+ return Ce(n) ? n(t) : n.replace(/%s/i, t);
3171
3191
  }
3172
3192
  var _s = {
3173
3193
  D: "date",
@@ -3228,7 +3248,7 @@ function Vn(e) {
3228
3248
  $(e, s) && (n = fe(s), n && (t[n] = e[s]));
3229
3249
  return t;
3230
3250
  }
3231
- var Zl = {
3251
+ var ql = {
3232
3252
  date: 9,
3233
3253
  day: 11,
3234
3254
  weekday: 11,
@@ -3246,25 +3266,25 @@ var Zl = {
3246
3266
  isoWeek: 5,
3247
3267
  year: 1
3248
3268
  };
3249
- function ql(e) {
3269
+ function Kl(e) {
3250
3270
  var t = [], n;
3251
3271
  for (n in e)
3252
- $(e, n) && t.push({ unit: n, priority: Zl[n] });
3272
+ $(e, n) && t.push({ unit: n, priority: ql[n] });
3253
3273
  return t.sort(function(s, r) {
3254
3274
  return s.priority - r.priority;
3255
3275
  }), t;
3256
3276
  }
3257
- var vr = /\d/, ue = /\d\d/, _r = /\d{3}/, Gn = /\d{4}/, qt = /[+-]?\d{6}/, j = /\d\d?/, yr = /\d\d\d\d?/, gr = /\d\d\d\d\d\d?/, Kt = /\d{1,3}/, jn = /\d{1,4}/, Xt = /[+-]?\d{1,6}/, it = /\d+/, Jt = /[+-]?\d+/, Kl = /Z|[+-]\d\d:?\d\d/gi, Qt = /Z|[+-]\d\d(?::?\d\d)?/gi, Xl = /[+-]?\d+(\.\d{1,3})?/, Ot = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, lt = /^[1-9]\d?/, zn = /^([1-9]\d|\d)/, At;
3277
+ var vr = /\d/, ue = /\d\d/, _r = /\d{3}/, Gn = /\d{4}/, qt = /[+-]?\d{6}/, j = /\d\d?/, yr = /\d\d\d\d?/, gr = /\d\d\d\d\d\d?/, Kt = /\d{1,3}/, jn = /\d{1,4}/, Xt = /[+-]?\d{1,6}/, it = /\d+/, Jt = /[+-]?\d+/, Xl = /Z|[+-]\d\d:?\d\d/gi, Qt = /Z|[+-]\d\d(?::?\d\d)?/gi, Jl = /[+-]?\d+(\.\d{1,3})?/, Ct = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, lt = /^[1-9]\d?/, zn = /^([1-9]\d|\d)/, At;
3258
3278
  At = {};
3259
3279
  function g(e, t, n) {
3260
- At[e] = Oe(t) ? t : function(s, r) {
3280
+ At[e] = Ce(t) ? t : function(s, r) {
3261
3281
  return s && n ? n : t;
3262
3282
  };
3263
3283
  }
3264
- function Jl(e, t) {
3265
- return $(At, e) ? At[e](t._strict, t._locale) : new RegExp(Ql(e));
3284
+ function Ql(e, t) {
3285
+ return $(At, e) ? At[e](t._strict, t._locale) : new RegExp(eu(e));
3266
3286
  }
3267
- function Ql(e) {
3287
+ function eu(e) {
3268
3288
  return Ee(
3269
3289
  e.replace("\\", "").replace(
3270
3290
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
@@ -3292,18 +3312,18 @@ function A(e, t) {
3292
3312
  }), r = e.length, n = 0; n < r; n++)
3293
3313
  kn[e[n]] = s;
3294
3314
  }
3295
- function Ct(e, t) {
3315
+ function Ot(e, t) {
3296
3316
  A(e, function(n, s, r, a) {
3297
3317
  r._w = r._w || {}, t(n, r._w, r, a);
3298
3318
  });
3299
3319
  }
3300
- function eu(e, t, n) {
3320
+ function tu(e, t, n) {
3301
3321
  t != null && $(kn, e) && kn[e](t, n._a, n, e);
3302
3322
  }
3303
3323
  function en(e) {
3304
3324
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
3305
3325
  }
3306
- var ne = 0, De = 1, be = 2, Q = 3, me = 4, Ye = 5, ze = 6, tu = 7, nu = 8;
3326
+ var ne = 0, De = 1, be = 2, Q = 3, me = 4, Ye = 5, ze = 6, nu = 7, su = 8;
3307
3327
  x("Y", 0, 0, function() {
3308
3328
  var e = this.year();
3309
3329
  return e <= 9999 ? Se(e, 4) : "+" + e;
@@ -3336,7 +3356,7 @@ v.parseTwoDigitYear = function(e) {
3336
3356
  return Y(e) + (Y(e) > 68 ? 1900 : 2e3);
3337
3357
  };
3338
3358
  var br = ut("FullYear", !0);
3339
- function su() {
3359
+ function ru() {
3340
3360
  return en(this.year());
3341
3361
  }
3342
3362
  function ut(e, t) {
@@ -3396,24 +3416,24 @@ function wr(e, t, n) {
3396
3416
  a = n, o = e.month(), i = e.date(), i = i === 29 && o === 1 && !en(a) ? 28 : i, r ? s.setUTCFullYear(a, o, i) : s.setFullYear(a, o, i);
3397
3417
  }
3398
3418
  }
3399
- function ru(e) {
3400
- return e = fe(e), Oe(this[e]) ? this[e]() : this;
3419
+ function au(e) {
3420
+ return e = fe(e), Ce(this[e]) ? this[e]() : this;
3401
3421
  }
3402
- function au(e, t) {
3422
+ function ou(e, t) {
3403
3423
  if (typeof e == "object") {
3404
3424
  e = Vn(e);
3405
- var n = ql(e), s, r = n.length;
3425
+ var n = Kl(e), s, r = n.length;
3406
3426
  for (s = 0; s < r; s++)
3407
3427
  this[n[s].unit](e[n[s].unit]);
3408
- } else if (e = fe(e), Oe(this[e]))
3428
+ } else if (e = fe(e), Ce(this[e]))
3409
3429
  return this[e](t);
3410
3430
  return this;
3411
3431
  }
3412
- function ou(e, t) {
3432
+ function iu(e, t) {
3413
3433
  return (e % t + t) % t;
3414
3434
  }
3415
- var q;
3416
- Array.prototype.indexOf ? q = Array.prototype.indexOf : q = function(e) {
3435
+ var K;
3436
+ Array.prototype.indexOf ? K = Array.prototype.indexOf : K = function(e) {
3417
3437
  var t;
3418
3438
  for (t = 0; t < this.length; ++t)
3419
3439
  if (this[t] === e)
@@ -3423,7 +3443,7 @@ Array.prototype.indexOf ? q = Array.prototype.indexOf : q = function(e) {
3423
3443
  function Bn(e, t) {
3424
3444
  if (isNaN(e) || isNaN(t))
3425
3445
  return NaN;
3426
- var n = ou(t, 12);
3446
+ var n = iu(t, 12);
3427
3447
  return e += (t - n) / 12, n === 1 ? en(e) ? 29 : 28 : 31 - n % 7 % 2;
3428
3448
  }
3429
3449
  x("M", ["MM", 2], "Mo", function() {
@@ -3450,16 +3470,16 @@ A(["MMM", "MMMM"], function(e, t, n, s) {
3450
3470
  var r = n._locale.monthsParse(e, s, n._strict);
3451
3471
  r != null ? t[De] = r : T(n).invalidMonth = e;
3452
3472
  });
3453
- var iu = "January_February_March_April_May_June_July_August_September_October_November_December".split(
3473
+ var lu = "January_February_March_April_May_June_July_August_September_October_November_December".split(
3454
3474
  "_"
3455
- ), kr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Mr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, lu = Ot, uu = Ot;
3456
- function du(e, t) {
3475
+ ), kr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Mr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, uu = Ct, du = Ct;
3476
+ function cu(e, t) {
3457
3477
  return e ? ve(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Mr).test(t) ? "format" : "standalone"][e.month()] : ve(this._months) ? this._months : this._months.standalone;
3458
3478
  }
3459
- function cu(e, t) {
3479
+ function hu(e, t) {
3460
3480
  return e ? ve(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Mr.test(t) ? "format" : "standalone"][e.month()] : ve(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
3461
3481
  }
3462
- function hu(e, t, n) {
3482
+ function fu(e, t, n) {
3463
3483
  var s, r, a, o = e.toLocaleLowerCase();
3464
3484
  if (!this._monthsParse)
3465
3485
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
@@ -3467,12 +3487,12 @@ function hu(e, t, n) {
3467
3487
  a,
3468
3488
  ""
3469
3489
  ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
3470
- return n ? t === "MMM" ? (r = q.call(this._shortMonthsParse, o), r !== -1 ? r : null) : (r = q.call(this._longMonthsParse, o), r !== -1 ? r : null) : t === "MMM" ? (r = q.call(this._shortMonthsParse, o), r !== -1 ? r : (r = q.call(this._longMonthsParse, o), r !== -1 ? r : null)) : (r = q.call(this._longMonthsParse, o), r !== -1 ? r : (r = q.call(this._shortMonthsParse, o), r !== -1 ? r : null));
3490
+ return n ? t === "MMM" ? (r = K.call(this._shortMonthsParse, o), r !== -1 ? r : null) : (r = K.call(this._longMonthsParse, o), r !== -1 ? r : null) : t === "MMM" ? (r = K.call(this._shortMonthsParse, o), r !== -1 ? r : (r = K.call(this._longMonthsParse, o), r !== -1 ? r : null)) : (r = K.call(this._longMonthsParse, o), r !== -1 ? r : (r = K.call(this._shortMonthsParse, o), r !== -1 ? r : null));
3471
3491
  }
3472
- function fu(e, t, n) {
3492
+ function pu(e, t, n) {
3473
3493
  var s, r, a;
3474
3494
  if (this._monthsParseExact)
3475
- return hu.call(this, e, t, n);
3495
+ return fu.call(this, e, t, n);
3476
3496
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
3477
3497
  if (r = xe([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
3478
3498
  "^" + this.months(r, "").replace(".", "") + "$",
@@ -3503,16 +3523,16 @@ function Sr(e, t) {
3503
3523
  function xr(e) {
3504
3524
  return e != null ? (Sr(this, e), v.updateOffset(this, !0), this) : mt(this, "Month");
3505
3525
  }
3506
- function pu() {
3526
+ function mu() {
3507
3527
  return Bn(this.year(), this.month());
3508
3528
  }
3509
- function mu(e) {
3510
- return this._monthsParseExact ? ($(this, "_monthsRegex") || Or.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : ($(this, "_monthsShortRegex") || (this._monthsShortRegex = lu), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
3511
- }
3512
3529
  function vu(e) {
3513
- return this._monthsParseExact ? ($(this, "_monthsRegex") || Or.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : ($(this, "_monthsRegex") || (this._monthsRegex = uu), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
3530
+ return this._monthsParseExact ? ($(this, "_monthsRegex") || Cr.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : ($(this, "_monthsShortRegex") || (this._monthsShortRegex = uu), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
3531
+ }
3532
+ function _u(e) {
3533
+ return this._monthsParseExact ? ($(this, "_monthsRegex") || Cr.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : ($(this, "_monthsRegex") || (this._monthsRegex = du), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
3514
3534
  }
3515
- function Or() {
3535
+ function Cr() {
3516
3536
  function e(l, u) {
3517
3537
  return u.length - l.length;
3518
3538
  }
@@ -3527,7 +3547,7 @@ function Or() {
3527
3547
  "i"
3528
3548
  );
3529
3549
  }
3530
- function _u(e, t, n, s, r, a, o) {
3550
+ function yu(e, t, n, s, r, a, o) {
3531
3551
  var i;
3532
3552
  return e < 100 && e >= 0 ? (i = new Date(e + 400, t, n, s, r, a, o), isFinite(i.getFullYear()) && i.setFullYear(e)) : i = new Date(e, t, n, s, r, a, o), i;
3533
3553
  }
@@ -3539,7 +3559,7 @@ function Ut(e, t, n) {
3539
3559
  var s = 7 + t - n, r = (7 + vt(e, 0, s).getUTCDay() - t) % 7;
3540
3560
  return -r + s - 1;
3541
3561
  }
3542
- function Cr(e, t, n, s, r) {
3562
+ function Or(e, t, n, s, r) {
3543
3563
  var a = (7 + n - s) % 7, o = Ut(e, s, r), i = 1 + 7 * (t - 1) + a + o, l, u;
3544
3564
  return i <= 0 ? (l = e - 1, u = pt(l) + i) : i > pt(e) ? (l = e + 1, u = i - pt(e)) : (l = e, u = i), {
3545
3565
  year: l,
@@ -3563,32 +3583,32 @@ g("w", j, lt);
3563
3583
  g("ww", j, ue);
3564
3584
  g("W", j, lt);
3565
3585
  g("WW", j, ue);
3566
- Ct(
3586
+ Ot(
3567
3587
  ["w", "ww", "W", "WW"],
3568
3588
  function(e, t, n, s) {
3569
3589
  t[s.substr(0, 1)] = Y(e);
3570
3590
  }
3571
3591
  );
3572
- function yu(e) {
3592
+ function gu(e) {
3573
3593
  return _t(e, this._week.dow, this._week.doy).week;
3574
3594
  }
3575
- var gu = {
3595
+ var bu = {
3576
3596
  dow: 0,
3577
3597
  // Sunday is the first day of the week.
3578
3598
  doy: 6
3579
3599
  // The week that contains Jan 6th is the first week of the year.
3580
3600
  };
3581
- function bu() {
3601
+ function wu() {
3582
3602
  return this._week.dow;
3583
3603
  }
3584
- function wu() {
3604
+ function ku() {
3585
3605
  return this._week.doy;
3586
3606
  }
3587
- function ku(e) {
3607
+ function Mu(e) {
3588
3608
  var t = this.localeData().week(this);
3589
3609
  return e == null ? t : this.add((e - t) * 7, "d");
3590
3610
  }
3591
- function Mu(e) {
3611
+ function Su(e) {
3592
3612
  var t = _t(this, 1, 4).week;
3593
3613
  return e == null ? t : this.add((e - t) * 7, "d");
3594
3614
  }
@@ -3616,34 +3636,34 @@ g("ddd", function(e, t) {
3616
3636
  g("dddd", function(e, t) {
3617
3637
  return t.weekdaysRegex(e);
3618
3638
  });
3619
- Ct(["dd", "ddd", "dddd"], function(e, t, n, s) {
3639
+ Ot(["dd", "ddd", "dddd"], function(e, t, n, s) {
3620
3640
  var r = n._locale.weekdaysParse(e, s, n._strict);
3621
3641
  r != null ? t.d = r : T(n).invalidWeekday = e;
3622
3642
  });
3623
- Ct(["d", "e", "E"], function(e, t, n, s) {
3643
+ Ot(["d", "e", "E"], function(e, t, n, s) {
3624
3644
  t[s] = Y(e);
3625
3645
  });
3626
- function Su(e, t) {
3646
+ function xu(e, t) {
3627
3647
  return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
3628
3648
  }
3629
- function xu(e, t) {
3649
+ function Cu(e, t) {
3630
3650
  return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
3631
3651
  }
3632
3652
  function Zn(e, t) {
3633
3653
  return e.slice(t, 7).concat(e.slice(0, t));
3634
3654
  }
3635
- var Ou = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Nr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Cu = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Nu = Ot, Tu = Ot, Iu = Ot;
3636
- function Du(e, t) {
3655
+ var Ou = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Nr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Nu = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Tu = Ct, Iu = Ct, Du = Ct;
3656
+ function Yu(e, t) {
3637
3657
  var n = ve(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
3638
3658
  return e === !0 ? Zn(n, this._week.dow) : e ? n[e.day()] : n;
3639
3659
  }
3640
- function Yu(e) {
3660
+ function Eu(e) {
3641
3661
  return e === !0 ? Zn(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
3642
3662
  }
3643
- function Eu(e) {
3663
+ function Ru(e) {
3644
3664
  return e === !0 ? Zn(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
3645
3665
  }
3646
- function Ru(e, t, n) {
3666
+ function Pu(e, t, n) {
3647
3667
  var s, r, a, o = e.toLocaleLowerCase();
3648
3668
  if (!this._weekdaysParse)
3649
3669
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
@@ -3654,12 +3674,12 @@ function Ru(e, t, n) {
3654
3674
  a,
3655
3675
  ""
3656
3676
  ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
3657
- return n ? t === "dddd" ? (r = q.call(this._weekdaysParse, o), r !== -1 ? r : null) : t === "ddd" ? (r = q.call(this._shortWeekdaysParse, o), r !== -1 ? r : null) : (r = q.call(this._minWeekdaysParse, o), r !== -1 ? r : null) : t === "dddd" ? (r = q.call(this._weekdaysParse, o), r !== -1 || (r = q.call(this._shortWeekdaysParse, o), r !== -1) ? r : (r = q.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : t === "ddd" ? (r = q.call(this._shortWeekdaysParse, o), r !== -1 || (r = q.call(this._weekdaysParse, o), r !== -1) ? r : (r = q.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : (r = q.call(this._minWeekdaysParse, o), r !== -1 || (r = q.call(this._weekdaysParse, o), r !== -1) ? r : (r = q.call(this._shortWeekdaysParse, o), r !== -1 ? r : null));
3677
+ return n ? t === "dddd" ? (r = K.call(this._weekdaysParse, o), r !== -1 ? r : null) : t === "ddd" ? (r = K.call(this._shortWeekdaysParse, o), r !== -1 ? r : null) : (r = K.call(this._minWeekdaysParse, o), r !== -1 ? r : null) : t === "dddd" ? (r = K.call(this._weekdaysParse, o), r !== -1 || (r = K.call(this._shortWeekdaysParse, o), r !== -1) ? r : (r = K.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : t === "ddd" ? (r = K.call(this._shortWeekdaysParse, o), r !== -1 || (r = K.call(this._weekdaysParse, o), r !== -1) ? r : (r = K.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : (r = K.call(this._minWeekdaysParse, o), r !== -1 || (r = K.call(this._weekdaysParse, o), r !== -1) ? r : (r = K.call(this._shortWeekdaysParse, o), r !== -1 ? r : null));
3658
3678
  }
3659
- function Pu(e, t, n) {
3679
+ function $u(e, t, n) {
3660
3680
  var s, r, a;
3661
3681
  if (this._weekdaysParseExact)
3662
- return Ru.call(this, e, t, n);
3682
+ return Pu.call(this, e, t, n);
3663
3683
  for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
3664
3684
  if (r = xe([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
3665
3685
  "^" + this.weekdays(r, "").replace(".", "\\.?") + "$",
@@ -3680,39 +3700,39 @@ function Pu(e, t, n) {
3680
3700
  return s;
3681
3701
  }
3682
3702
  }
3683
- function $u(e) {
3703
+ function Lu(e) {
3684
3704
  if (!this.isValid())
3685
3705
  return e != null ? this : NaN;
3686
3706
  var t = mt(this, "Day");
3687
- return e != null ? (e = Su(e, this.localeData()), this.add(e - t, "d")) : t;
3707
+ return e != null ? (e = xu(e, this.localeData()), this.add(e - t, "d")) : t;
3688
3708
  }
3689
- function Lu(e) {
3709
+ function Au(e) {
3690
3710
  if (!this.isValid())
3691
3711
  return e != null ? this : NaN;
3692
3712
  var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
3693
3713
  return e == null ? t : this.add(e - t, "d");
3694
3714
  }
3695
- function Au(e) {
3715
+ function Uu(e) {
3696
3716
  if (!this.isValid())
3697
3717
  return e != null ? this : NaN;
3698
3718
  if (e != null) {
3699
- var t = xu(e, this.localeData());
3719
+ var t = Cu(e, this.localeData());
3700
3720
  return this.day(this.day() % 7 ? t : t - 7);
3701
3721
  } else
3702
3722
  return this.day() || 7;
3703
3723
  }
3704
- function Uu(e) {
3705
- return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : ($(this, "_weekdaysRegex") || (this._weekdaysRegex = Nu), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
3706
- }
3707
3724
  function Wu(e) {
3708
- return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : ($(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Tu), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
3725
+ return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : ($(this, "_weekdaysRegex") || (this._weekdaysRegex = Tu), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
3709
3726
  }
3710
3727
  function Hu(e) {
3711
- return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : ($(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Iu), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
3728
+ return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : ($(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Iu), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
3729
+ }
3730
+ function Fu(e) {
3731
+ return this._weekdaysParseExact ? ($(this, "_weekdaysRegex") || qn.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : ($(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Du), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
3712
3732
  }
3713
3733
  function qn() {
3714
- function e(d, _) {
3715
- return _.length - d.length;
3734
+ function e(d, y) {
3735
+ return y.length - d.length;
3716
3736
  }
3717
3737
  var t = [], n = [], s = [], r = [], a, o, i, l, u;
3718
3738
  for (a = 0; a < 7; a++)
@@ -3731,12 +3751,12 @@ function qn() {
3731
3751
  function Kn() {
3732
3752
  return this.hours() % 12 || 12;
3733
3753
  }
3734
- function Fu() {
3754
+ function Vu() {
3735
3755
  return this.hours() || 24;
3736
3756
  }
3737
3757
  x("H", ["HH", 2], 0, "hour");
3738
3758
  x("h", ["hh", 2], 0, Kn);
3739
- x("k", ["kk", 2], 0, Fu);
3759
+ x("k", ["kk", 2], 0, Vu);
3740
3760
  x("hmm", 0, 0, function() {
3741
3761
  return "" + Kn.apply(this) + Se(this.minutes(), 2);
3742
3762
  });
@@ -3802,29 +3822,29 @@ A("Hmmss", function(e, t, n) {
3802
3822
  var s = e.length - 4, r = e.length - 2;
3803
3823
  t[Q] = Y(e.substr(0, s)), t[me] = Y(e.substr(s, 2)), t[Ye] = Y(e.substr(r));
3804
3824
  });
3805
- function Vu(e) {
3825
+ function Gu(e) {
3806
3826
  return (e + "").toLowerCase().charAt(0) === "p";
3807
3827
  }
3808
- var Gu = /[ap]\.?m?\.?/i, ju = ut("Hours", !0);
3809
- function zu(e, t, n) {
3828
+ var ju = /[ap]\.?m?\.?/i, zu = ut("Hours", !0);
3829
+ function Bu(e, t, n) {
3810
3830
  return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
3811
3831
  }
3812
3832
  var Dr = {
3813
- calendar: Rl,
3814
- longDateFormat: Al,
3815
- invalidDate: Wl,
3816
- ordinal: Fl,
3817
- dayOfMonthOrdinalParse: Vl,
3818
- relativeTime: jl,
3819
- months: iu,
3833
+ calendar: Pl,
3834
+ longDateFormat: Ul,
3835
+ invalidDate: Hl,
3836
+ ordinal: Vl,
3837
+ dayOfMonthOrdinalParse: Gl,
3838
+ relativeTime: zl,
3839
+ months: lu,
3820
3840
  monthsShort: kr,
3821
- week: gu,
3841
+ week: bu,
3822
3842
  weekdays: Ou,
3823
- weekdaysMin: Cu,
3843
+ weekdaysMin: Nu,
3824
3844
  weekdaysShort: Nr,
3825
- meridiemParse: Gu
3845
+ meridiemParse: ju
3826
3846
  }, z = {}, ht = {}, yt;
3827
- function Bu(e, t) {
3847
+ function Zu(e, t) {
3828
3848
  var n, s = Math.min(e.length, t.length);
3829
3849
  for (n = 0; n < s; n += 1)
3830
3850
  if (e[n] !== t[n])
@@ -3834,12 +3854,12 @@ function Bu(e, t) {
3834
3854
  function ys(e) {
3835
3855
  return e && e.toLowerCase().replace("_", "-");
3836
3856
  }
3837
- function Zu(e) {
3857
+ function qu(e) {
3838
3858
  for (var t = 0, n, s, r, a; t < e.length; ) {
3839
3859
  for (a = ys(e[t]).split("-"), n = a.length, s = ys(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
3840
3860
  if (r = tn(a.slice(0, n).join("-")), r)
3841
3861
  return r;
3842
- if (s && s.length >= n && Bu(a, s) >= n - 1)
3862
+ if (s && s.length >= n && Zu(a, s) >= n - 1)
3843
3863
  break;
3844
3864
  n--;
3845
3865
  }
@@ -3847,12 +3867,12 @@ function Zu(e) {
3847
3867
  }
3848
3868
  return yt;
3849
3869
  }
3850
- function qu(e) {
3870
+ function Ku(e) {
3851
3871
  return !!(e && e.match("^[^/\\\\]*$"));
3852
3872
  }
3853
3873
  function tn(e) {
3854
3874
  var t = null, n;
3855
- if (z[e] === void 0 && typeof module < "u" && module && module.exports && qu(e))
3875
+ if (z[e] === void 0 && typeof module < "u" && module && module.exports && Ku(e))
3856
3876
  try {
3857
3877
  t = yt._abbr, n = require, n("./locale/" + e), Fe(t);
3858
3878
  } catch {
@@ -3890,7 +3910,7 @@ function Xn(e, t) {
3890
3910
  } else
3891
3911
  return delete z[e], null;
3892
3912
  }
3893
- function Ku(e, t) {
3913
+ function Xu(e, t) {
3894
3914
  if (t != null) {
3895
3915
  var n, s, r = Dr;
3896
3916
  z[e] != null && z[e].parentLocale != null ? z[e].set(bn(z[e]._config, t)) : (s = tn(e), s != null && (r = s._config), t = bn(r, t), s == null && (t.abbr = e), n = new Hn(t), n.parentLocale = z[e], z[e] = n), Fe(e);
@@ -3907,16 +3927,16 @@ function Le(e) {
3907
3927
  return t;
3908
3928
  e = [e];
3909
3929
  }
3910
- return Zu(e);
3930
+ return qu(e);
3911
3931
  }
3912
- function Xu() {
3932
+ function Ju() {
3913
3933
  return wn(z);
3914
3934
  }
3915
3935
  function Jn(e) {
3916
3936
  var t, n = e._a;
3917
- return n && T(e).overflow === -2 && (t = n[De] < 0 || n[De] > 11 ? De : n[be] < 1 || n[be] > Bn(n[ne], n[De]) ? be : n[Q] < 0 || n[Q] > 24 || n[Q] === 24 && (n[me] !== 0 || n[Ye] !== 0 || n[ze] !== 0) ? Q : n[me] < 0 || n[me] > 59 ? me : n[Ye] < 0 || n[Ye] > 59 ? Ye : n[ze] < 0 || n[ze] > 999 ? ze : -1, T(e)._overflowDayOfYear && (t < ne || t > be) && (t = be), T(e)._overflowWeeks && t === -1 && (t = tu), T(e)._overflowWeekday && t === -1 && (t = nu), T(e).overflow = t), e;
3937
+ return n && T(e).overflow === -2 && (t = n[De] < 0 || n[De] > 11 ? De : n[be] < 1 || n[be] > Bn(n[ne], n[De]) ? be : n[Q] < 0 || n[Q] > 24 || n[Q] === 24 && (n[me] !== 0 || n[Ye] !== 0 || n[ze] !== 0) ? Q : n[me] < 0 || n[me] > 59 ? me : n[Ye] < 0 || n[Ye] > 59 ? Ye : n[ze] < 0 || n[ze] > 999 ? ze : -1, T(e)._overflowDayOfYear && (t < ne || t > be) && (t = be), T(e)._overflowWeeks && t === -1 && (t = nu), T(e)._overflowWeekday && t === -1 && (t = su), T(e).overflow = t), e;
3918
3938
  }
3919
- var Ju = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Qu = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ed = /Z|[+-]\d\d(?::?\d\d)?/, Et = [
3939
+ var Qu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ed = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, td = /Z|[+-]\d\d(?::?\d\d)?/, Et = [
3920
3940
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
3921
3941
  ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
3922
3942
  ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
@@ -3940,7 +3960,7 @@ var Ju = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
3940
3960
  ["HHmmss", /\d\d\d\d\d\d/],
3941
3961
  ["HHmm", /\d\d\d\d/],
3942
3962
  ["HH", /\d\d/]
3943
- ], td = /^\/?Date\((-?\d+)/i, nd = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, sd = {
3963
+ ], nd = /^\/?Date\((-?\d+)/i, sd = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, rd = {
3944
3964
  UT: 0,
3945
3965
  GMT: 0,
3946
3966
  EDT: -240,
@@ -3953,7 +3973,7 @@ var Ju = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
3953
3973
  PST: -480
3954
3974
  };
3955
3975
  function Yr(e) {
3956
- var t, n, s = e._i, r = Ju.exec(s) || Qu.exec(s), a, o, i, l, u = Et.length, d = cn.length;
3976
+ var t, n, s = e._i, r = Qu.exec(s) || ed.exec(s), a, o, i, l, u = Et.length, d = cn.length;
3957
3977
  if (r) {
3958
3978
  for (T(e).iso = !0, t = 0, n = u; t < n; t++)
3959
3979
  if (Et[t][1].exec(r[1])) {
@@ -3980,7 +4000,7 @@ function Yr(e) {
3980
4000
  return;
3981
4001
  }
3982
4002
  if (r[4])
3983
- if (ed.exec(r[4]))
4003
+ if (td.exec(r[4]))
3984
4004
  l = "Z";
3985
4005
  else {
3986
4006
  e._isValid = !1;
@@ -3990,9 +4010,9 @@ function Yr(e) {
3990
4010
  } else
3991
4011
  e._isValid = !1;
3992
4012
  }
3993
- function rd(e, t, n, s, r, a) {
4013
+ function ad(e, t, n, s, r, a) {
3994
4014
  var o = [
3995
- ad(e),
4015
+ od(e),
3996
4016
  kr.indexOf(t),
3997
4017
  parseInt(n, 10),
3998
4018
  parseInt(s, 10),
@@ -4000,14 +4020,14 @@ function rd(e, t, n, s, r, a) {
4000
4020
  ];
4001
4021
  return a && o.push(parseInt(a, 10)), o;
4002
4022
  }
4003
- function ad(e) {
4023
+ function od(e) {
4004
4024
  var t = parseInt(e, 10);
4005
4025
  return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
4006
4026
  }
4007
- function od(e) {
4027
+ function id(e) {
4008
4028
  return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
4009
4029
  }
4010
- function id(e, t, n) {
4030
+ function ld(e, t, n) {
4011
4031
  if (e) {
4012
4032
  var s = Nr.indexOf(e), r = new Date(
4013
4033
  t[0],
@@ -4019,32 +4039,32 @@ function id(e, t, n) {
4019
4039
  }
4020
4040
  return !0;
4021
4041
  }
4022
- function ld(e, t, n) {
4042
+ function ud(e, t, n) {
4023
4043
  if (e)
4024
- return sd[e];
4044
+ return rd[e];
4025
4045
  if (t)
4026
4046
  return 0;
4027
4047
  var s = parseInt(n, 10), r = s % 100, a = (s - r) / 100;
4028
4048
  return a * 60 + r;
4029
4049
  }
4030
4050
  function Er(e) {
4031
- var t = nd.exec(od(e._i)), n;
4051
+ var t = sd.exec(id(e._i)), n;
4032
4052
  if (t) {
4033
- if (n = rd(
4053
+ if (n = ad(
4034
4054
  t[4],
4035
4055
  t[3],
4036
4056
  t[2],
4037
4057
  t[5],
4038
4058
  t[6],
4039
4059
  t[7]
4040
- ), !id(t[1], n, e))
4060
+ ), !ld(t[1], n, e))
4041
4061
  return;
4042
- e._a = n, e._tzm = ld(t[8], t[9], t[10]), e._d = vt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), T(e).rfc2822 = !0;
4062
+ e._a = n, e._tzm = ud(t[8], t[9], t[10]), e._d = vt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), T(e).rfc2822 = !0;
4043
4063
  } else
4044
4064
  e._isValid = !1;
4045
4065
  }
4046
- function ud(e) {
4047
- var t = td.exec(e._i);
4066
+ function dd(e) {
4067
+ var t = nd.exec(e._i);
4048
4068
  if (t !== null) {
4049
4069
  e._d = /* @__PURE__ */ new Date(+t[1]);
4050
4070
  return;
@@ -4068,7 +4088,7 @@ v.createFromInputFallback = he(
4068
4088
  function Qe(e, t, n) {
4069
4089
  return e ?? t ?? n;
4070
4090
  }
4071
- function dd(e) {
4091
+ function cd(e) {
4072
4092
  var t = new Date(v.now());
4073
4093
  return e._useUTC ? [
4074
4094
  t.getUTCFullYear(),
@@ -4079,23 +4099,23 @@ function dd(e) {
4079
4099
  function Qn(e) {
4080
4100
  var t, n, s = [], r, a, o;
4081
4101
  if (!e._d) {
4082
- for (r = dd(e), e._w && e._a[be] == null && e._a[De] == null && cd(e), e._dayOfYear != null && (o = Qe(e._a[ne], r[ne]), (e._dayOfYear > pt(o) || e._dayOfYear === 0) && (T(e)._overflowDayOfYear = !0), n = vt(o, 0, e._dayOfYear), e._a[De] = n.getUTCMonth(), e._a[be] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
4102
+ for (r = cd(e), e._w && e._a[be] == null && e._a[De] == null && hd(e), e._dayOfYear != null && (o = Qe(e._a[ne], r[ne]), (e._dayOfYear > pt(o) || e._dayOfYear === 0) && (T(e)._overflowDayOfYear = !0), n = vt(o, 0, e._dayOfYear), e._a[De] = n.getUTCMonth(), e._a[be] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
4083
4103
  e._a[t] = s[t] = r[t];
4084
4104
  for (; t < 7; t++)
4085
4105
  e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
4086
- e._a[Q] === 24 && e._a[me] === 0 && e._a[Ye] === 0 && e._a[ze] === 0 && (e._nextDay = !0, e._a[Q] = 0), e._d = (e._useUTC ? vt : _u).apply(
4106
+ e._a[Q] === 24 && e._a[me] === 0 && e._a[Ye] === 0 && e._a[ze] === 0 && (e._nextDay = !0, e._a[Q] = 0), e._d = (e._useUTC ? vt : yu).apply(
4087
4107
  null,
4088
4108
  s
4089
4109
  ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Q] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (T(e).weekdayMismatch = !0);
4090
4110
  }
4091
4111
  }
4092
- function cd(e) {
4112
+ function hd(e) {
4093
4113
  var t, n, s, r, a, o, i, l, u;
4094
4114
  t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, o = 4, n = Qe(
4095
4115
  t.GG,
4096
4116
  e._a[ne],
4097
4117
  _t(G(), 1, 4).year
4098
- ), s = Qe(t.W, 1), r = Qe(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = _t(G(), a, o), n = Qe(t.gg, e._a[ne], u.year), s = Qe(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s > Re(n, a, o) ? T(e)._overflowWeeks = !0 : l != null ? T(e)._overflowWeekday = !0 : (i = Cr(n, s, r, a, o), e._a[ne] = i.year, e._dayOfYear = i.dayOfYear);
4118
+ ), s = Qe(t.W, 1), r = Qe(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = _t(G(), a, o), n = Qe(t.gg, e._a[ne], u.year), s = Qe(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s > Re(n, a, o) ? T(e)._overflowWeeks = !0 : l != null ? T(e)._overflowWeekday = !0 : (i = Or(n, s, r, a, o), e._a[ne] = i.year, e._dayOfYear = i.dayOfYear);
4099
4119
  }
4100
4120
  v.ISO_8601 = function() {
4101
4121
  };
@@ -4113,20 +4133,20 @@ function es(e) {
4113
4133
  e._a = [], T(e).empty = !0;
4114
4134
  var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, d;
4115
4135
  for (r = mr(e._f, e._locale).match(Fn) || [], d = r.length, n = 0; n < d; n++)
4116
- a = r[n], s = (t.match(Jl(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && T(e).unusedInput.push(o), t = t.slice(
4136
+ a = r[n], s = (t.match(Ql(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && T(e).unusedInput.push(o), t = t.slice(
4117
4137
  t.indexOf(s) + s.length
4118
- ), l += s.length), nt[a] ? (s ? T(e).empty = !1 : T(e).unusedTokens.push(a), eu(a, s, e)) : e._strict && !s && T(e).unusedTokens.push(a);
4119
- T(e).charsLeftOver = i - l, t.length > 0 && T(e).unusedInput.push(t), e._a[Q] <= 12 && T(e).bigHour === !0 && e._a[Q] > 0 && (T(e).bigHour = void 0), T(e).parsedDateParts = e._a.slice(0), T(e).meridiem = e._meridiem, e._a[Q] = hd(
4138
+ ), l += s.length), nt[a] ? (s ? T(e).empty = !1 : T(e).unusedTokens.push(a), tu(a, s, e)) : e._strict && !s && T(e).unusedTokens.push(a);
4139
+ T(e).charsLeftOver = i - l, t.length > 0 && T(e).unusedInput.push(t), e._a[Q] <= 12 && T(e).bigHour === !0 && e._a[Q] > 0 && (T(e).bigHour = void 0), T(e).parsedDateParts = e._a.slice(0), T(e).meridiem = e._meridiem, e._a[Q] = fd(
4120
4140
  e._locale,
4121
4141
  e._a[Q],
4122
4142
  e._meridiem
4123
4143
  ), u = T(e).era, u !== null && (e._a[ne] = e._locale.erasConvertYear(u, e._a[ne])), Qn(e), Jn(e);
4124
4144
  }
4125
- function hd(e, t, n) {
4145
+ function fd(e, t, n) {
4126
4146
  var s;
4127
4147
  return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
4128
4148
  }
4129
- function fd(e) {
4149
+ function pd(e) {
4130
4150
  var t, n, s, r, a, o, i = !1, l = e._f.length;
4131
4151
  if (l === 0) {
4132
4152
  T(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
@@ -4136,7 +4156,7 @@ function fd(e) {
4136
4156
  a = 0, o = !1, t = Wn({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], es(t), Un(t) && (o = !0), a += T(t).charsLeftOver, a += T(t).unusedTokens.length * 10, T(t).score = a, i ? a < s && (s = a, n = t) : (s == null || a < s || o) && (s = a, n = t, o && (i = !0));
4137
4157
  We(e, n || t);
4138
4158
  }
4139
- function pd(e) {
4159
+ function md(e) {
4140
4160
  if (!e._d) {
4141
4161
  var t = Vn(e._i), n = t.day === void 0 ? t.date : t.day;
4142
4162
  e._a = hr(
@@ -4147,34 +4167,34 @@ function pd(e) {
4147
4167
  ), Qn(e);
4148
4168
  }
4149
4169
  }
4150
- function md(e) {
4170
+ function vd(e) {
4151
4171
  var t = new xt(Jn(Rr(e)));
4152
4172
  return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
4153
4173
  }
4154
4174
  function Rr(e) {
4155
4175
  var t = e._i, n = e._f;
4156
- return e._locale = e._locale || Le(e._l), t === null || n === void 0 && t === "" ? Zt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), _e(t) ? new xt(Jn(t)) : (St(t) ? e._d = t : ve(n) ? fd(e) : n ? es(e) : vd(e), Un(e) || (e._d = null), e));
4176
+ return e._locale = e._locale || Le(e._l), t === null || n === void 0 && t === "" ? Zt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), _e(t) ? new xt(Jn(t)) : (St(t) ? e._d = t : ve(n) ? pd(e) : n ? es(e) : _d(e), Un(e) || (e._d = null), e));
4157
4177
  }
4158
- function vd(e) {
4178
+ function _d(e) {
4159
4179
  var t = e._i;
4160
- ae(t) ? e._d = new Date(v.now()) : St(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? ud(e) : ve(t) ? (e._a = hr(t.slice(0), function(n) {
4180
+ ae(t) ? e._d = new Date(v.now()) : St(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? dd(e) : ve(t) ? (e._a = hr(t.slice(0), function(n) {
4161
4181
  return parseInt(n, 10);
4162
- }), Qn(e)) : Be(t) ? pd(e) : $e(t) ? e._d = new Date(t) : v.createFromInputFallback(e);
4182
+ }), Qn(e)) : Be(t) ? md(e) : $e(t) ? e._d = new Date(t) : v.createFromInputFallback(e);
4163
4183
  }
4164
4184
  function Pr(e, t, n, s, r) {
4165
4185
  var a = {};
4166
- return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (Be(e) && An(e) || ve(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = r, a._l = n, a._i = e, a._f = t, a._strict = s, md(a);
4186
+ return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (Be(e) && An(e) || ve(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = r, a._l = n, a._i = e, a._f = t, a._strict = s, vd(a);
4167
4187
  }
4168
4188
  function G(e, t, n, s) {
4169
4189
  return Pr(e, t, n, s, !1);
4170
4190
  }
4171
- var _d = he(
4191
+ var yd = he(
4172
4192
  "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
4173
4193
  function() {
4174
4194
  var e = G.apply(null, arguments);
4175
4195
  return this.isValid() && e.isValid() ? e < this ? this : e : Zt();
4176
4196
  }
4177
- ), yd = he(
4197
+ ), gd = he(
4178
4198
  "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
4179
4199
  function() {
4180
4200
  var e = G.apply(null, arguments);
@@ -4189,15 +4209,15 @@ function $r(e, t) {
4189
4209
  (!t[s].isValid() || t[s][e](n)) && (n = t[s]);
4190
4210
  return n;
4191
4211
  }
4192
- function gd() {
4212
+ function bd() {
4193
4213
  var e = [].slice.call(arguments, 0);
4194
4214
  return $r("isBefore", e);
4195
4215
  }
4196
- function bd() {
4216
+ function wd() {
4197
4217
  var e = [].slice.call(arguments, 0);
4198
4218
  return $r("isAfter", e);
4199
4219
  }
4200
- var wd = function() {
4220
+ var kd = function() {
4201
4221
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
4202
4222
  }, ft = [
4203
4223
  "year",
@@ -4210,10 +4230,10 @@ var wd = function() {
4210
4230
  "second",
4211
4231
  "millisecond"
4212
4232
  ];
4213
- function kd(e) {
4233
+ function Md(e) {
4214
4234
  var t, n = !1, s, r = ft.length;
4215
4235
  for (t in e)
4216
- if ($(e, t) && !(q.call(ft, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
4236
+ if ($(e, t) && !(K.call(ft, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
4217
4237
  return !1;
4218
4238
  for (s = 0; s < r; ++s)
4219
4239
  if (e[ft[s]]) {
@@ -4223,15 +4243,15 @@ function kd(e) {
4223
4243
  }
4224
4244
  return !0;
4225
4245
  }
4226
- function Md() {
4246
+ function Sd() {
4227
4247
  return this._isValid;
4228
4248
  }
4229
- function Sd() {
4249
+ function xd() {
4230
4250
  return ye(NaN);
4231
4251
  }
4232
4252
  function nn(e) {
4233
4253
  var t = Vn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, i = t.hour || 0, l = t.minute || 0, u = t.second || 0, d = t.millisecond || 0;
4234
- this._isValid = kd(t), this._milliseconds = +d + u * 1e3 + // 1000
4254
+ this._isValid = Md(t), this._milliseconds = +d + u * 1e3 + // 1000
4235
4255
  l * 6e4 + // 1000 * 60
4236
4256
  i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = Le(), this._bubble();
4237
4257
  }
@@ -4241,7 +4261,7 @@ function $t(e) {
4241
4261
  function Mn(e) {
4242
4262
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
4243
4263
  }
4244
- function xd(e, t, n) {
4264
+ function Cd(e, t, n) {
4245
4265
  var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, o;
4246
4266
  for (o = 0; o < s; o++)
4247
4267
  Y(e[o]) !== Y(t[o]) && a++;
@@ -4274,7 +4294,7 @@ function Sn(e) {
4274
4294
  }
4275
4295
  v.updateOffset = function() {
4276
4296
  };
4277
- function Cd(e, t, n) {
4297
+ function Nd(e, t, n) {
4278
4298
  var s = this._offset || 0, r;
4279
4299
  if (!this.isValid())
4280
4300
  return e != null ? this : NaN;
@@ -4292,53 +4312,53 @@ function Cd(e, t, n) {
4292
4312
  } else
4293
4313
  return this._isUTC ? s : Sn(this);
4294
4314
  }
4295
- function Nd(e, t) {
4315
+ function Td(e, t) {
4296
4316
  return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
4297
4317
  }
4298
- function Td(e) {
4318
+ function Id(e) {
4299
4319
  return this.utcOffset(0, e);
4300
4320
  }
4301
- function Id(e) {
4321
+ function Dd(e) {
4302
4322
  return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Sn(this), "m")), this;
4303
4323
  }
4304
- function Dd() {
4324
+ function Yd() {
4305
4325
  if (this._tzm != null)
4306
4326
  this.utcOffset(this._tzm, !1, !0);
4307
4327
  else if (typeof this._i == "string") {
4308
- var e = ts(Kl, this._i);
4328
+ var e = ts(Xl, this._i);
4309
4329
  e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
4310
4330
  }
4311
4331
  return this;
4312
4332
  }
4313
- function Yd(e) {
4333
+ function Ed(e) {
4314
4334
  return this.isValid() ? (e = e ? G(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
4315
4335
  }
4316
- function Ed() {
4336
+ function Rd() {
4317
4337
  return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
4318
4338
  }
4319
- function Rd() {
4339
+ function Pd() {
4320
4340
  if (!ae(this._isDSTShifted))
4321
4341
  return this._isDSTShifted;
4322
4342
  var e = {}, t;
4323
- return Wn(e, this), e = Rr(e), e._a ? (t = e._isUTC ? xe(e._a) : G(e._a), this._isDSTShifted = this.isValid() && xd(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
4343
+ return Wn(e, this), e = Rr(e), e._a ? (t = e._isUTC ? xe(e._a) : G(e._a), this._isDSTShifted = this.isValid() && Cd(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
4324
4344
  }
4325
- function Pd() {
4345
+ function $d() {
4326
4346
  return this.isValid() ? !this._isUTC : !1;
4327
4347
  }
4328
- function $d() {
4348
+ function Ld() {
4329
4349
  return this.isValid() ? this._isUTC : !1;
4330
4350
  }
4331
4351
  function Ar() {
4332
4352
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
4333
4353
  }
4334
- var Ld = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Ad = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
4354
+ var Ad = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Ud = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
4335
4355
  function ye(e, t) {
4336
4356
  var n = e, s = null, r, a, o;
4337
4357
  return $t(e) ? n = {
4338
4358
  ms: e._milliseconds,
4339
4359
  d: e._days,
4340
4360
  M: e._months
4341
- } : $e(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = Ld.exec(e)) ? (r = s[1] === "-" ? -1 : 1, n = {
4361
+ } : $e(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = Ad.exec(e)) ? (r = s[1] === "-" ? -1 : 1, n = {
4342
4362
  y: 0,
4343
4363
  d: Y(s[be]) * r,
4344
4364
  h: Y(s[Q]) * r,
@@ -4346,7 +4366,7 @@ function ye(e, t) {
4346
4366
  s: Y(s[Ye]) * r,
4347
4367
  ms: Y(Mn(s[ze] * 1e3)) * r
4348
4368
  // the millisecond decimal point is included in the match
4349
- }) : (s = Ad.exec(e)) ? (r = s[1] === "-" ? -1 : 1, n = {
4369
+ }) : (s = Ud.exec(e)) ? (r = s[1] === "-" ? -1 : 1, n = {
4350
4370
  y: je(s[2], r),
4351
4371
  M: je(s[3], r),
4352
4372
  w: je(s[4], r),
@@ -4354,13 +4374,13 @@ function ye(e, t) {
4354
4374
  h: je(s[6], r),
4355
4375
  m: je(s[7], r),
4356
4376
  s: je(s[8], r)
4357
- }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = Ud(
4377
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = Wd(
4358
4378
  G(n.from),
4359
4379
  G(n.to)
4360
4380
  ), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new nn(n), $t(e) && $(e, "_locale") && (a._locale = e._locale), $t(e) && $(e, "_isValid") && (a._isValid = e._isValid), a;
4361
4381
  }
4362
4382
  ye.fn = nn.prototype;
4363
- ye.invalid = Sd;
4383
+ ye.invalid = xd;
4364
4384
  function je(e, t) {
4365
4385
  var n = e && parseFloat(e.replace(",", "."));
4366
4386
  return (isNaN(n) ? 0 : n) * t;
@@ -4369,7 +4389,7 @@ function gs(e, t) {
4369
4389
  var n = {};
4370
4390
  return n.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(n.months, "M").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n;
4371
4391
  }
4372
- function Ud(e, t) {
4392
+ function Wd(e, t) {
4373
4393
  var n;
4374
4394
  return e.isValid() && t.isValid() ? (t = ns(t, e), e.isBefore(t) ? n = gs(e, t) : (n = gs(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
4375
4395
  }
@@ -4386,14 +4406,14 @@ function Wr(e, t, n, s) {
4386
4406
  var r = t._milliseconds, a = Mn(t._days), o = Mn(t._months);
4387
4407
  e.isValid() && (s = s ?? !0, o && Sr(e, mt(e, "Month") + o * n), a && wr(e, "Date", mt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || o));
4388
4408
  }
4389
- var Wd = Ur(1, "add"), Hd = Ur(-1, "subtract");
4409
+ var Hd = Ur(1, "add"), Fd = Ur(-1, "subtract");
4390
4410
  function Hr(e) {
4391
4411
  return typeof e == "string" || e instanceof String;
4392
4412
  }
4393
- function Fd(e) {
4394
- return _e(e) || St(e) || Hr(e) || $e(e) || Gd(e) || Vd(e) || e === null || e === void 0;
4395
- }
4396
4413
  function Vd(e) {
4414
+ return _e(e) || St(e) || Hr(e) || $e(e) || jd(e) || Gd(e) || e === null || e === void 0;
4415
+ }
4416
+ function Gd(e) {
4397
4417
  var t = Be(e) && !An(e), n = !1, s = [
4398
4418
  "years",
4399
4419
  "year",
@@ -4424,13 +4444,13 @@ function Vd(e) {
4424
4444
  a = s[r], n = n || $(e, a);
4425
4445
  return t && n;
4426
4446
  }
4427
- function Gd(e) {
4447
+ function jd(e) {
4428
4448
  var t = ve(e), n = !1;
4429
4449
  return t && (n = e.filter(function(s) {
4430
4450
  return !$e(s) && Hr(e);
4431
4451
  }).length === 0), t && n;
4432
4452
  }
4433
- function jd(e) {
4453
+ function zd(e) {
4434
4454
  var t = Be(e) && !An(e), n = !1, s = [
4435
4455
  "sameDay",
4436
4456
  "nextDay",
@@ -4443,43 +4463,43 @@ function jd(e) {
4443
4463
  a = s[r], n = n || $(e, a);
4444
4464
  return t && n;
4445
4465
  }
4446
- function zd(e, t) {
4466
+ function Bd(e, t) {
4447
4467
  var n = e.diff(t, "days", !0);
4448
4468
  return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
4449
4469
  }
4450
- function Bd(e, t) {
4451
- arguments.length === 1 && (arguments[0] ? Fd(arguments[0]) ? (e = arguments[0], t = void 0) : jd(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
4452
- var n = e || G(), s = ns(n, this).startOf("day"), r = v.calendarFormat(this, s) || "sameElse", a = t && (Oe(t[r]) ? t[r].call(this, n) : t[r]);
4470
+ function Zd(e, t) {
4471
+ arguments.length === 1 && (arguments[0] ? Vd(arguments[0]) ? (e = arguments[0], t = void 0) : zd(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
4472
+ var n = e || G(), s = ns(n, this).startOf("day"), r = v.calendarFormat(this, s) || "sameElse", a = t && (Ce(t[r]) ? t[r].call(this, n) : t[r]);
4453
4473
  return this.format(
4454
4474
  a || this.localeData().calendar(r, this, G(n))
4455
4475
  );
4456
4476
  }
4457
- function Zd() {
4477
+ function qd() {
4458
4478
  return new xt(this);
4459
4479
  }
4460
- function qd(e, t) {
4480
+ function Kd(e, t) {
4461
4481
  var n = _e(e) ? e : G(e);
4462
4482
  return this.isValid() && n.isValid() ? (t = fe(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
4463
4483
  }
4464
- function Kd(e, t) {
4484
+ function Xd(e, t) {
4465
4485
  var n = _e(e) ? e : G(e);
4466
4486
  return this.isValid() && n.isValid() ? (t = fe(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
4467
4487
  }
4468
- function Xd(e, t, n, s) {
4488
+ function Jd(e, t, n, s) {
4469
4489
  var r = _e(e) ? e : G(e), a = _e(t) ? t : G(t);
4470
4490
  return this.isValid() && r.isValid() && a.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(r, n) : !this.isBefore(r, n)) && (s[1] === ")" ? this.isBefore(a, n) : !this.isAfter(a, n))) : !1;
4471
4491
  }
4472
- function Jd(e, t) {
4492
+ function Qd(e, t) {
4473
4493
  var n = _e(e) ? e : G(e), s;
4474
4494
  return this.isValid() && n.isValid() ? (t = fe(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
4475
4495
  }
4476
- function Qd(e, t) {
4496
+ function ec(e, t) {
4477
4497
  return this.isSame(e, t) || this.isAfter(e, t);
4478
4498
  }
4479
- function ec(e, t) {
4499
+ function tc(e, t) {
4480
4500
  return this.isSame(e, t) || this.isBefore(e, t);
4481
4501
  }
4482
- function tc(e, t, n) {
4502
+ function nc(e, t, n) {
4483
4503
  var s, r, a;
4484
4504
  if (!this.isValid())
4485
4505
  return NaN;
@@ -4528,42 +4548,42 @@ function Lt(e, t) {
4528
4548
  }
4529
4549
  v.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
4530
4550
  v.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
4531
- function nc() {
4551
+ function sc() {
4532
4552
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
4533
4553
  }
4534
- function sc(e) {
4554
+ function rc(e) {
4535
4555
  if (!this.isValid())
4536
4556
  return null;
4537
4557
  var t = e !== !0, n = t ? this.clone().utc() : this;
4538
4558
  return n.year() < 0 || n.year() > 9999 ? Pt(
4539
4559
  n,
4540
4560
  t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
4541
- ) : Oe(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Pt(n, "Z")) : Pt(
4561
+ ) : Ce(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Pt(n, "Z")) : Pt(
4542
4562
  n,
4543
4563
  t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
4544
4564
  );
4545
4565
  }
4546
- function rc() {
4566
+ function ac() {
4547
4567
  if (!this.isValid())
4548
4568
  return "moment.invalid(/* " + this._i + " */)";
4549
4569
  var e = "moment", t = "", n, s, r, a;
4550
4570
  return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", r = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(n + s + r + a);
4551
4571
  }
4552
- function ac(e) {
4572
+ function oc(e) {
4553
4573
  e || (e = this.isUtc() ? v.defaultFormatUtc : v.defaultFormat);
4554
4574
  var t = Pt(this, e);
4555
4575
  return this.localeData().postformat(t);
4556
4576
  }
4557
- function oc(e, t) {
4577
+ function ic(e, t) {
4558
4578
  return this.isValid() && (_e(e) && e.isValid() || G(e).isValid()) ? ye({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
4559
4579
  }
4560
- function ic(e) {
4580
+ function lc(e) {
4561
4581
  return this.from(G(), e);
4562
4582
  }
4563
- function lc(e, t) {
4583
+ function uc(e, t) {
4564
4584
  return this.isValid() && (_e(e) && e.isValid() || G(e).isValid()) ? ye({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
4565
4585
  }
4566
- function uc(e) {
4586
+ function dc(e) {
4567
4587
  return this.to(G(), e);
4568
4588
  }
4569
4589
  function Fr(e) {
@@ -4589,7 +4609,7 @@ function zr(e, t, n) {
4589
4609
  function Br(e, t, n) {
4590
4610
  return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - jr : Date.UTC(e, t, n);
4591
4611
  }
4592
- function dc(e) {
4612
+ function cc(e) {
4593
4613
  var t, n;
4594
4614
  if (e = fe(e), e === void 0 || e === "millisecond" || !this.isValid())
4595
4615
  return this;
@@ -4640,7 +4660,7 @@ function dc(e) {
4640
4660
  }
4641
4661
  return this._d.setTime(t), v.updateOffset(this, !0), this;
4642
4662
  }
4643
- function cc(e) {
4663
+ function hc(e) {
4644
4664
  var t, n;
4645
4665
  if (e = fe(e), e === void 0 || e === "millisecond" || !this.isValid())
4646
4666
  return this;
@@ -4691,16 +4711,16 @@ function cc(e) {
4691
4711
  }
4692
4712
  return this._d.setTime(t), v.updateOffset(this, !0), this;
4693
4713
  }
4694
- function hc() {
4714
+ function fc() {
4695
4715
  return this._d.valueOf() - (this._offset || 0) * 6e4;
4696
4716
  }
4697
- function fc() {
4717
+ function pc() {
4698
4718
  return Math.floor(this.valueOf() / 1e3);
4699
4719
  }
4700
- function pc() {
4720
+ function mc() {
4701
4721
  return new Date(this.valueOf());
4702
4722
  }
4703
- function mc() {
4723
+ function vc() {
4704
4724
  var e = this;
4705
4725
  return [
4706
4726
  e.year(),
@@ -4712,7 +4732,7 @@ function mc() {
4712
4732
  e.millisecond()
4713
4733
  ];
4714
4734
  }
4715
- function vc() {
4735
+ function _c() {
4716
4736
  var e = this;
4717
4737
  return {
4718
4738
  years: e.year(),
@@ -4724,19 +4744,19 @@ function vc() {
4724
4744
  milliseconds: e.milliseconds()
4725
4745
  };
4726
4746
  }
4727
- function _c() {
4747
+ function yc() {
4728
4748
  return this.isValid() ? this.toISOString() : null;
4729
4749
  }
4730
- function yc() {
4750
+ function gc() {
4731
4751
  return Un(this);
4732
4752
  }
4733
- function gc() {
4753
+ function bc() {
4734
4754
  return We({}, T(this));
4735
4755
  }
4736
- function bc() {
4756
+ function wc() {
4737
4757
  return T(this).overflow;
4738
4758
  }
4739
- function wc() {
4759
+ function kc() {
4740
4760
  return {
4741
4761
  input: this._i,
4742
4762
  format: this._f,
@@ -4757,8 +4777,8 @@ x("y", ["yyyy", 4], 0, "eraYear");
4757
4777
  g("N", ss);
4758
4778
  g("NN", ss);
4759
4779
  g("NNN", ss);
4760
- g("NNNN", Yc);
4761
- g("NNNNN", Ec);
4780
+ g("NNNN", Ec);
4781
+ g("NNNNN", Rc);
4762
4782
  A(
4763
4783
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
4764
4784
  function(e, t, n, s) {
@@ -4770,13 +4790,13 @@ g("y", it);
4770
4790
  g("yy", it);
4771
4791
  g("yyy", it);
4772
4792
  g("yyyy", it);
4773
- g("yo", Rc);
4793
+ g("yo", Pc);
4774
4794
  A(["y", "yy", "yyy", "yyyy"], ne);
4775
4795
  A(["yo"], function(e, t, n, s) {
4776
4796
  var r;
4777
4797
  n._locale._eraYearOrdinalRegex && (r = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[ne] = n._locale.eraYearOrdinalParse(e, r) : t[ne] = parseInt(e, 10);
4778
4798
  });
4779
- function kc(e, t) {
4799
+ function Mc(e, t) {
4780
4800
  var n, s, r, a = this._eras || Le("en")._eras;
4781
4801
  for (n = 0, s = a.length; n < s; ++n)
4782
4802
  switch (typeof a[n].since === "string" && (r = v(a[n].since).startOf("day"), a[n].since = r.valueOf()), typeof a[n].until) {
@@ -4789,7 +4809,7 @@ function kc(e, t) {
4789
4809
  }
4790
4810
  return a;
4791
4811
  }
4792
- function Mc(e, t, n) {
4812
+ function Sc(e, t, n) {
4793
4813
  var s, r, a = this.eras(), o, i, l;
4794
4814
  for (e = e.toUpperCase(), s = 0, r = a.length; s < r; ++s)
4795
4815
  if (o = a[s].name.toUpperCase(), i = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
@@ -4812,11 +4832,11 @@ function Mc(e, t, n) {
4812
4832
  else if ([o, i, l].indexOf(e) >= 0)
4813
4833
  return a[s];
4814
4834
  }
4815
- function Sc(e, t) {
4835
+ function xc(e, t) {
4816
4836
  var n = e.since <= e.until ? 1 : -1;
4817
4837
  return t === void 0 ? v(e.since).year() : v(e.since).year() + (t - e.offset) * n;
4818
4838
  }
4819
- function xc() {
4839
+ function Cc() {
4820
4840
  var e, t, n, s = this.localeData().eras();
4821
4841
  for (e = 0, t = s.length; e < t; ++e)
4822
4842
  if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
@@ -4830,39 +4850,39 @@ function Oc() {
4830
4850
  return s[e].narrow;
4831
4851
  return "";
4832
4852
  }
4833
- function Cc() {
4853
+ function Nc() {
4834
4854
  var e, t, n, s = this.localeData().eras();
4835
4855
  for (e = 0, t = s.length; e < t; ++e)
4836
4856
  if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
4837
4857
  return s[e].abbr;
4838
4858
  return "";
4839
4859
  }
4840
- function Nc() {
4860
+ function Tc() {
4841
4861
  var e, t, n, s, r = this.localeData().eras();
4842
4862
  for (e = 0, t = r.length; e < t; ++e)
4843
4863
  if (n = r[e].since <= r[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
4844
4864
  return (this.year() - v(r[e].since).year()) * n + r[e].offset;
4845
4865
  return this.year();
4846
4866
  }
4847
- function Tc(e) {
4867
+ function Ic(e) {
4848
4868
  return $(this, "_erasNameRegex") || rs.call(this), e ? this._erasNameRegex : this._erasRegex;
4849
4869
  }
4850
- function Ic(e) {
4870
+ function Dc(e) {
4851
4871
  return $(this, "_erasAbbrRegex") || rs.call(this), e ? this._erasAbbrRegex : this._erasRegex;
4852
4872
  }
4853
- function Dc(e) {
4873
+ function Yc(e) {
4854
4874
  return $(this, "_erasNarrowRegex") || rs.call(this), e ? this._erasNarrowRegex : this._erasRegex;
4855
4875
  }
4856
4876
  function ss(e, t) {
4857
4877
  return t.erasAbbrRegex(e);
4858
4878
  }
4859
- function Yc(e, t) {
4879
+ function Ec(e, t) {
4860
4880
  return t.erasNameRegex(e);
4861
4881
  }
4862
- function Ec(e, t) {
4882
+ function Rc(e, t) {
4863
4883
  return t.erasNarrowRegex(e);
4864
4884
  }
4865
- function Rc(e, t) {
4885
+ function Pc(e, t) {
4866
4886
  return t._eraYearOrdinalRegex || it;
4867
4887
  }
4868
4888
  function rs() {
@@ -4895,16 +4915,16 @@ g("GGGG", jn, Gn);
4895
4915
  g("gggg", jn, Gn);
4896
4916
  g("GGGGG", Xt, qt);
4897
4917
  g("ggggg", Xt, qt);
4898
- Ct(
4918
+ Ot(
4899
4919
  ["gggg", "ggggg", "GGGG", "GGGGG"],
4900
4920
  function(e, t, n, s) {
4901
4921
  t[s.substr(0, 2)] = Y(e);
4902
4922
  }
4903
4923
  );
4904
- Ct(["gg", "GG"], function(e, t, n, s) {
4924
+ Ot(["gg", "GG"], function(e, t, n, s) {
4905
4925
  t[s] = v.parseTwoDigitYear(e);
4906
4926
  });
4907
- function Pc(e) {
4927
+ function $c(e) {
4908
4928
  return Zr.call(
4909
4929
  this,
4910
4930
  e,
@@ -4914,7 +4934,7 @@ function Pc(e) {
4914
4934
  this.localeData()._week.doy
4915
4935
  );
4916
4936
  }
4917
- function $c(e) {
4937
+ function Lc(e) {
4918
4938
  return Zr.call(
4919
4939
  this,
4920
4940
  e,
@@ -4924,26 +4944,26 @@ function $c(e) {
4924
4944
  4
4925
4945
  );
4926
4946
  }
4927
- function Lc() {
4947
+ function Ac() {
4928
4948
  return Re(this.year(), 1, 4);
4929
4949
  }
4930
- function Ac() {
4950
+ function Uc() {
4931
4951
  return Re(this.isoWeekYear(), 1, 4);
4932
4952
  }
4933
- function Uc() {
4953
+ function Wc() {
4934
4954
  var e = this.localeData()._week;
4935
4955
  return Re(this.year(), e.dow, e.doy);
4936
4956
  }
4937
- function Wc() {
4957
+ function Hc() {
4938
4958
  var e = this.localeData()._week;
4939
4959
  return Re(this.weekYear(), e.dow, e.doy);
4940
4960
  }
4941
4961
  function Zr(e, t, n, s, r) {
4942
4962
  var a;
4943
- return e == null ? _t(this, s, r).year : (a = Re(e, s, r), t > a && (t = a), Hc.call(this, e, t, n, s, r));
4963
+ return e == null ? _t(this, s, r).year : (a = Re(e, s, r), t > a && (t = a), Fc.call(this, e, t, n, s, r));
4944
4964
  }
4945
- function Hc(e, t, n, s, r) {
4946
- var a = Cr(e, t, n, s, r), o = vt(a.year, 0, a.dayOfYear);
4965
+ function Fc(e, t, n, s, r) {
4966
+ var a = Or(e, t, n, s, r), o = vt(a.year, 0, a.dayOfYear);
4947
4967
  return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
4948
4968
  }
4949
4969
  x("Q", 0, "Qo", "quarter");
@@ -4951,7 +4971,7 @@ g("Q", vr);
4951
4971
  A("Q", function(e, t) {
4952
4972
  t[De] = (Y(e) - 1) * 3;
4953
4973
  });
4954
- function Fc(e) {
4974
+ function Vc(e) {
4955
4975
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
4956
4976
  }
4957
4977
  x("D", ["DD", 2], "Do", "date");
@@ -4971,7 +4991,7 @@ g("DDDD", _r);
4971
4991
  A(["DDD", "DDDD"], function(e, t, n) {
4972
4992
  n._dayOfYear = Y(e);
4973
4993
  });
4974
- function Vc(e) {
4994
+ function Gc(e) {
4975
4995
  var t = Math.round(
4976
4996
  (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
4977
4997
  ) + 1;
@@ -4981,12 +5001,12 @@ x("m", ["mm", 2], 0, "minute");
4981
5001
  g("m", j, zn);
4982
5002
  g("mm", j, ue);
4983
5003
  A(["m", "mm"], me);
4984
- var Gc = ut("Minutes", !1);
5004
+ var jc = ut("Minutes", !1);
4985
5005
  x("s", ["ss", 2], 0, "second");
4986
5006
  g("s", j, zn);
4987
5007
  g("ss", j, ue);
4988
5008
  A(["s", "ss"], Ye);
4989
- var jc = ut("Seconds", !1);
5009
+ var zc = ut("Seconds", !1);
4990
5010
  x("S", 0, 0, function() {
4991
5011
  return ~~(this.millisecond() / 100);
4992
5012
  });
@@ -5018,100 +5038,100 @@ g("SSS", Kt, _r);
5018
5038
  var He, Kr;
5019
5039
  for (He = "SSSS"; He.length <= 9; He += "S")
5020
5040
  g(He, it);
5021
- function zc(e, t) {
5041
+ function Bc(e, t) {
5022
5042
  t[ze] = Y(("0." + e) * 1e3);
5023
5043
  }
5024
5044
  for (He = "S"; He.length <= 9; He += "S")
5025
- A(He, zc);
5045
+ A(He, Bc);
5026
5046
  Kr = ut("Milliseconds", !1);
5027
5047
  x("z", 0, 0, "zoneAbbr");
5028
5048
  x("zz", 0, 0, "zoneName");
5029
- function Bc() {
5049
+ function Zc() {
5030
5050
  return this._isUTC ? "UTC" : "";
5031
5051
  }
5032
- function Zc() {
5052
+ function qc() {
5033
5053
  return this._isUTC ? "Coordinated Universal Time" : "";
5034
5054
  }
5035
5055
  var c = xt.prototype;
5036
- c.add = Wd;
5037
- c.calendar = Bd;
5038
- c.clone = Zd;
5039
- c.diff = tc;
5040
- c.endOf = cc;
5041
- c.format = ac;
5042
- c.from = oc;
5043
- c.fromNow = ic;
5044
- c.to = lc;
5045
- c.toNow = uc;
5046
- c.get = ru;
5047
- c.invalidAt = bc;
5048
- c.isAfter = qd;
5049
- c.isBefore = Kd;
5050
- c.isBetween = Xd;
5051
- c.isSame = Jd;
5052
- c.isSameOrAfter = Qd;
5053
- c.isSameOrBefore = ec;
5054
- c.isValid = yc;
5056
+ c.add = Hd;
5057
+ c.calendar = Zd;
5058
+ c.clone = qd;
5059
+ c.diff = nc;
5060
+ c.endOf = hc;
5061
+ c.format = oc;
5062
+ c.from = ic;
5063
+ c.fromNow = lc;
5064
+ c.to = uc;
5065
+ c.toNow = dc;
5066
+ c.get = au;
5067
+ c.invalidAt = wc;
5068
+ c.isAfter = Kd;
5069
+ c.isBefore = Xd;
5070
+ c.isBetween = Jd;
5071
+ c.isSame = Qd;
5072
+ c.isSameOrAfter = ec;
5073
+ c.isSameOrBefore = tc;
5074
+ c.isValid = gc;
5055
5075
  c.lang = Vr;
5056
5076
  c.locale = Fr;
5057
5077
  c.localeData = Gr;
5058
- c.max = yd;
5059
- c.min = _d;
5060
- c.parsingFlags = gc;
5061
- c.set = au;
5062
- c.startOf = dc;
5063
- c.subtract = Hd;
5064
- c.toArray = mc;
5065
- c.toObject = vc;
5066
- c.toDate = pc;
5067
- c.toISOString = sc;
5068
- c.inspect = rc;
5078
+ c.max = gd;
5079
+ c.min = yd;
5080
+ c.parsingFlags = bc;
5081
+ c.set = ou;
5082
+ c.startOf = cc;
5083
+ c.subtract = Fd;
5084
+ c.toArray = vc;
5085
+ c.toObject = _c;
5086
+ c.toDate = mc;
5087
+ c.toISOString = rc;
5088
+ c.inspect = ac;
5069
5089
  typeof Symbol < "u" && Symbol.for != null && (c[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
5070
5090
  return "Moment<" + this.format() + ">";
5071
5091
  });
5072
- c.toJSON = _c;
5073
- c.toString = nc;
5074
- c.unix = fc;
5075
- c.valueOf = hc;
5076
- c.creationData = wc;
5077
- c.eraName = xc;
5092
+ c.toJSON = yc;
5093
+ c.toString = sc;
5094
+ c.unix = pc;
5095
+ c.valueOf = fc;
5096
+ c.creationData = kc;
5097
+ c.eraName = Cc;
5078
5098
  c.eraNarrow = Oc;
5079
- c.eraAbbr = Cc;
5080
- c.eraYear = Nc;
5099
+ c.eraAbbr = Nc;
5100
+ c.eraYear = Tc;
5081
5101
  c.year = br;
5082
- c.isLeapYear = su;
5083
- c.weekYear = Pc;
5084
- c.isoWeekYear = $c;
5085
- c.quarter = c.quarters = Fc;
5102
+ c.isLeapYear = ru;
5103
+ c.weekYear = $c;
5104
+ c.isoWeekYear = Lc;
5105
+ c.quarter = c.quarters = Vc;
5086
5106
  c.month = xr;
5087
- c.daysInMonth = pu;
5088
- c.week = c.weeks = ku;
5089
- c.isoWeek = c.isoWeeks = Mu;
5090
- c.weeksInYear = Uc;
5091
- c.weeksInWeekYear = Wc;
5092
- c.isoWeeksInYear = Lc;
5093
- c.isoWeeksInISOWeekYear = Ac;
5107
+ c.daysInMonth = mu;
5108
+ c.week = c.weeks = Mu;
5109
+ c.isoWeek = c.isoWeeks = Su;
5110
+ c.weeksInYear = Wc;
5111
+ c.weeksInWeekYear = Hc;
5112
+ c.isoWeeksInYear = Ac;
5113
+ c.isoWeeksInISOWeekYear = Uc;
5094
5114
  c.date = qr;
5095
- c.day = c.days = $u;
5096
- c.weekday = Lu;
5097
- c.isoWeekday = Au;
5098
- c.dayOfYear = Vc;
5099
- c.hour = c.hours = ju;
5100
- c.minute = c.minutes = Gc;
5101
- c.second = c.seconds = jc;
5115
+ c.day = c.days = Lu;
5116
+ c.weekday = Au;
5117
+ c.isoWeekday = Uu;
5118
+ c.dayOfYear = Gc;
5119
+ c.hour = c.hours = zu;
5120
+ c.minute = c.minutes = jc;
5121
+ c.second = c.seconds = zc;
5102
5122
  c.millisecond = c.milliseconds = Kr;
5103
- c.utcOffset = Cd;
5104
- c.utc = Td;
5105
- c.local = Id;
5106
- c.parseZone = Dd;
5107
- c.hasAlignedHourOffset = Yd;
5108
- c.isDST = Ed;
5109
- c.isLocal = Pd;
5110
- c.isUtcOffset = $d;
5123
+ c.utcOffset = Nd;
5124
+ c.utc = Id;
5125
+ c.local = Dd;
5126
+ c.parseZone = Yd;
5127
+ c.hasAlignedHourOffset = Ed;
5128
+ c.isDST = Rd;
5129
+ c.isLocal = $d;
5130
+ c.isUtcOffset = Ld;
5111
5131
  c.isUtc = Ar;
5112
5132
  c.isUTC = Ar;
5113
- c.zoneAbbr = Bc;
5114
- c.zoneName = Zc;
5133
+ c.zoneAbbr = Zc;
5134
+ c.zoneName = qc;
5115
5135
  c.dates = he(
5116
5136
  "dates accessor is deprecated. Use date instead.",
5117
5137
  qr
@@ -5126,54 +5146,54 @@ c.years = he(
5126
5146
  );
5127
5147
  c.zone = he(
5128
5148
  "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
5129
- Nd
5149
+ Td
5130
5150
  );
5131
5151
  c.isDSTShifted = he(
5132
5152
  "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
5133
- Rd
5153
+ Pd
5134
5154
  );
5135
- function qc(e) {
5155
+ function Kc(e) {
5136
5156
  return G(e * 1e3);
5137
5157
  }
5138
- function Kc() {
5158
+ function Xc() {
5139
5159
  return G.apply(null, arguments).parseZone();
5140
5160
  }
5141
5161
  function Xr(e) {
5142
5162
  return e;
5143
5163
  }
5144
5164
  var L = Hn.prototype;
5145
- L.calendar = Pl;
5146
- L.longDateFormat = Ul;
5147
- L.invalidDate = Hl;
5148
- L.ordinal = Gl;
5165
+ L.calendar = $l;
5166
+ L.longDateFormat = Wl;
5167
+ L.invalidDate = Fl;
5168
+ L.ordinal = jl;
5149
5169
  L.preparse = Xr;
5150
5170
  L.postformat = Xr;
5151
- L.relativeTime = zl;
5152
- L.pastFuture = Bl;
5153
- L.set = El;
5154
- L.eras = kc;
5155
- L.erasParse = Mc;
5156
- L.erasConvertYear = Sc;
5157
- L.erasAbbrRegex = Ic;
5158
- L.erasNameRegex = Tc;
5159
- L.erasNarrowRegex = Dc;
5160
- L.months = du;
5161
- L.monthsShort = cu;
5162
- L.monthsParse = fu;
5163
- L.monthsRegex = vu;
5164
- L.monthsShortRegex = mu;
5165
- L.week = yu;
5166
- L.firstDayOfYear = wu;
5167
- L.firstDayOfWeek = bu;
5168
- L.weekdays = Du;
5169
- L.weekdaysMin = Eu;
5170
- L.weekdaysShort = Yu;
5171
- L.weekdaysParse = Pu;
5172
- L.weekdaysRegex = Uu;
5173
- L.weekdaysShortRegex = Wu;
5174
- L.weekdaysMinRegex = Hu;
5175
- L.isPM = Vu;
5176
- L.meridiem = zu;
5171
+ L.relativeTime = Bl;
5172
+ L.pastFuture = Zl;
5173
+ L.set = Rl;
5174
+ L.eras = Mc;
5175
+ L.erasParse = Sc;
5176
+ L.erasConvertYear = xc;
5177
+ L.erasAbbrRegex = Dc;
5178
+ L.erasNameRegex = Ic;
5179
+ L.erasNarrowRegex = Yc;
5180
+ L.months = cu;
5181
+ L.monthsShort = hu;
5182
+ L.monthsParse = pu;
5183
+ L.monthsRegex = _u;
5184
+ L.monthsShortRegex = vu;
5185
+ L.week = gu;
5186
+ L.firstDayOfYear = ku;
5187
+ L.firstDayOfWeek = wu;
5188
+ L.weekdays = Yu;
5189
+ L.weekdaysMin = Ru;
5190
+ L.weekdaysShort = Eu;
5191
+ L.weekdaysParse = $u;
5192
+ L.weekdaysRegex = Wu;
5193
+ L.weekdaysShortRegex = Hu;
5194
+ L.weekdaysMinRegex = Fu;
5195
+ L.isPM = Gu;
5196
+ L.meridiem = Bu;
5177
5197
  function Ft(e, t, n, s) {
5178
5198
  var r = Le(), a = xe().set(s, t);
5179
5199
  return r[n](a, e);
@@ -5195,19 +5215,19 @@ function as(e, t, n, s) {
5195
5215
  i[o] = Ft(t, (o + a) % 7, s, "day");
5196
5216
  return i;
5197
5217
  }
5198
- function Xc(e, t) {
5218
+ function Jc(e, t) {
5199
5219
  return Jr(e, t, "months");
5200
5220
  }
5201
- function Jc(e, t) {
5221
+ function Qc(e, t) {
5202
5222
  return Jr(e, t, "monthsShort");
5203
5223
  }
5204
- function Qc(e, t, n) {
5224
+ function eh(e, t, n) {
5205
5225
  return as(e, t, n, "weekdays");
5206
5226
  }
5207
- function eh(e, t, n) {
5227
+ function th(e, t, n) {
5208
5228
  return as(e, t, n, "weekdaysShort");
5209
5229
  }
5210
- function th(e, t, n) {
5230
+ function nh(e, t, n) {
5211
5231
  return as(e, t, n, "weekdaysMin");
5212
5232
  }
5213
5233
  Fe("en", {
@@ -5244,7 +5264,7 @@ v.langData = he(
5244
5264
  Le
5245
5265
  );
5246
5266
  var Te = Math.abs;
5247
- function nh() {
5267
+ function sh() {
5248
5268
  var e = this._data;
5249
5269
  return this._milliseconds = Te(this._milliseconds), this._days = Te(this._days), this._months = Te(this._months), e.milliseconds = Te(e.milliseconds), e.seconds = Te(e.seconds), e.minutes = Te(e.minutes), e.hours = Te(e.hours), e.months = Te(e.months), e.years = Te(e.years), this;
5250
5270
  }
@@ -5252,16 +5272,16 @@ function Qr(e, t, n, s) {
5252
5272
  var r = ye(t, n);
5253
5273
  return e._milliseconds += s * r._milliseconds, e._days += s * r._days, e._months += s * r._months, e._bubble();
5254
5274
  }
5255
- function sh(e, t) {
5275
+ function rh(e, t) {
5256
5276
  return Qr(this, e, t, 1);
5257
5277
  }
5258
- function rh(e, t) {
5278
+ function ah(e, t) {
5259
5279
  return Qr(this, e, t, -1);
5260
5280
  }
5261
5281
  function bs(e) {
5262
5282
  return e < 0 ? Math.floor(e) : Math.ceil(e);
5263
5283
  }
5264
- function ah() {
5284
+ function oh() {
5265
5285
  var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, o, i, l;
5266
5286
  return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += bs(xn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = de(e / 1e3), s.seconds = r % 60, a = de(r / 60), s.minutes = a % 60, o = de(a / 60), s.hours = o % 24, t += de(o / 24), l = de(ea(t)), n += l, t -= bs(xn(l)), i = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = i, this;
5267
5287
  }
@@ -5271,7 +5291,7 @@ function ea(e) {
5271
5291
  function xn(e) {
5272
5292
  return e * 146097 / 4800;
5273
5293
  }
5274
- function oh(e) {
5294
+ function ih(e) {
5275
5295
  if (!this.isValid())
5276
5296
  return NaN;
5277
5297
  var t, n, s = this._milliseconds;
@@ -5308,11 +5328,11 @@ function Ae(e) {
5308
5328
  return this.as(e);
5309
5329
  };
5310
5330
  }
5311
- var ta = Ae("ms"), ih = Ae("s"), lh = Ae("m"), uh = Ae("h"), dh = Ae("d"), ch = Ae("w"), hh = Ae("M"), fh = Ae("Q"), ph = Ae("y"), mh = ta;
5312
- function vh() {
5331
+ var ta = Ae("ms"), lh = Ae("s"), uh = Ae("m"), dh = Ae("h"), ch = Ae("d"), hh = Ae("w"), fh = Ae("M"), ph = Ae("Q"), mh = Ae("y"), vh = ta;
5332
+ function _h() {
5313
5333
  return ye(this);
5314
5334
  }
5315
- function _h(e) {
5335
+ function yh(e) {
5316
5336
  return e = fe(e), this.isValid() ? this[e + "s"]() : NaN;
5317
5337
  }
5318
5338
  function Ke(e) {
@@ -5320,8 +5340,8 @@ function Ke(e) {
5320
5340
  return this.isValid() ? this._data[e] : NaN;
5321
5341
  };
5322
5342
  }
5323
- var yh = Ke("milliseconds"), gh = Ke("seconds"), bh = Ke("minutes"), wh = Ke("hours"), kh = Ke("days"), Mh = Ke("months"), Sh = Ke("years");
5324
- function xh() {
5343
+ var gh = Ke("milliseconds"), bh = Ke("seconds"), wh = Ke("minutes"), kh = Ke("hours"), Mh = Ke("days"), Sh = Ke("months"), xh = Ke("years");
5344
+ function Ch() {
5325
5345
  return de(this.days() / 7);
5326
5346
  }
5327
5347
  var Ie = Math.round, tt = {
@@ -5343,21 +5363,21 @@ var Ie = Math.round, tt = {
5343
5363
  function Oh(e, t, n, s, r) {
5344
5364
  return r.relativeTime(t || 1, !!n, e, s);
5345
5365
  }
5346
- function Ch(e, t, n, s) {
5347
- var r = ye(e).abs(), a = Ie(r.as("s")), o = Ie(r.as("m")), i = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), d = Ie(r.as("w")), _ = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || l <= 1 && ["d"] || l < n.d && ["dd", l];
5348
- return n.w != null && (p = p || d <= 1 && ["w"] || d < n.w && ["ww", d]), p = p || u <= 1 && ["M"] || u < n.M && ["MM", u] || _ <= 1 && ["y"] || ["yy", _], p[2] = t, p[3] = +e > 0, p[4] = s, Oh.apply(null, p);
5366
+ function Nh(e, t, n, s) {
5367
+ var r = ye(e).abs(), a = Ie(r.as("s")), o = Ie(r.as("m")), i = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), d = Ie(r.as("w")), y = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || l <= 1 && ["d"] || l < n.d && ["dd", l];
5368
+ return n.w != null && (p = p || d <= 1 && ["w"] || d < n.w && ["ww", d]), p = p || u <= 1 && ["M"] || u < n.M && ["MM", u] || y <= 1 && ["y"] || ["yy", y], p[2] = t, p[3] = +e > 0, p[4] = s, Oh.apply(null, p);
5349
5369
  }
5350
- function Nh(e) {
5370
+ function Th(e) {
5351
5371
  return e === void 0 ? Ie : typeof e == "function" ? (Ie = e, !0) : !1;
5352
5372
  }
5353
- function Th(e, t) {
5373
+ function Ih(e, t) {
5354
5374
  return tt[e] === void 0 ? !1 : t === void 0 ? tt[e] : (tt[e] = t, e === "s" && (tt.ss = t - 1), !0);
5355
5375
  }
5356
- function Ih(e, t) {
5376
+ function Dh(e, t) {
5357
5377
  if (!this.isValid())
5358
5378
  return this.localeData().invalidDate();
5359
5379
  var n = !1, s = tt, r, a;
5360
- return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, tt, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), r = this.localeData(), a = Ch(this, !n, s, r), n && (a = r.pastFuture(+this, a)), r.postformat(a);
5380
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, tt, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), r = this.localeData(), a = Nh(this, !n, s, r), n && (a = r.pastFuture(+this, a)), r.postformat(a);
5361
5381
  }
5362
5382
  var hn = Math.abs;
5363
5383
  function Je(e) {
@@ -5366,37 +5386,37 @@ function Je(e) {
5366
5386
  function rn() {
5367
5387
  if (!this.isValid())
5368
5388
  return this.localeData().invalidDate();
5369
- var e = hn(this._milliseconds) / 1e3, t = hn(this._days), n = hn(this._months), s, r, a, o, i = this.asSeconds(), l, u, d, _;
5370
- return i ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, o = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = i < 0 ? "-" : "", u = Je(this._months) !== Je(i) ? "-" : "", d = Je(this._days) !== Je(i) ? "-" : "", _ = Je(this._milliseconds) !== Je(i) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? d + t + "D" : "") + (r || s || e ? "T" : "") + (r ? _ + r + "H" : "") + (s ? _ + s + "M" : "") + (e ? _ + o + "S" : "")) : "P0D";
5389
+ var e = hn(this._milliseconds) / 1e3, t = hn(this._days), n = hn(this._months), s, r, a, o, i = this.asSeconds(), l, u, d, y;
5390
+ return i ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, o = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = i < 0 ? "-" : "", u = Je(this._months) !== Je(i) ? "-" : "", d = Je(this._days) !== Je(i) ? "-" : "", y = Je(this._milliseconds) !== Je(i) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? d + t + "D" : "") + (r || s || e ? "T" : "") + (r ? y + r + "H" : "") + (s ? y + s + "M" : "") + (e ? y + o + "S" : "")) : "P0D";
5371
5391
  }
5372
5392
  var E = nn.prototype;
5373
- E.isValid = Md;
5374
- E.abs = nh;
5375
- E.add = sh;
5376
- E.subtract = rh;
5377
- E.as = oh;
5393
+ E.isValid = Sd;
5394
+ E.abs = sh;
5395
+ E.add = rh;
5396
+ E.subtract = ah;
5397
+ E.as = ih;
5378
5398
  E.asMilliseconds = ta;
5379
- E.asSeconds = ih;
5380
- E.asMinutes = lh;
5381
- E.asHours = uh;
5382
- E.asDays = dh;
5383
- E.asWeeks = ch;
5384
- E.asMonths = hh;
5385
- E.asQuarters = fh;
5386
- E.asYears = ph;
5387
- E.valueOf = mh;
5388
- E._bubble = ah;
5389
- E.clone = vh;
5390
- E.get = _h;
5391
- E.milliseconds = yh;
5392
- E.seconds = gh;
5393
- E.minutes = bh;
5394
- E.hours = wh;
5395
- E.days = kh;
5396
- E.weeks = xh;
5397
- E.months = Mh;
5398
- E.years = Sh;
5399
- E.humanize = Ih;
5399
+ E.asSeconds = lh;
5400
+ E.asMinutes = uh;
5401
+ E.asHours = dh;
5402
+ E.asDays = ch;
5403
+ E.asWeeks = hh;
5404
+ E.asMonths = fh;
5405
+ E.asQuarters = ph;
5406
+ E.asYears = mh;
5407
+ E.valueOf = vh;
5408
+ E._bubble = oh;
5409
+ E.clone = _h;
5410
+ E.get = yh;
5411
+ E.milliseconds = gh;
5412
+ E.seconds = bh;
5413
+ E.minutes = wh;
5414
+ E.hours = kh;
5415
+ E.days = Mh;
5416
+ E.weeks = Ch;
5417
+ E.months = Sh;
5418
+ E.years = xh;
5419
+ E.humanize = Dh;
5400
5420
  E.toISOString = rn;
5401
5421
  E.toString = rn;
5402
5422
  E.toJSON = rn;
@@ -5410,7 +5430,7 @@ E.lang = Vr;
5410
5430
  x("X", 0, 0, "unix");
5411
5431
  x("x", 0, 0, "valueOf");
5412
5432
  g("x", Jt);
5413
- g("X", Xl);
5433
+ g("X", Jl);
5414
5434
  A("X", function(e, t, n) {
5415
5435
  n._d = new Date(parseFloat(e) * 1e3);
5416
5436
  });
@@ -5418,33 +5438,33 @@ A("x", function(e, t, n) {
5418
5438
  n._d = new Date(Y(e));
5419
5439
  });
5420
5440
  v.version = "2.30.1";
5421
- Dl(G);
5441
+ Yl(G);
5422
5442
  v.fn = c;
5423
- v.min = gd;
5424
- v.max = bd;
5425
- v.now = wd;
5443
+ v.min = bd;
5444
+ v.max = wd;
5445
+ v.now = kd;
5426
5446
  v.utc = xe;
5427
- v.unix = qc;
5428
- v.months = Xc;
5447
+ v.unix = Kc;
5448
+ v.months = Jc;
5429
5449
  v.isDate = St;
5430
5450
  v.locale = Fe;
5431
5451
  v.invalid = Zt;
5432
5452
  v.duration = ye;
5433
5453
  v.isMoment = _e;
5434
- v.weekdays = Qc;
5435
- v.parseZone = Kc;
5454
+ v.weekdays = eh;
5455
+ v.parseZone = Xc;
5436
5456
  v.localeData = Le;
5437
5457
  v.isDuration = $t;
5438
- v.monthsShort = Jc;
5439
- v.weekdaysMin = th;
5458
+ v.monthsShort = Qc;
5459
+ v.weekdaysMin = nh;
5440
5460
  v.defineLocale = Xn;
5441
- v.updateLocale = Ku;
5442
- v.locales = Xu;
5443
- v.weekdaysShort = eh;
5461
+ v.updateLocale = Xu;
5462
+ v.locales = Ju;
5463
+ v.weekdaysShort = th;
5444
5464
  v.normalizeUnits = fe;
5445
- v.relativeTimeRounding = Nh;
5446
- v.relativeTimeThreshold = Th;
5447
- v.calendarFormat = zd;
5465
+ v.relativeTimeRounding = Th;
5466
+ v.relativeTimeThreshold = Ih;
5467
+ v.calendarFormat = Bd;
5448
5468
  v.prototype = c;
5449
5469
  v.HTML5_FMT = {
5450
5470
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
@@ -5466,12 +5486,12 @@ v.HTML5_FMT = {
5466
5486
  MONTH: "YYYY-MM"
5467
5487
  // <input type="month" />
5468
5488
  };
5469
- const Dh = "code-graph", Yh = (e, t = "", n = "json") => {
5489
+ const Yh = "code-graph", Eh = (e, t = "", n = "json") => {
5470
5490
  const s = document.createElement("a");
5471
5491
  s.setAttribute("href", `data:text/${n};charset=UTF-8,${encodeURIComponent(e)}`);
5472
5492
  const r = v().format("YYMMDD_HHMMSS");
5473
- s.setAttribute("download", `${Dh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
5474
- }, Eh = (e = "json") => {
5493
+ s.setAttribute("download", `${Yh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
5494
+ }, Rh = (e = "json") => {
5475
5495
  const t = document.createElement("input");
5476
5496
  return t.setAttribute("type", "file"), t.setAttribute("id", "fileElem"), t.setAttribute("multiple", "true"), t.setAttribute("accept", `${e}/*`), t.style.display = "none", document.body.appendChild(t), t.click(), t;
5477
5497
  };
@@ -5498,7 +5518,7 @@ class an extends Aa {
5498
5518
  const I = n.get(p);
5499
5519
  if (!I) throw new Error(`Unable to create graph from template: Could not map old id ${p} to new id`);
5500
5520
  return I;
5501
- }, a = (p) => Ui(p, (I) => ({
5521
+ }, a = (p) => Wi(p, (I) => ({
5502
5522
  id: s(I.id),
5503
5523
  templateId: I.id,
5504
5524
  value: I.value
@@ -5531,11 +5551,11 @@ class an extends Aa {
5531
5551
  return t || (t = new Mt(this.editor)), t.load(d).forEach((p) => console.warn(p)), t.template = this, t;
5532
5552
  }
5533
5553
  }
5534
- const Rh = (e) => !(e instanceof Mt);
5535
- function Ph(e, t) {
5554
+ const Ph = (e) => !(e instanceof Mt);
5555
+ function $h(e, t) {
5536
5556
  return { switchGraph: (s) => {
5537
5557
  let r;
5538
- if (Rh(s))
5558
+ if (Ph(s))
5539
5559
  r = new Mt(e.value), s.createGraph(r);
5540
5560
  else {
5541
5561
  if (s !== e.value.graph)
@@ -5547,15 +5567,15 @@ function Ph(e, t) {
5547
5567
  t.value && t.value !== e.value.graph && t.value.destroy(), r.panning = r.panning ?? s.panning ?? { x: 0, y: 0 }, r.scaling = r.scaling ?? s.scaling ?? 1, r.selectedNodes = r.selectedNodes ?? [], r.sidebar = r.sidebar ?? { visible: !1, nodeId: "", optionName: "" }, t.value = r, r.code?.engine?.runOnce({});
5548
5568
  } };
5549
5569
  }
5550
- class $h extends Error {
5570
+ class Lh extends Error {
5551
5571
  constructor() {
5552
5572
  super("Cycle detected");
5553
5573
  }
5554
5574
  }
5555
- function Lh(e) {
5575
+ function Ah(e) {
5556
5576
  return typeof e == "string";
5557
5577
  }
5558
- function Ah(e, t) {
5578
+ function Uh(e, t) {
5559
5579
  const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
5560
5580
  let a, o;
5561
5581
  if (e instanceof Mt)
@@ -5565,14 +5585,14 @@ function Ah(e, t) {
5565
5585
  a.forEach((u) => {
5566
5586
  Object.values(u.inputs).forEach((d) => n.set(d.id, u.id)), Object.values(u.outputs).forEach((d) => n.set(d.id, u.id));
5567
5587
  }), a.forEach((u) => {
5568
- const d = o.filter((p) => p.from && n.get(p.from.id) === u.id), _ = new Set(
5569
- d.map((p) => n.get(p.to.id)).filter(Lh)
5588
+ const d = o.filter((p) => p.from && n.get(p.from.id) === u.id), y = new Set(
5589
+ d.map((p) => n.get(p.to.id)).filter(Ah)
5570
5590
  );
5571
- s.set(u.id, _), r.set(u, d);
5591
+ s.set(u.id, y), r.set(u, d);
5572
5592
  });
5573
5593
  const i = a.slice();
5574
5594
  o.forEach((u) => {
5575
- const d = i.findIndex((_) => n.get(u.to.id) === _.id);
5595
+ const d = i.findIndex((y) => n.get(u.to.id) === y.id);
5576
5596
  d >= 0 && i.splice(d, 1);
5577
5597
  });
5578
5598
  const l = [];
@@ -5581,25 +5601,25 @@ function Ah(e, t) {
5581
5601
  l.push(u);
5582
5602
  const d = s.get(u.id);
5583
5603
  for (; d.size > 0; ) {
5584
- const _ = d.values().next().value;
5585
- if (d.delete(_), Array.from(s.values()).every((p) => !p.has(_))) {
5586
- const p = a.find((I) => I.id === _);
5604
+ const y = d.values().next().value;
5605
+ if (d.delete(y), Array.from(s.values()).every((p) => !p.has(y))) {
5606
+ const p = a.find((I) => I.id === y);
5587
5607
  i.push(p);
5588
5608
  }
5589
5609
  }
5590
5610
  }
5591
5611
  if (Array.from(s.values()).some((u) => u.size > 0))
5592
- throw new $h();
5612
+ throw new Lh();
5593
5613
  return {
5594
5614
  calculationOrder: l,
5595
5615
  connectionsFromNode: r,
5596
5616
  interfaceIdToNodeId: n
5597
5617
  };
5598
5618
  }
5599
- const mf = (e) => {
5619
+ const vf = (e) => {
5600
5620
  e.allowMultipleConnections = !0;
5601
5621
  };
5602
- class Uh extends Va {
5622
+ class Wh extends Va {
5603
5623
  order = /* @__PURE__ */ new Map();
5604
5624
  constructor(t) {
5605
5625
  super(t);
@@ -5608,14 +5628,14 @@ class Uh extends Va {
5608
5628
  super.start(), this.recalculateOrder = !0, this.calculateWithoutData();
5609
5629
  }
5610
5630
  async runGraph(t, n, s) {
5611
- this.order.has(t.id) || this.order.set(t.id, Ah(t));
5631
+ this.order.has(t.id) || this.order.set(t.id, Uh(t));
5612
5632
  const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), o = /* @__PURE__ */ new Map();
5613
5633
  for (const i of r) {
5614
5634
  const l = {};
5615
- Object.entries(i.inputs).forEach(([d, _]) => {
5635
+ Object.entries(i.inputs).forEach(([d, y]) => {
5616
5636
  if (d !== "_code")
5617
5637
  try {
5618
- l[d] = this.getInterfaceValue(n, _.id);
5638
+ l[d] = this.getInterfaceValue(n, y.id);
5619
5639
  } catch {
5620
5640
  }
5621
5641
  }), i.isCodeNode && (i.update(), i.updateCodeTemplate(), i.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: i });
@@ -5624,18 +5644,18 @@ class Uh extends Va {
5624
5644
  u = await i.calculate(l, { globalValues: s, engine: this });
5625
5645
  else {
5626
5646
  u = {};
5627
- for (const [d, _] of Object.entries(i.outputs))
5628
- u[d] = this.getInterfaceValue(n, _.id);
5647
+ for (const [d, y] of Object.entries(i.outputs))
5648
+ u[d] = this.getInterfaceValue(n, y.id);
5629
5649
  }
5630
5650
  this.events.afterNodeCalculation.emit({ outputValues: u, node: i }), o.set(i.id, new Map(Object.entries(u))), a.has(i) && a.get(i).forEach((d) => {
5631
- const _ = Object.entries(i.outputs).find(([, I]) => I.id === d.from.id)?.[0];
5632
- if (!_)
5651
+ const y = Object.entries(i.outputs).find(([, I]) => I.id === d.from.id)?.[0];
5652
+ if (!y)
5633
5653
  throw new Error(
5634
5654
  `Could not find key for interface ${d.from.id}
5635
5655
  This is likely an internal issue. Please report it on GitHub.`
5636
5656
  );
5637
- const p = this.hooks.transferData.execute(u[_], d);
5638
- _ !== "_code" && (d.to.allowMultipleConnections ? n.has(d.to.id) ? n.get(d.to.id).push(p) : n.set(d.to.id, [p]) : n.set(d.to.id, p));
5657
+ const p = this.hooks.transferData.execute(u[y], d);
5658
+ y !== "_code" && (d.to.allowMultipleConnections ? n.has(d.to.id) ? n.get(d.to.id).push(p) : n.set(d.to.id, [p]) : n.set(d.to.id, p));
5639
5659
  });
5640
5660
  }
5641
5661
  return o;
@@ -5667,7 +5687,7 @@ This is likely an internal issue. Please report it on GitHub.`
5667
5687
  return t.get(n);
5668
5688
  }
5669
5689
  }
5670
- const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Wh = "RUN_ENGINE", ra = "TOGGLE_MINIMAP", aa = "TOGGLE_PALETTE", oa = "UPLOAD_EDITOR_STATE", Hh = (e, t, n) => {
5690
+ const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Hh = "RUN_ENGINE", ra = "TOGGLE_MINIMAP", aa = "TOGGLE_PALETTE", oa = "UPLOAD_EDITOR_STATE", Fh = (e, t, n) => {
5671
5691
  const s = n.zoomToFit.paddingLeft;
5672
5692
  t.registerCommand(na, {
5673
5693
  execute: () => {
@@ -5677,7 +5697,7 @@ const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Wh = "RUN_ENGINE", ra = "T
5677
5697
  }), t.registerCommand(sa, {
5678
5698
  execute: () => {
5679
5699
  const r = e.value.editor.save();
5680
- Yh(JSON.stringify(r, null, 2), e.value.shortId);
5700
+ Eh(JSON.stringify(r, null, 2), e.value.shortId);
5681
5701
  },
5682
5702
  canExecute: () => e.value.nodes.length > 0
5683
5703
  }), t.registerCommand(ra, {
@@ -5690,7 +5710,7 @@ const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Wh = "RUN_ENGINE", ra = "T
5690
5710
  canExecute: () => !0
5691
5711
  }), t.registerCommand(oa, {
5692
5712
  execute: () => {
5693
- const r = Eh();
5713
+ const r = Rh();
5694
5714
  r.addEventListener("change", () => {
5695
5715
  document.body.removeChild(r);
5696
5716
  const a = r.files;
@@ -5708,7 +5728,7 @@ const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Wh = "RUN_ENGINE", ra = "T
5708
5728
  },
5709
5729
  canExecute: () => !0
5710
5730
  });
5711
- }, Fh = (e) => {
5731
+ }, Vh = (e) => {
5712
5732
  const t = {
5713
5733
  command: na,
5714
5734
  title: "Clear all",
@@ -5741,15 +5761,15 @@ const na = "CLEAR_ALL", sa = "DOWNLOAD_EDITOR_STATE", Wh = "RUN_ENGINE", ra = "T
5741
5761
  // run_engine,
5742
5762
  s
5743
5763
  ];
5744
- }, Vh = (e, t, n) => {
5745
- n.registerCommand(Wh, {
5764
+ }, Gh = (e, t, n) => {
5765
+ n.registerCommand(Hh, {
5746
5766
  execute: () => t.runOnce({}),
5747
5767
  canExecute: () => e.nodes.length > 0
5748
5768
  });
5749
5769
  };
5750
- function Gh(e) {
5770
+ function jh(e) {
5751
5771
  const t = /* @__PURE__ */ Symbol("CodeEngineToken");
5752
- e.engine = new Uh(e.editor), Vh(e.editor.graph, e.engine, e.commandHandler), e.loadEditor = (n) => {
5772
+ e.engine = new Wh(e.editor), Gh(e.editor.graph, e.engine, e.commandHandler), e.loadEditor = (n) => {
5753
5773
  e.engine?.pause(), e.displayedGraph.clear(), e.editor.load(n), e.commandHandler.executeCommand(Ue.CLEAR_CLIPBOARD_COMMAND), e.commandHandler.executeCommand(Ue.CLEAR_HISTORY_COMMAND), e.engine?.resume(), e.engine?.runOnce({});
5754
5774
  }, e.newGraph = () => {
5755
5775
  e.engine?.pause(), e.displayedGraph.clear(), e.commandHandler.executeCommand(Ue.CLEAR_CLIPBOARD_COMMAND), e.commandHandler.executeCommand(Ue.CLEAR_HISTORY_COMMAND), e.displayedGraph.id = Ze(), e.engine?.resume(), e.engine?.runOnce({});
@@ -5776,7 +5796,7 @@ function Gh(e) {
5776
5796
  e.displayedGraph.events.addConnection.unsubscribe(t), e.displayedGraph.events.removeConnection.unsubscribe(t), e.engine?.events.beforeRun.unsubscribe(t), e.engine?.events.afterRun.unsubscribe(t);
5777
5797
  };
5778
5798
  }
5779
- class jh extends Ua {
5799
+ class zh extends Ua {
5780
5800
  code;
5781
5801
  graph;
5782
5802
  constructor(t) {
@@ -5797,7 +5817,7 @@ class jh extends Ua {
5797
5817
  addGraphTemplate(t) {
5798
5818
  if (this.events.beforeAddGraphTemplate.emit(t).prevented) return;
5799
5819
  this._graphTemplates.push(t), this.graphTemplateEvents.addTarget(t.events), this.graphTemplateHooks.addTarget(t.hooks);
5800
- const n = Il(t);
5820
+ const n = Dl(t);
5801
5821
  this.registerNodeType(n, { category: "Subgraphs", title: t.name }), this.events.addGraphTemplate.emit(t);
5802
5822
  }
5803
5823
  /**
@@ -5843,16 +5863,16 @@ class jh extends Ua {
5843
5863
  this.code.state.modules[t] = n;
5844
5864
  }
5845
5865
  }
5846
- function vf(e) {
5847
- const t = te(e?.code ?? new $n()), n = te(e?.existingEditor ?? new jh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = te(null), a = fa(r), { switchGraph: o } = Ph(n, r), i = F(() => a.value && a.value !== n.value.graph), l = Pe(Ma());
5866
+ function _f(e) {
5867
+ const t = te(e?.code ?? new $n()), n = te(e?.existingEditor ?? new zh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = te(null), a = fa(r), { switchGraph: o } = $h(n, r), i = F(() => a.value && a.value !== n.value.graph), l = Pe(Ma());
5848
5868
  l.nodes.defaultWidth = Ln;
5849
- const u = Sa(), d = xa(a, u), _ = Oa(a, n, u), p = {
5869
+ const u = Sa(), d = xa(a, u), y = Ca(a, n, u), p = {
5850
5870
  /** Called whenever a node is rendered */
5851
5871
  renderNode: new ds(null),
5852
5872
  /** Called whenever an interface is rendered */
5853
5873
  renderInterface: new ds(null)
5854
5874
  }, I = Pe({
5855
- clipboard: _,
5875
+ clipboard: y,
5856
5876
  code: t,
5857
5877
  commandHandler: u,
5858
5878
  displayedGraph: a,
@@ -5866,12 +5886,13 @@ function vf(e) {
5866
5886
  onMounted: () => {
5867
5887
  },
5868
5888
  settings: l,
5889
+ showNodeId: !1,
5869
5890
  switchGraph: o
5870
5891
  });
5871
- return t.value.registerViewModel(I), Gh(I), Ca(a, u), Cl(a, u, o), Na(a, u), Ta(a, u, o), Ia(a, u), Da(a, u, l), Hh(a, u, l), Fh(l), ks(
5892
+ return t.value.registerViewModel(I), jh(I), Oa(a, u), Nl(a, u, o), Na(a, u), Ta(a, u, o), Ia(a, u), Da(a, u, l), Fh(a, u, l), Vh(l), ks(
5872
5893
  n,
5873
- (b, O) => {
5874
- O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), b.nodeHooks.beforeLoad.unsubscribe(s), b.nodeHooks.afterSave.unsubscribe(s), b.graphTemplateHooks.beforeLoad.unsubscribe(s), b.graphTemplateHooks.afterSave.unsubscribe(s), b.graph.hooks.load.unsubscribe(s), b.graph.hooks.save.unsubscribe(s)), b && (b.nodeHooks.beforeLoad.subscribe(s, (f, w) => (w.position = f.position ?? { x: 0, y: 0 }, w.state && (w.state.integrated = f.integrated, f.props && (w.state.props = f.props), f.variableName && (w.state.variableName = f.variableName)), f)), b.nodeHooks.afterSave.subscribe(s, (f, w) => (f.position = w.position, w.state && (f.integrated = w.state.integrated, w.state.props && (f.props = w.state.props), w.state.variableName && (f.variableName = w.state.variableName)), f)), b.graphTemplateHooks.beforeLoad.subscribe(s, (f, w) => (w.panning = f.panning, w.scaling = f.scaling, f)), b.graphTemplateHooks.afterSave.subscribe(s, (f, w) => (f.panning = w.panning, f.scaling = w.scaling, f)), b.graph.hooks.load.subscribe(s, (f, w) => (w.panning = f.panning, w.scaling = f.scaling, f)), b.graph.hooks.save.subscribe(s, (f, w) => (f.panning = w.panning, f.scaling = w.scaling, f)), b.graphEvents.beforeAddNode.subscribe(
5894
+ (b, C) => {
5895
+ C && (C.events.registerGraph.unsubscribe(s), C.graphEvents.beforeAddNode.unsubscribe(s), b.nodeHooks.beforeLoad.unsubscribe(s), b.nodeHooks.afterSave.unsubscribe(s), b.graphTemplateHooks.beforeLoad.unsubscribe(s), b.graphTemplateHooks.afterSave.unsubscribe(s), b.graph.hooks.load.unsubscribe(s), b.graph.hooks.save.unsubscribe(s)), b && (b.nodeHooks.beforeLoad.subscribe(s, (f, w) => (w.position = f.position ?? { x: 0, y: 0 }, w.state && (w.state.integrated = f.integrated, f.props && (w.state.props = f.props), f.variableName && (w.state.variableName = f.variableName)), f)), b.nodeHooks.afterSave.subscribe(s, (f, w) => (f.position = w.position, w.state && (f.integrated = w.state.integrated, w.state.props && (f.props = w.state.props), w.state.variableName && (f.variableName = w.state.variableName)), f)), b.graphTemplateHooks.beforeLoad.subscribe(s, (f, w) => (w.panning = f.panning, w.scaling = f.scaling, f)), b.graphTemplateHooks.afterSave.subscribe(s, (f, w) => (f.panning = w.panning, f.scaling = w.scaling, f)), b.graph.hooks.load.subscribe(s, (f, w) => (w.panning = f.panning, w.scaling = f.scaling, f)), b.graph.hooks.save.subscribe(s, (f, w) => (f.panning = w.panning, f.scaling = w.scaling, f)), b.graphEvents.beforeAddNode.subscribe(
5875
5896
  s,
5876
5897
  (f) => Ya(f, { defaultWidth: l.nodes.defaultWidth })
5877
5898
  ), n.value.registerNodeType(ur, { category: "Subgraphs" }), n.value.registerNodeType(dr, { category: "Subgraphs" }), o(b.graph));
@@ -5883,9 +5904,9 @@ export {
5883
5904
  rr as AbstractCodeNode,
5884
5905
  na as CLEAR_ALL_COMMAND,
5885
5906
  Ol as CREATE_SUBGRAPH_COMMAND,
5886
- gl as CheckboxInterface,
5907
+ bl as CheckboxInterface,
5887
5908
  $n as Code,
5888
- Uh as CodeEngine,
5909
+ Wh as CodeEngine,
5889
5910
  Mt as CodeGraph,
5890
5911
  ir as CodeGraphInputNode,
5891
5912
  lr as CodeGraphOutputNode,
@@ -5893,57 +5914,57 @@ export {
5893
5914
  Pn as CodeNode,
5894
5915
  kt as CodeNodeInputInterface,
5895
5916
  le as CodeNodeInterface,
5896
- bl as CodeNodeOutputInterface,
5917
+ wl as CodeNodeOutputInterface,
5897
5918
  sa as DOWNLOAD_EDITOR_STATE_COMMAND,
5898
- xl as DynamicCodeNode,
5919
+ Cl as DynamicCodeNode,
5899
5920
  hs as GRAPH_INPUT_NODE_TYPE,
5900
5921
  fs as GRAPH_OUTPUT_NODE_TYPE,
5901
5922
  nr as IntegerInterface,
5902
- cf as JavascriptCode,
5903
- wl as ListInputInterface,
5923
+ hf as JavascriptCode,
5924
+ kl as ListInputInterface,
5904
5925
  Ln as NODE_DEFAULT_WITH,
5905
5926
  sr as NumberInterface,
5906
- df as PythonCode,
5907
- Wh as RUN_ENGINE_COMMAND,
5908
- kl as SelectInterface,
5909
- Ml as SliderInterface,
5927
+ cf as PythonCode,
5928
+ Hh as RUN_ENGINE_COMMAND,
5929
+ Ml as SelectInterface,
5930
+ Sl as SliderInterface,
5910
5931
  ur as SubgraphInputNode,
5911
5932
  dr as SubgraphOutputNode,
5912
5933
  ra as TOGGLE_MINIMAP_COMMAND,
5913
5934
  aa as TOGGLE_PALETTE_COMMAND,
5914
5935
  Bt as TextInputInterface,
5915
- of as TextareaInputInterface,
5916
- Sl as TupleInputInterface,
5936
+ lf as TextareaInputInterface,
5937
+ xl as TupleInputInterface,
5917
5938
  oa as UPLOAD_EDITOR_STATE_COMMAND,
5918
5939
  zt as addCodeInterfaces,
5919
- af as addDefaultInterfaceTypes,
5920
- mf as allowMultipleConnections,
5940
+ of as addDefaultInterfaceTypes,
5941
+ vf as allowMultipleConnections,
5921
5942
  Xs as booleanType,
5922
- rf as components,
5923
- Il as createCodeGraphNodeType,
5924
- vl as createInterface,
5925
- lf as defineCodeNode,
5926
- uf as defineDynamicCodeNode,
5927
- yl as dictType,
5928
- Yh as download,
5929
- Ai as filterObject,
5930
- _l as formatInputs,
5943
+ af as components,
5944
+ Dl as createCodeGraphNodeType,
5945
+ _l as createInterface,
5946
+ uf as defineCodeNode,
5947
+ df as defineDynamicCodeNode,
5948
+ gl as dictType,
5949
+ Eh as download,
5950
+ Ui as filterObject,
5951
+ yl as formatInputs,
5931
5952
  ar as getCodeNodes,
5932
- hf as getPositionAtColumn,
5933
- ff as getPositionBeforeNode,
5934
- sf as icons,
5953
+ ff as getPositionAtColumn,
5954
+ pf as getPositionBeforeNode,
5955
+ rf as icons,
5935
5956
  Js as listType,
5936
- Ui as mapValues,
5957
+ Wi as mapValues,
5937
5958
  yn as nodeType,
5938
5959
  Qs as numberType,
5939
- Gh as registerCodeEngine,
5940
- Cl as registerCreateSubgraphCommand,
5941
- Hh as registerCustomCommands,
5942
- Vh as registerRunEngineCommands,
5960
+ jh as registerCodeEngine,
5961
+ Nl as registerCreateSubgraphCommand,
5962
+ Fh as registerCustomCommands,
5963
+ Gh as registerRunEngineCommands,
5943
5964
  er as stringType,
5944
5965
  tr as tupleType,
5945
- Fh as updateToolbarItems,
5946
- Eh as upload,
5947
- vf as useCodeGraph,
5948
- Ph as useSwitchCodeGraph
5966
+ Vh as updateToolbarItems,
5967
+ Rh as upload,
5968
+ _f as useCodeGraph,
5969
+ $h as useSwitchCodeGraph
5949
5970
  };