@tresjs/cientos 1.2.1 → 1.2.2
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/useGLTF/component.d.ts +2 -0
- package/dist/trescientos.js +289 -288
- package/dist/trescientos.umd.cjs +8 -8
- package/package.json +3 -3
package/dist/trescientos.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/cientos
|
|
3
|
-
* version: v1.
|
|
3
|
+
* version: v1.2.2
|
|
4
4
|
* (c) 2022
|
|
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
|
|
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
|
|
8
|
+
import { inject as Rs, 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 Vs, 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 Ns, LinearFilter as ao, LinearMipmapLinearFilter as lo, RepeatWrapping as nr, PointsMaterial as Ml, Material as qi, 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 Yi, 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++) {
|
|
@@ -131,14 +131,14 @@ class lc extends _l {
|
|
|
131
131
|
let mt = E.length();
|
|
132
132
|
mt *= Math.tan(a.object.fov / 2 * Math.PI / 180), pe(2 * B * mt / oe.clientHeight, a.object.matrix), ve(2 * $ * mt / oe.clientHeight, a.object.matrix);
|
|
133
133
|
} else
|
|
134
|
-
oe && a.object instanceof
|
|
134
|
+
oe && a.object instanceof Vs && a.object.isOrthographicCamera ? (pe(B * (a.object.right - a.object.left) / a.object.zoom / oe.clientWidth, a.object.matrix), ve($ * (a.object.top - a.object.bottom) / a.object.zoom / oe.clientHeight, a.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), a.enablePan = !1);
|
|
135
135
|
};
|
|
136
136
|
})();
|
|
137
137
|
function j(E) {
|
|
138
|
-
a.object instanceof qt && a.object.isPerspectiveCamera ? P /= E : a.object instanceof
|
|
138
|
+
a.object instanceof qt && a.object.isPerspectiveCamera ? P /= E : a.object instanceof Vs && a.object.isOrthographicCamera ? (a.object.zoom = Math.max(a.minZoom, Math.min(a.maxZoom, a.object.zoom * E)), a.object.updateProjectionMatrix(), L = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), a.enableZoom = !1);
|
|
139
139
|
}
|
|
140
140
|
function pt(E) {
|
|
141
|
-
a.object instanceof qt && a.object.isPerspectiveCamera ? P *= E : a.object instanceof
|
|
141
|
+
a.object instanceof qt && a.object.isPerspectiveCamera ? P *= E : a.object instanceof Vs && a.object.isOrthographicCamera ? (a.object.zoom = Math.max(a.minZoom, Math.min(a.maxZoom, a.object.zoom / E)), a.object.updateProjectionMatrix(), L = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), a.enableZoom = !1);
|
|
142
142
|
}
|
|
143
143
|
function Qt(E) {
|
|
144
144
|
N.set(E.clientX, E.clientY);
|
|
@@ -1123,7 +1123,7 @@ const ct = {
|
|
|
1123
1123
|
CUBICSPLINE: void 0,
|
|
1124
1124
|
LINEAR: po,
|
|
1125
1125
|
STEP: Xl
|
|
1126
|
-
},
|
|
1126
|
+
}, Xi = {
|
|
1127
1127
|
OPAQUE: "OPAQUE",
|
|
1128
1128
|
MASK: "MASK",
|
|
1129
1129
|
BLEND: "BLEND"
|
|
@@ -1410,10 +1410,10 @@ class Dc {
|
|
|
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);
|
|
1412
1412
|
} else
|
|
1413
|
-
f === null ? N = new w(d.count * v) : N = new w(f, P, d.count * v), A = new
|
|
1413
|
+
f === null ? N = new w(d.count * v) : N = new w(f, P, d.count * v), A = new Ns(N, v, L);
|
|
1414
1414
|
if (d.sparse !== void 0) {
|
|
1415
1415
|
const I = so.SCALAR, G = ss[d.sparse.indices.componentType], O = d.sparse.indices.byteOffset || 0, ie = d.sparse.values.byteOffset || 0, ue = new G(h[1], O, d.sparse.count * I), te = new w(h[2], ie, d.sparse.count * v);
|
|
1416
|
-
f !== null && (A = new
|
|
1416
|
+
f !== null && (A = new Ns(A.array.slice(), A.itemSize, A.normalized));
|
|
1417
1417
|
for (let Y = 0, H = ue.length; Y < H; Y++) {
|
|
1418
1418
|
const J = ue[Y];
|
|
1419
1419
|
if (A.setX(J, te[Y * v]), v >= 2 && A.setY(J, te[Y * v + 1]), v >= 3 && A.setZ(J, te[Y * v + 2]), v >= 4 && A.setW(J, te[Y * v + 3]), v >= 5)
|
|
@@ -1498,11 +1498,11 @@ class Dc {
|
|
|
1498
1498
|
if (l.isPoints) {
|
|
1499
1499
|
const f = "PointsMaterial:" + a.uuid;
|
|
1500
1500
|
let v = this.cache.get(f);
|
|
1501
|
-
v || (v = new Ml(),
|
|
1501
|
+
v || (v = new Ml(), qi.prototype.copy.call(v, a), v.color.copy(a.color), v.map = a.map, v.sizeAttenuation = !1, this.cache.add(f, v)), a = v;
|
|
1502
1502
|
} else if (l.isLine) {
|
|
1503
1503
|
const f = "LineBasicMaterial:" + a.uuid;
|
|
1504
1504
|
let v = this.cache.get(f);
|
|
1505
|
-
v || (v = new Ll(),
|
|
1505
|
+
v || (v = new Ll(), qi.prototype.copy.call(v, a), v.color.copy(a.color), this.cache.add(f, v)), a = v;
|
|
1506
1506
|
}
|
|
1507
1507
|
if (d || m || h) {
|
|
1508
1508
|
let f = "ClonedMaterial:" + a.uuid + ":";
|
|
@@ -1538,8 +1538,8 @@ class Dc {
|
|
|
1538
1538
|
})));
|
|
1539
1539
|
}
|
|
1540
1540
|
m.doubleSided === !0 && (f.side = Sl);
|
|
1541
|
-
const C = m.alphaMode ||
|
|
1542
|
-
if (C ===
|
|
1541
|
+
const C = m.alphaMode || Xi.OPAQUE;
|
|
1542
|
+
if (C === Xi.BLEND ? (f.transparent = !0, f.depthWrite = !1) : (f.transparent = !1, C === Xi.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
1543
|
const _ = m.normalTexture.scale;
|
|
1544
1544
|
f.normalScale.set(_, _);
|
|
1545
1545
|
}
|
|
@@ -1612,7 +1612,7 @@ class Dc {
|
|
|
1612
1612
|
});
|
|
1613
1613
|
if (_.length === 1)
|
|
1614
1614
|
return _[0];
|
|
1615
|
-
const P = new
|
|
1615
|
+
const P = new Yi();
|
|
1616
1616
|
u.associations.set(P, {
|
|
1617
1617
|
meshes: l
|
|
1618
1618
|
});
|
|
@@ -1628,7 +1628,7 @@ class Dc {
|
|
|
1628
1628
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
1629
1629
|
return;
|
|
1630
1630
|
}
|
|
1631
|
-
return a.type === "perspective" ? u = new qt(Fl.radToDeg(d.yfov), d.aspectRatio || 1, d.znear || 1, d.zfar || 2e6) : a.type === "orthographic" && (u = new
|
|
1631
|
+
return a.type === "perspective" ? u = new qt(Fl.radToDeg(d.yfov), d.aspectRatio || 1, d.znear || 1, d.zfar || 2e6) : a.type === "orthographic" && (u = new Vs(-d.xmag, d.xmag, d.ymag, -d.ymag, d.znear, d.zfar)), a.name && (u.name = this.createUniqueName(a.name)), Yt(u, a), Promise.resolve(u);
|
|
1632
1632
|
}
|
|
1633
1633
|
loadSkin(l) {
|
|
1634
1634
|
const u = this.json.skins[l], a = {
|
|
@@ -1714,7 +1714,7 @@ class Dc {
|
|
|
1714
1714
|
}), Promise.all(f);
|
|
1715
1715
|
}().then(function(f) {
|
|
1716
1716
|
let v;
|
|
1717
|
-
if (m.isBone === !0 ? v = new Bl() : f.length > 1 ? v = new
|
|
1717
|
+
if (m.isBone === !0 ? v = new Bl() : f.length > 1 ? v = new Yi() : f.length === 1 ? v = f[0] : v = new zl(), v !== f[0])
|
|
1718
1718
|
for (let w = 0, C = f.length; w < C; w++)
|
|
1719
1719
|
v.add(f[w]);
|
|
1720
1720
|
if (m.name && (v.userData.name = m.name, v.name = h), Yt(v, m), m.extensions && es(a, v, m), m.matrix !== void 0) {
|
|
@@ -1726,7 +1726,7 @@ class Dc {
|
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
1728
|
loadScene(l) {
|
|
1729
|
-
const u = this.json, a = this.extensions, d = this.json.scenes[l], m = this, h = new
|
|
1729
|
+
const u = this.json, a = this.extensions, d = this.json.scenes[l], m = this, h = new Yi();
|
|
1730
1730
|
d.name && (h.name = m.createUniqueName(d.name)), Yt(h, d), d.extensions && es(a, h, d);
|
|
1731
1731
|
const f = d.nodes || [], v = [];
|
|
1732
1732
|
for (let w = 0, C = f.length; w < C; w++)
|
|
@@ -1735,7 +1735,7 @@ class Dc {
|
|
|
1735
1735
|
const w = (C) => {
|
|
1736
1736
|
const _ = /* @__PURE__ */ new Map();
|
|
1737
1737
|
for (const [P, S] of m.associations)
|
|
1738
|
-
(P instanceof
|
|
1738
|
+
(P instanceof qi || P instanceof Zr) && _.set(P, S);
|
|
1739
1739
|
return C.traverse((P) => {
|
|
1740
1740
|
const S = m.associations.get(P);
|
|
1741
1741
|
S != null && _.set(P, S);
|
|
@@ -1977,7 +1977,7 @@ var bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1977
1977
|
function Hc(k) {
|
|
1978
1978
|
return k && k.__esModule && Object.prototype.hasOwnProperty.call(k, "default") ? k.default : k;
|
|
1979
1979
|
}
|
|
1980
|
-
const
|
|
1980
|
+
const Wi = /* @__PURE__ */ new WeakMap();
|
|
1981
1981
|
class Kc extends lr {
|
|
1982
1982
|
constructor(l) {
|
|
1983
1983
|
super(l), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
|
|
@@ -2026,8 +2026,8 @@ class Kc extends lr {
|
|
|
2026
2026
|
w.BYTES_PER_ELEMENT !== void 0 && (u.attributeTypes[v] = w.name);
|
|
2027
2027
|
}
|
|
2028
2028
|
const a = JSON.stringify(u);
|
|
2029
|
-
if (
|
|
2030
|
-
const v =
|
|
2029
|
+
if (Wi.has(l)) {
|
|
2030
|
+
const v = Wi.get(l);
|
|
2031
2031
|
if (v.key === a)
|
|
2032
2032
|
return v.promise;
|
|
2033
2033
|
if (l.byteLength === 0)
|
|
@@ -2047,17 +2047,17 @@ class Kc extends lr {
|
|
|
2047
2047
|
}))).then((v) => this._createGeometry(v.geometry));
|
|
2048
2048
|
return f.catch(() => !0).then(() => {
|
|
2049
2049
|
d && m && this._releaseTask(d, m);
|
|
2050
|
-
}),
|
|
2050
|
+
}), Wi.set(l, {
|
|
2051
2051
|
key: a,
|
|
2052
2052
|
promise: f
|
|
2053
2053
|
}), f;
|
|
2054
2054
|
}
|
|
2055
2055
|
_createGeometry(l) {
|
|
2056
2056
|
const u = new co();
|
|
2057
|
-
l.index && u.setIndex(new
|
|
2057
|
+
l.index && u.setIndex(new Ns(l.index.array, 1));
|
|
2058
2058
|
for (let a = 0; a < l.attributes.length; a++) {
|
|
2059
2059
|
const d = l.attributes[a], m = d.name, h = d.array, f = d.itemSize;
|
|
2060
|
-
u.setAttribute(m, new
|
|
2060
|
+
u.setAttribute(m, new Ns(h, f));
|
|
2061
2061
|
}
|
|
2062
2062
|
return u;
|
|
2063
2063
|
}
|
|
@@ -2231,7 +2231,7 @@ function Gc() {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
function go() {
|
|
2233
2233
|
return {
|
|
2234
|
-
extend:
|
|
2234
|
+
extend: Rs("extend") || (() => {
|
|
2235
2235
|
console.warn("No extend function provided");
|
|
2236
2236
|
})
|
|
2237
2237
|
};
|
|
@@ -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 =
|
|
2249
|
+
const l = dl(null), u = Rs("camera"), a = Rs("renderer"), { extend: d } = go();
|
|
2250
2250
|
return d({ OrbitControls: lc }), (m, h) => {
|
|
2251
2251
|
var v;
|
|
2252
2252
|
const f = Zi("TresOrbitControls");
|
|
@@ -3180,13 +3180,13 @@ var or = { exports: {} };
|
|
|
3180
3180
|
}), this.rackController = e.rackController;
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
|
-
class
|
|
3183
|
+
class Os {
|
|
3184
3184
|
constructor(e, t) {
|
|
3185
3185
|
const i = O(t.viewName);
|
|
3186
3186
|
this.element = e.createElement("div"), this.element.classList.add(i()), t.viewProps.bindClassModifiers(this.element);
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3189
|
+
function Ds(n, e) {
|
|
3190
3190
|
for (let t = 0; t < n.length; t++) {
|
|
3191
3191
|
const i = n[t];
|
|
3192
3192
|
if (i instanceof Te && i.binding === e)
|
|
@@ -3194,7 +3194,7 @@ var or = { exports: {} };
|
|
|
3194
3194
|
}
|
|
3195
3195
|
return null;
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function Fs(n, e) {
|
|
3198
3198
|
for (let t = 0; t < n.length; t++) {
|
|
3199
3199
|
const i = n[t];
|
|
3200
3200
|
if (i instanceof Xe && i.binding === e)
|
|
@@ -3202,7 +3202,7 @@ var or = { exports: {} };
|
|
|
3202
3202
|
}
|
|
3203
3203
|
return null;
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function js(n, e) {
|
|
3206
3206
|
for (let t = 0; t < n.length; t++) {
|
|
3207
3207
|
const i = n[t];
|
|
3208
3208
|
if (i instanceof Pe && i.value === e)
|
|
@@ -3213,14 +3213,14 @@ var or = { exports: {} };
|
|
|
3213
3213
|
function Tn(n) {
|
|
3214
3214
|
return n instanceof Ft ? n.rack : n instanceof kn ? n.rackController.rack : null;
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function Bs(n) {
|
|
3217
3217
|
const e = Tn(n);
|
|
3218
3218
|
return e ? e.bcSet_ : null;
|
|
3219
3219
|
}
|
|
3220
|
-
class
|
|
3220
|
+
class zs {
|
|
3221
3221
|
constructor(e) {
|
|
3222
3222
|
var t;
|
|
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(
|
|
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(Bs), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
|
|
3224
3224
|
}
|
|
3225
3225
|
get children() {
|
|
3226
3226
|
return this.bcSet_.items;
|
|
@@ -3306,7 +3306,7 @@ var or = { exports: {} };
|
|
|
3306
3306
|
});
|
|
3307
3307
|
}
|
|
3308
3308
|
onChildInputChange_(e) {
|
|
3309
|
-
const t =
|
|
3309
|
+
const t = Ds(this.find(Te), e.sender);
|
|
3310
3310
|
if (!t)
|
|
3311
3311
|
throw L.alreadyDisposed();
|
|
3312
3312
|
this.emitter.emit("inputchange", {
|
|
@@ -3316,7 +3316,7 @@ var or = { exports: {} };
|
|
|
3316
3316
|
});
|
|
3317
3317
|
}
|
|
3318
3318
|
onChildMonitorUpdate_(e) {
|
|
3319
|
-
const t =
|
|
3319
|
+
const t = Fs(this.find(Xe), e.sender);
|
|
3320
3320
|
if (!t)
|
|
3321
3321
|
throw L.alreadyDisposed();
|
|
3322
3322
|
this.emitter.emit("monitorupdate", {
|
|
@@ -3325,7 +3325,7 @@ var or = { exports: {} };
|
|
|
3325
3325
|
});
|
|
3326
3326
|
}
|
|
3327
3327
|
onChildValueChange_(e) {
|
|
3328
|
-
const t =
|
|
3328
|
+
const t = js(this.find(Pe), e.sender);
|
|
3329
3329
|
if (!t)
|
|
3330
3330
|
throw L.alreadyDisposed();
|
|
3331
3331
|
this.emitter.emit("inputchange", {
|
|
@@ -3358,11 +3358,11 @@ var or = { exports: {} };
|
|
|
3358
3358
|
}
|
|
3359
3359
|
class Ft extends Ce {
|
|
3360
3360
|
constructor(e, t) {
|
|
3361
|
-
super(Object.assign(Object.assign({}, t), { view: new
|
|
3361
|
+
super(Object.assign(Object.assign({}, t), { view: new Os(e, {
|
|
3362
3362
|
viewName: "brk",
|
|
3363
3363
|
viewProps: t.viewProps
|
|
3364
3364
|
}) })), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this);
|
|
3365
|
-
const i = new
|
|
3365
|
+
const i = new zs(t.root ? void 0 : t.blade);
|
|
3366
3366
|
i.emitter.on("add", this.onRackAdd_), i.emitter.on("remove", this.onRackRemove_), this.rack = i, this.viewProps.handleDispose(() => {
|
|
3367
3367
|
for (let p = this.rack.children.length - 1; p >= 0; p--)
|
|
3368
3368
|
this.rack.children[p].viewProps.set("disposed", !0);
|
|
@@ -3376,7 +3376,7 @@ var or = { exports: {} };
|
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
3378
|
const is = O("cnt");
|
|
3379
|
-
class
|
|
3379
|
+
class Us {
|
|
3380
3380
|
constructor(e, t) {
|
|
3381
3381
|
var i;
|
|
3382
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")));
|
|
@@ -3400,7 +3400,7 @@ var or = { exports: {} };
|
|
|
3400
3400
|
root: t.root,
|
|
3401
3401
|
viewProps: t.viewProps
|
|
3402
3402
|
});
|
|
3403
|
-
super(Object.assign(Object.assign({}, t), { rackController: g, view: new
|
|
3403
|
+
super(Object.assign(Object.assign({}, t), { rackController: g, view: new Us(e, {
|
|
3404
3404
|
containerElement: g.view.element,
|
|
3405
3405
|
foldable: p,
|
|
3406
3406
|
props: t.props,
|
|
@@ -3419,7 +3419,7 @@ var or = { exports: {} };
|
|
|
3419
3419
|
this.foldable.set("expanded", !this.foldable.get("expanded"));
|
|
3420
3420
|
}
|
|
3421
3421
|
}
|
|
3422
|
-
const
|
|
3422
|
+
const Hs = {
|
|
3423
3423
|
id: "folder",
|
|
3424
3424
|
type: "blade",
|
|
3425
3425
|
accept(n) {
|
|
@@ -3456,7 +3456,7 @@ var or = { exports: {} };
|
|
|
3456
3456
|
class Ln extends d {
|
|
3457
3457
|
}
|
|
3458
3458
|
const rs = O("spr");
|
|
3459
|
-
class
|
|
3459
|
+
class Ks {
|
|
3460
3460
|
constructor(e, t) {
|
|
3461
3461
|
this.element = e.createElement("div"), this.element.classList.add(rs()), t.viewProps.bindClassModifiers(this.element);
|
|
3462
3462
|
const i = e.createElement("hr");
|
|
@@ -3465,7 +3465,7 @@ var or = { exports: {} };
|
|
|
3465
3465
|
}
|
|
3466
3466
|
class os extends Ce {
|
|
3467
3467
|
constructor(e, t) {
|
|
3468
|
-
super(Object.assign(Object.assign({}, t), { view: new
|
|
3468
|
+
super(Object.assign(Object.assign({}, t), { view: new Ks(e, {
|
|
3469
3469
|
viewProps: t.viewProps
|
|
3470
3470
|
}) }));
|
|
3471
3471
|
}
|
|
@@ -3488,9 +3488,9 @@ var or = { exports: {} };
|
|
|
3488
3488
|
api(n) {
|
|
3489
3489
|
return n.controller instanceof os ? new Ln(n.controller) : null;
|
|
3490
3490
|
}
|
|
3491
|
-
},
|
|
3491
|
+
}, Gs = O("");
|
|
3492
3492
|
function jt(n, e) {
|
|
3493
|
-
return J(n,
|
|
3493
|
+
return J(n, Gs(void 0, e));
|
|
3494
3494
|
}
|
|
3495
3495
|
class We extends j {
|
|
3496
3496
|
constructor(e) {
|
|
@@ -3525,7 +3525,7 @@ var or = { exports: {} };
|
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
3527
|
const ce = O("tbi");
|
|
3528
|
-
class
|
|
3528
|
+
class $s {
|
|
3529
3529
|
constructor(e, t) {
|
|
3530
3530
|
this.element = e.createElement("div"), this.element.classList.add(ce()), t.viewProps.bindClassModifiers(this.element), Y(t.props, "selected", (g) => {
|
|
3531
3531
|
g ? this.element.classList.add(ce(void 0, "sel")) : this.element.classList.remove(ce(void 0, "sel"));
|
|
@@ -3538,7 +3538,7 @@ var or = { exports: {} };
|
|
|
3538
3538
|
}
|
|
3539
3539
|
class on {
|
|
3540
3540
|
constructor(e, t) {
|
|
3541
|
-
this.emitter = new I(), this.onClick_ = this.onClick_.bind(this), this.props = t.props, this.viewProps = t.viewProps, this.view = new
|
|
3541
|
+
this.emitter = new I(), this.onClick_ = this.onClick_.bind(this), this.props = t.props, this.viewProps = t.viewProps, this.view = new $s(e, {
|
|
3542
3542
|
props: t.props,
|
|
3543
3543
|
viewProps: t.viewProps
|
|
3544
3544
|
}), this.view.buttonElement.addEventListener("click", this.onClick_);
|
|
@@ -3688,7 +3688,7 @@ var or = { exports: {} };
|
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
const ps = -1;
|
|
3691
|
-
class
|
|
3691
|
+
class qs {
|
|
3692
3692
|
constructor() {
|
|
3693
3693
|
this.onItemSelectedChange_ = this.onItemSelectedChange_.bind(this), this.empty = X(!0), this.selectedIndex = X(ps), this.items_ = [];
|
|
3694
3694
|
}
|
|
@@ -3737,7 +3737,7 @@ var or = { exports: {} };
|
|
|
3737
3737
|
const i = new Ft(e, {
|
|
3738
3738
|
blade: t.blade,
|
|
3739
3739
|
viewProps: t.viewProps
|
|
3740
|
-
}), p = new
|
|
3740
|
+
}), p = new qs();
|
|
3741
3741
|
super({
|
|
3742
3742
|
blade: t.blade,
|
|
3743
3743
|
rackController: i,
|
|
@@ -3798,7 +3798,7 @@ var or = { exports: {} };
|
|
|
3798
3798
|
return n.controller instanceof zt ? new cs(n.controller, n.pool) : null;
|
|
3799
3799
|
}
|
|
3800
3800
|
};
|
|
3801
|
-
function
|
|
3801
|
+
function Ys(n, e) {
|
|
3802
3802
|
const t = n.accept(e.params);
|
|
3803
3803
|
if (!t)
|
|
3804
3804
|
return null;
|
|
@@ -3902,7 +3902,7 @@ var or = { exports: {} };
|
|
|
3902
3902
|
}
|
|
3903
3903
|
}
|
|
3904
3904
|
const Rn = O("lst");
|
|
3905
|
-
class
|
|
3905
|
+
class Xs {
|
|
3906
3906
|
constructor(e, t) {
|
|
3907
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);
|
|
3908
3908
|
const i = e.createElement("select");
|
|
@@ -3924,7 +3924,7 @@ var or = { exports: {} };
|
|
|
3924
3924
|
}
|
|
3925
3925
|
class st {
|
|
3926
3926
|
constructor(e, t) {
|
|
3927
|
-
this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = t.props, this.value = t.value, this.viewProps = t.viewProps, this.view = new
|
|
3927
|
+
this.onSelectChange_ = this.onSelectChange_.bind(this), this.props = t.props, this.value = t.value, this.viewProps = t.viewProps, this.view = new Xs(e, {
|
|
3928
3928
|
props: this.props,
|
|
3929
3929
|
value: this.value,
|
|
3930
3930
|
viewProps: this.viewProps
|
|
@@ -3939,14 +3939,14 @@ var or = { exports: {} };
|
|
|
3939
3939
|
}
|
|
3940
3940
|
}
|
|
3941
3941
|
const ds = O("pop");
|
|
3942
|
-
class
|
|
3942
|
+
class Ws {
|
|
3943
3943
|
constructor(e, t) {
|
|
3944
3944
|
this.element = e.createElement("div"), this.element.classList.add(ds()), t.viewProps.bindClassModifiers(this.element), te(t.shows, J(this.element, ds(void 0, "v")));
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
class Nn {
|
|
3948
3948
|
constructor(e, t) {
|
|
3949
|
-
this.shows = X(!1), this.viewProps = t.viewProps, this.view = new
|
|
3949
|
+
this.shows = X(!1), this.viewProps = t.viewProps, this.view = new Ws(e, {
|
|
3950
3950
|
shows: this.shows,
|
|
3951
3951
|
viewProps: this.viewProps
|
|
3952
3952
|
});
|
|
@@ -3980,16 +3980,16 @@ var or = { exports: {} };
|
|
|
3980
3980
|
_(p) || (this.value.rawValue = p), this.view.refresh();
|
|
3981
3981
|
}
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function Zs(n) {
|
|
3984
3984
|
return String(n);
|
|
3985
3985
|
}
|
|
3986
3986
|
function ms(n) {
|
|
3987
3987
|
return n === "false" ? !1 : !!n;
|
|
3988
3988
|
}
|
|
3989
3989
|
function vs(n) {
|
|
3990
|
-
return
|
|
3990
|
+
return Zs(n);
|
|
3991
3991
|
}
|
|
3992
|
-
class
|
|
3992
|
+
class Qs {
|
|
3993
3993
|
constructor(e) {
|
|
3994
3994
|
this.text = e;
|
|
3995
3995
|
}
|
|
@@ -4000,7 +4000,7 @@ var or = { exports: {} };
|
|
|
4000
4000
|
return this.text;
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
|
-
const
|
|
4003
|
+
const Js = {
|
|
4004
4004
|
"**": (n, e) => Math.pow(n, e),
|
|
4005
4005
|
"*": (n, e) => n * e,
|
|
4006
4006
|
"/": (n, e) => n / e,
|
|
@@ -4014,12 +4014,12 @@ var or = { exports: {} };
|
|
|
4014
4014
|
"^": (n, e) => n ^ e,
|
|
4015
4015
|
"|": (n, e) => n | e
|
|
4016
4016
|
};
|
|
4017
|
-
class
|
|
4017
|
+
class ei {
|
|
4018
4018
|
constructor(e, t, i) {
|
|
4019
4019
|
this.left = t, this.operator = e, this.right = i;
|
|
4020
4020
|
}
|
|
4021
4021
|
evaluate() {
|
|
4022
|
-
const e =
|
|
4022
|
+
const e = Js[this.operator];
|
|
4023
4023
|
if (!e)
|
|
4024
4024
|
throw new Error(`unexpected binary operator: '${this.operator}`);
|
|
4025
4025
|
return e(this.left.evaluate(), this.right.evaluate());
|
|
@@ -4034,17 +4034,17 @@ var or = { exports: {} };
|
|
|
4034
4034
|
].join(" ");
|
|
4035
4035
|
}
|
|
4036
4036
|
}
|
|
4037
|
-
const
|
|
4037
|
+
const ti = {
|
|
4038
4038
|
"+": (n) => n,
|
|
4039
4039
|
"-": (n) => -n,
|
|
4040
4040
|
"~": (n) => ~n
|
|
4041
4041
|
};
|
|
4042
|
-
class
|
|
4042
|
+
class ni {
|
|
4043
4043
|
constructor(e, t) {
|
|
4044
4044
|
this.operator = e, this.expression = t;
|
|
4045
4045
|
}
|
|
4046
4046
|
evaluate() {
|
|
4047
|
-
const e =
|
|
4047
|
+
const e = ti[this.operator];
|
|
4048
4048
|
if (!e)
|
|
4049
4049
|
throw new Error(`unexpected unary operator: '${this.operator}`);
|
|
4050
4050
|
return e(this.expression.evaluate());
|
|
@@ -4068,7 +4068,7 @@ var or = { exports: {} };
|
|
|
4068
4068
|
const i = n.substr(e).match(/^\s+/);
|
|
4069
4069
|
return (t = i && i[0]) !== null && t !== void 0 ? t : "";
|
|
4070
4070
|
}
|
|
4071
|
-
function
|
|
4071
|
+
function si(n, e) {
|
|
4072
4072
|
const t = n.substr(e, 1);
|
|
4073
4073
|
return t.match(/^[1-9]$/) ? t : "";
|
|
4074
4074
|
}
|
|
@@ -4077,7 +4077,7 @@ var or = { exports: {} };
|
|
|
4077
4077
|
const i = n.substr(e).match(/^[0-9]+/);
|
|
4078
4078
|
return (t = i && i[0]) !== null && t !== void 0 ? t : "";
|
|
4079
4079
|
}
|
|
4080
|
-
function
|
|
4080
|
+
function ii(n, e) {
|
|
4081
4081
|
const t = Kt(n, e);
|
|
4082
4082
|
if (t !== "")
|
|
4083
4083
|
return t;
|
|
@@ -4091,17 +4091,17 @@ var or = { exports: {} };
|
|
|
4091
4091
|
const t = n.substr(e, 1);
|
|
4092
4092
|
if (e += 1, t.toLowerCase() !== "e")
|
|
4093
4093
|
return "";
|
|
4094
|
-
const i =
|
|
4094
|
+
const i = ii(n, e);
|
|
4095
4095
|
return i === "" ? "" : t + i;
|
|
4096
4096
|
}
|
|
4097
4097
|
function fs(n, e) {
|
|
4098
4098
|
const t = n.substr(e, 1);
|
|
4099
4099
|
if (t === "0")
|
|
4100
4100
|
return t;
|
|
4101
|
-
const i =
|
|
4101
|
+
const i = si(n, e);
|
|
4102
4102
|
return e += i.length, i === "" ? "" : i + Kt(n, e);
|
|
4103
4103
|
}
|
|
4104
|
-
function
|
|
4104
|
+
function ri(n, e) {
|
|
4105
4105
|
const t = fs(n, e);
|
|
4106
4106
|
if (e += t.length, t === "")
|
|
4107
4107
|
return "";
|
|
@@ -4118,16 +4118,16 @@ var or = { exports: {} };
|
|
|
4118
4118
|
const i = Kt(n, e);
|
|
4119
4119
|
return e += i.length, i === "" ? "" : t + i + ln(n, e);
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4121
|
+
function oi(n, e) {
|
|
4122
4122
|
const t = fs(n, e);
|
|
4123
4123
|
return e += t.length, t === "" ? "" : t + ln(n, e);
|
|
4124
4124
|
}
|
|
4125
|
-
const
|
|
4126
|
-
|
|
4125
|
+
const ai = In([
|
|
4126
|
+
ri,
|
|
4127
4127
|
On,
|
|
4128
|
-
|
|
4128
|
+
oi
|
|
4129
4129
|
]);
|
|
4130
|
-
function
|
|
4130
|
+
function li(n, e) {
|
|
4131
4131
|
var t;
|
|
4132
4132
|
const i = n.substr(e).match(/^[01]+/);
|
|
4133
4133
|
return (t = i && i[0]) !== null && t !== void 0 ? t : "";
|
|
@@ -4136,49 +4136,49 @@ var or = { exports: {} };
|
|
|
4136
4136
|
const t = n.substr(e, 2);
|
|
4137
4137
|
if (e += t.length, t.toLowerCase() !== "0b")
|
|
4138
4138
|
return "";
|
|
4139
|
-
const i =
|
|
4139
|
+
const i = li(n, e);
|
|
4140
4140
|
return i === "" ? "" : t + i;
|
|
4141
4141
|
}
|
|
4142
|
-
function
|
|
4142
|
+
function ci(n, e) {
|
|
4143
4143
|
var t;
|
|
4144
4144
|
const i = n.substr(e).match(/^[0-7]+/);
|
|
4145
4145
|
return (t = i && i[0]) !== null && t !== void 0 ? t : "";
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function pi(n, e) {
|
|
4148
4148
|
const t = n.substr(e, 2);
|
|
4149
4149
|
if (e += t.length, t.toLowerCase() !== "0o")
|
|
4150
4150
|
return "";
|
|
4151
|
-
const i =
|
|
4151
|
+
const i = ci(n, e);
|
|
4152
4152
|
return i === "" ? "" : t + i;
|
|
4153
4153
|
}
|
|
4154
|
-
function
|
|
4154
|
+
function ui(n, e) {
|
|
4155
4155
|
var t;
|
|
4156
4156
|
const i = n.substr(e).match(/^[0-9a-f]+/i);
|
|
4157
4157
|
return (t = i && i[0]) !== null && t !== void 0 ? t : "";
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function di(n, e) {
|
|
4160
4160
|
const t = n.substr(e, 2);
|
|
4161
4161
|
if (e += t.length, t.toLowerCase() !== "0x")
|
|
4162
4162
|
return "";
|
|
4163
|
-
const i =
|
|
4163
|
+
const i = ui(n, e);
|
|
4164
4164
|
return i === "" ? "" : t + i;
|
|
4165
4165
|
}
|
|
4166
|
-
const
|
|
4166
|
+
const hi = In([
|
|
4167
4167
|
Qe,
|
|
4168
|
-
|
|
4169
|
-
|
|
4168
|
+
pi,
|
|
4169
|
+
di
|
|
4170
4170
|
]), bs = In([
|
|
4171
|
-
|
|
4172
|
-
|
|
4171
|
+
hi,
|
|
4172
|
+
ai
|
|
4173
4173
|
]);
|
|
4174
|
-
function
|
|
4174
|
+
function mi(n, e) {
|
|
4175
4175
|
const t = bs(n, e);
|
|
4176
4176
|
return e += t.length, t === "" ? null : {
|
|
4177
|
-
evaluable: new
|
|
4177
|
+
evaluable: new Qs(t),
|
|
4178
4178
|
cursor: e
|
|
4179
4179
|
};
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function vi(n, e) {
|
|
4182
4182
|
const t = n.substr(e, 1);
|
|
4183
4183
|
if (e += t.length, t !== "(")
|
|
4184
4184
|
return null;
|
|
@@ -4194,7 +4194,7 @@ var or = { exports: {} };
|
|
|
4194
4194
|
}
|
|
4195
4195
|
function Me(n, e) {
|
|
4196
4196
|
var t;
|
|
4197
|
-
return (t =
|
|
4197
|
+
return (t = mi(n, e)) !== null && t !== void 0 ? t : vi(n, e);
|
|
4198
4198
|
}
|
|
4199
4199
|
function gs(n, e) {
|
|
4200
4200
|
const t = Me(n, e);
|
|
@@ -4206,10 +4206,10 @@ var or = { exports: {} };
|
|
|
4206
4206
|
const p = gs(n, e);
|
|
4207
4207
|
return p ? (e = p.cursor, {
|
|
4208
4208
|
cursor: e,
|
|
4209
|
-
evaluable: new
|
|
4209
|
+
evaluable: new ni(i, p.evaluable)
|
|
4210
4210
|
}) : null;
|
|
4211
4211
|
}
|
|
4212
|
-
function
|
|
4212
|
+
function fi(n, e, t) {
|
|
4213
4213
|
t += Ht(e, t).length;
|
|
4214
4214
|
const i = n.filter((p) => e.startsWith(p, t))[0];
|
|
4215
4215
|
return i ? (t += i.length, t += Ht(e, t).length, {
|
|
@@ -4225,14 +4225,14 @@ var or = { exports: {} };
|
|
|
4225
4225
|
i = p.cursor;
|
|
4226
4226
|
let g = p.evaluable;
|
|
4227
4227
|
for (; ; ) {
|
|
4228
|
-
const y =
|
|
4228
|
+
const y = fi(e, t, i);
|
|
4229
4229
|
if (!y)
|
|
4230
4230
|
break;
|
|
4231
4231
|
i = y.cursor;
|
|
4232
4232
|
const M = n(t, i);
|
|
4233
4233
|
if (!M)
|
|
4234
4234
|
return null;
|
|
4235
|
-
i = M.cursor, g = new
|
|
4235
|
+
i = M.cursor, g = new ei(y.operator, g, M.evaluable);
|
|
4236
4236
|
}
|
|
4237
4237
|
return g ? {
|
|
4238
4238
|
cursor: i,
|
|
@@ -4240,7 +4240,7 @@ var or = { exports: {} };
|
|
|
4240
4240
|
} : null;
|
|
4241
4241
|
};
|
|
4242
4242
|
}
|
|
4243
|
-
const
|
|
4243
|
+
const bi = [
|
|
4244
4244
|
["**"],
|
|
4245
4245
|
["*", "/", "%"],
|
|
4246
4246
|
["+", "-"],
|
|
@@ -4250,7 +4250,7 @@ var or = { exports: {} };
|
|
|
4250
4250
|
["|"]
|
|
4251
4251
|
].reduce((n, e) => Dn(n, e), gs);
|
|
4252
4252
|
function je(n, e) {
|
|
4253
|
-
return e += Ht(n, e).length,
|
|
4253
|
+
return e += Ht(n, e).length, bi(n, e);
|
|
4254
4254
|
}
|
|
4255
4255
|
function _s(n) {
|
|
4256
4256
|
const e = je(n, 0);
|
|
@@ -4271,15 +4271,15 @@ var or = { exports: {} };
|
|
|
4271
4271
|
}
|
|
4272
4272
|
return 0;
|
|
4273
4273
|
}
|
|
4274
|
-
function
|
|
4274
|
+
function gi(n) {
|
|
4275
4275
|
return String(n);
|
|
4276
4276
|
}
|
|
4277
4277
|
function se(n) {
|
|
4278
4278
|
return (e) => e.toFixed(Math.max(Math.min(n, 20), 0));
|
|
4279
4279
|
}
|
|
4280
|
-
const
|
|
4280
|
+
const _i = se(0);
|
|
4281
4281
|
function gt(n) {
|
|
4282
|
-
return
|
|
4282
|
+
return _i(n) + "%";
|
|
4283
4283
|
}
|
|
4284
4284
|
function ws(n) {
|
|
4285
4285
|
return String(n);
|
|
@@ -4291,16 +4291,16 @@ var or = { exports: {} };
|
|
|
4291
4291
|
for (; n.length < e; )
|
|
4292
4292
|
n.push(void 0);
|
|
4293
4293
|
}
|
|
4294
|
-
function
|
|
4294
|
+
function wi(n) {
|
|
4295
4295
|
const e = [];
|
|
4296
4296
|
return ze(e, n), X(e);
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4298
|
+
function xi(n) {
|
|
4299
4299
|
const e = n.indexOf(void 0);
|
|
4300
4300
|
return e < 0 ? n : n.slice(0, e);
|
|
4301
4301
|
}
|
|
4302
4302
|
function xs(n, e) {
|
|
4303
|
-
const t = [...
|
|
4303
|
+
const t = [...xi(n), e];
|
|
4304
4304
|
return t.length > n.length ? t.splice(0, t.length - n.length) : ze(t, n.length), t;
|
|
4305
4305
|
}
|
|
4306
4306
|
function _t({ primary: n, secondary: e, forward: t, backward: i }) {
|
|
@@ -4461,7 +4461,7 @@ var or = { exports: {} };
|
|
|
4461
4461
|
return (n % e + e) % e;
|
|
4462
4462
|
}
|
|
4463
4463
|
const xe = O("txt");
|
|
4464
|
-
class
|
|
4464
|
+
class yi {
|
|
4465
4465
|
constructor(e, t) {
|
|
4466
4466
|
this.onChange_ = this.onChange_.bind(this), this.props_ = t.props, this.props_.emitter.on("change", this.onChange_), this.element = e.createElement("div"), this.element.classList.add(xe(), xe(void 0, "num")), t.arrayPosition && this.element.classList.add(xe(void 0, t.arrayPosition)), t.viewProps.bindClassModifiers(this.element);
|
|
4467
4467
|
const i = e.createElement("input");
|
|
@@ -4499,7 +4499,7 @@ var or = { exports: {} };
|
|
|
4499
4499
|
class He {
|
|
4500
4500
|
constructor(e, t) {
|
|
4501
4501
|
var i;
|
|
4502
|
-
this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = t.baseStep, this.parser_ = t.parser, this.props = t.props, this.sliderProps_ = (i = t.sliderProps) !== null && i !== void 0 ? i : null, this.value = t.value, this.viewProps = t.viewProps, this.dragging_ = X(null), this.view = new
|
|
4502
|
+
this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = t.baseStep, this.parser_ = t.parser, this.props = t.props, this.sliderProps_ = (i = t.sliderProps) !== null && i !== void 0 ? i : null, this.value = t.value, this.viewProps = t.viewProps, this.dragging_ = X(null), this.view = new yi(e, {
|
|
4503
4503
|
arrayPosition: t.arrayPosition,
|
|
4504
4504
|
dragging: this.dragging_,
|
|
4505
4505
|
props: this.props,
|
|
@@ -4573,7 +4573,7 @@ var or = { exports: {} };
|
|
|
4573
4573
|
this.update_();
|
|
4574
4574
|
}
|
|
4575
4575
|
}
|
|
4576
|
-
class
|
|
4576
|
+
class Ci {
|
|
4577
4577
|
constructor(e, t) {
|
|
4578
4578
|
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDownOrMove_ = this.onPointerDownOrMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = t.baseStep, this.value = t.value, this.viewProps = t.viewProps, this.props = t.props, this.view = new Ps(e, {
|
|
4579
4579
|
props: this.props,
|
|
@@ -4622,7 +4622,7 @@ var or = { exports: {} };
|
|
|
4622
4622
|
}
|
|
4623
4623
|
class pn {
|
|
4624
4624
|
constructor(e, t) {
|
|
4625
|
-
this.value = t.value, this.viewProps = t.viewProps, this.sliderC_ = new
|
|
4625
|
+
this.value = t.value, this.viewProps = t.viewProps, this.sliderC_ = new Ci(e, {
|
|
4626
4626
|
baseStep: t.baseStep,
|
|
4627
4627
|
props: t.sliderProps,
|
|
4628
4628
|
value: t.value,
|
|
@@ -4686,7 +4686,7 @@ var or = { exports: {} };
|
|
|
4686
4686
|
const e = n ? Q(n, bt) : null;
|
|
4687
4687
|
return e ? e.options : null;
|
|
4688
4688
|
}
|
|
4689
|
-
function
|
|
4689
|
+
function Ei(n) {
|
|
4690
4690
|
const e = n ? Q(n, he) : null;
|
|
4691
4691
|
return e ? e.step : null;
|
|
4692
4692
|
}
|
|
@@ -4695,7 +4695,7 @@ var or = { exports: {} };
|
|
|
4695
4695
|
return t ? Cs(t.step) : Math.max(Cs(e), 2);
|
|
4696
4696
|
}
|
|
4697
4697
|
function yt(n) {
|
|
4698
|
-
const e =
|
|
4698
|
+
const e = Ei(n);
|
|
4699
4699
|
return e ?? 1;
|
|
4700
4700
|
}
|
|
4701
4701
|
function Ct(n, e) {
|
|
@@ -4704,7 +4704,7 @@ var or = { exports: {} };
|
|
|
4704
4704
|
return p === 0 ? 0.1 : Math.pow(10, Math.floor(Math.log10(p)) - 1);
|
|
4705
4705
|
}
|
|
4706
4706
|
const dn = O("ckb");
|
|
4707
|
-
class
|
|
4707
|
+
class Pi {
|
|
4708
4708
|
constructor(e, t) {
|
|
4709
4709
|
this.onValueChange_ = this.onValueChange_.bind(this), this.element = e.createElement("div"), this.element.classList.add(dn()), t.viewProps.bindClassModifiers(this.element);
|
|
4710
4710
|
const i = e.createElement("label");
|
|
@@ -4723,9 +4723,9 @@ var or = { exports: {} };
|
|
|
4723
4723
|
this.update_();
|
|
4724
4724
|
}
|
|
4725
4725
|
}
|
|
4726
|
-
class
|
|
4726
|
+
class ki {
|
|
4727
4727
|
constructor(e, t) {
|
|
4728
|
-
this.onInputChange_ = this.onInputChange_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.view = new
|
|
4728
|
+
this.onInputChange_ = this.onInputChange_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.view = new Pi(e, {
|
|
4729
4729
|
value: this.value,
|
|
4730
4730
|
viewProps: this.viewProps
|
|
4731
4731
|
}), this.view.inputElement.addEventListener("change", this.onInputChange_);
|
|
@@ -4739,7 +4739,7 @@ var or = { exports: {} };
|
|
|
4739
4739
|
const e = [], t = Hn(n.options);
|
|
4740
4740
|
return t && e.push(t), new Ze(e);
|
|
4741
4741
|
}
|
|
4742
|
-
const
|
|
4742
|
+
const Ti = {
|
|
4743
4743
|
id: "input-bool",
|
|
4744
4744
|
type: "input",
|
|
4745
4745
|
accept: (n, e) => {
|
|
@@ -4767,7 +4767,7 @@ var or = { exports: {} };
|
|
|
4767
4767
|
}),
|
|
4768
4768
|
value: i,
|
|
4769
4769
|
viewProps: n.viewProps
|
|
4770
|
-
}) : new
|
|
4770
|
+
}) : new ki(t, {
|
|
4771
4771
|
value: i,
|
|
4772
4772
|
viewProps: n.viewProps
|
|
4773
4773
|
});
|
|
@@ -4788,7 +4788,7 @@ var or = { exports: {} };
|
|
|
4788
4788
|
this.pickerElement = null;
|
|
4789
4789
|
}
|
|
4790
4790
|
}
|
|
4791
|
-
function
|
|
4791
|
+
function Mi(n, e, t) {
|
|
4792
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;
|
|
4793
4793
|
let U = 0, W = 0;
|
|
4794
4794
|
const Z = (M + y) / 2;
|
|
@@ -4799,7 +4799,7 @@ var or = { exports: {} };
|
|
|
4799
4799
|
let U, W, Z;
|
|
4800
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];
|
|
4801
4801
|
}
|
|
4802
|
-
function
|
|
4802
|
+
function Li(n, e, t) {
|
|
4803
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;
|
|
4804
4804
|
let U;
|
|
4805
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);
|
|
@@ -4811,7 +4811,7 @@ var or = { exports: {} };
|
|
|
4811
4811
|
let U, W, Z;
|
|
4812
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];
|
|
4813
4813
|
}
|
|
4814
|
-
function
|
|
4814
|
+
function Si(n, e, t) {
|
|
4815
4815
|
const i = t + e * (100 - Math.abs(2 * t - 100)) / 200;
|
|
4816
4816
|
return [
|
|
4817
4817
|
n,
|
|
@@ -4819,7 +4819,7 @@ var or = { exports: {} };
|
|
|
4819
4819
|
t + e * (100 - Math.abs(2 * t - 100)) / (2 * 100)
|
|
4820
4820
|
];
|
|
4821
4821
|
}
|
|
4822
|
-
function
|
|
4822
|
+
function Ai(n, e, t) {
|
|
4823
4823
|
const i = 100 - Math.abs(t * (200 - e) / 100 - 100);
|
|
4824
4824
|
return [n, i !== 0 ? e * t / i : 0, t * (200 - e) / (2 * 100)];
|
|
4825
4825
|
}
|
|
@@ -4832,17 +4832,17 @@ var or = { exports: {} };
|
|
|
4832
4832
|
const r = {
|
|
4833
4833
|
hsl: {
|
|
4834
4834
|
hsl: (n, e, t) => [n, e, t],
|
|
4835
|
-
hsv:
|
|
4835
|
+
hsv: Si,
|
|
4836
4836
|
rgb: $n
|
|
4837
4837
|
},
|
|
4838
4838
|
hsv: {
|
|
4839
|
-
hsl:
|
|
4839
|
+
hsl: Ai,
|
|
4840
4840
|
hsv: (n, e, t) => [n, e, t],
|
|
4841
4841
|
rgb: Ms
|
|
4842
4842
|
},
|
|
4843
4843
|
rgb: {
|
|
4844
|
-
hsl:
|
|
4845
|
-
hsv:
|
|
4844
|
+
hsl: Mi,
|
|
4845
|
+
hsv: Li,
|
|
4846
4846
|
rgb: (n, e, t) => [n, e, t]
|
|
4847
4847
|
}
|
|
4848
4848
|
};
|
|
@@ -5209,7 +5209,7 @@ var or = { exports: {} };
|
|
|
5209
5209
|
function Eo(n) {
|
|
5210
5210
|
return Co.reduce((e, { parser: t, result: i }) => e || (t(n) ? i : null), null);
|
|
5211
5211
|
}
|
|
5212
|
-
function
|
|
5212
|
+
function Vi(n, e = "int") {
|
|
5213
5213
|
const t = Eo(n);
|
|
5214
5214
|
return t ? t.notation === "hex" && e !== "float" ? Object.assign(Object.assign({}, t), { type: "int" }) : t.notation === "func" ? Object.assign(Object.assign({}, t), { type: e }) : null : null;
|
|
5215
5215
|
}
|
|
@@ -5242,7 +5242,7 @@ var or = { exports: {} };
|
|
|
5242
5242
|
return i ?? D.black(n);
|
|
5243
5243
|
};
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function Ri(n) {
|
|
5246
5246
|
const e = kr[n];
|
|
5247
5247
|
return (t) => e.reduce((i, p) => i || p(t), null);
|
|
5248
5248
|
}
|
|
@@ -5254,7 +5254,7 @@ var or = { exports: {} };
|
|
|
5254
5254
|
const t = o(n.getComponents("rgb")).map(Tr).join("");
|
|
5255
5255
|
return `${e}${t}`;
|
|
5256
5256
|
}
|
|
5257
|
-
function
|
|
5257
|
+
function Ni(n, e = "#") {
|
|
5258
5258
|
const t = n.getComponents("rgb"), i = [t[0], t[1], t[2], t[3] * 255].map(Tr).join("");
|
|
5259
5259
|
return `${e}${i}`;
|
|
5260
5260
|
}
|
|
@@ -5323,7 +5323,7 @@ var or = { exports: {} };
|
|
|
5323
5323
|
notation: "hex",
|
|
5324
5324
|
type: "int"
|
|
5325
5325
|
},
|
|
5326
|
-
stringifier:
|
|
5326
|
+
stringifier: Ni
|
|
5327
5327
|
},
|
|
5328
5328
|
{
|
|
5329
5329
|
format: {
|
|
@@ -5383,7 +5383,7 @@ var or = { exports: {} };
|
|
|
5383
5383
|
}
|
|
5384
5384
|
], [])
|
|
5385
5385
|
];
|
|
5386
|
-
function
|
|
5386
|
+
function Ii(n) {
|
|
5387
5387
|
return Vo.reduce((e, t) => e || (_o(t.format, n) ? t.stringifier : null), null);
|
|
5388
5388
|
}
|
|
5389
5389
|
const Xn = O("apl");
|
|
@@ -5513,7 +5513,7 @@ var or = { exports: {} };
|
|
|
5513
5513
|
max: i
|
|
5514
5514
|
});
|
|
5515
5515
|
}
|
|
5516
|
-
function
|
|
5516
|
+
function Oi(n, e, t) {
|
|
5517
5517
|
return new He(n, {
|
|
5518
5518
|
arrayPosition: t === 0 ? "fst" : t === 3 - 1 ? "lst" : "mid",
|
|
5519
5519
|
baseStep: ot(!1),
|
|
@@ -5542,9 +5542,9 @@ var or = { exports: {} };
|
|
|
5542
5542
|
parser: this.parser_,
|
|
5543
5543
|
viewProps: this.viewProps
|
|
5544
5544
|
}, i = [
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5545
|
+
Oi(e, t, 0),
|
|
5546
|
+
Oi(e, t, 1),
|
|
5547
|
+
Oi(e, t, 2)
|
|
5548
5548
|
];
|
|
5549
5549
|
return i.forEach((p, g) => {
|
|
5550
5550
|
_t({
|
|
@@ -5567,14 +5567,14 @@ var or = { exports: {} };
|
|
|
5567
5567
|
];
|
|
5568
5568
|
}
|
|
5569
5569
|
}
|
|
5570
|
-
const
|
|
5570
|
+
const Di = O("hpl");
|
|
5571
5571
|
class Bo {
|
|
5572
5572
|
constructor(e, t) {
|
|
5573
|
-
this.onValueChange_ = this.onValueChange_.bind(this), this.value = t.value, this.value.emitter.on("change", this.onValueChange_), this.element = e.createElement("div"), this.element.classList.add(
|
|
5573
|
+
this.onValueChange_ = this.onValueChange_.bind(this), this.value = t.value, this.value.emitter.on("change", this.onValueChange_), this.element = e.createElement("div"), this.element.classList.add(Di()), t.viewProps.bindTabIndex(this.element);
|
|
5574
5574
|
const i = e.createElement("div");
|
|
5575
|
-
i.classList.add(
|
|
5575
|
+
i.classList.add(Di("c")), this.element.appendChild(i);
|
|
5576
5576
|
const p = e.createElement("div");
|
|
5577
|
-
p.classList.add(
|
|
5577
|
+
p.classList.add(Di("m")), this.element.appendChild(p), this.markerElem_ = p, this.update_();
|
|
5578
5578
|
}
|
|
5579
5579
|
update_() {
|
|
5580
5580
|
const e = this.value.rawValue, [t] = e.getComponents("hsv");
|
|
@@ -5634,14 +5634,14 @@ var or = { exports: {} };
|
|
|
5634
5634
|
});
|
|
5635
5635
|
}
|
|
5636
5636
|
}
|
|
5637
|
-
const
|
|
5637
|
+
const Fi = O("svp"), Vr = 64;
|
|
5638
5638
|
class Uo {
|
|
5639
5639
|
constructor(e, t) {
|
|
5640
|
-
this.onValueChange_ = this.onValueChange_.bind(this), this.value = t.value, this.value.emitter.on("change", this.onValueChange_), this.element = e.createElement("div"), this.element.classList.add(
|
|
5640
|
+
this.onValueChange_ = this.onValueChange_.bind(this), this.value = t.value, this.value.emitter.on("change", this.onValueChange_), this.element = e.createElement("div"), this.element.classList.add(Fi()), t.viewProps.bindTabIndex(this.element);
|
|
5641
5641
|
const i = e.createElement("canvas");
|
|
5642
|
-
i.height = Vr, i.width = Vr, i.classList.add(
|
|
5642
|
+
i.height = Vr, i.width = Vr, i.classList.add(Fi("c")), this.element.appendChild(i), this.canvasElement = i;
|
|
5643
5643
|
const p = e.createElement("div");
|
|
5644
|
-
p.classList.add(
|
|
5644
|
+
p.classList.add(Fi("m")), this.element.appendChild(p), this.markerElem_ = p, this.update_();
|
|
5645
5645
|
}
|
|
5646
5646
|
update_() {
|
|
5647
5647
|
const e = Cn(this.canvasElement);
|
|
@@ -5763,18 +5763,18 @@ var or = { exports: {} };
|
|
|
5763
5763
|
return this.textC_;
|
|
5764
5764
|
}
|
|
5765
5765
|
}
|
|
5766
|
-
const
|
|
5766
|
+
const ji = O("colsw");
|
|
5767
5767
|
class Go {
|
|
5768
5768
|
constructor(e, t) {
|
|
5769
|
-
this.onValueChange_ = this.onValueChange_.bind(this), t.value.emitter.on("change", this.onValueChange_), this.value = t.value, this.element = e.createElement("div"), this.element.classList.add(
|
|
5769
|
+
this.onValueChange_ = this.onValueChange_.bind(this), t.value.emitter.on("change", this.onValueChange_), this.value = t.value, this.element = e.createElement("div"), this.element.classList.add(ji()), t.viewProps.bindClassModifiers(this.element);
|
|
5770
5770
|
const i = e.createElement("div");
|
|
5771
|
-
i.classList.add(
|
|
5771
|
+
i.classList.add(ji("sw")), this.element.appendChild(i), this.swatchElem_ = i;
|
|
5772
5772
|
const p = e.createElement("button");
|
|
5773
|
-
p.classList.add(
|
|
5773
|
+
p.classList.add(ji("b")), t.viewProps.bindDisabled(p), this.element.appendChild(p), this.buttonElement = p, this.update_();
|
|
5774
5774
|
}
|
|
5775
5775
|
update_() {
|
|
5776
5776
|
const e = this.value.rawValue;
|
|
5777
|
-
this.swatchElem_.style.backgroundColor =
|
|
5777
|
+
this.swatchElem_.style.backgroundColor = Ni(e);
|
|
5778
5778
|
}
|
|
5779
5779
|
onValueChange_() {
|
|
5780
5780
|
this.update_();
|
|
@@ -5788,7 +5788,7 @@ var or = { exports: {} };
|
|
|
5788
5788
|
});
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
class
|
|
5791
|
+
class Bi {
|
|
5792
5792
|
constructor(e, t) {
|
|
5793
5793
|
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 = t.value, this.viewProps = t.viewProps, this.foldable_ = Fe.create(t.expanded), this.swatchC_ = new $o(e, {
|
|
5794
5794
|
value: this.value,
|
|
@@ -5875,7 +5875,7 @@ var or = { exports: {} };
|
|
|
5875
5875
|
return typeof n != "number" ? D.black() : Zo(n);
|
|
5876
5876
|
}
|
|
5877
5877
|
function ea(n) {
|
|
5878
|
-
const e =
|
|
5878
|
+
const e = Ii(n);
|
|
5879
5879
|
return e ? (t, i) => {
|
|
5880
5880
|
wt(t, e(i));
|
|
5881
5881
|
} : null;
|
|
@@ -5899,12 +5899,12 @@ var or = { exports: {} };
|
|
|
5899
5899
|
n ? na(t, i, e) : sa(t, i, e);
|
|
5900
5900
|
};
|
|
5901
5901
|
}
|
|
5902
|
-
function
|
|
5902
|
+
function zi(n) {
|
|
5903
5903
|
var e;
|
|
5904
5904
|
return !!(n != null && n.alpha || !((e = n == null ? void 0 : n.color) === null || e === void 0) && e.alpha);
|
|
5905
5905
|
}
|
|
5906
5906
|
function ra(n) {
|
|
5907
|
-
return n ? (e) =>
|
|
5907
|
+
return n ? (e) => Ni(e, "0x") : (e) => Mr(e, "0x");
|
|
5908
5908
|
}
|
|
5909
5909
|
function oa(n) {
|
|
5910
5910
|
return "color" in n || "view" in n && n.view === "color";
|
|
@@ -5922,17 +5922,17 @@ var or = { exports: {} };
|
|
|
5922
5922
|
} : null;
|
|
5923
5923
|
},
|
|
5924
5924
|
binding: {
|
|
5925
|
-
reader: (n) =>
|
|
5925
|
+
reader: (n) => zi(n.params) ? Jo : Qo,
|
|
5926
5926
|
equals: D.equals,
|
|
5927
|
-
writer: (n) => ta(
|
|
5927
|
+
writer: (n) => ta(zi(n.params))
|
|
5928
5928
|
},
|
|
5929
5929
|
controller: (n) => {
|
|
5930
|
-
const e =
|
|
5931
|
-
return new
|
|
5930
|
+
const e = zi(n.params), t = "expanded" in n.params ? n.params.expanded : void 0, i = "picker" in n.params ? n.params.picker : void 0;
|
|
5931
|
+
return new Bi(n.document, {
|
|
5932
5932
|
colorType: "int",
|
|
5933
5933
|
expanded: t ?? !1,
|
|
5934
5934
|
formatter: ra(e),
|
|
5935
|
-
parser:
|
|
5935
|
+
parser: Ri("int"),
|
|
5936
5936
|
pickerLayout: i ?? "popup",
|
|
5937
5937
|
supportsAlpha: e,
|
|
5938
5938
|
value: n.value,
|
|
@@ -5969,11 +5969,11 @@ var or = { exports: {} };
|
|
|
5969
5969
|
controller: (n) => {
|
|
5970
5970
|
var e;
|
|
5971
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";
|
|
5972
|
-
return new
|
|
5972
|
+
return new Bi(n.document, {
|
|
5973
5973
|
colorType: g,
|
|
5974
5974
|
expanded: i ?? !1,
|
|
5975
5975
|
formatter: pa(t, g),
|
|
5976
|
-
parser:
|
|
5976
|
+
parser: Ri(g),
|
|
5977
5977
|
pickerLayout: p ?? "popup",
|
|
5978
5978
|
supportsAlpha: t,
|
|
5979
5979
|
value: n.value,
|
|
@@ -5986,8 +5986,8 @@ var or = { exports: {} };
|
|
|
5986
5986
|
accept: (n, e) => {
|
|
5987
5987
|
if (typeof n != "string" || "view" in e && e.view === "text")
|
|
5988
5988
|
return null;
|
|
5989
|
-
const t =
|
|
5990
|
-
if (!t || !
|
|
5989
|
+
const t = Vi(n, $t(e));
|
|
5990
|
+
if (!t || !Ii(t))
|
|
5991
5991
|
return null;
|
|
5992
5992
|
const p = Yn(e);
|
|
5993
5993
|
return p ? {
|
|
@@ -6002,7 +6002,7 @@ var or = { exports: {} };
|
|
|
6002
6002
|
},
|
|
6003
6003
|
equals: D.equals,
|
|
6004
6004
|
writer: (n) => {
|
|
6005
|
-
const e =
|
|
6005
|
+
const e = Vi(n.initialValue, $t(n.params));
|
|
6006
6006
|
if (!e)
|
|
6007
6007
|
throw L.shouldNeverHappen();
|
|
6008
6008
|
const t = ea(e);
|
|
@@ -6012,18 +6012,18 @@ var or = { exports: {} };
|
|
|
6012
6012
|
}
|
|
6013
6013
|
},
|
|
6014
6014
|
controller: (n) => {
|
|
6015
|
-
const e =
|
|
6015
|
+
const e = Vi(n.initialValue, $t(n.params));
|
|
6016
6016
|
if (!e)
|
|
6017
6017
|
throw L.shouldNeverHappen();
|
|
6018
|
-
const t =
|
|
6018
|
+
const t = Ii(e);
|
|
6019
6019
|
if (!t)
|
|
6020
6020
|
throw L.shouldNeverHappen();
|
|
6021
6021
|
const i = "expanded" in n.params ? n.params.expanded : void 0, p = "picker" in n.params ? n.params.picker : void 0;
|
|
6022
|
-
return new
|
|
6022
|
+
return new Bi(n.document, {
|
|
6023
6023
|
colorType: e.type,
|
|
6024
6024
|
expanded: i ?? !1,
|
|
6025
6025
|
formatter: t,
|
|
6026
|
-
parser:
|
|
6026
|
+
parser: Ri(e.type),
|
|
6027
6027
|
pickerLayout: p ?? "popup",
|
|
6028
6028
|
supportsAlpha: e.alpha,
|
|
6029
6029
|
value: n.value,
|
|
@@ -6064,7 +6064,7 @@ var or = { exports: {} };
|
|
|
6064
6064
|
viewProps: e.viewProps
|
|
6065
6065
|
});
|
|
6066
6066
|
}
|
|
6067
|
-
class
|
|
6067
|
+
class Ui {
|
|
6068
6068
|
constructor(e, t) {
|
|
6069
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) => {
|
|
6070
6070
|
_t({
|
|
@@ -6315,7 +6315,7 @@ var or = { exports: {} };
|
|
|
6315
6315
|
});
|
|
6316
6316
|
g.view.allFocusableElements.forEach((y) => {
|
|
6317
6317
|
y.addEventListener("blur", this.onPopupChildBlur_), y.addEventListener("keydown", this.onPopupChildKeydown_);
|
|
6318
|
-
}), this.pickerC_ = g, this.textC_ = new
|
|
6318
|
+
}), this.pickerC_ = g, this.textC_ = new Ui(e, {
|
|
6319
6319
|
assembly: Or,
|
|
6320
6320
|
axes: t.axes,
|
|
6321
6321
|
parser: t.parser,
|
|
@@ -6494,7 +6494,7 @@ var or = { exports: {} };
|
|
|
6494
6494
|
]
|
|
6495
6495
|
});
|
|
6496
6496
|
}
|
|
6497
|
-
function
|
|
6497
|
+
function Hi(n, e) {
|
|
6498
6498
|
return {
|
|
6499
6499
|
baseStep: yt(e),
|
|
6500
6500
|
constraint: e,
|
|
@@ -6530,12 +6530,12 @@ var or = { exports: {} };
|
|
|
6530
6530
|
const e = n.value, t = n.constraint;
|
|
6531
6531
|
if (!(t instanceof Et))
|
|
6532
6532
|
throw L.shouldNeverHappen();
|
|
6533
|
-
return new
|
|
6533
|
+
return new Ui(n.document, {
|
|
6534
6534
|
assembly: Br,
|
|
6535
6535
|
axes: [
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6536
|
+
Hi(e.rawValue.x, t.components[0]),
|
|
6537
|
+
Hi(e.rawValue.y, t.components[1]),
|
|
6538
|
+
Hi(e.rawValue.z, t.components[2])
|
|
6539
6539
|
],
|
|
6540
6540
|
parser: Be,
|
|
6541
6541
|
value: e,
|
|
@@ -6626,7 +6626,7 @@ var or = { exports: {} };
|
|
|
6626
6626
|
const e = n.value, t = n.constraint;
|
|
6627
6627
|
if (!(t instanceof Et))
|
|
6628
6628
|
throw L.shouldNeverHappen();
|
|
6629
|
-
return new
|
|
6629
|
+
return new Ui(n.document, {
|
|
6630
6630
|
assembly: zr,
|
|
6631
6631
|
axes: e.rawValue.getComponents().map((i, p) => Oa(i, t.components[p])),
|
|
6632
6632
|
parser: Be,
|
|
@@ -6699,7 +6699,7 @@ var or = { exports: {} };
|
|
|
6699
6699
|
this.update_();
|
|
6700
6700
|
}
|
|
6701
6701
|
}
|
|
6702
|
-
class
|
|
6702
|
+
class Ki {
|
|
6703
6703
|
constructor(e, t) {
|
|
6704
6704
|
this.value = t.value, this.viewProps = t.viewProps, this.view = new Ba(e, {
|
|
6705
6705
|
formatter: t.formatter,
|
|
@@ -6724,7 +6724,7 @@ var or = { exports: {} };
|
|
|
6724
6724
|
this.update_();
|
|
6725
6725
|
}
|
|
6726
6726
|
}
|
|
6727
|
-
class
|
|
6727
|
+
class Gi {
|
|
6728
6728
|
constructor(e, t) {
|
|
6729
6729
|
this.value = t.value, this.viewProps = t.viewProps, this.view = new za(e, {
|
|
6730
6730
|
formatter: t.formatter,
|
|
@@ -6752,11 +6752,11 @@ var or = { exports: {} };
|
|
|
6752
6752
|
},
|
|
6753
6753
|
controller: (n) => {
|
|
6754
6754
|
var e;
|
|
6755
|
-
return n.value.rawValue.length === 1 ? new
|
|
6755
|
+
return n.value.rawValue.length === 1 ? new Gi(n.document, {
|
|
6756
6756
|
formatter: vs,
|
|
6757
6757
|
value: n.value,
|
|
6758
6758
|
viewProps: n.viewProps
|
|
6759
|
-
}) : new
|
|
6759
|
+
}) : new Ki(n.document, {
|
|
6760
6760
|
formatter: vs,
|
|
6761
6761
|
lineCount: (e = n.params.lineCount) !== null && e !== void 0 ? e : Wn.monitor.defaultLineCount,
|
|
6762
6762
|
value: n.value,
|
|
@@ -6837,17 +6837,17 @@ var or = { exports: {} };
|
|
|
6837
6837
|
this.cursor_.rawValue = -1;
|
|
6838
6838
|
}
|
|
6839
6839
|
}
|
|
6840
|
-
function
|
|
6840
|
+
function $i(n) {
|
|
6841
6841
|
return "format" in n && !_(n.format) ? n.format : se(2);
|
|
6842
6842
|
}
|
|
6843
6843
|
function Ga(n) {
|
|
6844
6844
|
var e;
|
|
6845
|
-
return n.value.rawValue.length === 1 ? new
|
|
6846
|
-
formatter:
|
|
6845
|
+
return n.value.rawValue.length === 1 ? new Gi(n.document, {
|
|
6846
|
+
formatter: $i(n.params),
|
|
6847
6847
|
value: n.value,
|
|
6848
6848
|
viewProps: n.viewProps
|
|
6849
|
-
}) : new
|
|
6850
|
-
formatter:
|
|
6849
|
+
}) : new Ki(n.document, {
|
|
6850
|
+
formatter: $i(n.params),
|
|
6851
6851
|
lineCount: (e = n.params.lineCount) !== null && e !== void 0 ? e : Wn.monitor.defaultLineCount,
|
|
6852
6852
|
value: n.value,
|
|
6853
6853
|
viewProps: n.viewProps
|
|
@@ -6856,7 +6856,7 @@ var or = { exports: {} };
|
|
|
6856
6856
|
function $a(n) {
|
|
6857
6857
|
var e, t, i;
|
|
6858
6858
|
return new Ka(n.document, {
|
|
6859
|
-
formatter:
|
|
6859
|
+
formatter: $i(n.params),
|
|
6860
6860
|
lineCount: (e = n.params.lineCount) !== null && e !== void 0 ? e : Wn.monitor.defaultLineCount,
|
|
6861
6861
|
props: j.fromObject({
|
|
6862
6862
|
maxValue: (t = "max" in n.params ? n.params.max : null) !== null && t !== void 0 ? t : 100,
|
|
@@ -6913,12 +6913,12 @@ var or = { exports: {} };
|
|
|
6913
6913
|
controller: (n) => {
|
|
6914
6914
|
var e;
|
|
6915
6915
|
const t = n.value;
|
|
6916
|
-
return t.rawValue.length > 1 || "multiline" in n.params && n.params.multiline ? new
|
|
6916
|
+
return t.rawValue.length > 1 || "multiline" in n.params && n.params.multiline ? new Ki(n.document, {
|
|
6917
6917
|
formatter: cn,
|
|
6918
6918
|
lineCount: (e = n.params.lineCount) !== null && e !== void 0 ? e : Wn.monitor.defaultLineCount,
|
|
6919
6919
|
value: t,
|
|
6920
6920
|
viewProps: n.viewProps
|
|
6921
|
-
}) : new
|
|
6921
|
+
}) : new Gi(n.document, {
|
|
6922
6922
|
formatter: cn,
|
|
6923
6923
|
value: t,
|
|
6924
6924
|
viewProps: n.viewProps
|
|
@@ -7017,7 +7017,7 @@ var or = { exports: {} };
|
|
|
7017
7017
|
reader: F,
|
|
7018
7018
|
target: e.target,
|
|
7019
7019
|
ticker: Qa(e.document, W),
|
|
7020
|
-
value:
|
|
7020
|
+
value: wi(U)
|
|
7021
7021
|
}), lt = g.optional.boolean(e.params.disabled).value, Zn = g.optional.boolean(e.params.hidden).value, Qn = n.controller({
|
|
7022
7022
|
document: e.document,
|
|
7023
7023
|
params: y.params,
|
|
@@ -7093,7 +7093,7 @@ var or = { exports: {} };
|
|
|
7093
7093
|
});
|
|
7094
7094
|
}
|
|
7095
7095
|
createBlade(e, t) {
|
|
7096
|
-
const i = this.pluginsMap_.blades.reduce((p, g) => p ??
|
|
7096
|
+
const i = this.pluginsMap_.blades.reduce((p, g) => p ?? Ys(g, {
|
|
7097
7097
|
document: e,
|
|
7098
7098
|
params: t
|
|
7099
7099
|
}), null);
|
|
@@ -7133,12 +7133,12 @@ var or = { exports: {} };
|
|
|
7133
7133
|
da,
|
|
7134
7134
|
ua,
|
|
7135
7135
|
aa,
|
|
7136
|
-
|
|
7136
|
+
Ti,
|
|
7137
7137
|
Ua,
|
|
7138
7138
|
Ya,
|
|
7139
7139
|
qa,
|
|
7140
7140
|
ht,
|
|
7141
|
-
|
|
7141
|
+
Hs,
|
|
7142
7142
|
as,
|
|
7143
7143
|
An
|
|
7144
7144
|
].forEach((e) => {
|
|
@@ -7354,7 +7354,7 @@ var or = { exports: {} };
|
|
|
7354
7354
|
}),
|
|
7355
7355
|
textProps: j.fromObject({
|
|
7356
7356
|
draggingScale: Ct(void 0, i),
|
|
7357
|
-
formatter: (t = n.params.format) !== null && t !== void 0 ? t :
|
|
7357
|
+
formatter: (t = n.params.format) !== null && t !== void 0 ? t : gi
|
|
7358
7358
|
}),
|
|
7359
7359
|
value: X(i),
|
|
7360
7360
|
viewProps: n.viewProps
|
|
@@ -7470,7 +7470,7 @@ var or = { exports: {} };
|
|
|
7470
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 });
|
|
7471
7471
|
});
|
|
7472
7472
|
})(or, or.exports);
|
|
7473
|
-
var
|
|
7473
|
+
var Is = { exports: {} };
|
|
7474
7474
|
(function(k, l) {
|
|
7475
7475
|
(function(u, a) {
|
|
7476
7476
|
a(l);
|
|
@@ -8230,25 +8230,25 @@ var Ns = { exports: {} };
|
|
|
8230
8230
|
const c = It(o, s);
|
|
8231
8231
|
return s += c.length, c === "" ? "" : r + c + rn(o, s);
|
|
8232
8232
|
}
|
|
8233
|
-
function
|
|
8233
|
+
function Os(o, s) {
|
|
8234
8234
|
const r = Dt(o, s);
|
|
8235
8235
|
return s += r.length, r === "" ? "" : r + rn(o, s);
|
|
8236
8236
|
}
|
|
8237
|
-
const
|
|
8237
|
+
const Ds = Te([
|
|
8238
8238
|
Pn,
|
|
8239
8239
|
kn,
|
|
8240
|
-
|
|
8240
|
+
Os
|
|
8241
8241
|
]);
|
|
8242
|
-
function
|
|
8242
|
+
function Fs(o, s) {
|
|
8243
8243
|
var r;
|
|
8244
8244
|
const c = o.substr(s).match(/^[01]+/);
|
|
8245
8245
|
return (r = c && c[0]) !== null && r !== void 0 ? r : "";
|
|
8246
8246
|
}
|
|
8247
|
-
function
|
|
8247
|
+
function js(o, s) {
|
|
8248
8248
|
const r = o.substr(s, 2);
|
|
8249
8249
|
if (s += r.length, r.toLowerCase() !== "0b")
|
|
8250
8250
|
return "";
|
|
8251
|
-
const c =
|
|
8251
|
+
const c = Fs(o, s);
|
|
8252
8252
|
return c === "" ? "" : r + c;
|
|
8253
8253
|
}
|
|
8254
8254
|
function Tn(o, s) {
|
|
@@ -8256,14 +8256,14 @@ var Ns = { exports: {} };
|
|
|
8256
8256
|
const c = o.substr(s).match(/^[0-7]+/);
|
|
8257
8257
|
return (r = c && c[0]) !== null && r !== void 0 ? r : "";
|
|
8258
8258
|
}
|
|
8259
|
-
function
|
|
8259
|
+
function Bs(o, s) {
|
|
8260
8260
|
const r = o.substr(s, 2);
|
|
8261
8261
|
if (s += r.length, r.toLowerCase() !== "0o")
|
|
8262
8262
|
return "";
|
|
8263
8263
|
const c = Tn(o, s);
|
|
8264
8264
|
return c === "" ? "" : r + c;
|
|
8265
8265
|
}
|
|
8266
|
-
function
|
|
8266
|
+
function zs(o, s) {
|
|
8267
8267
|
var r;
|
|
8268
8268
|
const c = o.substr(s).match(/^[0-9a-f]+/i);
|
|
8269
8269
|
return (r = c && c[0]) !== null && r !== void 0 ? r : "";
|
|
@@ -8272,25 +8272,25 @@ var Ns = { exports: {} };
|
|
|
8272
8272
|
const r = o.substr(s, 2);
|
|
8273
8273
|
if (s += r.length, r.toLowerCase() !== "0x")
|
|
8274
8274
|
return "";
|
|
8275
|
-
const c =
|
|
8275
|
+
const c = zs(o, s);
|
|
8276
8276
|
return c === "" ? "" : r + c;
|
|
8277
8277
|
}
|
|
8278
8278
|
const is = Te([
|
|
8279
|
-
Fs,
|
|
8280
8279
|
js,
|
|
8280
|
+
Bs,
|
|
8281
8281
|
Ft
|
|
8282
|
-
]),
|
|
8282
|
+
]), Us = Te([
|
|
8283
8283
|
is,
|
|
8284
|
-
|
|
8284
|
+
Ds
|
|
8285
8285
|
]);
|
|
8286
8286
|
function Mn(o, s) {
|
|
8287
|
-
const r =
|
|
8287
|
+
const r = Us(o, s);
|
|
8288
8288
|
return s += r.length, r === "" ? null : {
|
|
8289
8289
|
evaluable: new ke(r),
|
|
8290
8290
|
cursor: s
|
|
8291
8291
|
};
|
|
8292
8292
|
}
|
|
8293
|
-
function
|
|
8293
|
+
function Hs(o, s) {
|
|
8294
8294
|
const r = o.substr(s, 1);
|
|
8295
8295
|
if (s += r.length, r !== "(")
|
|
8296
8296
|
return null;
|
|
@@ -8306,7 +8306,7 @@ var Ns = { exports: {} };
|
|
|
8306
8306
|
}
|
|
8307
8307
|
function vt(o, s) {
|
|
8308
8308
|
var r;
|
|
8309
|
-
return (r = Mn(o, s)) !== null && r !== void 0 ? r :
|
|
8309
|
+
return (r = Mn(o, s)) !== null && r !== void 0 ? r : Hs(o, s);
|
|
8310
8310
|
}
|
|
8311
8311
|
function Ln(o, s) {
|
|
8312
8312
|
const r = vt(o, s);
|
|
@@ -8329,7 +8329,7 @@ var Ns = { exports: {} };
|
|
|
8329
8329
|
operator: c
|
|
8330
8330
|
}) : null;
|
|
8331
8331
|
}
|
|
8332
|
-
function
|
|
8332
|
+
function Ks(o, s) {
|
|
8333
8333
|
return (r, c) => {
|
|
8334
8334
|
const b = o(r, c);
|
|
8335
8335
|
if (!b)
|
|
@@ -8360,17 +8360,17 @@ var Ns = { exports: {} };
|
|
|
8360
8360
|
["&"],
|
|
8361
8361
|
["^"],
|
|
8362
8362
|
["|"]
|
|
8363
|
-
].reduce((o, s) =>
|
|
8363
|
+
].reduce((o, s) => Ks(o, s), Ln);
|
|
8364
8364
|
function as(o, s) {
|
|
8365
8365
|
return s += nt(o, s).length, os(o, s);
|
|
8366
8366
|
}
|
|
8367
|
-
function
|
|
8367
|
+
function Gs(o) {
|
|
8368
8368
|
const s = as(o, 0);
|
|
8369
8369
|
return !s || s.cursor + nt(o, s.cursor).length !== o.length ? null : s.evaluable;
|
|
8370
8370
|
}
|
|
8371
8371
|
function jt(o) {
|
|
8372
8372
|
var s;
|
|
8373
|
-
const r =
|
|
8373
|
+
const r = Gs(o);
|
|
8374
8374
|
return (s = r == null ? void 0 : r.evaluate()) !== null && s !== void 0 ? s : null;
|
|
8375
8375
|
}
|
|
8376
8376
|
function We(o) {
|
|
@@ -8386,9 +8386,9 @@ var Ns = { exports: {} };
|
|
|
8386
8386
|
function ce(o) {
|
|
8387
8387
|
return (s) => s.toFixed(Math.max(Math.min(o, 20), 0));
|
|
8388
8388
|
}
|
|
8389
|
-
const
|
|
8389
|
+
const $s = ce(0);
|
|
8390
8390
|
function on(o) {
|
|
8391
|
-
return
|
|
8391
|
+
return $s(o) + "%";
|
|
8392
8392
|
}
|
|
8393
8393
|
function ls(o) {
|
|
8394
8394
|
return String(o);
|
|
@@ -8405,7 +8405,7 @@ var Ns = { exports: {} };
|
|
|
8405
8405
|
const s = o.indexOf(void 0);
|
|
8406
8406
|
return s < 0 ? o : o.slice(0, s);
|
|
8407
8407
|
}
|
|
8408
|
-
function
|
|
8408
|
+
function qs(o, s) {
|
|
8409
8409
|
const r = [...ps(o), s];
|
|
8410
8410
|
return r.length > o.length ? r.splice(0, r.length - o.length) : Sn(r, o.length), r;
|
|
8411
8411
|
}
|
|
@@ -8451,11 +8451,11 @@ var Ns = { exports: {} };
|
|
|
8451
8451
|
upKey: o.key === "ArrowRight"
|
|
8452
8452
|
};
|
|
8453
8453
|
}
|
|
8454
|
-
function
|
|
8454
|
+
function Ys(o) {
|
|
8455
8455
|
return o === "ArrowUp" || o === "ArrowDown";
|
|
8456
8456
|
}
|
|
8457
8457
|
function us(o) {
|
|
8458
|
-
return
|
|
8458
|
+
return Ys(o) || o === "ArrowLeft" || o === "ArrowRight";
|
|
8459
8459
|
}
|
|
8460
8460
|
function Vn(o, s) {
|
|
8461
8461
|
var r, c;
|
|
@@ -8599,7 +8599,7 @@ var Ns = { exports: {} };
|
|
|
8599
8599
|
this.refresh();
|
|
8600
8600
|
}
|
|
8601
8601
|
}
|
|
8602
|
-
class
|
|
8602
|
+
class Xs {
|
|
8603
8603
|
constructor(s, r) {
|
|
8604
8604
|
var c;
|
|
8605
8605
|
this.originRawValue_ = 0, this.onInputChange_ = this.onInputChange_.bind(this), this.onInputKeyDown_ = this.onInputKeyDown_.bind(this), this.onInputKeyUp_ = this.onInputKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = r.baseStep, this.parser_ = r.parser, this.props = r.props, this.sliderProps_ = (c = r.sliderProps) !== null && c !== void 0 ? c : null, this.value = r.value, this.viewProps = r.viewProps, this.dragging_ = J(null), this.view = new Rn(s, {
|
|
@@ -8666,7 +8666,7 @@ var Ns = { exports: {} };
|
|
|
8666
8666
|
const s = o ? Ve(o, Pe) : null;
|
|
8667
8667
|
return s ? s.step : null;
|
|
8668
8668
|
}
|
|
8669
|
-
function
|
|
8669
|
+
function Ws(o, s) {
|
|
8670
8670
|
const r = o && Ve(o, Pe);
|
|
8671
8671
|
return r ? bt(r.step) : Math.max(bt(s), 2);
|
|
8672
8672
|
}
|
|
@@ -8686,7 +8686,7 @@ var Ns = { exports: {} };
|
|
|
8686
8686
|
const s = Se(Math.floor(o), 0, 255).toString(16);
|
|
8687
8687
|
return s.length === 1 ? `0${s}` : s;
|
|
8688
8688
|
}
|
|
8689
|
-
function
|
|
8689
|
+
function Zs(o, s = "#") {
|
|
8690
8690
|
const r = an(o.getComponents("rgb")).map(Ut).join("");
|
|
8691
8691
|
return `${s}${r}`;
|
|
8692
8692
|
}
|
|
@@ -8698,17 +8698,17 @@ var Ns = { exports: {} };
|
|
|
8698
8698
|
const r = ce(s === "float" ? 2 : 0);
|
|
8699
8699
|
return `rgb(${an(o.getComponents("rgb", s)).map((b) => r(b)).join(", ")})`;
|
|
8700
8700
|
}
|
|
8701
|
-
function
|
|
8701
|
+
function Qs(o) {
|
|
8702
8702
|
return (s) => vs(s, o);
|
|
8703
8703
|
}
|
|
8704
|
-
function
|
|
8704
|
+
function Js(o, s) {
|
|
8705
8705
|
const r = ce(2), c = ce(s === "float" ? 2 : 0);
|
|
8706
8706
|
return `rgba(${o.getComponents("rgb", s).map((x, T) => (T === 3 ? r : c)(x)).join(", ")})`;
|
|
8707
8707
|
}
|
|
8708
|
-
function Js(o) {
|
|
8709
|
-
return (s) => Qs(s, o);
|
|
8710
|
-
}
|
|
8711
8708
|
function ei(o) {
|
|
8709
|
+
return (s) => Js(s, o);
|
|
8710
|
+
}
|
|
8711
|
+
function ti(o) {
|
|
8712
8712
|
const s = [
|
|
8713
8713
|
ce(0),
|
|
8714
8714
|
on,
|
|
@@ -8716,7 +8716,7 @@ var Ns = { exports: {} };
|
|
|
8716
8716
|
];
|
|
8717
8717
|
return `hsl(${an(o.getComponents("hsl")).map((c, b) => s[b](c)).join(", ")})`;
|
|
8718
8718
|
}
|
|
8719
|
-
function
|
|
8719
|
+
function ni(o) {
|
|
8720
8720
|
const s = [
|
|
8721
8721
|
ce(0),
|
|
8722
8722
|
on,
|
|
@@ -8732,7 +8732,7 @@ var Ns = { exports: {} };
|
|
|
8732
8732
|
function Ht(o) {
|
|
8733
8733
|
return (s) => In(s, o);
|
|
8734
8734
|
}
|
|
8735
|
-
function
|
|
8735
|
+
function si(o, s) {
|
|
8736
8736
|
const r = ce(2), c = ce(s === "float" ? 2 : 0), b = ["r", "g", "b", "a"];
|
|
8737
8737
|
return `{${o.getComponents("rgb", s).map((T, R) => {
|
|
8738
8738
|
const D = R === 3 ? r : c;
|
|
@@ -8740,7 +8740,7 @@ var Ns = { exports: {} };
|
|
|
8740
8740
|
}).join(", ")}}`;
|
|
8741
8741
|
}
|
|
8742
8742
|
function Kt(o) {
|
|
8743
|
-
return (s) =>
|
|
8743
|
+
return (s) => si(s, o);
|
|
8744
8744
|
}
|
|
8745
8745
|
[
|
|
8746
8746
|
...["int", "float"].reduce((o, s) => [
|
|
@@ -8752,7 +8752,7 @@ var Ns = { exports: {} };
|
|
|
8752
8752
|
notation: "func",
|
|
8753
8753
|
type: s
|
|
8754
8754
|
},
|
|
8755
|
-
stringifier:
|
|
8755
|
+
stringifier: Qs(s)
|
|
8756
8756
|
},
|
|
8757
8757
|
{
|
|
8758
8758
|
format: {
|
|
@@ -8761,7 +8761,7 @@ var Ns = { exports: {} };
|
|
|
8761
8761
|
notation: "func",
|
|
8762
8762
|
type: s
|
|
8763
8763
|
},
|
|
8764
|
-
stringifier:
|
|
8764
|
+
stringifier: ei(s)
|
|
8765
8765
|
},
|
|
8766
8766
|
{
|
|
8767
8767
|
format: {
|
|
@@ -8783,7 +8783,7 @@ var Ns = { exports: {} };
|
|
|
8783
8783
|
}
|
|
8784
8784
|
], [])
|
|
8785
8785
|
];
|
|
8786
|
-
class
|
|
8786
|
+
class ii {
|
|
8787
8787
|
constructor(s) {
|
|
8788
8788
|
this.components = s.components, this.asm_ = s.assembly;
|
|
8789
8789
|
}
|
|
@@ -8804,8 +8804,8 @@ var Ns = { exports: {} };
|
|
|
8804
8804
|
});
|
|
8805
8805
|
}
|
|
8806
8806
|
}
|
|
8807
|
-
function
|
|
8808
|
-
return new
|
|
8807
|
+
function ri(o, s, r) {
|
|
8808
|
+
return new Xs(o, {
|
|
8809
8809
|
arrayPosition: r === 0 ? "fst" : r === s.axes.length - 1 ? "lst" : "mid",
|
|
8810
8810
|
baseStep: s.axes[r].baseStep,
|
|
8811
8811
|
parser: s.parser,
|
|
@@ -8818,7 +8818,7 @@ var Ns = { exports: {} };
|
|
|
8818
8818
|
}
|
|
8819
8819
|
class On {
|
|
8820
8820
|
constructor(s, r) {
|
|
8821
|
-
this.value = r.value, this.viewProps = r.viewProps, this.acs_ = r.axes.map((c, b) =>
|
|
8821
|
+
this.value = r.value, this.viewProps = r.viewProps, this.acs_ = r.axes.map((c, b) => ri(s, r, b)), this.acs_.forEach((c, b) => {
|
|
8822
8822
|
Bt({
|
|
8823
8823
|
primary: this.value,
|
|
8824
8824
|
secondary: c.value,
|
|
@@ -8833,22 +8833,22 @@ var Ns = { exports: {} };
|
|
|
8833
8833
|
});
|
|
8834
8834
|
}
|
|
8835
8835
|
}
|
|
8836
|
-
function
|
|
8836
|
+
function oi(o, s) {
|
|
8837
8837
|
return "step" in o && !f(o.step) ? new Pe(o.step, s) : null;
|
|
8838
8838
|
}
|
|
8839
|
-
function
|
|
8839
|
+
function ai(o) {
|
|
8840
8840
|
return "max" in o && !f(o.max) || "min" in o && !f(o.min) ? new ht({
|
|
8841
8841
|
max: o.max,
|
|
8842
8842
|
min: o.min
|
|
8843
8843
|
}) : null;
|
|
8844
8844
|
}
|
|
8845
|
-
const
|
|
8845
|
+
const li = {
|
|
8846
8846
|
monitor: {
|
|
8847
8847
|
defaultInterval: 200,
|
|
8848
8848
|
defaultLineCount: 3
|
|
8849
8849
|
}
|
|
8850
8850
|
}, Qe = P("grl");
|
|
8851
|
-
class
|
|
8851
|
+
class ci {
|
|
8852
8852
|
constructor(s, r) {
|
|
8853
8853
|
this.onCursorChange_ = this.onCursorChange_.bind(this), this.onValueUpdate_ = this.onValueUpdate_.bind(this), this.element = s.createElement("div"), this.element.classList.add(Qe()), r.viewProps.bindClassModifiers(this.element), this.formatter_ = r.formatter, this.props_ = r.props, this.cursor_ = r.cursor, this.cursor_.emitter.on("change", this.onCursorChange_);
|
|
8854
8854
|
const c = s.createElementNS(K, "svg");
|
|
@@ -8884,9 +8884,9 @@ var Ns = { exports: {} };
|
|
|
8884
8884
|
this.update_();
|
|
8885
8885
|
}
|
|
8886
8886
|
}
|
|
8887
|
-
class
|
|
8887
|
+
class pi {
|
|
8888
8888
|
constructor(s, r) {
|
|
8889
|
-
if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props_ = r.props, this.value = r.value, this.viewProps = r.viewProps, this.cursor_ = J(-1), this.view = new
|
|
8889
|
+
if (this.onGraphMouseMove_ = this.onGraphMouseMove_.bind(this), this.onGraphMouseLeave_ = this.onGraphMouseLeave_.bind(this), this.onGraphPointerDown_ = this.onGraphPointerDown_.bind(this), this.onGraphPointerMove_ = this.onGraphPointerMove_.bind(this), this.onGraphPointerUp_ = this.onGraphPointerUp_.bind(this), this.props_ = r.props, this.value = r.value, this.viewProps = r.viewProps, this.cursor_ = J(-1), this.view = new ci(s, {
|
|
8890
8890
|
cursor: this.cursor_,
|
|
8891
8891
|
formatter: r.formatter,
|
|
8892
8892
|
lineCount: r.lineCount,
|
|
@@ -8921,7 +8921,7 @@ var Ns = { exports: {} };
|
|
|
8921
8921
|
this.cursor_.rawValue = -1;
|
|
8922
8922
|
}
|
|
8923
8923
|
}
|
|
8924
|
-
class
|
|
8924
|
+
class ui {
|
|
8925
8925
|
constructor(s) {
|
|
8926
8926
|
this.controller_ = s;
|
|
8927
8927
|
}
|
|
@@ -8945,21 +8945,21 @@ var Ns = { exports: {} };
|
|
|
8945
8945
|
}), this;
|
|
8946
8946
|
}
|
|
8947
8947
|
}
|
|
8948
|
-
class
|
|
8948
|
+
class di extends d {
|
|
8949
8949
|
constructor(s, r, c) {
|
|
8950
8950
|
super(s), this.cell = r, this.index = c;
|
|
8951
8951
|
}
|
|
8952
8952
|
}
|
|
8953
|
-
class
|
|
8953
|
+
class hi extends a {
|
|
8954
8954
|
constructor(s) {
|
|
8955
8955
|
super(s), this.cellToApiMap_ = /* @__PURE__ */ new Map(), this.emitter_ = new C();
|
|
8956
8956
|
const r = this.controller_.valueController;
|
|
8957
8957
|
r.cellControllers.forEach((c, b) => {
|
|
8958
|
-
const x = new
|
|
8958
|
+
const x = new ui(c);
|
|
8959
8959
|
this.cellToApiMap_.set(c, x), c.emitter.on("click", () => {
|
|
8960
8960
|
const T = b % r.size[0], R = Math.floor(b / r.size[0]);
|
|
8961
8961
|
this.emitter_.emit("click", {
|
|
8962
|
-
event: new
|
|
8962
|
+
event: new di(this, x, [T, R])
|
|
8963
8963
|
});
|
|
8964
8964
|
});
|
|
8965
8965
|
});
|
|
@@ -9002,7 +9002,7 @@ var Ns = { exports: {} };
|
|
|
9002
9002
|
return this.cellCs_;
|
|
9003
9003
|
}
|
|
9004
9004
|
}
|
|
9005
|
-
const
|
|
9005
|
+
const mi = {
|
|
9006
9006
|
id: "buttongrid",
|
|
9007
9007
|
type: "blade",
|
|
9008
9008
|
css: '.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-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-radv_b,.tp-rslv_k,.tp-cbzv_b{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-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{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-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_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-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',
|
|
@@ -9028,10 +9028,10 @@ var Ns = { exports: {} };
|
|
|
9028
9028
|
});
|
|
9029
9029
|
},
|
|
9030
9030
|
api(o) {
|
|
9031
|
-
return !(o.controller instanceof et) || !(o.controller.valueController instanceof bs) ? null : new
|
|
9031
|
+
return !(o.controller instanceof et) || !(o.controller.valueController instanceof bs) ? null : new hi(o.controller);
|
|
9032
9032
|
}
|
|
9033
9033
|
};
|
|
9034
|
-
class
|
|
9034
|
+
class vi extends a {
|
|
9035
9035
|
get label() {
|
|
9036
9036
|
return this.controller_.props.get("label");
|
|
9037
9037
|
}
|
|
@@ -9054,12 +9054,12 @@ var Ns = { exports: {} };
|
|
|
9054
9054
|
function Me(o, s, r) {
|
|
9055
9055
|
return o * (1 - r) + s * r;
|
|
9056
9056
|
}
|
|
9057
|
-
const gs = 20,
|
|
9058
|
-
function
|
|
9057
|
+
const gs = 20, fi = 1e-3, Dn = 100;
|
|
9058
|
+
function bi(o, s) {
|
|
9059
9059
|
let r = 0.25, c = 0.5, b = -1;
|
|
9060
9060
|
for (let x = 0; x < gs; x++) {
|
|
9061
9061
|
const [T, R] = o.curve(c);
|
|
9062
|
-
if (c += r * (T < s ? 1 : -1), b = R, r *= 0.5, Math.abs(s - T) <
|
|
9062
|
+
if (c += r * (T < s ? 1 : -1), b = R, r *= 0.5, Math.abs(s - T) < fi)
|
|
9063
9063
|
break;
|
|
9064
9064
|
}
|
|
9065
9065
|
return b;
|
|
@@ -9094,7 +9094,7 @@ var Ns = { exports: {} };
|
|
|
9094
9094
|
if (this.cache_.length === 0) {
|
|
9095
9095
|
const r = [];
|
|
9096
9096
|
for (let c = 0; c < Dn; c++)
|
|
9097
|
-
r.push(
|
|
9097
|
+
r.push(bi(this, Q(c, 0, Dn - 1, 0, 1)));
|
|
9098
9098
|
this.cache_ = r;
|
|
9099
9099
|
}
|
|
9100
9100
|
return this.cache_[Math.round(Q(Se(s, 0, 1), 0, 1, 0, Dn - 1))];
|
|
@@ -9112,7 +9112,7 @@ var Ns = { exports: {} };
|
|
|
9112
9112
|
return `cubic-bezier(${o.toObject().map((c) => s(c)).join(", ")})`;
|
|
9113
9113
|
}
|
|
9114
9114
|
const Fn = [0, 0.5, 0.5, 1];
|
|
9115
|
-
function
|
|
9115
|
+
function gi(o) {
|
|
9116
9116
|
const s = o.match(/^cubic-bezier\s*\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*\)$/);
|
|
9117
9117
|
if (!s)
|
|
9118
9118
|
return new je(...Fn);
|
|
@@ -9125,7 +9125,7 @@ var Ns = { exports: {} };
|
|
|
9125
9125
|
return new je(...r ?? Fn);
|
|
9126
9126
|
}
|
|
9127
9127
|
const se = P("cbz");
|
|
9128
|
-
class
|
|
9128
|
+
class _i {
|
|
9129
9129
|
constructor(s, r) {
|
|
9130
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")));
|
|
9131
9131
|
const c = s.createElement("div");
|
|
@@ -9166,10 +9166,10 @@ var Ns = { exports: {} };
|
|
|
9166
9166
|
});
|
|
9167
9167
|
}
|
|
9168
9168
|
const ze = P("cbzg");
|
|
9169
|
-
function
|
|
9169
|
+
function wi(o, s) {
|
|
9170
9170
|
return (r) => s(o(r));
|
|
9171
9171
|
}
|
|
9172
|
-
class
|
|
9172
|
+
class xi {
|
|
9173
9173
|
constructor(s, r) {
|
|
9174
9174
|
this.element = s.createElement("div"), this.element.classList.add(ze()), r.viewProps.bindClassModifiers(this.element), r.viewProps.bindTabIndex(this.element);
|
|
9175
9175
|
const c = s.createElement("div");
|
|
@@ -9187,7 +9187,7 @@ var Ns = { exports: {} };
|
|
|
9187
9187
|
], this.vectorElems_.forEach((R) => {
|
|
9188
9188
|
R.classList.add(ze("v")), this.svgElem_.appendChild(R);
|
|
9189
9189
|
}), this.value_ = r.value, this.value_.emitter.on("change", this.onValueChange_.bind(this)), this.sel_ = r.selection, this.handleElems_.forEach((R, D) => {
|
|
9190
|
-
N(this.sel_,
|
|
9190
|
+
N(this.sel_, wi((le) => le === D, G(R, ze("h", "sel"))));
|
|
9191
9191
|
}), cn(this.element, () => {
|
|
9192
9192
|
this.refresh();
|
|
9193
9193
|
});
|
|
@@ -9292,7 +9292,7 @@ var Ns = { exports: {} };
|
|
|
9292
9292
|
}
|
|
9293
9293
|
class Bn {
|
|
9294
9294
|
constructor(s, r) {
|
|
9295
|
-
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = r.baseStep, this.value = r.value, this.sel_ = J(0), this.viewProps = r.viewProps, this.view = new
|
|
9295
|
+
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.baseStep_ = r.baseStep, this.value = r.value, this.sel_ = J(0), this.viewProps = r.viewProps, this.view = new xi(s, {
|
|
9296
9296
|
selection: this.sel_,
|
|
9297
9297
|
value: this.value,
|
|
9298
9298
|
viewProps: this.viewProps
|
|
@@ -9383,12 +9383,12 @@ var Ns = { exports: {} };
|
|
|
9383
9383
|
}
|
|
9384
9384
|
class ee {
|
|
9385
9385
|
constructor(s, r) {
|
|
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
|
|
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 _i(s, {
|
|
9387
9387
|
foldable: this.foldable_,
|
|
9388
9388
|
pickerLayout: r.pickerLayout,
|
|
9389
9389
|
viewProps: this.viewProps
|
|
9390
9390
|
}), this.view.buttonElement.addEventListener("blur", this.onButtonBlur_), this.view.buttonElement.addEventListener("click", this.onButtonClick_), this.tc_ = new $(s, {
|
|
9391
|
-
parser:
|
|
9391
|
+
parser: gi,
|
|
9392
9392
|
props: ne.fromObject({
|
|
9393
9393
|
formatter: Be
|
|
9394
9394
|
}),
|
|
@@ -9433,7 +9433,7 @@ var Ns = { exports: {} };
|
|
|
9433
9433
|
}
|
|
9434
9434
|
}
|
|
9435
9435
|
function Cs() {
|
|
9436
|
-
return new
|
|
9436
|
+
return new ii({
|
|
9437
9437
|
assembly: _s,
|
|
9438
9438
|
components: [0, 1, 2, 3].map((o) => o % 2 === 0 ? new ht({
|
|
9439
9439
|
min: 0,
|
|
@@ -9482,7 +9482,7 @@ var Ns = { exports: {} };
|
|
|
9482
9482
|
});
|
|
9483
9483
|
},
|
|
9484
9484
|
api(o) {
|
|
9485
|
-
return !(o.controller instanceof qe) || !(o.controller.valueController instanceof ee) ? null : new
|
|
9485
|
+
return !(o.controller instanceof qe) || !(o.controller.valueController instanceof ee) ? null : new vi(o.controller);
|
|
9486
9486
|
}
|
|
9487
9487
|
};
|
|
9488
9488
|
class Es extends a {
|
|
@@ -9494,7 +9494,7 @@ var Ns = { exports: {} };
|
|
|
9494
9494
|
}
|
|
9495
9495
|
}
|
|
9496
9496
|
const xe = 20;
|
|
9497
|
-
class
|
|
9497
|
+
class yi {
|
|
9498
9498
|
constructor() {
|
|
9499
9499
|
this.start_ = null, this.duration_ = 0, this.fps_ = null, this.frameCount_ = 0, this.timestamps_ = [];
|
|
9500
9500
|
}
|
|
@@ -9547,9 +9547,9 @@ var Ns = { exports: {} };
|
|
|
9547
9547
|
}
|
|
9548
9548
|
class Ps {
|
|
9549
9549
|
constructor(s, r) {
|
|
9550
|
-
this.stopwatch_ = new
|
|
9550
|
+
this.stopwatch_ = new yi(), this.onTick_ = this.onTick_.bind(this), this.ticker_ = r.ticker, this.ticker_.emitter.on("tick", this.onTick_), this.value_ = r.value, this.viewProps = r.viewProps, this.view = new zn(s, {
|
|
9551
9551
|
viewProps: this.viewProps
|
|
9552
|
-
}), this.graphC_ = new
|
|
9552
|
+
}), this.graphC_ = new pi(s, {
|
|
9553
9553
|
formatter: ce(0),
|
|
9554
9554
|
lineCount: r.lineCount,
|
|
9555
9555
|
props: ne.fromObject({
|
|
@@ -9572,12 +9572,12 @@ var Ns = { exports: {} };
|
|
|
9572
9572
|
const s = this.stopwatch_.fps;
|
|
9573
9573
|
if (s !== null) {
|
|
9574
9574
|
const r = this.value_.rawValue;
|
|
9575
|
-
this.value_.rawValue =
|
|
9575
|
+
this.value_.rawValue = qs(r, s), this.view.valueElement.textContent = s.toFixed(0);
|
|
9576
9576
|
}
|
|
9577
9577
|
}
|
|
9578
9578
|
}
|
|
9579
|
-
function
|
|
9580
|
-
return s === 0 ? new Ye() : new En(o, s ??
|
|
9579
|
+
function Ci(o, s) {
|
|
9580
|
+
return s === 0 ? new Ye() : new En(o, s ?? li.monitor.defaultInterval);
|
|
9581
9581
|
}
|
|
9582
9582
|
const Un = {
|
|
9583
9583
|
id: "fpsgraph",
|
|
@@ -9605,7 +9605,7 @@ var Ns = { exports: {} };
|
|
|
9605
9605
|
lineCount: (r = o.params.lineCount) !== null && r !== void 0 ? r : 2,
|
|
9606
9606
|
maxValue: (c = o.params.max) !== null && c !== void 0 ? c : 90,
|
|
9607
9607
|
minValue: (b = o.params.min) !== null && b !== void 0 ? b : 0,
|
|
9608
|
-
ticker:
|
|
9608
|
+
ticker: Ci(o.document, x),
|
|
9609
9609
|
value: cs(80),
|
|
9610
9610
|
viewProps: o.viewProps
|
|
9611
9611
|
})
|
|
@@ -9772,16 +9772,16 @@ var Ns = { exports: {} };
|
|
|
9772
9772
|
return this.tc_;
|
|
9773
9773
|
}
|
|
9774
9774
|
}
|
|
9775
|
-
function
|
|
9775
|
+
function Ei(o) {
|
|
9776
9776
|
return Le.isObject(o) ? new Le(o.min, o.max) : new Le(0, 0);
|
|
9777
9777
|
}
|
|
9778
9778
|
function un(o, s) {
|
|
9779
9779
|
o.writeProperty("max", s.max), o.writeProperty("min", s.min);
|
|
9780
9780
|
}
|
|
9781
9781
|
function yt(o) {
|
|
9782
|
-
const s = [], r =
|
|
9782
|
+
const s = [], r = ai(o);
|
|
9783
9783
|
r && s.push(r);
|
|
9784
|
-
const c =
|
|
9784
|
+
const c = oi(o);
|
|
9785
9785
|
return c && s.push(c), new wt(new Nt(s));
|
|
9786
9786
|
}
|
|
9787
9787
|
const Ct = {
|
|
@@ -9803,7 +9803,7 @@ var Ns = { exports: {} };
|
|
|
9803
9803
|
} : null;
|
|
9804
9804
|
},
|
|
9805
9805
|
binding: {
|
|
9806
|
-
reader: (o) =>
|
|
9806
|
+
reader: (o) => Ei,
|
|
9807
9807
|
constraint: (o) => yt(o.params),
|
|
9808
9808
|
equals: Le.equals,
|
|
9809
9809
|
writer: (o) => un
|
|
@@ -9813,7 +9813,7 @@ var Ns = { exports: {} };
|
|
|
9813
9813
|
const r = o.value, c = o.constraint;
|
|
9814
9814
|
if (!(c instanceof wt))
|
|
9815
9815
|
throw w.shouldNeverHappen();
|
|
9816
|
-
const b = (r.rawValue.min + r.rawValue.max) / 2, x = (s = o.params.format) !== null && s !== void 0 ? s : ce(
|
|
9816
|
+
const b = (r.rawValue.min + r.rawValue.max) / 2, x = (s = o.params.format) !== null && s !== void 0 ? s : ce(Ws(c.edge, b)), T = c.edge && Ve(c.edge, ht);
|
|
9817
9817
|
if ((T == null ? void 0 : T.minValue) !== void 0 && (T == null ? void 0 : T.maxValue) !== void 0)
|
|
9818
9818
|
return new Kn(o.document, {
|
|
9819
9819
|
baseStep: Nn(c.edge),
|
|
@@ -9861,12 +9861,12 @@ var Ns = { exports: {} };
|
|
|
9861
9861
|
this.controller_.props.set("title", s);
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
9864
|
-
class
|
|
9864
|
+
class Pi extends m {
|
|
9865
9865
|
constructor(s, r, c, b, x) {
|
|
9866
9866
|
super(s, b, x), this.cell = r, this.index = c;
|
|
9867
9867
|
}
|
|
9868
9868
|
}
|
|
9869
|
-
class
|
|
9869
|
+
class ki extends a {
|
|
9870
9870
|
constructor(s) {
|
|
9871
9871
|
super(s), this.cellToApiMap_ = /* @__PURE__ */ new Map(), this.controller_.valueController.cellControllers.forEach((c) => {
|
|
9872
9872
|
const b = new dn(c);
|
|
@@ -9890,12 +9890,12 @@ var Ns = { exports: {} };
|
|
|
9890
9890
|
if (!R)
|
|
9891
9891
|
return;
|
|
9892
9892
|
const D = x.cellControllers.indexOf(T);
|
|
9893
|
-
c(new
|
|
9893
|
+
c(new Pi(this, R, [D % x.size[0], Math.floor(D / x.size[0])], b.rawValue, void 0));
|
|
9894
9894
|
});
|
|
9895
9895
|
}
|
|
9896
9896
|
}
|
|
9897
9897
|
const Gt = P("rad");
|
|
9898
|
-
class
|
|
9898
|
+
class Ti {
|
|
9899
9899
|
constructor(s, r) {
|
|
9900
9900
|
this.element = s.createElement("div"), this.element.classList.add(Gt()), r.viewProps.bindClassModifiers(this.element);
|
|
9901
9901
|
const c = s.createElement("label");
|
|
@@ -9912,7 +9912,7 @@ var Ns = { exports: {} };
|
|
|
9912
9912
|
}
|
|
9913
9913
|
class rt {
|
|
9914
9914
|
constructor(s, r) {
|
|
9915
|
-
this.props = r.props, this.viewProps = r.viewProps, this.view = new
|
|
9915
|
+
this.props = r.props, this.viewProps = r.viewProps, this.view = new Ti(s, {
|
|
9916
9916
|
name: r.name,
|
|
9917
9917
|
props: this.props,
|
|
9918
9918
|
viewProps: this.viewProps
|
|
@@ -9954,7 +9954,7 @@ var Ns = { exports: {} };
|
|
|
9954
9954
|
c < 0 || (this.value.rawValue = this.cellValues_[c]);
|
|
9955
9955
|
}
|
|
9956
9956
|
}
|
|
9957
|
-
const
|
|
9957
|
+
const Mi = function() {
|
|
9958
9958
|
return {
|
|
9959
9959
|
id: "radiogrid",
|
|
9960
9960
|
type: "blade",
|
|
@@ -9984,7 +9984,7 @@ var Ns = { exports: {} };
|
|
|
9984
9984
|
});
|
|
9985
9985
|
},
|
|
9986
9986
|
api(o) {
|
|
9987
|
-
return !(o.controller instanceof qe) || !(o.controller.valueController instanceof Gn) ? null : new
|
|
9987
|
+
return !(o.controller instanceof qe) || !(o.controller.valueController instanceof Gn) ? null : new ki(o.controller);
|
|
9988
9988
|
}
|
|
9989
9989
|
};
|
|
9990
9990
|
}();
|
|
@@ -10015,7 +10015,7 @@ var Ns = { exports: {} };
|
|
|
10015
10015
|
})
|
|
10016
10016
|
};
|
|
10017
10017
|
}
|
|
10018
|
-
const
|
|
10018
|
+
const Li = $n({
|
|
10019
10019
|
isType: (o) => typeof o == "number",
|
|
10020
10020
|
binding: {
|
|
10021
10021
|
reader: (o) => We,
|
|
@@ -10027,29 +10027,29 @@ var Ns = { exports: {} };
|
|
|
10027
10027
|
reader: (o) => ls,
|
|
10028
10028
|
writer: (o) => st
|
|
10029
10029
|
}
|
|
10030
|
-
}),
|
|
10030
|
+
}), Si = $n({
|
|
10031
10031
|
isType: (o) => typeof o == "boolean",
|
|
10032
10032
|
binding: {
|
|
10033
10033
|
reader: (o) => oe,
|
|
10034
10034
|
writer: (o) => st
|
|
10035
10035
|
}
|
|
10036
|
-
}),
|
|
10037
|
-
|
|
10036
|
+
}), Ai = [
|
|
10037
|
+
mi,
|
|
10038
10038
|
ae,
|
|
10039
10039
|
Un,
|
|
10040
10040
|
Ct,
|
|
10041
|
-
Ti,
|
|
10042
|
-
Li,
|
|
10043
10041
|
Mi,
|
|
10042
|
+
Si,
|
|
10043
|
+
Li,
|
|
10044
10044
|
Ms
|
|
10045
10045
|
];
|
|
10046
|
-
u.CubicBezier = je, u.plugins =
|
|
10046
|
+
u.CubicBezier = je, u.plugins = Ai, Object.defineProperty(u, "__esModule", { value: !0 });
|
|
10047
10047
|
});
|
|
10048
|
-
})(
|
|
10049
|
-
const $c = /* @__PURE__ */ Hc(
|
|
10048
|
+
})(Is, Is.exports);
|
|
10049
|
+
const $c = /* @__PURE__ */ Hc(Is.exports), qc = /* @__PURE__ */ ac({
|
|
10050
10050
|
__proto__: null,
|
|
10051
10051
|
default: $c
|
|
10052
|
-
}, [
|
|
10052
|
+
}, [Is.exports]);
|
|
10053
10053
|
let wn, Ss;
|
|
10054
10054
|
const ep = (k = "tres-container") => {
|
|
10055
10055
|
wn = new or.exports.Pane({
|
|
@@ -10068,10 +10068,10 @@ const ep = (k = "tres-container") => {
|
|
|
10068
10068
|
l();
|
|
10069
10069
|
}), { pane: wn, fpsGraph: Ss, disposeTweakPane: l };
|
|
10070
10070
|
};
|
|
10071
|
-
let
|
|
10071
|
+
let As = null;
|
|
10072
10072
|
function Yc(k, l) {
|
|
10073
10073
|
return (u) => {
|
|
10074
|
-
l && l(u),
|
|
10074
|
+
l && l(u), k.draco && (As || (As = new Kc()), As.setDecoderPath(k.decoderPath || "https://www.gstatic.com/draco/versioned/decoders/1.4.3/"), u.setDRACOLoader(As));
|
|
10075
10075
|
};
|
|
10076
10076
|
}
|
|
10077
10077
|
async function Xc(k, l = {
|
|
@@ -10083,10 +10083,11 @@ const tp = ar({
|
|
|
10083
10083
|
name: "GLTFModel",
|
|
10084
10084
|
props: {
|
|
10085
10085
|
path: String,
|
|
10086
|
-
draco: Boolean
|
|
10086
|
+
draco: Boolean,
|
|
10087
|
+
decoderPath: String
|
|
10087
10088
|
},
|
|
10088
10089
|
async setup(k) {
|
|
10089
|
-
const l =
|
|
10090
|
+
const l = Rs("local-scene"), { scene: u } = await Xc(k.path, { draco: k.draco, decoderPath: k.decoderPath });
|
|
10090
10091
|
return l != null && l.value && l.value.add(u), () => null;
|
|
10091
10092
|
}
|
|
10092
10093
|
}), np = /* @__PURE__ */ ar({
|