@babsey/code-graph 0.8.3 → 0.8.5

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 { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as oe, createVNode as X, unref as H, mergeModels as rs, useModel as na, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as ys, watch as gs, createBlock as ue, withCtx as Ye, normalizeProps as sa, guardReactiveProps as ra, renderSlot as Me, mergeProps as aa, toDisplayString as te, computed as z, onUpdated as bs, normalizeStyle as On, normalizeClass as je, withModifiers as st, withDirectives as Vt, Fragment as ae, createTextVNode as ws, withKeys as hn, vModelText as jt, renderList as Ke, nextTick as ks, resolveDynamicComponent as as, inject as oa, Transition as ia, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
2
- import { BaklavaEditor as ua, Components as fn, useViewModel as kt, useGraph as Cn, useTemporaryConnection as da, useTransform as ca, useNodeCategories as ha, displayInSidebar as Ms, CheckboxInterfaceComponent as fa, IntegerInterfaceComponent as pa, TextInputInterfaceComponent as Ss, NumberInterfaceComponent as ma, SelectInterfaceComponent as va, SliderInterfaceComponent as _a, TextareaInputInterfaceComponent as ya, Commands as He, DEFAULT_TOOLBAR_COMMANDS as ga, TextInputInterface as xs, DEFAULT_SETTINGS as ba, useCommandHandler as wa, useHistory as ka, useClipboard as Ma, registerDeleteNodesCommand as Sa, registerSaveSubgraphCommand as xa, registerSwitchToMainGraphCommand as Oa, registerSidebarCommands as Ca, registerZoomToFitCommands as Ta, setViewNodeProperties as Na } from "@baklavajs/renderer-vue";
1
+ import { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as ie, createVNode as X, unref as H, mergeModels as rs, useModel as na, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as ys, watch as gs, createBlock as ue, withCtx as Ye, normalizeProps as sa, guardReactiveProps as ra, renderSlot as Me, mergeProps as aa, toDisplayString as te, computed as z, onUpdated as bs, normalizeStyle as On, normalizeClass as je, withModifiers as st, withDirectives as Vt, Fragment as ae, createTextVNode as ws, withKeys as hn, vModelText as jt, renderList as Ke, nextTick as ks, resolveDynamicComponent as as, inject as ia, Transition as oa, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
2
+ import { BaklavaEditor as ua, Components as fn, useViewModel as kt, useGraph as Cn, useTemporaryConnection as da, useTransform as ca, useNodeCategories as ha, displayInSidebar as Ms, CheckboxInterfaceComponent as fa, IntegerInterfaceComponent as pa, TextInputInterfaceComponent as Ss, NumberInterfaceComponent as ma, SelectInterfaceComponent as va, SliderInterfaceComponent as _a, TextareaInputInterfaceComponent as ya, Commands as He, DEFAULT_TOOLBAR_COMMANDS as ga, TextInputInterface as xs, DEFAULT_SETTINGS as ba, useCommandHandler as wa, useHistory as ka, useClipboard as Ma, registerDeleteNodesCommand as Sa, registerSaveSubgraphCommand as xa, registerSwitchToMainGraphCommand as Oa, registerSidebarCommands as Ca, registerZoomToFitCommands as Na, setViewNodeProperties as Ta } from "@baklavajs/renderer-vue";
3
3
  import { GRAPH_NODE_TYPE_PREFIX as Da, AbstractNode as Ia, NodeInterface as Se, Graph as Ya, getGraphNodeTypeString as Os, GraphTemplate as Ea, GRAPH_INPUT_NODE_TYPE as Ra, GRAPH_OUTPUT_NODE_TYPE as Pa, Editor as La } from "@baklavajs/core";
4
4
  import { usePointer as Aa } from "@vueuse/core";
5
5
  import ut from "mustache";
@@ -7,7 +7,7 @@ import { v4 as Xe } from "uuid";
7
7
  import { NodeInterfaceType as Je, BaklavaInterfaceTypes as Ua, setType as ne } from "@baklavajs/interface-types";
8
8
  import { allowMultipleConnections as lt, BaseEngine as $a, sortTopologically as Wa, applyResult as Cs } from "@baklavajs/engine";
9
9
  import Ha from "toposort";
10
- import { SequentialHook as os } from "@baklavajs/events";
10
+ import { SequentialHook as is } from "@baklavajs/events";
11
11
  const q = (e, t) => {
12
12
  const n = e.__vccOpts || e;
13
13
  for (const [s, r] of t)
@@ -35,7 +35,7 @@ function Va(e, t) {
35
35
  f("path", { d: "M5 12l5 5l10 -10" }, null, -1)
36
36
  ])]);
37
37
  }
38
- const Ts = /* @__PURE__ */ q(Fa, [["render", Va]]), ja = {}, za = {
38
+ const Ns = /* @__PURE__ */ q(Fa, [["render", Va]]), ja = {}, za = {
39
39
  xmlns: "http://www.w3.org/2000/svg",
40
40
  width: "24",
41
41
  height: "24",
@@ -57,7 +57,7 @@ function Ba(e, t) {
57
57
  f("path", { d: "M4 8m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1)
58
58
  ])]);
59
59
  }
60
- const Ns = /* @__PURE__ */ q(ja, [["render", Ba]]), Za = {}, qa = {
60
+ const Ts = /* @__PURE__ */ q(ja, [["render", Ba]]), Za = {}, qa = {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  width: "24",
63
63
  height: "24",
@@ -104,7 +104,7 @@ function Qa(e, t) {
104
104
  f("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
105
105
  ])]);
106
106
  }
107
- const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), eo = {}, to = {
107
+ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), ei = {}, ti = {
108
108
  xmlns: "http://www.w3.org/2000/svg",
109
109
  width: "24",
110
110
  height: "24",
@@ -116,8 +116,8 @@ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), eo = {}, to = {
116
116
  "stroke-linejoin": "round",
117
117
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-download"
118
118
  };
