@fluxscape/react-runtime 1.0.5 → 1.0.7
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/build/preview/build/fluxscape.index.preview.js +24 -24
- package/build/preview/build/fluxscape.index.preview.js.map +1 -1
- package/build/production/build/fluxscape.index.production.js +24 -24
- package/build/production/build/fluxscape.index.production.js.map +1 -1
- package/dist/components/controls/Button/Button.d.ts +1 -1
- package/dist/components/controls/Button/Button.d.ts.map +1 -1
- package/dist/components/controls/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/controls/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/controls/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/controls/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/components/controls/Select/Select.d.ts +1 -1
- package/dist/components/controls/Select/Select.d.ts.map +1 -1
- package/dist/components/controls/TextInput/TextInput.d.ts +1 -1
- package/dist/components/controls/TextInput/TextInput.d.ts.map +1 -1
- package/dist/index.es.js +899 -845
- package/dist/index.es.js.map +1 -1
- package/dist/index.iife.js +24 -24
- package/dist/index.iife.js.map +1 -1
- package/dist/nodes/navigation/router.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -997,8 +997,8 @@ NodeScope.prototype.sendEventFromThisScope = function(e, t, n, o, r) {
|
|
|
997
997
|
} else if (n === "children") {
|
|
998
998
|
var u = this.nodes;
|
|
999
999
|
for (var d in u) {
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1000
|
+
var p = u[d].children;
|
|
1001
|
+
p && p.forEach((g) => {
|
|
1002
1002
|
if (g.name && this.context.hasComponentModelWithName(g.name)) {
|
|
1003
1003
|
var b = g.nodeScope.sendEventFromThisScope(
|
|
1004
1004
|
e,
|
|
@@ -1015,9 +1015,9 @@ NodeScope.prototype.sendEventFromThisScope = function(e, t, n, o, r) {
|
|
|
1015
1015
|
if (this.componentOwner.parent ? g = this.componentOwner.parent.nodeScope : g = this.componentOwner.parentNodeScope, !g) return;
|
|
1016
1016
|
var u = g.nodes;
|
|
1017
1017
|
for (var d in u) {
|
|
1018
|
-
var
|
|
1019
|
-
if (
|
|
1020
|
-
var f =
|
|
1018
|
+
var p = u[d].children;
|
|
1019
|
+
if (p) {
|
|
1020
|
+
var f = p.filter(
|
|
1021
1021
|
(A) => A.name && this.context.hasComponentModelWithName(A.name) && A.nodeScope !== this
|
|
1022
1022
|
);
|
|
1023
1023
|
f.forEach((A) => {
|
|
@@ -1520,9 +1520,9 @@ NodeContext.prototype.showPopup = async function(e, t, n) {
|
|
|
1520
1520
|
);
|
|
1521
1521
|
if (l && l.length > 0)
|
|
1522
1522
|
for (var u = 0; u < l.length; u++)
|
|
1523
|
-
l[u]._setCloseCallback((d,
|
|
1523
|
+
l[u]._setCloseCallback((d, p) => {
|
|
1524
1524
|
this.scheduleNextFrame(() => {
|
|
1525
|
-
o.hasNodeWithId(s.id) && (this.onClosePopup(s), o.deleteNode(s), n && n.onClosePopup && n.onClosePopup(d,
|
|
1525
|
+
o.hasNodeWithId(s.id) && (this.onClosePopup(s), o.deleteNode(s), n && n.onClosePopup && n.onClosePopup(d, p));
|
|
1526
1526
|
});
|
|
1527
1527
|
});
|
|
1528
1528
|
this.onShowPopup(s), requestAnimationFrame(() => {
|
|
@@ -1739,7 +1739,7 @@ EditorConnection.prototype.sendDynamicPorts = function(e, t, n) {
|
|
|
1739
1739
|
var r = Array.isArray(n.detectRenamed) ? n.detectRenamed : [n.detectRenamed], s = [];
|
|
1740
1740
|
r.forEach((a) => {
|
|
1741
1741
|
var l = JSON.parse(dynamicPortsHash[e]), u = [].concat(t);
|
|
1742
|
-
a.prefix && (l = l.filter((
|
|
1742
|
+
a.prefix && (l = l.filter((p) => p.name.startsWith(a.prefix)), u = u.filter((p) => p.name.startsWith(a.prefix))), a.plug && (l = l.filter((p) => p.plug === a.plug), u = u.filter((p) => p.plug === a.plug)), u = u.map((p) => p.name.substring((a.prefix || "").length)), l = l.map((p) => p.name.substring((a.prefix || "").length));
|
|
1743
1743
|
var d = _detectRename(l, u);
|
|
1744
1744
|
d && s.push({
|
|
1745
1745
|
plug: a.plug,
|
|
@@ -2053,25 +2053,25 @@ function generateNodeLibrary(e) {
|
|
|
2053
2053
|
searchTags: a.searchTags
|
|
2054
2054
|
};
|
|
2055
2055
|
t.nodetypes.push(l), a.version && (l.version = a.version), a.displayNodeName && (l.displayNodeName = a.displayNodeName), a.nodeDoubleClickAction && (l.nodeDoubleClickAction = a.nodeDoubleClickAction), a.shortDesc && (l.shortDesc = a.shortDesc), a.module && (l.module = a.module), a.deprecated && (l.deprecated = !0), a.haveComponentPorts && (l.haveComponentPorts = !0), a.category === "Visual" && (l.allowAsChild = !0, l.allowAsExportRoot = !0, l.color = "visual"), a.allowAsExportRoot !== void 0 && (l.allowAsExportRoot = a.allowAsExportRoot), a.allowChildren && (l.allowChildrenWithCategory = ["Visual"], l.color = "visual"), a.allowChildrenWithCategory && (l.allowChildrenWithCategory = a.allowChildrenWithCategory), a.singleton && (l.singleton = !0), a.allowAsChild && (l.allowAsChild = !0), a.docs && (l.docs = a.docs), a.shortDocs ? l.shortDocs = a.shortDocs : a.docs && a.docs.indexOf("https://docs.noodl.net") === 0 && (l.shortDocs = a.docs.replace("/#", "") + "-short.md"), l.category = a.category, a.panels && (l.panels = a.panels), a.usePortAsLabel && (l.usePortAsLabel = a.usePortAsLabel, l.portLabelTruncationMode = a.portLabelTruncationMode), a.color && (l.color = a.color), a.dynamicports && (l.dynamicports = formatDynamicPorts(a)), a.exportDynamicPorts && (l.exportDynamicPorts = a.exportDynamicPorts), a.visualStates && (l.visualStates = a.visualStates), a.useVariants && (l.useVariants = a.useVariants), a.connectionPanel && (l.connectionPanel = a.connectionPanel), l.ports = [];
|
|
2056
|
-
var u = l.dynamicports || [], d = {},
|
|
2056
|
+
var u = l.dynamicports || [], d = {}, p = {};
|
|
2057
2057
|
u.filter((g) => g.channelPort !== void 0).forEach((g) => {
|
|
2058
|
-
|
|
2058
|
+
p[g.channelPort.plug + "/" + g.channelPort.name] = !0;
|
|
2059
2059
|
}), u.length && (l.dynamicports = u), Object.keys(a.inputs).forEach(function(g) {
|
|
2060
|
-
if (!(d.hasOwnProperty("input/" + g) ||
|
|
2060
|
+
if (!(d.hasOwnProperty("input/" + g) || p.hasOwnProperty("input/" + g))) {
|
|
2061
2061
|
var b = a.inputs[g];
|
|
2062
2062
|
b.exportToEditor !== !1 && l.ports.push(formatPort(g, b, "input"));
|
|
2063
2063
|
}
|
|
2064
2064
|
});
|
|
2065
2065
|
function f(g, b) {
|
|
2066
|
-
var
|
|
2066
|
+
var _ = {
|
|
2067
2067
|
name: g,
|
|
2068
2068
|
type: b.type,
|
|
2069
2069
|
plug: "output"
|
|
2070
2070
|
};
|
|
2071
|
-
b.group && (
|
|
2071
|
+
b.group && (_.group = b.group), b.displayName && (_.displayName = b.displayName), b.editorName && (_.editorName = b.editorName), b.hasOwnProperty("index") && (_.index = b.index), l.ports.push(_);
|
|
2072
2072
|
}
|
|
2073
2073
|
Object.keys(a.outputs).forEach(function(g) {
|
|
2074
|
-
if (!(d.hasOwnProperty("output/" + g) ||
|
|
2074
|
+
if (!(d.hasOwnProperty("output/" + g) || p.hasOwnProperty("output/" + g))) {
|
|
2075
2075
|
var b = a.outputs[g];
|
|
2076
2076
|
f(g, b);
|
|
2077
2077
|
}
|
|
@@ -2931,18 +2931,18 @@ function defineNode(e) {
|
|
|
2931
2931
|
}), r = function(s, a, l) {
|
|
2932
2932
|
const u = new o(s, a);
|
|
2933
2933
|
return u._inputs = Object.create(n), Object.keys(e.inputs).forEach(function(d) {
|
|
2934
|
-
var
|
|
2935
|
-
|
|
2934
|
+
var p = e.inputs[d];
|
|
2935
|
+
p.valueChangedToTrue && (u._inputs[d] = {
|
|
2936
2936
|
set: createSetter({
|
|
2937
|
-
valueChangedToTrue:
|
|
2937
|
+
valueChangedToTrue: p.valueChangedToTrue
|
|
2938
2938
|
})
|
|
2939
2939
|
});
|
|
2940
2940
|
}), Object.keys(e.outputs).forEach(function(d) {
|
|
2941
|
-
var
|
|
2942
|
-
|
|
2941
|
+
var p = e.outputs[d];
|
|
2942
|
+
p.type === "signal" ? u.registerOutput(d, {
|
|
2943
2943
|
getter() {
|
|
2944
2944
|
}
|
|
2945
|
-
}) : u.registerOutput(d,
|
|
2945
|
+
}) : u.registerOutput(d, p);
|
|
2946
2946
|
}), e.numberedInputs && registerNumberedInputs(u, e.numberedInputs), u.nodeScope = l, initializeDefaultValues(u._inputValues, t.inputs), e.initialize.call(u), u;
|
|
2947
2947
|
};
|
|
2948
2948
|
return r.metadata = t, e.numberedInputs && registerSetupFunctionForNumberedInputs(
|
|
@@ -2957,16 +2957,16 @@ function registerSetupFunctionForNumberedInputs(e, t, n) {
|
|
|
2957
2957
|
const a = r.editorConnection;
|
|
2958
2958
|
if (!a || !a.isRunningLocally())
|
|
2959
2959
|
return;
|
|
2960
|
-
function l(d,
|
|
2960
|
+
function l(d, p, f) {
|
|
2961
2961
|
const g = d.component.getConnectionsTo(d.id).map((A) => A.targetPort), b = Object.keys(d.parameters).concat(g).filter(
|
|
2962
|
-
(A) => A.startsWith(
|
|
2963
|
-
),
|
|
2964
|
-
...b.map((A) => Number(A.slice(
|
|
2962
|
+
(A) => A.startsWith(p + " ")
|
|
2963
|
+
), _ = (b.length ? 1 + Math.max(
|
|
2964
|
+
...b.map((A) => Number(A.slice(p.length + 1)))
|
|
2965
2965
|
) : 0) + 1, T = [];
|
|
2966
|
-
for (let A = 0; A <
|
|
2966
|
+
for (let A = 0; A < _; A++) {
|
|
2967
2967
|
const v = {
|
|
2968
|
-
name:
|
|
2969
|
-
displayName: (f.displayPrefix ||
|
|
2968
|
+
name: p + " " + A,
|
|
2969
|
+
displayName: (f.displayPrefix || p) + " " + A,
|
|
2970
2970
|
type: f.type,
|
|
2971
2971
|
plug: "input",
|
|
2972
2972
|
group: f.group
|
|
@@ -2976,10 +2976,10 @@ function registerSetupFunctionForNumberedInputs(e, t, n) {
|
|
|
2976
2976
|
return T;
|
|
2977
2977
|
}
|
|
2978
2978
|
function u(d) {
|
|
2979
|
-
const
|
|
2979
|
+
const p = o.map(
|
|
2980
2980
|
(f) => l(d, f, n[f])
|
|
2981
2981
|
).flat();
|
|
2982
|
-
a.sendDynamicPorts(d.id,
|
|
2982
|
+
a.sendDynamicPorts(d.id, p);
|
|
2983
2983
|
}
|
|
2984
2984
|
s.on("nodeAdded." + t, (d) => {
|
|
2985
2985
|
u(d), d.on("parameterUpdated", () => {
|
|
@@ -3008,9 +3008,9 @@ function difference$1(e, t) {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
async function handleEvent(e, t, n) {
|
|
3010
3010
|
function o(l, u) {
|
|
3011
|
-
var d = {},
|
|
3011
|
+
var d = {}, p = {};
|
|
3012
3012
|
u.forEach(function(v) {
|
|
3013
|
-
v && v.plug === "outputs" && (v.plug = "output"), (v.plug === "input" || v.plug === "input/output") && (d[v.name] = v), (v.plug === "output" || v.plug === "input/output") && (
|
|
3013
|
+
v && v.plug === "outputs" && (v.plug = "output"), (v.plug === "input" || v.plug === "input/output") && (d[v.name] = v), (v.plug === "output" || v.plug === "input/output") && (p[v.name] = v);
|
|
3014
3014
|
});
|
|
3015
3015
|
var f = Object.keys(l.getInputPorts()), g = difference$1(
|
|
3016
3016
|
f,
|
|
@@ -3025,24 +3025,24 @@ async function handleEvent(e, t, n) {
|
|
|
3025
3025
|
v,
|
|
3026
3026
|
l.parameters[v]
|
|
3027
3027
|
);
|
|
3028
|
-
}), l.updateOutputPortTypes(
|
|
3029
|
-
var
|
|
3030
|
-
|
|
3031
|
-
Object.keys(
|
|
3028
|
+
}), l.updateOutputPortTypes(p);
|
|
3029
|
+
var _ = Object.keys(l.getOutputPorts()), T = difference$1(
|
|
3030
|
+
_,
|
|
3031
|
+
Object.keys(p)
|
|
3032
3032
|
), A = difference$1(
|
|
3033
|
-
Object.keys(
|
|
3034
|
-
|
|
3033
|
+
Object.keys(p),
|
|
3034
|
+
_
|
|
3035
3035
|
);
|
|
3036
3036
|
T.forEach(
|
|
3037
3037
|
l.removeOutputPortWithName.bind(l)
|
|
3038
3038
|
), A.forEach(function(v) {
|
|
3039
|
-
l.addOutputPort(
|
|
3039
|
+
l.addOutputPort(p[v]);
|
|
3040
3040
|
});
|
|
3041
3041
|
}
|
|
3042
|
-
function r(l, u, d,
|
|
3042
|
+
function r(l, u, d, p) {
|
|
3043
3043
|
var f = l.getNodesWithIdRecursive(u.id);
|
|
3044
3044
|
f.forEach(function(g) {
|
|
3045
|
-
g.queueInput(d,
|
|
3045
|
+
g.queueInput(d, p);
|
|
3046
3046
|
});
|
|
3047
3047
|
}
|
|
3048
3048
|
var s;
|
|
@@ -3091,8 +3091,8 @@ async function handleEvent(e, t, n) {
|
|
|
3091
3091
|
const d = new Set(
|
|
3092
3092
|
Object.keys(l.parameters).concat(Object.keys(l.oldParameters))
|
|
3093
3093
|
);
|
|
3094
|
-
for (const
|
|
3095
|
-
u.setParameter(
|
|
3094
|
+
for (const p of d)
|
|
3095
|
+
u.setParameter(p, l.parameters[p]);
|
|
3096
3096
|
}
|
|
3097
3097
|
l.parameterName && u.setParameter(
|
|
3098
3098
|
l.parameterName,
|
|
@@ -3906,8 +3906,8 @@ const RunTasksDefinition = {
|
|
|
3906
3906
|
var l = this.status, u = this.getResponseHeader("content-type"), d = this.response;
|
|
3907
3907
|
if (delete this._xhr, u) {
|
|
3908
3908
|
u = u.toLowerCase();
|
|
3909
|
-
const
|
|
3910
|
-
o.doResponse(l,
|
|
3909
|
+
const p = u.indexOf("json") !== -1 ? JSON.parse(d) : d;
|
|
3910
|
+
o.doResponse(l, p, e), a = !0;
|
|
3911
3911
|
}
|
|
3912
3912
|
a === !1 && o.doResponse(l, d, e);
|
|
3913
3913
|
}
|
|
@@ -3999,26 +3999,26 @@ function _parseScriptForErrors(e, t, n, o, r, s) {
|
|
|
3999
3999
|
o.id,
|
|
4000
4000
|
"rest-parse-waring-" + n
|
|
4001
4001
|
);
|
|
4002
|
-
} catch (
|
|
4002
|
+
} catch (p) {
|
|
4003
4003
|
r.editorConnection.sendWarning(
|
|
4004
4004
|
o.component.name,
|
|
4005
4005
|
o.id,
|
|
4006
4006
|
"rest-parse-waring-" + n,
|
|
4007
4007
|
{
|
|
4008
|
-
message: "<strong>" + n + "</strong>: " +
|
|
4008
|
+
message: "<strong>" + n + "</strong>: " + p.message,
|
|
4009
4009
|
showGlobally: !0
|
|
4010
4010
|
}
|
|
4011
4011
|
);
|
|
4012
4012
|
}
|
|
4013
|
-
function a(
|
|
4014
|
-
return s.find((f) => f.name ===
|
|
4013
|
+
function a(p) {
|
|
4014
|
+
return s.find((f) => f.name === p) !== void 0;
|
|
4015
4015
|
}
|
|
4016
4016
|
const l = e.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), u = l.match(/Inputs\.[A-Za-z0-9]+/g);
|
|
4017
4017
|
if (u) {
|
|
4018
|
-
const
|
|
4018
|
+
const p = {};
|
|
4019
4019
|
u.forEach((f) => {
|
|
4020
|
-
|
|
4021
|
-
}), Object.keys(
|
|
4020
|
+
p[f.substring(7)] = !0;
|
|
4021
|
+
}), Object.keys(p).forEach((f) => {
|
|
4022
4022
|
a("in-" + f) || s.push({
|
|
4023
4023
|
name: "in-" + f,
|
|
4024
4024
|
displayName: f,
|
|
@@ -4030,10 +4030,10 @@ function _parseScriptForErrors(e, t, n, o, r, s) {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
const d = l.match(/Outputs\.[A-Za-z0-9]+/g);
|
|
4032
4032
|
if (d) {
|
|
4033
|
-
const
|
|
4033
|
+
const p = {};
|
|
4034
4034
|
d.forEach((f) => {
|
|
4035
|
-
|
|
4036
|
-
}), Object.keys(
|
|
4035
|
+
p[f.substring(8)] = !0;
|
|
4036
|
+
}), Object.keys(p).forEach((f) => {
|
|
4037
4037
|
a("out-" + f) || s.push({
|
|
4038
4038
|
name: "out-" + f,
|
|
4039
4039
|
displayName: f,
|
|
@@ -4063,10 +4063,10 @@ const RestNode$1 = {
|
|
|
4063
4063
|
if (o.parameters.resource) {
|
|
4064
4064
|
var l = o.parameters.resource.match(/\{[A-Za-z0-9_]*\}/g);
|
|
4065
4065
|
for (var u in l) {
|
|
4066
|
-
var d = l[u],
|
|
4067
|
-
a("in-" +
|
|
4068
|
-
name: "in-" +
|
|
4069
|
-
displayName:
|
|
4066
|
+
var d = l[u], p = d.replace("{", "").replace("}", "");
|
|
4067
|
+
a("in-" + p) || s.push({
|
|
4068
|
+
name: "in-" + p,
|
|
4069
|
+
displayName: p,
|
|
4070
4070
|
type: "string",
|
|
4071
4071
|
plug: "input",
|
|
4072
4072
|
group: "Inputs"
|
|
@@ -4110,7 +4110,7 @@ var lodash_difference, hasRequiredLodash_difference;
|
|
|
4110
4110
|
function requireLodash_difference() {
|
|
4111
4111
|
if (hasRequiredLodash_difference) return lodash_difference;
|
|
4112
4112
|
hasRequiredLodash_difference = 1;
|
|
4113
|
-
var e = 200, t = "__lodash_hash_undefined__", n = 9007199254740991, o = "[object Arguments]", r = "[object Function]", s = "[object GeneratorFunction]", a = /[\\^$.*+?()[\]{}|]/g, l = /^\[object .+?Constructor\]$/, u = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1, d = typeof self == "object" && self && self.Object === Object && self,
|
|
4113
|
+
var e = 200, t = "__lodash_hash_undefined__", n = 9007199254740991, o = "[object Arguments]", r = "[object Function]", s = "[object GeneratorFunction]", a = /[\\^$.*+?()[\]{}|]/g, l = /^\[object .+?Constructor\]$/, u = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1, d = typeof self == "object" && self && self.Object === Object && self, p = u || d || Function("return this")();
|
|
4114
4114
|
function f(C, x, V) {
|
|
4115
4115
|
switch (V.length) {
|
|
4116
4116
|
case 0:
|
|
@@ -4133,7 +4133,7 @@ function requireLodash_difference() {
|
|
|
4133
4133
|
C[ee + V] = x[V];
|
|
4134
4134
|
return C;
|
|
4135
4135
|
}
|
|
4136
|
-
function
|
|
4136
|
+
function _(C, x, V, G) {
|
|
4137
4137
|
for (var ee = C.length, oe = V + -1; ++oe < ee; )
|
|
4138
4138
|
if (x(C[oe], oe, C))
|
|
4139
4139
|
return oe;
|
|
@@ -4141,7 +4141,7 @@ function requireLodash_difference() {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
function T(C, x, V) {
|
|
4143
4143
|
if (x !== x)
|
|
4144
|
-
return
|
|
4144
|
+
return _(C, A, V);
|
|
4145
4145
|
for (var G = V - 1, ee = C.length; ++G < ee; )
|
|
4146
4146
|
if (C[G] === x)
|
|
4147
4147
|
return G;
|
|
@@ -4165,12 +4165,12 @@ function requireLodash_difference() {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
return x;
|
|
4167
4167
|
}
|
|
4168
|
-
var N = Array.prototype, w = Function.prototype, E = Object.prototype, F =
|
|
4168
|
+
var N = Array.prototype, w = Function.prototype, E = Object.prototype, F = p["__core-js_shared__"], L = function() {
|
|
4169
4169
|
var C = /[^.]+$/.exec(F && F.keys && F.keys.IE_PROTO || "");
|
|
4170
4170
|
return C ? "Symbol(src)_1." + C : "";
|
|
4171
4171
|
}(), B = w.toString, H = E.hasOwnProperty, J = E.toString, ie = RegExp(
|
|
4172
4172
|
"^" + B.call(H).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4173
|
-
), pe =
|
|
4173
|
+
), pe = p.Symbol, xe = E.propertyIsEnumerable, Me = N.splice, ae = pe ? pe.isConcatSpreadable : void 0, Ie = Math.max, Te = Se(p, "Map"), Ne = Se(Object, "create");
|
|
4174
4174
|
function me(C) {
|
|
4175
4175
|
var x = -1, V = C ? C.length : 0;
|
|
4176
4176
|
for (this.clear(); ++x < V; ) {
|
|
@@ -4271,7 +4271,7 @@ function requireLodash_difference() {
|
|
|
4271
4271
|
Re.prototype.add = Re.prototype.push = We, Re.prototype.has = st;
|
|
4272
4272
|
function K(C, x) {
|
|
4273
4273
|
for (var V = C.length; V--; )
|
|
4274
|
-
if (
|
|
4274
|
+
if (h(C[V][0], x))
|
|
4275
4275
|
return V;
|
|
4276
4276
|
return -1;
|
|
4277
4277
|
}
|
|
@@ -4350,7 +4350,7 @@ function requireLodash_difference() {
|
|
|
4350
4350
|
var c = ye(function(C, x) {
|
|
4351
4351
|
return M(C) ? et(C, tt(x, 1, M)) : [];
|
|
4352
4352
|
});
|
|
4353
|
-
function
|
|
4353
|
+
function h(C, x) {
|
|
4354
4354
|
return C === x || C !== C && x !== x;
|
|
4355
4355
|
}
|
|
4356
4356
|
function y(C) {
|
|
@@ -5247,11 +5247,11 @@ Object.defineProperty(Array.prototype, "set", {
|
|
|
5247
5247
|
if (e === this) return;
|
|
5248
5248
|
e = e || [];
|
|
5249
5249
|
function o(d) {
|
|
5250
|
-
for (var
|
|
5250
|
+
for (var p = {}, f = d.length, g = 0; g < f; g++) {
|
|
5251
5251
|
var b = d[g];
|
|
5252
|
-
|
|
5252
|
+
p[b.getId()] = b;
|
|
5253
5253
|
}
|
|
5254
|
-
return
|
|
5254
|
+
return p;
|
|
5255
5255
|
}
|
|
5256
5256
|
var r = [];
|
|
5257
5257
|
for (t = e.length, n = 0; n < t; n++) {
|
|
@@ -5366,8 +5366,8 @@ function convertVisualFilter(e, t) {
|
|
|
5366
5366
|
return convertVisualFilter(e.rules[0], t);
|
|
5367
5367
|
{
|
|
5368
5368
|
const u = {}, d = "$" + e.combinator;
|
|
5369
|
-
return u[d] = [], e.rules.forEach((
|
|
5370
|
-
var f = convertVisualFilter(
|
|
5369
|
+
return u[d] = [], e.rules.forEach((p) => {
|
|
5370
|
+
var f = convertVisualFilter(p, t);
|
|
5371
5371
|
f !== void 0 && u[d].push(f);
|
|
5372
5372
|
}), u;
|
|
5373
5373
|
}
|
|
@@ -5786,10 +5786,10 @@ var DbCollectionNode$2 = {
|
|
|
5786
5786
|
const d = this._internal.visualFilter !== void 0 ? convertVisualFilter(this._internal.visualFilter, {
|
|
5787
5787
|
queryParameters: this._internal.queryParameters,
|
|
5788
5788
|
collectionName: this._internal.name
|
|
5789
|
-
}) : void 0,
|
|
5789
|
+
}) : void 0, p = this._internal.visualSorting !== void 0 ? convertVisualSorting(this._internal.visualSorting) : void 0;
|
|
5790
5790
|
return {
|
|
5791
5791
|
where: d,
|
|
5792
|
-
sort:
|
|
5792
|
+
sort: p
|
|
5793
5793
|
};
|
|
5794
5794
|
} else if (e.storageFilterType === "json") {
|
|
5795
5795
|
if (!this._internal.filterFunc)
|
|
@@ -5798,12 +5798,12 @@ var DbCollectionNode$2 = {
|
|
|
5798
5798
|
t = t.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), this._internal.filterVariables = t.match(/\$[A-Za-z0-9]+/g) || [];
|
|
5799
5799
|
var n = ["filter", "where", "sort", "Inputs"].concat(this._internal.filterVariables).concat([t]);
|
|
5800
5800
|
this._internal.filterFunc = Function.apply(null, n);
|
|
5801
|
-
} catch (
|
|
5802
|
-
this._internal.filterFunc = void 0, console.log("Error while parsing filter script: " +
|
|
5801
|
+
} catch (p) {
|
|
5802
|
+
this._internal.filterFunc = void 0, console.log("Error while parsing filter script: " + p);
|
|
5803
5803
|
}
|
|
5804
5804
|
if (!this._internal.filterFunc) return;
|
|
5805
|
-
var o = {}, r = [], s = this, a = function(
|
|
5806
|
-
o = convertFilterOp(
|
|
5805
|
+
var o = {}, r = [], s = this, a = function(p) {
|
|
5806
|
+
o = convertFilterOp(p, {
|
|
5807
5807
|
collectionName: s._internal.name,
|
|
5808
5808
|
error(f) {
|
|
5809
5809
|
s.context.editorConnection.sendWarning(
|
|
@@ -5816,22 +5816,22 @@ var DbCollectionNode$2 = {
|
|
|
5816
5816
|
);
|
|
5817
5817
|
}
|
|
5818
5818
|
});
|
|
5819
|
-
}, l = function(
|
|
5820
|
-
r =
|
|
5819
|
+
}, l = function(p) {
|
|
5820
|
+
r = p;
|
|
5821
5821
|
};
|
|
5822
5822
|
const d = {};
|
|
5823
|
-
for (let
|
|
5824
|
-
|
|
5823
|
+
for (let p in e)
|
|
5824
|
+
p.startsWith("storageFilterValue-") && (d[p.substring(19)] = e[p]);
|
|
5825
5825
|
var u = [a, a, l, d];
|
|
5826
|
-
this._internal.filterVariables.forEach((
|
|
5826
|
+
this._internal.filterVariables.forEach((p) => {
|
|
5827
5827
|
u.push(
|
|
5828
|
-
e["storageFilterValue-" +
|
|
5828
|
+
e["storageFilterValue-" + p.substring(1)]
|
|
5829
5829
|
);
|
|
5830
5830
|
});
|
|
5831
5831
|
try {
|
|
5832
5832
|
this._internal.filterFunc.apply(this, u);
|
|
5833
|
-
} catch (
|
|
5834
|
-
console.log("Error while running filter script: " +
|
|
5833
|
+
} catch (p) {
|
|
5834
|
+
console.log("Error while running filter script: " + p);
|
|
5835
5835
|
}
|
|
5836
5836
|
return { where: o, sort: r };
|
|
5837
5837
|
}
|
|
@@ -5977,9 +5977,9 @@ function updatePorts$6$1(e, t, n, o) {
|
|
|
5977
5977
|
if (u === void 0 && a && (u = a.find((f) => f.name === t.collectionName)), u && u.schema && u.schema.properties) {
|
|
5978
5978
|
let f = function(b) {
|
|
5979
5979
|
if (b.schema !== void 0 && b.schema.properties !== void 0)
|
|
5980
|
-
for (var
|
|
5981
|
-
var T = b.schema.properties[
|
|
5982
|
-
T.type === "Relation" && T.targetClass === t.collectionName && (g.relations === void 0 && (g.relations = {}), g.relations[b.name] === void 0 && (g.relations[b.name] = []), g.relations[b.name].push({ property:
|
|
5980
|
+
for (var _ in b.schema.properties) {
|
|
5981
|
+
var T = b.schema.properties[_];
|
|
5982
|
+
T.type === "Relation" && T.targetClass === t.collectionName && (g.relations === void 0 && (g.relations = {}), g.relations[b.name] === void 0 && (g.relations[b.name] = []), g.relations[b.name].push({ property: _ }));
|
|
5983
5983
|
}
|
|
5984
5984
|
};
|
|
5985
5985
|
const g = JSON.parse(JSON.stringify(u.schema));
|
|
@@ -5999,7 +5999,7 @@ function updatePorts$6$1(e, t, n, o) {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
if (t.visualFilter !== void 0) {
|
|
6001
6001
|
let f = function(b) {
|
|
6002
|
-
b !== void 0 && (b.rules !== void 0 ? b.rules.forEach((
|
|
6002
|
+
b !== void 0 && (b.rules !== void 0 ? b.rules.forEach((_) => f(_)) : b.input !== void 0 && (g[b.input] = !0));
|
|
6003
6003
|
};
|
|
6004
6004
|
const g = {};
|
|
6005
6005
|
f(t.visualFilter), Object.keys(g).forEach((b) => {
|
|
@@ -6025,10 +6025,10 @@ function updatePorts$6$1(e, t, n, o) {
|
|
|
6025
6025
|
var d = t.storageJSONFilter;
|
|
6026
6026
|
if (d) {
|
|
6027
6027
|
d = d.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, "");
|
|
6028
|
-
var
|
|
6029
|
-
if (
|
|
6028
|
+
var p = d.match(/\$[A-Za-z0-9]+/g);
|
|
6029
|
+
if (p) {
|
|
6030
6030
|
const f = {};
|
|
6031
|
-
|
|
6031
|
+
p.forEach((g) => {
|
|
6032
6032
|
f[g] = !0;
|
|
6033
6033
|
}), Object.keys(f).forEach((g) => {
|
|
6034
6034
|
r.push({
|
|
@@ -6331,9 +6331,9 @@ function updatePorts$5$1(e, t, n, o) {
|
|
|
6331
6331
|
var u = s.find((g) => g.name === t.collectionName);
|
|
6332
6332
|
if (u === void 0 && a && (u = a.find((g) => g.name === t.collectionName)), u && u.schema && u.schema.properties) {
|
|
6333
6333
|
var d = u.schema.properties;
|
|
6334
|
-
for (var
|
|
6335
|
-
var f = d[
|
|
6336
|
-
if (!r.find((g) => g.name ===
|
|
6334
|
+
for (var p in d) {
|
|
6335
|
+
var f = d[p];
|
|
6336
|
+
if (!r.find((g) => g.name === p) && f.type !== "Relation") {
|
|
6337
6337
|
const g = {
|
|
6338
6338
|
String: "string",
|
|
6339
6339
|
Boolean: "boolean",
|
|
@@ -6346,14 +6346,14 @@ function updatePorts$5$1(e, t, n, o) {
|
|
|
6346
6346
|
},
|
|
6347
6347
|
plug: "output",
|
|
6348
6348
|
group: "Properties",
|
|
6349
|
-
name: "prop-" +
|
|
6350
|
-
displayName:
|
|
6349
|
+
name: "prop-" + p,
|
|
6350
|
+
displayName: p
|
|
6351
6351
|
}), r.push({
|
|
6352
6352
|
type: "signal",
|
|
6353
6353
|
plug: "output",
|
|
6354
6354
|
group: "Changed Events",
|
|
6355
|
-
displayName:
|
|
6356
|
-
name: "changed-" +
|
|
6355
|
+
displayName: p + " Changed",
|
|
6356
|
+
name: "changed-" + p
|
|
6357
6357
|
});
|
|
6358
6358
|
}
|
|
6359
6359
|
}
|
|
@@ -6461,7 +6461,7 @@ function addBaseInfo$1(e, t) {
|
|
|
6461
6461
|
function a(l) {
|
|
6462
6462
|
function u() {
|
|
6463
6463
|
var d = [];
|
|
6464
|
-
const
|
|
6464
|
+
const p = s.getMetaData("dbCollections"), f = s.getMetaData("systemCollections"), g = [
|
|
6465
6465
|
{ label: "User", value: "_User" },
|
|
6466
6466
|
{ label: "Role", value: "_Role" }
|
|
6467
6467
|
], b = l.parameters;
|
|
@@ -6472,19 +6472,19 @@ function addBaseInfo$1(e, t) {
|
|
|
6472
6472
|
type: {
|
|
6473
6473
|
name: "enum",
|
|
6474
6474
|
enums: g.concat(
|
|
6475
|
-
|
|
6475
|
+
p !== void 0 ? p.map((I) => ({ value: I.name, label: I.name })) : []
|
|
6476
6476
|
),
|
|
6477
6477
|
allowEditOnly: !0
|
|
6478
6478
|
},
|
|
6479
6479
|
plug: "input"
|
|
6480
|
-
}), o && b.collectionName &&
|
|
6481
|
-
var
|
|
6480
|
+
}), o && b.collectionName && p) {
|
|
6481
|
+
var _ = p.find(
|
|
6482
6482
|
(I) => I.name === b.collectionName
|
|
6483
6483
|
);
|
|
6484
|
-
if (
|
|
6484
|
+
if (_ === void 0 && f && (_ = f.find(
|
|
6485
6485
|
(I) => I.name === b.collectionName
|
|
6486
|
-
)),
|
|
6487
|
-
const I =
|
|
6486
|
+
)), _ && _.schema && _.schema.properties) {
|
|
6487
|
+
const I = _.schema.properties, k = Object.keys(I).filter((N) => I[N].type === "Relation").map((N) => ({ label: N, value: N }));
|
|
6488
6488
|
d.push({
|
|
6489
6489
|
name: "relationProperty",
|
|
6490
6490
|
displayName: "Relation",
|
|
@@ -6494,20 +6494,20 @@ function addBaseInfo$1(e, t) {
|
|
|
6494
6494
|
});
|
|
6495
6495
|
}
|
|
6496
6496
|
}
|
|
6497
|
-
if (n && b.collectionName &&
|
|
6497
|
+
if (n && b.collectionName && p) {
|
|
6498
6498
|
const I = {
|
|
6499
6499
|
String: "string",
|
|
6500
6500
|
Boolean: "boolean",
|
|
6501
6501
|
Number: "number",
|
|
6502
6502
|
Date: "date"
|
|
6503
6503
|
};
|
|
6504
|
-
var
|
|
6504
|
+
var _ = p.find(
|
|
6505
6505
|
(N) => N.name === b.collectionName
|
|
6506
6506
|
);
|
|
6507
|
-
if (
|
|
6507
|
+
if (_ === void 0 && f && (_ = f.find(
|
|
6508
6508
|
(N) => N.name === b.collectionName
|
|
6509
|
-
)),
|
|
6510
|
-
var T =
|
|
6509
|
+
)), _ && _.schema && _.schema.properties) {
|
|
6510
|
+
var T = _.schema.properties;
|
|
6511
6511
|
for (var A in T) {
|
|
6512
6512
|
var v = T[A];
|
|
6513
6513
|
d.find((N) => N.name === A) || d.push({
|
|
@@ -7461,7 +7461,7 @@ function updatePorts$4$1(e, t, n, o) {
|
|
|
7461
7461
|
}
|
|
7462
7462
|
if (t.visualFilter !== void 0) {
|
|
7463
7463
|
let l = function(d) {
|
|
7464
|
-
d !== void 0 && (d.rules !== void 0 ? d.rules.forEach((
|
|
7464
|
+
d !== void 0 && (d.rules !== void 0 ? d.rules.forEach((p) => l(p)) : d.input !== void 0 && (u[d.input] = !0));
|
|
7465
7465
|
};
|
|
7466
7466
|
const u = {};
|
|
7467
7467
|
l(t.visualFilter), Object.keys(u).forEach((d) => {
|
|
@@ -9090,8 +9090,8 @@ function updatePorts$1$1(e, t, n, o) {
|
|
|
9090
9090
|
for (var l in a)
|
|
9091
9091
|
if (d.indexOf(l) === -1) {
|
|
9092
9092
|
var u = a[l];
|
|
9093
|
-
if (!r.find((
|
|
9094
|
-
const
|
|
9093
|
+
if (!r.find((p) => p.name === l) && u.type !== "Relation") {
|
|
9094
|
+
const p = {
|
|
9095
9095
|
String: "string",
|
|
9096
9096
|
Boolean: "boolean",
|
|
9097
9097
|
Number: "number",
|
|
@@ -9099,7 +9099,7 @@ function updatePorts$1$1(e, t, n, o) {
|
|
|
9099
9099
|
};
|
|
9100
9100
|
r.push({
|
|
9101
9101
|
type: {
|
|
9102
|
-
name:
|
|
9102
|
+
name: p[u.type] ? p[u.type] : "*"
|
|
9103
9103
|
},
|
|
9104
9104
|
plug: "input",
|
|
9105
9105
|
group: "Properties",
|
|
@@ -9344,8 +9344,8 @@ function updatePorts$b(e, t, n, o) {
|
|
|
9344
9344
|
for (var l in a)
|
|
9345
9345
|
if (d.indexOf(l) === -1) {
|
|
9346
9346
|
var u = a[l];
|
|
9347
|
-
if (!r.find((
|
|
9348
|
-
const
|
|
9347
|
+
if (!r.find((p) => p.name === l) && u.type !== "Relation") {
|
|
9348
|
+
const p = {
|
|
9349
9349
|
String: "string",
|
|
9350
9350
|
Boolean: "boolean",
|
|
9351
9351
|
Number: "number",
|
|
@@ -9353,7 +9353,7 @@ function updatePorts$b(e, t, n, o) {
|
|
|
9353
9353
|
};
|
|
9354
9354
|
r.push({
|
|
9355
9355
|
type: {
|
|
9356
|
-
name:
|
|
9356
|
+
name: p[u.type] ? p[u.type] : "*"
|
|
9357
9357
|
},
|
|
9358
9358
|
plug: "output",
|
|
9359
9359
|
group: "Properties",
|
|
@@ -10175,10 +10175,10 @@ function createRecordsAPI(e) {
|
|
|
10175
10175
|
select: s ? s.select : void 0,
|
|
10176
10176
|
count: s ? s.count : void 0,
|
|
10177
10177
|
success: (u, d) => {
|
|
10178
|
-
const
|
|
10178
|
+
const p = u.map(
|
|
10179
10179
|
(f) => n()._fromJSON(f, o)
|
|
10180
10180
|
);
|
|
10181
|
-
a(d !== void 0 ? { results:
|
|
10181
|
+
a(d !== void 0 ? { results: p, count: d } : p);
|
|
10182
10182
|
},
|
|
10183
10183
|
error: (u) => {
|
|
10184
10184
|
l(Error(u || "Failed to query."));
|
|
@@ -10320,14 +10320,14 @@ function createRecordsAPI(e) {
|
|
|
10320
10320
|
objectId: o,
|
|
10321
10321
|
data: r || l.data,
|
|
10322
10322
|
acl: s ? s.acl : void 0,
|
|
10323
|
-
success: (
|
|
10323
|
+
success: (p) => {
|
|
10324
10324
|
n()._fromJSON(
|
|
10325
|
-
Object.assign({ objectId: o },
|
|
10325
|
+
Object.assign({ objectId: o }, p),
|
|
10326
10326
|
a
|
|
10327
10327
|
), u();
|
|
10328
10328
|
},
|
|
10329
|
-
error: (
|
|
10330
|
-
d(Error(
|
|
10329
|
+
error: (p) => {
|
|
10330
|
+
d(Error(p || "Failed to save."));
|
|
10331
10331
|
}
|
|
10332
10332
|
});
|
|
10333
10333
|
});
|
|
@@ -10380,11 +10380,11 @@ function createRecordsAPI(e) {
|
|
|
10380
10380
|
key: o.key,
|
|
10381
10381
|
targetObjectId: a,
|
|
10382
10382
|
targetClass: l,
|
|
10383
|
-
success: (
|
|
10383
|
+
success: (p) => {
|
|
10384
10384
|
u();
|
|
10385
10385
|
},
|
|
10386
|
-
error: (
|
|
10387
|
-
d(Error(
|
|
10386
|
+
error: (p) => {
|
|
10387
|
+
d(Error(p || "Failed to add relation."));
|
|
10388
10388
|
}
|
|
10389
10389
|
});
|
|
10390
10390
|
});
|
|
@@ -10400,11 +10400,11 @@ function createRecordsAPI(e) {
|
|
|
10400
10400
|
key: o.key,
|
|
10401
10401
|
targetObjectId: a,
|
|
10402
10402
|
targetClass: l,
|
|
10403
|
-
success: (
|
|
10403
|
+
success: (p) => {
|
|
10404
10404
|
u();
|
|
10405
10405
|
},
|
|
10406
|
-
error: (
|
|
10407
|
-
d(Error(
|
|
10406
|
+
error: (p) => {
|
|
10407
|
+
d(Error(p || "Failed to add relation."));
|
|
10408
10408
|
}
|
|
10409
10409
|
});
|
|
10410
10410
|
});
|
|
@@ -10769,7 +10769,7 @@ function requireEvents() {
|
|
|
10769
10769
|
if (typeof ie == "function")
|
|
10770
10770
|
t(ie, this, E);
|
|
10771
10771
|
else
|
|
10772
|
-
for (var pe = ie.length, xe =
|
|
10772
|
+
for (var pe = ie.length, xe = _(ie, pe), F = 0; F < pe; ++F)
|
|
10773
10773
|
t(xe[F], this, E);
|
|
10774
10774
|
return !0;
|
|
10775
10775
|
};
|
|
@@ -10793,12 +10793,12 @@ function requireEvents() {
|
|
|
10793
10793
|
}, s.prototype.on = s.prototype.addListener, s.prototype.prependListener = function(w, E) {
|
|
10794
10794
|
return d(this, w, E, !0);
|
|
10795
10795
|
};
|
|
10796
|
-
function
|
|
10796
|
+
function p() {
|
|
10797
10797
|
if (!this.fired)
|
|
10798
10798
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
10799
10799
|
}
|
|
10800
10800
|
function f(N, w, E) {
|
|
10801
|
-
var F = { fired: !1, wrapFn: void 0, target: N, type: w, listener: E }, L =
|
|
10801
|
+
var F = { fired: !1, wrapFn: void 0, target: N, type: w, listener: E }, L = p.bind(F);
|
|
10802
10802
|
return L.listener = E, F.wrapFn = L, L;
|
|
10803
10803
|
}
|
|
10804
10804
|
s.prototype.once = function(w, E) {
|
|
@@ -10848,7 +10848,7 @@ function requireEvents() {
|
|
|
10848
10848
|
if (F === void 0)
|
|
10849
10849
|
return [];
|
|
10850
10850
|
var L = F[w];
|
|
10851
|
-
return L === void 0 ? [] : typeof L == "function" ? E ? [L.listener || L] : [L] : E ? A(L) :
|
|
10851
|
+
return L === void 0 ? [] : typeof L == "function" ? E ? [L.listener || L] : [L] : E ? A(L) : _(L, L.length);
|
|
10852
10852
|
}
|
|
10853
10853
|
s.prototype.listeners = function(w) {
|
|
10854
10854
|
return g(this, w, !0);
|
|
@@ -10871,7 +10871,7 @@ function requireEvents() {
|
|
|
10871
10871
|
s.prototype.eventNames = function() {
|
|
10872
10872
|
return this._eventsCount > 0 ? n(this._events) : [];
|
|
10873
10873
|
};
|
|
10874
|
-
function
|
|
10874
|
+
function _(N, w) {
|
|
10875
10875
|
for (var E = new Array(w), F = 0; F < w; ++F)
|
|
10876
10876
|
E[F] = N[F];
|
|
10877
10877
|
return E;
|
|
@@ -11579,85 +11579,85 @@ var webfontloader = { exports: {} }, hasRequiredWebfontloader;
|
|
|
11579
11579
|
function requireWebfontloader() {
|
|
11580
11580
|
return hasRequiredWebfontloader || (hasRequiredWebfontloader = 1, function(e) {
|
|
11581
11581
|
(function() {
|
|
11582
|
-
function t(c,
|
|
11582
|
+
function t(c, h, y) {
|
|
11583
11583
|
return c.call.apply(c.bind, arguments);
|
|
11584
11584
|
}
|
|
11585
|
-
function n(c,
|
|
11585
|
+
function n(c, h, y) {
|
|
11586
11586
|
if (!c) throw Error();
|
|
11587
11587
|
if (2 < arguments.length) {
|
|
11588
11588
|
var S = Array.prototype.slice.call(arguments, 2);
|
|
11589
11589
|
return function() {
|
|
11590
11590
|
var O = Array.prototype.slice.call(arguments);
|
|
11591
|
-
return Array.prototype.unshift.apply(O, S), c.apply(
|
|
11591
|
+
return Array.prototype.unshift.apply(O, S), c.apply(h, O);
|
|
11592
11592
|
};
|
|
11593
11593
|
}
|
|
11594
11594
|
return function() {
|
|
11595
|
-
return c.apply(
|
|
11595
|
+
return c.apply(h, arguments);
|
|
11596
11596
|
};
|
|
11597
11597
|
}
|
|
11598
|
-
function o(c,
|
|
11598
|
+
function o(c, h, y) {
|
|
11599
11599
|
return o = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? t : n, o.apply(null, arguments);
|
|
11600
11600
|
}
|
|
11601
11601
|
var r = Date.now || function() {
|
|
11602
11602
|
return +/* @__PURE__ */ new Date();
|
|
11603
11603
|
};
|
|
11604
|
-
function s(c,
|
|
11605
|
-
this.a = c, this.o =
|
|
11604
|
+
function s(c, h) {
|
|
11605
|
+
this.a = c, this.o = h || c, this.c = this.o.document;
|
|
11606
11606
|
}
|
|
11607
11607
|
var a = !!window.FontFace;
|
|
11608
|
-
function l(c,
|
|
11609
|
-
if (
|
|
11610
|
-
return S &&
|
|
11608
|
+
function l(c, h, y, S) {
|
|
11609
|
+
if (h = c.c.createElement(h), y) for (var O in y) y.hasOwnProperty(O) && (O == "style" ? h.style.cssText = y[O] : h.setAttribute(O, y[O]));
|
|
11610
|
+
return S && h.appendChild(c.c.createTextNode(S)), h;
|
|
11611
11611
|
}
|
|
11612
|
-
function u(c,
|
|
11613
|
-
c = c.c.getElementsByTagName(
|
|
11612
|
+
function u(c, h, y) {
|
|
11613
|
+
c = c.c.getElementsByTagName(h)[0], c || (c = document.documentElement), c.insertBefore(y, c.lastChild);
|
|
11614
11614
|
}
|
|
11615
11615
|
function d(c) {
|
|
11616
11616
|
c.parentNode && c.parentNode.removeChild(c);
|
|
11617
11617
|
}
|
|
11618
|
-
function
|
|
11619
|
-
|
|
11620
|
-
for (var S = c.className.split(/\s+/), O = 0; O <
|
|
11621
|
-
for (var M = !1, U = 0; U < S.length; U += 1) if (
|
|
11618
|
+
function p(c, h, y) {
|
|
11619
|
+
h = h || [], y = y || [];
|
|
11620
|
+
for (var S = c.className.split(/\s+/), O = 0; O < h.length; O += 1) {
|
|
11621
|
+
for (var M = !1, U = 0; U < S.length; U += 1) if (h[O] === S[U]) {
|
|
11622
11622
|
M = !0;
|
|
11623
11623
|
break;
|
|
11624
11624
|
}
|
|
11625
|
-
M || S.push(
|
|
11625
|
+
M || S.push(h[O]);
|
|
11626
11626
|
}
|
|
11627
|
-
for (
|
|
11627
|
+
for (h = [], O = 0; O < S.length; O += 1) {
|
|
11628
11628
|
for (M = !1, U = 0; U < y.length; U += 1) if (S[O] === y[U]) {
|
|
11629
11629
|
M = !0;
|
|
11630
11630
|
break;
|
|
11631
11631
|
}
|
|
11632
|
-
M ||
|
|
11632
|
+
M || h.push(S[O]);
|
|
11633
11633
|
}
|
|
11634
|
-
c.className =
|
|
11634
|
+
c.className = h.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
|
|
11635
11635
|
}
|
|
11636
|
-
function f(c,
|
|
11637
|
-
for (var y = c.className.split(/\s+/), S = 0, O = y.length; S < O; S++) if (y[S] ==
|
|
11636
|
+
function f(c, h) {
|
|
11637
|
+
for (var y = c.className.split(/\s+/), S = 0, O = y.length; S < O; S++) if (y[S] == h) return !0;
|
|
11638
11638
|
return !1;
|
|
11639
11639
|
}
|
|
11640
11640
|
function g(c) {
|
|
11641
11641
|
return c.o.location.hostname || c.a.location.hostname;
|
|
11642
11642
|
}
|
|
11643
|
-
function b(c,
|
|
11643
|
+
function b(c, h, y) {
|
|
11644
11644
|
function S() {
|
|
11645
11645
|
j && O && M && (j(U), j = null);
|
|
11646
11646
|
}
|
|
11647
|
-
|
|
11647
|
+
h = l(c, "link", { rel: "stylesheet", href: h, media: "all" });
|
|
11648
11648
|
var O = !1, M = !0, U = null, j = y || null;
|
|
11649
|
-
a ? (
|
|
11649
|
+
a ? (h.onload = function() {
|
|
11650
11650
|
O = !0, S();
|
|
11651
|
-
},
|
|
11651
|
+
}, h.onerror = function() {
|
|
11652
11652
|
O = !0, U = Error("Stylesheet failed to load"), S();
|
|
11653
11653
|
}) : setTimeout(function() {
|
|
11654
11654
|
O = !0, S();
|
|
11655
|
-
}, 0), u(c, "head",
|
|
11655
|
+
}, 0), u(c, "head", h);
|
|
11656
11656
|
}
|
|
11657
|
-
function
|
|
11657
|
+
function _(c, h, y, S) {
|
|
11658
11658
|
var O = c.c.getElementsByTagName("head")[0];
|
|
11659
11659
|
if (O) {
|
|
11660
|
-
var M = l(c, "script", { src:
|
|
11660
|
+
var M = l(c, "script", { src: h }), U = !1;
|
|
11661
11661
|
return M.onload = M.onreadystatechange = function() {
|
|
11662
11662
|
U || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (U = !0, y && y(null), M.onload = M.onreadystatechange = null, M.parentNode.tagName == "HEAD" && O.removeChild(M));
|
|
11663
11663
|
}, O.appendChild(M), setTimeout(function() {
|
|
@@ -11674,8 +11674,8 @@ function requireWebfontloader() {
|
|
|
11674
11674
|
c.a--, I(c);
|
|
11675
11675
|
};
|
|
11676
11676
|
}
|
|
11677
|
-
function v(c,
|
|
11678
|
-
c.c =
|
|
11677
|
+
function v(c, h) {
|
|
11678
|
+
c.c = h, I(c);
|
|
11679
11679
|
}
|
|
11680
11680
|
function I(c) {
|
|
11681
11681
|
c.a == 0 && c.c && (c.c(), c.c = null);
|
|
@@ -11684,66 +11684,66 @@ function requireWebfontloader() {
|
|
|
11684
11684
|
this.a = c || "-";
|
|
11685
11685
|
}
|
|
11686
11686
|
k.prototype.c = function(c) {
|
|
11687
|
-
for (var
|
|
11688
|
-
return
|
|
11687
|
+
for (var h = [], y = 0; y < arguments.length; y++) h.push(arguments[y].replace(/[\W_]+/g, "").toLowerCase());
|
|
11688
|
+
return h.join(this.a);
|
|
11689
11689
|
};
|
|
11690
|
-
function N(c,
|
|
11690
|
+
function N(c, h) {
|
|
11691
11691
|
this.c = c, this.f = 4, this.a = "n";
|
|
11692
|
-
var y = (
|
|
11692
|
+
var y = (h || "n4").match(/^([nio])([1-9])$/i);
|
|
11693
11693
|
y && (this.a = y[1], this.f = parseInt(y[2], 10));
|
|
11694
11694
|
}
|
|
11695
11695
|
function w(c) {
|
|
11696
11696
|
return L(c) + " " + (c.f + "00") + " 300px " + E(c.c);
|
|
11697
11697
|
}
|
|
11698
11698
|
function E(c) {
|
|
11699
|
-
var
|
|
11699
|
+
var h = [];
|
|
11700
11700
|
c = c.split(/,\s*/);
|
|
11701
11701
|
for (var y = 0; y < c.length; y++) {
|
|
11702
11702
|
var S = c[y].replace(/['"]/g, "");
|
|
11703
|
-
S.indexOf(" ") != -1 || /^\d/.test(S) ?
|
|
11703
|
+
S.indexOf(" ") != -1 || /^\d/.test(S) ? h.push("'" + S + "'") : h.push(S);
|
|
11704
11704
|
}
|
|
11705
|
-
return
|
|
11705
|
+
return h.join(",");
|
|
11706
11706
|
}
|
|
11707
11707
|
function F(c) {
|
|
11708
11708
|
return c.a + c.f;
|
|
11709
11709
|
}
|
|
11710
11710
|
function L(c) {
|
|
11711
|
-
var
|
|
11712
|
-
return c.a === "o" ?
|
|
11711
|
+
var h = "normal";
|
|
11712
|
+
return c.a === "o" ? h = "oblique" : c.a === "i" && (h = "italic"), h;
|
|
11713
11713
|
}
|
|
11714
11714
|
function B(c) {
|
|
11715
|
-
var
|
|
11716
|
-
return c && ((S = c.match(/(normal|oblique|italic)/i)) && S[1] && (y = S[1].substr(0, 1).toLowerCase()), (S = c.match(/([1-9]00|normal|bold)/i)) && S[1] && (/bold/i.test(S[1]) ?
|
|
11715
|
+
var h = 4, y = "n", S = null;
|
|
11716
|
+
return c && ((S = c.match(/(normal|oblique|italic)/i)) && S[1] && (y = S[1].substr(0, 1).toLowerCase()), (S = c.match(/([1-9]00|normal|bold)/i)) && S[1] && (/bold/i.test(S[1]) ? h = 7 : /[1-9]00/.test(S[1]) && (h = parseInt(S[1].substr(0, 1), 10)))), y + h;
|
|
11717
11717
|
}
|
|
11718
|
-
function H(c,
|
|
11719
|
-
this.c = c, this.f = c.o.document.documentElement, this.h =
|
|
11718
|
+
function H(c, h) {
|
|
11719
|
+
this.c = c, this.f = c.o.document.documentElement, this.h = h, this.a = new k("-"), this.j = h.events !== !1, this.g = h.classes !== !1;
|
|
11720
11720
|
}
|
|
11721
11721
|
function J(c) {
|
|
11722
|
-
c.g &&
|
|
11722
|
+
c.g && p(c.f, [c.a.c("wf", "loading")]), pe(c, "loading");
|
|
11723
11723
|
}
|
|
11724
11724
|
function ie(c) {
|
|
11725
11725
|
if (c.g) {
|
|
11726
|
-
var
|
|
11727
|
-
|
|
11726
|
+
var h = f(c.f, c.a.c("wf", "active")), y = [], S = [c.a.c("wf", "loading")];
|
|
11727
|
+
h || y.push(c.a.c("wf", "inactive")), p(c.f, y, S);
|
|
11728
11728
|
}
|
|
11729
11729
|
pe(c, "inactive");
|
|
11730
11730
|
}
|
|
11731
|
-
function pe(c,
|
|
11732
|
-
c.j && c.h[
|
|
11731
|
+
function pe(c, h, y) {
|
|
11732
|
+
c.j && c.h[h] && (y ? c.h[h](y.c, F(y)) : c.h[h]());
|
|
11733
11733
|
}
|
|
11734
11734
|
function xe() {
|
|
11735
11735
|
this.c = {};
|
|
11736
11736
|
}
|
|
11737
|
-
function Me(c,
|
|
11737
|
+
function Me(c, h, y) {
|
|
11738
11738
|
var S = [], O;
|
|
11739
|
-
for (O in
|
|
11739
|
+
for (O in h) if (h.hasOwnProperty(O)) {
|
|
11740
11740
|
var M = c.c[O];
|
|
11741
|
-
M && S.push(M(
|
|
11741
|
+
M && S.push(M(h[O], y));
|
|
11742
11742
|
}
|
|
11743
11743
|
return S;
|
|
11744
11744
|
}
|
|
11745
|
-
function ae(c,
|
|
11746
|
-
this.c = c, this.f =
|
|
11745
|
+
function ae(c, h) {
|
|
11746
|
+
this.c = c, this.f = h, this.a = l(this.c, "span", { "aria-hidden": "true" }, this.f);
|
|
11747
11747
|
}
|
|
11748
11748
|
function Ie(c) {
|
|
11749
11749
|
u(c.c, "body", c.a);
|
|
@@ -11751,13 +11751,13 @@ function requireWebfontloader() {
|
|
|
11751
11751
|
function Te(c) {
|
|
11752
11752
|
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + E(c.c) + ";" + ("font-style:" + L(c) + ";font-weight:" + (c.f + "00") + ";");
|
|
11753
11753
|
}
|
|
11754
|
-
function Ne(c,
|
|
11755
|
-
this.g = c, this.j =
|
|
11754
|
+
function Ne(c, h, y, S, O, M) {
|
|
11755
|
+
this.g = c, this.j = h, this.a = S, this.c = y, this.f = O || 3e3, this.h = M || void 0;
|
|
11756
11756
|
}
|
|
11757
11757
|
Ne.prototype.start = function() {
|
|
11758
|
-
var c = this.c.o.document,
|
|
11758
|
+
var c = this.c.o.document, h = this, y = r(), S = new Promise(function(U, j) {
|
|
11759
11759
|
function z() {
|
|
11760
|
-
r() - y >=
|
|
11760
|
+
r() - y >= h.f ? j() : c.fonts.load(w(h.a), h.h).then(function(q) {
|
|
11761
11761
|
1 <= q.length ? U() : setTimeout(z, 25);
|
|
11762
11762
|
}, function() {
|
|
11763
11763
|
j();
|
|
@@ -11765,16 +11765,16 @@ function requireWebfontloader() {
|
|
|
11765
11765
|
}
|
|
11766
11766
|
z();
|
|
11767
11767
|
}), O = null, M = new Promise(function(U, j) {
|
|
11768
|
-
O = setTimeout(j,
|
|
11768
|
+
O = setTimeout(j, h.f);
|
|
11769
11769
|
});
|
|
11770
11770
|
Promise.race([M, S]).then(function() {
|
|
11771
|
-
O && (clearTimeout(O), O = null),
|
|
11771
|
+
O && (clearTimeout(O), O = null), h.g(h.a);
|
|
11772
11772
|
}, function() {
|
|
11773
|
-
|
|
11773
|
+
h.j(h.a);
|
|
11774
11774
|
});
|
|
11775
11775
|
};
|
|
11776
|
-
function me(c,
|
|
11777
|
-
this.v = c, this.B =
|
|
11776
|
+
function me(c, h, y, S, O, M, U) {
|
|
11777
|
+
this.v = c, this.B = h, this.c = y, this.a = S, this.s = U || "BESbswy", this.f = {}, this.w = O || 3e3, this.u = M || null, this.m = this.j = this.h = this.g = null, this.g = new ae(this.c, this.s), this.h = new ae(this.c, this.s), this.j = new ae(this.c, this.s), this.m = new ae(this.c, this.s), c = new N(this.a.c + ",serif", F(this.a)), c = Te(c), this.g.a.style.cssText = c, c = new N(this.a.c + ",sans-serif", F(this.a)), c = Te(c), this.h.a.style.cssText = c, c = new N("serif", F(this.a)), c = Te(c), this.j.a.style.cssText = c, c = new N("sans-serif", F(this.a)), c = Te(c), this.m.a.style.cssText = c, Ie(this.g), Ie(this.h), Ie(this.j), Ie(this.m);
|
|
11778
11778
|
}
|
|
11779
11779
|
var Ee = { D: "serif", C: "sans-serif" }, Ae = null;
|
|
11780
11780
|
function qe() {
|
|
@@ -11787,41 +11787,41 @@ function requireWebfontloader() {
|
|
|
11787
11787
|
me.prototype.start = function() {
|
|
11788
11788
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = r(), Y(this);
|
|
11789
11789
|
};
|
|
11790
|
-
function Fe(c,
|
|
11791
|
-
for (var S in Ee) if (Ee.hasOwnProperty(S) &&
|
|
11790
|
+
function Fe(c, h, y) {
|
|
11791
|
+
for (var S in Ee) if (Ee.hasOwnProperty(S) && h === c.f[Ee[S]] && y === c.f[Ee[S]]) return !0;
|
|
11792
11792
|
return !1;
|
|
11793
11793
|
}
|
|
11794
11794
|
function Y(c) {
|
|
11795
|
-
var
|
|
11796
|
-
(S =
|
|
11795
|
+
var h = c.g.a.offsetWidth, y = c.h.a.offsetWidth, S;
|
|
11796
|
+
(S = h === c.f.serif && y === c.f["sans-serif"]) || (S = qe() && Fe(c, h, y)), S ? r() - c.A >= c.w ? qe() && Fe(c, h, y) && (c.u === null || c.u.hasOwnProperty(c.a.c)) ? Ve(c, c.v) : Ve(c, c.B) : ve(c) : Ve(c, c.v);
|
|
11797
11797
|
}
|
|
11798
11798
|
function ve(c) {
|
|
11799
11799
|
setTimeout(o(function() {
|
|
11800
11800
|
Y(this);
|
|
11801
11801
|
}, c), 50);
|
|
11802
11802
|
}
|
|
11803
|
-
function Ve(c,
|
|
11803
|
+
function Ve(c, h) {
|
|
11804
11804
|
setTimeout(o(function() {
|
|
11805
|
-
d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a),
|
|
11805
|
+
d(this.g.a), d(this.h.a), d(this.j.a), d(this.m.a), h(this.a);
|
|
11806
11806
|
}, c), 0);
|
|
11807
11807
|
}
|
|
11808
|
-
function re(c,
|
|
11809
|
-
this.c = c, this.a =
|
|
11808
|
+
function re(c, h, y) {
|
|
11809
|
+
this.c = c, this.a = h, this.f = 0, this.m = this.j = !1, this.s = y;
|
|
11810
11810
|
}
|
|
11811
11811
|
var Oe = null;
|
|
11812
11812
|
re.prototype.g = function(c) {
|
|
11813
|
-
var
|
|
11814
|
-
|
|
11813
|
+
var h = this.a;
|
|
11814
|
+
h.g && p(h.f, [h.a.c("wf", c.c, F(c).toString(), "active")], [h.a.c("wf", c.c, F(c).toString(), "loading"), h.a.c("wf", c.c, F(c).toString(), "inactive")]), pe(h, "fontactive", c), this.m = !0, $e(this);
|
|
11815
11815
|
}, re.prototype.h = function(c) {
|
|
11816
|
-
var
|
|
11817
|
-
if (
|
|
11818
|
-
var y = f(
|
|
11819
|
-
y || S.push(
|
|
11816
|
+
var h = this.a;
|
|
11817
|
+
if (h.g) {
|
|
11818
|
+
var y = f(h.f, h.a.c("wf", c.c, F(c).toString(), "active")), S = [], O = [h.a.c("wf", c.c, F(c).toString(), "loading")];
|
|
11819
|
+
y || S.push(h.a.c("wf", c.c, F(c).toString(), "inactive")), p(h.f, S, O);
|
|
11820
11820
|
}
|
|
11821
|
-
pe(
|
|
11821
|
+
pe(h, "fontinactive", c), $e(this);
|
|
11822
11822
|
};
|
|
11823
11823
|
function $e(c) {
|
|
11824
|
-
--c.f == 0 && c.j && (c.m ? (c = c.a, c.g &&
|
|
11824
|
+
--c.f == 0 && c.j && (c.m ? (c = c.a, c.g && p(c.f, [c.a.c("wf", "active")], [c.a.c("wf", "loading"), c.a.c("wf", "inactive")]), pe(c, "active")) : ie(c.a));
|
|
11825
11825
|
}
|
|
11826
11826
|
function Le(c) {
|
|
11827
11827
|
this.j = c, this.a = new xe(), this.h = 0, this.f = this.g = !0;
|
|
@@ -11829,39 +11829,39 @@ function requireWebfontloader() {
|
|
|
11829
11829
|
Le.prototype.load = function(c) {
|
|
11830
11830
|
this.c = new s(this.j, c.context || this.j), this.g = c.events !== !1, this.f = c.classes !== !1, Xe(this, new H(this.c, c), c);
|
|
11831
11831
|
};
|
|
11832
|
-
function fe(c,
|
|
11832
|
+
function fe(c, h, y, S, O) {
|
|
11833
11833
|
var M = --c.h == 0;
|
|
11834
11834
|
(c.f || c.g) && setTimeout(function() {
|
|
11835
11835
|
var U = O || null, j = S || null || {};
|
|
11836
|
-
if (y.length === 0 && M) ie(
|
|
11836
|
+
if (y.length === 0 && M) ie(h.a);
|
|
11837
11837
|
else {
|
|
11838
|
-
|
|
11838
|
+
h.f += y.length, M && (h.j = M);
|
|
11839
11839
|
var z, q = [];
|
|
11840
11840
|
for (z = 0; z < y.length; z++) {
|
|
11841
|
-
var C = y[z], x = j[C.c], V =
|
|
11842
|
-
if (V.g &&
|
|
11841
|
+
var C = y[z], x = j[C.c], V = h.a, G = C;
|
|
11842
|
+
if (V.g && p(V.f, [V.a.c("wf", G.c, F(G).toString(), "loading")]), pe(V, "fontloading", G), V = null, Oe === null) if (window.FontFace) {
|
|
11843
11843
|
var G = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), ee = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
11844
11844
|
Oe = G ? 42 < parseInt(G[1], 10) : !ee;
|
|
11845
11845
|
} else Oe = !1;
|
|
11846
|
-
Oe ? V = new Ne(o(
|
|
11846
|
+
Oe ? V = new Ne(o(h.g, h), o(h.h, h), h.c, C, h.s, x) : V = new me(o(h.g, h), o(h.h, h), h.c, C, h.s, U, x), q.push(V);
|
|
11847
11847
|
}
|
|
11848
11848
|
for (z = 0; z < q.length; z++) q[z].start();
|
|
11849
11849
|
}
|
|
11850
11850
|
}, 0);
|
|
11851
11851
|
}
|
|
11852
|
-
function Xe(c,
|
|
11852
|
+
function Xe(c, h, y) {
|
|
11853
11853
|
var O = [], S = y.timeout;
|
|
11854
|
-
J(
|
|
11855
|
-
var O = Me(c.a, y, c.c), M = new re(c.c,
|
|
11856
|
-
for (c.h = O.length,
|
|
11854
|
+
J(h);
|
|
11855
|
+
var O = Me(c.a, y, c.c), M = new re(c.c, h, S);
|
|
11856
|
+
for (c.h = O.length, h = 0, y = O.length; h < y; h++) O[h].load(function(U, j, z) {
|
|
11857
11857
|
fe(c, M, U, j, z);
|
|
11858
11858
|
});
|
|
11859
11859
|
}
|
|
11860
|
-
function Be(c,
|
|
11861
|
-
this.c = c, this.a =
|
|
11860
|
+
function Be(c, h) {
|
|
11861
|
+
this.c = c, this.a = h;
|
|
11862
11862
|
}
|
|
11863
11863
|
Be.prototype.load = function(c) {
|
|
11864
|
-
function
|
|
11864
|
+
function h() {
|
|
11865
11865
|
if (M["__mti_fntLst" + S]) {
|
|
11866
11866
|
var U = M["__mti_fntLst" + S](), j = [], z;
|
|
11867
11867
|
if (U) for (var q = 0; q < U.length; q++) {
|
|
@@ -11870,39 +11870,39 @@ function requireWebfontloader() {
|
|
|
11870
11870
|
}
|
|
11871
11871
|
c(j);
|
|
11872
11872
|
} else setTimeout(function() {
|
|
11873
|
-
|
|
11873
|
+
h();
|
|
11874
11874
|
}, 50);
|
|
11875
11875
|
}
|
|
11876
11876
|
var y = this, S = y.a.projectId, O = y.a.version;
|
|
11877
11877
|
if (S) {
|
|
11878
11878
|
var M = y.c.o;
|
|
11879
|
-
|
|
11879
|
+
_(this.c, (y.a.api || "https://fast.fonts.net/jsapi") + "/" + S + ".js" + (O ? "?v=" + O : ""), function(U) {
|
|
11880
11880
|
U ? c([]) : (M["__MonotypeConfiguration__" + S] = function() {
|
|
11881
11881
|
return y.a;
|
|
11882
|
-
},
|
|
11882
|
+
}, h());
|
|
11883
11883
|
}).id = "__MonotypeAPIScript__" + S;
|
|
11884
11884
|
} else c([]);
|
|
11885
11885
|
};
|
|
11886
|
-
function De(c,
|
|
11887
|
-
this.c = c, this.a =
|
|
11886
|
+
function De(c, h) {
|
|
11887
|
+
this.c = c, this.a = h;
|
|
11888
11888
|
}
|
|
11889
11889
|
De.prototype.load = function(c) {
|
|
11890
|
-
var
|
|
11891
|
-
for (
|
|
11890
|
+
var h, y, S = this.a.urls || [], O = this.a.families || [], M = this.a.testStrings || {}, U = new T();
|
|
11891
|
+
for (h = 0, y = S.length; h < y; h++) b(this.c, S[h], A(U));
|
|
11892
11892
|
var j = [];
|
|
11893
|
-
for (
|
|
11893
|
+
for (h = 0, y = O.length; h < y; h++) if (S = O[h].split(":"), S[1]) for (var z = S[1].split(","), q = 0; q < z.length; q += 1) j.push(new N(S[0], z[q]));
|
|
11894
11894
|
else j.push(new N(S[0]));
|
|
11895
11895
|
v(U, function() {
|
|
11896
11896
|
c(j, M);
|
|
11897
11897
|
});
|
|
11898
11898
|
};
|
|
11899
|
-
function Ue(c,
|
|
11900
|
-
c ? this.c = c : this.c = je, this.a = [], this.f = [], this.g =
|
|
11899
|
+
function Ue(c, h) {
|
|
11900
|
+
c ? this.c = c : this.c = je, this.a = [], this.f = [], this.g = h || "";
|
|
11901
11901
|
}
|
|
11902
11902
|
var je = "https://fonts.googleapis.com/css";
|
|
11903
|
-
function Re(c,
|
|
11904
|
-
for (var y =
|
|
11905
|
-
var O =
|
|
11903
|
+
function Re(c, h) {
|
|
11904
|
+
for (var y = h.length, S = 0; S < y; S++) {
|
|
11905
|
+
var O = h[S].split(":");
|
|
11906
11906
|
O.length == 3 && c.f.push(O.pop());
|
|
11907
11907
|
var M = "";
|
|
11908
11908
|
O.length == 2 && O[1] != "" && (M = ":"), c.a.push(O.join(M));
|
|
@@ -11911,15 +11911,15 @@ function requireWebfontloader() {
|
|
|
11911
11911
|
function We(c) {
|
|
11912
11912
|
if (c.a.length == 0) throw Error("No fonts to load!");
|
|
11913
11913
|
if (c.c.indexOf("kit=") != -1) return c.c;
|
|
11914
|
-
for (var
|
|
11915
|
-
return
|
|
11914
|
+
for (var h = c.a.length, y = [], S = 0; S < h; S++) y.push(c.a[S].replace(/ /g, "+"));
|
|
11915
|
+
return h = c.c + "?family=" + y.join("%7C"), 0 < c.f.length && (h += "&subset=" + c.f.join(",")), 0 < c.g.length && (h += "&text=" + encodeURIComponent(c.g)), h;
|
|
11916
11916
|
}
|
|
11917
11917
|
function st(c) {
|
|
11918
11918
|
this.f = c, this.a = [], this.c = {};
|
|
11919
11919
|
}
|
|
11920
11920
|
var K = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, et = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, tt = { i: "i", italic: "i", n: "n", normal: "n" }, le = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
|
11921
11921
|
function ye(c) {
|
|
11922
|
-
for (var
|
|
11922
|
+
for (var h = c.f.length, y = 0; y < h; y++) {
|
|
11923
11923
|
var S = c.f[y].split(":"), O = S[0].replace(/\+/g, " "), M = ["n4"];
|
|
11924
11924
|
if (2 <= S.length) {
|
|
11925
11925
|
var U, j = S[1];
|
|
@@ -11941,24 +11941,24 @@ function requireWebfontloader() {
|
|
|
11941
11941
|
for (c.c[O] || (S = K[O]) && (c.c[O] = S), S = 0; S < M.length; S += 1) c.a.push(new N(O, M[S]));
|
|
11942
11942
|
}
|
|
11943
11943
|
}
|
|
11944
|
-
function ue(c,
|
|
11945
|
-
this.c = c, this.a =
|
|
11944
|
+
function ue(c, h) {
|
|
11945
|
+
this.c = c, this.a = h;
|
|
11946
11946
|
}
|
|
11947
11947
|
var Se = { Arimo: !0, Cousine: !0, Tinos: !0 };
|
|
11948
11948
|
ue.prototype.load = function(c) {
|
|
11949
|
-
var
|
|
11949
|
+
var h = new T(), y = this.c, S = new Ue(this.a.api, this.a.text), O = this.a.families;
|
|
11950
11950
|
Re(S, O);
|
|
11951
11951
|
var M = new st(O);
|
|
11952
|
-
ye(M), b(y, We(S), A(
|
|
11952
|
+
ye(M), b(y, We(S), A(h)), v(h, function() {
|
|
11953
11953
|
c(M.a, M.c, Se);
|
|
11954
11954
|
});
|
|
11955
11955
|
};
|
|
11956
|
-
function ge(c,
|
|
11957
|
-
this.c = c, this.a =
|
|
11956
|
+
function ge(c, h) {
|
|
11957
|
+
this.c = c, this.a = h;
|
|
11958
11958
|
}
|
|
11959
11959
|
ge.prototype.load = function(c) {
|
|
11960
|
-
var
|
|
11961
|
-
|
|
11960
|
+
var h = this.a.id, y = this.c.o;
|
|
11961
|
+
h ? _(this.c, (this.a.api || "https://use.typekit.net") + "/" + h + ".js", function(S) {
|
|
11962
11962
|
if (S) c([]);
|
|
11963
11963
|
else if (y.Typekit && y.Typekit.config && y.Typekit.config.fn) {
|
|
11964
11964
|
S = y.Typekit.config.fn;
|
|
@@ -11971,32 +11971,32 @@ function requireWebfontloader() {
|
|
|
11971
11971
|
}
|
|
11972
11972
|
}, 2e3) : c([]);
|
|
11973
11973
|
};
|
|
11974
|
-
function ze(c,
|
|
11975
|
-
this.c = c, this.f =
|
|
11974
|
+
function ze(c, h) {
|
|
11975
|
+
this.c = c, this.f = h, this.a = [];
|
|
11976
11976
|
}
|
|
11977
11977
|
ze.prototype.load = function(c) {
|
|
11978
|
-
var
|
|
11979
|
-
|
|
11978
|
+
var h = this.f.id, y = this.c.o, S = this;
|
|
11979
|
+
h ? (y.__webfontfontdeckmodule__ || (y.__webfontfontdeckmodule__ = {}), y.__webfontfontdeckmodule__[h] = function(O, M) {
|
|
11980
11980
|
for (var U = 0, j = M.fonts.length; U < j; ++U) {
|
|
11981
11981
|
var z = M.fonts[U];
|
|
11982
11982
|
S.a.push(new N(z.name, B("font-weight:" + z.weight + ";font-style:" + z.style)));
|
|
11983
11983
|
}
|
|
11984
11984
|
c(S.a);
|
|
11985
|
-
},
|
|
11985
|
+
}, _(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + g(this.c) + "/" + h + ".js", function(O) {
|
|
11986
11986
|
O && c([]);
|
|
11987
11987
|
})) : c([]);
|
|
11988
11988
|
};
|
|
11989
11989
|
var Z = new Le(window);
|
|
11990
|
-
Z.a.c.custom = function(c,
|
|
11991
|
-
return new De(
|
|
11992
|
-
}, Z.a.c.fontdeck = function(c,
|
|
11993
|
-
return new ze(
|
|
11994
|
-
}, Z.a.c.monotype = function(c,
|
|
11995
|
-
return new Be(
|
|
11996
|
-
}, Z.a.c.typekit = function(c,
|
|
11997
|
-
return new ge(
|
|
11998
|
-
}, Z.a.c.google = function(c,
|
|
11999
|
-
return new ue(
|
|
11990
|
+
Z.a.c.custom = function(c, h) {
|
|
11991
|
+
return new De(h, c);
|
|
11992
|
+
}, Z.a.c.fontdeck = function(c, h) {
|
|
11993
|
+
return new ze(h, c);
|
|
11994
|
+
}, Z.a.c.monotype = function(c, h) {
|
|
11995
|
+
return new Be(h, c);
|
|
11996
|
+
}, Z.a.c.typekit = function(c, h) {
|
|
11997
|
+
return new ge(h, c);
|
|
11998
|
+
}, Z.a.c.google = function(c, h) {
|
|
11999
|
+
return new ue(h, c);
|
|
12000
12000
|
};
|
|
12001
12001
|
var Ce = { load: o(Z.load, Z) };
|
|
12002
12002
|
e.exports ? e.exports = Ce : (window.WebFont = Ce, window.WebFontConfig && Z.load(window.WebFontConfig));
|
|
@@ -12659,12 +12659,12 @@ const NodeSharedPortDefinitions = {
|
|
|
12659
12659
|
const n = t.defaults || {}, o = t.styleTag;
|
|
12660
12660
|
n.borderRadius || (n.borderRadius = 0);
|
|
12661
12661
|
function r(a, l, u, d) {
|
|
12662
|
-
const
|
|
12662
|
+
const p = (b) => `${b} ${l ? "(" + l + ")" : ""}`, f = { group: "corners", tab: u, label: l }, g = `border${l}Radius`;
|
|
12663
12663
|
addInputs$1(a, {
|
|
12664
12664
|
[g]: {
|
|
12665
12665
|
index: 240 + d,
|
|
12666
12666
|
displayName: "Corner Radius",
|
|
12667
|
-
editorName:
|
|
12667
|
+
editorName: p("Corner Radius"),
|
|
12668
12668
|
group: "Corner Radius",
|
|
12669
12669
|
type: {
|
|
12670
12670
|
name: "number",
|
|
@@ -12682,8 +12682,8 @@ const NodeSharedPortDefinitions = {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
r(e, "", "corners-all", 0), r(e, "TopLeft", "corners-top-left", 1), r(e, "TopRight", "corners-top-right", 2), r(e, "BottomRight", "corners-bottom-right", 3), r(e, "BottomLeft", "corners-bottom-left", 4), e.methods._updateCornerRadii = function() {
|
|
12684
12684
|
const a = this._internal.borderRadius;
|
|
12685
|
-
function l(d,
|
|
12686
|
-
const f = `border${
|
|
12685
|
+
function l(d, p) {
|
|
12686
|
+
const f = `border${p}Radius`;
|
|
12687
12687
|
d[f] = a[f] || a.borderRadius;
|
|
12688
12688
|
}
|
|
12689
12689
|
const u = {};
|
|
@@ -12699,20 +12699,20 @@ const NodeSharedPortDefinitions = {
|
|
|
12699
12699
|
const n = t.defaults || {}, o = t.styleTag;
|
|
12700
12700
|
n.borderStyle === void 0 && (n.borderStyle = "none"), n.borderWidth === void 0 && (n.borderWidth = 2), n.borderColor === void 0 && (n.borderColor = "#000000");
|
|
12701
12701
|
function r(a, l, u, d) {
|
|
12702
|
-
const
|
|
12702
|
+
const p = `border${l}Style`, f = `border${l}Width`, g = `border${l}Color`;
|
|
12703
12703
|
let b = n.borderStyle !== "none" ? "OR borderStyle NOT SET" : "";
|
|
12704
|
-
l ? (n[
|
|
12704
|
+
l ? (n[p] && n[p] !== "none" && (b += `OR ${p} NOT SET`), addDynamicInputPorts(
|
|
12705
12705
|
a,
|
|
12706
|
-
`${
|
|
12706
|
+
`${p} = solid OR ${p} = dashed OR ${p} = dotted OR borderStyle = solid OR borderStyle = dashed OR borderStyle = dotted ${b}`,
|
|
12707
12707
|
[`${f}`, `${g}`]
|
|
12708
12708
|
)) : addDynamicInputPorts(
|
|
12709
12709
|
a,
|
|
12710
|
-
`${
|
|
12710
|
+
`${p} = solid OR ${p} = dashed OR ${p} = dotted ${b}`,
|
|
12711
12711
|
[`${f}`, `${g}`]
|
|
12712
12712
|
);
|
|
12713
|
-
const
|
|
12713
|
+
const _ = { group: "border-styles", tab: u, label: l }, T = (v) => `${v} ${l ? "(" + l + ")" : ""}`, A = 202 + d * 4;
|
|
12714
12714
|
addInputs$1(a, {
|
|
12715
|
-
[
|
|
12715
|
+
[p]: {
|
|
12716
12716
|
index: A + 1,
|
|
12717
12717
|
displayName: "Border Style",
|
|
12718
12718
|
editorName: T("Border Style"),
|
|
@@ -12727,10 +12727,10 @@ const NodeSharedPortDefinitions = {
|
|
|
12727
12727
|
{ label: "Dashed", value: "dashed" }
|
|
12728
12728
|
]
|
|
12729
12729
|
},
|
|
12730
|
-
default: n[
|
|
12731
|
-
tab:
|
|
12730
|
+
default: n[p],
|
|
12731
|
+
tab: _,
|
|
12732
12732
|
set(v) {
|
|
12733
|
-
this._internal.borders[
|
|
12733
|
+
this._internal.borders[p] = v, this._updateBorders();
|
|
12734
12734
|
}
|
|
12735
12735
|
},
|
|
12736
12736
|
[f]: {
|
|
@@ -12745,7 +12745,7 @@ const NodeSharedPortDefinitions = {
|
|
|
12745
12745
|
defaultUnit: "px"
|
|
12746
12746
|
},
|
|
12747
12747
|
default: n[f],
|
|
12748
|
-
tab:
|
|
12748
|
+
tab: _,
|
|
12749
12749
|
set(v) {
|
|
12750
12750
|
this._internal.borders[f] = v.value === void 0 ? Number(v) + "px" : v.value + v.unit, this._updateBorders();
|
|
12751
12751
|
}
|
|
@@ -12758,7 +12758,7 @@ const NodeSharedPortDefinitions = {
|
|
|
12758
12758
|
type: "color",
|
|
12759
12759
|
default: n[g],
|
|
12760
12760
|
allowVisualStates: !0,
|
|
12761
|
-
tab:
|
|
12761
|
+
tab: _,
|
|
12762
12762
|
set(v) {
|
|
12763
12763
|
this._internal.borders[g] = v, this._updateBorders();
|
|
12764
12764
|
}
|
|
@@ -12767,8 +12767,8 @@ const NodeSharedPortDefinitions = {
|
|
|
12767
12767
|
}
|
|
12768
12768
|
r(e, "", "borders-all", 0), r(e, "Left", "borders-left", 1), r(e, "Top", "borders-top", 2), r(e, "Right", "borders-right", 3), r(e, "Bottom", "borders-bottom", 4), e.methods._updateBorders = function() {
|
|
12769
12769
|
const a = this._internal.borders;
|
|
12770
|
-
function l(d,
|
|
12771
|
-
const f = `border${
|
|
12770
|
+
function l(d, p) {
|
|
12771
|
+
const f = `border${p}Width`, g = `border${p}Color`, b = `border${p}Style`;
|
|
12772
12772
|
d[f] = a[f] || a.borderWidth, d[g] = a[g] || a.borderColor, d[b] = a[b] || a.borderStyle;
|
|
12773
12773
|
}
|
|
12774
12774
|
const u = {};
|
|
@@ -13110,8 +13110,8 @@ const NodeSharedPortDefinitions = {
|
|
|
13110
13110
|
editorName: l("Font Family"),
|
|
13111
13111
|
set(d) {
|
|
13112
13112
|
if (d) {
|
|
13113
|
-
let
|
|
13114
|
-
|
|
13113
|
+
let p = d;
|
|
13114
|
+
p.split(".").length > 1 && (FontLoader.instance.loadFont(p), p = p.replace(/\.[^/.]+$/, ""), p = p.split("/").pop()), this.setStyle({ fontFamily: p }, o);
|
|
13115
13115
|
} else
|
|
13116
13116
|
this.removeStyle(["fontFamily"], o);
|
|
13117
13117
|
this.props[s] && this.forceUpdate();
|
|
@@ -13224,8 +13224,8 @@ const NodeSharedPortDefinitions = {
|
|
|
13224
13224
|
}
|
|
13225
13225
|
});
|
|
13226
13226
|
const u = r + "fontFamily";
|
|
13227
|
-
e.setup = function(d,
|
|
13228
|
-
|
|
13227
|
+
e.setup = function(d, p) {
|
|
13228
|
+
p.on("nodeAdded." + e.name, function(f) {
|
|
13229
13229
|
f.parameters[u] && f.parameters[u].split(".").length > 1 && FontLoader.instance.loadFont(f.parameters[u]), f.on("parameterUpdated", function(g) {
|
|
13230
13230
|
g.name === u && g.value && g.value.split(".").length > 1 && FontLoader.instance.loadFont(g.value);
|
|
13231
13231
|
});
|
|
@@ -13366,7 +13366,7 @@ function requireBezierEasing() {
|
|
|
13366
13366
|
function d(T) {
|
|
13367
13367
|
return 3 * T;
|
|
13368
13368
|
}
|
|
13369
|
-
function
|
|
13369
|
+
function p(T, A, v) {
|
|
13370
13370
|
return ((l(A, v) * T + u(A, v)) * T + d(A)) * T;
|
|
13371
13371
|
}
|
|
13372
13372
|
function f(T, A, v) {
|
|
@@ -13375,7 +13375,7 @@ function requireBezierEasing() {
|
|
|
13375
13375
|
function g(T, A, v, I, k) {
|
|
13376
13376
|
var N, w, E = 0;
|
|
13377
13377
|
do
|
|
13378
|
-
w = A + (v - A) / 2, N =
|
|
13378
|
+
w = A + (v - A) / 2, N = p(w, I, k) - T, N > 0 ? v = w : A = w;
|
|
13379
13379
|
while (Math.abs(N) > n && ++E < o);
|
|
13380
13380
|
return w;
|
|
13381
13381
|
}
|
|
@@ -13383,15 +13383,15 @@ function requireBezierEasing() {
|
|
|
13383
13383
|
for (var k = 0; k < e; ++k) {
|
|
13384
13384
|
var N = f(A, v, I);
|
|
13385
13385
|
if (N === 0) return A;
|
|
13386
|
-
var w =
|
|
13386
|
+
var w = p(A, v, I) - T;
|
|
13387
13387
|
A -= w / N;
|
|
13388
13388
|
}
|
|
13389
13389
|
return A;
|
|
13390
13390
|
}
|
|
13391
|
-
function
|
|
13391
|
+
function _(T, A, v, I) {
|
|
13392
13392
|
if (arguments.length === 4)
|
|
13393
|
-
return new
|
|
13394
|
-
if (!(this instanceof
|
|
13393
|
+
return new _([T, A, v, I]);
|
|
13394
|
+
if (!(this instanceof _)) return new _(T);
|
|
13395
13395
|
if (!T || T.length !== 4)
|
|
13396
13396
|
throw new Error("BezierEasing: points must contains 4 values");
|
|
13397
13397
|
for (var k = 0; k < 4; ++k)
|
|
@@ -13401,10 +13401,10 @@ function requireBezierEasing() {
|
|
|
13401
13401
|
throw new Error("BezierEasing x values must be in [0, 1] range.");
|
|
13402
13402
|
this._str = "BezierEasing(" + T + ")", this._css = "cubic-bezier(" + T + ")", this._p = T, this._mSampleValues = a ? new Float32Array(r) : new Array(r), this._precomputed = !1, this.get = this.get.bind(this);
|
|
13403
13403
|
}
|
|
13404
|
-
return
|
|
13404
|
+
return _.prototype = {
|
|
13405
13405
|
get: function(T) {
|
|
13406
13406
|
var A = this._p[0], v = this._p[1], I = this._p[2], k = this._p[3];
|
|
13407
|
-
return this._precomputed || this._precompute(), A === v && I === k ? T : T === 0 ? 0 : T === 1 ? 1 :
|
|
13407
|
+
return this._precomputed || this._precompute(), A === v && I === k ? T : T === 0 ? 0 : T === 1 ? 1 : p(this._getTForX(T), v, k);
|
|
13408
13408
|
},
|
|
13409
13409
|
getPoints: function() {
|
|
13410
13410
|
return this._p;
|
|
@@ -13422,7 +13422,7 @@ function requireBezierEasing() {
|
|
|
13422
13422
|
},
|
|
13423
13423
|
_calcSampleValues: function() {
|
|
13424
13424
|
for (var T = this._p[0], A = this._p[2], v = 0; v < r; ++v)
|
|
13425
|
-
this._mSampleValues[v] =
|
|
13425
|
+
this._mSampleValues[v] = p(v * s, T, A);
|
|
13426
13426
|
},
|
|
13427
13427
|
/**
|
|
13428
13428
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
@@ -13434,13 +13434,13 @@ function requireBezierEasing() {
|
|
|
13434
13434
|
var E = (T - I[N]) / (I[N + 1] - I[N]), F = k + E * s, L = f(F, A, v);
|
|
13435
13435
|
return L >= t ? b(T, F, A, v) : L === 0 ? F : g(T, k, k + s, A, v);
|
|
13436
13436
|
}
|
|
13437
|
-
},
|
|
13438
|
-
ease:
|
|
13439
|
-
linear:
|
|
13440
|
-
"ease-in":
|
|
13441
|
-
"ease-out":
|
|
13442
|
-
"ease-in-out":
|
|
13443
|
-
}, bezierEasing =
|
|
13437
|
+
}, _.css = {
|
|
13438
|
+
ease: _.ease = _(0.25, 0.1, 0.25, 1),
|
|
13439
|
+
linear: _.linear = _(0, 0, 1, 1),
|
|
13440
|
+
"ease-in": _.easeIn = _(0.42, 0, 1, 1),
|
|
13441
|
+
"ease-out": _.easeOut = _(0, 0, 0.58, 1),
|
|
13442
|
+
"ease-in-out": _.easeInOut = _(0.42, 0, 0.58, 1)
|
|
13443
|
+
}, bezierEasing = _, bezierEasing;
|
|
13444
13444
|
}
|
|
13445
13445
|
var bezierEasingExports = requireBezierEasing();
|
|
13446
13446
|
const BezierEasing = /* @__PURE__ */ getDefaultExportFromCjs(bezierEasingExports);
|
|
@@ -13720,7 +13720,7 @@ function createNodeFromReactComponent(e) {
|
|
|
13720
13720
|
outputProps: l,
|
|
13721
13721
|
dynamicports: u,
|
|
13722
13722
|
defaultCss: d = {},
|
|
13723
|
-
methods:
|
|
13723
|
+
methods: p
|
|
13724
13724
|
} = e, f = Object.assign({}, d), g = {};
|
|
13725
13725
|
for (const v in s) {
|
|
13726
13726
|
const I = s[v], k = I.hasOwnProperty("default") && I.applyDefault !== !1;
|
|
@@ -13732,7 +13732,7 @@ function createNodeFromReactComponent(e) {
|
|
|
13732
13732
|
function b(v, I) {
|
|
13733
13733
|
this.clientBoundingRect = I, v === "x" ? this.flagOutputDirty("screenPositionX") : v === "y" ? this.flagOutputDirty("screenPositionY") : v === "width" ? this.flagOutputDirty("boundingWidth") : v === "height" && this.flagOutputDirty("boundingHeight");
|
|
13734
13734
|
}
|
|
13735
|
-
const
|
|
13735
|
+
const _ = e.useVariants !== void 0 ? e.useVariants : !0, T = {
|
|
13736
13736
|
name: e.name,
|
|
13737
13737
|
docs: e.docs,
|
|
13738
13738
|
displayNodeName: e.displayNodeName || e.displayName,
|
|
@@ -13743,7 +13743,7 @@ function createNodeFromReactComponent(e) {
|
|
|
13743
13743
|
visualStates: e.visualStates,
|
|
13744
13744
|
allowAsExportRoot: e.allowAsExportRoot,
|
|
13745
13745
|
singleton: e.singleton,
|
|
13746
|
-
useVariants:
|
|
13746
|
+
useVariants: _,
|
|
13747
13747
|
usePortAsLabel: e.usePortAsLabel,
|
|
13748
13748
|
portLabelTruncationMode: e.portLabelTruncationMode,
|
|
13749
13749
|
connectionPanel: e.connectionPanel,
|
|
@@ -14142,7 +14142,7 @@ function createNodeFromReactComponent(e) {
|
|
|
14142
14142
|
}
|
|
14143
14143
|
}
|
|
14144
14144
|
};
|
|
14145
|
-
|
|
14145
|
+
_ && (T.inputs.variant = {
|
|
14146
14146
|
displayName: "Variant",
|
|
14147
14147
|
group: "General",
|
|
14148
14148
|
type: {
|
|
@@ -14209,8 +14209,8 @@ function createNodeFromReactComponent(e) {
|
|
|
14209
14209
|
return this.outputPropValues[v];
|
|
14210
14210
|
}), T.outputs[v] = I;
|
|
14211
14211
|
}
|
|
14212
|
-
for (const v in
|
|
14213
|
-
T.methods[v] =
|
|
14212
|
+
for (const v in p)
|
|
14213
|
+
T.methods[v] = p[v];
|
|
14214
14214
|
return {
|
|
14215
14215
|
node: T,
|
|
14216
14216
|
setup: e.setup
|
|
@@ -14476,34 +14476,67 @@ const Utils$1 = {
|
|
|
14476
14476
|
controlEvents: controlEvents$1
|
|
14477
14477
|
};
|
|
14478
14478
|
function Button$2(e) {
|
|
14479
|
-
|
|
14480
|
-
Layout.size(t, e), Layout.align(t, e)
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
}
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14479
|
+
const t = { ...e.style };
|
|
14480
|
+
Layout.size(t, e), Layout.align(t, e);
|
|
14481
|
+
const n = e.textStyle !== void 0 ? {
|
|
14482
|
+
...t,
|
|
14483
|
+
...e.textStyle,
|
|
14484
|
+
color: e.noodlNode.context.styles.resolveColor(
|
|
14485
|
+
e.textStyle.color
|
|
14486
|
+
)
|
|
14487
|
+
} : t, o = React.useMemo(() => {
|
|
14488
|
+
if (!e.useIcon) return null;
|
|
14489
|
+
const l = {};
|
|
14490
|
+
if (e.useLabel && (l[e.iconPlacement === "right" ? "marginLeft" : "marginRight"] = e.iconSpacing), e.iconSourceType === "image" && e.iconImageSource) {
|
|
14491
|
+
const u = { width: e.iconSize, height: e.iconSize };
|
|
14492
|
+
let d = e.iconImageSource;
|
|
14493
|
+
if (typeof d == "string" && d.startsWith("/")) {
|
|
14494
|
+
const p = Noodl.Env.BaseUrl;
|
|
14495
|
+
p && (d = p + d.substring(1));
|
|
14496
|
+
}
|
|
14497
|
+
return /* @__PURE__ */ React.createElement("img", { alt: "", src: d, style: { ...l, ...u } });
|
|
14498
|
+
}
|
|
14499
|
+
if (e.iconSourceType === "icon" && e.iconIconSource) {
|
|
14500
|
+
const u = { fontSize: e.iconSize, color: e.iconColor };
|
|
14501
|
+
return e.iconIconSource.codeAsClass ? /* @__PURE__ */ React.createElement(
|
|
14502
|
+
"span",
|
|
14503
|
+
{
|
|
14504
|
+
className: `${e.iconIconSource.class} ${e.iconIconSource.code}`,
|
|
14505
|
+
style: { ...l, ...u }
|
|
14506
|
+
}
|
|
14507
|
+
) : /* @__PURE__ */ React.createElement(
|
|
14508
|
+
"span",
|
|
14509
|
+
{
|
|
14510
|
+
className: e.iconIconSource.class,
|
|
14511
|
+
style: { ...l, ...u }
|
|
14512
|
+
},
|
|
14513
|
+
e.iconIconSource.code
|
|
14514
|
+
);
|
|
14515
|
+
}
|
|
14516
|
+
return null;
|
|
14517
|
+
}, [
|
|
14518
|
+
e.useIcon,
|
|
14519
|
+
e.useLabel,
|
|
14520
|
+
e.iconPlacement,
|
|
14521
|
+
e.iconSpacing,
|
|
14522
|
+
e.iconSourceType,
|
|
14523
|
+
e.iconImageSource,
|
|
14524
|
+
e.iconIconSource,
|
|
14525
|
+
e.iconSize,
|
|
14526
|
+
e.iconColor
|
|
14527
|
+
]), r = /* @__PURE__ */ React.createElement(React.Fragment, null, e.useLabel && e.iconPlacement === "left" && o, e.useLabel && e.label, e.useLabel && e.iconPlacement === "right" && o, !e.useLabel && e.useIcon && o), s = ["ndl-controls-button", e.className].filter(Boolean).join(" "), a = React.useCallback(() => {
|
|
14528
|
+
e.onClick?.();
|
|
14529
|
+
}, [e.onClick]);
|
|
14530
|
+
return /* @__PURE__ */ React.createElement(
|
|
14498
14531
|
"button",
|
|
14499
14532
|
{
|
|
14500
14533
|
...e.attrs,
|
|
14501
|
-
className:
|
|
14534
|
+
className: s,
|
|
14502
14535
|
disabled: !e.enabled,
|
|
14503
14536
|
...Utils$1.controlEvents(e),
|
|
14504
14537
|
type: e.buttonType,
|
|
14505
|
-
style:
|
|
14506
|
-
onClick:
|
|
14538
|
+
style: n,
|
|
14539
|
+
onClick: a
|
|
14507
14540
|
},
|
|
14508
14541
|
r,
|
|
14509
14542
|
e.children
|
|
@@ -14626,12 +14659,17 @@ function Checkbox(e) {
|
|
|
14626
14659
|
};
|
|
14627
14660
|
e.useLabel || (Object.assign(r, Utils$1.controlEvents(e)), Object.assign(s, o));
|
|
14628
14661
|
function a() {
|
|
14629
|
-
if (e.iconSourceType === "image" && e.iconImageSource !== void 0)
|
|
14662
|
+
if (e.iconSourceType === "image" && e.iconImageSource !== void 0) {
|
|
14663
|
+
let u = e.iconImageSource;
|
|
14664
|
+
if (typeof u == "string" && u.startsWith("/")) {
|
|
14665
|
+
const d = Noodl.Env.BaseUrl;
|
|
14666
|
+
d && (u = d + u.substring(1));
|
|
14667
|
+
}
|
|
14630
14668
|
return /* @__PURE__ */ React__default.createElement(
|
|
14631
14669
|
"img",
|
|
14632
14670
|
{
|
|
14633
14671
|
alt: "",
|
|
14634
|
-
src:
|
|
14672
|
+
src: u,
|
|
14635
14673
|
style: {
|
|
14636
14674
|
width: e.iconSize,
|
|
14637
14675
|
height: e.iconSize,
|
|
@@ -14639,7 +14677,7 @@ function Checkbox(e) {
|
|
|
14639
14677
|
}
|
|
14640
14678
|
}
|
|
14641
14679
|
);
|
|
14642
|
-
if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
14680
|
+
} else if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
14643
14681
|
const u = {
|
|
14644
14682
|
fontSize: e.iconSize,
|
|
14645
14683
|
color: e.iconColor,
|
|
@@ -14866,32 +14904,37 @@ function Select(e) {
|
|
|
14866
14904
|
}, [e.value, e.items]);
|
|
14867
14905
|
let o = { ...e.style };
|
|
14868
14906
|
Layout.size(o, e), Layout.align(o, e), e.textStyle !== void 0 && (o = Object.assign({}, e.textStyle, o), o.color = e.noodlNode.context.styles.resolveColor(o.color));
|
|
14869
|
-
const r = !e.items || t === void 0 ? -1 : e.items.findIndex((
|
|
14907
|
+
const r = !e.items || t === void 0 ? -1 : e.items.findIndex((_) => _.Value === t), { height: s, ...a } = o;
|
|
14870
14908
|
function l() {
|
|
14871
|
-
if (e.iconSourceType === "image" && e.iconImageSource !== void 0)
|
|
14909
|
+
if (e.iconSourceType === "image" && e.iconImageSource !== void 0) {
|
|
14910
|
+
let _ = e.iconImageSource;
|
|
14911
|
+
if (typeof _ == "string" && _.startsWith("/")) {
|
|
14912
|
+
const T = Noodl.Env.BaseUrl;
|
|
14913
|
+
T && (_ = T + _.substring(1));
|
|
14914
|
+
}
|
|
14872
14915
|
return /* @__PURE__ */ React__default.createElement(
|
|
14873
14916
|
"img",
|
|
14874
14917
|
{
|
|
14875
14918
|
alt: "",
|
|
14876
|
-
src:
|
|
14919
|
+
src: _,
|
|
14877
14920
|
style: { width: e.iconSize, height: e.iconSize }
|
|
14878
14921
|
}
|
|
14879
14922
|
);
|
|
14880
|
-
if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
14881
|
-
const
|
|
14923
|
+
} else if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
14924
|
+
const _ = {
|
|
14882
14925
|
fontSize: e.iconSize,
|
|
14883
14926
|
color: e.iconColor
|
|
14884
14927
|
};
|
|
14885
|
-
return e.iconPlacement === "left" || e.iconPlacement === void 0 ?
|
|
14928
|
+
return e.iconPlacement === "left" || e.iconPlacement === void 0 ? _.marginRight = e.iconSpacing : _.marginLeft = e.iconSpacing, e.iconIconSource.codeAsClass === !0 ? /* @__PURE__ */ React__default.createElement(
|
|
14886
14929
|
"span",
|
|
14887
14930
|
{
|
|
14888
14931
|
className: [
|
|
14889
14932
|
e.iconIconSource.class,
|
|
14890
14933
|
e.iconIconSource.code
|
|
14891
14934
|
].join(" "),
|
|
14892
|
-
style:
|
|
14935
|
+
style: _
|
|
14893
14936
|
}
|
|
14894
|
-
) : /* @__PURE__ */ React__default.createElement("span", { className: e.iconIconSource.class, style:
|
|
14937
|
+
) : /* @__PURE__ */ React__default.createElement("span", { className: e.iconIconSource.class, style: _ }, e.iconIconSource.code);
|
|
14895
14938
|
}
|
|
14896
14939
|
return null;
|
|
14897
14940
|
}
|
|
@@ -14914,17 +14957,17 @@ function Select(e) {
|
|
|
14914
14957
|
alignItems: "center",
|
|
14915
14958
|
...e.styles.inputWrapper,
|
|
14916
14959
|
cursor: e.enabled ? "" : "default"
|
|
14917
|
-
},
|
|
14918
|
-
e.useLabel ?
|
|
14960
|
+
}, p = s && s[String(s).length - 1] === "%";
|
|
14961
|
+
e.useLabel ? p ? d.flexGrow = 1 : d.height = s : (Object.assign(d, a), d.height = s);
|
|
14919
14962
|
let f = [];
|
|
14920
|
-
e.items && (f = e.items.map((
|
|
14963
|
+
e.items && (f = e.items.map((_) => /* @__PURE__ */ React__default.createElement(
|
|
14921
14964
|
"option",
|
|
14922
14965
|
{
|
|
14923
|
-
key:
|
|
14924
|
-
value:
|
|
14925
|
-
disabled:
|
|
14966
|
+
key: _.Value,
|
|
14967
|
+
value: _.Value,
|
|
14968
|
+
disabled: _.Disabled === "true" || _.Disabled === !0 ? !0 : void 0
|
|
14926
14969
|
},
|
|
14927
|
-
|
|
14970
|
+
_.Label
|
|
14928
14971
|
)));
|
|
14929
14972
|
let g = null;
|
|
14930
14973
|
r >= 0 && r < e.items.items.length ? g = /* @__PURE__ */ React__default.createElement("span", null, e.items.items[r].Label) : e.placeholder && (g = /* @__PURE__ */ React__default.createElement("span", { style: { opacity: e.placeholderOpacity } }, e.placeholder));
|
|
@@ -14954,10 +14997,10 @@ function Select(e) {
|
|
|
14954
14997
|
{
|
|
14955
14998
|
...u,
|
|
14956
14999
|
disabled: !e.enabled,
|
|
14957
|
-
value: f.find((
|
|
15000
|
+
value: f.find((_) => _.props.value === t) ? t : void 0,
|
|
14958
15001
|
...Utils$1.controlEvents(e),
|
|
14959
|
-
onChange: (
|
|
14960
|
-
n(
|
|
15002
|
+
onChange: (_) => {
|
|
15003
|
+
n(_.target.value), e.valueChanged && e.valueChanged(_.target.value);
|
|
14961
15004
|
}
|
|
14962
15005
|
},
|
|
14963
15006
|
/* @__PURE__ */ React__default.createElement("option", { value: "", disabled: !0, selected: !0, hidden: !0 }),
|
|
@@ -14965,12 +15008,12 @@ function Select(e) {
|
|
|
14965
15008
|
)
|
|
14966
15009
|
);
|
|
14967
15010
|
if (e.useLabel) {
|
|
14968
|
-
const
|
|
15011
|
+
const _ = {
|
|
14969
15012
|
...a,
|
|
14970
15013
|
display: "flex",
|
|
14971
15014
|
flexDirection: "column"
|
|
14972
15015
|
};
|
|
14973
|
-
return
|
|
15016
|
+
return p && (_.height = s), /* @__PURE__ */ React__default.createElement("div", { style: _ }, /* @__PURE__ */ React__default.createElement(
|
|
14974
15017
|
"label",
|
|
14975
15018
|
{
|
|
14976
15019
|
htmlFor: e.id,
|
|
@@ -15159,16 +15202,21 @@ function RadioButton$2(e) {
|
|
|
15159
15202
|
};
|
|
15160
15203
|
e.useLabel ? isPercentage(e.styles.radio.width) && (delete r.width, r.flexGrow = 1) : (Object.assign(o, Utils$1.controlEvents(e)), Object.assign(r, n));
|
|
15161
15204
|
function s() {
|
|
15162
|
-
if (e.iconSourceType === "image" && e.iconImageSource !== void 0)
|
|
15205
|
+
if (e.iconSourceType === "image" && e.iconImageSource !== void 0) {
|
|
15206
|
+
let u = e.iconImageSource;
|
|
15207
|
+
if (typeof u == "string" && u.startsWith("/")) {
|
|
15208
|
+
const d = Noodl.Env.BaseUrl;
|
|
15209
|
+
d && (u = d + u.substring(1));
|
|
15210
|
+
}
|
|
15163
15211
|
return /* @__PURE__ */ React__default.createElement(
|
|
15164
15212
|
"img",
|
|
15165
15213
|
{
|
|
15166
15214
|
alt: "",
|
|
15167
|
-
src:
|
|
15215
|
+
src: u,
|
|
15168
15216
|
style: { width: e.iconSize, height: e.iconSize }
|
|
15169
15217
|
}
|
|
15170
15218
|
);
|
|
15171
|
-
if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
15219
|
+
} else if (e.iconSourceType === "icon" && e.iconIconSource !== void 0) {
|
|
15172
15220
|
const u = { fontSize: e.iconSize, color: e.iconColor };
|
|
15173
15221
|
return e.iconIconSource.codeAsClass === !0 ? /* @__PURE__ */ React__default.createElement(
|
|
15174
15222
|
"span",
|
|
@@ -15538,8 +15586,8 @@ function setBorderStyle(e, t, n) {
|
|
|
15538
15586
|
function o(r, s) {
|
|
15539
15587
|
const a = `${t}Border${s}Width`, l = `${t}Border${s}Color`, u = `${t}Border${s}Style`, d = n[a] || n[`${t}BorderWidth`];
|
|
15540
15588
|
d !== void 0 && (r[`border${s}Width`] = d);
|
|
15541
|
-
const
|
|
15542
|
-
|
|
15589
|
+
const p = r[l] = n[l] || n[`${t}BorderColor`];
|
|
15590
|
+
p !== void 0 && (r[`border${s}Color`] = p);
|
|
15543
15591
|
const f = n[u] || n[`${t}BorderStyle`];
|
|
15544
15592
|
f !== void 0 && (r[`border${s}Style`] = f);
|
|
15545
15593
|
}
|
|
@@ -15592,13 +15640,13 @@ function Slider(e) {
|
|
|
15592
15640
|
display: "flex",
|
|
15593
15641
|
alignItems: "center",
|
|
15594
15642
|
...r
|
|
15595
|
-
}, d = (t - e.min) / (e.max - e.min),
|
|
15643
|
+
}, d = (t - e.min) / (e.max - e.min), p = {
|
|
15596
15644
|
position: "absolute",
|
|
15597
15645
|
width: "100%",
|
|
15598
15646
|
height: e.trackHeight,
|
|
15599
15647
|
background: `linear-gradient(to right, ${e.trackActiveColor} 0%, ${e.trackActiveColor} ${d * 100}%, ${e.trackColor} ${d * 100}%, ${e.trackColor} 100%)`
|
|
15600
15648
|
};
|
|
15601
|
-
setBorderStyle(
|
|
15649
|
+
setBorderStyle(p, "track", e), setBorderRadius(p, "track", e), setShadow(p, "track", e);
|
|
15602
15650
|
const f = {
|
|
15603
15651
|
position: "absolute",
|
|
15604
15652
|
left: "calc((100% - " + e.thumbWidth + ") * " + d + ")",
|
|
@@ -15606,7 +15654,7 @@ function Slider(e) {
|
|
|
15606
15654
|
height: e.thumbHeight,
|
|
15607
15655
|
backgroundColor: e.thumbColor
|
|
15608
15656
|
};
|
|
15609
|
-
return setBorderStyle(f, "thumb", e), setBorderRadius(f, "thumb", e), setShadow(f, "thumb", e), /* @__PURE__ */ React__default.createElement("div", { style: u }, /* @__PURE__ */ React__default.createElement("div", { style:
|
|
15657
|
+
return setBorderStyle(f, "thumb", e), setBorderRadius(f, "thumb", e), setShadow(f, "thumb", e), /* @__PURE__ */ React__default.createElement("div", { style: u }, /* @__PURE__ */ React__default.createElement("div", { style: p }), /* @__PURE__ */ React__default.createElement("div", { style: f }), /* @__PURE__ */ React__default.createElement(
|
|
15610
15658
|
"input",
|
|
15611
15659
|
{
|
|
15612
15660
|
className: a,
|
|
@@ -15811,24 +15859,24 @@ function addBorderInputs(e, t) {
|
|
|
15811
15859
|
n.borderStyle = "none", n.borderWidth = 0, n.borderColor = "#000000";
|
|
15812
15860
|
const r = t.propPrefix[0].toUpperCase() + t.propPrefix.slice(1);
|
|
15813
15861
|
function s(a, l, u, d) {
|
|
15814
|
-
const
|
|
15862
|
+
const p = t.propPrefix + `Border${l}Style`, f = t.propPrefix + `Border${l}Width`, g = t.propPrefix + `Border${l}Color`;
|
|
15815
15863
|
let b = n.borderStyle !== "none" ? "OR borderStyle NOT SET" : "";
|
|
15816
|
-
l ? (n[
|
|
15864
|
+
l ? (n[p] && n[p] !== "none" && (b += `OR ${p} NOT SET`), NodeSharedPortDefinitions.addDynamicInputPorts(
|
|
15817
15865
|
a,
|
|
15818
|
-
`${
|
|
15866
|
+
`${p} = solid OR ${p} = dashed OR ${p} = dotted OR borderStyle = solid OR borderStyle = dashed OR borderStyle = dotted ${b}`,
|
|
15819
15867
|
[`${f}`, `${g}`]
|
|
15820
15868
|
)) : NodeSharedPortDefinitions.addDynamicInputPorts(
|
|
15821
15869
|
a,
|
|
15822
|
-
`${
|
|
15870
|
+
`${p} = solid OR ${p} = dashed OR ${p} = dotted ${b}`,
|
|
15823
15871
|
[`${f}`, `${g}`]
|
|
15824
15872
|
);
|
|
15825
|
-
const
|
|
15873
|
+
const _ = {
|
|
15826
15874
|
group: t.propPrefix + "-border-styles",
|
|
15827
15875
|
tab: u,
|
|
15828
15876
|
label: l
|
|
15829
15877
|
}, T = (I) => `${r} ${I} ${l ? "(" + l + ")" : ""}`, A = 202 + d * 4, v = r + " Border Style";
|
|
15830
15878
|
NodeSharedPortDefinitions.addInputProps(a, {
|
|
15831
|
-
[
|
|
15879
|
+
[p]: {
|
|
15832
15880
|
index: A + 1,
|
|
15833
15881
|
displayName: "Border Style",
|
|
15834
15882
|
editorName: T("Border Style"),
|
|
@@ -15843,7 +15891,7 @@ function addBorderInputs(e, t) {
|
|
|
15843
15891
|
]
|
|
15844
15892
|
},
|
|
15845
15893
|
default: n[`border${l}Style`],
|
|
15846
|
-
tab:
|
|
15894
|
+
tab: _,
|
|
15847
15895
|
popout: o,
|
|
15848
15896
|
allowVisualStates: !0
|
|
15849
15897
|
},
|
|
@@ -15858,7 +15906,7 @@ function addBorderInputs(e, t) {
|
|
|
15858
15906
|
defaultUnit: "px"
|
|
15859
15907
|
},
|
|
15860
15908
|
default: n[`border${l}Width`],
|
|
15861
|
-
tab:
|
|
15909
|
+
tab: _,
|
|
15862
15910
|
popout: o,
|
|
15863
15911
|
allowVisualStates: !0
|
|
15864
15912
|
},
|
|
@@ -15869,7 +15917,7 @@ function addBorderInputs(e, t) {
|
|
|
15869
15917
|
group: v,
|
|
15870
15918
|
type: "color",
|
|
15871
15919
|
default: n[`border${l}Color`],
|
|
15872
|
-
tab:
|
|
15920
|
+
tab: _,
|
|
15873
15921
|
popout: o,
|
|
15874
15922
|
allowVisualStates: !0
|
|
15875
15923
|
}
|
|
@@ -15883,7 +15931,7 @@ function addBorderRadius(e, t) {
|
|
|
15883
15931
|
n.borderRadius || (n.borderRadius = 0);
|
|
15884
15932
|
const r = t.propPrefix[0].toUpperCase() + t.propPrefix.slice(1);
|
|
15885
15933
|
function s(a, l, u, d) {
|
|
15886
|
-
const
|
|
15934
|
+
const p = (b) => `${r} ${b} ${l ? "(" + l + ")" : ""}`, f = {
|
|
15887
15935
|
group: t.propPrefix + "-corners",
|
|
15888
15936
|
tab: u,
|
|
15889
15937
|
label: l
|
|
@@ -15892,7 +15940,7 @@ function addBorderRadius(e, t) {
|
|
|
15892
15940
|
[t.propPrefix + g]: {
|
|
15893
15941
|
index: 240 + d,
|
|
15894
15942
|
displayName: "Corner Radius",
|
|
15895
|
-
editorName:
|
|
15943
|
+
editorName: p("Corner Radius"),
|
|
15896
15944
|
group: r + " Corner Radius",
|
|
15897
15945
|
type: {
|
|
15898
15946
|
name: "number",
|
|
@@ -16047,12 +16095,17 @@ let TextInput$2 = class extends React__default.Component {
|
|
|
16047
16095
|
const t = { ...this.props.style };
|
|
16048
16096
|
Layout.size(t, this.props), Layout.align(t, this.props), t.opacity === 0 && (t.pointerEvents = "none");
|
|
16049
16097
|
const { height: n, ...o } = t, r = o, s = this.props, a = () => {
|
|
16050
|
-
if (s.iconSourceType === "image" && s.iconImageSource !== void 0)
|
|
16098
|
+
if (s.iconSourceType === "image" && s.iconImageSource !== void 0) {
|
|
16099
|
+
let _ = s.iconImageSource;
|
|
16100
|
+
if (typeof _ == "string" && _.startsWith("/")) {
|
|
16101
|
+
const T = Noodl.Env.BaseUrl;
|
|
16102
|
+
T && (_ = T + _.substring(1));
|
|
16103
|
+
}
|
|
16051
16104
|
return /* @__PURE__ */ React__default.createElement(
|
|
16052
16105
|
"img",
|
|
16053
16106
|
{
|
|
16054
16107
|
alt: "",
|
|
16055
|
-
src:
|
|
16108
|
+
src: _,
|
|
16056
16109
|
style: {
|
|
16057
16110
|
width: s.iconSize,
|
|
16058
16111
|
height: s.iconSize
|
|
@@ -16060,22 +16113,22 @@ let TextInput$2 = class extends React__default.Component {
|
|
|
16060
16113
|
onClick: () => this.focus()
|
|
16061
16114
|
}
|
|
16062
16115
|
);
|
|
16063
|
-
if (s.iconSourceType === "icon" && s.iconIconSource !== void 0) {
|
|
16064
|
-
const
|
|
16116
|
+
} else if (s.iconSourceType === "icon" && s.iconIconSource !== void 0) {
|
|
16117
|
+
const _ = {
|
|
16065
16118
|
userSelect: "none",
|
|
16066
16119
|
fontSize: s.iconSize,
|
|
16067
16120
|
color: s.iconColor
|
|
16068
16121
|
};
|
|
16069
|
-
return s.iconPlacement === "left" || s.iconPlacement === void 0 ?
|
|
16122
|
+
return s.iconPlacement === "left" || s.iconPlacement === void 0 ? _.marginRight = s.iconSpacing : _.marginLeft = s.iconSpacing, s.iconIconSource.codeAsClass === !0 ? /* @__PURE__ */ React__default.createElement(
|
|
16070
16123
|
"span",
|
|
16071
16124
|
{
|
|
16072
16125
|
className: [
|
|
16073
16126
|
s.iconIconSource.class,
|
|
16074
16127
|
s.iconIconSource.code
|
|
16075
16128
|
].join(" "),
|
|
16076
|
-
style:
|
|
16129
|
+
style: _
|
|
16077
16130
|
}
|
|
16078
|
-
) : /* @__PURE__ */ React__default.createElement("span", { className: s.iconIconSource.class, style:
|
|
16131
|
+
) : /* @__PURE__ */ React__default.createElement("span", { className: s.iconIconSource.class, style: _ }, s.iconIconSource.code);
|
|
16079
16132
|
}
|
|
16080
16133
|
return null;
|
|
16081
16134
|
};
|
|
@@ -16091,7 +16144,7 @@ let TextInput$2 = class extends React__default.Component {
|
|
|
16091
16144
|
d.color = s.noodlNode.context.styles.resolveColor(
|
|
16092
16145
|
d.color
|
|
16093
16146
|
);
|
|
16094
|
-
const
|
|
16147
|
+
const p = {
|
|
16095
16148
|
...s.attrs,
|
|
16096
16149
|
id: s.id,
|
|
16097
16150
|
value: this.state.value,
|
|
@@ -16101,28 +16154,28 @@ let TextInput$2 = class extends React__default.Component {
|
|
|
16101
16154
|
className: l,
|
|
16102
16155
|
placeholder: s.placeholder,
|
|
16103
16156
|
maxLength: s.maxLength,
|
|
16104
|
-
onChange: (
|
|
16157
|
+
onChange: (_) => this.onChange(_)
|
|
16105
16158
|
};
|
|
16106
16159
|
s.type !== "textArea" ? u = /* @__PURE__ */ React__default.createElement(
|
|
16107
16160
|
"input",
|
|
16108
16161
|
{
|
|
16109
|
-
ref: (
|
|
16110
|
-
this.ref.current =
|
|
16162
|
+
ref: (_) => {
|
|
16163
|
+
this.ref.current = _;
|
|
16111
16164
|
},
|
|
16112
16165
|
type: this.props.type,
|
|
16113
|
-
...
|
|
16114
|
-
onKeyDown: (
|
|
16166
|
+
...p,
|
|
16167
|
+
onKeyDown: (_) => this.onKeyDown(_),
|
|
16115
16168
|
onMouseDown: () => window.addEventListener("click", preventGlobalFocusChange$1, !0),
|
|
16116
16169
|
"noodl-style-tag": "input"
|
|
16117
16170
|
}
|
|
16118
|
-
) : (
|
|
16171
|
+
) : (p.style.resize = "none", u = /* @__PURE__ */ React__default.createElement(
|
|
16119
16172
|
"textarea",
|
|
16120
16173
|
{
|
|
16121
|
-
ref: (
|
|
16122
|
-
this.ref.current =
|
|
16174
|
+
ref: (_) => {
|
|
16175
|
+
this.ref.current = _;
|
|
16123
16176
|
},
|
|
16124
|
-
...
|
|
16125
|
-
onKeyDown: (
|
|
16177
|
+
...p,
|
|
16178
|
+
onKeyDown: (_) => this.onKeyDown(_),
|
|
16126
16179
|
"noodl-style-tag": "input"
|
|
16127
16180
|
}
|
|
16128
16181
|
));
|
|
@@ -16135,14 +16188,14 @@ let TextInput$2 = class extends React__default.Component {
|
|
|
16135
16188
|
const b = /* @__PURE__ */ React__default.createElement("div", { style: f, "noodl-style-tag": "inputWrapper" }, s.useIcon && s.iconPlacement === "left" ? a() : null, u, s.useIcon && s.iconPlacement === "right" ? a() : null);
|
|
16136
16189
|
if (s.useLabel) {
|
|
16137
16190
|
r.display = "flex", r.flexDirection = "column", g && (r.height = n);
|
|
16138
|
-
const
|
|
16191
|
+
const _ = {
|
|
16139
16192
|
...s.labeltextStyle,
|
|
16140
16193
|
...s.styles.label,
|
|
16141
16194
|
marginBottom: s.labelSpacing
|
|
16142
16195
|
};
|
|
16143
|
-
return
|
|
16144
|
-
|
|
16145
|
-
), /* @__PURE__ */ React__default.createElement("div", { style: r }, /* @__PURE__ */ React__default.createElement("label", { htmlFor: s.id, style:
|
|
16196
|
+
return _.color = s.noodlNode.context.styles.resolveColor(
|
|
16197
|
+
_.color
|
|
16198
|
+
), /* @__PURE__ */ React__default.createElement("div", { style: r }, /* @__PURE__ */ React__default.createElement("label", { htmlFor: s.id, style: _, "noodl-style-tag": "label" }, s.label), b);
|
|
16146
16199
|
} else
|
|
16147
16200
|
return b;
|
|
16148
16201
|
}
|
|
@@ -16990,10 +17043,10 @@ const PageStack = {
|
|
|
16990
17043
|
var o = t.getNavigationRemainingPath();
|
|
16991
17044
|
if (o === void 0) return;
|
|
16992
17045
|
var r = this._getSearchParams();
|
|
16993
|
-
function s(d,
|
|
16994
|
-
for (var f = {}, g = 0; g <
|
|
17046
|
+
function s(d, p) {
|
|
17047
|
+
for (var f = {}, g = 0; g < p.length; g++) {
|
|
16995
17048
|
if (d[g] === void 0) return;
|
|
16996
|
-
var b =
|
|
17049
|
+
var b = p[g];
|
|
16997
17050
|
if (b[0] === "{" && b[b.length - 1] === "}")
|
|
16998
17051
|
f[b.substring(1, b.length - 1)] = decodeURIComponent(
|
|
16999
17052
|
d[g]
|
|
@@ -17002,7 +17055,7 @@ const PageStack = {
|
|
|
17002
17055
|
}
|
|
17003
17056
|
return {
|
|
17004
17057
|
params: f,
|
|
17005
|
-
remainingPathParts: d.splice(
|
|
17058
|
+
remainingPathParts: d.splice(p.length)
|
|
17006
17059
|
};
|
|
17007
17060
|
}
|
|
17008
17061
|
for (var a of this._internal.pages) {
|
|
@@ -17514,6 +17567,7 @@ const RouterNode = {
|
|
|
17514
17567
|
name: "Router",
|
|
17515
17568
|
displayNodeName: "Page Router",
|
|
17516
17569
|
category: "Visuals",
|
|
17570
|
+
usePortAsLabel: "name",
|
|
17517
17571
|
docs: "https://docs.noodl.net/nodes/navigation/page-router",
|
|
17518
17572
|
useVariants: !1,
|
|
17519
17573
|
connectionPanel: {
|
|
@@ -17777,13 +17831,13 @@ const RouterNode = {
|
|
|
17777
17831
|
const n = this._getSearchParams();
|
|
17778
17832
|
function o(l, u) {
|
|
17779
17833
|
const d = {};
|
|
17780
|
-
for (let
|
|
17781
|
-
const f = u[
|
|
17834
|
+
for (let p = 0; p < u.length; p++) {
|
|
17835
|
+
const f = u[p];
|
|
17782
17836
|
if (f[0] === "{" && f[f.length - 1] === "}")
|
|
17783
|
-
l[
|
|
17784
|
-
l[
|
|
17837
|
+
l[p] !== void 0 && (d[f.substring(1, f.length - 1)] = decodeURIComponent(
|
|
17838
|
+
l[p]
|
|
17785
17839
|
));
|
|
17786
|
-
else if (l[
|
|
17840
|
+
else if (l[p] === void 0 || f !== l[p]) return;
|
|
17787
17841
|
}
|
|
17788
17842
|
return {
|
|
17789
17843
|
params: d,
|
|
@@ -17800,8 +17854,8 @@ const RouterNode = {
|
|
|
17800
17854
|
let u = l.path;
|
|
17801
17855
|
if (u === void 0) continue;
|
|
17802
17856
|
u = _trimUrlPart(u), this._internal.urlPath !== void 0 && (u = _trimUrlPart(this._internal.urlPath) + "/" + u);
|
|
17803
|
-
const d = u.split("/"),
|
|
17804
|
-
|
|
17857
|
+
const d = u.split("/"), p = o(t, d), f = Math.abs(d.length - t.length);
|
|
17858
|
+
p && a > f && (s = { match: p, pageInfo: l }, a = f);
|
|
17805
17859
|
}
|
|
17806
17860
|
return s ? (this._internal.remainingNavigationPath = s.match.remainingPathParts, {
|
|
17807
17861
|
page: s.pageInfo,
|
|
@@ -17968,7 +18022,7 @@ let Circle$1 = class extends React__default.Component {
|
|
|
17968
18022
|
);
|
|
17969
18023
|
}
|
|
17970
18024
|
if (this.props.strokeEnabled) {
|
|
17971
|
-
const { strokeColor: l, strokeWidth: u, strokeLineCap: d } = this.props,
|
|
18025
|
+
const { strokeColor: l, strokeWidth: u, strokeLineCap: d } = this.props, p = o - this.props.strokeWidth / 2, f = arc(o, o, p, r, s);
|
|
17972
18026
|
n = /* @__PURE__ */ React__default.createElement(
|
|
17973
18027
|
"path",
|
|
17974
18028
|
{
|
|
@@ -18324,8 +18378,8 @@ component = '/MyComponent';`, ForEachDefinition = {
|
|
|
18324
18378
|
} else
|
|
18325
18379
|
this._mapInputs(r, e), r._forEachModelChangeListener = () => this._mapInputs(r, e), e.on("change", r._forEachModelChangeListener);
|
|
18326
18380
|
r._internal.creatorCallbacks = {
|
|
18327
|
-
onOutputChanged: (u, d,
|
|
18328
|
-
(
|
|
18381
|
+
onOutputChanged: (u, d, p) => {
|
|
18382
|
+
(p === !1 || p === void 0) && d === !0 && n.itemOutputSignals[u] && this.itemOutputSignalTriggered(u, e, r);
|
|
18329
18383
|
}
|
|
18330
18384
|
};
|
|
18331
18385
|
for (var a = r.nodeScope.getNodesWithType("For Each Actions"), l = 0; l < a.length; l++)
|
|
@@ -18507,8 +18561,8 @@ map({
|
|
|
18507
18561
|
var l = [], u = t.components[a];
|
|
18508
18562
|
if (u !== void 0) {
|
|
18509
18563
|
for (var d in u.outputPorts) {
|
|
18510
|
-
var
|
|
18511
|
-
_typeName(
|
|
18564
|
+
var p = u.outputPorts[d];
|
|
18565
|
+
_typeName(p.type) === "signal" ? l.push({
|
|
18512
18566
|
name: "itemOutputSignal-" + d,
|
|
18513
18567
|
displayName: d,
|
|
18514
18568
|
type: "signal",
|
|
@@ -18517,15 +18571,15 @@ map({
|
|
|
18517
18571
|
}) : l.push({
|
|
18518
18572
|
name: "itemOutput-" + d,
|
|
18519
18573
|
displayName: d,
|
|
18520
|
-
type:
|
|
18574
|
+
type: p.type,
|
|
18521
18575
|
plug: "output",
|
|
18522
18576
|
group: "Item Outputs"
|
|
18523
18577
|
});
|
|
18524
18578
|
}
|
|
18525
18579
|
var f = "";
|
|
18526
18580
|
for (var g in u.inputPorts) {
|
|
18527
|
-
var
|
|
18528
|
-
_typeName(
|
|
18581
|
+
var p = u.inputPorts[g];
|
|
18582
|
+
_typeName(p.type) !== "signal" && (f += " '" + g + "': '" + g + `',
|
|
18529
18583
|
`);
|
|
18530
18584
|
}
|
|
18531
18585
|
l.push({
|
|
@@ -18581,12 +18635,12 @@ function _calcAutofold(e, t, n, o) {
|
|
|
18581
18635
|
{ expected: 0, min: 0, max: null }
|
|
18582
18636
|
), l = e;
|
|
18583
18637
|
a.expected < a.min && l.pop();
|
|
18584
|
-
const u = l.reduce((f, g) => f + g, 0), d = 100 / u,
|
|
18638
|
+
const u = l.reduce((f, g) => f + g, 0), d = 100 / u, p = l.length;
|
|
18585
18639
|
return {
|
|
18586
18640
|
layout: l,
|
|
18587
18641
|
totalFractions: u,
|
|
18588
18642
|
fractionSize: d,
|
|
18589
|
-
columnAmount:
|
|
18643
|
+
columnAmount: p
|
|
18590
18644
|
};
|
|
18591
18645
|
}
|
|
18592
18646
|
function Columns$1(e) {
|
|
@@ -18621,11 +18675,11 @@ function Columns$1(e) {
|
|
|
18621
18675
|
o,
|
|
18622
18676
|
e.marginX
|
|
18623
18677
|
);
|
|
18624
|
-
let d = [],
|
|
18678
|
+
let d = [], p = null;
|
|
18625
18679
|
return Array.isArray(e.children) ? (d = e.children.filter(
|
|
18626
18680
|
// @ts-expect-error
|
|
18627
18681
|
(f) => f.type !== ForEachComponent
|
|
18628
|
-
),
|
|
18682
|
+
), p = e.children.find(
|
|
18629
18683
|
// @ts-expect-error
|
|
18630
18684
|
(f) => f.type === ForEachComponent
|
|
18631
18685
|
)) : e.children.type !== ForEachComponent && (d = [e.children]), /* @__PURE__ */ React__default.createElement(
|
|
@@ -18648,7 +18702,7 @@ function Columns$1(e) {
|
|
|
18648
18702
|
...e.style
|
|
18649
18703
|
}
|
|
18650
18704
|
},
|
|
18651
|
-
|
|
18705
|
+
p && p,
|
|
18652
18706
|
d.map((f, g) => /* @__PURE__ */ React__default.createElement(
|
|
18653
18707
|
"div",
|
|
18654
18708
|
{
|
|
@@ -18860,8 +18914,8 @@ function requireReactDraggable_min() {
|
|
|
18860
18914
|
/***/
|
|
18861
18915
|
404: (
|
|
18862
18916
|
/***/
|
|
18863
|
-
function(u, d,
|
|
18864
|
-
|
|
18917
|
+
function(u, d, p) {
|
|
18918
|
+
p.r(d), p.d(d, {
|
|
18865
18919
|
DraggableCore: function() {
|
|
18866
18920
|
return (
|
|
18867
18921
|
/* reexport */
|
|
@@ -18875,28 +18929,28 @@ function requireReactDraggable_min() {
|
|
|
18875
18929
|
);
|
|
18876
18930
|
}
|
|
18877
18931
|
});
|
|
18878
|
-
var f =
|
|
18932
|
+
var f = p(359), g = p(697), b = /* @__PURE__ */ p.n(g), _ = p(318), T = /* @__PURE__ */ p.n(_);
|
|
18879
18933
|
function A(c) {
|
|
18880
|
-
var
|
|
18934
|
+
var h, y, S = "";
|
|
18881
18935
|
if (typeof c == "string" || typeof c == "number")
|
|
18882
18936
|
S += c;
|
|
18883
18937
|
else if (typeof c == "object")
|
|
18884
18938
|
if (Array.isArray(c))
|
|
18885
|
-
for (
|
|
18886
|
-
c[
|
|
18939
|
+
for (h = 0; h < c.length; h++)
|
|
18940
|
+
c[h] && (y = A(c[h])) && (S && (S += " "), S += y);
|
|
18887
18941
|
else
|
|
18888
|
-
for (
|
|
18889
|
-
c[
|
|
18942
|
+
for (h in c)
|
|
18943
|
+
c[h] && (S && (S += " "), S += h);
|
|
18890
18944
|
return S;
|
|
18891
18945
|
}
|
|
18892
18946
|
function v() {
|
|
18893
|
-
for (var c = 0,
|
|
18894
|
-
(
|
|
18947
|
+
for (var c = 0, h, y, S = ""; c < arguments.length; )
|
|
18948
|
+
(h = arguments[c++]) && (y = A(h)) && (S && (S += " "), S += y);
|
|
18895
18949
|
return S;
|
|
18896
18950
|
}
|
|
18897
|
-
function I(c,
|
|
18951
|
+
function I(c, h) {
|
|
18898
18952
|
for (let y = 0, S = c.length; y < S; y++)
|
|
18899
|
-
if (
|
|
18953
|
+
if (h.apply(h, [c[y], y, c])) return c[y];
|
|
18900
18954
|
}
|
|
18901
18955
|
function k(c) {
|
|
18902
18956
|
return typeof c == "function" || Object.prototype.toString.call(c) === "[object Function]";
|
|
@@ -18907,114 +18961,114 @@ function requireReactDraggable_min() {
|
|
|
18907
18961
|
function w(c) {
|
|
18908
18962
|
return parseInt(c, 10);
|
|
18909
18963
|
}
|
|
18910
|
-
function E(c,
|
|
18911
|
-
if (c[
|
|
18912
|
-
return new Error("Invalid prop ".concat(
|
|
18964
|
+
function E(c, h, y) {
|
|
18965
|
+
if (c[h])
|
|
18966
|
+
return new Error("Invalid prop ".concat(h, " passed to ").concat(y, " - do not set this, set it on the child."));
|
|
18913
18967
|
}
|
|
18914
18968
|
const F = ["Moz", "Webkit", "O", "ms"];
|
|
18915
18969
|
function L() {
|
|
18916
18970
|
var c;
|
|
18917
|
-
let
|
|
18971
|
+
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
18918
18972
|
if (typeof window > "u") return "";
|
|
18919
18973
|
const y = (c = window.document) === null || c === void 0 || (c = c.documentElement) === null || c === void 0 ? void 0 : c.style;
|
|
18920
|
-
if (!y ||
|
|
18974
|
+
if (!y || h in y) return "";
|
|
18921
18975
|
for (let S = 0; S < F.length; S++)
|
|
18922
|
-
if (B(
|
|
18976
|
+
if (B(h, F[S]) in y) return F[S];
|
|
18923
18977
|
return "";
|
|
18924
18978
|
}
|
|
18925
|
-
function B(c,
|
|
18926
|
-
return
|
|
18979
|
+
function B(c, h) {
|
|
18980
|
+
return h ? "".concat(h).concat(H(c)) : c;
|
|
18927
18981
|
}
|
|
18928
18982
|
function H(c) {
|
|
18929
|
-
let
|
|
18983
|
+
let h = "", y = !0;
|
|
18930
18984
|
for (let S = 0; S < c.length; S++)
|
|
18931
|
-
y ? (
|
|
18932
|
-
return
|
|
18985
|
+
y ? (h += c[S].toUpperCase(), y = !1) : c[S] === "-" ? y = !0 : h += c[S];
|
|
18986
|
+
return h;
|
|
18933
18987
|
}
|
|
18934
18988
|
var J = L();
|
|
18935
18989
|
let ie = "";
|
|
18936
|
-
function pe(c,
|
|
18990
|
+
function pe(c, h) {
|
|
18937
18991
|
return ie || (ie = I(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(y) {
|
|
18938
18992
|
return k(c[y]);
|
|
18939
|
-
})), k(c[ie]) ? c[ie](
|
|
18993
|
+
})), k(c[ie]) ? c[ie](h) : !1;
|
|
18940
18994
|
}
|
|
18941
|
-
function xe(c,
|
|
18995
|
+
function xe(c, h, y) {
|
|
18942
18996
|
let S = c;
|
|
18943
18997
|
do {
|
|
18944
|
-
if (pe(S,
|
|
18998
|
+
if (pe(S, h)) return !0;
|
|
18945
18999
|
if (S === y) return !1;
|
|
18946
19000
|
S = S.parentNode;
|
|
18947
19001
|
} while (S);
|
|
18948
19002
|
return !1;
|
|
18949
19003
|
}
|
|
18950
|
-
function Me(c,
|
|
19004
|
+
function Me(c, h, y, S) {
|
|
18951
19005
|
if (!c) return;
|
|
18952
19006
|
const O = {
|
|
18953
19007
|
capture: !0,
|
|
18954
19008
|
...S
|
|
18955
19009
|
};
|
|
18956
|
-
c.addEventListener ? c.addEventListener(
|
|
19010
|
+
c.addEventListener ? c.addEventListener(h, y, O) : c.attachEvent ? c.attachEvent("on" + h, y) : c["on" + h] = y;
|
|
18957
19011
|
}
|
|
18958
|
-
function ae(c,
|
|
19012
|
+
function ae(c, h, y, S) {
|
|
18959
19013
|
if (!c) return;
|
|
18960
19014
|
const O = {
|
|
18961
19015
|
capture: !0,
|
|
18962
19016
|
...S
|
|
18963
19017
|
};
|
|
18964
|
-
c.removeEventListener ? c.removeEventListener(
|
|
19018
|
+
c.removeEventListener ? c.removeEventListener(h, y, O) : c.detachEvent ? c.detachEvent("on" + h, y) : c["on" + h] = null;
|
|
18965
19019
|
}
|
|
18966
19020
|
function Ie(c) {
|
|
18967
|
-
let
|
|
19021
|
+
let h = c.clientHeight;
|
|
18968
19022
|
const y = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
18969
|
-
return
|
|
19023
|
+
return h += w(y.borderTopWidth), h += w(y.borderBottomWidth), h;
|
|
18970
19024
|
}
|
|
18971
19025
|
function Te(c) {
|
|
18972
|
-
let
|
|
19026
|
+
let h = c.clientWidth;
|
|
18973
19027
|
const y = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
18974
|
-
return
|
|
19028
|
+
return h += w(y.borderLeftWidth), h += w(y.borderRightWidth), h;
|
|
18975
19029
|
}
|
|
18976
19030
|
function Ne(c) {
|
|
18977
|
-
let
|
|
19031
|
+
let h = c.clientHeight;
|
|
18978
19032
|
const y = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
18979
|
-
return
|
|
19033
|
+
return h -= w(y.paddingTop), h -= w(y.paddingBottom), h;
|
|
18980
19034
|
}
|
|
18981
19035
|
function me(c) {
|
|
18982
|
-
let
|
|
19036
|
+
let h = c.clientWidth;
|
|
18983
19037
|
const y = c.ownerDocument.defaultView.getComputedStyle(c);
|
|
18984
|
-
return
|
|
19038
|
+
return h -= w(y.paddingLeft), h -= w(y.paddingRight), h;
|
|
18985
19039
|
}
|
|
18986
|
-
function Ee(c,
|
|
18987
|
-
const O =
|
|
19040
|
+
function Ee(c, h, y) {
|
|
19041
|
+
const O = h === h.ownerDocument.body ? {
|
|
18988
19042
|
left: 0,
|
|
18989
19043
|
top: 0
|
|
18990
|
-
} :
|
|
19044
|
+
} : h.getBoundingClientRect(), M = (c.clientX + h.scrollLeft - O.left) / y, U = (c.clientY + h.scrollTop - O.top) / y;
|
|
18991
19045
|
return {
|
|
18992
19046
|
x: M,
|
|
18993
19047
|
y: U
|
|
18994
19048
|
};
|
|
18995
19049
|
}
|
|
18996
|
-
function Ae(c,
|
|
18997
|
-
const y = Fe(c,
|
|
19050
|
+
function Ae(c, h) {
|
|
19051
|
+
const y = Fe(c, h, "px");
|
|
18998
19052
|
return {
|
|
18999
19053
|
[B("transform", J)]: y
|
|
19000
19054
|
};
|
|
19001
19055
|
}
|
|
19002
|
-
function qe(c,
|
|
19003
|
-
return Fe(c,
|
|
19056
|
+
function qe(c, h) {
|
|
19057
|
+
return Fe(c, h, "");
|
|
19004
19058
|
}
|
|
19005
|
-
function Fe(c,
|
|
19059
|
+
function Fe(c, h, y) {
|
|
19006
19060
|
let {
|
|
19007
19061
|
x: S,
|
|
19008
19062
|
y: O
|
|
19009
19063
|
} = c, M = "translate(".concat(S).concat(y, ",").concat(O).concat(y, ")");
|
|
19010
|
-
if (
|
|
19011
|
-
const U = "".concat(typeof
|
|
19064
|
+
if (h) {
|
|
19065
|
+
const U = "".concat(typeof h.x == "string" ? h.x : h.x + y), j = "".concat(typeof h.y == "string" ? h.y : h.y + y);
|
|
19012
19066
|
M = "translate(".concat(U, ", ").concat(j, ")") + M;
|
|
19013
19067
|
}
|
|
19014
19068
|
return M;
|
|
19015
19069
|
}
|
|
19016
|
-
function Y(c,
|
|
19017
|
-
return c.targetTouches && I(c.targetTouches, (y) =>
|
|
19070
|
+
function Y(c, h) {
|
|
19071
|
+
return c.targetTouches && I(c.targetTouches, (y) => h === y.identifier) || c.changedTouches && I(c.changedTouches, (y) => h === y.identifier);
|
|
19018
19072
|
}
|
|
19019
19073
|
function ve(c) {
|
|
19020
19074
|
if (c.targetTouches && c.targetTouches[0]) return c.targetTouches[0].identifier;
|
|
@@ -19022,10 +19076,10 @@ function requireReactDraggable_min() {
|
|
|
19022
19076
|
}
|
|
19023
19077
|
function Ve(c) {
|
|
19024
19078
|
if (!c) return;
|
|
19025
|
-
let
|
|
19026
|
-
|
|
19027
|
-
`,
|
|
19028
|
-
`, c.getElementsByTagName("head")[0].appendChild(
|
|
19079
|
+
let h = c.getElementById("react-draggable-style-el");
|
|
19080
|
+
h || (h = c.createElement("style"), h.type = "text/css", h.id = "react-draggable-style-el", h.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
19081
|
+
`, h.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
19082
|
+
`, c.getElementsByTagName("head")[0].appendChild(h)), c.body && Oe(c.body, "react-draggable-transparent-selection");
|
|
19029
19083
|
}
|
|
19030
19084
|
function re(c) {
|
|
19031
19085
|
if (c)
|
|
@@ -19033,20 +19087,20 @@ function requireReactDraggable_min() {
|
|
|
19033
19087
|
if (c.body && $e(c.body, "react-draggable-transparent-selection"), c.selection)
|
|
19034
19088
|
c.selection.empty();
|
|
19035
19089
|
else {
|
|
19036
|
-
const
|
|
19037
|
-
|
|
19090
|
+
const h = (c.defaultView || window).getSelection();
|
|
19091
|
+
h && h.type !== "Caret" && h.removeAllRanges();
|
|
19038
19092
|
}
|
|
19039
19093
|
} catch {
|
|
19040
19094
|
}
|
|
19041
19095
|
}
|
|
19042
|
-
function Oe(c,
|
|
19043
|
-
c.classList ? c.classList.add(
|
|
19096
|
+
function Oe(c, h) {
|
|
19097
|
+
c.classList ? c.classList.add(h) : c.className.match(new RegExp("(?:^|\\s)".concat(h, "(?!\\S)"))) || (c.className += " ".concat(h));
|
|
19044
19098
|
}
|
|
19045
|
-
function $e(c,
|
|
19046
|
-
c.classList ? c.classList.remove(
|
|
19099
|
+
function $e(c, h) {
|
|
19100
|
+
c.classList ? c.classList.remove(h) : c.className = c.className.replace(new RegExp("(?:^|\\s)".concat(h, "(?!\\S)"), "g"), "");
|
|
19047
19101
|
}
|
|
19048
|
-
function Le(c,
|
|
19049
|
-
if (!c.props.bounds) return [
|
|
19102
|
+
function Le(c, h, y) {
|
|
19103
|
+
if (!c.props.bounds) return [h, y];
|
|
19050
19104
|
let {
|
|
19051
19105
|
bounds: S
|
|
19052
19106
|
} = c.props;
|
|
@@ -19067,10 +19121,10 @@ function requireReactDraggable_min() {
|
|
|
19067
19121
|
bottom: Ne(z) - Ie(O) - O.offsetTop + w(C.paddingBottom) - w(q.marginBottom)
|
|
19068
19122
|
};
|
|
19069
19123
|
}
|
|
19070
|
-
return N(S.right) && (
|
|
19124
|
+
return N(S.right) && (h = Math.min(h, S.right)), N(S.bottom) && (y = Math.min(y, S.bottom)), N(S.left) && (h = Math.max(h, S.left)), N(S.top) && (y = Math.max(y, S.top)), [h, y];
|
|
19071
19125
|
}
|
|
19072
|
-
function fe(c,
|
|
19073
|
-
const S = Math.round(
|
|
19126
|
+
function fe(c, h, y) {
|
|
19127
|
+
const S = Math.round(h / c[0]) * c[0], O = Math.round(y / c[1]) * c[1];
|
|
19074
19128
|
return [S, O];
|
|
19075
19129
|
}
|
|
19076
19130
|
function Xe(c) {
|
|
@@ -19079,40 +19133,40 @@ function requireReactDraggable_min() {
|
|
|
19079
19133
|
function Be(c) {
|
|
19080
19134
|
return c.props.axis === "both" || c.props.axis === "y";
|
|
19081
19135
|
}
|
|
19082
|
-
function De(c,
|
|
19083
|
-
const S = typeof
|
|
19084
|
-
if (typeof
|
|
19136
|
+
function De(c, h, y) {
|
|
19137
|
+
const S = typeof h == "number" ? Y(c, h) : null;
|
|
19138
|
+
if (typeof h == "number" && !S) return null;
|
|
19085
19139
|
const O = We(y), M = y.props.offsetParent || O.offsetParent || O.ownerDocument.body;
|
|
19086
19140
|
return Ee(S || c, M, y.props.scale);
|
|
19087
19141
|
}
|
|
19088
|
-
function Ue(c,
|
|
19142
|
+
function Ue(c, h, y) {
|
|
19089
19143
|
const S = !N(c.lastX), O = We(c);
|
|
19090
19144
|
return S ? {
|
|
19091
19145
|
node: O,
|
|
19092
19146
|
deltaX: 0,
|
|
19093
19147
|
deltaY: 0,
|
|
19094
|
-
lastX:
|
|
19148
|
+
lastX: h,
|
|
19095
19149
|
lastY: y,
|
|
19096
|
-
x:
|
|
19150
|
+
x: h,
|
|
19097
19151
|
y
|
|
19098
19152
|
} : {
|
|
19099
19153
|
node: O,
|
|
19100
|
-
deltaX:
|
|
19154
|
+
deltaX: h - c.lastX,
|
|
19101
19155
|
deltaY: y - c.lastY,
|
|
19102
19156
|
lastX: c.lastX,
|
|
19103
19157
|
lastY: c.lastY,
|
|
19104
|
-
x:
|
|
19158
|
+
x: h,
|
|
19105
19159
|
y
|
|
19106
19160
|
};
|
|
19107
19161
|
}
|
|
19108
|
-
function je(c,
|
|
19162
|
+
function je(c, h) {
|
|
19109
19163
|
const y = c.props.scale;
|
|
19110
19164
|
return {
|
|
19111
|
-
node:
|
|
19112
|
-
x: c.state.x +
|
|
19113
|
-
y: c.state.y +
|
|
19114
|
-
deltaX:
|
|
19115
|
-
deltaY:
|
|
19165
|
+
node: h.node,
|
|
19166
|
+
x: c.state.x + h.deltaX / y,
|
|
19167
|
+
y: c.state.y + h.deltaY / y,
|
|
19168
|
+
deltaX: h.deltaX / y,
|
|
19169
|
+
deltaY: h.deltaY / y,
|
|
19116
19170
|
lastX: c.state.x,
|
|
19117
19171
|
lastY: c.state.y
|
|
19118
19172
|
};
|
|
@@ -19126,29 +19180,29 @@ function requireReactDraggable_min() {
|
|
|
19126
19180
|
};
|
|
19127
19181
|
}
|
|
19128
19182
|
function We(c) {
|
|
19129
|
-
const
|
|
19130
|
-
if (!
|
|
19183
|
+
const h = c.findDOMNode();
|
|
19184
|
+
if (!h)
|
|
19131
19185
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
19132
|
-
return
|
|
19186
|
+
return h;
|
|
19133
19187
|
}
|
|
19134
19188
|
function st() {
|
|
19135
19189
|
}
|
|
19136
|
-
function K(c,
|
|
19137
|
-
return
|
|
19190
|
+
function K(c, h, y) {
|
|
19191
|
+
return h = et(h), h in c ? Object.defineProperty(c, h, { value: y, enumerable: !0, configurable: !0, writable: !0 }) : c[h] = y, c;
|
|
19138
19192
|
}
|
|
19139
19193
|
function et(c) {
|
|
19140
|
-
var
|
|
19141
|
-
return typeof
|
|
19194
|
+
var h = tt(c, "string");
|
|
19195
|
+
return typeof h == "symbol" ? h : String(h);
|
|
19142
19196
|
}
|
|
19143
|
-
function tt(c,
|
|
19197
|
+
function tt(c, h) {
|
|
19144
19198
|
if (typeof c != "object" || c === null) return c;
|
|
19145
19199
|
var y = c[Symbol.toPrimitive];
|
|
19146
19200
|
if (y !== void 0) {
|
|
19147
|
-
var S = y.call(c,
|
|
19201
|
+
var S = y.call(c, h);
|
|
19148
19202
|
if (typeof S != "object") return S;
|
|
19149
19203
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19150
19204
|
}
|
|
19151
|
-
return (
|
|
19205
|
+
return (h === "string" ? String : Number)(c);
|
|
19152
19206
|
}
|
|
19153
19207
|
const le = {
|
|
19154
19208
|
touch: {
|
|
@@ -19165,28 +19219,28 @@ function requireReactDraggable_min() {
|
|
|
19165
19219
|
let ye = le.mouse;
|
|
19166
19220
|
class ue extends f.Component {
|
|
19167
19221
|
constructor() {
|
|
19168
|
-
super(...arguments), K(this, "dragging", !1), K(this, "lastX", NaN), K(this, "lastY", NaN), K(this, "touchIdentifier", null), K(this, "mounted", !1), K(this, "handleDragStart", (
|
|
19169
|
-
if (this.props.onMouseDown(
|
|
19222
|
+
super(...arguments), K(this, "dragging", !1), K(this, "lastX", NaN), K(this, "lastY", NaN), K(this, "touchIdentifier", null), K(this, "mounted", !1), K(this, "handleDragStart", (h) => {
|
|
19223
|
+
if (this.props.onMouseDown(h), !this.props.allowAnyClick && typeof h.button == "number" && h.button !== 0) return !1;
|
|
19170
19224
|
const y = this.findDOMNode();
|
|
19171
19225
|
if (!y || !y.ownerDocument || !y.ownerDocument.body)
|
|
19172
19226
|
throw new Error("<DraggableCore> not mounted on DragStart!");
|
|
19173
19227
|
const {
|
|
19174
19228
|
ownerDocument: S
|
|
19175
19229
|
} = y;
|
|
19176
|
-
if (this.props.disabled || !(
|
|
19230
|
+
if (this.props.disabled || !(h.target instanceof S.defaultView.Node) || this.props.handle && !xe(h.target, this.props.handle, y) || this.props.cancel && xe(h.target, this.props.cancel, y))
|
|
19177
19231
|
return;
|
|
19178
|
-
|
|
19179
|
-
const O = ve(
|
|
19232
|
+
h.type === "touchstart" && h.preventDefault();
|
|
19233
|
+
const O = ve(h);
|
|
19180
19234
|
this.touchIdentifier = O;
|
|
19181
|
-
const M = De(
|
|
19235
|
+
const M = De(h, O, this);
|
|
19182
19236
|
if (M == null) return;
|
|
19183
19237
|
const {
|
|
19184
19238
|
x: U,
|
|
19185
19239
|
y: j
|
|
19186
19240
|
} = M, z = Ue(this, U, j);
|
|
19187
|
-
this.props.onStart, !(this.props.onStart(
|
|
19188
|
-
}), K(this, "handleDrag", (
|
|
19189
|
-
const y = De(
|
|
19241
|
+
this.props.onStart, !(this.props.onStart(h, z) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && Ve(S), this.dragging = !0, this.lastX = U, this.lastY = j, Me(S, ye.move, this.handleDrag), Me(S, ye.stop, this.handleDragStop));
|
|
19242
|
+
}), K(this, "handleDrag", (h) => {
|
|
19243
|
+
const y = De(h, this.touchIdentifier, this);
|
|
19190
19244
|
if (y == null) return;
|
|
19191
19245
|
let {
|
|
19192
19246
|
x: S,
|
|
@@ -19198,7 +19252,7 @@ function requireReactDraggable_min() {
|
|
|
19198
19252
|
S = this.lastX + j, O = this.lastY + z;
|
|
19199
19253
|
}
|
|
19200
19254
|
const M = Ue(this, S, O);
|
|
19201
|
-
if (this.props.onDrag(
|
|
19255
|
+
if (this.props.onDrag(h, M) === !1 || this.mounted === !1) {
|
|
19202
19256
|
try {
|
|
19203
19257
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
19204
19258
|
} catch {
|
|
@@ -19208,9 +19262,9 @@ function requireReactDraggable_min() {
|
|
|
19208
19262
|
return;
|
|
19209
19263
|
}
|
|
19210
19264
|
this.lastX = S, this.lastY = O;
|
|
19211
|
-
}), K(this, "handleDragStop", (
|
|
19265
|
+
}), K(this, "handleDragStop", (h) => {
|
|
19212
19266
|
if (!this.dragging) return;
|
|
19213
|
-
const y = De(
|
|
19267
|
+
const y = De(h, this.touchIdentifier, this);
|
|
19214
19268
|
if (y == null) return;
|
|
19215
19269
|
let {
|
|
19216
19270
|
x: S,
|
|
@@ -19221,26 +19275,26 @@ function requireReactDraggable_min() {
|
|
|
19221
19275
|
[z, q] = fe(this.props.grid, z, q), S = this.lastX + z, O = this.lastY + q;
|
|
19222
19276
|
}
|
|
19223
19277
|
const M = Ue(this, S, O);
|
|
19224
|
-
if (this.props.onStop(
|
|
19278
|
+
if (this.props.onStop(h, M) === !1 || this.mounted === !1) return !1;
|
|
19225
19279
|
const j = this.findDOMNode();
|
|
19226
19280
|
j && this.props.enableUserSelectHack && re(j.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, j && (ae(j.ownerDocument, ye.move, this.handleDrag), ae(j.ownerDocument, ye.stop, this.handleDragStop));
|
|
19227
|
-
}), K(this, "onMouseDown", (
|
|
19281
|
+
}), K(this, "onMouseDown", (h) => (ye = le.mouse, this.handleDragStart(h))), K(this, "onMouseUp", (h) => (ye = le.mouse, this.handleDragStop(h))), K(this, "onTouchStart", (h) => (ye = le.touch, this.handleDragStart(h))), K(this, "onTouchEnd", (h) => (ye = le.touch, this.handleDragStop(h)));
|
|
19228
19282
|
}
|
|
19229
19283
|
componentDidMount() {
|
|
19230
19284
|
this.mounted = !0;
|
|
19231
|
-
const
|
|
19232
|
-
|
|
19285
|
+
const h = this.findDOMNode();
|
|
19286
|
+
h && Me(h, le.touch.start, this.onTouchStart, {
|
|
19233
19287
|
passive: !1
|
|
19234
19288
|
});
|
|
19235
19289
|
}
|
|
19236
19290
|
componentWillUnmount() {
|
|
19237
19291
|
this.mounted = !1;
|
|
19238
|
-
const
|
|
19239
|
-
if (
|
|
19292
|
+
const h = this.findDOMNode();
|
|
19293
|
+
if (h) {
|
|
19240
19294
|
const {
|
|
19241
19295
|
ownerDocument: y
|
|
19242
|
-
} =
|
|
19243
|
-
ae(y, le.mouse.move, this.handleDrag), ae(y, le.touch.move, this.handleDrag), ae(y, le.mouse.stop, this.handleDragStop), ae(y, le.touch.stop, this.handleDragStop), ae(
|
|
19296
|
+
} = h;
|
|
19297
|
+
ae(y, le.mouse.move, this.handleDrag), ae(y, le.touch.move, this.handleDrag), ae(y, le.mouse.stop, this.handleDragStop), ae(y, le.touch.stop, this.handleDragStop), ae(h, le.touch.start, this.onTouchStart, {
|
|
19244
19298
|
passive: !1
|
|
19245
19299
|
}), this.props.enableUserSelectHack && re(y);
|
|
19246
19300
|
}
|
|
@@ -19248,8 +19302,8 @@ function requireReactDraggable_min() {
|
|
|
19248
19302
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
19249
19303
|
// the underlying DOM node ourselves. See the README for more information.
|
|
19250
19304
|
findDOMNode() {
|
|
19251
|
-
var
|
|
19252
|
-
return (
|
|
19305
|
+
var h, y;
|
|
19306
|
+
return (h = this.props) !== null && h !== void 0 && h.nodeRef ? (y = this.props) === null || y === void 0 || (y = y.nodeRef) === null || y === void 0 ? void 0 : y.current : T().findDOMNode(this);
|
|
19253
19307
|
}
|
|
19254
19308
|
render() {
|
|
19255
19309
|
return /* @__PURE__ */ f.cloneElement(f.Children.only(this.props.children), {
|
|
@@ -19288,8 +19342,8 @@ function requireReactDraggable_min() {
|
|
|
19288
19342
|
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
19289
19343
|
* instead of using the parent node.
|
|
19290
19344
|
*/
|
|
19291
|
-
offsetParent: function(c,
|
|
19292
|
-
if (c[
|
|
19345
|
+
offsetParent: function(c, h) {
|
|
19346
|
+
if (c[h] && c[h].nodeType !== 1)
|
|
19293
19347
|
throw new Error("Draggable's offsetParent must be a DOM Node.");
|
|
19294
19348
|
},
|
|
19295
19349
|
/**
|
|
@@ -19403,38 +19457,38 @@ function requireReactDraggable_min() {
|
|
|
19403
19457
|
});
|
|
19404
19458
|
function Se() {
|
|
19405
19459
|
return Se = Object.assign ? Object.assign.bind() : function(c) {
|
|
19406
|
-
for (var
|
|
19407
|
-
var y = arguments[
|
|
19460
|
+
for (var h = 1; h < arguments.length; h++) {
|
|
19461
|
+
var y = arguments[h];
|
|
19408
19462
|
for (var S in y)
|
|
19409
19463
|
Object.prototype.hasOwnProperty.call(y, S) && (c[S] = y[S]);
|
|
19410
19464
|
}
|
|
19411
19465
|
return c;
|
|
19412
19466
|
}, Se.apply(this, arguments);
|
|
19413
19467
|
}
|
|
19414
|
-
function ge(c,
|
|
19415
|
-
return
|
|
19468
|
+
function ge(c, h, y) {
|
|
19469
|
+
return h = ze(h), h in c ? Object.defineProperty(c, h, { value: y, enumerable: !0, configurable: !0, writable: !0 }) : c[h] = y, c;
|
|
19416
19470
|
}
|
|
19417
19471
|
function ze(c) {
|
|
19418
|
-
var
|
|
19419
|
-
return typeof
|
|
19472
|
+
var h = Z(c, "string");
|
|
19473
|
+
return typeof h == "symbol" ? h : String(h);
|
|
19420
19474
|
}
|
|
19421
|
-
function Z(c,
|
|
19475
|
+
function Z(c, h) {
|
|
19422
19476
|
if (typeof c != "object" || c === null) return c;
|
|
19423
19477
|
var y = c[Symbol.toPrimitive];
|
|
19424
19478
|
if (y !== void 0) {
|
|
19425
|
-
var S = y.call(c,
|
|
19479
|
+
var S = y.call(c, h);
|
|
19426
19480
|
if (typeof S != "object") return S;
|
|
19427
19481
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19428
19482
|
}
|
|
19429
|
-
return (
|
|
19483
|
+
return (h === "string" ? String : Number)(c);
|
|
19430
19484
|
}
|
|
19431
19485
|
class Ce extends f.Component {
|
|
19432
19486
|
// React 16.3+
|
|
19433
19487
|
// Arity (props, state)
|
|
19434
|
-
static getDerivedStateFromProps(
|
|
19488
|
+
static getDerivedStateFromProps(h, y) {
|
|
19435
19489
|
let {
|
|
19436
19490
|
position: S
|
|
19437
|
-
} =
|
|
19491
|
+
} = h, {
|
|
19438
19492
|
prevPropsPosition: O
|
|
19439
19493
|
} = y;
|
|
19440
19494
|
return S && (!O || S.x !== O.x || S.y !== O.y) ? {
|
|
@@ -19445,8 +19499,8 @@ function requireReactDraggable_min() {
|
|
|
19445
19499
|
}
|
|
19446
19500
|
} : null;
|
|
19447
19501
|
}
|
|
19448
|
-
constructor(
|
|
19449
|
-
super(
|
|
19502
|
+
constructor(h) {
|
|
19503
|
+
super(h), ge(this, "onDragStart", (y, S) => {
|
|
19450
19504
|
if (this.props.onStart(y, je(this, S)) === !1) return !1;
|
|
19451
19505
|
this.setState({
|
|
19452
19506
|
dragging: !0,
|
|
@@ -19492,17 +19546,17 @@ function requireReactDraggable_min() {
|
|
|
19492
19546
|
// Whether or not we have been dragged before.
|
|
19493
19547
|
dragged: !1,
|
|
19494
19548
|
// Current transform x and y.
|
|
19495
|
-
x:
|
|
19496
|
-
y:
|
|
19549
|
+
x: h.position ? h.position.x : h.defaultPosition.x,
|
|
19550
|
+
y: h.position ? h.position.y : h.defaultPosition.y,
|
|
19497
19551
|
prevPropsPosition: {
|
|
19498
|
-
...
|
|
19552
|
+
...h.position
|
|
19499
19553
|
},
|
|
19500
19554
|
// Used for compensating for out-of-bounds drags
|
|
19501
19555
|
slackX: 0,
|
|
19502
19556
|
slackY: 0,
|
|
19503
19557
|
// Can only determine if SVG after mounting
|
|
19504
19558
|
isElementSVG: !1
|
|
19505
|
-
},
|
|
19559
|
+
}, h.position && !(h.onDrag || h.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
19506
19560
|
}
|
|
19507
19561
|
componentDidMount() {
|
|
19508
19562
|
typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
|
|
@@ -19517,12 +19571,12 @@ function requireReactDraggable_min() {
|
|
|
19517
19571
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
19518
19572
|
// the underlying DOM node ourselves. See the README for more information.
|
|
19519
19573
|
findDOMNode() {
|
|
19520
|
-
var
|
|
19521
|
-
return (
|
|
19574
|
+
var h, y;
|
|
19575
|
+
return (h = (y = this.props) === null || y === void 0 || (y = y.nodeRef) === null || y === void 0 ? void 0 : y.current) !== null && h !== void 0 ? h : T().findDOMNode(this);
|
|
19522
19576
|
}
|
|
19523
19577
|
render() {
|
|
19524
19578
|
const {
|
|
19525
|
-
axis:
|
|
19579
|
+
axis: h,
|
|
19526
19580
|
bounds: y,
|
|
19527
19581
|
children: S,
|
|
19528
19582
|
defaultPosition: O,
|
|
@@ -19685,25 +19739,25 @@ function requireReactDraggable_min() {
|
|
|
19685
19739
|
/***/
|
|
19686
19740
|
16: (
|
|
19687
19741
|
/***/
|
|
19688
|
-
function(u, d,
|
|
19742
|
+
function(u, d, p) {
|
|
19689
19743
|
const {
|
|
19690
19744
|
default: f,
|
|
19691
19745
|
DraggableCore: g
|
|
19692
|
-
} =
|
|
19746
|
+
} = p(404);
|
|
19693
19747
|
u.exports = f, u.exports.default = f, u.exports.DraggableCore = g;
|
|
19694
19748
|
}
|
|
19695
19749
|
),
|
|
19696
19750
|
/***/
|
|
19697
19751
|
703: (
|
|
19698
19752
|
/***/
|
|
19699
|
-
function(u, d,
|
|
19700
|
-
var f =
|
|
19753
|
+
function(u, d, p) {
|
|
19754
|
+
var f = p(414);
|
|
19701
19755
|
function g() {
|
|
19702
19756
|
}
|
|
19703
19757
|
function b() {
|
|
19704
19758
|
}
|
|
19705
19759
|
b.resetWarningCache = g, u.exports = function() {
|
|
19706
|
-
function
|
|
19760
|
+
function _(v, I, k, N, w, E) {
|
|
19707
19761
|
if (E !== f) {
|
|
19708
19762
|
var F = new Error(
|
|
19709
19763
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -19711,25 +19765,25 @@ function requireReactDraggable_min() {
|
|
|
19711
19765
|
throw F.name = "Invariant Violation", F;
|
|
19712
19766
|
}
|
|
19713
19767
|
}
|
|
19714
|
-
|
|
19768
|
+
_.isRequired = _;
|
|
19715
19769
|
function T() {
|
|
19716
|
-
return
|
|
19770
|
+
return _;
|
|
19717
19771
|
}
|
|
19718
19772
|
var A = {
|
|
19719
|
-
array:
|
|
19720
|
-
bigint:
|
|
19721
|
-
bool:
|
|
19722
|
-
func:
|
|
19723
|
-
number:
|
|
19724
|
-
object:
|
|
19725
|
-
string:
|
|
19726
|
-
symbol:
|
|
19727
|
-
any:
|
|
19773
|
+
array: _,
|
|
19774
|
+
bigint: _,
|
|
19775
|
+
bool: _,
|
|
19776
|
+
func: _,
|
|
19777
|
+
number: _,
|
|
19778
|
+
object: _,
|
|
19779
|
+
string: _,
|
|
19780
|
+
symbol: _,
|
|
19781
|
+
any: _,
|
|
19728
19782
|
arrayOf: T,
|
|
19729
|
-
element:
|
|
19730
|
-
elementType:
|
|
19783
|
+
element: _,
|
|
19784
|
+
elementType: _,
|
|
19731
19785
|
instanceOf: T,
|
|
19732
|
-
node:
|
|
19786
|
+
node: _,
|
|
19733
19787
|
objectOf: T,
|
|
19734
19788
|
oneOf: T,
|
|
19735
19789
|
oneOfType: T,
|
|
@@ -19745,8 +19799,8 @@ function requireReactDraggable_min() {
|
|
|
19745
19799
|
/***/
|
|
19746
19800
|
697: (
|
|
19747
19801
|
/***/
|
|
19748
|
-
function(u, d,
|
|
19749
|
-
u.exports =
|
|
19802
|
+
function(u, d, p) {
|
|
19803
|
+
u.exports = p(703)();
|
|
19750
19804
|
}
|
|
19751
19805
|
),
|
|
19752
19806
|
/***/
|
|
@@ -19777,7 +19831,7 @@ function requireReactDraggable_min() {
|
|
|
19777
19831
|
var d = s[u];
|
|
19778
19832
|
if (d !== void 0)
|
|
19779
19833
|
return d.exports;
|
|
19780
|
-
var
|
|
19834
|
+
var p = s[u] = {
|
|
19781
19835
|
/******/
|
|
19782
19836
|
// no module.id needed
|
|
19783
19837
|
/******/
|
|
@@ -19786,7 +19840,7 @@ function requireReactDraggable_min() {
|
|
|
19786
19840
|
exports: {}
|
|
19787
19841
|
/******/
|
|
19788
19842
|
};
|
|
19789
|
-
return r[u](
|
|
19843
|
+
return r[u](p, p.exports, a), p.exports;
|
|
19790
19844
|
}
|
|
19791
19845
|
(function() {
|
|
19792
19846
|
a.n = function(u) {
|
|
@@ -19805,8 +19859,8 @@ function requireReactDraggable_min() {
|
|
|
19805
19859
|
};
|
|
19806
19860
|
})(), function() {
|
|
19807
19861
|
a.d = function(u, d) {
|
|
19808
|
-
for (var
|
|
19809
|
-
a.o(d,
|
|
19862
|
+
for (var p in d)
|
|
19863
|
+
a.o(d, p) && !a.o(u, p) && Object.defineProperty(u, p, { enumerable: !0, get: d[p] });
|
|
19810
19864
|
};
|
|
19811
19865
|
}(), function() {
|
|
19812
19866
|
a.o = function(u, d) {
|
|
@@ -20354,11 +20408,11 @@ function click(e, t) {
|
|
|
20354
20408
|
e.type === "mouseup" ? n = e : (e.type === "touchend" || e.type === "touchcancel") && (n = e.changedTouches[0]);
|
|
20355
20409
|
var o = {};
|
|
20356
20410
|
n && (o.screenX = n.screenX || 0, o.screenY = n.screenY || 0, o.clientX = n.clientX || 0, o.clientY = n.clientY || 0);
|
|
20357
|
-
var r, s = !0, a = !0, l = e.ctrlKey, u = e.shiftKey, d = e.altKey,
|
|
20411
|
+
var r, s = !0, a = !0, l = e.ctrlKey, u = e.shiftKey, d = e.altKey, p = e.metaKey, f = {
|
|
20358
20412
|
ctrlKey: l,
|
|
20359
20413
|
shiftKey: u,
|
|
20360
20414
|
altKey: d,
|
|
20361
|
-
metaKey:
|
|
20415
|
+
metaKey: p
|
|
20362
20416
|
};
|
|
20363
20417
|
if (typeof MouseEvent < "u")
|
|
20364
20418
|
try {
|
|
@@ -20472,8 +20526,8 @@ var EventEmitter$1 = (
|
|
|
20472
20526
|
var r = this.events[t];
|
|
20473
20527
|
if (r)
|
|
20474
20528
|
for (var s = r.length, a = __spreadArrays$1(r), l, u = 0; u < s; u++) {
|
|
20475
|
-
var d = a[u],
|
|
20476
|
-
if (
|
|
20529
|
+
var d = a[u], p = d[0], f = d[1];
|
|
20530
|
+
if (p && (l = p.apply(f, n), l === !0))
|
|
20477
20531
|
return l;
|
|
20478
20532
|
}
|
|
20479
20533
|
}, e.prototype.registerType = function(t) {
|
|
@@ -20579,12 +20633,12 @@ var EventEmitter$1 = (
|
|
|
20579
20633
|
]), this.handleDOMEvents();
|
|
20580
20634
|
}
|
|
20581
20635
|
return e.prototype.handleDOMEvents = function() {
|
|
20582
|
-
var t = this.options, n = t.bindToWrapper, o = t.disableMouse, r = t.disableTouch, s = t.click, a = this.wrapper, l = n ? a : window, u = [], d = [],
|
|
20636
|
+
var t = this.options, n = t.bindToWrapper, o = t.disableMouse, r = t.disableTouch, s = t.click, a = this.wrapper, l = n ? a : window, u = [], d = [], p = !r, f = !o;
|
|
20583
20637
|
s && u.push({
|
|
20584
20638
|
name: "click",
|
|
20585
20639
|
handler: this.click.bind(this),
|
|
20586
20640
|
capture: !0
|
|
20587
|
-
}),
|
|
20641
|
+
}), p && (u.push({
|
|
20588
20642
|
name: "touchstart",
|
|
20589
20643
|
handler: this.start.bind(this)
|
|
20590
20644
|
}), d.push({
|
|
@@ -20722,8 +20776,8 @@ var EventEmitter$1 = (
|
|
|
20722
20776
|
}, e;
|
|
20723
20777
|
}()
|
|
20724
20778
|
), isValidPostion = function(e, t, n, o) {
|
|
20725
|
-
var r = function(d,
|
|
20726
|
-
var f = d -
|
|
20779
|
+
var r = function(d, p) {
|
|
20780
|
+
var f = d - p, g = f > 0 ? -1 : f < 0 ? 1 : 0;
|
|
20727
20781
|
return g;
|
|
20728
20782
|
}, s = r(t.x, e.x), a = r(t.y, e.y), l = n.x - o.x, u = n.y - o.y;
|
|
20729
20783
|
return s * l <= 0 && a * u <= 0;
|
|
@@ -20777,7 +20831,7 @@ var EventEmitter$1 = (
|
|
|
20777
20831
|
}
|
|
20778
20832
|
this.animate(n, o, r, s);
|
|
20779
20833
|
}, t.prototype.animate = function(n, o, r, s) {
|
|
20780
|
-
var a = this, l = getNow$1(), u = l + r, d = this.options.probeType === 3,
|
|
20834
|
+
var a = this, l = getNow$1(), u = l + r, d = this.options.probeType === 3, p = function() {
|
|
20781
20835
|
var f = getNow$1();
|
|
20782
20836
|
if (f >= u) {
|
|
20783
20837
|
a.translate(o), d && a.hooks.trigger(a.hooks.eventTypes.move, o), a.hooks.trigger(a.hooks.eventTypes.end, o);
|
|
@@ -20785,12 +20839,12 @@ var EventEmitter$1 = (
|
|
|
20785
20839
|
}
|
|
20786
20840
|
f = (f - l) / r;
|
|
20787
20841
|
var g = s(f), b = {};
|
|
20788
|
-
Object.keys(o).forEach(function(
|
|
20789
|
-
var T = n[
|
|
20790
|
-
b[
|
|
20791
|
-
}), a.translate(b), d && a.hooks.trigger(a.hooks.eventTypes.move, b), a.pending && (a.timer = requestAnimationFrame$1(
|
|
20842
|
+
Object.keys(o).forEach(function(_) {
|
|
20843
|
+
var T = n[_], A = o[_];
|
|
20844
|
+
b[_] = (A - T) * g + T;
|
|
20845
|
+
}), a.translate(b), d && a.hooks.trigger(a.hooks.eventTypes.move, b), a.pending && (a.timer = requestAnimationFrame$1(p)), a.pending || (a.callStopWhenPending ? a.callStopWhenPending = !1 : a.hooks.trigger(a.hooks.eventTypes.end, o));
|
|
20792
20846
|
};
|
|
20793
|
-
this.setPending(!0), this.callStopWhenPending && this.setCallStop(!1), cancelAnimationFrame(this.timer),
|
|
20847
|
+
this.setPending(!0), this.callStopWhenPending && this.setCallStop(!1), cancelAnimationFrame(this.timer), p();
|
|
20794
20848
|
}, t.prototype.doStop = function() {
|
|
20795
20849
|
var n = this.pending;
|
|
20796
20850
|
if (this.setForceStopped(!1), this.setCallStop(!1), n) {
|
|
@@ -20856,12 +20910,12 @@ var Behavior = (
|
|
|
20856
20910
|
return n;
|
|
20857
20911
|
}, e.prototype.momentum = function(t, n, o, r, s, a, l) {
|
|
20858
20912
|
l === void 0 && (l = this.options);
|
|
20859
|
-
var u = t - n, d = Math.abs(u) / o,
|
|
20860
|
-
destination: t + d * d /
|
|
20913
|
+
var u = t - n, d = Math.abs(u) / o, p = l.deceleration, f = l.swipeBounceTime, g = l.swipeTime, b = Math.min(g, d * 2 / p), _ = {
|
|
20914
|
+
destination: t + d * d / p * (u < 0 ? -1 : 1),
|
|
20861
20915
|
duration: b,
|
|
20862
20916
|
rate: 15
|
|
20863
20917
|
};
|
|
20864
|
-
return this.hooks.trigger(this.hooks.eventTypes.momentum,
|
|
20918
|
+
return this.hooks.trigger(this.hooks.eventTypes.momentum, _, u), _.destination < r ? (_.destination = a ? Math.max(r - a / 4, r - a / _.rate * d) : r, _.duration = f) : _.destination > s && (_.destination = a ? Math.min(s + a / 4, s + a / _.rate * d) : s, _.duration = f), _.destination = Math.round(_.destination), _;
|
|
20865
20919
|
}, e.prototype.updateDirection = function() {
|
|
20866
20920
|
var t = this.currentPos - this.absStartPos;
|
|
20867
20921
|
this.setDirection(t);
|
|
@@ -20993,10 +21047,10 @@ var Behavior = (
|
|
|
20993
21047
|
return !0;
|
|
20994
21048
|
if (this.directionLockAction.checkMovingDirection(r, s, o))
|
|
20995
21049
|
return this.actionsHandler.setInitiated(), !0;
|
|
20996
|
-
var l = this.directionLockAction.adjustDelta(t, n), u = this.scrollBehaviorX.getCurrentPos(), d = this.scrollBehaviorX.move(l.deltaX),
|
|
21050
|
+
var l = this.directionLockAction.adjustDelta(t, n), u = this.scrollBehaviorX.getCurrentPos(), d = this.scrollBehaviorX.move(l.deltaX), p = this.scrollBehaviorY.getCurrentPos(), f = this.scrollBehaviorY.move(l.deltaY);
|
|
20997
21051
|
if (!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)) {
|
|
20998
21052
|
this.fingerMoved || (this.fingerMoved = !0);
|
|
20999
|
-
var g = d !== u || f !==
|
|
21053
|
+
var g = d !== u || f !== p;
|
|
21000
21054
|
!this.contentMoved && !g && this.hooks.trigger(this.hooks.eventTypes.contentNotMoved), !this.contentMoved && g && (this.contentMoved = !0, this.hooks.trigger(this.hooks.eventTypes.scrollStart)), this.contentMoved && g && (this.animater.translate({
|
|
21001
21055
|
x: d,
|
|
21002
21056
|
y: f
|
|
@@ -21272,16 +21326,16 @@ var MIN_SCROLL_DISTANCE = 1, Scroller = (
|
|
|
21272
21326
|
y: n
|
|
21273
21327
|
}, s.end);
|
|
21274
21328
|
if (this.hooks.trigger(this.hooks.eventTypes.scrollTo, d), !isSamePoint(u, d)) {
|
|
21275
|
-
var
|
|
21276
|
-
|
|
21329
|
+
var p = Math.abs(d.x - u.x), f = Math.abs(d.y - u.y);
|
|
21330
|
+
p < MIN_SCROLL_DISTANCE && f < MIN_SCROLL_DISTANCE && (o = 0, this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)), this.animater.move(u, d, o, a);
|
|
21277
21331
|
}
|
|
21278
21332
|
}, e.prototype.scrollToElement = function(t, n, o, r, s) {
|
|
21279
|
-
var a = getElement(t), l = offset(a), u = function(
|
|
21280
|
-
return typeof
|
|
21333
|
+
var a = getElement(t), l = offset(a), u = function(p, f, g) {
|
|
21334
|
+
return typeof p == "number" ? p : p ? Math.round(f / 2 - g / 2) : 0;
|
|
21281
21335
|
};
|
|
21282
21336
|
o = u(o, a.offsetWidth, this.wrapper.offsetWidth), r = u(r, a.offsetHeight, this.wrapper.offsetHeight);
|
|
21283
|
-
var d = function(
|
|
21284
|
-
return
|
|
21337
|
+
var d = function(p, f, g, b) {
|
|
21338
|
+
return p -= f, p = b.adjustPosition(p - g), p;
|
|
21285
21339
|
};
|
|
21286
21340
|
l.left = d(l.left, this.wrapperOffset.left, o, this.scrollBehaviorX), l.top = d(l.top, this.wrapperOffset.top, r, this.scrollBehaviorY), !this.hooks.trigger(this.hooks.eventTypes.scrollToElement, a, l) && this.scrollTo(l.left, l.top, n, s);
|
|
21287
21341
|
}, e.prototype.resetPosition = function(t, n) {
|
|
@@ -21622,22 +21676,22 @@ var EventRegister$1 = (
|
|
|
21622
21676
|
if (r && this.wheelMoveTimer)
|
|
21623
21677
|
this.deltaCache.push(t);
|
|
21624
21678
|
else {
|
|
21625
|
-
var a = this.deltaCache.reduce(function(b,
|
|
21679
|
+
var a = this.deltaCache.reduce(function(b, _) {
|
|
21626
21680
|
return {
|
|
21627
|
-
x: b.x +
|
|
21628
|
-
y: b.y +
|
|
21681
|
+
x: b.x + _.x,
|
|
21682
|
+
y: b.y + _.y
|
|
21629
21683
|
};
|
|
21630
21684
|
}, { x: 0, y: 0 });
|
|
21631
21685
|
this.cleanCache();
|
|
21632
21686
|
var l = this.scroll.scroller, u = l.scrollBehaviorX, d = l.scrollBehaviorY;
|
|
21633
21687
|
u.setMovingDirection(-t.directionX), d.setMovingDirection(-t.directionY), u.setDirection(t.x), d.setDirection(t.y);
|
|
21634
|
-
var
|
|
21688
|
+
var p = u.performDampingAlgorithm(Math.round(t.x) + a.x, s), f = d.performDampingAlgorithm(Math.round(t.y) + a.x, s);
|
|
21635
21689
|
if (!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove, {
|
|
21636
|
-
x:
|
|
21690
|
+
x: p,
|
|
21637
21691
|
y: f
|
|
21638
21692
|
})) {
|
|
21639
21693
|
var g = this.getEaseTime();
|
|
21640
|
-
(
|
|
21694
|
+
(p !== this.scroll.x || f !== this.scroll.y) && this.scroll.scrollTo(p, f, g);
|
|
21641
21695
|
}
|
|
21642
21696
|
r && (this.wheelMoveTimer = window.setTimeout(function() {
|
|
21643
21697
|
n.wheelMoveTimer = 0;
|
|
@@ -21864,8 +21918,8 @@ var style = {
|
|
|
21864
21918
|
var r = this.events[t];
|
|
21865
21919
|
if (r)
|
|
21866
21920
|
for (var s = r.length, a = __spreadArrays(r), l, u = 0; u < s; u++) {
|
|
21867
|
-
var d = a[u],
|
|
21868
|
-
if (
|
|
21921
|
+
var d = a[u], p = d[0], f = d[1];
|
|
21922
|
+
if (p && (l = p.apply(f, n), l === !0))
|
|
21869
21923
|
return l;
|
|
21870
21924
|
}
|
|
21871
21925
|
}, e.prototype.registerType = function(t) {
|
|
@@ -21966,9 +22020,9 @@ var style = {
|
|
|
21966
22020
|
this.options.fade && (this.wrapper.style.opacity = "0");
|
|
21967
22021
|
}, e.prototype.handleHooks = function() {
|
|
21968
22022
|
var t = this, n = this.options, o = n.fade, r = n.interactive, s = n.scrollbarTrackClickable, a = this.scroll, l = a.hooks, u = a.scroller.translater.hooks, d = a.scroller.animater.hooks;
|
|
21969
|
-
if (this.registerHooks(l, l.eventTypes.refresh, this.refresh), this.registerHooks(u, u.eventTypes.translate, function(
|
|
22023
|
+
if (this.registerHooks(l, l.eventTypes.refresh, this.refresh), this.registerHooks(u, u.eventTypes.translate, function(_) {
|
|
21970
22024
|
var T = t.keysMap.hasScroll;
|
|
21971
|
-
t.scroll[T] && t.updatePosition(
|
|
22025
|
+
t.scroll[T] && t.updatePosition(_);
|
|
21972
22026
|
}), this.registerHooks(d, d.eventTypes.time, this.transitionTime), this.registerHooks(d, d.eventTypes.timeFunction, this.transitionTimingFunction), o && (this.registerHooks(a, a.eventTypes.scrollEnd, function() {
|
|
21973
22027
|
t.fade();
|
|
21974
22028
|
}), this.registerHooks(a, a.eventTypes.scrollStart, function() {
|
|
@@ -21980,7 +22034,7 @@ var style = {
|
|
|
21980
22034
|
}), this.registerHooks(a, a.eventTypes.mousewheelEnd, function() {
|
|
21981
22035
|
t.fade();
|
|
21982
22036
|
}))), r) {
|
|
21983
|
-
var
|
|
22037
|
+
var p = this.scroll.options, f = p.disableMouse, g = p.disableTouch;
|
|
21984
22038
|
this.eventHandler = new EventHandler(this, {
|
|
21985
22039
|
disableMouse: f,
|
|
21986
22040
|
disableTouch: g
|
|
@@ -22059,10 +22113,10 @@ var style = {
|
|
|
22059
22113
|
var n = this.caculatePosAndSize(t, this.scrollInfo), o = n.pos, r = n.size;
|
|
22060
22114
|
this.refreshStyle(r, o), this.currentPos = o;
|
|
22061
22115
|
}, e.prototype.caculatePosAndSize = function(t, n) {
|
|
22062
|
-
var o = this.keysMap.pos, r = n.sizeRatio, s = n.baseSize, a = n.maxScrollPos, l = n.minScrollPos, u = this.options.minSize, d = Math.round(r * t[o]),
|
|
22063
|
-
return d < l ? (
|
|
22116
|
+
var o = this.keysMap.pos, r = n.sizeRatio, s = n.baseSize, a = n.maxScrollPos, l = n.minScrollPos, u = this.options.minSize, d = Math.round(r * t[o]), p;
|
|
22117
|
+
return d < l ? (p = Math.max(s + d * 3, u), d = l) : d > a ? (p = Math.max(s - (d - a) * 3, u), d = a + s - p) : p = s, {
|
|
22064
22118
|
pos: d,
|
|
22065
|
-
size:
|
|
22119
|
+
size: p
|
|
22066
22120
|
};
|
|
22067
22121
|
}, e.prototype.refreshStyle = function(t, n) {
|
|
22068
22122
|
var o = this.keysMap, r = o.translateProperty, s = o.size, a = this.scroll.options.translateZ;
|
|
@@ -22086,8 +22140,8 @@ var style = {
|
|
|
22086
22140
|
var n = this.currentPos, o = this.scrollInfo, r = o.maxScrollPos, s = o.minScrollPos, a = n === s && t <= 0 || n === r && t >= 0;
|
|
22087
22141
|
return a;
|
|
22088
22142
|
}, e.prototype.syncBScroll = function(t) {
|
|
22089
|
-
var n = getNow(), o = this.scroll, r = o.x, s = o.y, a = o.options, l = o.scroller, u = o.maxScrollY, d = o.minScrollY,
|
|
22090
|
-
this.direction === "vertical" ?
|
|
22143
|
+
var n = getNow(), o = this.scroll, r = o.x, s = o.y, a = o.options, l = o.scroller, u = o.maxScrollY, d = o.minScrollY, p = o.maxScrollX, f = o.minScrollX, g = a.probeType, b = a.momentumLimitTime, _ = { x: r, y: s };
|
|
22144
|
+
this.direction === "vertical" ? _.y = between(t, u, d) : _.x = between(t, p, f), l.translater.translate(_), n - this.startTime > b && (this.startTime = n, g === 1 && l.hooks.trigger(l.hooks.eventTypes.scroll, _)), g > 1 && l.hooks.trigger(l.hooks.eventTypes.scroll, _);
|
|
22091
22145
|
}, e.prototype.newPos = function(t, n, o) {
|
|
22092
22146
|
var r = o.maxScrollPos, s = o.sizeRatio, a = o.minScrollPos, l = t + n;
|
|
22093
22147
|
return l = between(l, a, r), Math.round(l / s);
|
|
@@ -22133,8 +22187,8 @@ var style = {
|
|
|
22133
22187
|
], a = this.options.customElements, l = 0; l < r.length; l++) {
|
|
22134
22188
|
var u = r[l];
|
|
22135
22189
|
if (n.options[u]) {
|
|
22136
|
-
var d = a.shift(),
|
|
22137
|
-
g !== d ? n.wrapper.appendChild(g) : f = !0, t = __assign(__assign({ wrapper: g, direction:
|
|
22190
|
+
var d = a.shift(), p = s[l], f = !1, g = d || this.createScrollbarElement(p);
|
|
22191
|
+
g !== d ? n.wrapper.appendChild(g) : f = !0, t = __assign(__assign({ wrapper: g, direction: p }, this.options), { isCustom: f }), o.push(new Indicator(n, t));
|
|
22138
22192
|
}
|
|
22139
22193
|
}
|
|
22140
22194
|
this.indicators = o;
|
|
@@ -22236,8 +22290,8 @@ function calculateDepths(e, t) {
|
|
|
22236
22290
|
return n;
|
|
22237
22291
|
}
|
|
22238
22292
|
function checkBeyondBoundary(e) {
|
|
22239
|
-
var t = hasScroll(e), n = t.hasHorizontalScroll, o = t.hasVerticalScroll, r = e.scroller, s = r.scrollBehaviorX, a = r.scrollBehaviorY, l = e.x >= e.minScrollX && s.movingDirection === -1, u = e.x <= e.maxScrollX && s.movingDirection === 1, d = e.y >= e.minScrollY && a.movingDirection === -1,
|
|
22240
|
-
return o ? d ||
|
|
22293
|
+
var t = hasScroll(e), n = t.hasHorizontalScroll, o = t.hasVerticalScroll, r = e.scroller, s = r.scrollBehaviorX, a = r.scrollBehaviorY, l = e.x >= e.minScrollX && s.movingDirection === -1, u = e.x <= e.maxScrollX && s.movingDirection === 1, d = e.y >= e.minScrollY && a.movingDirection === -1, p = e.y <= e.maxScrollY && a.movingDirection === 1;
|
|
22294
|
+
return o ? d || p : n ? l || u : !1;
|
|
22241
22295
|
}
|
|
22242
22296
|
function setupData(e) {
|
|
22243
22297
|
var t = hasScroll(e), n = t.hasHorizontalScroll, o = t.hasVerticalScroll, r = e.scroller, s = r.actions, a = r.scrollBehaviorX, l = r.scrollBehaviorY;
|
|
@@ -22253,9 +22307,9 @@ function patchedMomentum(e, t, n, o, r, s, a) {
|
|
|
22253
22307
|
a === void 0 && (a = this.options);
|
|
22254
22308
|
var l = e - t, u = Math.abs(l) / n, d = a.deceleration;
|
|
22255
22309
|
a.swipeBounceTime;
|
|
22256
|
-
var
|
|
22310
|
+
var p = a.swipeTime, f = {
|
|
22257
22311
|
destination: e + u / d * (l < 0 ? -1 : 1),
|
|
22258
|
-
duration:
|
|
22312
|
+
duration: p,
|
|
22259
22313
|
rate: 15
|
|
22260
22314
|
};
|
|
22261
22315
|
return this.hooks.trigger(this.hooks.eventTypes.momentum, f, l), f.destination < o ? (f.destination = s ? Math.max(
|
|
@@ -22374,11 +22428,11 @@ var ease = {
|
|
|
22374
22428
|
};
|
|
22375
22429
|
}
|
|
22376
22430
|
}, e.prototype.computePagePosInfo = function(t, n) {
|
|
22377
|
-
var o = [], r = 0, s, a, l, u = 0, d,
|
|
22431
|
+
var o = [], r = 0, s, a, l, u = 0, d, p = this.scroll.scroller.scrollBehaviorX.maxScrollPos, f = this.scroll.scroller.scrollBehaviorY.maxScrollPos;
|
|
22378
22432
|
for (a = Math.round(t / 2), l = Math.round(n / 2); r > -this.scrollerWidth; ) {
|
|
22379
22433
|
for (o[u] = [], d = 0, s = 0; s > -this.scrollerHeight; )
|
|
22380
22434
|
o[u][d] = {
|
|
22381
|
-
x: Math.max(r,
|
|
22435
|
+
x: Math.max(r, p),
|
|
22382
22436
|
y: Math.max(s, f),
|
|
22383
22437
|
width: t,
|
|
22384
22438
|
height: n,
|
|
@@ -22389,8 +22443,8 @@ var ease = {
|
|
|
22389
22443
|
}
|
|
22390
22444
|
return o;
|
|
22391
22445
|
}, e.prototype.computePagePosInfoByEl = function(t) {
|
|
22392
|
-
for (var n = [], o = 0, r = 0, s, a, l = 0, u = t.length, d = 0,
|
|
22393
|
-
f = getRect(t[l]), (l === 0 || f.left <= getRect(t[l - 1]).left) && (d = 0,
|
|
22446
|
+
for (var n = [], o = 0, r = 0, s, a, l = 0, u = t.length, d = 0, p = -1, f, g = this.scroll.scroller.scrollBehaviorX.maxScrollPos, b = this.scroll.scroller.scrollBehaviorY.maxScrollPos; l < u; l++)
|
|
22447
|
+
f = getRect(t[l]), (l === 0 || f.left <= getRect(t[l - 1]).left) && (d = 0, p++), n[d] || (n[d] = []), o = Math.max(-f.left, g), r = Math.max(-f.top, b), s = o - Math.round(f.width / 2), a = r - Math.round(f.height / 2), n[d][p] = {
|
|
22394
22448
|
x: o,
|
|
22395
22449
|
y: r,
|
|
22396
22450
|
width: f.width,
|
|
@@ -22572,12 +22626,12 @@ var ease = {
|
|
|
22572
22626
|
var a = this.setSlideWidth(o), l = this.setSlideHeight(
|
|
22573
22627
|
this.scroll.scroller.wrapper,
|
|
22574
22628
|
o
|
|
22575
|
-
), u = a || l, d = this.scroll.hooks,
|
|
22576
|
-
this.registorHooks(d, "refresh", this.initSlideState), this.registorHooks(d, "destroy", this.destroy), this.registorHooks(
|
|
22629
|
+
), u = a || l, d = this.scroll.hooks, p = this.scroll.scroller.hooks;
|
|
22630
|
+
this.registorHooks(d, "refresh", this.initSlideState), this.registorHooks(d, "destroy", this.destroy), this.registorHooks(p, "momentum", this.modifyScrollMetaHandler), this.registorHooks(this.scroll, "scrollEnd", this.amendCurrentPage), this.registorHooks(p, "beforeStart", this.setTouchFlag), this.registorHooks(p, "scroll", this.scrollMoving), this.registorHooks(p, "resize", this.resize), this.scroll.eventTypes.mousewheelMove && this.scroll.eventTypes.mousewheelEnd && (this.registorHooks(this.scroll, "mousewheelMove", function() {
|
|
22577
22631
|
return !0;
|
|
22578
22632
|
}), this.registorHooks(this.scroll, "mousewheelEnd", function(f) {
|
|
22579
22633
|
(f.directionX === 1 || f.directionY === 1) && t.next(), (f.directionX === -1 || f.directionY === -1) && t.prev();
|
|
22580
|
-
})), n.listenFlick !== !1 && this.registorHooks(
|
|
22634
|
+
})), n.listenFlick !== !1 && this.registorHooks(p, "flick", this.flickHandler), !r && !u ? this.initSlideState() : this.scroll.refresh();
|
|
22581
22635
|
}, e.prototype.resize = function() {
|
|
22582
22636
|
var t = this, n = this.scroll.scroller.content, o = this.scroll.scroller.wrapper;
|
|
22583
22637
|
return clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(function() {
|
|
@@ -22716,8 +22770,8 @@ var ease = {
|
|
|
22716
22770
|
n === void 0 && (n = 0);
|
|
22717
22771
|
var s = this.page.change2safePage(t, n);
|
|
22718
22772
|
if (s) {
|
|
22719
|
-
var a = r || this.slideOpt.easing || ease.bounce, l = s.x, u = s.y, d = l - this.scroll.scroller.scrollBehaviorX.currentPos,
|
|
22720
|
-
!d && !
|
|
22773
|
+
var a = r || this.slideOpt.easing || ease.bounce, l = s.x, u = s.y, d = l - this.scroll.scroller.scrollBehaviorX.currentPos, p = u - this.scroll.scroller.scrollBehaviorY.currentPos;
|
|
22774
|
+
!d && !p || (o = o === void 0 ? this.getAnimateTime(d, p) : o, this.page.changeCurrentPage({
|
|
22721
22775
|
x: l,
|
|
22722
22776
|
y: u,
|
|
22723
22777
|
pageX: s.pageX,
|
|
@@ -26628,18 +26682,18 @@ const EventSender$1 = {
|
|
|
26628
26682
|
), d = {};
|
|
26629
26683
|
u.forEach((g) => {
|
|
26630
26684
|
const b = g.parameters.payload ? g.parameters.payload.split(",") : [];
|
|
26631
|
-
for (let
|
|
26632
|
-
d[
|
|
26685
|
+
for (let _ of b)
|
|
26686
|
+
d[_] = !0;
|
|
26633
26687
|
});
|
|
26634
|
-
var
|
|
26688
|
+
var p = [];
|
|
26635
26689
|
for (var f in d)
|
|
26636
|
-
|
|
26690
|
+
p.push({
|
|
26637
26691
|
name: f,
|
|
26638
26692
|
type: "*",
|
|
26639
26693
|
plug: "output",
|
|
26640
26694
|
displayName: f
|
|
26641
26695
|
});
|
|
26642
|
-
e.editorConnection.sendDynamicPorts(o.id,
|
|
26696
|
+
e.editorConnection.sendDynamicPorts(o.id, p, {
|
|
26643
26697
|
detectRenamed: {
|
|
26644
26698
|
plug: "output"
|
|
26645
26699
|
}
|
|
@@ -27160,7 +27214,7 @@ const JavaScript = {
|
|
|
27160
27214
|
});
|
|
27161
27215
|
}), _parseAndSourceJavascript(o, e, function(u) {
|
|
27162
27216
|
u.forEach((d) => {
|
|
27163
|
-
s.find((
|
|
27217
|
+
s.find((p) => p.name === d.name && p.plug === d.plug) || s.push(d);
|
|
27164
27218
|
}), e.editorConnection.sendDynamicPorts(o.id, s);
|
|
27165
27219
|
});
|
|
27166
27220
|
}
|
|
@@ -27364,8 +27418,8 @@ const StatesNode = {
|
|
|
27364
27418
|
u
|
|
27365
27419
|
);
|
|
27366
27420
|
else if (this.valueTypes[a] === "color") {
|
|
27367
|
-
let d = this.startValues[a],
|
|
27368
|
-
s[0] = Math.floor(EaseCurves.linear(d[0],
|
|
27421
|
+
let d = this.startValues[a], p = this.targetValues[a];
|
|
27422
|
+
s[0] = Math.floor(EaseCurves.linear(d[0], p[0], u)), s[1] = Math.floor(EaseCurves.linear(d[1], p[1], u)), s[2] = Math.floor(EaseCurves.linear(d[2], p[2], u)), s[3] = Math.floor(EaseCurves.linear(d[3], p[3], u)), r[a] = rgbaToHex(s);
|
|
27369
27423
|
}
|
|
27370
27424
|
}
|
|
27371
27425
|
e.flagOutputDirty(a);
|
|
@@ -27549,11 +27603,11 @@ const StatesNode = {
|
|
|
27549
27603
|
for (var s in t.values) {
|
|
27550
27604
|
var a = t.values[s];
|
|
27551
27605
|
t.startValues[a] = t.currentValues[a];
|
|
27552
|
-
const
|
|
27553
|
-
if (
|
|
27606
|
+
const p = t.stateParameterTypes["type-" + a];
|
|
27607
|
+
if (p === "boolean") {
|
|
27554
27608
|
var l = t.stateParameters["value-" + e + "-" + a];
|
|
27555
27609
|
t.currentValues[a] = l === void 0 ? !1 : !!l, this.flagOutputDirty(a);
|
|
27556
|
-
} else if (
|
|
27610
|
+
} else if (p === "string" || p === "textStyle")
|
|
27557
27611
|
t.currentValues[a] = t.stateParameters["value-" + e + "-" + a], this.flagOutputDirty(a);
|
|
27558
27612
|
else {
|
|
27559
27613
|
var u = t.stateParameters["transition-" + e + "-" + a];
|
|
@@ -27689,8 +27743,8 @@ function updatePorts$9(e, t, n) {
|
|
|
27689
27743
|
previousStates[e] = o;
|
|
27690
27744
|
var d = detectRename$1(previousValues[e], r);
|
|
27691
27745
|
previousValues[e] = r;
|
|
27692
|
-
let
|
|
27693
|
-
u ? (
|
|
27746
|
+
let p;
|
|
27747
|
+
u ? (p = {
|
|
27694
27748
|
plug: "input",
|
|
27695
27749
|
before: u.before,
|
|
27696
27750
|
after: u.after,
|
|
@@ -27706,8 +27760,8 @@ function updatePorts$9(e, t, n) {
|
|
|
27706
27760
|
"reached-{{*}}"
|
|
27707
27761
|
]
|
|
27708
27762
|
}, r && r.forEach(function(f) {
|
|
27709
|
-
|
|
27710
|
-
})) : d && (
|
|
27763
|
+
p.patterns.push("value-{{*}}-" + f);
|
|
27764
|
+
})) : d && (p = [
|
|
27711
27765
|
{
|
|
27712
27766
|
plug: "output",
|
|
27713
27767
|
before: d.before,
|
|
@@ -27728,7 +27782,7 @@ function updatePorts$9(e, t, n) {
|
|
|
27728
27782
|
return "value-" + f + "-{{*}}";
|
|
27729
27783
|
}) : void 0
|
|
27730
27784
|
}
|
|
27731
|
-
]), n.sendDynamicPorts(e, s, { renamed:
|
|
27785
|
+
]), n.sendDynamicPorts(e, s, { renamed: p });
|
|
27732
27786
|
}
|
|
27733
27787
|
const States = {
|
|
27734
27788
|
node: StatesNode,
|
|
@@ -28174,7 +28228,7 @@ const ParentComponentObject = {
|
|
|
28174
28228
|
//we also need the connections to be setup so we can use isInputConnected
|
|
28175
28229
|
//nodeScopeDidInitialize takes care of that
|
|
28176
28230
|
nodeScopeDidInitialize() {
|
|
28177
|
-
this._internal.modelId
|
|
28231
|
+
this._internal && !this._internal.modelId && this.context.scheduleAfterUpdate(() => {
|
|
28178
28232
|
this.updateComponentState();
|
|
28179
28233
|
});
|
|
28180
28234
|
},
|
|
@@ -28423,16 +28477,16 @@ function extendSetComponentObjectProperties(e) {
|
|
|
28423
28477
|
if (u) {
|
|
28424
28478
|
u = u ? u.split(",") : void 0;
|
|
28425
28479
|
for (var d in u) {
|
|
28426
|
-
var
|
|
28480
|
+
var p = u[d];
|
|
28427
28481
|
a.push({
|
|
28428
28482
|
type: {
|
|
28429
|
-
name: r["type-" +
|
|
28483
|
+
name: r["type-" + p] === void 0 ? "*" : r["type-" + p]
|
|
28430
28484
|
},
|
|
28431
28485
|
plug: "input",
|
|
28432
28486
|
group: "Property Values",
|
|
28433
|
-
displayName:
|
|
28487
|
+
displayName: p,
|
|
28434
28488
|
// editorName:p,
|
|
28435
|
-
name: "prop-" +
|
|
28489
|
+
name: "prop-" + p
|
|
28436
28490
|
}), a.push({
|
|
28437
28491
|
type: {
|
|
28438
28492
|
name: "enum",
|
|
@@ -28441,9 +28495,9 @@ function extendSetComponentObjectProperties(e) {
|
|
|
28441
28495
|
},
|
|
28442
28496
|
plug: "input",
|
|
28443
28497
|
group: "Property Types",
|
|
28444
|
-
displayName:
|
|
28498
|
+
displayName: p,
|
|
28445
28499
|
default: "*",
|
|
28446
|
-
name: "type-" +
|
|
28500
|
+
name: "type-" + p
|
|
28447
28501
|
});
|
|
28448
28502
|
}
|
|
28449
28503
|
}
|
|
@@ -30269,10 +30323,10 @@ const NavigateBack$1 = {
|
|
|
30269
30323
|
n && (o = n.map(function(d) {
|
|
30270
30324
|
return d.replace("{", "").replace("}", "");
|
|
30271
30325
|
})), o.forEach(function(d) {
|
|
30272
|
-
var
|
|
30326
|
+
var p = e.params[d];
|
|
30273
30327
|
t = t.replace(
|
|
30274
30328
|
"{" + d + "}",
|
|
30275
|
-
|
|
30329
|
+
p !== void 0 ? p : ""
|
|
30276
30330
|
);
|
|
30277
30331
|
});
|
|
30278
30332
|
var r, s, a = Runtime.instance.getProjectSettings().navigationPathType;
|
|
@@ -30313,14 +30367,14 @@ const NavigateBack$1 = {
|
|
|
30313
30367
|
function s() {
|
|
30314
30368
|
var a = [];
|
|
30315
30369
|
if (r.parameters.path !== void 0)
|
|
30316
|
-
var l = r.parameters.path.match(/\{[A-Za-z0-9_]*\}/g) || [], u = l.map(function(
|
|
30317
|
-
return
|
|
30318
|
-
}), a = u.filter(function(
|
|
30319
|
-
return g.indexOf(
|
|
30320
|
-
}).map(function(
|
|
30370
|
+
var l = r.parameters.path.match(/\{[A-Za-z0-9_]*\}/g) || [], u = l.map(function(p) {
|
|
30371
|
+
return p.replace("{", "").replace("}", "");
|
|
30372
|
+
}), a = u.filter(function(p, f, g) {
|
|
30373
|
+
return g.indexOf(p) === f;
|
|
30374
|
+
}).map(function(p) {
|
|
30321
30375
|
return {
|
|
30322
|
-
name: "p-" +
|
|
30323
|
-
displayName:
|
|
30376
|
+
name: "p-" + p,
|
|
30377
|
+
displayName: p,
|
|
30324
30378
|
group: "Parameter",
|
|
30325
30379
|
type: "*",
|
|
30326
30380
|
plug: "input"
|
|
@@ -30503,19 +30557,19 @@ function setup(e, t) {
|
|
|
30503
30557
|
var u = o.parameters.transition || "Push";
|
|
30504
30558
|
Transitions[u] && (l = l.concat(Transitions[u].ports(o.parameters)));
|
|
30505
30559
|
}
|
|
30506
|
-
const
|
|
30560
|
+
const p = t.getNodesWithType("Page Stack").find(
|
|
30507
30561
|
(f) => (f.parameters.name || "Main") === (o.parameters.stack || "Main")
|
|
30508
30562
|
);
|
|
30509
|
-
if (
|
|
30510
|
-
const f =
|
|
30563
|
+
if (p !== void 0) {
|
|
30564
|
+
const f = p.parameters.pages;
|
|
30511
30565
|
if (f !== void 0 && f.length > 0) {
|
|
30512
30566
|
l.push({
|
|
30513
30567
|
plug: "input",
|
|
30514
30568
|
type: {
|
|
30515
30569
|
name: "enum",
|
|
30516
|
-
enums: f.map((
|
|
30517
|
-
label:
|
|
30518
|
-
value:
|
|
30570
|
+
enums: f.map((_) => ({
|
|
30571
|
+
label: _.label,
|
|
30572
|
+
value: _.id
|
|
30519
30573
|
}))
|
|
30520
30574
|
},
|
|
30521
30575
|
group: "General",
|
|
@@ -30523,11 +30577,11 @@ function setup(e, t) {
|
|
|
30523
30577
|
name: "target",
|
|
30524
30578
|
default: f[0].id
|
|
30525
30579
|
});
|
|
30526
|
-
const g = o.parameters.target || f[0].id, b =
|
|
30580
|
+
const g = o.parameters.target || f[0].id, b = p.parameters["pageComp-" + g];
|
|
30527
30581
|
if (b !== void 0) {
|
|
30528
|
-
const
|
|
30529
|
-
if (
|
|
30530
|
-
for (const T in
|
|
30582
|
+
const _ = t.components[b];
|
|
30583
|
+
if (_ !== void 0) {
|
|
30584
|
+
for (const T in _.inputPorts)
|
|
30531
30585
|
l.push({
|
|
30532
30586
|
name: "pm-" + T,
|
|
30533
30587
|
displayName: T,
|
|
@@ -30535,7 +30589,7 @@ function setup(e, t) {
|
|
|
30535
30589
|
plug: "input",
|
|
30536
30590
|
group: "Parameters"
|
|
30537
30591
|
});
|
|
30538
|
-
for (const T of
|
|
30592
|
+
for (const T of _.getNodesWithType(
|
|
30539
30593
|
"PageStackNavigateBack"
|
|
30540
30594
|
))
|
|
30541
30595
|
T.parameters.backActions !== void 0 && T.parameters.backActions.split(",").forEach((A) => {
|
|
@@ -30568,9 +30622,9 @@ function setup(e, t) {
|
|
|
30568
30622
|
if (u !== void 0) {
|
|
30569
30623
|
var d = u.parameters.pages;
|
|
30570
30624
|
if (!(d === void 0 || d.length === 0)) {
|
|
30571
|
-
var
|
|
30572
|
-
if (
|
|
30573
|
-
var f = t.components[
|
|
30625
|
+
var p = u.parameters["pageComp-" + (o.parameters.target || d[0].id)];
|
|
30626
|
+
if (p !== void 0) {
|
|
30627
|
+
var f = t.components[p];
|
|
30574
30628
|
if (f !== void 0) {
|
|
30575
30629
|
f.on("inputPortAdded", r), f.on("inputPortRemoved", r);
|
|
30576
30630
|
for (const g of f.getNodesWithType("PageStackNavigateBack"))
|
|
@@ -30709,11 +30763,11 @@ const Navigate$1 = {
|
|
|
30709
30763
|
var u = t.components[l];
|
|
30710
30764
|
if (u) {
|
|
30711
30765
|
for (var d in u.inputPorts) {
|
|
30712
|
-
var
|
|
30766
|
+
var p = u.inputPorts[d];
|
|
30713
30767
|
a.push({
|
|
30714
30768
|
name: "popupParam-" + d,
|
|
30715
30769
|
displayName: d,
|
|
30716
|
-
type:
|
|
30770
|
+
type: p.type || "*",
|
|
30717
30771
|
plug: "input",
|
|
30718
30772
|
group: "Params"
|
|
30719
30773
|
});
|
|
@@ -30862,8 +30916,8 @@ const Navigate$1 = {
|
|
|
30862
30916
|
var d = o.parameters.closeActions;
|
|
30863
30917
|
if (d) {
|
|
30864
30918
|
d = d ? d.split(",") : void 0;
|
|
30865
|
-
for (const
|
|
30866
|
-
const f = d[
|
|
30919
|
+
for (const p in d) {
|
|
30920
|
+
const f = d[p];
|
|
30867
30921
|
s.push({
|
|
30868
30922
|
type: "signal",
|
|
30869
30923
|
plug: "input",
|
|
@@ -31347,8 +31401,8 @@ function updatePorts$5(e, t, n, o) {
|
|
|
31347
31401
|
for (var l in a)
|
|
31348
31402
|
if (d.indexOf(l) === -1) {
|
|
31349
31403
|
var u = a[l];
|
|
31350
|
-
if (!r.find((
|
|
31351
|
-
const
|
|
31404
|
+
if (!r.find((p) => p.name === l) && u.type !== "Relation") {
|
|
31405
|
+
const p = {
|
|
31352
31406
|
String: "string",
|
|
31353
31407
|
Boolean: "boolean",
|
|
31354
31408
|
Number: "number",
|
|
@@ -31356,7 +31410,7 @@ function updatePorts$5(e, t, n, o) {
|
|
|
31356
31410
|
};
|
|
31357
31411
|
r.push({
|
|
31358
31412
|
type: {
|
|
31359
|
-
name:
|
|
31413
|
+
name: p[u.type] ? p[u.type] : "*"
|
|
31360
31414
|
},
|
|
31361
31415
|
plug: "input",
|
|
31362
31416
|
group: "Properties",
|
|
@@ -33532,75 +33586,75 @@ lodash_isequal.exports;
|
|
|
33532
33586
|
var hasRequiredLodash_isequal;
|
|
33533
33587
|
function requireLodash_isequal() {
|
|
33534
33588
|
return hasRequiredLodash_isequal || (hasRequiredLodash_isequal = 1, function(e, t) {
|
|
33535
|
-
var n = 200, o = "__lodash_hash_undefined__", r = 1, s = 2, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", d = "[object AsyncFunction]",
|
|
33536
|
-
Y[pe] = Y[xe] = Y[Me] = Y[ae] = Y[Ie] = Y[Te] = Y[Ne] = Y[me] = Y[Ee] = !0, Y[l] = Y[u] = Y[J] = Y[
|
|
33589
|
+
var n = 200, o = "__lodash_hash_undefined__", r = 1, s = 2, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", f = "[object Date]", g = "[object Error]", b = "[object Function]", _ = "[object GeneratorFunction]", T = "[object Map]", A = "[object Number]", v = "[object Null]", I = "[object Object]", k = "[object Promise]", N = "[object Proxy]", w = "[object RegExp]", E = "[object Set]", F = "[object String]", L = "[object Symbol]", B = "[object Undefined]", H = "[object WeakMap]", J = "[object ArrayBuffer]", ie = "[object DataView]", pe = "[object Float32Array]", xe = "[object Float64Array]", Me = "[object Int8Array]", ae = "[object Int16Array]", Ie = "[object Int32Array]", Te = "[object Uint8Array]", Ne = "[object Uint8ClampedArray]", me = "[object Uint16Array]", Ee = "[object Uint32Array]", Ae = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Fe = /^(?:0|[1-9]\d*)$/, Y = {};
|
|
33590
|
+
Y[pe] = Y[xe] = Y[Me] = Y[ae] = Y[Ie] = Y[Te] = Y[Ne] = Y[me] = Y[Ee] = !0, Y[l] = Y[u] = Y[J] = Y[p] = Y[ie] = Y[f] = Y[g] = Y[b] = Y[T] = Y[A] = Y[I] = Y[w] = Y[E] = Y[F] = Y[H] = !1;
|
|
33537
33591
|
var ve = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal, Ve = typeof self == "object" && self && self.Object === Object && self, re = ve || Ve || Function("return this")(), Oe = t && !t.nodeType && t, $e = Oe && !0 && e && !e.nodeType && e, Le = $e && $e.exports === Oe, fe = Le && ve.process, Xe = function() {
|
|
33538
33592
|
try {
|
|
33539
33593
|
return fe && fe.binding && fe.binding("util");
|
|
33540
33594
|
} catch {
|
|
33541
33595
|
}
|
|
33542
33596
|
}(), Be = Xe && Xe.isTypedArray;
|
|
33543
|
-
function De(m,
|
|
33597
|
+
function De(m, P) {
|
|
33544
33598
|
for (var D = -1, W = m == null ? 0 : m.length, Q = 0, X = []; ++D < W; ) {
|
|
33545
33599
|
var ne = m[D];
|
|
33546
|
-
|
|
33600
|
+
P(ne, D, m) && (X[Q++] = ne);
|
|
33547
33601
|
}
|
|
33548
33602
|
return X;
|
|
33549
33603
|
}
|
|
33550
|
-
function Ue(m,
|
|
33551
|
-
for (var D = -1, W =
|
|
33552
|
-
m[Q + D] =
|
|
33604
|
+
function Ue(m, P) {
|
|
33605
|
+
for (var D = -1, W = P.length, Q = m.length; ++D < W; )
|
|
33606
|
+
m[Q + D] = P[D];
|
|
33553
33607
|
return m;
|
|
33554
33608
|
}
|
|
33555
|
-
function je(m,
|
|
33609
|
+
function je(m, P) {
|
|
33556
33610
|
for (var D = -1, W = m == null ? 0 : m.length; ++D < W; )
|
|
33557
|
-
if (
|
|
33611
|
+
if (P(m[D], D, m))
|
|
33558
33612
|
return !0;
|
|
33559
33613
|
return !1;
|
|
33560
33614
|
}
|
|
33561
|
-
function Re(m,
|
|
33615
|
+
function Re(m, P) {
|
|
33562
33616
|
for (var D = -1, W = Array(m); ++D < m; )
|
|
33563
|
-
W[D] =
|
|
33617
|
+
W[D] = P(D);
|
|
33564
33618
|
return W;
|
|
33565
33619
|
}
|
|
33566
33620
|
function We(m) {
|
|
33567
|
-
return function(
|
|
33568
|
-
return m(
|
|
33621
|
+
return function(P) {
|
|
33622
|
+
return m(P);
|
|
33569
33623
|
};
|
|
33570
33624
|
}
|
|
33571
|
-
function st(m,
|
|
33572
|
-
return m.has(
|
|
33625
|
+
function st(m, P) {
|
|
33626
|
+
return m.has(P);
|
|
33573
33627
|
}
|
|
33574
|
-
function K(m,
|
|
33575
|
-
return m?.[
|
|
33628
|
+
function K(m, P) {
|
|
33629
|
+
return m?.[P];
|
|
33576
33630
|
}
|
|
33577
33631
|
function et(m) {
|
|
33578
|
-
var
|
|
33632
|
+
var P = -1, D = Array(m.size);
|
|
33579
33633
|
return m.forEach(function(W, Q) {
|
|
33580
|
-
D[++
|
|
33634
|
+
D[++P] = [Q, W];
|
|
33581
33635
|
}), D;
|
|
33582
33636
|
}
|
|
33583
|
-
function tt(m,
|
|
33637
|
+
function tt(m, P) {
|
|
33584
33638
|
return function(D) {
|
|
33585
|
-
return m(
|
|
33639
|
+
return m(P(D));
|
|
33586
33640
|
};
|
|
33587
33641
|
}
|
|
33588
33642
|
function le(m) {
|
|
33589
|
-
var
|
|
33643
|
+
var P = -1, D = Array(m.size);
|
|
33590
33644
|
return m.forEach(function(W) {
|
|
33591
|
-
D[++
|
|
33645
|
+
D[++P] = W;
|
|
33592
33646
|
}), D;
|
|
33593
33647
|
}
|
|
33594
33648
|
var ye = Array.prototype, ue = Function.prototype, Se = Object.prototype, ge = re["__core-js_shared__"], ze = ue.toString, Z = Se.hasOwnProperty, Ce = function() {
|
|
33595
33649
|
var m = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
|
|
33596
33650
|
return m ? "Symbol(src)_1." + m : "";
|
|
33597
|
-
}(), c = Se.toString,
|
|
33651
|
+
}(), c = Se.toString, h = RegExp(
|
|
33598
33652
|
"^" + ze.call(Z).replace(Ae, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
33599
33653
|
), y = Le ? re.Buffer : void 0, S = re.Symbol, O = re.Uint8Array, M = Se.propertyIsEnumerable, U = ye.splice, j = S ? S.toStringTag : void 0, z = Object.getOwnPropertySymbols, q = y ? y.isBuffer : void 0, C = tt(Object.keys, Object), x = lt(re, "DataView"), V = lt(re, "Map"), G = lt(re, "Promise"), ee = lt(re, "Set"), oe = lt(re, "WeakMap"), de = lt(Object, "create"), ke = ot(x), Ye = ot(V), St = ot(G), Je = ot(ee), at = ot(oe), ut = S ? S.prototype : void 0, bt = ut ? ut.valueOf : void 0;
|
|
33600
33654
|
function nt(m) {
|
|
33601
|
-
var
|
|
33602
|
-
for (this.clear(); ++
|
|
33603
|
-
var W = m[
|
|
33655
|
+
var P = -1, D = m == null ? 0 : m.length;
|
|
33656
|
+
for (this.clear(); ++P < D; ) {
|
|
33657
|
+
var W = m[P];
|
|
33604
33658
|
this.set(W[0], W[1]);
|
|
33605
33659
|
}
|
|
33606
33660
|
}
|
|
@@ -33608,30 +33662,30 @@ function requireLodash_isequal() {
|
|
|
33608
33662
|
this.__data__ = de ? de(null) : {}, this.size = 0;
|
|
33609
33663
|
}
|
|
33610
33664
|
function kt(m) {
|
|
33611
|
-
var
|
|
33612
|
-
return this.size -=
|
|
33665
|
+
var P = this.has(m) && delete this.__data__[m];
|
|
33666
|
+
return this.size -= P ? 1 : 0, P;
|
|
33613
33667
|
}
|
|
33614
33668
|
function Mt(m) {
|
|
33615
|
-
var
|
|
33669
|
+
var P = this.__data__;
|
|
33616
33670
|
if (de) {
|
|
33617
|
-
var D =
|
|
33671
|
+
var D = P[m];
|
|
33618
33672
|
return D === o ? void 0 : D;
|
|
33619
33673
|
}
|
|
33620
|
-
return Z.call(
|
|
33674
|
+
return Z.call(P, m) ? P[m] : void 0;
|
|
33621
33675
|
}
|
|
33622
33676
|
function At(m) {
|
|
33623
|
-
var
|
|
33624
|
-
return de ?
|
|
33677
|
+
var P = this.__data__;
|
|
33678
|
+
return de ? P[m] !== void 0 : Z.call(P, m);
|
|
33625
33679
|
}
|
|
33626
|
-
function Ft(m,
|
|
33680
|
+
function Ft(m, P) {
|
|
33627
33681
|
var D = this.__data__;
|
|
33628
|
-
return this.size += this.has(m) ? 0 : 1, D[m] = de &&
|
|
33682
|
+
return this.size += this.has(m) ? 0 : 1, D[m] = de && P === void 0 ? o : P, this;
|
|
33629
33683
|
}
|
|
33630
33684
|
nt.prototype.clear = Rt, nt.prototype.delete = kt, nt.prototype.get = Mt, nt.prototype.has = At, nt.prototype.set = Ft;
|
|
33631
33685
|
function He(m) {
|
|
33632
|
-
var
|
|
33633
|
-
for (this.clear(); ++
|
|
33634
|
-
var W = m[
|
|
33686
|
+
var P = -1, D = m == null ? 0 : m.length;
|
|
33687
|
+
for (this.clear(); ++P < D; ) {
|
|
33688
|
+
var W = m[P];
|
|
33635
33689
|
this.set(W[0], W[1]);
|
|
33636
33690
|
}
|
|
33637
33691
|
}
|
|
@@ -33639,28 +33693,28 @@ function requireLodash_isequal() {
|
|
|
33639
33693
|
this.__data__ = [], this.size = 0;
|
|
33640
33694
|
}
|
|
33641
33695
|
function $t(m) {
|
|
33642
|
-
var
|
|
33696
|
+
var P = this.__data__, D = ht(P, m);
|
|
33643
33697
|
if (D < 0)
|
|
33644
33698
|
return !1;
|
|
33645
|
-
var W =
|
|
33646
|
-
return D == W ?
|
|
33699
|
+
var W = P.length - 1;
|
|
33700
|
+
return D == W ? P.pop() : U.call(P, D, 1), --this.size, !0;
|
|
33647
33701
|
}
|
|
33648
33702
|
function Lt(m) {
|
|
33649
|
-
var
|
|
33650
|
-
return D < 0 ? void 0 :
|
|
33703
|
+
var P = this.__data__, D = ht(P, m);
|
|
33704
|
+
return D < 0 ? void 0 : P[D][1];
|
|
33651
33705
|
}
|
|
33652
33706
|
function Bt(m) {
|
|
33653
33707
|
return ht(this.__data__, m) > -1;
|
|
33654
33708
|
}
|
|
33655
|
-
function Ut(m,
|
|
33709
|
+
function Ut(m, P) {
|
|
33656
33710
|
var D = this.__data__, W = ht(D, m);
|
|
33657
|
-
return W < 0 ? (++this.size, D.push([m,
|
|
33711
|
+
return W < 0 ? (++this.size, D.push([m, P])) : D[W][1] = P, this;
|
|
33658
33712
|
}
|
|
33659
33713
|
He.prototype.clear = Vt, He.prototype.delete = $t, He.prototype.get = Lt, He.prototype.has = Bt, He.prototype.set = Ut;
|
|
33660
33714
|
function it(m) {
|
|
33661
|
-
var
|
|
33662
|
-
for (this.clear(); ++
|
|
33663
|
-
var W = m[
|
|
33715
|
+
var P = -1, D = m == null ? 0 : m.length;
|
|
33716
|
+
for (this.clear(); ++P < D; ) {
|
|
33717
|
+
var W = m[P];
|
|
33664
33718
|
this.set(W[0], W[1]);
|
|
33665
33719
|
}
|
|
33666
33720
|
}
|
|
@@ -33672,8 +33726,8 @@ function requireLodash_isequal() {
|
|
|
33672
33726
|
};
|
|
33673
33727
|
}
|
|
33674
33728
|
function Wt(m) {
|
|
33675
|
-
var
|
|
33676
|
-
return this.size -=
|
|
33729
|
+
var P = ft(this, m).delete(m);
|
|
33730
|
+
return this.size -= P ? 1 : 0, P;
|
|
33677
33731
|
}
|
|
33678
33732
|
function zt(m) {
|
|
33679
33733
|
return ft(this, m).get(m);
|
|
@@ -33681,15 +33735,15 @@ function requireLodash_isequal() {
|
|
|
33681
33735
|
function Ht(m) {
|
|
33682
33736
|
return ft(this, m).has(m);
|
|
33683
33737
|
}
|
|
33684
|
-
function Gt(m,
|
|
33738
|
+
function Gt(m, P) {
|
|
33685
33739
|
var D = ft(this, m), W = D.size;
|
|
33686
|
-
return D.set(m,
|
|
33740
|
+
return D.set(m, P), this.size += D.size == W ? 0 : 1, this;
|
|
33687
33741
|
}
|
|
33688
33742
|
it.prototype.clear = jt, it.prototype.delete = Wt, it.prototype.get = zt, it.prototype.has = Ht, it.prototype.set = Gt;
|
|
33689
33743
|
function pt(m) {
|
|
33690
|
-
var
|
|
33691
|
-
for (this.__data__ = new it(); ++
|
|
33692
|
-
this.add(m[
|
|
33744
|
+
var P = -1, D = m == null ? 0 : m.length;
|
|
33745
|
+
for (this.__data__ = new it(); ++P < D; )
|
|
33746
|
+
this.add(m[P]);
|
|
33693
33747
|
}
|
|
33694
33748
|
function qt(m) {
|
|
33695
33749
|
return this.__data__.set(m, o), this;
|
|
@@ -33699,15 +33753,15 @@ function requireLodash_isequal() {
|
|
|
33699
33753
|
}
|
|
33700
33754
|
pt.prototype.add = pt.prototype.push = qt, pt.prototype.has = Xt;
|
|
33701
33755
|
function Ke(m) {
|
|
33702
|
-
var
|
|
33703
|
-
this.size =
|
|
33756
|
+
var P = this.__data__ = new He(m);
|
|
33757
|
+
this.size = P.size;
|
|
33704
33758
|
}
|
|
33705
33759
|
function Yt() {
|
|
33706
33760
|
this.__data__ = new He(), this.size = 0;
|
|
33707
33761
|
}
|
|
33708
33762
|
function Jt(m) {
|
|
33709
|
-
var
|
|
33710
|
-
return this.size =
|
|
33763
|
+
var P = this.__data__, D = P.delete(m);
|
|
33764
|
+
return this.size = P.size, D;
|
|
33711
33765
|
}
|
|
33712
33766
|
function Kt(m) {
|
|
33713
33767
|
return this.__data__.get(m);
|
|
@@ -33715,18 +33769,18 @@ function requireLodash_isequal() {
|
|
|
33715
33769
|
function Qt(m) {
|
|
33716
33770
|
return this.__data__.has(m);
|
|
33717
33771
|
}
|
|
33718
|
-
function Zt(m,
|
|
33772
|
+
function Zt(m, P) {
|
|
33719
33773
|
var D = this.__data__;
|
|
33720
33774
|
if (D instanceof He) {
|
|
33721
33775
|
var W = D.__data__;
|
|
33722
33776
|
if (!V || W.length < n - 1)
|
|
33723
|
-
return W.push([m,
|
|
33777
|
+
return W.push([m, P]), this.size = ++D.size, this;
|
|
33724
33778
|
D = this.__data__ = new it(W);
|
|
33725
33779
|
}
|
|
33726
|
-
return D.set(m,
|
|
33780
|
+
return D.set(m, P), this.size = D.size, this;
|
|
33727
33781
|
}
|
|
33728
33782
|
Ke.prototype.clear = Yt, Ke.prototype.delete = Jt, Ke.prototype.get = Kt, Ke.prototype.has = Qt, Ke.prototype.set = Zt;
|
|
33729
|
-
function en(m,
|
|
33783
|
+
function en(m, P) {
|
|
33730
33784
|
var D = gt(m), W = !D && mn(m), Q = !D && !W && Nt(m), X = !D && !W && !Q && Et(m), ne = D || W || Q || X, se = ne ? Re(m.length, String) : [], ce = se.length;
|
|
33731
33785
|
for (var te in m)
|
|
33732
33786
|
Z.call(m, te) && !(ne && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
@@ -33736,14 +33790,14 @@ function requireLodash_isequal() {
|
|
|
33736
33790
|
cn(te, ce))) && se.push(te);
|
|
33737
33791
|
return se;
|
|
33738
33792
|
}
|
|
33739
|
-
function ht(m,
|
|
33793
|
+
function ht(m, P) {
|
|
33740
33794
|
for (var D = m.length; D--; )
|
|
33741
|
-
if (Ot(m[D][0],
|
|
33795
|
+
if (Ot(m[D][0], P))
|
|
33742
33796
|
return D;
|
|
33743
33797
|
return -1;
|
|
33744
33798
|
}
|
|
33745
|
-
function tn(m,
|
|
33746
|
-
var W =
|
|
33799
|
+
function tn(m, P, D) {
|
|
33800
|
+
var W = P(m);
|
|
33747
33801
|
return gt(m) ? W : Ue(W, D(m));
|
|
33748
33802
|
}
|
|
33749
33803
|
function dt(m) {
|
|
@@ -33752,34 +33806,34 @@ function requireLodash_isequal() {
|
|
|
33752
33806
|
function Ct(m) {
|
|
33753
33807
|
return ct(m) && dt(m) == l;
|
|
33754
33808
|
}
|
|
33755
|
-
function _t(m,
|
|
33756
|
-
return m ===
|
|
33809
|
+
function _t(m, P, D, W, Q) {
|
|
33810
|
+
return m === P ? !0 : m == null || P == null || !ct(m) && !ct(P) ? m !== m && P !== P : nn(m, P, D, W, _t, Q);
|
|
33757
33811
|
}
|
|
33758
|
-
function nn(m,
|
|
33759
|
-
var ne = gt(m), se = gt(
|
|
33812
|
+
function nn(m, P, D, W, Q, X) {
|
|
33813
|
+
var ne = gt(m), se = gt(P), ce = ne ? u : Qe(m), te = se ? u : Qe(P);
|
|
33760
33814
|
ce = ce == l ? I : ce, te = te == l ? I : te;
|
|
33761
33815
|
var be = ce == I, we = te == I, he = ce == te;
|
|
33762
33816
|
if (he && Nt(m)) {
|
|
33763
|
-
if (!Nt(
|
|
33817
|
+
if (!Nt(P))
|
|
33764
33818
|
return !1;
|
|
33765
33819
|
ne = !0, be = !1;
|
|
33766
33820
|
}
|
|
33767
33821
|
if (he && !be)
|
|
33768
|
-
return X || (X = new Ke()), ne || Et(m) ? Pt(m,
|
|
33822
|
+
return X || (X = new Ke()), ne || Et(m) ? Pt(m, P, D, W, Q, X) : an(m, P, ce, D, W, Q, X);
|
|
33769
33823
|
if (!(D & r)) {
|
|
33770
|
-
var _e = be && Z.call(m, "__wrapped__"), Pe = we && Z.call(
|
|
33824
|
+
var _e = be && Z.call(m, "__wrapped__"), Pe = we && Z.call(P, "__wrapped__");
|
|
33771
33825
|
if (_e || Pe) {
|
|
33772
|
-
var Ze = _e ? m.value() : m, Ge = Pe ?
|
|
33826
|
+
var Ze = _e ? m.value() : m, Ge = Pe ? P.value() : P;
|
|
33773
33827
|
return X || (X = new Ke()), Q(Ze, Ge, D, W, X);
|
|
33774
33828
|
}
|
|
33775
33829
|
}
|
|
33776
|
-
return he ? (X || (X = new Ke()), ln(m,
|
|
33830
|
+
return he ? (X || (X = new Ke()), ln(m, P, D, W, Q, X)) : !1;
|
|
33777
33831
|
}
|
|
33778
33832
|
function on(m) {
|
|
33779
33833
|
if (!Tt(m) || hn(m))
|
|
33780
33834
|
return !1;
|
|
33781
|
-
var
|
|
33782
|
-
return
|
|
33835
|
+
var P = wt(m) ? h : qe;
|
|
33836
|
+
return P.test(ot(m));
|
|
33783
33837
|
}
|
|
33784
33838
|
function rn(m) {
|
|
33785
33839
|
return ct(m) && xt(m.length) && !!Y[dt(m)];
|
|
@@ -33787,23 +33841,23 @@ function requireLodash_isequal() {
|
|
|
33787
33841
|
function sn(m) {
|
|
33788
33842
|
if (!fn(m))
|
|
33789
33843
|
return C(m);
|
|
33790
|
-
var
|
|
33844
|
+
var P = [];
|
|
33791
33845
|
for (var D in Object(m))
|
|
33792
|
-
Z.call(m, D) && D != "constructor" &&
|
|
33793
|
-
return
|
|
33846
|
+
Z.call(m, D) && D != "constructor" && P.push(D);
|
|
33847
|
+
return P;
|
|
33794
33848
|
}
|
|
33795
|
-
function Pt(m,
|
|
33796
|
-
var ne = D & r, se = m.length, ce =
|
|
33849
|
+
function Pt(m, P, D, W, Q, X) {
|
|
33850
|
+
var ne = D & r, se = m.length, ce = P.length;
|
|
33797
33851
|
if (se != ce && !(ne && ce > se))
|
|
33798
33852
|
return !1;
|
|
33799
33853
|
var te = X.get(m);
|
|
33800
|
-
if (te && X.get(
|
|
33801
|
-
return te ==
|
|
33854
|
+
if (te && X.get(P))
|
|
33855
|
+
return te == P;
|
|
33802
33856
|
var be = -1, we = !0, he = D & s ? new pt() : void 0;
|
|
33803
|
-
for (X.set(m,
|
|
33804
|
-
var _e = m[be], Pe =
|
|
33857
|
+
for (X.set(m, P), X.set(P, m); ++be < se; ) {
|
|
33858
|
+
var _e = m[be], Pe = P[be];
|
|
33805
33859
|
if (W)
|
|
33806
|
-
var Ze = ne ? W(Pe, _e, be,
|
|
33860
|
+
var Ze = ne ? W(Pe, _e, be, P, m, X) : W(_e, Pe, be, m, P, X);
|
|
33807
33861
|
if (Ze !== void 0) {
|
|
33808
33862
|
if (Ze)
|
|
33809
33863
|
continue;
|
|
@@ -33811,7 +33865,7 @@ function requireLodash_isequal() {
|
|
|
33811
33865
|
break;
|
|
33812
33866
|
}
|
|
33813
33867
|
if (he) {
|
|
33814
|
-
if (!je(
|
|
33868
|
+
if (!je(P, function(Ge, rt) {
|
|
33815
33869
|
if (!st(he, rt) && (_e === Ge || Q(_e, Ge, D, W, X)))
|
|
33816
33870
|
return he.push(rt);
|
|
33817
33871
|
})) {
|
|
@@ -33823,62 +33877,62 @@ function requireLodash_isequal() {
|
|
|
33823
33877
|
break;
|
|
33824
33878
|
}
|
|
33825
33879
|
}
|
|
33826
|
-
return X.delete(m), X.delete(
|
|
33880
|
+
return X.delete(m), X.delete(P), we;
|
|
33827
33881
|
}
|
|
33828
|
-
function an(m,
|
|
33882
|
+
function an(m, P, D, W, Q, X, ne) {
|
|
33829
33883
|
switch (D) {
|
|
33830
33884
|
case ie:
|
|
33831
|
-
if (m.byteLength !=
|
|
33885
|
+
if (m.byteLength != P.byteLength || m.byteOffset != P.byteOffset)
|
|
33832
33886
|
return !1;
|
|
33833
|
-
m = m.buffer,
|
|
33887
|
+
m = m.buffer, P = P.buffer;
|
|
33834
33888
|
case J:
|
|
33835
|
-
return !(m.byteLength !=
|
|
33836
|
-
case
|
|
33889
|
+
return !(m.byteLength != P.byteLength || !X(new O(m), new O(P)));
|
|
33890
|
+
case p:
|
|
33837
33891
|
case f:
|
|
33838
33892
|
case A:
|
|
33839
|
-
return Ot(+m, +
|
|
33893
|
+
return Ot(+m, +P);
|
|
33840
33894
|
case g:
|
|
33841
|
-
return m.name ==
|
|
33895
|
+
return m.name == P.name && m.message == P.message;
|
|
33842
33896
|
case w:
|
|
33843
33897
|
case F:
|
|
33844
|
-
return m ==
|
|
33898
|
+
return m == P + "";
|
|
33845
33899
|
case T:
|
|
33846
33900
|
var se = et;
|
|
33847
33901
|
case E:
|
|
33848
33902
|
var ce = W & r;
|
|
33849
|
-
if (se || (se = le), m.size !=
|
|
33903
|
+
if (se || (se = le), m.size != P.size && !ce)
|
|
33850
33904
|
return !1;
|
|
33851
33905
|
var te = ne.get(m);
|
|
33852
33906
|
if (te)
|
|
33853
|
-
return te ==
|
|
33854
|
-
W |= s, ne.set(m,
|
|
33855
|
-
var be = Pt(se(m), se(
|
|
33907
|
+
return te == P;
|
|
33908
|
+
W |= s, ne.set(m, P);
|
|
33909
|
+
var be = Pt(se(m), se(P), W, Q, X, ne);
|
|
33856
33910
|
return ne.delete(m), be;
|
|
33857
33911
|
case L:
|
|
33858
33912
|
if (bt)
|
|
33859
|
-
return bt.call(m) == bt.call(
|
|
33913
|
+
return bt.call(m) == bt.call(P);
|
|
33860
33914
|
}
|
|
33861
33915
|
return !1;
|
|
33862
33916
|
}
|
|
33863
|
-
function ln(m,
|
|
33864
|
-
var ne = D & r, se = It(m), ce = se.length, te = It(
|
|
33917
|
+
function ln(m, P, D, W, Q, X) {
|
|
33918
|
+
var ne = D & r, se = It(m), ce = se.length, te = It(P), be = te.length;
|
|
33865
33919
|
if (ce != be && !ne)
|
|
33866
33920
|
return !1;
|
|
33867
33921
|
for (var we = ce; we--; ) {
|
|
33868
33922
|
var he = se[we];
|
|
33869
|
-
if (!(ne ? he in
|
|
33923
|
+
if (!(ne ? he in P : Z.call(P, he)))
|
|
33870
33924
|
return !1;
|
|
33871
33925
|
}
|
|
33872
33926
|
var _e = X.get(m);
|
|
33873
|
-
if (_e && X.get(
|
|
33874
|
-
return _e ==
|
|
33927
|
+
if (_e && X.get(P))
|
|
33928
|
+
return _e == P;
|
|
33875
33929
|
var Pe = !0;
|
|
33876
|
-
X.set(m,
|
|
33930
|
+
X.set(m, P), X.set(P, m);
|
|
33877
33931
|
for (var Ze = ne; ++we < ce; ) {
|
|
33878
33932
|
he = se[we];
|
|
33879
|
-
var Ge = m[he], rt =
|
|
33933
|
+
var Ge = m[he], rt = P[he];
|
|
33880
33934
|
if (W)
|
|
33881
|
-
var Dt = ne ? W(rt, Ge, he,
|
|
33935
|
+
var Dt = ne ? W(rt, Ge, he, P, m, X) : W(Ge, rt, he, m, P, X);
|
|
33882
33936
|
if (!(Dt === void 0 ? Ge === rt || Q(Ge, rt, D, W, X) : Dt)) {
|
|
33883
33937
|
Pe = !1;
|
|
33884
33938
|
break;
|
|
@@ -33886,39 +33940,39 @@ function requireLodash_isequal() {
|
|
|
33886
33940
|
Ze || (Ze = he == "constructor");
|
|
33887
33941
|
}
|
|
33888
33942
|
if (Pe && !Ze) {
|
|
33889
|
-
var mt = m.constructor, yt =
|
|
33890
|
-
mt != yt && "constructor" in m && "constructor" in
|
|
33943
|
+
var mt = m.constructor, yt = P.constructor;
|
|
33944
|
+
mt != yt && "constructor" in m && "constructor" in P && !(typeof mt == "function" && mt instanceof mt && typeof yt == "function" && yt instanceof yt) && (Pe = !1);
|
|
33891
33945
|
}
|
|
33892
|
-
return X.delete(m), X.delete(
|
|
33946
|
+
return X.delete(m), X.delete(P), Pe;
|
|
33893
33947
|
}
|
|
33894
33948
|
function It(m) {
|
|
33895
33949
|
return tn(m, Sn, dn);
|
|
33896
33950
|
}
|
|
33897
|
-
function ft(m,
|
|
33951
|
+
function ft(m, P) {
|
|
33898
33952
|
var D = m.__data__;
|
|
33899
|
-
return pn(
|
|
33953
|
+
return pn(P) ? D[typeof P == "string" ? "string" : "hash"] : D.map;
|
|
33900
33954
|
}
|
|
33901
|
-
function lt(m,
|
|
33902
|
-
var D = K(m,
|
|
33955
|
+
function lt(m, P) {
|
|
33956
|
+
var D = K(m, P);
|
|
33903
33957
|
return on(D) ? D : void 0;
|
|
33904
33958
|
}
|
|
33905
33959
|
function un(m) {
|
|
33906
|
-
var
|
|
33960
|
+
var P = Z.call(m, j), D = m[j];
|
|
33907
33961
|
try {
|
|
33908
33962
|
m[j] = void 0;
|
|
33909
33963
|
var W = !0;
|
|
33910
33964
|
} catch {
|
|
33911
33965
|
}
|
|
33912
33966
|
var Q = c.call(m);
|
|
33913
|
-
return W && (
|
|
33967
|
+
return W && (P ? m[j] = D : delete m[j]), Q;
|
|
33914
33968
|
}
|
|
33915
33969
|
var dn = z ? function(m) {
|
|
33916
|
-
return m == null ? [] : (m = Object(m), De(z(m), function(
|
|
33917
|
-
return M.call(m,
|
|
33970
|
+
return m == null ? [] : (m = Object(m), De(z(m), function(P) {
|
|
33971
|
+
return M.call(m, P);
|
|
33918
33972
|
}));
|
|
33919
33973
|
} : bn, Qe = dt;
|
|
33920
33974
|
(x && Qe(new x(new ArrayBuffer(1))) != ie || V && Qe(new V()) != T || G && Qe(G.resolve()) != k || ee && Qe(new ee()) != E || oe && Qe(new oe()) != H) && (Qe = function(m) {
|
|
33921
|
-
var
|
|
33975
|
+
var P = dt(m), D = P == I ? m.constructor : void 0, W = D ? ot(D) : "";
|
|
33922
33976
|
if (W)
|
|
33923
33977
|
switch (W) {
|
|
33924
33978
|
case ke:
|
|
@@ -33932,20 +33986,20 @@ function requireLodash_isequal() {
|
|
|
33932
33986
|
case at:
|
|
33933
33987
|
return H;
|
|
33934
33988
|
}
|
|
33935
|
-
return
|
|
33989
|
+
return P;
|
|
33936
33990
|
});
|
|
33937
|
-
function cn(m,
|
|
33938
|
-
return
|
|
33991
|
+
function cn(m, P) {
|
|
33992
|
+
return P = P ?? a, !!P && (typeof m == "number" || Fe.test(m)) && m > -1 && m % 1 == 0 && m < P;
|
|
33939
33993
|
}
|
|
33940
33994
|
function pn(m) {
|
|
33941
|
-
var
|
|
33942
|
-
return
|
|
33995
|
+
var P = typeof m;
|
|
33996
|
+
return P == "string" || P == "number" || P == "symbol" || P == "boolean" ? m !== "__proto__" : m === null;
|
|
33943
33997
|
}
|
|
33944
33998
|
function hn(m) {
|
|
33945
33999
|
return !!Ce && Ce in m;
|
|
33946
34000
|
}
|
|
33947
34001
|
function fn(m) {
|
|
33948
|
-
var
|
|
34002
|
+
var P = m && m.constructor, D = typeof P == "function" && P.prototype || Se;
|
|
33949
34003
|
return m === D;
|
|
33950
34004
|
}
|
|
33951
34005
|
function gn(m) {
|
|
@@ -33964,8 +34018,8 @@ function requireLodash_isequal() {
|
|
|
33964
34018
|
}
|
|
33965
34019
|
return "";
|
|
33966
34020
|
}
|
|
33967
|
-
function Ot(m,
|
|
33968
|
-
return m ===
|
|
34021
|
+
function Ot(m, P) {
|
|
34022
|
+
return m === P || m !== m && P !== P;
|
|
33969
34023
|
}
|
|
33970
34024
|
var mn = Ct(/* @__PURE__ */ function() {
|
|
33971
34025
|
return arguments;
|
|
@@ -33976,21 +34030,21 @@ function requireLodash_isequal() {
|
|
|
33976
34030
|
return m != null && xt(m.length) && !wt(m);
|
|
33977
34031
|
}
|
|
33978
34032
|
var Nt = q || Nn;
|
|
33979
|
-
function vn(m,
|
|
33980
|
-
return _t(m,
|
|
34033
|
+
function vn(m, P) {
|
|
34034
|
+
return _t(m, P);
|
|
33981
34035
|
}
|
|
33982
34036
|
function wt(m) {
|
|
33983
34037
|
if (!Tt(m))
|
|
33984
34038
|
return !1;
|
|
33985
|
-
var
|
|
33986
|
-
return
|
|
34039
|
+
var P = dt(m);
|
|
34040
|
+
return P == b || P == _ || P == d || P == N;
|
|
33987
34041
|
}
|
|
33988
34042
|
function xt(m) {
|
|
33989
34043
|
return typeof m == "number" && m > -1 && m % 1 == 0 && m <= a;
|
|
33990
34044
|
}
|
|
33991
34045
|
function Tt(m) {
|
|
33992
|
-
var
|
|
33993
|
-
return m != null && (
|
|
34046
|
+
var P = typeof m;
|
|
34047
|
+
return m != null && (P == "object" || P == "function");
|
|
33994
34048
|
}
|
|
33995
34049
|
function ct(m) {
|
|
33996
34050
|
return m != null && typeof m == "object";
|
|
@@ -34494,14 +34548,14 @@ function updatePorts$1(e, t, n, o) {
|
|
|
34494
34548
|
group: "General",
|
|
34495
34549
|
type: {
|
|
34496
34550
|
name: "enum",
|
|
34497
|
-
enums: o !== void 0 ? o.map((
|
|
34551
|
+
enums: o !== void 0 ? o.map((_) => ({ value: _.name, label: _.name })) : [],
|
|
34498
34552
|
allowEditOnly: !0
|
|
34499
34553
|
},
|
|
34500
34554
|
plug: "input"
|
|
34501
34555
|
}), t.$ndlCollectionName && o) {
|
|
34502
|
-
var
|
|
34503
|
-
if (
|
|
34504
|
-
var f =
|
|
34556
|
+
var p = o.find((_) => _.name === t.$ndlCollectionName);
|
|
34557
|
+
if (p && p.schema && p.schema.properties) {
|
|
34558
|
+
var f = p.schema.properties;
|
|
34505
34559
|
for (var g in f) {
|
|
34506
34560
|
var l = f[g];
|
|
34507
34561
|
r.find((T) => T.name === g) || (l.type === "Relation" ? (r.push({
|
|
@@ -34659,13 +34713,13 @@ function _convertFilterOp(e, t) {
|
|
|
34659
34713
|
var l = Model.get(g.pointsTo);
|
|
34660
34714
|
if (CloudStore._collections[t.collectionName])
|
|
34661
34715
|
var u = CloudStore._collections[t.collectionName].schema;
|
|
34662
|
-
var d = u && u.properties && u.properties[r] ? u.properties[r].targetClass : void 0,
|
|
34663
|
-
|
|
34716
|
+
var d = u && u.properties && u.properties[r] ? u.properties[r].targetClass : void 0, p = u && u.properties && u.properties[r] ? u.properties[r].type : void 0;
|
|
34717
|
+
p === "Relation" ? o[r] = {
|
|
34664
34718
|
__type: "Pointer",
|
|
34665
34719
|
objectId: g.pointsTo,
|
|
34666
34720
|
className: d
|
|
34667
34721
|
} : Array.isArray(g.pointsTo) ? o[r] = {
|
|
34668
|
-
$in: g.pointsTo.map((
|
|
34722
|
+
$in: g.pointsTo.map((_) => ({ __type: "Pointer", objectId: _, className: d }))
|
|
34669
34723
|
} : o[r] = {
|
|
34670
34724
|
$eq: {
|
|
34671
34725
|
__type: "Pointer",
|
|
@@ -34848,8 +34902,8 @@ var DbCollectionNode = {
|
|
|
34848
34902
|
var t = [];
|
|
34849
34903
|
f.forEach(function(g) {
|
|
34850
34904
|
const b = {};
|
|
34851
|
-
var
|
|
34852
|
-
b[g] = {}, b[g][
|
|
34905
|
+
var _ = "$" + (e["storageFilterOp-" + g] || "eq");
|
|
34906
|
+
b[g] = {}, b[g][_] = e["storageFilterValue-" + g], t.push(b);
|
|
34853
34907
|
});
|
|
34854
34908
|
var n = t.length > 1 ? { $and: t } : t[0];
|
|
34855
34909
|
}
|
|
@@ -34880,13 +34934,13 @@ var DbCollectionNode = {
|
|
|
34880
34934
|
var a = {}, o = [], l = this, u = function(b) {
|
|
34881
34935
|
a = _convertFilterOp(b, {
|
|
34882
34936
|
collectionName: l._internal.name,
|
|
34883
|
-
error: function(
|
|
34937
|
+
error: function(_) {
|
|
34884
34938
|
l.context.editorConnection.sendWarning(
|
|
34885
34939
|
l.nodeScope.componentOwner.name,
|
|
34886
34940
|
l.id,
|
|
34887
34941
|
"query-collection-filter",
|
|
34888
34942
|
{
|
|
34889
|
-
message:
|
|
34943
|
+
message: _
|
|
34890
34944
|
}
|
|
34891
34945
|
);
|
|
34892
34946
|
}
|
|
@@ -34897,14 +34951,14 @@ var DbCollectionNode = {
|
|
|
34897
34951
|
const g = {};
|
|
34898
34952
|
for (let b in e)
|
|
34899
34953
|
b.startsWith("storageFilterValue-") && (g[b.substring(19)] = e[b]);
|
|
34900
|
-
var
|
|
34954
|
+
var p = [u, u, d, g];
|
|
34901
34955
|
this._internal.filterVariables.forEach((b) => {
|
|
34902
|
-
|
|
34956
|
+
p.push(
|
|
34903
34957
|
e["storageFilterValue-" + b.substring(1)]
|
|
34904
34958
|
);
|
|
34905
34959
|
});
|
|
34906
34960
|
try {
|
|
34907
|
-
this._internal.filterFunc.apply(this,
|
|
34961
|
+
this._internal.filterFunc.apply(this, p);
|
|
34908
34962
|
} catch (b) {
|
|
34909
34963
|
console.log("Error while running filter script: " + b);
|
|
34910
34964
|
}
|
|
@@ -35055,9 +35109,9 @@ function updatePorts(e, t, n, o) {
|
|
|
35055
35109
|
editorName: d + " filter | Type",
|
|
35056
35110
|
name: "storageFilterType-" + d
|
|
35057
35111
|
});
|
|
35058
|
-
var
|
|
35112
|
+
var p = t["storageFilterType-" + d];
|
|
35059
35113
|
r.push({
|
|
35060
|
-
type: { name: "enum", enums: u[
|
|
35114
|
+
type: { name: "enum", enums: u[p || "string"] },
|
|
35061
35115
|
default: "eq",
|
|
35062
35116
|
plug: "input",
|
|
35063
35117
|
group: d + " filter",
|
|
@@ -35065,7 +35119,7 @@ function updatePorts(e, t, n, o) {
|
|
|
35065
35119
|
editorName: d + " filter| Op",
|
|
35066
35120
|
name: "storageFilterOp-" + d
|
|
35067
35121
|
}), r.push({
|
|
35068
|
-
type:
|
|
35122
|
+
type: p || "string",
|
|
35069
35123
|
plug: "input",
|
|
35070
35124
|
group: d + " filter",
|
|
35071
35125
|
displayName: "Value",
|
|
@@ -35082,7 +35136,7 @@ function updatePorts(e, t, n, o) {
|
|
|
35082
35136
|
displayName: "Sort"
|
|
35083
35137
|
}), t.storageSort) {
|
|
35084
35138
|
var s = t.storageSort.split(",");
|
|
35085
|
-
s.forEach((
|
|
35139
|
+
s.forEach((p) => {
|
|
35086
35140
|
r.push({
|
|
35087
35141
|
type: {
|
|
35088
35142
|
name: "enum",
|
|
@@ -35093,10 +35147,10 @@ function updatePorts(e, t, n, o) {
|
|
|
35093
35147
|
},
|
|
35094
35148
|
default: "ascending",
|
|
35095
35149
|
plug: "input",
|
|
35096
|
-
group:
|
|
35150
|
+
group: p + " sort",
|
|
35097
35151
|
displayName: "Sort",
|
|
35098
|
-
editorName:
|
|
35099
|
-
name: "storageSort-" +
|
|
35152
|
+
editorName: p + " sorting",
|
|
35153
|
+
name: "storageSort-" + p
|
|
35100
35154
|
});
|
|
35101
35155
|
});
|
|
35102
35156
|
}
|