@antimatter-audio/antimatter-ui 14.13.1 → 14.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced/LFOIntensityMeter/worker.d.ts +0 -7
- package/dist/advanced/LFOIntensityMeter/worker.d.ts.map +1 -1
- package/dist/advanced/LFOVisualizer/LFOVisualizer.d.ts.map +1 -1
- package/dist/advanced/LFOVisualizer/utils.d.ts +8 -1
- package/dist/advanced/LFOVisualizer/utils.d.ts.map +1 -1
- package/dist/advanced/LFOVisualizer/worker.d.ts +16 -1
- package/dist/advanced/LFOVisualizer/worker.d.ts.map +1 -1
- package/dist/index.js +359 -728
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/LFOVisualizer/LFOVisualizer.d.ts.map +1 -1
- package/dist/src/advanced/LFOVisualizer/utils.d.ts +11 -1
- package/dist/src/advanced/LFOVisualizer/utils.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useRef, useReducer, useCallback, createContext, useContext, useEffect, useState } from 'react';
|
|
2
|
+
import React__default, { useRef, useReducer, useCallback, createContext, useContext, useEffect, useState, useEffectEvent } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { TabGroup, TabList, Tab, Listbox, ListboxButton, ListboxOptions, ListboxOption, Combobox, ComboboxInput, ComboboxButton, ComboboxOptions, ComboboxOption } from '@headlessui/react';
|
|
5
5
|
import * as Juce from 'juce-framework-frontend';
|
|
@@ -193,30 +193,30 @@ function useObservable(param) {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
function _array_like_to_array$
|
|
196
|
+
function _array_like_to_array$i(arr, len) {
|
|
197
197
|
if (len == null || len > arr.length) len = arr.length;
|
|
198
198
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
199
199
|
return arr2;
|
|
200
200
|
}
|
|
201
|
-
function _array_without_holes$
|
|
202
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
201
|
+
function _array_without_holes$2(arr) {
|
|
202
|
+
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
203
203
|
}
|
|
204
|
-
function _iterable_to_array$
|
|
204
|
+
function _iterable_to_array$2(iter) {
|
|
205
205
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
206
206
|
}
|
|
207
|
-
function _non_iterable_spread$
|
|
207
|
+
function _non_iterable_spread$2() {
|
|
208
208
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
209
209
|
}
|
|
210
|
-
function _to_consumable_array$
|
|
211
|
-
return _array_without_holes$
|
|
210
|
+
function _to_consumable_array$2(arr) {
|
|
211
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$2();
|
|
212
212
|
}
|
|
213
|
-
function _unsupported_iterable_to_array$
|
|
213
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
214
214
|
if (!o) return;
|
|
215
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
215
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
216
216
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
217
217
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
218
218
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
219
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
219
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
220
220
|
}
|
|
221
221
|
// export const roundUpToTwoDecimals = (val: number) => Math.ceil(val * 100) / 100;
|
|
222
222
|
// mocks the `normalisedToScaledValue` internal method from JUCE
|
|
@@ -266,7 +266,7 @@ var getValidValueForInput = function(param) {
|
|
|
266
266
|
// TODO: Clean up
|
|
267
267
|
var matchCriteria = /^-?(?:\d+\.\d+|\d+|\.\d+)$/g;
|
|
268
268
|
var splitValue = value.toString().matchAll(matchCriteria);
|
|
269
|
-
var splitValueArray = _to_consumable_array$
|
|
269
|
+
var splitValueArray = _to_consumable_array$2(splitValue);
|
|
270
270
|
var validValue = splitValueArray === null || splitValueArray === void 0 ? void 0 : (_splitValueArray_ = splitValueArray[0]) === null || _splitValueArray_ === void 0 ? void 0 : _splitValueArray_[0];
|
|
271
271
|
var start = properties.start, end = properties.end;
|
|
272
272
|
if (validValue !== null && validValue !== undefined) {
|
|
@@ -359,7 +359,7 @@ function throttle(mainFunction, delay) {
|
|
|
359
359
|
args[_key] = arguments[_key];
|
|
360
360
|
}
|
|
361
361
|
if (timerFlag === null) {
|
|
362
|
-
mainFunction.apply(void 0, _to_consumable_array$
|
|
362
|
+
mainFunction.apply(void 0, _to_consumable_array$2(args));
|
|
363
363
|
timerFlag = setTimeout(function() {
|
|
364
364
|
timerFlag = null;
|
|
365
365
|
}, delay);
|
|
@@ -367,7 +367,7 @@ function throttle(mainFunction, delay) {
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function _array_like_to_array$
|
|
370
|
+
function _array_like_to_array$h(arr, len) {
|
|
371
371
|
if (len == null || len > arr.length) len = arr.length;
|
|
372
372
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
373
373
|
return arr2;
|
|
@@ -375,8 +375,8 @@ function _array_like_to_array$i(arr, len) {
|
|
|
375
375
|
function _array_with_holes$h(arr) {
|
|
376
376
|
if (Array.isArray(arr)) return arr;
|
|
377
377
|
}
|
|
378
|
-
function _array_without_holes$
|
|
379
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
378
|
+
function _array_without_holes$1(arr) {
|
|
379
|
+
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
380
380
|
}
|
|
381
381
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
382
382
|
try {
|
|
@@ -407,7 +407,7 @@ function _async_to_generator$4(fn) {
|
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
function _define_property$
|
|
410
|
+
function _define_property$o(obj, key, value) {
|
|
411
411
|
if (key in obj) {
|
|
412
412
|
Object.defineProperty(obj, key, {
|
|
413
413
|
value: value,
|
|
@@ -420,7 +420,7 @@ function _define_property$p(obj, key, value) {
|
|
|
420
420
|
}
|
|
421
421
|
return obj;
|
|
422
422
|
}
|
|
423
|
-
function _iterable_to_array$
|
|
423
|
+
function _iterable_to_array$1(iter) {
|
|
424
424
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
425
425
|
}
|
|
426
426
|
function _iterable_to_array_limit$h(arr, i) {
|
|
@@ -450,10 +450,10 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
450
450
|
function _non_iterable_rest$h() {
|
|
451
451
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
452
452
|
}
|
|
453
|
-
function _non_iterable_spread$
|
|
453
|
+
function _non_iterable_spread$1() {
|
|
454
454
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
455
455
|
}
|
|
456
|
-
function _object_spread$
|
|
456
|
+
function _object_spread$n(target) {
|
|
457
457
|
for(var i = 1; i < arguments.length; i++){
|
|
458
458
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
459
459
|
var ownKeys = Object.keys(source);
|
|
@@ -463,7 +463,7 @@ function _object_spread$o(target) {
|
|
|
463
463
|
}));
|
|
464
464
|
}
|
|
465
465
|
ownKeys.forEach(function(key) {
|
|
466
|
-
_define_property$
|
|
466
|
+
_define_property$o(target, key, source[key]);
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
return target;
|
|
@@ -488,18 +488,18 @@ function _object_spread_props$4(target, source) {
|
|
|
488
488
|
return target;
|
|
489
489
|
}
|
|
490
490
|
function _sliced_to_array$h(arr, i) {
|
|
491
|
-
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$
|
|
491
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h();
|
|
492
492
|
}
|
|
493
|
-
function _to_consumable_array$
|
|
494
|
-
return _array_without_holes$
|
|
493
|
+
function _to_consumable_array$1(arr) {
|
|
494
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$1();
|
|
495
495
|
}
|
|
496
|
-
function _unsupported_iterable_to_array$
|
|
496
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
497
497
|
if (!o) return;
|
|
498
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
498
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
499
499
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
500
500
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
501
501
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
502
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
502
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
503
503
|
}
|
|
504
504
|
function _ts_generator$4(thisArg, body) {
|
|
505
505
|
var f, y, t, _ = {
|
|
@@ -619,61 +619,61 @@ var defaultGlobalStateValue = {
|
|
|
619
619
|
var reducer = function(state, action) {
|
|
620
620
|
switch(action.type){
|
|
621
621
|
case 'HIGHLIGHTED_ITEM_CHANGED':
|
|
622
|
-
return _object_spread_props$4(_object_spread$
|
|
622
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
623
623
|
highlightedItem: action.payload
|
|
624
624
|
});
|
|
625
625
|
// case 'FOCUSED_ITEM_CHANGED':
|
|
626
626
|
// return { ...state, focusedItem: action.payload };
|
|
627
627
|
case 'ADVANCED_VIEW_TOGGLED':
|
|
628
|
-
return _object_spread_props$4(_object_spread$
|
|
628
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
629
629
|
advancedView: action.payload
|
|
630
630
|
});
|
|
631
631
|
case 'AUTOMATABLE_PARAMS_LIST_RECEIVED':
|
|
632
|
-
return _object_spread_props$4(_object_spread$
|
|
632
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
633
633
|
automatableParamsList: action.payload
|
|
634
634
|
});
|
|
635
635
|
case 'AUTOMATABLE_PARAM_LABELS_RECEIVED':
|
|
636
|
-
return _object_spread_props$4(_object_spread$
|
|
636
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
637
637
|
automatableParamLabels: action.payload
|
|
638
638
|
});
|
|
639
639
|
case 'PARAMETER_TYPES_RECEIVED':
|
|
640
|
-
return _object_spread_props$4(_object_spread$
|
|
640
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
641
641
|
parameterTypes: action.payload
|
|
642
642
|
});
|
|
643
643
|
case 'ALL_PARAMETERS_RECEIVED':
|
|
644
|
-
return _object_spread_props$4(_object_spread$
|
|
644
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
645
645
|
allParameters: action.payload
|
|
646
646
|
});
|
|
647
647
|
case 'MOD_SLOTS_RECEIVED':
|
|
648
|
-
return _object_spread_props$4(_object_spread$
|
|
648
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
649
649
|
modSlotIds: action.payload.map(function(val) {
|
|
650
650
|
return val[0];
|
|
651
651
|
})
|
|
652
652
|
});
|
|
653
653
|
case 'MOD_SLOT_ROW_TARGETS_RECEIVED':
|
|
654
654
|
var _action_payload;
|
|
655
|
-
return _object_spread_props$4(_object_spread$
|
|
655
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
656
656
|
modSlotTargets: action === null || action === void 0 ? void 0 : (_action_payload = action.payload) === null || _action_payload === void 0 ? void 0 : _action_payload.reduce(function(acc, val) {
|
|
657
|
-
return _object_spread_props$4(_object_spread$
|
|
657
|
+
return _object_spread_props$4(_object_spread$n({}, acc), _define_property$o({}, val[0], val[1]));
|
|
658
658
|
}, {})
|
|
659
659
|
});
|
|
660
660
|
case 'MOD_SLOT_ROW_TARGET_UPDATED':
|
|
661
661
|
var _action_payload1, _action_payload2;
|
|
662
|
-
return _object_spread_props$4(_object_spread$
|
|
663
|
-
modSlotTargets: _object_spread_props$4(_object_spread$
|
|
662
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
663
|
+
modSlotTargets: _object_spread_props$4(_object_spread$n({}, state === null || state === void 0 ? void 0 : state.modSlotTargets), _define_property$o({}, (_action_payload1 = action.payload) === null || _action_payload1 === void 0 ? void 0 : _action_payload1.id, action === null || action === void 0 ? void 0 : (_action_payload2 = action.payload) === null || _action_payload2 === void 0 ? void 0 : _action_payload2.value))
|
|
664
664
|
});
|
|
665
665
|
case 'MOD_SLOT_PREVIEW_TARGET_INDEX_UPDATED':
|
|
666
666
|
{
|
|
667
|
-
return _object_spread_props$4(_object_spread$
|
|
668
|
-
modSlotPreview: _object_spread_props$4(_object_spread$
|
|
667
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
668
|
+
modSlotPreview: _object_spread_props$4(_object_spread$n({}, state.modSlotPreview), {
|
|
669
669
|
targetIndex: action.payload
|
|
670
670
|
})
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
case 'MOD_SLOT_PREVIEW_SLOT_ID_UPDATED':
|
|
674
674
|
{
|
|
675
|
-
return _object_spread_props$4(_object_spread$
|
|
676
|
-
modSlotPreview: _object_spread_props$4(_object_spread$
|
|
675
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
676
|
+
modSlotPreview: _object_spread_props$4(_object_spread$n({}, state.modSlotPreview), {
|
|
677
677
|
slotId: action === null || action === void 0 ? void 0 : action.payload
|
|
678
678
|
})
|
|
679
679
|
});
|
|
@@ -681,7 +681,7 @@ var reducer = function(state, action) {
|
|
|
681
681
|
case 'SET_NEW_MOD_SLOT_PREVIEW':
|
|
682
682
|
{
|
|
683
683
|
var _state_modSlotIds_find;
|
|
684
|
-
return _object_spread_props$4(_object_spread$
|
|
684
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
685
685
|
modSlotPreview: {
|
|
686
686
|
slotId: (_state_modSlotIds_find = state.modSlotIds.find(function(item) {
|
|
687
687
|
return state.modSlotTargets[item] <= 0;
|
|
@@ -693,7 +693,7 @@ var reducer = function(state, action) {
|
|
|
693
693
|
}
|
|
694
694
|
case 'CLEAR_MOD_SLOT_PREVIEW':
|
|
695
695
|
{
|
|
696
|
-
return _object_spread_props$4(_object_spread$
|
|
696
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
697
697
|
modSlotPreview: {
|
|
698
698
|
slotId: '',
|
|
699
699
|
isEditable: false,
|
|
@@ -703,26 +703,26 @@ var reducer = function(state, action) {
|
|
|
703
703
|
}
|
|
704
704
|
case 'MOD_SLOT_PREVIEW_IS_EDITABLE_UPDATED':
|
|
705
705
|
{
|
|
706
|
-
return _object_spread_props$4(_object_spread$
|
|
707
|
-
modSlotPreview: _object_spread_props$4(_object_spread$
|
|
706
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
707
|
+
modSlotPreview: _object_spread_props$4(_object_spread$n({}, state.modSlotPreview), {
|
|
708
708
|
isEditable: action === null || action === void 0 ? void 0 : action.payload
|
|
709
709
|
})
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
case 'MOD_SLOT_PARAMS_LIST_RECEIVED':
|
|
713
713
|
var modSlotNames = Object.keys(state.modSlotTargets);
|
|
714
|
-
return _object_spread_props$4(_object_spread$
|
|
714
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
715
715
|
modSlotParams: action === null || action === void 0 ? void 0 : action.payload.reduce(function(acc, item, i) {
|
|
716
716
|
acc[modSlotNames[i]] = item;
|
|
717
717
|
return acc;
|
|
718
718
|
}, {})
|
|
719
719
|
});
|
|
720
720
|
case 'DEFAULT_PARAM_VALUES_RECEIVED':
|
|
721
|
-
return _object_spread_props$4(_object_spread$
|
|
721
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
722
722
|
defaultParamValues: action === null || action === void 0 ? void 0 : action.payload
|
|
723
723
|
});
|
|
724
724
|
case 'MOD_SLOT_PARAM_LABELS_RECIEVED':
|
|
725
|
-
return _object_spread_props$4(_object_spread$
|
|
725
|
+
return _object_spread_props$4(_object_spread$n({}, state), {
|
|
726
726
|
modSlotParamLabels: action === null || action === void 0 ? void 0 : action.payload
|
|
727
727
|
});
|
|
728
728
|
default:
|
|
@@ -762,7 +762,7 @@ function GlobalContextProvider(param) {
|
|
|
762
762
|
type: 'AUTOMATABLE_PARAMS_LIST_RECEIVED',
|
|
763
763
|
payload: [
|
|
764
764
|
'none'
|
|
765
|
-
].concat(_to_consumable_array$
|
|
765
|
+
].concat(_to_consumable_array$1(automatableParamsList))
|
|
766
766
|
});
|
|
767
767
|
}, []);
|
|
768
768
|
var allParametersReceived = useCallback(function(allParameters) {
|
|
@@ -1010,7 +1010,7 @@ function GlobalContextProvider(param) {
|
|
|
1010
1010
|
}, children);
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
-
function _array_like_to_array$
|
|
1013
|
+
function _array_like_to_array$g(arr, len) {
|
|
1014
1014
|
if (len == null || len > arr.length) len = arr.length;
|
|
1015
1015
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1016
1016
|
return arr2;
|
|
@@ -1018,7 +1018,7 @@ function _array_like_to_array$h(arr, len) {
|
|
|
1018
1018
|
function _array_with_holes$g(arr) {
|
|
1019
1019
|
if (Array.isArray(arr)) return arr;
|
|
1020
1020
|
}
|
|
1021
|
-
function _define_property$
|
|
1021
|
+
function _define_property$n(obj, key, value) {
|
|
1022
1022
|
if (key in obj) {
|
|
1023
1023
|
Object.defineProperty(obj, key, {
|
|
1024
1024
|
value: value,
|
|
@@ -1058,7 +1058,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
1058
1058
|
function _non_iterable_rest$g() {
|
|
1059
1059
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1060
1060
|
}
|
|
1061
|
-
function _object_spread$
|
|
1061
|
+
function _object_spread$m(target) {
|
|
1062
1062
|
for(var i = 1; i < arguments.length; i++){
|
|
1063
1063
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1064
1064
|
var ownKeys = Object.keys(source);
|
|
@@ -1068,21 +1068,21 @@ function _object_spread$n(target) {
|
|
|
1068
1068
|
}));
|
|
1069
1069
|
}
|
|
1070
1070
|
ownKeys.forEach(function(key) {
|
|
1071
|
-
_define_property$
|
|
1071
|
+
_define_property$n(target, key, source[key]);
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
1074
|
return target;
|
|
1075
1075
|
}
|
|
1076
1076
|
function _sliced_to_array$g(arr, i) {
|
|
1077
|
-
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$
|
|
1077
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$g();
|
|
1078
1078
|
}
|
|
1079
|
-
function _unsupported_iterable_to_array$
|
|
1079
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
1080
1080
|
if (!o) return;
|
|
1081
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1081
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
1082
1082
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1083
1083
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1084
1084
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1085
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1085
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
1086
1086
|
}
|
|
1087
1087
|
function Button(param) {
|
|
1088
1088
|
var disabled = param.disabled, text = param.text, id = param.id, className = param.className, style = param.style, onClick = param.onClick, children = param.children, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
@@ -1152,7 +1152,7 @@ function Button(param) {
|
|
|
1152
1152
|
onMouseDown: handleMouseDown,
|
|
1153
1153
|
disabled: disabled,
|
|
1154
1154
|
onClick: onClick && onClick,
|
|
1155
|
-
style: _object_spread$
|
|
1155
|
+
style: _object_spread$m({
|
|
1156
1156
|
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
1157
1157
|
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
1158
1158
|
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
@@ -1201,7 +1201,7 @@ var LayoutTags = /*#__PURE__*/ function(LayoutTags) {
|
|
|
1201
1201
|
return LayoutTags;
|
|
1202
1202
|
}({});
|
|
1203
1203
|
|
|
1204
|
-
function _define_property$
|
|
1204
|
+
function _define_property$m(obj, key, value) {
|
|
1205
1205
|
if (key in obj) {
|
|
1206
1206
|
Object.defineProperty(obj, key, {
|
|
1207
1207
|
value: value,
|
|
@@ -1214,7 +1214,7 @@ function _define_property$n(obj, key, value) {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
return obj;
|
|
1216
1216
|
}
|
|
1217
|
-
function _object_spread$
|
|
1217
|
+
function _object_spread$l(target) {
|
|
1218
1218
|
for(var i = 1; i < arguments.length; i++){
|
|
1219
1219
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1220
1220
|
var ownKeys = Object.keys(source);
|
|
@@ -1224,7 +1224,7 @@ function _object_spread$m(target) {
|
|
|
1224
1224
|
}));
|
|
1225
1225
|
}
|
|
1226
1226
|
ownKeys.forEach(function(key) {
|
|
1227
|
-
_define_property$
|
|
1227
|
+
_define_property$m(target, key, source[key]);
|
|
1228
1228
|
});
|
|
1229
1229
|
}
|
|
1230
1230
|
return target;
|
|
@@ -1315,13 +1315,13 @@ function Box(_param) {
|
|
|
1315
1315
|
]);
|
|
1316
1316
|
var Tag = tag;
|
|
1317
1317
|
var _padding_, _padding_1, _padding_2, _ref;
|
|
1318
|
-
return /*#__PURE__*/ React__default.createElement(Tag, _object_spread_props$3(_object_spread$
|
|
1318
|
+
return /*#__PURE__*/ React__default.createElement(Tag, _object_spread_props$3(_object_spread$l({
|
|
1319
1319
|
// id="globalValues"
|
|
1320
1320
|
key: key,
|
|
1321
1321
|
className: className,
|
|
1322
1322
|
onClick: onClick
|
|
1323
1323
|
}, rest), {
|
|
1324
|
-
style: _object_spread$
|
|
1324
|
+
style: _object_spread$l({
|
|
1325
1325
|
flexWrap: flexWrap,
|
|
1326
1326
|
display: display,
|
|
1327
1327
|
width: width,
|
|
@@ -1360,7 +1360,7 @@ Box.tag = LayoutTags;
|
|
|
1360
1360
|
var css_248z$c = ".Icon svg {\n width: 100%;\n}\n";
|
|
1361
1361
|
styleInject(css_248z$c);
|
|
1362
1362
|
|
|
1363
|
-
function _define_property$
|
|
1363
|
+
function _define_property$l(obj, key, value) {
|
|
1364
1364
|
if (key in obj) {
|
|
1365
1365
|
Object.defineProperty(obj, key, {
|
|
1366
1366
|
value: value,
|
|
@@ -1373,7 +1373,7 @@ function _define_property$m(obj, key, value) {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
return obj;
|
|
1375
1375
|
}
|
|
1376
|
-
function _object_spread$
|
|
1376
|
+
function _object_spread$k(target) {
|
|
1377
1377
|
for(var i = 1; i < arguments.length; i++){
|
|
1378
1378
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1379
1379
|
var ownKeys = Object.keys(source);
|
|
@@ -1383,7 +1383,7 @@ function _object_spread$l(target) {
|
|
|
1383
1383
|
}));
|
|
1384
1384
|
}
|
|
1385
1385
|
ownKeys.forEach(function(key) {
|
|
1386
|
-
_define_property$
|
|
1386
|
+
_define_property$l(target, key, source[key]);
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
1389
1389
|
return target;
|
|
@@ -1732,7 +1732,7 @@ function Icon(param) {
|
|
|
1732
1732
|
className: "Icon ".concat(className ? className : ''),
|
|
1733
1733
|
onClick: onClick,
|
|
1734
1734
|
padding: padding,
|
|
1735
|
-
style: _object_spread$
|
|
1735
|
+
style: _object_spread$k({
|
|
1736
1736
|
width: width,
|
|
1737
1737
|
height: height !== null && height !== void 0 ? height : width
|
|
1738
1738
|
}, style)
|
|
@@ -1745,7 +1745,7 @@ Icon.icon = Icons;
|
|
|
1745
1745
|
Icon.padding = Spacing;
|
|
1746
1746
|
Icon.margin = Spacing;
|
|
1747
1747
|
|
|
1748
|
-
function _define_property$
|
|
1748
|
+
function _define_property$k(obj, key, value) {
|
|
1749
1749
|
if (key in obj) {
|
|
1750
1750
|
Object.defineProperty(obj, key, {
|
|
1751
1751
|
value: value,
|
|
@@ -1758,7 +1758,7 @@ function _define_property$l(obj, key, value) {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return obj;
|
|
1760
1760
|
}
|
|
1761
|
-
function _object_spread$
|
|
1761
|
+
function _object_spread$j(target) {
|
|
1762
1762
|
for(var i = 1; i < arguments.length; i++){
|
|
1763
1763
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1764
1764
|
var ownKeys = Object.keys(source);
|
|
@@ -1768,7 +1768,7 @@ function _object_spread$k(target) {
|
|
|
1768
1768
|
}));
|
|
1769
1769
|
}
|
|
1770
1770
|
ownKeys.forEach(function(key) {
|
|
1771
|
-
_define_property$
|
|
1771
|
+
_define_property$k(target, key, source[key]);
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
return target;
|
|
@@ -1781,7 +1781,7 @@ function Label(param) {
|
|
|
1781
1781
|
return /*#__PURE__*/ React.createElement("label", {
|
|
1782
1782
|
id: id,
|
|
1783
1783
|
htmlFor: htmlFor,
|
|
1784
|
-
style: _object_spread$
|
|
1784
|
+
style: _object_spread$j({
|
|
1785
1785
|
fontSize: "var(--text-".concat(fontSize, ")"),
|
|
1786
1786
|
lineHeight: "var(--text-".concat(fontSize, ")"),
|
|
1787
1787
|
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
@@ -1801,7 +1801,7 @@ function Label(param) {
|
|
|
1801
1801
|
Label.padding = Spacing;
|
|
1802
1802
|
Label.fontSize = FontSizes;
|
|
1803
1803
|
|
|
1804
|
-
function _define_property$
|
|
1804
|
+
function _define_property$j(obj, key, value) {
|
|
1805
1805
|
if (key in obj) {
|
|
1806
1806
|
Object.defineProperty(obj, key, {
|
|
1807
1807
|
value: value,
|
|
@@ -1814,7 +1814,7 @@ function _define_property$k(obj, key, value) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
return obj;
|
|
1816
1816
|
}
|
|
1817
|
-
function _object_spread$
|
|
1817
|
+
function _object_spread$i(target) {
|
|
1818
1818
|
for(var i = 1; i < arguments.length; i++){
|
|
1819
1819
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1820
1820
|
var ownKeys = Object.keys(source);
|
|
@@ -1824,7 +1824,7 @@ function _object_spread$j(target) {
|
|
|
1824
1824
|
}));
|
|
1825
1825
|
}
|
|
1826
1826
|
ownKeys.forEach(function(key) {
|
|
1827
|
-
_define_property$
|
|
1827
|
+
_define_property$j(target, key, source[key]);
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
return target;
|
|
@@ -1848,7 +1848,7 @@ function IconButton(param) {
|
|
|
1848
1848
|
padding: padding,
|
|
1849
1849
|
margin: margin,
|
|
1850
1850
|
disabled: disabled,
|
|
1851
|
-
style: _object_spread$
|
|
1851
|
+
style: _object_spread$i({
|
|
1852
1852
|
backgroundColor: backgroundColor,
|
|
1853
1853
|
width: width,
|
|
1854
1854
|
height: height !== null && height !== void 0 ? height : 'auto'
|
|
@@ -1869,7 +1869,7 @@ IconButton.icon = Icons;
|
|
|
1869
1869
|
IconButton.padding = Spacing;
|
|
1870
1870
|
IconButton.margin = Spacing;
|
|
1871
1871
|
|
|
1872
|
-
function _array_like_to_array$
|
|
1872
|
+
function _array_like_to_array$f(arr, len) {
|
|
1873
1873
|
if (len == null || len > arr.length) len = arr.length;
|
|
1874
1874
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1875
1875
|
return arr2;
|
|
@@ -1905,15 +1905,15 @@ function _non_iterable_rest$f() {
|
|
|
1905
1905
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1906
1906
|
}
|
|
1907
1907
|
function _sliced_to_array$f(arr, i) {
|
|
1908
|
-
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$
|
|
1908
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$f();
|
|
1909
1909
|
}
|
|
1910
|
-
function _unsupported_iterable_to_array$
|
|
1910
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
1911
1911
|
if (!o) return;
|
|
1912
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1912
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
1913
1913
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1914
1914
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1915
1915
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1916
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1916
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
1917
1917
|
}
|
|
1918
1918
|
var useDropdown = function(param) {
|
|
1919
1919
|
var id = param.id, // TODO: Is there a better way to handle mod matrix dropdowns?
|
|
@@ -2017,7 +2017,7 @@ var useDropdown = function(param) {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
};
|
|
2019
2019
|
|
|
2020
|
-
function _array_like_to_array$
|
|
2020
|
+
function _array_like_to_array$e(arr, len) {
|
|
2021
2021
|
if (len == null || len > arr.length) len = arr.length;
|
|
2022
2022
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2023
2023
|
return arr2;
|
|
@@ -2053,15 +2053,15 @@ function _non_iterable_rest$e() {
|
|
|
2053
2053
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2054
2054
|
}
|
|
2055
2055
|
function _sliced_to_array$e(arr, i) {
|
|
2056
|
-
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$
|
|
2056
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e();
|
|
2057
2057
|
}
|
|
2058
|
-
function _unsupported_iterable_to_array$
|
|
2058
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
2059
2059
|
if (!o) return;
|
|
2060
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2060
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
2061
2061
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2062
2062
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2063
2063
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2064
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2064
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
2065
2065
|
}
|
|
2066
2066
|
function Tabs(param) {
|
|
2067
2067
|
var items = param.items, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
@@ -2159,7 +2159,7 @@ Tabs.fontSize = FontSizes;
|
|
|
2159
2159
|
var css_248z$b = ".Dropdown-button {\n font-size: var(--text-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-ml);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-align: center;\n border-radius: 4px;\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n height: 26px;\n border: 1px solid var(--bg-lv9);\n /* background: var(--color-gray-800); */\n /* color: var(--color-text); */\n}\n\n.Dropdown-button:hover,\n.Dropdown-button[data-open] {\n outline: none;\n cursor: pointer;\n border: 1px solid var(--color-brand-secondary);\n}\n\n.Dropdown-button:hover .Label {\n cursor: pointer;\n}\n\n.Dropdown-button:disabled {\n cursor: default;\n}\n\n.Dropdown-items {\n border: 1px solid var(--bg-lv9);\n background: var(--bg-lv4);\n box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 5px 3px;\n border-radius: 4px;\n width: 150px;\n z-index: 50;\n}\n\n.Dropdown-item {\n font-size: var(--text-sm);\n padding: var(--spacing-md) var(--spacing-xl);\n min-width: 100px;\n color: var(--color-text);\n cursor: pointer;\n /* text-align: center; */\n}\n\n.Dropdown-item[data-selected] {\n color: var(--color-brand-secondary);\n}\n\n.Dropdown-item:hover {\n background-color: var(--bg-lv7);\n}\n\n.Dropdown-item:hover:not([data-selected]) {\n color: var(--color-text);\n}\n";
|
|
2160
2160
|
styleInject(css_248z$b);
|
|
2161
2161
|
|
|
2162
|
-
function _define_property$
|
|
2162
|
+
function _define_property$i(obj, key, value) {
|
|
2163
2163
|
if (key in obj) {
|
|
2164
2164
|
Object.defineProperty(obj, key, {
|
|
2165
2165
|
value: value,
|
|
@@ -2172,7 +2172,7 @@ function _define_property$j(obj, key, value) {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
return obj;
|
|
2174
2174
|
}
|
|
2175
|
-
function _object_spread$
|
|
2175
|
+
function _object_spread$h(target) {
|
|
2176
2176
|
for(var i = 1; i < arguments.length; i++){
|
|
2177
2177
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2178
2178
|
var ownKeys = Object.keys(source);
|
|
@@ -2182,7 +2182,7 @@ function _object_spread$i(target) {
|
|
|
2182
2182
|
}));
|
|
2183
2183
|
}
|
|
2184
2184
|
ownKeys.forEach(function(key) {
|
|
2185
|
-
_define_property$
|
|
2185
|
+
_define_property$i(target, key, source[key]);
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
2188
|
return target;
|
|
@@ -2255,7 +2255,7 @@ function Dropdown(param) {
|
|
|
2255
2255
|
onClick: incrementValue
|
|
2256
2256
|
})), /*#__PURE__*/ React__default.createElement(ListboxButton, {
|
|
2257
2257
|
className: classnames('Combobox Dropdown-button', className),
|
|
2258
|
-
style: _object_spread$
|
|
2258
|
+
style: _object_spread$h({
|
|
2259
2259
|
color: "".concat(color ? color : 'initial'),
|
|
2260
2260
|
width: "".concat(width ? width : '100%'),
|
|
2261
2261
|
height: height,
|
|
@@ -2293,7 +2293,7 @@ function Dropdown(param) {
|
|
|
2293
2293
|
var css_248z$a = ".TextInput {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.TextInput::-moz-selection {\n background: transparent;\n}\n.TextInput::selection {\n background: transparent;\n}\n\n.TextInput:disabled {\n -webkit-user-select: none;\n user-select: none;\n}\n\n.isActive .TextInput {\n -webkit-user-select: auto;\n -moz-user-select: auto;\n -ms-user-select: auto;\n user-select: auto;\n}\n";
|
|
2294
2294
|
styleInject(css_248z$a);
|
|
2295
2295
|
|
|
2296
|
-
function _array_like_to_array$
|
|
2296
|
+
function _array_like_to_array$d(arr, len) {
|
|
2297
2297
|
if (len == null || len > arr.length) len = arr.length;
|
|
2298
2298
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2299
2299
|
return arr2;
|
|
@@ -2301,7 +2301,7 @@ function _array_like_to_array$e(arr, len) {
|
|
|
2301
2301
|
function _array_with_holes$d(arr) {
|
|
2302
2302
|
if (Array.isArray(arr)) return arr;
|
|
2303
2303
|
}
|
|
2304
|
-
function _define_property$
|
|
2304
|
+
function _define_property$h(obj, key, value) {
|
|
2305
2305
|
if (key in obj) {
|
|
2306
2306
|
Object.defineProperty(obj, key, {
|
|
2307
2307
|
value: value,
|
|
@@ -2341,7 +2341,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
2341
2341
|
function _non_iterable_rest$d() {
|
|
2342
2342
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2343
2343
|
}
|
|
2344
|
-
function _object_spread$
|
|
2344
|
+
function _object_spread$g(target) {
|
|
2345
2345
|
for(var i = 1; i < arguments.length; i++){
|
|
2346
2346
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2347
2347
|
var ownKeys = Object.keys(source);
|
|
@@ -2351,21 +2351,21 @@ function _object_spread$h(target) {
|
|
|
2351
2351
|
}));
|
|
2352
2352
|
}
|
|
2353
2353
|
ownKeys.forEach(function(key) {
|
|
2354
|
-
_define_property$
|
|
2354
|
+
_define_property$h(target, key, source[key]);
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
2357
|
return target;
|
|
2358
2358
|
}
|
|
2359
2359
|
function _sliced_to_array$d(arr, i) {
|
|
2360
|
-
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$
|
|
2360
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$d();
|
|
2361
2361
|
}
|
|
2362
|
-
function _unsupported_iterable_to_array$
|
|
2362
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
2363
2363
|
if (!o) return;
|
|
2364
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2364
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
2365
2365
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2366
2366
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2367
2367
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2368
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2368
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
2369
2369
|
}
|
|
2370
2370
|
// import { decimalToPercent, percentToDecimal } from '../../common/utils';
|
|
2371
2371
|
// import debounce from 'lodash.debounce';
|
|
@@ -2497,7 +2497,7 @@ function Input(param) {
|
|
|
2497
2497
|
id: "".concat(id, "-input"),
|
|
2498
2498
|
ref: inputRef,
|
|
2499
2499
|
className: classnames('TextInput', isHighlighted ? 'is-highlighted' : '', className),
|
|
2500
|
-
style: _object_spread$
|
|
2500
|
+
style: _object_spread$g({
|
|
2501
2501
|
fontSize: "var(--text-".concat(fontSize),
|
|
2502
2502
|
textAlign: textAlign,
|
|
2503
2503
|
color: textColor
|
|
@@ -2520,7 +2520,7 @@ Input.type = InputTypes;
|
|
|
2520
2520
|
Input.textAlign = TextAlign;
|
|
2521
2521
|
Input.fontSize = FontSizes;
|
|
2522
2522
|
|
|
2523
|
-
function _define_property$
|
|
2523
|
+
function _define_property$g(obj, key, value) {
|
|
2524
2524
|
if (key in obj) {
|
|
2525
2525
|
Object.defineProperty(obj, key, {
|
|
2526
2526
|
value: value,
|
|
@@ -2550,15 +2550,15 @@ var RotarySliderSizes = /*#__PURE__*/ function(RotarySliderSizes) {
|
|
|
2550
2550
|
return RotarySliderSizes;
|
|
2551
2551
|
}({});
|
|
2552
2552
|
var _obj;
|
|
2553
|
-
var rotarySliderSizeMap = (_obj = {}, _define_property$
|
|
2553
|
+
var rotarySliderSizeMap = (_obj = {}, _define_property$g(_obj, "small", {
|
|
2554
2554
|
width: 40,
|
|
2555
2555
|
height: 40
|
|
2556
|
-
}), _define_property$
|
|
2556
|
+
}), _define_property$g(_obj, "large", {
|
|
2557
2557
|
width: 65,
|
|
2558
2558
|
height: 65
|
|
2559
2559
|
}), _obj);
|
|
2560
2560
|
|
|
2561
|
-
function _array_like_to_array$
|
|
2561
|
+
function _array_like_to_array$c(arr, len) {
|
|
2562
2562
|
if (len == null || len > arr.length) len = arr.length;
|
|
2563
2563
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2564
2564
|
return arr2;
|
|
@@ -2594,15 +2594,15 @@ function _non_iterable_rest$c() {
|
|
|
2594
2594
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2595
2595
|
}
|
|
2596
2596
|
function _sliced_to_array$c(arr, i) {
|
|
2597
|
-
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$
|
|
2597
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
|
|
2598
2598
|
}
|
|
2599
|
-
function _unsupported_iterable_to_array$
|
|
2599
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
2600
2600
|
if (!o) return;
|
|
2601
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2601
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
2602
2602
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2603
2603
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2604
2604
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2605
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2605
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
2606
2606
|
}
|
|
2607
2607
|
// 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
|
|
2608
2608
|
// ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
|
|
@@ -2870,7 +2870,7 @@ styleInject(css_248z$9);
|
|
|
2870
2870
|
var css_248z$8 = "";
|
|
2871
2871
|
styleInject(css_248z$8);
|
|
2872
2872
|
|
|
2873
|
-
function _array_like_to_array$
|
|
2873
|
+
function _array_like_to_array$b(arr, len) {
|
|
2874
2874
|
if (len == null || len > arr.length) len = arr.length;
|
|
2875
2875
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2876
2876
|
return arr2;
|
|
@@ -2906,15 +2906,15 @@ function _non_iterable_rest$b() {
|
|
|
2906
2906
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2907
2907
|
}
|
|
2908
2908
|
function _sliced_to_array$b(arr, i) {
|
|
2909
|
-
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$
|
|
2909
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b();
|
|
2910
2910
|
}
|
|
2911
|
-
function _unsupported_iterable_to_array$
|
|
2911
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
2912
2912
|
if (!o) return;
|
|
2913
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2913
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
2914
2914
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2915
2915
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2916
2916
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2917
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2917
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
2918
2918
|
}
|
|
2919
2919
|
function ControlGroup(param) {
|
|
2920
2920
|
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children, width = param.width;
|
|
@@ -3223,7 +3223,7 @@ var BarSliderMarker = function(param) {
|
|
|
3223
3223
|
}))));
|
|
3224
3224
|
};
|
|
3225
3225
|
|
|
3226
|
-
function _define_property$
|
|
3226
|
+
function _define_property$f(obj, key, value) {
|
|
3227
3227
|
if (key in obj) {
|
|
3228
3228
|
Object.defineProperty(obj, key, {
|
|
3229
3229
|
value: value,
|
|
@@ -3236,7 +3236,7 @@ function _define_property$g(obj, key, value) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
return obj;
|
|
3238
3238
|
}
|
|
3239
|
-
function _object_spread$
|
|
3239
|
+
function _object_spread$f(target) {
|
|
3240
3240
|
for(var i = 1; i < arguments.length; i++){
|
|
3241
3241
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3242
3242
|
var ownKeys = Object.keys(source);
|
|
@@ -3246,7 +3246,7 @@ function _object_spread$g(target) {
|
|
|
3246
3246
|
}));
|
|
3247
3247
|
}
|
|
3248
3248
|
ownKeys.forEach(function(key) {
|
|
3249
|
-
_define_property$
|
|
3249
|
+
_define_property$f(target, key, source[key]);
|
|
3250
3250
|
});
|
|
3251
3251
|
}
|
|
3252
3252
|
return target;
|
|
@@ -3278,7 +3278,7 @@ function RotaryCircle(param) {
|
|
|
3278
3278
|
var circ = 2 * 3.14 * radius;
|
|
3279
3279
|
var activeZone = circ - circ * 0.25;
|
|
3280
3280
|
// console.log(markerShape, 'MARKERSHAPE');
|
|
3281
|
-
return /*#__PURE__*/ React__default.createElement(Box, _object_spread_props$2(_object_spread$
|
|
3281
|
+
return /*#__PURE__*/ React__default.createElement(Box, _object_spread_props$2(_object_spread$f({
|
|
3282
3282
|
id: id,
|
|
3283
3283
|
key: "RotaryCircle-".concat(id),
|
|
3284
3284
|
tabIndex: 0,
|
|
@@ -3287,7 +3287,7 @@ function RotaryCircle(param) {
|
|
|
3287
3287
|
onDoubleClick: function() {
|
|
3288
3288
|
onDoubleClick && onDoubleClick();
|
|
3289
3289
|
},
|
|
3290
|
-
style: _object_spread$
|
|
3290
|
+
style: _object_spread$f({
|
|
3291
3291
|
touchAction: 'none',
|
|
3292
3292
|
height: "".concat(height !== null && height !== void 0 ? height : width, "px"),
|
|
3293
3293
|
width: "".concat(width, "px")
|
|
@@ -3334,7 +3334,7 @@ function RotaryCircle(param) {
|
|
|
3334
3334
|
RotaryCircle.polarity = Polarity;
|
|
3335
3335
|
RotaryCircle.size = RotarySliderSizes;
|
|
3336
3336
|
|
|
3337
|
-
function _define_property$
|
|
3337
|
+
function _define_property$e(obj, key, value) {
|
|
3338
3338
|
if (key in obj) {
|
|
3339
3339
|
Object.defineProperty(obj, key, {
|
|
3340
3340
|
value: value,
|
|
@@ -3347,7 +3347,7 @@ function _define_property$f(obj, key, value) {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
return obj;
|
|
3349
3349
|
}
|
|
3350
|
-
function _object_spread$
|
|
3350
|
+
function _object_spread$e(target) {
|
|
3351
3351
|
for(var i = 1; i < arguments.length; i++){
|
|
3352
3352
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3353
3353
|
var ownKeys = Object.keys(source);
|
|
@@ -3357,7 +3357,7 @@ function _object_spread$f(target) {
|
|
|
3357
3357
|
}));
|
|
3358
3358
|
}
|
|
3359
3359
|
ownKeys.forEach(function(key) {
|
|
3360
|
-
_define_property$
|
|
3360
|
+
_define_property$e(target, key, source[key]);
|
|
3361
3361
|
});
|
|
3362
3362
|
}
|
|
3363
3363
|
return target;
|
|
@@ -3369,7 +3369,7 @@ function PositioningWrapper(param) {
|
|
|
3369
3369
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
3370
3370
|
id: id,
|
|
3371
3371
|
className: className,
|
|
3372
|
-
style: _object_spread$
|
|
3372
|
+
style: _object_spread$e({
|
|
3373
3373
|
position: 'relative',
|
|
3374
3374
|
height: height,
|
|
3375
3375
|
width: width,
|
|
@@ -3435,7 +3435,7 @@ AnimationDataWrapper.dataTypes = DataTypes;
|
|
|
3435
3435
|
var css_248z$7 = ".canvasContainer {\n --color-brand: #bb68d9;\n}\n";
|
|
3436
3436
|
styleInject(css_248z$7);
|
|
3437
3437
|
|
|
3438
|
-
function _define_property$
|
|
3438
|
+
function _define_property$d(obj, key, value) {
|
|
3439
3439
|
if (key in obj) {
|
|
3440
3440
|
Object.defineProperty(obj, key, {
|
|
3441
3441
|
value: value,
|
|
@@ -3448,7 +3448,7 @@ function _define_property$e(obj, key, value) {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
return obj;
|
|
3450
3450
|
}
|
|
3451
|
-
function _object_spread$
|
|
3451
|
+
function _object_spread$d(target) {
|
|
3452
3452
|
for(var i = 1; i < arguments.length; i++){
|
|
3453
3453
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3454
3454
|
var ownKeys = Object.keys(source);
|
|
@@ -3458,7 +3458,7 @@ function _object_spread$e(target) {
|
|
|
3458
3458
|
}));
|
|
3459
3459
|
}
|
|
3460
3460
|
ownKeys.forEach(function(key) {
|
|
3461
|
-
_define_property$
|
|
3461
|
+
_define_property$d(target, key, source[key]);
|
|
3462
3462
|
});
|
|
3463
3463
|
}
|
|
3464
3464
|
return target;
|
|
@@ -3511,7 +3511,7 @@ function IndicatorLight(param) {
|
|
|
3511
3511
|
width: "auto"
|
|
3512
3512
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
3513
3513
|
className: "canvasContainer",
|
|
3514
|
-
style: _object_spread$
|
|
3514
|
+
style: _object_spread$d({
|
|
3515
3515
|
position: 'relative',
|
|
3516
3516
|
width: "".concat(width, "px"),
|
|
3517
3517
|
height: "".concat(height, "px"),
|
|
@@ -3644,7 +3644,7 @@ RotarySlider.markerShape = RotarySliderMarkerShapes;
|
|
|
3644
3644
|
var css_248z$6 = ".BarSlider {\n --maxNarrowTrackIndicatorWidth: 6px;\n --maxNarrowTrackWidth: 20px;\n --minHorizontalWidth: 75px;\n --minVerticalHeight: 75px;\n --narrowTrackMargin: 8px;\n --narrowTrackBorderRadius: 20px;\n}\n\n.BarSlider:hover {\n cursor: pointer;\n}\n\n.BarSlider-Track {\n touch-action: none;\n position: relative;\n width: 100%;\n height: 100%;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--bg-lv5);\n}\n\n.BarSlider-Track.isHighlighted {\n background-color: var(--bg-lv6);\n}\n.Barslider-IndicatorLineWrapper,\n.BarSlider-MarkerWrapper {\n width: 100%;\n height: 100%;\n position: absolute;\n pointer-events: none;\n}\n\n.BarSlider-IndicatorLine {\n position: absolute;\n top: 0;\n /* left: 0; */\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.BarSlider-Marker {\n position: absolute;\n pointer-events: none;\n}\n\n/* Narrow variant */\n.BarSlider--narrowTrack .BarSlider-Track {\n border-radius: var(--narrowTrackBorderRadius);\n background-color: var(--bg-lv3);\n box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.25);\n}\n\n/* .BarSlider--narrowTrack .BarSlider-IndicatorLine {\n border-radius: var(--narrowTrackBorderRadius);\n} */\n\n.BarSlider--narrowTrack .BarSlider-Marker {\n border-radius: var(--narrowTrackBorderRadius);\n}\n\n.BarSlider--narrowTrack .Barslider-IndicatorLineWrapper {\n border-radius: var(--narrowTrackBorderRadius);\n overflow: hidden;\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-MarkerWrapper {\n bottom: var(--maxNarrowTrackIndicatorWidth);\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n width: var(--maxNarrowTrackIndicatorWidth);\n height: calc(100% - (var(--narrowTrackMargin) * 2));\n /* margin-left: var(--narrowTrackMargin); */\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-MarkerWrapper {\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n left: var(--maxNarrowTrackIndicatorWidth);\n height: var(--maxNarrowTrackIndicatorWidth);\n width: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-bottom: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-Track {\n height: 100%;\n max-height: 100%;\n width: var(--maxNarrowTrackWidth);\n min-height: var(--minVerticalHeight);\n max-width: var(--maxNarrowTrackWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-Track {\n width: 100%;\n max-width: 100%;\n height: var(--maxNarrowTrackWidth);\n max-height: var(--maxNarrowTrackWidth);\n min-width: var(--minHorizontalWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-IndicatorLine {\n max-width: var(--maxNarrowTrackIndicatorWidth);\n max-height: 100%;\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-IndicatorLine {\n width: 100%;\n max-width: 100%;\n max-height: var(--maxNarrowTrackIndicatorWidth);\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n /* left: var(--narrowTrackMargin);\n right: calc(100% - var(--narrowTrackMargin)); */\n}\n/* Wide variant */\n\n.BarSlider--wideTrack .BarSlider-Track {\n border-radius: 2px;\n}\n\n.BarSlider--wideTrack.BarSlider--isVertical .BarSlider-Track {\n min-height: var(--minVerticalHeight);\n}\n\n.BarSlider-Input {\n font-weight: bold;\n width: 100%;\n}\n.BarSlider-Input.includeValueInHeightIsTrue {\n}\n\n.BarSlider-Input.includeValueInHeightIsFalse {\n position: absolute;\n bottom: -1.7em;\n left: 0;\n right: 0;\n z-index: 10;\n}\n";
|
|
3645
3645
|
styleInject(css_248z$6);
|
|
3646
3646
|
|
|
3647
|
-
function _define_property$
|
|
3647
|
+
function _define_property$c(obj, key, value) {
|
|
3648
3648
|
if (key in obj) {
|
|
3649
3649
|
Object.defineProperty(obj, key, {
|
|
3650
3650
|
value: value,
|
|
@@ -3657,7 +3657,7 @@ function _define_property$d(obj, key, value) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
return obj;
|
|
3659
3659
|
}
|
|
3660
|
-
function _object_spread$
|
|
3660
|
+
function _object_spread$c(target) {
|
|
3661
3661
|
for(var i = 1; i < arguments.length; i++){
|
|
3662
3662
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3663
3663
|
var ownKeys = Object.keys(source);
|
|
@@ -3667,7 +3667,7 @@ function _object_spread$d(target) {
|
|
|
3667
3667
|
}));
|
|
3668
3668
|
}
|
|
3669
3669
|
ownKeys.forEach(function(key) {
|
|
3670
|
-
_define_property$
|
|
3670
|
+
_define_property$c(target, key, source[key]);
|
|
3671
3671
|
});
|
|
3672
3672
|
}
|
|
3673
3673
|
return target;
|
|
@@ -3716,7 +3716,7 @@ function Slider$1(param) {
|
|
|
3716
3716
|
var multiColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand) 0%, var(--color-brand-secondary) 100%");
|
|
3717
3717
|
var singleColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand-700) 0%, var(--color-brand) 100%");
|
|
3718
3718
|
var _obj;
|
|
3719
|
-
var selectedGradientMap = (_obj = {}, _define_property$
|
|
3719
|
+
var selectedGradientMap = (_obj = {}, _define_property$c(_obj, GradientStyles.multicolor, multiColorGradient), _define_property$c(_obj, GradientStyles.unicolor, singleColorGradient), _obj);
|
|
3720
3720
|
var _useSlider = useSlider({
|
|
3721
3721
|
id: id,
|
|
3722
3722
|
label: label,
|
|
@@ -3759,12 +3759,12 @@ function Slider$1(param) {
|
|
|
3759
3759
|
Box.padding.none
|
|
3760
3760
|
],
|
|
3761
3761
|
height: "100%"
|
|
3762
|
-
}, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$
|
|
3762
|
+
}, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$c({
|
|
3763
3763
|
className: classnames('BarSlider-Track', isHighlighted && 'isHighlighted')
|
|
3764
3764
|
}, drag()), {
|
|
3765
3765
|
// onMouseEnter={onMouseEnter}
|
|
3766
3766
|
id: id,
|
|
3767
|
-
style: _object_spread$
|
|
3767
|
+
style: _object_spread$c({
|
|
3768
3768
|
background: trackColor,
|
|
3769
3769
|
stroke: trackStrokeColor ? "1px solid ".concat(trackStrokeColor) : 'none'
|
|
3770
3770
|
}, style)
|
|
@@ -3774,7 +3774,7 @@ function Slider$1(param) {
|
|
|
3774
3774
|
// TODO: Why aren't the Tailwind classes working?
|
|
3775
3775
|
// className={classnames('h-full', 'w-full', 'absolute', 'bg-panel')}
|
|
3776
3776
|
className: "BarSlider-IndicatorLine",
|
|
3777
|
-
style: _object_spread$
|
|
3777
|
+
style: _object_spread$c({
|
|
3778
3778
|
background: indicatorLineGradient ? selectedGradientMap[indicatorLineGradient] : indicatorLineColor,
|
|
3779
3779
|
opacity: isStandalone || isHighlighted ? '100%' : '80%',
|
|
3780
3780
|
top: "".concat(isHorizontal && isNarrowTrack && 'calc(50% - 3px)'),
|
|
@@ -3819,7 +3819,7 @@ Slider$1.sliderType = SliderType;
|
|
|
3819
3819
|
Slider$1.polarity = Polarity;
|
|
3820
3820
|
Slider$1.orientation = Orientation;
|
|
3821
3821
|
|
|
3822
|
-
function _array_like_to_array$
|
|
3822
|
+
function _array_like_to_array$a(arr, len) {
|
|
3823
3823
|
if (len == null || len > arr.length) len = arr.length;
|
|
3824
3824
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3825
3825
|
return arr2;
|
|
@@ -3855,15 +3855,15 @@ function _non_iterable_rest$a() {
|
|
|
3855
3855
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3856
3856
|
}
|
|
3857
3857
|
function _sliced_to_array$a(arr, i) {
|
|
3858
|
-
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$
|
|
3858
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$a();
|
|
3859
3859
|
}
|
|
3860
|
-
function _unsupported_iterable_to_array$
|
|
3860
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
3861
3861
|
if (!o) return;
|
|
3862
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3862
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
3863
3863
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3864
3864
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3865
3865
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3866
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3866
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
3867
3867
|
}
|
|
3868
3868
|
var useCombobox = function(param) {
|
|
3869
3869
|
var id = param.id, label = param.label, filter = param.filter; param.onChange; var _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, isDisabled = param.isDisabled;
|
|
@@ -4174,7 +4174,7 @@ var HeadingTags = /*#__PURE__*/ function(HeadingTags) {
|
|
|
4174
4174
|
return HeadingTags;
|
|
4175
4175
|
}({});
|
|
4176
4176
|
|
|
4177
|
-
function _define_property$
|
|
4177
|
+
function _define_property$b(obj, key, value) {
|
|
4178
4178
|
if (key in obj) {
|
|
4179
4179
|
Object.defineProperty(obj, key, {
|
|
4180
4180
|
value: value,
|
|
@@ -4187,7 +4187,7 @@ function _define_property$c(obj, key, value) {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
return obj;
|
|
4189
4189
|
}
|
|
4190
|
-
function _object_spread$
|
|
4190
|
+
function _object_spread$b(target) {
|
|
4191
4191
|
for(var i = 1; i < arguments.length; i++){
|
|
4192
4192
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4193
4193
|
var ownKeys = Object.keys(source);
|
|
@@ -4197,7 +4197,7 @@ function _object_spread$c(target) {
|
|
|
4197
4197
|
}));
|
|
4198
4198
|
}
|
|
4199
4199
|
ownKeys.forEach(function(key) {
|
|
4200
|
-
_define_property$
|
|
4200
|
+
_define_property$b(target, key, source[key]);
|
|
4201
4201
|
});
|
|
4202
4202
|
}
|
|
4203
4203
|
return target;
|
|
@@ -4210,7 +4210,7 @@ function Heading(param) {
|
|
|
4210
4210
|
var _padding_, _padding_1, _padding_2, _ref;
|
|
4211
4211
|
return /*#__PURE__*/ React.createElement(Tag, {
|
|
4212
4212
|
id: id,
|
|
4213
|
-
style: _object_spread$
|
|
4213
|
+
style: _object_spread$b({
|
|
4214
4214
|
fontSize: "var(--text-".concat(fontSize),
|
|
4215
4215
|
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
4216
4216
|
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
@@ -4229,7 +4229,7 @@ Heading.fontSize = FontSizes;
|
|
|
4229
4229
|
Heading.tag = HeadingTags;
|
|
4230
4230
|
Heading.padding = Spacing;
|
|
4231
4231
|
|
|
4232
|
-
function _define_property$
|
|
4232
|
+
function _define_property$a(obj, key, value) {
|
|
4233
4233
|
if (key in obj) {
|
|
4234
4234
|
Object.defineProperty(obj, key, {
|
|
4235
4235
|
value: value,
|
|
@@ -4242,7 +4242,7 @@ function _define_property$b(obj, key, value) {
|
|
|
4242
4242
|
}
|
|
4243
4243
|
return obj;
|
|
4244
4244
|
}
|
|
4245
|
-
function _object_spread$
|
|
4245
|
+
function _object_spread$a(target) {
|
|
4246
4246
|
for(var i = 1; i < arguments.length; i++){
|
|
4247
4247
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4248
4248
|
var ownKeys = Object.keys(source);
|
|
@@ -4252,7 +4252,7 @@ function _object_spread$b(target) {
|
|
|
4252
4252
|
}));
|
|
4253
4253
|
}
|
|
4254
4254
|
ownKeys.forEach(function(key) {
|
|
4255
|
-
_define_property$
|
|
4255
|
+
_define_property$a(target, key, source[key]);
|
|
4256
4256
|
});
|
|
4257
4257
|
}
|
|
4258
4258
|
return target;
|
|
@@ -4264,7 +4264,7 @@ function KeyValueDisplayScreen(param) {
|
|
|
4264
4264
|
// justifyContent={Box.justifyContent.flexStart}
|
|
4265
4265
|
alignItems: Box.alignItems.flexStart,
|
|
4266
4266
|
gap: Box.gap.small,
|
|
4267
|
-
style: _object_spread$
|
|
4267
|
+
style: _object_spread$a({}, style),
|
|
4268
4268
|
padding: [
|
|
4269
4269
|
Box.padding.small,
|
|
4270
4270
|
Box.padding.none,
|
|
@@ -4478,7 +4478,7 @@ function LineChartSvg(param) {
|
|
|
4478
4478
|
})));
|
|
4479
4479
|
}
|
|
4480
4480
|
|
|
4481
|
-
function _define_property$
|
|
4481
|
+
function _define_property$9(obj, key, value) {
|
|
4482
4482
|
if (key in obj) {
|
|
4483
4483
|
Object.defineProperty(obj, key, {
|
|
4484
4484
|
value: value,
|
|
@@ -4491,7 +4491,7 @@ function _define_property$a(obj, key, value) {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
return obj;
|
|
4493
4493
|
}
|
|
4494
|
-
function _object_spread$
|
|
4494
|
+
function _object_spread$9(target) {
|
|
4495
4495
|
for(var i = 1; i < arguments.length; i++){
|
|
4496
4496
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4497
4497
|
var ownKeys = Object.keys(source);
|
|
@@ -4501,7 +4501,7 @@ function _object_spread$a(target) {
|
|
|
4501
4501
|
}));
|
|
4502
4502
|
}
|
|
4503
4503
|
ownKeys.forEach(function(key) {
|
|
4504
|
-
_define_property$
|
|
4504
|
+
_define_property$9(target, key, source[key]);
|
|
4505
4505
|
});
|
|
4506
4506
|
}
|
|
4507
4507
|
return target;
|
|
@@ -4536,7 +4536,7 @@ function LineChartCanvas(param) {
|
|
|
4536
4536
|
data
|
|
4537
4537
|
]);
|
|
4538
4538
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
4539
|
-
style: _object_spread$
|
|
4539
|
+
style: _object_spread$9({
|
|
4540
4540
|
width: width,
|
|
4541
4541
|
height: height,
|
|
4542
4542
|
position: 'relative'
|
|
@@ -4783,69 +4783,69 @@ Chart.fillGradient = GradientStyles;
|
|
|
4783
4783
|
Chart.chartType = ChartTypes;
|
|
4784
4784
|
Chart.renderAs = GraphicRenderOptions;
|
|
4785
4785
|
|
|
4786
|
-
var WorkerClass$
|
|
4786
|
+
var WorkerClass$2 = null;
|
|
4787
4787
|
|
|
4788
4788
|
try {
|
|
4789
|
-
var WorkerThreads$
|
|
4789
|
+
var WorkerThreads$2 =
|
|
4790
4790
|
typeof module !== 'undefined' && typeof module.require === 'function' && module.require('worker_threads') ||
|
|
4791
4791
|
typeof __non_webpack_require__ === 'function' && __non_webpack_require__('worker_threads') ||
|
|
4792
4792
|
typeof require === 'function' && require('worker_threads');
|
|
4793
|
-
WorkerClass$
|
|
4793
|
+
WorkerClass$2 = WorkerThreads$2.Worker;
|
|
4794
4794
|
} catch(e) {} // eslint-disable-line
|
|
4795
4795
|
|
|
4796
|
-
function decodeBase64$
|
|
4796
|
+
function decodeBase64$5(base64, enableUnicode) {
|
|
4797
4797
|
return Buffer.from(base64, 'base64').toString('utf8');
|
|
4798
4798
|
}
|
|
4799
4799
|
|
|
4800
|
-
function createBase64WorkerFactory$
|
|
4800
|
+
function createBase64WorkerFactory$8(base64, sourcemapArg, enableUnicodeArg) {
|
|
4801
4801
|
var sourcemap = sourcemapArg;
|
|
4802
|
-
var source = decodeBase64$
|
|
4802
|
+
var source = decodeBase64$5(base64);
|
|
4803
4803
|
var start = source.indexOf('\n', 10) + 1;
|
|
4804
4804
|
var body = source.substring(start) + ('\/\/# sourceMappingURL=' + sourcemap );
|
|
4805
4805
|
return function WorkerFactory(options) {
|
|
4806
|
-
return new WorkerClass$
|
|
4806
|
+
return new WorkerClass$2(body, Object.assign({}, options, { eval: true }));
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
4809
|
|
|
4810
|
-
function decodeBase64$
|
|
4810
|
+
function decodeBase64$4(base64, enableUnicode) {
|
|
4811
4811
|
var binaryString = atob(base64);
|
|
4812
4812
|
return binaryString;
|
|
4813
4813
|
}
|
|
4814
4814
|
|
|
4815
|
-
function createURL$
|
|
4815
|
+
function createURL$2(base64, sourcemapArg, enableUnicodeArg) {
|
|
4816
4816
|
var sourcemap = sourcemapArg;
|
|
4817
|
-
var source = decodeBase64$
|
|
4817
|
+
var source = decodeBase64$4(base64);
|
|
4818
4818
|
var start = source.indexOf('\n', 10) + 1;
|
|
4819
4819
|
var body = source.substring(start) + ('\/\/# sourceMappingURL=' + sourcemap );
|
|
4820
4820
|
var blob = new Blob([body], { type: 'application/javascript' });
|
|
4821
4821
|
return URL.createObjectURL(blob);
|
|
4822
4822
|
}
|
|
4823
4823
|
|
|
4824
|
-
function createBase64WorkerFactory$
|
|
4824
|
+
function createBase64WorkerFactory$7(base64, sourcemapArg, enableUnicodeArg) {
|
|
4825
4825
|
var url;
|
|
4826
4826
|
return function WorkerFactory(options) {
|
|
4827
|
-
url = url || createURL$
|
|
4827
|
+
url = url || createURL$2(base64, sourcemapArg);
|
|
4828
4828
|
return new Worker(url, options);
|
|
4829
4829
|
};
|
|
4830
4830
|
}
|
|
4831
4831
|
|
|
4832
|
-
var kIsNodeJS$
|
|
4832
|
+
var kIsNodeJS$2 = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
|
|
4833
4833
|
|
|
4834
|
-
function isNodeJS$
|
|
4835
|
-
return kIsNodeJS$
|
|
4834
|
+
function isNodeJS$2() {
|
|
4835
|
+
return kIsNodeJS$2;
|
|
4836
4836
|
}
|
|
4837
4837
|
|
|
4838
|
-
function createBase64WorkerFactory$
|
|
4839
|
-
if (isNodeJS$
|
|
4840
|
-
return createBase64WorkerFactory$
|
|
4838
|
+
function createBase64WorkerFactory$6(base64, sourcemapArg, enableUnicodeArg) {
|
|
4839
|
+
if (isNodeJS$2()) {
|
|
4840
|
+
return createBase64WorkerFactory$8(base64, sourcemapArg);
|
|
4841
4841
|
}
|
|
4842
|
-
return createBase64WorkerFactory$
|
|
4842
|
+
return createBase64WorkerFactory$7(base64, sourcemapArg);
|
|
4843
4843
|
}
|
|
4844
4844
|
|
|
4845
|
-
var WorkerFactory$
|
|
4845
|
+
var WorkerFactory$2 = /*#__PURE__*/createBase64WorkerFactory$6('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgY2FudmFzOwogIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24oZXZlbnQpIHsKICAgICAgdmFyIGRhdGEgPSBldmVudC5kYXRhOwogICAgICBpZiAoZGF0YS50eXBlID09PSAnaW5pdCcpIHsKICAgICAgICAgIGNhbnZhcyA9IGRhdGEuY2FudmFzOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICd1cGRhdGUnKSB7CiAgICAgICAgICB2YXIgX2RhdGFfcmVuZGVyRGF0YV87CiAgICAgICAgICB2YXIgZXZlbnRJZCA9ICdvc2NEYXRhJzsKICAgICAgICAgIHZhciBtYXJnaW4gPSAxMDsKICAgICAgICAgIHZhciBzbGljZWREYXRhID0gZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiAoX2RhdGFfcmVuZGVyRGF0YV8gPSBkYXRhLnJlbmRlckRhdGFbIiIuY29uY2F0KGV2ZW50SWQpXSkgPT09IG51bGwgfHwgX2RhdGFfcmVuZGVyRGF0YV8gPT09IHZvaWQgMCA/IHZvaWQgMCA6IF9kYXRhX3JlbmRlckRhdGFfLnNsaWNlKDAsIGRhdGEuY3ljbGVMZW5ndGgpOwogICAgICAgICAgdmFyIHhTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKFsKICAgICAgICAgICAgICAwLAogICAgICAgICAgICAgIHNsaWNlZERhdGEgPT09IG51bGwgfHwgc2xpY2VkRGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogc2xpY2VkRGF0YS5sZW5ndGgKICAgICAgICAgIF0pLnJhbmdlKFsKICAgICAgICAgICAgICBtYXJnaW4sCiAgICAgICAgICAgICAgZGF0YS53aWR0aCAtIG1hcmdpbgogICAgICAgICAgXSk7CiAgICAgICAgICAvLyAubmljZSgpOwogICAgICAgICAgdmFyIHlTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS55U2NhbGVEb21haW4pLnJhbmdlKFsKICAgICAgICAgICAgICBkYXRhLmhlaWdodCAtIG1hcmdpbiwKICAgICAgICAgICAgICBtYXJnaW4KICAgICAgICAgIF0pOwogICAgICAgICAgLy8gLm5pY2UoKTsKICAgICAgICAgIGlmIChzbGljZWREYXRhICE9IG51bGwpIHsKICAgICAgICAgICAgICAvLyBmaWxsOiAnbm9uZScsCiAgICAgICAgICAgICAgLy8gJ3NoYXBlLXJlbmRlcmluZyc6ICdjcmlzcEVkZ2VzJywKICAgICAgICAgICAgICB2YXIgY3R4ID0gY2FudmFzID09PSBudWxsIHx8IGNhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogY2FudmFzLmdldENvbnRleHQoJzJkJyk7CiAgICAgICAgICAgICAgdmFyIGxpbmUgPSBkMy5saW5lKGZ1bmN0aW9uKF8sIGkpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHhTY2FsZShpKTsKICAgICAgICAgICAgICB9LCB5U2NhbGUpLmNvbnRleHQoY3R4KTsKICAgICAgICAgICAgICB2YXIgbGluZURhdGEgPSBzbGljZWREYXRhOwogICAgICAgICAgICAgIGN0eC5jbGVhclJlY3QoMCwgMCwgY2FudmFzLndpZHRoLCBjYW52YXMuaGVpZ2h0KTsKICAgICAgICAgICAgICBjdHguc2F2ZSgpOwogICAgICAgICAgICAgIGN0eC5iZWdpblBhdGgoKTsKICAgICAgICAgICAgICBsaW5lLmN1cnZlKGQzLmN1cnZlQmFzaXMpKGxpbmVEYXRhKTsKICAgICAgICAgICAgICBjdHgubGluZVdpZHRoID0gMjsKICAgICAgICAgICAgICBjdHguc3Ryb2tlU3R5bGUgPSAnIzZGRkZGNSc7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0NvbG9yID0gJ3JnYmEoMTExLCAyNTUsIDI0NSwgLjcpJzsKICAgICAgICAgICAgICBjdHguaW1hZ2VTbW9vdGhpbmdFbmFibGVkID0gZmFsc2U7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0JsdXIgPSA1OwogICAgICAgICAgICAgIGN0eC5zaGFkb3dPZmZzZXRYID0gMDsKICAgICAgICAgICAgICBjdHguc2hhZG93T2Zmc2V0WSA9IDA7CiAgICAgICAgICAgICAgY3R4LnN0cm9rZSgpOwogICAgICAgICAgICAgIGNhbnZhcyA9PT0gbnVsbCB8fCBjYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IGNhbnZhcy5nZXRDb250ZXh0KCcyZCcpLmRyYXdJbWFnZShjYW52YXMsIDAsIDApOwogICAgICAgICAgICAgIHZhciBiaXRtYXAgPSBjYW52YXMgPT09IG51bGwgfHwgY2FudmFzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBjYW52YXMudHJhbnNmZXJUb0ltYWdlQml0bWFwKCk7CiAgICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZShiaXRtYXApOwogICAgICAgICAgfQogICAgICB9CiAgfTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=');
|
|
4846
4846
|
/* eslint-enable */
|
|
4847
4847
|
|
|
4848
|
-
function _define_property$
|
|
4848
|
+
function _define_property$8(obj, key, value) {
|
|
4849
4849
|
if (key in obj) {
|
|
4850
4850
|
Object.defineProperty(obj, key, {
|
|
4851
4851
|
value: value,
|
|
@@ -4858,7 +4858,7 @@ function _define_property$9(obj, key, value) {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
return obj;
|
|
4860
4860
|
}
|
|
4861
|
-
function _object_spread$
|
|
4861
|
+
function _object_spread$8(target) {
|
|
4862
4862
|
for(var i = 1; i < arguments.length; i++){
|
|
4863
4863
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4864
4864
|
var ownKeys = Object.keys(source);
|
|
@@ -4868,7 +4868,7 @@ function _object_spread$9(target) {
|
|
|
4868
4868
|
}));
|
|
4869
4869
|
}
|
|
4870
4870
|
ownKeys.forEach(function(key) {
|
|
4871
|
-
_define_property$
|
|
4871
|
+
_define_property$8(target, key, source[key]);
|
|
4872
4872
|
});
|
|
4873
4873
|
}
|
|
4874
4874
|
return target;
|
|
@@ -4886,7 +4886,7 @@ function Oscilloscope(param) {
|
|
|
4886
4886
|
canvas.width = width;
|
|
4887
4887
|
canvas.height = height;
|
|
4888
4888
|
}
|
|
4889
|
-
var worker = new WorkerFactory$
|
|
4889
|
+
var worker = new WorkerFactory$2();
|
|
4890
4890
|
var offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4891
4891
|
worker.postMessage({
|
|
4892
4892
|
type: 'init',
|
|
@@ -4915,7 +4915,7 @@ function Oscilloscope(param) {
|
|
|
4915
4915
|
};
|
|
4916
4916
|
};
|
|
4917
4917
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
4918
|
-
style: _object_spread$
|
|
4918
|
+
style: _object_spread$8({
|
|
4919
4919
|
height: height,
|
|
4920
4920
|
width: width,
|
|
4921
4921
|
flex: "0 0 ".concat(width)
|
|
@@ -4969,7 +4969,7 @@ styleInject(css_248z$4);
|
|
|
4969
4969
|
var css_248z$3 = ".PresetManagerContainer {\n width: 100%;\n height: 100%;\n background-color: var(--bg-lv1);\n color: var(--color-text);\n}\n\n.PresetManagerButton {\n width: 100%;\n height: 100%;\n max-width: 300px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n cursor: pointer;\n font-family: var(--font-leagueSpartan);\n}\n.PresetManagerButtonLabel {\n cursor: pointer;\n text-align: center;\n font-family: var(--font-leagueSpartan);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 225px;\n display: inline-block;\n vertical-align: middle;\n height: 1rem;\n line-height: 1.25;\n /* position: relative; */\n &:hover,\n &:active {\n background: var(--color-gray-900);\n }\n /* &.isDirty {\n &::after {\n content: '*';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n } */\n}\n\n.PresetManagerButtonLabelContainer.isDirty::after {\n content: '*';\n position: absolute;\n height: 1rem;\n width: 1rem;\n right: -0.75rem;\n top: 0;\n}\n\n.PresetManagerButtonLabelOuterContainer {\n position: relative;\n width: auto;\n}\n\n[data-headlessui-state='open active'] .PresetManagerButtonLabel {\n background: var(--color-gray-900);\n}\n.PresetManagerPanel {\n position: absolute;\n font-family: var(--font-leagueSpartan);\n right: 0px;\n left: 0px;\n width: 100%;\n max-width: 400px !important;\n color: var(--color-text);\n background: var(--bg-lv5);\n}\n\n.PresetManagerPanel:focus,\n.PresetManagerPanel:focus-visible {\n outline: none;\n}\n\n.PresetManagerListItem {\n cursor: pointer;\n background: var(--color-gray-800);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n}\n\n.PresetManagerListItem:hover,\n.PresetManagerListItem.isSelected {\n background: var(--bg-selected);\n}\n\n.PresetManagerListItemText {\n display: inline-block;\n vertical-align: middle;\n height: 1.5rem;\n line-height: 1.75;\n}\n";
|
|
4970
4970
|
styleInject(css_248z$3);
|
|
4971
4971
|
|
|
4972
|
-
function _array_like_to_array$
|
|
4972
|
+
function _array_like_to_array$9(arr, len) {
|
|
4973
4973
|
if (len == null || len > arr.length) len = arr.length;
|
|
4974
4974
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4975
4975
|
return arr2;
|
|
@@ -5038,15 +5038,15 @@ function _object_destructuring_empty(o) {
|
|
|
5038
5038
|
return o;
|
|
5039
5039
|
}
|
|
5040
5040
|
function _sliced_to_array$9(arr, i) {
|
|
5041
|
-
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$
|
|
5041
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$9();
|
|
5042
5042
|
}
|
|
5043
|
-
function _unsupported_iterable_to_array$
|
|
5043
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
5044
5044
|
if (!o) return;
|
|
5045
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5045
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
5046
5046
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5047
5047
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5048
5048
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5049
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5049
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
5050
5050
|
}
|
|
5051
5051
|
function _ts_generator$3(thisArg, body) {
|
|
5052
5052
|
var f, y, t, _ = {
|
|
@@ -5429,7 +5429,7 @@ function PresetManager(param) {
|
|
|
5429
5429
|
}))))));
|
|
5430
5430
|
}
|
|
5431
5431
|
|
|
5432
|
-
function _array_like_to_array$
|
|
5432
|
+
function _array_like_to_array$8(arr, len) {
|
|
5433
5433
|
if (len == null || len > arr.length) len = arr.length;
|
|
5434
5434
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5435
5435
|
return arr2;
|
|
@@ -5466,7 +5466,7 @@ function _async_to_generator$2(fn) {
|
|
|
5466
5466
|
});
|
|
5467
5467
|
};
|
|
5468
5468
|
}
|
|
5469
|
-
function _define_property$
|
|
5469
|
+
function _define_property$7(obj, key, value) {
|
|
5470
5470
|
if (key in obj) {
|
|
5471
5471
|
Object.defineProperty(obj, key, {
|
|
5472
5472
|
value: value,
|
|
@@ -5506,7 +5506,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
5506
5506
|
function _non_iterable_rest$8() {
|
|
5507
5507
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5508
5508
|
}
|
|
5509
|
-
function _object_spread$
|
|
5509
|
+
function _object_spread$7(target) {
|
|
5510
5510
|
for(var i = 1; i < arguments.length; i++){
|
|
5511
5511
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5512
5512
|
var ownKeys = Object.keys(source);
|
|
@@ -5516,21 +5516,21 @@ function _object_spread$8(target) {
|
|
|
5516
5516
|
}));
|
|
5517
5517
|
}
|
|
5518
5518
|
ownKeys.forEach(function(key) {
|
|
5519
|
-
_define_property$
|
|
5519
|
+
_define_property$7(target, key, source[key]);
|
|
5520
5520
|
});
|
|
5521
5521
|
}
|
|
5522
5522
|
return target;
|
|
5523
5523
|
}
|
|
5524
5524
|
function _sliced_to_array$8(arr, i) {
|
|
5525
|
-
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$
|
|
5525
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8();
|
|
5526
5526
|
}
|
|
5527
|
-
function _unsupported_iterable_to_array$
|
|
5527
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
5528
5528
|
if (!o) return;
|
|
5529
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5529
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
5530
5530
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5531
5531
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5532
5532
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5533
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5533
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
5534
5534
|
}
|
|
5535
5535
|
function _ts_generator$2(thisArg, body) {
|
|
5536
5536
|
var f, y, t, _ = {
|
|
@@ -5883,7 +5883,7 @@ function ModuleHeader(param) {
|
|
|
5883
5883
|
],
|
|
5884
5884
|
className: classnames('ModuleHeader', className),
|
|
5885
5885
|
height: "72px",
|
|
5886
|
-
style: _object_spread$
|
|
5886
|
+
style: _object_spread$7({}, style)
|
|
5887
5887
|
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
5888
5888
|
style: {
|
|
5889
5889
|
width: '1000px'
|
|
@@ -5969,7 +5969,7 @@ var targetColors = [
|
|
|
5969
5969
|
var ComboboxCellWidth = '217px';
|
|
5970
5970
|
var DeleteButtonCellWidth = '50px';
|
|
5971
5971
|
|
|
5972
|
-
function _array_like_to_array$
|
|
5972
|
+
function _array_like_to_array$7(arr, len) {
|
|
5973
5973
|
if (len == null || len > arr.length) len = arr.length;
|
|
5974
5974
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5975
5975
|
return arr2;
|
|
@@ -5977,7 +5977,7 @@ function _array_like_to_array$8(arr, len) {
|
|
|
5977
5977
|
function _array_with_holes$7(arr) {
|
|
5978
5978
|
if (Array.isArray(arr)) return arr;
|
|
5979
5979
|
}
|
|
5980
|
-
function _define_property$
|
|
5980
|
+
function _define_property$6(obj, key, value) {
|
|
5981
5981
|
if (key in obj) {
|
|
5982
5982
|
Object.defineProperty(obj, key, {
|
|
5983
5983
|
value: value,
|
|
@@ -6017,7 +6017,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
6017
6017
|
function _non_iterable_rest$7() {
|
|
6018
6018
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6019
6019
|
}
|
|
6020
|
-
function _object_spread$
|
|
6020
|
+
function _object_spread$6(target) {
|
|
6021
6021
|
for(var i = 1; i < arguments.length; i++){
|
|
6022
6022
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6023
6023
|
var ownKeys = Object.keys(source);
|
|
@@ -6027,21 +6027,21 @@ function _object_spread$7(target) {
|
|
|
6027
6027
|
}));
|
|
6028
6028
|
}
|
|
6029
6029
|
ownKeys.forEach(function(key) {
|
|
6030
|
-
_define_property$
|
|
6030
|
+
_define_property$6(target, key, source[key]);
|
|
6031
6031
|
});
|
|
6032
6032
|
}
|
|
6033
6033
|
return target;
|
|
6034
6034
|
}
|
|
6035
6035
|
function _sliced_to_array$7(arr, i) {
|
|
6036
|
-
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$
|
|
6036
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$7();
|
|
6037
6037
|
}
|
|
6038
|
-
function _unsupported_iterable_to_array$
|
|
6038
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
6039
6039
|
if (!o) return;
|
|
6040
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6040
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
6041
6041
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6042
6042
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6043
6043
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6044
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6044
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
6045
6045
|
}
|
|
6046
6046
|
function ModMatrixComboboxCell(param) {
|
|
6047
6047
|
var rowId = param.rowId, key = param.key, color = param.color, style = param.style;
|
|
@@ -6076,7 +6076,7 @@ function ModMatrixComboboxCell(param) {
|
|
|
6076
6076
|
className: "ModMatrixCell ModMatrixComboboxCell",
|
|
6077
6077
|
justifyContent: Box.justifyContent.flexEnd,
|
|
6078
6078
|
flexDirection: Box.flexDirection.column,
|
|
6079
|
-
style: _object_spread$
|
|
6079
|
+
style: _object_spread$6({
|
|
6080
6080
|
color: color
|
|
6081
6081
|
}, style),
|
|
6082
6082
|
padding: [
|
|
@@ -6123,7 +6123,7 @@ function ModMatrixComboboxCell(param) {
|
|
|
6123
6123
|
}))));
|
|
6124
6124
|
}
|
|
6125
6125
|
|
|
6126
|
-
function _define_property$
|
|
6126
|
+
function _define_property$5(obj, key, value) {
|
|
6127
6127
|
if (key in obj) {
|
|
6128
6128
|
Object.defineProperty(obj, key, {
|
|
6129
6129
|
value: value,
|
|
@@ -6136,7 +6136,7 @@ function _define_property$6(obj, key, value) {
|
|
|
6136
6136
|
}
|
|
6137
6137
|
return obj;
|
|
6138
6138
|
}
|
|
6139
|
-
function _object_spread$
|
|
6139
|
+
function _object_spread$5(target) {
|
|
6140
6140
|
for(var i = 1; i < arguments.length; i++){
|
|
6141
6141
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6142
6142
|
var ownKeys = Object.keys(source);
|
|
@@ -6146,7 +6146,7 @@ function _object_spread$6(target) {
|
|
|
6146
6146
|
}));
|
|
6147
6147
|
}
|
|
6148
6148
|
ownKeys.forEach(function(key) {
|
|
6149
|
-
_define_property$
|
|
6149
|
+
_define_property$5(target, key, source[key]);
|
|
6150
6150
|
});
|
|
6151
6151
|
}
|
|
6152
6152
|
return target;
|
|
@@ -6168,7 +6168,7 @@ function ModMatrixToggleCell(param) {
|
|
|
6168
6168
|
justifyContent: Box.justifyContent.flexEnd,
|
|
6169
6169
|
alignItems: Box.alignItems.flexStart,
|
|
6170
6170
|
flexDirection: Box.flexDirection.column,
|
|
6171
|
-
style: _object_spread$
|
|
6171
|
+
style: _object_spread$5({
|
|
6172
6172
|
color: color,
|
|
6173
6173
|
pointerEvents: 'all'
|
|
6174
6174
|
}, style),
|
|
@@ -6192,7 +6192,7 @@ function ModMatrixToggleCell(param) {
|
|
|
6192
6192
|
}, Object.keys(Polarity)[index] || '0')));
|
|
6193
6193
|
}
|
|
6194
6194
|
|
|
6195
|
-
function _define_property$
|
|
6195
|
+
function _define_property$4(obj, key, value) {
|
|
6196
6196
|
if (key in obj) {
|
|
6197
6197
|
Object.defineProperty(obj, key, {
|
|
6198
6198
|
value: value,
|
|
@@ -6205,7 +6205,7 @@ function _define_property$5(obj, key, value) {
|
|
|
6205
6205
|
}
|
|
6206
6206
|
return obj;
|
|
6207
6207
|
}
|
|
6208
|
-
function _object_spread$
|
|
6208
|
+
function _object_spread$4(target) {
|
|
6209
6209
|
for(var i = 1; i < arguments.length; i++){
|
|
6210
6210
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6211
6211
|
var ownKeys = Object.keys(source);
|
|
@@ -6215,7 +6215,7 @@ function _object_spread$5(target) {
|
|
|
6215
6215
|
}));
|
|
6216
6216
|
}
|
|
6217
6217
|
ownKeys.forEach(function(key) {
|
|
6218
|
-
_define_property$
|
|
6218
|
+
_define_property$4(target, key, source[key]);
|
|
6219
6219
|
});
|
|
6220
6220
|
}
|
|
6221
6221
|
return target;
|
|
@@ -6232,7 +6232,7 @@ function SingleBarViz(param) {
|
|
|
6232
6232
|
}
|
|
6233
6233
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
6234
6234
|
className: "SingleBarViz",
|
|
6235
|
-
style: _object_spread$
|
|
6235
|
+
style: _object_spread$4({
|
|
6236
6236
|
position: 'absolute',
|
|
6237
6237
|
background: sliderColor
|
|
6238
6238
|
}, getBarTransformStyles({
|
|
@@ -6245,7 +6245,7 @@ function SingleBarViz(param) {
|
|
|
6245
6245
|
}
|
|
6246
6246
|
SingleBarViz.polarity = Polarity;
|
|
6247
6247
|
|
|
6248
|
-
function _array_like_to_array$
|
|
6248
|
+
function _array_like_to_array$6(arr, len) {
|
|
6249
6249
|
if (len == null || len > arr.length) len = arr.length;
|
|
6250
6250
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6251
6251
|
return arr2;
|
|
@@ -6253,7 +6253,7 @@ function _array_like_to_array$7(arr, len) {
|
|
|
6253
6253
|
function _array_with_holes$6(arr) {
|
|
6254
6254
|
if (Array.isArray(arr)) return arr;
|
|
6255
6255
|
}
|
|
6256
|
-
function _define_property$
|
|
6256
|
+
function _define_property$3(obj, key, value) {
|
|
6257
6257
|
if (key in obj) {
|
|
6258
6258
|
Object.defineProperty(obj, key, {
|
|
6259
6259
|
value: value,
|
|
@@ -6293,7 +6293,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
6293
6293
|
function _non_iterable_rest$6() {
|
|
6294
6294
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6295
6295
|
}
|
|
6296
|
-
function _object_spread$
|
|
6296
|
+
function _object_spread$3(target) {
|
|
6297
6297
|
for(var i = 1; i < arguments.length; i++){
|
|
6298
6298
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6299
6299
|
var ownKeys = Object.keys(source);
|
|
@@ -6303,7 +6303,7 @@ function _object_spread$4(target) {
|
|
|
6303
6303
|
}));
|
|
6304
6304
|
}
|
|
6305
6305
|
ownKeys.forEach(function(key) {
|
|
6306
|
-
_define_property$
|
|
6306
|
+
_define_property$3(target, key, source[key]);
|
|
6307
6307
|
});
|
|
6308
6308
|
}
|
|
6309
6309
|
return target;
|
|
@@ -6328,15 +6328,15 @@ function _object_spread_props(target, source) {
|
|
|
6328
6328
|
return target;
|
|
6329
6329
|
}
|
|
6330
6330
|
function _sliced_to_array$6(arr, i) {
|
|
6331
|
-
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$
|
|
6331
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$6();
|
|
6332
6332
|
}
|
|
6333
|
-
function _unsupported_iterable_to_array$
|
|
6333
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
6334
6334
|
if (!o) return;
|
|
6335
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6335
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
6336
6336
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6337
6337
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6338
6338
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6339
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6339
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
6340
6340
|
}
|
|
6341
6341
|
function ModMatrixCell(param) {
|
|
6342
6342
|
var modifier = param.modifier, rowId = param.rowId, isDisabled = param.isDisabled, color = param.color, style = param.style;
|
|
@@ -6360,12 +6360,12 @@ function ModMatrixCell(param) {
|
|
|
6360
6360
|
onChangeActiveState: function(isActive) {
|
|
6361
6361
|
return setIsActive(isActive);
|
|
6362
6362
|
}
|
|
6363
|
-
}, /*#__PURE__*/ React__default.createElement(Box, _object_spread_props(_object_spread$
|
|
6363
|
+
}, /*#__PURE__*/ React__default.createElement(Box, _object_spread_props(_object_spread$3({
|
|
6364
6364
|
className: "ModMatrixCell ".concat(isDisabled ? 'isDisabled' : ''),
|
|
6365
6365
|
justifyContent: Box.justifyContent.flexEnd,
|
|
6366
6366
|
alignItems: Box.alignItems.flexStart,
|
|
6367
6367
|
flexDirection: Box.flexDirection.column,
|
|
6368
|
-
style: _object_spread$
|
|
6368
|
+
style: _object_spread$3({
|
|
6369
6369
|
color: color,
|
|
6370
6370
|
pointerEvents: 'all'
|
|
6371
6371
|
}, style),
|
|
@@ -6414,7 +6414,7 @@ function ModMatrixCell(param) {
|
|
|
6414
6414
|
// isActive ? 'var(--color-gray-500)' : 'var(--color-gray-600)'
|
|
6415
6415
|
// }
|
|
6416
6416
|
sliderColor: color,
|
|
6417
|
-
style: _object_spread$
|
|
6417
|
+
style: _object_spread$3({
|
|
6418
6418
|
alignSelf: 'flex-end',
|
|
6419
6419
|
pointerEvents: 'none'
|
|
6420
6420
|
}, getBarTransformStyles({
|
|
@@ -6485,7 +6485,7 @@ function ModMatrixRow(param) {
|
|
|
6485
6485
|
})));
|
|
6486
6486
|
}
|
|
6487
6487
|
|
|
6488
|
-
function _array_like_to_array$
|
|
6488
|
+
function _array_like_to_array$5(arr, len) {
|
|
6489
6489
|
if (len == null || len > arr.length) len = arr.length;
|
|
6490
6490
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6491
6491
|
return arr2;
|
|
@@ -6493,8 +6493,8 @@ function _array_like_to_array$6(arr, len) {
|
|
|
6493
6493
|
function _array_with_holes$5(arr) {
|
|
6494
6494
|
if (Array.isArray(arr)) return arr;
|
|
6495
6495
|
}
|
|
6496
|
-
function _array_without_holes
|
|
6497
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6496
|
+
function _array_without_holes(arr) {
|
|
6497
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
6498
6498
|
}
|
|
6499
6499
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
6500
6500
|
try {
|
|
@@ -6525,7 +6525,7 @@ function _async_to_generator$1(fn) {
|
|
|
6525
6525
|
});
|
|
6526
6526
|
};
|
|
6527
6527
|
}
|
|
6528
|
-
function _define_property$
|
|
6528
|
+
function _define_property$2(obj, key, value) {
|
|
6529
6529
|
if (key in obj) {
|
|
6530
6530
|
Object.defineProperty(obj, key, {
|
|
6531
6531
|
value: value,
|
|
@@ -6538,7 +6538,7 @@ function _define_property$3(obj, key, value) {
|
|
|
6538
6538
|
}
|
|
6539
6539
|
return obj;
|
|
6540
6540
|
}
|
|
6541
|
-
function _iterable_to_array
|
|
6541
|
+
function _iterable_to_array(iter) {
|
|
6542
6542
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6543
6543
|
}
|
|
6544
6544
|
function _iterable_to_array_limit$5(arr, i) {
|
|
@@ -6568,10 +6568,10 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
6568
6568
|
function _non_iterable_rest$5() {
|
|
6569
6569
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6570
6570
|
}
|
|
6571
|
-
function _non_iterable_spread
|
|
6571
|
+
function _non_iterable_spread() {
|
|
6572
6572
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6573
6573
|
}
|
|
6574
|
-
function _object_spread$
|
|
6574
|
+
function _object_spread$2(target) {
|
|
6575
6575
|
for(var i = 1; i < arguments.length; i++){
|
|
6576
6576
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6577
6577
|
var ownKeys = Object.keys(source);
|
|
@@ -6581,24 +6581,24 @@ function _object_spread$3(target) {
|
|
|
6581
6581
|
}));
|
|
6582
6582
|
}
|
|
6583
6583
|
ownKeys.forEach(function(key) {
|
|
6584
|
-
_define_property$
|
|
6584
|
+
_define_property$2(target, key, source[key]);
|
|
6585
6585
|
});
|
|
6586
6586
|
}
|
|
6587
6587
|
return target;
|
|
6588
6588
|
}
|
|
6589
6589
|
function _sliced_to_array$5(arr, i) {
|
|
6590
|
-
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$
|
|
6590
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
6591
6591
|
}
|
|
6592
|
-
function _to_consumable_array
|
|
6593
|
-
return _array_without_holes
|
|
6592
|
+
function _to_consumable_array(arr) {
|
|
6593
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread();
|
|
6594
6594
|
}
|
|
6595
|
-
function _unsupported_iterable_to_array$
|
|
6595
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
6596
6596
|
if (!o) return;
|
|
6597
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6597
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
6598
6598
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6599
6599
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6600
6600
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6601
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6601
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
6602
6602
|
}
|
|
6603
6603
|
function _ts_generator$1(thisArg, body) {
|
|
6604
6604
|
var f, y, t, _ = {
|
|
@@ -6729,7 +6729,7 @@ function ModMatrix(param) {
|
|
|
6729
6729
|
return modSlotTargets[item] <= 0;
|
|
6730
6730
|
});
|
|
6731
6731
|
if (unassignedModSlots.length > 0 && modSlotPreview.slotId) {
|
|
6732
|
-
setDisplayedModSlots(_to_consumable_array
|
|
6732
|
+
setDisplayedModSlots(_to_consumable_array(displayedSlots).concat([
|
|
6733
6733
|
modSlotPreview.slotId
|
|
6734
6734
|
]));
|
|
6735
6735
|
} else {
|
|
@@ -6804,7 +6804,7 @@ function ModMatrix(param) {
|
|
|
6804
6804
|
]);
|
|
6805
6805
|
var headers = [
|
|
6806
6806
|
'Target'
|
|
6807
|
-
].concat(_to_consumable_array
|
|
6807
|
+
].concat(_to_consumable_array(modSlotParamLabels), [
|
|
6808
6808
|
''
|
|
6809
6809
|
]);
|
|
6810
6810
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
@@ -6814,7 +6814,7 @@ function ModMatrix(param) {
|
|
|
6814
6814
|
Box.padding.large
|
|
6815
6815
|
],
|
|
6816
6816
|
className: "ModMatrix ".concat(className ? className : ''),
|
|
6817
|
-
style: _object_spread$
|
|
6817
|
+
style: _object_spread$2({
|
|
6818
6818
|
backgroundColor: 'var(--bg-lvl2)'
|
|
6819
6819
|
}, style),
|
|
6820
6820
|
flexDirection: Box.flexDirection.column
|
|
@@ -6848,368 +6848,6 @@ function ModMatrix(param) {
|
|
|
6848
6848
|
}) : null));
|
|
6849
6849
|
}
|
|
6850
6850
|
|
|
6851
|
-
var WorkerClass$2 = null;
|
|
6852
|
-
|
|
6853
|
-
try {
|
|
6854
|
-
var WorkerThreads$2 =
|
|
6855
|
-
typeof module !== 'undefined' && typeof module.require === 'function' && module.require('worker_threads') ||
|
|
6856
|
-
typeof __non_webpack_require__ === 'function' && __non_webpack_require__('worker_threads') ||
|
|
6857
|
-
typeof require === 'function' && require('worker_threads');
|
|
6858
|
-
WorkerClass$2 = WorkerThreads$2.Worker;
|
|
6859
|
-
} catch(e) {} // eslint-disable-line
|
|
6860
|
-
|
|
6861
|
-
function decodeBase64$5(base64, enableUnicode) {
|
|
6862
|
-
return Buffer.from(base64, 'base64').toString('utf8');
|
|
6863
|
-
}
|
|
6864
|
-
|
|
6865
|
-
function createBase64WorkerFactory$8(base64, sourcemapArg, enableUnicodeArg) {
|
|
6866
|
-
var sourcemap = sourcemapArg;
|
|
6867
|
-
var source = decodeBase64$5(base64);
|
|
6868
|
-
var start = source.indexOf('\n', 10) + 1;
|
|
6869
|
-
var body = source.substring(start) + ('\/\/# sourceMappingURL=' + sourcemap );
|
|
6870
|
-
return function WorkerFactory(options) {
|
|
6871
|
-
return new WorkerClass$2(body, Object.assign({}, options, { eval: true }));
|
|
6872
|
-
};
|
|
6873
|
-
}
|
|
6874
|
-
|
|
6875
|
-
function decodeBase64$4(base64, enableUnicode) {
|
|
6876
|
-
var binaryString = atob(base64);
|
|
6877
|
-
return binaryString;
|
|
6878
|
-
}
|
|
6879
|
-
|
|
6880
|
-
function createURL$2(base64, sourcemapArg, enableUnicodeArg) {
|
|
6881
|
-
var sourcemap = sourcemapArg;
|
|
6882
|
-
var source = decodeBase64$4(base64);
|
|
6883
|
-
var start = source.indexOf('\n', 10) + 1;
|
|
6884
|
-
var body = source.substring(start) + ('\/\/# sourceMappingURL=' + sourcemap );
|
|
6885
|
-
var blob = new Blob([body], { type: 'application/javascript' });
|
|
6886
|
-
return URL.createObjectURL(blob);
|
|
6887
|
-
}
|
|
6888
|
-
|
|
6889
|
-
function createBase64WorkerFactory$7(base64, sourcemapArg, enableUnicodeArg) {
|
|
6890
|
-
var url;
|
|
6891
|
-
return function WorkerFactory(options) {
|
|
6892
|
-
url = url || createURL$2(base64, sourcemapArg);
|
|
6893
|
-
return new Worker(url, options);
|
|
6894
|
-
};
|
|
6895
|
-
}
|
|
6896
|
-
|
|
6897
|
-
var kIsNodeJS$2 = Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
|
|
6898
|
-
|
|
6899
|
-
function isNodeJS$2() {
|
|
6900
|
-
return kIsNodeJS$2;
|
|
6901
|
-
}
|
|
6902
|
-
|
|
6903
|
-
function createBase64WorkerFactory$6(base64, sourcemapArg, enableUnicodeArg) {
|
|
6904
|
-
if (isNodeJS$2()) {
|
|
6905
|
-
return createBase64WorkerFactory$8(base64, sourcemapArg);
|
|
6906
|
-
}
|
|
6907
|
-
return createBase64WorkerFactory$7(base64, sourcemapArg);
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
var WorkerFactory$2 = /*#__PURE__*/createBase64WorkerFactory$6('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgdnVNZXRlckhvcml6b250YWxDYW52YXM7CiAgdmFyIGludGVuc2l0eVZhbHVlcyA9IFtdOwogIHZhciByYW1wUG9zaXRpb247CiAgdmFyIGxhc3RTZWxlY3RlZEluZGV4OwogIHZhciBhbmltYXRpb25EaXJlY3Rpb247CiAgc2VsZi5vbm1lc3NhZ2UgPSBmdW5jdGlvbihldmVudCkgewogICAgICB2YXIgZGF0YSA9IGV2ZW50LmRhdGE7CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICdpbml0JykgewogICAgICAgICAgdnVNZXRlckhvcml6b250YWxDYW52YXMgPSBkYXRhID09PSBudWxsIHx8IGRhdGEgPT09IHZvaWQgMCA/IHZvaWQgMCA6IGRhdGEuY2FudmFzOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICd1cGRhdGVJbnRlbnNpdHlWYWx1ZXMnKSB7CiAgICAgICAgICBpbnRlbnNpdHlWYWx1ZXMgPSBkYXRhLmludGVuc2l0eVZhbHVlcy5tYXAoZnVuY3Rpb24oaXRlbSkgewogICAgICAgICAgICAgIHZhciBvdXRwdXQ7CiAgICAgICAgICAgICAgaWYgKGl0ZW0ueSA+PSAxKSB7CiAgICAgICAgICAgICAgICAgIG91dHB1dCA9IDAuOTk5OwogICAgICAgICAgICAgIH0gZWxzZSBpZiAoaXRlbS55IDwgMC4wMikgewogICAgICAgICAgICAgICAgICBvdXRwdXQgPSAwOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgIG91dHB1dCA9IGl0ZW0ueTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgcmV0dXJuIG91dHB1dDsKICAgICAgICAgIH0pOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICd1cGRhdGUnKSB7CiAgICAgICAgICByYW1wUG9zaXRpb24gPSBkYXRhLnJhbXBQb3NpdGlvbjsKICAgICAgICAgIHZhciBiYXNlU2VnbWVudFdpZHRoID0gNTsKICAgICAgICAgIHZhciBzZWdtZW50TWFyZ2luID0gMjsKICAgICAgICAgIHZhciBjb2xvcnMgPSBbCiAgICAgICAgICAgICAgJyNBQzQ3RDEnLAogICAgICAgICAgICAgICcjODkzQkE3JywKICAgICAgICAgICAgICAnIzZDMzE4NCcsCiAgICAgICAgICAgICAgJyMzNTFFNDEnCiAgICAgICAgICBdOwogICAgICAgICAgdmFyIGxpZ2h0ZXN0Q29sb3IgPSBjb2xvcnNbMF07CiAgICAgICAgICB2YXIgZGFya2VzdENvbG9yID0gY29sb3JzW2NvbG9ycy5sZW5ndGggLSAxXTsKICAgICAgICAgIC8vIGNvbnN0IGh6RGFya0NvbG9yID0KICAgICAgICAgIC8vICAgZGF0YS5oelZhbHVlID4gMjAKICAgICAgICAgIC8vICAgICA/IGNvbG9yc1swXQogICAgICAgICAgLy8gICAgIDogZGF0YS5hbXBWYWx1ZSA+IDE1CiAgICAgICAgICAvLyAgICAgICA/IGNvbG9yc1sxXQogICAgICAgICAgLy8gICAgICAgOiBkYXRhLmFtcFZhbHVlID4gMTAKICAgICAgICAgIC8vICAgICAgICAgPyBjb2xvcnNbMl0KICAgICAgICAgIC8vICAgICAgICAgOiBjb2xvcnNbM107CiAgICAgICAgICB2YXIgbnVtU2VnbWVudHMgPSBNYXRoLmZsb29yKGRhdGEud2lkdGggLyAoYmFzZVNlZ21lbnRXaWR0aCArIHNlZ21lbnRNYXJnaW4pKTsKICAgICAgICAgIHZhciBzZWdtZW50cyA9IEFycmF5LmZyb20oewogICAgICAgICAgICAgIGxlbmd0aDogbnVtU2VnbWVudHMKICAgICAgICAgIH0sIGZ1bmN0aW9uKF8sIGkpIHsKICAgICAgICAgICAgICByZXR1cm4gIiIuY29uY2F0KGkpOwogICAgICAgICAgfSk7CiAgICAgICAgICB2YXIgaW50ZW5zaXR5SW5kZXggPSBNYXRoLmZsb29yKGludGVuc2l0eVZhbHVlcy5sZW5ndGggKiByYW1wUG9zaXRpb24pOwogICAgICAgICAgdmFyIHhTY2FsZSA9IGQzLnNjYWxlQmFuZCgpLmRvbWFpbihzZWdtZW50cykucmFuZ2UoWwogICAgICAgICAgICAgIDAsCiAgICAgICAgICAgICAgZGF0YS53aWR0aAogICAgICAgICAgXSkucGFkZGluZygwLjIpOwogICAgICAgICAgdmFyIHJhbmdlID0gbnVtU2VnbWVudHMgKiBkYXRhLmFtcFZhbHVlOwogICAgICAgICAgdmFyIG9mZnNldCA9IChudW1TZWdtZW50cyAtIHJhbmdlKSAvIDI7CiAgICAgICAgICB2YXIgc2VsZWN0ZWRJbmRleCA9IE1hdGguZmxvb3IobnVtU2VnbWVudHMgKiBpbnRlbnNpdHlWYWx1ZXNbaW50ZW5zaXR5SW5kZXhdICsgb2Zmc2V0KTsKICAgICAgICAgIGlmIChkYXRhICE9IG51bGwpIHsKICAgICAgICAgICAgICB2YXIgY3R4ID0gdnVNZXRlckhvcml6b250YWxDYW52YXMgPT09IG51bGwgfHwgdnVNZXRlckhvcml6b250YWxDYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHZ1TWV0ZXJIb3Jpem9udGFsQ2FudmFzLmdldENvbnRleHQoJzJkJyk7CiAgICAgICAgICAgICAgY3R4LmNsZWFyUmVjdCgwLCAwLCB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gbnVsbCB8fCB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogdnVNZXRlckhvcml6b250YWxDYW52YXMud2lkdGgsIHZ1TWV0ZXJIb3Jpem9udGFsQ2FudmFzLmhlaWdodCk7CiAgICAgICAgICAgICAgdmFyIGhlaWdodCA9IHZ1TWV0ZXJIb3Jpem9udGFsQ2FudmFzID09PSBudWxsIHx8IHZ1TWV0ZXJIb3Jpem9udGFsQ2FudmFzID09PSB2b2lkIDAgPyB2b2lkIDAgOiB2dU1ldGVySG9yaXpvbnRhbENhbnZhcy5oZWlnaHQ7CiAgICAgICAgICAgICAgdmFyIGNvbG9yR3JhZGllbnRTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKGFuaW1hdGlvbkRpcmVjdGlvbiA9PT0gIkZhbGxpbmciID8gWwogICAgICAgICAgICAgICAgICBzZWxlY3RlZEluZGV4LAogICAgICAgICAgICAgICAgICBudW1TZWdtZW50cyAtIDEKICAgICAgICAgICAgICBdIDogWwogICAgICAgICAgICAgICAgICAwLAogICAgICAgICAgICAgICAgICBzZWxlY3RlZEluZGV4CiAgICAgICAgICAgICAgXSkucmFuZ2UoLy9AdHMtZXhwZWN0LWVycm9yCiAgICAgICAgICAgICAgYW5pbWF0aW9uRGlyZWN0aW9uID09PSAiRmFsbGluZyIgPyBbCiAgICAgICAgICAgICAgICAgIGxpZ2h0ZXN0Q29sb3IsCiAgICAgICAgICAgICAgICAgIGRhcmtlc3RDb2xvcgogICAgICAgICAgICAgIF0gOiBbCiAgICAgICAgICAgICAgICAgIGRhcmtlc3RDb2xvciwKICAgICAgICAgICAgICAgICAgbGlnaHRlc3RDb2xvcgogICAgICAgICAgICAgIF0pLy9AdHMtZXhwZWN0LWVycm9yCiAgICAgICAgICAgICAgLmludGVycG9sYXRlKGQzLmludGVycG9sYXRlSGNsKTsKICAgICAgICAgICAgICB2YXIgY29sb3JTY2FsZSA9IGQzLnNjYWxlT3JkaW5hbCgpLmRvbWFpbih4U2NhbGUuZG9tYWluKCkpLnJhbmdlKHNlZ21lbnRzLm1hcChmdW5jdGlvbihfLCBpKSB7CiAgICAgICAgICAgICAgICAgIGlmIChhbmltYXRpb25EaXJlY3Rpb24gPT09ICJGYWxsaW5nIiAmJiBpID4gc2VsZWN0ZWRJbmRleCAmJiBpIDwgcmFuZ2UgKyBvZmZzZXQgfHwgYW5pbWF0aW9uRGlyZWN0aW9uID09PSAiUmlzaW5nIiAmJiBpIDwgc2VsZWN0ZWRJbmRleCAmJiBpID4gb2Zmc2V0KSB7CiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gY29sb3JHcmFkaWVudFNjYWxlKGkpOwogICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhcmtlc3RDb2xvcjsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgICBzZWdtZW50cy5mb3JFYWNoKGZ1bmN0aW9uKF8sIGkpIHsKICAgICAgICAgICAgICAgICAgdmFyIHNlZ21lbnRQb3MgPSB4U2NhbGUoIiIuY29uY2F0KGkpKSB8fCAwOwogICAgICAgICAgICAgICAgICB2YXIgaXNJbmRleCA9IHNlbGVjdGVkSW5kZXggPT09IGk7CiAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZEluZGV4ID4gbGFzdFNlbGVjdGVkSW5kZXgpIHsKICAgICAgICAgICAgICAgICAgICAgIGFuaW1hdGlvbkRpcmVjdGlvbiA9ICJSaXNpbmciOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZEluZGV4IDwgbGFzdFNlbGVjdGVkSW5kZXgpIHsKICAgICAgICAgICAgICAgICAgICAgIGFuaW1hdGlvbkRpcmVjdGlvbiA9ICJGYWxsaW5nIjsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBpZiAoaXNJbmRleCkgewogICAgICAgICAgICAgICAgICAgICAgY3R4LmZpbGxTdHlsZSA9IGxpZ2h0ZXN0Q29sb3I7CiAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaSA+IG9mZnNldCAmJiBpIDwgcmFuZ2UgKyBvZmZzZXQgJiYgZGF0YS5oelZhbHVlID4gMSkgewogICAgICAgICAgICAgICAgICAgICAgY3R4LmZpbGxTdHlsZSA9ICIiLmNvbmNhdChjb2xvclNjYWxlKCIiLmNvbmNhdChpKSkpOwogICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgY3R4LmZpbGxTdHlsZSA9IGRhcmtlc3RDb2xvcjsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBjdHguZmlsbFJlY3Qoc2VnbWVudFBvcywgMCwgeFNjYWxlLmJhbmR3aWR0aCgpLCBoZWlnaHQpOwogICAgICAgICAgICAgICAgICBsYXN0U2VsZWN0ZWRJbmRleCA9IHNlbGVjdGVkSW5kZXg7CiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgc2VnbWVudHMuZm9yRWFjaChmdW5jdGlvbihfLCBpKSB7CiAgICAgICAgICAgICAgICAgIHZhciBzZWdtZW50UG9zID0geFNjYWxlKCIiLmNvbmNhdChpKSkgfHwgMDsKICAgICAgICAgICAgICAgICAgaWYgKGkgPiBvZmZzZXQgJiYgaSA8IHJhbmdlICsgb2Zmc2V0ICYmIGRhdGEuaHpWYWx1ZSA+IDEgJiYgaSAhPT0gc2VsZWN0ZWRJbmRleCkgewogICAgICAgICAgICAgICAgICAgICAgY3R4LmZpbGxTdHlsZSA9ICJyZ2JhKDE3MiwgNzEsIDIwOSwgIi5jb25jYXQoZGF0YS5oelZhbHVlTm9ybWFsaXNlZCwgIikiKTsKICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgIGN0eC5maWxsU3R5bGUgPSAicmdiYSgxNzIsIDcxLCAyMDksIDAiOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGN0eC5maWxsUmVjdChzZWdtZW50UG9zLCAwLCB4U2NhbGUuYmFuZHdpZHRoKCksIGhlaWdodCk7CiAgICAgICAgICAgICAgICAgIGxhc3RTZWxlY3RlZEluZGV4ID0gc2VsZWN0ZWRJbmRleDsKICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gbnVsbCB8fCB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogdnVNZXRlckhvcml6b250YWxDYW52YXMuZ2V0Q29udGV4dCgnMmQnKS5kcmF3SW1hZ2UodnVNZXRlckhvcml6b250YWxDYW52YXMsIDAsIDApOwogICAgICAgICAgICAgIHZhciBiaXRtYXAgPSB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gbnVsbCB8fCB2dU1ldGVySG9yaXpvbnRhbENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogdnVNZXRlckhvcml6b250YWxDYW52YXMudHJhbnNmZXJUb0ltYWdlQml0bWFwKCk7CiAgICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZShiaXRtYXApOwogICAgICAgICAgfQogICAgICB9CiAgfTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==');
|
|
6911
|
-
/* eslint-enable */
|
|
6912
|
-
|
|
6913
|
-
function _define_property$2(obj, key, value) {
|
|
6914
|
-
if (key in obj) {
|
|
6915
|
-
Object.defineProperty(obj, key, {
|
|
6916
|
-
value: value,
|
|
6917
|
-
enumerable: true,
|
|
6918
|
-
configurable: true,
|
|
6919
|
-
writable: true
|
|
6920
|
-
});
|
|
6921
|
-
} else {
|
|
6922
|
-
obj[key] = value;
|
|
6923
|
-
}
|
|
6924
|
-
return obj;
|
|
6925
|
-
}
|
|
6926
|
-
function _object_spread$2(target) {
|
|
6927
|
-
for(var i = 1; i < arguments.length; i++){
|
|
6928
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
6929
|
-
var ownKeys = Object.keys(source);
|
|
6930
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
6931
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
6932
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
6933
|
-
}));
|
|
6934
|
-
}
|
|
6935
|
-
ownKeys.forEach(function(key) {
|
|
6936
|
-
_define_property$2(target, key, source[key]);
|
|
6937
|
-
});
|
|
6938
|
-
}
|
|
6939
|
-
return target;
|
|
6940
|
-
}
|
|
6941
|
-
function LFOIntensityMeter(param) {
|
|
6942
|
-
var _param_width = param.width, width = _param_width === void 0 ? 150 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 8 : _param_height, className = param.className, intensityValues = param.intensityValues; param.waveType; var style = param.style, id = param.id;
|
|
6943
|
-
var workerRef = useRef(null);
|
|
6944
|
-
// const [ampValue, setAmpValue] = useState(0);
|
|
6945
|
-
// const ampValue = useRef(null);
|
|
6946
|
-
var yScaleDomain = [
|
|
6947
|
-
0,
|
|
6948
|
-
1
|
|
6949
|
-
];
|
|
6950
|
-
useEffect(function() {
|
|
6951
|
-
var _workerRef_current;
|
|
6952
|
-
workerRef === null || workerRef === void 0 ? void 0 : (_workerRef_current = workerRef.current) === null || _workerRef_current === void 0 ? void 0 : _workerRef_current.postMessage({
|
|
6953
|
-
type: 'updateIntensityValues',
|
|
6954
|
-
intensityValues: intensityValues,
|
|
6955
|
-
height: height * 0.75,
|
|
6956
|
-
width: width
|
|
6957
|
-
});
|
|
6958
|
-
// renderFuction();
|
|
6959
|
-
}, [
|
|
6960
|
-
intensityValues
|
|
6961
|
-
]);
|
|
6962
|
-
useEffect(function() {
|
|
6963
|
-
// const canvas = document.getElementById(`${id}`);
|
|
6964
|
-
var canvas = document.createElement('canvas');
|
|
6965
|
-
if (canvas) {
|
|
6966
|
-
canvas.width = width;
|
|
6967
|
-
canvas.height = height;
|
|
6968
|
-
}
|
|
6969
|
-
var worker = new WorkerFactory$2();
|
|
6970
|
-
var offscreenCanvas = canvas.transferControlToOffscreen();
|
|
6971
|
-
worker.postMessage({
|
|
6972
|
-
type: 'init',
|
|
6973
|
-
canvas: offscreenCanvas
|
|
6974
|
-
}, [
|
|
6975
|
-
offscreenCanvas
|
|
6976
|
-
]);
|
|
6977
|
-
workerRef.current = worker;
|
|
6978
|
-
}, [
|
|
6979
|
-
window
|
|
6980
|
-
]);
|
|
6981
|
-
// useEffect(() => {
|
|
6982
|
-
// workerRef?.current?.postMessage({
|
|
6983
|
-
// type: 'updateAmpValue',
|
|
6984
|
-
// ampValue: ampValue,
|
|
6985
|
-
// });
|
|
6986
|
-
// renderFuction();
|
|
6987
|
-
// }, [ampValue]);
|
|
6988
|
-
var renderFuction = function(data) {
|
|
6989
|
-
var ampState = Juce.getSliderState("LFO".concat(id, "_Amp"));
|
|
6990
|
-
var waveState = Juce.getComboBoxState("LFO".concat(id, "_Wave"));
|
|
6991
|
-
var hzState = Juce.getSliderState("LFO".concat(id, "_Hz"));
|
|
6992
|
-
workerRef === null || workerRef === void 0 ? void 0 : workerRef.current.postMessage({
|
|
6993
|
-
type: 'update',
|
|
6994
|
-
rampPosition: data,
|
|
6995
|
-
waveType: waveState === null || waveState === void 0 ? void 0 : waveState.getChoiceIndex(),
|
|
6996
|
-
ampValue: ampState === null || ampState === void 0 ? void 0 : ampState.scaledValue,
|
|
6997
|
-
hzValue: hzState === null || hzState === void 0 ? void 0 : hzState.scaledValue,
|
|
6998
|
-
hzValueNormalised: hzState === null || hzState === void 0 ? void 0 : hzState.getNormalisedValue(),
|
|
6999
|
-
intensityValues: intensityValues,
|
|
7000
|
-
height: height,
|
|
7001
|
-
width: width,
|
|
7002
|
-
yScaleDomain: yScaleDomain
|
|
7003
|
-
});
|
|
7004
|
-
workerRef.current.onmessage = function(e) {
|
|
7005
|
-
var _document_getElementById, _document;
|
|
7006
|
-
var imageBitmap = e === null || e === void 0 ? void 0 : e.data;
|
|
7007
|
-
var canvas = (_document = document) === null || _document === void 0 ? void 0 : (_document_getElementById = _document.getElementById("LFO".concat(id, "_Ramp"))) === null || _document_getElementById === void 0 ? void 0 : _document_getElementById.getContext('bitmaprenderer');
|
|
7008
|
-
canvas === null || canvas === void 0 ? void 0 : canvas.transferFromImageBitmap(imageBitmap);
|
|
7009
|
-
};
|
|
7010
|
-
};
|
|
7011
|
-
return /*#__PURE__*/ React__default.createElement("div", {
|
|
7012
|
-
style: _object_spread$2({
|
|
7013
|
-
height: height,
|
|
7014
|
-
width: width,
|
|
7015
|
-
flex: "0 0 ".concat(width)
|
|
7016
|
-
}, style),
|
|
7017
|
-
className: classnames('LFOIntensityMeter', className)
|
|
7018
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7019
|
-
style: {
|
|
7020
|
-
position: 'relative',
|
|
7021
|
-
width: width,
|
|
7022
|
-
height: height
|
|
7023
|
-
}
|
|
7024
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7025
|
-
style: {
|
|
7026
|
-
position: 'absolute',
|
|
7027
|
-
top: 0,
|
|
7028
|
-
bottom: 0,
|
|
7029
|
-
right: 0,
|
|
7030
|
-
left: 0,
|
|
7031
|
-
height: height,
|
|
7032
|
-
width: width
|
|
7033
|
-
}
|
|
7034
|
-
}, /*#__PURE__*/ React__default.createElement(AnimationDataWrapper, {
|
|
7035
|
-
renderFunction: renderFuction,
|
|
7036
|
-
eventId: "LFO".concat(id, "_Ramp"),
|
|
7037
|
-
dataType: AnimationDataWrapper.dataTypes.number
|
|
7038
|
-
}, /*#__PURE__*/ React__default.createElement(Chart, {
|
|
7039
|
-
chartType: Chart.chartType.bar,
|
|
7040
|
-
renderAs: Chart.renderAs.canvas,
|
|
7041
|
-
width: width,
|
|
7042
|
-
height: height,
|
|
7043
|
-
yScaleDomain: yScaleDomain,
|
|
7044
|
-
id: "LFO".concat(id, "_Ramp")
|
|
7045
|
-
})))));
|
|
7046
|
-
}
|
|
7047
|
-
|
|
7048
|
-
var WaveTypes = /*#__PURE__*/ function(WaveTypes) {
|
|
7049
|
-
WaveTypes["Sine"] = "Sine";
|
|
7050
|
-
WaveTypes["Triangle"] = "Triangle";
|
|
7051
|
-
WaveTypes["Ramp"] = "Ramp";
|
|
7052
|
-
WaveTypes["Saw"] = "Saw";
|
|
7053
|
-
// ExpUp = 'Exp Up',
|
|
7054
|
-
// ExpDown = 'Exp Down',
|
|
7055
|
-
WaveTypes["Square"] = "Square";
|
|
7056
|
-
return WaveTypes;
|
|
7057
|
-
}({});
|
|
7058
|
-
|
|
7059
|
-
function _array_like_to_array$5(arr, len) {
|
|
7060
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
7061
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7062
|
-
return arr2;
|
|
7063
|
-
}
|
|
7064
|
-
function _array_without_holes(arr) {
|
|
7065
|
-
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
7066
|
-
}
|
|
7067
|
-
function _iterable_to_array(iter) {
|
|
7068
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
7069
|
-
}
|
|
7070
|
-
function _non_iterable_spread() {
|
|
7071
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7072
|
-
}
|
|
7073
|
-
function _to_consumable_array(arr) {
|
|
7074
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread();
|
|
7075
|
-
}
|
|
7076
|
-
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
7077
|
-
if (!o) return;
|
|
7078
|
-
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
7079
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7080
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7081
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7082
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
7083
|
-
}
|
|
7084
|
-
// const randomNumbers = [0.3, 0.7, 0.5, 0.2, 0.6, 0.3, 0.2, 0.3, 0.4, 0.4];
|
|
7085
|
-
var minCycleLength = 93;
|
|
7086
|
-
// Ramp
|
|
7087
|
-
// export const getRampArray = (max: number, increment: number) =>
|
|
7088
|
-
// d3.range(0, max, increment);
|
|
7089
|
-
// Returns a coordinate array for one cycle
|
|
7090
|
-
function generateCycle(param) {
|
|
7091
|
-
var waveType = param.waveType, _param_ampValue = param.ampValue, ampValue = _param_ampValue === void 0 ? 1 : _param_ampValue, _param_cycleLength = param.cycleLength, cycleLength = _param_cycleLength === void 0 ? minCycleLength : _param_cycleLength, _param_pulseWidth = param.pulseWidth, pulseWidth = _param_pulseWidth === void 0 ? 1 : _param_pulseWidth;
|
|
7092
|
-
var cycle = [];
|
|
7093
|
-
var getStartingRampVal = function(i) {
|
|
7094
|
-
var startingValue = i + cycleLength;
|
|
7095
|
-
var returnValue;
|
|
7096
|
-
if (startingValue > cycleLength) {
|
|
7097
|
-
returnValue = startingValue % cycleLength;
|
|
7098
|
-
} else if (startingValue < 0) {
|
|
7099
|
-
returnValue = cycleLength - Math.abs(startingValue);
|
|
7100
|
-
} else {
|
|
7101
|
-
returnValue = startingValue;
|
|
7102
|
-
}
|
|
7103
|
-
var pulseWidthParam = 1 - pulseWidth;
|
|
7104
|
-
returnValue = returnValue * (1 + 4 * pulseWidthParam);
|
|
7105
|
-
if (returnValue > cycleLength) {
|
|
7106
|
-
returnValue = 0;
|
|
7107
|
-
}
|
|
7108
|
-
return scaledToNormalised({
|
|
7109
|
-
scaledValue: returnValue,
|
|
7110
|
-
start: 0,
|
|
7111
|
-
end: cycleLength
|
|
7112
|
-
});
|
|
7113
|
-
};
|
|
7114
|
-
//Generate the coordinate array for the cycle
|
|
7115
|
-
for(var i = 0; i < cycleLength; i++){
|
|
7116
|
-
var startingRampVal = getStartingRampVal(i);
|
|
7117
|
-
switch(waveType){
|
|
7118
|
-
case WaveTypes.Sine:
|
|
7119
|
-
var angle = startingRampVal * (2 * Math.PI);
|
|
7120
|
-
//prettier-ignore
|
|
7121
|
-
var sineShape = angle > 0 ? Math.sin(angle) / 2 + 0.5 : 0;
|
|
7122
|
-
cycle.push({
|
|
7123
|
-
x: startingRampVal,
|
|
7124
|
-
//prettier-ignore
|
|
7125
|
-
y: sineShape
|
|
7126
|
-
});
|
|
7127
|
-
break;
|
|
7128
|
-
case WaveTypes.Ramp:
|
|
7129
|
-
cycle.push({
|
|
7130
|
-
y: startingRampVal
|
|
7131
|
-
});
|
|
7132
|
-
break;
|
|
7133
|
-
case WaveTypes.Saw:
|
|
7134
|
-
cycle.push({
|
|
7135
|
-
y: startingRampVal > 0 ? 1 - startingRampVal : 0
|
|
7136
|
-
});
|
|
7137
|
-
break;
|
|
7138
|
-
case WaveTypes.Square:
|
|
7139
|
-
cycle.push({
|
|
7140
|
-
y: startingRampVal > 0.5 ? 1 : 0
|
|
7141
|
-
});
|
|
7142
|
-
break;
|
|
7143
|
-
case WaveTypes.Triangle:
|
|
7144
|
-
cycle.push({
|
|
7145
|
-
y: // prettier-ignore
|
|
7146
|
-
startingRampVal * 2 > 1 ? 2 - startingRampVal * 2 : startingRampVal * 2
|
|
7147
|
-
});
|
|
7148
|
-
break;
|
|
7149
|
-
}
|
|
7150
|
-
}
|
|
7151
|
-
if (waveType === WaveTypes.Sine && pulseWidth < 1) {
|
|
7152
|
-
// const
|
|
7153
|
-
// const pw = pulseWidth * 10;
|
|
7154
|
-
var numberZeroVals = cycle.filter(function(item) {
|
|
7155
|
-
return item.x === 0 && item.y === 0;
|
|
7156
|
-
}).length;
|
|
7157
|
-
// console.log(numberZeroVals, 'numberZeroVals');
|
|
7158
|
-
var smallestValIndex = Math.ceil((cycle.length - numberZeroVals) * 0.75);
|
|
7159
|
-
var beginning = cycle === null || cycle === void 0 ? void 0 : cycle.slice(1, smallestValIndex);
|
|
7160
|
-
var end = cycle === null || cycle === void 0 ? void 0 : cycle.slice(smallestValIndex);
|
|
7161
|
-
var zeroIndex = end === null || end === void 0 ? void 0 : end.findIndex(function(item) {
|
|
7162
|
-
return (item === null || item === void 0 ? void 0 : item.y) === 0;
|
|
7163
|
-
});
|
|
7164
|
-
var slicedArray = _to_consumable_array(beginning).concat(_to_consumable_array(end.slice(zeroIndex)), _to_consumable_array(end.slice(0, zeroIndex)));
|
|
7165
|
-
return slicedArray.map(function(item) {
|
|
7166
|
-
return {
|
|
7167
|
-
x: item.x,
|
|
7168
|
-
y: item.y * ampValue
|
|
7169
|
-
};
|
|
7170
|
-
});
|
|
7171
|
-
}
|
|
7172
|
-
return cycle.map(function(item) {
|
|
7173
|
-
return {
|
|
7174
|
-
x: item.x,
|
|
7175
|
-
y: item.y * ampValue
|
|
7176
|
-
};
|
|
7177
|
-
});
|
|
7178
|
-
}
|
|
7179
|
-
var phaseShift = function(dataArray, phaseValue) {
|
|
7180
|
-
if (!(dataArray === null || dataArray === void 0 ? void 0 : dataArray.length)) {
|
|
7181
|
-
return [];
|
|
7182
|
-
}
|
|
7183
|
-
var output = [];
|
|
7184
|
-
var arrayToUse = _to_consumable_array(dataArray).concat(_to_consumable_array(dataArray));
|
|
7185
|
-
var phaseVal = arrayToUse.length * phaseValue;
|
|
7186
|
-
var phasedAllCycles = arrayToUse.concat(arrayToUse.splice(0, phaseVal));
|
|
7187
|
-
for(var i = 0; i < dataArray.length; i++){
|
|
7188
|
-
var _phasedAllCycles_i;
|
|
7189
|
-
output.push({
|
|
7190
|
-
x: i,
|
|
7191
|
-
y: (_phasedAllCycles_i = phasedAllCycles[i]) === null || _phasedAllCycles_i === void 0 ? void 0 : _phasedAllCycles_i.y
|
|
7192
|
-
});
|
|
7193
|
-
}
|
|
7194
|
-
return output;
|
|
7195
|
-
};
|
|
7196
|
-
var getSingleCyclePointArray = function(param) {
|
|
7197
|
-
var waveType = param.waveType, _param_pulseWidth = param.pulseWidth, pulseWidth = _param_pulseWidth === void 0 ? 1 : _param_pulseWidth, _param_ampValue = param.ampValue, ampValue = _param_ampValue === void 0 ? 0.5 : _param_ampValue, phaseValue = param.phaseValue;
|
|
7198
|
-
var data = waveType && generateCycle({
|
|
7199
|
-
waveType: waveType,
|
|
7200
|
-
pulseWidth: pulseWidth,
|
|
7201
|
-
ampValue: ampValue
|
|
7202
|
-
}).map(function(item, i) {
|
|
7203
|
-
return {
|
|
7204
|
-
x: i,
|
|
7205
|
-
y: item.y
|
|
7206
|
-
};
|
|
7207
|
-
}).filter(function(item) {
|
|
7208
|
-
return item.y !== undefined;
|
|
7209
|
-
});
|
|
7210
|
-
return phaseShift(data, phaseValue);
|
|
7211
|
-
};
|
|
7212
|
-
|
|
7213
6851
|
var css_248z$1 = "/* *[id^='outerglow'] {\n opacity: 0.5;\n} */\n.area {\n fill: url(#area-gradient);\n /* stroke-width: 0px;w */\n}\n";
|
|
7214
6852
|
styleInject(css_248z$1);
|
|
7215
6853
|
|
|
@@ -7272,7 +6910,7 @@ function createBase64WorkerFactory$3(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
7272
6910
|
return createBase64WorkerFactory$4(base64, sourcemapArg);
|
|
7273
6911
|
}
|
|
7274
6912
|
|
|
7275
|
-
var WorkerFactory$1 = /*#__PURE__*/createBase64WorkerFactory$3('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgTEZPRG90Q2FudmFzOwogIHZhciBwb2ludEFycmF5ID0gW107CiAgc2VsZi5vbm1lc3NhZ2UgPSBmdW5jdGlvbihldmVudCkgewogICAgICB2YXIgZGF0YSA9IGV2ZW50LmRhdGE7CiAgICAgIC8vICAgY29uc3QgeVZhbHVlcyA9IGRhdGE/LnlWYWx1ZXM7CiAgICAgIHZhciBsaW5lV2lkdGggPSAyOwogICAgICAvLyAgIGNvbnN0IG1hcmdpbiA9IDE0OwogICAgICAvLyAgIGNvbnN0IGlubmVyV2lkdGggPSBkYXRhPy53aWR0aCAtIG1hcmdpbiAqIDI7CiAgICAgIHZhciBoZWlnaHQgPSBkYXRhLmhlaWdodCArIDIyOwogICAgICBpZiAoZGF0YS50eXBlID09PSAnaW5pdCcpIHsKICAgICAgICAgIExGT0RvdENhbnZhcyA9IGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS5jYW52YXM7CiAgICAgIH0KICAgICAgaWYgKGRhdGEudHlwZSA9PT0gJ3VwZGF0ZVBvaW50QXJyYXknKSB7CiAgICAgICAgICAvLyBjb25zdCBldmVudElkID0gJ1ZVTWV0ZXJTaWduYWwnOwogICAgICAgICAgdmFyIGRhdGExID0gZXZlbnQuZGF0YTsKICAgICAgICAgIHBvaW50QXJyYXkgPSBkYXRhMSA9PT0gbnVsbCB8fCBkYXRhMSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YTEucG9pbnRBcnJheTsKICAgICAgICAgIHZhciB4U2NhbGUgPSBkMy5zY2FsZUxpbmVhcigpLmRvbWFpbihbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICBwb2ludEFycmF5ID09PSBudWxsIHx8IHBvaW50QXJyYXkgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHBvaW50QXJyYXkubGVuZ3RoCiAgICAgICAgICBdKS5yYW5nZShbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICBkYXRhMSA9PT0gbnVsbCB8fCBkYXRhMSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YTEud2lkdGgKICAgICAgICAgIF0pOwogICAgICAgICAgdmFyIHlTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKFsKICAgICAgICAgICAgICAwLAogICAgICAgICAgICAgIDEKICAgICAgICAgIF0pLnJhbmdlKFsKICAgICAgICAgICAgICBoZWlnaHQsCiAgICAgICAgICAgICAgMAogICAgICAgICAgXSk7CiAgICAgICAgICAvL3lWYWx1ZXNbTWF0aC5mbG9vcih5VmFsdWVzLmxlbmd0aCAqIGRhdGE/LnJhbXBWYWx1ZSwpXT8ueQogICAgICAgICAgLy8gLm5pY2UoKTsKICAgICAgICAgIGlmIChkYXRhMSAhPSBudWxsKSB7CiAgICAgICAgICAgICAgdmFyIGN0eCA9IExGT0RvdENhbnZhcyA9PT0gbnVsbCB8fCBMRk9Eb3RDYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IExGT0RvdENhbnZhcy5nZXRDb250ZXh0KCcyZCcpOwogICAgICAgICAgICAgIC8vIGNvbnN0IGxpbmUgPSBkMy5saW5lKChfLCBpKSA9PiB4U2NhbGUoaSksIHlTY2FsZSkuY29udGV4dChjdHgpOwogICAgICAgICAgICAgIHZhciBsaW5lQkcgPSBkMy5saW5lKGZ1bmN0aW9uKF8sIGkpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHhTY2FsZShpKTsKICAgICAgICAgICAgICB9LCB5U2NhbGUpLmNvbnRleHQoY3R4KTsKICAgICAgICAgICAgICBjdHguY2xlYXJSZWN0KDAsIDAsIGRhdGExLndpZHRoLCBkYXRhMS5oZWlnaHQpOwogICAgICAgICAgICAgIC8vICAgY3R4LnRyYW5zbGF0ZShsaW5lV2lkdGgsIGxpbmVXaWR0aCk7CiAgICAgICAgICAgICAgdmFyIHZhbHMgPSBwb2ludEFycmF5ID09PSBudWxsIHx8IHBvaW50QXJyYXkgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHBvaW50QXJyYXkubWFwKGZ1bmN0aW9uKGl0ZW0pIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIGl0ZW0ueSAtIGxpbmVXaWR0aCAqIDAuMDE7CiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgdmFyIHhQb3MgPSB4U2NhbGUucmFuZ2UoKVsxXSAqIChkYXRhMSA9PT0gbnVsbCB8fCBkYXRhMSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YTEucmFtcFZhbHVlKSArIGxpbmVXaWR0aCAqIDAuMDE7CiAgICAgICAgICAgICAgdmFyIGxpbmVhckdyYWRpZW50ID0gY3R4LmNyZWF0ZUxpbmVhckdyYWRpZW50KDAsIDAsIDAsIGhlaWdodCk7CiAgICAgICAgICAgICAgLy8gbGluZWFyR3JhZGllbnQuYWRkQ29sb3JTdG9wKDAsICdyZ2JhKDE0NywgNDYsIDE4NCwgLjE1KScpOwogICAgICAgICAgICAgIGxpbmVhckdyYWRpZW50LmFkZENvbG9yU3RvcCgwLCAncmdiYSgxNDcsIDQ2LCAxODQsIC4xKScpOwogICAgICAgICAgICAgIGxpbmVhckdyYWRpZW50LmFkZENvbG9yU3RvcCgwLjg1LCAncmdiYSgxNDcsIDQ2LCAxODQsIDApJyk7CiAgICAgICAgICAgICAgdmFyIGFyZWFHZW5lcmF0b3IgPSBkMy5hcmVhKCkueChmdW5jdGlvbihkKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB4U2NhbGUoZC54KTsKICAgICAgICAgICAgICB9KS55MChmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHlTY2FsZSgtMSk7CiAgICAgICAgICAgICAgfSkueTEoZnVuY3Rpb24oZCkgewogICAgICAgICAgICAgICAgICByZXR1cm4geVNjYWxlKGQueSk7CiAgICAgICAgICAgICAgfSkuY29udGV4dChjdHgpOwogICAgICAgICAgICAgIGN0eC5iZWdpblBhdGgoKTsKICAgICAgICAgICAgICAvL0B0cy1leHBlY3QtZXJyb3IKICAgICAgICAgICAgICBhcmVhR2VuZXJhdG9yKHBvaW50QXJyYXkpOwogICAgICAgICAgICAgIGN0eC5maWxsU3R5bGUgPSBsaW5lYXJHcmFkaWVudDsKICAgICAgICAgICAgICBjdHguZmlsbCgpOwogICAgICAgICAgICAgIGN0eC5iZWdpblBhdGgoKTsKICAgICAgICAgICAgICBjdHgubGluZVdpZHRoID0gbGluZVdpZHRoOwogICAgICAgICAgICAgIGN0eC5zdHJva2VTdHlsZSA9ICcjYWM0N2QxJzsKICAgICAgICAgICAgICBjdHgubGluZUNhcCA9ICdyb3VuZCc7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0NvbG9yID0gJ3JnYmEoMTg3LCAxMDQsIDIxNywgLjQpJzsKICAgICAgICAgICAgICBjdHguc2V0TGluZURhc2goW10pOwogICAgICAgICAgICAgIGN0eC5pbWFnZVNtb290aGluZ0VuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgICAgICBjdHguc2hhZG93Qmx1ciA9IDU7CiAgICAgICAgICAgICAgbGluZUJHKHZhbHMpOwogICAgICAgICAgICAgIGN0eC5zdHJva2UoKTsKICAgICAgICAgICAgICB2YXIgeVBvcyA9IHlTY2FsZSh2YWxzW01hdGguZmxvb3IodmFscy5sZW5ndGggKiAoZGF0YTEgPT09IG51bGwgfHwgZGF0YTEgPT09IHZvaWQgMCA/IHZvaWQgMCA6IGRhdGExLnJhbXBWYWx1ZSkpXSk7CiAgICAgICAgICAgICAgdmFyIHJhZGl1cyA9IDQ7CiAgICAgICAgICAgICAgY3R4LmJlZ2luUGF0aCgpOwogICAgICAgICAgICAgIGN0eC5zaGFkb3dDb2xvciA9ICdub25lJzsKICAgICAgICAgICAgICBjdHguc2hhZG93Qmx1ciA9IDA7CiAgICAgICAgICAgICAgY3R4LmFyYyh4UG9zLCB5UG9zLCByYWRpdXMsIDAsIDIgKiBNYXRoLlBJKTsKICAgICAgICAgICAgICBjdHguZmlsbFN0eWxlID0gJyNkMTk5ZTYnOwogICAgICAgICAgICAgIGN0eC5maWxsKCk7CiAgICAgICAgICAgICAgTEZPRG90Q2FudmFzID09PSBudWxsIHx8IExGT0RvdENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogTEZPRG90Q2FudmFzLmdldENvbnRleHQoJzJkJykuZHJhd0ltYWdlKExGT0RvdENhbnZhcywgMCwgMCk7CiAgICAgICAgICAgICAgdmFyIGJpdG1hcCA9IExGT0RvdENhbnZhcyA9PT0gbnVsbCB8fCBMRk9Eb3RDYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IExGT0RvdENhbnZhcy50cmFuc2ZlclRvSW1hZ2VCaXRtYXAoKTsKICAgICAgICAgICAgICBzZWxmLnBvc3RNZXNzYWdlKGJpdG1hcCk7CiAgICAgICAgICB9CiAgICAgIH0KICB9OwoKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9d29ya2VyLmpzLm1hcAoK', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9');
|
|
6913
|
+
var WorkerFactory$1 = /*#__PURE__*/createBase64WorkerFactory$3('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgZnVuY3Rpb24gX2FycmF5X2xpa2VfdG9fYXJyYXkoYXJyLCBsZW4pIHsKICAgICAgaWYgKGxlbiA9PSBudWxsIHx8IGxlbiA+IGFyci5sZW5ndGgpIGxlbiA9IGFyci5sZW5ndGg7CiAgICAgIGZvcih2YXIgaSA9IDAsIGFycjIgPSBuZXcgQXJyYXkobGVuKTsgaSA8IGxlbjsgaSsrKWFycjJbaV0gPSBhcnJbaV07CiAgICAgIHJldHVybiBhcnIyOwogIH0KICBmdW5jdGlvbiBfYXJyYXlfd2l0aG91dF9ob2xlcyhhcnIpIHsKICAgICAgaWYgKEFycmF5LmlzQXJyYXkoYXJyKSkgcmV0dXJuIF9hcnJheV9saWtlX3RvX2FycmF5KGFycik7CiAgfQogIGZ1bmN0aW9uIF9pdGVyYWJsZV90b19hcnJheShpdGVyKSB7CiAgICAgIGlmICh0eXBlb2YgU3ltYm9sICE9PSAidW5kZWZpbmVkIiAmJiBpdGVyW1N5bWJvbC5pdGVyYXRvcl0gIT0gbnVsbCB8fCBpdGVyWyJAQGl0ZXJhdG9yIl0gIT0gbnVsbCkgcmV0dXJuIEFycmF5LmZyb20oaXRlcik7CiAgfQogIGZ1bmN0aW9uIF9ub25faXRlcmFibGVfc3ByZWFkKCkgewogICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJJbnZhbGlkIGF0dGVtcHQgdG8gc3ByZWFkIG5vbi1pdGVyYWJsZSBpbnN0YW5jZS5cXG5JbiBvcmRlciB0byBiZSBpdGVyYWJsZSwgbm9uLWFycmF5IG9iamVjdHMgbXVzdCBoYXZlIGEgW1N5bWJvbC5pdGVyYXRvcl0oKSBtZXRob2QuIik7CiAgfQogIGZ1bmN0aW9uIF90b19jb25zdW1hYmxlX2FycmF5KGFycikgewogICAgICByZXR1cm4gX2FycmF5X3dpdGhvdXRfaG9sZXMoYXJyKSB8fCBfaXRlcmFibGVfdG9fYXJyYXkoYXJyKSB8fCBfdW5zdXBwb3J0ZWRfaXRlcmFibGVfdG9fYXJyYXkoYXJyKSB8fCBfbm9uX2l0ZXJhYmxlX3NwcmVhZCgpOwogIH0KICBmdW5jdGlvbiBfdW5zdXBwb3J0ZWRfaXRlcmFibGVfdG9fYXJyYXkobywgbWluTGVuKSB7CiAgICAgIGlmICghbykgcmV0dXJuOwogICAgICBpZiAodHlwZW9mIG8gPT09ICJzdHJpbmciKSByZXR1cm4gX2FycmF5X2xpa2VfdG9fYXJyYXkobywgbWluTGVuKTsKICAgICAgdmFyIG4gPSBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwobykuc2xpY2UoOCwgLTEpOwogICAgICBpZiAobiA9PT0gIk9iamVjdCIgJiYgby5jb25zdHJ1Y3RvcikgbiA9IG8uY29uc3RydWN0b3IubmFtZTsKICAgICAgaWYgKG4gPT09ICJNYXAiIHx8IG4gPT09ICJTZXQiKSByZXR1cm4gQXJyYXkuZnJvbShuKTsKICAgICAgaWYgKG4gPT09ICJBcmd1bWVudHMiIHx8IC9eKD86VWl8SSludCg/Ojh8MTZ8MzIpKD86Q2xhbXBlZCk/QXJyYXkkLy50ZXN0KG4pKSByZXR1cm4gX2FycmF5X2xpa2VfdG9fYXJyYXkobywgbWluTGVuKTsKICB9CiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgTEZPRG90Q2FudmFzOwogIHZhciBidWZmZXJBcnJheSA9IFtdOwogIHZhciB2aXNpYmxlV2F2ZWZvcm1zID0gW107CiAgdmFyIGN1cnJlbnRXYXZlZm9ybSA9IFtdOwogIHZhciBhcnJheUxlbmd0aCA9IDEwMjQ7CiAgZnVuY3Rpb24gbm9ybWFsaXplVG9aZXJvT25lKHZhbHVlLCBtaW4sIG1heCkgewogICAgICByZXR1cm4gKHZhbHVlIC0gbWluKSAvIChtYXggLSBtaW4pOwogIH0KICB2YXIgcmVkdWNlUmVzb2x1dGlvblRvID0gZnVuY3Rpb24oYXJyLCBuKSB7CiAgICAgIHZhciBuZXdSZXMgPSBNYXRoLmZsb29yKChhcnIgPT09IG51bGwgfHwgYXJyID09PSB2b2lkIDAgPyB2b2lkIDAgOiBhcnIubGVuZ3RoKSAvIG4pOwogICAgICByZXR1cm4gYXJyID09PSBudWxsIHx8IGFyciA9PT0gdm9pZCAwID8gdm9pZCAwIDogYXJyLmZpbHRlcihmdW5jdGlvbihfLCBpbmRleCkgewogICAgICAgICAgcmV0dXJuIGluZGV4ICUgTWF0aC5mbG9vcigoYXJyID09PSBudWxsIHx8IGFyciA9PT0gdm9pZCAwID8gdm9pZCAwIDogYXJyLmxlbmd0aCkgLyBuZXdSZXMpID09PSAwOwogICAgICB9KTsKICB9OwogIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24oZXZlbnQpIHsKICAgICAgdmFyIGRhdGEgPSBldmVudC5kYXRhOwogICAgICB2YXIgbGluZVdpZHRoID0gMjsKICAgICAgdmFyIG51bUN5Y2xlcyA9IE1hdGgubWluKE1hdGguZmxvb3IoTWF0aC5tYXgoZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLmh6VmFsdWVGb3JTeW5jVHlwZSwgMSkpLCA1MCk7CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICdpbml0JykgewogICAgICAgICAgTEZPRG90Q2FudmFzID0gZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLmNhbnZhczsKICAgICAgICAgIGJ1ZmZlckFycmF5ID0gW107CiAgICAgICAgICBjdXJyZW50V2F2ZWZvcm0gPSBBcnJheS5mcm9tKHsKICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IoYXJyYXlMZW5ndGggLSB2aXNpYmxlV2F2ZWZvcm1zLmxlbmd0aCkKICAgICAgICAgIH0sIGZ1bmN0aW9uKGl0ZW0sIGkpIHsKICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICB4OiBpLAogICAgICAgICAgICAgICAgICB5OiAwCiAgICAgICAgICAgICAgfTsKICAgICAgICAgIH0pOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICduZXdXYXZlJykgewogICAgICAgICAgdmFyIGxvd2VyUmVzV2F2ZWZvcm0gPSByZWR1Y2VSZXNvbHV0aW9uVG8oZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLndhdmVGb3JtLCBudW1DeWNsZXMpOwogICAgICAgICAgLy8gVE9ETzogcmUtZW5hYmxlIHJhbmRvbQogICAgICAgICAgLy8gbGV0IG5ld1dhdmU6IEFycmF5PFhZVmFsdWU+ID0gW107CiAgICAgICAgICAvLyBUT0RPOiByZS1lbmFibGUgcmFuZG9tCiAgICAgICAgICAvLyBpZiAobG93ZXJSZXNXYXZlZm9ybS5sZW5ndGggPiAwKSB7CiAgICAgICAgICAvLyAgIG5ld1dhdmUgPSBsb3dlclJlc1dhdmVmb3JtLm1hcCgoaXRlbTogWFlWYWx1ZSwgaTogbnVtYmVyKSA9PiAoewogICAgICAgICAgLy8gICAgIHg6IGl0ZW0ueCwKICAgICAgICAgIC8vICAgICB5OiBpdGVtLnkgKiAoMSAtIGRhdGE/LnJhbmRBbW91bnRWYWx1ZSksCiAgICAgICAgICAvLyAgIH0pKTsKICAgICAgICAgIC8vIH0KICAgICAgICAgIC8vIHJhbmRBbW91bnRWYWwgPSBkYXRhPy5yYW5kQW1vdW50VmFsdWU7CiAgICAgICAgICB2YXIgZmlsbGVySXRlbXMgPSBBcnJheS5mcm9tKHsKICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IoTWF0aC5hYnMoTWF0aC5tYXgobnVtQ3ljbGVzIC0gKGJ1ZmZlckFycmF5ID09PSBudWxsIHx8IGJ1ZmZlckFycmF5ID09PSB2b2lkIDAgPyB2b2lkIDAgOiBidWZmZXJBcnJheS5sZW5ndGgpIC0gMSwgMCkpKQogICAgICAgICAgfSwgZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgcmV0dXJuIEFycmF5LmZyb20oewogICAgICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IobG93ZXJSZXNXYXZlZm9ybS5sZW5ndGgpCiAgICAgICAgICAgICAgfSwgZnVuY3Rpb24oaXRlbSwgaSkgewogICAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgICAgeDogaSwKICAgICAgICAgICAgICAgICAgICAgIHk6IDAKICAgICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICB9KTsKICAgICAgICAgIH0pOwogICAgICAgICAgdmFyIG5ld0J1ZmZlckFycmF5ID0gKGJ1ZmZlckFycmF5ID09PSBudWxsIHx8IGJ1ZmZlckFycmF5ID09PSB2b2lkIDAgPyB2b2lkIDAgOiBidWZmZXJBcnJheS5sZW5ndGgpID49IG51bUN5Y2xlcyA/IF90b19jb25zdW1hYmxlX2FycmF5KGJ1ZmZlckFycmF5LnNsaWNlKC1NYXRoLm1heChNYXRoLmZsb29yKG51bUN5Y2xlcyksIDEpKSkuY29uY2F0KFsKICAgICAgICAgICAgICBsb3dlclJlc1dhdmVmb3JtCiAgICAgICAgICBdLCBfdG9fY29uc3VtYWJsZV9hcnJheShmaWxsZXJJdGVtcykpIDogX3RvX2NvbnN1bWFibGVfYXJyYXkoZmlsbGVySXRlbXMpLmNvbmNhdChfdG9fY29uc3VtYWJsZV9hcnJheShidWZmZXJBcnJheSksIFsKICAgICAgICAgICAgICBsb3dlclJlc1dhdmVmb3JtCiAgICAgICAgICBdKTsKICAgICAgICAgIGJ1ZmZlckFycmF5ID0gbmV3QnVmZmVyQXJyYXk7CiAgICAgIH0KICAgICAgaWYgKGRhdGEudHlwZSA9PT0gJ2N5Y2xlVXBkYXRlJykgewogICAgICAgICAgdmFyIF9idWZmZXJBcnJheV87CiAgICAgICAgICB2YXIgdXBkYXRlZFZpc2libGVXYXZlRm9ybXMgPSBidWZmZXJBcnJheS5sZW5ndGggPiAwID8gX3RvX2NvbnN1bWFibGVfYXJyYXkoKF9idWZmZXJBcnJheV8gPSBidWZmZXJBcnJheVswXSkgPT09IG51bGwgfHwgX2J1ZmZlckFycmF5XyA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2J1ZmZlckFycmF5Xy5zbGljZShNYXRoLm1heChNYXRoLmZsb29yKGJ1ZmZlckFycmF5WzBdLmxlbmd0aCAqIG5vcm1hbGl6ZVRvWmVyb09uZShkYXRhLnJhbXBWYWx1ZSwgMCwgMTAyMykpLCAxKSkpLmNvbmNhdChfdG9fY29uc3VtYWJsZV9hcnJheShidWZmZXJBcnJheS5zbGljZSgxKS5mbGF0KCkpLCBfdG9fY29uc3VtYWJsZV9hcnJheShjdXJyZW50V2F2ZWZvcm0gPT09IG51bGwgfHwgY3VycmVudFdhdmVmb3JtID09PSB2b2lkIDAgPyB2b2lkIDAgOiBjdXJyZW50V2F2ZWZvcm0uc2xpY2UoMCwgTWF0aC5mbG9vcihjdXJyZW50V2F2ZWZvcm0ubGVuZ3RoICogbm9ybWFsaXplVG9aZXJvT25lKGRhdGEucmFtcFZhbHVlLCAwLCAxMDIzKSkpKSkgOiBfdG9fY29uc3VtYWJsZV9hcnJheShjdXJyZW50V2F2ZWZvcm0pOwogICAgICAgICAgLy8gY29uc29sZS5sb2coZGF0YT8ucmFtcFZhbHVlLCAnZGF0YT8ucmFtcFZhbHVlJyk7CiAgICAgICAgICB2YXIgeHlWYWx1ZXMgPSB1cGRhdGVkVmlzaWJsZVdhdmVGb3JtcyA9PT0gbnVsbCB8fCB1cGRhdGVkVmlzaWJsZVdhdmVGb3JtcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogdXBkYXRlZFZpc2libGVXYXZlRm9ybXMubWFwKGZ1bmN0aW9uKGl0ZW0sIGkpIHsKICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICB4OiBpLAogICAgICAgICAgICAgICAgICB5OiBpdGVtLnkKICAgICAgICAgICAgICB9OwogICAgICAgICAgfSk7CiAgICAgICAgICB2aXNpYmxlV2F2ZWZvcm1zID0geHlWYWx1ZXM7CiAgICAgICAgICAvLyBUT0RPOiBUcm91Ymxlc2hvb3QgcmFuZG9tCiAgICAgICAgICAvLyBpZiAoCiAgICAgICAgICAvLyAgIHVwZGF0ZWRWaXNpYmxlV2F2ZUZvcm1zWzBdPy55ICE9PSAwICYmCiAgICAgICAgICAvLyAgIHByZXZWaXNpYmxlV2F2ZUZvcm0/LnkgIT09IDAgJiYKICAgICAgICAgIC8vICAgdXBkYXRlZFZpc2libGVXYXZlRm9ybXNbMF0/LnkgIT09IHByZXZWaXNpYmxlV2F2ZUZvcm0/LnkKICAgICAgICAgIC8vICkgewogICAgICAgICAgLy8gICAvLyBjb25zb2xlLmxvZygnUFJPQkxFTScpOwogICAgICAgICAgLy8gfQogICAgICAgICAgdmFyIHhTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKC8vIGQzLmV4dGVudCh2aXNpYmxlV2F2ZWZvcm1zLCBmdW5jdGlvbiAoZCkgewogICAgICAgICAgLy8gICByZXR1cm4gZC54OwogICAgICAgICAgLy8gfSksCiAgICAgICAgICBbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICBhcnJheUxlbmd0aAogICAgICAgICAgXSkucmFuZ2UoWwogICAgICAgICAgICAgIDAsCiAgICAgICAgICAgICAgZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLndpZHRoCiAgICAgICAgICBdKTsKICAgICAgICAgIHZhciB5U2NhbGUgPSBkMy5zY2FsZUxpbmVhcigpLmRvbWFpbihbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICAxCiAgICAgICAgICBdKS5yYW5nZShbCiAgICAgICAgICAgICAgKGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS5oZWlnaHQpIC0gbGluZVdpZHRoLAogICAgICAgICAgICAgIGxpbmVXaWR0aAogICAgICAgICAgXSk7CiAgICAgICAgICBpZiAoZGF0YSAhPSBudWxsKSB7CiAgICAgICAgICAgICAgdmFyIGN0eCA9IExGT0RvdENhbnZhcyA9PT0gbnVsbCB8fCBMRk9Eb3RDYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IExGT0RvdENhbnZhcy5nZXRDb250ZXh0KCcyZCcpOwogICAgICAgICAgICAgIGN0eC5jbGVhclJlY3QoMCwgMCwgZGF0YS53aWR0aCwgZGF0YS5oZWlnaHQpOwogICAgICAgICAgICAgIHZhciBsaW5lR2VuZXJhdG9yID0gZDMubGluZShmdW5jdGlvbihkKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB4U2NhbGUoZC54KTsKICAgICAgICAgICAgICB9LCBmdW5jdGlvbihkKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB5U2NhbGUoZC55KTsKICAgICAgICAgICAgICB9KS5jb250ZXh0KGN0eCkuY3VydmUoZDMuY3VydmVCYXNpcyk7CiAgICAgICAgICAgICAgY3R4LmJlZ2luUGF0aCgpOwogICAgICAgICAgICAgIGN0eC5saW5lV2lkdGggPSBsaW5lV2lkdGg7CiAgICAgICAgICAgICAgY3R4LnN0cm9rZVN0eWxlID0gJ3JnYigxOTgsIDQ1LCAyMjQpJzsKICAgICAgICAgICAgICBjdHgubGluZUNhcCA9ICdyb3VuZCc7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0NvbG9yID0gJ3JnYmEoMTg3LCAxMDQsIDIxNywgLjQpJzsKICAgICAgICAgICAgICBjdHguc2V0TGluZURhc2goW10pOwogICAgICAgICAgICAgIGN0eC5pbWFnZVNtb290aGluZ0VuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgICAgICBjdHguc2hhZG93Qmx1ciA9IDU7CiAgICAgICAgICAgICAgbGluZUdlbmVyYXRvcih2aXNpYmxlV2F2ZWZvcm1zKTsKICAgICAgICAgICAgICBjdHguc3Ryb2tlKCk7CiAgICAgICAgICAgICAgdmFyIGxpbmVhckdyYWRpZW50ID0gY3R4LmNyZWF0ZUxpbmVhckdyYWRpZW50KDAsIDAsIDAsIGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS5oZWlnaHQpOwogICAgICAgICAgICAgIC8vIGxpbmVhckdyYWRpZW50LmFkZENvbG9yU3RvcCgwLCAncmdiYSgxNDcsIDQ2LCAxODQsIC4xNSknKTsKICAgICAgICAgICAgICBsaW5lYXJHcmFkaWVudC5hZGRDb2xvclN0b3AoMCwgJ3JnYmEoMTk4LCA0NSwgMjI0LCAuMDUpJyk7CiAgICAgICAgICAgICAgbGluZWFyR3JhZGllbnQuYWRkQ29sb3JTdG9wKDAuOCwgJ3JnYmEoMTk4LCA0NSwgMjI0LCAwKScpOwogICAgICAgICAgICAgIHZhciBhcmVhR2VuZXJhdG9yID0gZDMuYXJlYSgpLngoZnVuY3Rpb24oZCkgewogICAgICAgICAgICAgICAgICByZXR1cm4geFNjYWxlKGQueCk7CiAgICAgICAgICAgICAgfSkueTAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB5U2NhbGUoLTEpOwogICAgICAgICAgICAgIH0pLnkxKGZ1bmN0aW9uKGQpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHlTY2FsZShkLnkpOwogICAgICAgICAgICAgIH0pLmNvbnRleHQoY3R4KTsKICAgICAgICAgICAgICBjdHguYmVnaW5QYXRoKCk7CiAgICAgICAgICAgICAgLy9AdHMtZXhwZWN0LWVycm9yCiAgICAgICAgICAgICAgYXJlYUdlbmVyYXRvcih2aXNpYmxlV2F2ZWZvcm1zKTsKICAgICAgICAgICAgICBjdHguZmlsbFN0eWxlID0gbGluZWFyR3JhZGllbnQ7CiAgICAgICAgICAgICAgY3R4LmZpbGwoKTsKICAgICAgICAgICAgICBMRk9Eb3RDYW52YXMgPT09IG51bGwgfHwgTEZPRG90Q2FudmFzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBMRk9Eb3RDYW52YXMuZ2V0Q29udGV4dCgnMmQnKS5kcmF3SW1hZ2UoTEZPRG90Q2FudmFzLCAwLCAwKTsKICAgICAgICAgICAgICB2YXIgYml0bWFwID0gTEZPRG90Q2FudmFzID09PSBudWxsIHx8IExGT0RvdENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogTEZPRG90Q2FudmFzLnRyYW5zZmVyVG9JbWFnZUJpdG1hcCgpOwogICAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoYml0bWFwKTsKICAgICAgICAgIH0KICAgICAgfQogIH07Cgp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD13b3JrZXIuanMubWFwCgo=', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9');
|
|
7276
6914
|
/* eslint-enable */
|
|
7277
6915
|
|
|
7278
6916
|
function _array_like_to_array$4(arr, len) {
|
|
@@ -7323,96 +6961,127 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
7323
6961
|
}
|
|
7324
6962
|
function LFOVisualizer(param) {
|
|
7325
6963
|
var id = param.id, _param_width = param.width, width = _param_width === void 0 ? 365 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 160 : _param_height;
|
|
7326
|
-
// const svgRef = useRef(null);
|
|
7327
6964
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
var
|
|
7333
|
-
|
|
7334
|
-
var
|
|
7335
|
-
//@ts-expect-error
|
|
7336
|
-
var _useState3 = _sliced_to_array$4(useState(0), 2); _useState3[0]; var setSyncTypeValue = _useState3[1];
|
|
7337
|
-
//@ts-expect-error
|
|
7338
|
-
var _useState4 = _sliced_to_array$4(useState(0), 2); _useState4[0]; var setSixteenthsValue = _useState4[1];
|
|
7339
|
-
//@ts-expect-error
|
|
7340
|
-
var _useState5 = _sliced_to_array$4(useState(0), 2); _useState5[0]; var setThirdsValue = _useState5[1];
|
|
7341
|
-
//@ts-expect-error
|
|
7342
|
-
var _useState6 = _sliced_to_array$4(useState(0), 2); _useState6[0]; var setSyncOffsetValue = _useState6[1];
|
|
7343
|
-
var _useState7 = _sliced_to_array$4(useState(0), 2), phaseValue = _useState7[0], setPhaseValue = _useState7[1];
|
|
7344
|
-
var _useState8 = _sliced_to_array$4(useState(0), 2), widthValue = _useState8[0], setWidthValue = _useState8[1];
|
|
7345
|
-
var _useState9 = _sliced_to_array$4(useState(0), 2), ampValue = _useState9[0], setAmpValue = _useState9[1];
|
|
7346
|
-
//@ts-expect-error
|
|
7347
|
-
var _useState10 = _sliced_to_array$4(useState(0), 2); _useState10[0]; var setRandValue = _useState10[1];
|
|
7348
|
-
var _useState11 = _sliced_to_array$4(useState(null), 2), waveType = _useState11[0], setWaveType = _useState11[1];
|
|
7349
|
-
var _useState12 = _sliced_to_array$4(useState(null), 2), pointArray = _useState12[0], setPointArray = _useState12[1];
|
|
6965
|
+
var _useState = _sliced_to_array$4(useState(0), 2), syncTypeValue = _useState[0], setSyncTypeValue = _useState[1];
|
|
6966
|
+
// TODO: Fix random
|
|
6967
|
+
// const [randValue, setRandValue] = useState(0);
|
|
6968
|
+
var _useState1 = _sliced_to_array$4(useState(0), 2), hzModulatedValue = _useState1[0], setHzModulatedValue = _useState1[1];
|
|
6969
|
+
var _useState2 = _sliced_to_array$4(useState(0), 2), hzHiModulatedValue = _useState2[0], setHzHiModulatedValue = _useState2[1];
|
|
6970
|
+
var _useState3 = _sliced_to_array$4(useState(0), 2), syncLFOHzValue = _useState3[0], setSyncLFOHzValue = _useState3[1];
|
|
6971
|
+
var _useState4 = _sliced_to_array$4(useState(null), 2), waveType = _useState4[0], setWaveType = _useState4[1];
|
|
7350
6972
|
var workerRef = useRef(null);
|
|
6973
|
+
var cycleRef = useRef([]);
|
|
6974
|
+
var prevRampValue = useRef(null);
|
|
6975
|
+
var hzValueForSyncType = useRef(null);
|
|
6976
|
+
var onNewWave = useEffectEvent(function() {
|
|
6977
|
+
var //Send the data to the worker
|
|
6978
|
+
_workerRef_current;
|
|
6979
|
+
switch(syncTypeValue){
|
|
6980
|
+
case 0:
|
|
6981
|
+
hzValueForSyncType.current = Math.min(hzModulatedValue, 20);
|
|
6982
|
+
break;
|
|
6983
|
+
case 1:
|
|
6984
|
+
hzValueForSyncType.current = Math.min(hzHiModulatedValue, 100);
|
|
6985
|
+
break;
|
|
6986
|
+
case 2:
|
|
6987
|
+
hzValueForSyncType.current = syncLFOHzValue;
|
|
6988
|
+
break;
|
|
6989
|
+
default:
|
|
6990
|
+
hzValueForSyncType.current = 0;
|
|
6991
|
+
}
|
|
6992
|
+
workerRef === null || workerRef === void 0 ? void 0 : (_workerRef_current = workerRef.current) === null || _workerRef_current === void 0 ? void 0 : _workerRef_current.postMessage({
|
|
6993
|
+
type: 'newWave',
|
|
6994
|
+
waveType: waveType,
|
|
6995
|
+
waveForm: cycleRef.current,
|
|
6996
|
+
hzValueForSyncType: hzValueForSyncType.current,
|
|
6997
|
+
syncTypeValue: syncTypeValue,
|
|
6998
|
+
hzModulatedValue: hzModulatedValue,
|
|
6999
|
+
hzHiModulatedValue: hzHiModulatedValue,
|
|
7000
|
+
syncLFOHzValue: syncLFOHzValue,
|
|
7001
|
+
// randValue,
|
|
7002
|
+
randAmountValue: 0,
|
|
7003
|
+
height: height * 0.75,
|
|
7004
|
+
width: width
|
|
7005
|
+
});
|
|
7006
|
+
});
|
|
7007
|
+
// Event handler that fires when the ramp value changes
|
|
7008
|
+
// This controls the animation
|
|
7009
|
+
var onRampUpdate = useEffectEvent(function(rampValue) {
|
|
7010
|
+
var _workerRef_current;
|
|
7011
|
+
workerRef === null || workerRef === void 0 ? void 0 : (_workerRef_current = workerRef.current) === null || _workerRef_current === void 0 ? void 0 : _workerRef_current.postMessage({
|
|
7012
|
+
type: 'cycleUpdate',
|
|
7013
|
+
rampValue: rampValue,
|
|
7014
|
+
hzValueForSyncType: hzValueForSyncType.current,
|
|
7015
|
+
width: width,
|
|
7016
|
+
height: height
|
|
7017
|
+
});
|
|
7018
|
+
renderFuction();
|
|
7019
|
+
});
|
|
7351
7020
|
// Sets up listeners to handle changes on the backend
|
|
7352
7021
|
//@ts-expect-error
|
|
7353
7022
|
useEffect(function() {
|
|
7354
7023
|
// Set up slider state listeners for each LFO parameter
|
|
7355
7024
|
if (!isLocalhost) {
|
|
7025
|
+
var _window___JUCE___backend, _window___JUCE__, _window, _window___JUCE___backend1, _window___JUCE__1, _window1, _window___JUCE___backend2, _window___JUCE__2, _window2, _window___JUCE___backend3, _window___JUCE__3, _window3, _window___JUCE___backend4, _window___JUCE__4, _window4;
|
|
7356
7026
|
var waveState = Juce.getComboBoxState("LFO".concat(id, "_Wave"));
|
|
7357
|
-
// setWaveValue(waveState?.getChoiceIndex());
|
|
7358
|
-
setWaveType(waveState === null || waveState === void 0 ? void 0 : waveState.getChoiceIndex());
|
|
7359
|
-
var hzState = Juce.getSliderState("LFO".concat(id, "_Hz"));
|
|
7360
|
-
setHzValue(hzState === null || hzState === void 0 ? void 0 : hzState.getNormalisedValue());
|
|
7361
|
-
var hzHiState = Juce.getSliderState("LFO".concat(id, "_Hz_Hi"));
|
|
7362
|
-
setHzHiValue(hzHiState === null || hzHiState === void 0 ? void 0 : hzHiState.getNormalisedValue());
|
|
7363
|
-
var syncRateState = Juce.getComboBoxState("LFO".concat(id, "_SyncRate"));
|
|
7364
|
-
setSyncRateValue(syncRateState === null || syncRateState === void 0 ? void 0 : syncRateState.getChoiceIndex());
|
|
7365
7027
|
var syncTypeState = Juce.getComboBoxState("LFO".concat(id, "_SyncType"));
|
|
7366
|
-
setSyncTypeValue(syncTypeState === null || syncTypeState === void 0 ? void 0 : syncTypeState.getChoiceIndex());
|
|
7367
|
-
var sixteenthsState = Juce.getSliderState("LFO".concat(id, "_Sixteenths"));
|
|
7368
|
-
setSixteenthsValue(sixteenthsState === null || sixteenthsState === void 0 ? void 0 : sixteenthsState.getNormalisedValue());
|
|
7369
|
-
var thirdsState = Juce.getSliderState("LFO".concat(id, "_Thirds"));
|
|
7370
|
-
setThirdsValue(thirdsState === null || thirdsState === void 0 ? void 0 : thirdsState.getNormalisedValue());
|
|
7371
|
-
var syncOffsetState = Juce.getSliderState("LFO".concat(id, "_Sync_Offset"));
|
|
7372
|
-
setSyncOffsetValue(syncOffsetState === null || syncOffsetState === void 0 ? void 0 : syncOffsetState.getNormalisedValue());
|
|
7373
|
-
var phaseState = Juce.getSliderState("LFO".concat(id, "_Phase"));
|
|
7374
|
-
setPhaseValue(phaseState === null || phaseState === void 0 ? void 0 : phaseState.getNormalisedValue());
|
|
7375
|
-
var widthState = Juce.getSliderState("LFO".concat(id, "_Width"));
|
|
7376
|
-
setWidthValue(widthState === null || widthState === void 0 ? void 0 : widthState.getNormalisedValue());
|
|
7377
|
-
var ampState = Juce.getSliderState("LFO".concat(id, "_Amp"));
|
|
7378
|
-
setAmpValue(ampState === null || ampState === void 0 ? void 0 : ampState.getNormalisedValue());
|
|
7379
|
-
var randState = Juce.getSliderState("LFO".concat(id, "_Rand"));
|
|
7380
|
-
setRandValue(randState === null || randState === void 0 ? void 0 : randState.getNormalisedValue());
|
|
7381
|
-
var waveListenerId = waveState === null || waveState === void 0 ? void 0 : waveState.valueChangedEvent.addListener(function() {
|
|
7382
|
-
setWaveType(waveState === null || waveState === void 0 ? void 0 : waveState.getChoiceIndex());
|
|
7383
|
-
});
|
|
7384
|
-
var hzListenerId = hzState.valueChangedEvent.addListener(function() {
|
|
7385
|
-
setHzValue(hzState === null || hzState === void 0 ? void 0 : hzState.getNormalisedValue());
|
|
7386
|
-
});
|
|
7387
|
-
var hzHiListenerId = hzHiState.valueChangedEvent.addListener(function() {
|
|
7388
|
-
setHzHiValue(hzHiState === null || hzHiState === void 0 ? void 0 : hzHiState.getNormalisedValue());
|
|
7389
|
-
});
|
|
7390
|
-
var syncRateListenerId = syncRateState.valueChangedEvent.addListener(function() {
|
|
7391
|
-
setSyncRateValue(syncRateState === null || syncRateState === void 0 ? void 0 : syncRateState.getChoiceIndex());
|
|
7392
|
-
});
|
|
7393
7028
|
var syncTypeListenerId = syncTypeState.valueChangedEvent.addListener(function() {
|
|
7394
7029
|
setSyncTypeValue(syncTypeState === null || syncTypeState === void 0 ? void 0 : syncTypeState.getChoiceIndex());
|
|
7395
7030
|
});
|
|
7396
|
-
var
|
|
7397
|
-
|
|
7398
|
-
});
|
|
7399
|
-
var thirdsListenerId = thirdsState.valueChangedEvent.addListener(function() {
|
|
7400
|
-
setThirdsValue(thirdsState === null || thirdsState === void 0 ? void 0 : thirdsState.getNormalisedValue());
|
|
7031
|
+
var waveListenerId = waveState === null || waveState === void 0 ? void 0 : waveState.valueChangedEvent.addListener(function() {
|
|
7032
|
+
setWaveType(waveState === null || waveState === void 0 ? void 0 : waveState.getChoiceIndex());
|
|
7401
7033
|
});
|
|
7402
|
-
|
|
7403
|
-
|
|
7034
|
+
//TODO: fix random
|
|
7035
|
+
// const randListenerId = randState.valueChangedEvent.addListener(() => {
|
|
7036
|
+
// setRandValue(randState?.getNormalisedValue());
|
|
7037
|
+
// });
|
|
7038
|
+
//ramp array dictates when it updates
|
|
7039
|
+
//@ts-expect-error
|
|
7040
|
+
var rampListenerId = (_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.addEventListener("LFO".concat(id, "_Ramp"), function(event) {
|
|
7041
|
+
var _prevRampValue_current;
|
|
7042
|
+
// Trigger 'onNewWave' when the ramp value drops.
|
|
7043
|
+
// This represents the beginning of a new wave.
|
|
7044
|
+
if (Math.abs(event - ((_prevRampValue_current = prevRampValue.current) !== null && _prevRampValue_current !== void 0 ? _prevRampValue_current : 0)) > 0.5) {
|
|
7045
|
+
onNewWave();
|
|
7046
|
+
}
|
|
7047
|
+
// Updates the animatiom
|
|
7048
|
+
onRampUpdate(event);
|
|
7049
|
+
prevRampValue.current = event;
|
|
7404
7050
|
});
|
|
7405
|
-
|
|
7406
|
-
|
|
7051
|
+
//TODO: fix random
|
|
7052
|
+
// const randAmountListenerId = window?.__JUCE__?.backend?.addEventListener(
|
|
7053
|
+
// `LFO${id}_RandAmount`,
|
|
7054
|
+
// (event: any) => {
|
|
7055
|
+
// // todo: fix random
|
|
7056
|
+
// prevRandAmountValue.current = event;
|
|
7057
|
+
// }
|
|
7058
|
+
// },
|
|
7059
|
+
// );
|
|
7060
|
+
//@ts-expect-error
|
|
7061
|
+
var hzModulatedListenerId = (_window1 = window) === null || _window1 === void 0 ? void 0 : (_window___JUCE__1 = _window1.__JUCE__) === null || _window___JUCE__1 === void 0 ? void 0 : (_window___JUCE___backend1 = _window___JUCE__1.backend) === null || _window___JUCE___backend1 === void 0 ? void 0 : _window___JUCE___backend1.addEventListener("LFO".concat(id, "_Hz_Modulated"), function(event) {
|
|
7062
|
+
setHzModulatedValue(event);
|
|
7407
7063
|
});
|
|
7408
|
-
var
|
|
7409
|
-
|
|
7064
|
+
var hzHiModulatedListenerId = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window___JUCE__2 = _window2.__JUCE__) === null || _window___JUCE__2 === void 0 ? void 0 : (_window___JUCE___backend2 = _window___JUCE__2.backend) === null || _window___JUCE___backend2 === void 0 ? void 0 : _window___JUCE___backend2.addEventListener("LFO".concat(id, "_Hz_Hi_Modulated"), function(event) {
|
|
7065
|
+
setHzHiModulatedValue(event);
|
|
7410
7066
|
});
|
|
7411
|
-
|
|
7412
|
-
|
|
7067
|
+
//@ts-expect-error
|
|
7068
|
+
var syncLFOHzListenerId = (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window___JUCE__3 = _window3.__JUCE__) === null || _window___JUCE__3 === void 0 ? void 0 : (_window___JUCE___backend3 = _window___JUCE__3.backend) === null || _window___JUCE___backend3 === void 0 ? void 0 : _window___JUCE___backend3.addEventListener("LFO".concat(id, "_Sync_LFO_Hz"), function(event) {
|
|
7069
|
+
setSyncLFOHzValue(event);
|
|
7413
7070
|
});
|
|
7414
|
-
|
|
7415
|
-
|
|
7071
|
+
//@ts-expect-error
|
|
7072
|
+
var waveformListenerId = (_window4 = window) === null || _window4 === void 0 ? void 0 : (_window___JUCE__4 = _window4.__JUCE__) === null || _window___JUCE__4 === void 0 ? void 0 : (_window___JUCE___backend4 = _window___JUCE__4.backend) === null || _window___JUCE___backend4 === void 0 ? void 0 : _window___JUCE___backend4.addEventListener("LFO".concat(id, "_Cycle"), function(event) {
|
|
7073
|
+
fetch(Juce.getBackendResourceAddress("LFO".concat(id, "_Cycle.json"))).then(function(response) {
|
|
7074
|
+
return response.text();
|
|
7075
|
+
}).then(function(text) {
|
|
7076
|
+
var data = JSON.parse(text);
|
|
7077
|
+
var vals = data === null || data === void 0 ? void 0 : data["LFO".concat(id, "_Cycle")].map(function(item, i) {
|
|
7078
|
+
return {
|
|
7079
|
+
x: i,
|
|
7080
|
+
y: item
|
|
7081
|
+
};
|
|
7082
|
+
});
|
|
7083
|
+
cycleRef.current = vals;
|
|
7084
|
+
});
|
|
7416
7085
|
});
|
|
7417
7086
|
// Canvas
|
|
7418
7087
|
var canvas = document.createElement('canvas');
|
|
@@ -7422,6 +7091,7 @@ function LFOVisualizer(param) {
|
|
|
7422
7091
|
}
|
|
7423
7092
|
var worker = new WorkerFactory$1();
|
|
7424
7093
|
var offscreenCanvas = canvas.transferControlToOffscreen();
|
|
7094
|
+
// Initialize the canvas
|
|
7425
7095
|
worker.postMessage({
|
|
7426
7096
|
type: 'init',
|
|
7427
7097
|
canvas: offscreenCanvas
|
|
@@ -7432,19 +7102,27 @@ function LFOVisualizer(param) {
|
|
|
7432
7102
|
workerRef.current = worker;
|
|
7433
7103
|
}
|
|
7434
7104
|
return function() {
|
|
7105
|
+
var //TODO: Fix random
|
|
7106
|
+
// randState?.valueChangedEvent.removeListener(randListenerId);
|
|
7107
|
+
//@ts-expect-error
|
|
7108
|
+
_window___JUCE___backend, _window___JUCE__, _window, //@ts-expect-error
|
|
7109
|
+
_window___JUCE___backend1, _window___JUCE__1, _window1, // window?.__JUCE__?.backend?.removeEventListener(randAmountListenerId);
|
|
7110
|
+
//@ts-expect-error
|
|
7111
|
+
_window___JUCE___backend2, _window___JUCE__2, _window2, //@ts-expect-error
|
|
7112
|
+
_window___JUCE___backend3, _window___JUCE__3, _window3, //@ts-expect-error
|
|
7113
|
+
_window___JUCE___backend4, _window___JUCE__4, _window4, //@ts-expect-error
|
|
7114
|
+
_window___JUCE___backend5, _window___JUCE__5, _window5, //@ts-expect-error
|
|
7115
|
+
_window___JUCE___backend6, _window___JUCE__6, _window6;
|
|
7435
7116
|
// Remove listeners on unmount
|
|
7436
|
-
waveState === null || waveState === void 0 ? void 0 : waveState.valueChangedEvent.removeListener(waveListenerId);
|
|
7437
|
-
hzState === null || hzState === void 0 ? void 0 : hzState.valueChangedEvent.removeListener(hzListenerId);
|
|
7438
|
-
hzHiState === null || hzHiState === void 0 ? void 0 : hzHiState.valueChangedEvent.removeListener(hzHiListenerId);
|
|
7439
|
-
syncRateState === null || syncRateState === void 0 ? void 0 : syncRateState.valueChangedEvent.removeListener(syncRateListenerId);
|
|
7440
7117
|
syncTypeState === null || syncTypeState === void 0 ? void 0 : syncTypeState.valueChangedEvent.removeListener(syncTypeListenerId);
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7118
|
+
waveState === null || waveState === void 0 ? void 0 : waveState.valueChangedEvent.removeListener(waveListenerId);
|
|
7119
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.removeEventListener(waveformListenerId);
|
|
7120
|
+
(_window1 = window) === null || _window1 === void 0 ? void 0 : (_window___JUCE__1 = _window1.__JUCE__) === null || _window___JUCE__1 === void 0 ? void 0 : (_window___JUCE___backend1 = _window___JUCE__1.backend) === null || _window___JUCE___backend1 === void 0 ? void 0 : _window___JUCE___backend1.removeEventListener(rampListenerId);
|
|
7121
|
+
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window___JUCE__2 = _window2.__JUCE__) === null || _window___JUCE__2 === void 0 ? void 0 : (_window___JUCE___backend2 = _window___JUCE__2.backend) === null || _window___JUCE___backend2 === void 0 ? void 0 : _window___JUCE___backend2.removeEventListener(hzModulatedListenerId);
|
|
7122
|
+
(_window3 = window) === null || _window3 === void 0 ? void 0 : (_window___JUCE__3 = _window3.__JUCE__) === null || _window___JUCE__3 === void 0 ? void 0 : (_window___JUCE___backend3 = _window___JUCE__3.backend) === null || _window___JUCE___backend3 === void 0 ? void 0 : _window___JUCE___backend3.removeEventListener(hzHiModulatedListenerId);
|
|
7123
|
+
(_window4 = window) === null || _window4 === void 0 ? void 0 : (_window___JUCE__4 = _window4.__JUCE__) === null || _window___JUCE__4 === void 0 ? void 0 : (_window___JUCE___backend4 = _window___JUCE__4.backend) === null || _window___JUCE___backend4 === void 0 ? void 0 : _window___JUCE___backend4.removeEventListener(syncLFOHzListenerId);
|
|
7124
|
+
(_window5 = window) === null || _window5 === void 0 ? void 0 : (_window___JUCE__5 = _window5.__JUCE__) === null || _window___JUCE__5 === void 0 ? void 0 : (_window___JUCE___backend5 = _window___JUCE__5.backend) === null || _window___JUCE___backend5 === void 0 ? void 0 : _window___JUCE___backend5.removeEventListener(waveformListenerId);
|
|
7125
|
+
(_window6 = window) === null || _window6 === void 0 ? void 0 : (_window___JUCE__6 = _window6.__JUCE__) === null || _window___JUCE__6 === void 0 ? void 0 : (_window___JUCE___backend6 = _window___JUCE__6.backend) === null || _window___JUCE___backend6 === void 0 ? void 0 : _window___JUCE___backend6.removeEventListener(rampListenerId);
|
|
7448
7126
|
if (workerRef === null || workerRef === void 0 ? void 0 : workerRef.current) {
|
|
7449
7127
|
workerRef === null || workerRef === void 0 ? void 0 : workerRef.current.terminate();
|
|
7450
7128
|
workerRef.current = null;
|
|
@@ -7454,30 +7132,7 @@ function LFOVisualizer(param) {
|
|
|
7454
7132
|
}, [
|
|
7455
7133
|
window
|
|
7456
7134
|
]);
|
|
7457
|
-
useEffect(function() {
|
|
7458
|
-
var _Object_values;
|
|
7459
|
-
var pointValues = getSingleCyclePointArray({
|
|
7460
|
-
waveType: waveType !== null ? (_Object_values = Object.values(WaveTypes)) === null || _Object_values === void 0 ? void 0 : _Object_values[waveType] : null,
|
|
7461
|
-
pulseWidth: widthValue,
|
|
7462
|
-
ampValue: ampValue,
|
|
7463
|
-
phaseValue: phaseValue
|
|
7464
|
-
});
|
|
7465
|
-
setPointArray(pointValues);
|
|
7466
|
-
}, [
|
|
7467
|
-
waveType,
|
|
7468
|
-
window,
|
|
7469
|
-
WaveTypes,
|
|
7470
|
-
widthValue,
|
|
7471
|
-
ampValue,
|
|
7472
|
-
phaseValue
|
|
7473
|
-
]);
|
|
7474
7135
|
var renderFuction = function() {
|
|
7475
|
-
// workerRef?.current?.postMessage({
|
|
7476
|
-
// type: 'updateAnimation',
|
|
7477
|
-
// rampValue: data,
|
|
7478
|
-
// height: height * 0.75,
|
|
7479
|
-
// width,
|
|
7480
|
-
// });
|
|
7481
7136
|
if (workerRef === null || workerRef === void 0 ? void 0 : workerRef.current) {
|
|
7482
7137
|
workerRef.current.onmessage = function(e) {
|
|
7483
7138
|
var _document_getElementById, _document;
|
|
@@ -7487,18 +7142,6 @@ function LFOVisualizer(param) {
|
|
|
7487
7142
|
};
|
|
7488
7143
|
}
|
|
7489
7144
|
};
|
|
7490
|
-
useEffect(function() {
|
|
7491
|
-
var _workerRef_current;
|
|
7492
|
-
workerRef === null || workerRef === void 0 ? void 0 : (_workerRef_current = workerRef.current) === null || _workerRef_current === void 0 ? void 0 : _workerRef_current.postMessage({
|
|
7493
|
-
type: 'updatePointArray',
|
|
7494
|
-
pointArray: pointArray,
|
|
7495
|
-
height: height * 0.75,
|
|
7496
|
-
width: width
|
|
7497
|
-
});
|
|
7498
|
-
renderFuction();
|
|
7499
|
-
}, [
|
|
7500
|
-
pointArray
|
|
7501
|
-
]);
|
|
7502
7145
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
7503
7146
|
flexDirection: Box.flexDirection.column
|
|
7504
7147
|
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
@@ -7536,19 +7179,7 @@ function LFOVisualizer(param) {
|
|
|
7536
7179
|
height: height,
|
|
7537
7180
|
chartType: Chart.chartType.line,
|
|
7538
7181
|
renderAs: Chart.renderAs.canvas
|
|
7539
|
-
})))))
|
|
7540
|
-
padding: [
|
|
7541
|
-
Box.padding.xSmall,
|
|
7542
|
-
Box.padding.none,
|
|
7543
|
-
Box.padding.none,
|
|
7544
|
-
Box.padding.none
|
|
7545
|
-
]
|
|
7546
|
-
}, /*#__PURE__*/ React__default.createElement(LFOIntensityMeter, {
|
|
7547
|
-
width: width + 16,
|
|
7548
|
-
// height={125}
|
|
7549
|
-
id: id,
|
|
7550
|
-
intensityValues: pointArray
|
|
7551
|
-
})));
|
|
7182
|
+
}))))));
|
|
7552
7183
|
}
|
|
7553
7184
|
|
|
7554
7185
|
function _array_like_to_array$3(arr, len) {
|