@babsey/code-graph 0.1.4 → 0.1.6

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,11 +1,11 @@
1
- import Z from "mustache";
2
- import We from "toposort";
3
- import { AbstractNode as Xe, sortTopologically as Ne, NodeInterface as qe, displayInSidebar as Me, NodeInterfaceType as R, BaklavaInterfaceTypes as Je, CheckboxInterfaceComponent as Ye, setType as B, IntegerInterfaceComponent as Qe, TextInputInterfaceComponent as $e, NumberInterfaceComponent as Ke, SelectInterfaceComponent as Ze, SliderInterfaceComponent as et, TextareaInputInterfaceComponent as tt, allowMultipleConnections as K, IntegerInterface as st, TextInputInterface as nt, useViewModel as q, useTemporaryConnection as ot, Components as ke, useGraph as ae, GRAPH_NODE_TYPE_PREFIX as se, useTransform as at, useNodeCategories as it, BaklavaEditor as rt, useBaklava as lt, DependencyEngine as dt, applyResult as ut, DEFAULT_TOOLBAR_COMMANDS as ct } from "baklavajs";
4
- import { reactive as P, defineComponent as U, createElementBlock as r, openBlock as i, toDisplayString as j, markRaw as E, computed as b, createElementVNode as l, withDirectives as ee, vModelText as te, ref as S, onMounted as ie, onUpdated as Oe, normalizeClass as G, createCommentVNode as I, unref as _, renderSlot as W, createStaticVNode as J, onBeforeUnmount as pt, normalizeStyle as re, withModifiers as A, createBlock as O, Fragment as T, createTextVNode as ht, createVNode as z, withKeys as ne, renderList as D, nextTick as vt, toRef as Te, resolveDynamicComponent as Ce, inject as mt, Transition as ft, withCtx as F, onUnmounted as gt, normalizeProps as bt, guardReactiveProps as yt, mergeProps as _t } from "vue";
5
- import { v4 as kt } from "uuid";
6
- import { usePointer as Ct } from "@vueuse/core";
7
- Z.escape = (s) => s;
8
- class wt extends Xe {
1
+ import ee from "mustache";
2
+ import Ye from "toposort";
3
+ import { AbstractNode as qe, sortTopologically as Me, NodeInterface as Je, displayInSidebar as $e, NodeInterfaceType as G, BaklavaInterfaceTypes as Qe, CheckboxInterfaceComponent as Ke, setType as V, IntegerInterfaceComponent as Ze, TextInputInterfaceComponent as Oe, NumberInterfaceComponent as et, SelectInterfaceComponent as tt, SliderInterfaceComponent as st, TextareaInputInterfaceComponent as nt, allowMultipleConnections as K, IntegerInterface as ot, TextInputInterface as at, Commands as Z, useViewModel as Y, useTemporaryConnection as it, Components as ke, useGraph as ie, GRAPH_NODE_TYPE_PREFIX as ne, useTransform as rt, useNodeCategories as dt, BaklavaEditor as lt, useBaklava as ut, DependencyEngine as ct, applyResult as pt, DEFAULT_TOOLBAR_COMMANDS as ht } from "baklavajs";
4
+ import { reactive as A, defineComponent as U, createElementBlock as r, openBlock as i, toDisplayString as j, markRaw as T, computed as b, createElementVNode as d, withDirectives as te, vModelText as se, ref as B, onMounted as re, onUpdated as Ee, normalizeClass as R, createCommentVNode as I, unref as _, renderSlot as W, createStaticVNode as q, onBeforeUnmount as vt, normalizeStyle as de, withModifiers as P, createBlock as O, Fragment as E, createTextVNode as mt, createVNode as z, withKeys as oe, renderList as D, nextTick as ft, toRef as Te, resolveDynamicComponent as we, inject as gt, Transition as bt, withCtx as F, onUnmounted as yt, normalizeProps as _t, guardReactiveProps as Ct, mergeProps as kt } from "vue";
5
+ import { v4 as Se } from "uuid";
6
+ import { usePointer as wt } from "@vueuse/core";
7
+ ee.escape = (s) => s;
8
+ class xt extends qe {
9
9
  state;
10
10
  code;
11
11
  isCodeNode = !0;
@@ -14,7 +14,7 @@ class wt extends Xe {
14
14
  inputs = {};
15
15
  outputs = {};
16
16
  constructor() {
17
- super(), this.initializeIo(), this.width = 400, this.twoColumn = !0, this.state = P({
17
+ super(), this.initializeIo(), this.width = 400, this.twoColumn = !0, this.state = A({
18
18
  codeTemplate: "",
19
19
  hidden: !1,
20
20
  integrated: !1,
@@ -24,7 +24,7 @@ class wt extends Xe {
24
24
  script: "",
25
25
  variableName: ""
26
26
  }), this.codeTemplate = function() {
27
- return `${this.name}(${xt(this.codeNodeInputs).join(", ")})`;
27
+ return `${this.name}(${It(this.codeNodeInputs).join(", ")})`;
28
28
  };
29
29
  }
30
30
  get codeNodeInputs() {
@@ -143,7 +143,7 @@ class wt extends Xe {
143
143
  if (n === "_node") return;
144
144
  const o = this.outputs[n];
145
145
  o && o.state && (t[n] = o.getValue());
146
- }), this.state.script = Z.render(this.state.codeTemplate, { inputs: e, outputs: t });
146
+ }), this.state.script = ee.render(this.state.codeTemplate, { inputs: e, outputs: t });
147
147
  }
148
148
  this.outputs.out && (this.outputs.out.state.script = this.script);
149
149
  }
@@ -158,7 +158,7 @@ class wt extends Xe {
158
158
  }
159
159
  updateConnectedInputInterfaces() {
160
160
  if (!this.graph) return;
161
- const { connectionsFromNode: e } = Ne(this.graph);
161
+ const { connectionsFromNode: e } = Me(this.graph);
162
162
  if (!e.has(this)) return;
163
163
  const t = e.get(this);
164
164
  t && t.forEach((n) => {
@@ -176,7 +176,7 @@ class wt extends Xe {
176
176
  this.state.props = e;
177
177
  }
178
178
  }
179
- class Ee extends wt {
179
+ class Be extends xt {
180
180
  /**
181
181
  * The default implementation does nothing.
182
182
  * Overwrite this method to do calculation.
@@ -190,7 +190,7 @@ class Ee extends wt {
190
190
  }
191
191
  save() {
192
192
  const e = super.save();
193
- return It(this.graph, e), e;
193
+ return Nt(this.graph, e), e;
194
194
  }
195
195
  updateModules(e) {
196
196
  if (e)
@@ -201,12 +201,12 @@ class Ee extends wt {
201
201
  }
202
202
  }
203
203
  }
204
- const xt = (s, e = !0) => {
204
+ const It = (s, e = !0) => {
205
205
  const t = [], n = Object.keys(s);
206
206
  return n.forEach((o) => {
207
207
  if (s[o]?.hidden) return;
208
- const d = e && t.length < n.indexOf(o) ? `${o}=` : "";
209
- t.push(`${d}{{ inputs.${o} }}`);
208
+ const l = e && t.length < n.indexOf(o) ? `${o}=` : "";
209
+ t.push(`${l}{{ inputs.${o} }}`);
210
210
  }), t;
211
211
  }, Ve = (s, e) => {
212
212
  if (!s) return;
@@ -218,7 +218,7 @@ const xt = (s, e = !0) => {
218
218
  }), Object.entries(e.outputs).forEach(([o, a]) => {
219
219
  o !== "_node" && n.outputs[o] && (n.outputs[o].hidden = a.hidden);
220
220
  });
221
- }, It = (s, e) => {
221
+ }, Nt = (s, e) => {
222
222
  if (!s) return;
223
223
  const t = s.findNodeById(e.id);
224
224
  if (!t || t.subgraph) return;
@@ -228,7 +228,7 @@ const xt = (s, e = !0) => {
228
228
  }), Object.entries(e.outputs).forEach(([o, a]) => {
229
229
  o !== "_node" && n.outputs[o] && (a.hidden = n.outputs[o].hidden);
230
230
  });
231
- }, Nt = ["title"], le = /* @__PURE__ */ U({
231
+ }, Mt = ["title"], le = /* @__PURE__ */ U({
232
232
  __name: "CodeNodeInterface",
233
233
  props: {
234
234
  intf: {}
@@ -236,16 +236,16 @@ const xt = (s, e = !0) => {
236
236
  setup(s) {
237
237
  return (e, t) => (i(), r("div", {
238
238
  title: s.intf.state?.script
239
- }, j(s.intf.name), 9, Nt));
239
+ }, j(s.intf.name), 9, Mt));
240
240
  }
241
241
  });
242
- class H extends qe {
242
+ class H extends Je {
243
243
  isCodeNode = !0;
244
244
  code;
245
245
  state;
246
246
  type = null;
247
247
  constructor(e, t) {
248
- super(e, t), this.setComponent(E(le)), this.state = P({
248
+ super(e, t), this.setComponent(T(le)), this.state = A({
249
249
  optional: !1,
250
250
  script: ""
251
251
  });
@@ -265,12 +265,12 @@ class H extends qe {
265
265
  getValue = () => `${this.value ?? "None"}`;
266
266
  resetScript = () => this.state.script = "";
267
267
  }
268
- const yn = (s, e) => {
268
+ const _n = (s, e) => {
269
269
  s.state.optional = e, s.setHidden(e);
270
270
  };
271
- class Y extends H {
271
+ class J extends H {
272
272
  constructor(e = "", t) {
273
- super(e, t), this.setComponent(E(le)), this.use(Me, !0);
273
+ super(e, t), this.setComponent(T(le)), this.use($e, !0);
274
274
  }
275
275
  set script(e) {
276
276
  if (this.state.script && this.allowMultipleConnections) {
@@ -286,64 +286,64 @@ class Y extends H {
286
286
  super.value = e, this.name !== "_node" && this.setHidden(!1);
287
287
  }
288
288
  }
289
- const Se = new R("boolean"), Mt = new R("dict"), Be = new R("list"), X = new R("node"), de = new R("number"), ue = new R("string"), ze = new R("tuple"), _n = (s) => {
290
- new Je(s.editor, { viewPlugin: s }).addTypes(Se, Mt, Be, X, de, ue, ze);
289
+ const ze = new G("boolean"), $t = new G("dict"), je = new G("list"), X = new G("node"), ue = new G("number"), ce = new G("string"), Le = new G("tuple"), Cn = (s) => {
290
+ new Qe(s.editor, { viewPlugin: s }).addTypes(ze, $t, je, X, ue, ce, Le);
291
291
  };
292
- class kn extends Y {
292
+ class kn extends J {
293
293
  constructor(e, t) {
294
- super(e, t), this.setComponent(E(Ye)), this.use(B, Se);
294
+ super(e, t), this.setComponent(T(Ke)), this.use(V, ze);
295
295
  }
296
296
  getValue = () => this.value ? "True" : "False";
297
297
  }
298
- class $t extends H {
298
+ class Ot extends H {
299
299
  isCodeNodeOutput = !0;
300
300
  constructor(e = "", t = "") {
301
- super(e, t), this.setComponent(E(le));
301
+ super(e, t), this.setComponent(T(le));
302
302
  }
303
303
  get script() {
304
304
  return this.name ? this.name : this.state.script;
305
305
  }
306
306
  }
307
- class ce extends Y {
307
+ class pe extends J {
308
308
  min;
309
309
  max;
310
310
  constructor(e, t, n, o) {
311
- super(e, t), this.min = n, this.max = o, this.use(B, de);
311
+ super(e, t), this.min = n, this.max = o, this.use(V, ue);
312
312
  }
313
313
  validate(e) {
314
314
  return (this.min === void 0 || e >= this.min) && (this.max === void 0 || e <= this.max);
315
315
  }
316
316
  }
317
- class Cn extends ce {
318
- component = E(Qe);
317
+ class wn extends pe {
318
+ component = T(Ze);
319
319
  validate(e) {
320
320
  return Number.isInteger(e) && super.validate(e);
321
321
  }
322
322
  }
323
- class wn extends Y {
323
+ class xn extends J {
324
324
  constructor(e = "", t = "") {
325
- super(e, t), this.setComponent(E($e)), this.use(B, Be);
325
+ super(e, t), this.setComponent(T(Oe)), this.use(V, je);
326
326
  }
327
327
  getValue = () => `[${this.value}]`;
328
328
  }
329
- class xn extends ce {
330
- component = E(Ke);
329
+ class In extends pe {
330
+ component = T(et);
331
331
  }
332
- class pe extends Y {
332
+ class he extends J {
333
333
  constructor(e, t) {
334
- super(e, t), this.use(B, ue);
334
+ super(e, t), this.use(V, ce);
335
335
  }
336
336
  getValue = () => `"${this.value}"`;
337
337
  }
338
- class In extends pe {
339
- component = E(Ze);
338
+ class Nn extends he {
339
+ component = T(tt);
340
340
  items;
341
341
  constructor(e, t, n) {
342
342
  super(e, t), this.items = n;
343
343
  }
344
344
  }
345
- class Nn extends ce {
346
- component = E(et);
345
+ class Mn extends pe {
346
+ component = T(st);
347
347
  min;
348
348
  max;
349
349
  constructor(e, t, n, o) {
@@ -351,7 +351,7 @@ class Nn extends ce {
351
351
  }
352
352
  getValue = () => `${Math.round(this.value * 1e3) / 1e3}`;
353
353
  }
354
- const Ot = U({
354
+ const Et = U({
355
355
  props: {
356
356
  intf: {
357
357
  type: Object,
@@ -376,46 +376,46 @@ const Ot = U({
376
376
  for (const [n, o] of e)
377
377
  t[n] = o;
378
378
  return t;
379
- }, Tt = { style: { position: "relative" } }, Et = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Vt = ["placeholder", "title"];
380
- function St(s, e, t, n, o, a) {
379
+ }, Tt = { style: { position: "relative" } }, St = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Bt = ["placeholder", "title"];
380
+ function Vt(s, e, t, n, o, a) {
381
381
  return i(), r("div", Tt, [
382
- l("label", Et, j(s.intf.name), 1),
383
- ee(l("input", {
384
- "onUpdate:modelValue": e[0] || (e[0] = (d) => s.v = d),
382
+ d("label", St, j(s.intf.name), 1),
383
+ te(d("input", {
384
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => s.v = l),
385
385
  type: "text",
386
386
  class: "baklava-input",
387
387
  placeholder: s.intf.name,
388
388
  title: s.intf.name
389
- }, null, 8, Vt), [
390
- [te, s.v]
389
+ }, null, 8, Bt), [
390
+ [se, s.v]
391
391
  ])
392
392
  ]);
393
393
  }
394
- const Bt = /* @__PURE__ */ $(Ot, [["render", St]]);
395
- class Mn extends pe {
396
- component = E(Bt);
394
+ const zt = /* @__PURE__ */ $(Et, [["render", Vt]]);
395
+ class $n extends he {
396
+ component = T(zt);
397
397
  }
398
- class $n extends pe {
399
- component = E(tt);
398
+ class On extends he {
399
+ component = T(nt);
400
400
  }
401
- class On extends Y {
401
+ class En extends J {
402
402
  constructor(e = "", t = "") {
403
- super(e, t), this.setComponent(E($e)), this.use(B, ze);
403
+ super(e, t), this.setComponent(T(Oe)), this.use(V, Le);
404
404
  }
405
405
  getValue = () => `(${this.value})`;
406
406
  }
407
407
  function Tn(s) {
408
- return class extends Ee {
408
+ return class extends Be {
409
409
  type = s.type;
410
410
  inputs = {};
411
411
  outputs = {};
412
412
  constructor() {
413
413
  super(), this._title = s.title ?? s.type, this.name = s.name ?? s.type, this.updateModules(s.modules), s.variableName && (this.state.variableName = s.variableName), s.codeTemplate && (this.codeTemplate = s.codeTemplate), this.addInput(
414
414
  "_node",
415
- new H("", []).use(B, X).use(K).setHidden(!0)
415
+ new H("", []).use(V, X).use(K).setHidden(!0)
416
416
  ), this.addOutput(
417
417
  "_node",
418
- new H("", []).use(B, X).use(K).setHidden(!0)
418
+ new H("", []).use(V, X).use(K).setHidden(!0)
419
419
  ), this.executeFactory("input", s.inputs), this.executeFactory("output", s.outputs), s.onCreate?.call(this);
420
420
  }
421
421
  // public calculate = definition.calculate
@@ -447,7 +447,7 @@ function Tn(s) {
447
447
  }
448
448
  };
449
449
  }
450
- class zt extends Ee {
450
+ class jt extends Be {
451
451
  /**
452
452
  * The default implementation does nothing.
453
453
  * Overwrite this method to do calculation.
@@ -457,8 +457,8 @@ class zt extends Ee {
457
457
  */
458
458
  calculate;
459
459
  }
460
- function En(s) {
461
- return class extends zt {
460
+ function Sn(s) {
461
+ return class extends jt {
462
462
  type = s.type;
463
463
  inputs = {};
464
464
  outputs = {};
@@ -469,10 +469,10 @@ function En(s) {
469
469
  constructor() {
470
470
  super(), this._title = s.title ?? s.type, this.name = s.name ?? s.type, this.updateModules(s.modules), s.codeTemplate && (this.codeTemplate = s.codeTemplate), s.variableName && (this.state.variableName = s.variableName), this.addInput(
471
471
  "_node",
472
- new H("", []).use(B, X).use(K).setHidden(!0)
472
+ new H("", []).use(V, X).use(K).setHidden(!0)
473
473
  ), this.addOutput(
474
474
  "_node",
475
- new H("", []).use(B, X).use(K).setHidden(!0)
475
+ new H("", []).use(V, X).use(K).setHidden(!0)
476
476
  ), this.staticInputKeys.push("_node"), this.staticOutputKeys.push("_node"), this.executeFactory("input", s.inputs), this.executeFactory("output", s.outputs), s.onCreate?.call(this);
477
477
  }
478
478
  onPlaced() {
@@ -504,14 +504,14 @@ function En(s) {
504
504
  if (!this.inputs[t]) {
505
505
  const n = e.inputs[t].value;
506
506
  let o;
507
- typeof n == "number" ? o = new st(t, n).use(B, de) : o = new nt(t, JSON.stringify(n)).use(B, ue), o.use(Me, !0), this.addInput(t, o);
507
+ typeof n == "number" ? o = new ot(t, n).use(V, ue) : o = new at(t, JSON.stringify(n)).use(V, ce), o.use($e, !0), this.addInput(t, o);
508
508
  }
509
509
  this.inputs[t] && (this.inputs[t].load(e.inputs[t]), this.inputs[t].nodeId = this.id);
510
510
  }
511
511
  for (const t of Object.keys(e.outputs))
512
512
  if (!this.staticOutputKeys.includes(t)) {
513
513
  if (!this.outputs[t]) {
514
- const n = new $t(t);
514
+ const n = new Ot(t);
515
515
  this.addOutput(t, n);
516
516
  }
517
517
  this.outputs[t] && (this.outputs[t].load(e.outputs[t]), this.outputs[t].nodeId = this.id);
@@ -532,12 +532,12 @@ function En(s) {
532
532
  }
533
533
  updateInterfaces(e, t, n) {
534
534
  const o = e === "input" ? this.staticInputKeys : this.staticOutputKeys, a = e === "input" ? this.inputs : this.outputs;
535
- for (const d of Object.keys(a))
536
- o.includes(d) || t[d] && !n.includes(d) || (e === "input" ? this.removeInput(d) : this.removeOutput(d));
537
- for (const d of Object.keys(t)) {
538
- if (a[d]) continue;
539
- const u = t[d]();
540
- e === "input" ? this.addInput(d, u) : this.addOutput(d, u);
535
+ for (const l of Object.keys(a))
536
+ o.includes(l) || t[l] && !n.includes(l) || (e === "input" ? this.removeInput(l) : this.removeOutput(l));
537
+ for (const l of Object.keys(t)) {
538
+ if (a[l]) continue;
539
+ const u = t[l]();
540
+ e === "input" ? this.addInput(l, u) : this.addOutput(l, u);
541
541
  }
542
542
  }
543
543
  updateProps(e) {
@@ -551,13 +551,13 @@ function En(s) {
551
551
  }
552
552
  };
553
553
  }
554
- Z.escape = (s) => s;
555
- class jt {
554
+ ee.escape = (s) => s;
555
+ class Lt {
556
556
  _id;
557
557
  _viewModel;
558
558
  _state;
559
559
  constructor(e) {
560
- this._id = kt(), this._viewModel = e, this._state = P({
560
+ this._id = Se(), this._viewModel = e, this._state = A({
561
561
  autosort: !1,
562
562
  lockCode: !1,
563
563
  modules: {},
@@ -567,7 +567,7 @@ class jt {
567
567
  });
568
568
  }
569
569
  get codeNodes() {
570
- return oe(this.graph);
570
+ return ae(this.graph);
571
571
  }
572
572
  get connections() {
573
573
  return this.graph.connections;
@@ -609,7 +609,7 @@ class jt {
609
609
  this.state.script = e, this.viewModel.engine.runOnce(null);
610
610
  }
611
611
  get scriptedCodeNodes() {
612
- return oe(this.graph).filter(
612
+ return ae(this.graph).filter(
613
613
  (e) => !e.state?.integrated
614
614
  );
615
615
  }
@@ -653,7 +653,7 @@ class jt {
653
653
  * Clear code graph.
654
654
  */
655
655
  clear() {
656
- this.state.modules = {}, this.nodes = [], this.connections = [], this.state.script = "";
656
+ this.state.modules = {}, this.nodes = [], this.connections = [], this.state.script = "", this.viewModel.commandHandler.executeCommand(Z.CLEAR_CLIPBOARD_COMMAND), this.viewModel.commandHandler.executeCommand(Z.CLEAR_HISTORY_COMMAND), this.viewModel.engine && this.viewModel.engine.runOnce(null);
657
657
  }
658
658
  findNodeById(e) {
659
659
  return this.graph.findNodeById(e);
@@ -712,7 +712,7 @@ class jt {
712
712
  * Render code.
713
713
  */
714
714
  renderCode() {
715
- this.state.lockCode || (this.state.script = Z.render(this.state.template || "", this));
715
+ this.state.lockCode || (this.state.script = ee.render(this.state.template || "", this));
716
716
  }
717
717
  /**
718
718
  * Reset scripts of intput interfaces.
@@ -736,10 +736,10 @@ class jt {
736
736
  saveNodeStates(e) {
737
737
  e.forEach((t, n) => {
738
738
  const o = this.nodes[n];
739
- Object.entries(t.inputs).forEach(([a, d]) => {
740
- t.inputs && o.inputs[a] && (d.hidden = o.inputs[a].hidden);
741
- }), Object.entries(t.outputs).forEach(([a, d]) => {
742
- t.outputs && o.outputs[a] && (d.hidden = o.outputs[a].hidden);
739
+ Object.entries(t.inputs).forEach(([a, l]) => {
740
+ t.inputs && o.inputs[a] && (l.hidden = o.inputs[a].hidden);
741
+ }), Object.entries(t.outputs).forEach(([a, l]) => {
742
+ t.outputs && o.outputs[a] && (l.hidden = o.outputs[a].hidden);
743
743
  });
744
744
  });
745
745
  }
@@ -754,7 +754,7 @@ class jt {
754
754
  a.from.nodeId
755
755
  ]);
756
756
  let t = [...this.nodeIds];
757
- t.reverse(), t = We.array(t, e), t.reverse();
757
+ t.reverse(), t = Ye.array(t, e), t.reverse();
758
758
  const n = this.graph.nodes.map((a) => a.id).filter((a) => !t.includes(a));
759
759
  t = t.concat(n);
760
760
  const o = t.map((a) => this.findNodeById(a));
@@ -776,19 +776,19 @@ class jt {
776
776
  this.codeNodes.forEach((e) => e.updateCodeTemplate());
777
777
  }
778
778
  }
779
- const oe = (s) => {
779
+ const ae = (s) => {
780
780
  let e = [];
781
781
  return s.nodes.forEach((t) => {
782
- t.subgraph ? e = e.concat(oe(t.subgraph)) : t.isCodeNode && e.push(t);
782
+ t.subgraph ? e = e.concat(ae(t.subgraph)) : t.isCodeNode && e.push(t);
783
783
  }), e;
784
- }, Vn = (s = 0, e = 100) => ({
784
+ }, Bn = (s = 0, e = 100) => ({
785
785
  x: s * 420,
786
786
  y: e
787
- }), Sn = (s) => {
787
+ }), Vn = (s) => {
788
788
  const e = { ...s.position };
789
789
  return e.x -= 440, e.y += 50, e;
790
- }, Bn = (s) => {
791
- const { calculationOrder: e, connectionsFromNode: t } = Ne(s);
790
+ }, zn = (s) => {
791
+ const { calculationOrder: e, connectionsFromNode: t } = Me(s);
792
792
  e.forEach((n) => {
793
793
  if (!n.isCodeNode) return;
794
794
  const o = n;
@@ -796,40 +796,40 @@ const oe = (s) => {
796
796
  a.to.state && a.from.script && (a.to.state.script = a.from.script);
797
797
  });
798
798
  });
799
- }, Lt = ["id"], Ut = { class: "align-middle" }, we = /* @__PURE__ */ U({
799
+ }, Ut = ["id"], Rt = { class: "align-middle" }, xe = /* @__PURE__ */ U({
800
800
  __name: "CodeGraphNodeInterface",
801
801
  props: {
802
802
  node: {},
803
803
  intf: {}
804
804
  },
805
805
  setup(s) {
806
- const e = s, { viewModel: t } = q(), { hoveredOver: n, temporaryConnection: o } = ot(), a = S(null), d = b(() => e.intf.connectionCount > 0), u = b(() => ({
807
- "--connected": d.value
806
+ const e = s, { viewModel: t } = Y(), { hoveredOver: n, temporaryConnection: o } = it(), a = B(null), l = b(() => e.intf.connectionCount > 0), u = b(() => ({
807
+ "--connected": l.value
808
808
  })), v = () => {
809
809
  n(e.intf);
810
- }, k = () => {
810
+ }, C = () => {
811
811
  n(void 0);
812
812
  }, w = () => {
813
813
  a.value && t.value.hooks.renderInterface.execute({ intf: e.intf, el: a.value });
814
814
  };
815
- return ie(w), Oe(w), (V, L) => (i(), r("div", {
815
+ return re(w), Ee(w), (S, L) => (i(), r("div", {
816
816
  id: s.intf.id,
817
817
  ref_key: "el",
818
818
  ref: a,
819
- class: G(["baklava-node-interface", u.value])
819
+ class: R(["baklava-node-interface", u.value])
820
820
  }, [
821
821
  s.intf.port ? (i(), r("div", {
822
822
  key: 0,
823
- class: G(["__port", { "--selected": _(o)?.from === s.intf }]),
823
+ class: R(["__port", { "--selected": _(o)?.from === s.intf }]),
824
824
  onPointerover: v,
825
- onPointerout: k
825
+ onPointerout: C
826
826
  }, null, 34)) : I("", !0),
827
- l("span", Ut, [
828
- W(V.$slots, "default")
827
+ d("span", Rt, [
828
+ W(S.$slots, "default")
829
829
  ])
830
- ], 10, Lt));
830
+ ], 10, Ut));
831
831
  }
832
- }), Gt = {}, Rt = {
832
+ }), Gt = {}, At = {
833
833
  xmlns: "http://www.w3.org/2000/svg",
834
834
  width: "24",
835
835
  height: "24",
@@ -841,17 +841,17 @@ const oe = (s) => {
841
841
  "stroke-linejoin": "round",
842
842
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-code-variable"
843
843
  };
844
- function Pt(s, e) {
845
- return i(), r("svg", Rt, [...e[0] || (e[0] = [
846
- l("path", {
844
+ function Dt(s, e) {
845
+ return i(), r("svg", At, [...e[0] || (e[0] = [
846
+ d("path", {
847
847
  stroke: "none",
848
848
  d: "M0 0h24v24H0z",
849
849
  fill: "none"
850
850
  }, null, -1),
851
- l("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)
851
+ d("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)
852
852
  ])]);
853
853
  }
854
- const Dt = /* @__PURE__ */ $(Gt, [["render", Pt]]), Ht = {}, At = {
854
+ const Ht = /* @__PURE__ */ $(Gt, [["render", Dt]]), Pt = {}, Ft = {
855
855
  xmlns: "http://www.w3.org/2000/svg",
856
856
  width: "24",
857
857
  height: "24",
@@ -863,19 +863,19 @@ const Dt = /* @__PURE__ */ $(Gt, [["render", Pt]]), Ht = {}, At = {
863
863
  "stroke-linejoin": "round",
864
864
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
865
865
  };
866
- function Ft(s, e) {
867
- return i(), r("svg", At, [...e[0] || (e[0] = [
868
- l("path", {
866
+ function Wt(s, e) {
867
+ return i(), r("svg", Ft, [...e[0] || (e[0] = [
868
+ d("path", {
869
869
  stroke: "none",
870
870
  d: "M0 0h24v24H0z",
871
871
  fill: "none"
872
872
  }, null, -1),
873
- l("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
874
- l("path", { d: "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
875
- l("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
873
+ d("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
874
+ d("path", { d: "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
875
+ d("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
876
876
  ])]);
877
877
  }
878
- const Wt = /* @__PURE__ */ $(Ht, [["render", Ft]]), Xt = {}, qt = {
878
+ const Xt = /* @__PURE__ */ $(Pt, [["render", Wt]]), Yt = {}, qt = {
879
879
  xmlns: "http://www.w3.org/2000/svg",
880
880
  width: "24",
881
881
  height: "24",
@@ -885,15 +885,15 @@ const Wt = /* @__PURE__ */ $(Ht, [["render", Ft]]), Xt = {}, qt = {
885
885
  };
886
886
  function Jt(s, e) {
887
887
  return i(), r("svg", qt, [...e[0] || (e[0] = [
888
- l("path", {
888
+ d("path", {
889
889
  stroke: "none",
890
890
  d: "M0 0h24v24H0z",
891
891
  fill: "none"
892
892
  }, null, -1),
893
- l("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)
893
+ d("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)
894
894
  ])]);
895
895
  }
896
- const Yt = /* @__PURE__ */ $(Xt, [["render", Jt]]), Qt = {}, Kt = {
896
+ const Qt = /* @__PURE__ */ $(Yt, [["render", Jt]]), Kt = {}, Zt = {
897
897
  xmlns: "http://www.w3.org/2000/svg",
898
898
  width: "24",
899
899
  height: "24",
@@ -901,17 +901,17 @@ const Yt = /* @__PURE__ */ $(Xt, [["render", Jt]]), Qt = {}, Kt = {
901
901
  fill: "currentColor",
902
902
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
903
903
  };
904
- function Zt(s, e) {
905
- return i(), r("svg", Kt, [...e[0] || (e[0] = [
906
- l("path", {
904
+ function es(s, e) {
905
+ return i(), r("svg", Zt, [...e[0] || (e[0] = [
906
+ d("path", {
907
907
  stroke: "none",
908
908
  d: "M0 0h24v24H0z",
909
909
  fill: "none"
910
910
  }, null, -1),
911
- l("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)
911
+ d("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)
912
912
  ])]);
913
913
  }
914
- const es = /* @__PURE__ */ $(Qt, [["render", Zt]]), ts = {}, ss = {
914
+ const ts = /* @__PURE__ */ $(Kt, [["render", es]]), ss = {}, ns = {
915
915
  xmlns: "http://www.w3.org/2000/svg",
916
916
  width: "24",
917
917
  height: "24",
@@ -919,17 +919,17 @@ const es = /* @__PURE__ */ $(Qt, [["render", Zt]]), ts = {}, ss = {
919
919
  fill: "currentColor",
920
920
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
921
921
  };
922
- function ns(s, e) {
923
- return i(), r("svg", ss, [...e[0] || (e[0] = [
924
- l("path", {
922
+ function os(s, e) {
923
+ return i(), r("svg", ns, [...e[0] || (e[0] = [
924
+ d("path", {
925
925
  stroke: "none",
926
926
  d: "M0 0h24v24H0z",
927
927
  fill: "none"
928
928
  }, null, -1),
929
- l("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)
929
+ d("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)
930
930
  ])]);
931
931
  }
932
- const os = /* @__PURE__ */ $(ts, [["render", ns]]), as = {}, is = {
932
+ const as = /* @__PURE__ */ $(ss, [["render", os]]), is = {}, rs = {
933
933
  xmlns: "http://www.w3.org/2000/svg",
934
934
  width: "24",
935
935
  height: "24",
@@ -937,17 +937,17 @@ const os = /* @__PURE__ */ $(ts, [["render", ns]]), as = {}, is = {
937
937
  fill: "currentColor",
938
938
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
939
939
  };
940
- function rs(s, e) {
941
- return i(), r("svg", is, [...e[0] || (e[0] = [
942
- l("path", {
940
+ function ds(s, e) {
941
+ return i(), r("svg", rs, [...e[0] || (e[0] = [
942
+ d("path", {
943
943
  stroke: "none",
944
944
  d: "M0 0h24v24H0z",
945
945
  fill: "none"
946
946
  }, null, -1),
947
- l("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)
947
+ d("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)
948
948
  ])]);
949
949
  }
950
- const ls = /* @__PURE__ */ $(as, [["render", rs]]), ds = {}, us = {
950
+ const ls = /* @__PURE__ */ $(is, [["render", ds]]), us = {}, cs = {
951
951
  xmlns: "http://www.w3.org/2000/svg",
952
952
  width: "24",
953
953
  height: "24",
@@ -955,17 +955,17 @@ const ls = /* @__PURE__ */ $(as, [["render", rs]]), ds = {}, us = {
955
955
  fill: "currentColor",
956
956
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
957
957
  };
958
- function cs(s, e) {
959
- return i(), r("svg", us, [...e[0] || (e[0] = [
960
- l("path", {
958
+ function ps(s, e) {
959
+ return i(), r("svg", cs, [...e[0] || (e[0] = [
960
+ d("path", {
961
961
  stroke: "none",
962
962
  d: "M0 0h24v24H0z",
963
963
  fill: "none"
964
964
  }, null, -1),
965
- l("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)
965
+ d("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)
966
966
  ])]);
967
967
  }
968
- const ps = /* @__PURE__ */ $(ds, [["render", cs]]), hs = {}, vs = {
968
+ const hs = /* @__PURE__ */ $(us, [["render", ps]]), vs = {}, ms = {
969
969
  xmlns: "http://www.w3.org/2000/svg",
970
970
  width: "24",
971
971
  height: "24",
@@ -977,12 +977,12 @@ const ps = /* @__PURE__ */ $(ds, [["render", cs]]), hs = {}, vs = {
977
977
  "stroke-linejoin": "round",
978
978
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
979
979
  };
980
- function ms(s, e) {
981
- return i(), r("svg", vs, [...e[0] || (e[0] = [
982
- J('<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)
980
+ function fs(s, e) {
981
+ return i(), r("svg", ms, [...e[0] || (e[0] = [
982
+ q('<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)
983
983
  ])]);
984
984
  }
985
- const fs = /* @__PURE__ */ $(hs, [["render", ms]]), gs = {}, bs = {
985
+ const gs = /* @__PURE__ */ $(vs, [["render", fs]]), bs = {}, ys = {
986
986
  xmlns: "http://www.w3.org/2000/svg",
987
987
  width: "24",
988
988
  height: "24",
@@ -994,12 +994,12 @@ const fs = /* @__PURE__ */ $(hs, [["render", ms]]), gs = {}, bs = {
994
994
  "stroke-linejoin": "round",
995
995
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
996
996
  };
997
- function ys(s, e) {
998
- return i(), r("svg", bs, [...e[0] || (e[0] = [
999
- J('<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)
997
+ function _s(s, e) {
998
+ return i(), r("svg", ys, [...e[0] || (e[0] = [
999
+ q('<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)
1000
1000
  ])]);
1001
1001
  }
1002
- const _s = /* @__PURE__ */ $(gs, [["render", ys]]), ks = {}, Cs = {
1002
+ const Cs = /* @__PURE__ */ $(bs, [["render", _s]]), ks = {}, ws = {
1003
1003
  xmlns: "http://www.w3.org/2000/svg",
1004
1004
  width: "24",
1005
1005
  height: "24",
@@ -1011,12 +1011,12 @@ const _s = /* @__PURE__ */ $(gs, [["render", ys]]), ks = {}, Cs = {
1011
1011
  "stroke-linejoin": "round",
1012
1012
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
1013
1013
  };
1014
- function ws(s, e) {
1015
- return i(), r("svg", Cs, [...e[0] || (e[0] = [
1016
- J('<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)
1014
+ function xs(s, e) {
1015
+ return i(), r("svg", ws, [...e[0] || (e[0] = [
1016
+ q('<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)
1017
1017
  ])]);
1018
1018
  }
1019
- const xs = /* @__PURE__ */ $(ks, [["render", ws]]), Is = {}, Ns = {
1019
+ const Is = /* @__PURE__ */ $(ks, [["render", xs]]), Ns = {}, Ms = {
1020
1020
  xmlns: "http://www.w3.org/2000/svg",
1021
1021
  width: "24",
1022
1022
  height: "24",
@@ -1028,12 +1028,12 @@ const xs = /* @__PURE__ */ $(ks, [["render", ws]]), Is = {}, Ns = {
1028
1028
  "stroke-linejoin": "round",
1029
1029
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
1030
1030
  };
1031
- function Ms(s, e) {
1032
- return i(), r("svg", Ns, [...e[0] || (e[0] = [
1033
- J('<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)
1031
+ function $s(s, e) {
1032
+ return i(), r("svg", Ms, [...e[0] || (e[0] = [
1033
+ q('<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)
1034
1034
  ])]);
1035
1035
  }
1036
- const $s = /* @__PURE__ */ $(Is, [["render", Ms]]), Os = {}, Ts = {
1036
+ const Os = /* @__PURE__ */ $(Ns, [["render", $s]]), Es = {}, Ts = {
1037
1037
  xmlns: "http://www.w3.org/2000/svg",
1038
1038
  width: "24",
1039
1039
  height: "24",
@@ -1045,18 +1045,18 @@ const $s = /* @__PURE__ */ $(Is, [["render", Ms]]), Os = {}, Ts = {
1045
1045
  "stroke-linejoin": "round",
1046
1046
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-trash-off"
1047
1047
  };
1048
- function Es(s, e) {
1048
+ function Ss(s, e) {
1049
1049
  return i(), r("svg", Ts, [...e[0] || (e[0] = [
1050
- J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 3l18 18"></path><path d="M4 7h3m4 0h9"></path><path d="M10 11l0 6"></path><path d="M14 14l0 3"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l.077 -.923"></path><path d="M18.384 14.373l.616 -7.373"></path><path d="M9 5v-1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 8)
1050
+ q('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 3l18 18"></path><path d="M4 7h3m4 0h9"></path><path d="M10 11l0 6"></path><path d="M14 14l0 3"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l.077 -.923"></path><path d="M18.384 14.373l.616 -7.373"></path><path d="M9 5v-1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 8)
1051
1051
  ])]);
1052
1052
  }
1053
- const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"], Bs = {
1053
+ const Bs = /* @__PURE__ */ $(Es, [["render", Ss]]), Vs = ["id", "data-node-type"], zs = {
1054
1054
  class: "__title-label",
1055
1055
  style: { "flex-grow": "1" }
1056
- }, zs = { key: 0 }, js = {
1056
+ }, js = { key: 0 }, Ls = {
1057
1057
  class: "__menu",
1058
1058
  style: { display: "flex" }
1059
- }, Ls = { class: "__outputs" }, Us = { key: 0 }, Gs = ["id", "title"], Rs = { class: "__inputs" }, Ps = { key: 0 }, Ds = ["id", "title"], Hs = /* @__PURE__ */ U({
1059
+ }, Us = { class: "__outputs" }, Rs = { key: 0 }, Gs = ["id", "title"], As = { class: "__inputs" }, Ds = { key: 0 }, Hs = ["id", "title"], Ps = /* @__PURE__ */ U({
1060
1060
  __name: "CodeGraphNode",
1061
1061
  props: {
1062
1062
  node: {},
@@ -1065,15 +1065,15 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1065
1065
  },
1066
1066
  emits: ["select", "start-drag", "update"],
1067
1067
  setup(s, { emit: e }) {
1068
- const t = ke.ContextMenu, n = ke.NodeInterface, o = s, a = b(() => o.node), d = e, { viewModel: u } = q(), { graph: v, switchGraph: k } = ae(), w = S(null), V = S(!1), L = S(""), N = S(null), m = S(!1);
1068
+ const t = ke.ContextMenu, n = ke.NodeInterface, o = s, a = b(() => o.node), l = e, { viewModel: u } = Y(), { graph: v, switchGraph: C } = ie(), w = B(null), S = B(!1), L = B(""), N = B(null), m = B(!1);
1069
1069
  let y = 0, x = 0;
1070
- const f = S(!1), C = b(() => {
1070
+ const f = B(!1), k = b(() => {
1071
1071
  const c = [
1072
1072
  { value: "edit", label: "Edit" },
1073
1073
  { value: "rename", label: "Rename" },
1074
1074
  { value: "delete", label: "Delete" }
1075
1075
  ];
1076
- return o.node.type.startsWith(se) && c.push({ value: "editSubgraph", label: "Edit Subgraph" }), c;
1076
+ return o.node.type.startsWith(ne) && c.push({ value: "editSubgraph", label: "Edit Subgraph" }), c;
1077
1077
  }), p = b(() => ({
1078
1078
  "--selected": o.selected,
1079
1079
  "--dragging": o.dragging,
@@ -1081,79 +1081,79 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1081
1081
  "--hidden": a.value.state?.hidden
1082
1082
  })), M = b(() => ({
1083
1083
  "--reverse-y": o.node.reverseY ?? u.value.settings.nodes.reverseY
1084
- })), je = b(() => ({
1084
+ })), Ue = b(() => ({
1085
1085
  top: `${o.node.position?.y ?? 0}px`,
1086
1086
  left: `${o.node.position?.x ?? 0}px`,
1087
1087
  "--width": `${o.node.width ?? u.value.settings.nodes.defaultWidth}px`
1088
- })), Le = b(() => Object.values(o.node.inputs).filter((c) => !c.hidden)), Ue = b(() => Object.values(o.node.outputs).filter((c) => !c.hidden)), he = () => {
1089
- d("select");
1090
- }, Ge = (c) => {
1091
- o.selected || he(), d("start-drag", c);
1092
- }, ve = () => {
1088
+ })), Re = b(() => Object.values(o.node.inputs).filter((c) => !c.hidden)), Ge = b(() => Object.values(o.node.outputs).filter((c) => !c.hidden)), ve = () => {
1089
+ l("select");
1090
+ }, Ae = (c) => {
1091
+ o.selected || ve(), l("start-drag", c);
1092
+ }, me = () => {
1093
1093
  f.value = !0;
1094
- }, Re = () => {
1094
+ }, De = () => {
1095
1095
  const c = u.value.displayedGraph.sidebar;
1096
1096
  c.nodeId = "", c.visible = !1;
1097
- }, me = () => {
1097
+ }, fe = () => {
1098
1098
  const c = u.value.displayedGraph.sidebar;
1099
1099
  c.nodeId = o.node.id, c.visible = !0;
1100
- }, Pe = () => {
1100
+ }, He = () => {
1101
1101
  const c = u.value.displayedGraph.sidebar;
1102
1102
  c.nodeId = o.node.id;
1103
- }, De = async (c) => {
1103
+ }, Pe = async (c) => {
1104
1104
  switch (c) {
1105
1105
  case "edit":
1106
- me();
1106
+ fe();
1107
1107
  break;
1108
1108
  case "delete":
1109
1109
  v.value.removeNode(o.node);
1110
1110
  break;
1111
1111
  case "rename":
1112
- L.value = o.node.title, V.value = !0, await vt(), N.value?.focus();
1112
+ L.value = o.node.title, S.value = !0, await ft(), N.value?.focus();
1113
1113
  break;
1114
1114
  case "editSubgraph":
1115
- k(o.node.template);
1115
+ C(o.node.template);
1116
1116
  break;
1117
1117
  }
1118
- }, fe = () => {
1119
- a.value.title = L.value, V.value = !1;
1120
1118
  }, ge = () => {
1119
+ a.value.title = L.value, S.value = !1;
1120
+ }, be = () => {
1121
1121
  w.value && u.value.hooks.renderNode.execute({ node: o.node, el: w.value });
1122
- }, He = (c) => {
1122
+ }, Fe = (c) => {
1123
1123
  m.value = !0, y = o.node.width, x = c.clientX, c.preventDefault();
1124
- }, be = (c) => {
1125
- a.value.state && (a.value.state.integrated = c, d("update"));
1126
1124
  }, ye = (c) => {
1125
+ a.value.state && (a.value.state.integrated = c, l("update"));
1126
+ }, _e = (c) => {
1127
1127
  if (!m.value) return;
1128
- const g = c.clientX - x, h = y + g / v.value.scaling, Ae = u.value.settings.nodes.minWidth, Fe = u.value.settings.nodes.maxWidth;
1129
- a.value.width = Math.max(Ae, Math.min(Fe, h));
1130
- }, _e = () => {
1128
+ const g = c.clientX - x, h = y + g / v.value.scaling, We = u.value.settings.nodes.minWidth, Xe = u.value.settings.nodes.maxWidth;
1129
+ a.value.width = Math.max(We, Math.min(Xe, h));
1130
+ }, Ce = () => {
1131
1131
  m.value = !1;
1132
1132
  };
1133
- return ie(() => {
1134
- ge(), window.addEventListener("mousemove", ye), window.addEventListener("mouseup", _e);
1135
- }), Oe(ge), pt(() => {
1136
- window.removeEventListener("mousemove", ye), window.removeEventListener("mouseup", _e);
1133
+ return re(() => {
1134
+ be(), window.addEventListener("mousemove", _e), window.addEventListener("mouseup", Ce);
1135
+ }), Ee(be), vt(() => {
1136
+ window.removeEventListener("mousemove", _e), window.removeEventListener("mouseup", Ce);
1137
1137
  }), (c, g) => (i(), r("div", {
1138
1138
  id: a.value.id,
1139
1139
  ref_key: "el",
1140
1140
  ref: w,
1141
- class: G([p.value, "baklava-node"]),
1141
+ class: R([p.value, "baklava-node"]),
1142
1142
  "data-node-type": a.value.type,
1143
- style: re(je.value),
1144
- onPointerdown: he
1143
+ style: de(Ue.value),
1144
+ onPointerdown: ve
1145
1145
  }, [
1146
1146
  _(u).settings.nodes.resizable ? (i(), r("div", {
1147
1147
  key: 0,
1148
1148
  class: "__resize-handle",
1149
- onMousedown: He
1149
+ onMousedown: Fe
1150
1150
  }, null, 32)) : I("", !0),
1151
- l("div", {
1151
+ d("div", {
1152
1152
  class: "__title",
1153
- onPointerdown: A(Ge, ["self", "stop"]),
1154
- onContextmenu: A(ve, ["prevent"])
1153
+ onPointerdown: P(Ae, ["self", "stop"]),
1154
+ onContextmenu: P(me, ["prevent"])
1155
1155
  }, [
1156
- a.value.inputs._node ? (i(), O(we, {
1156
+ a.value.inputs._node ? (i(), O(xe, {
1157
1157
  key: 0,
1158
1158
  node: a.value,
1159
1159
  intf: a.value.inputs._node,
@@ -1161,7 +1161,7 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1161
1161
  "data-interface-type": "node",
1162
1162
  style: { "flex-grow": "0" }
1163
1163
  }, null, 8, ["node", "intf"])) : I("", !0),
1164
- V.value ? ee((i(), r("input", {
1164
+ S.value ? te((i(), r("input", {
1165
1165
  key: 2,
1166
1166
  ref_key: "renameInputEl",
1167
1167
  ref: N,
@@ -1170,60 +1170,60 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1170
1170
  placeholder: "Node Name",
1171
1171
  style: { "flex-grow": "1" },
1172
1172
  type: "text",
1173
- onBlur: fe,
1174
- onKeydown: ne(fe, ["enter"])
1173
+ onBlur: ge,
1174
+ onKeydown: oe(ge, ["enter"])
1175
1175
  }, null, 544)), [
1176
- [te, L.value]
1177
- ]) : (i(), r(T, { key: 1 }, [
1178
- l("div", Bs, [
1179
- a.value.idx > -1 ? (i(), r("span", zs, j(a.value.idx + 1) + " - ", 1)) : I("", !0),
1180
- ht(j(a.value.title), 1)
1176
+ [se, L.value]
1177
+ ]) : (i(), r(E, { key: 1 }, [
1178
+ d("div", zs, [
1179
+ a.value.idx > -1 ? (i(), r("span", js, j(a.value.idx + 1) + " - ", 1)) : I("", !0),
1180
+ mt(j(a.value.title), 1)
1181
1181
  ]),
1182
- l("div", js, [
1183
- a.value.subgraph ? I("", !0) : (i(), r(T, { key: 0 }, [
1184
- a.value.state.lockCode ? (i(), O(_(fs), {
1182
+ d("div", Ls, [
1183
+ a.value.subgraph ? I("", !0) : (i(), r(E, { key: 0 }, [
1184
+ a.value.state.lockCode ? (i(), O(_(gs), {
1185
1185
  key: 0,
1186
1186
  class: "--clickable mx-1",
1187
1187
  onClick: g[0] || (g[0] = (h) => a.value.lockCode = !1)
1188
1188
  })) : I("", !0),
1189
- a.value.state.integrated ? (i(), O(_(Dt), {
1189
+ a.value.state.integrated ? (i(), O(_(Ht), {
1190
1190
  key: 1,
1191
1191
  class: "--clickable mx-1",
1192
- onClick: g[1] || (g[1] = (h) => be(!1))
1193
- })) : (i(), O(_($s), {
1192
+ onClick: g[1] || (g[1] = (h) => ye(!1))
1193
+ })) : (i(), O(_(Os), {
1194
1194
  key: 2,
1195
1195
  class: "--clickable mx-1",
1196
- onClick: g[2] || (g[2] = (h) => be(!0))
1196
+ onClick: g[2] || (g[2] = (h) => ye(!0))
1197
1197
  })),
1198
- !_(u).displayedGraph.sidebar.visible && _(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), O(_(ps), {
1198
+ !_(u).displayedGraph.sidebar.visible && _(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), O(_(hs), {
1199
1199
  key: 3,
1200
1200
  class: "--clickable mx-1",
1201
- onClick: me
1202
- })) : _(u).displayedGraph.sidebar.visible && _(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), O(_(os), {
1201
+ onClick: fe
1202
+ })) : _(u).displayedGraph.sidebar.visible && _(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), O(_(as), {
1203
1203
  key: 4,
1204
1204
  class: "--clickable mx-1",
1205
- onClick: Pe
1205
+ onClick: He
1206
1206
  })) : (i(), O(_(ls), {
1207
1207
  key: 5,
1208
1208
  class: "--clickable mx-1",
1209
- onClick: Re
1209
+ onClick: De
1210
1210
  }))
1211
1211
  ], 64)),
1212
- z(_(Wt), {
1212
+ z(_(Xt), {
1213
1213
  class: "--clickable mx-1",
1214
- onClick: ve
1214
+ onClick: me
1215
1215
  }),
1216
1216
  z(_(t), {
1217
1217
  modelValue: f.value,
1218
1218
  "onUpdate:modelValue": g[3] || (g[3] = (h) => f.value = h),
1219
1219
  x: 0,
1220
1220
  y: 0,
1221
- items: C.value,
1222
- onClick: De
1221
+ items: k.value,
1222
+ onClick: Pe
1223
1223
  }, null, 8, ["modelValue", "items"])
1224
1224
  ])
1225
1225
  ], 64)),
1226
- a.value.outputs._node ? (i(), O(we, {
1226
+ a.value.outputs._node ? (i(), O(xe, {
1227
1227
  key: 3,
1228
1228
  node: a.value,
1229
1229
  intf: a.value.outputs._node,
@@ -1231,25 +1231,25 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1231
1231
  "data-interface-type": "node"
1232
1232
  }, null, 8, ["node", "intf"])) : I("", !0)
1233
1233
  ], 32),
1234
- l("div", {
1235
- class: G(["__content", M.value]),
1236
- onKeydown: g[5] || (g[5] = ne(A(() => {
1234
+ d("div", {
1235
+ class: R(["__content", M.value]),
1236
+ onKeydown: g[5] || (g[5] = oe(P(() => {
1237
1237
  }, ["stop"]), ["delete"])),
1238
- onContextmenu: g[6] || (g[6] = A(() => {
1238
+ onContextmenu: g[6] || (g[6] = P(() => {
1239
1239
  }, ["prevent"]))
1240
1240
  }, [
1241
- l("div", Ls, [
1242
- (i(!0), r(T, null, D(Ue.value, (h) => (i(), r(T, {
1241
+ d("div", Us, [
1242
+ (i(!0), r(E, null, D(Ge.value, (h) => (i(), r(E, {
1243
1243
  key: h.id
1244
1244
  }, [
1245
- a.value.state?.hidden ? (i(), r("div", Us, [
1245
+ a.value.state?.hidden ? (i(), r("div", Rs, [
1246
1246
  h.port ? (i(), r("div", {
1247
1247
  key: 0,
1248
1248
  id: h.id,
1249
1249
  title: h.name,
1250
1250
  class: "baklava-node-interface --output --connected"
1251
1251
  }, [...g[7] || (g[7] = [
1252
- l("div", { class: "__port" }, null, -1)
1252
+ d("div", { class: "__port" }, null, -1)
1253
1253
  ])], 8, Gs)) : I("", !0)
1254
1254
  ])) : W(c.$slots, "nodeInterface", {
1255
1255
  key: 1,
@@ -1265,19 +1265,19 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1265
1265
  ])
1266
1266
  ], 64))), 128))
1267
1267
  ]),
1268
- l("div", Rs, [
1269
- (i(!0), r(T, null, D(Le.value, (h) => (i(), r(T, {
1268
+ d("div", As, [
1269
+ (i(!0), r(E, null, D(Re.value, (h) => (i(), r(E, {
1270
1270
  key: h.id
1271
1271
  }, [
1272
- a.value.state?.hidden ? (i(), r("div", Ps, [
1272
+ a.value.state?.hidden ? (i(), r("div", Ds, [
1273
1273
  h.port ? (i(), r("div", {
1274
1274
  key: 0,
1275
1275
  id: h.id,
1276
1276
  title: h.name,
1277
1277
  class: "baklava-node-interface --input --connected"
1278
1278
  }, [...g[8] || (g[8] = [
1279
- l("div", { class: "__port" }, null, -1)
1280
- ])], 8, Ds)) : I("", !0)
1279
+ d("div", { class: "__port" }, null, -1)
1280
+ ])], 8, Hs)) : I("", !0)
1281
1281
  ])) : W(c.$slots, "nodeInterface", {
1282
1282
  key: 1,
1283
1283
  node: a.value,
@@ -1293,12 +1293,12 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1293
1293
  ], 64))), 128))
1294
1294
  ])
1295
1295
  ], 34)
1296
- ], 46, Ss));
1296
+ ], 46, Vs));
1297
1297
  }
1298
- }), As = ["title"], Fs = {
1298
+ }), Fs = ["title"], Ws = {
1299
1299
  key: 0,
1300
1300
  class: "__label"
1301
- }, xe = /* @__PURE__ */ U({
1301
+ }, Ie = /* @__PURE__ */ U({
1302
1302
  __name: "Checkbox",
1303
1303
  props: {
1304
1304
  disabled: { type: Boolean },
@@ -1310,46 +1310,46 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1310
1310
  setup(s, { emit: e }) {
1311
1311
  const t = e;
1312
1312
  return (n, o) => (i(), r("div", {
1313
- class: G(["baklava-checkbox", { "--checked": s.inversed ? !s.modelValue : s.modelValue, "--disabled": s.disabled }]),
1313
+ class: R(["baklava-checkbox", { "--checked": s.inversed ? !s.modelValue : s.modelValue, "--disabled": s.disabled }]),
1314
1314
  title: s.name,
1315
1315
  onClick: o[0] || (o[0] = (a) => t("update:modelValue", !s.modelValue))
1316
1316
  }, [
1317
- o[1] || (o[1] = l("div", { class: "__checkmark-container" }, [
1318
- l("svg", {
1317
+ o[1] || (o[1] = d("div", { class: "__checkmark-container" }, [
1318
+ d("svg", {
1319
1319
  xmlns: "http://www.w3.org/2000/svg",
1320
1320
  width: "18",
1321
1321
  height: "18",
1322
1322
  viewBox: "0 0 18 18"
1323
1323
  }, [
1324
- l("path", {
1324
+ d("path", {
1325
1325
  class: "__checkmark",
1326
1326
  d: "M 6 5 L 6 10 L 16 10",
1327
1327
  transform: "rotate(-45 10 10)"
1328
1328
  })
1329
1329
  ])
1330
1330
  ], -1)),
1331
- s.name ? (i(), r("div", Fs, j(s.name), 1)) : I("", !0)
1332
- ], 10, As));
1331
+ s.name ? (i(), r("div", Ws, j(s.name), 1)) : I("", !0)
1332
+ ], 10, Fs));
1333
1333
  }
1334
- }), Ws = { class: "__header" }, Xs = { class: "__node-name" }, qs = { class: "__interfaces" }, Js = { class: "__inputs" }, Ys = { style: { display: "flex" } }, Qs = { class: "__outputs" }, Ks = {
1334
+ }), Xs = { class: "__header" }, Ys = { class: "__node-name" }, qs = { class: "__interfaces" }, Js = { class: "__inputs" }, Qs = { style: { display: "flex" } }, Ks = { class: "__outputs" }, Zs = {
1335
1335
  key: 0,
1336
1336
  class: "__interface"
1337
- }, Zs = { style: { display: "flex" } }, en = /* @__PURE__ */ U({
1337
+ }, en = { style: { display: "flex" } }, tn = /* @__PURE__ */ U({
1338
1338
  __name: "CodeGraphSidebar",
1339
1339
  setup(s) {
1340
- const { viewModel: e } = q(), { graph: t } = ae(), n = S(null), o = Te(e.value.settings.sidebar, "width"), a = b(() => e.value.settings.sidebar.resizable);
1341
- let d = 0, u = 0;
1340
+ const { viewModel: e } = Y(), { graph: t } = ie(), n = B(null), o = Te(e.value.settings.sidebar, "width"), a = b(() => e.value.settings.sidebar.resizable);
1341
+ let l = 0, u = 0;
1342
1342
  const v = b(() => {
1343
1343
  const f = t.value.sidebar.nodeId;
1344
- return t.value.nodes.find((C) => C.id === f);
1345
- }), k = b(() => v.value), w = b(() => ({
1344
+ return t.value.nodes.find((k) => k.id === f);
1345
+ }), C = b(() => v.value), w = b(() => ({
1346
1346
  width: `${o.value}px`
1347
- })), V = b(() => k.value ? Object.values(k.value.inputs).filter((f) => f.displayInSidebar && f.component) : []), L = b(() => k.value ? Object.values(k.value.outputs).filter((f) => f.displayInSidebar && f.component) : []), N = () => {
1347
+ })), S = b(() => C.value ? Object.values(C.value.inputs).filter((f) => f.displayInSidebar && f.component) : []), L = b(() => C.value ? Object.values(C.value.outputs).filter((f) => f.displayInSidebar && f.component) : []), N = () => {
1348
1348
  t.value.sidebar.visible = !1;
1349
1349
  }, m = () => {
1350
1350
  v.value?.events.update.emit(null);
1351
1351
  }, y = (f) => {
1352
- d = o.value, u = f.clientX, window.addEventListener("mousemove", x), window.addEventListener(
1352
+ l = o.value, u = f.clientX, window.addEventListener("mousemove", x), window.addEventListener(
1353
1353
  "mouseup",
1354
1354
  () => {
1355
1355
  window.removeEventListener("mousemove", x);
@@ -1357,13 +1357,13 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1357
1357
  { once: !0 }
1358
1358
  );
1359
1359
  }, x = (f) => {
1360
- const C = n.value?.parentElement?.getBoundingClientRect().width ?? 500, p = f.clientX - u;
1361
- let M = d - p;
1362
- M < 300 ? M = 300 : M > 0.9 * C && (M = 0.9 * C), o.value = M;
1360
+ const k = n.value?.parentElement?.getBoundingClientRect().width ?? 500, p = f.clientX - u;
1361
+ let M = l - p;
1362
+ M < 300 ? M = 300 : M > 0.9 * k && (M = 0.9 * k), o.value = M;
1363
1363
  };
1364
- return (f, C) => (i(), r("div", {
1365
- class: G([{ "--open": _(t).sidebar.visible }, "baklava-sidebar"]),
1366
- style: re(w.value),
1364
+ return (f, k) => (i(), r("div", {
1365
+ class: R([{ "--open": _(t).sidebar.visible }, "baklava-sidebar"]),
1366
+ style: de(w.value),
1367
1367
  ref_key: "el",
1368
1368
  ref: n
1369
1369
  }, [
@@ -1372,35 +1372,35 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1372
1372
  class: "__resizer",
1373
1373
  onMousedown: y
1374
1374
  }, null, 32)) : I("", !0),
1375
- v.value ? (i(), r(T, { key: 1 }, [
1376
- l("div", Ws, [
1377
- l("button", {
1375
+ v.value ? (i(), r(E, { key: 1 }, [
1376
+ d("div", Xs, [
1377
+ d("button", {
1378
1378
  tabindex: "-1",
1379
1379
  class: "__close",
1380
1380
  onClick: N
1381
1381
  }, "×"),
1382
- l("div", Xs, [
1383
- l("b", null, j(v.value.title), 1)
1382
+ d("div", Ys, [
1383
+ d("b", null, j(v.value.title), 1)
1384
1384
  ])
1385
1385
  ]),
1386
- l("div", qs, [
1387
- l("div", Js, [
1388
- (i(!0), r(T, null, D(V.value, (p) => (i(), r("div", {
1386
+ d("div", qs, [
1387
+ d("div", Js, [
1388
+ (i(!0), r(E, null, D(S.value, (p) => (i(), r("div", {
1389
1389
  key: p.id,
1390
1390
  class: "__interface"
1391
1391
  }, [
1392
- l("div", Ys, [
1393
- z(xe, {
1392
+ d("div", Qs, [
1393
+ z(Ie, {
1394
1394
  modelValue: p.hidden,
1395
1395
  "onUpdate:modelValue": [
1396
1396
  (M) => p.hidden = M,
1397
- C[0] || (C[0] = () => v.value?.events.update.emit(null))
1397
+ k[0] || (k[0] = () => v.value?.events.update.emit(null))
1398
1398
  ],
1399
1399
  disabled: !p.optional,
1400
1400
  inversed: "",
1401
1401
  style: { "padding-right": "8px" }
1402
1402
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
1403
- (i(), O(Ce(p.component), {
1403
+ (i(), O(we(p.component), {
1404
1404
  modelValue: p.value,
1405
1405
  "onUpdate:modelValue": (M) => p.value = M,
1406
1406
  node: v.value,
@@ -1410,36 +1410,36 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1410
1410
  ])
1411
1411
  ]))), 128))
1412
1412
  ]),
1413
- l("div", Qs, [
1414
- k.value && k.value.state ? (i(), r("div", Ks, [
1415
- C[3] || (C[3] = l("label", null, "Variable name", -1)),
1416
- ee(l("input", {
1417
- "onUpdate:modelValue": C[1] || (C[1] = (p) => k.value.state.variableName = p),
1413
+ d("div", Ks, [
1414
+ C.value && C.value.state ? (i(), r("div", Zs, [
1415
+ k[3] || (k[3] = d("label", null, "Variable name", -1)),
1416
+ te(d("input", {
1417
+ "onUpdate:modelValue": k[1] || (k[1] = (p) => C.value.state.variableName = p),
1418
1418
  type: "text",
1419
1419
  class: "baklava-input",
1420
1420
  title: "Variable name",
1421
1421
  onBlur: m,
1422
- onKeydown: ne(m, ["enter"])
1422
+ onKeydown: oe(m, ["enter"])
1423
1423
  }, null, 544), [
1424
- [te, k.value.state.variableName]
1424
+ [se, C.value.state.variableName]
1425
1425
  ])
1426
1426
  ])) : I("", !0),
1427
- (i(!0), r(T, null, D(L.value, (p) => (i(), r("div", {
1427
+ (i(!0), r(E, null, D(L.value, (p) => (i(), r("div", {
1428
1428
  key: p.id,
1429
1429
  class: "__interface"
1430
1430
  }, [
1431
- l("div", Zs, [
1432
- z(xe, {
1431
+ d("div", en, [
1432
+ z(Ie, {
1433
1433
  modelValue: p.hidden,
1434
1434
  "onUpdate:modelValue": [
1435
1435
  (M) => p.hidden = M,
1436
- C[2] || (C[2] = () => v.value?.events.update.emit(null))
1436
+ k[2] || (k[2] = () => v.value?.events.update.emit(null))
1437
1437
  ],
1438
1438
  disabled: !p.optional,
1439
1439
  inversed: "",
1440
1440
  style: { "padding-right": "8px" }
1441
1441
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
1442
- (i(), O(Ce(p.component), {
1442
+ (i(), O(we(p.component), {
1443
1443
  modelValue: p.value,
1444
1444
  "onUpdate:modelValue": (M) => p.value = M,
1445
1445
  node: v.value,
@@ -1454,7 +1454,7 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1454
1454
  ], 64)) : I("", !0)
1455
1455
  ], 6));
1456
1456
  }
1457
- }), tn = U({
1457
+ }), sn = U({
1458
1458
  props: {
1459
1459
  type: {
1460
1460
  type: String,
@@ -1466,14 +1466,14 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1466
1466
  }
1467
1467
  },
1468
1468
  setup(s) {
1469
- const { viewModel: e } = q(), { switchGraph: t } = ae(), n = S(!1), o = b(() => s.type.startsWith(se));
1469
+ const { viewModel: e } = Y(), { switchGraph: t } = ie(), n = B(!1), o = b(() => s.type.startsWith(ne));
1470
1470
  return { showContextMenu: n, hasContextMenu: o, contextMenuItems: [
1471
1471
  { label: "Edit Subgraph", value: "editSubgraph" },
1472
1472
  { label: "Delete Subgraph", value: "deleteSubgraph" }
1473
1473
  ], openContextMenu: () => {
1474
1474
  n.value = !0;
1475
1475
  }, onContextMenuClick: (v) => {
1476
- const k = s.type.substring(se.length), w = e.value.editor.graphTemplates.find((V) => V.id === k);
1476
+ const C = s.type.substring(ne.length), w = e.value.editor.graphTemplates.find((S) => S.id === C);
1477
1477
  if (w)
1478
1478
  switch (v) {
1479
1479
  case "editSubgraph":
@@ -1485,38 +1485,38 @@ const Vs = /* @__PURE__ */ $(Os, [["render", Es]]), Ss = ["id", "data-node-type"
1485
1485
  }
1486
1486
  } };
1487
1487
  }
1488
- }), sn = ["data-node-type"], nn = { class: "__title" }, on = { class: "__title-label" };
1489
- function an(s, e, t, n, o, a) {
1488
+ }), nn = ["data-node-type"], on = { class: "__title" }, an = { class: "__title-label" };
1489
+ function rn(s, e, t, n, o, a) {
1490
1490
  return i(), r("div", {
1491
1491
  class: "baklava-node --palette",
1492
1492
  "data-node-type": s.type
1493
1493
  }, [
1494
- l("div", nn, [
1495
- l("div", on, j(s.title), 1)
1494
+ d("div", on, [
1495
+ d("div", an, j(s.title), 1)
1496
1496
  ])
1497
- ], 8, sn);
1497
+ ], 8, nn);
1498
1498
  }
1499
- const Ie = /* @__PURE__ */ $(tn, [["render", an]]), rn = {
1499
+ const Ne = /* @__PURE__ */ $(sn, [["render", rn]]), dn = {
1500
1500
  class: "baklava-node --palette",
1501
1501
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1502
1502
  }, ln = {
1503
1503
  key: 0,
1504
1504
  style: { display: "flex", "justify-content": "space-between" }
1505
- }, dn = ["onClick"], un = {
1505
+ }, un = ["onClick"], cn = {
1506
1506
  key: 0,
1507
1507
  style: { margin: "auto 0", "font-size": "12px" }
1508
- }, cn = /* @__PURE__ */ U({
1508
+ }, pn = /* @__PURE__ */ U({
1509
1509
  __name: "CodeNodePalette",
1510
1510
  setup(s) {
1511
- const { viewModel: e } = q(), { x: t, y: n } = Ct(), { transform: o } = at(), a = it(e), d = mt("editorEl"), u = S(""), v = S(null), k = () => u.value ? a.value.filter(
1511
+ const { viewModel: e } = Y(), { x: t, y: n } = wt(), { transform: o } = rt(), a = dt(e), l = gt("editorEl"), u = B(""), v = B(null), C = () => u.value ? a.value.filter(
1512
1512
  (N) => N.name.toLowerCase().includes(u.value.toLowerCase()) || Object.values(N.nodeTypes).some(
1513
1513
  (m) => m.title.toLowerCase().includes(u.value.toLowerCase())
1514
1514
  )
1515
1515
  ) : a.value, w = (N) => u.value ? Object.values(N).filter(
1516
1516
  (m) => m.category.toLowerCase().includes(u.value.toLowerCase()) || m.title.toLowerCase().includes(u.value.toLowerCase())
1517
- ) : Object.values(N), V = b(() => {
1518
- if (!v.value || !d?.value) return {};
1519
- const { left: N, top: m } = d.value.getBoundingClientRect();
1517
+ ) : Object.values(N), S = b(() => {
1518
+ if (!v.value || !l?.value) return {};
1519
+ const { left: N, top: m } = l.value.getBoundingClientRect();
1520
1520
  return {
1521
1521
  top: `${n.value - m}px`,
1522
1522
  left: `${t.value - N}px`
@@ -1527,41 +1527,41 @@ const Ie = /* @__PURE__ */ $(tn, [["render", an]]), rn = {
1527
1527
  nodeInformation: m
1528
1528
  };
1529
1529
  const y = () => {
1530
- const x = P(new m.type());
1530
+ const x = A(new m.type());
1531
1531
  e.value.displayedGraph.addNode(x);
1532
- const f = d.value.getBoundingClientRect(), [C, p] = o(t.value - f.left, n.value - f.top);
1533
- x.position.x = C, x.position.y = p, v.value = null, document.removeEventListener("pointerup", y);
1532
+ const f = l.value.getBoundingClientRect(), [k, p] = o(t.value - f.left, n.value - f.top);
1533
+ x.position.x = k, x.position.y = p, v.value = null, document.removeEventListener("pointerup", y);
1534
1534
  };
1535
1535
  document.addEventListener("pointerup", y);
1536
1536
  };
1537
- return (N, m) => (i(), r(T, null, [
1538
- l("div", {
1539
- class: G([{ "--open": _(e).settings.palette.enabled }, "baklava-node-palette"]),
1540
- onContextmenu: m[1] || (m[1] = A(() => {
1537
+ return (N, m) => (i(), r(E, null, [
1538
+ d("div", {
1539
+ class: R([{ "--open": _(e).settings.palette.enabled }, "baklava-node-palette"]),
1540
+ onContextmenu: m[1] || (m[1] = P(() => {
1541
1541
  }, ["stop", "prevent"]))
1542
1542
  }, [
1543
- l("div", rn, [
1544
- ee(l("input", {
1543
+ d("div", dn, [
1544
+ te(d("input", {
1545
1545
  "onUpdate:modelValue": m[0] || (m[0] = (y) => u.value = y),
1546
1546
  type: "text",
1547
1547
  class: "baklava-input",
1548
1548
  title: "Filter nodes",
1549
- onKeyup: k
1549
+ onKeyup: C
1550
1550
  }, null, 544), [
1551
- [te, u.value]
1551
+ [se, u.value]
1552
1552
  ])
1553
1553
  ]),
1554
- (i(!0), r(T, null, D(k(), (y) => (i(), r("section", {
1554
+ (i(!0), r(E, null, D(C(), (y) => (i(), r("section", {
1555
1555
  key: y.name
1556
1556
  }, [
1557
1557
  y.name !== "default" ? (i(), r("h3", ln, [
1558
- l("div", {
1558
+ d("div", {
1559
1559
  onClick: (x) => u.value = y.name,
1560
1560
  style: { cursor: "pointer" }
1561
- }, j(y.name), 9, dn),
1562
- w(y.nodeTypes).length < Object.values(y.nodeTypes).length ? (i(), r("div", un, " ( " + j(w(y.nodeTypes).length) + " / " + j(Object.values(y.nodeTypes).length) + " ) ", 1)) : I("", !0)
1561
+ }, j(y.name), 9, un),
1562
+ w(y.nodeTypes).length < Object.values(y.nodeTypes).length ? (i(), r("div", cn, " ( " + j(w(y.nodeTypes).length) + " / " + j(Object.values(y.nodeTypes).length) + " ) ", 1)) : I("", !0)
1563
1563
  ])) : I("", !0),
1564
- (i(!0), r(T, null, D(w(y.nodeTypes), (x) => (i(), O(Ie, {
1564
+ (i(!0), r(E, null, D(w(y.nodeTypes), (x) => (i(), O(Ne, {
1565
1565
  key: x.type,
1566
1566
  type: x.type,
1567
1567
  title: x.title,
@@ -1569,14 +1569,14 @@ const Ie = /* @__PURE__ */ $(tn, [["render", an]]), rn = {
1569
1569
  }, null, 8, ["type", "title", "onPointerdown"]))), 128))
1570
1570
  ]))), 128))
1571
1571
  ], 34),
1572
- z(ft, { name: "fade" }, {
1572
+ z(bt, { name: "fade" }, {
1573
1573
  default: F(() => [
1574
1574
  v.value ? (i(), r("div", {
1575
1575
  key: 0,
1576
1576
  class: "baklava-dragged-node",
1577
- style: re(V.value)
1577
+ style: de(S.value)
1578
1578
  }, [
1579
- z(Ie, {
1579
+ z(Ne, {
1580
1580
  type: v.value.type,
1581
1581
  title: v.value.nodeInformation.title
1582
1582
  }, null, 8, ["type", "title"])
@@ -1586,28 +1586,28 @@ const Ie = /* @__PURE__ */ $(tn, [["render", an]]), rn = {
1586
1586
  })
1587
1587
  ], 64));
1588
1588
  }
1589
- }), zn = /* @__PURE__ */ U({
1589
+ }), jn = /* @__PURE__ */ U({
1590
1590
  __name: "CodeGraphEditor",
1591
1591
  props: {
1592
1592
  viewModel: {}
1593
1593
  },
1594
1594
  setup(s) {
1595
1595
  const t = Te(s, "viewModel"), n = (o) => o.events.update.emit(null);
1596
- return ie(() => {
1596
+ return re(() => {
1597
1597
  t.value.subscribe(), t.value.engine.start();
1598
- }), gt(() => {
1598
+ }), yt(() => {
1599
1599
  t.value.unsubscribe(), t.value.engine.stop();
1600
- }), (o, a) => (i(), O(_(rt), { "view-model": t.value }, {
1600
+ }), (o, a) => (i(), O(_(lt), { "view-model": t.value }, {
1601
1601
  palette: F(() => [
1602
- z(cn)
1602
+ z(pn)
1603
1603
  ]),
1604
- node: F((d) => [
1605
- z(Hs, _t(d, {
1606
- onUpdate: (u) => n(d.node)
1604
+ node: F((l) => [
1605
+ z(Ps, kt(l, {
1606
+ onUpdate: (u) => n(l.node)
1607
1607
  }), null, 16, ["onUpdate"])
1608
1608
  ]),
1609
- sidebar: F((d) => [
1610
- z(en, bt(yt(d)), {
1609
+ sidebar: F((l) => [
1610
+ z(tn, _t(Ct(l)), {
1611
1611
  codeEditor: F(({ node: u }) => [
1612
1612
  W(o.$slots, "sidebarCodeEditor", { node: u })
1613
1613
  ]),
@@ -1618,17 +1618,21 @@ const Ie = /* @__PURE__ */ $(tn, [["render", an]]), rn = {
1618
1618
  }, 8, ["view-model"]));
1619
1619
  }
1620
1620
  });
1621
- function jn(s) {
1622
- const e = lt(s?.existingEditor);
1623
- e.code = s?.code ? new s.code(e) : new jt(e), pn(e);
1621
+ function Ln(s) {
1622
+ const e = ut(s?.existingEditor);
1623
+ e.code = s?.code ? new s.code(e) : new Lt(e), hn(e);
1624
1624
  const t = {};
1625
1625
  return Object.keys(Q).forEach((n) => {
1626
1626
  t[n] = typeof Q[n] == "object" ? { ...e.settings[n], ...Q[n] } : Q[n];
1627
- }), e.settings = P({ ...e.settings, ...t }), e.settings.nodes.defaultWidth = 350, e.state = P({
1627
+ }), e.settings = A({ ...e.settings, ...t }), e.settings.nodes.defaultWidth = 350, e.state = A({
1628
1628
  modules: {},
1629
1629
  token: null
1630
1630
  }), e.init = () => {
1631
- e.unsubscribe(), e.engine = new dt(e.editor);
1631
+ e.unsubscribe(), e.engine = new ct(e.editor);
1632
+ }, e.loadEditor = (n) => {
1633
+ e.engine?.pause(), e.code.clear(), e.editor.load(n), e.commandHandler.executeCommand(Z.CLEAR_CLIPBOARD_COMMAND), e.commandHandler.executeCommand(Z.CLEAR_HISTORY_COMMAND), e.engine?.resume(), e.engine?.runOnce(null);
1634
+ }, e.newGraph = () => {
1635
+ e.engine?.pause(), e.code.clear(), e.editor.graph.id = Se(), e.engine?.resume(), e.engine?.runOnce(null);
1632
1636
  }, e.subscribe = () => {
1633
1637
  e.state.token && e.unsubscribe();
1634
1638
  const n = Symbol(), o = e.displayedGraph;
@@ -1642,10 +1646,10 @@ function jn(s) {
1642
1646
  e.engine.pause(), e.code && (e.code.updateCodeNodes(), e.code.sortNodes(), e.code.updateCodeTemplates(), e.code.resetInputInterfaceScript()), e.engine.resume();
1643
1647
  }), e.engine.events.beforeNodeCalculation.subscribe(n, (a) => {
1644
1648
  e.engine.pause();
1645
- const d = a.node;
1646
- d.isCodeNode && (d.updateOutputNames(), d.updateConnectedInputInterfaces()), e.engine.resume();
1649
+ const l = a.node;
1650
+ l.isCodeNode && (l.updateOutputNames(), l.updateConnectedInputInterfaces()), e.engine.resume();
1647
1651
  }), e.engine.events.afterRun.subscribe(n, (a) => {
1648
- e.engine.pause(), ut(a, e.editor), e.code && (e.code.renderNodeCodes(), e.code.renderCode()), e.engine.resume();
1652
+ e.engine.pause(), pt(a, e.editor), e.code && (e.code.renderNodeCodes(), e.code.renderCode()), e.engine.resume();
1649
1653
  }), e.state.token = n;
1650
1654
  }, e.unsubscribe = () => {
1651
1655
  if (!e.state.token) return;
@@ -1653,7 +1657,7 @@ function jn(s) {
1653
1657
  e.displayedGraph.events.addNode.unsubscribe(n), e.displayedGraph.events.addConnection.unsubscribe(n), e.engine.events.beforeRun.unsubscribe(n), e.engine.events.afterRun.unsubscribe(n), e.state.token = null;
1654
1658
  }, e;
1655
1659
  }
1656
- const pn = (s) => {
1660
+ const hn = (s) => {
1657
1661
  const e = "TOGGLE_PALETTE";
1658
1662
  s.commandHandler.registerCommand(e, {
1659
1663
  execute: () => s.settings.palette.enabled = !s.settings.palette.enabled,
@@ -1673,20 +1677,20 @@ const pn = (s) => {
1673
1677
  command: e,
1674
1678
  title: "Toggle palette",
1675
1679
  // Tooltip text
1676
- icon: b(() => s.settings.palette.enabled ? Yt : es)
1680
+ icon: b(() => s.settings.palette.enabled ? Qt : ts)
1677
1681
  },
1678
- ...ct,
1682
+ ...ht,
1679
1683
  {
1680
1684
  command: t,
1681
1685
  title: "Clear all",
1682
1686
  // Tooltip text
1683
- icon: Vs
1687
+ icon: Bs
1684
1688
  },
1685
1689
  {
1686
1690
  command: n,
1687
1691
  title: "Toggle minimap",
1688
1692
  // Tooltip text
1689
- icon: b(() => s.settings.enableMinimap ? xs : _s)
1693
+ icon: b(() => s.settings.enableMinimap ? Is : Cs)
1690
1694
  }
1691
1695
  ];
1692
1696
  }, Q = {
@@ -1705,56 +1709,56 @@ const pn = (s) => {
1705
1709
  displayValueOnHover: !1
1706
1710
  };
1707
1711
  export {
1708
- wt as AbstractCodeNode,
1712
+ xt as AbstractCodeNode,
1709
1713
  kn as CheckboxInterface,
1710
- jt as Code,
1711
- zn as CodeGraphEditor,
1712
- Ee as CodeNode,
1713
- Y as CodeNodeInputInterface,
1714
+ Lt as Code,
1715
+ jn as CodeGraphEditor,
1716
+ Be as CodeNode,
1717
+ J as CodeNodeInputInterface,
1714
1718
  H as CodeNodeInterface,
1715
1719
  le as CodeNodeInterfaceComponent,
1716
- $t as CodeNodeOutputInterface,
1717
- Dt as CodeVariable,
1720
+ Ot as CodeNodeOutputInterface,
1721
+ Ht as CodeVariable,
1718
1722
  Q as DEFAULT_SETTINGS,
1719
- Wt as DotsVertical,
1720
- zt as DynamicCodeNode,
1721
- Cn as IntegerInterface,
1722
- Yt as LayoutSidebarLeftCollapse,
1723
- es as LayoutSidebarLeftExpand,
1724
- os as LayoutSidebarRight,
1723
+ Xt as DotsVertical,
1724
+ jt as DynamicCodeNode,
1725
+ wn as IntegerInterface,
1726
+ Qt as LayoutSidebarLeftCollapse,
1727
+ ts as LayoutSidebarLeftExpand,
1728
+ as as LayoutSidebarRight,
1725
1729
  ls as LayoutSidebarRightCollapse,
1726
- ps as LayoutSidebarRightExpand,
1727
- wn as ListInputInterface,
1728
- fs as LockCode,
1729
- xn as NumberInterface,
1730
- _s as Schema,
1731
- xs as SchemaOff,
1732
- In as SelectInterface,
1733
- Nn as SliderInterface,
1734
- Mn as TextInputInterface,
1735
- Bt as TextInputInterfaceComponent,
1736
- $n as TextareaInputInterface,
1737
- $s as TransitionBottom,
1738
- Vs as TrashOff,
1739
- On as TupleInputInterface,
1740
- _n as addDefaultInterfaceTypes,
1741
- pn as addToolbarCommands,
1742
- Se as booleanType,
1730
+ hs as LayoutSidebarRightExpand,
1731
+ xn as ListInputInterface,
1732
+ gs as LockCode,
1733
+ In as NumberInterface,
1734
+ Cs as Schema,
1735
+ Is as SchemaOff,
1736
+ Nn as SelectInterface,
1737
+ Mn as SliderInterface,
1738
+ $n as TextInputInterface,
1739
+ zt as TextInputInterfaceComponent,
1740
+ On as TextareaInputInterface,
1741
+ Os as TransitionBottom,
1742
+ Bs as TrashOff,
1743
+ En as TupleInputInterface,
1744
+ Cn as addDefaultInterfaceTypes,
1745
+ hn as addToolbarCommands,
1746
+ ze as booleanType,
1743
1747
  Tn as defineCodeNode,
1744
- En as defineDynamicCodeNode,
1745
- Mt as dictType,
1746
- xt as formatInputs,
1747
- oe as getCodeNodes,
1748
- Vn as getPositionAtColumn,
1749
- Sn as getPositionBeforeNode,
1750
- Be as listType,
1748
+ Sn as defineDynamicCodeNode,
1749
+ $t as dictType,
1750
+ It as formatInputs,
1751
+ ae as getCodeNodes,
1752
+ Bn as getPositionAtColumn,
1753
+ Vn as getPositionBeforeNode,
1754
+ je as listType,
1751
1755
  Ve as loadNodeState,
1752
1756
  X as nodeType,
1753
- de as numberType,
1754
- It as saveNodeState,
1755
- yn as setOptional,
1756
- ue as stringType,
1757
- Bn as transferCodeScript,
1758
- ze as tupleType,
1759
- jn as useCodeGraph
1757
+ ue as numberType,
1758
+ Nt as saveNodeState,
1759
+ _n as setOptional,
1760
+ ce as stringType,
1761
+ zn as transferCodeScript,
1762
+ Le as tupleType,
1763
+ Ln as useCodeGraph
1760
1764
  };