119
- function no(e, t) {
120
- return m(), k("svg", to, [...t[0] || (t[0] = [
119
+ function ni(e, t) {
120
+ return m(), k("svg", ti, [...t[0] || (t[0] = [
121
121
  f("path", {
122
122
  stroke: "none",
123
123
  d: "M0 0h24v24H0z",
@@ -128,7 +128,7 @@ function no(e, t) {
128
128
  f("path", { d: "M12 4l0 12" }, null, -1)
129
129
  ])]);
130
130
  }
131
- const Ys = /* @__PURE__ */ q(eo, [["render", no]]), so = {}, ro = {
131
+ const Ys = /* @__PURE__ */ q(ei, [["render", ni]]), si = {}, ri = {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  width: "24",
134
134
  height: "24",
@@ -136,8 +136,8 @@ const Ys = /* @__PURE__ */ q(eo, [["render", no]]), so = {}, ro = {
136
136
  fill: "currentColor",
137
137
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
138
138
  };
139
- function ao(e, t) {
140
- return m(), k("svg", ro, [...t[0] || (t[0] = [
139
+ function ai(e, t) {
140
+ return m(), k("svg", ri, [...t[0] || (t[0] = [
141
141
  f("path", {
142
142
  stroke: "none",
143
143
  d: "M0 0h24v24H0z",
@@ -146,7 +146,7 @@ function ao(e, t) {
146
146
  f("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 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.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)
147
147
  ])]);
148
148
  }
149
- const oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
149
+ const ii = /* @__PURE__ */ q(si, [["render", ai]]), oi = {}, li = {
150
150
  xmlns: "http://www.w3.org/2000/svg",
151
151
  width: "24",
152
152
  height: "24",
@@ -154,8 +154,8 @@ const oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
154
154
  fill: "currentColor",
155
155
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
156
156
  };
157
- function uo(e, t) {
158
- return m(), k("svg", lo, [...t[0] || (t[0] = [
157
+ function ui(e, t) {
158
+ return m(), k("svg", li, [...t[0] || (t[0] = [
159
159
  f("path", {
160
160
  stroke: "none",
161
161
  d: "M0 0h24v24H0z",
@@ -164,7 +164,7 @@ function uo(e, t) {
164
164
  f("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 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.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)
165
165
  ])]);
166
166
  }
167
- const co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
167
+ const di = /* @__PURE__ */ q(oi, [["render", ui]]), ci = {}, hi = {
168
168
  xmlns: "http://www.w3.org/2000/svg",
169
169
  width: "24",
170
170
  height: "24",
@@ -172,8 +172,8 @@ const co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
172
172
  fill: "currentColor",
173
173
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
174
174
  };
175
- function po(e, t) {
176
- return m(), k("svg", fo, [...t[0] || (t[0] = [
175
+ function fi(e, t) {
176
+ return m(), k("svg", hi, [...t[0] || (t[0] = [
177
177
  f("path", {
178
178
  stroke: "none",
179
179
  d: "M0 0h24v24H0z",
@@ -182,7 +182,7 @@ function po(e, t) {
182
182
  f("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
183
183
  ])]);
184
184
  }
185
- const mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
185
+ const pi = /* @__PURE__ */ q(ci, [["render", fi]]), mi = {}, vi = {
186
186
  xmlns: "http://www.w3.org/2000/svg",
187
187
  width: "24",
188
188
  height: "24",
@@ -190,8 +190,8 @@ const mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
190
190
  fill: "currentColor",
191
191
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
192
192
  };
193
- function yo(e, t) {
194
- return m(), k("svg", _o, [...t[0] || (t[0] = [
193
+ function _i(e, t) {
194
+ return m(), k("svg", vi, [...t[0] || (t[0] = [
195
195
  f("path", {
196
196
  stroke: "none",
197
197
  d: "M0 0h24v24H0z",
@@ -200,7 +200,7 @@ function yo(e, t) {
200
200
  f("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)
201
201
  ])]);
202
202
  }
203
- const Es = /* @__PURE__ */ q(vo, [["render", yo]]), go = {}, bo = {
203
+ const Es = /* @__PURE__ */ q(mi, [["render", _i]]), yi = {}, gi = {
204
204
  xmlns: "http://www.w3.org/2000/svg",
205
205
  width: "24",
206
206
  height: "24",
@@ -208,8 +208,8 @@ const Es = /* @__PURE__ */ q(vo, [["render", yo]]), go = {}, bo = {
208
208
  fill: "currentColor",
209
209
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
210
210
  };
211
- function wo(e, t) {
212
- return m(), k("svg", bo, [...t[0] || (t[0] = [
211
+ function bi(e, t) {
212
+ return m(), k("svg", gi, [...t[0] || (t[0] = [
213
213
  f("path", {
214
214
  stroke: "none",
215
215
  d: "M0 0h24v24H0z",
@@ -218,7 +218,7 @@ function wo(e, t) {
218
218
  f("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)
219
219
  ])]);
220
220
  }
221
- const Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
221
+ const Nn = /* @__PURE__ */ q(yi, [["render", bi]]), wi = {}, ki = {
222
222
  xmlns: "http://www.w3.org/2000/svg",
223
223
  width: "24",
224
224
  height: "24",
@@ -230,12 +230,12 @@ const Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
230
230
  "stroke-linejoin": "round",
231
231
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
232
232
  };
233
- function So(e, t) {
234
- return m(), k("svg", Mo, [...t[0] || (t[0] = [
233
+ function Mi(e, t) {
234
+ return m(), k("svg", ki, [...t[0] || (t[0] = [
235
235
  Gt('<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)
236
236
  ])]);
237
237
  }
238
- const Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
238
+ const Tn = /* @__PURE__ */ q(wi, [["render", Mi]]), Si = {}, xi = {
239
239
  xmlns: "http://www.w3.org/2000/svg",
240
240
  width: "24",
241
241
  height: "24",
@@ -247,8 +247,8 @@ const Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
247
247
  "stroke-linejoin": "round",
248
248
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-player-play"
249
249
  };
250
- function Co(e, t) {
251
- return m(), k("svg", Oo, [...t[0] || (t[0] = [
250
+ function Oi(e, t) {
251
+ return m(), k("svg", xi, [...t[0] || (t[0] = [
252
252
  f("path", {
253
253
  stroke: "none",
254
254
  d: "M0 0h24v24H0z",
@@ -257,7 +257,7 @@ function Co(e, t) {
257
257
  f("path", { d: "M7 4v16l13 -8z" }, null, -1)
258
258
  ])]);
259
259
  }
260
- const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
260
+ const Ci = /* @__PURE__ */ q(Si, [["render", Oi]]), Ni = {}, Ti = {
261
261
  xmlns: "http://www.w3.org/2000/svg",
262
262
  width: "24",
263
263
  height: "24",
@@ -269,8 +269,8 @@ const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
269
269
  "stroke-linejoin": "round",
270
270
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-plus"
271
271
  };
272
- function Io(e, t) {
273
- return m(), k("svg", Do, [...t[0] || (t[0] = [
272
+ function Di(e, t) {
273
+ return m(), k("svg", Ti, [...t[0] || (t[0] = [
274
274
  f("path", {
275
275
  stroke: "none",
276
276
  d: "M0 0h24v24H0z",
@@ -280,7 +280,7 @@ function Io(e, t) {
280
280
  f("path", { d: "M5 12l14 0" }, null, -1)
281
281
  ])]);
282
282
  }
283
- const Rs = /* @__PURE__ */ q(No, [["render", Io]]), Yo = {}, Eo = {
283
+ const Rs = /* @__PURE__ */ q(Ni, [["render", Di]]), Ii = {}, Yi = {
284
284
  xmlns: "http://www.w3.org/2000/svg",
285
285
  width: "24",
286
286
  height: "24",
@@ -292,8 +292,8 @@ const Rs = /* @__PURE__ */ q(No, [["render", Io]]), Yo = {}, Eo = {
292
292
  "stroke-linejoin": "round",
293
293
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-restore"
294
294
  };
295
- function Ro(e, t) {
296
- return m(), k("svg", Eo, [...t[0] || (t[0] = [
295
+ function Ei(e, t) {
296
+ return m(), k("svg", Yi, [...t[0] || (t[0] = [
297
297
  f("path", {
298
298
  stroke: "none",
299
299
  d: "M0 0h24v24H0z",
@@ -304,7 +304,7 @@ function Ro(e, t) {
304
304
  f("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
305
305
  ])]);
306
306
  }
307
- const Ps = /* @__PURE__ */ q(Yo, [["render", Ro]]), Po = {}, Lo = {
307
+ const Ps = /* @__PURE__ */ q(Ii, [["render", Ei]]), Ri = {}, Pi = {
308
308
  xmlns: "http://www.w3.org/2000/svg",
309
309
  width: "24",
310
310
  height: "24",
@@ -316,12 +316,12 @@ const Ps = /* @__PURE__ */ q(Yo, [["render", Ro]]), Po = {}, Lo = {
316
316
  "stroke-linejoin": "round",
317
317
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
318
318
  };
319
- function Ao(e, t) {
320
- return m(), k("svg", Lo, [...t[0] || (t[0] = [
319
+ function Li(e, t) {
320
+ return m(), k("svg", Pi, [...t[0] || (t[0] = [
321
321
  Gt('<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)
322
322
  ])]);
323
323
  }
324
- const Ls = /* @__PURE__ */ q(Po, [["render", Ao]]), Uo = {}, $o = {
324
+ const Ls = /* @__PURE__ */ q(Ri, [["render", Li]]), Ai = {}, Ui = {
325
325
  xmlns: "http://www.w3.org/2000/svg",
326
326
  width: "24",
327
327
  height: "24",
@@ -333,12 +333,12 @@ const Ls = /* @__PURE__ */ q(Po, [["render", Ao]]), Uo = {}, $o = {
333
333
  "stroke-linejoin": "round",
334
334
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
335
335
  };
336
- function Wo(e, t) {
337
- return m(), k("svg", $o, [...t[0] || (t[0] = [
336
+ function $i(e, t) {
337
+ return m(), k("svg", Ui, [...t[0] || (t[0] = [
338
338
  Gt('<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)
339
339
  ])]);
340
340
  }
341
- const As = /* @__PURE__ */ q(Uo, [["render", Wo]]), Ho = {}, Fo = {
341
+ const As = /* @__PURE__ */ q(Ai, [["render", $i]]), Wi = {}, Hi = {
342
342
  xmlns: "http://www.w3.org/2000/svg",
343
343
  width: "24",
344
344
  height: "24",
@@ -350,12 +350,12 @@ const As = /* @__PURE__ */ q(Uo, [["render", Wo]]), Ho = {}, Fo = {
350
350
  "stroke-linejoin": "round",
351
351
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
352
352
  };
353
- function Go(e, t) {
354
- return m(), k("svg", Fo, [...t[0] || (t[0] = [
353
+ function Fi(e, t) {
354
+ return m(), k("svg", Hi, [...t[0] || (t[0] = [
355
355
  Gt('<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)
356
356
  ])]);
357
357
  }
358
- const Us = /* @__PURE__ */ q(Ho, [["render", Go]]), Vo = {}, jo = {
358
+ const Us = /* @__PURE__ */ q(Wi, [["render", Fi]]), Gi = {}, Vi = {
359
359
  xmlns: "http://www.w3.org/2000/svg",
360
360
  width: "24",
361
361
  height: "24",
@@ -367,8 +367,8 @@ const Us = /* @__PURE__ */ q(Ho, [["render", Go]]), Vo = {}, jo = {
367
367
  "stroke-linejoin": "round",
368
368
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-upload"
369
369
  };
370
- function zo(e, t) {
371
- return m(), k("svg", jo, [...t[0] || (t[0] = [
370
+ function ji(e, t) {
371
+ return m(), k("svg", Vi, [...t[0] || (t[0] = [
372
372
  f("path", {
373
373
  stroke: "none",
374
374
  d: "M0 0h24v24H0z",
@@ -379,7 +379,7 @@ function zo(e, t) {
379
379
  f("path", { d: "M12 4l0 12" }, null, -1)
380
380
  ])]);
381
381
  }
382
- const $s = /* @__PURE__ */ q(Vo, [["render", zo]]), Bo = {}, Zo = {
382
+ const $s = /* @__PURE__ */ q(Gi, [["render", ji]]), zi = {}, Bi = {
383
383
  xmlns: "http://www.w3.org/2000/svg",
384
384
  width: "24",
385
385
  height: "24",
@@ -391,8 +391,8 @@ const $s = /* @__PURE__ */ q(Vo, [["render", zo]]), Bo = {}, Zo = {
391
391
  "stroke-linejoin": "round",
392
392
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-x"
393
393
  };
394
- function qo(e, t) {
395
- return m(), k("svg", Zo, [...t[0] || (t[0] = [
394
+ function Zi(e, t) {
395
+ return m(), k("svg", Bi, [...t[0] || (t[0] = [
396
396
  f("path", {
397
397
  stroke: "none",
398
398
  d: "M0 0h24v24H0z",
@@ -402,20 +402,20 @@ function qo(e, t) {
402
402
  f("path", { d: "M6 6l12 12" }, null, -1)
403
403
  ])]);
404
404
  }
405
- const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
405
+ const Ws = /* @__PURE__ */ q(zi, [["render", Zi]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
406
  __proto__: null,
407
- Check: Ts,
408
- CodeVariable: Ns,
407
+ Check: Ns,
408
+ CodeVariable: Ts,
409
409
  Copy: Ds,
410
410
  DotsVertical: Is,
411
411
  Download: Ys,
412
- LayoutSidebarLeftCollapse: oo,
413
- LayoutSidebarLeftExpand: co,
414
- LayoutSidebarRight: mo,
412
+ LayoutSidebarLeftCollapse: ii,
413
+ LayoutSidebarLeftExpand: di,
414
+ LayoutSidebarRight: pi,
415
415
  LayoutSidebarRightCollapse: Es,
416
- LayoutSidebarRightExpand: Tn,
417
- LockCode: Nn,
418
- PlayerPlay: To,
416
+ LayoutSidebarRightExpand: Nn,
417
+ LockCode: Tn,
418
+ PlayerPlay: Ci,
419
419
  Plus: Rs,
420
420
  Restore: Ps,
421
421
  Schema: Ls,
@@ -424,16 +424,16 @@ const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.
424
424
  Upload: $s,
425
425
  X: Ws
426
426
  }, Symbol.toStringTag, { value: "Module" }));
427
- function Ko(e) {
427
+ function qi(e) {
428
428
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
429
429
  }
430
430
  var Rt = { exports: {} };
431
- var Xo = Rt.exports, is;
432
- function Jo() {
433
- return is || (is = 1, (function(e, t) {
431
+ var Ki = Rt.exports, os;
432
+ function Xi() {
433
+ return os || (os = 1, (function(e, t) {
434
434
  (function(s, r) {
435
435
  e.exports = r();
436
- })(Xo, function() {
436
+ })(Ki, function() {
437
437
  return (
438
438
  /******/
439
439
  (function() {
@@ -441,8 +441,8 @@ function Jo() {
441
441
  /***/
442
442
  686: (
443
443
  /***/
444
- (function(a, o, i) {
445
- i.d(o, {
444
+ (function(a, i, o) {
445
+ o.d(i, {
446
446
  default: function() {
447
447
  return (
448
448
  /* binding */
@@ -450,7 +450,7 @@ function Jo() {
450
450
  );
451
451
  }
452
452
  });
453
- var l = i(279), u = /* @__PURE__ */ i.n(l), h = i(370), w = /* @__PURE__ */ i.n(h), p = i(817), I = /* @__PURE__ */ i.n(p);
453
+ var l = o(279), u = /* @__PURE__ */ o.n(l), h = o(370), w = /* @__PURE__ */ o.n(h), p = o(817), I = /* @__PURE__ */ o.n(p);
454
454
  function y(b) {
455
455
  try {
456
456
  return document.execCommand(b);
@@ -465,37 +465,37 @@ function Jo() {
465
465
  function g(b) {
466
466
  var S = document.documentElement.getAttribute("dir") === "rtl", M = document.createElement("textarea");
467
467
  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";
468
- var T = window.pageYOffset || document.documentElement.scrollTop;
469
- return M.style.top = "".concat(T, "px"), M.setAttribute("readonly", ""), M.value = b, M;
468
+ var N = window.pageYOffset || document.documentElement.scrollTop;
469
+ return M.style.top = "".concat(N, "px"), M.setAttribute("readonly", ""), M.value = b, M;
470
470
  }
471
471
  var $ = function(S, M) {
472
- var T = g(S);
473
- M.container.appendChild(T);
474
- var D = I()(T);
475
- return y("copy"), T.remove(), D;
472
+ var N = g(S);
473
+ M.container.appendChild(N);
474
+ var D = I()(N);
475
+ return y("copy"), N.remove(), D;
476
476
  }, A = function(S) {
477
477
  var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
478
478
  container: document.body
479
- }, T = "";
480
- return typeof S == "string" ? T = $(S, M) : S instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(S?.type) ? T = $(S.value, M) : (T = I()(S), y("copy")), T;
479
+ }, N = "";
480
+ return typeof S == "string" ? N = $(S, M) : S instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(S?.type) ? N = $(S.value, M) : (N = I()(S), y("copy")), N;
481
481
  }, F = A;
482
- function Te(b) {
482
+ function Ne(b) {
483
483
  "@babel/helpers - typeof";
484
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(M) {
484
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ne = function(M) {
485
485
  return typeof M;
486
- } : Te = function(M) {
486
+ } : Ne = function(M) {
487
487
  return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M;
488
- }, Te(b);
488
+ }, Ne(b);
489
489
  }
490
- var Ne = function() {
491
- var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = S.action, T = M === void 0 ? "copy" : M, D = S.container, R = S.target, me = S.text;
492
- if (T !== "copy" && T !== "cut")
490
+ var Te = function() {
491
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = S.action, N = M === void 0 ? "copy" : M, D = S.container, R = S.target, me = S.text;
492
+ if (N !== "copy" && N !== "cut")
493
493
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
494
494
  if (R !== void 0)
495
- if (R && Te(R) === "object" && R.nodeType === 1) {
496
- if (T === "copy" && R.hasAttribute("disabled"))
495
+ if (R && Ne(R) === "object" && R.nodeType === 1) {
496
+ if (N === "copy" && R.hasAttribute("disabled"))
497
497
  throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
498
- if (T === "cut" && (R.hasAttribute("readonly") || R.hasAttribute("disabled")))
498
+ if (N === "cut" && (R.hasAttribute("readonly") || R.hasAttribute("disabled")))
499
499
  throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
500
500
  } else
501
501
  throw new Error('Invalid "target" value, use a valid Element');
@@ -504,10 +504,10 @@ function Jo() {
504
504
  container: D
505
505
  });
506
506
  if (R)
507
- return T === "cut" ? c(R) : F(R, {
507
+ return N === "cut" ? c(R) : F(R, {
508
508
  container: D
509
509
  });
510
- }, ft = Ne;
510
+ }, ft = Te;
511
511
  function we(b) {
512
512
  "@babel/helpers - typeof";
513
513
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? we = function(M) {
@@ -522,8 +522,8 @@ function Jo() {
522
522
  }
523
523
  function Q(b, S) {
524
524
  for (var M = 0; M < S.length; M++) {
525
- var T = S[M];
526
- T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(b, T.key, T);
525
+ var N = S[M];
526
+ N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(b, N.key, N);
527
527
  }
528
528
  }
529
529
  function se(b, S, M) {
@@ -535,23 +535,23 @@ function Jo() {
535
535
  b.prototype = Object.create(S && S.prototype, { constructor: { value: b, writable: !0, configurable: !0 } }), S && pt(b, S);
536
536
  }
537
537
  function pt(b, S) {
538
- return pt = Object.setPrototypeOf || function(T, D) {
539
- return T.__proto__ = D, T;
538
+ return pt = Object.setPrototypeOf || function(N, D) {
539
+ return N.__proto__ = D, N;
540
540
  }, pt(b, S);
541
541
  }
542
- function Tt(b) {
542
+ function Nt(b) {
543
543
  var S = Dt();
544
544
  return function() {
545
- var T = ze(b), D;
545
+ var N = ze(b), D;
546
546
  if (S) {
547
547
  var R = ze(this).constructor;
548
- D = Reflect.construct(T, arguments, R);
548
+ D = Reflect.construct(N, arguments, R);
549
549
  } else
550
- D = T.apply(this, arguments);
551
- return Nt(this, D);
550
+ D = N.apply(this, arguments);
551
+ return Tt(this, D);
552
552
  };
553
553
  }
554
- function Nt(b, S) {
554
+ function Tt(b, S) {
555
555
  return S && (we(S) === "object" || typeof S == "function") ? S : on(b);
556
556
  }
557
557
  function on(b) {
@@ -581,10 +581,10 @@ function Jo() {
581
581
  }
582
582
  var W = /* @__PURE__ */ (function(b) {
583
583
  an(M, b);
584
- var S = Tt(M);
585
- function M(T, D) {
584
+ var S = Nt(M);
585
+ function M(N, D) {
586
586
  var R;
587
- return C(this, M), R = S.call(this), R.resolveOptions(D), R.listenClick(T), R;
587
+ return C(this, M), R = S.call(this), R.resolveOptions(D), R.listenClick(N), R;
588
588
  }
589
589
  return se(M, [{
590
590
  key: "resolveOptions",
@@ -708,13 +708,13 @@ function Jo() {
708
708
  828: (
709
709
  /***/
710
710
  (function(a) {
711
- var o = 9;
711
+ var i = 9;
712
712
  if (typeof Element < "u" && !Element.prototype.matches) {
713
- var i = Element.prototype;
714
- i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
713
+ var o = Element.prototype;
714
+ o.matches = o.matchesSelector || o.mozMatchesSelector || o.msMatchesSelector || o.oMatchesSelector || o.webkitMatchesSelector;
715
715
  }
716
716
  function l(u, h) {
717
- for (; u && u.nodeType !== o; ) {
717
+ for (; u && u.nodeType !== i; ) {
718
718
  if (typeof u.matches == "function" && u.matches(h))
719
719
  return u;
720
720
  u = u.parentNode;
@@ -726,8 +726,8 @@ function Jo() {
726
726
  /***/
727
727
  438: (
728
728
  /***/
729
- (function(a, o, i) {
730
- var l = i(828);
729
+ (function(a, i, o) {
730
+ var l = o(828);
731
731
  function u(p, I, y, O, c) {
732
732
  var g = w.apply(this, arguments);
733
733
  return p.addEventListener(y, g, c), {
@@ -752,16 +752,16 @@ function Jo() {
752
752
  /***/
753
753
  879: (
754
754
  /***/
755
- (function(a, o) {
756
- o.node = function(i) {
757
- return i !== void 0 && i instanceof HTMLElement && i.nodeType === 1;
758
- }, o.nodeList = function(i) {
759
- var l = Object.prototype.toString.call(i);
760
- return i !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in i && (i.length === 0 || o.node(i[0]));
761
- }, o.string = function(i) {
762
- return typeof i == "string" || i instanceof String;
763
- }, o.fn = function(i) {
764
- var l = Object.prototype.toString.call(i);
755
+ (function(a, i) {
756
+ i.node = function(o) {
757
+ return o !== void 0 && o instanceof HTMLElement && o.nodeType === 1;
758
+ }, i.nodeList = function(o) {
759
+ var l = Object.prototype.toString.call(o);
760
+ return o !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in o && (o.length === 0 || i.node(o[0]));
761
+ }, i.string = function(o) {
762
+ return typeof o == "string" || o instanceof String;
763
+ }, i.fn = function(o) {
764
+ var l = Object.prototype.toString.call(o);
765
765
  return l === "[object Function]";
766
766
  };
767
767
  })
@@ -769,8 +769,8 @@ function Jo() {
769
769
  /***/
770
770
  370: (
771
771
  /***/
772
- (function(a, o, i) {
773
- var l = i(879), u = i(438);
772
+ (function(a, i, o) {
773
+ var l = o(879), u = o(438);
774
774
  function h(y, O, c) {
775
775
  if (!y && !O && !c)
776
776
  throw new Error("Missing required arguments");
@@ -814,58 +814,58 @@ function Jo() {
814
814
  817: (
815
815
  /***/
816
816
  (function(a) {
817
- function o(i) {
817
+ function i(o) {
818
818
  var l;
819
- if (i.nodeName === "SELECT")
820
- i.focus(), l = i.value;
821
- else if (i.nodeName === "INPUT" || i.nodeName === "TEXTAREA") {
822
- var u = i.hasAttribute("readonly");
823
- u || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), u || i.removeAttribute("readonly"), l = i.value;
819
+ if (o.nodeName === "SELECT")
820
+ o.focus(), l = o.value;
821
+ else if (o.nodeName === "INPUT" || o.nodeName === "TEXTAREA") {
822
+ var u = o.hasAttribute("readonly");
823
+ u || o.setAttribute("readonly", ""), o.select(), o.setSelectionRange(0, o.value.length), u || o.removeAttribute("readonly"), l = o.value;
824
824
  } else {
825
- i.hasAttribute("contenteditable") && i.focus();
825
+ o.hasAttribute("contenteditable") && o.focus();
826
826
  var h = window.getSelection(), w = document.createRange();
827
- w.selectNodeContents(i), h.removeAllRanges(), h.addRange(w), l = h.toString();
827
+ w.selectNodeContents(o), h.removeAllRanges(), h.addRange(w), l = h.toString();
828
828
  }
829
829
  return l;
830
830
  }
831
- a.exports = o;
831
+ a.exports = i;
832
832
  })
833
833
  ),
834
834
  /***/
835
835
  279: (
836
836
  /***/
837
837
  (function(a) {
838
- function o() {
838
+ function i() {
839
839
  }
840
- o.prototype = {
841
- on: function(i, l, u) {
840
+ i.prototype = {
841
+ on: function(o, l, u) {
842
842
  var h = this.e || (this.e = {});
843
- return (h[i] || (h[i] = [])).push({
843
+ return (h[o] || (h[o] = [])).push({
844
844
  fn: l,
845
845
  ctx: u
846
846
  }), this;
847
847
  },
848
- once: function(i, l, u) {
848
+ once: function(o, l, u) {
849
849
  var h = this;
850
850
  function w() {
851
- h.off(i, w), l.apply(u, arguments);
851
+ h.off(o, w), l.apply(u, arguments);
852
852
  }
853
- return w._ = l, this.on(i, w, u);
853
+ return w._ = l, this.on(o, w, u);
854
854
  },
855
- emit: function(i) {
856
- var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), h = 0, w = u.length;
855
+ emit: function(o) {
856
+ var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[o] || []).slice(), h = 0, w = u.length;
857
857
  for (h; h < w; h++)
858
858
  u[h].fn.apply(u[h].ctx, l);
859
859
  return this;
860
860
  },
861
- off: function(i, l) {
862
- var u = this.e || (this.e = {}), h = u[i], w = [];
861
+ off: function(o, l) {
862
+ var u = this.e || (this.e = {}), h = u[o], w = [];
863
863
  if (h && l)
864
864
  for (var p = 0, I = h.length; p < I; p++)
865
865
  h[p].fn !== l && h[p].fn._ !== l && w.push(h[p]);
866
- return w.length ? u[i] = w : delete u[i], this;
866
+ return w.length ? u[o] = w : delete u[o], this;
867
867
  }
868
- }, a.exports = o, a.exports.TinyEmitter = o;
868
+ }, a.exports = i, a.exports.TinyEmitter = i;
869
869
  })
870
870
  )
871
871
  /******/
@@ -873,7 +873,7 @@ function Jo() {
873
873
  function r(a) {
874
874
  if (s[a])
875
875
  return s[a].exports;
876
- var o = s[a] = {
876
+ var i = s[a] = {
877
877
  /******/
878
878
  // no module.id needed
879
879
  /******/
@@ -882,11 +882,11 @@ function Jo() {
882
882
  exports: {}
883
883
  /******/
884
884
  };
885
- return n[a](o, o.exports, r), o.exports;
885
+ return n[a](i, i.exports, r), i.exports;
886
886
  }
887
887
  return (function() {
888
888
  r.n = function(a) {
889
- var o = a && a.__esModule ? (
889
+ var i = a && a.__esModule ? (
890
890
  /******/
891
891
  function() {
892
892
  return a.default;
@@ -897,16 +897,16 @@ function Jo() {
897
897
  return a;
898
898
  }
899
899
  );
900
- return r.d(o, { a: o }), o;
900
+ return r.d(i, { a: i }), i;
901
901
  };
902
902
  })(), (function() {
903
- r.d = function(a, o) {
904
- for (var i in o)
905
- r.o(o, i) && !r.o(a, i) && Object.defineProperty(a, i, { enumerable: !0, get: o[i] });
903
+ r.d = function(a, i) {
904
+ for (var o in i)
905
+ r.o(i, o) && !r.o(a, o) && Object.defineProperty(a, o, { enumerable: !0, get: i[o] });
906
906
  };
907
907
  })(), (function() {
908
- r.o = function(a, o) {
909
- return Object.prototype.hasOwnProperty.call(a, o);
908
+ r.o = function(a, i) {
909
+ return Object.prototype.hasOwnProperty.call(a, i);
910
910
  };
911
911
  })(), r(686);
912
912
  })().default
@@ -914,39 +914,39 @@ function Jo() {
914
914
  });
915
915
  })(Rt)), Rt.exports;
916
916
  }
917
- var Qo = Jo();
918
- const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
917
+ var Ji = Xi();
918
+ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
919
919
  toClipboard(t, n) {
920
920
  return new Promise((s, r) => {
921
- const a = document.createElement("button"), o = new ei(a, {
921
+ const a = document.createElement("button"), i = new Qi(a, {
922
922
  text: () => t,
923
923
  action: () => "copy",
924
924
  container: n !== void 0 ? n : document.body
925
925
  });
926
- o.on("success", (i) => {
927
- o.destroy(), s(i);
928
- }), o.on("error", (i) => {
929
- o.destroy(), r(i);
926
+ i.on("success", (o) => {
927
+ i.destroy(), s(o);
928
+ }), i.on("error", (o) => {
929
+ i.destroy(), r(o);
930
930
  }), document.body.appendChild(a), a.click(), document.body.removeChild(a);
931
931
  });
932
932
  }
933
- }), ni = {
933
+ }), to = {
934
934
  key: 0,
935
935
  class: "baklava-button"
936
936
  }, Hs = /* @__PURE__ */ ce({
937
937
  __name: "CopyToClipboard",
938
938
  props: { text: String },
939
939
  setup(e) {
940
- const { toClipboard: t } = ti(), s = Sn(e, "text"), r = oe(!1), a = async () => {
940
+ const { toClipboard: t } = eo(), s = Sn(e, "text"), r = ie(!1), a = async () => {
941
941
  try {
942
942
  await t(s.value), r.value = !0, setTimeout(() => r.value = !1, 1500), console.log("Copied to clipboard");
943
- } catch (o) {
944
- console.error(o);
943
+ } catch (i) {
944
+ console.error(i);
945
945
  }
946
946
  };
947
- return (o, i) => (m(), k("div", null, [
948
- r.value ? (m(), k("button", ni, [
949
- X(H(Ts))
947
+ return (i, o) => (m(), k("div", null, [
948
+ r.value ? (m(), k("button", to, [
949
+ X(H(Ns))
950
950
  ])) : (m(), k("button", {
951
951
  key: 1,
952
952
  onClick: a,
@@ -956,7 +956,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
956
956
  ]))
957
957
  ]));
958
958
  }
959
- }), si = { class: "code-editor" }, ri = { class: "code-buttons" }, ai = /* @__PURE__ */ ce({
959
+ }), no = { class: "code-editor" }, so = { class: "code-buttons" }, ro = /* @__PURE__ */ ce({
960
960
  __name: "CodeEditor",
961
961
  props: /* @__PURE__ */ rs({
962
962
  locked: { type: Boolean },
@@ -968,32 +968,32 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
968
968
  emits: /* @__PURE__ */ rs(["update:locked"], ["update:modelValue"]),
969
969
  setup(e, { emit: t }) {
970
970
  const n = na(e, "modelValue"), s = t, r = (a) => s("update:locked", a);
971
- return (a, o) => {
972
- const i = _s("codemirror");
973
- return m(), k("div", si, [
974
- f("div", ri, [
971
+ return (a, i) => {
972
+ const o = _s("codemirror");
973
+ return m(), k("div", no, [
974
+ f("div", so, [
975
975
  e.locked ? (m(), k("button", {
976
976
  key: 0,
977
977
  class: "baklava-button",
978
978
  title: "The code is locked.",
979
- onClick: o[0] || (o[0] = (l) => r(!1))
979
+ onClick: i[0] || (i[0] = (l) => r(!1))
980
980
  }, [
981
- X(H(Nn))
981
+ X(H(Tn))
982
982
  ])) : K("", !0),
983
983
  X(Hs, { text: e.modelValue }, null, 8, ["text"])
984
984
  ]),
985
- X(i, {
985
+ X(o, {
986
986
  modelValue: n.value,
987
- "onUpdate:modelValue": o[1] || (o[1] = (l) => n.value = l),
987
+ "onUpdate:modelValue": i[1] || (i[1] = (l) => n.value = l),
988
988
  extensions: e.extensions,
989
989
  class: "codemirror",
990
990
  style: { height: "100%" },
991
- onKeydown: o[2] || (o[2] = (l) => r(!0))
991
+ onKeydown: i[2] || (i[2] = (l) => r(!0))
992
992
  }, null, 8, ["modelValue", "extensions"])
993
993
  ]);
994
994
  };
995
995
  }
996
- }), oi = /* @__PURE__ */ ce({
996
+ }), ao = /* @__PURE__ */ ce({
997
997
  __name: "CodeGraphEditor",
998
998
  props: {
999
999
  viewModel: {}
@@ -1006,15 +1006,15 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1006
1006
  palette: Ye(() => [
1007
1007
  X(H(Vs))
1008
1008
  ]),
1009
- node: Ye((o) => [
1010
- X(H(Fs), aa(o, {
1011
- onUpdate: (i) => s(o.node)
1009
+ node: Ye((i) => [
1010
+ X(H(Fs), aa(i, {
1011
+ onUpdate: (o) => s(i.node)
1012
1012
  }), null, 16, ["onUpdate"])
1013
1013
  ]),
1014
- sidebar: Ye((o) => [
1015
- X(H(Gs), sa(ra(o)), {
1016
- codeEditor: Ye(({ node: i }) => [
1017
- Me(r.$slots, "sidebarCodeEditor", { node: i })
1014
+ sidebar: Ye((i) => [
1015
+ X(H(Gs), sa(ra(i)), {
1016
+ codeEditor: Ye(({ node: o }) => [
1017
+ Me(r.$slots, "sidebarCodeEditor", { node: o })
1018
1018
  ]),
1019
1019
  _: 3
1020
1020
  }, 16)
@@ -1022,13 +1022,13 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1022
1022
  _: 3
1023
1023
  }, 8, ["viewModel"]));
1024
1024
  }
1025
- }), ii = { class: "code-graph-info" }, li = /* @__PURE__ */ ce({
1025
+ }), io = { class: "code-graph-info" }, oo = /* @__PURE__ */ ce({
1026
1026
  __name: "CodeGraphInfo",
1027
1027
  props: {
1028
1028
  viewModel: {}
1029
1029
  },
1030
1030
  setup(e) {
1031
- return (t, n) => (m(), k("div", ii, [
1031
+ return (t, n) => (m(), k("div", io, [
1032
1032
  f("div", null, "Editor graph: " + te(e.viewModel.editor.graph.shortId), 1),
1033
1033
  f("div", null, "Displayed graph: " + te(e.viewModel.displayedGraph.shortId), 1),
1034
1034
  f("div", null, "Graphs: " + te(e.viewModel.editor.graphIds), 1),
@@ -1036,13 +1036,13 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1036
1036
  f("div", null, "Engine status: " + te(e.viewModel.engine?.status), 1)
1037
1037
  ]));
1038
1038
  }
1039
- }), ui = ["data-node-type", "id"], di = {
1039
+ }), lo = ["data-node-type", "id"], uo = {
1040
1040
  class: "__title-label",
1041
1041
  style: { "flex-grow": "1" }
1042
- }, ci = { key: 0 }, hi = {
1042
+ }, co = { key: 0 }, ho = {
1043
1043
  class: "__menu",
1044
1044
  style: { display: "flex" }
1045
- }, fi = { class: "__outputs" }, pi = { key: 0 }, mi = ["id", "title"], vi = { class: "__inputs" }, _i = { key: 0 }, yi = ["id", "title"], Fs = /* @__PURE__ */ ce({
1045
+ }, fo = { class: "__outputs" }, po = { key: 0 }, mo = ["id", "title"], vo = { class: "__inputs" }, _o = { key: 0 }, yo = ["id", "title"], Fs = /* @__PURE__ */ ce({
1046
1046
  __name: "CodeGraphNode",
1047
1047
  props: {
1048
1048
  node: {},
@@ -1051,9 +1051,9 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1051
1051
  },
1052
1052
  emits: ["select", "start-drag", "update"],
1053
1053
  setup(e, { emit: t }) {
1054
- const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), o = t, { viewModel: i } = kt(), { graph: l, switchGraph: u } = Cn(), h = oe(null), w = oe(!1), p = oe(""), I = oe(null), y = oe(!1);
1054
+ const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), i = t, { viewModel: o } = kt(), { graph: l, switchGraph: u } = Cn(), h = ie(null), w = ie(!1), p = ie(""), I = ie(null), y = ie(!1);
1055
1055
  let O = 0, c = 0;
1056
- const g = oe(!1), $ = z(() => {
1056
+ const g = ie(!1), $ = z(() => {
1057
1057
  const W = [
1058
1058
  { value: "edit", label: "Edit" },
1059
1059
  { value: "rename", label: "Rename" },
@@ -1066,22 +1066,22 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1066
1066
  "--two-column": !!r.node.twoColumn,
1067
1067
  "--hidden": a.value.state?.hidden
1068
1068
  })), F = z(() => ({
1069
- "--reverse-y": r.node.reverseY ?? i.value.settings.nodes.reverseY
1070
- })), Te = z(() => ({
1069
+ "--reverse-y": r.node.reverseY ?? o.value.settings.nodes.reverseY
1070
+ })), Ne = z(() => ({
1071
1071
  top: `${r.node.position?.y ?? 0}px`,
1072
1072
  left: `${r.node.position?.x ?? 0}px`,
1073
- "--width": `${r.node.width ?? i.value.settings.nodes.defaultWidth}px`
1074
- })), Ne = z(() => Object.values(r.node.inputs).filter((W) => !W.hidden)), ft = z(() => Object.values(r.node.outputs).filter((W) => !W.hidden)), we = () => {
1075
- an(), o("select");
1073
+ "--width": `${r.node.width ?? o.value.settings.nodes.defaultWidth}px`
1074
+ })), Te = z(() => Object.values(r.node.inputs).filter((W) => !W.hidden)), ft = z(() => Object.values(r.node.outputs).filter((W) => !W.hidden)), we = () => {
1075
+ an(), i("select");
1076
1076
  }, C = (W) => {
1077
- r.selected || we(), o("start-drag", W);
1077
+ r.selected || we(), i("start-drag", W);
1078
1078
  }, Q = () => {
1079
1079
  g.value = !0;
1080
1080
  }, se = () => {
1081
- const W = i.value.displayedGraph.sidebar;
1081
+ const W = o.value.displayedGraph.sidebar;
1082
1082
  W.nodeId = r.node.id, W.visible = !0;
1083
1083
  }, an = () => {
1084
- const W = i.value.displayedGraph.sidebar;
1084
+ const W = o.value.displayedGraph.sidebar;
1085
1085
  W.nodeId = r.node.id;
1086
1086
  }, pt = async (W) => {
1087
1087
  switch (W) {
@@ -1098,35 +1098,35 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1098
1098
  u(r.node.template);
1099
1099
  break;
1100
1100
  }
1101
- }, Tt = () => {
1102
- a.value.state.variableName = p.value, a.value.events.titleChanged.emit(a.value.state.variableName), w.value = !1;
1103
1101
  }, Nt = () => {
1104
- h.value && i.value.hooks.renderNode.execute({ node: r.node, el: h.value });
1102
+ a.value.state.variableName = p.value, a.value.events.titleChanged.emit(a.value.state.variableName), w.value = !1;
1103
+ }, Tt = () => {
1104
+ h.value && o.value.hooks.renderNode.execute({ node: r.node, el: h.value });
1105
1105
  }, on = (W) => {
1106
1106
  y.value = !0, O = r.node.width, c = W.clientX, W.preventDefault();
1107
1107
  }, Dt = (W) => {
1108
- a.value.state && (a.value.state.integrated = W, o("update"));
1108
+ a.value.state && (a.value.state.integrated = W, i("update"));
1109
1109
  }, ze = (W) => {
1110
1110
  if (!y.value) return;
1111
- const B = W.clientX - c, b = O + B / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
1111
+ const B = W.clientX - c, b = O + B / l.value.scaling, S = o.value.settings.nodes.minWidth, M = o.value.settings.nodes.maxWidth;
1112
1112
  a.value.width = Math.max(S, Math.min(M, b));
1113
1113
  }, et = () => {
1114
1114
  y.value = !1;
1115
1115
  };
1116
1116
  return xn(() => {
1117
- Nt(), window.addEventListener("mousemove", ze), window.addEventListener("mouseup", et);
1118
- }), bs(Nt), ys(() => {
1117
+ Tt(), window.addEventListener("mousemove", ze), window.addEventListener("mouseup", et);
1118
+ }), bs(Tt), ys(() => {
1119
1119
  window.removeEventListener("mousemove", ze), window.removeEventListener("mouseup", et);
1120
1120
  }), (W, B) => (m(), k("div", {
1121
1121
  class: je([A.value, "baklava-node"]),
1122
1122
  "data-node-type": a.value.type,
1123
1123
  id: a.value.id,
1124
- style: On(Te.value),
1124
+ style: On(Ne.value),
1125
1125
  ref_key: "el",
1126
1126
  ref: h,
1127
1127
  onPointerdown: we
1128
1128
  }, [
1129
- H(i).settings.nodes.resizable ? (m(), k("div", {
1129
+ H(o).settings.nodes.resizable ? (m(), k("div", {
1130
1130
  key: 0,
1131
1131
  class: "__resize-handle",
1132
1132
  onMousedown: on
@@ -1154,24 +1154,24 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1154
1154
  placeholder: "Variable name",
1155
1155
  style: { "flex-grow": "1" },
1156
1156
  type: "text",
1157
- onBlur: Tt,
1158
- onKeydown: hn(Tt, ["enter"])
1157
+ onBlur: Nt,
1158
+ onKeydown: hn(Nt, ["enter"])
1159
1159
  }, null, 544)), [
1160
1160
  [jt, p.value]
1161
1161
  ]) : (m(), k(ae, { key: 1 }, [
1162
- f("div", di, [
1163
- a.value.idx > -1 ? (m(), k("span", ci, te(a.value.idx + 1) + " > ", 1)) : K("", !0),
1162
+ f("div", uo, [
1163
+ a.value.idx > -1 ? (m(), k("span", co, te(a.value.idx + 1) + " > ", 1)) : K("", !0),
1164
1164
  ws(" " + te(a.value.state.variableName.length > 0 ? a.value.state.variableName : a.value.title), 1)
1165
1165
  ]),
1166
- f("div", hi, [
1166
+ f("div", ho, [
1167
1167
  a.value.isCodeNode ? (m(), k(ae, { key: 0 }, [
1168
- a.value.state.lockCode ? (m(), ue(H(Nn), {
1168
+ a.value.state.lockCode ? (m(), ue(H(Tn), {
1169
1169
  key: 0,
1170
1170
  class: "--clickable mx-1",
1171
1171
  onClick: B[0] || (B[0] = (b) => a.value.lockCode = !1)
1172
1172
  })) : K("", !0),
1173
1173
  a.value.hasConnectedOutputNodes ? (m(), k(ae, { key: 1 }, [
1174
- a.value.state.integrated ? (m(), ue(H(Ns), {
1174
+ a.value.state.integrated ? (m(), ue(H(Ts), {
1175
1175
  key: 1,
1176
1176
  class: "--clickable mx-1",
1177
1177
  onClick: B[2] || (B[2] = (b) => Dt(!1))
@@ -1181,7 +1181,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1181
1181
  onClick: B[1] || (B[1] = (b) => Dt(!0))
1182
1182
  }))
1183
1183
  ], 64)) : K("", !0),
1184
- a.value.isSelected && !H(i).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
1184
+ a.value.isSelected && !H(o).displayedGraph.sidebar.visible ? (m(), ue(H(Nn), {
1185
1185
  key: 2,
1186
1186
  class: "--clickable mx-1",
1187
1187
  onClick: se
@@ -1217,11 +1217,11 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1217
1217
  onContextmenu: B[6] || (B[6] = st(() => {
1218
1218
  }, ["prevent"]))
1219
1219
  }, [
1220
- f("div", fi, [
1220
+ f("div", fo, [
1221
1221
  (m(!0), k(ae, null, Ke(ft.value, (b) => (m(), k(ae, {
1222
1222
  key: b.id
1223
1223
  }, [
1224
- a.value.state?.hidden ? (m(), k("div", pi, [
1224
+ a.value.state?.hidden ? (m(), k("div", po, [
1225
1225
  b.port ? (m(), k("div", {
1226
1226
  key: 0,
1227
1227
  id: b.id,
@@ -1229,7 +1229,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1229
1229
  class: "baklava-node-interface --output --connected"
1230
1230
  }, [...B[7] || (B[7] = [
1231
1231
  f("div", { class: "__port" }, null, -1)
1232
- ])], 8, mi)) : K("", !0)
1232
+ ])], 8, mo)) : K("", !0)
1233
1233
  ])) : Me(W.$slots, "nodeInterface", {
1234
1234
  key: 1,
1235
1235
  type: "output",
@@ -1244,11 +1244,11 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1244
1244
  ])
1245
1245
  ], 64))), 128))
1246
1246
  ]),
1247
- f("div", vi, [
1248
- (m(!0), k(ae, null, Ke(Ne.value, (b) => (m(), k(ae, {
1247
+ f("div", vo, [
1248
+ (m(!0), k(ae, null, Ke(Te.value, (b) => (m(), k(ae, {
1249
1249
  key: b.id
1250
1250
  }, [
1251
- a.value.state?.hidden ? (m(), k("div", _i, [
1251
+ a.value.state?.hidden ? (m(), k("div", _o, [
1252
1252
  b.port ? (m(), k("div", {
1253
1253
  key: 0,
1254
1254
  id: b.id,
@@ -1256,7 +1256,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1256
1256
  class: "baklava-node-interface --input --connected"
1257
1257
  }, [...B[8] || (B[8] = [
1258
1258
  f("div", { class: "__port" }, null, -1)
1259
- ])], 8, yi)) : K("", !0)
1259
+ ])], 8, yo)) : K("", !0)
1260
1260
  ])) : Me(W.$slots, "nodeInterface", {
1261
1261
  key: 1,
1262
1262
  node: a.value,
@@ -1272,17 +1272,17 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1272
1272
  ], 64))), 128))
1273
1273
  ])
1274
1274
  ], 34)
1275
- ], 46, ui));
1275
+ ], 46, lo));
1276
1276
  }
1277
- }), gi = ["id"], bi = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
1277
+ }), go = ["id"], bo = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
1278
1278
  __name: "CodeGraphNodeInterface",
1279
1279
  props: {
1280
1280
  node: {},
1281
1281
  intf: {}
1282
1282
  },
1283
1283
  setup(e) {
1284
- const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = oe(null), o = z(() => t.intf.connectionCount > 0), i = z(() => ({
1285
- "--connected": o.value
1284
+ const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = ie(null), i = z(() => t.intf.connectionCount > 0), o = z(() => ({
1285
+ "--connected": i.value
1286
1286
  })), l = () => {
1287
1287
  s(t.intf);
1288
1288
  }, u = () => {
@@ -1294,7 +1294,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1294
1294
  id: e.intf.id,
1295
1295
  ref_key: "el",
1296
1296
  ref: a,
1297
- class: je(["baklava-node-interface", i.value])
1297
+ class: je(["baklava-node-interface", o.value])
1298
1298
  }, [
1299
1299
  e.intf.port ? (m(), k("div", {
1300
1300
  key: 0,
@@ -1302,12 +1302,12 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1302
1302
  onPointerover: l,
1303
1303
  onPointerout: u
1304
1304
  }, null, 34)) : K("", !0),
1305
- f("span", bi, [
1305
+ f("span", bo, [
1306
1306
  Me(w.$slots, "default")
1307
1307
  ])
1308
- ], 10, gi));
1308
+ ], 10, go));
1309
1309
  }
1310
- }), wi = ["title"], ki = {
1310
+ }), wo = ["title"], ko = {
1311
1311
  key: 0,
1312
1312
  class: "__label"
1313
1313
  }, mn = /* @__PURE__ */ ce({
@@ -1340,17 +1340,17 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1340
1340
  })
1341
1341
  ])
1342
1342
  ], -1)),
1343
- e.name ? (m(), k("div", ki, te(e.name), 1)) : K("", !0)
1344
- ], 10, wi));
1343
+ e.name ? (m(), k("div", ko, te(e.name), 1)) : K("", !0)
1344
+ ], 10, wo));
1345
1345
  }
1346
- }), Mi = { class: "__header" }, Si = { class: "__node-name" }, xi = { class: "__interfaces" }, Oi = { class: "__inputs" }, Ci = { style: { display: "flex" } }, Ti = { class: "__outputs" }, Ni = {
1346
+ }), Mo = { class: "__header" }, So = { class: "__node-name" }, xo = { class: "__interfaces" }, Oo = { class: "__inputs" }, Co = { style: { display: "flex" } }, No = { class: "__outputs" }, To = {
1347
1347
  key: 0,
1348
1348
  class: "__interface"
1349
- }, Di = ["placeholder"], Ii = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1349
+ }, Do = ["placeholder"], Io = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1350
1350
  __name: "CodeGraphSidebar",
1351
1351
  setup(e) {
1352
- const { viewModel: t } = kt(), { graph: n } = Cn(), s = oe(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
1353
- let o = 0, i = 0;
1352
+ const { viewModel: t } = kt(), { graph: n } = Cn(), s = ie(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
1353
+ let i = 0, o = 0;
1354
1354
  const l = z(() => {
1355
1355
  const g = n.value.sidebar.nodeId;
1356
1356
  return n.value.nodes.find(($) => $.id === g);
@@ -1359,9 +1359,9 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1359
1359
  })), w = z(() => u.value ? Object.values(u.value.inputs).filter((g) => g.displayInSidebar && g.component) : []), p = z(() => u.value ? Object.values(u.value.outputs).filter((g) => g.displayInSidebar && g.component) : []), I = () => {
1360
1360
  n.value.sidebar.visible = !1;
1361
1361
  }, y = () => {
1362
- l.value?.events.update.emit(null);
1362
+ l.value && (l.value.state.variableNameNumberAppendix = u.value.state.variableName.length === 0, l.value.events.update.emit(null));
1363
1363
  }, O = (g) => {
1364
- o = r.value, i = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1364
+ i = r.value, o = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1365
1365
  "mouseup",
1366
1366
  () => {
1367
1367
  window.removeEventListener("mousemove", c);
@@ -1369,8 +1369,8 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1369
1369
  { once: !0 }
1370
1370
  );
1371
1371
  }, c = (g) => {
1372
- const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - i;
1373
- let F = o - A;
1372
+ const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - o;
1373
+ let F = i - A;
1374
1374
  F < 300 ? F = 300 : F > 0.9 * $ && (F = 0.9 * $), r.value = F;
1375
1375
  };
1376
1376
  return (g, $) => (m(), k("div", {
@@ -1385,23 +1385,23 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1385
1385
  onMousedown: O
1386
1386
  }, null, 32)) : K("", !0),
1387
1387
  l.value ? (m(), k(ae, { key: 1 }, [
1388
- f("div", Mi, [
1388
+ f("div", Mo, [
1389
1389
  f("button", {
1390
1390
  tabindex: "-1",
1391
1391
  class: "__close",
1392
1392
  onClick: I
1393
1393
  }, "×"),
1394
- f("div", Si, [
1394
+ f("div", So, [
1395
1395
  f("b", null, te(l.value.title), 1)
1396
1396
  ])
1397
1397
  ]),
1398
- f("div", xi, [
1399
- f("div", Oi, [
1398
+ f("div", xo, [
1399
+ f("div", Oo, [
1400
1400
  (m(!0), k(ae, null, Ke(w.value, (A) => (m(), k("div", {
1401
1401
  key: A.id,
1402
1402
  class: "__interface"
1403
1403
  }, [
1404
- f("div", Ci, [
1404
+ f("div", Co, [
1405
1405
  X(mn, {
1406
1406
  modelValue: A.hidden,
1407
1407
  "onUpdate:modelValue": [
@@ -1422,8 +1422,8 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1422
1422
  ])
1423
1423
  ]))), 128))
1424
1424
  ]),
1425
- f("div", Ti, [
1426
- u.value && u.value.state ? (m(), k("div", Ni, [
1425
+ f("div", No, [
1426
+ u.value && u.value.state ? (m(), k("div", To, [
1427
1427
  $[3] || ($[3] = f("label", null, "Variable name", -1)),
1428
1428
  Vt(f("input", {
1429
1429
  "onUpdate:modelValue": $[1] || ($[1] = (A) => u.value.state.variableName = A),
@@ -1433,7 +1433,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1433
1433
  title: "Variable name",
1434
1434
  onBlur: y,
1435
1435
  onKeydown: hn(y, ["enter"])
1436
- }, null, 40, Di), [
1436
+ }, null, 40, Do), [
1437
1437
  [jt, u.value.state.variableName]
1438
1438
  ])
1439
1439
  ])) : K("", !0),
@@ -1441,7 +1441,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1441
1441
  key: A.id,
1442
1442
  class: "__interface"
1443
1443
  }, [
1444
- f("div", Ii, [
1444
+ f("div", Io, [
1445
1445
  X(mn, {
1446
1446
  modelValue: A.hidden,
1447
1447
  "onUpdate:modelValue": [
@@ -1468,34 +1468,34 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1468
1468
  ], 6));
1469
1469
  }
1470
1470
  });
1471
- function Yi(e, t) {
1471
+ function Yo(e, t) {
1472
1472
  return Object.fromEntries(Object.entries(e).filter(t));
1473
1473
  }
1474
- function Ei(e, t) {
1474
+ function Eo(e, t) {
1475
1475
  return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
1476
1476
  }
1477
- const Ri = {
1477
+ const Ro = {
1478
1478
  class: "baklava-node --palette",
1479
1479
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1480
- }, Pi = {
1480
+ }, Po = {
1481
1481
  key: 0,
1482
1482
  style: { display: "flex", "justify-content": "space-between" }
1483
- }, Li = ["onClick"], Ai = {
1483
+ }, Lo = ["onClick"], Ao = {
1484
1484
  key: 0,
1485
1485
  style: { margin: "auto 0", "font-size": "12px" }
1486
1486
  }, Vs = /* @__PURE__ */ ce({
1487
1487
  __name: "CodeNodePalette",
1488
1488
  setup(e) {
1489
- const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), o = ha(n), i = oa("editorEl"), l = oe(""), u = oe(null), h = () => l.value ? o.value.filter(
1489
+ const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), i = ha(n), o = ia("editorEl"), l = ie(""), u = ie(null), h = () => l.value ? i.value.filter(
1490
1490
  (y) => y.name.toLowerCase().includes(l.value.toLowerCase()) || Object.values(y.nodeTypes).some(
1491
1491
  (O) => O.title.toLowerCase().includes(l.value.toLowerCase())
1492
1492
  )
1493
- ) : o.value, w = (y) => l.value ? Yi(y, (O) => {
1493
+ ) : i.value, w = (y) => l.value ? Yo(y, (O) => {
1494
1494
  const c = O[1];
1495
1495
  return c.category.includes(l.value.toLowerCase()) || c.title?.toLowerCase().includes(l.value.toLowerCase());
1496
1496
  }) : y, p = z(() => {
1497
- if (!u.value || !i?.value) return {};
1498
- const { left: y, top: O } = i.value.getBoundingClientRect();
1497
+ if (!u.value || !o?.value) return {};
1498
+ const { left: y, top: O } = o.value.getBoundingClientRect();
1499
1499
  return {
1500
1500
  top: `${r.value - O}px`,
1501
1501
  left: `${s.value - y}px`
@@ -1508,7 +1508,7 @@ const Ri = {
1508
1508
  const c = () => {
1509
1509
  const g = Ae(new O.type());
1510
1510
  n.value.displayedGraph.addNode(g);
1511
- const $ = i.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
1511
+ const $ = o.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
1512
1512
  g.position.x = A, g.position.y = F, u.value = null, document.removeEventListener("pointerup", c);
1513
1513
  };
1514
1514
  document.addEventListener("pointerup", c);
@@ -1519,7 +1519,7 @@ const Ri = {
1519
1519
  onContextmenu: O[1] || (O[1] = st(() => {
1520
1520
  }, ["stop", "prevent"]))
1521
1521
  }, [
1522
- f("div", Ri, [
1522
+ f("div", Ro, [
1523
1523
  Vt(f("input", {
1524
1524
  "onUpdate:modelValue": O[0] || (O[0] = (c) => l.value = c),
1525
1525
  type: "text",
@@ -1533,12 +1533,12 @@ const Ri = {
1533
1533
  (m(!0), k(ae, null, Ke(h(), (c) => (m(), k("section", {
1534
1534
  key: c.name
1535
1535
  }, [
1536
- c.name !== "default" ? (m(), k("h3", Pi, [
1536
+ c.name !== "default" ? (m(), k("h3", Po, [
1537
1537
  f("div", {
1538
1538
  onClick: (g) => l.value = c.name,
1539
1539
  style: { cursor: "pointer" }
1540
- }, te(c.name), 9, Li),
1541
- Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div", Ai, " ( " + te(Object.keys(w(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
1540
+ }, te(c.name), 9, Lo),
1541
+ Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div", Ao, " ( " + te(Object.keys(w(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
1542
1542
  ])) : K("", !0),
1543
1543
  (m(!0), k(ae, null, Ke(w(c.nodeTypes), (g, $) => (m(), ue(H(t), {
1544
1544
  key: $,
@@ -1548,7 +1548,7 @@ const Ri = {
1548
1548
  }, null, 8, ["title", "type", "onPointerdown"]))), 128))
1549
1549
  ]))), 128))
1550
1550
  ], 34),
1551
- X(ia, { name: "fade" }, {
1551
+ X(oa, { name: "fade" }, {
1552
1552
  default: Ye(() => [
1553
1553
  u.value ? (m(), k("div", {
1554
1554
  key: 0,
@@ -1565,23 +1565,23 @@ const Ri = {
1565
1565
  })
1566
1566
  ], 64));
1567
1567
  }
1568
- }), Ui = {}, $i = { class: "prependIcon" }, Wi = { class: "appendIcon" };
1569
- function Hi(e, t) {
1568
+ }), Uo = {}, $o = { class: "prependIcon" }, Wo = { class: "appendIcon" };
1569
+ function Ho(e, t) {
1570
1570
  const n = _s("router-link");
1571
1571
  return m(), ue(n, { class: "navItem" }, {
1572
1572
  default: Ye(() => [
1573
- f("span", $i, [
1573
+ f("span", $o, [
1574
1574
  Me(e.$slots, "prependIcon")
1575
1575
  ]),
1576
1576
  Me(e.$slots, "default"),
1577
- f("span", Wi, [
1577
+ f("span", Wo, [
1578
1578
  Me(e.$slots, "appendIcon")
1579
1579
  ])
1580
1580
  ]),
1581
1581
  _: 3
1582
1582
  });
1583
1583
  }
1584
- const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi = ["onClick"], Vi = /* @__PURE__ */ ce({
1584
+ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go = ["onClick"], Vo = /* @__PURE__ */ ce({
1585
1585
  __name: "NavBar",
1586
1586
  props: {
1587
1587
  viewModel: {},
@@ -1593,23 +1593,23 @@ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1593
1593
  const n = t, s = (r) => {
1594
1594
  n("click:remove", r);
1595
1595
  };
1596
- return (r, a) => (m(), k("nav", Fi, [
1596
+ return (r, a) => (m(), k("nav", Fo, [
1597
1597
  Me(r.$slots, "prepend"),
1598
- (m(!0), k(ae, null, Ke(e.editorStates, (o) => (m(), ue(vn, {
1599
- key: o.graph.id,
1600
- class: je({ active: o.graph.id === e.viewModel.displayedGraph.id }),
1601
- to: { name: e.routes?.edit ?? "edit", params: { editorId: o.graph.id } }
1598
+ (m(!0), k(ae, null, Ke(e.editorStates, (i) => (m(), ue(vn, {
1599
+ key: i.graph.id,
1600
+ class: je({ active: i.graph.id === e.viewModel.displayedGraph.id }),
1601
+ to: { name: e.routes?.edit ?? "edit", params: { editorId: i.graph.id } }
1602
1602
  }, {
1603
1603
  appendIcon: Ye(() => [
1604
1604
  f("button", {
1605
1605
  class: "remove",
1606
- onClick: st((i) => s(o.graph.id), ["prevent"])
1606
+ onClick: st((o) => s(i.graph.id), ["prevent"])
1607
1607
  }, [
1608
1608
  X(H(Ws))
1609
- ], 8, Gi)
1609
+ ], 8, Go)
1610
1610
  ]),
1611
1611
  default: Ye(() => [
1612
- ws(te(o.graph.id.slice(0, 6)) + " ", 1)
1612
+ ws(te(i.graph.id.slice(0, 6)) + " ", 1)
1613
1613
  ]),
1614
1614
  _: 2
1615
1615
  }, 1032, ["class", "to"]))), 128)),
@@ -1626,7 +1626,7 @@ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1626
1626
  ])
1627
1627
  ]));
1628
1628
  }
1629
- }), ji = ce({
1629
+ }), jo = ce({
1630
1630
  props: {
1631
1631
  intf: {
1632
1632
  type: Object,
@@ -1646,32 +1646,32 @@ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1646
1646
  }
1647
1647
  }) };
1648
1648
  }
1649
- }), zi = { style: { position: "relative" } }, Bi = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zi = ["placeholder", "title"];
1650
- function qi(e, t, n, s, r, a) {
1651
- return m(), k("div", zi, [
1652
- f("label", Bi, te(e.intf.name), 1),
1649
+ }), zo = { style: { position: "relative" } }, Bo = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zo = ["placeholder", "title"];
1650
+ function qo(e, t, n, s, r, a) {
1651
+ return m(), k("div", zo, [
1652
+ f("label", Bo, te(e.intf.name), 1),
1653
1653
  Vt(f("input", {
1654
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
1654
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.v = i),
1655
1655
  type: "text",
1656
1656
  class: "baklava-input",
1657
1657
  placeholder: e.intf.name,
1658
1658
  title: e.intf.name
1659
- }, null, 8, Zi), [
1659
+ }, null, 8, Zo), [
1660
1660
  [jt, e.v]
1661
1661
  ])
1662
1662
  ]);
1663
1663
  }
1664
- const js = /* @__PURE__ */ q(ji, [["render", qi]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1664
+ const js = /* @__PURE__ */ q(jo, [["render", qo]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
1665
  __proto__: null,
1666
- CodeEditor: ai,
1667
- CodeGraphEditor: oi,
1668
- CodeGraphInfo: li,
1666
+ CodeEditor: ro,
1667
+ CodeGraphEditor: ao,
1668
+ CodeGraphInfo: oo,
1669
1669
  CodeGraphNode: Fs,
1670
1670
  CodeGraphNodeInterface: pn,
1671
1671
  CodeGraphSidebar: Gs,
1672
1672
  CodeNodePalette: Vs,
1673
1673
  CopyToClipboard: Hs,
1674
- NavBar: Vi,
1674
+ NavBar: Vo,
1675
1675
  NavItem: vn,
1676
1676
  SidebarCheckbox: mn,
1677
1677
  TextInputInterface: js
@@ -1695,9 +1695,10 @@ class zs extends Ia {
1695
1695
  modules: [],
1696
1696
  props: null,
1697
1697
  script: "",
1698
- variableName: ""
1698
+ variableName: "",
1699
+ variableNameNumberAppendix: !0
1699
1700
  }), this.codeTemplate = function() {
1700
- return `${this.name}(${Ki(this.codeNodeInputs).join(", ")})`;
1701
+ return `${this.name}(${Ko(this.codeNodeInputs).join(", ")})`;
1701
1702
  };
1702
1703
  }
1703
1704
  get code() {
@@ -1763,7 +1764,7 @@ class zs extends Ia {
1763
1764
  get subgraph() {
1764
1765
  }
1765
1766
  get variableName() {
1766
- return this.state.variableName || this._variableName ? this.state.variableName || this._variableName + (this.idxByVariableNames + 1) : "";
1767
+ return this.state.variableName || this._variableName ? (this.state.variableName || this._variableName) + (this.state.variableNameNumberAppendix ? this.idxByVariableNames + 1 : "") : "";
1767
1768
  }
1768
1769
  /**
1769
1770
  * Get connected node to the node interface.
@@ -1899,14 +1900,14 @@ class Dn extends zs {
1899
1900
  super.load(t), this.afterLoaded();
1900
1901
  }
1901
1902
  }
1902
- const Ki = (e, t = !0) => {
1903
+ const Ko = (e, t = !0) => {
1903
1904
  const n = [], s = Object.keys(e);
1904
1905
  return s.forEach((r) => {
1905
1906
  if (e[r]?.hidden) return;
1906
- const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
1907
- n.push(`${o}{{ inputs.${r} }}`);
1907
+ const i = t && n.length < s.indexOf(r) ? `${r}=` : "";
1908
+ n.push(`${i}{{ inputs.${r} }}`);
1908
1909
  }), n;
1909
- }, Xi = (e, t) => {
1910
+ }, Xo = (e, t) => {
1910
1911
  switch (e) {
1911
1912
  case "CheckBoxInterface":
1912
1913
  return new el(t.id, t.value);
@@ -1929,7 +1930,7 @@ const Ki = (e, t = !0) => {
1929
1930
  default:
1930
1931
  return new Qs(t.id, t.value);
1931
1932
  }
1932
- }, Ji = ["title"], In = /* @__PURE__ */ ce({
1933
+ }, Jo = ["title"], In = /* @__PURE__ */ ce({
1933
1934
  __name: "CodeNodeInterface",
1934
1935
  props: {
1935
1936
  intf: {}
@@ -1937,10 +1938,10 @@ const Ki = (e, t = !0) => {
1937
1938
  setup(e) {
1938
1939
  return (t, n) => (m(), k("div", {
1939
1940
  title: e.intf.value
1940
- }, te(e.intf.name), 9, Ji));
1941
+ }, te(e.intf.name), 9, Jo));
1941
1942
  }
1942
1943
  });
1943
- class ie extends Se {
1944
+ class oe extends Se {
1944
1945
  isCodeNode = !0;
1945
1946
  code;
1946
1947
  state;
@@ -1973,7 +1974,7 @@ class ie extends Se {
1973
1974
  return this.state.optional = t, this.setHidden(t), this;
1974
1975
  }
1975
1976
  }
1976
- class Mt extends ie {
1977
+ class Mt extends oe {
1977
1978
  constructor(t = "", n) {
1978
1979
  super(t, n), this.setComponent(he(In)), this.use(Ms, !0);
1979
1980
  }
@@ -1984,8 +1985,8 @@ class Mt extends ie {
1984
1985
  super.value = t, this.name !== "_code" && this.setHidden(!1);
1985
1986
  }
1986
1987
  }
1987
- const Bs = new Je("boolean"), Qi = new Je("dict"), Zs = new Je("list"), _e = new Je("node"), qs = new Je("number"), Ks = new Je("string"), Xs = new Je("tuple"), Ph = (e) => {
1988
- new Ua(e.editor, { viewPlugin: e }).addTypes(Bs, Qi, Zs, _e, qs, Ks, Xs);
1988
+ const Bs = new Je("boolean"), Qo = new Je("dict"), Zs = new Je("list"), _e = new Je("node"), qs = new Je("number"), Ks = new Je("string"), Xs = new Je("tuple"), Ph = (e) => {
1989
+ new Ua(e.editor, { viewPlugin: e }).addTypes(Bs, Qo, Zs, _e, qs, Ks, Xs);
1989
1990
  };
1990
1991
  class el extends Mt {
1991
1992
  constructor(t, n) {
@@ -1993,7 +1994,7 @@ class el extends Mt {
1993
1994
  }
1994
1995
  getValue = () => this.value ? "True" : "False";
1995
1996
  }
1996
- class tl extends ie {
1997
+ class tl extends oe {
1997
1998
  isCodeNodeOutput = !0;
1998
1999
  suffix = "";
1999
2000
  constructor(t = "", n = "") {
@@ -2074,10 +2075,10 @@ function Wh(e) {
2074
2075
  constructor() {
2075
2076
  super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName != null && (this._variableName = e.variableName), this.addInput(
2076
2077
  "_code",
2077
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2078
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2078
2079
  ), this.addOutput(
2079
2080
  "_code",
2080
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2081
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2081
2082
  );
2082
2083
  }
2083
2084
  afterGraphLoaded() {
@@ -2119,10 +2120,10 @@ function Hh(e) {
2119
2120
  constructor() {
2120
2121
  super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate?.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName && (this._variableName = e.variableName), this.addInput(
2121
2122
  "_code",
2122
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2123
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2123
2124
  ), this.addOutput(
2124
2125
  "_code",
2125
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2126
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2126
2127
  ), this.staticInputKeys.push("_code"), this.staticOutputKeys.push("_code");
2127
2128
  }
2128
2129
  afterGraphLoaded() {
@@ -2163,7 +2164,7 @@ function Hh(e) {
2163
2164
  if (!this.inputs[n]) {
2164
2165
  const s = t.inputs[n], r = s.value;
2165
2166
  let a;
2166
- s.component ? a = Xi(s.component, { ...s, id: n }) : typeof r == "number" ? a = new Js(n, r) : a = new Qs(n, JSON.stringify(r)), a.use(Ms, !0), this.addInput(n, a);
2167
+ s.component ? a = Xo(s.component, { ...s, id: n }) : typeof r == "number" ? a = new Js(n, r) : a = new Qs(n, JSON.stringify(r)), a.use(Ms, !0), this.addInput(n, a);
2167
2168
  }
2168
2169
  this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
2169
2170
  }
@@ -2194,12 +2195,12 @@ function Hh(e) {
2194
2195
  }
2195
2196
  updateInterfaces(t, n = {}, s = []) {
2196
2197
  const r = t === "input" ? this.staticInputKeys : this.staticOutputKeys, a = t === "input" ? this.inputs : this.outputs;
2197
- for (const o of Object.keys(a))
2198
- r.includes(o) || n[o] && !s.includes(o) || (t === "input" ? this.removeInput(o) : this.removeOutput(o));
2199
- for (const o of Object.keys(n)) {
2200
- if (a[o]) continue;
2201
- const i = n[o]();
2202
- t === "input" ? this.addInput(o, i) : this.addOutput(o, i);
2198
+ for (const i of Object.keys(a))
2199
+ r.includes(i) || n[i] && !s.includes(i) || (t === "input" ? this.removeInput(i) : this.removeOutput(i));
2200
+ for (const i of Object.keys(n)) {
2201
+ if (a[i]) continue;
2202
+ const o = n[i]();
2203
+ t === "input" ? this.addInput(i, o) : this.addOutput(i, o);
2203
2204
  }
2204
2205
  }
2205
2206
  updateProps(t) {
@@ -2304,24 +2305,24 @@ class al extends $a {
2304
2305
  }
2305
2306
  async runGraph(t, n, s) {
2306
2307
  this.order.has(t.id) || this.order.set(t.id, Wa(t));
2307
- const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), o = /* @__PURE__ */ new Map();
2308
- for (const i of r) {
2308
+ const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), i = /* @__PURE__ */ new Map();
2309
+ for (const o of r) {
2309
2310
  const l = {};
2310
- Object.entries(i.inputs).forEach(([h, w]) => {
2311
+ Object.entries(o.inputs).forEach(([h, w]) => {
2311
2312
  l[h] = this.getInterfaceValue(n, w.id);
2312
- }), i.isCodeNode && (i.updateCodeTemplate(), i.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: i });
2313
+ }), o.isCodeNode && (o.updateCodeTemplate(), o.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: o });
2313
2314
  let u;
2314
- if (i.calculate) {
2315
- if (u = await i.calculate(l, { globalValues: s, engine: this }), a.has(i))
2315
+ if (o.calculate) {
2316
+ if (u = await o.calculate(l, { globalValues: s, engine: this }), a.has(o))
2316
2317
  for (const [h, w] of Object.entries(u))
2317
- this.hooks.transferData.execute(u[h], w), a.get(i).forEach((p) => n.set(p.to.id, w));
2318
+ this.hooks.transferData.execute(u[h], w), a.get(o).forEach((p) => n.set(p.to.id, w));
2318
2319
  } else {
2319
2320
  u = {};
2320
- for (const [h, w] of Object.entries(i.outputs))
2321
+ for (const [h, w] of Object.entries(o.outputs))
2321
2322
  u[h] = this.getInterfaceValue(n, w.id);
2322
2323
  }
2323
- this.events.afterNodeCalculation.emit({ outputValues: u, node: i }), o.set(i.id, new Map(Object.entries(u))), a.has(i) && a.get(i).forEach((h) => {
2324
- const w = Object.entries(i.outputs).find(([, I]) => I.id === h.from.id)?.[0];
2324
+ this.events.afterNodeCalculation.emit({ outputValues: u, node: o }), i.set(o.id, new Map(Object.entries(u))), a.has(o) && a.get(o).forEach((h) => {
2325
+ const w = Object.entries(o.outputs).find(([, I]) => I.id === h.from.id)?.[0];
2325
2326
  if (!w)
2326
2327
  throw new Error(
2327
2328
  `Could not find key for interface ${h.from.id}
@@ -2331,7 +2332,7 @@ This is likely an internal issue. Please report it on GitHub.`
2331
2332
  w !== "_code" && (h.to.allowMultipleConnections ? n.has(h.to.id) ? n.get(h.to.id).push(p) : n.set(h.to.id, [p]) : n.set(h.to.id, p));
2332
2333
  });
2333
2334
  }
2334
- return o;
2335
+ return i;
2335
2336
  }
2336
2337
  async execute(t) {
2337
2338
  this.recalculateOrder && (this.order.clear(), this.recalculateOrder = !1);
@@ -2364,7 +2365,7 @@ var er;
2364
2365
  function v() {
2365
2366
  return er.apply(null, arguments);
2366
2367
  }
2367
- function ol(e) {
2368
+ function il(e) {
2368
2369
  er = e;
2369
2370
  }
2370
2371
  function ye(e) {
@@ -2408,7 +2409,7 @@ function Fe(e, t) {
2408
2409
  function Oe(e, t, n, s) {
2409
2410
  return Sr(e, t, n, s, !0).utc();
2410
2411
  }
2411
- function il() {
2412
+ function ol() {
2412
2413
  return {
2413
2414
  empty: !1,
2414
2415
  unusedTokens: [],
@@ -2428,8 +2429,8 @@ function il() {
2428
2429
  weekdayMismatch: !1
2429
2430
  };
2430
2431
  }
2431
- function N(e) {
2432
- return e._pf == null && (e._pf = il()), e._pf;
2432
+ function T(e) {
2433
+ return e._pf == null && (e._pf = ol()), e._pf;
2433
2434
  }
2434
2435
  var _n;
2435
2436
  Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
@@ -2441,7 +2442,7 @@ Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
2441
2442
  };
2442
2443
  function Ln(e) {
2443
2444
  var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
2444
- if (s && (t = N(e), n = _n.call(t.parsedDateParts, function(r) {
2445
+ if (s && (t = T(e), n = _n.call(t.parsedDateParts, function(r) {
2445
2446
  return r != null;
2446
2447
  }), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
2447
2448
  e._isValid = s;
@@ -2451,12 +2452,12 @@ function Ln(e) {
2451
2452
  }
2452
2453
  function zt(e) {
2453
2454
  var t = Oe(NaN);
2454
- return e != null ? Fe(N(t), e) : N(t).userInvalidated = !0, t;
2455
+ return e != null ? Fe(T(t), e) : T(t).userInvalidated = !0, t;
2455
2456
  }
2456
2457
  var ls = v.momentProperties = [], ln = !1;
2457
2458
  function An(e, t) {
2458
2459
  var n, s, r, a = ls.length;
2459
- if (re(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), re(t._i) || (e._i = t._i), re(t._f) || (e._f = t._f), re(t._l) || (e._l = t._l), re(t._strict) || (e._strict = t._strict), re(t._tzm) || (e._tzm = t._tzm), re(t._isUTC) || (e._isUTC = t._isUTC), re(t._offset) || (e._offset = t._offset), re(t._pf) || (e._pf = N(t)), re(t._locale) || (e._locale = t._locale), a > 0)
2460
+ if (re(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), re(t._i) || (e._i = t._i), re(t._f) || (e._f = t._f), re(t._l) || (e._l = t._l), re(t._strict) || (e._strict = t._strict), re(t._tzm) || (e._tzm = t._tzm), re(t._isUTC) || (e._isUTC = t._isUTC), re(t._offset) || (e._offset = t._offset), re(t._pf) || (e._pf = T(t)), re(t._locale) || (e._locale = t._locale), a > 0)
2460
2461
  for (n = 0; n < a; n++)
2461
2462
  s = ls[n], r = t[s], re(r) || (e[s] = r);
2462
2463
  return e;
@@ -2474,13 +2475,13 @@ function fe(e, t) {
2474
2475
  var n = !0;
2475
2476
  return Fe(function() {
2476
2477
  if (v.deprecationHandler != null && v.deprecationHandler(null, e), n) {
2477
- var s = [], r, a, o, i = arguments.length;
2478
- for (a = 0; a < i; a++) {
2478
+ var s = [], r, a, i, o = arguments.length;
2479
+ for (a = 0; a < o; a++) {
2479
2480
  if (r = "", typeof arguments[a] == "object") {
2480
2481
  r += `
2481
2482
  [` + a + "] ";
2482
- for (o in arguments[0])
2483
- P(arguments[0], o) && (r += o + ": " + arguments[0][o] + ", ");
2483
+ for (i in arguments[0])
2484
+ P(arguments[0], i) && (r += i + ": " + arguments[0][i] + ", ");
2484
2485
  r = r.slice(0, -2);
2485
2486
  } else
2486
2487
  r = arguments[a];
@@ -2568,9 +2569,9 @@ function hl(e) {
2568
2569
  for (n = 0, s = t.length; n < s; n++)
2569
2570
  at[t[n]] ? t[n] = at[t[n]] : t[n] = cl(t[n]);
2570
2571
  return function(r) {
2571
- var a = "", o;
2572
- for (o = 0; o < s; o++)
2573
- a += Ce(t[o]) ? t[o].call(r, e) : t[o];
2572
+ var a = "", i;
2573
+ for (i = 0; i < s; i++)
2574
+ a += Ce(t[i]) ? t[i].call(r, e) : t[i];
2574
2575
  return a;
2575
2576
  };
2576
2577
  }
@@ -2722,7 +2723,7 @@ function Sl(e) {
2722
2723
  return s.priority - r.priority;
2723
2724
  }), t;
2724
2725
  }
2725
- var ar = /\d/, le = /\d\d/, or = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, ir = /\d\d\d\d?/, lr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Fn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, dt = /\d+/, Kt = /[+-]?\d+/, xl = /Z|[+-]\d\d:?\d\d/gi, Xt = /Z|[+-]\d\d(?::?\d\d)?/gi, Ol = /[+-]?\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, ct = /^[1-9]\d?/, Gn = /^([1-9]\d|\d)/, Ut;
2726
+ var ar = /\d/, le = /\d\d/, ir = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, or = /\d\d\d\d?/, lr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Fn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, dt = /\d+/, Kt = /[+-]?\d+/, xl = /Z|[+-]\d\d:?\d\d/gi, Xt = /Z|[+-]\d\d(?::?\d\d)?/gi, Ol = /[+-]?\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, ct = /^[1-9]\d?/, Gn = /^([1-9]\d|\d)/, Ut;
2726
2727
  Ut = {};
2727
2728
  function _(e, t, n) {
2728
2729
  Ut[e] = Ce(t) ? t : function(s, r) {
@@ -2730,9 +2731,9 @@ function _(e, t, n) {
2730
2731
  };
2731
2732
  }
2732
2733
  function Cl(e, t) {
2733
- return P(Ut, e) ? Ut[e](t._strict, t._locale) : new RegExp(Tl(e));
2734
+ return P(Ut, e) ? Ut[e](t._strict, t._locale) : new RegExp(Nl(e));
2734
2735
  }
2735
- function Tl(e) {
2736
+ function Nl(e) {
2736
2737
  return Pe(
2737
2738
  e.replace("\\", "").replace(
2738
2739
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
@@ -2755,8 +2756,8 @@ function Y(e) {
2755
2756
  var bn = {};
2756
2757
  function U(e, t) {
2757
2758
  var n, s = t, r;
2758
- for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, o) {
2759
- o[t] = Y(a);
2759
+ for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, i) {
2760
+ i[t] = Y(a);
2760
2761
  }), r = e.length, n = 0; n < r; n++)
2761
2762
  bn[e[n]] = s;
2762
2763
  }
@@ -2765,7 +2766,7 @@ function Ct(e, t) {
2765
2766
  r._w = r._w || {}, t(n, r._w, r, a);
2766
2767
  });
2767
2768
  }
2768
- function Nl(e, t, n) {
2769
+ function Tl(e, t, n) {
2769
2770
  t != null && P(bn, e) && bn[e](t, n._a, n, e);
2770
2771
  }
2771
2772
  function Jt(e) {
@@ -2838,7 +2839,7 @@ function yt(e, t) {
2838
2839
  }
2839
2840
  }
2840
2841
  function dr(e, t, n) {
2841
- var s, r, a, o, i;
2842
+ var s, r, a, i, o;
2842
2843
  if (!(!e.isValid() || isNaN(n))) {
2843
2844
  switch (s = e._d, r = e._isUTC, t) {
2844
2845
  case "Milliseconds":
@@ -2861,7 +2862,7 @@ function dr(e, t, n) {
2861
2862
  default:
2862
2863
  return;
2863
2864
  }
2864
- a = n, o = e.month(), i = e.date(), i = i === 29 && o === 1 && !Jt(a) ? 28 : i, r ? s.setUTCFullYear(a, o, i) : s.setFullYear(a, o, i);
2865
+ a = n, i = e.month(), o = e.date(), o = o === 29 && i === 1 && !Jt(a) ? 28 : o, r ? s.setUTCFullYear(a, i, o) : s.setFullYear(a, i, o);
2865
2866
  }
2866
2867
  }
2867
2868
  function El(e) {
@@ -2916,7 +2917,7 @@ U(["M", "MM"], function(e, t) {
2916
2917
  });
2917
2918
  U(["MMM", "MMMM"], function(e, t, n, s) {
2918
2919
  var r = n._locale.monthsParse(e, s, n._strict);
2919
- r != null ? t[Ee] = r : N(n).invalidMonth = e;
2920
+ r != null ? t[Ee] = r : T(n).invalidMonth = e;
2920
2921
  });
2921
2922
  var Ll = "January_February_March_April_May_June_July_August_September_October_November_December".split(
2922
2923
  "_"
@@ -2928,14 +2929,14 @@ function Wl(e, t) {
2928
2929
  return e ? ye(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[hr.test(t) ? "format" : "standalone"][e.month()] : ye(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
2929
2930
  }
2930
2931
  function Hl(e, t, n) {
2931
- var s, r, a, o = e.toLocaleLowerCase();
2932
+ var s, r, a, i = e.toLocaleLowerCase();
2932
2933
  if (!this._monthsParse)
2933
2934
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
2934
2935
  a = Oe([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
2935
2936
  a,
2936
2937
  ""
2937
2938
  ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
2938
- return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null));
2939
+ return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null));
2939
2940
  }
2940
2941
  function Fl(e, t, n) {
2941
2942
  var s, r, a;
@@ -2984,9 +2985,9 @@ function mr() {
2984
2985
  function e(l, u) {
2985
2986
  return u.length - l.length;
2986
2987
  }
2987
- var t = [], n = [], s = [], r, a, o, i;
2988
+ var t = [], n = [], s = [], r, a, i, o;
2988
2989
  for (r = 0; r < 12; r++)
2989
- a = Oe([2e3, r]), o = Pe(this.monthsShort(a, "")), i = Pe(this.months(a, "")), t.push(o), n.push(i), s.push(i), s.push(o);
2990
+ a = Oe([2e3, r]), i = Pe(this.monthsShort(a, "")), o = Pe(this.months(a, "")), t.push(i), n.push(o), s.push(o), s.push(i);
2990
2991
  t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
2991
2992
  "^(" + n.join("|") + ")",
2992
2993
  "i"
@@ -2995,9 +2996,9 @@ function mr() {
2995
2996
  "i"
2996
2997
  );
2997
2998
  }
2998
- function zl(e, t, n, s, r, a, o) {
2999
- var i;
3000
- 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;
2999
+ function zl(e, t, n, s, r, a, i) {
3000
+ var o;
3001
+ return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, r, a, i), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, r, a, i), o;
3001
3002
  }
3002
3003
  function gt(e) {
3003
3004
  var t, n;
@@ -3008,17 +3009,17 @@ function $t(e, t, n) {
3008
3009
  return -r + s - 1;
3009
3010
  }
3010
3011
  function vr(e, t, n, s, r) {
3011
- var a = (7 + n - s) % 7, o = $t(e, s, r), i = 1 + 7 * (t - 1) + a + o, l, u;
3012
- return i <= 0 ? (l = e - 1, u = _t(l) + i) : i > _t(e) ? (l = e + 1, u = i - _t(e)) : (l = e, u = i), {
3012
+ var a = (7 + n - s) % 7, i = $t(e, s, r), o = 1 + 7 * (t - 1) + a + i, l, u;
3013
+ return o <= 0 ? (l = e - 1, u = _t(l) + o) : o > _t(e) ? (l = e + 1, u = o - _t(e)) : (l = e, u = o), {
3013
3014
  year: l,
3014
3015
  dayOfYear: u
3015
3016
  };
3016
3017
  }
3017
3018
  function bt(e, t, n) {
3018
- var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, o;
3019
- return r < 1 ? (o = e.year() - 1, a = r + Le(o, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), o = e.year() + 1) : (o = e.year(), a = r), {
3019
+ var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, i;
3020
+ return r < 1 ? (i = e.year() - 1, a = r + Le(i, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), i = e.year() + 1) : (i = e.year(), a = r), {
3020
3021
  week: a,
3021
- year: o
3022
+ year: i
3022
3023
  };
3023
3024
  }
3024
3025
  function Le(e, t, n) {
@@ -3086,7 +3087,7 @@ _("dddd", function(e, t) {
3086
3087
  });
3087
3088
  Ct(["dd", "ddd", "dddd"], function(e, t, n, s) {
3088
3089
  var r = n._locale.weekdaysParse(e, s, n._strict);
3089
- r != null ? t.d = r : N(n).invalidWeekday = e;
3090
+ r != null ? t.d = r : T(n).invalidWeekday = e;
3090
3091
  });
3091
3092
  Ct(["d", "e", "E"], function(e, t, n, s) {
3092
3093
  t[s] = Y(e);
@@ -3101,18 +3102,18 @@ function jn(e, t) {
3101
3102
  return e.slice(t, 7).concat(e.slice(0, t));
3102
3103
  }
3103
3104
  var tu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), _r = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), nu = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), su = Ot, ru = Ot, au = Ot;
3104
- function ou(e, t) {
3105
+ function iu(e, t) {
3105
3106
  var n = ye(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
3106
3107
  return e === !0 ? jn(n, this._week.dow) : e ? n[e.day()] : n;
3107
3108
  }
3108
- function iu(e) {
3109
+ function ou(e) {
3109
3110
  return e === !0 ? jn(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
3110
3111
  }
3111
3112
  function lu(e) {
3112
3113
  return e === !0 ? jn(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
3113
3114
  }
3114
3115
  function uu(e, t, n) {
3115
- var s, r, a, o = e.toLocaleLowerCase();
3116
+ var s, r, a, i = e.toLocaleLowerCase();
3116
3117
  if (!this._weekdaysParse)
3117
3118
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
3118
3119
  a = Oe([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
@@ -3122,7 +3123,7 @@ function uu(e, t, n) {
3122
3123
  a,
3123
3124
  ""
3124
3125
  ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
3125
- return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 || (r = Z.call(this._shortWeekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null));
3126
+ return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 || (r = Z.call(this._shortWeekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null));
3126
3127
  }
3127
3128
  function du(e, t, n) {
3128
3129
  var s, r, a;
@@ -3182,9 +3183,9 @@ function zn() {
3182
3183
  function e(h, w) {
3183
3184
  return w.length - h.length;
3184
3185
  }
3185
- var t = [], n = [], s = [], r = [], a, o, i, l, u;
3186
+ var t = [], n = [], s = [], r = [], a, i, o, l, u;
3186
3187
  for (a = 0; a < 7; a++)
3187
- o = Oe([2e3, 1]).day(a), i = Pe(this.weekdaysMin(o, "")), l = Pe(this.weekdaysShort(o, "")), u = Pe(this.weekdays(o, "")), t.push(i), n.push(l), s.push(u), r.push(i), r.push(l), r.push(u);
3188
+ i = Oe([2e3, 1]).day(a), o = Pe(this.weekdaysMin(i, "")), l = Pe(this.weekdaysShort(i, "")), u = Pe(this.weekdays(i, "")), t.push(o), n.push(l), s.push(u), r.push(o), r.push(l), r.push(u);
3188
3189
  t.sort(e), n.sort(e), s.sort(e), r.sort(e), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
3189
3190
  "^(" + s.join("|") + ")",
3190
3191
  "i"
@@ -3239,9 +3240,9 @@ _("k", V, ct);
3239
3240
  _("HH", V, le);
3240
3241
  _("hh", V, le);
3241
3242
  _("kk", V, le);
3242
- _("hmm", ir);
3243
+ _("hmm", or);
3243
3244
  _("hmmss", lr);
3244
- _("Hmm", ir);
3245
+ _("Hmm", or);
3245
3246
  _("Hmmss", lr);
3246
3247
  U(["H", "HH"], J);
3247
3248
  U(["k", "kk"], function(e, t, n) {
@@ -3252,15 +3253,15 @@ U(["a", "A"], function(e, t, n) {
3252
3253
  n._isPm = n._locale.isPM(e), n._meridiem = e;
3253
3254
  });
3254
3255
  U(["h", "hh"], function(e, t, n) {
3255
- t[J] = Y(e), N(n).bigHour = !0;
3256
+ t[J] = Y(e), T(n).bigHour = !0;
3256
3257
  });
3257
3258
  U("hmm", function(e, t, n) {
3258
3259
  var s = e.length - 2;
3259
- t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s)), N(n).bigHour = !0;
3260
+ t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s)), T(n).bigHour = !0;
3260
3261
  });
3261
3262
  U("hmmss", function(e, t, n) {
3262
3263
  var s = e.length - 4, r = e.length - 2;
3263
- t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s, 2)), t[Re] = Y(e.substr(r)), N(n).bigHour = !0;
3264
+ t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s, 2)), t[Re] = Y(e.substr(r)), T(n).bigHour = !0;
3264
3265
  });
3265
3266
  U("Hmm", function(e, t, n) {
3266
3267
  var s = e.length - 2;
@@ -3382,9 +3383,9 @@ function Ou() {
3382
3383
  }
3383
3384
  function qn(e) {
3384
3385
  var t, n = e._a;
3385
- return n && N(e).overflow === -2 && (t = n[Ee] < 0 || n[Ee] > 11 ? Ee : n[ke] < 1 || n[ke] > Vn(n[ee], n[Ee]) ? ke : n[J] < 0 || n[J] > 24 || n[J] === 24 && (n[ve] !== 0 || n[Re] !== 0 || n[Ze] !== 0) ? J : n[ve] < 0 || n[ve] > 59 ? ve : n[Re] < 0 || n[Re] > 59 ? Re : n[Ze] < 0 || n[Ze] > 999 ? Ze : -1, N(e)._overflowDayOfYear && (t < ee || t > ke) && (t = ke), N(e)._overflowWeeks && t === -1 && (t = Dl), N(e)._overflowWeekday && t === -1 && (t = Il), N(e).overflow = t), e;
3386
+ return n && T(e).overflow === -2 && (t = n[Ee] < 0 || n[Ee] > 11 ? Ee : n[ke] < 1 || n[ke] > Vn(n[ee], n[Ee]) ? ke : n[J] < 0 || n[J] > 24 || n[J] === 24 && (n[ve] !== 0 || n[Re] !== 0 || n[Ze] !== 0) ? J : n[ve] < 0 || n[ve] > 59 ? ve : n[Re] < 0 || n[Re] > 59 ? Re : n[Ze] < 0 || n[Ze] > 999 ? Ze : -1, T(e)._overflowDayOfYear && (t < ee || t > ke) && (t = ke), T(e)._overflowWeeks && t === -1 && (t = Dl), T(e)._overflowWeekday && t === -1 && (t = Il), T(e).overflow = t), e;
3386
3387
  }
3387
- var Cu = /^\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)?)?$/, Tu = /^\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)?)?$/, Nu = /Z|[+-]\d\d(?::?\d\d)?/, Et = [
3388
+ var Cu = /^\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)?)?$/, Nu = /^\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)?)?$/, Tu = /Z|[+-]\d\d(?::?\d\d)?/, Et = [
3388
3389
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
3389
3390
  ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
3390
3391
  ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
@@ -3421,52 +3422,52 @@ var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
3421
3422
  PST: -480
3422
3423
  };
3423
3424
  function wr(e) {
3424
- var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, o, i, l, u = Et.length, h = dn.length;
3425
+ var t, n, s = e._i, r = Cu.exec(s) || Nu.exec(s), a, i, o, l, u = Et.length, h = dn.length;
3425
3426
  if (r) {
3426
- for (N(e).iso = !0, t = 0, n = u; t < n; t++)
3427
+ for (T(e).iso = !0, t = 0, n = u; t < n; t++)
3427
3428
  if (Et[t][1].exec(r[1])) {
3428
- o = Et[t][0], a = Et[t][2] !== !1;
3429
+ i = Et[t][0], a = Et[t][2] !== !1;
3429
3430
  break;
3430
3431
  }
3431
- if (o == null) {
3432
+ if (i == null) {
3432
3433
  e._isValid = !1;
3433
3434
  return;
3434
3435
  }
3435
3436
  if (r[3]) {
3436
3437
  for (t = 0, n = h; t < n; t++)
3437
3438
  if (dn[t][1].exec(r[3])) {
3438
- i = (r[2] || " ") + dn[t][0];
3439
+ o = (r[2] || " ") + dn[t][0];
3439
3440
  break;
3440
3441
  }
3441
- if (i == null) {
3442
+ if (o == null) {
3442
3443
  e._isValid = !1;
3443
3444
  return;
3444
3445
  }
3445
3446
  }
3446
- if (!a && i != null) {
3447
+ if (!a && o != null) {
3447
3448
  e._isValid = !1;
3448
3449
  return;
3449
3450
  }
3450
3451
  if (r[4])
3451
- if (Nu.exec(r[4]))
3452
+ if (Tu.exec(r[4]))
3452
3453
  l = "Z";
3453
3454
  else {
3454
3455
  e._isValid = !1;
3455
3456
  return;
3456
3457
  }
3457
- e._f = o + (i || "") + (l || ""), Xn(e);
3458
+ e._f = i + (o || "") + (l || ""), Xn(e);
3458
3459
  } else
3459
3460
  e._isValid = !1;
3460
3461
  }
3461
3462
  function Eu(e, t, n, s, r, a) {
3462
- var o = [
3463
+ var i = [
3463
3464
  Ru(e),
3464
3465
  cr.indexOf(t),
3465
3466
  parseInt(n, 10),
3466
3467
  parseInt(s, 10),
3467
3468
  parseInt(r, 10)
3468
3469
  ];
3469
- return a && o.push(parseInt(a, 10)), o;
3470
+ return a && i.push(parseInt(a, 10)), i;
3470
3471
  }
3471
3472
  function Ru(e) {
3472
3473
  var t = parseInt(e, 10);
@@ -3483,7 +3484,7 @@ function Lu(e, t, n) {
3483
3484
  t[2]
3484
3485
  ).getDay();
3485
3486
  if (s !== r)
3486
- return N(n).weekdayMismatch = !0, n._isValid = !1, !1;
3487
+ return T(n).weekdayMismatch = !0, n._isValid = !1, !1;
3487
3488
  }
3488
3489
  return !0;
3489
3490
  }
@@ -3507,7 +3508,7 @@ function kr(e) {
3507
3508
  t[7]
3508
3509
  ), !Lu(t[1], n, e))
3509
3510
  return;
3510
- e._a = n, e._tzm = Au(t[8], t[9], t[10]), e._d = gt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), N(e).rfc2822 = !0;
3511
+ e._a = n, e._tzm = Au(t[8], t[9], t[10]), e._d = gt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), T(e).rfc2822 = !0;
3511
3512
  } else
3512
3513
  e._isValid = !1;
3513
3514
  }
@@ -3545,25 +3546,25 @@ function $u(e) {
3545
3546
  ] : [t.getFullYear(), t.getMonth(), t.getDate()];
3546
3547
  }
3547
3548
  function Kn(e) {
3548
- var t, n, s = [], r, a, o;
3549
+ var t, n, s = [], r, a, i;
3549
3550
  if (!e._d) {
3550
- for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (o = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(o) || e._dayOfYear === 0) && (N(e)._overflowDayOfYear = !0), n = gt(o, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3551
+ for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (i = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(i) || e._dayOfYear === 0) && (T(e)._overflowDayOfYear = !0), n = gt(i, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3551
3552
  e._a[t] = s[t] = r[t];
3552
3553
  for (; t < 7; t++)
3553
3554
  e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
3554
3555
  e._a[J] === 24 && e._a[ve] === 0 && e._a[Re] === 0 && e._a[Ze] === 0 && (e._nextDay = !0, e._a[J] = 0), e._d = (e._useUTC ? gt : zl).apply(
3555
3556
  null,
3556
3557
  s
3557
- ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[J] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (N(e).weekdayMismatch = !0);
3558
+ ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[J] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (T(e).weekdayMismatch = !0);
3558
3559
  }
3559
3560
  }
3560
3561
  function Wu(e) {
3561
- var t, n, s, r, a, o, i, l, u;
3562
- t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, o = 4, n = nt(
3562
+ var t, n, s, r, a, i, o, l, u;
3563
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4, n = nt(
3563
3564
  t.GG,
3564
3565
  e._a[ee],
3565
3566
  bt(G(), 1, 4).year
3566
- ), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = bt(G(), a, o), n = nt(t.gg, e._a[ee], u.year), s = nt(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 > Le(n, a, o) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (i = vr(n, s, r, a, o), e._a[ee] = i.year, e._dayOfYear = i.dayOfYear);
3567
+ ), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, i = e._locale._week.doy, u = bt(G(), a, i), n = nt(t.gg, e._a[ee], u.year), s = nt(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 > Le(n, a, i) ? T(e)._overflowWeeks = !0 : l != null ? T(e)._overflowWeekday = !0 : (o = vr(n, s, r, a, i), e._a[ee] = o.year, e._dayOfYear = o.dayOfYear);
3567
3568
  }
3568
3569
  v.ISO_8601 = function() {
3569
3570
  };
@@ -3578,30 +3579,30 @@ function Xn(e) {
3578
3579
  kr(e);
3579
3580
  return;
3580
3581
  }
3581
- e._a = [], N(e).empty = !0;
3582
- var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, h;
3582
+ e._a = [], T(e).empty = !0;
3583
+ var t = "" + e._i, n, s, r, a, i, o = t.length, l = 0, u, h;
3583
3584
  for (r = rr(e._f, e._locale).match($n) || [], h = r.length, n = 0; n < h; n++)
3584
- a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && N(e).unusedInput.push(o), t = t.slice(
3585
+ a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (i = t.substr(0, t.indexOf(s)), i.length > 0 && T(e).unusedInput.push(i), t = t.slice(
3585
3586
  t.indexOf(s) + s.length
3586
- ), l += s.length), at[a] ? (s ? N(e).empty = !1 : N(e).unusedTokens.push(a), Nl(a, s, e)) : e._strict && !s && N(e).unusedTokens.push(a);
3587
- N(e).charsLeftOver = i - l, t.length > 0 && N(e).unusedInput.push(t), e._a[J] <= 12 && N(e).bigHour === !0 && e._a[J] > 0 && (N(e).bigHour = void 0), N(e).parsedDateParts = e._a.slice(0), N(e).meridiem = e._meridiem, e._a[J] = Hu(
3587
+ ), l += s.length), at[a] ? (s ? T(e).empty = !1 : T(e).unusedTokens.push(a), Tl(a, s, e)) : e._strict && !s && T(e).unusedTokens.push(a);
3588
+ T(e).charsLeftOver = o - l, t.length > 0 && T(e).unusedInput.push(t), e._a[J] <= 12 && T(e).bigHour === !0 && e._a[J] > 0 && (T(e).bigHour = void 0), T(e).parsedDateParts = e._a.slice(0), T(e).meridiem = e._meridiem, e._a[J] = Hu(
3588
3589
  e._locale,
3589
3590
  e._a[J],
3590
3591
  e._meridiem
3591
- ), u = N(e).era, u !== null && (e._a[ee] = e._locale.erasConvertYear(u, e._a[ee])), Kn(e), qn(e);
3592
+ ), u = T(e).era, u !== null && (e._a[ee] = e._locale.erasConvertYear(u, e._a[ee])), Kn(e), qn(e);
3592
3593
  }
3593
3594
  function Hu(e, t, n) {
3594
3595
  var s;
3595
3596
  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);
3596
3597
  }
3597
3598
  function Fu(e) {
3598
- var t, n, s, r, a, o, i = !1, l = e._f.length;
3599
+ var t, n, s, r, a, i, o = !1, l = e._f.length;
3599
3600
  if (l === 0) {
3600
- N(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
3601
+ T(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
3601
3602
  return;
3602
3603
  }
3603
3604
  for (r = 0; r < l; r++)
3604
- a = 0, o = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(t) && (o = !0), a += N(t).charsLeftOver, a += N(t).unusedTokens.length * 10, N(t).score = a, i ? a < s && (s = a, n = t) : (s == null || a < s || o) && (s = a, n = t, o && (i = !0));
3605
+ a = 0, i = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(t) && (i = !0), a += T(t).charsLeftOver, a += T(t).unusedTokens.length * 10, T(t).score = a, o ? a < s && (s = a, n = t) : (s == null || a < s || i) && (s = a, n = t, i && (o = !0));
3605
3606
  Fe(e, n || t);
3606
3607
  }
3607
3608
  function Gu(e) {
@@ -3698,10 +3699,10 @@ function Qu() {
3698
3699
  return be(NaN);
3699
3700
  }
3700
3701
  function en(e) {
3701
- var t = Wn(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, h = t.millisecond || 0;
3702
+ var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, i = t.day || 0, o = t.hour || 0, l = t.minute || 0, u = t.second || 0, h = t.millisecond || 0;
3702
3703
  this._isValid = Xu(t), this._milliseconds = +h + u * 1e3 + // 1000
3703
3704
  l * 6e4 + // 1000 * 60
3704
- i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3705
+ o * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3705
3706
  }
3706
3707
  function Lt(e) {
3707
3708
  return e instanceof en;
@@ -3710,9 +3711,9 @@ function wn(e) {
3710
3711
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
3711
3712
  }
3712
3713
  function ed(e, t, n) {
3713
- var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, o;
3714
- for (o = 0; o < s; o++)
3715
- Y(e[o]) !== Y(t[o]) && a++;
3714
+ var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, i;
3715
+ for (i = 0; i < s; i++)
3716
+ Y(e[i]) !== Y(t[i]) && a++;
3716
3717
  return a + r;
3717
3718
  }
3718
3719
  function Or(e, t) {
@@ -3751,7 +3752,7 @@ function nd(e, t, n) {
3751
3752
  if (e = Jn(Xt, e), e === null)
3752
3753
  return this;
3753
3754
  } else Math.abs(e) < 16 && !n && (e = e * 60);
3754
- return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ? Nr(
3755
+ return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ? Tr(
3755
3756
  this,
3756
3757
  be(e - s, "m"),
3757
3758
  1,
@@ -3769,7 +3770,7 @@ function rd(e) {
3769
3770
  function ad(e) {
3770
3771
  return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(kn(this), "m")), this;
3771
3772
  }
3772
- function od() {
3773
+ function id() {
3773
3774
  if (this._tzm != null)
3774
3775
  this.utcOffset(this._tzm, !1, !0);
3775
3776
  else if (typeof this._i == "string") {
@@ -3778,7 +3779,7 @@ function od() {
3778
3779
  }
3779
3780
  return this;
3780
3781
  }
3781
- function id(e) {
3782
+ function od(e) {
3782
3783
  return this.isValid() ? (e = e ? G(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
3783
3784
  }
3784
3785
  function ld() {
@@ -3801,7 +3802,7 @@ function Cr() {
3801
3802
  }
3802
3803
  var hd = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, fd = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
3803
3804
  function be(e, t) {
3804
- var n = e, s = null, r, a, o;
3805
+ var n = e, s = null, r, a, i;
3805
3806
  return Lt(e) ? n = {
3806
3807
  ms: e._milliseconds,
3807
3808
  d: e._days,
@@ -3822,10 +3823,10 @@ function be(e, t) {
3822
3823
  h: Be(s[6], r),
3823
3824
  m: Be(s[7], r),
3824
3825
  s: Be(s[8], r)
3825
- }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = pd(
3826
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (i = pd(
3826
3827
  G(n.from),
3827
3828
  G(n.to)
3828
- ), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
3829
+ ), n = {}, n.ms = i.milliseconds, n.M = i.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
3829
3830
  }
3830
3831
  be.fn = en.prototype;
3831
3832
  be.invalid = Qu;
@@ -3841,20 +3842,20 @@ function pd(e, t) {
3841
3842
  var n;
3842
3843
  return e.isValid() && t.isValid() ? (t = Qn(t, e), e.isBefore(t) ? n = hs(e, t) : (n = hs(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
3843
3844
  }
3844
- function Tr(e, t) {
3845
+ function Nr(e, t) {
3845
3846
  return function(n, s) {
3846
3847
  var r, a;
3847
3848
  return s !== null && !isNaN(+s) && (sr(
3848
3849
  t,
3849
3850
  "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
3850
- ), a = n, n = s, s = a), r = be(n, s), Nr(this, r, e), this;
3851
+ ), a = n, n = s, s = a), r = be(n, s), Tr(this, r, e), this;
3851
3852
  };
3852
3853
  }
3853
- function Nr(e, t, n, s) {
3854
- var r = t._milliseconds, a = wn(t._days), o = wn(t._months);
3855
- e.isValid() && (s = s ?? !0, o && fr(e, yt(e, "Month") + o * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || o));
3854
+ function Tr(e, t, n, s) {
3855
+ var r = t._milliseconds, a = wn(t._days), i = wn(t._months);
3856
+ e.isValid() && (s = s ?? !0, i && fr(e, yt(e, "Month") + i * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || i));
3856
3857
  }
3857
- var md = Tr(1, "add"), vd = Tr(-1, "subtract");
3858
+ var md = Nr(1, "add"), vd = Nr(-1, "subtract");
3858
3859
  function Dr(e) {
3859
3860
  return typeof e == "string" || e instanceof String;
3860
3861
  }
@@ -3887,8 +3888,8 @@ function yd(e) {
3887
3888
  "milliseconds",
3888
3889
  "millisecond",
3889
3890
  "ms"
3890
- ], r, a, o = s.length;
3891
- for (r = 0; r < o; r += 1)
3891
+ ], r, a, i = s.length;
3892
+ for (r = 0; r < i; r += 1)
3892
3893
  a = s[r], n = n || P(e, a);
3893
3894
  return t && n;
3894
3895
  }
@@ -3941,10 +3942,10 @@ function Cd(e, t) {
3941
3942
  var n = ge(e) ? e : G(e), s;
3942
3943
  return this.isValid() && n.isValid() ? (t = pe(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
3943
3944
  }
3944
- function Td(e, t) {
3945
+ function Nd(e, t) {
3945
3946
  return this.isSame(e, t) || this.isAfter(e, t);
3946
3947
  }
3947
- function Nd(e, t) {
3948
+ function Td(e, t) {
3948
3949
  return this.isSame(e, t) || this.isBefore(e, t);
3949
3950
  }
3950
3951
  function Dd(e, t, n) {
@@ -4047,8 +4048,8 @@ var Yr = fe(
4047
4048
  function Er() {
4048
4049
  return this._locale;
4049
4050
  }
4050
- var Wt = 1e3, ot = 60 * Wt, Ht = 60 * ot, Rr = (365 * 400 + 97) * 24 * Ht;
4051
- function it(e, t) {
4051
+ var Wt = 1e3, it = 60 * Wt, Ht = 60 * it, Rr = (365 * 400 + 97) * 24 * Ht;
4052
+ function ot(e, t) {
4052
4053
  return (e % t + t) % t;
4053
4054
  }
4054
4055
  function Pr(e, t, n) {
@@ -4094,16 +4095,16 @@ function $d(e) {
4094
4095
  t = n(this.year(), this.month(), this.date());
4095
4096
  break;
4096
4097
  case "hour":
4097
- t = this._d.valueOf(), t -= it(
4098
- t + (this._isUTC ? 0 : this.utcOffset() * ot),
4098
+ t = this._d.valueOf(), t -= ot(
4099
+ t + (this._isUTC ? 0 : this.utcOffset() * it),
4099
4100
  Ht
4100
4101
  );
4101
4102
  break;
4102
4103
  case "minute":
4103
- t = this._d.valueOf(), t -= it(t, ot);
4104
+ t = this._d.valueOf(), t -= ot(t, it);
4104
4105
  break;
4105
4106
  case "second":
4106
- t = this._d.valueOf(), t -= it(t, Wt);
4107
+ t = this._d.valueOf(), t -= ot(t, Wt);
4107
4108
  break;
4108
4109
  }
4109
4110
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4145,16 +4146,16 @@ function Wd(e) {
4145
4146
  t = n(this.year(), this.month(), this.date() + 1) - 1;
4146
4147
  break;
4147
4148
  case "hour":
4148
- t = this._d.valueOf(), t += Ht - it(
4149
- t + (this._isUTC ? 0 : this.utcOffset() * ot),
4149
+ t = this._d.valueOf(), t += Ht - ot(
4150
+ t + (this._isUTC ? 0 : this.utcOffset() * it),
4150
4151
  Ht
4151
4152
  ) - 1;
4152
4153
  break;
4153
4154
  case "minute":
4154
- t = this._d.valueOf(), t += ot - it(t, ot) - 1;
4155
+ t = this._d.valueOf(), t += it - ot(t, it) - 1;
4155
4156
  break;
4156
4157
  case "second":
4157
- t = this._d.valueOf(), t += Wt - it(t, Wt) - 1;
4158
+ t = this._d.valueOf(), t += Wt - ot(t, Wt) - 1;
4158
4159
  break;
4159
4160
  }
4160
4161
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4199,10 +4200,10 @@ function Bd() {
4199
4200
  return Ln(this);
4200
4201
  }
4201
4202
  function Zd() {
4202
- return Fe({}, N(this));
4203
+ return Fe({}, T(this));
4203
4204
  }
4204
4205
  function qd() {
4205
- return N(this).overflow;
4206
+ return T(this).overflow;
4206
4207
  }
4207
4208
  function Kd() {
4208
4209
  return {
@@ -4225,13 +4226,13 @@ x("y", ["yyyy", 4], 0, "eraYear");
4225
4226
  _("N", es);
4226
4227
  _("NN", es);
4227
4228
  _("NNN", es);
4228
- _("NNNN", ic);
4229
+ _("NNNN", oc);
4229
4230
  _("NNNNN", lc);
4230
4231
  U(
4231
4232
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
4232
4233
  function(e, t, n, s) {
4233
4234
  var r = n._locale.erasParse(e, s, n._strict);
4234
- r ? N(n).era = r : N(n).invalidEra = e;
4235
+ r ? T(n).era = r : T(n).invalidEra = e;
4235
4236
  }
4236
4237
  );
4237
4238
  _("y", dt);
@@ -4258,18 +4259,18 @@ function Xd(e, t) {
4258
4259
  return a;
4259
4260
  }
4260
4261
  function Jd(e, t, n) {
4261
- var s, r, a = this.eras(), o, i, l;
4262
+ var s, r, a = this.eras(), i, o, l;
4262
4263
  for (e = e.toUpperCase(), s = 0, r = a.length; s < r; ++s)
4263
- if (o = a[s].name.toUpperCase(), i = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4264
+ if (i = a[s].name.toUpperCase(), o = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4264
4265
  switch (t) {
4265
4266
  case "N":
4266
4267
  case "NN":
4267
4268
  case "NNN":
4268
- if (i === e)
4269
+ if (o === e)
4269
4270
  return a[s];
4270
4271
  break;
4271
4272
  case "NNNN":
4272
- if (o === e)
4273
+ if (i === e)
4273
4274
  return a[s];
4274
4275
  break;
4275
4276
  case "NNNNN":
@@ -4277,7 +4278,7 @@ function Jd(e, t, n) {
4277
4278
  return a[s];
4278
4279
  break;
4279
4280
  }
4280
- else if ([o, i, l].indexOf(e) >= 0)
4281
+ else if ([i, o, l].indexOf(e) >= 0)
4281
4282
  return a[s];
4282
4283
  }
4283
4284
  function Qd(e, t) {
@@ -4318,13 +4319,13 @@ function rc(e) {
4318
4319
  function ac(e) {
4319
4320
  return P(this, "_erasAbbrRegex") || ts.call(this), e ? this._erasAbbrRegex : this._erasRegex;
4320
4321
  }
4321
- function oc(e) {
4322
+ function ic(e) {
4322
4323
  return P(this, "_erasNarrowRegex") || ts.call(this), e ? this._erasNarrowRegex : this._erasRegex;
4323
4324
  }
4324
4325
  function es(e, t) {
4325
4326
  return t.erasAbbrRegex(e);
4326
4327
  }
4327
- function ic(e, t) {
4328
+ function oc(e, t) {
4328
4329
  return t.erasNameRegex(e);
4329
4330
  }
4330
4331
  function lc(e, t) {
@@ -4334,9 +4335,9 @@ function uc(e, t) {
4334
4335
  return t._eraYearOrdinalRegex || dt;
4335
4336
  }
4336
4337
  function ts() {
4337
- var e = [], t = [], n = [], s = [], r, a, o, i, l, u = this.eras();
4338
+ var e = [], t = [], n = [], s = [], r, a, i, o, l, u = this.eras();
4338
4339
  for (r = 0, a = u.length; r < a; ++r)
4339
- o = Pe(u[r].name), i = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(o), e.push(i), n.push(l), s.push(o), s.push(i), s.push(l);
4340
+ i = Pe(u[r].name), o = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(i), e.push(o), n.push(l), s.push(i), s.push(o), s.push(l);
4340
4341
  this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
4341
4342
  "^(" + n.join("|") + ")",
4342
4343
  "i"
@@ -4411,8 +4412,8 @@ function Ar(e, t, n, s, r) {
4411
4412
  return e == null ? bt(this, s, r).year : (a = Le(e, s, r), t > a && (t = a), vc.call(this, e, t, n, s, r));
4412
4413
  }
4413
4414
  function vc(e, t, n, s, r) {
4414
- var a = vr(e, t, n, s, r), o = gt(a.year, 0, a.dayOfYear);
4415
- return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
4415
+ var a = vr(e, t, n, s, r), i = gt(a.year, 0, a.dayOfYear);
4416
+ return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
4416
4417
  }
4417
4418
  x("Q", 0, "Qo", "quarter");
4418
4419
  _("Q", ar);
@@ -4435,7 +4436,7 @@ U("Do", function(e, t) {
4435
4436
  var Ur = ht("Date", !0);
4436
4437
  x("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
4437
4438
  _("DDD", Zt);
4438
- _("DDDD", or);
4439
+ _("DDDD", ir);
4439
4440
  U(["DDD", "DDDD"], function(e, t, n) {
4440
4441
  n._dayOfYear = Y(e);
4441
4442
  });
@@ -4482,7 +4483,7 @@ x(0, ["SSSSSSSSS", 9], 0, function() {
4482
4483
  });
4483
4484
  _("S", Zt, ar);
4484
4485
  _("SS", Zt, le);
4485
- _("SSS", Zt, or);
4486
+ _("SSS", Zt, ir);
4486
4487
  var Ge, $r;
4487
4488
  for (Ge = "SSSS"; Ge.length <= 9; Ge += "S")
4488
4489
  _(Ge, dt);
@@ -4517,8 +4518,8 @@ d.isAfter = Sd;
4517
4518
  d.isBefore = xd;
4518
4519
  d.isBetween = Od;
4519
4520
  d.isSame = Cd;
4520
- d.isSameOrAfter = Td;
4521
- d.isSameOrBefore = Nd;
4521
+ d.isSameOrAfter = Nd;
4522
+ d.isSameOrBefore = Td;
4522
4523
  d.isValid = Bd;
4523
4524
  d.lang = Yr;
4524
4525
  d.locale = Ir;
@@ -4571,8 +4572,8 @@ d.millisecond = d.milliseconds = $r;
4571
4572
  d.utcOffset = nd;
4572
4573
  d.utc = rd;
4573
4574
  d.local = ad;
4574
- d.parseZone = od;
4575
- d.hasAlignedHourOffset = id;
4575
+ d.parseZone = id;
4576
+ d.hasAlignedHourOffset = od;
4576
4577
  d.isDST = ld;
4577
4578
  d.isLocal = dd;
4578
4579
  d.isUtcOffset = cd;
@@ -4624,7 +4625,7 @@ L.erasParse = Jd;
4624
4625
  L.erasConvertYear = Qd;
4625
4626
  L.erasAbbrRegex = ac;
4626
4627
  L.erasNameRegex = rc;
4627
- L.erasNarrowRegex = oc;
4628
+ L.erasNarrowRegex = ic;
4628
4629
  L.months = $l;
4629
4630
  L.monthsShort = Wl;
4630
4631
  L.monthsParse = Fl;
@@ -4633,9 +4634,9 @@ L.monthsShortRegex = Vl;
4633
4634
  L.week = Bl;
4634
4635
  L.firstDayOfYear = Kl;
4635
4636
  L.firstDayOfWeek = ql;
4636
- L.weekdays = ou;
4637
+ L.weekdays = iu;
4637
4638
  L.weekdaysMin = lu;
4638
- L.weekdaysShort = iu;
4639
+ L.weekdaysShort = ou;
4639
4640
  L.weekdaysParse = du;
4640
4641
  L.weekdaysRegex = pu;
4641
4642
  L.weekdaysShortRegex = mu;
@@ -4656,12 +4657,12 @@ function Hr(e, t, n) {
4656
4657
  }
4657
4658
  function ns(e, t, n, s) {
4658
4659
  typeof e == "boolean" ? (Ue(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, Ue(t) && (n = t, t = void 0), t = t || "");
4659
- var r = $e(), a = e ? r._week.dow : 0, o, i = [];
4660
+ var r = $e(), a = e ? r._week.dow : 0, i, o = [];
4660
4661
  if (n != null)
4661
4662
  return Ft(t, (n + a) % 7, s, "day");
4662
- for (o = 0; o < 7; o++)
4663
- i[o] = Ft(t, (o + a) % 7, s, "day");
4664
- return i;
4663
+ for (i = 0; i < 7; i++)
4664
+ o[i] = Ft(t, (i + a) % 7, s, "day");
4665
+ return o;
4665
4666
  }
4666
4667
  function Oc(e, t) {
4667
4668
  return Hr(e, t, "months");
@@ -4669,10 +4670,10 @@ function Oc(e, t) {
4669
4670
  function Cc(e, t) {
4670
4671
  return Hr(e, t, "monthsShort");
4671
4672
  }
4672
- function Tc(e, t, n) {
4673
+ function Nc(e, t, n) {
4673
4674
  return ns(e, t, n, "weekdays");
4674
4675
  }
4675
- function Nc(e, t, n) {
4676
+ function Tc(e, t, n) {
4676
4677
  return ns(e, t, n, "weekdaysShort");
4677
4678
  }
4678
4679
  function Dc(e, t, n) {
@@ -4730,8 +4731,8 @@ function fs(e) {
4730
4731
  return e < 0 ? Math.floor(e) : Math.ceil(e);
4731
4732
  }
4732
4733
  function Rc() {
4733
- var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, o, i, l;
4734
- return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(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(Gr(t)), n += l, t -= fs(Mn(l)), i = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = i, this;
4734
+ var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, i, o, l;
4735
+ return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(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, i = de(a / 60), s.hours = i % 24, t += de(i / 24), l = de(Gr(t)), n += l, t -= fs(Mn(l)), o = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
4735
4736
  }
4736
4737
  function Gr(e) {
4737
4738
  return e * 4800 / 146097;
@@ -4812,7 +4813,7 @@ function th(e, t, n, s, r) {
4812
4813
  return r.relativeTime(t || 1, !!n, e, s);
4813
4814
  }
4814
4815
  function nh(e, t, n, s) {
4815
- var r = be(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")), h = Ie(r.as("w")), 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];
4816
+ var r = be(e).abs(), a = Ie(r.as("s")), i = Ie(r.as("m")), o = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), h = Ie(r.as("w")), w = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || i <= 1 && ["m"] || i < n.m && ["mm", i] || o <= 1 && ["h"] || o < n.h && ["hh", o] || l <= 1 && ["d"] || l < n.d && ["dd", l];
4816
4817
  return n.w != null && (p = p || h <= 1 && ["w"] || h < n.w && ["ww", h]), p = p || u <= 1 && ["M"] || u < n.M && ["MM", u] || w <= 1 && ["y"] || ["yy", w], p[2] = t, p[3] = +e > 0, p[4] = s, th.apply(null, p);
4817
4818
  }
4818
4819
  function sh(e) {
@@ -4834,8 +4835,8 @@ function tt(e) {
4834
4835
  function nn() {
4835
4836
  if (!this.isValid())
4836
4837
  return this.localeData().invalidDate();
4837
- var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, o, i = this.asSeconds(), l, u, h, w;
4838
- 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 = tt(this._months) !== tt(i) ? "-" : "", h = tt(this._days) !== tt(i) ? "-" : "", w = tt(this._milliseconds) !== tt(i) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? w + r + "H" : "") + (s ? w + s + "M" : "") + (e ? w + o + "S" : "")) : "P0D";
4838
+ var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, i, o = this.asSeconds(), l, u, h, w;
4839
+ return o ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = o < 0 ? "-" : "", u = tt(this._months) !== tt(o) ? "-" : "", h = tt(this._days) !== tt(o) ? "-" : "", w = tt(this._milliseconds) !== tt(o) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? w + r + "H" : "") + (s ? w + s + "M" : "") + (e ? w + i + "S" : "")) : "P0D";
4839
4840
  }
4840
4841
  var E = en.prototype;
4841
4842
  E.isValid = Ju;
@@ -4886,7 +4887,7 @@ U("x", function(e, t, n) {
4886
4887
  n._d = new Date(Y(e));
4887
4888
  });
4888
4889
  v.version = "2.30.1";
4889
- ol(G);
4890
+ il(G);
4890
4891
  v.fn = d;
4891
4892
  v.min = Zu;
4892
4893
  v.max = qu;
@@ -4899,7 +4900,7 @@ v.locale = Ve;
4899
4900
  v.invalid = zt;
4900
4901
  v.duration = be;
4901
4902
  v.isMoment = ge;
4902
- v.weekdays = Tc;
4903
+ v.weekdays = Nc;
4903
4904
  v.parseZone = xc;
4904
4905
  v.localeData = $e;
4905
4906
  v.isDuration = Lt;
@@ -4908,7 +4909,7 @@ v.weekdaysMin = Dc;
4908
4909
  v.defineLocale = Zn;
4909
4910
  v.updateLocale = xu;
4910
4911
  v.locales = Ou;
4911
- v.weekdaysShort = Nc;
4912
+ v.weekdaysShort = Tc;
4912
4913
  v.normalizeUnits = pe;
4913
4914
  v.relativeTimeRounding = sh;
4914
4915
  v.relativeTimeThreshold = rh;
@@ -4934,11 +4935,11 @@ v.HTML5_FMT = {
4934
4935
  MONTH: "YYYY-MM"
4935
4936
  // <input type="month" />
4936
4937
  };
4937
- const oh = "code-graph", ih = (e, t = "", n = "json") => {
4938
+ const ih = "code-graph", oh = (e, t = "", n = "json") => {
4938
4939
  const s = document.createElement("a");
4939
4940
  s.setAttribute("href", `data:text/${n};charset=UTF-8,${encodeURIComponent(e)}`);
4940
4941
  const r = v().format("YYMMDD_HHMMSS");
4941
- s.setAttribute("download", `${oh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4942
+ s.setAttribute("download", `${ih}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4942
4943
  }, lh = (e = "json") => {
4943
4944
  const t = document.createElement("input");
4944
4945
  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;
@@ -4952,7 +4953,7 @@ const oh = "code-graph", ih = (e, t = "", n = "json") => {
4952
4953
  }), t.registerCommand(zr, {
4953
4954
  execute: () => {
4954
4955
  const r = e.value.editor.save();
4955
- ih(JSON.stringify(r, null, 2), e.value.shortId);
4956
+ oh(JSON.stringify(r, null, 2), e.value.shortId);
4956
4957
  },
4957
4958
  canExecute: () => e.value.nodes.length > 0
4958
4959
  }), t.registerCommand(Br, {
@@ -4970,15 +4971,15 @@ const oh = "code-graph", ih = (e, t = "", n = "json") => {
4970
4971
  document.body.removeChild(r);
4971
4972
  const a = r.files;
4972
4973
  if (!a || a.length <= 0) return !1;
4973
- const o = new FileReader();
4974
- o.onload = (i) => {
4975
- if (i.target?.result) {
4976
- const l = i.target.result;
4974
+ const i = new FileReader();
4975
+ i.onload = (o) => {
4976
+ if (o.target?.result) {
4977
+ const l = o.target.result;
4977
4978
  if (l.length === 0) return;
4978
4979
  const u = JSON.parse(l);
4979
4980
  e.value.editor.load(u), e.value.code?.engine?.runOnce(null);
4980
4981
  }
4981
- }, o.readAsText(a.item(0));
4982
+ }, i.readAsText(a.item(0));
4982
4983
  });
4983
4984
  },
4984
4985
  canExecute: () => !0
@@ -5000,7 +5001,7 @@ const oh = "code-graph", ih = (e, t = "", n = "json") => {
5000
5001
  command: Zr,
5001
5002
  title: "Toggle palette",
5002
5003
  icon: z(
5003
- () => e.palette.enabled ? Es : Tn
5004
+ () => e.palette.enabled ? Es : Nn
5004
5005
  )
5005
5006
  }, a = {
5006
5007
  command: qr,
@@ -5150,7 +5151,7 @@ class sn extends Ya {
5150
5151
  */
5151
5152
  getNodesByVariableName(t) {
5152
5153
  return this.nodes.filter(
5153
- (n) => n.state?.variableName === t
5154
+ (n) => [n.state.variableName, n._variableName].includes(t)
5154
5155
  );
5155
5156
  }
5156
5157
  /**
@@ -5304,18 +5305,18 @@ function mh(e) {
5304
5305
  if (!s.engine || typeof s.engine != "object")
5305
5306
  throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);
5306
5307
  const r = s.engine.getInputValues(this.subgraph);
5307
- for (const i of this.subgraph.inputs)
5308
- r.set(i.nodeInterfaceId, n[i.id]);
5308
+ for (const o of this.subgraph.inputs)
5309
+ r.set(o.nodeInterfaceId, n[o.id]);
5309
5310
  const a = await s.engine.runGraph(
5310
5311
  this.subgraph,
5311
5312
  r,
5312
5313
  s.globalValues
5313
5314
  );
5314
5315
  s.engine.pause(), Cs(a, s.engine.editor), s.engine.resume();
5315
- const o = {};
5316
- for (const i of this.subgraph.outputs)
5317
- o[i.id] = a.get(i.nodeId)?.get("output");
5318
- return o._calculationResults = a, this.lockCode || (o._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(o), o;
5316
+ const i = {};
5317
+ for (const o of this.subgraph.outputs)
5318
+ i[o.id] = a.get(o.nodeId)?.get("output");
5319
+ return i._calculationResults = a, this.lockCode || (i._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(i), i;
5319
5320
  };
5320
5321
  load(n) {
5321
5322
  if (!this.subgraph) throw new Error("Cannot load a graph node without a graph");
@@ -5359,10 +5360,10 @@ function mh(e) {
5359
5360
  this.subgraph.outputs.some((s) => s.id === n) || this.removeOutput(n);
5360
5361
  this.addInput(
5361
5362
  "_code",
5362
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5363
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5363
5364
  ), this.addOutput(
5364
5365
  "_code",
5365
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5366
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5366
5367
  ), this.addOutput("_calculationResults", new Se("_calculationResults", void 0).setHidden(!0));
5367
5368
  }
5368
5369
  /**
@@ -5371,19 +5372,19 @@ function mh(e) {
5371
5372
  * These properties should be proxied to the subgraph interface, so they behave the same as the original interface.
5372
5373
  */
5373
5374
  createProxyInterface(n, s) {
5374
- const r = new ie(n.name, void 0);
5375
+ const r = new oe(n.name, void 0);
5375
5376
  return new Proxy(r, {
5376
- get: (a, o) => {
5377
- if (ph.includes(o) || o in a || typeof o == "string" && o.startsWith("__v_"))
5378
- return Reflect.get(a, o);
5379
- let i;
5380
- s ? i = this.subgraph?.nodes.find(
5377
+ get: (a, i) => {
5378
+ if (ph.includes(i) || i in a || typeof i == "string" && i.startsWith("__v_"))
5379
+ return Reflect.get(a, i);
5380
+ let o;
5381
+ s ? o = this.subgraph?.nodes.find(
5381
5382
  (w) => Jr.isGraphInputNode(w) && w.graphInterfaceId === n.id
5382
- )?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
5383
+ )?.outputs.placeholder.id : o = this.subgraph?.nodes.find(
5383
5384
  (w) => Qr.isGraphOutputNode(w) && w.graphInterfaceId === n.id
5384
5385
  )?.inputs.placeholder.id;
5385
- const l = this.subgraph?.connections.find((h) => i === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
5386
- if (u) return Reflect.get(u, o);
5386
+ const l = this.subgraph?.connections.find((h) => o === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
5387
+ if (u) return Reflect.get(u, i);
5387
5388
  }
5388
5389
  });
5389
5390
  }
@@ -5412,16 +5413,16 @@ class rn extends Ea {
5412
5413
  const I = n.get(p);
5413
5414
  if (!I) throw new Error(`Unable to create graph from template: Could not map old id ${p} to new id`);
5414
5415
  return I;
5415
- }, a = (p) => Ei(p, (I) => ({
5416
+ }, a = (p) => Eo(p, (I) => ({
5416
5417
  id: s(I.id),
5417
5418
  templateId: I.id,
5418
5419
  value: I.value
5419
- })), o = this.nodes.map((p) => ({
5420
+ })), i = this.nodes.map((p) => ({
5420
5421
  ...p,
5421
5422
  id: s(p.id),
5422
5423
  inputs: a(p.inputs),
5423
5424
  outputs: a(p.outputs)
5424
- })), i = this.connections.map((p) => ({
5425
+ })), o = this.connections.map((p) => ({
5425
5426
  id: s(p.id),
5426
5427
  from: r(p.from),
5427
5428
  to: r(p.to)
@@ -5437,8 +5438,8 @@ class rn extends Ea {
5437
5438
  nodeInterfaceId: r(p.nodeInterfaceId)
5438
5439
  })), h = {
5439
5440
  id: Xe(),
5440
- nodes: o,
5441
- connections: i,
5441
+ nodes: i,
5442
+ connections: o,
5442
5443
  inputs: l,
5443
5444
  outputs: u
5444
5445
  };
@@ -5464,36 +5465,36 @@ function _h(e, t) {
5464
5465
  class ea extends Jr {
5465
5466
  _title = "Subgraph Input";
5466
5467
  inputs = {
5467
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5468
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5468
5469
  name: new xs("Name", "Input").setPort(!1)
5469
5470
  };
5470
5471
  outputs = {
5471
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5472
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5472
5473
  placeholder: new Se("Connection", void 0)
5473
5474
  };
5474
5475
  }
5475
5476
  class ta extends Qr {
5476
5477
  _title = "Subgraph Output";
5477
5478
  inputs = {
5478
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5479
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5479
5480
  name: new xs("Name", "Output").setPort(!1),
5480
5481
  placeholder: new Se("Connection", void 0)
5481
5482
  };
5482
5483
  outputs = {
5483
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5484
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5484
5485
  output: new Se("Output", void 0).setHidden(!0)
5485
5486
  };
5486
5487
  }
5487
5488
  const yh = "CREATE_SUBGRAPH", vs = [Ra, Pa];
5488
5489
  function gh(e, t, n) {
5489
5490
  const s = () => e.value.selectedNodes.filter((a) => !vs.includes(a.type)).length > 0, r = () => {
5490
- const { viewModel: a } = kt(), o = e.value, i = e.value.editor;
5491
- if (o.selectedNodes.length === 0) return;
5492
- const l = o.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), w = o.connections.filter(
5491
+ const { viewModel: a } = kt(), i = e.value, o = e.value.editor;
5492
+ if (i.selectedNodes.length === 0) return;
5493
+ const l = i.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), w = i.connections.filter(
5493
5494
  (C) => !h.includes(C.from) && u.includes(C.to)
5494
- ), p = o.connections.filter(
5495
+ ), p = i.connections.filter(
5495
5496
  (C) => h.includes(C.from) && !u.includes(C.to)
5496
- ), I = o.connections.filter(
5497
+ ), I = i.connections.filter(
5497
5498
  (C) => h.includes(C.from) && u.includes(C.to)
5498
5499
  ), y = l.map((C) => C.save()), O = I.map((C) => ({
5499
5500
  id: C.id,
@@ -5523,25 +5524,25 @@ function gh(e, t, n) {
5523
5524
  inputs: [],
5524
5525
  outputs: []
5525
5526
  },
5526
- i
5527
+ o
5527
5528
  )
5528
5529
  );
5529
- i.addGraphTemplate(F);
5530
- const Te = i.nodeTypes.get(Os(F));
5531
- if (!Te) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
5532
- o.activeTransactions++;
5533
- const Ne = Ae(new Te.type());
5534
- o.addNode(Ne);
5530
+ o.addGraphTemplate(F);
5531
+ const Ne = o.nodeTypes.get(Os(F));
5532
+ if (!Ne) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
5533
+ i.activeTransactions++;
5534
+ const Te = Ae(new Ne.type());
5535
+ i.addNode(Te);
5535
5536
  const ft = Math.round(
5536
5537
  l.map((C) => C.position.x).reduce((C, Q) => C + Q, 0) / l.length
5537
5538
  ), we = Math.round(
5538
5539
  l.map((C) => C.position.y).reduce((C, Q) => C + Q, 0) / l.length
5539
5540
  );
5540
- Ne.position.x = ft, Ne.position.y = we, w.forEach((C) => {
5541
- o.removeConnection(C), o.addConnection(C.from, Ne.inputs[c.get(C.to.id)]);
5541
+ Te.position.x = ft, Te.position.y = we, w.forEach((C) => {
5542
+ i.removeConnection(C), i.addConnection(C.from, Te.inputs[c.get(C.to.id)]);
5542
5543
  }), p.forEach((C) => {
5543
- o.removeConnection(C), o.addConnection(Ne.outputs[c.get(C.from.id)], C.to);
5544
- }), l.forEach((C) => o.removeNode(C)), o.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...o.panning }, e.value.scaling = o.scaling;
5544
+ i.removeConnection(C), i.addConnection(Te.outputs[c.get(C.from.id)], C.to);
5545
+ }), l.forEach((C) => i.removeNode(C)), i.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...i.panning }, e.value.scaling = i.scaling;
5545
5546
  };
5546
5547
  t.registerCommand(yh, {
5547
5548
  canExecute: s,
@@ -5550,15 +5551,15 @@ function gh(e, t, n) {
5550
5551
  }
5551
5552
  function bh(e) {
5552
5553
  const t = e.reduce((r, a) => {
5553
- const o = a.position.x;
5554
- return o < r ? o : r;
5554
+ const i = a.position.x;
5555
+ return i < r ? i : r;
5555
5556
  }, 1 / 0), n = e.reduce((r, a) => {
5556
- const o = a.position.y;
5557
- return o < r ? o : r;
5557
+ const i = a.position.y;
5558
+ return i < r ? i : r;
5558
5559
  }, 1 / 0);
5559
5560
  return { xLeft: e.reduce((r, a) => {
5560
- const o = a.position.x + a.width;
5561
- return o > r ? o : r;
5561
+ const i = a.position.x + a.width;
5562
+ return i > r ? i : r;
5562
5563
  }, -1 / 0), xRight: t, yTop: n };
5563
5564
  }
5564
5565
  class wh extends La {
@@ -5614,13 +5615,13 @@ class wh extends La {
5614
5615
  }
5615
5616
  }
5616
5617
  function Zh(e) {
5617
- const t = oe(e?.code ?? new Rn()), n = oe(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = oe(null), a = la(r), { switchGraph: o } = _h(n, r), i = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
5618
+ const t = ie(e?.code ?? new Rn()), n = ie(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = ie(null), a = la(r), { switchGraph: i } = _h(n, r), o = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
5618
5619
  l.nodes.defaultWidth = ss;
5619
5620
  const u = wa(), h = ka(a, u), w = Ma(a, n, u), p = {
5620
5621
  /** Called whenever a node is rendered */
5621
- renderNode: new os(null),
5622
+ renderNode: new is(null),
5622
5623
  /** Called whenever an interface is rendered */
5623
- renderInterface: new os(null)
5624
+ renderInterface: new is(null)
5624
5625
  }, I = Ae({
5625
5626
  clipboard: w,
5626
5627
  code: t,
@@ -5630,21 +5631,21 @@ function Zh(e) {
5630
5631
  history: h,
5631
5632
  hooks: p,
5632
5633
  isReady: !1,
5633
- isSubgraph: i,
5634
+ isSubgraph: o,
5634
5635
  onBeforeUnmount: () => {
5635
5636
  },
5636
5637
  onMounted: () => {
5637
5638
  },
5638
5639
  settings: l,
5639
- switchGraph: o
5640
+ switchGraph: i
5640
5641
  });
5641
- return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, o), xa(a, u), Oa(a, u, o), Ca(a, u), Ta(a, u, l), dh(a, u, l), ch(l), gs(
5642
+ return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, i), xa(a, u), Oa(a, u, i), Ca(a, u), Na(a, u, l), dh(a, u, l), ch(l), gs(
5642
5643
  n,
5643
5644
  (y, O) => {
5644
5645
  O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), y.nodeHooks.beforeLoad.unsubscribe(s), y.nodeHooks.afterSave.unsubscribe(s), y.graphTemplateHooks.beforeLoad.unsubscribe(s), y.graphTemplateHooks.afterSave.unsubscribe(s), y.graph.hooks.load.unsubscribe(s), y.graph.hooks.save.unsubscribe(s)), y && (y.nodeHooks.beforeLoad.subscribe(s, (c, g) => (g.position = c.position ?? { x: 0, y: 0 }, g.state && (g.state.integrated = c.integrated, c.props && (g.state.props = c.props), c.variableName && (g.state.variableName = c.variableName)), c)), y.nodeHooks.afterSave.subscribe(s, (c, g) => (c.position = g.position, g.state && (c.integrated = g.state.integrated, g.state.props && (c.props = g.state.props), g.state.variableName && (c.variableName = g.state.variableName)), c)), y.graphTemplateHooks.beforeLoad.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graphTemplateHooks.afterSave.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graph.hooks.load.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graph.hooks.save.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graphEvents.beforeAddNode.subscribe(
5645
5646
  s,
5646
- (c) => Na(c, { defaultWidth: l.nodes.defaultWidth })
5647
- ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), o(y.graph));
5647
+ (c) => Ta(c, { defaultWidth: l.nodes.defaultWidth })
5648
+ ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), i(y.graph));
5648
5649
  },
5649
5650
  { immediate: !0 }
5650
5651
  ), ks(() => I.isReady = !0), I;
@@ -5662,7 +5663,7 @@ export {
5662
5663
  rn as CodeGraphTemplate,
5663
5664
  Dn as CodeNode,
5664
5665
  Mt as CodeNodeInputInterface,
5665
- ie as CodeNodeInterface,
5666
+ oe as CodeNodeInterface,
5666
5667
  In as CodeNodeInterfaceComponent,
5667
5668
  tl as CodeNodeOutputInterface,
5668
5669
  zr as DOWNLOAD_EDITOR_STATE_COMMAND,
@@ -5692,11 +5693,11 @@ export {
5692
5693
  Bs as booleanType,
5693
5694
  Rh as components,
5694
5695
  mh as createCodeGraphNodeType,
5695
- Xi as createInterface,
5696
+ Xo as createInterface,
5696
5697
  Wh as defineCodeNode,
5697
5698
  Hh as defineDynamicCodeNode,
5698
- Qi as dictType,
5699
- Ki as formatInputs,
5699
+ Qo as dictType,
5700
+ Ko as formatInputs,
5700
5701
  Kr as getCodeNodes,
5701
5702
  jh as getPositionAtColumn,
5702
5703
  zh as getPositionBeforeNode,