zds-pickers 4.0.9 → 4.0.11
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/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1890 -1265
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +8 -4
- package/lib/index.ts +11 -4
- package/package.json +1 -1
- package/tsconfig.json +1 -0
- /package/{lib → dist}/hooks/useComponentSize.js +0 -0
- /package/{lib → dist}/hooks/useStateWithDynamicDefault.js +0 -0
- /package/{lib → dist}/index.js +0 -0
- /package/{lib → dist}/midi/ccValues.js +0 -0
- /package/{lib → dist}/midi/export.js +0 -0
- /package/{lib → dist}/other/DefaultTooltip.js +0 -0
- /package/{lib → dist}/other/OctavePlayer.js +0 -0
- /package/{lib → dist}/other/SVGText.js +0 -0
- /package/{lib → dist}/other/SoundFontProvider.js +0 -0
- /package/{lib → dist}/pickers/CCPicker.js +0 -0
- /package/{lib → dist}/pickers/ChannelMappingPicker.js +0 -0
- /package/{lib → dist}/pickers/ChannelPicker.js +0 -0
- /package/{lib → dist}/pickers/Knob.js +0 -0
- /package/{lib → dist}/pickers/KnobPicker.js +0 -0
- /package/{lib → dist}/pickers/LatchPicker.js +0 -0
- /package/{lib → dist}/pickers/MappingPicker.js +0 -0
- /package/{lib → dist}/pickers/NotePicker.js +0 -0
- /package/{lib → dist}/pickers/PianoPicker.js +0 -0
- /package/{lib → dist}/pickers/PolarityPicker.js +0 -0
- /package/{lib → dist}/pickers/ResponseCurve.js +0 -0
- /package/{lib → dist}/pickers/ResponseCurvePicker.js +0 -0
- /package/{lib → dist}/pickers/Select.js +0 -0
- /package/{lib → dist}/pickers/StatusPicker.js +0 -0
- /package/{lib → dist}/pickers/ValuePicker.js +0 -0
- /package/{lib → dist}/pickers/knobSkin10.js +0 -0
- /package/{lib → dist}/rotaryKnob/InternalInput.js +0 -0
- /package/{lib → dist}/rotaryKnob/Types.js +0 -0
- /package/{lib → dist}/rotaryKnob/helpers/DrawCircle.js +0 -0
- /package/{lib → dist}/rotaryKnob/helpers/DrawLine.js +0 -0
- /package/{lib → dist}/rotaryKnob/helpers/HelpersOverlay.js +0 -0
- /package/{lib → dist}/rotaryKnob/helpers/KnobVisualHelpers.js +0 -0
- /package/{lib → dist}/rotaryKnob/index.js +0 -0
- /package/{lib → dist}/rotaryKnob/knobdefaultskin.js +0 -0
- /package/{lib → dist}/rotaryKnob/utils.js +0 -0
- /package/{lib → dist}/utils.js +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
var dl = Object.defineProperty;
|
|
2
|
+
var ml = (r, a, t) => a in r ? dl(r, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[a] = t;
|
|
3
|
+
var it = (r, a, t) => ml(r, typeof a != "symbol" ? a + "" : a, t);
|
|
1
4
|
import { jsx as O, jsxs as ne, Fragment as Ga } from "react/jsx-runtime";
|
|
2
|
-
import le, { forwardRef as Se, useCallback as Re, useMemo as Be, Children as
|
|
3
|
-
import
|
|
4
|
-
import { drag as
|
|
5
|
-
import { scaleLinear as
|
|
6
|
-
import { select as
|
|
7
|
-
import
|
|
5
|
+
import le, { forwardRef as Se, useCallback as Re, useMemo as Be, Children as pl, isValidElement as hl, useState as Te, useEffect as ye, createElement as fl, Fragment as gl, useRef as Ie, useLayoutEffect as Tl } from "react";
|
|
6
|
+
import on, { components as Sl } from "react-select";
|
|
7
|
+
import { drag as Cl } from "d3-drag";
|
|
8
|
+
import { scaleLinear as cn } from "d3-scale";
|
|
9
|
+
import { select as sn } from "d3-selection";
|
|
10
|
+
import vl from "react-dom";
|
|
8
11
|
var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
12
|
function Ve(r) {
|
|
10
13
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
11
14
|
}
|
|
12
|
-
function
|
|
15
|
+
function Rl(r) {
|
|
13
16
|
if (r.__esModule) return r;
|
|
14
17
|
var a = r.default;
|
|
15
18
|
if (typeof a == "function") {
|
|
@@ -28,15 +31,15 @@ function Sl(r) {
|
|
|
28
31
|
});
|
|
29
32
|
}), t;
|
|
30
33
|
}
|
|
31
|
-
var
|
|
34
|
+
var ct = { exports: {} };
|
|
32
35
|
/*!
|
|
33
36
|
Copyright (c) 2018 Jed Watson.
|
|
34
37
|
Licensed under the MIT License (MIT), see
|
|
35
38
|
http://jedwatson.github.io/classnames
|
|
36
39
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
+
var ln;
|
|
41
|
+
function _l() {
|
|
42
|
+
return ln || (ln = 1, function(r) {
|
|
40
43
|
(function() {
|
|
41
44
|
var a = {}.hasOwnProperty;
|
|
42
45
|
function t() {
|
|
@@ -65,106 +68,196 @@ function Cl() {
|
|
|
65
68
|
}
|
|
66
69
|
r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
|
|
67
70
|
})();
|
|
68
|
-
}(
|
|
71
|
+
}(ct)), ct.exports;
|
|
69
72
|
}
|
|
70
|
-
var
|
|
71
|
-
const je = /* @__PURE__ */ Ve(
|
|
73
|
+
var bl = _l();
|
|
74
|
+
const je = /* @__PURE__ */ Ve(bl), Fa = (r) => Array.from(new Array(r).keys()), xa = (r, a = 127, t = 0) => {
|
|
72
75
|
let e = typeof r == "string" ? Number.parseInt(r, 10) : r;
|
|
73
76
|
return (Number.isNaN(e) || e === null) && (e = t), e >= t ? e <= a ? e : a : t;
|
|
74
|
-
},
|
|
77
|
+
}, Hl = (r, a) => (t) => t == null ? void 0 : t.find((e) => (e == null ? void 0 : e[r]) === a), yl = (...r) => (a) => Object.entries(a).filter(([t]) => !r.flat().map(String).includes(t)).reduce((t, [e, n]) => Object.assign(t, { [e]: n }), {}), { IndicatorsContainer: Ml, Placeholder: un, ValueContainer: kl } = Sl, Pn = ({
|
|
78
|
+
children: r,
|
|
79
|
+
...a
|
|
80
|
+
}) => {
|
|
75
81
|
var e;
|
|
76
82
|
const t = (e = a.selectProps) == null ? void 0 : e.actionButton;
|
|
77
|
-
return O(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
83
|
+
return /* @__PURE__ */ O(Ml, { ...a, children: /* @__PURE__ */ ne(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
onMouseDown: (n) => {
|
|
87
|
+
n.stopPropagation(), n.preventDefault();
|
|
88
|
+
},
|
|
89
|
+
style: { display: "flex" },
|
|
90
|
+
children: [
|
|
91
|
+
t,
|
|
92
|
+
r
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
) });
|
|
96
|
+
}, wl = ({
|
|
97
|
+
children: r,
|
|
98
|
+
...a
|
|
99
|
+
}) => /* @__PURE__ */ ne(kl, { ...a, children: [
|
|
100
|
+
/* @__PURE__ */ O(
|
|
101
|
+
un,
|
|
102
|
+
{
|
|
103
|
+
...a,
|
|
104
|
+
innerProps: a.innerProps || {},
|
|
105
|
+
className: a.hasValue || a.selectProps.inputValue ? "shrunk" : "",
|
|
106
|
+
isFocused: a.isFocused ?? !1,
|
|
107
|
+
children: a.selectProps.placeholder
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
pl.map(
|
|
111
|
+
r,
|
|
112
|
+
(t) => hl(t) && t.type !== un ? t : null
|
|
113
|
+
)
|
|
114
|
+
] }), _e = Se(
|
|
115
|
+
(r, a) => {
|
|
116
|
+
const {
|
|
117
|
+
components: t,
|
|
118
|
+
disabled: e,
|
|
119
|
+
label: n,
|
|
120
|
+
onChange: o,
|
|
121
|
+
options: s = [],
|
|
122
|
+
preserveMenuWidth: i,
|
|
123
|
+
shrinkLabel: c,
|
|
124
|
+
value: l,
|
|
125
|
+
...h
|
|
126
|
+
} = r, u = Re(
|
|
127
|
+
(f) => {
|
|
128
|
+
f && o(f.value);
|
|
129
|
+
},
|
|
130
|
+
[o]
|
|
131
|
+
), p = s.reduce((f, v) => "entries" in v ? f.concat(v.entries) : f.concat(v), []), d = p.find((f) => l === f.value) || void 0, m = Be(() => {
|
|
132
|
+
const f = i ? {
|
|
133
|
+
menu: (v) => yl("width")(v),
|
|
134
|
+
menuList: (v) => ({
|
|
135
|
+
...v,
|
|
136
|
+
overflowX: "hidden"
|
|
137
|
+
}),
|
|
138
|
+
option: (v) => ({
|
|
139
|
+
...v,
|
|
140
|
+
whiteSpace: "nowrap",
|
|
141
|
+
paddingRight: 10
|
|
142
|
+
})
|
|
143
|
+
} : {};
|
|
144
|
+
return c ? {
|
|
145
|
+
...f,
|
|
146
|
+
container: (v) => ({
|
|
147
|
+
...v,
|
|
148
|
+
marginTop: 10
|
|
149
|
+
}),
|
|
150
|
+
placeholder: (v, G) => ({
|
|
151
|
+
position: "absolute",
|
|
152
|
+
left: G.hasValue || G.selectProps.inputValue ? -2 : "4%",
|
|
153
|
+
top: G.hasValue || G.selectProps.inputValue ? -12 : "50%",
|
|
154
|
+
transition: "top 0.1s, font-size 0.1s, color 0.1s",
|
|
155
|
+
fontSize: (G.hasValue || G.selectProps.inputValue) && 13
|
|
156
|
+
}),
|
|
157
|
+
valueContainer: (v) => ({
|
|
158
|
+
...v,
|
|
159
|
+
overflow: "visible"
|
|
160
|
+
})
|
|
161
|
+
} : {
|
|
162
|
+
...f
|
|
163
|
+
};
|
|
164
|
+
}, [i, c]);
|
|
165
|
+
return c ? /* @__PURE__ */ O("div", { className: "zds-pickers__container", children: /* @__PURE__ */ O(
|
|
166
|
+
on,
|
|
167
|
+
{
|
|
168
|
+
...h,
|
|
169
|
+
classNamePrefix: "zds-pickers",
|
|
170
|
+
components: {
|
|
171
|
+
IndicatorsContainer: Pn,
|
|
172
|
+
ValueContainer: wl,
|
|
173
|
+
...t
|
|
174
|
+
},
|
|
175
|
+
isDisabled: e,
|
|
176
|
+
onChange: u,
|
|
177
|
+
options: p,
|
|
178
|
+
placeholder: n,
|
|
179
|
+
ref: a,
|
|
180
|
+
styles: m,
|
|
181
|
+
value: d
|
|
182
|
+
}
|
|
183
|
+
) }) : /* @__PURE__ */ ne("div", { className: "zds-pickers__container", children: [
|
|
184
|
+
!!n && /* @__PURE__ */ O("span", { className: "zds-pickers__label", children: n }),
|
|
185
|
+
/* @__PURE__ */ O(
|
|
186
|
+
on,
|
|
187
|
+
{
|
|
188
|
+
...h,
|
|
189
|
+
classNamePrefix: "zds-pickers",
|
|
190
|
+
components: {
|
|
191
|
+
IndicatorsContainer: Pn,
|
|
192
|
+
...t
|
|
193
|
+
},
|
|
194
|
+
isDisabled: e,
|
|
195
|
+
onChange: u,
|
|
196
|
+
options: p,
|
|
197
|
+
ref: a,
|
|
198
|
+
styles: m,
|
|
199
|
+
value: d
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
] });
|
|
203
|
+
}
|
|
204
|
+
), Bl = Fa(16).map((r) => ({
|
|
149
205
|
value: r,
|
|
150
206
|
label: r
|
|
151
|
-
})),
|
|
152
|
-
const [n, o] = Te([]), s = Re(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return null;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
207
|
+
})), i1 = Se(({ channels: r, className: a, ...t }, e) => {
|
|
208
|
+
const [n, o] = Te([]), s = Re(
|
|
209
|
+
({ value: i, label: c }, { context: l }) => {
|
|
210
|
+
if (i === "separator")
|
|
211
|
+
return /* @__PURE__ */ O("span", { className: "zds-mappings-user-mapping", children: c });
|
|
212
|
+
if (typeof i != "number") return null;
|
|
213
|
+
const h = r[i];
|
|
214
|
+
return h ? /* @__PURE__ */ ne("span", { className: "mapping-entry", children: [
|
|
215
|
+
/* @__PURE__ */ ne("b", { children: [
|
|
216
|
+
i + 1,
|
|
217
|
+
l === "value" && " -"
|
|
218
|
+
] }),
|
|
219
|
+
/* @__PURE__ */ O("span", { className: "mapping-entry-label", children: h.label })
|
|
220
|
+
] }) : /* @__PURE__ */ ne("span", { className: "mapping-entry empty-mapping-entry", children: [
|
|
221
|
+
/* @__PURE__ */ ne("b", { children: [
|
|
222
|
+
i + 1,
|
|
223
|
+
l === "value" && " -"
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ O("span", { className: "mapping-entry-label", children: "no mapping" })
|
|
226
|
+
] });
|
|
227
|
+
},
|
|
228
|
+
[r]
|
|
229
|
+
);
|
|
160
230
|
return ye(() => {
|
|
161
|
-
const i =
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
231
|
+
const i = Bl.sort(
|
|
232
|
+
(h, u) => typeof h.value == "number" && typeof u.value == "number" && r[h.value] && !r[u.value] ? -1 : typeof h.value == "number" && typeof u.value == "number" && !r[h.value] && r[u.value] ? 1 : typeof h.value == "number" && typeof u.value == "number" ? h.value - u.value : 0
|
|
233
|
+
), c = i.filter(
|
|
234
|
+
({ value: h }) => typeof h == "number" && !!r[h]
|
|
235
|
+
).length, l = i.some(({ value: h }) => h === "separator");
|
|
236
|
+
c && c < 16 && !l && i.splice(c, 0, { label: /* @__PURE__ */ O("hr", {}), value: "separator" }), o(i);
|
|
237
|
+
}, [r]), /* @__PURE__ */ O(
|
|
238
|
+
_e,
|
|
239
|
+
{
|
|
240
|
+
...t,
|
|
241
|
+
className: je(a, "channel-mapping-picker"),
|
|
242
|
+
formatOptionLabel: s,
|
|
243
|
+
options: n,
|
|
244
|
+
ref: e
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}), Dl = Fa(16).map((r) => ({
|
|
165
248
|
value: r,
|
|
166
249
|
label: `Channel ${r + 1}`
|
|
167
|
-
})),
|
|
250
|
+
})), Ol = (r, { context: a }) => a === "value" ? r.label : Number.parseInt(String(r.value)) + 1, Al = (r, a) => a ? String(r.label).toLowerCase().includes(a.toLowerCase()) : !0, c1 = Se(({ className: r, ...a }, t) => /* @__PURE__ */ O(
|
|
251
|
+
_e,
|
|
252
|
+
{
|
|
253
|
+
...a,
|
|
254
|
+
className: je(r, "channel-picker"),
|
|
255
|
+
filterOptions: Al,
|
|
256
|
+
formatOptionLabel: Ol,
|
|
257
|
+
options: Dl,
|
|
258
|
+
ref: t
|
|
259
|
+
}
|
|
260
|
+
)), Ui = ({ children: r }) => fl(gl, null, r), Ft = (r) => {
|
|
168
261
|
const [a, t] = Te(r);
|
|
169
262
|
return ye(() => {
|
|
170
263
|
t(r);
|
|
@@ -179,10 +272,10 @@ var er = { exports: {} }, rr = { exports: {} }, J = {};
|
|
|
179
272
|
* This source code is licensed under the MIT license found in the
|
|
180
273
|
* LICENSE file in the root directory of this source tree.
|
|
181
274
|
*/
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
if (
|
|
185
|
-
|
|
275
|
+
var dn;
|
|
276
|
+
function El() {
|
|
277
|
+
if (dn) return J;
|
|
278
|
+
dn = 1;
|
|
186
279
|
var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, n = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, f = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, G = r ? Symbol.for("react.responder") : 60118, K = r ? Symbol.for("react.scope") : 60119;
|
|
187
280
|
function R(P) {
|
|
188
281
|
if (typeof P == "object" && P !== null) {
|
|
@@ -254,9 +347,9 @@ var $ = {};
|
|
|
254
347
|
* This source code is licensed under the MIT license found in the
|
|
255
348
|
* LICENSE file in the root directory of this source tree.
|
|
256
349
|
*/
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
return
|
|
350
|
+
var mn;
|
|
351
|
+
function Ll() {
|
|
352
|
+
return mn || (mn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
260
353
|
var r = typeof Symbol == "function" && Symbol.for, a = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, n = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, i = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, h = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, p = r ? Symbol.for("react.suspense_list") : 60120, d = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, f = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, G = r ? Symbol.for("react.responder") : 60118, K = r ? Symbol.for("react.scope") : 60119;
|
|
261
354
|
function R(B) {
|
|
262
355
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -337,19 +430,19 @@ function Ol() {
|
|
|
337
430
|
$.AsyncMode = P, $.ConcurrentMode = C, $.ContextConsumer = T, $.ContextProvider = _, $.Element = w, $.ForwardRef = x, $.Fragment = F, $.Lazy = j, $.Memo = ie, $.Portal = oe, $.Profiler = me, $.StrictMode = Y, $.Suspense = Z, $.isAsyncMode = ue, $.isConcurrentMode = H, $.isContextConsumer = M, $.isContextProvider = U, $.isElement = N, $.isForwardRef = q, $.isFragment = D, $.isLazy = L, $.isMemo = W, $.isPortal = I, $.isProfiler = z, $.isStrictMode = V, $.isSuspense = re, $.isValidElementType = R, $.typeOf = S;
|
|
338
431
|
}()), $;
|
|
339
432
|
}
|
|
340
|
-
var
|
|
341
|
-
function
|
|
342
|
-
return
|
|
433
|
+
var pn;
|
|
434
|
+
function zi() {
|
|
435
|
+
return pn || (pn = 1, process.env.NODE_ENV === "production" ? rr.exports = El() : rr.exports = Ll()), rr.exports;
|
|
343
436
|
}
|
|
344
437
|
/*
|
|
345
438
|
object-assign
|
|
346
439
|
(c) Sindre Sorhus
|
|
347
440
|
@license MIT
|
|
348
441
|
*/
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
if (
|
|
352
|
-
|
|
442
|
+
var st, hn;
|
|
443
|
+
function Gl() {
|
|
444
|
+
if (hn) return st;
|
|
445
|
+
hn = 1;
|
|
353
446
|
var r = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
354
447
|
function e(o) {
|
|
355
448
|
if (o == null)
|
|
@@ -378,7 +471,7 @@ function Al() {
|
|
|
378
471
|
return !1;
|
|
379
472
|
}
|
|
380
473
|
}
|
|
381
|
-
return
|
|
474
|
+
return st = n() ? Object.assign : function(o, s) {
|
|
382
475
|
for (var i, c = e(o), l, h = 1; h < arguments.length; h++) {
|
|
383
476
|
i = Object(arguments[h]);
|
|
384
477
|
for (var u in i)
|
|
@@ -390,27 +483,27 @@ function Al() {
|
|
|
390
483
|
}
|
|
391
484
|
}
|
|
392
485
|
return c;
|
|
393
|
-
},
|
|
394
|
-
}
|
|
395
|
-
var st, hn;
|
|
396
|
-
function Ft() {
|
|
397
|
-
if (hn) return st;
|
|
398
|
-
hn = 1;
|
|
399
|
-
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
400
|
-
return st = r, st;
|
|
486
|
+
}, st;
|
|
401
487
|
}
|
|
402
488
|
var lt, fn;
|
|
403
|
-
function
|
|
404
|
-
|
|
489
|
+
function It() {
|
|
490
|
+
if (fn) return lt;
|
|
491
|
+
fn = 1;
|
|
492
|
+
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
493
|
+
return lt = r, lt;
|
|
405
494
|
}
|
|
406
495
|
var ut, gn;
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
|
|
496
|
+
function Fi() {
|
|
497
|
+
return gn || (gn = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
|
|
498
|
+
}
|
|
499
|
+
var Pt, Tn;
|
|
500
|
+
function xl() {
|
|
501
|
+
if (Tn) return Pt;
|
|
502
|
+
Tn = 1;
|
|
410
503
|
var r = function() {
|
|
411
504
|
};
|
|
412
505
|
if (process.env.NODE_ENV !== "production") {
|
|
413
|
-
var a = /* @__PURE__ */
|
|
506
|
+
var a = /* @__PURE__ */ It(), t = {}, e = /* @__PURE__ */ Fi();
|
|
414
507
|
r = function(o) {
|
|
415
508
|
var s = "Warning: " + o;
|
|
416
509
|
typeof console < "u" && console.error(s);
|
|
@@ -450,13 +543,13 @@ function El() {
|
|
|
450
543
|
}
|
|
451
544
|
return n.resetWarningCache = function() {
|
|
452
545
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
453
|
-
},
|
|
546
|
+
}, Pt = n, Pt;
|
|
454
547
|
}
|
|
455
|
-
var
|
|
456
|
-
function
|
|
457
|
-
if (
|
|
458
|
-
|
|
459
|
-
var r =
|
|
548
|
+
var dt, Sn;
|
|
549
|
+
function Kl() {
|
|
550
|
+
if (Sn) return dt;
|
|
551
|
+
Sn = 1;
|
|
552
|
+
var r = zi(), a = Gl(), t = /* @__PURE__ */ It(), e = /* @__PURE__ */ Fi(), n = /* @__PURE__ */ xl(), o = function() {
|
|
460
553
|
};
|
|
461
554
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
462
555
|
var c = "Warning: " + i;
|
|
@@ -469,7 +562,7 @@ function Ll() {
|
|
|
469
562
|
function s() {
|
|
470
563
|
return null;
|
|
471
564
|
}
|
|
472
|
-
return
|
|
565
|
+
return dt = function(i, c) {
|
|
473
566
|
var l = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
474
567
|
function u(H) {
|
|
475
568
|
var M = H && (l && H[l] || H[h]);
|
|
@@ -771,18 +864,18 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
771
864
|
return !H.constructor || !H.constructor.name ? p : H.constructor.name;
|
|
772
865
|
}
|
|
773
866
|
return d.checkPropTypes = n, d.resetWarningCache = n.resetWarningCache, d.PropTypes = d, d;
|
|
774
|
-
},
|
|
867
|
+
}, dt;
|
|
775
868
|
}
|
|
776
|
-
var
|
|
777
|
-
function
|
|
778
|
-
if (
|
|
779
|
-
|
|
780
|
-
var r = /* @__PURE__ */
|
|
869
|
+
var mt, Cn;
|
|
870
|
+
function Nl() {
|
|
871
|
+
if (Cn) return mt;
|
|
872
|
+
Cn = 1;
|
|
873
|
+
var r = /* @__PURE__ */ It();
|
|
781
874
|
function a() {
|
|
782
875
|
}
|
|
783
876
|
function t() {
|
|
784
877
|
}
|
|
785
|
-
return t.resetWarningCache = a,
|
|
878
|
+
return t.resetWarningCache = a, mt = function() {
|
|
786
879
|
function e(s, i, c, l, h, u) {
|
|
787
880
|
if (u !== r) {
|
|
788
881
|
var p = new Error(
|
|
@@ -819,21 +912,21 @@ function Gl() {
|
|
|
819
912
|
resetWarningCache: a
|
|
820
913
|
};
|
|
821
914
|
return o.PropTypes = o, o;
|
|
822
|
-
},
|
|
823
|
-
}
|
|
824
|
-
var
|
|
825
|
-
function
|
|
826
|
-
if (
|
|
827
|
-
if (
|
|
828
|
-
var r =
|
|
829
|
-
er.exports = /* @__PURE__ */
|
|
915
|
+
}, mt;
|
|
916
|
+
}
|
|
917
|
+
var vn;
|
|
918
|
+
function Ii() {
|
|
919
|
+
if (vn) return er.exports;
|
|
920
|
+
if (vn = 1, process.env.NODE_ENV !== "production") {
|
|
921
|
+
var r = zi(), a = !0;
|
|
922
|
+
er.exports = /* @__PURE__ */ Kl()(r.isElement, a);
|
|
830
923
|
} else
|
|
831
|
-
er.exports = /* @__PURE__ */
|
|
924
|
+
er.exports = /* @__PURE__ */ Nl()();
|
|
832
925
|
return er.exports;
|
|
833
926
|
}
|
|
834
|
-
var
|
|
835
|
-
function
|
|
836
|
-
return
|
|
927
|
+
var pt, Rn;
|
|
928
|
+
function ql() {
|
|
929
|
+
return Rn || (Rn = 1, pt = function(r) {
|
|
837
930
|
var a = {};
|
|
838
931
|
function t(e) {
|
|
839
932
|
if (a[e]) return a[e].exports;
|
|
@@ -864,7 +957,7 @@ function xl() {
|
|
|
864
957
|
}([function(r, a) {
|
|
865
958
|
r.exports = le;
|
|
866
959
|
}, function(r, a) {
|
|
867
|
-
r.exports = /* @__PURE__ */
|
|
960
|
+
r.exports = /* @__PURE__ */ Ii();
|
|
868
961
|
}, function(r, a, t) {
|
|
869
962
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
870
963
|
var e, n = t(0), o = ((e = n) && e.__esModule ? e : { default: e }).default.createContext(null);
|
|
@@ -1216,45 +1309,52 @@ function xl() {
|
|
|
1216
1309
|
}(n.default.Component);
|
|
1217
1310
|
a.default = h, h.propTypes = { selector: o.default.string.isRequired, onElementSelected: o.default.func }, h.defaultProps = { onElementSelected: function() {
|
|
1218
1311
|
} };
|
|
1219
|
-
}])),
|
|
1312
|
+
}])), pt;
|
|
1220
1313
|
}
|
|
1221
|
-
var
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1314
|
+
var ht, _n;
|
|
1315
|
+
function Wl() {
|
|
1316
|
+
return _n || (_n = 1, ht = ql()), ht;
|
|
1224
1317
|
}
|
|
1225
|
-
var
|
|
1226
|
-
class
|
|
1318
|
+
var ft = Wl();
|
|
1319
|
+
class Vi extends le.Component {
|
|
1227
1320
|
render() {
|
|
1228
1321
|
const a = this.props, t = {};
|
|
1229
1322
|
function e(u) {
|
|
1230
1323
|
a.onChange(Number(u.target.value));
|
|
1231
1324
|
}
|
|
1232
1325
|
const { value: n, min: o, max: s, step: i, onChange: c, inputRef: l, ...h } = a;
|
|
1233
|
-
return
|
|
1326
|
+
return /* @__PURE__ */ O(
|
|
1327
|
+
"input",
|
|
1328
|
+
{
|
|
1329
|
+
ref: l,
|
|
1330
|
+
value: n,
|
|
1331
|
+
step: i,
|
|
1332
|
+
onChange: e,
|
|
1333
|
+
style: t,
|
|
1334
|
+
type: "range",
|
|
1335
|
+
min: o,
|
|
1336
|
+
max: s,
|
|
1337
|
+
...h
|
|
1338
|
+
}
|
|
1339
|
+
);
|
|
1234
1340
|
}
|
|
1235
1341
|
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
configurable: !0,
|
|
1239
|
-
writable: !0,
|
|
1240
|
-
value: {
|
|
1241
|
-
step: 1
|
|
1242
|
-
}
|
|
1342
|
+
it(Vi, "defaultProps", {
|
|
1343
|
+
step: 1
|
|
1243
1344
|
});
|
|
1244
|
-
function
|
|
1345
|
+
function Ul(r) {
|
|
1245
1346
|
return r * Math.PI / 180;
|
|
1246
1347
|
}
|
|
1247
|
-
function
|
|
1348
|
+
function ji(r, a) {
|
|
1248
1349
|
return r >= 0 && a >= 0 ? 1 : r <= 0 && a >= 0 ? 2 : r <= 0 && a <= 0 ? 3 : r >= 0 && a <= 0 ? 4 : 1;
|
|
1249
1350
|
}
|
|
1250
|
-
function
|
|
1251
|
-
if (r === 0 && a === 0)
|
|
1252
|
-
return 0;
|
|
1351
|
+
function zl(r, a) {
|
|
1352
|
+
if (r === 0 && a === 0) return 0;
|
|
1253
1353
|
let e = Math.atan(r / a) * 180 / Math.PI;
|
|
1254
|
-
const n =
|
|
1354
|
+
const n = ji(r, a);
|
|
1255
1355
|
return n === 1 && (e = 90 - e), n === 2 && (e = 90 - e), n === 3 && (e = 270 - e), n === 4 && (e = 270 - e), e;
|
|
1256
1356
|
}
|
|
1257
|
-
function
|
|
1357
|
+
function Fl(r) {
|
|
1258
1358
|
let a;
|
|
1259
1359
|
a = document.documentElement || document.body.parentNode;
|
|
1260
1360
|
const t = (typeof a.scrollLeft == "number" ? a : document.body).scrollLeft;
|
|
@@ -1265,76 +1365,163 @@ function Wl(r) {
|
|
|
1265
1365
|
const ze = {
|
|
1266
1366
|
// toGlobalCoordinates,
|
|
1267
1367
|
// toLocalCoordinates,
|
|
1268
|
-
toRadians:
|
|
1269
|
-
getQuadrant:
|
|
1270
|
-
getAngleForPoint:
|
|
1271
|
-
transformBoundingClientRectToDocument:
|
|
1368
|
+
toRadians: Ul,
|
|
1369
|
+
getQuadrant: ji,
|
|
1370
|
+
getAngleForPoint: zl,
|
|
1371
|
+
transformBoundingClientRectToDocument: Fl
|
|
1272
1372
|
};
|
|
1273
|
-
class
|
|
1373
|
+
class bn extends le.Component {
|
|
1274
1374
|
render() {
|
|
1275
|
-
const {
|
|
1276
|
-
|
|
1375
|
+
const {
|
|
1376
|
+
r: a,
|
|
1377
|
+
borderColor: t = "black",
|
|
1378
|
+
fillColor: e = "transparent",
|
|
1379
|
+
borderWidth: n = 2,
|
|
1380
|
+
fillOpacity: o = 1,
|
|
1381
|
+
...s
|
|
1382
|
+
} = this.props;
|
|
1383
|
+
return /* @__PURE__ */ O(
|
|
1384
|
+
"circle",
|
|
1385
|
+
{
|
|
1386
|
+
stroke: t,
|
|
1387
|
+
fill: e,
|
|
1388
|
+
fillOpacity: o,
|
|
1389
|
+
r: a,
|
|
1390
|
+
...s
|
|
1391
|
+
}
|
|
1392
|
+
);
|
|
1277
1393
|
}
|
|
1278
1394
|
}
|
|
1279
|
-
class
|
|
1395
|
+
class Il extends le.Component {
|
|
1280
1396
|
render() {
|
|
1281
1397
|
const { width: a = 2, color: t = "black", p1: e, p2: n, ...o } = this.props;
|
|
1282
|
-
return
|
|
1398
|
+
return /* @__PURE__ */ O(
|
|
1399
|
+
"line",
|
|
1400
|
+
{
|
|
1401
|
+
...o,
|
|
1402
|
+
stroke: t,
|
|
1403
|
+
strokeWidth: a,
|
|
1404
|
+
x1: e.x,
|
|
1405
|
+
y1: e.y,
|
|
1406
|
+
x2: n.x,
|
|
1407
|
+
y2: n.y
|
|
1408
|
+
}
|
|
1409
|
+
);
|
|
1283
1410
|
}
|
|
1284
1411
|
}
|
|
1285
|
-
class
|
|
1412
|
+
class Vl extends le.Component {
|
|
1286
1413
|
render() {
|
|
1287
1414
|
const { children: a, ...t } = this.props, e = {
|
|
1288
|
-
overlay: Object.assign(
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1415
|
+
overlay: Object.assign(
|
|
1416
|
+
{
|
|
1417
|
+
width: "100%",
|
|
1418
|
+
height: "100vh",
|
|
1419
|
+
top: 0,
|
|
1420
|
+
left: 0,
|
|
1421
|
+
zIndex: 2147483647,
|
|
1422
|
+
margin: "0",
|
|
1423
|
+
padding: "0",
|
|
1424
|
+
boxSizing: "border-box",
|
|
1425
|
+
position: "fixed"
|
|
1426
|
+
},
|
|
1427
|
+
this.props.overlayStyle
|
|
1428
|
+
)
|
|
1299
1429
|
};
|
|
1300
|
-
return
|
|
1430
|
+
return vl.createPortal(
|
|
1431
|
+
/* @__PURE__ */ O(
|
|
1432
|
+
"div",
|
|
1433
|
+
{
|
|
1434
|
+
style: e.overlay,
|
|
1435
|
+
...t,
|
|
1436
|
+
children: a
|
|
1437
|
+
}
|
|
1438
|
+
),
|
|
1439
|
+
document.body
|
|
1440
|
+
);
|
|
1301
1441
|
}
|
|
1302
1442
|
}
|
|
1303
|
-
class
|
|
1443
|
+
class jl extends le.Component {
|
|
1304
1444
|
constructor() {
|
|
1305
|
-
super(...arguments)
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
centerY: 0,
|
|
1312
|
-
valueMarkerX: 0,
|
|
1313
|
-
valueMarkerY: 0
|
|
1314
|
-
}
|
|
1445
|
+
super(...arguments);
|
|
1446
|
+
it(this, "state", {
|
|
1447
|
+
centerX: 0,
|
|
1448
|
+
centerY: 0,
|
|
1449
|
+
valueMarkerX: 0,
|
|
1450
|
+
valueMarkerY: 0
|
|
1315
1451
|
});
|
|
1316
1452
|
}
|
|
1317
|
-
static getDerivedStateFromProps(
|
|
1318
|
-
if (!
|
|
1319
|
-
|
|
1320
|
-
const e = a.svgRef.getBoundingClientRect(), n = e.width / 2, o = a.radius * Math.cos(ze.toRadians(a.valueAngle - 90)), s = a.radius * Math.sin(ze.toRadians(a.valueAngle - 90));
|
|
1453
|
+
static getDerivedStateFromProps(t, e) {
|
|
1454
|
+
if (!t.svgRef) return e;
|
|
1455
|
+
const n = t.svgRef.getBoundingClientRect(), o = n.width / 2, s = t.radius * Math.cos(ze.toRadians(t.valueAngle - 90)), i = t.radius * Math.sin(ze.toRadians(t.valueAngle - 90));
|
|
1321
1456
|
return {
|
|
1322
|
-
...
|
|
1323
|
-
centerX:
|
|
1324
|
-
centerY:
|
|
1325
|
-
valueMarkerX:
|
|
1326
|
-
valueMarkerY:
|
|
1457
|
+
...e,
|
|
1458
|
+
centerX: n.left + o,
|
|
1459
|
+
centerY: n.top + o,
|
|
1460
|
+
valueMarkerX: s,
|
|
1461
|
+
valueMarkerY: i
|
|
1327
1462
|
};
|
|
1328
1463
|
}
|
|
1329
1464
|
render() {
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1465
|
+
const t = this.props.minimumDragDistance <= this.props.radius ? "green" : "grey", e = this.props.minimumDragDistance <= this.props.radius ? "#88E22D" : "#D8D8D8", n = this.props.minimumDragDistance >= this.props.radius;
|
|
1466
|
+
return /* @__PURE__ */ O(Vl, { children: /* @__PURE__ */ ne(
|
|
1467
|
+
"svg",
|
|
1468
|
+
{
|
|
1469
|
+
style: { position: "absolute", top: "0", left: "0" },
|
|
1470
|
+
width: "100%",
|
|
1471
|
+
height: "100%",
|
|
1472
|
+
children: [
|
|
1473
|
+
/* @__PURE__ */ O("defs", { children: /* @__PURE__ */ O(
|
|
1474
|
+
"marker",
|
|
1475
|
+
{
|
|
1476
|
+
id: "Triangle",
|
|
1477
|
+
viewBox: "0 0 10 10",
|
|
1478
|
+
refX: "1",
|
|
1479
|
+
refY: "5",
|
|
1480
|
+
markerWidth: "6",
|
|
1481
|
+
markerHeight: "6",
|
|
1482
|
+
orient: "auto",
|
|
1483
|
+
children: /* @__PURE__ */ O("path", { d: "M 0 0 L 10 5 L 0 10 z" })
|
|
1484
|
+
}
|
|
1485
|
+
) }),
|
|
1486
|
+
/* @__PURE__ */ O(
|
|
1487
|
+
bn,
|
|
1488
|
+
{
|
|
1489
|
+
borderColor: t,
|
|
1490
|
+
fillColor: e,
|
|
1491
|
+
fillOpacity: 0.02,
|
|
1492
|
+
r: this.props.radius,
|
|
1493
|
+
cx: this.state.centerX,
|
|
1494
|
+
cy: this.state.centerY
|
|
1495
|
+
}
|
|
1496
|
+
),
|
|
1497
|
+
n && /* @__PURE__ */ O(
|
|
1498
|
+
bn,
|
|
1499
|
+
{
|
|
1500
|
+
borderColor: t,
|
|
1501
|
+
fillColor: e,
|
|
1502
|
+
fillOpacity: 0,
|
|
1503
|
+
r: this.props.minimumDragDistance,
|
|
1504
|
+
cx: this.state.centerX,
|
|
1505
|
+
cy: this.state.centerY
|
|
1506
|
+
}
|
|
1507
|
+
),
|
|
1508
|
+
/* @__PURE__ */ O(
|
|
1509
|
+
Il,
|
|
1510
|
+
{
|
|
1511
|
+
p1: { x: this.state.centerX, y: this.state.centerY },
|
|
1512
|
+
p2: {
|
|
1513
|
+
x: this.state.valueMarkerX + this.state.centerX,
|
|
1514
|
+
y: this.state.valueMarkerY + this.state.centerY
|
|
1515
|
+
},
|
|
1516
|
+
markerEnd: "url(#Triangle)"
|
|
1517
|
+
}
|
|
1518
|
+
)
|
|
1519
|
+
]
|
|
1520
|
+
}
|
|
1521
|
+
) });
|
|
1335
1522
|
}
|
|
1336
1523
|
}
|
|
1337
|
-
const
|
|
1524
|
+
const Xl = {
|
|
1338
1525
|
knobX: 71,
|
|
1339
1526
|
knobY: 71,
|
|
1340
1527
|
svg: `
|
|
@@ -1389,11 +1576,30 @@ const Il = {
|
|
|
1389
1576
|
</g>
|
|
1390
1577
|
</svg>
|
|
1391
1578
|
`
|
|
1392
|
-
},
|
|
1393
|
-
const {
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1579
|
+
}, Jl = (r) => {
|
|
1580
|
+
const {
|
|
1581
|
+
clampMax: a = 360,
|
|
1582
|
+
clampMin: t = 0,
|
|
1583
|
+
defaultValue: e = 0,
|
|
1584
|
+
disabled: n = !1,
|
|
1585
|
+
format: o = (D) => D.toFixed(0),
|
|
1586
|
+
max: s = 100,
|
|
1587
|
+
min: i = 0,
|
|
1588
|
+
onChange: c = () => {
|
|
1589
|
+
},
|
|
1590
|
+
onEnd: l = () => {
|
|
1591
|
+
},
|
|
1592
|
+
onStart: h = () => {
|
|
1593
|
+
},
|
|
1594
|
+
preciseMode: u = !0,
|
|
1595
|
+
rotateDegrees: p = 0,
|
|
1596
|
+
skin: d = Xl,
|
|
1597
|
+
step: m = 1,
|
|
1598
|
+
style: f,
|
|
1599
|
+
unlockDistance: v = 100,
|
|
1600
|
+
value: G,
|
|
1601
|
+
...K
|
|
1602
|
+
} = r, [R, S] = Te(G !== void 0), P = Ie(null), C = Ie(null);
|
|
1397
1603
|
let T, _;
|
|
1398
1604
|
const [w, x] = Te({
|
|
1399
1605
|
svgRef: void 0,
|
|
@@ -1408,7 +1614,7 @@ const Il = {
|
|
|
1408
1614
|
}, ie = (D) => {
|
|
1409
1615
|
const L = D - p;
|
|
1410
1616
|
return oe().invert(F(L));
|
|
1411
|
-
}, oe = () => ((!_ || _.min !== i || _.max !== s || _.clampMin !== t || _.clampMax !== a) && (p < 270 && p > 90 ? T =
|
|
1617
|
+
}, oe = () => ((!_ || _.min !== i || _.max !== s || _.clampMin !== t || _.clampMax !== a) && (p < 270 && p > 90 ? T = cn().domain([i, s]).range([t, a]) : T = cn().domain([s, i]).range([a, t]), T.clamp(!0), _ = {
|
|
1412
1618
|
min: i,
|
|
1413
1619
|
max: s,
|
|
1414
1620
|
clampMin: t,
|
|
@@ -1418,7 +1624,7 @@ const Il = {
|
|
|
1418
1624
|
S(G !== void 0), x((D) => ({
|
|
1419
1625
|
...D,
|
|
1420
1626
|
uncontrolledValue: G ?? e ?? 0
|
|
1421
|
-
})), P.current && (
|
|
1627
|
+
})), P.current && (sn(P.current).on(".drag", null), n || pe(sn(P.current)));
|
|
1422
1628
|
}, [G, e, n]);
|
|
1423
1629
|
const me = (D) => {
|
|
1424
1630
|
w.svgRef || x({ ...w, svgRef: D });
|
|
@@ -1426,22 +1632,21 @@ const Il = {
|
|
|
1426
1632
|
const L = ie(D);
|
|
1427
1633
|
R || x((W) => ({ ...W, uncontrolledValue: L })), n || c(L);
|
|
1428
1634
|
}, Z = () => R ? G ?? 0 : w.uncontrolledValue ?? 0, pe = (D) => {
|
|
1429
|
-
if (!(D != null && D.node()))
|
|
1430
|
-
return;
|
|
1635
|
+
if (!(D != null && D.node())) return;
|
|
1431
1636
|
const L = D.node();
|
|
1432
|
-
if (!L)
|
|
1433
|
-
return;
|
|
1637
|
+
if (!L) return;
|
|
1434
1638
|
let W = L.getBoundingClientRect();
|
|
1435
1639
|
const I = W.width / 2, z = W.height / 2;
|
|
1436
1640
|
let V, re, B, ae = !1;
|
|
1437
1641
|
function Ce(te) {
|
|
1438
|
-
if (!(te != null && te.sourceEvent) || !L)
|
|
1439
|
-
return;
|
|
1642
|
+
if (!(te != null && te.sourceEvent) || !L) return;
|
|
1440
1643
|
const Pe = Z();
|
|
1441
1644
|
W = L.getBoundingClientRect(), D.classed("dragging", !0), h(), V = { x: te.x - I, y: te.y - z }, re = ze.getAngleForPoint(V.x, V.y), B = j(Pe), ae = !1;
|
|
1442
1645
|
}
|
|
1443
1646
|
function fe(te) {
|
|
1444
|
-
const Pe = { x: te.x - I, y: te.y - z }, Ae = Math.sqrt(
|
|
1647
|
+
const Pe = { x: te.x - I, y: te.y - z }, Ae = Math.sqrt(
|
|
1648
|
+
Pe.x ** 2 + Pe.y ** 2
|
|
1649
|
+
);
|
|
1445
1650
|
u ? !ae && Ae >= v && (V = Pe, re = ze.getAngleForPoint(Pe.x, Pe.y), ae = !0) : ae = !0;
|
|
1446
1651
|
const We = ze.getAngleForPoint(Pe.x, Pe.y) - re;
|
|
1447
1652
|
let ge = B + We;
|
|
@@ -1459,19 +1664,23 @@ const Il = {
|
|
|
1459
1664
|
var te;
|
|
1460
1665
|
D.classed("dragging", !1), x((Pe) => ({ ...Pe, dragging: !1 })), l(), (te = C.current) == null || te.focus();
|
|
1461
1666
|
}
|
|
1462
|
-
const qe =
|
|
1667
|
+
const qe = Cl().container(() => L).on("start", Ce).on("drag", fe).on("end", Ne);
|
|
1463
1668
|
D.call(qe);
|
|
1464
1669
|
}, ue = (D) => {
|
|
1465
1670
|
R || x((L) => ({ ...L, uncontrolledValue: D })), n || c(D);
|
|
1466
1671
|
}, H = Z(), M = j(H), U = {
|
|
1467
|
-
container: Object.assign(
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1672
|
+
container: Object.assign(
|
|
1673
|
+
{},
|
|
1674
|
+
{
|
|
1675
|
+
width: "50px",
|
|
1676
|
+
height: "50px",
|
|
1677
|
+
overflow: "hidden",
|
|
1678
|
+
position: "relative",
|
|
1679
|
+
userSelect: "none",
|
|
1680
|
+
cursor: "crosshair"
|
|
1681
|
+
},
|
|
1682
|
+
f
|
|
1683
|
+
),
|
|
1475
1684
|
input: {
|
|
1476
1685
|
width: "50%",
|
|
1477
1686
|
position: "absolute",
|
|
@@ -1484,10 +1693,71 @@ const Il = {
|
|
|
1484
1693
|
const I = {};
|
|
1485
1694
|
for (const z of D.attrs || [])
|
|
1486
1695
|
I[z.name] = z.value(r, H);
|
|
1487
|
-
return
|
|
1696
|
+
return /* @__PURE__ */ O(
|
|
1697
|
+
ft.SvgProxy,
|
|
1698
|
+
{
|
|
1699
|
+
selector: D.element,
|
|
1700
|
+
...I,
|
|
1701
|
+
children: W
|
|
1702
|
+
},
|
|
1703
|
+
L
|
|
1704
|
+
);
|
|
1488
1705
|
}) : null;
|
|
1489
|
-
return
|
|
1490
|
-
|
|
1706
|
+
return /* @__PURE__ */ ne(Ga, { children: [
|
|
1707
|
+
/* @__PURE__ */ ne(
|
|
1708
|
+
"div",
|
|
1709
|
+
{
|
|
1710
|
+
ref: P,
|
|
1711
|
+
style: U.container,
|
|
1712
|
+
...K,
|
|
1713
|
+
children: [
|
|
1714
|
+
/* @__PURE__ */ O(
|
|
1715
|
+
Vi,
|
|
1716
|
+
{
|
|
1717
|
+
disabled: n,
|
|
1718
|
+
inputRef: C,
|
|
1719
|
+
style: U.input,
|
|
1720
|
+
value: H,
|
|
1721
|
+
min: i,
|
|
1722
|
+
max: s,
|
|
1723
|
+
step: m,
|
|
1724
|
+
onChange: ue
|
|
1725
|
+
}
|
|
1726
|
+
),
|
|
1727
|
+
/* @__PURE__ */ ne(
|
|
1728
|
+
ft.SvgLoader,
|
|
1729
|
+
{
|
|
1730
|
+
height: "100%",
|
|
1731
|
+
svgXML: d.svg,
|
|
1732
|
+
width: "100%",
|
|
1733
|
+
onSVGReady: me,
|
|
1734
|
+
children: [
|
|
1735
|
+
/* @__PURE__ */ O(
|
|
1736
|
+
ft.SvgProxy,
|
|
1737
|
+
{
|
|
1738
|
+
selector: "#knob",
|
|
1739
|
+
transform: `$ORIGINAL rotate(${M}, ${d.knobX}, ${d.knobY})`
|
|
1740
|
+
}
|
|
1741
|
+
),
|
|
1742
|
+
q
|
|
1743
|
+
]
|
|
1744
|
+
}
|
|
1745
|
+
)
|
|
1746
|
+
]
|
|
1747
|
+
}
|
|
1748
|
+
),
|
|
1749
|
+
w.dragging && u && /* @__PURE__ */ O(
|
|
1750
|
+
jl,
|
|
1751
|
+
{
|
|
1752
|
+
svgRef: w.svgRef,
|
|
1753
|
+
radius: w.dragDistance,
|
|
1754
|
+
mousePos: w.mousePos,
|
|
1755
|
+
minimumDragDistance: v,
|
|
1756
|
+
valueAngle: w.valueAngle
|
|
1757
|
+
}
|
|
1758
|
+
)
|
|
1759
|
+
] });
|
|
1760
|
+
}, $l = {
|
|
1491
1761
|
knobX: 71.44,
|
|
1492
1762
|
knobY: 71.44,
|
|
1493
1763
|
svg: `
|
|
@@ -1578,84 +1848,124 @@ const Il = {
|
|
|
1578
1848
|
]
|
|
1579
1849
|
}
|
|
1580
1850
|
]
|
|
1581
|
-
},
|
|
1582
|
-
const {
|
|
1583
|
-
|
|
1584
|
-
|
|
1851
|
+
}, Yl = (r) => {
|
|
1852
|
+
const {
|
|
1853
|
+
disabled: a = !1,
|
|
1854
|
+
max: t = 127,
|
|
1855
|
+
min: e = 0,
|
|
1856
|
+
onChange: n,
|
|
1857
|
+
value: o = 0,
|
|
1858
|
+
wheelEnabled: s = !1,
|
|
1859
|
+
wheelSensitivity: i = 0.1,
|
|
1860
|
+
...c
|
|
1861
|
+
} = r, [l, h] = Ft(o), u = (d) => {
|
|
1862
|
+
if (a) return;
|
|
1585
1863
|
const m = xa(Number.parseInt(String(d), 10), t, e);
|
|
1586
1864
|
h(m), n && n(m);
|
|
1587
|
-
}, p = Re(
|
|
1588
|
-
|
|
1589
|
-
return;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
}, n1 = Se((r, a) => {
|
|
1629
|
-
const { disabled: t, highToLow: e, includeLabel: n, includePicker: o, knobProps: s, label: i, max: c = 127, min: l = 0, onChange: h, shrinkLabel: u, value: p = 0, wheelEnabled: d, wheelSensitivity: m = 0.1, ...f } = r, v = Be(() => {
|
|
1630
|
-
const G = Fa(c - l + 1).map((K) => l + K).map((K) => ({ value: K, label: String(K) }));
|
|
1631
|
-
return e ? G.reverse() : G;
|
|
1632
|
-
}, [e, c, l]);
|
|
1633
|
-
return ne("div", { className: "zds-pickers__container", children: [!!(!u && i) && O("span", { className: "zds-pickers__label", children: i }), ne("div", { style: { display: "inline-flex", gap: 10, alignItems: "center" }, children: [!!o && O(_e, {
|
|
1634
|
-
...f,
|
|
1635
|
-
disabled: t,
|
|
1636
|
-
isDisabled: t,
|
|
1637
|
-
onChange: h,
|
|
1638
|
-
options: v,
|
|
1639
|
-
ref: a,
|
|
1640
|
-
value: p
|
|
1641
|
-
}), O(Xl, {
|
|
1865
|
+
}, p = Re(
|
|
1866
|
+
(d) => {
|
|
1867
|
+
if (!s || a) return;
|
|
1868
|
+
d.preventDefault();
|
|
1869
|
+
const m = -d.deltaY * i, f = xa(l + m, t, e);
|
|
1870
|
+
h(f), n && n(f);
|
|
1871
|
+
},
|
|
1872
|
+
[
|
|
1873
|
+
s,
|
|
1874
|
+
a,
|
|
1875
|
+
i,
|
|
1876
|
+
l,
|
|
1877
|
+
t,
|
|
1878
|
+
e,
|
|
1879
|
+
n,
|
|
1880
|
+
h
|
|
1881
|
+
]
|
|
1882
|
+
);
|
|
1883
|
+
return /* @__PURE__ */ O(
|
|
1884
|
+
Jl,
|
|
1885
|
+
{
|
|
1886
|
+
clampMax: 320,
|
|
1887
|
+
clampMin: 40,
|
|
1888
|
+
className: "zds-pickers__knob-container",
|
|
1889
|
+
disabled: a,
|
|
1890
|
+
onChange: u,
|
|
1891
|
+
onWheel: s ? p : void 0,
|
|
1892
|
+
preciseMode: !1,
|
|
1893
|
+
rotateDegrees: 180,
|
|
1894
|
+
skin: $l,
|
|
1895
|
+
style: { opacity: a ? 0.4 : 1 },
|
|
1896
|
+
unlockDistance: 0,
|
|
1897
|
+
defaultValue: l,
|
|
1898
|
+
max: t,
|
|
1899
|
+
min: e,
|
|
1900
|
+
value: l,
|
|
1901
|
+
...c
|
|
1902
|
+
}
|
|
1903
|
+
);
|
|
1904
|
+
}, s1 = Se((r, a) => {
|
|
1905
|
+
const {
|
|
1642
1906
|
disabled: t,
|
|
1643
|
-
|
|
1644
|
-
|
|
1907
|
+
highToLow: e,
|
|
1908
|
+
includeLabel: n,
|
|
1909
|
+
includePicker: o,
|
|
1910
|
+
knobProps: s,
|
|
1911
|
+
label: i,
|
|
1912
|
+
max: c = 127,
|
|
1913
|
+
min: l = 0,
|
|
1645
1914
|
onChange: h,
|
|
1646
|
-
|
|
1915
|
+
shrinkLabel: u,
|
|
1916
|
+
value: p = 0,
|
|
1647
1917
|
wheelEnabled: d,
|
|
1648
|
-
wheelSensitivity: m,
|
|
1649
|
-
...
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1918
|
+
wheelSensitivity: m = 0.1,
|
|
1919
|
+
...f
|
|
1920
|
+
} = r, v = Be(() => {
|
|
1921
|
+
const G = Fa(c - l + 1).map((K) => l + K).map((K) => ({ value: K, label: String(K) }));
|
|
1922
|
+
return e ? G.reverse() : G;
|
|
1923
|
+
}, [e, c, l]);
|
|
1924
|
+
return /* @__PURE__ */ ne("div", { className: "zds-pickers__container", children: [
|
|
1925
|
+
!!(!u && i) && /* @__PURE__ */ O("span", { className: "zds-pickers__label", children: i }),
|
|
1926
|
+
/* @__PURE__ */ ne("div", { style: { display: "inline-flex", gap: 10, alignItems: "center" }, children: [
|
|
1927
|
+
!!o && /* @__PURE__ */ O(
|
|
1928
|
+
_e,
|
|
1929
|
+
{
|
|
1930
|
+
...f,
|
|
1931
|
+
disabled: t,
|
|
1932
|
+
isDisabled: t,
|
|
1933
|
+
onChange: h,
|
|
1934
|
+
options: v,
|
|
1935
|
+
ref: a,
|
|
1936
|
+
value: p
|
|
1937
|
+
}
|
|
1938
|
+
),
|
|
1939
|
+
/* @__PURE__ */ O(
|
|
1940
|
+
Yl,
|
|
1941
|
+
{
|
|
1942
|
+
disabled: t,
|
|
1943
|
+
max: c,
|
|
1944
|
+
min: l,
|
|
1945
|
+
onChange: h,
|
|
1946
|
+
value: p,
|
|
1947
|
+
wheelEnabled: d,
|
|
1948
|
+
wheelSensitivity: m,
|
|
1949
|
+
...s
|
|
1950
|
+
}
|
|
1951
|
+
)
|
|
1952
|
+
] })
|
|
1953
|
+
] });
|
|
1954
|
+
}), Ql = [
|
|
1652
1955
|
{ value: 0, label: "Momentary" },
|
|
1653
1956
|
{ value: 1, label: "Latching" }
|
|
1654
|
-
],
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1957
|
+
], l1 = Se((r, a) => /* @__PURE__ */ O(
|
|
1958
|
+
_e,
|
|
1959
|
+
{
|
|
1960
|
+
...r,
|
|
1961
|
+
options: Ql,
|
|
1962
|
+
ref: a
|
|
1963
|
+
}
|
|
1964
|
+
));
|
|
1965
|
+
var gt = {}, ke = {}, ee = {}, he = {}, Ue = {}, Hn;
|
|
1966
|
+
function Zl() {
|
|
1967
|
+
if (Hn) return Ue;
|
|
1968
|
+
Hn = 1, Object.defineProperty(Ue, "__esModule", { value: !0 });
|
|
1659
1969
|
function r(t) {
|
|
1660
1970
|
if (Array.isArray(t)) {
|
|
1661
1971
|
for (var e = 0, n = Array(t.length); e < t.length; e++)
|
|
@@ -1669,11 +1979,11 @@ function $l() {
|
|
|
1669
1979
|
};
|
|
1670
1980
|
return Ue.default = a, Ue;
|
|
1671
1981
|
}
|
|
1672
|
-
var
|
|
1982
|
+
var yn;
|
|
1673
1983
|
function y() {
|
|
1674
|
-
if (
|
|
1675
|
-
|
|
1676
|
-
var r =
|
|
1984
|
+
if (yn) return he;
|
|
1985
|
+
yn = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.emptyMapping = he.reverse = he.standardizeItem = he.standardizeGroup = void 0;
|
|
1986
|
+
var r = Zl(), a = he.standardizeGroup = function(o) {
|
|
1677
1987
|
switch (String(o).toLocaleLowerCase()) {
|
|
1678
1988
|
case "cymbals":
|
|
1679
1989
|
case "cymbal":
|
|
@@ -1749,10 +2059,10 @@ function y() {
|
|
|
1749
2059
|
return e([], !0);
|
|
1750
2060
|
}, he.default = e, he;
|
|
1751
2061
|
}
|
|
1752
|
-
var
|
|
1753
|
-
function
|
|
1754
|
-
if (
|
|
1755
|
-
|
|
2062
|
+
var Mn;
|
|
2063
|
+
function Xi() {
|
|
2064
|
+
if (Mn) return ee;
|
|
2065
|
+
Mn = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.cloneMapping = ee.getNextAvailableMappingName = ee.renameUserMapping = ee.createUserMapping = ee.editUserMapping = ee.validateContent = ee.getUserMapping = ee.removeMapping = ee.storeMapping = ee.getUserMappingNames = void 0;
|
|
1756
2066
|
var r = Object.assign || function(R) {
|
|
1757
2067
|
for (var S = 1; S < arguments.length; S++) {
|
|
1758
2068
|
var P = arguments[S];
|
|
@@ -1760,7 +2070,7 @@ function ji() {
|
|
|
1760
2070
|
Object.prototype.hasOwnProperty.call(P, C) && (R[C] = P[C]);
|
|
1761
2071
|
}
|
|
1762
2072
|
return R;
|
|
1763
|
-
}, a = y(), t = n(a), e =
|
|
2073
|
+
}, a = y(), t = n(a), e = Ji();
|
|
1764
2074
|
function n(R) {
|
|
1765
2075
|
return R && R.__esModule ? R : { default: R };
|
|
1766
2076
|
}
|
|
@@ -1839,10 +2149,10 @@ function ji() {
|
|
|
1839
2149
|
}
|
|
1840
2150
|
}, ee;
|
|
1841
2151
|
}
|
|
1842
|
-
var ar = {},
|
|
1843
|
-
function
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
2152
|
+
var ar = {}, kn;
|
|
2153
|
+
function eu() {
|
|
2154
|
+
if (kn) return ar;
|
|
2155
|
+
kn = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
1846
2156
|
var r = y(), a = t(r);
|
|
1847
2157
|
function t(e) {
|
|
1848
2158
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -1876,10 +2186,10 @@ function Yl() {
|
|
|
1876
2186
|
"79:Cymbals|Cym 3 Choke"
|
|
1877
2187
|
]), ar;
|
|
1878
2188
|
}
|
|
1879
|
-
var tr = {},
|
|
1880
|
-
function
|
|
1881
|
-
if (
|
|
1882
|
-
|
|
2189
|
+
var tr = {}, wn;
|
|
2190
|
+
function ru() {
|
|
2191
|
+
if (wn) return tr;
|
|
2192
|
+
wn = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
1883
2193
|
var r = y(), a = t(r);
|
|
1884
2194
|
function t(e) {
|
|
1885
2195
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -1930,10 +2240,10 @@ function Ql() {
|
|
|
1930
2240
|
"82:Cymbals|Cymbal 3 Choke"
|
|
1931
2241
|
]), tr;
|
|
1932
2242
|
}
|
|
1933
|
-
var nr = {},
|
|
1934
|
-
function
|
|
1935
|
-
if (
|
|
1936
|
-
|
|
2243
|
+
var nr = {}, Bn;
|
|
2244
|
+
function au() {
|
|
2245
|
+
if (Bn) return nr;
|
|
2246
|
+
Bn = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
1937
2247
|
var r = y(), a = t(r);
|
|
1938
2248
|
function t(e) {
|
|
1939
2249
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -1986,10 +2296,10 @@ function Zl() {
|
|
|
1986
2296
|
"96:Hats|HH Pedal Up"
|
|
1987
2297
|
]), nr;
|
|
1988
2298
|
}
|
|
1989
|
-
var or = {},
|
|
1990
|
-
function
|
|
1991
|
-
if (
|
|
1992
|
-
|
|
2299
|
+
var or = {}, Dn;
|
|
2300
|
+
function tu() {
|
|
2301
|
+
if (Dn) return or;
|
|
2302
|
+
Dn = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
1993
2303
|
var r = y(), a = t(r);
|
|
1994
2304
|
function t(e) {
|
|
1995
2305
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2063,10 +2373,10 @@ function eu() {
|
|
|
2063
2373
|
"91:Perc|Timpani"
|
|
2064
2374
|
]), or;
|
|
2065
2375
|
}
|
|
2066
|
-
var ir = {},
|
|
2067
|
-
function
|
|
2068
|
-
if (
|
|
2069
|
-
|
|
2376
|
+
var ir = {}, On;
|
|
2377
|
+
function nu() {
|
|
2378
|
+
if (On) return ir;
|
|
2379
|
+
On = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
2070
2380
|
var r = y(), a = t(r);
|
|
2071
2381
|
function t(e) {
|
|
2072
2382
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2086,10 +2396,10 @@ function ru() {
|
|
|
2086
2396
|
"67:Perc|Hi Agogo"
|
|
2087
2397
|
]), ir;
|
|
2088
2398
|
}
|
|
2089
|
-
var cr = {},
|
|
2090
|
-
function
|
|
2091
|
-
if (
|
|
2092
|
-
|
|
2399
|
+
var cr = {}, An;
|
|
2400
|
+
function ou() {
|
|
2401
|
+
if (An) return cr;
|
|
2402
|
+
An = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
2093
2403
|
var r = y(), a = t(r);
|
|
2094
2404
|
function t(e) {
|
|
2095
2405
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2157,10 +2467,10 @@ function au() {
|
|
|
2157
2467
|
"59:Rides|S09 Ride choke"
|
|
2158
2468
|
]), cr;
|
|
2159
2469
|
}
|
|
2160
|
-
var sr = {},
|
|
2161
|
-
function
|
|
2162
|
-
if (
|
|
2163
|
-
|
|
2470
|
+
var sr = {}, En;
|
|
2471
|
+
function iu() {
|
|
2472
|
+
if (En) return sr;
|
|
2473
|
+
En = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
2164
2474
|
var r = y(), a = t(r);
|
|
2165
2475
|
function t(e) {
|
|
2166
2476
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2272,10 +2582,10 @@ function tu() {
|
|
|
2272
2582
|
"127:Groove|Groove 32"
|
|
2273
2583
|
]), sr;
|
|
2274
2584
|
}
|
|
2275
|
-
var lr = {},
|
|
2276
|
-
function
|
|
2277
|
-
if (
|
|
2278
|
-
|
|
2585
|
+
var lr = {}, Ln;
|
|
2586
|
+
function cu() {
|
|
2587
|
+
if (Ln) return lr;
|
|
2588
|
+
Ln = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
2279
2589
|
var r = y(), a = t(r);
|
|
2280
2590
|
function t(e) {
|
|
2281
2591
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2348,10 +2658,10 @@ function nu() {
|
|
|
2348
2658
|
"96:Snares|Room Snare 2"
|
|
2349
2659
|
]), lr;
|
|
2350
2660
|
}
|
|
2351
|
-
var ur = {},
|
|
2352
|
-
function
|
|
2353
|
-
if (
|
|
2354
|
-
|
|
2661
|
+
var ur = {}, Gn;
|
|
2662
|
+
function su() {
|
|
2663
|
+
if (Gn) return ur;
|
|
2664
|
+
Gn = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
2355
2665
|
var r = y(), a = t(r);
|
|
2356
2666
|
function t(e) {
|
|
2357
2667
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2444,10 +2754,10 @@ function ou() {
|
|
|
2444
2754
|
"108:Cymbals|Voc Crash"
|
|
2445
2755
|
]), ur;
|
|
2446
2756
|
}
|
|
2447
|
-
var Pr = {},
|
|
2448
|
-
function
|
|
2449
|
-
if (
|
|
2450
|
-
|
|
2757
|
+
var Pr = {}, xn;
|
|
2758
|
+
function lu() {
|
|
2759
|
+
if (xn) return Pr;
|
|
2760
|
+
xn = 1, Object.defineProperty(Pr, "__esModule", { value: !0 });
|
|
2451
2761
|
var r = y(), a = t(r);
|
|
2452
2762
|
function t(e) {
|
|
2453
2763
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2529,10 +2839,10 @@ function iu() {
|
|
|
2529
2839
|
"105:Perc|Soprano Drum"
|
|
2530
2840
|
]), Pr;
|
|
2531
2841
|
}
|
|
2532
|
-
var dr = {},
|
|
2533
|
-
function
|
|
2534
|
-
if (
|
|
2535
|
-
|
|
2842
|
+
var dr = {}, Kn;
|
|
2843
|
+
function uu() {
|
|
2844
|
+
if (Kn) return dr;
|
|
2845
|
+
Kn = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
2536
2846
|
var r = y(), a = t(r);
|
|
2537
2847
|
function t(e) {
|
|
2538
2848
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2595,10 +2905,10 @@ function cu() {
|
|
|
2595
2905
|
"81:Perc|Rebar Open"
|
|
2596
2906
|
]), dr;
|
|
2597
2907
|
}
|
|
2598
|
-
var mr = {},
|
|
2599
|
-
function
|
|
2600
|
-
if (
|
|
2601
|
-
|
|
2908
|
+
var mr = {}, Nn;
|
|
2909
|
+
function Pu() {
|
|
2910
|
+
if (Nn) return mr;
|
|
2911
|
+
Nn = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
2602
2912
|
var r = y(), a = t(r);
|
|
2603
2913
|
function t(e) {
|
|
2604
2914
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2691,10 +3001,10 @@ function su() {
|
|
|
2691
3001
|
"108:Kicks|Kick"
|
|
2692
3002
|
]), mr;
|
|
2693
3003
|
}
|
|
2694
|
-
var pr = {},
|
|
2695
|
-
function
|
|
2696
|
-
if (
|
|
2697
|
-
|
|
3004
|
+
var pr = {}, qn;
|
|
3005
|
+
function du() {
|
|
3006
|
+
if (qn) return pr;
|
|
3007
|
+
qn = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
2698
3008
|
var r = y(), a = t(r);
|
|
2699
3009
|
function t(e) {
|
|
2700
3010
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2766,10 +3076,10 @@ function lu() {
|
|
|
2766
3076
|
"121:Hats|HH - open loose"
|
|
2767
3077
|
]), pr;
|
|
2768
3078
|
}
|
|
2769
|
-
var hr = {},
|
|
2770
|
-
function
|
|
2771
|
-
if (
|
|
2772
|
-
|
|
3079
|
+
var hr = {}, Wn;
|
|
3080
|
+
function mu() {
|
|
3081
|
+
if (Wn) return hr;
|
|
3082
|
+
Wn = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
2773
3083
|
var r = y(), a = t(r);
|
|
2774
3084
|
function t(e) {
|
|
2775
3085
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2854,10 +3164,10 @@ function uu() {
|
|
|
2854
3164
|
"127:Snares|Snare Brush Full Circle"
|
|
2855
3165
|
]), hr;
|
|
2856
3166
|
}
|
|
2857
|
-
var fr = {},
|
|
2858
|
-
function
|
|
2859
|
-
if (
|
|
2860
|
-
|
|
3167
|
+
var fr = {}, Un;
|
|
3168
|
+
function pu() {
|
|
3169
|
+
if (Un) return fr;
|
|
3170
|
+
Un = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
2861
3171
|
var r = y(), a = t(r);
|
|
2862
3172
|
function t(e) {
|
|
2863
3173
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -2990,10 +3300,10 @@ function Pu() {
|
|
|
2990
3300
|
"127:Perc|Shekere Cresendo"
|
|
2991
3301
|
]), fr;
|
|
2992
3302
|
}
|
|
2993
|
-
var gr = {},
|
|
2994
|
-
function
|
|
2995
|
-
if (
|
|
2996
|
-
|
|
3303
|
+
var gr = {}, zn;
|
|
3304
|
+
function hu() {
|
|
3305
|
+
if (zn) return gr;
|
|
3306
|
+
zn = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
2997
3307
|
var r = y(), a = t(r);
|
|
2998
3308
|
function t(e) {
|
|
2999
3309
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3046,10 +3356,10 @@ function du() {
|
|
|
3046
3356
|
"65:Hats|HH Seq Soft"
|
|
3047
3357
|
]), gr;
|
|
3048
3358
|
}
|
|
3049
|
-
var Tr = {},
|
|
3050
|
-
function
|
|
3051
|
-
if (
|
|
3052
|
-
|
|
3359
|
+
var Tr = {}, Fn;
|
|
3360
|
+
function fu() {
|
|
3361
|
+
if (Fn) return Tr;
|
|
3362
|
+
Fn = 1, Object.defineProperty(Tr, "__esModule", { value: !0 });
|
|
3053
3363
|
var r = y(), a = t(r);
|
|
3054
3364
|
function t(e) {
|
|
3055
3365
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3122,10 +3432,10 @@ function mu() {
|
|
|
3122
3432
|
"96:Snares|Room Snare 2"
|
|
3123
3433
|
]), Tr;
|
|
3124
3434
|
}
|
|
3125
|
-
var Sr = {},
|
|
3126
|
-
function
|
|
3127
|
-
if (
|
|
3128
|
-
|
|
3435
|
+
var Sr = {}, In;
|
|
3436
|
+
function gu() {
|
|
3437
|
+
if (In) return Sr;
|
|
3438
|
+
In = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
|
|
3129
3439
|
var r = y(), a = t(r);
|
|
3130
3440
|
function t(e) {
|
|
3131
3441
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3193,10 +3503,10 @@ function pu() {
|
|
|
3193
3503
|
"83:Cymbals|Cymbal FX/Alt"
|
|
3194
3504
|
]), Sr;
|
|
3195
3505
|
}
|
|
3196
|
-
var Cr = {},
|
|
3197
|
-
function
|
|
3198
|
-
if (
|
|
3199
|
-
|
|
3506
|
+
var Cr = {}, Vn;
|
|
3507
|
+
function Tu() {
|
|
3508
|
+
if (Vn) return Cr;
|
|
3509
|
+
Vn = 1, Object.defineProperty(Cr, "__esModule", { value: !0 });
|
|
3200
3510
|
var r = y(), a = t(r);
|
|
3201
3511
|
function t(e) {
|
|
3202
3512
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3330,10 +3640,10 @@ function hu() {
|
|
|
3330
3640
|
"126:Percussion|Gong"
|
|
3331
3641
|
]), Cr;
|
|
3332
3642
|
}
|
|
3333
|
-
var vr = {},
|
|
3334
|
-
function
|
|
3335
|
-
if (
|
|
3336
|
-
|
|
3643
|
+
var vr = {}, jn;
|
|
3644
|
+
function Su() {
|
|
3645
|
+
if (jn) return vr;
|
|
3646
|
+
jn = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
|
|
3337
3647
|
var r = y(), a = t(r);
|
|
3338
3648
|
function t(e) {
|
|
3339
3649
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3374,10 +3684,10 @@ function fu() {
|
|
|
3374
3684
|
"72:Toms|Low Tom"
|
|
3375
3685
|
]), vr;
|
|
3376
3686
|
}
|
|
3377
|
-
var Rr = {},
|
|
3378
|
-
function
|
|
3379
|
-
if (
|
|
3380
|
-
|
|
3687
|
+
var Rr = {}, Xn;
|
|
3688
|
+
function Cu() {
|
|
3689
|
+
if (Xn) return Rr;
|
|
3690
|
+
Xn = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
|
|
3381
3691
|
var r = y(), a = t(r);
|
|
3382
3692
|
function t(e) {
|
|
3383
3693
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3452,10 +3762,10 @@ function gu() {
|
|
|
3452
3762
|
"89:Cymbals|Splash 1 Choke"
|
|
3453
3763
|
]), Rr;
|
|
3454
3764
|
}
|
|
3455
|
-
var _r = {},
|
|
3456
|
-
function
|
|
3457
|
-
if (
|
|
3458
|
-
|
|
3765
|
+
var _r = {}, Jn;
|
|
3766
|
+
function vu() {
|
|
3767
|
+
if (Jn) return _r;
|
|
3768
|
+
Jn = 1, Object.defineProperty(_r, "__esModule", { value: !0 });
|
|
3459
3769
|
var r = y(), a = t(r);
|
|
3460
3770
|
function t(e) {
|
|
3461
3771
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3529,10 +3839,10 @@ function Tu() {
|
|
|
3529
3839
|
"91:Perc|Timpani"
|
|
3530
3840
|
]), _r;
|
|
3531
3841
|
}
|
|
3532
|
-
var br = {},
|
|
3533
|
-
function
|
|
3534
|
-
if (
|
|
3535
|
-
|
|
3842
|
+
var br = {}, $n;
|
|
3843
|
+
function Ru() {
|
|
3844
|
+
if ($n) return br;
|
|
3845
|
+
$n = 1, Object.defineProperty(br, "__esModule", { value: !0 });
|
|
3536
3846
|
var r = y(), a = t(r);
|
|
3537
3847
|
function t(e) {
|
|
3538
3848
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3561,10 +3871,10 @@ function Su() {
|
|
|
3561
3871
|
"59:Rides|Ride Cymbal 2"
|
|
3562
3872
|
]), br;
|
|
3563
3873
|
}
|
|
3564
|
-
var Hr = {},
|
|
3565
|
-
function
|
|
3566
|
-
if (
|
|
3567
|
-
|
|
3874
|
+
var Hr = {}, Yn;
|
|
3875
|
+
function _u() {
|
|
3876
|
+
if (Yn) return Hr;
|
|
3877
|
+
Yn = 1, Object.defineProperty(Hr, "__esModule", { value: !0 });
|
|
3568
3878
|
var r = y(), a = t(r);
|
|
3569
3879
|
function t(e) {
|
|
3570
3880
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3647,10 +3957,10 @@ function Cu() {
|
|
|
3647
3957
|
"93:Perc|Pandero Slap"
|
|
3648
3958
|
]), Hr;
|
|
3649
3959
|
}
|
|
3650
|
-
var yr = {},
|
|
3651
|
-
function
|
|
3652
|
-
if (
|
|
3653
|
-
|
|
3960
|
+
var yr = {}, Qn;
|
|
3961
|
+
function bu() {
|
|
3962
|
+
if (Qn) return yr;
|
|
3963
|
+
Qn = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
3654
3964
|
var r = y(), a = t(r);
|
|
3655
3965
|
function t(e) {
|
|
3656
3966
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3733,10 +4043,10 @@ function vu() {
|
|
|
3733
4043
|
"93:Perc|Temple Bell"
|
|
3734
4044
|
]), yr;
|
|
3735
4045
|
}
|
|
3736
|
-
var Mr = {},
|
|
3737
|
-
function
|
|
3738
|
-
if (
|
|
3739
|
-
|
|
4046
|
+
var Mr = {}, Zn;
|
|
4047
|
+
function Hu() {
|
|
4048
|
+
if (Zn) return Mr;
|
|
4049
|
+
Zn = 1, Object.defineProperty(Mr, "__esModule", { value: !0 });
|
|
3740
4050
|
var r = y(), a = t(r);
|
|
3741
4051
|
function t(e) {
|
|
3742
4052
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3819,10 +4129,10 @@ function Ru() {
|
|
|
3819
4129
|
"93:Perc|Reverse Crash"
|
|
3820
4130
|
]), Mr;
|
|
3821
4131
|
}
|
|
3822
|
-
var kr = {},
|
|
3823
|
-
function
|
|
3824
|
-
if (
|
|
3825
|
-
|
|
4132
|
+
var kr = {}, eo;
|
|
4133
|
+
function yu() {
|
|
4134
|
+
if (eo) return kr;
|
|
4135
|
+
eo = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
3826
4136
|
var r = y(), a = t(r);
|
|
3827
4137
|
function t(e) {
|
|
3828
4138
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3905,10 +4215,10 @@ function _u() {
|
|
|
3905
4215
|
"93:Perc|Count Ta"
|
|
3906
4216
|
]), kr;
|
|
3907
4217
|
}
|
|
3908
|
-
var wr = {},
|
|
3909
|
-
function
|
|
3910
|
-
if (
|
|
3911
|
-
|
|
4218
|
+
var wr = {}, ro;
|
|
4219
|
+
function Mu() {
|
|
4220
|
+
if (ro) return wr;
|
|
4221
|
+
ro = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
3912
4222
|
var r = y(), a = t(r);
|
|
3913
4223
|
function t(e) {
|
|
3914
4224
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -3946,10 +4256,10 @@ function bu() {
|
|
|
3946
4256
|
"58:Toms|Tom 3 Rim"
|
|
3947
4257
|
]), wr;
|
|
3948
4258
|
}
|
|
3949
|
-
var Br = {},
|
|
3950
|
-
function
|
|
3951
|
-
if (
|
|
3952
|
-
|
|
4259
|
+
var Br = {}, ao;
|
|
4260
|
+
function ku() {
|
|
4261
|
+
if (ao) return Br;
|
|
4262
|
+
ao = 1, Object.defineProperty(Br, "__esModule", { value: !0 });
|
|
3953
4263
|
var r = y(), a = t(r);
|
|
3954
4264
|
function t(e) {
|
|
3955
4265
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4083,10 +4393,10 @@ function Hu() {
|
|
|
4083
4393
|
"126:Perc|6� Splash Edge"
|
|
4084
4394
|
]), Br;
|
|
4085
4395
|
}
|
|
4086
|
-
var Dr = {},
|
|
4087
|
-
function
|
|
4088
|
-
if (
|
|
4089
|
-
|
|
4396
|
+
var Dr = {}, to;
|
|
4397
|
+
function wu() {
|
|
4398
|
+
if (to) return Dr;
|
|
4399
|
+
to = 1, Object.defineProperty(Dr, "__esModule", { value: !0 });
|
|
4090
4400
|
var r = y(), a = t(r);
|
|
4091
4401
|
function t(e) {
|
|
4092
4402
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4220,10 +4530,10 @@ function yu() {
|
|
|
4220
4530
|
"126:Perc|Hand Cymbal"
|
|
4221
4531
|
]), Dr;
|
|
4222
4532
|
}
|
|
4223
|
-
var Or = {},
|
|
4224
|
-
function
|
|
4225
|
-
if (
|
|
4226
|
-
|
|
4533
|
+
var Or = {}, no;
|
|
4534
|
+
function Bu() {
|
|
4535
|
+
if (no) return Or;
|
|
4536
|
+
no = 1, Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
4227
4537
|
var r = y(), a = t(r);
|
|
4228
4538
|
function t(e) {
|
|
4229
4539
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4357,10 +4667,10 @@ function Mu() {
|
|
|
4357
4667
|
"126:Perc|Hand Cymbal"
|
|
4358
4668
|
]), Or;
|
|
4359
4669
|
}
|
|
4360
|
-
var Ar = {},
|
|
4361
|
-
function
|
|
4362
|
-
if (
|
|
4363
|
-
|
|
4670
|
+
var Ar = {}, oo;
|
|
4671
|
+
function Du() {
|
|
4672
|
+
if (oo) return Ar;
|
|
4673
|
+
oo = 1, Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
4364
4674
|
var r = y(), a = t(r);
|
|
4365
4675
|
function t(e) {
|
|
4366
4676
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4474,10 +4784,10 @@ function ku() {
|
|
|
4474
4784
|
"127:Perc|TR909 Clap"
|
|
4475
4785
|
]), Ar;
|
|
4476
4786
|
}
|
|
4477
|
-
var Er = {},
|
|
4478
|
-
function
|
|
4479
|
-
if (
|
|
4480
|
-
|
|
4787
|
+
var Er = {}, io;
|
|
4788
|
+
function Ou() {
|
|
4789
|
+
if (io) return Er;
|
|
4790
|
+
io = 1, Object.defineProperty(Er, "__esModule", { value: !0 });
|
|
4481
4791
|
var r = y(), a = t(r);
|
|
4482
4792
|
function t(e) {
|
|
4483
4793
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4556,10 +4866,10 @@ function wu() {
|
|
|
4556
4866
|
"94:Perc|For Pad Check"
|
|
4557
4867
|
]), Er;
|
|
4558
4868
|
}
|
|
4559
|
-
var Lr = {},
|
|
4560
|
-
function
|
|
4561
|
-
if (
|
|
4562
|
-
|
|
4869
|
+
var Lr = {}, co;
|
|
4870
|
+
function Au() {
|
|
4871
|
+
if (co) return Lr;
|
|
4872
|
+
co = 1, Object.defineProperty(Lr, "__esModule", { value: !0 });
|
|
4563
4873
|
var r = y(), a = t(r);
|
|
4564
4874
|
function t(e) {
|
|
4565
4875
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4665,10 +4975,10 @@ function Bu() {
|
|
|
4665
4975
|
"126:Perc|Hand Cymbal"
|
|
4666
4976
|
]), Lr;
|
|
4667
4977
|
}
|
|
4668
|
-
var Gr = {},
|
|
4669
|
-
function
|
|
4670
|
-
if (
|
|
4671
|
-
|
|
4978
|
+
var Gr = {}, so;
|
|
4979
|
+
function Eu() {
|
|
4980
|
+
if (so) return Gr;
|
|
4981
|
+
so = 1, Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
4672
4982
|
var r = y(), a = t(r);
|
|
4673
4983
|
function t(e) {
|
|
4674
4984
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4705,10 +5015,10 @@ function Du() {
|
|
|
4705
5015
|
"59:Rides|Ride Edge Rim"
|
|
4706
5016
|
]), Gr;
|
|
4707
5017
|
}
|
|
4708
|
-
var xr = {},
|
|
4709
|
-
function
|
|
4710
|
-
if (
|
|
4711
|
-
|
|
5018
|
+
var xr = {}, lo;
|
|
5019
|
+
function Lu() {
|
|
5020
|
+
if (lo) return xr;
|
|
5021
|
+
lo = 1, Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
4712
5022
|
var r = y(), a = t(r);
|
|
4713
5023
|
function t(e) {
|
|
4714
5024
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4842,10 +5152,10 @@ function Ou() {
|
|
|
4842
5152
|
"126:Perc|Hand Cymbal"
|
|
4843
5153
|
]), xr;
|
|
4844
5154
|
}
|
|
4845
|
-
var Kr = {},
|
|
4846
|
-
function
|
|
4847
|
-
if (
|
|
4848
|
-
|
|
5155
|
+
var Kr = {}, uo;
|
|
5156
|
+
function Gu() {
|
|
5157
|
+
if (uo) return Kr;
|
|
5158
|
+
uo = 1, Object.defineProperty(Kr, "__esModule", { value: !0 });
|
|
4849
5159
|
var r = y(), a = t(r);
|
|
4850
5160
|
function t(e) {
|
|
4851
5161
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4888,10 +5198,10 @@ function Au() {
|
|
|
4888
5198
|
"59:Rides|Ride Edge Rim"
|
|
4889
5199
|
]), Kr;
|
|
4890
5200
|
}
|
|
4891
|
-
var Nr = {},
|
|
4892
|
-
function
|
|
4893
|
-
if (
|
|
4894
|
-
|
|
5201
|
+
var Nr = {}, Po;
|
|
5202
|
+
function xu() {
|
|
5203
|
+
if (Po) return Nr;
|
|
5204
|
+
Po = 1, Object.defineProperty(Nr, "__esModule", { value: !0 });
|
|
4895
5205
|
var r = y(), a = t(r);
|
|
4896
5206
|
function t(e) {
|
|
4897
5207
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -4916,10 +5226,10 @@ function Eu() {
|
|
|
4916
5226
|
"57:Cymbals|Crash 2 Bow"
|
|
4917
5227
|
]), Nr;
|
|
4918
5228
|
}
|
|
4919
|
-
var qr = {},
|
|
4920
|
-
function
|
|
4921
|
-
if (
|
|
4922
|
-
|
|
5229
|
+
var qr = {}, mo;
|
|
5230
|
+
function Ku() {
|
|
5231
|
+
if (mo) return qr;
|
|
5232
|
+
mo = 1, Object.defineProperty(qr, "__esModule", { value: !0 });
|
|
4923
5233
|
var r = y(), a = t(r);
|
|
4924
5234
|
function t(e) {
|
|
4925
5235
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5053,10 +5363,10 @@ function Lu() {
|
|
|
5053
5363
|
"126:Perc|6� Splash Edge"
|
|
5054
5364
|
]), qr;
|
|
5055
5365
|
}
|
|
5056
|
-
var Wr = {},
|
|
5057
|
-
function
|
|
5058
|
-
if (
|
|
5059
|
-
|
|
5366
|
+
var Wr = {}, po;
|
|
5367
|
+
function Nu() {
|
|
5368
|
+
if (po) return Wr;
|
|
5369
|
+
po = 1, Object.defineProperty(Wr, "__esModule", { value: !0 });
|
|
5060
5370
|
var r = y(), a = t(r);
|
|
5061
5371
|
function t(e) {
|
|
5062
5372
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5190,10 +5500,10 @@ function Gu() {
|
|
|
5190
5500
|
"126:Perc|Hand Cymbal"
|
|
5191
5501
|
]), Wr;
|
|
5192
5502
|
}
|
|
5193
|
-
var Ur = {},
|
|
5194
|
-
function
|
|
5195
|
-
if (
|
|
5196
|
-
|
|
5503
|
+
var Ur = {}, ho;
|
|
5504
|
+
function qu() {
|
|
5505
|
+
if (ho) return Ur;
|
|
5506
|
+
ho = 1, Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
5197
5507
|
var r = y(), a = t(r);
|
|
5198
5508
|
function t(e) {
|
|
5199
5509
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5327,10 +5637,10 @@ function xu() {
|
|
|
5327
5637
|
"126:Perc|Hand Cymbal"
|
|
5328
5638
|
]), Ur;
|
|
5329
5639
|
}
|
|
5330
|
-
var zr = {},
|
|
5331
|
-
function
|
|
5332
|
-
if (
|
|
5333
|
-
|
|
5640
|
+
var zr = {}, fo;
|
|
5641
|
+
function Wu() {
|
|
5642
|
+
if (fo) return zr;
|
|
5643
|
+
fo = 1, Object.defineProperty(zr, "__esModule", { value: !0 });
|
|
5334
5644
|
var r = y(), a = t(r);
|
|
5335
5645
|
function t(e) {
|
|
5336
5646
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5444,10 +5754,10 @@ function Ku() {
|
|
|
5444
5754
|
"127:Perc|TR909 Clap"
|
|
5445
5755
|
]), zr;
|
|
5446
5756
|
}
|
|
5447
|
-
var Fr = {},
|
|
5448
|
-
function
|
|
5449
|
-
if (
|
|
5450
|
-
|
|
5757
|
+
var Fr = {}, go;
|
|
5758
|
+
function Uu() {
|
|
5759
|
+
if (go) return Fr;
|
|
5760
|
+
go = 1, Object.defineProperty(Fr, "__esModule", { value: !0 });
|
|
5451
5761
|
var r = y(), a = t(r);
|
|
5452
5762
|
function t(e) {
|
|
5453
5763
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5526,10 +5836,10 @@ function Nu() {
|
|
|
5526
5836
|
"94:Perc|For Pad Check"
|
|
5527
5837
|
]), Fr;
|
|
5528
5838
|
}
|
|
5529
|
-
var Ir = {},
|
|
5530
|
-
function
|
|
5531
|
-
if (
|
|
5532
|
-
|
|
5839
|
+
var Ir = {}, To;
|
|
5840
|
+
function zu() {
|
|
5841
|
+
if (To) return Ir;
|
|
5842
|
+
To = 1, Object.defineProperty(Ir, "__esModule", { value: !0 });
|
|
5533
5843
|
var r = y(), a = t(r);
|
|
5534
5844
|
function t(e) {
|
|
5535
5845
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5635,10 +5945,10 @@ function qu() {
|
|
|
5635
5945
|
"126:Perc|Hand Cymbal"
|
|
5636
5946
|
]), Ir;
|
|
5637
5947
|
}
|
|
5638
|
-
var Vr = {},
|
|
5639
|
-
function
|
|
5640
|
-
if (
|
|
5641
|
-
|
|
5948
|
+
var Vr = {}, So;
|
|
5949
|
+
function Fu() {
|
|
5950
|
+
if (So) return Vr;
|
|
5951
|
+
So = 1, Object.defineProperty(Vr, "__esModule", { value: !0 });
|
|
5642
5952
|
var r = y(), a = t(r);
|
|
5643
5953
|
function t(e) {
|
|
5644
5954
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5681,10 +5991,10 @@ function Wu() {
|
|
|
5681
5991
|
"59:Rides|Ride Edge Rim"
|
|
5682
5992
|
]), Vr;
|
|
5683
5993
|
}
|
|
5684
|
-
var jr = {},
|
|
5685
|
-
function
|
|
5686
|
-
if (
|
|
5687
|
-
|
|
5994
|
+
var jr = {}, Co;
|
|
5995
|
+
function Iu() {
|
|
5996
|
+
if (Co) return jr;
|
|
5997
|
+
Co = 1, Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
5688
5998
|
var r = y(), a = t(r);
|
|
5689
5999
|
function t(e) {
|
|
5690
6000
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5753,10 +6063,10 @@ function Uu() {
|
|
|
5753
6063
|
"87:Perc|Taiko"
|
|
5754
6064
|
]), jr;
|
|
5755
6065
|
}
|
|
5756
|
-
var Xr = {},
|
|
5757
|
-
function
|
|
5758
|
-
if (
|
|
5759
|
-
|
|
6066
|
+
var Xr = {}, vo;
|
|
6067
|
+
function Vu() {
|
|
6068
|
+
if (vo) return Xr;
|
|
6069
|
+
vo = 1, Object.defineProperty(Xr, "__esModule", { value: !0 });
|
|
5760
6070
|
var r = y(), a = t(r);
|
|
5761
6071
|
function t(e) {
|
|
5762
6072
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5842,10 +6152,10 @@ function zu() {
|
|
|
5842
6152
|
"96:Perc|Caxixi"
|
|
5843
6153
|
]), Xr;
|
|
5844
6154
|
}
|
|
5845
|
-
var Jr = {},
|
|
5846
|
-
function
|
|
5847
|
-
if (
|
|
5848
|
-
|
|
6155
|
+
var Jr = {}, Ro;
|
|
6156
|
+
function ju() {
|
|
6157
|
+
if (Ro) return Jr;
|
|
6158
|
+
Ro = 1, Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
5849
6159
|
var r = y(), a = t(r);
|
|
5850
6160
|
function t(e) {
|
|
5851
6161
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -5932,10 +6242,10 @@ function Fu() {
|
|
|
5932
6242
|
"96:Perc|Scat 4 VS"
|
|
5933
6243
|
]), Jr;
|
|
5934
6244
|
}
|
|
5935
|
-
var $r = {},
|
|
5936
|
-
function
|
|
5937
|
-
if (
|
|
5938
|
-
|
|
6245
|
+
var $r = {}, _o;
|
|
6246
|
+
function Xu() {
|
|
6247
|
+
if (_o) return $r;
|
|
6248
|
+
_o = 1, Object.defineProperty($r, "__esModule", { value: !0 });
|
|
5939
6249
|
var r = y(), a = t(r);
|
|
5940
6250
|
function t(e) {
|
|
5941
6251
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6021,10 +6331,10 @@ function Iu() {
|
|
|
6021
6331
|
"96:Perc|Caxixi"
|
|
6022
6332
|
]), $r;
|
|
6023
6333
|
}
|
|
6024
|
-
var Yr = {},
|
|
6025
|
-
function
|
|
6026
|
-
if (
|
|
6027
|
-
|
|
6334
|
+
var Yr = {}, bo;
|
|
6335
|
+
function Ju() {
|
|
6336
|
+
if (bo) return Yr;
|
|
6337
|
+
bo = 1, Object.defineProperty(Yr, "__esModule", { value: !0 });
|
|
6028
6338
|
var r = y(), a = t(r);
|
|
6029
6339
|
function t(e) {
|
|
6030
6340
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6110,10 +6420,10 @@ function Vu() {
|
|
|
6110
6420
|
"96:Perc|Caxixi"
|
|
6111
6421
|
]), Yr;
|
|
6112
6422
|
}
|
|
6113
|
-
var Qr = {},
|
|
6114
|
-
function
|
|
6115
|
-
if (
|
|
6116
|
-
|
|
6423
|
+
var Qr = {}, Ho;
|
|
6424
|
+
function $u() {
|
|
6425
|
+
if (Ho) return Qr;
|
|
6426
|
+
Ho = 1, Object.defineProperty(Qr, "__esModule", { value: !0 });
|
|
6117
6427
|
var r = y(), a = t(r);
|
|
6118
6428
|
function t(e) {
|
|
6119
6429
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6199,10 +6509,10 @@ function ju() {
|
|
|
6199
6509
|
"96:Perc|Caxixi"
|
|
6200
6510
|
]), Qr;
|
|
6201
6511
|
}
|
|
6202
|
-
var Zr = {},
|
|
6203
|
-
function
|
|
6204
|
-
if (
|
|
6205
|
-
|
|
6512
|
+
var Zr = {}, yo;
|
|
6513
|
+
function Yu() {
|
|
6514
|
+
if (yo) return Zr;
|
|
6515
|
+
yo = 1, Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
6206
6516
|
var r = y(), a = t(r);
|
|
6207
6517
|
function t(e) {
|
|
6208
6518
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6288,10 +6598,10 @@ function Xu() {
|
|
|
6288
6598
|
"96:Perc|Caxixi"
|
|
6289
6599
|
]), Zr;
|
|
6290
6600
|
}
|
|
6291
|
-
var ea = {},
|
|
6292
|
-
function
|
|
6293
|
-
if (
|
|
6294
|
-
|
|
6601
|
+
var ea = {}, Mo;
|
|
6602
|
+
function Qu() {
|
|
6603
|
+
if (Mo) return ea;
|
|
6604
|
+
Mo = 1, Object.defineProperty(ea, "__esModule", { value: !0 });
|
|
6295
6605
|
var r = y(), a = t(r);
|
|
6296
6606
|
function t(e) {
|
|
6297
6607
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6377,10 +6687,10 @@ function Ju() {
|
|
|
6377
6687
|
"96:Perc|Caxixi"
|
|
6378
6688
|
]), ea;
|
|
6379
6689
|
}
|
|
6380
|
-
var ra = {},
|
|
6381
|
-
function
|
|
6382
|
-
if (
|
|
6383
|
-
|
|
6690
|
+
var ra = {}, ko;
|
|
6691
|
+
function Zu() {
|
|
6692
|
+
if (ko) return ra;
|
|
6693
|
+
ko = 1, Object.defineProperty(ra, "__esModule", { value: !0 });
|
|
6384
6694
|
var r = y(), a = t(r);
|
|
6385
6695
|
function t(e) {
|
|
6386
6696
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6466,10 +6776,10 @@ function $u() {
|
|
|
6466
6776
|
"96:Perc|Caxixi"
|
|
6467
6777
|
]), ra;
|
|
6468
6778
|
}
|
|
6469
|
-
var aa = {},
|
|
6470
|
-
function
|
|
6471
|
-
if (
|
|
6472
|
-
|
|
6779
|
+
var aa = {}, wo;
|
|
6780
|
+
function eP() {
|
|
6781
|
+
if (wo) return aa;
|
|
6782
|
+
wo = 1, Object.defineProperty(aa, "__esModule", { value: !0 });
|
|
6473
6783
|
var r = y(), a = t(r);
|
|
6474
6784
|
function t(e) {
|
|
6475
6785
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6555,10 +6865,10 @@ function Yu() {
|
|
|
6555
6865
|
"96:Perc|Caxixi"
|
|
6556
6866
|
]), aa;
|
|
6557
6867
|
}
|
|
6558
|
-
var ta = {},
|
|
6559
|
-
function
|
|
6560
|
-
if (
|
|
6561
|
-
|
|
6868
|
+
var ta = {}, Bo;
|
|
6869
|
+
function rP() {
|
|
6870
|
+
if (Bo) return ta;
|
|
6871
|
+
Bo = 1, Object.defineProperty(ta, "__esModule", { value: !0 });
|
|
6562
6872
|
var r = y(), a = t(r);
|
|
6563
6873
|
function t(e) {
|
|
6564
6874
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6645,10 +6955,10 @@ function Qu() {
|
|
|
6645
6955
|
"96:Perc|55 Claves"
|
|
6646
6956
|
]), ta;
|
|
6647
6957
|
}
|
|
6648
|
-
var na = {},
|
|
6649
|
-
function
|
|
6650
|
-
if (
|
|
6651
|
-
|
|
6958
|
+
var na = {}, Do;
|
|
6959
|
+
function aP() {
|
|
6960
|
+
if (Do) return na;
|
|
6961
|
+
Do = 1, Object.defineProperty(na, "__esModule", { value: !0 });
|
|
6652
6962
|
var r = y(), a = t(r);
|
|
6653
6963
|
function t(e) {
|
|
6654
6964
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6676,10 +6986,10 @@ function Zu() {
|
|
|
6676
6986
|
"57:Cymbals|Crash 2 Bow"
|
|
6677
6987
|
]), na;
|
|
6678
6988
|
}
|
|
6679
|
-
var oa = {},
|
|
6680
|
-
function
|
|
6681
|
-
if (
|
|
6682
|
-
|
|
6989
|
+
var oa = {}, Oo;
|
|
6990
|
+
function tP() {
|
|
6991
|
+
if (Oo) return oa;
|
|
6992
|
+
Oo = 1, Object.defineProperty(oa, "__esModule", { value: !0 });
|
|
6683
6993
|
var r = y(), a = t(r);
|
|
6684
6994
|
function t(e) {
|
|
6685
6995
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6741,10 +7051,10 @@ function eP() {
|
|
|
6741
7051
|
"92:Perc|Pandiero"
|
|
6742
7052
|
]), oa;
|
|
6743
7053
|
}
|
|
6744
|
-
var ia = {},
|
|
6745
|
-
function
|
|
6746
|
-
if (
|
|
6747
|
-
|
|
7054
|
+
var ia = {}, Ao;
|
|
7055
|
+
function nP() {
|
|
7056
|
+
if (Ao) return ia;
|
|
7057
|
+
Ao = 1, Object.defineProperty(ia, "__esModule", { value: !0 });
|
|
6748
7058
|
var r = y(), a = t(r);
|
|
6749
7059
|
function t(e) {
|
|
6750
7060
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6830,10 +7140,10 @@ function rP() {
|
|
|
6830
7140
|
"96:Perc|Caxixi"
|
|
6831
7141
|
]), ia;
|
|
6832
7142
|
}
|
|
6833
|
-
var ca = {},
|
|
6834
|
-
function
|
|
6835
|
-
if (
|
|
6836
|
-
|
|
7143
|
+
var ca = {}, Eo;
|
|
7144
|
+
function oP() {
|
|
7145
|
+
if (Eo) return ca;
|
|
7146
|
+
Eo = 1, Object.defineProperty(ca, "__esModule", { value: !0 });
|
|
6837
7147
|
var r = y(), a = t(r);
|
|
6838
7148
|
function t(e) {
|
|
6839
7149
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -6920,10 +7230,10 @@ function aP() {
|
|
|
6920
7230
|
"96:Perc|Scat 4 VS"
|
|
6921
7231
|
]), ca;
|
|
6922
7232
|
}
|
|
6923
|
-
var sa = {},
|
|
6924
|
-
function
|
|
6925
|
-
if (
|
|
6926
|
-
|
|
7233
|
+
var sa = {}, Lo;
|
|
7234
|
+
function iP() {
|
|
7235
|
+
if (Lo) return sa;
|
|
7236
|
+
Lo = 1, Object.defineProperty(sa, "__esModule", { value: !0 });
|
|
6927
7237
|
var r = y(), a = t(r);
|
|
6928
7238
|
function t(e) {
|
|
6929
7239
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7009,10 +7319,10 @@ function tP() {
|
|
|
7009
7319
|
"96:Perc|Caxixi"
|
|
7010
7320
|
]), sa;
|
|
7011
7321
|
}
|
|
7012
|
-
var la = {},
|
|
7013
|
-
function
|
|
7014
|
-
if (
|
|
7015
|
-
|
|
7322
|
+
var la = {}, Go;
|
|
7323
|
+
function cP() {
|
|
7324
|
+
if (Go) return la;
|
|
7325
|
+
Go = 1, Object.defineProperty(la, "__esModule", { value: !0 });
|
|
7016
7326
|
var r = y(), a = t(r);
|
|
7017
7327
|
function t(e) {
|
|
7018
7328
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7098,10 +7408,10 @@ function nP() {
|
|
|
7098
7408
|
"96:Perc|Caxixi"
|
|
7099
7409
|
]), la;
|
|
7100
7410
|
}
|
|
7101
|
-
var ua = {},
|
|
7102
|
-
function
|
|
7103
|
-
if (
|
|
7104
|
-
|
|
7411
|
+
var ua = {}, xo;
|
|
7412
|
+
function sP() {
|
|
7413
|
+
if (xo) return ua;
|
|
7414
|
+
xo = 1, Object.defineProperty(ua, "__esModule", { value: !0 });
|
|
7105
7415
|
var r = y(), a = t(r);
|
|
7106
7416
|
function t(e) {
|
|
7107
7417
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7187,10 +7497,10 @@ function oP() {
|
|
|
7187
7497
|
"96:Perc|Caxixi"
|
|
7188
7498
|
]), ua;
|
|
7189
7499
|
}
|
|
7190
|
-
var Pa = {},
|
|
7191
|
-
function
|
|
7192
|
-
if (
|
|
7193
|
-
|
|
7500
|
+
var Pa = {}, Ko;
|
|
7501
|
+
function lP() {
|
|
7502
|
+
if (Ko) return Pa;
|
|
7503
|
+
Ko = 1, Object.defineProperty(Pa, "__esModule", { value: !0 });
|
|
7194
7504
|
var r = y(), a = t(r);
|
|
7195
7505
|
function t(e) {
|
|
7196
7506
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7276,10 +7586,10 @@ function iP() {
|
|
|
7276
7586
|
"96:Perc|Caxixi"
|
|
7277
7587
|
]), Pa;
|
|
7278
7588
|
}
|
|
7279
|
-
var da = {},
|
|
7280
|
-
function
|
|
7281
|
-
if (
|
|
7282
|
-
|
|
7589
|
+
var da = {}, No;
|
|
7590
|
+
function uP() {
|
|
7591
|
+
if (No) return da;
|
|
7592
|
+
No = 1, Object.defineProperty(da, "__esModule", { value: !0 });
|
|
7283
7593
|
var r = y(), a = t(r);
|
|
7284
7594
|
function t(e) {
|
|
7285
7595
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7365,10 +7675,10 @@ function cP() {
|
|
|
7365
7675
|
"96:Perc|Caxixi"
|
|
7366
7676
|
]), da;
|
|
7367
7677
|
}
|
|
7368
|
-
var ma = {},
|
|
7369
|
-
function
|
|
7370
|
-
if (
|
|
7371
|
-
|
|
7678
|
+
var ma = {}, qo;
|
|
7679
|
+
function PP() {
|
|
7680
|
+
if (qo) return ma;
|
|
7681
|
+
qo = 1, Object.defineProperty(ma, "__esModule", { value: !0 });
|
|
7372
7682
|
var r = y(), a = t(r);
|
|
7373
7683
|
function t(e) {
|
|
7374
7684
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7454,10 +7764,10 @@ function sP() {
|
|
|
7454
7764
|
"96:Perc|Caxixi"
|
|
7455
7765
|
]), ma;
|
|
7456
7766
|
}
|
|
7457
|
-
var pa = {},
|
|
7458
|
-
function
|
|
7459
|
-
if (
|
|
7460
|
-
|
|
7767
|
+
var pa = {}, Wo;
|
|
7768
|
+
function dP() {
|
|
7769
|
+
if (Wo) return pa;
|
|
7770
|
+
Wo = 1, Object.defineProperty(pa, "__esModule", { value: !0 });
|
|
7461
7771
|
var r = y(), a = t(r);
|
|
7462
7772
|
function t(e) {
|
|
7463
7773
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7543,10 +7853,10 @@ function lP() {
|
|
|
7543
7853
|
"96:Perc|Caxixi"
|
|
7544
7854
|
]), pa;
|
|
7545
7855
|
}
|
|
7546
|
-
var ha = {},
|
|
7547
|
-
function
|
|
7548
|
-
if (
|
|
7549
|
-
|
|
7856
|
+
var ha = {}, Uo;
|
|
7857
|
+
function mP() {
|
|
7858
|
+
if (Uo) return ha;
|
|
7859
|
+
Uo = 1, Object.defineProperty(ha, "__esModule", { value: !0 });
|
|
7550
7860
|
var r = y(), a = t(r);
|
|
7551
7861
|
function t(e) {
|
|
7552
7862
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7633,10 +7943,10 @@ function uP() {
|
|
|
7633
7943
|
"96:Perc|55 Claves"
|
|
7634
7944
|
]), ha;
|
|
7635
7945
|
}
|
|
7636
|
-
var fa = {},
|
|
7637
|
-
function
|
|
7638
|
-
if (
|
|
7639
|
-
|
|
7946
|
+
var fa = {}, zo;
|
|
7947
|
+
function pP() {
|
|
7948
|
+
if (zo) return fa;
|
|
7949
|
+
zo = 1, Object.defineProperty(fa, "__esModule", { value: !0 });
|
|
7640
7950
|
var r = y(), a = t(r);
|
|
7641
7951
|
function t(e) {
|
|
7642
7952
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7667,10 +7977,10 @@ function PP() {
|
|
|
7667
7977
|
"57:Cymbals|Crash 2 Bow"
|
|
7668
7978
|
]), fa;
|
|
7669
7979
|
}
|
|
7670
|
-
var ga = {},
|
|
7671
|
-
function
|
|
7672
|
-
if (
|
|
7673
|
-
|
|
7980
|
+
var ga = {}, Fo;
|
|
7981
|
+
function hP() {
|
|
7982
|
+
if (Fo) return ga;
|
|
7983
|
+
Fo = 1, Object.defineProperty(ga, "__esModule", { value: !0 });
|
|
7674
7984
|
var r = y(), a = t(r);
|
|
7675
7985
|
function t(e) {
|
|
7676
7986
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7804,10 +8114,10 @@ function dP() {
|
|
|
7804
8114
|
"126:Perc|Hand Cymbal"
|
|
7805
8115
|
]), ga;
|
|
7806
8116
|
}
|
|
7807
|
-
var Ta = {},
|
|
7808
|
-
function
|
|
7809
|
-
if (
|
|
7810
|
-
|
|
8117
|
+
var Ta = {}, Io;
|
|
8118
|
+
function fP() {
|
|
8119
|
+
if (Io) return Ta;
|
|
8120
|
+
Io = 1, Object.defineProperty(Ta, "__esModule", { value: !0 });
|
|
7811
8121
|
var r = y(), a = t(r);
|
|
7812
8122
|
function t(e) {
|
|
7813
8123
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7838,10 +8148,10 @@ function mP() {
|
|
|
7838
8148
|
"57:Cymbals|Crash 2 Bow"
|
|
7839
8149
|
]), Ta;
|
|
7840
8150
|
}
|
|
7841
|
-
var Sa = {},
|
|
7842
|
-
function
|
|
7843
|
-
if (
|
|
7844
|
-
|
|
8151
|
+
var Sa = {}, Vo;
|
|
8152
|
+
function gP() {
|
|
8153
|
+
if (Vo) return Sa;
|
|
8154
|
+
Vo = 1, Object.defineProperty(Sa, "__esModule", { value: !0 });
|
|
7845
8155
|
var r = y(), a = t(r);
|
|
7846
8156
|
function t(e) {
|
|
7847
8157
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7875,10 +8185,10 @@ function pP() {
|
|
|
7875
8185
|
"59:Cymbals|Ride Edge"
|
|
7876
8186
|
]), Sa;
|
|
7877
8187
|
}
|
|
7878
|
-
var Ca = {},
|
|
7879
|
-
function
|
|
7880
|
-
if (
|
|
7881
|
-
|
|
8188
|
+
var Ca = {}, jo;
|
|
8189
|
+
function TP() {
|
|
8190
|
+
if (jo) return Ca;
|
|
8191
|
+
jo = 1, Object.defineProperty(Ca, "__esModule", { value: !0 });
|
|
7882
8192
|
var r = y(), a = t(r);
|
|
7883
8193
|
function t(e) {
|
|
7884
8194
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7947,10 +8257,10 @@ function hP() {
|
|
|
7947
8257
|
"87:Perc|Open Surdo"
|
|
7948
8258
|
]), Ca;
|
|
7949
8259
|
}
|
|
7950
|
-
var va = {},
|
|
7951
|
-
function
|
|
7952
|
-
if (
|
|
7953
|
-
|
|
8260
|
+
var va = {}, Xo;
|
|
8261
|
+
function SP() {
|
|
8262
|
+
if (Xo) return va;
|
|
8263
|
+
Xo = 1, Object.defineProperty(va, "__esModule", { value: !0 });
|
|
7954
8264
|
var r = y(), a = t(r);
|
|
7955
8265
|
function t(e) {
|
|
7956
8266
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -7979,10 +8289,10 @@ function fP() {
|
|
|
7979
8289
|
"59:Rides|Ride Cymbal 2"
|
|
7980
8290
|
]), va;
|
|
7981
8291
|
}
|
|
7982
|
-
var Ra = {},
|
|
7983
|
-
function
|
|
7984
|
-
if (
|
|
7985
|
-
|
|
8292
|
+
var Ra = {}, Jo;
|
|
8293
|
+
function CP() {
|
|
8294
|
+
if (Jo) return Ra;
|
|
8295
|
+
Jo = 1, Object.defineProperty(Ra, "__esModule", { value: !0 });
|
|
7986
8296
|
var r = y(), a = t(r);
|
|
7987
8297
|
function t(e) {
|
|
7988
8298
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8051,10 +8361,10 @@ function gP() {
|
|
|
8051
8361
|
"87:Perc|Open Surdo"
|
|
8052
8362
|
]), Ra;
|
|
8053
8363
|
}
|
|
8054
|
-
var _a = {},
|
|
8055
|
-
function
|
|
8056
|
-
if (
|
|
8057
|
-
|
|
8364
|
+
var _a = {}, $o;
|
|
8365
|
+
function vP() {
|
|
8366
|
+
if ($o) return _a;
|
|
8367
|
+
$o = 1, Object.defineProperty(_a, "__esModule", { value: !0 });
|
|
8058
8368
|
var r = y(), a = t(r);
|
|
8059
8369
|
function t(e) {
|
|
8060
8370
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8132,10 +8442,10 @@ function TP() {
|
|
|
8132
8442
|
"96:Perc|Spring"
|
|
8133
8443
|
]), _a;
|
|
8134
8444
|
}
|
|
8135
|
-
var ba = {},
|
|
8136
|
-
function
|
|
8137
|
-
if (
|
|
8138
|
-
|
|
8445
|
+
var ba = {}, Yo;
|
|
8446
|
+
function RP() {
|
|
8447
|
+
if (Yo) return ba;
|
|
8448
|
+
Yo = 1, Object.defineProperty(ba, "__esModule", { value: !0 });
|
|
8139
8449
|
var r = y(), a = t(r);
|
|
8140
8450
|
function t(e) {
|
|
8141
8451
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8203,10 +8513,10 @@ function SP() {
|
|
|
8203
8513
|
"83:Cymbals|Cymbal FX/Alt"
|
|
8204
8514
|
]), ba;
|
|
8205
8515
|
}
|
|
8206
|
-
var Ha = {},
|
|
8207
|
-
function
|
|
8208
|
-
if (
|
|
8209
|
-
|
|
8516
|
+
var Ha = {}, Qo;
|
|
8517
|
+
function _P() {
|
|
8518
|
+
if (Qo) return Ha;
|
|
8519
|
+
Qo = 1, Object.defineProperty(Ha, "__esModule", { value: !0 });
|
|
8210
8520
|
var r = y(), a = t(r);
|
|
8211
8521
|
function t(e) {
|
|
8212
8522
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8247,10 +8557,10 @@ function CP() {
|
|
|
8247
8557
|
"72:Toms|Low Tom"
|
|
8248
8558
|
]), Ha;
|
|
8249
8559
|
}
|
|
8250
|
-
var ya = {},
|
|
8251
|
-
function
|
|
8252
|
-
if (
|
|
8253
|
-
|
|
8560
|
+
var ya = {}, Zo;
|
|
8561
|
+
function bP() {
|
|
8562
|
+
if (Zo) return ya;
|
|
8563
|
+
Zo = 1, Object.defineProperty(ya, "__esModule", { value: !0 });
|
|
8254
8564
|
var r = y(), a = t(r);
|
|
8255
8565
|
function t(e) {
|
|
8256
8566
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8318,10 +8628,10 @@ function vP() {
|
|
|
8318
8628
|
"83:Cymbals|Cymbal FX/Alt"
|
|
8319
8629
|
]), ya;
|
|
8320
8630
|
}
|
|
8321
|
-
var Ma = {},
|
|
8322
|
-
function
|
|
8323
|
-
if (
|
|
8324
|
-
|
|
8631
|
+
var Ma = {}, ei;
|
|
8632
|
+
function HP() {
|
|
8633
|
+
if (ei) return Ma;
|
|
8634
|
+
ei = 1, Object.defineProperty(Ma, "__esModule", { value: !0 });
|
|
8325
8635
|
var r = y(), a = t(r);
|
|
8326
8636
|
function t(e) {
|
|
8327
8637
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8364,10 +8674,10 @@ function RP() {
|
|
|
8364
8674
|
"127:Snares|X-Snare Sidestick"
|
|
8365
8675
|
]), Ma;
|
|
8366
8676
|
}
|
|
8367
|
-
var ka = {},
|
|
8368
|
-
function
|
|
8369
|
-
if (
|
|
8370
|
-
|
|
8677
|
+
var ka = {}, ri;
|
|
8678
|
+
function yP() {
|
|
8679
|
+
if (ri) return ka;
|
|
8680
|
+
ri = 1, Object.defineProperty(ka, "__esModule", { value: !0 });
|
|
8371
8681
|
var r = y(), a = t(r);
|
|
8372
8682
|
function t(e) {
|
|
8373
8683
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8394,10 +8704,10 @@ function _P() {
|
|
|
8394
8704
|
"59:Cymbals|Crash 1 Bow"
|
|
8395
8705
|
]), ka;
|
|
8396
8706
|
}
|
|
8397
|
-
var wa = {},
|
|
8398
|
-
function
|
|
8399
|
-
if (
|
|
8400
|
-
|
|
8707
|
+
var wa = {}, ai;
|
|
8708
|
+
function MP() {
|
|
8709
|
+
if (ai) return wa;
|
|
8710
|
+
ai = 1, Object.defineProperty(wa, "__esModule", { value: !0 });
|
|
8401
8711
|
var r = y(), a = t(r);
|
|
8402
8712
|
function t(e) {
|
|
8403
8713
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8421,10 +8731,10 @@ function bP() {
|
|
|
8421
8731
|
"85:Hats|HH Splash"
|
|
8422
8732
|
]), wa;
|
|
8423
8733
|
}
|
|
8424
|
-
var Ba = {},
|
|
8425
|
-
function
|
|
8426
|
-
if (
|
|
8427
|
-
|
|
8734
|
+
var Ba = {}, ti;
|
|
8735
|
+
function kP() {
|
|
8736
|
+
if (ti) return Ba;
|
|
8737
|
+
ti = 1, Object.defineProperty(Ba, "__esModule", { value: !0 });
|
|
8428
8738
|
var r = y(), a = t(r);
|
|
8429
8739
|
function t(e) {
|
|
8430
8740
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8558,10 +8868,10 @@ function HP() {
|
|
|
8558
8868
|
"126:Percussion|Gong"
|
|
8559
8869
|
]), Ba;
|
|
8560
8870
|
}
|
|
8561
|
-
var Da = {},
|
|
8562
|
-
function
|
|
8563
|
-
if (
|
|
8564
|
-
|
|
8871
|
+
var Da = {}, ni;
|
|
8872
|
+
function wP() {
|
|
8873
|
+
if (ni) return Da;
|
|
8874
|
+
ni = 1, Object.defineProperty(Da, "__esModule", { value: !0 });
|
|
8565
8875
|
var r = y(), a = t(r);
|
|
8566
8876
|
function t(e) {
|
|
8567
8877
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8657,10 +8967,10 @@ function yP() {
|
|
|
8657
8967
|
"118:Rides|Big Sizzle bell 20"
|
|
8658
8968
|
]), Da;
|
|
8659
8969
|
}
|
|
8660
|
-
var Oa = {},
|
|
8661
|
-
function
|
|
8662
|
-
if (
|
|
8663
|
-
|
|
8970
|
+
var Oa = {}, oi;
|
|
8971
|
+
function BP() {
|
|
8972
|
+
if (oi) return Oa;
|
|
8973
|
+
oi = 1, Object.defineProperty(Oa, "__esModule", { value: !0 });
|
|
8664
8974
|
var r = y(), a = t(r);
|
|
8665
8975
|
function t(e) {
|
|
8666
8976
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -8754,11 +9064,11 @@ function MP() {
|
|
|
8754
9064
|
"112:Cymbals|Dark Brush 16"
|
|
8755
9065
|
]), Oa;
|
|
8756
9066
|
}
|
|
8757
|
-
var
|
|
8758
|
-
function
|
|
8759
|
-
if (
|
|
8760
|
-
|
|
8761
|
-
var r =
|
|
9067
|
+
var ii;
|
|
9068
|
+
function Ji() {
|
|
9069
|
+
if (ii) return ke;
|
|
9070
|
+
ii = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.getMapping = ke.getStockNames = void 0;
|
|
9071
|
+
var r = Xi(), a = eu(), t = k(a), e = ru(), n = k(e), o = au(), s = k(o), i = tu(), c = k(i), l = nu(), h = k(l), u = ou(), p = k(u), d = iu(), m = k(d), f = cu(), v = k(f), G = su(), K = k(G), R = lu(), S = k(R), P = uu(), C = k(P), T = Pu(), _ = k(T), w = du(), x = k(w), F = mu(), j = k(F), ie = pu(), oe = k(ie), me = hu(), Y = k(me), Z = fu(), pe = k(Z), ue = gu(), H = k(ue), M = Tu(), U = k(M), N = Su(), q = k(N), D = Cu(), L = k(D), W = vu(), I = k(W), z = Ru(), V = k(z), re = _u(), B = k(re), ae = bu(), Ce = k(ae), fe = Hu(), Ne = k(fe), qe = yu(), te = k(qe), Pe = Mu(), Ae = k(Pe), Xe = ku(), We = k(Xe), ge = wu(), Ee = k(ge), Ya = Bu(), Qa = k(Ya), Za = Du(), et = k(Za), rt = Ou(), at = k(rt), Je = Au(), $e = k(Je), tt = Eu(), Ye = k(tt), nt = Lu(), g = k(nt), b = Gu(), A = k(b), X = xu(), ce = k(X), de = Ku(), ve = k(de), Me = Nu(), Le = k(Me), ot = qu(), He = k(ot), Ge = Wu(), Qe = k(Ge), Ec = Uu(), Lc = k(Ec), Gc = zu(), xc = k(Gc), Kc = Fu(), Nc = k(Kc), qc = Iu(), Wc = k(qc), Uc = Vu(), zc = k(Uc), Fc = ju(), Ic = k(Fc), Vc = Xu(), jc = k(Vc), Xc = Ju(), Jc = k(Xc), $c = $u(), Yc = k($c), Qc = Yu(), Zc = k(Qc), es = Qu(), rs = k(es), as = Zu(), ts = k(as), ns = eP(), os = k(ns), is = rP(), cs = k(is), ss = aP(), ls = k(ss), us = tP(), Ps = k(us), ds = nP(), ms = k(ds), ps = oP(), hs = k(ps), fs = iP(), gs = k(fs), Ts = cP(), Ss = k(Ts), Cs = sP(), vs = k(Cs), Rs = lP(), _s = k(Rs), bs = uP(), Hs = k(bs), ys = PP(), Ms = k(ys), ks = dP(), ws = k(ks), Bs = mP(), Ds = k(Bs), Os = pP(), As = k(Os), Es = hP(), Ls = k(Es), Gs = fP(), xs = k(Gs), Ks = gP(), Ns = k(Ks), qs = TP(), Ws = k(qs), Us = SP(), zs = k(Us), Fs = CP(), Is = k(Fs), Vs = vP(), js = k(Vs), Xs = RP(), Js = k(Xs), $s = _P(), Ys = k($s), Qs = bP(), Zs = k(Qs), el = HP(), rl = k(el), al = yP(), tl = k(al), nl = MP(), ol = k(nl), il = kP(), cl = k(il), sl = wP(), ll = k(sl), ul = BP(), Pl = k(ul);
|
|
8762
9072
|
function k(xe) {
|
|
8763
9073
|
return xe && xe.__esModule ? xe : { default: xe };
|
|
8764
9074
|
}
|
|
@@ -8850,11 +9160,11 @@ function Xi() {
|
|
|
8850
9160
|
"Zendrum TRS 2.0",
|
|
8851
9161
|
"Zendrum TRS"
|
|
8852
9162
|
];
|
|
8853
|
-
}, ke.getMapping = function(
|
|
8854
|
-
var
|
|
8855
|
-
if (
|
|
8856
|
-
return
|
|
8857
|
-
switch (
|
|
9163
|
+
}, ke.getMapping = function(tn) {
|
|
9164
|
+
var nn = (0, r.getUserMapping)(tn);
|
|
9165
|
+
if (nn)
|
|
9166
|
+
return nn;
|
|
9167
|
+
switch (tn) {
|
|
8858
9168
|
case "2box":
|
|
8859
9169
|
return t.default;
|
|
8860
9170
|
case "Addictive Drums":
|
|
@@ -8940,107 +9250,107 @@ function Xi() {
|
|
|
8940
9250
|
case "Roland TD-30 Perc 4 (Salsa)":
|
|
8941
9251
|
return Qe.default;
|
|
8942
9252
|
case "Roland TD-30 Perc 5 (SFX)":
|
|
8943
|
-
return
|
|
9253
|
+
return Lc.default;
|
|
8944
9254
|
case "Roland TD-30 Perc 6-8 (User)":
|
|
8945
|
-
return
|
|
9255
|
+
return xc.default;
|
|
8946
9256
|
case "Roland TD-30":
|
|
8947
|
-
return
|
|
9257
|
+
return Nc.default;
|
|
8948
9258
|
case "Roland TD-5":
|
|
8949
|
-
return
|
|
9259
|
+
return Wc.default;
|
|
8950
9260
|
case "Roland TD-6 Perc 1":
|
|
8951
|
-
return
|
|
9261
|
+
return zc.default;
|
|
8952
9262
|
case "Roland TD-6 Perc 10 (Special)":
|
|
8953
|
-
return
|
|
9263
|
+
return Ic.default;
|
|
8954
9264
|
case "Roland TD-6 Perc 2":
|
|
8955
|
-
return
|
|
9265
|
+
return jc.default;
|
|
8956
9266
|
case "Roland TD-6 Perc 3 (Room)":
|
|
8957
|
-
return
|
|
9267
|
+
return Jc.default;
|
|
8958
9268
|
case "Roland TD-6 Perc 4 (Power)":
|
|
8959
|
-
return
|
|
9269
|
+
return Yc.default;
|
|
8960
9270
|
case "Roland TD-6 Perc 5 (Elec)":
|
|
8961
|
-
return
|
|
9271
|
+
return Zc.default;
|
|
8962
9272
|
case "Roland TD-6 Perc 6 (808)":
|
|
8963
|
-
return
|
|
9273
|
+
return rs.default;
|
|
8964
9274
|
case "Roland TD-6 Perc 7 (Jazz)":
|
|
8965
|
-
return
|
|
9275
|
+
return ts.default;
|
|
8966
9276
|
case "Roland TD-6 Perc 8 (Brush)":
|
|
8967
|
-
return
|
|
9277
|
+
return os.default;
|
|
8968
9278
|
case "Roland TD-6 Perc 9 (Perc)":
|
|
8969
|
-
return
|
|
9279
|
+
return cs.default;
|
|
8970
9280
|
case "Roland TD-6":
|
|
8971
|
-
return
|
|
9281
|
+
return ls.default;
|
|
8972
9282
|
case "Roland TD-7":
|
|
8973
|
-
return
|
|
9283
|
+
return Ps.default;
|
|
8974
9284
|
case "Roland TD-8 Perc 1":
|
|
8975
|
-
return
|
|
9285
|
+
return ms.default;
|
|
8976
9286
|
case "Roland TD-8 Perc 10 (Special)":
|
|
8977
|
-
return
|
|
9287
|
+
return hs.default;
|
|
8978
9288
|
case "Roland TD-8 Perc 2":
|
|
8979
|
-
return
|
|
9289
|
+
return gs.default;
|
|
8980
9290
|
case "Roland TD-8 Perc 3 (Room)":
|
|
8981
|
-
return
|
|
9291
|
+
return Ss.default;
|
|
8982
9292
|
case "Roland TD-8 Perc 4 (Power)":
|
|
8983
|
-
return
|
|
9293
|
+
return vs.default;
|
|
8984
9294
|
case "Roland TD-8 Perc 5 (Elec)":
|
|
8985
|
-
return
|
|
9295
|
+
return _s.default;
|
|
8986
9296
|
case "Roland TD-8 Perc 6 (808)":
|
|
8987
|
-
return
|
|
9297
|
+
return Hs.default;
|
|
8988
9298
|
case "Roland TD-8 Perc 7 (Jazz)":
|
|
8989
|
-
return
|
|
9299
|
+
return Ms.default;
|
|
8990
9300
|
case "Roland TD-8 Perc 8 (Brush)":
|
|
8991
|
-
return
|
|
9301
|
+
return ws.default;
|
|
8992
9302
|
case "Roland TD-8 Perc 9 (Perc)":
|
|
8993
|
-
return
|
|
9303
|
+
return Ds.default;
|
|
8994
9304
|
case "Roland TD-8":
|
|
8995
|
-
return
|
|
9305
|
+
return As.default;
|
|
8996
9306
|
case "Roland TD-9 Perc":
|
|
8997
|
-
return
|
|
9307
|
+
return Ls.default;
|
|
8998
9308
|
case "Roland TD-9":
|
|
8999
|
-
return
|
|
9309
|
+
return xs.default;
|
|
9000
9310
|
case "Simmons SD1000":
|
|
9001
|
-
return
|
|
9311
|
+
return Ns.default;
|
|
9002
9312
|
case "Simmons SD5X":
|
|
9003
|
-
return
|
|
9313
|
+
return Ws.default;
|
|
9004
9314
|
case "Simmons SD7":
|
|
9005
|
-
return
|
|
9315
|
+
return zs.default;
|
|
9006
9316
|
case "Simmons SD7PK":
|
|
9007
|
-
return
|
|
9317
|
+
return Is.default;
|
|
9008
9318
|
case "Simmons SD9K":
|
|
9009
|
-
return
|
|
9319
|
+
return js.default;
|
|
9010
9320
|
case "Sonic Reality iMap Extended":
|
|
9011
|
-
return
|
|
9321
|
+
return Js.default;
|
|
9012
9322
|
case "Sonic Reality iMap Standard":
|
|
9013
|
-
return
|
|
9323
|
+
return Ys.default;
|
|
9014
9324
|
case "Studio ProFiles":
|
|
9015
|
-
return
|
|
9325
|
+
return Zs.default;
|
|
9016
9326
|
case "Superior Drummer":
|
|
9017
|
-
return
|
|
9327
|
+
return rl.default;
|
|
9018
9328
|
case "Yamaha DTX 700":
|
|
9019
|
-
return
|
|
9329
|
+
return tl.default;
|
|
9020
9330
|
case "Yamaha DTXplorer":
|
|
9021
|
-
return
|
|
9331
|
+
return ol.default;
|
|
9022
9332
|
case "Zendrum Stompblock":
|
|
9023
|
-
return
|
|
9333
|
+
return cl.default;
|
|
9024
9334
|
case "Zendrum TRS 2.0":
|
|
9025
|
-
return
|
|
9335
|
+
return ll.default;
|
|
9026
9336
|
case "Zendrum TRS":
|
|
9027
|
-
return
|
|
9337
|
+
return Pl.default;
|
|
9028
9338
|
default:
|
|
9029
9339
|
return null;
|
|
9030
9340
|
}
|
|
9031
9341
|
}, ke;
|
|
9032
9342
|
}
|
|
9033
|
-
var
|
|
9034
|
-
function
|
|
9035
|
-
return
|
|
9343
|
+
var ci;
|
|
9344
|
+
function DP() {
|
|
9345
|
+
return ci || (ci = 1, function(r) {
|
|
9036
9346
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
9037
|
-
var a =
|
|
9347
|
+
var a = Ji();
|
|
9038
9348
|
Object.defineProperty(r, "getStockNames", { enumerable: !0, get: function() {
|
|
9039
9349
|
return a.getStockNames;
|
|
9040
9350
|
} }), Object.defineProperty(r, "getMapping", { enumerable: !0, get: function() {
|
|
9041
9351
|
return a.getMapping;
|
|
9042
9352
|
} });
|
|
9043
|
-
var t =
|
|
9353
|
+
var t = Xi();
|
|
9044
9354
|
Object.defineProperty(r, "storeMapping", { enumerable: !0, get: function() {
|
|
9045
9355
|
return t.storeMapping;
|
|
9046
9356
|
} }), Object.defineProperty(r, "removeMapping", { enumerable: !0, get: function() {
|
|
@@ -9078,63 +9388,70 @@ function kP() {
|
|
|
9078
9388
|
{ value: "Groove", label: "Groove" }
|
|
9079
9389
|
];
|
|
9080
9390
|
};
|
|
9081
|
-
}(
|
|
9391
|
+
}(gt)), gt;
|
|
9082
9392
|
}
|
|
9083
|
-
var Ka =
|
|
9084
|
-
const
|
|
9393
|
+
var Ka = DP();
|
|
9394
|
+
const u1 = Se(({ allowClearing: r, ...a }, t) => {
|
|
9085
9395
|
const e = Ka.getStockNames(), n = Ka.getUserMappingNames(), o = Be(() => [
|
|
9086
9396
|
...r ? [
|
|
9087
9397
|
{
|
|
9088
9398
|
value: "No Mapping",
|
|
9089
|
-
label: O("span", { className: "zds-mappings-clear-mapping", children: "No Mapping" })
|
|
9399
|
+
label: /* @__PURE__ */ O("span", { className: "zds-mappings-clear-mapping", children: "No Mapping" })
|
|
9090
9400
|
}
|
|
9091
9401
|
] : [],
|
|
9092
9402
|
{
|
|
9093
|
-
label: r ? O("hr", {}) : "",
|
|
9403
|
+
label: r ? /* @__PURE__ */ O("hr", {}) : "",
|
|
9094
9404
|
options: n.map((i) => ({
|
|
9095
9405
|
value: i,
|
|
9096
|
-
label: O("span", { className: "zds-mappings-user-mapping", children: i })
|
|
9406
|
+
label: /* @__PURE__ */ O("span", { className: "zds-mappings-user-mapping", children: i })
|
|
9097
9407
|
}))
|
|
9098
9408
|
},
|
|
9099
9409
|
{
|
|
9100
|
-
label: n.length ? O("hr", {}) : r ? O("hr", {}) : "",
|
|
9410
|
+
label: n.length ? /* @__PURE__ */ O("hr", {}) : r ? /* @__PURE__ */ O("hr", {}) : "",
|
|
9101
9411
|
options: e.map((i) => ({
|
|
9102
9412
|
label: i,
|
|
9103
9413
|
value: i
|
|
9104
9414
|
}))
|
|
9105
9415
|
}
|
|
9106
9416
|
], [r, e, n]);
|
|
9107
|
-
return
|
|
9417
|
+
return /* @__PURE__ */ O(
|
|
9418
|
+
_e,
|
|
9419
|
+
{
|
|
9420
|
+
...a,
|
|
9421
|
+
options: o,
|
|
9422
|
+
ref: t
|
|
9423
|
+
}
|
|
9424
|
+
);
|
|
9108
9425
|
});
|
|
9109
|
-
function
|
|
9426
|
+
function $i(r) {
|
|
9110
9427
|
return r !== null && typeof r == "object" && "name" in r && typeof r.name == "string";
|
|
9111
9428
|
}
|
|
9112
|
-
function
|
|
9429
|
+
function Yi(r) {
|
|
9113
9430
|
return r !== null && typeof r == "object" && "step" in r && typeof r.step == "number" && "alt" in r && typeof r.alt == "number" && !isNaN(r.step) && !isNaN(r.alt);
|
|
9114
9431
|
}
|
|
9115
|
-
var
|
|
9432
|
+
var Qi = [0, 2, 4, -1, 1, 3, 5], Zi = Qi.map(
|
|
9116
9433
|
(r) => Math.floor(r * 7 / 12)
|
|
9117
9434
|
);
|
|
9118
|
-
function
|
|
9119
|
-
const { step: a, alt: t, oct: e, dir: n = 1 } = r, o =
|
|
9435
|
+
function ec(r) {
|
|
9436
|
+
const { step: a, alt: t, oct: e, dir: n = 1 } = r, o = Qi[a] + 7 * t;
|
|
9120
9437
|
if (e === void 0)
|
|
9121
9438
|
return [n * o];
|
|
9122
|
-
const s = e -
|
|
9439
|
+
const s = e - Zi[a] - 4 * t;
|
|
9123
9440
|
return [n * o, n * s];
|
|
9124
9441
|
}
|
|
9125
|
-
var
|
|
9126
|
-
function
|
|
9127
|
-
const [a, t, e] = r, n =
|
|
9442
|
+
var OP = [3, 0, 4, 1, 5, 2, 6];
|
|
9443
|
+
function AP(r) {
|
|
9444
|
+
const [a, t, e] = r, n = OP[EP(a)], o = Math.floor((a + 1) / 7);
|
|
9128
9445
|
if (t === void 0)
|
|
9129
9446
|
return { step: n, alt: o, dir: e };
|
|
9130
|
-
const s = t + 4 * o +
|
|
9447
|
+
const s = t + 4 * o + Zi[n];
|
|
9131
9448
|
return { step: n, alt: o, oct: s, dir: e };
|
|
9132
9449
|
}
|
|
9133
|
-
function
|
|
9450
|
+
function EP(r) {
|
|
9134
9451
|
const a = (r + 1) % 7;
|
|
9135
9452
|
return a < 0 ? 7 + a : a;
|
|
9136
9453
|
}
|
|
9137
|
-
var
|
|
9454
|
+
var si = (r, a) => Array(Math.abs(a) + 1).join(r), Nt = Object.freeze({
|
|
9138
9455
|
empty: !0,
|
|
9139
9456
|
name: "",
|
|
9140
9457
|
num: NaN,
|
|
@@ -9148,26 +9465,26 @@ var ci = (r, a) => Array(Math.abs(a) + 1).join(r), Kt = Object.freeze({
|
|
|
9148
9465
|
chroma: NaN,
|
|
9149
9466
|
coord: [],
|
|
9150
9467
|
oct: NaN
|
|
9151
|
-
}),
|
|
9152
|
-
"^" +
|
|
9468
|
+
}), LP = "([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})", GP = "(AA|A|P|M|m|d|dd)([-+]?\\d+)", xP = new RegExp(
|
|
9469
|
+
"^" + LP + "|" + GP + "$"
|
|
9153
9470
|
);
|
|
9154
|
-
function
|
|
9155
|
-
const a =
|
|
9471
|
+
function KP(r) {
|
|
9472
|
+
const a = xP.exec(`${r}`);
|
|
9156
9473
|
return a === null ? ["", ""] : a[1] ? [a[1], a[2]] : [a[4], a[3]];
|
|
9157
9474
|
}
|
|
9158
|
-
var
|
|
9475
|
+
var li = {};
|
|
9159
9476
|
function Na(r) {
|
|
9160
|
-
return typeof r == "string" ?
|
|
9477
|
+
return typeof r == "string" ? li[r] || (li[r] = NP(r)) : Yi(r) ? Na(WP(r)) : $i(r) ? Na(r.name) : Nt;
|
|
9161
9478
|
}
|
|
9162
|
-
var
|
|
9163
|
-
function
|
|
9164
|
-
const a =
|
|
9479
|
+
var ui = [0, 2, 4, 5, 7, 9, 11], rc = "PMMPPMM";
|
|
9480
|
+
function NP(r) {
|
|
9481
|
+
const a = KP(r);
|
|
9165
9482
|
if (a[0] === "")
|
|
9166
|
-
return
|
|
9167
|
-
const t = +a[0], e = a[1], n = (Math.abs(t) - 1) % 7, o =
|
|
9483
|
+
return Nt;
|
|
9484
|
+
const t = +a[0], e = a[1], n = (Math.abs(t) - 1) % 7, o = rc[n];
|
|
9168
9485
|
if (o === "M" && e === "P")
|
|
9169
|
-
return
|
|
9170
|
-
const s = o === "M" ? "majorable" : "perfectable", i = "" + t + e, c = t < 0 ? -1 : 1, l = t === 8 || t === -8 ? t : c * (n + 1), h =
|
|
9486
|
+
return Nt;
|
|
9487
|
+
const s = o === "M" ? "majorable" : "perfectable", i = "" + t + e, c = t < 0 ? -1 : 1, l = t === 8 || t === -8 ? t : c * (n + 1), h = qP(s, e), u = Math.floor((Math.abs(t) - 1) / 7), p = c * (ui[n] + h + 12 * u), d = (c * (ui[n] + h) % 12 + 12) % 12, m = ec({ step: n, alt: h, oct: u, dir: c });
|
|
9171
9488
|
return {
|
|
9172
9489
|
empty: !1,
|
|
9173
9490
|
name: i,
|
|
@@ -9184,20 +9501,20 @@ function GP(r) {
|
|
|
9184
9501
|
oct: u
|
|
9185
9502
|
};
|
|
9186
9503
|
}
|
|
9187
|
-
function
|
|
9504
|
+
function qP(r, a) {
|
|
9188
9505
|
return a === "M" && r === "majorable" || a === "P" && r === "perfectable" ? 0 : a === "m" && r === "majorable" ? -1 : /^A+$/.test(a) ? a.length : /^d+$/.test(a) ? -1 * (r === "perfectable" ? a.length : a.length + 1) : 0;
|
|
9189
9506
|
}
|
|
9190
|
-
function
|
|
9507
|
+
function WP(r) {
|
|
9191
9508
|
const { step: a, alt: t, oct: e = 0, dir: n } = r;
|
|
9192
9509
|
if (!n)
|
|
9193
9510
|
return "";
|
|
9194
|
-
const o = a + 1 + 7 * e, s = o === 0 ? a + 1 : o, i = n < 0 ? "-" : "", c =
|
|
9195
|
-
return i + s +
|
|
9511
|
+
const o = a + 1 + 7 * e, s = o === 0 ? a + 1 : o, i = n < 0 ? "-" : "", c = rc[a] === "M" ? "majorable" : "perfectable";
|
|
9512
|
+
return i + s + UP(c, t);
|
|
9196
9513
|
}
|
|
9197
|
-
function
|
|
9198
|
-
return a === 0 ? r === "majorable" ? "M" : "P" : a === -1 && r === "majorable" ? "m" : a > 0 ?
|
|
9514
|
+
function UP(r, a) {
|
|
9515
|
+
return a === 0 ? r === "majorable" ? "M" : "P" : a === -1 && r === "majorable" ? "m" : a > 0 ? si("A", a) : si("d", r === "perfectable" ? a : a + 1);
|
|
9199
9516
|
}
|
|
9200
|
-
var
|
|
9517
|
+
var Pi = (r, a) => Array(Math.abs(a) + 1).join(r), ac = Object.freeze({
|
|
9201
9518
|
empty: !0,
|
|
9202
9519
|
name: "",
|
|
9203
9520
|
letter: "",
|
|
@@ -9210,28 +9527,28 @@ var ui = (r, a) => Array(Math.abs(a) + 1).join(r), rc = Object.freeze({
|
|
|
9210
9527
|
coord: [],
|
|
9211
9528
|
midi: null,
|
|
9212
9529
|
freq: null
|
|
9213
|
-
}),
|
|
9530
|
+
}), di = /* @__PURE__ */ new Map(), zP = (r) => "CDEFGAB".charAt(r), FP = (r) => r < 0 ? Pi("b", -r) : Pi("#", r), IP = (r) => r[0] === "b" ? -r.length : r.length;
|
|
9214
9531
|
function De(r) {
|
|
9215
|
-
const a = JSON.stringify(r), t =
|
|
9532
|
+
const a = JSON.stringify(r), t = di.get(a);
|
|
9216
9533
|
if (t)
|
|
9217
9534
|
return t;
|
|
9218
|
-
const e = typeof r == "string" ?
|
|
9219
|
-
return
|
|
9535
|
+
const e = typeof r == "string" ? $P(r) : Yi(r) ? De(YP(r)) : $i(r) ? De(r.name) : ac;
|
|
9536
|
+
return di.set(a, e), e;
|
|
9220
9537
|
}
|
|
9221
|
-
var
|
|
9222
|
-
function
|
|
9223
|
-
const a =
|
|
9538
|
+
var VP = /^([a-gA-G]?)(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)$/;
|
|
9539
|
+
function jP(r) {
|
|
9540
|
+
const a = VP.exec(r);
|
|
9224
9541
|
return a ? [a[1].toUpperCase(), a[2].replace(/x/g, "##"), a[3], a[4]] : ["", "", "", ""];
|
|
9225
9542
|
}
|
|
9226
|
-
function
|
|
9227
|
-
return De(
|
|
9543
|
+
function XP(r) {
|
|
9544
|
+
return De(AP(r));
|
|
9228
9545
|
}
|
|
9229
|
-
var
|
|
9230
|
-
function
|
|
9231
|
-
const a =
|
|
9546
|
+
var JP = (r, a) => (r % a + a) % a, Tt = [0, 2, 4, 5, 7, 9, 11];
|
|
9547
|
+
function $P(r) {
|
|
9548
|
+
const a = jP(r);
|
|
9232
9549
|
if (a[0] === "" || a[3] !== "")
|
|
9233
|
-
return
|
|
9234
|
-
const t = a[0], e = a[1], n = a[2], o = (t.charCodeAt(0) + 3) % 7, s =
|
|
9550
|
+
return ac;
|
|
9551
|
+
const t = a[0], e = a[1], n = a[2], o = (t.charCodeAt(0) + 3) % 7, s = IP(e), i = n.length ? +n : void 0, c = ec({ step: o, alt: s, oct: i }), l = t + e + n, h = t + e, u = (Tt[o] + s + 120) % 12, p = i === void 0 ? JP(Tt[o] + s, 12) - 12 * 99 : Tt[o] + s + 12 * (i + 1), d = p >= 0 && p <= 127 ? p : null, m = i === void 0 ? null : Math.pow(2, (p - 69) / 12) * 440;
|
|
9235
9552
|
return {
|
|
9236
9553
|
empty: !1,
|
|
9237
9554
|
acc: e,
|
|
@@ -9248,21 +9565,21 @@ function jP(r) {
|
|
|
9248
9565
|
step: o
|
|
9249
9566
|
};
|
|
9250
9567
|
}
|
|
9251
|
-
function
|
|
9252
|
-
const { step: a, alt: t, oct: e } = r, n =
|
|
9568
|
+
function YP(r) {
|
|
9569
|
+
const { step: a, alt: t, oct: e } = r, n = zP(a);
|
|
9253
9570
|
if (!n)
|
|
9254
9571
|
return "";
|
|
9255
|
-
const o = n +
|
|
9572
|
+
const o = n + FP(t);
|
|
9256
9573
|
return e || e === 0 ? o + e : o;
|
|
9257
9574
|
}
|
|
9258
|
-
function
|
|
9575
|
+
function QP(r, a) {
|
|
9259
9576
|
const t = De(r), e = Array.isArray(a) ? a : Na(a).coord;
|
|
9260
9577
|
if (t.empty || !e || e.length < 2)
|
|
9261
9578
|
return "";
|
|
9262
9579
|
const n = t.coord, o = n.length === 1 ? [n[0] + e[0]] : [n[0] + e[0], n[1] + e[1]];
|
|
9263
|
-
return
|
|
9580
|
+
return XP(o).name;
|
|
9264
9581
|
}
|
|
9265
|
-
function
|
|
9582
|
+
function tc(r, a) {
|
|
9266
9583
|
const t = a.length, e = (r % t + t) % t;
|
|
9267
9584
|
return a.slice(e, t).concat(a.slice(0, e));
|
|
9268
9585
|
}
|
|
@@ -9273,16 +9590,16 @@ var Oe = {
|
|
|
9273
9590
|
chroma: "000000000000",
|
|
9274
9591
|
normalized: "000000000000",
|
|
9275
9592
|
intervals: []
|
|
9276
|
-
},
|
|
9277
|
-
function nc(r) {
|
|
9278
|
-
return $P.test(r);
|
|
9279
|
-
}
|
|
9280
|
-
var YP = (r) => typeof r == "number" && r >= 0 && r <= 4095, QP = (r) => r && nc(r.chroma), mi = { [Oe.chroma]: Oe };
|
|
9593
|
+
}, nc = (r) => Number(r).toString(2).padStart(12, "0"), mi = (r) => parseInt(r, 2), ZP = /^[01]{12}$/;
|
|
9281
9594
|
function oc(r) {
|
|
9282
|
-
|
|
9283
|
-
return mi[a] = mi[a] || ad(a);
|
|
9595
|
+
return ZP.test(r);
|
|
9284
9596
|
}
|
|
9285
|
-
var
|
|
9597
|
+
var ed = (r) => typeof r == "number" && r >= 0 && r <= 4095, rd = (r) => r && oc(r.chroma), pi = { [Oe.chroma]: Oe };
|
|
9598
|
+
function ic(r) {
|
|
9599
|
+
const a = oc(r) ? r : ed(r) ? nc(r) : Array.isArray(r) ? id(r) : rd(r) ? r.chroma : Oe.chroma;
|
|
9600
|
+
return pi[a] = pi[a] || od(a);
|
|
9601
|
+
}
|
|
9602
|
+
var ad = [
|
|
9286
9603
|
"1P",
|
|
9287
9604
|
"2m",
|
|
9288
9605
|
"2M",
|
|
@@ -9296,18 +9613,18 @@ var ZP = [
|
|
|
9296
9613
|
"7m",
|
|
9297
9614
|
"7M"
|
|
9298
9615
|
];
|
|
9299
|
-
function
|
|
9616
|
+
function td(r) {
|
|
9300
9617
|
const a = [];
|
|
9301
9618
|
for (let t = 0; t < 12; t++)
|
|
9302
|
-
r.charAt(t) === "1" && a.push(
|
|
9619
|
+
r.charAt(t) === "1" && a.push(ad[t]);
|
|
9303
9620
|
return a;
|
|
9304
9621
|
}
|
|
9305
|
-
function
|
|
9622
|
+
function nd(r) {
|
|
9306
9623
|
const a = r.split("");
|
|
9307
|
-
return a.map((t, e) =>
|
|
9624
|
+
return a.map((t, e) => tc(e, a).join(""));
|
|
9308
9625
|
}
|
|
9309
|
-
function
|
|
9310
|
-
const a =
|
|
9626
|
+
function od(r) {
|
|
9627
|
+
const a = mi(r), t = nd(r).map(mi).filter((o) => o >= 2048).sort()[0], e = nc(t), n = td(r);
|
|
9311
9628
|
return {
|
|
9312
9629
|
empty: !1,
|
|
9313
9630
|
name: "",
|
|
@@ -9317,7 +9634,7 @@ function ad(r) {
|
|
|
9317
9634
|
intervals: n
|
|
9318
9635
|
};
|
|
9319
9636
|
}
|
|
9320
|
-
function
|
|
9637
|
+
function id(r) {
|
|
9321
9638
|
if (r.length === 0)
|
|
9322
9639
|
return Oe.chroma;
|
|
9323
9640
|
let a;
|
|
@@ -9326,7 +9643,7 @@ function td(r) {
|
|
|
9326
9643
|
a = De(r[e]), a.empty && (a = Na(r[e])), a.empty || (t[a.chroma] = 1);
|
|
9327
9644
|
return t.join("");
|
|
9328
9645
|
}
|
|
9329
|
-
var
|
|
9646
|
+
var cd = [
|
|
9330
9647
|
// ==Major==
|
|
9331
9648
|
["1P 3M 5P", "major", "M ^ maj"],
|
|
9332
9649
|
["1P 3M 5P 7M", "major seventh", "maj7 Δ ma7 M7 Maj7 ^7"],
|
|
@@ -9459,33 +9776,33 @@ var nd = [
|
|
|
9459
9776
|
["1P 4P 5P 7m 9m 13m", "", "7sus4b9b13 7b9b13sus4"],
|
|
9460
9777
|
["1P 4P 7m 10m", "", "4 quartal"],
|
|
9461
9778
|
["1P 5P 7m 9m 11P", "", "11b9"]
|
|
9462
|
-
],
|
|
9779
|
+
], sd = cd;
|
|
9463
9780
|
({
|
|
9464
9781
|
...Oe
|
|
9465
9782
|
});
|
|
9466
|
-
var
|
|
9467
|
-
function
|
|
9468
|
-
const e =
|
|
9469
|
-
...
|
|
9783
|
+
var cc = [], La = {};
|
|
9784
|
+
function ld(r, a, t) {
|
|
9785
|
+
const e = Pd(r), n = {
|
|
9786
|
+
...ic(r),
|
|
9470
9787
|
name: t || "",
|
|
9471
9788
|
quality: e,
|
|
9472
9789
|
intervals: r,
|
|
9473
9790
|
aliases: a
|
|
9474
9791
|
};
|
|
9475
|
-
|
|
9792
|
+
cc.push(n), n.name && (La[n.name] = n), La[n.setNum] = n, La[n.chroma] = n, n.aliases.forEach((o) => ud(n, o));
|
|
9476
9793
|
}
|
|
9477
|
-
function
|
|
9794
|
+
function ud(r, a) {
|
|
9478
9795
|
La[a] = r;
|
|
9479
9796
|
}
|
|
9480
|
-
function
|
|
9797
|
+
function Pd(r) {
|
|
9481
9798
|
const a = (t) => r.indexOf(t) !== -1;
|
|
9482
9799
|
return a("5A") ? "Augmented" : a("3M") ? "Major" : a("5d") ? "Diminished" : a("3m") ? "Minor" : "Unknown";
|
|
9483
9800
|
}
|
|
9484
|
-
|
|
9485
|
-
([r, a, t]) =>
|
|
9801
|
+
sd.forEach(
|
|
9802
|
+
([r, a, t]) => ld(r.split(" "), t.split(" "), a)
|
|
9486
9803
|
);
|
|
9487
|
-
|
|
9488
|
-
var
|
|
9804
|
+
cc.sort((r, a) => r.setNum - a.setNum);
|
|
9805
|
+
var dd = [
|
|
9489
9806
|
// Basic scales
|
|
9490
9807
|
["1P 2M 3M 5P 6M", "major pentatonic", "pentatonic"],
|
|
9491
9808
|
["1P 2M 3M 4P 5P 6M 7M", "major", "ionian"],
|
|
@@ -9627,46 +9944,46 @@ var ld = [
|
|
|
9627
9944
|
["1P 2m 2M 3m 4P 4A 5P 6m 6M 7M", "messiaen's mode #7"],
|
|
9628
9945
|
// 12-note scales
|
|
9629
9946
|
["1P 2m 2M 3m 3M 4P 5d 5P 6m 6M 7m 7M", "chromatic"]
|
|
9630
|
-
],
|
|
9947
|
+
], md = dd, pd = {
|
|
9631
9948
|
...Oe,
|
|
9632
9949
|
intervals: [],
|
|
9633
9950
|
aliases: []
|
|
9634
9951
|
}, Fe = {};
|
|
9635
|
-
function
|
|
9636
|
-
return Fe[r] ||
|
|
9952
|
+
function hd(r) {
|
|
9953
|
+
return Fe[r] || pd;
|
|
9637
9954
|
}
|
|
9638
|
-
function
|
|
9639
|
-
const e = { ...
|
|
9640
|
-
return Fe[e.name] = e, Fe[e.setNum] = e, Fe[e.chroma] = e, e.aliases.forEach((n) =>
|
|
9955
|
+
function fd(r, a, t = []) {
|
|
9956
|
+
const e = { ...ic(r), name: a, intervals: r, aliases: t };
|
|
9957
|
+
return Fe[e.name] = e, Fe[e.setNum] = e, Fe[e.chroma] = e, e.aliases.forEach((n) => gd(e, n)), e;
|
|
9641
9958
|
}
|
|
9642
|
-
function
|
|
9959
|
+
function gd(r, a) {
|
|
9643
9960
|
Fe[a] = r;
|
|
9644
9961
|
}
|
|
9645
|
-
|
|
9646
|
-
([r, a, ...t]) =>
|
|
9962
|
+
md.forEach(
|
|
9963
|
+
([r, a, ...t]) => fd(r.split(" "), a, t)
|
|
9647
9964
|
);
|
|
9648
|
-
function
|
|
9965
|
+
function Vt(r) {
|
|
9649
9966
|
return +r >= 0 && +r <= 127;
|
|
9650
9967
|
}
|
|
9651
|
-
function
|
|
9652
|
-
if (
|
|
9968
|
+
function sc(r) {
|
|
9969
|
+
if (Vt(r))
|
|
9653
9970
|
return +r;
|
|
9654
9971
|
const a = De(r);
|
|
9655
9972
|
return a.empty ? null : a.midi;
|
|
9656
9973
|
}
|
|
9657
|
-
function
|
|
9974
|
+
function lc(r, a = 440) {
|
|
9658
9975
|
return Math.pow(2, (r - 69) / 12) * a;
|
|
9659
9976
|
}
|
|
9660
|
-
var
|
|
9661
|
-
function
|
|
9662
|
-
const a = 12 * (Math.log(r) -
|
|
9977
|
+
var Td = Math.log(2), Sd = Math.log(440);
|
|
9978
|
+
function uc(r) {
|
|
9979
|
+
const a = 12 * (Math.log(r) - Sd) / Td + 69;
|
|
9663
9980
|
return Math.round(a * 100) / 100;
|
|
9664
9981
|
}
|
|
9665
|
-
var
|
|
9666
|
-
function
|
|
9982
|
+
var Cd = "C C# D D# E F F# G G# A A# B".split(" "), vd = "C Db D Eb E F Gb G Ab A Bb B".split(" ");
|
|
9983
|
+
function Pc(r, a = {}) {
|
|
9667
9984
|
if (isNaN(r) || r === -1 / 0 || r === 1 / 0) return "";
|
|
9668
9985
|
r = Math.round(r);
|
|
9669
|
-
const e = (a.sharps === !0 ?
|
|
9986
|
+
const e = (a.sharps === !0 ? Cd : vd)[r % 12];
|
|
9670
9987
|
if (a.pitchClass)
|
|
9671
9988
|
return e;
|
|
9672
9989
|
const n = Math.floor(r / 12) - 1;
|
|
@@ -9675,16 +9992,16 @@ function uc(r, a = {}) {
|
|
|
9675
9992
|
function Ia(r) {
|
|
9676
9993
|
return r % 12;
|
|
9677
9994
|
}
|
|
9678
|
-
function
|
|
9995
|
+
function Rd(r) {
|
|
9679
9996
|
return r.split("").reduce((a, t, e) => (e < 12 && t === "1" && a.push(e), a), []);
|
|
9680
9997
|
}
|
|
9681
|
-
function
|
|
9998
|
+
function _d(r) {
|
|
9682
9999
|
return r.map(Ia).sort((a, t) => a - t).filter((a, t, e) => t === 0 || a !== e[t - 1]);
|
|
9683
10000
|
}
|
|
9684
10001
|
function Va(r) {
|
|
9685
|
-
return Array.isArray(r) ?
|
|
10002
|
+
return Array.isArray(r) ? _d(r) : Rd(r);
|
|
9686
10003
|
}
|
|
9687
|
-
function
|
|
10004
|
+
function dc(r) {
|
|
9688
10005
|
const a = Va(r);
|
|
9689
10006
|
return (t) => {
|
|
9690
10007
|
const e = Ia(t);
|
|
@@ -9694,47 +10011,47 @@ function Pc(r) {
|
|
|
9694
10011
|
}
|
|
9695
10012
|
};
|
|
9696
10013
|
}
|
|
9697
|
-
function
|
|
10014
|
+
function jt(r, a) {
|
|
9698
10015
|
const t = Va(r), e = t.length;
|
|
9699
10016
|
return (n) => {
|
|
9700
10017
|
const o = n < 0 ? (e - -n % e) % e : n % e, s = Math.floor(n / e);
|
|
9701
10018
|
return t[o] + s * 12 + a;
|
|
9702
10019
|
};
|
|
9703
10020
|
}
|
|
9704
|
-
function
|
|
9705
|
-
const t =
|
|
10021
|
+
function mc(r, a) {
|
|
10022
|
+
const t = jt(r, a);
|
|
9706
10023
|
return (e) => {
|
|
9707
10024
|
if (e !== 0)
|
|
9708
10025
|
return t(e > 0 ? e - 1 : e);
|
|
9709
10026
|
};
|
|
9710
10027
|
}
|
|
9711
|
-
var
|
|
10028
|
+
var bd = {
|
|
9712
10029
|
chroma: Ia,
|
|
9713
|
-
freqToMidi:
|
|
9714
|
-
isMidi:
|
|
9715
|
-
midiToFreq:
|
|
9716
|
-
midiToNoteName:
|
|
9717
|
-
pcsetNearest:
|
|
10030
|
+
freqToMidi: uc,
|
|
10031
|
+
isMidi: Vt,
|
|
10032
|
+
midiToFreq: lc,
|
|
10033
|
+
midiToNoteName: Pc,
|
|
10034
|
+
pcsetNearest: dc,
|
|
9718
10035
|
pcset: Va,
|
|
9719
|
-
pcsetDegrees:
|
|
9720
|
-
pcsetSteps:
|
|
9721
|
-
toMidi:
|
|
10036
|
+
pcsetDegrees: mc,
|
|
10037
|
+
pcsetSteps: jt,
|
|
10038
|
+
toMidi: sc
|
|
9722
10039
|
};
|
|
9723
|
-
const
|
|
10040
|
+
const Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9724
10041
|
__proto__: null,
|
|
9725
10042
|
chroma: Ia,
|
|
9726
|
-
default:
|
|
9727
|
-
freqToMidi:
|
|
9728
|
-
isMidi:
|
|
9729
|
-
midiToFreq:
|
|
9730
|
-
midiToNoteName:
|
|
10043
|
+
default: bd,
|
|
10044
|
+
freqToMidi: uc,
|
|
10045
|
+
isMidi: Vt,
|
|
10046
|
+
midiToFreq: lc,
|
|
10047
|
+
midiToNoteName: Pc,
|
|
9731
10048
|
pcset: Va,
|
|
9732
|
-
pcsetDegrees:
|
|
9733
|
-
pcsetNearest:
|
|
9734
|
-
pcsetSteps:
|
|
9735
|
-
toMidi:
|
|
10049
|
+
pcsetDegrees: mc,
|
|
10050
|
+
pcsetNearest: dc,
|
|
10051
|
+
pcsetSteps: jt,
|
|
10052
|
+
toMidi: sc
|
|
9736
10053
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9737
|
-
var
|
|
10054
|
+
var yd = De, hi = (r) => yd(r).midi, Xt = [
|
|
9738
10055
|
[0, 2773, 0, "ionian", "", "Maj7", "major"],
|
|
9739
10056
|
[1, 2902, 2, "dorian", "m", "m7"],
|
|
9740
10057
|
[2, 3418, 4, "phrygian", "m", "m7"],
|
|
@@ -9742,7 +10059,7 @@ var _d = De, pi = (r) => _d(r).midi, jt = [
|
|
|
9742
10059
|
[4, 2774, 1, "mixolydian", "", "7"],
|
|
9743
10060
|
[5, 2906, 3, "aeolian", "m", "m7", "minor"],
|
|
9744
10061
|
[6, 3434, 5, "locrian", "dim", "m7b5"]
|
|
9745
|
-
],
|
|
10062
|
+
], fi = {
|
|
9746
10063
|
...Oe,
|
|
9747
10064
|
name: "",
|
|
9748
10065
|
alt: 0,
|
|
@@ -9750,20 +10067,20 @@ var _d = De, pi = (r) => _d(r).midi, jt = [
|
|
|
9750
10067
|
triad: "",
|
|
9751
10068
|
seventh: "",
|
|
9752
10069
|
aliases: []
|
|
9753
|
-
},
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
10070
|
+
}, Md = Xt.map(kd), qt = {};
|
|
10071
|
+
Md.forEach((r) => {
|
|
10072
|
+
qt[r.name] = r, r.aliases.forEach((a) => {
|
|
10073
|
+
qt[a] = r;
|
|
9757
10074
|
});
|
|
9758
10075
|
});
|
|
9759
|
-
function
|
|
9760
|
-
return typeof r == "string" ?
|
|
10076
|
+
function pc(r) {
|
|
10077
|
+
return typeof r == "string" ? qt[r.toLowerCase()] || fi : r && r.name ? pc(r.name) : fi;
|
|
9761
10078
|
}
|
|
9762
|
-
function
|
|
10079
|
+
function kd(r) {
|
|
9763
10080
|
const [a, t, e, n, o, s, i] = r, c = i ? [i] : [], l = Number(t).toString(2);
|
|
9764
10081
|
return {
|
|
9765
10082
|
empty: !1,
|
|
9766
|
-
intervals:
|
|
10083
|
+
intervals: hd(n).intervals,
|
|
9767
10084
|
modeNum: a,
|
|
9768
10085
|
chroma: l,
|
|
9769
10086
|
normalized: l,
|
|
@@ -9775,40 +10092,52 @@ function Hd(r) {
|
|
|
9775
10092
|
aliases: c
|
|
9776
10093
|
};
|
|
9777
10094
|
}
|
|
9778
|
-
function
|
|
10095
|
+
function hc(r) {
|
|
9779
10096
|
return (a, t) => {
|
|
9780
|
-
const e =
|
|
10097
|
+
const e = pc(a);
|
|
9781
10098
|
if (e.empty) return [];
|
|
9782
|
-
const n =
|
|
10099
|
+
const n = tc(e.modeNum, r), o = e.intervals.map((s) => QP(t, s));
|
|
9783
10100
|
return n.map((s, i) => o[i] + s);
|
|
9784
10101
|
};
|
|
9785
10102
|
}
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
const { midiToNoteName:
|
|
10103
|
+
hc(Xt.map((r) => r[4]));
|
|
10104
|
+
hc(Xt.map((r) => r[5]));
|
|
10105
|
+
const { midiToNoteName: wd } = Hd, Bd = ({ note: r, name: a }) => `${r} ${a.length ? "-" : ""} ${a}`, gi = (r, a) => ({
|
|
9789
10106
|
label: r,
|
|
9790
10107
|
value: a + 1
|
|
9791
|
-
}),
|
|
9792
|
-
const {
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
...c
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
10108
|
+
}), P1 = Se((r, a) => {
|
|
10109
|
+
const {
|
|
10110
|
+
channel: t,
|
|
10111
|
+
disabled: e = !1,
|
|
10112
|
+
isMelodicMode: n = !1,
|
|
10113
|
+
mapping: o,
|
|
10114
|
+
onChange: s,
|
|
10115
|
+
value: i,
|
|
10116
|
+
...c
|
|
10117
|
+
} = r, l = Be(() => n ? Ka.emptyMapping().map(({ note: d }) => `${wd(d, { sharps: !1 }).replace("b", "♭").replace("#", "♯")} (#${d})`).map(gi) : (o || Ka.emptyMapping()).map(Bd).map(gi), [n, o]), [h, u] = Ft(i), p = Re(
|
|
10118
|
+
(d) => {
|
|
10119
|
+
if (typeof d == "string") return;
|
|
10120
|
+
const m = xa(d, 128, 0);
|
|
10121
|
+
m > 0 && s(m), u(d);
|
|
10122
|
+
},
|
|
10123
|
+
[s, u]
|
|
10124
|
+
);
|
|
10125
|
+
return /* @__PURE__ */ O(
|
|
10126
|
+
_e,
|
|
10127
|
+
{
|
|
10128
|
+
...c,
|
|
10129
|
+
disabled: e,
|
|
10130
|
+
onChange: p,
|
|
10131
|
+
options: l,
|
|
10132
|
+
ref: a,
|
|
10133
|
+
value: h
|
|
10134
|
+
}
|
|
10135
|
+
);
|
|
9807
10136
|
});
|
|
9808
|
-
var
|
|
9809
|
-
function
|
|
9810
|
-
if (
|
|
9811
|
-
|
|
10137
|
+
var St, Ti;
|
|
10138
|
+
function Dd() {
|
|
10139
|
+
if (Ti) return St;
|
|
10140
|
+
Ti = 1, St = r;
|
|
9812
10141
|
function r(a, t, e) {
|
|
9813
10142
|
if (a != null && typeof a != "number")
|
|
9814
10143
|
throw new Error("start must be a number or null");
|
|
@@ -9821,16 +10150,16 @@ function kd() {
|
|
|
9821
10150
|
n.push(a);
|
|
9822
10151
|
return n;
|
|
9823
10152
|
}
|
|
9824
|
-
return
|
|
10153
|
+
return St;
|
|
9825
10154
|
}
|
|
9826
|
-
var
|
|
9827
|
-
const
|
|
9828
|
-
var
|
|
9829
|
-
const E = /* @__PURE__ */ Ve(
|
|
9830
|
-
var
|
|
9831
|
-
function
|
|
9832
|
-
if (
|
|
9833
|
-
|
|
10155
|
+
var Od = Dd();
|
|
10156
|
+
const Jt = /* @__PURE__ */ Ve(Od);
|
|
10157
|
+
var Ad = /* @__PURE__ */ Ii();
|
|
10158
|
+
const E = /* @__PURE__ */ Ve(Ad);
|
|
10159
|
+
var Ct, Si;
|
|
10160
|
+
function Ed() {
|
|
10161
|
+
if (Si) return Ct;
|
|
10162
|
+
Si = 1;
|
|
9834
10163
|
var r = 200, a = "__lodash_hash_undefined__", t = 9007199254740991, e = "[object Function]", n = "[object GeneratorFunction]", o = /[\\^$.*+?()[\]{}|]/g, s = /^\[object .+?Constructor\]$/, i = typeof Ze == "object" && Ze && Ze.Object === Object && Ze, c = typeof self == "object" && self && self.Object === Object && self, l = i || c || Function("return this")();
|
|
9835
10164
|
function h(g, b, A) {
|
|
9836
10165
|
switch (A.length) {
|
|
@@ -10093,11 +10422,11 @@ function Dd() {
|
|
|
10093
10422
|
function nt(g) {
|
|
10094
10423
|
return !!g && typeof g == "object";
|
|
10095
10424
|
}
|
|
10096
|
-
return
|
|
10425
|
+
return Ct = et, Ct;
|
|
10097
10426
|
}
|
|
10098
|
-
var
|
|
10099
|
-
const
|
|
10100
|
-
function
|
|
10427
|
+
var Ld = Ed();
|
|
10428
|
+
const Ci = /* @__PURE__ */ Ve(Ld);
|
|
10429
|
+
function Gd(r, a) {
|
|
10101
10430
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
10102
10431
|
if (t != null) {
|
|
10103
10432
|
var e, n, o, s, i = [], c = !0, l = !1;
|
|
@@ -10119,34 +10448,34 @@ function ja(r, a) {
|
|
|
10119
10448
|
if (!(r instanceof a))
|
|
10120
10449
|
throw new TypeError("Cannot call a class as a function");
|
|
10121
10450
|
}
|
|
10122
|
-
function
|
|
10451
|
+
function xd(r, a) {
|
|
10123
10452
|
for (var t = 0; t < a.length; t++) {
|
|
10124
10453
|
var e = a[t];
|
|
10125
|
-
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r,
|
|
10454
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, fc(e.key), e);
|
|
10126
10455
|
}
|
|
10127
10456
|
}
|
|
10128
10457
|
function Xa(r, a, t) {
|
|
10129
|
-
return a &&
|
|
10458
|
+
return a && xd(r.prototype, a), Object.defineProperty(r, "prototype", {
|
|
10130
10459
|
writable: !1
|
|
10131
10460
|
}), r;
|
|
10132
10461
|
}
|
|
10133
10462
|
function Q(r, a, t) {
|
|
10134
|
-
return a =
|
|
10463
|
+
return a = fc(a), a in r ? Object.defineProperty(r, a, {
|
|
10135
10464
|
value: t,
|
|
10136
10465
|
enumerable: !0,
|
|
10137
10466
|
configurable: !0,
|
|
10138
10467
|
writable: !0
|
|
10139
10468
|
}) : r[a] = t, r;
|
|
10140
10469
|
}
|
|
10141
|
-
function
|
|
10142
|
-
return
|
|
10470
|
+
function Wt() {
|
|
10471
|
+
return Wt = Object.assign ? Object.assign.bind() : function(r) {
|
|
10143
10472
|
for (var a = 1; a < arguments.length; a++) {
|
|
10144
10473
|
var t = arguments[a];
|
|
10145
10474
|
for (var e in t)
|
|
10146
10475
|
Object.prototype.hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
10147
10476
|
}
|
|
10148
10477
|
return r;
|
|
10149
|
-
},
|
|
10478
|
+
}, Wt.apply(this, arguments);
|
|
10150
10479
|
}
|
|
10151
10480
|
function Ja(r, a) {
|
|
10152
10481
|
if (typeof a != "function" && a !== null)
|
|
@@ -10159,19 +10488,19 @@ function Ja(r, a) {
|
|
|
10159
10488
|
}
|
|
10160
10489
|
}), Object.defineProperty(r, "prototype", {
|
|
10161
10490
|
writable: !1
|
|
10162
|
-
}), a &&
|
|
10491
|
+
}), a && Ut(r, a);
|
|
10163
10492
|
}
|
|
10164
10493
|
function qa(r) {
|
|
10165
10494
|
return qa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
10166
10495
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
10167
10496
|
}, qa(r);
|
|
10168
10497
|
}
|
|
10169
|
-
function
|
|
10170
|
-
return
|
|
10498
|
+
function Ut(r, a) {
|
|
10499
|
+
return Ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
10171
10500
|
return e.__proto__ = n, e;
|
|
10172
|
-
},
|
|
10501
|
+
}, Ut(r, a);
|
|
10173
10502
|
}
|
|
10174
|
-
function
|
|
10503
|
+
function Kd() {
|
|
10175
10504
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
10176
10505
|
if (typeof Proxy == "function") return !0;
|
|
10177
10506
|
try {
|
|
@@ -10181,16 +10510,16 @@ function Ld() {
|
|
|
10181
10510
|
return !1;
|
|
10182
10511
|
}
|
|
10183
10512
|
}
|
|
10184
|
-
function
|
|
10513
|
+
function Nd(r, a) {
|
|
10185
10514
|
if (r == null) return {};
|
|
10186
10515
|
var t = {}, e = Object.keys(r), n, o;
|
|
10187
10516
|
for (o = 0; o < e.length; o++)
|
|
10188
10517
|
n = e[o], !(a.indexOf(n) >= 0) && (t[n] = r[n]);
|
|
10189
10518
|
return t;
|
|
10190
10519
|
}
|
|
10191
|
-
function
|
|
10520
|
+
function qd(r, a) {
|
|
10192
10521
|
if (r == null) return {};
|
|
10193
|
-
var t =
|
|
10522
|
+
var t = Nd(r, a), e, n;
|
|
10194
10523
|
if (Object.getOwnPropertySymbols) {
|
|
10195
10524
|
var o = Object.getOwnPropertySymbols(r);
|
|
10196
10525
|
for (n = 0; n < o.length; n++)
|
|
@@ -10203,7 +10532,7 @@ function se(r) {
|
|
|
10203
10532
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10204
10533
|
return r;
|
|
10205
10534
|
}
|
|
10206
|
-
function
|
|
10535
|
+
function Wd(r, a) {
|
|
10207
10536
|
if (a && (typeof a == "object" || typeof a == "function"))
|
|
10208
10537
|
return a;
|
|
10209
10538
|
if (a !== void 0)
|
|
@@ -10211,7 +10540,7 @@ function Kd(r, a) {
|
|
|
10211
10540
|
return se(r);
|
|
10212
10541
|
}
|
|
10213
10542
|
function $a(r) {
|
|
10214
|
-
var a =
|
|
10543
|
+
var a = Kd();
|
|
10215
10544
|
return function() {
|
|
10216
10545
|
var e = qa(r), n;
|
|
10217
10546
|
if (a) {
|
|
@@ -10219,33 +10548,33 @@ function $a(r) {
|
|
|
10219
10548
|
n = Reflect.construct(e, arguments, o);
|
|
10220
10549
|
} else
|
|
10221
10550
|
n = e.apply(this, arguments);
|
|
10222
|
-
return
|
|
10551
|
+
return Wd(this, n);
|
|
10223
10552
|
};
|
|
10224
10553
|
}
|
|
10225
|
-
function
|
|
10226
|
-
return
|
|
10554
|
+
function Ud(r, a) {
|
|
10555
|
+
return zd(r) || Gd(r, a) || Fd(r, a) || Id();
|
|
10227
10556
|
}
|
|
10228
|
-
function
|
|
10557
|
+
function zd(r) {
|
|
10229
10558
|
if (Array.isArray(r)) return r;
|
|
10230
10559
|
}
|
|
10231
|
-
function
|
|
10560
|
+
function Fd(r, a) {
|
|
10232
10561
|
if (r) {
|
|
10233
|
-
if (typeof r == "string") return
|
|
10562
|
+
if (typeof r == "string") return vi(r, a);
|
|
10234
10563
|
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
10235
10564
|
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
|
|
10236
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
10565
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return vi(r, a);
|
|
10237
10566
|
}
|
|
10238
10567
|
}
|
|
10239
|
-
function
|
|
10568
|
+
function vi(r, a) {
|
|
10240
10569
|
(a == null || a > r.length) && (a = r.length);
|
|
10241
10570
|
for (var t = 0, e = new Array(a); t < a; t++) e[t] = r[t];
|
|
10242
10571
|
return e;
|
|
10243
10572
|
}
|
|
10244
|
-
function
|
|
10573
|
+
function Id() {
|
|
10245
10574
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10246
10575
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
10247
10576
|
}
|
|
10248
|
-
function
|
|
10577
|
+
function Vd(r, a) {
|
|
10249
10578
|
if (typeof r != "object" || r === null) return r;
|
|
10250
10579
|
var t = r[Symbol.toPrimitive];
|
|
10251
10580
|
if (t !== void 0) {
|
|
@@ -10255,11 +10584,11 @@ function zd(r, a) {
|
|
|
10255
10584
|
}
|
|
10256
10585
|
return (a === "string" ? String : Number)(r);
|
|
10257
10586
|
}
|
|
10258
|
-
function
|
|
10259
|
-
var a =
|
|
10587
|
+
function fc(r) {
|
|
10588
|
+
var a = Vd(r, "string");
|
|
10260
10589
|
return typeof a == "symbol" ? a : String(a);
|
|
10261
10590
|
}
|
|
10262
|
-
var
|
|
10591
|
+
var jd = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], Xd = ["Db", "Eb", "Gb", "Ab", "Bb"], Jd = {
|
|
10263
10592
|
C: 0,
|
|
10264
10593
|
"C#": 1,
|
|
10265
10594
|
Db: 1,
|
|
@@ -10277,49 +10606,49 @@ var Fd = ["C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"], Id =
|
|
|
10277
10606
|
"A#": 10,
|
|
10278
10607
|
Bb: 10,
|
|
10279
10608
|
B: 11
|
|
10280
|
-
}, Wa = 12,
|
|
10281
|
-
function
|
|
10609
|
+
}, Wa = 12, $t = Wa, Yt = 127, $d = /([a-g])([#b]?)(\d+)/, zt = 12;
|
|
10610
|
+
function Yd(r) {
|
|
10282
10611
|
if (!r)
|
|
10283
10612
|
throw Error("Invalid note argument");
|
|
10284
|
-
var a =
|
|
10613
|
+
var a = $d.exec(r.toLowerCase());
|
|
10285
10614
|
if (!a)
|
|
10286
10615
|
throw Error("Invalid note argument");
|
|
10287
|
-
var t =
|
|
10616
|
+
var t = Ud(a, 4), e = t[1], n = t[2], o = t[3], s = "".concat(e.toUpperCase()).concat(n), i = Jd[s];
|
|
10288
10617
|
if (i == null)
|
|
10289
10618
|
throw Error("Invalid note argument");
|
|
10290
|
-
return Wa + i +
|
|
10619
|
+
return Wa + i + zt * parseInt(o, 10);
|
|
10291
10620
|
}
|
|
10292
|
-
function
|
|
10293
|
-
var a = (r - Wa) %
|
|
10621
|
+
function Qd(r) {
|
|
10622
|
+
var a = (r - Wa) % zt, t = Math.floor((r - Wa) / zt), e = jd[a];
|
|
10294
10623
|
return {
|
|
10295
10624
|
note: "".concat(e).concat(t),
|
|
10296
10625
|
pitchName: e,
|
|
10297
10626
|
octave: t,
|
|
10298
10627
|
midiNumber: r,
|
|
10299
|
-
isAccidental:
|
|
10628
|
+
isAccidental: Xd.includes(e)
|
|
10300
10629
|
};
|
|
10301
10630
|
}
|
|
10302
|
-
function
|
|
10303
|
-
return
|
|
10304
|
-
return r[a] =
|
|
10631
|
+
function Zd() {
|
|
10632
|
+
return Jt($t, Yt + 1).reduce(function(r, a) {
|
|
10633
|
+
return r[a] = Qd(a), r;
|
|
10305
10634
|
}, {});
|
|
10306
10635
|
}
|
|
10307
|
-
var
|
|
10308
|
-
function
|
|
10309
|
-
var a =
|
|
10636
|
+
var em = Zd();
|
|
10637
|
+
function gc(r) {
|
|
10638
|
+
var a = em[r];
|
|
10310
10639
|
if (!a)
|
|
10311
10640
|
throw Error("Invalid MIDI number");
|
|
10312
10641
|
return a;
|
|
10313
10642
|
}
|
|
10314
|
-
var
|
|
10315
|
-
return !
|
|
10643
|
+
var rm = Jt($t, Yt + 1).filter(function(r) {
|
|
10644
|
+
return !gc(r).isAccidental;
|
|
10316
10645
|
}), Ua = {
|
|
10317
|
-
fromNote:
|
|
10318
|
-
getAttributes:
|
|
10319
|
-
MIN_MIDI_NUMBER:
|
|
10320
|
-
MAX_MIDI_NUMBER:
|
|
10321
|
-
NATURAL_MIDI_NUMBERS:
|
|
10322
|
-
},
|
|
10646
|
+
fromNote: Yd,
|
|
10647
|
+
getAttributes: gc,
|
|
10648
|
+
MIN_MIDI_NUMBER: $t,
|
|
10649
|
+
MAX_MIDI_NUMBER: Yt,
|
|
10650
|
+
NATURAL_MIDI_NUMBERS: rm
|
|
10651
|
+
}, am = 60, Qt = /* @__PURE__ */ function(r) {
|
|
10323
10652
|
Ja(t, r);
|
|
10324
10653
|
var a = $a(t);
|
|
10325
10654
|
function t() {
|
|
@@ -10350,7 +10679,7 @@ var Qd = Xt(Jt, $t + 1).filter(function(r) {
|
|
|
10350
10679
|
}, {
|
|
10351
10680
|
key: "render",
|
|
10352
10681
|
value: function() {
|
|
10353
|
-
var n = this, o = this.props, s = o.naturalKeyWidth, i = o.accidentalWidthRatio, c = o.midiNumber, l = o.gliss, h = o.useTouchEvents, u = o.accidental, p = o.active, d = o.disabled, m = o.children, f =
|
|
10682
|
+
var n = this, o = this.props, s = o.naturalKeyWidth, i = o.accidentalWidthRatio, c = o.midiNumber, l = o.gliss, h = o.useTouchEvents, u = o.accidental, p = o.active, d = o.disabled, m = o.children, f = vt(u ? this.getRelativeKeyPosition(c) * s : this.getRelativeKeyPosition(c) * s), v = vt(u ? i * s : s);
|
|
10354
10683
|
return /* @__PURE__ */ le.createElement("div", {
|
|
10355
10684
|
"data-midinumber": c,
|
|
10356
10685
|
className: je("ReactPiano__Key", {
|
|
@@ -10358,7 +10687,7 @@ var Qd = Xt(Jt, $t + 1).filter(function(r) {
|
|
|
10358
10687
|
"ReactPiano__Key--natural": !u,
|
|
10359
10688
|
"ReactPiano__Key--disabled": d,
|
|
10360
10689
|
"ReactPiano__Key--active": p,
|
|
10361
|
-
"ReactPiano__Key--middleC": c ===
|
|
10690
|
+
"ReactPiano__Key--middleC": c === am
|
|
10362
10691
|
}),
|
|
10363
10692
|
style: {
|
|
10364
10693
|
left: f,
|
|
@@ -10389,7 +10718,7 @@ var Qd = Xt(Jt, $t + 1).filter(function(r) {
|
|
|
10389
10718
|
}
|
|
10390
10719
|
}]), t;
|
|
10391
10720
|
}(le.Component);
|
|
10392
|
-
Q(
|
|
10721
|
+
Q(Qt, "propTypes", {
|
|
10393
10722
|
midiNumber: E.number.isRequired,
|
|
10394
10723
|
naturalKeyWidth: E.number.isRequired,
|
|
10395
10724
|
// Width as a ratio between 0 and 1
|
|
@@ -10406,7 +10735,7 @@ Q(Yt, "propTypes", {
|
|
|
10406
10735
|
pitchPositions: E.object.isRequired,
|
|
10407
10736
|
children: E.node
|
|
10408
10737
|
});
|
|
10409
|
-
Q(
|
|
10738
|
+
Q(Qt, "defaultProps", {
|
|
10410
10739
|
accidentalWidthRatio: 0.65,
|
|
10411
10740
|
onKeyMouseEnter: void 0,
|
|
10412
10741
|
onKeyMouseLeave: void 0,
|
|
@@ -10425,10 +10754,10 @@ Q(Yt, "defaultProps", {
|
|
|
10425
10754
|
B: 6
|
|
10426
10755
|
}
|
|
10427
10756
|
});
|
|
10428
|
-
function
|
|
10757
|
+
function vt(r) {
|
|
10429
10758
|
return "".concat(r * 100, "%");
|
|
10430
10759
|
}
|
|
10431
|
-
var
|
|
10760
|
+
var Zt = /* @__PURE__ */ function(r) {
|
|
10432
10761
|
Ja(t, r);
|
|
10433
10762
|
var a = $a(t);
|
|
10434
10763
|
function t() {
|
|
@@ -10439,7 +10768,7 @@ var Qt = /* @__PURE__ */ function(r) {
|
|
|
10439
10768
|
value: (
|
|
10440
10769
|
// Range of midi numbers on keyboard
|
|
10441
10770
|
function() {
|
|
10442
|
-
return
|
|
10771
|
+
return Jt(this.props.noteRange.first, this.props.noteRange.last + 1);
|
|
10443
10772
|
}
|
|
10444
10773
|
)
|
|
10445
10774
|
}, {
|
|
@@ -10483,7 +10812,7 @@ var Qt = /* @__PURE__ */ function(r) {
|
|
|
10483
10812
|
var i = Ua.getAttributes(s);
|
|
10484
10813
|
i.note;
|
|
10485
10814
|
var c = i.isAccidental, l = !n.props.disabled && n.props.activeNotes.includes(s);
|
|
10486
|
-
return /* @__PURE__ */ le.createElement(
|
|
10815
|
+
return /* @__PURE__ */ le.createElement(Qt, {
|
|
10487
10816
|
accidental: c,
|
|
10488
10817
|
active: l,
|
|
10489
10818
|
disabled: n.props.disabled,
|
|
@@ -10508,8 +10837,8 @@ var Qt = /* @__PURE__ */ function(r) {
|
|
|
10508
10837
|
}
|
|
10509
10838
|
}]), t;
|
|
10510
10839
|
}(le.Component);
|
|
10511
|
-
Q(
|
|
10512
|
-
noteRange:
|
|
10840
|
+
Q(Zt, "propTypes", {
|
|
10841
|
+
noteRange: tm,
|
|
10513
10842
|
activeNotes: E.arrayOf(E.number),
|
|
10514
10843
|
onKeyMouseEnter: E.func,
|
|
10515
10844
|
onKeyMouseLeave: E.func,
|
|
@@ -10524,7 +10853,7 @@ Q(Qt, "propTypes", {
|
|
|
10524
10853
|
// If width is not provided, must have fixed width and height in parent container
|
|
10525
10854
|
width: E.number
|
|
10526
10855
|
});
|
|
10527
|
-
Q(
|
|
10856
|
+
Q(Zt, "defaultProps", {
|
|
10528
10857
|
disabled: !1,
|
|
10529
10858
|
gliss: !1,
|
|
10530
10859
|
keyWidthToHeight: 0.33,
|
|
@@ -10534,19 +10863,19 @@ Q(Qt, "defaultProps", {
|
|
|
10534
10863
|
},
|
|
10535
10864
|
useTouchEvents: !1
|
|
10536
10865
|
});
|
|
10537
|
-
function
|
|
10866
|
+
function Ri(r) {
|
|
10538
10867
|
return typeof r != "number" ? !1 : Ua.NATURAL_MIDI_NUMBERS.includes(r);
|
|
10539
10868
|
}
|
|
10540
|
-
function
|
|
10869
|
+
function tm(r, a, t) {
|
|
10541
10870
|
var e = r[a], n = e.first, o = e.last;
|
|
10542
10871
|
if (!n || !o)
|
|
10543
10872
|
return new Error("Invalid prop ".concat(a, " supplied to ").concat(t, ". ").concat(a, " must be an object with .first and .last values."));
|
|
10544
|
-
if (!
|
|
10873
|
+
if (!Ri(n) || !Ri(o))
|
|
10545
10874
|
return new Error("Invalid prop ".concat(a, " supplied to ").concat(t, ". ").concat(a, " values must be valid MIDI numbers, and should not be accidentals (sharp or flat notes)."));
|
|
10546
10875
|
if (n >= o)
|
|
10547
10876
|
return new Error("Invalid prop ".concat(a, " supplied to ").concat(t, ". ").concat(a, ".first must be smaller than ").concat(a, ".last."));
|
|
10548
10877
|
}
|
|
10549
|
-
var
|
|
10878
|
+
var en = /* @__PURE__ */ function(r) {
|
|
10550
10879
|
Ja(t, r);
|
|
10551
10880
|
var a = $a(t);
|
|
10552
10881
|
function t() {
|
|
@@ -10560,7 +10889,7 @@ var Zt = /* @__PURE__ */ function(r) {
|
|
|
10560
10889
|
}), Q(se(e), "handleNoteChanges", function(i) {
|
|
10561
10890
|
var c = i.prevActiveNotes, l = i.nextActiveNotes;
|
|
10562
10891
|
if (!e.props.disabled) {
|
|
10563
|
-
var h =
|
|
10892
|
+
var h = Ci(c, l), u = Ci(l, c);
|
|
10564
10893
|
u.forEach(function(p) {
|
|
10565
10894
|
e.props.playNote(p);
|
|
10566
10895
|
}), h.forEach(function(p) {
|
|
@@ -10647,7 +10976,7 @@ var Zt = /* @__PURE__ */ function(r) {
|
|
|
10647
10976
|
onMouseUp: this.onMouseUp,
|
|
10648
10977
|
onTouchStart: this.onTouchStart,
|
|
10649
10978
|
"data-testid": "container"
|
|
10650
|
-
}, /* @__PURE__ */ le.createElement(
|
|
10979
|
+
}, /* @__PURE__ */ le.createElement(Zt, {
|
|
10651
10980
|
activeNotes: this.props.activeNotes,
|
|
10652
10981
|
className: this.props.className,
|
|
10653
10982
|
disabled: this.props.disabled,
|
|
@@ -10667,7 +10996,7 @@ var Zt = /* @__PURE__ */ function(r) {
|
|
|
10667
10996
|
}
|
|
10668
10997
|
}]), t;
|
|
10669
10998
|
}(le.Component);
|
|
10670
|
-
Q(
|
|
10999
|
+
Q(en, "propTypes", {
|
|
10671
11000
|
noteRange: E.object.isRequired,
|
|
10672
11001
|
activeNotes: E.arrayOf(E.number.isRequired).isRequired,
|
|
10673
11002
|
playNote: E.func.isRequired,
|
|
@@ -10688,7 +11017,7 @@ Q(Zt, "propTypes", {
|
|
|
10688
11017
|
midiNumber: E.number.isRequired
|
|
10689
11018
|
}))
|
|
10690
11019
|
});
|
|
10691
|
-
Q(
|
|
11020
|
+
Q(en, "defaultProps", {
|
|
10692
11021
|
onKeyMouseEnter: void 0,
|
|
10693
11022
|
onKeyMouseLeave: void 0,
|
|
10694
11023
|
renderNoteLabel: function(a) {
|
|
@@ -10704,7 +11033,7 @@ Q(Zt, "defaultProps", {
|
|
|
10704
11033
|
}, t) : null;
|
|
10705
11034
|
}
|
|
10706
11035
|
});
|
|
10707
|
-
var
|
|
11036
|
+
var nm = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], rn = /* @__PURE__ */ function(r) {
|
|
10708
11037
|
Ja(t, r);
|
|
10709
11038
|
var a = $a(t);
|
|
10710
11039
|
function t() {
|
|
@@ -10746,8 +11075,8 @@ var rm = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], en = /* @__PURE_
|
|
|
10746
11075
|
value: function() {
|
|
10747
11076
|
var n = this.props;
|
|
10748
11077
|
n.activeNotes, n.onPlayNoteInput, n.onStopNoteInput;
|
|
10749
|
-
var o =
|
|
10750
|
-
return /* @__PURE__ */ le.createElement(
|
|
11078
|
+
var o = qd(n, nm);
|
|
11079
|
+
return /* @__PURE__ */ le.createElement(en, Wt({
|
|
10751
11080
|
activeNotes: this.state.activeNotes,
|
|
10752
11081
|
onPlayNoteInput: this.handlePlayNoteInput,
|
|
10753
11082
|
onStopNoteInput: this.handleStopNoteInput
|
|
@@ -10755,7 +11084,7 @@ var rm = ["activeNotes", "onPlayNoteInput", "onStopNoteInput"], en = /* @__PURE_
|
|
|
10755
11084
|
}
|
|
10756
11085
|
}]), t;
|
|
10757
11086
|
}(le.Component);
|
|
10758
|
-
Q(
|
|
11087
|
+
Q(rn, "propTypes", {
|
|
10759
11088
|
noteRange: E.object.isRequired,
|
|
10760
11089
|
activeNotes: E.arrayOf(E.number.isRequired),
|
|
10761
11090
|
playNote: E.func.isRequired,
|
|
@@ -10772,10 +11101,10 @@ Q(en, "propTypes", {
|
|
|
10772
11101
|
midiNumber: E.number.isRequired
|
|
10773
11102
|
}))
|
|
10774
11103
|
});
|
|
10775
|
-
var
|
|
10776
|
-
function
|
|
10777
|
-
if (
|
|
10778
|
-
|
|
11104
|
+
var Rt = { exports: {} }, _t = { exports: {} }, bt, _i;
|
|
11105
|
+
function om() {
|
|
11106
|
+
if (_i) return bt;
|
|
11107
|
+
_i = 1;
|
|
10779
11108
|
function r(t) {
|
|
10780
11109
|
return t > 64 && t < 91 ? t - 65 : t > 96 && t < 123 ? t - 71 : t > 47 && t < 58 ? t + 4 : t === 43 ? 62 : t === 47 ? 63 : 0;
|
|
10781
11110
|
}
|
|
@@ -10788,11 +11117,11 @@ function am() {
|
|
|
10788
11117
|
}
|
|
10789
11118
|
return i;
|
|
10790
11119
|
}
|
|
10791
|
-
return
|
|
11120
|
+
return bt = { decode: a }, bt;
|
|
10792
11121
|
}
|
|
10793
|
-
var
|
|
10794
|
-
function
|
|
10795
|
-
return
|
|
11122
|
+
var Ht, bi;
|
|
11123
|
+
function im() {
|
|
11124
|
+
return bi || (bi = 1, Ht = function(r, a) {
|
|
10796
11125
|
return new Promise(function(t, e) {
|
|
10797
11126
|
var n = new XMLHttpRequest();
|
|
10798
11127
|
a && (n.responseType = a), n.open("GET", r), n.onload = function() {
|
|
@@ -10801,12 +11130,12 @@ function tm() {
|
|
|
10801
11130
|
e(Error("Network Error"));
|
|
10802
11131
|
}, n.send();
|
|
10803
11132
|
});
|
|
10804
|
-
}),
|
|
11133
|
+
}), Ht;
|
|
10805
11134
|
}
|
|
10806
|
-
var
|
|
10807
|
-
function
|
|
10808
|
-
return
|
|
10809
|
-
var a =
|
|
11135
|
+
var Hi;
|
|
11136
|
+
function cm() {
|
|
11137
|
+
return Hi || (Hi = 1, function(r) {
|
|
11138
|
+
var a = om(), t = im();
|
|
10810
11139
|
function e(T) {
|
|
10811
11140
|
return function(_) {
|
|
10812
11141
|
return typeof _ == "string" && T.test(_);
|
|
@@ -10896,12 +11225,12 @@ function nm() {
|
|
|
10896
11225
|
return JSON.parse(T.slice(_, w) + "}");
|
|
10897
11226
|
}
|
|
10898
11227
|
r.exports && (r.exports = o), typeof window < "u" && (window.loadAudio = o);
|
|
10899
|
-
}(
|
|
11228
|
+
}(_t)), _t.exports;
|
|
10900
11229
|
}
|
|
10901
|
-
var
|
|
10902
|
-
function
|
|
10903
|
-
if (
|
|
10904
|
-
|
|
11230
|
+
var yt = { exports: {} }, Mt, yi;
|
|
11231
|
+
function sm() {
|
|
11232
|
+
if (yi) return Mt;
|
|
11233
|
+
yi = 1, Mt = r;
|
|
10905
11234
|
function r(i) {
|
|
10906
11235
|
var c = i.createGain(), l = c._voltage = e(i), h = n(l), u = n(l), p = n(l);
|
|
10907
11236
|
return c._startAmount = n(u), c._endAmount = n(p), c._multiplier = n(h), c._multiplier.connect(c), c._startAmount.connect(c), c._endAmount.connect(c), c.value = h.gain, c.startValue = u.gain, c.endValue = p.gain, c.startValue.value = 0, c.endValue.value = 0, Object.defineProperties(c, a), c;
|
|
@@ -10965,13 +11294,13 @@ function om() {
|
|
|
10965
11294
|
var p = c - i, d = h - l, m = u - l, f = m / d, v = i + f * p;
|
|
10966
11295
|
return v <= i && (v = i), v >= c && (v = c), v;
|
|
10967
11296
|
}
|
|
10968
|
-
return
|
|
11297
|
+
return Mt;
|
|
10969
11298
|
}
|
|
10970
|
-
var
|
|
10971
|
-
function
|
|
10972
|
-
if (
|
|
10973
|
-
|
|
10974
|
-
var r =
|
|
11299
|
+
var kt, Mi;
|
|
11300
|
+
function lm() {
|
|
11301
|
+
if (Mi) return kt;
|
|
11302
|
+
Mi = 1;
|
|
11303
|
+
var r = sm(), a = {}, t = {
|
|
10975
11304
|
gain: 1,
|
|
10976
11305
|
attack: 0.01,
|
|
10977
11306
|
decay: 0.1,
|
|
@@ -11045,12 +11374,12 @@ function im() {
|
|
|
11045
11374
|
function i(c) {
|
|
11046
11375
|
return c ? Math.pow(2, c / 1200) : 1;
|
|
11047
11376
|
}
|
|
11048
|
-
return
|
|
11377
|
+
return kt = e, kt;
|
|
11049
11378
|
}
|
|
11050
|
-
var
|
|
11051
|
-
function
|
|
11052
|
-
if (
|
|
11053
|
-
|
|
11379
|
+
var wt, ki;
|
|
11380
|
+
function um() {
|
|
11381
|
+
if (ki) return wt;
|
|
11382
|
+
ki = 1, wt = function(a) {
|
|
11054
11383
|
return a.on = function(t, e) {
|
|
11055
11384
|
if (arguments.length === 1 && typeof t == "function") return a.on("event", t);
|
|
11056
11385
|
var n = "on" + t, o = a[n];
|
|
@@ -11062,12 +11391,12 @@ function cm() {
|
|
|
11062
11391
|
a(e, n, o, s), t(e, n, o, s);
|
|
11063
11392
|
};
|
|
11064
11393
|
}
|
|
11065
|
-
return
|
|
11394
|
+
return wt;
|
|
11066
11395
|
}
|
|
11067
|
-
var
|
|
11068
|
-
function
|
|
11069
|
-
if (
|
|
11070
|
-
|
|
11396
|
+
var Bt, wi;
|
|
11397
|
+
function Pm() {
|
|
11398
|
+
if (wi) return Bt;
|
|
11399
|
+
wi = 1;
|
|
11071
11400
|
var r = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
|
|
11072
11401
|
function a() {
|
|
11073
11402
|
return r;
|
|
@@ -11089,18 +11418,18 @@ function sm() {
|
|
|
11089
11418
|
var l = e(c);
|
|
11090
11419
|
return l && typeof l[i] < "u" ? l[i] : null;
|
|
11091
11420
|
};
|
|
11092
|
-
}),
|
|
11421
|
+
}), Bt = o, Bt;
|
|
11093
11422
|
}
|
|
11094
|
-
var
|
|
11095
|
-
function
|
|
11096
|
-
if (
|
|
11097
|
-
|
|
11098
|
-
var r =
|
|
11423
|
+
var Dt, Bi;
|
|
11424
|
+
function dm() {
|
|
11425
|
+
if (Bi) return Dt;
|
|
11426
|
+
Bi = 1;
|
|
11427
|
+
var r = Pm(), a = function(n) {
|
|
11099
11428
|
return n !== null && n !== [] && n >= 0 && n < 129;
|
|
11100
11429
|
}, t = function(n) {
|
|
11101
11430
|
return a(n) ? +n : r.midi(n);
|
|
11102
11431
|
};
|
|
11103
|
-
|
|
11432
|
+
Dt = function(n) {
|
|
11104
11433
|
if (n.buffers) {
|
|
11105
11434
|
var o = n.opts.map, s = typeof o == "function" ? o : t, i = function(l) {
|
|
11106
11435
|
return l ? s(l) || l : null;
|
|
@@ -11119,16 +11448,16 @@ function lm() {
|
|
|
11119
11448
|
return s[o(i)] = n[i], s;
|
|
11120
11449
|
}, {});
|
|
11121
11450
|
}
|
|
11122
|
-
return
|
|
11451
|
+
return Dt;
|
|
11123
11452
|
}
|
|
11124
|
-
var
|
|
11125
|
-
function
|
|
11126
|
-
if (
|
|
11127
|
-
|
|
11453
|
+
var Ot, Di;
|
|
11454
|
+
function mm() {
|
|
11455
|
+
if (Di) return Ot;
|
|
11456
|
+
Di = 1;
|
|
11128
11457
|
var r = Array.isArray, a = function(e) {
|
|
11129
11458
|
return e && typeof e == "object";
|
|
11130
11459
|
}, t = {};
|
|
11131
|
-
return
|
|
11460
|
+
return Ot = function(e) {
|
|
11132
11461
|
return e.schedule = function(n, o) {
|
|
11133
11462
|
var s = e.context.currentTime, i = n < s ? s : n;
|
|
11134
11463
|
e.emit("schedule", i, o);
|
|
@@ -11139,14 +11468,14 @@ function um() {
|
|
|
11139
11468
|
return a(l) ? (h = l.name || l.key || l.note || l.midi || null, u = l) : (h = l, u = t), e.start(h, i + (c || 0), u);
|
|
11140
11469
|
});
|
|
11141
11470
|
}, e;
|
|
11142
|
-
},
|
|
11471
|
+
}, Ot;
|
|
11143
11472
|
}
|
|
11144
11473
|
function Aa(r) {
|
|
11145
11474
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
11146
11475
|
}
|
|
11147
|
-
var
|
|
11148
|
-
function
|
|
11149
|
-
return
|
|
11476
|
+
var At = { exports: {} }, Oi;
|
|
11477
|
+
function pm() {
|
|
11478
|
+
return Oi || (Oi = 1, function(r, a) {
|
|
11150
11479
|
(function(t) {
|
|
11151
11480
|
r.exports = t();
|
|
11152
11481
|
})(function() {
|
|
@@ -11207,14 +11536,14 @@ function Pm() {
|
|
|
11207
11536
|
}, e.exports = n.default;
|
|
11208
11537
|
}, {}] }, {}, [1])(1);
|
|
11209
11538
|
});
|
|
11210
|
-
}(
|
|
11211
|
-
}
|
|
11212
|
-
var
|
|
11213
|
-
function
|
|
11214
|
-
if (
|
|
11215
|
-
|
|
11216
|
-
var r =
|
|
11217
|
-
return
|
|
11539
|
+
}(At)), At.exports;
|
|
11540
|
+
}
|
|
11541
|
+
var Et, Ai;
|
|
11542
|
+
function hm() {
|
|
11543
|
+
if (Ai) return Et;
|
|
11544
|
+
Ai = 1;
|
|
11545
|
+
var r = pm();
|
|
11546
|
+
return Et = function(a) {
|
|
11218
11547
|
return a.listenToMidi = function(t, e) {
|
|
11219
11548
|
var n = {}, o = e || {}, s = o.gain || function(i) {
|
|
11220
11549
|
return i / 127;
|
|
@@ -11232,107 +11561,107 @@ function dm() {
|
|
|
11232
11561
|
}
|
|
11233
11562
|
}, a;
|
|
11234
11563
|
}, a;
|
|
11235
|
-
},
|
|
11564
|
+
}, Et;
|
|
11236
11565
|
}
|
|
11237
|
-
var
|
|
11238
|
-
function
|
|
11239
|
-
return
|
|
11240
|
-
var a =
|
|
11566
|
+
var Ei;
|
|
11567
|
+
function fm() {
|
|
11568
|
+
return Ei || (Ei = 1, function(r) {
|
|
11569
|
+
var a = lm(), t = um(), e = dm(), n = mm(), o = hm();
|
|
11241
11570
|
function s(i, c, l) {
|
|
11242
11571
|
return o(n(e(t(a(i, c, l)))));
|
|
11243
11572
|
}
|
|
11244
11573
|
r.exports && (r.exports = s), typeof window < "u" && (window.SamplePlayer = s);
|
|
11245
|
-
}(
|
|
11574
|
+
}(yt)), yt.exports;
|
|
11246
11575
|
}
|
|
11247
|
-
function
|
|
11576
|
+
function Li(r, a) {
|
|
11248
11577
|
return Array(a + 1).join(r);
|
|
11249
11578
|
}
|
|
11250
|
-
function
|
|
11579
|
+
function an(r) {
|
|
11251
11580
|
return typeof r == "number";
|
|
11252
11581
|
}
|
|
11253
|
-
function
|
|
11582
|
+
function gm(r) {
|
|
11254
11583
|
return typeof r == "string";
|
|
11255
11584
|
}
|
|
11256
|
-
function
|
|
11585
|
+
function Tm(r) {
|
|
11257
11586
|
return typeof r < "u";
|
|
11258
11587
|
}
|
|
11259
|
-
function
|
|
11588
|
+
function Tc(r, a) {
|
|
11260
11589
|
return Math.pow(2, (r - 69) / 12) * (a || 440);
|
|
11261
11590
|
}
|
|
11262
|
-
var
|
|
11263
|
-
function
|
|
11264
|
-
return
|
|
11591
|
+
var Sc = /^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;
|
|
11592
|
+
function Sm() {
|
|
11593
|
+
return Sc;
|
|
11265
11594
|
}
|
|
11266
|
-
var
|
|
11595
|
+
var Cm = [0, 2, 4, 5, 7, 9, 11];
|
|
11267
11596
|
function be(r, a, t) {
|
|
11268
11597
|
if (typeof r != "string") return null;
|
|
11269
|
-
var e =
|
|
11598
|
+
var e = Sc.exec(r);
|
|
11270
11599
|
if (!e || !a && e[4]) return null;
|
|
11271
11600
|
var n = { letter: e[1].toUpperCase(), acc: e[2].replace(/x/g, "##") };
|
|
11272
11601
|
n.pc = n.letter + n.acc, n.step = (n.letter.charCodeAt(0) + 3) % 7, n.alt = n.acc[0] === "b" ? -n.acc.length : n.acc.length;
|
|
11273
|
-
var o =
|
|
11274
|
-
return n.chroma = o < 0 ? 12 + o : o % 12, e[3] && (n.oct = +e[3], n.midi = o + 12 * (n.oct + 1), n.freq =
|
|
11602
|
+
var o = Cm[n.step] + n.alt;
|
|
11603
|
+
return n.chroma = o < 0 ? 12 + o : o % 12, e[3] && (n.oct = +e[3], n.midi = o + 12 * (n.oct + 1), n.freq = Tc(n.midi, t)), a && (n.tonicOf = e[4]), n;
|
|
11275
11604
|
}
|
|
11276
|
-
var
|
|
11277
|
-
function
|
|
11278
|
-
return
|
|
11605
|
+
var vm = "CDEFGAB";
|
|
11606
|
+
function Rm(r) {
|
|
11607
|
+
return an(r) ? r < 0 ? Li("b", -r) : Li("#", r) : "";
|
|
11279
11608
|
}
|
|
11280
|
-
function
|
|
11281
|
-
return
|
|
11609
|
+
function _m(r) {
|
|
11610
|
+
return an(r) ? "" + r : "";
|
|
11282
11611
|
}
|
|
11283
|
-
function
|
|
11284
|
-
return r === null || typeof r > "u" ? null : r.step ?
|
|
11612
|
+
function Cc(r, a, t) {
|
|
11613
|
+
return r === null || typeof r > "u" ? null : r.step ? Cc(r.step, r.alt, r.oct) : r < 0 || r > 6 ? null : vm.charAt(r) + Rm(a) + _m(t);
|
|
11285
11614
|
}
|
|
11286
|
-
function
|
|
11287
|
-
if ((
|
|
11615
|
+
function vc(r) {
|
|
11616
|
+
if ((an(r) || gm(r)) && r >= 0 && r < 128) return +r;
|
|
11288
11617
|
var a = be(r);
|
|
11289
|
-
return a &&
|
|
11618
|
+
return a && Tm(a.midi) ? a.midi : null;
|
|
11290
11619
|
}
|
|
11291
|
-
function
|
|
11292
|
-
var t =
|
|
11293
|
-
return t === null ? null :
|
|
11620
|
+
function bm(r, a) {
|
|
11621
|
+
var t = vc(r);
|
|
11622
|
+
return t === null ? null : Tc(t, a);
|
|
11294
11623
|
}
|
|
11295
|
-
function
|
|
11624
|
+
function Hm(r) {
|
|
11296
11625
|
return (be(r) || {}).letter;
|
|
11297
11626
|
}
|
|
11298
|
-
function
|
|
11627
|
+
function ym(r) {
|
|
11299
11628
|
return (be(r) || {}).acc;
|
|
11300
11629
|
}
|
|
11301
|
-
function
|
|
11630
|
+
function Mm(r) {
|
|
11302
11631
|
return (be(r) || {}).pc;
|
|
11303
11632
|
}
|
|
11304
|
-
function
|
|
11633
|
+
function km(r) {
|
|
11305
11634
|
return (be(r) || {}).step;
|
|
11306
11635
|
}
|
|
11307
|
-
function
|
|
11636
|
+
function wm(r) {
|
|
11308
11637
|
return (be(r) || {}).alt;
|
|
11309
11638
|
}
|
|
11310
|
-
function
|
|
11639
|
+
function Bm(r) {
|
|
11311
11640
|
return (be(r) || {}).chroma;
|
|
11312
11641
|
}
|
|
11313
|
-
function
|
|
11642
|
+
function Dm(r) {
|
|
11314
11643
|
return (be(r) || {}).oct;
|
|
11315
11644
|
}
|
|
11316
|
-
const
|
|
11645
|
+
const Om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11317
11646
|
__proto__: null,
|
|
11318
|
-
acc:
|
|
11319
|
-
alt:
|
|
11320
|
-
build:
|
|
11321
|
-
chroma:
|
|
11322
|
-
freq:
|
|
11323
|
-
letter:
|
|
11324
|
-
midi:
|
|
11325
|
-
oct:
|
|
11647
|
+
acc: ym,
|
|
11648
|
+
alt: wm,
|
|
11649
|
+
build: Cc,
|
|
11650
|
+
chroma: Bm,
|
|
11651
|
+
freq: bm,
|
|
11652
|
+
letter: Hm,
|
|
11653
|
+
midi: vc,
|
|
11654
|
+
oct: Dm,
|
|
11326
11655
|
parse: be,
|
|
11327
|
-
pc:
|
|
11328
|
-
regex:
|
|
11329
|
-
step:
|
|
11330
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11331
|
-
var
|
|
11332
|
-
function
|
|
11333
|
-
if (
|
|
11334
|
-
|
|
11335
|
-
var r =
|
|
11656
|
+
pc: Mm,
|
|
11657
|
+
regex: Sm,
|
|
11658
|
+
step: km
|
|
11659
|
+
}, Symbol.toStringTag, { value: "Module" })), Am = /* @__PURE__ */ Rl(Om);
|
|
11660
|
+
var Lt, Gi;
|
|
11661
|
+
function Em() {
|
|
11662
|
+
if (Gi) return Lt;
|
|
11663
|
+
Gi = 1;
|
|
11664
|
+
var r = Am;
|
|
11336
11665
|
function a(n, o) {
|
|
11337
11666
|
if (console.warn("new Soundfont() is deprected"), console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"), !(this instanceof a)) return new a(n);
|
|
11338
11667
|
this.nameToUrl = o || a.nameToUrl, this.ctx = n, this.instruments = {}, this.promises = [];
|
|
@@ -11376,12 +11705,12 @@ function Dm() {
|
|
|
11376
11705
|
}
|
|
11377
11706
|
};
|
|
11378
11707
|
}
|
|
11379
|
-
return a.noteToMidi = r.midi,
|
|
11708
|
+
return a.noteToMidi = r.midi, Lt = a, Lt;
|
|
11380
11709
|
}
|
|
11381
|
-
var
|
|
11382
|
-
function
|
|
11383
|
-
return
|
|
11384
|
-
var a =
|
|
11710
|
+
var xi;
|
|
11711
|
+
function Lm() {
|
|
11712
|
+
return xi || (xi = 1, function(r) {
|
|
11713
|
+
var a = cm(), t = fm();
|
|
11385
11714
|
function e(i, c, l) {
|
|
11386
11715
|
if (arguments.length === 1) return function(m, f) {
|
|
11387
11716
|
return e(i, m, f);
|
|
@@ -11398,27 +11727,40 @@ function Om() {
|
|
|
11398
11727
|
function o(i, c, l) {
|
|
11399
11728
|
return l = l === "ogg" ? l : "mp3", c = c === "FluidR3_GM" ? c : "MusyngKite", "https://gleitz.github.io/midi-js-soundfonts/" + c + "/" + i + "-" + l + ".js";
|
|
11400
11729
|
}
|
|
11401
|
-
var s =
|
|
11730
|
+
var s = Em();
|
|
11402
11731
|
s.instrument = e, s.nameToUrl = o, r.exports && (r.exports = s), typeof window < "u" && (window.Soundfont = s);
|
|
11403
|
-
}(
|
|
11404
|
-
}
|
|
11405
|
-
var
|
|
11406
|
-
const
|
|
11407
|
-
const {
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11732
|
+
}(Rt)), Rt.exports;
|
|
11733
|
+
}
|
|
11734
|
+
var Gm = Lm();
|
|
11735
|
+
const Ki = /* @__PURE__ */ Ve(Gm), Gt = (r) => r != null && !Number.isNaN(r), Rc = (r) => {
|
|
11736
|
+
const {
|
|
11737
|
+
audioContext: a,
|
|
11738
|
+
format: t,
|
|
11739
|
+
hostname: e,
|
|
11740
|
+
instrumentName: n,
|
|
11741
|
+
onChange: o,
|
|
11742
|
+
render: s,
|
|
11743
|
+
soundfont: i
|
|
11744
|
+
} = r, [c, l] = Te(!0), [h, u] = Te({}), [p, d] = Te(null), m = Re(
|
|
11745
|
+
(K) => {
|
|
11746
|
+
d(null), Gt(e) ? Ki.instrument(a, K, {
|
|
11747
|
+
format: t,
|
|
11748
|
+
soundfont: i,
|
|
11749
|
+
nameToUrl: (R, S, P) => `${e}/${S}/${R}-${P}.js`
|
|
11750
|
+
}).then((R) => {
|
|
11751
|
+
d(R);
|
|
11752
|
+
}) : Gt(n) ? Ki.instrument(a, n).then(
|
|
11753
|
+
(R) => {
|
|
11754
|
+
d(R);
|
|
11755
|
+
}
|
|
11756
|
+
) : l(!1);
|
|
11757
|
+
},
|
|
11758
|
+
[a, t, e, n, i]
|
|
11759
|
+
);
|
|
11418
11760
|
return ye(() => {
|
|
11419
11761
|
m(n);
|
|
11420
11762
|
}, [n, m]), ye(() => {
|
|
11421
|
-
|
|
11763
|
+
Gt(n) && l(!p);
|
|
11422
11764
|
}, [p, n]), s({
|
|
11423
11765
|
isLoading: c,
|
|
11424
11766
|
playNote: (K) => {
|
|
@@ -11446,7 +11788,7 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11446
11788
|
});
|
|
11447
11789
|
}
|
|
11448
11790
|
});
|
|
11449
|
-
},
|
|
11791
|
+
}, xt = [
|
|
11450
11792
|
"C",
|
|
11451
11793
|
"C#",
|
|
11452
11794
|
"D",
|
|
@@ -11459,64 +11801,142 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11459
11801
|
"A",
|
|
11460
11802
|
"A#",
|
|
11461
11803
|
"B"
|
|
11462
|
-
],
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11804
|
+
], xm = 12, Km = xm * 0.7, Nm = new window.AudioContext(), qm = ({
|
|
11805
|
+
octave: r,
|
|
11806
|
+
height: a,
|
|
11807
|
+
width: t,
|
|
11808
|
+
...e
|
|
11809
|
+
}) => {
|
|
11810
|
+
const o = (t / Km + 2) / a, s = hi(xt[0] + String(r)) || 0, i = hi(xt[xt.length - 1] + String(r)) || 0;
|
|
11811
|
+
return /* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
|
|
11812
|
+
rn,
|
|
11813
|
+
{
|
|
11814
|
+
keyWidthToHeight: o,
|
|
11815
|
+
noteRange: { first: s, last: i },
|
|
11816
|
+
width: t,
|
|
11817
|
+
...e
|
|
11818
|
+
}
|
|
11819
|
+
) });
|
|
11820
|
+
}, d1 = ({
|
|
11467
11821
|
format: r,
|
|
11822
|
+
height: a,
|
|
11468
11823
|
hostname: t,
|
|
11469
11824
|
instrumentName: e,
|
|
11825
|
+
octave: n = 4,
|
|
11470
11826
|
onChange: o,
|
|
11827
|
+
onClick: s,
|
|
11828
|
+
onDoubleClick: i,
|
|
11829
|
+
onKeyMouseEnter: c,
|
|
11830
|
+
onKeyMouseLeave: l,
|
|
11471
11831
|
soundfont: h,
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11832
|
+
Tooltip: u,
|
|
11833
|
+
width: p
|
|
11834
|
+
}) => /* @__PURE__ */ O(
|
|
11835
|
+
Rc,
|
|
11836
|
+
{
|
|
11837
|
+
audioContext: Nm,
|
|
11838
|
+
format: r,
|
|
11839
|
+
hostname: t,
|
|
11840
|
+
instrumentName: e,
|
|
11841
|
+
onChange: o,
|
|
11842
|
+
soundfont: h,
|
|
11843
|
+
render: ({
|
|
11844
|
+
isLoading: d,
|
|
11845
|
+
playNote: m,
|
|
11846
|
+
stopNote: f
|
|
11847
|
+
}) => /* @__PURE__ */ ne(Ga, { children: [
|
|
11848
|
+
/* @__PURE__ */ O("div", { children: /* @__PURE__ */ ne("h2", { children: [
|
|
11849
|
+
"Octave: ",
|
|
11850
|
+
n
|
|
11851
|
+
] }) }),
|
|
11852
|
+
/* @__PURE__ */ O(
|
|
11853
|
+
qm,
|
|
11854
|
+
{
|
|
11855
|
+
disabled: d,
|
|
11856
|
+
height: a,
|
|
11857
|
+
octave: n,
|
|
11858
|
+
onClick: s,
|
|
11859
|
+
onDoubleClick: i,
|
|
11860
|
+
onKeyMouseEnter: c,
|
|
11861
|
+
onKeyMouseLeave: l,
|
|
11862
|
+
playNote: m,
|
|
11863
|
+
stopNote: f,
|
|
11864
|
+
Tooltip: u,
|
|
11865
|
+
width: p
|
|
11866
|
+
}
|
|
11867
|
+
)
|
|
11868
|
+
] })
|
|
11869
|
+
}
|
|
11870
|
+
), _c = 21, bc = 108, Wm = bc - _c - 1, Um = Wm * 0.7, zm = new window.AudioContext(), Fm = ({ height: r, width: a, ...t }) => {
|
|
11871
|
+
const n = (a / Um + 2) / r;
|
|
11872
|
+
return /* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
|
|
11873
|
+
rn,
|
|
11874
|
+
{
|
|
11875
|
+
keyWidthToHeight: n,
|
|
11876
|
+
noteRange: { first: _c, last: bc },
|
|
11877
|
+
width: a,
|
|
11878
|
+
...t
|
|
11879
|
+
}
|
|
11880
|
+
) });
|
|
11881
|
+
}, m1 = ({
|
|
11490
11882
|
format: r,
|
|
11883
|
+
height: a,
|
|
11491
11884
|
hostname: t,
|
|
11492
11885
|
instrumentName: e,
|
|
11493
11886
|
onChange: n,
|
|
11887
|
+
onClick: o,
|
|
11888
|
+
onDoubleClick: s,
|
|
11889
|
+
onKeyMouseEnter: i,
|
|
11890
|
+
onKeyMouseLeave: c,
|
|
11494
11891
|
soundfont: l,
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11892
|
+
width: h
|
|
11893
|
+
}) => /* @__PURE__ */ O(
|
|
11894
|
+
Rc,
|
|
11895
|
+
{
|
|
11896
|
+
audioContext: zm,
|
|
11897
|
+
format: r,
|
|
11898
|
+
hostname: t,
|
|
11899
|
+
instrumentName: e,
|
|
11900
|
+
onChange: n,
|
|
11901
|
+
soundfont: l,
|
|
11902
|
+
render: ({ isLoading: u, playNote: p, stopNote: d }) => /* @__PURE__ */ O(
|
|
11903
|
+
Fm,
|
|
11904
|
+
{
|
|
11905
|
+
disabled: u,
|
|
11906
|
+
height: a,
|
|
11907
|
+
onClick: o,
|
|
11908
|
+
onDoubleClick: s,
|
|
11909
|
+
onKeyMouseEnter: i,
|
|
11910
|
+
onKeyMouseLeave: c,
|
|
11911
|
+
playNote: p,
|
|
11912
|
+
stopNote: d,
|
|
11913
|
+
width: h
|
|
11914
|
+
}
|
|
11915
|
+
)
|
|
11916
|
+
}
|
|
11917
|
+
), p1 = Se(({ labelOff: r = "Normally Off", labelOn: a = "Normally On", ...t }, e) => /* @__PURE__ */ O(
|
|
11918
|
+
_e,
|
|
11919
|
+
{
|
|
11920
|
+
...t,
|
|
11921
|
+
options: [
|
|
11922
|
+
{ value: 0, label: r },
|
|
11923
|
+
{ value: 1, label: a }
|
|
11924
|
+
],
|
|
11925
|
+
ref: e
|
|
11926
|
+
}
|
|
11927
|
+
)), Ni = (r) => r ? {
|
|
11510
11928
|
width: r.offsetWidth,
|
|
11511
11929
|
height: r.offsetHeight
|
|
11512
11930
|
} : {
|
|
11513
11931
|
width: 0,
|
|
11514
11932
|
height: 0
|
|
11515
|
-
},
|
|
11516
|
-
const [a, t] = Te(
|
|
11517
|
-
r
|
|
11933
|
+
}, Im = (r) => {
|
|
11934
|
+
const [a, t] = Te(
|
|
11935
|
+
Ni(r ? r.current : null)
|
|
11936
|
+
), e = Re(() => {
|
|
11937
|
+
r.current && t(Ni(r.current));
|
|
11518
11938
|
}, [r]);
|
|
11519
|
-
return
|
|
11939
|
+
return Tl(() => {
|
|
11520
11940
|
if (r.current) {
|
|
11521
11941
|
if (e(), typeof ResizeObserver == "function") {
|
|
11522
11942
|
const n = new ResizeObserver(() => {
|
|
@@ -11531,7 +11951,7 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11531
11951
|
};
|
|
11532
11952
|
}
|
|
11533
11953
|
}, [r.current]), a;
|
|
11534
|
-
},
|
|
11954
|
+
}, qi = "__react_svg_text_measurement_id", Vm = (r, a, t, e) => {
|
|
11535
11955
|
const { lineHeight: n, spaceWidth: o, wordsWithComputedWidth: s } = a;
|
|
11536
11956
|
return r.split(/\s+/).reduce((i, c) => {
|
|
11537
11957
|
const l = s[c], h = i[i.length - 1];
|
|
@@ -11547,16 +11967,22 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11547
11967
|
}
|
|
11548
11968
|
return i;
|
|
11549
11969
|
}, []);
|
|
11550
|
-
},
|
|
11970
|
+
}, jm = (r, a, t) => {
|
|
11551
11971
|
var e;
|
|
11552
11972
|
if (r && a) {
|
|
11553
|
-
Array.from(r).forEach(
|
|
11973
|
+
Array.from(r).forEach(
|
|
11974
|
+
(c) => a.style.setProperty(
|
|
11975
|
+
c,
|
|
11976
|
+
r.getPropertyValue(c),
|
|
11977
|
+
r.getPropertyPriority(c)
|
|
11978
|
+
)
|
|
11979
|
+
);
|
|
11554
11980
|
const o = [...new Set(String(t).split(/\s+/))].reduce((c, l) => (a.textContent = l, { ...c, [l]: a.getBBox().width }), {});
|
|
11555
11981
|
a.textContent = " ";
|
|
11556
11982
|
const s = ((e = a == null ? void 0 : a.getComputedTextLength) == null ? void 0 : e.call(a)) || 8, i = a.getBBox().height;
|
|
11557
11983
|
return a.setAttribute("style", ""), { wordsWithComputedWidth: o, spaceWidth: s, lineHeight: i };
|
|
11558
11984
|
}
|
|
11559
|
-
},
|
|
11985
|
+
}, Wi = (r) => {
|
|
11560
11986
|
const {
|
|
11561
11987
|
className: a = "",
|
|
11562
11988
|
dx: t = 0,
|
|
@@ -11573,24 +11999,37 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11573
11999
|
} = r, [p, d] = Te(), [m, f] = Te([]), [v, G] = Te(), K = Ie({}), R = Be(() => {
|
|
11574
12000
|
const C = m.filter(({ showLine: T }) => T);
|
|
11575
12001
|
return C.length ? C : s.split(/\n/).map((T) => ({ words: [T], width: 0, showLine: !0 }));
|
|
11576
|
-
}, [m, s]), S = Re(
|
|
11577
|
-
|
|
11578
|
-
|
|
12002
|
+
}, [m, s]), S = Re(
|
|
12003
|
+
(C) => {
|
|
12004
|
+
G(
|
|
12005
|
+
C !== null ? window.getComputedStyle(C) : void 0
|
|
12006
|
+
);
|
|
12007
|
+
},
|
|
12008
|
+
[]
|
|
12009
|
+
);
|
|
11579
12010
|
ye(() => {
|
|
11580
|
-
const C = document.getElementById(
|
|
12011
|
+
const C = document.getElementById(qi);
|
|
11581
12012
|
if (C === null) {
|
|
11582
12013
|
const T = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
11583
|
-
return T.setAttribute("id",
|
|
12014
|
+
return T.setAttribute("id", qi), document.body.appendChild(T), T.appendChild(
|
|
12015
|
+
document.createElementNS("http://www.w3.org/2000/svg", "text")
|
|
12016
|
+
), K.current = T, () => {
|
|
11584
12017
|
document.body.removeChild(T);
|
|
11585
12018
|
};
|
|
11586
12019
|
}
|
|
11587
12020
|
K.current = C;
|
|
11588
12021
|
}, []), ye(() => {
|
|
11589
|
-
const C =
|
|
12022
|
+
const C = jm(
|
|
12023
|
+
v,
|
|
12024
|
+
K.current,
|
|
12025
|
+
s
|
|
12026
|
+
);
|
|
11590
12027
|
d(C);
|
|
11591
12028
|
}, [s, v]), ye(() => {
|
|
11592
12029
|
if (o && p) {
|
|
11593
|
-
const C = s.split(/\n/).flatMap(
|
|
12030
|
+
const C = s.split(/\n/).flatMap(
|
|
12031
|
+
(T) => Vm(T, p, o, n)
|
|
12032
|
+
);
|
|
11594
12033
|
f(C);
|
|
11595
12034
|
}
|
|
11596
12035
|
}, [n, o, p, s]);
|
|
@@ -11606,79 +12045,103 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11606
12045
|
}
|
|
11607
12046
|
return 0;
|
|
11608
12047
|
}, [R.length, i, p == null ? void 0 : p.lineHeight]);
|
|
11609
|
-
return O(
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
12048
|
+
return /* @__PURE__ */ O(
|
|
12049
|
+
"text",
|
|
12050
|
+
{
|
|
12051
|
+
className: a,
|
|
12052
|
+
ref: S,
|
|
12053
|
+
dx: t,
|
|
12054
|
+
dy: e,
|
|
12055
|
+
x: c,
|
|
12056
|
+
y: l,
|
|
12057
|
+
transform: h,
|
|
12058
|
+
...u,
|
|
12059
|
+
children: /* @__PURE__ */ ne(Ga, { children: [
|
|
12060
|
+
R.map((C, T) => /* @__PURE__ */ O(
|
|
12061
|
+
"tspan",
|
|
12062
|
+
{
|
|
12063
|
+
dx: c + t,
|
|
12064
|
+
dy: T === 0 ? P + e : (p == null ? void 0 : p.lineHeight) || 0,
|
|
12065
|
+
x: 0,
|
|
12066
|
+
children: C.words.join(" ")
|
|
12067
|
+
},
|
|
12068
|
+
T
|
|
12069
|
+
)),
|
|
12070
|
+
m.length && R.length !== m.length && /* @__PURE__ */ ne(Ga, { children: [
|
|
12071
|
+
/* @__PURE__ */ O("tspan", { children: "..." }),
|
|
12072
|
+
/* @__PURE__ */ O("title", { children: s })
|
|
12073
|
+
] })
|
|
12074
|
+
] })
|
|
12075
|
+
}
|
|
12076
|
+
);
|
|
12077
|
+
}, Hc = 0, yc = 1, Mc = 2, kc = 3, wc = 4, Bc = 5, Dc = 6, Oc = 7, Ac = [
|
|
11622
12078
|
{
|
|
11623
|
-
value:
|
|
12079
|
+
value: Oc,
|
|
11624
12080
|
label: "Always maxed out."
|
|
11625
12081
|
},
|
|
11626
12082
|
{
|
|
11627
|
-
value:
|
|
12083
|
+
value: Dc,
|
|
11628
12084
|
label: "Most sensitive."
|
|
11629
12085
|
},
|
|
11630
12086
|
{
|
|
11631
|
-
value:
|
|
12087
|
+
value: Bc,
|
|
11632
12088
|
label: "Moderately sensitive."
|
|
11633
12089
|
},
|
|
11634
12090
|
{
|
|
11635
|
-
value:
|
|
12091
|
+
value: wc,
|
|
11636
12092
|
label: "A little sensitive."
|
|
11637
12093
|
},
|
|
11638
12094
|
{
|
|
11639
|
-
value:
|
|
12095
|
+
value: Hc,
|
|
11640
12096
|
label: "Linear, no change."
|
|
11641
12097
|
},
|
|
11642
12098
|
{
|
|
11643
|
-
value:
|
|
12099
|
+
value: yc,
|
|
11644
12100
|
label: "A little less sensitive."
|
|
11645
12101
|
},
|
|
11646
12102
|
{
|
|
11647
|
-
value:
|
|
12103
|
+
value: Mc,
|
|
11648
12104
|
label: "Even less sensitive."
|
|
11649
12105
|
},
|
|
11650
12106
|
{
|
|
11651
|
-
value:
|
|
12107
|
+
value: kc,
|
|
11652
12108
|
label: "Least sensitive."
|
|
11653
12109
|
}
|
|
11654
|
-
], za = 20,
|
|
11655
|
-
const {
|
|
12110
|
+
], za = 20, Kt = 15, Ke = za, Ea = za, Xm = (r) => {
|
|
12111
|
+
const {
|
|
12112
|
+
Tooltip: a = Ui,
|
|
12113
|
+
autosize: t,
|
|
12114
|
+
disabled: e,
|
|
12115
|
+
inverted: n,
|
|
12116
|
+
onChange: o,
|
|
12117
|
+
value: s
|
|
12118
|
+
} = r, i = Ie(null), c = Ie(null), { height: l, width: h } = Im(i), u = t && h || 218, p = t && l || 150, d = u - za, m = p - za, f = u / 2, v = p / 2, G = { ref: c }, K = Ac.map(
|
|
11656
12119
|
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: <explanation>
|
|
11657
12120
|
({ value: R, label: S }) => {
|
|
11658
12121
|
let P = 0, C = 0, T = Ke, _ = n ? Ea : m, w = d, x = n ? m : Ea, F = f, j = v;
|
|
11659
12122
|
switch (R) {
|
|
11660
|
-
case
|
|
12123
|
+
case Hc:
|
|
11661
12124
|
P = f, C = v, j += 3;
|
|
11662
12125
|
break;
|
|
11663
|
-
case
|
|
12126
|
+
case yc:
|
|
11664
12127
|
P = n ? f + u * 0.13 : f - u * 0.13, C = v - p * 0.13, F = n ? f + u * 0.1 : f - u * 0.1, j = v - p * 0.09;
|
|
11665
12128
|
break;
|
|
11666
|
-
case
|
|
12129
|
+
case Mc:
|
|
11667
12130
|
P = n ? f + u * 0.25 : f - u * 0.25, C = v - p * 0.25, F = n ? f + u * 0.2 : f - u * 0.2, j = v - p * 0.17;
|
|
11668
12131
|
break;
|
|
11669
|
-
case
|
|
12132
|
+
case kc:
|
|
11670
12133
|
P = n ? f + u * 0.35 : f - u * 0.35, C = v - p * 0.35, F = n ? f + u * 0.28 : f - u * 0.28, j = v - p * 0.25;
|
|
11671
12134
|
break;
|
|
11672
|
-
case
|
|
12135
|
+
case wc:
|
|
11673
12136
|
P = n ? f - u * 0.13 : f + u * 0.13, C = v + p * 0.13, F = n ? f - u * 0.1 : f + u * 0.1, j = v + p * 0.1;
|
|
11674
12137
|
break;
|
|
11675
|
-
case
|
|
12138
|
+
case Bc:
|
|
11676
12139
|
P = n ? f - u * 0.25 : f + u * 0.25, C = v + p * 0.25, F = n ? f - u * 0.2 : f + u * 0.2, j = v + p * 0.18;
|
|
11677
12140
|
break;
|
|
11678
|
-
case
|
|
12141
|
+
case Dc:
|
|
11679
12142
|
P = n ? f - u * 0.35 : f + u * 0.35, C = v + p * 0.35, F = n ? f - u * 0.28 : f + u * 0.28, j = v + p * 0.25;
|
|
11680
12143
|
break;
|
|
11681
|
-
case
|
|
12144
|
+
case Oc:
|
|
11682
12145
|
T = n ? Ke : d, _ = Ea, w = T, x = m, P = T, C = v, F = T - 5, j = p - 30;
|
|
11683
12146
|
break;
|
|
11684
12147
|
}
|
|
@@ -11696,30 +12159,190 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11696
12159
|
};
|
|
11697
12160
|
}
|
|
11698
12161
|
);
|
|
11699
|
-
return
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
}
|
|
11716
|
-
|
|
12162
|
+
return /* @__PURE__ */ O(
|
|
12163
|
+
"div",
|
|
12164
|
+
{
|
|
12165
|
+
className: "response-curve-picker",
|
|
12166
|
+
ref: i,
|
|
12167
|
+
children: /* @__PURE__ */ ne("svg", { ...G, children: [
|
|
12168
|
+
/* @__PURE__ */ O(
|
|
12169
|
+
"rect",
|
|
12170
|
+
{
|
|
12171
|
+
className: "container",
|
|
12172
|
+
height: p,
|
|
12173
|
+
rx: 3,
|
|
12174
|
+
ry: 3,
|
|
12175
|
+
width: u,
|
|
12176
|
+
x: 0,
|
|
12177
|
+
y: 0
|
|
12178
|
+
}
|
|
12179
|
+
),
|
|
12180
|
+
/* @__PURE__ */ O(
|
|
12181
|
+
Wi,
|
|
12182
|
+
{
|
|
12183
|
+
className: "axis",
|
|
12184
|
+
textAnchor: "middle",
|
|
12185
|
+
transform: `translate(${Ke - 14} ${p / 2}) rotate(90)`,
|
|
12186
|
+
x: 0,
|
|
12187
|
+
y: 0,
|
|
12188
|
+
text: "Applied force"
|
|
12189
|
+
}
|
|
12190
|
+
),
|
|
12191
|
+
/* @__PURE__ */ O(
|
|
12192
|
+
Wi,
|
|
12193
|
+
{
|
|
12194
|
+
className: "axis",
|
|
12195
|
+
textAnchor: "middle",
|
|
12196
|
+
transform: `translate(${u / 2} ${m + 13})`,
|
|
12197
|
+
x: 0,
|
|
12198
|
+
y: 0,
|
|
12199
|
+
text: "Output (velocity)"
|
|
12200
|
+
}
|
|
12201
|
+
),
|
|
12202
|
+
/* @__PURE__ */ O(
|
|
12203
|
+
"line",
|
|
12204
|
+
{
|
|
12205
|
+
className: "axis",
|
|
12206
|
+
x1: Ke,
|
|
12207
|
+
x2: Ke,
|
|
12208
|
+
y1: Ea,
|
|
12209
|
+
y2: m
|
|
12210
|
+
}
|
|
12211
|
+
),
|
|
12212
|
+
/* @__PURE__ */ O(
|
|
12213
|
+
"line",
|
|
12214
|
+
{
|
|
12215
|
+
className: "axis",
|
|
12216
|
+
x1: Ke,
|
|
12217
|
+
x2: d,
|
|
12218
|
+
y1: m,
|
|
12219
|
+
y2: m
|
|
12220
|
+
}
|
|
12221
|
+
),
|
|
12222
|
+
K.map(
|
|
12223
|
+
({ value: R, label: S, x1: P, y1: C, x2: T, y2: _, c1: w, c2: x, labelX: F, labelY: j }) => /* @__PURE__ */ ne("g", { children: [
|
|
12224
|
+
/* @__PURE__ */ O(
|
|
12225
|
+
"path",
|
|
12226
|
+
{
|
|
12227
|
+
className: R === s ? "curve-selected" : "curve",
|
|
12228
|
+
d: `M${P} ${C} C ${w} ${x}, ${w} ${x}, ${T} ${_}`
|
|
12229
|
+
}
|
|
12230
|
+
),
|
|
12231
|
+
/* @__PURE__ */ O(
|
|
12232
|
+
a,
|
|
12233
|
+
{
|
|
12234
|
+
placement: "left",
|
|
12235
|
+
title: S,
|
|
12236
|
+
children: /* @__PURE__ */ O(
|
|
12237
|
+
"rect",
|
|
12238
|
+
{
|
|
12239
|
+
className: R === s ? "button-selected" : "button",
|
|
12240
|
+
height: Kt,
|
|
12241
|
+
onClick: e ? (ie) => ie : () => o({
|
|
12242
|
+
target: {
|
|
12243
|
+
value: Number.parseInt(String(R))
|
|
12244
|
+
}
|
|
12245
|
+
}),
|
|
12246
|
+
transform: `translate(${F + 3} ${j - Kt / 1.05}) rotate(45)`,
|
|
12247
|
+
width: Kt
|
|
12248
|
+
}
|
|
12249
|
+
)
|
|
12250
|
+
}
|
|
12251
|
+
),
|
|
12252
|
+
/* @__PURE__ */ ne(
|
|
12253
|
+
"text",
|
|
12254
|
+
{
|
|
12255
|
+
className: R === s ? "button-selected" : "button",
|
|
12256
|
+
transform: `translate(${F} ${j})`,
|
|
12257
|
+
children: [
|
|
12258
|
+
R,
|
|
12259
|
+
/* @__PURE__ */ O("title", { children: S })
|
|
12260
|
+
]
|
|
12261
|
+
}
|
|
12262
|
+
)
|
|
12263
|
+
] }, R)
|
|
12264
|
+
)
|
|
12265
|
+
] })
|
|
12266
|
+
}
|
|
12267
|
+
);
|
|
12268
|
+
}, h1 = Se((r, a) => {
|
|
12269
|
+
const {
|
|
12270
|
+
Tooltip: t = Ui,
|
|
12271
|
+
inverted: e = !1,
|
|
12272
|
+
onChange: n,
|
|
12273
|
+
value: o,
|
|
12274
|
+
...s
|
|
12275
|
+
} = r, i = Re(
|
|
12276
|
+
() => {
|
|
12277
|
+
var l;
|
|
12278
|
+
return /* @__PURE__ */ O("div", { className: "singleValue", children: (l = Hl("value", o)(Ac)) == null ? void 0 : l.label });
|
|
12279
|
+
},
|
|
12280
|
+
[o]
|
|
12281
|
+
), c = Re(
|
|
12282
|
+
({ setValue: l }) => /* @__PURE__ */ O(
|
|
12283
|
+
Xm,
|
|
12284
|
+
{
|
|
12285
|
+
autosize: !0,
|
|
12286
|
+
inverted: e,
|
|
12287
|
+
onChange: ({ target: { value: h } }) => {
|
|
12288
|
+
l(h), n(h);
|
|
12289
|
+
},
|
|
12290
|
+
Tooltip: t,
|
|
12291
|
+
value: Number.parseInt(String(o))
|
|
12292
|
+
}
|
|
12293
|
+
),
|
|
12294
|
+
[t, e, n, o]
|
|
12295
|
+
);
|
|
12296
|
+
return /* @__PURE__ */ O(
|
|
12297
|
+
_e,
|
|
12298
|
+
{
|
|
12299
|
+
...s,
|
|
12300
|
+
components: {
|
|
12301
|
+
Placeholder: i,
|
|
12302
|
+
MenuList: c
|
|
12303
|
+
},
|
|
12304
|
+
isSearchable: !1,
|
|
12305
|
+
onChange: (l) => l,
|
|
12306
|
+
ref: a,
|
|
12307
|
+
value: o
|
|
12308
|
+
}
|
|
12309
|
+
);
|
|
12310
|
+
}), f1 = Se(({ statuses: r, ...a }, t) => /* @__PURE__ */ O(
|
|
12311
|
+
_e,
|
|
12312
|
+
{
|
|
12313
|
+
...a,
|
|
12314
|
+
options: r,
|
|
12315
|
+
ref: t
|
|
12316
|
+
}
|
|
12317
|
+
)), g1 = Se((r, a) => {
|
|
12318
|
+
const {
|
|
12319
|
+
disabled: t,
|
|
12320
|
+
highToLow: e,
|
|
12321
|
+
max: n = 127,
|
|
12322
|
+
min: o = 0,
|
|
12323
|
+
onChange: s,
|
|
12324
|
+
value: i = 0,
|
|
12325
|
+
...c
|
|
12326
|
+
} = r, l = Be(() => {
|
|
11717
12327
|
const d = Fa(n - o + 1).map((m) => o + m).map((m) => ({ value: m, label: m }));
|
|
11718
12328
|
return e ? d.reverse() : d;
|
|
11719
|
-
}, [e, n, o]), [h, u] =
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
12329
|
+
}, [e, n, o]), [h, u] = Ft(i), p = Re(
|
|
12330
|
+
(d) => {
|
|
12331
|
+
s(xa(d, n, o)), u(Number.parseInt(String(d), 10));
|
|
12332
|
+
},
|
|
12333
|
+
[n, o, s, u]
|
|
12334
|
+
);
|
|
12335
|
+
return /* @__PURE__ */ O(
|
|
12336
|
+
_e,
|
|
12337
|
+
{
|
|
12338
|
+
...c,
|
|
12339
|
+
disabled: t,
|
|
12340
|
+
onChange: p,
|
|
12341
|
+
options: l,
|
|
12342
|
+
ref: a,
|
|
12343
|
+
value: h
|
|
12344
|
+
}
|
|
12345
|
+
);
|
|
11723
12346
|
}), we = {
|
|
11724
12347
|
noteOff: 8,
|
|
11725
12348
|
// 1000
|
|
@@ -11735,7 +12358,7 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11735
12358
|
// 1101
|
|
11736
12359
|
pitchWheel: 14
|
|
11737
12360
|
// 1110
|
|
11738
|
-
},
|
|
12361
|
+
}, Jm = 15, $m = 240, Ym = [
|
|
11739
12362
|
{ value: we.noteOn, label: "Note On" },
|
|
11740
12363
|
{ value: we.noteOff, label: "Note Stack" },
|
|
11741
12364
|
{ value: we.controlChange, label: "Control Change" },
|
|
@@ -11743,13 +12366,13 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11743
12366
|
{ value: we.aftertouch, label: "Aftertouch" },
|
|
11744
12367
|
{ value: we.channelPressure, label: "Channel Pressure" },
|
|
11745
12368
|
{ value: we.pitchWheel, label: "Pitch Wheel" }
|
|
11746
|
-
],
|
|
12369
|
+
], T1 = (r) => {
|
|
11747
12370
|
var a;
|
|
11748
|
-
return ((a =
|
|
11749
|
-
},
|
|
11750
|
-
status: (r &
|
|
11751
|
-
channel: r &
|
|
11752
|
-
}),
|
|
12371
|
+
return ((a = Ym.filter(({ value: t }) => t === r)[0]) == null ? void 0 : a.label) || "???";
|
|
12372
|
+
}, S1 = (r, a) => r | a << 4, C1 = (r) => ({
|
|
12373
|
+
status: (r & $m) >> 4 | 8,
|
|
12374
|
+
channel: r & Jm
|
|
12375
|
+
}), v1 = [
|
|
11753
12376
|
"Bank Select",
|
|
11754
12377
|
"Modulation Wheel",
|
|
11755
12378
|
"Breath Controller",
|
|
@@ -11878,35 +12501,37 @@ const xi = /* @__PURE__ */ Ve(Am), Lt = (r) => r != null && !Number.isNaN(r), vc
|
|
|
11878
12501
|
"Omni Mode On",
|
|
11879
12502
|
"Mono Mode On",
|
|
11880
12503
|
"Poly Mode"
|
|
11881
|
-
].map(
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
12504
|
+
].map(
|
|
12505
|
+
(r, a) => ({
|
|
12506
|
+
label: String(r).length ? `${a} - ${r}` : String(a),
|
|
12507
|
+
value: a
|
|
12508
|
+
})
|
|
12509
|
+
);
|
|
11885
12510
|
export {
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
12511
|
+
i1 as ChannelMappingPicker,
|
|
12512
|
+
c1 as ChannelPicker,
|
|
12513
|
+
Ui as DefaultTooltip,
|
|
12514
|
+
Yl as Knob,
|
|
12515
|
+
s1 as KnobPicker,
|
|
12516
|
+
l1 as LatchPicker,
|
|
12517
|
+
Jm as MASK_CHANNEL,
|
|
12518
|
+
$m as MASK_STATUS,
|
|
12519
|
+
u1 as MappingPicker,
|
|
12520
|
+
P1 as NotePicker,
|
|
12521
|
+
d1 as OctavePlayer,
|
|
12522
|
+
m1 as PianoPicker,
|
|
12523
|
+
p1 as PolarityPicker,
|
|
12524
|
+
Ac as RESPONSE_CURVES,
|
|
12525
|
+
Xm as ResponseCurve,
|
|
12526
|
+
h1 as ResponseCurvePicker,
|
|
12527
|
+
Wi as SVGText,
|
|
11903
12528
|
_e as Select,
|
|
11904
|
-
|
|
12529
|
+
f1 as StatusPicker,
|
|
11905
12530
|
we as Statuses,
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
12531
|
+
g1 as ValuePicker,
|
|
12532
|
+
v1 as ccValues,
|
|
12533
|
+
S1 as combineStatusWithChannel,
|
|
12534
|
+
C1 as extractStatusAndChannel,
|
|
12535
|
+
T1 as getStatusLabel
|
|
11911
12536
|
};
|
|
11912
12537
|
//# sourceMappingURL=index.es.js.map
|