@tresjs/cientos 1.1.0 → 1.2.1
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/core/Text3D.vue.d.ts +11 -0
- package/dist/trescientos.js +444 -441
- package/dist/trescientos.umd.cjs +7 -7
- package/package.json +11 -11
- package/dist/vite.svg +0 -1
package/dist/trescientos.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
7
|
*/
|
|
8
|
-
import { inject as Vs, defineComponent as ar, ref as dl, resolveComponent as Zi, unref as Lt, openBlock as Qi, createBlock as Ji, createCommentVNode as er, onMounted as hl, onUnmounted as ml, useSlots as vl, computed as Xr, withAsyncContext as fl, withCtx as bl, renderSlot as
|
|
9
|
-
import { EventDispatcher as
|
|
8
|
+
import { inject as Vs, defineComponent as ar, ref as dl, resolveComponent as Zi, unref as Lt, openBlock as Qi, createBlock as Ji, createCommentVNode as er, onMounted as hl, onUnmounted as ml, useSlots as vl, computed as Xr, withAsyncContext as fl, withCtx as bl, renderSlot as gl } from "vue";
|
|
9
|
+
import { EventDispatcher as _l, Vector3 as Oe, MOUSE as gn, TOUCH as _n, PerspectiveCamera as qt, Quaternion as tr, Spherical as Wr, Vector2 as Ie, OrthographicCamera as As, Loader as lr, LoaderUtils as Xt, FileLoader as ns, Color as Ge, SpotLight as wl, PointLight as xl, DirectionalLight as yl, MeshBasicMaterial as ts, sRGBEncoding as Wt, MeshPhysicalMaterial as Zt, TangentSpaceNormalMap as Cl, TextureLoader as El, ImageBitmapLoader as Pl, InterleavedBuffer as kl, InterleavedBufferAttribute as Tl, BufferAttribute as Rs, LinearFilter as ao, LinearMipmapLinearFilter as lo, RepeatWrapping as nr, PointsMaterial as Ml, Material as $i, LineBasicMaterial as Ll, MeshStandardMaterial as cr, DoubleSide as Sl, PropertyBinding as Al, BufferGeometry as co, SkinnedMesh as Vl, Mesh as Rl, LineSegments as Nl, Line as Il, LineLoop as Ol, Points as Dl, Group as qi, MathUtils as Fl, InterpolateLinear as po, AnimationClip as jl, Bone as Bl, Object3D as zl, Matrix4 as uo, Skeleton as Ul, TriangleFanDrawMode as ho, NearestFilter as Hl, NearestMipmapNearestFilter as Kl, LinearMipmapNearestFilter as Gl, NearestMipmapLinearFilter as $l, ClampToEdgeWrapping as ql, MirroredRepeatWrapping as Yl, InterpolateDiscrete as Xl, FrontSide as Wl, Texture as Zr, TriangleStripDrawMode as Zl, VectorKeyframeTrack as Ql, QuaternionKeyframeTrack as Qr, NumberKeyframeTrack as Jl, Box3 as ec, Sphere as tc, Interpolant as nc, ExtrudeGeometry as sc, ShapePath as ic } from "three";
|
|
10
10
|
import { useRenderLoop as rc, useLoader as oc } from "@tresjs/core";
|
|
11
11
|
function ac(k, l) {
|
|
12
12
|
for (var u = 0; u < l.length; u++) {
|
|
@@ -33,7 +33,7 @@ function z(k, l, u) {
|
|
|
33
33
|
}) : k[l] = u, k;
|
|
34
34
|
}
|
|
35
35
|
const Jr = (k, l) => (k % l + l) % l;
|
|
36
|
-
class lc extends
|
|
36
|
+
class lc extends _l {
|
|
37
37
|
constructor(l, u) {
|
|
38
38
|
super(), z(this, "object", void 0), z(this, "domElement", void 0), z(this, "enabled", !0), z(this, "target", new Oe()), z(this, "minDistance", 0), z(this, "maxDistance", 1 / 0), z(this, "minZoom", 0), z(this, "maxZoom", 1 / 0), z(this, "minPolarAngle", 0), z(this, "maxPolarAngle", Math.PI), z(this, "minAzimuthAngle", -1 / 0), z(this, "maxAzimuthAngle", 1 / 0), z(this, "enableDamping", !1), z(this, "dampingFactor", 0.05), z(this, "enableZoom", !0), z(this, "zoomSpeed", 1), z(this, "enableRotate", !0), z(this, "rotateSpeed", 1), z(this, "enablePan", !0), z(this, "panSpeed", 1), z(this, "screenSpacePanning", !0), z(this, "keyPanSpeed", 7), z(this, "autoRotate", !1), z(this, "autoRotateSpeed", 2), z(this, "reverseOrbit", !1), z(this, "keys", {
|
|
39
39
|
LEFT: "ArrowLeft",
|
|
@@ -41,22 +41,22 @@ class lc extends gl {
|
|
|
41
41
|
RIGHT: "ArrowRight",
|
|
42
42
|
BOTTOM: "ArrowDown"
|
|
43
43
|
}), z(this, "mouseButtons", {
|
|
44
|
-
LEFT:
|
|
45
|
-
MIDDLE:
|
|
46
|
-
RIGHT:
|
|
44
|
+
LEFT: gn.ROTATE,
|
|
45
|
+
MIDDLE: gn.DOLLY,
|
|
46
|
+
RIGHT: gn.PAN
|
|
47
47
|
}), z(this, "touches", {
|
|
48
|
-
ONE:
|
|
49
|
-
TWO:
|
|
48
|
+
ONE: _n.ROTATE,
|
|
49
|
+
TWO: _n.DOLLY_PAN
|
|
50
50
|
}), z(this, "target0", void 0), z(this, "position0", void 0), z(this, "zoom0", void 0), z(this, "_domElementKeyEvents", null), z(this, "getPolarAngle", void 0), z(this, "getAzimuthalAngle", void 0), z(this, "setPolarAngle", void 0), z(this, "setAzimuthalAngle", void 0), z(this, "getDistance", void 0), z(this, "listenToKeyEvents", void 0), z(this, "saveState", void 0), z(this, "reset", void 0), z(this, "update", void 0), z(this, "connect", void 0), z(this, "dispose", void 0), this.object = l, this.domElement = u, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object instanceof qt ? this.object.zoom : 1, this.getPolarAngle = () => C.phi, this.getAzimuthalAngle = () => C.theta, this.setPolarAngle = (E) => {
|
|
51
51
|
let V = Jr(E, 2 * Math.PI), B = C.phi;
|
|
52
52
|
B < 0 && (B += 2 * Math.PI), V < 0 && (V += 2 * Math.PI);
|
|
53
53
|
let $ = Math.abs(V - B);
|
|
54
|
-
2 * Math.PI - $ < $ && (V < B ? V += 2 * Math.PI : B += 2 * Math.PI),
|
|
54
|
+
2 * Math.PI - $ < $ && (V < B ? V += 2 * Math.PI : B += 2 * Math.PI), _.phi = V - B, a.update();
|
|
55
55
|
}, this.setAzimuthalAngle = (E) => {
|
|
56
56
|
let V = Jr(E, 2 * Math.PI), B = C.theta;
|
|
57
57
|
B < 0 && (B += 2 * Math.PI), V < 0 && (V += 2 * Math.PI);
|
|
58
58
|
let $ = Math.abs(V - B);
|
|
59
|
-
2 * Math.PI - $ < $ && (V < B ? V += 2 * Math.PI : B += 2 * Math.PI),
|
|
59
|
+
2 * Math.PI - $ < $ && (V < B ? V += 2 * Math.PI : B += 2 * Math.PI), _.theta = V - B, a.update();
|
|
60
60
|
}, this.getDistance = () => a.object.position.distanceTo(a.target), this.listenToKeyEvents = (E) => {
|
|
61
61
|
E.addEventListener("keydown", Ye), this._domElementKeyEvents = E;
|
|
62
62
|
}, this.saveState = () => {
|
|
@@ -67,9 +67,9 @@ class lc extends gl {
|
|
|
67
67
|
const E = new Oe(), V = new tr().setFromUnitVectors(l.up, new Oe(0, 1, 0)), B = V.clone().invert(), $ = new Oe(), oe = new tr(), ke = 2 * Math.PI;
|
|
68
68
|
return function() {
|
|
69
69
|
const sn = a.object.position;
|
|
70
|
-
E.copy(sn).sub(a.target), E.applyQuaternion(V), C.setFromVector3(E), a.autoRotate && v === f.NONE && ye(ne()), a.enableDamping ? (C.theta +=
|
|
71
|
-
let
|
|
72
|
-
return isFinite(
|
|
70
|
+
E.copy(sn).sub(a.target), E.applyQuaternion(V), C.setFromVector3(E), a.autoRotate && v === f.NONE && ye(ne()), a.enableDamping ? (C.theta += _.theta * a.dampingFactor, C.phi += _.phi * a.dampingFactor) : (C.theta += _.theta, C.phi += _.phi);
|
|
71
|
+
let _e = a.minAzimuthAngle, we = a.maxAzimuthAngle;
|
|
72
|
+
return isFinite(_e) && isFinite(we) && (_e < -Math.PI ? _e += ke : _e > Math.PI && (_e -= ke), we < -Math.PI ? we += ke : we > Math.PI && (we -= ke), _e <= we ? C.theta = Math.max(_e, Math.min(we, C.theta)) : C.theta = C.theta > (_e + we) / 2 ? Math.max(_e, C.theta) : Math.min(we, C.theta)), C.phi = Math.max(a.minPolarAngle, Math.min(a.maxPolarAngle, C.phi)), C.makeSafe(), C.radius *= P, C.radius = Math.max(a.minDistance, Math.min(a.maxDistance, C.radius)), a.enableDamping === !0 ? a.target.addScaledVector(S, a.dampingFactor) : a.target.add(S), E.setFromSpherical(C), E.applyQuaternion(B), sn.copy(a.target).add(E), a.object.lookAt(a.target), a.enableDamping === !0 ? (_.theta *= 1 - a.dampingFactor, _.phi *= 1 - a.dampingFactor, S.multiplyScalar(1 - a.dampingFactor)) : (_.set(0, 0, 0), S.set(0, 0, 0)), P = 1, L || $.distanceToSquared(a.object.position) > w || 8 * (1 - oe.dot(a.object.quaternion)) > w ? (a.dispatchEvent(d), $.copy(a.object.position), oe.copy(a.object.quaternion), L = !1, !0) : !1;
|
|
73
73
|
};
|
|
74
74
|
})(), this.connect = (E) => {
|
|
75
75
|
E === document && console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'), a.domElement = E, a.domElement.style.touchAction = "none", a.domElement.addEventListener("contextmenu", Ve), a.domElement.addEventListener("pointerdown", Rt), a.domElement.addEventListener("pointercancel", qe), a.domElement.addEventListener("wheel", Ae);
|
|
@@ -94,7 +94,7 @@ class lc extends gl {
|
|
|
94
94
|
TOUCH_DOLLY_ROTATE: 6
|
|
95
95
|
};
|
|
96
96
|
let v = f.NONE;
|
|
97
|
-
const w = 1e-6, C = new Wr(),
|
|
97
|
+
const w = 1e-6, C = new Wr(), _ = new Wr();
|
|
98
98
|
let P = 1;
|
|
99
99
|
const S = new Oe();
|
|
100
100
|
let L = !1;
|
|
@@ -106,10 +106,10 @@ class lc extends gl {
|
|
|
106
106
|
return Math.pow(0.95, a.zoomSpeed);
|
|
107
107
|
}
|
|
108
108
|
function ye(E) {
|
|
109
|
-
a.reverseOrbit ?
|
|
109
|
+
a.reverseOrbit ? _.theta += E : _.theta -= E;
|
|
110
110
|
}
|
|
111
111
|
function de(E) {
|
|
112
|
-
a.reverseOrbit ?
|
|
112
|
+
a.reverseOrbit ? _.phi += E : _.phi -= E;
|
|
113
113
|
}
|
|
114
114
|
const pe = (() => {
|
|
115
115
|
const E = new Oe();
|
|
@@ -146,7 +146,7 @@ class lc extends gl {
|
|
|
146
146
|
function Jt(E) {
|
|
147
147
|
ue.set(E.clientX, E.clientY);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ge(E) {
|
|
150
150
|
G.set(E.clientX, E.clientY);
|
|
151
151
|
}
|
|
152
152
|
function St(E) {
|
|
@@ -275,23 +275,23 @@ class lc extends gl {
|
|
|
275
275
|
V = -1;
|
|
276
276
|
}
|
|
277
277
|
switch (V) {
|
|
278
|
-
case
|
|
278
|
+
case gn.DOLLY:
|
|
279
279
|
if (a.enableZoom === !1)
|
|
280
280
|
return;
|
|
281
281
|
Jt(E), v = f.DOLLY;
|
|
282
282
|
break;
|
|
283
|
-
case
|
|
283
|
+
case gn.ROTATE:
|
|
284
284
|
if (E.ctrlKey || E.metaKey || E.shiftKey) {
|
|
285
285
|
if (a.enablePan === !1)
|
|
286
286
|
return;
|
|
287
|
-
|
|
287
|
+
ge(E), v = f.PAN;
|
|
288
288
|
} else {
|
|
289
289
|
if (a.enableRotate === !1)
|
|
290
290
|
return;
|
|
291
291
|
Qt(E), v = f.ROTATE;
|
|
292
292
|
}
|
|
293
293
|
break;
|
|
294
|
-
case
|
|
294
|
+
case gn.PAN:
|
|
295
295
|
if (E.ctrlKey || E.metaKey || E.shiftKey) {
|
|
296
296
|
if (a.enableRotate === !1)
|
|
297
297
|
return;
|
|
@@ -299,7 +299,7 @@ class lc extends gl {
|
|
|
299
299
|
} else {
|
|
300
300
|
if (a.enablePan === !1)
|
|
301
301
|
return;
|
|
302
|
-
|
|
302
|
+
ge(E), v = f.PAN;
|
|
303
303
|
}
|
|
304
304
|
break;
|
|
305
305
|
default:
|
|
@@ -337,12 +337,12 @@ class lc extends gl {
|
|
|
337
337
|
switch (De(E), H.length) {
|
|
338
338
|
case 1:
|
|
339
339
|
switch (a.touches.ONE) {
|
|
340
|
-
case
|
|
340
|
+
case _n.ROTATE:
|
|
341
341
|
if (a.enableRotate === !1)
|
|
342
342
|
return;
|
|
343
343
|
At(), v = f.TOUCH_ROTATE;
|
|
344
344
|
break;
|
|
345
|
-
case
|
|
345
|
+
case _n.PAN:
|
|
346
346
|
if (a.enablePan === !1)
|
|
347
347
|
return;
|
|
348
348
|
Vt(), v = f.TOUCH_PAN;
|
|
@@ -353,12 +353,12 @@ class lc extends gl {
|
|
|
353
353
|
break;
|
|
354
354
|
case 2:
|
|
355
355
|
switch (a.touches.TWO) {
|
|
356
|
-
case
|
|
356
|
+
case _n.DOLLY_PAN:
|
|
357
357
|
if (a.enableZoom === !1 && a.enablePan === !1)
|
|
358
358
|
return;
|
|
359
359
|
Ee(), v = f.TOUCH_DOLLY_PAN;
|
|
360
360
|
break;
|
|
361
|
-
case
|
|
361
|
+
case _n.DOLLY_ROTATE:
|
|
362
362
|
if (a.enableZoom === !1 && a.enableRotate === !1)
|
|
363
363
|
return;
|
|
364
364
|
Je(), v = f.TOUCH_DOLLY_ROTATE;
|
|
@@ -435,10 +435,10 @@ class cc extends lr {
|
|
|
435
435
|
return new fc(u);
|
|
436
436
|
}), this.register(function(u) {
|
|
437
437
|
return new bc(u);
|
|
438
|
-
}), this.register(function(u) {
|
|
439
|
-
return new _c(u);
|
|
440
438
|
}), this.register(function(u) {
|
|
441
439
|
return new gc(u);
|
|
440
|
+
}), this.register(function(u) {
|
|
441
|
+
return new _c(u);
|
|
442
442
|
}), this.register(function(u) {
|
|
443
443
|
return new hc(u);
|
|
444
444
|
}), this.register(function(u) {
|
|
@@ -494,8 +494,8 @@ class cc extends lr {
|
|
|
494
494
|
else if (Xt.decodeText(new Uint8Array(l, 0, 4)) === mo) {
|
|
495
495
|
try {
|
|
496
496
|
h[q.KHR_BINARY_GLTF] = new Ec(l);
|
|
497
|
-
} catch (
|
|
498
|
-
d && d(
|
|
497
|
+
} catch (_) {
|
|
498
|
+
d && d(_);
|
|
499
499
|
return;
|
|
500
500
|
}
|
|
501
501
|
m = h[q.KHR_BINARY_GLTF].content;
|
|
@@ -516,30 +516,30 @@ class cc extends lr {
|
|
|
516
516
|
});
|
|
517
517
|
w.fileLoader.setRequestHeader(this.requestHeader);
|
|
518
518
|
for (let C = 0; C < this.pluginCallbacks.length; C++) {
|
|
519
|
-
const
|
|
520
|
-
f[
|
|
519
|
+
const _ = this.pluginCallbacks[C](w);
|
|
520
|
+
f[_.name] = _, h[_.name] = !0;
|
|
521
521
|
}
|
|
522
522
|
if (v.extensionsUsed)
|
|
523
523
|
for (let C = 0; C < v.extensionsUsed.length; ++C) {
|
|
524
|
-
const
|
|
525
|
-
switch (
|
|
524
|
+
const _ = v.extensionsUsed[C], P = v.extensionsRequired || [];
|
|
525
|
+
switch (_) {
|
|
526
526
|
case q.KHR_MATERIALS_UNLIT:
|
|
527
|
-
h[
|
|
527
|
+
h[_] = new dc();
|
|
528
528
|
break;
|
|
529
529
|
case q.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:
|
|
530
|
-
h[
|
|
530
|
+
h[_] = new Tc();
|
|
531
531
|
break;
|
|
532
532
|
case q.KHR_DRACO_MESH_COMPRESSION:
|
|
533
|
-
h[
|
|
533
|
+
h[_] = new Pc(v, this.dracoLoader);
|
|
534
534
|
break;
|
|
535
535
|
case q.KHR_TEXTURE_TRANSFORM:
|
|
536
|
-
h[
|
|
536
|
+
h[_] = new kc();
|
|
537
537
|
break;
|
|
538
538
|
case q.KHR_MESH_QUANTIZATION:
|
|
539
|
-
h[
|
|
539
|
+
h[_] = new Mc();
|
|
540
540
|
break;
|
|
541
541
|
default:
|
|
542
|
-
P.indexOf(
|
|
542
|
+
P.indexOf(_) >= 0 && f[_] === void 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + _ + '".');
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
w.setExtensions(h), w.setPlugins(f), w.parse(a, d);
|
|
@@ -611,16 +611,16 @@ class uc {
|
|
|
611
611
|
let w;
|
|
612
612
|
const C = new Ge(16777215);
|
|
613
613
|
v.color !== void 0 && C.fromArray(v.color);
|
|
614
|
-
const
|
|
614
|
+
const _ = v.range !== void 0 ? v.range : 0;
|
|
615
615
|
switch (v.type) {
|
|
616
616
|
case "directional":
|
|
617
617
|
w = new yl(C), w.target.position.set(0, 0, -1), w.add(w.target);
|
|
618
618
|
break;
|
|
619
619
|
case "point":
|
|
620
|
-
w = new xl(C), w.distance =
|
|
620
|
+
w = new xl(C), w.distance = _;
|
|
621
621
|
break;
|
|
622
622
|
case "spot":
|
|
623
|
-
w = new wl(C), w.distance =
|
|
623
|
+
w = new wl(C), w.distance = _, v.spot = v.spot || {}, v.spot.innerConeAngle = v.spot.innerConeAngle !== void 0 ? v.spot.innerConeAngle : 0, v.spot.outerConeAngle = v.spot.outerConeAngle !== void 0 ? v.spot.outerConeAngle : Math.PI / 4, w.angle = v.spot.outerConeAngle, w.penumbra = 1 - v.spot.innerConeAngle / v.spot.outerConeAngle, w.target.position.set(0, 0, -1), w.add(w.target);
|
|
624
624
|
break;
|
|
625
625
|
default:
|
|
626
626
|
throw new Error("THREE.GLTFLoader: Unexpected light type: " + v.type);
|
|
@@ -737,7 +737,7 @@ class bc {
|
|
|
737
737
|
return h.transmissionFactor !== void 0 && (u.transmission = h.transmissionFactor), h.transmissionTexture !== void 0 && m.push(a.assignTexture(u, "transmissionMap", h.transmissionTexture)), Promise.all(m);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
class
|
|
740
|
+
class gc {
|
|
741
741
|
constructor(l) {
|
|
742
742
|
this.parser = l, this.name = q.KHR_MATERIALS_VOLUME;
|
|
743
743
|
}
|
|
@@ -755,7 +755,7 @@ class _c {
|
|
|
755
755
|
return u.attenuationColor = new Ge(f[0], f[1], f[2]), Promise.all(m);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
class
|
|
758
|
+
class _c {
|
|
759
759
|
constructor(l) {
|
|
760
760
|
this.parser = l, this.name = q.KHR_MATERIALS_IOR;
|
|
761
761
|
}
|
|
@@ -851,12 +851,12 @@ class Cc {
|
|
|
851
851
|
return null;
|
|
852
852
|
}
|
|
853
853
|
return m.then(function(f) {
|
|
854
|
-
const v = d.byteOffset || 0, w = d.byteLength || 0, C = d.count,
|
|
855
|
-
return h.decodeGltfBufferAsync ? h.decodeGltfBufferAsync(C,
|
|
854
|
+
const v = d.byteOffset || 0, w = d.byteLength || 0, C = d.count, _ = d.byteStride, P = new Uint8Array(f, v, w);
|
|
855
|
+
return h.decodeGltfBufferAsync ? h.decodeGltfBufferAsync(C, _, P, d.mode, d.filter).then(function(S) {
|
|
856
856
|
return S.buffer;
|
|
857
857
|
}) : h.ready.then(function() {
|
|
858
|
-
const S = new ArrayBuffer(C *
|
|
859
|
-
return h.decodeGltfBuffer(new Uint8Array(S), C,
|
|
858
|
+
const S = new ArrayBuffer(C * _);
|
|
859
|
+
return h.decodeGltfBuffer(new Uint8Array(S), C, _, P, d.mode, d.filter), S;
|
|
860
860
|
});
|
|
861
861
|
});
|
|
862
862
|
} else
|
|
@@ -907,24 +907,24 @@ class Pc {
|
|
|
907
907
|
decodePrimitive(l, u) {
|
|
908
908
|
const a = this.json, d = this.dracoLoader, m = l.extensions[this.name].bufferView, h = l.extensions[this.name].attributes, f = {}, v = {}, w = {};
|
|
909
909
|
for (const C in h) {
|
|
910
|
-
const
|
|
911
|
-
f[
|
|
910
|
+
const _ = ir[C] || C.toLowerCase();
|
|
911
|
+
f[_] = h[C];
|
|
912
912
|
}
|
|
913
913
|
for (const C in l.attributes) {
|
|
914
|
-
const
|
|
914
|
+
const _ = ir[C] || C.toLowerCase();
|
|
915
915
|
if (h[C] !== void 0) {
|
|
916
916
|
const P = a.accessors[l.attributes[C]], S = ss[P.componentType];
|
|
917
|
-
w[
|
|
917
|
+
w[_] = S.name, v[_] = P.normalized === !0;
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
return u.getDependency("bufferView", m).then(function(C) {
|
|
921
|
-
return new Promise(function(
|
|
921
|
+
return new Promise(function(_) {
|
|
922
922
|
d.decodeDracoFile(C, function(P) {
|
|
923
923
|
for (const S in P.attributes) {
|
|
924
924
|
const L = P.attributes[S], N = v[S];
|
|
925
925
|
N !== void 0 && (L.normalized = N);
|
|
926
926
|
}
|
|
927
|
-
|
|
927
|
+
_(P);
|
|
928
928
|
}, f, w);
|
|
929
929
|
});
|
|
930
930
|
});
|
|
@@ -1045,7 +1045,7 @@ class vo extends nc {
|
|
|
1045
1045
|
return u;
|
|
1046
1046
|
}
|
|
1047
1047
|
interpolate_(l, u, a, d) {
|
|
1048
|
-
const m = this.resultBuffer, h = this.sampleValues, f = this.valueSize, v = f * 2, w = f * 3, C = d - u,
|
|
1048
|
+
const m = this.resultBuffer, h = this.sampleValues, f = this.valueSize, v = f * 2, w = f * 3, C = d - u, _ = (a - u) / C, P = _ * _, S = P * _, L = l * w, N = L - w, A = -2 * S + 3 * P, I = S - P, G = 1 - A, O = I - P + _;
|
|
1049
1049
|
for (let ie = 0; ie !== f; ie++) {
|
|
1050
1050
|
const ue = h[N + ie + f], te = h[N + ie + v] * C, Y = h[L + ie + f], H = h[L + ie] * C;
|
|
1051
1051
|
m[ie] = G * ue + O * te + A * Y + I * H;
|
|
@@ -1149,31 +1149,31 @@ function Yt(k, l) {
|
|
|
1149
1149
|
function Rc(k, l, u) {
|
|
1150
1150
|
let a = !1, d = !1, m = !1;
|
|
1151
1151
|
for (let w = 0, C = l.length; w < C; w++) {
|
|
1152
|
-
const
|
|
1153
|
-
if (
|
|
1152
|
+
const _ = l[w];
|
|
1153
|
+
if (_.POSITION !== void 0 && (a = !0), _.NORMAL !== void 0 && (d = !0), _.COLOR_0 !== void 0 && (m = !0), a && d && m)
|
|
1154
1154
|
break;
|
|
1155
1155
|
}
|
|
1156
1156
|
if (!a && !d && !m)
|
|
1157
1157
|
return Promise.resolve(k);
|
|
1158
1158
|
const h = [], f = [], v = [];
|
|
1159
1159
|
for (let w = 0, C = l.length; w < C; w++) {
|
|
1160
|
-
const
|
|
1160
|
+
const _ = l[w];
|
|
1161
1161
|
if (a) {
|
|
1162
|
-
const P =
|
|
1162
|
+
const P = _.POSITION !== void 0 ? u.getDependency("accessor", _.POSITION) : k.attributes.position;
|
|
1163
1163
|
h.push(P);
|
|
1164
1164
|
}
|
|
1165
1165
|
if (d) {
|
|
1166
|
-
const P =
|
|
1166
|
+
const P = _.NORMAL !== void 0 ? u.getDependency("accessor", _.NORMAL) : k.attributes.normal;
|
|
1167
1167
|
f.push(P);
|
|
1168
1168
|
}
|
|
1169
1169
|
if (m) {
|
|
1170
|
-
const P =
|
|
1170
|
+
const P = _.COLOR_0 !== void 0 ? u.getDependency("accessor", _.COLOR_0) : k.attributes.color;
|
|
1171
1171
|
v.push(P);
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
return Promise.all([Promise.all(h), Promise.all(f), Promise.all(v)]).then(function(w) {
|
|
1175
|
-
const C = w[0],
|
|
1176
|
-
return a && (k.morphAttributes.position = C), d && (k.morphAttributes.normal =
|
|
1175
|
+
const C = w[0], _ = w[1], P = w[2];
|
|
1176
|
+
return a && (k.morphAttributes.position = C), d && (k.morphAttributes.normal = _), m && (k.morphAttributes.color = P), k.morphTargetsRelative = !0, k;
|
|
1177
1177
|
});
|
|
1178
1178
|
}
|
|
1179
1179
|
function Nc(k, l) {
|
|
@@ -1403,9 +1403,9 @@ class Dc {
|
|
|
1403
1403
|
return Promise.resolve(null);
|
|
1404
1404
|
const m = [];
|
|
1405
1405
|
return d.bufferView !== void 0 ? m.push(this.getDependency("bufferView", d.bufferView)) : m.push(null), d.sparse !== void 0 && (m.push(this.getDependency("bufferView", d.sparse.indices.bufferView)), m.push(this.getDependency("bufferView", d.sparse.values.bufferView))), Promise.all(m).then(function(h) {
|
|
1406
|
-
const f = h[0], v = so[d.type], w = ss[d.componentType], C = w.BYTES_PER_ELEMENT,
|
|
1406
|
+
const f = h[0], v = so[d.type], w = ss[d.componentType], C = w.BYTES_PER_ELEMENT, _ = C * v, P = d.byteOffset || 0, S = d.bufferView !== void 0 ? a.bufferViews[d.bufferView].byteStride : void 0, L = d.normalized === !0;
|
|
1407
1407
|
let N, A;
|
|
1408
|
-
if (S && S !==
|
|
1408
|
+
if (S && S !== _) {
|
|
1409
1409
|
const I = Math.floor(P / S), G = "InterleavedBuffer:" + d.bufferView + ":" + d.componentType + ":" + I + ":" + d.count;
|
|
1410
1410
|
let O = u.cache.get(G);
|
|
1411
1411
|
O || (N = new w(f, I * S, d.count * S / C), O = new kl(N, S / C), u.cache.add(G, O)), A = new Tl(O, v, P % S / C, L);
|
|
@@ -1450,31 +1450,31 @@ class Dc {
|
|
|
1450
1450
|
loadImageSource(l, u) {
|
|
1451
1451
|
const a = this, d = this.json, m = this.options;
|
|
1452
1452
|
if (this.sourceCache[l] !== void 0)
|
|
1453
|
-
return this.sourceCache[l].then((
|
|
1453
|
+
return this.sourceCache[l].then((_) => _.clone());
|
|
1454
1454
|
const h = d.images[l], f = self.URL || self.webkitURL;
|
|
1455
1455
|
let v = h.uri || "", w = !1;
|
|
1456
1456
|
if (h.bufferView !== void 0)
|
|
1457
|
-
v = a.getDependency("bufferView", h.bufferView).then(function(
|
|
1457
|
+
v = a.getDependency("bufferView", h.bufferView).then(function(_) {
|
|
1458
1458
|
w = !0;
|
|
1459
|
-
const P = new Blob([
|
|
1459
|
+
const P = new Blob([_], {
|
|
1460
1460
|
type: h.mimeType
|
|
1461
1461
|
});
|
|
1462
1462
|
return v = f.createObjectURL(P), v;
|
|
1463
1463
|
});
|
|
1464
1464
|
else if (h.uri === void 0)
|
|
1465
1465
|
throw new Error("THREE.GLTFLoader: Image " + l + " is missing URI and bufferView");
|
|
1466
|
-
const C = Promise.resolve(v).then(function(
|
|
1466
|
+
const C = Promise.resolve(v).then(function(_) {
|
|
1467
1467
|
return new Promise(function(P, S) {
|
|
1468
1468
|
let L = P;
|
|
1469
1469
|
u.isImageBitmapLoader === !0 && (L = function(N) {
|
|
1470
1470
|
const A = new Zr(N);
|
|
1471
1471
|
A.needsUpdate = !0, P(A);
|
|
1472
|
-
}), u.load(Xt.resolveURL(
|
|
1472
|
+
}), u.load(Xt.resolveURL(_, m.path), L, void 0, S);
|
|
1473
1473
|
});
|
|
1474
|
-
}).then(function(
|
|
1475
|
-
return w === !0 && f.revokeObjectURL(v),
|
|
1476
|
-
}).catch(function(
|
|
1477
|
-
throw console.error("THREE.GLTFLoader: Couldn't load texture", v),
|
|
1474
|
+
}).then(function(_) {
|
|
1475
|
+
return w === !0 && f.revokeObjectURL(v), _.userData.mimeType = h.mimeType || Oc(h.uri), _;
|
|
1476
|
+
}).catch(function(_) {
|
|
1477
|
+
throw console.error("THREE.GLTFLoader: Couldn't load texture", v), _;
|
|
1478
1478
|
});
|
|
1479
1479
|
return this.sourceCache[l] = C, C;
|
|
1480
1480
|
}
|
|
@@ -1520,18 +1520,18 @@ class Dc {
|
|
|
1520
1520
|
let h;
|
|
1521
1521
|
const f = {}, v = m.extensions || {}, w = [];
|
|
1522
1522
|
if (v[q.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]) {
|
|
1523
|
-
const
|
|
1524
|
-
h =
|
|
1523
|
+
const _ = d[q.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];
|
|
1524
|
+
h = _.getMaterialType(), w.push(_.extendParams(f, m, u));
|
|
1525
1525
|
} else if (v[q.KHR_MATERIALS_UNLIT]) {
|
|
1526
|
-
const
|
|
1527
|
-
h =
|
|
1526
|
+
const _ = d[q.KHR_MATERIALS_UNLIT];
|
|
1527
|
+
h = _.getMaterialType(), w.push(_.extendParams(f, m, u));
|
|
1528
1528
|
} else {
|
|
1529
|
-
const
|
|
1530
|
-
if (f.color = new Ge(1, 1, 1), f.opacity = 1, Array.isArray(
|
|
1531
|
-
const P =
|
|
1529
|
+
const _ = m.pbrMetallicRoughness || {};
|
|
1530
|
+
if (f.color = new Ge(1, 1, 1), f.opacity = 1, Array.isArray(_.baseColorFactor)) {
|
|
1531
|
+
const P = _.baseColorFactor;
|
|
1532
1532
|
f.color.fromArray(P), f.opacity = P[3];
|
|
1533
1533
|
}
|
|
1534
|
-
|
|
1534
|
+
_.baseColorTexture !== void 0 && w.push(u.assignTexture(f, "map", _.baseColorTexture, Wt)), f.metalness = _.metallicFactor !== void 0 ? _.metallicFactor : 1, f.roughness = _.roughnessFactor !== void 0 ? _.roughnessFactor : 1, _.metallicRoughnessTexture !== void 0 && (w.push(u.assignTexture(f, "metalnessMap", _.metallicRoughnessTexture)), w.push(u.assignTexture(f, "roughnessMap", _.metallicRoughnessTexture))), h = this._invokeOne(function(P) {
|
|
1535
1535
|
return P.getMaterialType && P.getMaterialType(l);
|
|
1536
1536
|
}), w.push(Promise.all(this._invokeAll(function(P) {
|
|
1537
1537
|
return P.extendMaterialParams && P.extendMaterialParams(l, f);
|
|
@@ -1540,14 +1540,14 @@ class Dc {
|
|
|
1540
1540
|
m.doubleSided === !0 && (f.side = Sl);
|
|
1541
1541
|
const C = m.alphaMode || Yi.OPAQUE;
|
|
1542
1542
|
if (C === Yi.BLEND ? (f.transparent = !0, f.depthWrite = !1) : (f.transparent = !1, C === Yi.MASK && (f.alphaTest = m.alphaCutoff !== void 0 ? m.alphaCutoff : 0.5)), m.normalTexture !== void 0 && h !== ts && (w.push(u.assignTexture(f, "normalMap", m.normalTexture)), f.normalScale = new Ie(1, 1), m.normalTexture.scale !== void 0)) {
|
|
1543
|
-
const
|
|
1544
|
-
f.normalScale.set(
|
|
1543
|
+
const _ = m.normalTexture.scale;
|
|
1544
|
+
f.normalScale.set(_, _);
|
|
1545
1545
|
}
|
|
1546
1546
|
return m.occlusionTexture !== void 0 && h !== ts && (w.push(u.assignTexture(f, "aoMap", m.occlusionTexture)), m.occlusionTexture.strength !== void 0 && (f.aoMapIntensity = m.occlusionTexture.strength)), m.emissiveFactor !== void 0 && h !== ts && (f.emissive = new Ge().fromArray(m.emissiveFactor)), m.emissiveTexture !== void 0 && h !== ts && w.push(u.assignTexture(f, "emissiveMap", m.emissiveTexture, Wt)), Promise.all(w).then(function() {
|
|
1547
|
-
let
|
|
1548
|
-
return h === sr ?
|
|
1547
|
+
let _;
|
|
1548
|
+
return h === sr ? _ = d[q.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(f) : _ = new h(f), m.name && (_.name = m.name), Yt(_, m), u.associations.set(_, {
|
|
1549
1549
|
materials: l
|
|
1550
|
-
}), m.extensions && es(d,
|
|
1550
|
+
}), m.extensions && es(d, _, m), _;
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|
|
1553
1553
|
createUniqueName(l) {
|
|
@@ -1566,9 +1566,9 @@ class Dc {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
const h = [];
|
|
1568
1568
|
for (let f = 0, v = l.length; f < v; f++) {
|
|
1569
|
-
const w = l[f], C = Ic(w),
|
|
1570
|
-
if (
|
|
1571
|
-
h.push(
|
|
1569
|
+
const w = l[f], C = Ic(w), _ = d[C];
|
|
1570
|
+
if (_)
|
|
1571
|
+
h.push(_.promise);
|
|
1572
1572
|
else {
|
|
1573
1573
|
let P;
|
|
1574
1574
|
w.extensions && w.extensions[q.KHR_DRACO_MESH_COMPRESSION] ? P = m(w) : P = ro(new co(), w, u), d[C] = {
|
|
@@ -1586,7 +1586,7 @@ class Dc {
|
|
|
1586
1586
|
f.push(C);
|
|
1587
1587
|
}
|
|
1588
1588
|
return f.push(u.loadGeometries(h)), Promise.all(f).then(function(v) {
|
|
1589
|
-
const w = v.slice(0, v.length - 1), C = v[v.length - 1],
|
|
1589
|
+
const w = v.slice(0, v.length - 1), C = v[v.length - 1], _ = [];
|
|
1590
1590
|
for (let S = 0, L = C.length; S < L; S++) {
|
|
1591
1591
|
const N = C[S], A = h[S];
|
|
1592
1592
|
let I;
|
|
@@ -1603,21 +1603,21 @@ class Dc {
|
|
|
1603
1603
|
I = new Dl(N, G);
|
|
1604
1604
|
else
|
|
1605
1605
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + A.mode);
|
|
1606
|
-
Object.keys(I.geometry.morphAttributes).length > 0 && Nc(I, m), I.name = u.createUniqueName(m.name || "mesh_" + l), Yt(I, m), A.extensions && es(d, I, A), u.assignFinalMaterial(I),
|
|
1606
|
+
Object.keys(I.geometry.morphAttributes).length > 0 && Nc(I, m), I.name = u.createUniqueName(m.name || "mesh_" + l), Yt(I, m), A.extensions && es(d, I, A), u.assignFinalMaterial(I), _.push(I);
|
|
1607
1607
|
}
|
|
1608
|
-
for (let S = 0, L =
|
|
1609
|
-
u.associations.set(
|
|
1608
|
+
for (let S = 0, L = _.length; S < L; S++)
|
|
1609
|
+
u.associations.set(_[S], {
|
|
1610
1610
|
meshes: l,
|
|
1611
1611
|
primitives: S
|
|
1612
1612
|
});
|
|
1613
|
-
if (
|
|
1614
|
-
return
|
|
1613
|
+
if (_.length === 1)
|
|
1614
|
+
return _[0];
|
|
1615
1615
|
const P = new qi();
|
|
1616
1616
|
u.associations.set(P, {
|
|
1617
1617
|
meshes: l
|
|
1618
1618
|
});
|
|
1619
|
-
for (let S = 0, L =
|
|
1620
|
-
P.add(
|
|
1619
|
+
for (let S = 0, L = _.length; S < L; S++)
|
|
1620
|
+
P.add(_[S]);
|
|
1621
1621
|
return P;
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
@@ -1641,13 +1641,13 @@ class Dc {
|
|
|
1641
1641
|
loadAnimation(l) {
|
|
1642
1642
|
const a = this.json.animations[l], d = [], m = [], h = [], f = [], v = [];
|
|
1643
1643
|
for (let w = 0, C = a.channels.length; w < C; w++) {
|
|
1644
|
-
const
|
|
1644
|
+
const _ = a.channels[w], P = a.samplers[_.sampler], S = _.target, L = S.node, N = a.parameters !== void 0 ? a.parameters[P.input] : P.input, A = a.parameters !== void 0 ? a.parameters[P.output] : P.output;
|
|
1645
1645
|
d.push(this.getDependency("node", L)), m.push(this.getDependency("accessor", N)), h.push(this.getDependency("accessor", A)), f.push(P), v.push(S);
|
|
1646
1646
|
}
|
|
1647
1647
|
return Promise.all([Promise.all(d), Promise.all(m), Promise.all(h), Promise.all(f), Promise.all(v)]).then(function(w) {
|
|
1648
|
-
const C = w[0],
|
|
1648
|
+
const C = w[0], _ = w[1], P = w[2], S = w[3], L = w[4], N = [];
|
|
1649
1649
|
for (let I = 0, G = C.length; I < G; I++) {
|
|
1650
|
-
const O = C[I], ie =
|
|
1650
|
+
const O = C[I], ie = _[I], ue = P[I], te = S[I], Y = L[I];
|
|
1651
1651
|
if (O === void 0)
|
|
1652
1652
|
continue;
|
|
1653
1653
|
O.updateMatrix();
|
|
@@ -1693,7 +1693,7 @@ class Dc {
|
|
|
1693
1693
|
return d.mesh === void 0 ? null : a.getDependency("mesh", d.mesh).then(function(m) {
|
|
1694
1694
|
const h = a._getNodeRef(a.meshCache, d.mesh, m);
|
|
1695
1695
|
return d.weights !== void 0 && h.traverse(function(f) {
|
|
1696
|
-
if (
|
|
1696
|
+
if (f.isMesh)
|
|
1697
1697
|
for (let v = 0, w = d.weights.length; v < w; v++)
|
|
1698
1698
|
f.morphTargetInfluences[v] = d.weights[v];
|
|
1699
1699
|
}), h;
|
|
@@ -1733,13 +1733,13 @@ class Dc {
|
|
|
1733
1733
|
v.push(fo(f[w], h, u, m));
|
|
1734
1734
|
return Promise.all(v).then(function() {
|
|
1735
1735
|
const w = (C) => {
|
|
1736
|
-
const
|
|
1736
|
+
const _ = /* @__PURE__ */ new Map();
|
|
1737
1737
|
for (const [P, S] of m.associations)
|
|
1738
|
-
(P instanceof $i || P instanceof Zr) &&
|
|
1738
|
+
(P instanceof $i || P instanceof Zr) && _.set(P, S);
|
|
1739
1739
|
return C.traverse((P) => {
|
|
1740
1740
|
const S = m.associations.get(P);
|
|
1741
|
-
S != null &&
|
|
1742
|
-
}),
|
|
1741
|
+
S != null && _.set(P, S);
|
|
1742
|
+
}), _;
|
|
1743
1743
|
};
|
|
1744
1744
|
return m.associations = w(h), h;
|
|
1745
1745
|
});
|
|
@@ -1762,14 +1762,14 @@ function fo(k, l, u, a) {
|
|
|
1762
1762
|
if (!v.isMesh)
|
|
1763
1763
|
return;
|
|
1764
1764
|
const w = [], C = [];
|
|
1765
|
-
for (let
|
|
1766
|
-
const S = f[
|
|
1765
|
+
for (let _ = 0, P = f.length; _ < P; _++) {
|
|
1766
|
+
const S = f[_];
|
|
1767
1767
|
if (S) {
|
|
1768
1768
|
w.push(S);
|
|
1769
1769
|
const L = new uo();
|
|
1770
|
-
h.inverseBindMatrices !== void 0 && L.fromArray(h.inverseBindMatrices.array,
|
|
1770
|
+
h.inverseBindMatrices !== void 0 && L.fromArray(h.inverseBindMatrices.array, _ * 16), C.push(L);
|
|
1771
1771
|
} else
|
|
1772
|
-
console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', h.joints[
|
|
1772
|
+
console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', h.joints[_]);
|
|
1773
1773
|
}
|
|
1774
1774
|
v.bind(new Ul(w, C), v.matrixWorld);
|
|
1775
1775
|
}), m;
|
|
@@ -1806,9 +1806,9 @@ function Fc(k, l, u) {
|
|
|
1806
1806
|
if (m !== void 0) {
|
|
1807
1807
|
const f = new Oe(), v = new Oe();
|
|
1808
1808
|
for (let w = 0, C = m.length; w < C; w++) {
|
|
1809
|
-
const
|
|
1810
|
-
if (
|
|
1811
|
-
const P = u.json.accessors[
|
|
1809
|
+
const _ = m[w];
|
|
1810
|
+
if (_.POSITION !== void 0) {
|
|
1811
|
+
const P = u.json.accessors[_.POSITION], S = P.min, L = P.max;
|
|
1812
1812
|
if (S !== void 0 && L !== void 0) {
|
|
1813
1813
|
if (v.setX(Math.max(Math.abs(S[0]), Math.abs(L[0]))), v.setY(Math.max(Math.abs(S[1]), Math.abs(L[1]))), v.setZ(Math.max(Math.abs(S[2]), Math.abs(L[2]))), P.normalized) {
|
|
1814
1814
|
const N = rr(ss[P.componentType]);
|
|
@@ -1879,13 +1879,13 @@ class jc extends sc {
|
|
|
1879
1879
|
size: v = 100,
|
|
1880
1880
|
lineHeight: w = 1,
|
|
1881
1881
|
letterSpacing: C = 0,
|
|
1882
|
-
...
|
|
1882
|
+
..._
|
|
1883
1883
|
} = u, P = h.generateShapes(l, v, {
|
|
1884
1884
|
lineHeight: w,
|
|
1885
1885
|
letterSpacing: C
|
|
1886
1886
|
});
|
|
1887
1887
|
super(P, {
|
|
1888
|
-
...
|
|
1888
|
+
..._,
|
|
1889
1889
|
bevelEnabled: a,
|
|
1890
1890
|
bevelSize: d,
|
|
1891
1891
|
bevelThickness: m,
|
|
@@ -1931,12 +1931,12 @@ function zc(k, l, u, a) {
|
|
|
1931
1931
|
const d = Array.from(k), m = l / u.resolution, h = (u.boundingBox.yMax - u.boundingBox.yMin + u.underlineThickness) * m, f = [];
|
|
1932
1932
|
let v = 0, w = 0;
|
|
1933
1933
|
for (let C = 0; C < d.length; C++) {
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1934
|
+
const _ = d[C];
|
|
1935
|
+
if (_ === `
|
|
1936
1936
|
`)
|
|
1937
1937
|
v = 0, w -= h * a.lineHeight;
|
|
1938
1938
|
else {
|
|
1939
|
-
const P = Uc(
|
|
1939
|
+
const P = Uc(_, m, v, w, u);
|
|
1940
1940
|
P && (v += P.offsetX + a.letterSpacing, f.push(P.path));
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
@@ -1949,7 +1949,7 @@ function Uc(k, l, u, a, d) {
|
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
1951
1951
|
const h = new ic();
|
|
1952
|
-
let f, v, w, C,
|
|
1952
|
+
let f, v, w, C, _, P, S, L;
|
|
1953
1953
|
if (m.o) {
|
|
1954
1954
|
const N = m._cachedOutline || (m._cachedOutline = m.o.split(" "));
|
|
1955
1955
|
for (let A = 0, I = N.length; A < I; )
|
|
@@ -1961,10 +1961,10 @@ function Uc(k, l, u, a, d) {
|
|
|
1961
1961
|
f = parseInt(N[A++]) * l + u, v = parseInt(N[A++]) * l + a, h.lineTo(f, v);
|
|
1962
1962
|
break;
|
|
1963
1963
|
case "q":
|
|
1964
|
-
w = parseInt(N[A++]) * l + u, C = parseInt(N[A++]) * l + a,
|
|
1964
|
+
w = parseInt(N[A++]) * l + u, C = parseInt(N[A++]) * l + a, _ = parseInt(N[A++]) * l + u, P = parseInt(N[A++]) * l + a, h.quadraticCurveTo(_, P, w, C);
|
|
1965
1965
|
break;
|
|
1966
1966
|
case "b":
|
|
1967
|
-
w = parseInt(N[A++]) * l + u, C = parseInt(N[A++]) * l + a,
|
|
1967
|
+
w = parseInt(N[A++]) * l + u, C = parseInt(N[A++]) * l + a, _ = parseInt(N[A++]) * l + u, P = parseInt(N[A++]) * l + a, S = parseInt(N[A++]) * l + u, L = parseInt(N[A++]) * l + a, h.bezierCurveTo(_, P, S, L, w, C);
|
|
1968
1968
|
break;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
@@ -2129,9 +2129,9 @@ function Gc() {
|
|
|
2129
2129
|
switch (f.type) {
|
|
2130
2130
|
case "init":
|
|
2131
2131
|
k = f.decoderConfig, l = new Promise(function(C) {
|
|
2132
|
-
k.onModuleLoaded = function(
|
|
2132
|
+
k.onModuleLoaded = function(_) {
|
|
2133
2133
|
C({
|
|
2134
|
-
draco:
|
|
2134
|
+
draco: _
|
|
2135
2135
|
});
|
|
2136
2136
|
}, DracoDecoderModule(k);
|
|
2137
2137
|
});
|
|
@@ -2139,10 +2139,10 @@ function Gc() {
|
|
|
2139
2139
|
case "decode":
|
|
2140
2140
|
const v = f.buffer, w = f.taskConfig;
|
|
2141
2141
|
l.then((C) => {
|
|
2142
|
-
const
|
|
2142
|
+
const _ = C.draco, P = new _.Decoder(), S = new _.DecoderBuffer();
|
|
2143
2143
|
S.Init(new Int8Array(v), v.byteLength);
|
|
2144
2144
|
try {
|
|
2145
|
-
const L = u(
|
|
2145
|
+
const L = u(_, P, S, w), N = L.attributes.map((A) => A.array.buffer);
|
|
2146
2146
|
L.index && N.push(L.index.array.buffer), self.postMessage({
|
|
2147
2147
|
type: "decode",
|
|
2148
2148
|
id: f.id,
|
|
@@ -2155,14 +2155,14 @@ function Gc() {
|
|
|
2155
2155
|
error: L.message
|
|
2156
2156
|
});
|
|
2157
2157
|
} finally {
|
|
2158
|
-
|
|
2158
|
+
_.destroy(S), _.destroy(P);
|
|
2159
2159
|
}
|
|
2160
2160
|
});
|
|
2161
2161
|
break;
|
|
2162
2162
|
}
|
|
2163
2163
|
};
|
|
2164
2164
|
function u(h, f, v, w) {
|
|
2165
|
-
const C = w.attributeIDs,
|
|
2165
|
+
const C = w.attributeIDs, _ = w.attributeTypes;
|
|
2166
2166
|
let P, S;
|
|
2167
2167
|
const L = f.GetEncodedGeometryType(v);
|
|
2168
2168
|
if (L === h.TRIANGULAR_MESH)
|
|
@@ -2178,7 +2178,7 @@ function Gc() {
|
|
|
2178
2178
|
attributes: []
|
|
2179
2179
|
};
|
|
2180
2180
|
for (const A in C) {
|
|
2181
|
-
const I = self[
|
|
2181
|
+
const I = self[_[A]];
|
|
2182
2182
|
let G, O;
|
|
2183
2183
|
if (w.useUniqueIDs)
|
|
2184
2184
|
O = C[A], G = f.GetAttributeByUniqueId(P, O);
|
|
@@ -2192,17 +2192,17 @@ function Gc() {
|
|
|
2192
2192
|
return L === h.TRIANGULAR_MESH && (N.index = a(h, f, P)), h.destroy(P), N;
|
|
2193
2193
|
}
|
|
2194
2194
|
function a(h, f, v) {
|
|
2195
|
-
const C = v.num_faces() * 3,
|
|
2196
|
-
f.GetTrianglesUInt32Array(v,
|
|
2195
|
+
const C = v.num_faces() * 3, _ = C * 4, P = h._malloc(_);
|
|
2196
|
+
f.GetTrianglesUInt32Array(v, _, P);
|
|
2197
2197
|
const S = new Uint32Array(h.HEAPF32.buffer, P, C).slice();
|
|
2198
2198
|
return h._free(P), {
|
|
2199
2199
|
array: S,
|
|
2200
2200
|
itemSize: 1
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
2203
|
-
function d(h, f, v, w, C,
|
|
2204
|
-
const P =
|
|
2205
|
-
f.GetAttributeDataArrayForAllPoints(v,
|
|
2203
|
+
function d(h, f, v, w, C, _) {
|
|
2204
|
+
const P = _.num_components(), L = v.num_points() * P, N = L * C.BYTES_PER_ELEMENT, A = m(h, C), I = h._malloc(N);
|
|
2205
|
+
f.GetAttributeDataArrayForAllPoints(v, _, A, N, I);
|
|
2206
2206
|
const G = new C(h.HEAPF32.buffer, I, L).slice();
|
|
2207
2207
|
return h._free(I), {
|
|
2208
2208
|
name: w,
|
|
@@ -2229,7 +2229,7 @@ function Gc() {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function go() {
|
|
2233
2233
|
return {
|
|
2234
2234
|
extend: Vs("extend") || (() => {
|
|
2235
2235
|
console.warn("No extend function provided");
|
|
@@ -2246,7 +2246,7 @@ const Jc = /* @__PURE__ */ ar({
|
|
|
2246
2246
|
enableDamping: { type: Boolean }
|
|
2247
2247
|
},
|
|
2248
2248
|
setup(k) {
|
|
2249
|
-
const l = dl(null), u = Vs("camera"), a = Vs("renderer"), { extend: d } =
|
|
2249
|
+
const l = dl(null), u = Vs("camera"), a = Vs("renderer"), { extend: d } = go();
|
|
2250
2250
|
return d({ OrbitControls: lc }), (m, h) => {
|
|
2251
2251
|
var v;
|
|
2252
2252
|
const f = Zi("TresOrbitControls");
|
|
@@ -2261,7 +2261,6 @@ const Jc = /* @__PURE__ */ ar({
|
|
|
2261
2261
|
}
|
|
2262
2262
|
});
|
|
2263
2263
|
var or = { exports: {} };
|
|
2264
|
-
/*! Tweakpane 3.1.0 (c) 2016 cocopon, licensed under the MIT license. */
|
|
2265
2264
|
(function(k, l) {
|
|
2266
2265
|
(function(u, a) {
|
|
2267
2266
|
a(l);
|
|
@@ -2269,7 +2268,7 @@ var or = { exports: {} };
|
|
|
2269
2268
|
class a {
|
|
2270
2269
|
constructor(e) {
|
|
2271
2270
|
const [t, i] = e.split("-"), p = t.split(".");
|
|
2272
|
-
this.major = parseInt(p[0], 10), this.minor = parseInt(p[1], 10), this.patch = parseInt(p[2], 10), this.prerelease = i
|
|
2271
|
+
this.major = parseInt(p[0], 10), this.minor = parseInt(p[1], 10), this.patch = parseInt(p[2], 10), this.prerelease = i ?? null;
|
|
2273
2272
|
}
|
|
2274
2273
|
toString() {
|
|
2275
2274
|
const e = [this.major, this.minor, this.patch].join(".");
|
|
@@ -2306,7 +2305,7 @@ var or = { exports: {} };
|
|
|
2306
2305
|
}
|
|
2307
2306
|
class h extends m {
|
|
2308
2307
|
constructor(e, t, i, p) {
|
|
2309
|
-
super(e), this.value = t, this.presetKey = i, this.last = p
|
|
2308
|
+
super(e), this.value = t, this.presetKey = i, this.last = p ?? !0;
|
|
2310
2309
|
}
|
|
2311
2310
|
}
|
|
2312
2311
|
class f extends m {
|
|
@@ -2327,7 +2326,7 @@ var or = { exports: {} };
|
|
|
2327
2326
|
function C(n) {
|
|
2328
2327
|
return n;
|
|
2329
2328
|
}
|
|
2330
|
-
function
|
|
2329
|
+
function _(n) {
|
|
2331
2330
|
return n == null;
|
|
2332
2331
|
}
|
|
2333
2332
|
function P(n, e) {
|
|
@@ -2374,7 +2373,7 @@ var or = { exports: {} };
|
|
|
2374
2373
|
}
|
|
2375
2374
|
class N {
|
|
2376
2375
|
constructor(e, t, i) {
|
|
2377
|
-
this.obj_ = e, this.key_ = t, this.presetKey_ = i
|
|
2376
|
+
this.obj_ = e, this.key_ = t, this.presetKey_ = i ?? t;
|
|
2378
2377
|
}
|
|
2379
2378
|
static isBindable(e) {
|
|
2380
2379
|
return !(e === null || typeof e != "object");
|
|
@@ -2437,7 +2436,7 @@ var or = { exports: {} };
|
|
|
2437
2436
|
}
|
|
2438
2437
|
emit(e, t) {
|
|
2439
2438
|
const i = this.observers_[e];
|
|
2440
|
-
|
|
2439
|
+
i && i.forEach((p) => {
|
|
2441
2440
|
p.handler(t);
|
|
2442
2441
|
});
|
|
2443
2442
|
}
|
|
@@ -2475,7 +2474,7 @@ var or = { exports: {} };
|
|
|
2475
2474
|
}
|
|
2476
2475
|
function ne(n, e) {
|
|
2477
2476
|
te(n, (t) => {
|
|
2478
|
-
e.textContent = t
|
|
2477
|
+
e.textContent = t ?? "";
|
|
2479
2478
|
});
|
|
2480
2479
|
}
|
|
2481
2480
|
const be = O("btn");
|
|
@@ -2504,7 +2503,7 @@ var or = { exports: {} };
|
|
|
2504
2503
|
class pe {
|
|
2505
2504
|
constructor(e, t) {
|
|
2506
2505
|
var i;
|
|
2507
|
-
this.constraint_ = t == null ? void 0 : t.constraint, this.equals_ = (i = t == null ? void 0 : t.equals) !== null && i !== void 0 ? i : (p,
|
|
2506
|
+
this.constraint_ = t == null ? void 0 : t.constraint, this.equals_ = (i = t == null ? void 0 : t.equals) !== null && i !== void 0 ? i : (p, g) => p === g, this.emitter = new I(), this.rawValue_ = e;
|
|
2508
2507
|
}
|
|
2509
2508
|
get constraint() {
|
|
2510
2509
|
return this.constraint_;
|
|
@@ -2519,11 +2518,11 @@ var or = { exports: {} };
|
|
|
2519
2518
|
});
|
|
2520
2519
|
}
|
|
2521
2520
|
setRawValue(e, t) {
|
|
2522
|
-
const i = t
|
|
2521
|
+
const i = t ?? {
|
|
2523
2522
|
forceEmit: !1,
|
|
2524
2523
|
last: !0
|
|
2525
2524
|
}, p = this.constraint_ ? this.constraint_.constrain(e) : e;
|
|
2526
|
-
|
|
2525
|
+
this.equals_(this.rawValue_, p) && !i.forceEmit || (this.emitter.emit("beforechange", {
|
|
2527
2526
|
sender: this
|
|
2528
2527
|
}), this.rawValue_ = p, this.emitter.emit("change", {
|
|
2529
2528
|
options: i,
|
|
@@ -2546,7 +2545,7 @@ var or = { exports: {} };
|
|
|
2546
2545
|
});
|
|
2547
2546
|
}
|
|
2548
2547
|
setRawValue(e, t) {
|
|
2549
|
-
const i = t
|
|
2548
|
+
const i = t ?? {
|
|
2550
2549
|
forceEmit: !1,
|
|
2551
2550
|
last: !0
|
|
2552
2551
|
};
|
|
@@ -2594,11 +2593,11 @@ var or = { exports: {} };
|
|
|
2594
2593
|
}
|
|
2595
2594
|
}
|
|
2596
2595
|
function pt(n, e) {
|
|
2597
|
-
const i = Object.keys(e).reduce((p,
|
|
2596
|
+
const i = Object.keys(e).reduce((p, g) => {
|
|
2598
2597
|
if (p === void 0)
|
|
2599
2598
|
return;
|
|
2600
|
-
const y = e[
|
|
2601
|
-
return M.succeeded ? Object.assign(Object.assign({}, p), { [
|
|
2599
|
+
const y = e[g], M = y(n[g]);
|
|
2600
|
+
return M.succeeded ? Object.assign(Object.assign({}, p), { [g]: M.value }) : void 0;
|
|
2602
2601
|
}, {});
|
|
2603
2602
|
return i;
|
|
2604
2603
|
}
|
|
@@ -2614,7 +2613,7 @@ var or = { exports: {} };
|
|
|
2614
2613
|
function Jt(n) {
|
|
2615
2614
|
return n === null ? !1 : typeof n == "object";
|
|
2616
2615
|
}
|
|
2617
|
-
function
|
|
2616
|
+
function ge(n) {
|
|
2618
2617
|
return (e) => (t) => {
|
|
2619
2618
|
if (!e && t === void 0)
|
|
2620
2619
|
return {
|
|
@@ -2638,19 +2637,19 @@ var or = { exports: {} };
|
|
|
2638
2637
|
}
|
|
2639
2638
|
function St(n) {
|
|
2640
2639
|
return {
|
|
2641
|
-
custom: (e) =>
|
|
2642
|
-
boolean:
|
|
2643
|
-
number:
|
|
2644
|
-
string:
|
|
2645
|
-
function:
|
|
2646
|
-
constant: (e) =>
|
|
2647
|
-
raw:
|
|
2648
|
-
object: (e) =>
|
|
2649
|
-
if (
|
|
2640
|
+
custom: (e) => ge(e)(n),
|
|
2641
|
+
boolean: ge((e) => typeof e == "boolean" ? e : void 0)(n),
|
|
2642
|
+
number: ge((e) => typeof e == "number" ? e : void 0)(n),
|
|
2643
|
+
string: ge((e) => typeof e == "string" ? e : void 0)(n),
|
|
2644
|
+
function: ge((e) => typeof e == "function" ? e : void 0)(n),
|
|
2645
|
+
constant: (e) => ge((t) => t === e ? e : void 0)(n),
|
|
2646
|
+
raw: ge((e) => e)(n),
|
|
2647
|
+
object: (e) => ge((t) => {
|
|
2648
|
+
if (Jt(t))
|
|
2650
2649
|
return pt(t, e);
|
|
2651
2650
|
})(n),
|
|
2652
|
-
array: (e) =>
|
|
2653
|
-
if (
|
|
2651
|
+
array: (e) => ge((t) => {
|
|
2652
|
+
if (Array.isArray(t))
|
|
2654
2653
|
return Qt(t, e);
|
|
2655
2654
|
})(n)
|
|
2656
2655
|
};
|
|
@@ -2705,14 +2704,16 @@ var or = { exports: {} };
|
|
|
2705
2704
|
return n.ontouchstart !== void 0;
|
|
2706
2705
|
}
|
|
2707
2706
|
function dt() {
|
|
2708
|
-
return
|
|
2707
|
+
return globalThis;
|
|
2709
2708
|
}
|
|
2710
2709
|
function yn() {
|
|
2711
2710
|
return dt().document;
|
|
2712
2711
|
}
|
|
2713
2712
|
function Cn(n) {
|
|
2714
2713
|
const e = n.ownerDocument.defaultView;
|
|
2715
|
-
return e && "document" in e ? n.getContext("2d"
|
|
2714
|
+
return e && "document" in e ? n.getContext("2d", {
|
|
2715
|
+
willReadFrequently: !0
|
|
2716
|
+
}) : null;
|
|
2716
2717
|
}
|
|
2717
2718
|
const Rt = {
|
|
2718
2719
|
check: '<path d="M2 8l4 4l8 -8"/>',
|
|
@@ -2744,16 +2745,16 @@ var or = { exports: {} };
|
|
|
2744
2745
|
function En(n, e) {
|
|
2745
2746
|
const t = n.createDocumentFragment();
|
|
2746
2747
|
return e.split(`
|
|
2747
|
-
`).map((p) => n.createTextNode(p)).forEach((p,
|
|
2748
|
-
|
|
2748
|
+
`).map((p) => n.createTextNode(p)).forEach((p, g) => {
|
|
2749
|
+
g > 0 && t.appendChild(n.createElement("br")), t.appendChild(p);
|
|
2749
2750
|
}), t;
|
|
2750
2751
|
}
|
|
2751
2752
|
class Nt {
|
|
2752
2753
|
constructor(e, t) {
|
|
2753
2754
|
this.element = e.createElement("div"), this.element.classList.add(Ye()), t.viewProps.bindClassModifiers(this.element);
|
|
2754
2755
|
const i = e.createElement("div");
|
|
2755
|
-
i.classList.add(Ye("l")), Y(t.props, "label", (
|
|
2756
|
-
g
|
|
2756
|
+
i.classList.add(Ye("l")), Y(t.props, "label", (g) => {
|
|
2757
|
+
_(g) ? this.element.classList.add(Ye(void 0, "nol")) : (this.element.classList.remove(Ye(void 0, "nol")), nn(i), i.appendChild(En(e, g)));
|
|
2757
2758
|
}), this.element.appendChild(i), this.labelElement = i;
|
|
2758
2759
|
const p = e.createElement("div");
|
|
2759
2760
|
p.classList.add(Ye("v")), this.element.appendChild(p), this.valueElement = p;
|
|
@@ -2831,7 +2832,7 @@ var or = { exports: {} };
|
|
|
2831
2832
|
if (!this.styleExpanded)
|
|
2832
2833
|
return "0";
|
|
2833
2834
|
const e = this.get("expandedHeight");
|
|
2834
|
-
return this.get("shouldFixHeight") && !
|
|
2835
|
+
return this.get("shouldFixHeight") && !_(e) ? `${e}px` : "auto";
|
|
2835
2836
|
}
|
|
2836
2837
|
bindExpandedClass(e, t) {
|
|
2837
2838
|
const i = () => {
|
|
@@ -2854,7 +2855,7 @@ var or = { exports: {} };
|
|
|
2854
2855
|
}
|
|
2855
2856
|
function B(n, e) {
|
|
2856
2857
|
n.value("expanded").emitter.on("beforechange", () => {
|
|
2857
|
-
n.set("completed", !1),
|
|
2858
|
+
n.set("completed", !1), _(n.get("expandedHeight")) && n.set("expandedHeight", E(n, e)), n.set("shouldFixHeight", !0), Je(e);
|
|
2858
2859
|
}), n.emitter.on("change", () => {
|
|
2859
2860
|
V(n, e);
|
|
2860
2861
|
}), V(n, e), e.addEventListener("transitionend", (t) => {
|
|
@@ -2873,13 +2874,13 @@ var or = { exports: {} };
|
|
|
2873
2874
|
return n.addBlade(Object.assign(Object.assign({}, e), { view: "folder" }));
|
|
2874
2875
|
}
|
|
2875
2876
|
function mt(n, e) {
|
|
2876
|
-
const t = e
|
|
2877
|
+
const t = e ?? {};
|
|
2877
2878
|
return n.addBlade(Object.assign(Object.assign({}, t), { view: "separator" }));
|
|
2878
2879
|
}
|
|
2879
2880
|
function sn(n, e) {
|
|
2880
2881
|
return n.addBlade(Object.assign(Object.assign({}, e), { view: "tab" }));
|
|
2881
2882
|
}
|
|
2882
|
-
class
|
|
2883
|
+
class _e {
|
|
2883
2884
|
constructor(e) {
|
|
2884
2885
|
this.emitter = new I(), this.items_ = [], this.cache_ = /* @__PURE__ */ new Set(), this.onSubListAdd_ = this.onSubListAdd_.bind(this), this.onSubListRemove_ = this.onSubListRemove_.bind(this), this.extract_ = e;
|
|
2885
2886
|
}
|
|
@@ -2904,8 +2905,8 @@ var or = { exports: {} };
|
|
|
2904
2905
|
const i = t !== void 0 ? t : this.items_.length;
|
|
2905
2906
|
this.items_.splice(i, 0, e), this.cache_.add(e);
|
|
2906
2907
|
const p = this.extract_(e);
|
|
2907
|
-
p && (p.emitter.on("add", this.onSubListAdd_), p.emitter.on("remove", this.onSubListRemove_), p.allItems().forEach((
|
|
2908
|
-
this.cache_.add(
|
|
2908
|
+
p && (p.emitter.on("add", this.onSubListAdd_), p.emitter.on("remove", this.onSubListRemove_), p.allItems().forEach((g) => {
|
|
2909
|
+
this.cache_.add(g);
|
|
2909
2910
|
})), this.emitter.emit("add", {
|
|
2910
2911
|
index: i,
|
|
2911
2912
|
item: e,
|
|
@@ -3023,7 +3024,7 @@ var or = { exports: {} };
|
|
|
3023
3024
|
}
|
|
3024
3025
|
class Dt extends d {
|
|
3025
3026
|
constructor(e, t) {
|
|
3026
|
-
super(e), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.onRackInputChange_ = this.onRackInputChange_.bind(this), this.onRackMonitorUpdate_ = this.onRackMonitorUpdate_.bind(this), this.emitter_ = new I(), this.apiSet_ = new
|
|
3027
|
+
super(e), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.onRackInputChange_ = this.onRackInputChange_.bind(this), this.onRackMonitorUpdate_ = this.onRackMonitorUpdate_.bind(this), this.emitter_ = new I(), this.apiSet_ = new _e(It), this.pool_ = t;
|
|
3027
3028
|
const i = this.controller_.rack;
|
|
3028
3029
|
i.emitter.on("add", this.onRackAdd_), i.emitter.on("remove", this.onRackRemove_), i.emitter.on("inputchange", this.onRackInputChange_), i.emitter.on("monitorupdate", this.onRackMonitorUpdate_), i.children.forEach((p) => {
|
|
3029
3030
|
this.setUpApi_(p);
|
|
@@ -3033,11 +3034,11 @@ var or = { exports: {} };
|
|
|
3033
3034
|
return this.controller_.rack.children.map((e) => Ot(this.apiSet_, e));
|
|
3034
3035
|
}
|
|
3035
3036
|
addInput(e, t, i) {
|
|
3036
|
-
const p = i
|
|
3037
|
+
const p = i ?? {}, g = this.controller_.view.element.ownerDocument, y = this.pool_.createInput(g, rn(e, t, p.presetKey), p), M = new we(y);
|
|
3037
3038
|
return this.add(M, p.index);
|
|
3038
3039
|
}
|
|
3039
3040
|
addMonitor(e, t, i) {
|
|
3040
|
-
const p = i
|
|
3041
|
+
const p = i ?? {}, g = this.controller_.view.element.ownerDocument, y = this.pool_.createMonitor(g, rn(e, t), p), M = new nt(y);
|
|
3041
3042
|
return this.add(M, p.index);
|
|
3042
3043
|
}
|
|
3043
3044
|
addFolder(e) {
|
|
@@ -3219,7 +3220,7 @@ var or = { exports: {} };
|
|
|
3219
3220
|
class Bs {
|
|
3220
3221
|
constructor(e) {
|
|
3221
3222
|
var t;
|
|
3222
|
-
this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildInputChange_ = this.onChildInputChange_.bind(this), this.onChildMonitorUpdate_ = this.onChildMonitorUpdate_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onDescendantLayout_ = this.onDescendantLayout_.bind(this), this.onDescendantInputChange_ = this.onDescendantInputChange_.bind(this), this.onDescendantMonitorUpdate_ = this.onDescendantMonitorUpdate_.bind(this), this.emitter = new I(), this.blade_ = e
|
|
3223
|
+
this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildInputChange_ = this.onChildInputChange_.bind(this), this.onChildMonitorUpdate_ = this.onChildMonitorUpdate_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onDescendantLayout_ = this.onDescendantLayout_.bind(this), this.onDescendantInputChange_ = this.onDescendantInputChange_.bind(this), this.onDescendantMonitorUpdate_ = this.onDescendantMonitorUpdate_.bind(this), this.emitter = new I(), this.blade_ = e ?? null, (t = this.blade_) === null || t === void 0 || t.value("positions").emitter.on("change", this.onBladePositionsChange_), this.bcSet_ = new _e(js), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
|
|
3223
3224
|
}
|
|
3224
3225
|
get children() {
|
|
3225
3226
|
return this.bcSet_.items;
|
|
@@ -3253,8 +3254,8 @@ var or = { exports: {} };
|
|
|
3253
3254
|
else {
|
|
3254
3255
|
const p = Tn(i);
|
|
3255
3256
|
if (p) {
|
|
3256
|
-
const
|
|
3257
|
-
|
|
3257
|
+
const g = p.emitter;
|
|
3258
|
+
g.on("layout", this.onDescendantLayout_), g.on("inputchange", this.onDescendantInputChange_), g.on("monitorupdate", this.onDescendantMonitorUpdate_);
|
|
3258
3259
|
}
|
|
3259
3260
|
}
|
|
3260
3261
|
}
|
|
@@ -3277,16 +3278,16 @@ var or = { exports: {} };
|
|
|
3277
3278
|
else {
|
|
3278
3279
|
const p = Tn(i);
|
|
3279
3280
|
if (p) {
|
|
3280
|
-
const
|
|
3281
|
-
|
|
3281
|
+
const g = p.emitter;
|
|
3282
|
+
g.off("layout", this.onDescendantLayout_), g.off("inputchange", this.onDescendantInputChange_), g.off("monitorupdate", this.onDescendantMonitorUpdate_);
|
|
3282
3283
|
}
|
|
3283
3284
|
}
|
|
3284
3285
|
}
|
|
3285
3286
|
updatePositions_() {
|
|
3286
3287
|
const e = this.bcSet_.items.filter((p) => !p.viewProps.get("hidden")), t = e[0], i = e[e.length - 1];
|
|
3287
3288
|
this.bcSet_.items.forEach((p) => {
|
|
3288
|
-
const
|
|
3289
|
-
p === t && (
|
|
3289
|
+
const g = [];
|
|
3290
|
+
p === t && (g.push("first"), (!this.blade_ || this.blade_.get("positions").includes("veryfirst")) && g.push("veryfirst")), p === i && (g.push("last"), (!this.blade_ || this.blade_.get("positions").includes("verylast")) && g.push("verylast")), p.blade.set("positions", g);
|
|
3290
3291
|
});
|
|
3291
3292
|
}
|
|
3292
3293
|
onChildPositionsChange_() {
|
|
@@ -3307,7 +3308,7 @@ var or = { exports: {} };
|
|
|
3307
3308
|
onChildInputChange_(e) {
|
|
3308
3309
|
const t = Os(this.find(Te), e.sender);
|
|
3309
3310
|
if (!t)
|
|
3310
|
-
throw L.
|
|
3311
|
+
throw L.alreadyDisposed();
|
|
3311
3312
|
this.emitter.emit("inputchange", {
|
|
3312
3313
|
bladeController: t,
|
|
3313
3314
|
options: e.options,
|
|
@@ -3317,7 +3318,7 @@ var or = { exports: {} };
|
|
|
3317
3318
|
onChildMonitorUpdate_(e) {
|
|
3318
3319
|
const t = Ds(this.find(Xe), e.sender);
|
|
3319
3320
|
if (!t)
|
|
3320
|
-
throw L.
|
|
3321
|
+
throw L.alreadyDisposed();
|
|
3321
3322
|
this.emitter.emit("monitorupdate", {
|
|
3322
3323
|
bladeController: t,
|
|
3323
3324
|
sender: this
|
|
@@ -3326,7 +3327,7 @@ var or = { exports: {} };
|
|
|
3326
3327
|
onChildValueChange_(e) {
|
|
3327
3328
|
const t = Fs(this.find(Pe), e.sender);
|
|
3328
3329
|
if (!t)
|
|
3329
|
-
throw L.
|
|
3330
|
+
throw L.alreadyDisposed();
|
|
3330
3331
|
this.emitter.emit("inputchange", {
|
|
3331
3332
|
bladeController: t,
|
|
3332
3333
|
options: e.options,
|
|
@@ -3368,10 +3369,10 @@ var or = { exports: {} };
|
|
|
3368
3369
|
});
|
|
3369
3370
|
}
|
|
3370
3371
|
onRackAdd_(e) {
|
|
3371
|
-
|
|
3372
|
+
e.isRoot && tt(this.view.element, e.bladeController.view.element, e.index);
|
|
3372
3373
|
}
|
|
3373
3374
|
onRackRemove_(e) {
|
|
3374
|
-
|
|
3375
|
+
e.isRoot && qe(e.bladeController.view.element);
|
|
3375
3376
|
}
|
|
3376
3377
|
}
|
|
3377
3378
|
const is = O("cnt");
|
|
@@ -3381,10 +3382,10 @@ var or = { exports: {} };
|
|
|
3381
3382
|
this.className_ = O((i = t.viewName) !== null && i !== void 0 ? i : "fld"), this.element = e.createElement("div"), this.element.classList.add(this.className_(), is()), t.viewProps.bindClassModifiers(this.element), this.foldable_ = t.foldable, this.foldable_.bindExpandedClass(this.element, this.className_(void 0, "expanded")), Y(this.foldable_, "completed", J(this.element, this.className_(void 0, "cpl")));
|
|
3382
3383
|
const p = e.createElement("button");
|
|
3383
3384
|
p.classList.add(this.className_("b")), Y(t.props, "title", (F) => {
|
|
3384
|
-
|
|
3385
|
+
_(F) ? this.element.classList.add(this.className_(void 0, "not")) : this.element.classList.remove(this.className_(void 0, "not"));
|
|
3385
3386
|
}), t.viewProps.bindDisabled(p), this.element.appendChild(p), this.buttonElement = p;
|
|
3386
|
-
const
|
|
3387
|
-
|
|
3387
|
+
const g = e.createElement("div");
|
|
3388
|
+
g.classList.add(this.className_("t")), ne(t.props.value("title"), g), this.buttonElement.appendChild(g), this.titleElement = g;
|
|
3388
3389
|
const y = e.createElement("div");
|
|
3389
3390
|
y.classList.add(this.className_("m")), this.buttonElement.appendChild(y);
|
|
3390
3391
|
const M = t.containerElement;
|
|
@@ -3394,13 +3395,13 @@ var or = { exports: {} };
|
|
|
3394
3395
|
class Mn extends kn {
|
|
3395
3396
|
constructor(e, t) {
|
|
3396
3397
|
var i;
|
|
3397
|
-
const p = Fe.create((i = t.expanded) !== null && i !== void 0 ? i : !0),
|
|
3398
|
+
const p = Fe.create((i = t.expanded) !== null && i !== void 0 ? i : !0), g = new Ft(e, {
|
|
3398
3399
|
blade: t.blade,
|
|
3399
3400
|
root: t.root,
|
|
3400
3401
|
viewProps: t.viewProps
|
|
3401
3402
|
});
|
|
3402
|
-
super(Object.assign(Object.assign({}, t), { rackController:
|
|
3403
|
-
containerElement:
|
|
3403
|
+
super(Object.assign(Object.assign({}, t), { rackController: g, view: new zs(e, {
|
|
3404
|
+
containerElement: g.view.element,
|
|
3404
3405
|
foldable: p,
|
|
3405
3406
|
props: t.props,
|
|
3406
3407
|
viewName: t.root ? "rot" : void 0,
|
|
@@ -3497,11 +3498,11 @@ var or = { exports: {} };
|
|
|
3497
3498
|
}
|
|
3498
3499
|
static create(e) {
|
|
3499
3500
|
var t, i;
|
|
3500
|
-
const p = e
|
|
3501
|
+
const p = e ?? {}, g = {
|
|
3501
3502
|
disabled: (t = p.disabled) !== null && t !== void 0 ? t : !1,
|
|
3502
3503
|
disposed: !1,
|
|
3503
3504
|
hidden: (i = p.hidden) !== null && i !== void 0 ? i : !1
|
|
3504
|
-
}, y = j.createCore(
|
|
3505
|
+
}, y = j.createCore(g);
|
|
3505
3506
|
return new We(y);
|
|
3506
3507
|
}
|
|
3507
3508
|
bindClassModifiers(e) {
|
|
@@ -3526,8 +3527,8 @@ var or = { exports: {} };
|
|
|
3526
3527
|
const ce = O("tbi");
|
|
3527
3528
|
class Gs {
|
|
3528
3529
|
constructor(e, t) {
|
|
3529
|
-
this.element = e.createElement("div"), this.element.classList.add(ce()), t.viewProps.bindClassModifiers(this.element), Y(t.props, "selected", (
|
|
3530
|
-
|
|
3530
|
+
this.element = e.createElement("div"), this.element.classList.add(ce()), t.viewProps.bindClassModifiers(this.element), Y(t.props, "selected", (g) => {
|
|
3531
|
+
g ? this.element.classList.add(ce(void 0, "sel")) : this.element.classList.remove(ce(void 0, "sel"));
|
|
3531
3532
|
});
|
|
3532
3533
|
const i = e.createElement("button");
|
|
3533
3534
|
i.classList.add(ce("b")), t.viewProps.bindDisabled(i), this.element.appendChild(i), this.buttonElement = i;
|
|
@@ -3692,7 +3693,7 @@ var or = { exports: {} };
|
|
|
3692
3693
|
this.onItemSelectedChange_ = this.onItemSelectedChange_.bind(this), this.empty = X(!0), this.selectedIndex = X(ps), this.items_ = [];
|
|
3693
3694
|
}
|
|
3694
3695
|
add(e, t) {
|
|
3695
|
-
const i = t
|
|
3696
|
+
const i = t ?? this.items_.length;
|
|
3696
3697
|
this.items_.splice(i, 0, e), e.emitter.on("change", this.onItemSelectedChange_), this.keepSelection_();
|
|
3697
3698
|
}
|
|
3698
3699
|
remove(e) {
|
|
@@ -3745,7 +3746,7 @@ var or = { exports: {} };
|
|
|
3745
3746
|
empty: p.empty,
|
|
3746
3747
|
viewProps: t.viewProps
|
|
3747
3748
|
})
|
|
3748
|
-
}), this.onPageAdd_ = this.onPageAdd_.bind(this), this.onPageRemove_ = this.onPageRemove_.bind(this), this.pageSet_ = new
|
|
3749
|
+
}), this.onPageAdd_ = this.onPageAdd_.bind(this), this.onPageRemove_ = this.onPageRemove_.bind(this), this.pageSet_ = new _e(() => null), this.pageSet_.emitter.on("add", this.onPageAdd_), this.pageSet_.emitter.on("remove", this.onPageRemove_), this.tab = p;
|
|
3749
3750
|
}
|
|
3750
3751
|
get pageSet() {
|
|
3751
3752
|
return this.pageSet_;
|
|
@@ -3888,7 +3889,7 @@ var or = { exports: {} };
|
|
|
3888
3889
|
}
|
|
3889
3890
|
constrain(e) {
|
|
3890
3891
|
let t = e;
|
|
3891
|
-
return
|
|
3892
|
+
return _(this.minValue) || (t = Math.max(t, this.minValue)), _(this.maxValue) || (t = Math.min(t, this.maxValue)), t;
|
|
3892
3893
|
}
|
|
3893
3894
|
}
|
|
3894
3895
|
class he {
|
|
@@ -3905,8 +3906,8 @@ var or = { exports: {} };
|
|
|
3905
3906
|
constructor(e, t) {
|
|
3906
3907
|
this.onValueChange_ = this.onValueChange_.bind(this), this.props_ = t.props, this.element = e.createElement("div"), this.element.classList.add(Rn()), t.viewProps.bindClassModifiers(this.element);
|
|
3907
3908
|
const i = e.createElement("select");
|
|
3908
|
-
i.classList.add(Rn("s")), Y(this.props_, "options", (
|
|
3909
|
-
tn(i),
|
|
3909
|
+
i.classList.add(Rn("s")), Y(this.props_, "options", (g) => {
|
|
3910
|
+
tn(i), g.forEach((y, M) => {
|
|
3910
3911
|
const F = e.createElement("option");
|
|
3911
3912
|
F.dataset.index = String(M), F.textContent = y.text, F.value = String(y.value), i.appendChild(F);
|
|
3912
3913
|
});
|
|
@@ -3976,7 +3977,7 @@ var or = { exports: {} };
|
|
|
3976
3977
|
}
|
|
3977
3978
|
onInputChange_(e) {
|
|
3978
3979
|
const i = e.currentTarget.value, p = this.parser_(i);
|
|
3979
|
-
|
|
3980
|
+
_(p) || (this.value.rawValue = p), this.view.refresh();
|
|
3980
3981
|
}
|
|
3981
3982
|
}
|
|
3982
3983
|
function Ws(n) {
|
|
@@ -4195,14 +4196,14 @@ var or = { exports: {} };
|
|
|
4195
4196
|
var t;
|
|
4196
4197
|
return (t = hi(n, e)) !== null && t !== void 0 ? t : mi(n, e);
|
|
4197
4198
|
}
|
|
4198
|
-
function
|
|
4199
|
+
function gs(n, e) {
|
|
4199
4200
|
const t = Me(n, e);
|
|
4200
4201
|
if (t)
|
|
4201
4202
|
return t;
|
|
4202
4203
|
const i = n.substr(e, 1);
|
|
4203
4204
|
if (e += i.length, i !== "+" && i !== "-" && i !== "~")
|
|
4204
4205
|
return null;
|
|
4205
|
-
const p =
|
|
4206
|
+
const p = gs(n, e);
|
|
4206
4207
|
return p ? (e = p.cursor, {
|
|
4207
4208
|
cursor: e,
|
|
4208
4209
|
evaluable: new ti(i, p.evaluable)
|
|
@@ -4222,7 +4223,7 @@ var or = { exports: {} };
|
|
|
4222
4223
|
if (!p)
|
|
4223
4224
|
return null;
|
|
4224
4225
|
i = p.cursor;
|
|
4225
|
-
let
|
|
4226
|
+
let g = p.evaluable;
|
|
4226
4227
|
for (; ; ) {
|
|
4227
4228
|
const y = vi(e, t, i);
|
|
4228
4229
|
if (!y)
|
|
@@ -4231,11 +4232,11 @@ var or = { exports: {} };
|
|
|
4231
4232
|
const M = n(t, i);
|
|
4232
4233
|
if (!M)
|
|
4233
4234
|
return null;
|
|
4234
|
-
i = M.cursor,
|
|
4235
|
+
i = M.cursor, g = new Js(y.operator, g, M.evaluable);
|
|
4235
4236
|
}
|
|
4236
|
-
return
|
|
4237
|
+
return g ? {
|
|
4237
4238
|
cursor: i,
|
|
4238
|
-
evaluable:
|
|
4239
|
+
evaluable: g
|
|
4239
4240
|
} : null;
|
|
4240
4241
|
};
|
|
4241
4242
|
}
|
|
@@ -4247,17 +4248,17 @@ var or = { exports: {} };
|
|
|
4247
4248
|
["&"],
|
|
4248
4249
|
["^"],
|
|
4249
4250
|
["|"]
|
|
4250
|
-
].reduce((n, e) => Dn(n, e),
|
|
4251
|
+
].reduce((n, e) => Dn(n, e), gs);
|
|
4251
4252
|
function je(n, e) {
|
|
4252
4253
|
return e += Ht(n, e).length, fi(n, e);
|
|
4253
4254
|
}
|
|
4254
|
-
function
|
|
4255
|
+
function _s(n) {
|
|
4255
4256
|
const e = je(n, 0);
|
|
4256
4257
|
return !e || e.cursor + Ht(n, e.cursor).length !== n.length ? null : e.evaluable;
|
|
4257
4258
|
}
|
|
4258
4259
|
function Be(n) {
|
|
4259
4260
|
var e;
|
|
4260
|
-
const t =
|
|
4261
|
+
const t = _s(n);
|
|
4261
4262
|
return (e = t == null ? void 0 : t.evaluate()) !== null && e !== void 0 ? e : null;
|
|
4262
4263
|
}
|
|
4263
4264
|
function Fn(n) {
|
|
@@ -4265,7 +4266,7 @@ var or = { exports: {} };
|
|
|
4265
4266
|
return n;
|
|
4266
4267
|
if (typeof n == "string") {
|
|
4267
4268
|
const e = Be(n);
|
|
4268
|
-
if (!
|
|
4269
|
+
if (!_(e))
|
|
4269
4270
|
return e;
|
|
4270
4271
|
}
|
|
4271
4272
|
return 0;
|
|
@@ -4276,9 +4277,9 @@ var or = { exports: {} };
|
|
|
4276
4277
|
function se(n) {
|
|
4277
4278
|
return (e) => e.toFixed(Math.max(Math.min(n, 20), 0));
|
|
4278
4279
|
}
|
|
4279
|
-
const
|
|
4280
|
-
function
|
|
4281
|
-
return
|
|
4280
|
+
const gi = se(0);
|
|
4281
|
+
function gt(n) {
|
|
4282
|
+
return gi(n) + "%";
|
|
4282
4283
|
}
|
|
4283
4284
|
function ws(n) {
|
|
4284
4285
|
return String(n);
|
|
@@ -4290,7 +4291,7 @@ var or = { exports: {} };
|
|
|
4290
4291
|
for (; n.length < e; )
|
|
4291
4292
|
n.push(void 0);
|
|
4292
4293
|
}
|
|
4293
|
-
function
|
|
4294
|
+
function _i(n) {
|
|
4294
4295
|
const e = [];
|
|
4295
4296
|
return ze(e, n), X(e);
|
|
4296
4297
|
}
|
|
@@ -4302,22 +4303,22 @@ var or = { exports: {} };
|
|
|
4302
4303
|
const t = [...wi(n), e];
|
|
4303
4304
|
return t.length > n.length ? t.splice(0, t.length - n.length) : ze(t, n.length), t;
|
|
4304
4305
|
}
|
|
4305
|
-
function
|
|
4306
|
+
function _t({ primary: n, secondary: e, forward: t, backward: i }) {
|
|
4306
4307
|
let p = !1;
|
|
4307
|
-
function
|
|
4308
|
+
function g(y) {
|
|
4308
4309
|
p || (p = !0, y(), p = !1);
|
|
4309
4310
|
}
|
|
4310
4311
|
n.emitter.on("change", (y) => {
|
|
4311
|
-
|
|
4312
|
+
g(() => {
|
|
4312
4313
|
e.setRawValue(t(n, e), y.options);
|
|
4313
4314
|
});
|
|
4314
4315
|
}), e.emitter.on("change", (y) => {
|
|
4315
|
-
|
|
4316
|
+
g(() => {
|
|
4316
4317
|
n.setRawValue(i(n, e), y.options);
|
|
4317
|
-
}),
|
|
4318
|
+
}), g(() => {
|
|
4318
4319
|
e.setRawValue(t(n, e), y.options);
|
|
4319
4320
|
});
|
|
4320
|
-
}),
|
|
4321
|
+
}), g(() => {
|
|
4321
4322
|
e.setRawValue(t(n, e), {
|
|
4322
4323
|
forceEmit: !1,
|
|
4323
4324
|
last: !0
|
|
@@ -4352,10 +4353,10 @@ var or = { exports: {} };
|
|
|
4352
4353
|
}
|
|
4353
4354
|
function Bn(n, e) {
|
|
4354
4355
|
var t, i;
|
|
4355
|
-
const p = e.ownerDocument.defaultView,
|
|
4356
|
+
const p = e.ownerDocument.defaultView, g = e.getBoundingClientRect();
|
|
4356
4357
|
return {
|
|
4357
|
-
x: n.pageX - (((t = p && p.scrollX) !== null && t !== void 0 ? t : 0) +
|
|
4358
|
-
y: n.pageY - (((i = p && p.scrollY) !== null && i !== void 0 ? i : 0) +
|
|
4358
|
+
x: n.pageX - (((t = p && p.scrollX) !== null && t !== void 0 ? t : 0) + g.left),
|
|
4359
|
+
y: n.pageY - (((i = p && p.scrollY) !== null && i !== void 0 ? i : 0) + g.top)
|
|
4359
4360
|
};
|
|
4360
4361
|
}
|
|
4361
4362
|
class it {
|
|
@@ -4447,8 +4448,8 @@ var or = { exports: {} };
|
|
|
4447
4448
|
}
|
|
4448
4449
|
}
|
|
4449
4450
|
function ee(n, e, t, i, p) {
|
|
4450
|
-
const
|
|
4451
|
-
return i +
|
|
4451
|
+
const g = (n - e) / (t - e);
|
|
4452
|
+
return i + g * (p - i);
|
|
4452
4453
|
}
|
|
4453
4454
|
function Cs(n) {
|
|
4454
4455
|
return String(n.toFixed(10)).split(".")[1].replace(/0+$/, "").length;
|
|
@@ -4467,12 +4468,12 @@ var or = { exports: {} };
|
|
|
4467
4468
|
i.classList.add(xe("i")), i.type = "text", t.viewProps.bindDisabled(i), this.element.appendChild(i), this.inputElement = i, this.onDraggingChange_ = this.onDraggingChange_.bind(this), this.dragging_ = t.dragging, this.dragging_.emitter.on("change", this.onDraggingChange_), this.element.classList.add(xe()), this.inputElement.classList.add(xe("i"));
|
|
4468
4469
|
const p = e.createElement("div");
|
|
4469
4470
|
p.classList.add(xe("k")), this.element.appendChild(p), this.knobElement = p;
|
|
4470
|
-
const
|
|
4471
|
-
|
|
4471
|
+
const g = e.createElementNS(Ee, "svg");
|
|
4472
|
+
g.classList.add(xe("g")), this.knobElement.appendChild(g);
|
|
4472
4473
|
const y = e.createElementNS(Ee, "path");
|
|
4473
|
-
y.classList.add(xe("gb")),
|
|
4474
|
+
y.classList.add(xe("gb")), g.appendChild(y), this.guideBodyElem_ = y;
|
|
4474
4475
|
const M = e.createElementNS(Ee, "path");
|
|
4475
|
-
M.classList.add(xe("gh")),
|
|
4476
|
+
M.classList.add(xe("gh")), g.appendChild(M), this.guideHeadElem_ = M;
|
|
4476
4477
|
const F = e.createElement("div");
|
|
4477
4478
|
F.classList.add(O("tt")()), this.knobElement.appendChild(F), this.tooltipElem_ = F, t.value.emitter.on("change", this.onChange_), this.value = t.value, this.refresh();
|
|
4478
4479
|
}
|
|
@@ -4484,8 +4485,8 @@ var or = { exports: {} };
|
|
|
4484
4485
|
this.element.classList.add(xe(void 0, "drg"));
|
|
4485
4486
|
const t = e.rawValue / this.props_.get("draggingScale"), i = t + (t > 0 ? -1 : t < 0 ? 1 : 0), p = ae(-i, -4, 4);
|
|
4486
4487
|
this.guideHeadElem_.setAttributeNS(null, "d", [`M ${i + p},0 L${i},4 L${i + p},8`, `M ${t},-1 L${t},9`].join(" ")), this.guideBodyElem_.setAttributeNS(null, "d", `M 0,4 L${t},4`);
|
|
4487
|
-
const
|
|
4488
|
-
this.tooltipElem_.textContent =
|
|
4488
|
+
const g = this.props_.get("formatter");
|
|
4489
|
+
this.tooltipElem_.textContent = g(this.value.rawValue), this.tooltipElem_.style.left = `${t}px`;
|
|
4489
4490
|
}
|
|
4490
4491
|
refresh() {
|
|
4491
4492
|
const e = this.props_.get("formatter");
|
|
@@ -4510,13 +4511,13 @@ var or = { exports: {} };
|
|
|
4510
4511
|
}
|
|
4511
4512
|
constrainValue_(e) {
|
|
4512
4513
|
var t, i;
|
|
4513
|
-
const p = (t = this.sliderProps_) === null || t === void 0 ? void 0 : t.get("minValue"),
|
|
4514
|
+
const p = (t = this.sliderProps_) === null || t === void 0 ? void 0 : t.get("minValue"), g = (i = this.sliderProps_) === null || i === void 0 ? void 0 : i.get("maxValue");
|
|
4514
4515
|
let y = e;
|
|
4515
|
-
return p !== void 0 && (y = Math.max(y, p)),
|
|
4516
|
+
return p !== void 0 && (y = Math.max(y, p)), g !== void 0 && (y = Math.min(y, g)), y;
|
|
4516
4517
|
}
|
|
4517
4518
|
onInputChange_(e) {
|
|
4518
4519
|
const i = e.currentTarget.value, p = this.parser_(i);
|
|
4519
|
-
|
|
4520
|
+
_(p) || (this.value.rawValue = this.constrainValue_(p)), this.view.refresh();
|
|
4520
4521
|
}
|
|
4521
4522
|
onInputKeyDown_(e) {
|
|
4522
4523
|
const t = me(this.baseStep_, Re(e));
|
|
@@ -4581,7 +4582,7 @@ var or = { exports: {} };
|
|
|
4581
4582
|
}), this.ptHandler_ = new it(this.view.trackElement), this.ptHandler_.emitter.on("down", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("move", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.trackElement.addEventListener("keydown", this.onKeyDown_), this.view.trackElement.addEventListener("keyup", this.onKeyUp_);
|
|
4582
4583
|
}
|
|
4583
4584
|
handlePointerEvent_(e, t) {
|
|
4584
|
-
|
|
4585
|
+
e.point && this.value.setRawValue(ee(ae(e.point.x, 0, e.bounds.width), 0, e.bounds.width, this.props.get("minValue"), this.props.get("maxValue")), t);
|
|
4585
4586
|
}
|
|
4586
4587
|
onPointerDownOrMove_(e) {
|
|
4587
4588
|
this.handlePointerEvent_(e.data, {
|
|
@@ -4679,7 +4680,7 @@ var or = { exports: {} };
|
|
|
4679
4680
|
}), e;
|
|
4680
4681
|
}
|
|
4681
4682
|
function Hn(n) {
|
|
4682
|
-
return
|
|
4683
|
+
return _(n) ? null : new bt(Ts(n));
|
|
4683
4684
|
}
|
|
4684
4685
|
function Kn(n) {
|
|
4685
4686
|
const e = n ? Q(n, bt) : null;
|
|
@@ -4695,7 +4696,7 @@ var or = { exports: {} };
|
|
|
4695
4696
|
}
|
|
4696
4697
|
function yt(n) {
|
|
4697
4698
|
const e = Ci(n);
|
|
4698
|
-
return e
|
|
4699
|
+
return e ?? 1;
|
|
4699
4700
|
}
|
|
4700
4701
|
function Ct(n, e) {
|
|
4701
4702
|
var t;
|
|
@@ -4710,10 +4711,10 @@ var or = { exports: {} };
|
|
|
4710
4711
|
i.classList.add(dn("l")), this.element.appendChild(i);
|
|
4711
4712
|
const p = e.createElement("input");
|
|
4712
4713
|
p.classList.add(dn("i")), p.type = "checkbox", i.appendChild(p), this.inputElement = p, t.viewProps.bindDisabled(this.inputElement);
|
|
4713
|
-
const
|
|
4714
|
-
|
|
4714
|
+
const g = e.createElement("div");
|
|
4715
|
+
g.classList.add(dn("w")), i.appendChild(g);
|
|
4715
4716
|
const y = $e(e, "check");
|
|
4716
|
-
|
|
4717
|
+
g.appendChild(y), t.value.emitter.on("change", this.onValueChange_), this.value = t.value, this.update_();
|
|
4717
4718
|
}
|
|
4718
4719
|
update_() {
|
|
4719
4720
|
this.inputElement.checked = this.value.rawValue;
|
|
@@ -4779,8 +4780,8 @@ var or = { exports: {} };
|
|
|
4779
4780
|
i.classList.add(rt("h")), this.element.appendChild(i);
|
|
4780
4781
|
const p = e.createElement("div");
|
|
4781
4782
|
p.classList.add(rt("s")), i.appendChild(p), this.swatchElement = p;
|
|
4782
|
-
const
|
|
4783
|
-
if (
|
|
4783
|
+
const g = e.createElement("div");
|
|
4784
|
+
if (g.classList.add(rt("t")), i.appendChild(g), this.textElement = g, t.pickerLayout === "inline") {
|
|
4784
4785
|
const y = e.createElement("div");
|
|
4785
4786
|
y.classList.add(rt("p")), this.element.appendChild(y), this.pickerElement = y;
|
|
4786
4787
|
} else
|
|
@@ -4788,25 +4789,25 @@ var or = { exports: {} };
|
|
|
4788
4789
|
}
|
|
4789
4790
|
}
|
|
4790
4791
|
function Ti(n, e, t) {
|
|
4791
|
-
const i = ae(n / 255, 0, 1), p = ae(e / 255, 0, 1),
|
|
4792
|
+
const i = ae(n / 255, 0, 1), p = ae(e / 255, 0, 1), g = ae(t / 255, 0, 1), y = Math.max(i, p, g), M = Math.min(i, p, g), F = y - M;
|
|
4792
4793
|
let U = 0, W = 0;
|
|
4793
4794
|
const Z = (M + y) / 2;
|
|
4794
|
-
return F !== 0 && (W = F / (1 - Math.abs(y + M - 1)), i === y ? U = (p -
|
|
4795
|
+
return F !== 0 && (W = F / (1 - Math.abs(y + M - 1)), i === y ? U = (p - g) / F : p === y ? U = 2 + (g - i) / F : U = 4 + (i - p) / F, U = U / 6 + (U < 0 ? 1 : 0)), [U * 360, W * 100, Z * 100];
|
|
4795
4796
|
}
|
|
4796
4797
|
function $n(n, e, t) {
|
|
4797
|
-
const i = (n % 360 + 360) % 360, p = ae(e / 100, 0, 1),
|
|
4798
|
+
const i = (n % 360 + 360) % 360, p = ae(e / 100, 0, 1), g = ae(t / 100, 0, 1), y = (1 - Math.abs(2 * g - 1)) * p, M = y * (1 - Math.abs(i / 60 % 2 - 1)), F = g - y / 2;
|
|
4798
4799
|
let U, W, Z;
|
|
4799
4800
|
return i >= 0 && i < 60 ? [U, W, Z] = [y, M, 0] : i >= 60 && i < 120 ? [U, W, Z] = [M, y, 0] : i >= 120 && i < 180 ? [U, W, Z] = [0, y, M] : i >= 180 && i < 240 ? [U, W, Z] = [0, M, y] : i >= 240 && i < 300 ? [U, W, Z] = [M, 0, y] : [U, W, Z] = [y, 0, M], [(U + F) * 255, (W + F) * 255, (Z + F) * 255];
|
|
4800
4801
|
}
|
|
4801
4802
|
function Mi(n, e, t) {
|
|
4802
|
-
const i = ae(n / 255, 0, 1), p = ae(e / 255, 0, 1),
|
|
4803
|
+
const i = ae(n / 255, 0, 1), p = ae(e / 255, 0, 1), g = ae(t / 255, 0, 1), y = Math.max(i, p, g), M = Math.min(i, p, g), F = y - M;
|
|
4803
4804
|
let U;
|
|
4804
|
-
F === 0 ? U = 0 : y === i ? U = 60 * (((p -
|
|
4805
|
+
F === 0 ? U = 0 : y === i ? U = 60 * (((p - g) / F % 6 + 6) % 6) : y === p ? U = 60 * ((g - i) / F + 2) : U = 60 * ((i - p) / F + 4);
|
|
4805
4806
|
const W = y === 0 ? 0 : F / y, Z = y;
|
|
4806
4807
|
return [U, W * 100, Z * 100];
|
|
4807
4808
|
}
|
|
4808
4809
|
function Ms(n, e, t) {
|
|
4809
|
-
const i = Es(n, 360), p = ae(e / 100, 0, 1),
|
|
4810
|
+
const i = Es(n, 360), p = ae(e / 100, 0, 1), g = ae(t / 100, 0, 1), y = g * p, M = y * (1 - Math.abs(i / 60 % 2 - 1)), F = g - y;
|
|
4810
4811
|
let U, W, Z;
|
|
4811
4812
|
return i >= 0 && i < 60 ? [U, W, Z] = [y, M, 0] : i >= 60 && i < 120 ? [U, W, Z] = [M, y, 0] : i >= 120 && i < 180 ? [U, W, Z] = [0, y, M] : i >= 180 && i < 240 ? [U, W, Z] = [0, M, y] : i >= 240 && i < 300 ? [U, W, Z] = [M, 0, y] : [U, W, Z] = [y, 0, M], [(U + F) * 255, (W + F) * 255, (Z + F) * 255];
|
|
4812
4813
|
}
|
|
@@ -4863,15 +4864,15 @@ var or = { exports: {} };
|
|
|
4863
4864
|
];
|
|
4864
4865
|
}
|
|
4865
4866
|
function x(n, e, t, i) {
|
|
4866
|
-
const p = c(e, t),
|
|
4867
|
-
return n.map((y, M) => y / p[M] *
|
|
4867
|
+
const p = c(e, t), g = c(e, i);
|
|
4868
|
+
return n.map((y, M) => y / p[M] * g[M]);
|
|
4868
4869
|
}
|
|
4869
4870
|
function T(n, e, t) {
|
|
4870
4871
|
const i = x(n, e.mode, e.type, "int"), p = r[e.mode][t.mode](...i);
|
|
4871
4872
|
return x(p, t.mode, "int", t.type);
|
|
4872
4873
|
}
|
|
4873
4874
|
function R(n, e) {
|
|
4874
|
-
return typeof n != "object" ||
|
|
4875
|
+
return typeof n != "object" || _(n) ? !1 : e in n && typeof n[e] == "number";
|
|
4875
4876
|
}
|
|
4876
4877
|
class D {
|
|
4877
4878
|
constructor(e, t, i = "int") {
|
|
@@ -4900,13 +4901,13 @@ var or = { exports: {} };
|
|
|
4900
4901
|
if (e.mode !== t.mode)
|
|
4901
4902
|
return !1;
|
|
4902
4903
|
const i = e.comps_, p = t.comps_;
|
|
4903
|
-
for (let
|
|
4904
|
-
if (i[
|
|
4904
|
+
for (let g = 0; g < i.length; g++)
|
|
4905
|
+
if (i[g] !== p[g])
|
|
4905
4906
|
return !1;
|
|
4906
4907
|
return !0;
|
|
4907
4908
|
}
|
|
4908
4909
|
getComponents(e, t = "int") {
|
|
4909
|
-
return s(T(o(this.comps_), { mode: this.mode, type: this.type }, { mode: e
|
|
4910
|
+
return s(T(o(this.comps_), { mode: this.mode, type: this.type }, { mode: e ?? this.mode, type: t }), this.comps_[3]);
|
|
4910
4911
|
}
|
|
4911
4912
|
toRgbaObject(e = "int") {
|
|
4912
4913
|
const t = this.getComponents("rgb", e);
|
|
@@ -4926,8 +4927,8 @@ var or = { exports: {} };
|
|
|
4926
4927
|
i.classList.add(le("hsv"));
|
|
4927
4928
|
const p = e.createElement("div");
|
|
4928
4929
|
p.classList.add(le("sv")), this.svPaletteView_ = t.svPaletteView, p.appendChild(this.svPaletteView_.element), i.appendChild(p);
|
|
4929
|
-
const
|
|
4930
|
-
|
|
4930
|
+
const g = e.createElement("div");
|
|
4931
|
+
g.classList.add(le("h")), this.hPaletteView_ = t.hPaletteView, g.appendChild(this.hPaletteView_.element), i.appendChild(g), this.element.appendChild(i);
|
|
4931
4932
|
const y = e.createElement("div");
|
|
4932
4933
|
if (y.classList.add(le("rgb")), this.textView_ = t.textView, y.appendChild(this.textView_.element), this.element.appendChild(y), t.alphaViews) {
|
|
4933
4934
|
this.alphaViews_ = {
|
|
@@ -4974,7 +4975,7 @@ var or = { exports: {} };
|
|
|
4974
4975
|
var e;
|
|
4975
4976
|
return (e = n.color) === null || e === void 0 ? void 0 : e.type;
|
|
4976
4977
|
}
|
|
4977
|
-
function
|
|
4978
|
+
function _o(n, e) {
|
|
4978
4979
|
return n.alpha === e.alpha && n.mode === e.mode && n.notation === e.notation && n.type === e.type;
|
|
4979
4980
|
}
|
|
4980
4981
|
function Ne(n, e) {
|
|
@@ -5046,7 +5047,7 @@ var or = { exports: {} };
|
|
|
5046
5047
|
return t ? new D(t, "hsl", n) : null;
|
|
5047
5048
|
};
|
|
5048
5049
|
}
|
|
5049
|
-
function
|
|
5050
|
+
function gr(n) {
|
|
5050
5051
|
const e = n.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);
|
|
5051
5052
|
if (!e)
|
|
5052
5053
|
return null;
|
|
@@ -5058,9 +5059,9 @@ var or = { exports: {} };
|
|
|
5058
5059
|
];
|
|
5059
5060
|
return isNaN(t[0]) || isNaN(t[1]) || isNaN(t[2]) || isNaN(t[3]) ? null : t;
|
|
5060
5061
|
}
|
|
5061
|
-
function
|
|
5062
|
+
function _r(n) {
|
|
5062
5063
|
return (e) => {
|
|
5063
|
-
const t =
|
|
5064
|
+
const t = gr(e);
|
|
5064
5065
|
return t ? new D(t, "hsl", n) : null;
|
|
5065
5066
|
};
|
|
5066
5067
|
}
|
|
@@ -5181,7 +5182,7 @@ var or = { exports: {} };
|
|
|
5181
5182
|
}
|
|
5182
5183
|
},
|
|
5183
5184
|
{
|
|
5184
|
-
parser:
|
|
5185
|
+
parser: gr,
|
|
5185
5186
|
result: {
|
|
5186
5187
|
alpha: !0,
|
|
5187
5188
|
mode: "hsl",
|
|
@@ -5219,7 +5220,7 @@ var or = { exports: {} };
|
|
|
5219
5220
|
hr("int"),
|
|
5220
5221
|
vr("int"),
|
|
5221
5222
|
br("int"),
|
|
5222
|
-
|
|
5223
|
+
_r("int"),
|
|
5223
5224
|
Cr("int"),
|
|
5224
5225
|
Pr("int")
|
|
5225
5226
|
],
|
|
@@ -5227,7 +5228,7 @@ var or = { exports: {} };
|
|
|
5227
5228
|
hr("float"),
|
|
5228
5229
|
vr("float"),
|
|
5229
5230
|
br("float"),
|
|
5230
|
-
|
|
5231
|
+
_r("float"),
|
|
5231
5232
|
Cr("float"),
|
|
5232
5233
|
Pr("float")
|
|
5233
5234
|
]
|
|
@@ -5237,8 +5238,8 @@ var or = { exports: {} };
|
|
|
5237
5238
|
return (t) => {
|
|
5238
5239
|
if (typeof t != "string")
|
|
5239
5240
|
return D.black(n);
|
|
5240
|
-
const i = e.reduce((p,
|
|
5241
|
-
return i
|
|
5241
|
+
const i = e.reduce((p, g) => p || g(t), null);
|
|
5242
|
+
return i ?? D.black(n);
|
|
5242
5243
|
};
|
|
5243
5244
|
}
|
|
5244
5245
|
function Vi(n) {
|
|
@@ -5266,7 +5267,7 @@ var or = { exports: {} };
|
|
|
5266
5267
|
}
|
|
5267
5268
|
function Ls(n, e) {
|
|
5268
5269
|
const t = se(2), i = se(e === "float" ? 2 : 0);
|
|
5269
|
-
return `rgba(${n.getComponents("rgb", e).map((
|
|
5270
|
+
return `rgba(${n.getComponents("rgb", e).map((g, y) => (y === 3 ? t : i)(g)).join(", ")})`;
|
|
5270
5271
|
}
|
|
5271
5272
|
function To(n) {
|
|
5272
5273
|
return (e) => Ls(e, n);
|
|
@@ -5274,23 +5275,23 @@ var or = { exports: {} };
|
|
|
5274
5275
|
function Mo(n) {
|
|
5275
5276
|
const e = [
|
|
5276
5277
|
se(0),
|
|
5277
|
-
|
|
5278
|
-
|
|
5278
|
+
gt,
|
|
5279
|
+
gt
|
|
5279
5280
|
];
|
|
5280
5281
|
return `hsl(${o(n.getComponents("hsl")).map((i, p) => e[p](i)).join(", ")})`;
|
|
5281
5282
|
}
|
|
5282
5283
|
function Lo(n) {
|
|
5283
5284
|
const e = [
|
|
5284
5285
|
se(0),
|
|
5285
|
-
|
|
5286
|
-
|
|
5286
|
+
gt,
|
|
5287
|
+
gt,
|
|
5287
5288
|
se(2)
|
|
5288
5289
|
];
|
|
5289
5290
|
return `hsla(${n.getComponents("hsl").map((i, p) => e[p](i)).join(", ")})`;
|
|
5290
5291
|
}
|
|
5291
5292
|
function Sr(n, e) {
|
|
5292
5293
|
const t = se(e === "float" ? 2 : 0), i = ["r", "g", "b"];
|
|
5293
|
-
return `{${o(n.getComponents("rgb", e)).map((
|
|
5294
|
+
return `{${o(n.getComponents("rgb", e)).map((g, y) => `${i[y]}: ${t(g)}`).join(", ")}}`;
|
|
5294
5295
|
}
|
|
5295
5296
|
function So(n) {
|
|
5296
5297
|
return (e) => Sr(e, n);
|
|
@@ -5383,7 +5384,7 @@ var or = { exports: {} };
|
|
|
5383
5384
|
], [])
|
|
5384
5385
|
];
|
|
5385
5386
|
function Ni(n) {
|
|
5386
|
-
return Vo.reduce((e, t) => e || (
|
|
5387
|
+
return Vo.reduce((e, t) => e || (_o(t.format, n) ? t.stringifier : null), null);
|
|
5387
5388
|
}
|
|
5388
5389
|
const Xn = O("apl");
|
|
5389
5390
|
class Ro {
|
|
@@ -5393,18 +5394,18 @@ var or = { exports: {} };
|
|
|
5393
5394
|
i.classList.add(Xn("b")), this.element.appendChild(i);
|
|
5394
5395
|
const p = e.createElement("div");
|
|
5395
5396
|
p.classList.add(Xn("c")), i.appendChild(p), this.colorElem_ = p;
|
|
5396
|
-
const
|
|
5397
|
-
|
|
5397
|
+
const g = e.createElement("div");
|
|
5398
|
+
g.classList.add(Xn("m")), this.element.appendChild(g), this.markerElem_ = g;
|
|
5398
5399
|
const y = e.createElement("div");
|
|
5399
5400
|
y.classList.add(Xn("p")), this.markerElem_.appendChild(y), this.previewElem_ = y, this.update_();
|
|
5400
5401
|
}
|
|
5401
5402
|
update_() {
|
|
5402
|
-
const e = this.value.rawValue, t = e.getComponents("rgb"), i = new D([t[0], t[1], t[2], 0], "rgb"), p = new D([t[0], t[1], t[2], 255], "rgb"),
|
|
5403
|
+
const e = this.value.rawValue, t = e.getComponents("rgb"), i = new D([t[0], t[1], t[2], 0], "rgb"), p = new D([t[0], t[1], t[2], 255], "rgb"), g = [
|
|
5403
5404
|
"to right",
|
|
5404
5405
|
Ls(i),
|
|
5405
5406
|
Ls(p)
|
|
5406
5407
|
];
|
|
5407
|
-
this.colorElem_.style.background = `linear-gradient(${
|
|
5408
|
+
this.colorElem_.style.background = `linear-gradient(${g.join(",")})`, this.previewElem_.style.backgroundColor = Ls(e);
|
|
5408
5409
|
const y = ee(t[3], 0, 1, 0, 100);
|
|
5409
5410
|
this.markerElem_.style.left = `${y}%`;
|
|
5410
5411
|
}
|
|
@@ -5422,8 +5423,8 @@ var or = { exports: {} };
|
|
|
5422
5423
|
handlePointerEvent_(e, t) {
|
|
5423
5424
|
if (!e.point)
|
|
5424
5425
|
return;
|
|
5425
|
-
const i = e.point.x / e.bounds.width, p = this.value.rawValue, [
|
|
5426
|
-
this.value.setRawValue(new D([
|
|
5426
|
+
const i = e.point.x / e.bounds.width, p = this.value.rawValue, [g, y, M] = p.getComponents("hsv");
|
|
5427
|
+
this.value.setRawValue(new D([g, y, M, i], "hsv"), t);
|
|
5427
5428
|
}
|
|
5428
5429
|
onPointerDown_(e) {
|
|
5429
5430
|
this.handlePointerEvent_(e.data, {
|
|
@@ -5447,8 +5448,8 @@ var or = { exports: {} };
|
|
|
5447
5448
|
const t = me(ot(!0), Ue(e));
|
|
5448
5449
|
if (t === 0)
|
|
5449
5450
|
return;
|
|
5450
|
-
const i = this.value.rawValue, [p,
|
|
5451
|
-
this.value.setRawValue(new D([p,
|
|
5451
|
+
const i = this.value.rawValue, [p, g, y, M] = i.getComponents("hsv");
|
|
5452
|
+
this.value.setRawValue(new D([p, g, y, M + t], "hsv"), {
|
|
5452
5453
|
forceEmit: !1,
|
|
5453
5454
|
last: !1
|
|
5454
5455
|
});
|
|
@@ -5468,8 +5469,8 @@ var or = { exports: {} };
|
|
|
5468
5469
|
{ text: "HSV", value: "hsv" }
|
|
5469
5470
|
];
|
|
5470
5471
|
return e.appendChild(t.reduce((i, p) => {
|
|
5471
|
-
const
|
|
5472
|
-
return
|
|
5472
|
+
const g = n.createElement("option");
|
|
5473
|
+
return g.textContent = p.text, g.value = p.value, i.appendChild(g), i;
|
|
5473
5474
|
}, n.createDocumentFragment())), e;
|
|
5474
5475
|
}
|
|
5475
5476
|
class Oo {
|
|
@@ -5479,8 +5480,8 @@ var or = { exports: {} };
|
|
|
5479
5480
|
i.classList.add(hn("m")), this.modeElem_ = Io(e), this.modeElem_.classList.add(hn("ms")), i.appendChild(this.modeSelectElement);
|
|
5480
5481
|
const p = e.createElement("div");
|
|
5481
5482
|
p.classList.add(hn("mm")), p.appendChild($e(e, "dropdown")), i.appendChild(p), this.element.appendChild(i);
|
|
5482
|
-
const
|
|
5483
|
-
|
|
5483
|
+
const g = e.createElement("div");
|
|
5484
|
+
g.classList.add(hn("w")), this.element.appendChild(g), this.textsElem_ = g, this.textViews_ = t.textViews, this.applyTextViews_(), te(t.colorMode, (y) => {
|
|
5484
5485
|
this.modeElem_.value = y;
|
|
5485
5486
|
});
|
|
5486
5487
|
}
|
|
@@ -5545,14 +5546,14 @@ var or = { exports: {} };
|
|
|
5545
5546
|
Ii(e, t, 1),
|
|
5546
5547
|
Ii(e, t, 2)
|
|
5547
5548
|
];
|
|
5548
|
-
return i.forEach((p,
|
|
5549
|
-
|
|
5549
|
+
return i.forEach((p, g) => {
|
|
5550
|
+
_t({
|
|
5550
5551
|
primary: this.value,
|
|
5551
5552
|
secondary: p.value,
|
|
5552
|
-
forward: (y) => y.rawValue.getComponents(this.colorMode.rawValue, this.colorType_)[
|
|
5553
|
+
forward: (y) => y.rawValue.getComponents(this.colorMode.rawValue, this.colorType_)[g],
|
|
5553
5554
|
backward: (y, M) => {
|
|
5554
5555
|
const F = this.colorMode.rawValue, U = y.rawValue.getComponents(F, this.colorType_);
|
|
5555
|
-
return U[
|
|
5556
|
+
return U[g] = M.rawValue, new D(s(o(U), U[3]), F, this.colorType_);
|
|
5556
5557
|
}
|
|
5557
5558
|
});
|
|
5558
5559
|
}), i;
|
|
@@ -5595,8 +5596,8 @@ var or = { exports: {} };
|
|
|
5595
5596
|
handlePointerEvent_(e, t) {
|
|
5596
5597
|
if (!e.point)
|
|
5597
5598
|
return;
|
|
5598
|
-
const i = ee(ae(e.point.x, 0, e.bounds.width), 0, e.bounds.width, 0, 359), p = this.value.rawValue, [,
|
|
5599
|
-
this.value.setRawValue(new D([i,
|
|
5599
|
+
const i = ee(ae(e.point.x, 0, e.bounds.width), 0, e.bounds.width, 0, 359), p = this.value.rawValue, [, g, y, M] = p.getComponents("hsv");
|
|
5600
|
+
this.value.setRawValue(new D([i, g, y, M], "hsv"), t);
|
|
5600
5601
|
}
|
|
5601
5602
|
onPointerDown_(e) {
|
|
5602
5603
|
this.handlePointerEvent_(e.data, {
|
|
@@ -5620,8 +5621,8 @@ var or = { exports: {} };
|
|
|
5620
5621
|
const t = me(ot(!1), Ue(e));
|
|
5621
5622
|
if (t === 0)
|
|
5622
5623
|
return;
|
|
5623
|
-
const i = this.value.rawValue, [p,
|
|
5624
|
-
this.value.setRawValue(new D([p + t,
|
|
5624
|
+
const i = this.value.rawValue, [p, g, y, M] = i.getComponents("hsv");
|
|
5625
|
+
this.value.setRawValue(new D([p + t, g, y, M], "hsv"), {
|
|
5625
5626
|
forceEmit: !1,
|
|
5626
5627
|
last: !1
|
|
5627
5628
|
});
|
|
@@ -5646,10 +5647,10 @@ var or = { exports: {} };
|
|
|
5646
5647
|
const e = Cn(this.canvasElement);
|
|
5647
5648
|
if (!e)
|
|
5648
5649
|
return;
|
|
5649
|
-
const i = this.value.rawValue.getComponents("hsv"), p = this.canvasElement.width,
|
|
5650
|
-
for (let W = 0; W <
|
|
5650
|
+
const i = this.value.rawValue.getComponents("hsv"), p = this.canvasElement.width, g = this.canvasElement.height, y = e.getImageData(0, 0, p, g), M = y.data;
|
|
5651
|
+
for (let W = 0; W < g; W++)
|
|
5651
5652
|
for (let Z = 0; Z < p; Z++) {
|
|
5652
|
-
const lt = ee(Z, 0, p, 0, 100), Zn = ee(W, 0,
|
|
5653
|
+
const lt = ee(Z, 0, p, 0, 100), Zn = ee(W, 0, g, 100, 0), Qn = Ms(i[0], lt, Zn), bn = (W * p + Z) * 4;
|
|
5653
5654
|
M[bn] = Qn[0], M[bn + 1] = Qn[1], M[bn + 2] = Qn[2], M[bn + 3] = 255;
|
|
5654
5655
|
}
|
|
5655
5656
|
e.putImageData(y, 0, 0);
|
|
@@ -5672,8 +5673,8 @@ var or = { exports: {} };
|
|
|
5672
5673
|
handlePointerEvent_(e, t) {
|
|
5673
5674
|
if (!e.point)
|
|
5674
5675
|
return;
|
|
5675
|
-
const i = ee(e.point.x, 0, e.bounds.width, 0, 100), p = ee(e.point.y, 0, e.bounds.height, 100, 0), [
|
|
5676
|
-
this.value.setRawValue(new D([
|
|
5676
|
+
const i = ee(e.point.x, 0, e.bounds.width, 0, 100), p = ee(e.point.y, 0, e.bounds.height, 100, 0), [g, , , y] = this.value.rawValue.getComponents("hsv");
|
|
5677
|
+
this.value.setRawValue(new D([g, i, p, y], "hsv"), t);
|
|
5677
5678
|
}
|
|
5678
5679
|
onPointerDown_(e) {
|
|
5679
5680
|
this.handlePointerEvent_(e.data, {
|
|
@@ -5695,8 +5696,8 @@ var or = { exports: {} };
|
|
|
5695
5696
|
}
|
|
5696
5697
|
onKeyDown_(e) {
|
|
5697
5698
|
ys(e.key) && e.preventDefault();
|
|
5698
|
-
const [t, i, p,
|
|
5699
|
-
M === 0 && F === 0 || this.value.setRawValue(new D([t, i + M, p + F,
|
|
5699
|
+
const [t, i, p, g] = this.value.rawValue.getComponents("hsv"), y = ot(!1), M = me(y, Ue(e)), F = me(y, Re(e));
|
|
5700
|
+
M === 0 && F === 0 || this.value.setRawValue(new D([t, i + M, p + F, g], "hsv"), {
|
|
5700
5701
|
forceEmit: !1,
|
|
5701
5702
|
last: !1
|
|
5702
5703
|
});
|
|
@@ -5734,13 +5735,13 @@ var or = { exports: {} };
|
|
|
5734
5735
|
}),
|
|
5735
5736
|
viewProps: this.viewProps
|
|
5736
5737
|
})
|
|
5737
|
-
} : null, this.alphaIcs_ &&
|
|
5738
|
+
} : null, this.alphaIcs_ && _t({
|
|
5738
5739
|
primary: this.value,
|
|
5739
5740
|
secondary: this.alphaIcs_.text.value,
|
|
5740
5741
|
forward: (i) => i.rawValue.getComponents()[3],
|
|
5741
5742
|
backward: (i, p) => {
|
|
5742
|
-
const
|
|
5743
|
-
return
|
|
5743
|
+
const g = i.rawValue.getComponents();
|
|
5744
|
+
return g[3] = p.rawValue, new D(g, i.rawValue.mode);
|
|
5744
5745
|
}
|
|
5745
5746
|
}), this.textC_ = new jo(e, {
|
|
5746
5747
|
colorType: t.colorType,
|
|
@@ -5813,13 +5814,13 @@ var or = { exports: {} };
|
|
|
5813
5814
|
value: this.value,
|
|
5814
5815
|
viewProps: this.viewProps
|
|
5815
5816
|
});
|
|
5816
|
-
p.view.allFocusableElements.forEach((
|
|
5817
|
-
|
|
5818
|
-
}), this.pickerC_ = p, this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(p.view.element),
|
|
5817
|
+
p.view.allFocusableElements.forEach((g) => {
|
|
5818
|
+
g.addEventListener("blur", this.onPopupChildBlur_), g.addEventListener("keydown", this.onPopupChildKeydown_);
|
|
5819
|
+
}), this.pickerC_ = p, this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(p.view.element), _t({
|
|
5819
5820
|
primary: this.foldable_.value("expanded"),
|
|
5820
5821
|
secondary: this.popC_.shows,
|
|
5821
|
-
forward: (
|
|
5822
|
-
backward: (
|
|
5822
|
+
forward: (g) => g.rawValue,
|
|
5823
|
+
backward: (g, y) => y.rawValue
|
|
5823
5824
|
})) : this.view.pickerElement && (this.view.pickerElement.appendChild(this.pickerC_.view.element), B(this.foldable_, this.view.pickerElement));
|
|
5824
5825
|
}
|
|
5825
5826
|
get textController() {
|
|
@@ -5900,7 +5901,7 @@ var or = { exports: {} };
|
|
|
5900
5901
|
}
|
|
5901
5902
|
function Bi(n) {
|
|
5902
5903
|
var e;
|
|
5903
|
-
return !!(
|
|
5904
|
+
return !!(n != null && n.alpha || !((e = n == null ? void 0 : n.color) === null || e === void 0) && e.alpha);
|
|
5904
5905
|
}
|
|
5905
5906
|
function ra(n) {
|
|
5906
5907
|
return n ? (e) => Ri(e, "0x") : (e) => Mr(e, "0x");
|
|
@@ -5929,10 +5930,10 @@ var or = { exports: {} };
|
|
|
5929
5930
|
const e = Bi(n.params), t = "expanded" in n.params ? n.params.expanded : void 0, i = "picker" in n.params ? n.params.picker : void 0;
|
|
5930
5931
|
return new ji(n.document, {
|
|
5931
5932
|
colorType: "int",
|
|
5932
|
-
expanded: t
|
|
5933
|
+
expanded: t ?? !1,
|
|
5933
5934
|
formatter: ra(e),
|
|
5934
5935
|
parser: Vi("int"),
|
|
5935
|
-
pickerLayout: i
|
|
5936
|
+
pickerLayout: i ?? "popup",
|
|
5936
5937
|
supportsAlpha: e,
|
|
5937
5938
|
value: n.value,
|
|
5938
5939
|
viewProps: n.viewProps
|
|
@@ -5967,13 +5968,13 @@ var or = { exports: {} };
|
|
|
5967
5968
|
},
|
|
5968
5969
|
controller: (n) => {
|
|
5969
5970
|
var e;
|
|
5970
|
-
const t = D.isRgbaColorObject(n.initialValue), i = "expanded" in n.params ? n.params.expanded : void 0, p = "picker" in n.params ? n.params.picker : void 0,
|
|
5971
|
+
const t = D.isRgbaColorObject(n.initialValue), i = "expanded" in n.params ? n.params.expanded : void 0, p = "picker" in n.params ? n.params.picker : void 0, g = (e = $t(n.params)) !== null && e !== void 0 ? e : "int";
|
|
5971
5972
|
return new ji(n.document, {
|
|
5972
|
-
colorType:
|
|
5973
|
-
expanded: i
|
|
5974
|
-
formatter: pa(t,
|
|
5975
|
-
parser: Vi(
|
|
5976
|
-
pickerLayout: p
|
|
5973
|
+
colorType: g,
|
|
5974
|
+
expanded: i ?? !1,
|
|
5975
|
+
formatter: pa(t, g),
|
|
5976
|
+
parser: Vi(g),
|
|
5977
|
+
pickerLayout: p ?? "popup",
|
|
5977
5978
|
supportsAlpha: t,
|
|
5978
5979
|
value: n.value,
|
|
5979
5980
|
viewProps: n.viewProps
|
|
@@ -6020,10 +6021,10 @@ var or = { exports: {} };
|
|
|
6020
6021
|
const i = "expanded" in n.params ? n.params.expanded : void 0, p = "picker" in n.params ? n.params.picker : void 0;
|
|
6021
6022
|
return new ji(n.document, {
|
|
6022
6023
|
colorType: e.type,
|
|
6023
|
-
expanded: i
|
|
6024
|
+
expanded: i ?? !1,
|
|
6024
6025
|
formatter: t,
|
|
6025
6026
|
parser: Vi(e.type),
|
|
6026
|
-
pickerLayout: p
|
|
6027
|
+
pickerLayout: p ?? "popup",
|
|
6027
6028
|
supportsAlpha: e.alpha,
|
|
6028
6029
|
value: n.value,
|
|
6029
6030
|
viewProps: n.viewProps
|
|
@@ -6036,8 +6037,8 @@ var or = { exports: {} };
|
|
|
6036
6037
|
}
|
|
6037
6038
|
constrain(e) {
|
|
6038
6039
|
const t = this.asm_.toComponents(e).map((i, p) => {
|
|
6039
|
-
var
|
|
6040
|
-
return (y = (
|
|
6040
|
+
var g, y;
|
|
6041
|
+
return (y = (g = this.components[p]) === null || g === void 0 ? void 0 : g.constrain(i)) !== null && y !== void 0 ? y : i;
|
|
6041
6042
|
});
|
|
6042
6043
|
return this.asm_.fromComponents(t);
|
|
6043
6044
|
}
|
|
@@ -6066,12 +6067,12 @@ var or = { exports: {} };
|
|
|
6066
6067
|
class zi {
|
|
6067
6068
|
constructor(e, t) {
|
|
6068
6069
|
this.value = t.value, this.viewProps = t.viewProps, this.acs_ = t.axes.map((i, p) => ma(e, t, p)), this.acs_.forEach((i, p) => {
|
|
6069
|
-
|
|
6070
|
+
_t({
|
|
6070
6071
|
primary: this.value,
|
|
6071
6072
|
secondary: i.value,
|
|
6072
|
-
forward: (
|
|
6073
|
-
backward: (
|
|
6074
|
-
const M = t.assembly.toComponents(
|
|
6073
|
+
forward: (g) => t.assembly.toComponents(g.rawValue)[p],
|
|
6074
|
+
backward: (g, y) => {
|
|
6075
|
+
const M = t.assembly.toComponents(g.rawValue);
|
|
6075
6076
|
return M[p] = y.rawValue, t.assembly.fromComponents(M);
|
|
6076
6077
|
}
|
|
6077
6078
|
});
|
|
@@ -6081,10 +6082,10 @@ var or = { exports: {} };
|
|
|
6081
6082
|
}
|
|
6082
6083
|
}
|
|
6083
6084
|
function Nr(n, e) {
|
|
6084
|
-
return "step" in n && !
|
|
6085
|
+
return "step" in n && !_(n.step) ? new he(n.step, e) : null;
|
|
6085
6086
|
}
|
|
6086
6087
|
function Ir(n) {
|
|
6087
|
-
return "max" in n && !
|
|
6088
|
+
return "max" in n && !_(n.max) || "min" in n && !_(n.min) ? new Se({
|
|
6088
6089
|
max: n.max,
|
|
6089
6090
|
min: n.min
|
|
6090
6091
|
}) : null;
|
|
@@ -6094,8 +6095,8 @@ var or = { exports: {} };
|
|
|
6094
6095
|
i && t.push(i);
|
|
6095
6096
|
const p = Ir(n);
|
|
6096
6097
|
p && t.push(p);
|
|
6097
|
-
const
|
|
6098
|
-
return
|
|
6098
|
+
const g = Hn(n.options);
|
|
6099
|
+
return g && t.push(g), new Ze(t);
|
|
6099
6100
|
}
|
|
6100
6101
|
function fa(n) {
|
|
6101
6102
|
const e = n ? Q(n, Se) : null;
|
|
@@ -6103,9 +6104,9 @@ var or = { exports: {} };
|
|
|
6103
6104
|
}
|
|
6104
6105
|
function ba(n) {
|
|
6105
6106
|
const [e, t] = fa(n);
|
|
6106
|
-
return [e
|
|
6107
|
+
return [e ?? 0, t ?? 100];
|
|
6107
6108
|
}
|
|
6108
|
-
const
|
|
6109
|
+
const ga = {
|
|
6109
6110
|
id: "input-number",
|
|
6110
6111
|
type: "input",
|
|
6111
6112
|
accept: (n, e) => {
|
|
@@ -6139,7 +6140,7 @@ var or = { exports: {} };
|
|
|
6139
6140
|
value: i,
|
|
6140
6141
|
viewProps: n.viewProps
|
|
6141
6142
|
});
|
|
6142
|
-
const
|
|
6143
|
+
const g = (t = "format" in n.params ? n.params.format : void 0) !== null && t !== void 0 ? t : se(un(p, i.rawValue));
|
|
6143
6144
|
if (p && Q(p, Se)) {
|
|
6144
6145
|
const [y, M] = ba(p);
|
|
6145
6146
|
return new pn(n.document, {
|
|
@@ -6151,7 +6152,7 @@ var or = { exports: {} };
|
|
|
6151
6152
|
}),
|
|
6152
6153
|
textProps: j.fromObject({
|
|
6153
6154
|
draggingScale: Ct(p, i.rawValue),
|
|
6154
|
-
formatter:
|
|
6155
|
+
formatter: g
|
|
6155
6156
|
}),
|
|
6156
6157
|
value: i,
|
|
6157
6158
|
viewProps: n.viewProps
|
|
@@ -6162,7 +6163,7 @@ var or = { exports: {} };
|
|
|
6162
6163
|
parser: Be,
|
|
6163
6164
|
props: j.fromObject({
|
|
6164
6165
|
draggingScale: Ct(p, i.rawValue),
|
|
6165
|
-
formatter:
|
|
6166
|
+
formatter: g
|
|
6166
6167
|
}),
|
|
6167
6168
|
value: i,
|
|
6168
6169
|
viewProps: n.viewProps
|
|
@@ -6177,7 +6178,7 @@ var or = { exports: {} };
|
|
|
6177
6178
|
return [this.x, this.y];
|
|
6178
6179
|
}
|
|
6179
6180
|
static isObject(e) {
|
|
6180
|
-
if (
|
|
6181
|
+
if (_(e))
|
|
6181
6182
|
return !1;
|
|
6182
6183
|
const t = e.x, i = e.y;
|
|
6183
6184
|
return !(typeof t != "number" || typeof i != "number");
|
|
@@ -6196,15 +6197,15 @@ var or = { exports: {} };
|
|
|
6196
6197
|
toComponents: (n) => n.getComponents(),
|
|
6197
6198
|
fromComponents: (n) => new Pt(...n)
|
|
6198
6199
|
}, mn = O("p2d");
|
|
6199
|
-
class
|
|
6200
|
+
class _a {
|
|
6200
6201
|
constructor(e, t) {
|
|
6201
6202
|
this.element = e.createElement("div"), this.element.classList.add(mn()), t.viewProps.bindClassModifiers(this.element), te(t.expanded, J(this.element, mn(void 0, "expanded")));
|
|
6202
6203
|
const i = e.createElement("div");
|
|
6203
6204
|
i.classList.add(mn("h")), this.element.appendChild(i);
|
|
6204
6205
|
const p = e.createElement("button");
|
|
6205
6206
|
p.classList.add(mn("b")), p.appendChild($e(e, "p2dpad")), t.viewProps.bindDisabled(p), i.appendChild(p), this.buttonElement = p;
|
|
6206
|
-
const
|
|
6207
|
-
if (
|
|
6207
|
+
const g = e.createElement("div");
|
|
6208
|
+
if (g.classList.add(mn("t")), i.appendChild(g), this.textElement = g, t.pickerLayout === "inline") {
|
|
6208
6209
|
const y = e.createElement("div");
|
|
6209
6210
|
y.classList.add(mn("p")), this.element.appendChild(y), this.pickerElement = y;
|
|
6210
6211
|
} else
|
|
@@ -6219,8 +6220,8 @@ var or = { exports: {} };
|
|
|
6219
6220
|
i.classList.add(kt("p")), t.viewProps.bindTabIndex(i), this.element.appendChild(i), this.padElement = i;
|
|
6220
6221
|
const p = e.createElementNS(Ee, "svg");
|
|
6221
6222
|
p.classList.add(kt("g")), this.padElement.appendChild(p), this.svgElem_ = p;
|
|
6222
|
-
const
|
|
6223
|
-
|
|
6223
|
+
const g = e.createElementNS(Ee, "line");
|
|
6224
|
+
g.classList.add(kt("ax")), g.setAttributeNS(null, "x1", "0"), g.setAttributeNS(null, "y1", "50%"), g.setAttributeNS(null, "x2", "100%"), g.setAttributeNS(null, "y2", "50%"), this.svgElem_.appendChild(g);
|
|
6224
6225
|
const y = e.createElementNS(Ee, "line");
|
|
6225
6226
|
y.classList.add(kt("ax")), y.setAttributeNS(null, "x1", "50%"), y.setAttributeNS(null, "y1", "0"), y.setAttributeNS(null, "x2", "50%"), y.setAttributeNS(null, "y2", "100%"), this.svgElem_.appendChild(y);
|
|
6226
6227
|
const M = e.createElementNS(Ee, "line");
|
|
@@ -6232,7 +6233,7 @@ var or = { exports: {} };
|
|
|
6232
6233
|
return [this.padElement];
|
|
6233
6234
|
}
|
|
6234
6235
|
update_() {
|
|
6235
|
-
const [e, t] = this.value.rawValue.getComponents(), i = this.maxValue_, p = ee(e, -i, +i, 0, 100),
|
|
6236
|
+
const [e, t] = this.value.rawValue.getComponents(), i = this.maxValue_, p = ee(e, -i, +i, 0, 100), g = ee(t, -i, +i, 0, 100), y = this.invertsY_ ? 100 - g : g;
|
|
6236
6237
|
this.lineElem_.setAttributeNS(null, "x2", `${p}%`), this.lineElem_.setAttributeNS(null, "y2", `${y}%`), this.markerElem_.style.left = `${p}%`, this.markerElem_.style.top = `${y}%`;
|
|
6237
6238
|
}
|
|
6238
6239
|
onValueChange_() {
|
|
@@ -6261,8 +6262,8 @@ var or = { exports: {} };
|
|
|
6261
6262
|
handlePointerEvent_(e, t) {
|
|
6262
6263
|
if (!e.point)
|
|
6263
6264
|
return;
|
|
6264
|
-
const i = this.maxValue_, p = ee(e.point.x, 0, e.bounds.width, -i, +i),
|
|
6265
|
-
this.value.setRawValue(new Pt(p,
|
|
6265
|
+
const i = this.maxValue_, p = ee(e.point.x, 0, e.bounds.width, -i, +i), g = ee(this.invertsY_ ? e.bounds.height - e.point.y : e.point.y, 0, e.bounds.height, -i, +i);
|
|
6266
|
+
this.value.setRawValue(new Pt(p, g), t);
|
|
6266
6267
|
}
|
|
6267
6268
|
onPointerDown_(e) {
|
|
6268
6269
|
this.handlePointerEvent_(e.data, {
|
|
@@ -6304,7 +6305,7 @@ var or = { exports: {} };
|
|
|
6304
6305
|
this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.onPadButtonBlur_ = this.onPadButtonBlur_.bind(this), this.onPadButtonClick_ = this.onPadButtonClick_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.foldable_ = Fe.create(t.expanded), this.popC_ = t.pickerLayout === "popup" ? new Nn(e, {
|
|
6305
6306
|
viewProps: this.viewProps
|
|
6306
6307
|
}) : null;
|
|
6307
|
-
const
|
|
6308
|
+
const g = new xa(e, {
|
|
6308
6309
|
baseSteps: [t.axes[0].baseStep, t.axes[1].baseStep],
|
|
6309
6310
|
invertsY: t.invertsY,
|
|
6310
6311
|
layout: t.pickerLayout,
|
|
@@ -6312,19 +6313,19 @@ var or = { exports: {} };
|
|
|
6312
6313
|
value: this.value,
|
|
6313
6314
|
viewProps: this.viewProps
|
|
6314
6315
|
});
|
|
6315
|
-
|
|
6316
|
+
g.view.allFocusableElements.forEach((y) => {
|
|
6316
6317
|
y.addEventListener("blur", this.onPopupChildBlur_), y.addEventListener("keydown", this.onPopupChildKeydown_);
|
|
6317
|
-
}), this.pickerC_ =
|
|
6318
|
+
}), this.pickerC_ = g, this.textC_ = new zi(e, {
|
|
6318
6319
|
assembly: Or,
|
|
6319
6320
|
axes: t.axes,
|
|
6320
6321
|
parser: t.parser,
|
|
6321
6322
|
value: this.value,
|
|
6322
6323
|
viewProps: this.viewProps
|
|
6323
|
-
}), this.view = new
|
|
6324
|
+
}), this.view = new _a(e, {
|
|
6324
6325
|
expanded: this.foldable_.value("expanded"),
|
|
6325
6326
|
pickerLayout: t.pickerLayout,
|
|
6326
6327
|
viewProps: this.viewProps
|
|
6327
|
-
}), this.view.textElement.appendChild(this.textC_.view.element), (i = this.view.buttonElement) === null || i === void 0 || i.addEventListener("blur", this.onPadButtonBlur_), (p = this.view.buttonElement) === null || p === void 0 || p.addEventListener("click", this.onPadButtonClick_), this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(this.pickerC_.view.element),
|
|
6328
|
+
}), this.view.textElement.appendChild(this.textC_.view.element), (i = this.view.buttonElement) === null || i === void 0 || i.addEventListener("blur", this.onPadButtonBlur_), (p = this.view.buttonElement) === null || p === void 0 || p.addEventListener("click", this.onPadButtonClick_), this.popC_ ? (this.view.element.appendChild(this.popC_.view.element), this.popC_.view.element.appendChild(this.pickerC_.view.element), _t({
|
|
6328
6329
|
primary: this.foldable_.value("expanded"),
|
|
6329
6330
|
secondary: this.popC_.shows,
|
|
6330
6331
|
forward: (y) => y.rawValue,
|
|
@@ -6378,12 +6379,12 @@ var or = { exports: {} };
|
|
|
6378
6379
|
const p = n && Q(n, Se);
|
|
6379
6380
|
if (p)
|
|
6380
6381
|
return Math.max(Math.abs((t = p.minValue) !== null && t !== void 0 ? t : 0), Math.abs((i = p.maxValue) !== null && i !== void 0 ? i : 0));
|
|
6381
|
-
const
|
|
6382
|
-
return Math.max(Math.abs(
|
|
6382
|
+
const g = yt(n);
|
|
6383
|
+
return Math.max(Math.abs(g) * 10, Math.abs(e) * 10);
|
|
6383
6384
|
}
|
|
6384
6385
|
function ka(n, e) {
|
|
6385
|
-
const t = e instanceof Et ? e.components[0] : void 0, i = e instanceof Et ? e.components[1] : void 0, p = Fr(t, n.x),
|
|
6386
|
-
return Math.max(p,
|
|
6386
|
+
const t = e instanceof Et ? e.components[0] : void 0, i = e instanceof Et ? e.components[1] : void 0, p = Fr(t, n.x), g = Fr(i, n.y);
|
|
6387
|
+
return Math.max(p, g);
|
|
6387
6388
|
}
|
|
6388
6389
|
function jr(n, e) {
|
|
6389
6390
|
return {
|
|
@@ -6433,17 +6434,17 @@ var or = { exports: {} };
|
|
|
6433
6434
|
const e = n.document, t = n.value, i = n.constraint;
|
|
6434
6435
|
if (!(i instanceof Et))
|
|
6435
6436
|
throw L.shouldNeverHappen();
|
|
6436
|
-
const p = "expanded" in n.params ? n.params.expanded : void 0,
|
|
6437
|
+
const p = "expanded" in n.params ? n.params.expanded : void 0, g = "picker" in n.params ? n.params.picker : void 0;
|
|
6437
6438
|
return new ya(e, {
|
|
6438
6439
|
axes: [
|
|
6439
6440
|
jr(t.rawValue.x, i.components[0]),
|
|
6440
6441
|
jr(t.rawValue.y, i.components[1])
|
|
6441
6442
|
],
|
|
6442
|
-
expanded: p
|
|
6443
|
+
expanded: p ?? !1,
|
|
6443
6444
|
invertsY: Ta(n.params),
|
|
6444
6445
|
maxValue: ka(t.rawValue, i),
|
|
6445
6446
|
parser: Be,
|
|
6446
|
-
pickerLayout:
|
|
6447
|
+
pickerLayout: g ?? "popup",
|
|
6447
6448
|
value: t,
|
|
6448
6449
|
viewProps: n.viewProps
|
|
6449
6450
|
});
|
|
@@ -6457,7 +6458,7 @@ var or = { exports: {} };
|
|
|
6457
6458
|
return [this.x, this.y, this.z];
|
|
6458
6459
|
}
|
|
6459
6460
|
static isObject(e) {
|
|
6460
|
-
if (
|
|
6461
|
+
if (_(e))
|
|
6461
6462
|
return !1;
|
|
6462
6463
|
const t = e.x, i = e.y, p = e.z;
|
|
6463
6464
|
return !(typeof t != "number" || typeof i != "number" || typeof p != "number");
|
|
@@ -6550,10 +6551,10 @@ var or = { exports: {} };
|
|
|
6550
6551
|
return [this.x, this.y, this.z, this.w];
|
|
6551
6552
|
}
|
|
6552
6553
|
static isObject(e) {
|
|
6553
|
-
if (
|
|
6554
|
+
if (_(e))
|
|
6554
6555
|
return !1;
|
|
6555
|
-
const t = e.x, i = e.y, p = e.z,
|
|
6556
|
-
return !(typeof t != "number" || typeof i != "number" || typeof p != "number" || typeof
|
|
6556
|
+
const t = e.x, i = e.y, p = e.z, g = e.w;
|
|
6557
|
+
return !(typeof t != "number" || typeof i != "number" || typeof p != "number" || typeof g != "number");
|
|
6557
6558
|
}
|
|
6558
6559
|
static equals(e, t) {
|
|
6559
6560
|
return e.x === t.x && e.y === t.y && e.z === t.z && e.w === t.w;
|
|
@@ -6667,7 +6668,7 @@ var or = { exports: {} };
|
|
|
6667
6668
|
value: i,
|
|
6668
6669
|
viewProps: n.viewProps
|
|
6669
6670
|
}) : new Ut(t, {
|
|
6670
|
-
parser: (
|
|
6671
|
+
parser: (g) => g,
|
|
6671
6672
|
props: j.fromObject({
|
|
6672
6673
|
formatter: cn
|
|
6673
6674
|
}),
|
|
@@ -6770,20 +6771,20 @@ var or = { exports: {} };
|
|
|
6770
6771
|
i.classList.add(Tt("g")), i.style.height = `calc(var(--bld-us) * ${t.lineCount})`, this.element.appendChild(i), this.svgElem_ = i;
|
|
6771
6772
|
const p = e.createElementNS(Ee, "polyline");
|
|
6772
6773
|
this.svgElem_.appendChild(p), this.lineElem_ = p;
|
|
6773
|
-
const
|
|
6774
|
-
|
|
6774
|
+
const g = e.createElement("div");
|
|
6775
|
+
g.classList.add(Tt("t"), O("tt")()), this.element.appendChild(g), this.tooltipElem_ = g, t.value.emitter.on("change", this.onValueUpdate_), this.value = t.value, this.update_();
|
|
6775
6776
|
}
|
|
6776
6777
|
get graphElement() {
|
|
6777
6778
|
return this.svgElem_;
|
|
6778
6779
|
}
|
|
6779
6780
|
update_() {
|
|
6780
|
-
const e = this.svgElem_.getBoundingClientRect(), t = this.value.rawValue.length - 1, i = this.props_.get("minValue"), p = this.props_.get("maxValue"),
|
|
6781
|
+
const e = this.svgElem_.getBoundingClientRect(), t = this.value.rawValue.length - 1, i = this.props_.get("minValue"), p = this.props_.get("maxValue"), g = [];
|
|
6781
6782
|
this.value.rawValue.forEach((W, Z) => {
|
|
6782
6783
|
if (W === void 0)
|
|
6783
6784
|
return;
|
|
6784
6785
|
const lt = ee(Z, 0, t, 0, e.width), Zn = ee(W, i, p, e.height, 0);
|
|
6785
|
-
|
|
6786
|
-
}), this.lineElem_.setAttributeNS(null, "points",
|
|
6786
|
+
g.push([lt, Zn].join(","));
|
|
6787
|
+
}), this.lineElem_.setAttributeNS(null, "points", g.join(" "));
|
|
6787
6788
|
const y = this.tooltipElem_, M = this.value.rawValue[this.cursor_.rawValue];
|
|
6788
6789
|
if (M === void 0) {
|
|
6789
6790
|
y.classList.remove(Tt("t", "a"));
|
|
@@ -6837,7 +6838,7 @@ var or = { exports: {} };
|
|
|
6837
6838
|
}
|
|
6838
6839
|
}
|
|
6839
6840
|
function Gi(n) {
|
|
6840
|
-
return "format" in n && !
|
|
6841
|
+
return "format" in n && !_(n.format) ? n.format : se(2);
|
|
6841
6842
|
}
|
|
6842
6843
|
function Ga(n) {
|
|
6843
6844
|
var e;
|
|
@@ -6945,17 +6946,17 @@ var or = { exports: {} };
|
|
|
6945
6946
|
}
|
|
6946
6947
|
function Wa(n, e) {
|
|
6947
6948
|
const t = n.accept(e.target.read(), e.params);
|
|
6948
|
-
if (
|
|
6949
|
+
if (_(t))
|
|
6949
6950
|
return null;
|
|
6950
6951
|
const i = K, p = {
|
|
6951
6952
|
target: e.target,
|
|
6952
6953
|
initialValue: t.initialValue,
|
|
6953
6954
|
params: t.params
|
|
6954
|
-
},
|
|
6955
|
+
}, g = n.binding.reader(p), y = n.binding.constraint ? n.binding.constraint(p) : void 0, M = X(g(t.initialValue), {
|
|
6955
6956
|
constraint: y,
|
|
6956
6957
|
equals: n.binding.equals
|
|
6957
6958
|
}), F = new Xa({
|
|
6958
|
-
reader:
|
|
6959
|
+
reader: g,
|
|
6959
6960
|
target: e.target,
|
|
6960
6961
|
value: M,
|
|
6961
6962
|
writer: n.binding.writer(p)
|
|
@@ -6974,7 +6975,7 @@ var or = { exports: {} };
|
|
|
6974
6975
|
binding: F,
|
|
6975
6976
|
blade: De(),
|
|
6976
6977
|
props: j.fromObject({
|
|
6977
|
-
label: lt
|
|
6978
|
+
label: lt ?? e.target.key
|
|
6978
6979
|
}),
|
|
6979
6980
|
valueController: Z
|
|
6980
6981
|
});
|
|
@@ -7001,23 +7002,23 @@ var or = { exports: {} };
|
|
|
7001
7002
|
}
|
|
7002
7003
|
}
|
|
7003
7004
|
function Qa(n, e) {
|
|
7004
|
-
return e === 0 ? new us() : new Vn(n, e
|
|
7005
|
+
return e === 0 ? new us() : new Vn(n, e ?? Wn.monitor.defaultInterval);
|
|
7005
7006
|
}
|
|
7006
7007
|
function Ja(n, e) {
|
|
7007
7008
|
var t, i, p;
|
|
7008
|
-
const
|
|
7009
|
-
if (
|
|
7009
|
+
const g = K, y = n.accept(e.target.read(), e.params);
|
|
7010
|
+
if (_(y))
|
|
7010
7011
|
return null;
|
|
7011
7012
|
const M = {
|
|
7012
7013
|
target: e.target,
|
|
7013
7014
|
initialValue: y.initialValue,
|
|
7014
7015
|
params: y.params
|
|
7015
|
-
}, F = n.binding.reader(M), U = (i = (t =
|
|
7016
|
+
}, F = n.binding.reader(M), U = (i = (t = g.optional.number(e.params.bufferSize).value) !== null && t !== void 0 ? t : n.binding.defaultBufferSize && n.binding.defaultBufferSize(y.params)) !== null && i !== void 0 ? i : 1, W = g.optional.number(e.params.interval).value, Z = new Za({
|
|
7016
7017
|
reader: F,
|
|
7017
7018
|
target: e.target,
|
|
7018
7019
|
ticker: Qa(e.document, W),
|
|
7019
|
-
value:
|
|
7020
|
-
}), lt =
|
|
7020
|
+
value: _i(U)
|
|
7021
|
+
}), lt = g.optional.boolean(e.params.disabled).value, Zn = g.optional.boolean(e.params.hidden).value, Qn = n.controller({
|
|
7021
7022
|
document: e.document,
|
|
7022
7023
|
params: y.params,
|
|
7023
7024
|
value: Z.value,
|
|
@@ -7025,7 +7026,7 @@ var or = { exports: {} };
|
|
|
7025
7026
|
disabled: lt,
|
|
7026
7027
|
hidden: Zn
|
|
7027
7028
|
})
|
|
7028
|
-
}), bn = (p =
|
|
7029
|
+
}), bn = (p = g.optional.string(e.params.label).value) !== null && p !== void 0 ? p : e.target.key;
|
|
7029
7030
|
return new Xe(e.document, {
|
|
7030
7031
|
binding: Z,
|
|
7031
7032
|
blade: De(),
|
|
@@ -7055,20 +7056,20 @@ var or = { exports: {} };
|
|
|
7055
7056
|
}
|
|
7056
7057
|
createInput(e, t, i) {
|
|
7057
7058
|
const p = t.read();
|
|
7058
|
-
if (
|
|
7059
|
+
if (_(p))
|
|
7059
7060
|
throw new L({
|
|
7060
7061
|
context: {
|
|
7061
7062
|
key: t.key
|
|
7062
7063
|
},
|
|
7063
7064
|
type: "nomatchingcontroller"
|
|
7064
7065
|
});
|
|
7065
|
-
const
|
|
7066
|
+
const g = this.pluginsMap_.inputs.reduce((y, M) => y ?? Wa(M, {
|
|
7066
7067
|
document: e,
|
|
7067
7068
|
target: t,
|
|
7068
7069
|
params: i
|
|
7069
7070
|
}), null);
|
|
7070
|
-
if (
|
|
7071
|
-
return
|
|
7071
|
+
if (g)
|
|
7072
|
+
return g;
|
|
7072
7073
|
throw new L({
|
|
7073
7074
|
context: {
|
|
7074
7075
|
key: t.key
|
|
@@ -7077,7 +7078,7 @@ var or = { exports: {} };
|
|
|
7077
7078
|
});
|
|
7078
7079
|
}
|
|
7079
7080
|
createMonitor(e, t, i) {
|
|
7080
|
-
const p = this.pluginsMap_.monitors.reduce((
|
|
7081
|
+
const p = this.pluginsMap_.monitors.reduce((g, y) => g ?? Ja(y, {
|
|
7081
7082
|
document: e,
|
|
7082
7083
|
params: i,
|
|
7083
7084
|
target: t
|
|
@@ -7092,7 +7093,7 @@ var or = { exports: {} };
|
|
|
7092
7093
|
});
|
|
7093
7094
|
}
|
|
7094
7095
|
createBlade(e, t) {
|
|
7095
|
-
const i = this.pluginsMap_.blades.reduce((p,
|
|
7096
|
+
const i = this.pluginsMap_.blades.reduce((p, g) => p ?? qs(g, {
|
|
7096
7097
|
document: e,
|
|
7097
7098
|
params: t
|
|
7098
7099
|
}), null);
|
|
@@ -7112,7 +7113,7 @@ var or = { exports: {} };
|
|
|
7112
7113
|
return new nt(e);
|
|
7113
7114
|
if (e instanceof Ft)
|
|
7114
7115
|
return new Dt(e, this);
|
|
7115
|
-
const t = this.pluginsMap_.blades.reduce((i, p) => i
|
|
7116
|
+
const t = this.pluginsMap_.blades.reduce((i, p) => i ?? p.api({
|
|
7116
7117
|
controller: e,
|
|
7117
7118
|
pool: this
|
|
7118
7119
|
}), null);
|
|
@@ -7128,7 +7129,7 @@ var or = { exports: {} };
|
|
|
7128
7129
|
Va,
|
|
7129
7130
|
Da,
|
|
7130
7131
|
ja,
|
|
7131
|
-
|
|
7132
|
+
ga,
|
|
7132
7133
|
da,
|
|
7133
7134
|
ua,
|
|
7134
7135
|
aa,
|
|
@@ -7419,7 +7420,7 @@ var or = { exports: {} };
|
|
|
7419
7420
|
class pl extends rl {
|
|
7420
7421
|
constructor(e) {
|
|
7421
7422
|
var t, i;
|
|
7422
|
-
const p = e
|
|
7423
|
+
const p = e ?? {}, g = (t = p.document) !== null && t !== void 0 ? t : yn(), y = tl(), M = new ol(g, {
|
|
7423
7424
|
expanded: p.expanded,
|
|
7424
7425
|
blade: De(),
|
|
7425
7426
|
props: j.fromObject({
|
|
@@ -7427,7 +7428,7 @@ var or = { exports: {} };
|
|
|
7427
7428
|
}),
|
|
7428
7429
|
viewProps: We.create()
|
|
7429
7430
|
});
|
|
7430
|
-
super(M, y), this.pool_ = y, this.containerElem_ = (i = p.container) !== null && i !== void 0 ? i : cl(
|
|
7431
|
+
super(M, y), this.pool_ = y, this.containerElem_ = (i = p.container) !== null && i !== void 0 ? i : cl(g), this.containerElem_.appendChild(this.element), this.doc_ = g, this.usesDefaultWrapper_ = !p.container, this.setUpDefaultPlugins_();
|
|
7431
7432
|
}
|
|
7432
7433
|
get document() {
|
|
7433
7434
|
if (!this.doc_)
|
|
@@ -7453,7 +7454,7 @@ var or = { exports: {} };
|
|
|
7453
7454
|
e.css && Yr(this.document, `plugin-${e.id}`, e.css);
|
|
7454
7455
|
}
|
|
7455
7456
|
setUpDefaultPlugins_() {
|
|
7456
|
-
Yr(this.document, "default", '.tp-tbiv_b,.tp-coltxtv_ms,.tp-ckbv_i,.tp-rotv_b,.tp-fldv_b,.tp-mllv_i,.tp-sglv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-mllv_i,.tp-sglv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--mo-fg);height:var(--bld-us);scrollbar-color:currentColor transparent;scrollbar-width:thin;width:100%}.tp-mllv_i::-webkit-scrollbar,.tp-sglv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-mllv_i::-webkit-scrollbar-corner,.tp-sglv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:transparent}.tp-mllv_i::-webkit-scrollbar-thumb,.tp-sglv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:transparent solid 2px;border-radius:4px}.tp-rotv{--font-family: var(--tp-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-br: var(--tp-base-border-radius, 6px);--cnt-h-p: var(--tp-container-horizontal-padding, 4px);--cnt-v-p: var(--tp-container-vertical-padding, 4px);--elm-br: var(--tp-element-border-radius, 2px);--bld-s: var(--tp-blade-spacing, 4px);--bld-us: var(--tp-blade-unit-size, 20px);--bs-bg: var(--tp-base-background-color, #28292e);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--btn-bg: var(--tp-button-background-color, #adafb8);--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, #28292e);--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, #bbbcc4);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, #bbbcc4);--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tabv_c .tp-brkv>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-v-p))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tabv_c .tp-brkv>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--bld-s)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tabv_c .tp-brkv>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tabv_c .tp-brkv>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--elm-br);border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tabv_c .tp-brkv .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-tabv>.tp-tabv_i,.tp-fldv_c>.tp-tabv>.tp-tabv_i{border-top-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--elm-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);overflow:hidden;padding-left:var(--cnt-h-p);padding-right:calc(4px + var(--bld-us) + var(--cnt-h-p));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-h-p) + (var(--bld-us) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--elm-br);cursor:pointer;display:block;height:var(--bld-us);position:relative;width:var(--bld-us)}.tp-ckbv_w svg{bottom:0;display:block;height:16px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--bld-s);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--bld-s)}.tp-colpv_rgb{display:flex;margin-top:var(--bld-s);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-v-p);padding-top:calc(var(--cnt-v-p) + 2px);position:relative}.tp-colpv_a:before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:0}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--elm-br);outline:none;overflow:hidden;position:relative}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--bld-us)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative;width:100%}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--elm-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;pointer-events:none;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--elm-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;cursor:pointer;display:block;height:var(--bld-us);left:0;margin:0;outline:none;padding:0;position:absolute;top:0;width:var(--bld-us)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--elm-br);bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--elm-br);color:var(--lbl-fg);cursor:pointer;height:var(--bld-us);line-height:var(--bld-us);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv.tp-fldv-not .tp-fldv_b{display:none}.tp-fldv_t{padding-left:4px}.tp-fldv_c{border-left:var(--cnt-bg) solid 4px}.tp-fldv_b:hover+.tp-fldv_c{border-left-color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_c{border-left-color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_c{border-left-color:var(--cnt-bg-a)}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--bld-us)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-h-p);padding-right:var(--cnt-h-p)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:160px}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding:0 4px}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--bld-us)*3);line-height:var(--bld-us);padding:0 4px;resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--bld-s);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-p2dpv{padding-left:calc(var(--bld-us) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:6px;box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:168px;padding:var(--cnt-v-p) var(--cnt-h-p);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--bld-us);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin:auto;position:absolute;right:0;top:0}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin-bottom:auto;margin-top:auto;position:absolute;right:0;top:0}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--elm-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv.tp-v-disabled{opacity:.5}.tp-tabv_i{align-items:flex-end;display:flex;overflow:hidden}.tp-tabv.tp-tabv-nop .tp-tabv_i{height:calc(var(--bld-us) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_i::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_c{border-left:var(--cnt-bg) solid 4px;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p)}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:-2px;position:absolute;width:2px}.tp-tbiv_b{background-color:var(--cnt-bg);display:block;padding-left:calc(var(--cnt-h-p) + 4px);padding-right:calc(var(--cnt-h-p) + 4px);width:100%}.tp-tbiv_b:hover{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active{background-color:var(--cnt-bg-a)}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);opacity:.5;overflow:hidden;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-txtv{position:relative}.tp-txtv_i{padding:0 4px}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:-3px;position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--bld-us) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--elm-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) transparent transparent transparent;border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--font-family);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--bld-us) + var(--cnt-h-p));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0}.tp-rotv.tp-rotv-not .tp-rotv_b{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c,.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_i{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}'), this.pool_.getAll().forEach((e) => {
|
|
7457
|
+
Yr(this.document, "default", '.tp-tbiv_b,.tp-coltxtv_ms,.tp-ckbv_i,.tp-rotv_b,.tp-fldv_b,.tp-mllv_i,.tp-sglv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-mllv_i,.tp-sglv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--mo-fg);height:var(--bld-us);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-mllv_i::-webkit-scrollbar,.tp-sglv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-mllv_i::-webkit-scrollbar-corner,.tp-sglv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-mllv_i::-webkit-scrollbar-thumb,.tp-sglv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-rotv{--font-family: var(--tp-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-br: var(--tp-base-border-radius, 6px);--cnt-h-p: var(--tp-container-horizontal-padding, 4px);--cnt-v-p: var(--tp-container-vertical-padding, 4px);--elm-br: var(--tp-element-border-radius, 2px);--bld-s: var(--tp-blade-spacing, 4px);--bld-us: var(--tp-blade-unit-size, 20px);--bs-bg: var(--tp-base-background-color, hsl(230deg, 7%, 17%));--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--btn-bg: var(--tp-button-background-color, hsl(230deg, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230deg, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230deg, 7%, 75%));--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230deg, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tabv_c .tp-brkv>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-v-p))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tabv_c .tp-brkv>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--bld-s)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tabv_c .tp-brkv>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tabv_c .tp-brkv>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--elm-br);border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tabv_c .tp-brkv .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-tabv>.tp-tabv_i,.tp-fldv_c>.tp-tabv>.tp-tabv_i{border-top-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--elm-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);overflow:hidden;padding-left:var(--cnt-h-p);padding-right:calc(4px + var(--bld-us) + var(--cnt-h-p));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-h-p) + (var(--bld-us) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--elm-br);cursor:pointer;display:block;height:var(--bld-us);position:relative;width:var(--bld-us)}.tp-ckbv_w svg{bottom:0;display:block;height:16px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--bld-s);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--bld-s)}.tp-colpv_rgb{display:flex;margin-top:var(--bld-s);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-v-p);padding-top:calc(var(--cnt-v-p) + 2px);position:relative}.tp-colpv_a:before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:0}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--elm-br);outline:none;overflow:hidden;position:relative}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--bld-us)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative;width:100%}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--elm-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;pointer-events:none;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--elm-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;cursor:pointer;display:block;height:var(--bld-us);left:0;margin:0;outline:none;padding:0;position:absolute;top:0;width:var(--bld-us)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--elm-br);bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--elm-br);color:var(--lbl-fg);cursor:pointer;height:var(--bld-us);line-height:var(--bld-us);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv.tp-fldv-not .tp-fldv_b{display:none}.tp-fldv_t{padding-left:4px}.tp-fldv_c{border-left:var(--cnt-bg) solid 4px}.tp-fldv_b:hover+.tp-fldv_c{border-left-color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_c{border-left-color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_c{border-left-color:var(--cnt-bg-a)}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--bld-us)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-h-p);padding-right:var(--cnt-h-p)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:160px}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding:0 4px}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--bld-us)*3);line-height:var(--bld-us);padding:0 4px;resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--bld-s);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-p2dpv{padding-left:calc(var(--bld-us) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:6px;box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:168px;padding:var(--cnt-v-p) var(--cnt-h-p);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--bld-us);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin:auto;position:absolute;right:0;top:0}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin-bottom:auto;margin-top:auto;position:absolute;right:0;top:0}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--elm-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv.tp-v-disabled{opacity:.5}.tp-tabv_i{align-items:flex-end;display:flex;overflow:hidden}.tp-tabv.tp-tabv-nop .tp-tabv_i{height:calc(var(--bld-us) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_i::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_c{border-left:var(--cnt-bg) solid 4px;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p)}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:-2px;position:absolute;width:2px}.tp-tbiv_b{background-color:var(--cnt-bg);display:block;padding-left:calc(var(--cnt-h-p) + 4px);padding-right:calc(var(--cnt-h-p) + 4px);width:100%}.tp-tbiv_b:hover{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active{background-color:var(--cnt-bg-a)}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);opacity:.5;overflow:hidden;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-txtv{position:relative}.tp-txtv_i{padding:0 4px}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:-3px;position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--bld-us) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--elm-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--font-family);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--bld-us) + var(--cnt-h-p));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0}.tp-rotv.tp-rotv-not .tp-rotv_b{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c,.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_i{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}'), this.pool_.getAll().forEach((e) => {
|
|
7457
7458
|
this.embedPluginStyle_(e);
|
|
7458
7459
|
}), this.registerPlugin({
|
|
7459
7460
|
plugins: [
|
|
@@ -7465,7 +7466,7 @@ var or = { exports: {} };
|
|
|
7465
7466
|
});
|
|
7466
7467
|
}
|
|
7467
7468
|
}
|
|
7468
|
-
const ul = new a("3.1.
|
|
7469
|
+
const ul = new a("3.1.1");
|
|
7469
7470
|
u.BladeApi = d, u.ButtonApi = A, u.FolderApi = Pn, u.InputBindingApi = we, u.ListApi = Gr, u.MonitorBindingApi = nt, u.Pane = pl, u.SeparatorApi = Ln, u.SliderApi = $r, u.TabApi = cs, u.TabPageApi = Sn, u.TextApi = qr, u.TpChangeEvent = h, u.VERSION = ul, Object.defineProperty(u, "__esModule", { value: !0 });
|
|
7470
7471
|
});
|
|
7471
7472
|
})(or, or.exports);
|
|
@@ -7504,7 +7505,7 @@ var Ns = { exports: {} };
|
|
|
7504
7505
|
}
|
|
7505
7506
|
class m extends d {
|
|
7506
7507
|
constructor(s, r, c, b) {
|
|
7507
|
-
super(s), this.value = r, this.presetKey = c, this.last = b
|
|
7508
|
+
super(s), this.value = r, this.presetKey = c, this.last = b ?? !0;
|
|
7508
7509
|
}
|
|
7509
7510
|
}
|
|
7510
7511
|
function h(o) {
|
|
@@ -7563,15 +7564,15 @@ var Ns = { exports: {} };
|
|
|
7563
7564
|
}
|
|
7564
7565
|
emit(s, r) {
|
|
7565
7566
|
const c = this.observers_[s];
|
|
7566
|
-
|
|
7567
|
+
c && c.forEach((b) => {
|
|
7567
7568
|
b.handler(r);
|
|
7568
7569
|
});
|
|
7569
7570
|
}
|
|
7570
7571
|
}
|
|
7571
|
-
const
|
|
7572
|
+
const _ = "tp";
|
|
7572
7573
|
function P(o) {
|
|
7573
7574
|
return (r, c) => [
|
|
7574
|
-
|
|
7575
|
+
_,
|
|
7575
7576
|
"-",
|
|
7576
7577
|
o,
|
|
7577
7578
|
"v",
|
|
@@ -7601,7 +7602,7 @@ var Ns = { exports: {} };
|
|
|
7601
7602
|
}
|
|
7602
7603
|
function O(o, s) {
|
|
7603
7604
|
N(o, (r) => {
|
|
7604
|
-
s.textContent = r
|
|
7605
|
+
s.textContent = r ?? "";
|
|
7605
7606
|
});
|
|
7606
7607
|
}
|
|
7607
7608
|
const ie = P("btn");
|
|
@@ -7645,11 +7646,11 @@ var Ns = { exports: {} };
|
|
|
7645
7646
|
});
|
|
7646
7647
|
}
|
|
7647
7648
|
setRawValue(s, r) {
|
|
7648
|
-
const c = r
|
|
7649
|
+
const c = r ?? {
|
|
7649
7650
|
forceEmit: !1,
|
|
7650
7651
|
last: !0
|
|
7651
7652
|
}, b = this.constraint_ ? this.constraint_.constrain(s) : s;
|
|
7652
|
-
|
|
7653
|
+
this.equals_(this.rawValue_, b) && !c.forceEmit || (this.emitter.emit("beforechange", {
|
|
7653
7654
|
sender: this
|
|
7654
7655
|
}), this.rawValue_ = b, this.emitter.emit("change", {
|
|
7655
7656
|
options: c,
|
|
@@ -7672,7 +7673,7 @@ var Ns = { exports: {} };
|
|
|
7672
7673
|
});
|
|
7673
7674
|
}
|
|
7674
7675
|
setRawValue(s, r) {
|
|
7675
|
-
const c = r
|
|
7676
|
+
const c = r ?? {
|
|
7676
7677
|
forceEmit: !1,
|
|
7677
7678
|
last: !0
|
|
7678
7679
|
};
|
|
@@ -7772,11 +7773,11 @@ var Ns = { exports: {} };
|
|
|
7772
7773
|
constant: (s) => pe((r) => r === s ? s : void 0)(o),
|
|
7773
7774
|
raw: pe((s) => s)(o),
|
|
7774
7775
|
object: (s) => pe((r) => {
|
|
7775
|
-
if (
|
|
7776
|
+
if (de(r))
|
|
7776
7777
|
return be(r, s);
|
|
7777
7778
|
})(o),
|
|
7778
7779
|
array: (s) => pe((r) => {
|
|
7779
|
-
if (
|
|
7780
|
+
if (Array.isArray(r))
|
|
7780
7781
|
return ye(r, s);
|
|
7781
7782
|
})(o)
|
|
7782
7783
|
};
|
|
@@ -7795,7 +7796,7 @@ var Ns = { exports: {} };
|
|
|
7795
7796
|
function Qt() {
|
|
7796
7797
|
return ["veryfirst", "first", "last", "verylast"];
|
|
7797
7798
|
}
|
|
7798
|
-
const Jt = P(""),
|
|
7799
|
+
const Jt = P(""), ge = {
|
|
7799
7800
|
veryfirst: "vfst",
|
|
7800
7801
|
first: "fst",
|
|
7801
7802
|
last: "lst",
|
|
@@ -7807,9 +7808,9 @@ var Ns = { exports: {} };
|
|
|
7807
7808
|
const r = this.view.element;
|
|
7808
7809
|
this.blade.value("positions").emitter.on("change", () => {
|
|
7809
7810
|
Qt().forEach((c) => {
|
|
7810
|
-
r.classList.remove(Jt(void 0,
|
|
7811
|
+
r.classList.remove(Jt(void 0, ge[c]));
|
|
7811
7812
|
}), this.blade.get("positions").forEach((c) => {
|
|
7812
|
-
r.classList.add(Jt(void 0,
|
|
7813
|
+
r.classList.add(Jt(void 0, ge[c]));
|
|
7813
7814
|
});
|
|
7814
7815
|
}), this.viewProps.handleDispose(() => {
|
|
7815
7816
|
pt(r);
|
|
@@ -7950,7 +7951,7 @@ var Ns = { exports: {} };
|
|
|
7950
7951
|
}
|
|
7951
7952
|
static create(s) {
|
|
7952
7953
|
var r, c;
|
|
7953
|
-
const b = s
|
|
7954
|
+
const b = s ?? {}, x = {
|
|
7954
7955
|
disabled: (r = b.disabled) !== null && r !== void 0 ? r : !1,
|
|
7955
7956
|
disposed: !1,
|
|
7956
7957
|
hidden: (c = b.hidden) !== null && c !== void 0 ? c : !1
|
|
@@ -8145,7 +8146,7 @@ var Ns = { exports: {} };
|
|
|
8145
8146
|
].join(" ");
|
|
8146
8147
|
}
|
|
8147
8148
|
}
|
|
8148
|
-
const
|
|
8149
|
+
const _e = {
|
|
8149
8150
|
"+": (o) => o,
|
|
8150
8151
|
"-": (o) => -o,
|
|
8151
8152
|
"~": (o) => ~o
|
|
@@ -8155,7 +8156,7 @@ var Ns = { exports: {} };
|
|
|
8155
8156
|
this.operator = s, this.expression = r;
|
|
8156
8157
|
}
|
|
8157
8158
|
evaluate() {
|
|
8158
|
-
const s =
|
|
8159
|
+
const s = _e[this.operator];
|
|
8159
8160
|
if (!s)
|
|
8160
8161
|
throw new Error(`unexpected unary operator: '${this.operator}`);
|
|
8161
8162
|
return s(this.expression.evaluate());
|
|
@@ -8671,7 +8672,7 @@ var Ns = { exports: {} };
|
|
|
8671
8672
|
}
|
|
8672
8673
|
function Nn(o) {
|
|
8673
8674
|
const s = ds(o);
|
|
8674
|
-
return s
|
|
8675
|
+
return s ?? 1;
|
|
8675
8676
|
}
|
|
8676
8677
|
function hs(o, s) {
|
|
8677
8678
|
var r;
|
|
@@ -9053,10 +9054,10 @@ var Ns = { exports: {} };
|
|
|
9053
9054
|
function Me(o, s, r) {
|
|
9054
9055
|
return o * (1 - r) + s * r;
|
|
9055
9056
|
}
|
|
9056
|
-
const
|
|
9057
|
+
const gs = 20, vi = 1e-3, Dn = 100;
|
|
9057
9058
|
function fi(o, s) {
|
|
9058
9059
|
let r = 0.25, c = 0.5, b = -1;
|
|
9059
|
-
for (let x = 0; x <
|
|
9060
|
+
for (let x = 0; x < gs; x++) {
|
|
9060
9061
|
const [T, R] = o.curve(c);
|
|
9061
9062
|
if (c += r * (T < s ? 1 : -1), b = R, r *= 0.5, Math.abs(s - T) < vi)
|
|
9062
9063
|
break;
|
|
@@ -9102,7 +9103,7 @@ var Ns = { exports: {} };
|
|
|
9102
9103
|
return [this.comps_[0], this.comps_[1], this.comps_[2], this.comps_[3]];
|
|
9103
9104
|
}
|
|
9104
9105
|
}
|
|
9105
|
-
const
|
|
9106
|
+
const _s = {
|
|
9106
9107
|
toComponents: (o) => o.toObject(),
|
|
9107
9108
|
fromComponents: (o) => new je(...o)
|
|
9108
9109
|
};
|
|
@@ -9121,10 +9122,10 @@ var Ns = { exports: {} };
|
|
|
9121
9122
|
const x = Number(b);
|
|
9122
9123
|
return isNaN(x) ? null : [...c, x];
|
|
9123
9124
|
}, []);
|
|
9124
|
-
return new je(...r
|
|
9125
|
+
return new je(...r ?? Fn);
|
|
9125
9126
|
}
|
|
9126
9127
|
const se = P("cbz");
|
|
9127
|
-
class
|
|
9128
|
+
class gi {
|
|
9128
9129
|
constructor(s, r) {
|
|
9129
9130
|
this.element = s.createElement("div"), this.element.classList.add(se()), r.viewProps.bindClassModifiers(this.element), r.foldable.bindExpandedClass(this.element, se(void 0, "expanded")), A(r.foldable, "completed", G(this.element, se(void 0, "cpl")));
|
|
9130
9131
|
const c = s.createElement("div");
|
|
@@ -9141,21 +9142,21 @@ var Ns = { exports: {} };
|
|
|
9141
9142
|
this.pickerElement = null;
|
|
9142
9143
|
}
|
|
9143
9144
|
}
|
|
9144
|
-
const
|
|
9145
|
+
const gt = P("cbzp");
|
|
9145
9146
|
class ws {
|
|
9146
9147
|
constructor(s, r) {
|
|
9147
|
-
this.element = s.createElement("div"), this.element.classList.add(
|
|
9148
|
+
this.element = s.createElement("div"), this.element.classList.add(gt()), r.viewProps.bindClassModifiers(this.element);
|
|
9148
9149
|
const c = s.createElement("div");
|
|
9149
|
-
c.classList.add(
|
|
9150
|
+
c.classList.add(gt("g")), this.element.appendChild(c), this.graphElement = c;
|
|
9150
9151
|
const b = s.createElement("div");
|
|
9151
|
-
b.classList.add(
|
|
9152
|
+
b.classList.add(gt("t")), this.element.appendChild(b), this.textElement = b;
|
|
9152
9153
|
}
|
|
9153
9154
|
}
|
|
9154
9155
|
function cn(o, s) {
|
|
9155
9156
|
const r = new MutationObserver((b) => {
|
|
9156
9157
|
for (const x of b)
|
|
9157
9158
|
x.type === "childList" && x.addedNodes.forEach((T) => {
|
|
9158
|
-
|
|
9159
|
+
T.contains(T) && (s(), r.disconnect());
|
|
9159
9160
|
});
|
|
9160
9161
|
}), c = o.ownerDocument;
|
|
9161
9162
|
r.observe(c.body, {
|
|
@@ -9165,7 +9166,7 @@ var Ns = { exports: {} };
|
|
|
9165
9166
|
});
|
|
9166
9167
|
}
|
|
9167
9168
|
const ze = P("cbzg");
|
|
9168
|
-
function
|
|
9169
|
+
function _i(o, s) {
|
|
9169
9170
|
return (r) => s(o(r));
|
|
9170
9171
|
}
|
|
9171
9172
|
class wi {
|
|
@@ -9186,7 +9187,7 @@ var Ns = { exports: {} };
|
|
|
9186
9187
|
], this.vectorElems_.forEach((R) => {
|
|
9187
9188
|
R.classList.add(ze("v")), this.svgElem_.appendChild(R);
|
|
9188
9189
|
}), this.value_ = r.value, this.value_.emitter.on("change", this.onValueChange_.bind(this)), this.sel_ = r.selection, this.handleElems_.forEach((R, D) => {
|
|
9189
|
-
N(this.sel_,
|
|
9190
|
+
N(this.sel_, _i((le) => le === D, G(R, ze("h", "sel"))));
|
|
9190
9191
|
}), cn(this.element, () => {
|
|
9191
9192
|
this.refresh();
|
|
9192
9193
|
});
|
|
@@ -9234,7 +9235,7 @@ var Ns = { exports: {} };
|
|
|
9234
9235
|
this.refresh();
|
|
9235
9236
|
}
|
|
9236
9237
|
}
|
|
9237
|
-
const xs = 24,
|
|
9238
|
+
const xs = 24, _t = 400, me = 1e3, Re = P("cbzprv");
|
|
9238
9239
|
class Ue {
|
|
9239
9240
|
constructor(s, r) {
|
|
9240
9241
|
this.stopped_ = !0, this.startTime_ = -1, this.onDispose_ = this.onDispose_.bind(this), this.onTimer_ = this.onTimer_.bind(this), this.onValueChange_ = this.onValueChange_.bind(this), this.element = s.createElement("div"), this.element.classList.add(Re()), r.viewProps.bindClassModifiers(this.element);
|
|
@@ -9248,7 +9249,7 @@ var Ns = { exports: {} };
|
|
|
9248
9249
|
});
|
|
9249
9250
|
}
|
|
9250
9251
|
play() {
|
|
9251
|
-
this.stop(), this.updateMarker_(0), this.markerElem_.classList.add(Re("m", "a")), this.startTime_ = new Date().getTime() +
|
|
9252
|
+
this.stop(), this.updateMarker_(0), this.markerElem_.classList.add(Re("m", "a")), this.startTime_ = new Date().getTime() + _t, this.stopped_ = !1, requestAnimationFrame(this.onTimer_);
|
|
9252
9253
|
}
|
|
9253
9254
|
stop() {
|
|
9254
9255
|
this.stopped_ = !0, this.markerElem_.classList.remove(Re("m", "a"));
|
|
@@ -9272,7 +9273,7 @@ var Ns = { exports: {} };
|
|
|
9272
9273
|
if (this.startTime_ === null)
|
|
9273
9274
|
return;
|
|
9274
9275
|
const s = new Date().getTime() - this.startTime_, r = s / me;
|
|
9275
|
-
this.updateMarker_(r), s > me +
|
|
9276
|
+
this.updateMarker_(r), s > me + _t && this.stop(), this.stopped_ || requestAnimationFrame(this.onTimer_);
|
|
9276
9277
|
}
|
|
9277
9278
|
onValueChange_() {
|
|
9278
9279
|
this.refresh(), this.play();
|
|
@@ -9323,14 +9324,14 @@ var Ns = { exports: {} };
|
|
|
9323
9324
|
}
|
|
9324
9325
|
onPointerMove_(s) {
|
|
9325
9326
|
const r = s.data;
|
|
9326
|
-
|
|
9327
|
+
r.point && this.updateValue_(r.point, s.shiftKey, {
|
|
9327
9328
|
forceEmit: !1,
|
|
9328
9329
|
last: !1
|
|
9329
9330
|
});
|
|
9330
9331
|
}
|
|
9331
9332
|
onPointerUp_(s) {
|
|
9332
9333
|
const r = s.data;
|
|
9333
|
-
|
|
9334
|
+
r.point && this.updateValue_(r.point, s.shiftKey, {
|
|
9334
9335
|
forceEmit: !0,
|
|
9335
9336
|
last: !0
|
|
9336
9337
|
});
|
|
@@ -9363,7 +9364,7 @@ var Ns = { exports: {} };
|
|
|
9363
9364
|
}), this.view.graphElement.appendChild(this.gc_.view.element);
|
|
9364
9365
|
const c = Object.assign(Object.assign({}, r.axis), { constraint: new ht({ max: 1, min: 0 }) }), b = Object.assign(Object.assign({}, r.axis), { constraint: void 0 });
|
|
9365
9366
|
this.tc_ = new On(s, {
|
|
9366
|
-
assembly:
|
|
9367
|
+
assembly: _s,
|
|
9367
9368
|
axes: [c, b, c, b],
|
|
9368
9369
|
parser: jt,
|
|
9369
9370
|
value: this.value,
|
|
@@ -9382,7 +9383,7 @@ var Ns = { exports: {} };
|
|
|
9382
9383
|
}
|
|
9383
9384
|
class ee {
|
|
9384
9385
|
constructor(s, r) {
|
|
9385
|
-
this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = r.value, this.viewProps = r.viewProps, this.foldable_ = yn(r.expanded), this.view = new
|
|
9386
|
+
this.onButtonBlur_ = this.onButtonBlur_.bind(this), this.onButtonClick_ = this.onButtonClick_.bind(this), this.onPopupChildBlur_ = this.onPopupChildBlur_.bind(this), this.onPopupChildKeydown_ = this.onPopupChildKeydown_.bind(this), this.value = r.value, this.viewProps = r.viewProps, this.foldable_ = yn(r.expanded), this.view = new gi(s, {
|
|
9386
9387
|
foldable: this.foldable_,
|
|
9387
9388
|
pickerLayout: r.pickerLayout,
|
|
9388
9389
|
viewProps: this.viewProps
|
|
@@ -9428,12 +9429,12 @@ var Ns = { exports: {} };
|
|
|
9428
9429
|
c && r.contains(c) || c && c === this.view.buttonElement && !en(r.ownerDocument) || (this.popC_.shows.rawValue = !1);
|
|
9429
9430
|
}
|
|
9430
9431
|
onPopupChildKeydown_(s) {
|
|
9431
|
-
|
|
9432
|
+
this.popC_ && s.key === "Escape" && (this.popC_.shows.rawValue = !1);
|
|
9432
9433
|
}
|
|
9433
9434
|
}
|
|
9434
9435
|
function Cs() {
|
|
9435
9436
|
return new si({
|
|
9436
|
-
assembly:
|
|
9437
|
+
assembly: _s,
|
|
9437
9438
|
components: [0, 1, 2, 3].map((o) => o % 2 === 0 ? new ht({
|
|
9438
9439
|
min: 0,
|
|
9439
9440
|
max: 1
|
|
@@ -9576,7 +9577,7 @@ var Ns = { exports: {} };
|
|
|
9576
9577
|
}
|
|
9577
9578
|
}
|
|
9578
9579
|
function yi(o, s) {
|
|
9579
|
-
return s === 0 ? new Ye() : new En(o, s
|
|
9580
|
+
return s === 0 ? new Ye() : new En(o, s ?? ai.monitor.defaultInterval);
|
|
9580
9581
|
}
|
|
9581
9582
|
const Un = {
|
|
9582
9583
|
id: "fpsgraph",
|
|
@@ -9933,7 +9934,7 @@ var Ns = { exports: {} };
|
|
|
9933
9934
|
}
|
|
9934
9935
|
this.value = r.value, N(this.value, (x) => {
|
|
9935
9936
|
const T = this.findCellByValue(x);
|
|
9936
|
-
|
|
9937
|
+
T && (T.view.inputElement.checked = !0);
|
|
9937
9938
|
}), this.viewProps = Ae.create(), this.view = new tt(s, {
|
|
9938
9939
|
viewProps: this.viewProps,
|
|
9939
9940
|
viewName: "radgrid"
|
|
@@ -10100,22 +10101,23 @@ const tp = ar({
|
|
|
10100
10101
|
bevelThickness: { default: 0.05 },
|
|
10101
10102
|
bevelSize: { default: 0.02 },
|
|
10102
10103
|
bevelOffset: { default: 0 },
|
|
10103
|
-
bevelSegments: { default: 4 }
|
|
10104
|
+
bevelSegments: { default: 4 },
|
|
10105
|
+
center: { type: Boolean, default: !1 }
|
|
10104
10106
|
},
|
|
10105
10107
|
async setup(k) {
|
|
10106
10108
|
let l, u;
|
|
10107
|
-
const a = k, { extend: d } =
|
|
10109
|
+
const a = k, { extend: d } = go();
|
|
10108
10110
|
d({ TextGeometry: jc });
|
|
10109
10111
|
const m = new Bc(), h = vl(), f = Xr(() => {
|
|
10110
10112
|
var C;
|
|
10111
10113
|
return a.text ? a.text : h.default ? (C = h.default()[0].children) == null ? void 0 : C.trim() : "TresJS";
|
|
10112
|
-
}), v = ([l, u] = fl(() => new Promise((C,
|
|
10114
|
+
}), v = ([l, u] = fl(() => new Promise((C, _) => {
|
|
10113
10115
|
try {
|
|
10114
10116
|
typeof a.font == "string" ? m.load(a.font, (P) => {
|
|
10115
10117
|
C(P);
|
|
10116
10118
|
}) : C(a.font);
|
|
10117
10119
|
} catch (P) {
|
|
10118
|
-
|
|
10120
|
+
_(console.error("cientos", P));
|
|
10119
10121
|
}
|
|
10120
10122
|
})), l = await l, u(), l), w = Xr(() => ({
|
|
10121
10123
|
font: v,
|
|
@@ -10128,15 +10130,16 @@ const tp = ar({
|
|
|
10128
10130
|
bevelOffset: a.bevelOffset,
|
|
10129
10131
|
bevelSegments: a.bevelSegments
|
|
10130
10132
|
}));
|
|
10131
|
-
return (C,
|
|
10133
|
+
return (C, _) => {
|
|
10132
10134
|
const P = Zi("TresTextGeometry"), S = Zi("TresMesh");
|
|
10133
10135
|
return Lt(v) ? (Qi(), Ji(S, { key: 0 }, {
|
|
10134
10136
|
default: bl(() => [
|
|
10135
10137
|
Lt(f) ? (Qi(), Ji(P, {
|
|
10136
10138
|
key: 0,
|
|
10137
|
-
args: [Lt(f), Lt(w)]
|
|
10138
|
-
|
|
10139
|
-
|
|
10139
|
+
args: [Lt(f), Lt(w)],
|
|
10140
|
+
center: k.center
|
|
10141
|
+
}, null, 8, ["args", "center"])) : er("", !0),
|
|
10142
|
+
gl(C.$slots, "default")
|
|
10140
10143
|
]),
|
|
10141
10144
|
_: 3
|
|
10142
10145
|
})) : er("", !0);
|