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