@abi-software/scaffoldvuer 1.20.1-beta.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scaffoldvuer.js +887 -844
- package/dist/scaffoldvuer.umd.cjs +7 -7
- package/dist/style.css +1 -1
- package/package.json +2 -5
- package/src/components/ScaffoldVuer.vue +11 -4
package/dist/scaffoldvuer.js
CHANGED
|
@@ -28720,16 +28720,16 @@ function vb(e) {
|
|
|
28720
28720
|
case "double":
|
|
28721
28721
|
case "float":
|
|
28722
28722
|
case "number":
|
|
28723
|
-
case "integer": return
|
|
28723
|
+
case "integer": return Uw;
|
|
28724
28724
|
case "vector":
|
|
28725
28725
|
case "vector2":
|
|
28726
28726
|
case "vector3":
|
|
28727
|
-
case "vector4": return
|
|
28728
|
-
case "color": return
|
|
28729
|
-
case "quaternion": return
|
|
28727
|
+
case "vector4": return qw;
|
|
28728
|
+
case "color": return Hw;
|
|
28729
|
+
case "quaternion": return Gw;
|
|
28730
28730
|
case "bool":
|
|
28731
|
-
case "boolean": return
|
|
28732
|
-
case "string": return
|
|
28731
|
+
case "boolean": return Vw;
|
|
28732
|
+
case "string": return Kw;
|
|
28733
28733
|
}
|
|
28734
28734
|
throw Error("THREE.KeyframeTrack: Unsupported typeName: " + e);
|
|
28735
28735
|
}
|
|
@@ -28750,7 +28750,7 @@ function bb(e) {
|
|
|
28750
28750
|
return !1;
|
|
28751
28751
|
}
|
|
28752
28752
|
}
|
|
28753
|
-
var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb, Bb, Vb, Hb, Ub, Wb, Gb, Kb, qb, Jb, Yb, Xb, Zb, Qb, $b, ex, tx, nx, rx, ix, ax, $, ox, sx, cx, lx, ux, dx, fx, px, mx, hx, gx, _x, vx, yx, bx, xx, Sx, Cx, wx, Tx, Ex, Dx, Ox, kx, Ax, jx, Mx, Nx, Px, Fx, Ix, Lx, Rx, zx, Bx, Vx, Hx, Ux, Wx, Gx, Kx, qx, Jx, Yx, Xx, Zx, Qx, $x, eS, tS, nS, rS, iS, aS, oS, sS, cS, lS, uS, dS, fS, pS, mS, hS, gS, _S, vS, yS, bS, xS, SS, CS, wS, TS, ES, DS, OS, kS, AS, jS, MS, NS, PS, FS, IS, LS, RS, zS, BS, VS, HS, US, WS, GS, KS, qS, JS, YS, XS, ZS, QS, $S, eC, tC, nC, rC, iC, aC, oC, sC, cC, lC, uC, dC, fC, pC, mC, hC, gC, _C, vC, yC, bC, xC, SC, CC, wC, TC, EC, DC, OC, kC, AC, jC, MC, NC, PC, FC, IC, LC, RC, zC, BC, VC, HC, UC, WC, GC, KC, qC, JC, YC, XC, ZC, QC, $C, ew, tw, nw, rw, iw, aw, ow, sw, cw, lw, uw, dw, fw, pw, mw, hw, gw, _w, vw, yw, bw, xw, Sw, Cw, ww, Tw, Ew, Dw, Ow, kw, Aw, jw, Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw, Bw, Vw, Hw, Uw, Ww, Gw, Kw, qw, Jw, Yw, Xw, Zw, Qw, $w, eT, tT, nT, rT, iT, aT, oT, sT, cT, lT, uT, dT, fT, pT, mT, hT, gT, _T, vT, yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT = Re((() => {
|
|
28753
|
+
var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb, Bb, Vb, Hb, Ub, Wb, Gb, Kb, qb, Jb, Yb, Xb, Zb, Qb, $b, ex, tx, nx, rx, ix, ax, $, ox, sx, cx, lx, ux, dx, fx, px, mx, hx, gx, _x, vx, yx, bx, xx, Sx, Cx, wx, Tx, Ex, Dx, Ox, kx, Ax, jx, Mx, Nx, Px, Fx, Ix, Lx, Rx, zx, Bx, Vx, Hx, Ux, Wx, Gx, Kx, qx, Jx, Yx, Xx, Zx, Qx, $x, eS, tS, nS, rS, iS, aS, oS, sS, cS, lS, uS, dS, fS, pS, mS, hS, gS, _S, vS, yS, bS, xS, SS, CS, wS, TS, ES, DS, OS, kS, AS, jS, MS, NS, PS, FS, IS, LS, RS, zS, BS, VS, HS, US, WS, GS, KS, qS, JS, YS, XS, ZS, QS, $S, eC, tC, nC, rC, iC, aC, oC, sC, cC, lC, uC, dC, fC, pC, mC, hC, gC, _C, vC, yC, bC, xC, SC, CC, wC, TC, EC, DC, OC, kC, AC, jC, MC, NC, PC, FC, IC, LC, RC, zC, BC, VC, HC, UC, WC, GC, KC, qC, JC, YC, XC, ZC, QC, $C, ew, tw, nw, rw, iw, aw, ow, sw, cw, lw, uw, dw, fw, pw, mw, hw, gw, _w, vw, yw, bw, xw, Sw, Cw, ww, Tw, Ew, Dw, Ow, kw, Aw, jw, Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw, Bw, Vw, Hw, Uw, Ww, Gw, Kw, qw, Jw, Yw, Xw, Zw, Qw, $w, eT, tT, nT, rT, iT, aT, oT, sT, cT, lT, uT, dT, fT, pT, mT, hT, gT, _T, vT, yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT, BT = Re((() => {
|
|
28754
28754
|
xb = "attached", Sb = 1e3, Cb = 1001, wb = 1002, Tb = 1003, Eb = 1004, Db = 1005, Ob = 1006, kb = 1007, Ab = 1008, jb = 1009, Mb = 1015, Nb = 1023, Pb = 1028, Fb = 2300, Ib = 2301, Lb = 2302, Rb = 2303, zb = 2400, Bb = 2401, Vb = 2402, Hb = 2500, Ub = "srgb", Wb = "srgb-linear", Gb = "linear", Kb = "srgb", qb = 7680, Jb = 35044, Yb = 2e3, Xb = {}, Zb = null, Qb = class {
|
|
28755
28755
|
addEventListener(e, t) {
|
|
28756
28756
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -32578,14 +32578,18 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32578
32578
|
}
|
|
32579
32579
|
}
|
|
32580
32580
|
}
|
|
32581
|
-
}, Mw = class extends
|
|
32581
|
+
}, Mw = class extends yx {
|
|
32582
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
32583
|
+
super(e, t, n, r, i, a, o, s, c), this.isCanvasTexture = !0, this.needsUpdate = !0;
|
|
32584
|
+
}
|
|
32585
|
+
}, Nw = class extends QS {
|
|
32582
32586
|
constructor(e) {
|
|
32583
32587
|
super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new $x(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new $x(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new ix(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new jx(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
32584
32588
|
}
|
|
32585
32589
|
copy(e) {
|
|
32586
32590
|
return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
32587
32591
|
}
|
|
32588
|
-
},
|
|
32592
|
+
}, Pw = class extends Nw {
|
|
32589
32593
|
constructor(e) {
|
|
32590
32594
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
32591
32595
|
STANDARD: "",
|
|
@@ -32641,7 +32645,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32641
32645
|
PHYSICAL: ""
|
|
32642
32646
|
}, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
|
|
32643
32647
|
}
|
|
32644
|
-
},
|
|
32648
|
+
}, Fw = class {
|
|
32645
32649
|
constructor(e, t, n, r) {
|
|
32646
32650
|
this.parameterPositions = e, this._cachedIndex = 0, this.resultBuffer = r === void 0 ? new t.constructor(n) : r, this.sampleValues = t, this.valueSize = n, this.settings = null, this.DefaultSettings_ = {};
|
|
32647
32651
|
}
|
|
@@ -32699,7 +32703,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32699
32703
|
throw Error("THREE.Interpolant: Call to abstract method.");
|
|
32700
32704
|
}
|
|
32701
32705
|
intervalChanged_() {}
|
|
32702
|
-
},
|
|
32706
|
+
}, Iw = class extends Fw {
|
|
32703
32707
|
constructor(e, t, n, r) {
|
|
32704
32708
|
super(e, t, n, r), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
|
|
32705
32709
|
endingStart: zb,
|
|
@@ -32734,7 +32738,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32734
32738
|
for (let e = 0; e !== o; ++e) i[e] = g * a[l + e] + _ * a[c + e] + v * a[s + e] + y * a[u + e];
|
|
32735
32739
|
return i;
|
|
32736
32740
|
}
|
|
32737
|
-
},
|
|
32741
|
+
}, Lw = class extends Fw {
|
|
32738
32742
|
constructor(e, t, n, r) {
|
|
32739
32743
|
super(e, t, n, r);
|
|
32740
32744
|
}
|
|
@@ -32743,14 +32747,14 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32743
32747
|
for (let e = 0; e !== o; ++e) i[e] = a[c + e] * u + a[s + e] * l;
|
|
32744
32748
|
return i;
|
|
32745
32749
|
}
|
|
32746
|
-
},
|
|
32750
|
+
}, Rw = class extends Fw {
|
|
32747
32751
|
constructor(e, t, n, r) {
|
|
32748
32752
|
super(e, t, n, r);
|
|
32749
32753
|
}
|
|
32750
32754
|
interpolate_(e) {
|
|
32751
32755
|
return this.copySampleValue_(e - 1);
|
|
32752
32756
|
}
|
|
32753
|
-
},
|
|
32757
|
+
}, zw = class extends Fw {
|
|
32754
32758
|
interpolate_(e, t, n, r) {
|
|
32755
32759
|
let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = e * o, c = s - o, l = this.inTangents, u = this.outTangents;
|
|
32756
32760
|
if (!l || !u) {
|
|
@@ -32773,7 +32777,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32773
32777
|
}
|
|
32774
32778
|
return i;
|
|
32775
32779
|
}
|
|
32776
|
-
},
|
|
32780
|
+
}, Bw = class {
|
|
32777
32781
|
constructor(e, t, n, r) {
|
|
32778
32782
|
if (e === void 0) throw Error("THREE.KeyframeTrack: track name is undefined");
|
|
32779
32783
|
if (t === void 0 || t.length === 0) throw Error("THREE.KeyframeTrack: no keyframes in track named " + e);
|
|
@@ -32794,16 +32798,16 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32794
32798
|
return n.type = e.ValueTypeName, n;
|
|
32795
32799
|
}
|
|
32796
32800
|
InterpolantFactoryMethodDiscrete(e) {
|
|
32797
|
-
return new
|
|
32801
|
+
return new Rw(this.times, this.values, this.getValueSize(), e);
|
|
32798
32802
|
}
|
|
32799
32803
|
InterpolantFactoryMethodLinear(e) {
|
|
32800
|
-
return new
|
|
32804
|
+
return new Lw(this.times, this.values, this.getValueSize(), e);
|
|
32801
32805
|
}
|
|
32802
32806
|
InterpolantFactoryMethodSmooth(e) {
|
|
32803
|
-
return new
|
|
32807
|
+
return new Iw(this.times, this.values, this.getValueSize(), e);
|
|
32804
32808
|
}
|
|
32805
32809
|
InterpolantFactoryMethodBezier(e) {
|
|
32806
|
-
let t = new
|
|
32810
|
+
let t = new zw(this.times, this.values, this.getValueSize(), e);
|
|
32807
32811
|
return this.settings && (t.inTangents = this.settings.inTangents, t.outTangents = this.settings.outTangents), t;
|
|
32808
32812
|
}
|
|
32809
32813
|
setInterpolation(e) {
|
|
@@ -32930,19 +32934,19 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32930
32934
|
let e = this.times.slice(), t = this.values.slice(), n = this.constructor, r = new n(this.name, e, t);
|
|
32931
32935
|
return r.createInterpolant = this.createInterpolant, r;
|
|
32932
32936
|
}
|
|
32933
|
-
},
|
|
32937
|
+
}, Bw.prototype.ValueTypeName = "", Bw.prototype.TimeBufferType = Float32Array, Bw.prototype.ValueBufferType = Float32Array, Bw.prototype.DefaultInterpolation = Ib, Vw = class extends Bw {
|
|
32934
32938
|
constructor(e, t, n) {
|
|
32935
32939
|
super(e, t, n);
|
|
32936
32940
|
}
|
|
32937
|
-
},
|
|
32941
|
+
}, Vw.prototype.ValueTypeName = "bool", Vw.prototype.ValueBufferType = Array, Vw.prototype.DefaultInterpolation = Fb, Vw.prototype.InterpolantFactoryMethodLinear = void 0, Vw.prototype.InterpolantFactoryMethodSmooth = void 0, Hw = class extends Bw {
|
|
32938
32942
|
constructor(e, t, n, r) {
|
|
32939
32943
|
super(e, t, n, r);
|
|
32940
32944
|
}
|
|
32941
|
-
},
|
|
32945
|
+
}, Hw.prototype.ValueTypeName = "color", Uw = class extends Bw {
|
|
32942
32946
|
constructor(e, t, n, r) {
|
|
32943
32947
|
super(e, t, n, r);
|
|
32944
32948
|
}
|
|
32945
|
-
},
|
|
32949
|
+
}, Uw.prototype.ValueTypeName = "number", Ww = class extends Fw {
|
|
32946
32950
|
constructor(e, t, n, r) {
|
|
32947
32951
|
super(e, t, n, r);
|
|
32948
32952
|
}
|
|
@@ -32951,22 +32955,22 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32951
32955
|
for (let e = c + o; c !== e; c += 4) ax.slerpFlat(i, 0, a, c - o, a, c, s);
|
|
32952
32956
|
return i;
|
|
32953
32957
|
}
|
|
32954
|
-
},
|
|
32958
|
+
}, Gw = class extends Bw {
|
|
32955
32959
|
constructor(e, t, n, r) {
|
|
32956
32960
|
super(e, t, n, r);
|
|
32957
32961
|
}
|
|
32958
32962
|
InterpolantFactoryMethodLinear(e) {
|
|
32959
|
-
return new
|
|
32963
|
+
return new Ww(this.times, this.values, this.getValueSize(), e);
|
|
32960
32964
|
}
|
|
32961
|
-
},
|
|
32965
|
+
}, Gw.prototype.ValueTypeName = "quaternion", Gw.prototype.InterpolantFactoryMethodSmooth = void 0, Kw = class extends Bw {
|
|
32962
32966
|
constructor(e, t, n) {
|
|
32963
32967
|
super(e, t, n);
|
|
32964
32968
|
}
|
|
32965
|
-
},
|
|
32969
|
+
}, Kw.prototype.ValueTypeName = "string", Kw.prototype.ValueBufferType = Array, Kw.prototype.DefaultInterpolation = Fb, Kw.prototype.InterpolantFactoryMethodLinear = void 0, Kw.prototype.InterpolantFactoryMethodSmooth = void 0, qw = class extends Bw {
|
|
32966
32970
|
constructor(e, t, n, r) {
|
|
32967
32971
|
super(e, t, n, r);
|
|
32968
32972
|
}
|
|
32969
|
-
},
|
|
32973
|
+
}, qw.prototype.ValueTypeName = "vector", Jw = class {
|
|
32970
32974
|
constructor(e = "", t = -1, n = [], r = Hb) {
|
|
32971
32975
|
this.name = e, this.tracks = n, this.duration = t, this.blendMode = r, this.uuid = Fy(), this.userData = {}, this.duration < 0 && this.resetDuration();
|
|
32972
32976
|
}
|
|
@@ -32985,7 +32989,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32985
32989
|
blendMode: e.blendMode,
|
|
32986
32990
|
userData: JSON.stringify(e.userData)
|
|
32987
32991
|
};
|
|
32988
|
-
for (let e = 0, r = n.length; e !== r; ++e) t.push(
|
|
32992
|
+
for (let e = 0, r = n.length; e !== r; ++e) t.push(Bw.toJSON(n[e]));
|
|
32989
32993
|
return r;
|
|
32990
32994
|
}
|
|
32991
32995
|
static CreateFromMorphTargetSequence(e, t, n, r) {
|
|
@@ -32994,7 +32998,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
32994
32998
|
let o = [], s = [];
|
|
32995
32999
|
o.push((e + i - 1) % i, e, (e + 1) % i), s.push(0, 1, 0);
|
|
32996
33000
|
let c = hb(o);
|
|
32997
|
-
o = gb(o, 1, c), s = gb(s, 1, c), !r && o[0] === 0 && (o.push(i), s.push(s[0])), a.push(new
|
|
33001
|
+
o = gb(o, 1, c), s = gb(s, 1, c), !r && o[0] === 0 && (o.push(i), s.push(s[0])), a.push(new Uw(".morphTargetInfluences[" + t[e].name + "]", o, s).scale(1 / n));
|
|
32998
33002
|
}
|
|
32999
33003
|
return new this(e, -1, a);
|
|
33000
33004
|
}
|
|
@@ -33050,7 +33054,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33050
33054
|
toJSON() {
|
|
33051
33055
|
return this.constructor.toJSON(this);
|
|
33052
33056
|
}
|
|
33053
|
-
},
|
|
33057
|
+
}, Yw = {
|
|
33054
33058
|
enabled: !1,
|
|
33055
33059
|
files: {},
|
|
33056
33060
|
add: function(e, t) {
|
|
@@ -33065,7 +33069,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33065
33069
|
clear: function() {
|
|
33066
33070
|
this.files = {};
|
|
33067
33071
|
}
|
|
33068
|
-
},
|
|
33072
|
+
}, Xw = class {
|
|
33069
33073
|
constructor(e, t, n) {
|
|
33070
33074
|
let r = this, i = !1, a = 0, o = 0, s, c = [];
|
|
33071
33075
|
this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = n, this._abortController = null, this.itemStart = function(e) {
|
|
@@ -33096,9 +33100,9 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33096
33100
|
get abortController() {
|
|
33097
33101
|
return this._abortController ||= new AbortController(), this._abortController;
|
|
33098
33102
|
}
|
|
33099
|
-
},
|
|
33103
|
+
}, Zw = /*@__PURE__*/ new Xw(), Qw = class {
|
|
33100
33104
|
constructor(e) {
|
|
33101
|
-
this.manager = e === void 0 ?
|
|
33105
|
+
this.manager = e === void 0 ? Zw : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
33102
33106
|
}
|
|
33103
33107
|
load() {}
|
|
33104
33108
|
loadAsync(e, t) {
|
|
@@ -33126,32 +33130,32 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33126
33130
|
abort() {
|
|
33127
33131
|
return this;
|
|
33128
33132
|
}
|
|
33129
|
-
},
|
|
33133
|
+
}, Qw.DEFAULT_MATERIAL_NAME = "__DEFAULT", $w = {}, eT = class extends Error {
|
|
33130
33134
|
constructor(e, t) {
|
|
33131
33135
|
super(e), this.response = t;
|
|
33132
33136
|
}
|
|
33133
|
-
},
|
|
33137
|
+
}, tT = class extends Qw {
|
|
33134
33138
|
constructor(e) {
|
|
33135
33139
|
super(e), this.mimeType = "", this.responseType = "", this._abortController = new AbortController();
|
|
33136
33140
|
}
|
|
33137
33141
|
load(e, t, n, r) {
|
|
33138
33142
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
33139
|
-
let i =
|
|
33143
|
+
let i = Yw.get(`file:${e}`);
|
|
33140
33144
|
if (i !== void 0) {
|
|
33141
33145
|
this.manager.itemStart(e), setTimeout(() => {
|
|
33142
33146
|
t && t(i), this.manager.itemEnd(e);
|
|
33143
33147
|
}, 0);
|
|
33144
33148
|
return;
|
|
33145
33149
|
}
|
|
33146
|
-
if (
|
|
33147
|
-
|
|
33150
|
+
if ($w[e] !== void 0) {
|
|
33151
|
+
$w[e].push({
|
|
33148
33152
|
onLoad: t,
|
|
33149
33153
|
onProgress: n,
|
|
33150
33154
|
onError: r
|
|
33151
33155
|
});
|
|
33152
33156
|
return;
|
|
33153
33157
|
}
|
|
33154
|
-
|
|
33158
|
+
$w[e] = [], $w[e].push({
|
|
33155
33159
|
onLoad: t,
|
|
33156
33160
|
onProgress: n,
|
|
33157
33161
|
onError: r
|
|
@@ -33164,7 +33168,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33164
33168
|
fetch(a).then((t) => {
|
|
33165
33169
|
if (t.status === 200 || t.status === 0) {
|
|
33166
33170
|
if (t.status === 0 && My("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || t.body === void 0 || t.body.getReader === void 0) return t;
|
|
33167
|
-
let n =
|
|
33171
|
+
let n = $w[e], r = t.body.getReader(), i = t.headers.get("X-File-Size") || t.headers.get("Content-Length"), a = i ? parseInt(i) : 0, o = a !== 0, s = 0, c = new ReadableStream({ start(e) {
|
|
33168
33172
|
t();
|
|
33169
33173
|
function t() {
|
|
33170
33174
|
r.read().then(({ done: r, value: i }) => {
|
|
@@ -33189,7 +33193,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33189
33193
|
} });
|
|
33190
33194
|
return new Response(c);
|
|
33191
33195
|
}
|
|
33192
|
-
throw new
|
|
33196
|
+
throw new eT(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`, t);
|
|
33193
33197
|
}).then((e) => {
|
|
33194
33198
|
switch (s) {
|
|
33195
33199
|
case "arraybuffer": return e.arrayBuffer();
|
|
@@ -33204,17 +33208,17 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33204
33208
|
}
|
|
33205
33209
|
}
|
|
33206
33210
|
}).then((t) => {
|
|
33207
|
-
|
|
33208
|
-
let n =
|
|
33209
|
-
delete
|
|
33211
|
+
Yw.add(`file:${e}`, t);
|
|
33212
|
+
let n = $w[e];
|
|
33213
|
+
delete $w[e];
|
|
33210
33214
|
for (let e = 0, r = n.length; e < r; e++) {
|
|
33211
33215
|
let r = n[e];
|
|
33212
33216
|
r.onLoad && r.onLoad(t);
|
|
33213
33217
|
}
|
|
33214
33218
|
}).catch((t) => {
|
|
33215
|
-
let n =
|
|
33219
|
+
let n = $w[e];
|
|
33216
33220
|
if (n === void 0) throw this.manager.itemError(e), t;
|
|
33217
|
-
delete
|
|
33221
|
+
delete $w[e];
|
|
33218
33222
|
for (let e = 0, r = n.length; e < r; e++) {
|
|
33219
33223
|
let r = n[e];
|
|
33220
33224
|
r.onError && r.onError(t);
|
|
@@ -33233,20 +33237,20 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33233
33237
|
abort() {
|
|
33234
33238
|
return this._abortController.abort(), this._abortController = new AbortController(), this;
|
|
33235
33239
|
}
|
|
33236
|
-
},
|
|
33240
|
+
}, nT = /* @__PURE__ */ new WeakMap(), rT = class extends Qw {
|
|
33237
33241
|
constructor(e) {
|
|
33238
33242
|
super(e);
|
|
33239
33243
|
}
|
|
33240
33244
|
load(e, t, n, r) {
|
|
33241
33245
|
this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
33242
|
-
let i = this, a =
|
|
33246
|
+
let i = this, a = Yw.get(`image:${e}`);
|
|
33243
33247
|
if (a !== void 0) {
|
|
33244
33248
|
if (a.complete === !0) i.manager.itemStart(e), setTimeout(function() {
|
|
33245
33249
|
t && t(a), i.manager.itemEnd(e);
|
|
33246
33250
|
}, 0);
|
|
33247
33251
|
else {
|
|
33248
|
-
let e =
|
|
33249
|
-
e === void 0 && (e = [],
|
|
33252
|
+
let e = nT.get(a);
|
|
33253
|
+
e === void 0 && (e = [], nT.set(a, e)), e.push({
|
|
33250
33254
|
onLoad: t,
|
|
33251
33255
|
onError: r
|
|
33252
33256
|
});
|
|
@@ -33256,38 +33260,38 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33256
33260
|
let o = ky("img");
|
|
33257
33261
|
function s() {
|
|
33258
33262
|
l(), t && t(this);
|
|
33259
|
-
let n =
|
|
33263
|
+
let n = nT.get(this) || [];
|
|
33260
33264
|
for (let e = 0; e < n.length; e++) {
|
|
33261
33265
|
let t = n[e];
|
|
33262
33266
|
t.onLoad && t.onLoad(this);
|
|
33263
33267
|
}
|
|
33264
|
-
|
|
33268
|
+
nT.delete(this), i.manager.itemEnd(e);
|
|
33265
33269
|
}
|
|
33266
33270
|
function c(t) {
|
|
33267
|
-
l(), r && r(t),
|
|
33268
|
-
let n =
|
|
33271
|
+
l(), r && r(t), Yw.remove(`image:${e}`);
|
|
33272
|
+
let n = nT.get(this) || [];
|
|
33269
33273
|
for (let e = 0; e < n.length; e++) {
|
|
33270
33274
|
let r = n[e];
|
|
33271
33275
|
r.onError && r.onError(t);
|
|
33272
33276
|
}
|
|
33273
|
-
|
|
33277
|
+
nT.delete(this), i.manager.itemError(e), i.manager.itemEnd(e);
|
|
33274
33278
|
}
|
|
33275
33279
|
function l() {
|
|
33276
33280
|
o.removeEventListener("load", s, !1), o.removeEventListener("error", c, !1);
|
|
33277
33281
|
}
|
|
33278
|
-
return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin),
|
|
33282
|
+
return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin), Yw.add(`image:${e}`, o), i.manager.itemStart(e), o.src = e, o;
|
|
33279
33283
|
}
|
|
33280
|
-
},
|
|
33284
|
+
}, iT = class extends Qw {
|
|
33281
33285
|
constructor(e) {
|
|
33282
33286
|
super(e);
|
|
33283
33287
|
}
|
|
33284
33288
|
load(e, t, n, r) {
|
|
33285
|
-
let i = new yx(), a = new
|
|
33289
|
+
let i = new yx(), a = new rT(this.manager);
|
|
33286
33290
|
return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(e, function(e) {
|
|
33287
33291
|
i.image = e, i.needsUpdate = !0, t !== void 0 && t(i);
|
|
33288
33292
|
}, n, r), i;
|
|
33289
33293
|
}
|
|
33290
|
-
},
|
|
33294
|
+
}, aT = class extends Jx {
|
|
33291
33295
|
constructor(e, t = 1) {
|
|
33292
33296
|
super(), this.isLight = !0, this.type = "Light", this.color = new $x(e), this.intensity = t;
|
|
33293
33297
|
}
|
|
@@ -33301,7 +33305,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33301
33305
|
let t = super.toJSON(e);
|
|
33302
33306
|
return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, t;
|
|
33303
33307
|
}
|
|
33304
|
-
},
|
|
33308
|
+
}, oT = /*@__PURE__*/ new xx(), sT = /*@__PURE__*/ new $(), cT = /*@__PURE__*/ new $(), lT = class {
|
|
33305
33309
|
constructor(e) {
|
|
33306
33310
|
this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new ix(512, 512), this.mapType = jb, this.map = null, this.mapPass = null, this.matrix = new xx(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new fw(), this._frameExtents = new ix(1, 1), this._viewportCount = 1, this._viewports = [new bx(0, 0, 1, 1)];
|
|
33307
33311
|
}
|
|
@@ -33313,7 +33317,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33313
33317
|
}
|
|
33314
33318
|
updateMatrices(e) {
|
|
33315
33319
|
let t = this.camera, n = this.matrix;
|
|
33316
|
-
|
|
33320
|
+
sT.setFromMatrixPosition(e.matrixWorld), t.position.copy(sT), cT.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(cT), t.updateMatrixWorld(), oT.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(oT, t.coordinateSystem, t.reversedDepth), t.coordinateSystem === 2001 || t.reversedDepth ? n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, 1, 0, 0, 0, 0, 1) : n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, .5, .5, 0, 0, 0, 1), n.multiply(oT);
|
|
33317
33321
|
}
|
|
33318
33322
|
getViewport(e) {
|
|
33319
33323
|
return this._viewports[e];
|
|
@@ -33334,7 +33338,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33334
33338
|
let e = {};
|
|
33335
33339
|
return this.intensity !== 1 && (e.intensity = this.intensity), this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
|
|
33336
33340
|
}
|
|
33337
|
-
},
|
|
33341
|
+
}, uT = /*@__PURE__*/ new $(), dT = /*@__PURE__*/ new ax(), fT = /*@__PURE__*/ new $(), pT = class extends Jx {
|
|
33338
33342
|
constructor() {
|
|
33339
33343
|
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new xx(), this.projectionMatrix = new xx(), this.projectionMatrixInverse = new xx(), this.coordinateSystem = Yb, this._reversedDepth = !1;
|
|
33340
33344
|
}
|
|
@@ -33348,15 +33352,15 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33348
33352
|
return super.getWorldDirection(e).negate();
|
|
33349
33353
|
}
|
|
33350
33354
|
updateMatrixWorld(e) {
|
|
33351
|
-
super.updateMatrixWorld(e), this.matrixWorld.decompose(
|
|
33355
|
+
super.updateMatrixWorld(e), this.matrixWorld.decompose(uT, dT, fT), fT.x === 1 && fT.y === 1 && fT.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(uT, dT, fT.set(1, 1, 1)).invert();
|
|
33352
33356
|
}
|
|
33353
33357
|
updateWorldMatrix(e, t, n = !1) {
|
|
33354
|
-
super.updateWorldMatrix(e, t, n), this.matrixWorld.decompose(
|
|
33358
|
+
super.updateWorldMatrix(e, t, n), this.matrixWorld.decompose(uT, dT, fT), fT.x === 1 && fT.y === 1 && fT.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(uT, dT, fT.set(1, 1, 1)).invert();
|
|
33355
33359
|
}
|
|
33356
33360
|
clone() {
|
|
33357
33361
|
return new this.constructor().copy(this);
|
|
33358
33362
|
}
|
|
33359
|
-
},
|
|
33363
|
+
}, mT = /*@__PURE__*/ new $(), hT = /*@__PURE__*/ new ix(), gT = /*@__PURE__*/ new ix(), _T = class extends pT {
|
|
33360
33364
|
constructor(e = 50, t = 1, n = .1, r = 2e3) {
|
|
33361
33365
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = n, this.far = r, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
33362
33366
|
}
|
|
@@ -33381,10 +33385,10 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33381
33385
|
return this.filmGauge / Math.max(this.aspect, 1);
|
|
33382
33386
|
}
|
|
33383
33387
|
getViewBounds(e, t, n) {
|
|
33384
|
-
|
|
33388
|
+
mT.set(-1, -1, .5).applyMatrix4(this.projectionMatrixInverse), t.set(mT.x, mT.y).multiplyScalar(-e / mT.z), mT.set(1, 1, .5).applyMatrix4(this.projectionMatrixInverse), n.set(mT.x, mT.y).multiplyScalar(-e / mT.z);
|
|
33385
33389
|
}
|
|
33386
33390
|
getViewSize(e, t) {
|
|
33387
|
-
return this.getViewBounds(e,
|
|
33391
|
+
return this.getViewBounds(e, hT, gT), t.subVectors(gT, hT);
|
|
33388
33392
|
}
|
|
33389
33393
|
setViewOffset(e, t, n, r, i, a) {
|
|
33390
33394
|
this.aspect = e / t, this.view === null && (this.view = {
|
|
@@ -33413,9 +33417,9 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33413
33417
|
let t = super.toJSON(e);
|
|
33414
33418
|
return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
|
|
33415
33419
|
}
|
|
33416
|
-
},
|
|
33420
|
+
}, vT = class extends lT {
|
|
33417
33421
|
constructor() {
|
|
33418
|
-
super(new
|
|
33422
|
+
super(new _T(50, 1, .5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
|
|
33419
33423
|
}
|
|
33420
33424
|
updateMatrices(e) {
|
|
33421
33425
|
let t = this.camera, n = nx * 2 * e.angle * this.focus, r = this.mapSize.width / this.mapSize.height * this.aspect, i = e.distance || t.far;
|
|
@@ -33424,9 +33428,9 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33424
33428
|
copy(e) {
|
|
33425
33429
|
return super.copy(e), this.focus = e.focus, this;
|
|
33426
33430
|
}
|
|
33427
|
-
},
|
|
33431
|
+
}, yT = class extends aT {
|
|
33428
33432
|
constructor(e, t, n = 0, r = Math.PI / 3, i = 0, a = 2) {
|
|
33429
|
-
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(Jx.DEFAULT_UP), this.updateMatrix(), this.target = new Jx(), this.distance = n, this.angle = r, this.penumbra = i, this.decay = a, this.map = null, this.shadow = new
|
|
33433
|
+
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(Jx.DEFAULT_UP), this.updateMatrix(), this.target = new Jx(), this.distance = n, this.angle = r, this.penumbra = i, this.decay = a, this.map = null, this.shadow = new vT();
|
|
33430
33434
|
}
|
|
33431
33435
|
get power() {
|
|
33432
33436
|
return this.intensity * Math.PI;
|
|
@@ -33444,13 +33448,13 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33444
33448
|
let t = super.toJSON(e);
|
|
33445
33449
|
return t.object.distance = this.distance, t.object.angle = this.angle, t.object.decay = this.decay, t.object.penumbra = this.penumbra, t.object.target = this.target.uuid, this.map && this.map.isTexture && (t.object.map = this.map.toJSON(e).uuid), t.object.shadow = this.shadow.toJSON(), t;
|
|
33446
33450
|
}
|
|
33447
|
-
},
|
|
33451
|
+
}, bT = class extends lT {
|
|
33448
33452
|
constructor() {
|
|
33449
|
-
super(new
|
|
33453
|
+
super(new _T(90, 1, .5, 500)), this.isPointLightShadow = !0;
|
|
33450
33454
|
}
|
|
33451
|
-
},
|
|
33455
|
+
}, xT = class extends aT {
|
|
33452
33456
|
constructor(e, t, n = 0, r = 2) {
|
|
33453
|
-
super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new
|
|
33457
|
+
super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new bT();
|
|
33454
33458
|
}
|
|
33455
33459
|
get power() {
|
|
33456
33460
|
return this.intensity * 4 * Math.PI;
|
|
@@ -33468,7 +33472,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33468
33472
|
let t = super.toJSON(e);
|
|
33469
33473
|
return t.object.distance = this.distance, t.object.decay = this.decay, t.object.shadow = this.shadow.toJSON(), t;
|
|
33470
33474
|
}
|
|
33471
|
-
},
|
|
33475
|
+
}, ST = class extends pT {
|
|
33472
33476
|
constructor(e = -1, t = 1, n = 1, r = -1, i = .1, a = 2e3) {
|
|
33473
33477
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = n, this.bottom = r, this.near = i, this.far = a, this.updateProjectionMatrix();
|
|
33474
33478
|
}
|
|
@@ -33501,13 +33505,13 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33501
33505
|
let t = super.toJSON(e);
|
|
33502
33506
|
return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
|
|
33503
33507
|
}
|
|
33504
|
-
},
|
|
33508
|
+
}, CT = class extends lT {
|
|
33505
33509
|
constructor() {
|
|
33506
|
-
super(new
|
|
33510
|
+
super(new ST(-5, 5, 5, -5, .5, 500)), this.isDirectionalLightShadow = !0;
|
|
33507
33511
|
}
|
|
33508
|
-
},
|
|
33512
|
+
}, wT = class extends aT {
|
|
33509
33513
|
constructor(e, t) {
|
|
33510
|
-
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(Jx.DEFAULT_UP), this.updateMatrix(), this.target = new Jx(), this.shadow = new
|
|
33514
|
+
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(Jx.DEFAULT_UP), this.updateMatrix(), this.target = new Jx(), this.shadow = new CT();
|
|
33511
33515
|
}
|
|
33512
33516
|
dispose() {
|
|
33513
33517
|
super.dispose(), this.shadow.dispose();
|
|
@@ -33519,7 +33523,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33519
33523
|
let t = super.toJSON(e);
|
|
33520
33524
|
return t.object.shadow = this.shadow.toJSON(), t.object.target = this.target.uuid, t;
|
|
33521
33525
|
}
|
|
33522
|
-
},
|
|
33526
|
+
}, TT = class {
|
|
33523
33527
|
static extractUrlBase(e) {
|
|
33524
33528
|
let t = e.lastIndexOf("/");
|
|
33525
33529
|
return t === -1 ? "./" : e.slice(0, t + 1);
|
|
@@ -33527,7 +33531,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33527
33531
|
static resolveURL(e, t) {
|
|
33528
33532
|
return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e);
|
|
33529
33533
|
}
|
|
33530
|
-
},
|
|
33534
|
+
}, ET = /* @__PURE__ */ new WeakMap(), DT = class extends Qw {
|
|
33531
33535
|
constructor(e) {
|
|
33532
33536
|
super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && My("ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && My("ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }, this._abortController = new AbortController();
|
|
33533
33537
|
}
|
|
@@ -33536,11 +33540,11 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33536
33540
|
}
|
|
33537
33541
|
load(e, t, n, r) {
|
|
33538
33542
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
33539
|
-
let i = this, a =
|
|
33543
|
+
let i = this, a = Yw.get(`image-bitmap:${e}`);
|
|
33540
33544
|
if (a !== void 0) {
|
|
33541
33545
|
if (i.manager.itemStart(e), a.then) {
|
|
33542
33546
|
a.then((n) => {
|
|
33543
|
-
|
|
33547
|
+
ET.has(a) === !0 ? (r && r(ET.get(a)), i.manager.itemError(e), i.manager.itemEnd(e)) : (t && t(n), i.manager.itemEnd(e));
|
|
33544
33548
|
});
|
|
33545
33549
|
return;
|
|
33546
33550
|
}
|
|
@@ -33556,23 +33560,23 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33556
33560
|
}).then(function(e) {
|
|
33557
33561
|
return createImageBitmap(e, Object.assign(i.options, { colorSpaceConversion: "none" }));
|
|
33558
33562
|
}).then(function(n) {
|
|
33559
|
-
|
|
33563
|
+
Yw.add(`image-bitmap:${e}`, n), t && t(n), i.manager.itemEnd(e);
|
|
33560
33564
|
}).catch(function(t) {
|
|
33561
|
-
r && r(t),
|
|
33565
|
+
r && r(t), ET.set(s, t), Yw.remove(`image-bitmap:${e}`), i.manager.itemError(e), i.manager.itemEnd(e);
|
|
33562
33566
|
});
|
|
33563
|
-
|
|
33567
|
+
Yw.add(`image-bitmap:${e}`, s), i.manager.itemStart(e);
|
|
33564
33568
|
}
|
|
33565
33569
|
abort() {
|
|
33566
33570
|
return this._abortController.abort(), this._abortController = new AbortController(), this;
|
|
33567
33571
|
}
|
|
33568
|
-
},
|
|
33572
|
+
}, OT = "\\[\\]\\.:\\/", kT = /* @__PURE__ */ RegExp("[\\[\\]\\.:\\/]", "g"), AT = "[^\\[\\]\\.:\\/]", jT = "[^" + OT.replace("\\.", "") + "]", MT = /*@__PURE__*/ "((?:WC+[\\/:])*)".replace("WC", AT), NT = /*@__PURE__*/ "(WCOD+)?".replace("WCOD", jT), PT = /*@__PURE__*/ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", AT), FT = /*@__PURE__*/ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", AT), IT = RegExp("^" + MT + NT + PT + FT + "$"), LT = [
|
|
33569
33573
|
"material",
|
|
33570
33574
|
"materials",
|
|
33571
33575
|
"bones",
|
|
33572
33576
|
"map"
|
|
33573
|
-
],
|
|
33577
|
+
], RT = class {
|
|
33574
33578
|
constructor(e, t, n) {
|
|
33575
|
-
let r = n ||
|
|
33579
|
+
let r = n || zT.parseTrackName(t);
|
|
33576
33580
|
this._targetGroup = e, this._bindings = e.subscribe_(t, r);
|
|
33577
33581
|
}
|
|
33578
33582
|
getValue(e, t) {
|
|
@@ -33592,7 +33596,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33592
33596
|
let e = this._bindings;
|
|
33593
33597
|
for (let t = this._targetGroup.nCachedObjects_, n = e.length; t !== n; ++t) e[t].unbind();
|
|
33594
33598
|
}
|
|
33595
|
-
},
|
|
33599
|
+
}, zT = class e {
|
|
33596
33600
|
constructor(t, n, r) {
|
|
33597
33601
|
this.path = n, this.parsedPath = r || e.parseTrackName(n), this.node = e.findNode(t, this.parsedPath.nodeName), this.rootNode = t, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
33598
33602
|
}
|
|
@@ -33600,10 +33604,10 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33600
33604
|
return t && t.isAnimationObjectGroup ? new e.Composite(t, n, r) : new e(t, n, r);
|
|
33601
33605
|
}
|
|
33602
33606
|
static sanitizeNodeName(e) {
|
|
33603
|
-
return e.replace(/\s/g, "_").replace(
|
|
33607
|
+
return e.replace(/\s/g, "_").replace(kT, "");
|
|
33604
33608
|
}
|
|
33605
33609
|
static parseTrackName(e) {
|
|
33606
|
-
let t =
|
|
33610
|
+
let t = IT.exec(e);
|
|
33607
33611
|
if (t === null) throw Error("THREE.PropertyBinding: Cannot parse trackName: " + e);
|
|
33608
33612
|
let n = {
|
|
33609
33613
|
nodeName: t[2],
|
|
@@ -33614,7 +33618,7 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33614
33618
|
}, r = n.nodeName && n.nodeName.lastIndexOf(".");
|
|
33615
33619
|
if (r !== void 0 && r !== -1) {
|
|
33616
33620
|
let e = n.nodeName.substring(r + 1);
|
|
33617
|
-
|
|
33621
|
+
LT.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
|
|
33618
33622
|
}
|
|
33619
33623
|
if (n.propertyName === null || n.propertyName.length === 0) throw Error("THREE.PropertyBinding: can not parse propertyName from trackName: " + e);
|
|
33620
33624
|
return n;
|
|
@@ -33790,40 +33794,40 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33790
33794
|
unbind() {
|
|
33791
33795
|
this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
33792
33796
|
}
|
|
33793
|
-
},
|
|
33797
|
+
}, zT.Composite = RT, zT.prototype.BindingType = {
|
|
33794
33798
|
Direct: 0,
|
|
33795
33799
|
EntireArray: 1,
|
|
33796
33800
|
ArrayElement: 2,
|
|
33797
33801
|
HasFromToArray: 3
|
|
33798
|
-
},
|
|
33802
|
+
}, zT.prototype.Versioning = {
|
|
33799
33803
|
None: 0,
|
|
33800
33804
|
NeedsUpdate: 1,
|
|
33801
33805
|
MatrixWorldNeedsUpdate: 2
|
|
33802
|
-
},
|
|
33803
|
-
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
|
|
33807
|
-
],
|
|
33806
|
+
}, zT.prototype.GetterByBindingType = [
|
|
33807
|
+
zT.prototype._getValue_direct,
|
|
33808
|
+
zT.prototype._getValue_array,
|
|
33809
|
+
zT.prototype._getValue_arrayElement,
|
|
33810
|
+
zT.prototype._getValue_toArray
|
|
33811
|
+
], zT.prototype.SetterByBindingTypeAndVersioning = [
|
|
33808
33812
|
[
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
|
-
|
|
33813
|
+
zT.prototype._setValue_direct,
|
|
33814
|
+
zT.prototype._setValue_direct_setNeedsUpdate,
|
|
33815
|
+
zT.prototype._setValue_direct_setMatrixWorldNeedsUpdate
|
|
33812
33816
|
],
|
|
33813
33817
|
[
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33818
|
+
zT.prototype._setValue_array,
|
|
33819
|
+
zT.prototype._setValue_array_setNeedsUpdate,
|
|
33820
|
+
zT.prototype._setValue_array_setMatrixWorldNeedsUpdate
|
|
33817
33821
|
],
|
|
33818
33822
|
[
|
|
33819
|
-
|
|
33820
|
-
|
|
33821
|
-
|
|
33823
|
+
zT.prototype._setValue_arrayElement,
|
|
33824
|
+
zT.prototype._setValue_arrayElement_setNeedsUpdate,
|
|
33825
|
+
zT.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate
|
|
33822
33826
|
],
|
|
33823
33827
|
[
|
|
33824
|
-
|
|
33825
|
-
|
|
33826
|
-
|
|
33828
|
+
zT.prototype._setValue_fromArray,
|
|
33829
|
+
zT.prototype._setValue_fromArray_setNeedsUpdate,
|
|
33830
|
+
zT.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
|
|
33827
33831
|
]
|
|
33828
33832
|
], class e {
|
|
33829
33833
|
static {
|
|
@@ -33849,8 +33853,8 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
33849
33853
|
return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
|
|
33850
33854
|
}
|
|
33851
33855
|
}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "185" } })), typeof window < "u" && (window.__THREE__ ? My("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "185");
|
|
33852
|
-
})),
|
|
33853
|
-
|
|
33856
|
+
})), VT = Re((() => {
|
|
33857
|
+
BT(), new Uint16Array([
|
|
33854
33858
|
12469,
|
|
33855
33859
|
15057,
|
|
33856
33860
|
12620,
|
|
@@ -34364,130 +34368,137 @@ var xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb, Mb, Nb, Pb, Fb, Ib, Lb, Rb, zb,
|
|
|
34364
34368
|
13702,
|
|
34365
34369
|
1183
|
|
34366
34370
|
]);
|
|
34367
|
-
})),
|
|
34368
|
-
function HT(e, t) {
|
|
34369
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
34370
|
-
}
|
|
34371
|
+
})), HT = /* @__PURE__ */ Be({ default: () => fE });
|
|
34371
34372
|
function UT(e, t) {
|
|
34372
|
-
|
|
34373
|
-
|
|
34374
|
-
|
|
34375
|
-
}
|
|
34373
|
+
(t == null || t > e.length) && (t = e.length);
|
|
34374
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
34375
|
+
return r;
|
|
34376
34376
|
}
|
|
34377
|
-
function WT(e
|
|
34378
|
-
|
|
34377
|
+
function WT(e) {
|
|
34378
|
+
if (Array.isArray(e)) return e;
|
|
34379
34379
|
}
|
|
34380
|
-
function GT(e
|
|
34381
|
-
if (
|
|
34382
|
-
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
34383
|
-
value: e,
|
|
34384
|
-
writable: !0,
|
|
34385
|
-
configurable: !0
|
|
34386
|
-
} }), t && qT(e, t);
|
|
34380
|
+
function GT(e) {
|
|
34381
|
+
if (Array.isArray(e)) return UT(e);
|
|
34387
34382
|
}
|
|
34388
34383
|
function KT(e) {
|
|
34389
|
-
|
|
34390
|
-
|
|
34391
|
-
}, KT(e);
|
|
34384
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34385
|
+
return e;
|
|
34392
34386
|
}
|
|
34393
|
-
function qT(e, t) {
|
|
34394
|
-
return
|
|
34395
|
-
return e.__proto__ = t, e;
|
|
34396
|
-
}, qT(e, t);
|
|
34387
|
+
function qT(e, t, n) {
|
|
34388
|
+
return t = ZT(t), iE(e, $T() ? Reflect.construct(t, n || [], ZT(e).constructor) : t.apply(e, n));
|
|
34397
34389
|
}
|
|
34398
|
-
function JT() {
|
|
34399
|
-
if (
|
|
34400
|
-
if (typeof Proxy == "function") return !0;
|
|
34401
|
-
try {
|
|
34402
|
-
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
|
|
34403
|
-
} catch {
|
|
34404
|
-
return !1;
|
|
34405
|
-
}
|
|
34390
|
+
function JT(e, t) {
|
|
34391
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
34406
34392
|
}
|
|
34407
|
-
function YT(e) {
|
|
34408
|
-
|
|
34409
|
-
|
|
34393
|
+
function YT(e, t) {
|
|
34394
|
+
for (var n = 0; n < t.length; n++) {
|
|
34395
|
+
var r = t[n];
|
|
34396
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, lE(r.key), r);
|
|
34397
|
+
}
|
|
34410
34398
|
}
|
|
34411
|
-
function XT(e, t) {
|
|
34412
|
-
return t && (
|
|
34399
|
+
function XT(e, t, n) {
|
|
34400
|
+
return t && YT(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34413
34401
|
}
|
|
34414
34402
|
function ZT(e) {
|
|
34415
|
-
|
|
34416
|
-
|
|
34417
|
-
|
|
34418
|
-
if (t) {
|
|
34419
|
-
var i = KT(this).constructor;
|
|
34420
|
-
r = Reflect.construct(n, arguments, i);
|
|
34421
|
-
} else r = n.apply(this, arguments);
|
|
34422
|
-
return XT(this, r);
|
|
34423
|
-
};
|
|
34403
|
+
return ZT = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
34404
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
34405
|
+
}, ZT(e);
|
|
34424
34406
|
}
|
|
34425
34407
|
function QT(e, t) {
|
|
34426
|
-
|
|
34408
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
34409
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
34410
|
+
value: e,
|
|
34411
|
+
writable: !0,
|
|
34412
|
+
configurable: !0
|
|
34413
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && aE(e, t);
|
|
34427
34414
|
}
|
|
34428
|
-
function $T(
|
|
34429
|
-
|
|
34415
|
+
function $T() {
|
|
34416
|
+
try {
|
|
34417
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
34418
|
+
} catch {}
|
|
34419
|
+
return ($T = function() {
|
|
34420
|
+
return !!e;
|
|
34421
|
+
})();
|
|
34430
34422
|
}
|
|
34431
34423
|
function eE(e) {
|
|
34432
|
-
if (Array.isArray(e)) return aE(e);
|
|
34433
|
-
}
|
|
34434
|
-
function tE(e) {
|
|
34435
|
-
if (Array.isArray(e)) return e;
|
|
34436
|
-
}
|
|
34437
|
-
function nE(e) {
|
|
34438
34424
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
34439
34425
|
}
|
|
34440
|
-
function
|
|
34441
|
-
var n = e
|
|
34426
|
+
function tE(e, t) {
|
|
34427
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
34442
34428
|
if (n != null) {
|
|
34443
|
-
var r = [],
|
|
34429
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
34444
34430
|
try {
|
|
34445
|
-
|
|
34431
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
34432
|
+
if (Object(n) !== n) return;
|
|
34433
|
+
c = !1;
|
|
34434
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
34446
34435
|
} catch (e) {
|
|
34447
|
-
|
|
34436
|
+
l = !0, i = e;
|
|
34448
34437
|
} finally {
|
|
34449
34438
|
try {
|
|
34450
|
-
!
|
|
34439
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
34451
34440
|
} finally {
|
|
34452
|
-
if (
|
|
34441
|
+
if (l) throw i;
|
|
34453
34442
|
}
|
|
34454
34443
|
}
|
|
34455
|
-
return
|
|
34444
|
+
return s;
|
|
34456
34445
|
}
|
|
34457
34446
|
}
|
|
34447
|
+
function nE() {
|
|
34448
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34449
|
+
}
|
|
34450
|
+
function rE() {
|
|
34451
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34452
|
+
}
|
|
34458
34453
|
function iE(e, t) {
|
|
34459
|
-
if (
|
|
34460
|
-
|
|
34461
|
-
|
|
34462
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
34463
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return aE(e, t);
|
|
34464
|
-
}
|
|
34454
|
+
if (t && (typeof t == "object" || typeof t == "function")) return t;
|
|
34455
|
+
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
34456
|
+
return KT(e);
|
|
34465
34457
|
}
|
|
34466
34458
|
function aE(e, t) {
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
|
|
34459
|
+
return aE = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
34460
|
+
return e.__proto__ = t, e;
|
|
34461
|
+
}, aE(e, t);
|
|
34470
34462
|
}
|
|
34471
|
-
function oE() {
|
|
34472
|
-
|
|
34463
|
+
function oE(e, t) {
|
|
34464
|
+
return WT(e) || tE(e, t) || uE(e, t) || nE();
|
|
34473
34465
|
}
|
|
34474
|
-
function sE() {
|
|
34475
|
-
|
|
34466
|
+
function sE(e) {
|
|
34467
|
+
return GT(e) || eE(e) || uE(e) || rE();
|
|
34468
|
+
}
|
|
34469
|
+
function cE(e, t) {
|
|
34470
|
+
if (typeof e != "object" || !e) return e;
|
|
34471
|
+
var n = e[Symbol.toPrimitive];
|
|
34472
|
+
if (n !== void 0) {
|
|
34473
|
+
var r = n.call(e, t);
|
|
34474
|
+
if (typeof r != "object") return r;
|
|
34475
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
34476
|
+
}
|
|
34477
|
+
return String(e);
|
|
34478
|
+
}
|
|
34479
|
+
function lE(e) {
|
|
34480
|
+
var t = cE(e, "string");
|
|
34481
|
+
return typeof t == "symbol" ? t : t + "";
|
|
34482
|
+
}
|
|
34483
|
+
function uE(e, t) {
|
|
34484
|
+
if (e) {
|
|
34485
|
+
if (typeof e == "string") return UT(e, t);
|
|
34486
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
34487
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? UT(e, t) : void 0;
|
|
34488
|
+
}
|
|
34476
34489
|
}
|
|
34477
|
-
var
|
|
34478
|
-
|
|
34479
|
-
|
|
34490
|
+
var dE, fE, pE = Re((() => {
|
|
34491
|
+
VT(), dE = typeof window < "u" && window.THREE ? window.THREE : {
|
|
34492
|
+
CanvasTexture: Mw,
|
|
34480
34493
|
Sprite: pC,
|
|
34481
34494
|
SpriteMaterial: $S,
|
|
34482
|
-
|
|
34483
|
-
},
|
|
34484
|
-
|
|
34485
|
-
|
|
34486
|
-
|
|
34487
|
-
var e, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "rgba(255, 255, 255, 1)";
|
|
34488
|
-
return HT(this, n), e = t.call(this, new cE.SpriteMaterial({ map: new cE.Texture() })), e._text = `${r}`, e._textHeight = i, e._color = a, e._backgroundColor = !1, e._padding = 0, e._borderWidth = 0, e._borderRadius = 0, e._borderColor = "white", e._strokeWidth = 0, e._strokeColor = "white", e._fontFace = "Arial", e._fontSize = 90, e._fontWeight = "normal", e._canvas = document.createElement("canvas"), e._texture = e.material.map, e._texture.minFilter = cE.LinearFilter, e._genCanvas(), e;
|
|
34495
|
+
SRGBColorSpace: Ub
|
|
34496
|
+
}, fE = /*#__PURE__*/ function(e) {
|
|
34497
|
+
function t() {
|
|
34498
|
+
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "rgba(255, 255, 255, 1)";
|
|
34499
|
+
return JT(this, t), e = qT(this, t, [new dE.SpriteMaterial()]), e._text = `${n}`, e._textHeight = r, e._color = i, e._backgroundColor = !1, e._padding = 0, e._borderWidth = 0, e._borderRadius = 0, e._borderColor = "white", e._offsetX = 0, e._offsetY = 0, e._strokeWidth = 0, e._strokeColor = "white", e._fontFace = "system-ui", e._fontSize = 90, e._fontWeight = "normal", e._canvas = document.createElement("canvas"), e._genCanvas(), e;
|
|
34489
34500
|
}
|
|
34490
|
-
return
|
|
34501
|
+
return QT(t, e), XT(t, [
|
|
34491
34502
|
{
|
|
34492
34503
|
key: "text",
|
|
34493
34504
|
get: function() {
|
|
@@ -34560,6 +34571,24 @@ var cE, lE, uE = Re((() => {
|
|
|
34560
34571
|
this._borderColor = e, this._genCanvas();
|
|
34561
34572
|
}
|
|
34562
34573
|
},
|
|
34574
|
+
{
|
|
34575
|
+
key: "offsetX",
|
|
34576
|
+
get: function() {
|
|
34577
|
+
return this._offsetX;
|
|
34578
|
+
},
|
|
34579
|
+
set: function(e) {
|
|
34580
|
+
this._offsetX = e, this._genCanvas();
|
|
34581
|
+
}
|
|
34582
|
+
},
|
|
34583
|
+
{
|
|
34584
|
+
key: "offsetY",
|
|
34585
|
+
get: function() {
|
|
34586
|
+
return this._offsetY;
|
|
34587
|
+
},
|
|
34588
|
+
set: function(e) {
|
|
34589
|
+
this._offsetY = e, this._genCanvas();
|
|
34590
|
+
}
|
|
34591
|
+
},
|
|
34563
34592
|
{
|
|
34564
34593
|
key: "fontFace",
|
|
34565
34594
|
get: function() {
|
|
@@ -34608,110 +34637,116 @@ var cE, lE, uE = Re((() => {
|
|
|
34608
34637
|
{
|
|
34609
34638
|
key: "_genCanvas",
|
|
34610
34639
|
value: function() {
|
|
34611
|
-
var e = this, t = this._canvas, n = t.getContext("2d"), r = Array.isArray(this.borderWidth) ? this.borderWidth : [this.borderWidth, this.borderWidth],
|
|
34612
|
-
return t * e.fontSize *
|
|
34613
|
-
}),
|
|
34640
|
+
var e = this, t = this._canvas, n = t.getContext("2d"), r = 1 / this.textHeight, i = Array.isArray(this.borderWidth) ? this.borderWidth : [this.borderWidth, this.borderWidth], a = i.map(function(t) {
|
|
34641
|
+
return t * e.fontSize * r;
|
|
34642
|
+
}), o = (Array.isArray(this.borderRadius) ? this.borderRadius : [
|
|
34614
34643
|
this.borderRadius,
|
|
34615
34644
|
this.borderRadius,
|
|
34616
34645
|
this.borderRadius,
|
|
34617
34646
|
this.borderRadius
|
|
34618
34647
|
]).map(function(t) {
|
|
34619
|
-
return t * e.fontSize *
|
|
34620
|
-
}),
|
|
34621
|
-
return t * e.fontSize *
|
|
34622
|
-
}),
|
|
34623
|
-
|
|
34624
|
-
|
|
34648
|
+
return t * e.fontSize * r;
|
|
34649
|
+
}), s = Array.isArray(this.padding) ? this.padding : [this.padding, this.padding], c = s.map(function(t) {
|
|
34650
|
+
return t * e.fontSize * r;
|
|
34651
|
+
}), l = [this.offsetX, this.offsetY].map(function(t) {
|
|
34652
|
+
return t * e.fontSize * r;
|
|
34653
|
+
}), u = this.text.split("\n"), d = `${this.fontWeight} ${this.fontSize}px ${this.fontFace}`;
|
|
34654
|
+
n.font = d;
|
|
34655
|
+
var f = Math.max.apply(Math, sE(u.map(function(e) {
|
|
34625
34656
|
return n.measureText(e).width;
|
|
34626
|
-
}))),
|
|
34627
|
-
if (t.width =
|
|
34628
|
-
|
|
34629
|
-
|
|
34630
|
-
|
|
34657
|
+
}))), p = this.fontSize * u.length, m = f + a[0] * 2 + c[0] * 2, h = p + a[1] * 2 + c[1] * 2;
|
|
34658
|
+
if (t.width = m + Math.abs(l[0]), t.height = h + Math.abs(l[1]), n.translate.apply(n, sE(l.map(function(e) {
|
|
34659
|
+
return Math.max(0, e);
|
|
34660
|
+
}))), this.borderWidth) {
|
|
34661
|
+
if (n.strokeStyle = this.borderColor, a[0]) {
|
|
34662
|
+
var g = a[0] / 2;
|
|
34663
|
+
n.lineWidth = a[0], n.beginPath(), n.moveTo(g, o[0]), n.lineTo(g, h - o[3]), n.moveTo(m - g, o[1]), n.lineTo(m - g, h - o[2]), n.stroke();
|
|
34631
34664
|
}
|
|
34632
|
-
if (
|
|
34633
|
-
var
|
|
34634
|
-
n.lineWidth =
|
|
34665
|
+
if (a[1]) {
|
|
34666
|
+
var _ = a[1] / 2;
|
|
34667
|
+
n.lineWidth = a[1], n.beginPath(), n.moveTo(Math.max(a[0], o[0]), _), n.lineTo(m - Math.max(a[0], o[1]), _), n.moveTo(Math.max(a[0], o[3]), h - _), n.lineTo(m - Math.max(a[0], o[2]), h - _), n.stroke();
|
|
34635
34668
|
}
|
|
34636
34669
|
if (this.borderRadius) {
|
|
34637
|
-
var
|
|
34638
|
-
n.lineWidth =
|
|
34639
|
-
!!
|
|
34640
|
-
|
|
34641
|
-
|
|
34642
|
-
|
|
34643
|
-
|
|
34670
|
+
var v = Math.max.apply(Math, sE(a)), y = v / 2;
|
|
34671
|
+
n.lineWidth = v, n.beginPath(), [
|
|
34672
|
+
!!o[0] && [
|
|
34673
|
+
o[0],
|
|
34674
|
+
y,
|
|
34675
|
+
y,
|
|
34676
|
+
o[0]
|
|
34644
34677
|
],
|
|
34645
|
-
!!
|
|
34646
|
-
|
|
34647
|
-
|
|
34648
|
-
|
|
34649
|
-
|
|
34678
|
+
!!o[1] && [
|
|
34679
|
+
m - o[1],
|
|
34680
|
+
m - y,
|
|
34681
|
+
y,
|
|
34682
|
+
o[1]
|
|
34650
34683
|
],
|
|
34651
|
-
!!
|
|
34652
|
-
|
|
34653
|
-
|
|
34654
|
-
|
|
34655
|
-
|
|
34684
|
+
!!o[2] && [
|
|
34685
|
+
m - o[2],
|
|
34686
|
+
m - y,
|
|
34687
|
+
h - y,
|
|
34688
|
+
h - o[2]
|
|
34656
34689
|
],
|
|
34657
|
-
!!
|
|
34658
|
-
|
|
34659
|
-
|
|
34660
|
-
|
|
34661
|
-
|
|
34690
|
+
!!o[3] && [
|
|
34691
|
+
o[3],
|
|
34692
|
+
y,
|
|
34693
|
+
h - y,
|
|
34694
|
+
h - o[3]
|
|
34662
34695
|
]
|
|
34663
34696
|
].filter(function(e) {
|
|
34664
34697
|
return e;
|
|
34665
34698
|
}).forEach(function(e) {
|
|
34666
|
-
var t =
|
|
34699
|
+
var t = oE(e, 4), r = t[0], i = t[1], a = t[2], o = t[3];
|
|
34667
34700
|
n.moveTo(r, a), n.quadraticCurveTo(i, a, i, o);
|
|
34668
34701
|
}), n.stroke();
|
|
34669
34702
|
}
|
|
34670
34703
|
}
|
|
34671
|
-
this.backgroundColor && (n.fillStyle = this.backgroundColor, this.borderRadius ? (n.beginPath(), n.moveTo(
|
|
34704
|
+
this.backgroundColor && (n.fillStyle = this.backgroundColor, this.borderRadius ? (n.beginPath(), n.moveTo(a[0], o[0]), [
|
|
34672
34705
|
[
|
|
34673
|
-
i[0],
|
|
34674
34706
|
a[0],
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34678
|
-
|
|
34707
|
+
o[0],
|
|
34708
|
+
m - o[1],
|
|
34709
|
+
a[1],
|
|
34710
|
+
a[1],
|
|
34711
|
+
a[1]
|
|
34679
34712
|
],
|
|
34680
34713
|
[
|
|
34681
|
-
|
|
34682
|
-
|
|
34683
|
-
|
|
34684
|
-
i[1],
|
|
34714
|
+
m - a[0],
|
|
34715
|
+
m - a[0],
|
|
34716
|
+
m - a[0],
|
|
34685
34717
|
a[1],
|
|
34686
|
-
|
|
34718
|
+
o[1],
|
|
34719
|
+
h - o[2]
|
|
34687
34720
|
],
|
|
34688
34721
|
[
|
|
34689
|
-
|
|
34690
|
-
|
|
34691
|
-
|
|
34692
|
-
|
|
34693
|
-
|
|
34694
|
-
|
|
34722
|
+
m - a[0],
|
|
34723
|
+
m - o[2],
|
|
34724
|
+
o[3],
|
|
34725
|
+
h - a[1],
|
|
34726
|
+
h - a[1],
|
|
34727
|
+
h - a[1]
|
|
34695
34728
|
],
|
|
34696
34729
|
[
|
|
34697
|
-
|
|
34698
|
-
|
|
34699
|
-
|
|
34700
|
-
|
|
34701
|
-
|
|
34702
|
-
|
|
34730
|
+
a[0],
|
|
34731
|
+
a[0],
|
|
34732
|
+
a[0],
|
|
34733
|
+
h - a[1],
|
|
34734
|
+
h - o[3],
|
|
34735
|
+
o[0]
|
|
34703
34736
|
]
|
|
34704
34737
|
].forEach(function(e) {
|
|
34705
|
-
var t =
|
|
34738
|
+
var t = oE(e, 6), r = t[0], i = t[1], a = t[2], o = t[3], s = t[4], c = t[5];
|
|
34706
34739
|
n.quadraticCurveTo(r, o, i, s), n.lineTo(a, c);
|
|
34707
|
-
}), n.closePath(), n.fill()) : n.fillRect(
|
|
34708
|
-
var
|
|
34709
|
-
|
|
34710
|
-
var i = (
|
|
34711
|
-
|
|
34712
|
-
}), this.
|
|
34713
|
-
var
|
|
34714
|
-
|
|
34740
|
+
}), n.closePath(), n.fill()) : n.fillRect(a[0], a[1], m - a[0] * 2, h - a[1] * 2)), n.translate.apply(n, sE(a)), n.translate.apply(n, sE(c)), n.font = d, n.fillStyle = this.color, n.textBaseline = "bottom";
|
|
34741
|
+
var b = this.strokeWidth > 0;
|
|
34742
|
+
b && (n.lineWidth = this.strokeWidth * this.fontSize / 10, n.strokeStyle = this.strokeColor), u.forEach(function(t, r) {
|
|
34743
|
+
var i = (f - n.measureText(t).width) / 2, a = (r + 1) * e.fontSize;
|
|
34744
|
+
b && n.strokeText(t, i, a), n.fillText(t, i, a);
|
|
34745
|
+
}), this.material.map && this.material.map.dispose();
|
|
34746
|
+
var x = this.material.map = new dE.CanvasTexture(t);
|
|
34747
|
+
x.colorSpace = dE.SRGBColorSpace;
|
|
34748
|
+
var S = this.textHeight * u.length + i[1] * 2 + s[1] * 2 + Math.abs(this.offsetY);
|
|
34749
|
+
this.scale.set(S * t.width / t.height, S, 0);
|
|
34715
34750
|
}
|
|
34716
34751
|
},
|
|
34717
34752
|
{
|
|
@@ -34723,12 +34758,12 @@ var cE, lE, uE = Re((() => {
|
|
|
34723
34758
|
{
|
|
34724
34759
|
key: "copy",
|
|
34725
34760
|
value: function(e) {
|
|
34726
|
-
return
|
|
34761
|
+
return dE.Sprite.prototype.copy.call(this, e), this.color = e.color, this.backgroundColor = e.backgroundColor, this.padding = e.padding, this.borderWidth = e.borderWidth, this.borderColor = e.borderColor, this.offsetX = e.offsetX, this.offsetY = e.offsetY, this.fontFace = e.fontFace, this.fontSize = e.fontSize, this.fontWeight = e.fontWeight, this.strokeWidth = e.strokeWidth, this.strokeColor = e.strokeColor, this;
|
|
34727
34762
|
}
|
|
34728
34763
|
}
|
|
34729
|
-
])
|
|
34730
|
-
}(
|
|
34731
|
-
})),
|
|
34764
|
+
]);
|
|
34765
|
+
}(dE.Sprite);
|
|
34766
|
+
})), mE = /* @__PURE__ */ ze(((e, t) => {
|
|
34732
34767
|
(function(n, r) {
|
|
34733
34768
|
typeof define == "function" && define.amd ? define(r) : typeof e == "object" ? t.exports = r() : n.ResizeSensor = r();
|
|
34734
34769
|
})(typeof window < "u" ? window : e, function() {
|
|
@@ -34874,9 +34909,9 @@ var cE, lE, uE = Re((() => {
|
|
|
34874
34909
|
}
|
|
34875
34910
|
return o;
|
|
34876
34911
|
});
|
|
34877
|
-
})),
|
|
34912
|
+
})), hE = /* @__PURE__ */ ze(((e, t) => {
|
|
34878
34913
|
(function(n, r) {
|
|
34879
|
-
typeof define == "function" && define.amd ? define(["./ResizeSensor.js"], r) : typeof e == "object" ? t.exports = r(
|
|
34914
|
+
typeof define == "function" && define.amd ? define(["./ResizeSensor.js"], r) : typeof e == "object" ? t.exports = r(mE()) : (n.ElementQueries = r(n.ResizeSensor), n.ElementQueries.listen());
|
|
34880
34915
|
})(typeof window < "u" ? window : e, function(e) {
|
|
34881
34916
|
var t = function() {
|
|
34882
34917
|
var t, n = {}, r = [];
|
|
@@ -35033,15 +35068,15 @@ var cE, lE, uE = Re((() => {
|
|
|
35033
35068
|
n(t.init);
|
|
35034
35069
|
}, t;
|
|
35035
35070
|
});
|
|
35036
|
-
})),
|
|
35071
|
+
})), gE = /* @__PURE__ */ ze(((e, t) => {
|
|
35037
35072
|
t.exports = {
|
|
35038
|
-
ResizeSensor:
|
|
35039
|
-
ElementQueries:
|
|
35073
|
+
ResizeSensor: mE(),
|
|
35074
|
+
ElementQueries: hE()
|
|
35040
35075
|
};
|
|
35041
35076
|
}));
|
|
35042
35077
|
//#endregion
|
|
35043
35078
|
//#region node_modules/three/examples/jsm/utils/BufferGeometryUtils.js
|
|
35044
|
-
function
|
|
35079
|
+
function _E(e, t) {
|
|
35045
35080
|
if (t === 0) return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), e;
|
|
35046
35081
|
if (t === 2 || t === 1) {
|
|
35047
35082
|
let n = e.getIndex();
|
|
@@ -35061,14 +35096,14 @@ function mE(e, t) {
|
|
|
35061
35096
|
}
|
|
35062
35097
|
return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", t), e;
|
|
35063
35098
|
}
|
|
35064
|
-
var
|
|
35065
|
-
|
|
35099
|
+
var vE = Re((() => {
|
|
35100
|
+
VT();
|
|
35066
35101
|
}));
|
|
35067
35102
|
//#endregion
|
|
35068
35103
|
//#region node_modules/three/examples/jsm/utils/SkeletonUtils.js
|
|
35069
|
-
function
|
|
35104
|
+
function yE(e) {
|
|
35070
35105
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = e.clone();
|
|
35071
|
-
return
|
|
35106
|
+
return bE(e, r, function(e, r) {
|
|
35072
35107
|
t.set(r, e), n.set(e, r);
|
|
35073
35108
|
}), r.traverse(function(e) {
|
|
35074
35109
|
if (!e.isSkinnedMesh) return;
|
|
@@ -35078,12 +35113,12 @@ function gE(e) {
|
|
|
35078
35113
|
}), r.bind(r.skeleton, r.bindMatrix);
|
|
35079
35114
|
}), r;
|
|
35080
35115
|
}
|
|
35081
|
-
function
|
|
35116
|
+
function bE(e, t, n) {
|
|
35082
35117
|
n(e, t);
|
|
35083
|
-
for (let r = 0; r < e.children.length; r++)
|
|
35118
|
+
for (let r = 0; r < e.children.length; r++) bE(e.children[r], t.children[r], n);
|
|
35084
35119
|
}
|
|
35085
|
-
var
|
|
35086
|
-
function
|
|
35120
|
+
var xE = Re((() => {})), SE = /* @__PURE__ */ Be({ GLTFLoader: () => IE });
|
|
35121
|
+
function CE() {
|
|
35087
35122
|
let e = {};
|
|
35088
35123
|
return {
|
|
35089
35124
|
get: function(t) {
|
|
@@ -35100,12 +35135,12 @@ function bE() {
|
|
|
35100
35135
|
}
|
|
35101
35136
|
};
|
|
35102
35137
|
}
|
|
35103
|
-
function
|
|
35138
|
+
function wE(e, t, n) {
|
|
35104
35139
|
let r = e.json.materials[t];
|
|
35105
35140
|
return r.extensions && r.extensions[n] ? r.extensions[n] : null;
|
|
35106
35141
|
}
|
|
35107
|
-
function
|
|
35108
|
-
return e.DefaultMaterial === void 0 && (e.DefaultMaterial = new
|
|
35142
|
+
function TE(e) {
|
|
35143
|
+
return e.DefaultMaterial === void 0 && (e.DefaultMaterial = new Nw({
|
|
35109
35144
|
color: 16777215,
|
|
35110
35145
|
emissive: 0,
|
|
35111
35146
|
metalness: 1,
|
|
@@ -35115,13 +35150,13 @@ function SE(e) {
|
|
|
35115
35150
|
side: 0
|
|
35116
35151
|
})), e.DefaultMaterial;
|
|
35117
35152
|
}
|
|
35118
|
-
function
|
|
35153
|
+
function EE(e, t, n) {
|
|
35119
35154
|
for (let r in n.extensions) e[r] === void 0 && (t.userData.gltfExtensions = t.userData.gltfExtensions || {}, t.userData.gltfExtensions[r] = n.extensions[r]);
|
|
35120
35155
|
}
|
|
35121
|
-
function
|
|
35156
|
+
function DE(e, t) {
|
|
35122
35157
|
t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(e.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
|
|
35123
35158
|
}
|
|
35124
|
-
function
|
|
35159
|
+
function OE(e, t, n) {
|
|
35125
35160
|
let r = !1, i = !1, a = !1;
|
|
35126
35161
|
for (let e = 0, n = t.length; e < n; e++) {
|
|
35127
35162
|
let n = t[e];
|
|
@@ -35153,7 +35188,7 @@ function TE(e, t, n) {
|
|
|
35153
35188
|
return r && (e.morphAttributes.position = n), i && (e.morphAttributes.normal = o), a && (e.morphAttributes.color = s), e.morphTargetsRelative = !0, e;
|
|
35154
35189
|
});
|
|
35155
35190
|
}
|
|
35156
|
-
function
|
|
35191
|
+
function kE(e, t) {
|
|
35157
35192
|
if (e.updateMorphTargets(), t.weights !== void 0) for (let n = 0, r = t.weights.length; n < r; n++) e.morphTargetInfluences[n] = t.weights[n];
|
|
35158
35193
|
if (t.extras && Array.isArray(t.extras.targetNames)) {
|
|
35159
35194
|
let n = t.extras.targetNames;
|
|
@@ -35163,17 +35198,17 @@ function EE(e, t) {
|
|
|
35163
35198
|
} else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.");
|
|
35164
35199
|
}
|
|
35165
35200
|
}
|
|
35166
|
-
function
|
|
35167
|
-
let t, n = e.extensions && e.extensions[
|
|
35168
|
-
if (t = n ? "draco:" + n.bufferView + ":" + n.indices + ":" +
|
|
35201
|
+
function AE(e) {
|
|
35202
|
+
let t, n = e.extensions && e.extensions[LE.KHR_DRACO_MESH_COMPRESSION];
|
|
35203
|
+
if (t = n ? "draco:" + n.bufferView + ":" + n.indices + ":" + jE(n.attributes) : e.indices + ":" + jE(e.attributes) + ":" + e.mode, e.targets !== void 0) for (let n = 0, r = e.targets.length; n < r; n++) t += ":" + jE(e.targets[n]);
|
|
35169
35204
|
return t;
|
|
35170
35205
|
}
|
|
35171
|
-
function
|
|
35206
|
+
function jE(e) {
|
|
35172
35207
|
let t = "", n = Object.keys(e).sort();
|
|
35173
35208
|
for (let r = 0, i = n.length; r < i; r++) t += n[r] + ":" + e[n[r]] + ";";
|
|
35174
35209
|
return t;
|
|
35175
35210
|
}
|
|
35176
|
-
function
|
|
35211
|
+
function ME(e) {
|
|
35177
35212
|
switch (e) {
|
|
35178
35213
|
case Int8Array: return 1 / 127;
|
|
35179
35214
|
case Uint8Array: return 1 / 255;
|
|
@@ -35182,16 +35217,16 @@ function kE(e) {
|
|
|
35182
35217
|
default: throw Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
|
|
35183
35218
|
}
|
|
35184
35219
|
}
|
|
35185
|
-
function
|
|
35220
|
+
function NE(e) {
|
|
35186
35221
|
return e.search(/\.jpe?g($|\?)/i) > 0 || e.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : e.search(/\.webp($|\?)/i) > 0 || e.search(/^data\:image\/webp/) === 0 ? "image/webp" : e.search(/\.ktx2($|\?)/i) > 0 || e.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
|
|
35187
35222
|
}
|
|
35188
|
-
function
|
|
35223
|
+
function PE(e, t, n) {
|
|
35189
35224
|
let r = t.attributes, i = new hS();
|
|
35190
35225
|
if (r.POSITION !== void 0) {
|
|
35191
35226
|
let e = n.json.accessors[r.POSITION], t = e.min, a = e.max;
|
|
35192
35227
|
if (t !== void 0 && a !== void 0) {
|
|
35193
35228
|
if (i.set(new $(t[0], t[1], t[2]), new $(a[0], a[1], a[2])), e.normalized) {
|
|
35194
|
-
let t =
|
|
35229
|
+
let t = ME(pD[e.componentType]);
|
|
35195
35230
|
i.min.multiplyScalar(t), i.max.multiplyScalar(t);
|
|
35196
35231
|
}
|
|
35197
35232
|
} else {
|
|
@@ -35208,7 +35243,7 @@ function jE(e, t, n) {
|
|
|
35208
35243
|
let r = n.json.accessors[i.POSITION], a = r.min, o = r.max;
|
|
35209
35244
|
if (a !== void 0 && o !== void 0) {
|
|
35210
35245
|
if (t.setX(Math.max(Math.abs(a[0]), Math.abs(o[0]))), t.setY(Math.max(Math.abs(a[1]), Math.abs(o[1]))), t.setZ(Math.max(Math.abs(a[2]), Math.abs(o[2]))), r.normalized) {
|
|
35211
|
-
let e =
|
|
35246
|
+
let e = ME(pD[r.componentType]);
|
|
35212
35247
|
t.multiplyScalar(e);
|
|
35213
35248
|
}
|
|
35214
35249
|
e.max(t);
|
|
@@ -35221,7 +35256,7 @@ function jE(e, t, n) {
|
|
|
35221
35256
|
let o = new zS();
|
|
35222
35257
|
i.getCenter(o.center), o.radius = i.min.distanceTo(i.max) / 2, e.boundingSphere = o;
|
|
35223
35258
|
}
|
|
35224
|
-
function
|
|
35259
|
+
function FE(e, t, n) {
|
|
35225
35260
|
let r = t.attributes, i = [];
|
|
35226
35261
|
function a(t, r) {
|
|
35227
35262
|
return n.getDependency("accessor", t).then(function(t) {
|
|
@@ -35229,7 +35264,7 @@ function ME(e, t, n) {
|
|
|
35229
35264
|
});
|
|
35230
35265
|
}
|
|
35231
35266
|
for (let t in r) {
|
|
35232
|
-
let n =
|
|
35267
|
+
let n = _D[t] || t.toLowerCase();
|
|
35233
35268
|
n in e.attributes || i.push(a(r[t], n));
|
|
35234
35269
|
}
|
|
35235
35270
|
if (t.indices !== void 0 && !e.index) {
|
|
@@ -35238,62 +35273,62 @@ function ME(e, t, n) {
|
|
|
35238
35273
|
});
|
|
35239
35274
|
i.push(r);
|
|
35240
35275
|
}
|
|
35241
|
-
return fx.workingColorSpace !== "srgb-linear" && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${fx.workingColorSpace}" not supported.`),
|
|
35242
|
-
return t.targets === void 0 ? e :
|
|
35276
|
+
return fx.workingColorSpace !== "srgb-linear" && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${fx.workingColorSpace}" not supported.`), DE(e, t), PE(e, t, n), Promise.all(i).then(function() {
|
|
35277
|
+
return t.targets === void 0 ? e : OE(e, t.targets, n);
|
|
35243
35278
|
});
|
|
35244
35279
|
}
|
|
35245
|
-
var
|
|
35246
|
-
|
|
35280
|
+
var IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE, QE, $E, eD, tD, nD, rD, iD, aD, oD, sD, cD, lD, uD, dD, fD, pD, mD, hD, gD, _D, vD, yD, bD, xD, SD, CD = Re((() => {
|
|
35281
|
+
VT(), vE(), xE(), IE = class extends Qw {
|
|
35247
35282
|
constructor(e) {
|
|
35248
35283
|
super(e), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(e) {
|
|
35249
|
-
return new
|
|
35284
|
+
return new VE(e);
|
|
35250
35285
|
}), this.register(function(e) {
|
|
35251
|
-
return new
|
|
35286
|
+
return new HE(e);
|
|
35252
35287
|
}), this.register(function(e) {
|
|
35253
|
-
return new
|
|
35288
|
+
return new ZE(e);
|
|
35254
35289
|
}), this.register(function(e) {
|
|
35255
|
-
return new
|
|
35290
|
+
return new QE(e);
|
|
35256
35291
|
}), this.register(function(e) {
|
|
35257
|
-
return new
|
|
35292
|
+
return new $E(e);
|
|
35258
35293
|
}), this.register(function(e) {
|
|
35259
|
-
return new
|
|
35294
|
+
return new WE(e);
|
|
35260
35295
|
}), this.register(function(e) {
|
|
35261
|
-
return new
|
|
35296
|
+
return new GE(e);
|
|
35262
35297
|
}), this.register(function(e) {
|
|
35263
|
-
return new
|
|
35298
|
+
return new KE(e);
|
|
35264
35299
|
}), this.register(function(e) {
|
|
35265
|
-
return new
|
|
35300
|
+
return new qE(e);
|
|
35266
35301
|
}), this.register(function(e) {
|
|
35267
|
-
return new
|
|
35302
|
+
return new BE(e);
|
|
35268
35303
|
}), this.register(function(e) {
|
|
35269
|
-
return new
|
|
35304
|
+
return new JE(e);
|
|
35270
35305
|
}), this.register(function(e) {
|
|
35271
|
-
return new
|
|
35306
|
+
return new UE(e);
|
|
35272
35307
|
}), this.register(function(e) {
|
|
35273
|
-
return new
|
|
35308
|
+
return new XE(e);
|
|
35274
35309
|
}), this.register(function(e) {
|
|
35275
|
-
return new
|
|
35310
|
+
return new YE(e);
|
|
35276
35311
|
}), this.register(function(e) {
|
|
35277
|
-
return new
|
|
35312
|
+
return new RE(e);
|
|
35278
35313
|
}), this.register(function(e) {
|
|
35279
|
-
return new
|
|
35314
|
+
return new eD(e, LE.EXT_MESHOPT_COMPRESSION);
|
|
35280
35315
|
}), this.register(function(e) {
|
|
35281
|
-
return new
|
|
35316
|
+
return new eD(e, LE.KHR_MESHOPT_COMPRESSION);
|
|
35282
35317
|
}), this.register(function(e) {
|
|
35283
|
-
return new
|
|
35318
|
+
return new tD(e);
|
|
35284
35319
|
});
|
|
35285
35320
|
}
|
|
35286
35321
|
load(e, t, n, r) {
|
|
35287
35322
|
let i = this, a;
|
|
35288
35323
|
if (this.resourcePath !== "") a = this.resourcePath;
|
|
35289
35324
|
else if (this.path !== "") {
|
|
35290
|
-
let t =
|
|
35291
|
-
a =
|
|
35292
|
-
} else a =
|
|
35325
|
+
let t = TT.extractUrlBase(e);
|
|
35326
|
+
a = TT.resolveURL(t, this.path);
|
|
35327
|
+
} else a = TT.extractUrlBase(e);
|
|
35293
35328
|
this.manager.itemStart(e);
|
|
35294
35329
|
let o = function(t) {
|
|
35295
35330
|
r ? r(t) : console.error(t), i.manager.itemError(e), i.manager.itemEnd(e);
|
|
35296
|
-
}, s = new
|
|
35331
|
+
}, s = new tT(this.manager);
|
|
35297
35332
|
s.setPath(this.path), s.setResponseType("arraybuffer"), s.setRequestHeader(this.requestHeader), s.setWithCredentials(this.withCredentials), s.load(e, function(n) {
|
|
35298
35333
|
try {
|
|
35299
35334
|
i.parse(n, a, function(n) {
|
|
@@ -35323,21 +35358,21 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35323
35358
|
let i, a = {}, o = {}, s = new TextDecoder();
|
|
35324
35359
|
if (typeof e == "string") i = JSON.parse(e);
|
|
35325
35360
|
else if (e instanceof ArrayBuffer) {
|
|
35326
|
-
if (s.decode(new Uint8Array(e, 0, 4)) ===
|
|
35361
|
+
if (s.decode(new Uint8Array(e, 0, 4)) === nD) {
|
|
35327
35362
|
try {
|
|
35328
|
-
a[
|
|
35363
|
+
a[LE.KHR_BINARY_GLTF] = new aD(e);
|
|
35329
35364
|
} catch (e) {
|
|
35330
35365
|
r && r(e);
|
|
35331
35366
|
return;
|
|
35332
35367
|
}
|
|
35333
|
-
i = JSON.parse(a[
|
|
35368
|
+
i = JSON.parse(a[LE.KHR_BINARY_GLTF].content);
|
|
35334
35369
|
} else i = JSON.parse(s.decode(e));
|
|
35335
35370
|
} else i = e;
|
|
35336
35371
|
if (i.asset === void 0 || i.asset.version[0] < 2) {
|
|
35337
35372
|
r && r(/* @__PURE__ */ Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
|
|
35338
35373
|
return;
|
|
35339
35374
|
}
|
|
35340
|
-
let c = new
|
|
35375
|
+
let c = new SD(i, {
|
|
35341
35376
|
path: t || this.resourcePath || "",
|
|
35342
35377
|
crossOrigin: this.crossOrigin,
|
|
35343
35378
|
requestHeader: this.requestHeader,
|
|
@@ -35353,17 +35388,17 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35353
35388
|
if (i.extensionsUsed) for (let e = 0; e < i.extensionsUsed.length; ++e) {
|
|
35354
35389
|
let t = i.extensionsUsed[e], n = i.extensionsRequired || [];
|
|
35355
35390
|
switch (t) {
|
|
35356
|
-
case
|
|
35357
|
-
a[t] = new
|
|
35391
|
+
case LE.KHR_MATERIALS_UNLIT:
|
|
35392
|
+
a[t] = new zE();
|
|
35358
35393
|
break;
|
|
35359
|
-
case
|
|
35360
|
-
a[t] = new
|
|
35394
|
+
case LE.KHR_DRACO_MESH_COMPRESSION:
|
|
35395
|
+
a[t] = new oD(i, this.dracoLoader);
|
|
35361
35396
|
break;
|
|
35362
|
-
case
|
|
35363
|
-
a[t] = new
|
|
35397
|
+
case LE.KHR_TEXTURE_TRANSFORM:
|
|
35398
|
+
a[t] = new sD();
|
|
35364
35399
|
break;
|
|
35365
|
-
case
|
|
35366
|
-
a[t] = new
|
|
35400
|
+
case LE.KHR_MESH_QUANTIZATION:
|
|
35401
|
+
a[t] = new cD();
|
|
35367
35402
|
break;
|
|
35368
35403
|
default: n.indexOf(t) >= 0 && o[t] === void 0 && console.warn("THREE.GLTFLoader: Unknown extension \"" + t + "\".");
|
|
35369
35404
|
}
|
|
@@ -35376,7 +35411,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35376
35411
|
n.parse(e, t, r, i);
|
|
35377
35412
|
});
|
|
35378
35413
|
}
|
|
35379
|
-
},
|
|
35414
|
+
}, LE = {
|
|
35380
35415
|
KHR_BINARY_GLTF: "KHR_binary_glTF",
|
|
35381
35416
|
KHR_DRACO_MESH_COMPRESSION: "KHR_draco_mesh_compression",
|
|
35382
35417
|
KHR_LIGHTS_PUNCTUAL: "KHR_lights_punctual",
|
|
@@ -35400,9 +35435,9 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35400
35435
|
EXT_MESHOPT_COMPRESSION: "EXT_meshopt_compression",
|
|
35401
35436
|
KHR_MESHOPT_COMPRESSION: "KHR_meshopt_compression",
|
|
35402
35437
|
EXT_MESH_GPU_INSTANCING: "EXT_mesh_gpu_instancing"
|
|
35403
|
-
},
|
|
35438
|
+
}, RE = class {
|
|
35404
35439
|
constructor(e) {
|
|
35405
|
-
this.parser = e, this.name =
|
|
35440
|
+
this.parser = e, this.name = LE.KHR_LIGHTS_PUNCTUAL, this.cache = {
|
|
35406
35441
|
refs: {},
|
|
35407
35442
|
uses: {}
|
|
35408
35443
|
};
|
|
@@ -35422,17 +35457,17 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35422
35457
|
let c = a.range === void 0 ? 0 : a.range;
|
|
35423
35458
|
switch (a.type) {
|
|
35424
35459
|
case "directional":
|
|
35425
|
-
o = new
|
|
35460
|
+
o = new wT(s), o.target.position.set(0, 0, -1), o.add(o.target);
|
|
35426
35461
|
break;
|
|
35427
35462
|
case "point":
|
|
35428
|
-
o = new
|
|
35463
|
+
o = new xT(s), o.distance = c;
|
|
35429
35464
|
break;
|
|
35430
35465
|
case "spot":
|
|
35431
|
-
o = new
|
|
35466
|
+
o = new yT(s), o.distance = c, a.spot = a.spot || {}, a.spot.innerConeAngle = a.spot.innerConeAngle === void 0 ? 0 : a.spot.innerConeAngle, a.spot.outerConeAngle = a.spot.outerConeAngle === void 0 ? Math.PI / 4 : a.spot.outerConeAngle, o.angle = a.spot.outerConeAngle, o.penumbra = 1 - a.spot.innerConeAngle / a.spot.outerConeAngle, o.target.position.set(0, 0, -1), o.add(o.target);
|
|
35432
35467
|
break;
|
|
35433
35468
|
default: throw Error("THREE.GLTFLoader: Unexpected light type: " + a.type);
|
|
35434
35469
|
}
|
|
35435
|
-
return o.position.set(0, 0, 0),
|
|
35470
|
+
return o.position.set(0, 0, 0), DE(o, a), a.intensity !== void 0 && (o.intensity = a.intensity), o.name = t.createUniqueName(a.name || "light_" + e), r = Promise.resolve(o), t.cache.add(n, r), r;
|
|
35436
35471
|
}
|
|
35437
35472
|
getDependency(e, t) {
|
|
35438
35473
|
if (e === "light") return this._loadLight(t);
|
|
@@ -35443,9 +35478,9 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35443
35478
|
return n._getNodeRef(t.cache, i, e);
|
|
35444
35479
|
});
|
|
35445
35480
|
}
|
|
35446
|
-
},
|
|
35481
|
+
}, zE = class {
|
|
35447
35482
|
constructor() {
|
|
35448
|
-
this.name =
|
|
35483
|
+
this.name = LE.KHR_MATERIALS_UNLIT;
|
|
35449
35484
|
}
|
|
35450
35485
|
getMaterialType() {
|
|
35451
35486
|
return SC;
|
|
@@ -35463,23 +35498,23 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35463
35498
|
}
|
|
35464
35499
|
return Promise.all(r);
|
|
35465
35500
|
}
|
|
35466
|
-
},
|
|
35501
|
+
}, BE = class {
|
|
35467
35502
|
constructor(e) {
|
|
35468
|
-
this.parser = e, this.name =
|
|
35503
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_EMISSIVE_STRENGTH;
|
|
35469
35504
|
}
|
|
35470
35505
|
extendMaterialParams(e, t) {
|
|
35471
|
-
let n =
|
|
35506
|
+
let n = wE(this.parser, e, this.name);
|
|
35472
35507
|
return n === null || n.emissiveStrength !== void 0 && (t.emissiveIntensity = n.emissiveStrength), Promise.resolve();
|
|
35473
35508
|
}
|
|
35474
|
-
},
|
|
35509
|
+
}, VE = class {
|
|
35475
35510
|
constructor(e) {
|
|
35476
|
-
this.parser = e, this.name =
|
|
35511
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_CLEARCOAT;
|
|
35477
35512
|
}
|
|
35478
35513
|
getMaterialType(e) {
|
|
35479
|
-
return
|
|
35514
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35480
35515
|
}
|
|
35481
35516
|
extendMaterialParams(e, t) {
|
|
35482
|
-
let n =
|
|
35517
|
+
let n = wE(this.parser, e, this.name);
|
|
35483
35518
|
if (n === null) return Promise.resolve();
|
|
35484
35519
|
let r = [];
|
|
35485
35520
|
if (n.clearcoatFactor !== void 0 && (t.clearcoat = n.clearcoatFactor), n.clearcoatTexture !== void 0 && r.push(this.parser.assignTexture(t, "clearcoatMap", n.clearcoatTexture)), n.clearcoatRoughnessFactor !== void 0 && (t.clearcoatRoughness = n.clearcoatRoughnessFactor), n.clearcoatRoughnessTexture !== void 0 && r.push(this.parser.assignTexture(t, "clearcoatRoughnessMap", n.clearcoatRoughnessTexture)), n.clearcoatNormalTexture !== void 0 && (r.push(this.parser.assignTexture(t, "clearcoatNormalMap", n.clearcoatNormalTexture)), n.clearcoatNormalTexture.scale !== void 0)) {
|
|
@@ -35488,39 +35523,39 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35488
35523
|
}
|
|
35489
35524
|
return Promise.all(r);
|
|
35490
35525
|
}
|
|
35491
|
-
},
|
|
35526
|
+
}, HE = class {
|
|
35492
35527
|
constructor(e) {
|
|
35493
|
-
this.parser = e, this.name =
|
|
35528
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_DISPERSION;
|
|
35494
35529
|
}
|
|
35495
35530
|
getMaterialType(e) {
|
|
35496
|
-
return
|
|
35531
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35497
35532
|
}
|
|
35498
35533
|
extendMaterialParams(e, t) {
|
|
35499
|
-
let n =
|
|
35534
|
+
let n = wE(this.parser, e, this.name);
|
|
35500
35535
|
return n === null || (t.dispersion = n.dispersion === void 0 ? 0 : n.dispersion), Promise.resolve();
|
|
35501
35536
|
}
|
|
35502
|
-
},
|
|
35537
|
+
}, UE = class {
|
|
35503
35538
|
constructor(e) {
|
|
35504
|
-
this.parser = e, this.name =
|
|
35539
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_IRIDESCENCE;
|
|
35505
35540
|
}
|
|
35506
35541
|
getMaterialType(e) {
|
|
35507
|
-
return
|
|
35542
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35508
35543
|
}
|
|
35509
35544
|
extendMaterialParams(e, t) {
|
|
35510
|
-
let n =
|
|
35545
|
+
let n = wE(this.parser, e, this.name);
|
|
35511
35546
|
if (n === null) return Promise.resolve();
|
|
35512
35547
|
let r = [];
|
|
35513
35548
|
return n.iridescenceFactor !== void 0 && (t.iridescence = n.iridescenceFactor), n.iridescenceTexture !== void 0 && r.push(this.parser.assignTexture(t, "iridescenceMap", n.iridescenceTexture)), n.iridescenceIor !== void 0 && (t.iridescenceIOR = n.iridescenceIor), t.iridescenceThicknessRange === void 0 && (t.iridescenceThicknessRange = [100, 400]), n.iridescenceThicknessMinimum !== void 0 && (t.iridescenceThicknessRange[0] = n.iridescenceThicknessMinimum), n.iridescenceThicknessMaximum !== void 0 && (t.iridescenceThicknessRange[1] = n.iridescenceThicknessMaximum), n.iridescenceThicknessTexture !== void 0 && r.push(this.parser.assignTexture(t, "iridescenceThicknessMap", n.iridescenceThicknessTexture)), Promise.all(r);
|
|
35514
35549
|
}
|
|
35515
|
-
},
|
|
35550
|
+
}, WE = class {
|
|
35516
35551
|
constructor(e) {
|
|
35517
|
-
this.parser = e, this.name =
|
|
35552
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_SHEEN;
|
|
35518
35553
|
}
|
|
35519
35554
|
getMaterialType(e) {
|
|
35520
|
-
return
|
|
35555
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35521
35556
|
}
|
|
35522
35557
|
extendMaterialParams(e, t) {
|
|
35523
|
-
let n =
|
|
35558
|
+
let n = wE(this.parser, e, this.name);
|
|
35524
35559
|
if (n === null) return Promise.resolve();
|
|
35525
35560
|
let r = [];
|
|
35526
35561
|
if (t.sheenColor = new $x(0, 0, 0), t.sheenRoughness = 0, t.sheen = 1, n.sheenColorFactor !== void 0) {
|
|
@@ -35529,28 +35564,28 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35529
35564
|
}
|
|
35530
35565
|
return n.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = n.sheenRoughnessFactor), n.sheenColorTexture !== void 0 && r.push(this.parser.assignTexture(t, "sheenColorMap", n.sheenColorTexture, Ub)), n.sheenRoughnessTexture !== void 0 && r.push(this.parser.assignTexture(t, "sheenRoughnessMap", n.sheenRoughnessTexture)), Promise.all(r);
|
|
35531
35566
|
}
|
|
35532
|
-
},
|
|
35567
|
+
}, GE = class {
|
|
35533
35568
|
constructor(e) {
|
|
35534
|
-
this.parser = e, this.name =
|
|
35569
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_TRANSMISSION;
|
|
35535
35570
|
}
|
|
35536
35571
|
getMaterialType(e) {
|
|
35537
|
-
return
|
|
35572
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35538
35573
|
}
|
|
35539
35574
|
extendMaterialParams(e, t) {
|
|
35540
|
-
let n =
|
|
35575
|
+
let n = wE(this.parser, e, this.name);
|
|
35541
35576
|
if (n === null) return Promise.resolve();
|
|
35542
35577
|
let r = [];
|
|
35543
35578
|
return n.transmissionFactor !== void 0 && (t.transmission = n.transmissionFactor), n.transmissionTexture !== void 0 && r.push(this.parser.assignTexture(t, "transmissionMap", n.transmissionTexture)), Promise.all(r);
|
|
35544
35579
|
}
|
|
35545
|
-
},
|
|
35580
|
+
}, KE = class {
|
|
35546
35581
|
constructor(e) {
|
|
35547
|
-
this.parser = e, this.name =
|
|
35582
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_VOLUME;
|
|
35548
35583
|
}
|
|
35549
35584
|
getMaterialType(e) {
|
|
35550
|
-
return
|
|
35585
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35551
35586
|
}
|
|
35552
35587
|
extendMaterialParams(e, t) {
|
|
35553
|
-
let n =
|
|
35588
|
+
let n = wE(this.parser, e, this.name);
|
|
35554
35589
|
if (n === null) return Promise.resolve();
|
|
35555
35590
|
let r = [];
|
|
35556
35591
|
t.thickness = n.thicknessFactor === void 0 ? 0 : n.thicknessFactor, n.thicknessTexture !== void 0 && r.push(this.parser.assignTexture(t, "thicknessMap", n.thicknessTexture)), t.attenuationDistance = n.attenuationDistance || Infinity;
|
|
@@ -35561,26 +35596,26 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35561
35596
|
];
|
|
35562
35597
|
return t.attenuationColor = new $x().setRGB(i[0], i[1], i[2], Wb), Promise.all(r);
|
|
35563
35598
|
}
|
|
35564
|
-
},
|
|
35599
|
+
}, qE = class {
|
|
35565
35600
|
constructor(e) {
|
|
35566
|
-
this.parser = e, this.name =
|
|
35601
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_IOR;
|
|
35567
35602
|
}
|
|
35568
35603
|
getMaterialType(e) {
|
|
35569
|
-
return
|
|
35604
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35570
35605
|
}
|
|
35571
35606
|
extendMaterialParams(e, t) {
|
|
35572
|
-
let n =
|
|
35607
|
+
let n = wE(this.parser, e, this.name);
|
|
35573
35608
|
return n === null ? Promise.resolve() : (t.ior = n.ior === void 0 ? 1.5 : n.ior, t.ior === 0 && (t.ior = 1e3), Promise.resolve());
|
|
35574
35609
|
}
|
|
35575
|
-
},
|
|
35610
|
+
}, JE = class {
|
|
35576
35611
|
constructor(e) {
|
|
35577
|
-
this.parser = e, this.name =
|
|
35612
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_SPECULAR;
|
|
35578
35613
|
}
|
|
35579
35614
|
getMaterialType(e) {
|
|
35580
|
-
return
|
|
35615
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35581
35616
|
}
|
|
35582
35617
|
extendMaterialParams(e, t) {
|
|
35583
|
-
let n =
|
|
35618
|
+
let n = wE(this.parser, e, this.name);
|
|
35584
35619
|
if (n === null) return Promise.resolve();
|
|
35585
35620
|
let r = [];
|
|
35586
35621
|
t.specularIntensity = n.specularFactor === void 0 ? 1 : n.specularFactor, n.specularTexture !== void 0 && r.push(this.parser.assignTexture(t, "specularIntensityMap", n.specularTexture));
|
|
@@ -35591,35 +35626,35 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35591
35626
|
];
|
|
35592
35627
|
return t.specularColor = new $x().setRGB(i[0], i[1], i[2], Wb), n.specularColorTexture !== void 0 && r.push(this.parser.assignTexture(t, "specularColorMap", n.specularColorTexture, Ub)), Promise.all(r);
|
|
35593
35628
|
}
|
|
35594
|
-
},
|
|
35629
|
+
}, YE = class {
|
|
35595
35630
|
constructor(e) {
|
|
35596
|
-
this.parser = e, this.name =
|
|
35631
|
+
this.parser = e, this.name = LE.EXT_MATERIALS_BUMP;
|
|
35597
35632
|
}
|
|
35598
35633
|
getMaterialType(e) {
|
|
35599
|
-
return
|
|
35634
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35600
35635
|
}
|
|
35601
35636
|
extendMaterialParams(e, t) {
|
|
35602
|
-
let n =
|
|
35637
|
+
let n = wE(this.parser, e, this.name);
|
|
35603
35638
|
if (n === null) return Promise.resolve();
|
|
35604
35639
|
let r = [];
|
|
35605
35640
|
return t.bumpScale = n.bumpFactor === void 0 ? 1 : n.bumpFactor, n.bumpTexture !== void 0 && r.push(this.parser.assignTexture(t, "bumpMap", n.bumpTexture)), Promise.all(r);
|
|
35606
35641
|
}
|
|
35607
|
-
},
|
|
35642
|
+
}, XE = class {
|
|
35608
35643
|
constructor(e) {
|
|
35609
|
-
this.parser = e, this.name =
|
|
35644
|
+
this.parser = e, this.name = LE.KHR_MATERIALS_ANISOTROPY;
|
|
35610
35645
|
}
|
|
35611
35646
|
getMaterialType(e) {
|
|
35612
|
-
return
|
|
35647
|
+
return wE(this.parser, e, this.name) === null ? null : Pw;
|
|
35613
35648
|
}
|
|
35614
35649
|
extendMaterialParams(e, t) {
|
|
35615
|
-
let n =
|
|
35650
|
+
let n = wE(this.parser, e, this.name);
|
|
35616
35651
|
if (n === null) return Promise.resolve();
|
|
35617
35652
|
let r = [];
|
|
35618
35653
|
return n.anisotropyStrength !== void 0 && (t.anisotropy = n.anisotropyStrength), n.anisotropyRotation !== void 0 && (t.anisotropyRotation = n.anisotropyRotation), n.anisotropyTexture !== void 0 && r.push(this.parser.assignTexture(t, "anisotropyMap", n.anisotropyTexture)), Promise.all(r);
|
|
35619
35654
|
}
|
|
35620
|
-
},
|
|
35655
|
+
}, ZE = class {
|
|
35621
35656
|
constructor(e) {
|
|
35622
|
-
this.parser = e, this.name =
|
|
35657
|
+
this.parser = e, this.name = LE.KHR_TEXTURE_BASISU;
|
|
35623
35658
|
}
|
|
35624
35659
|
loadTexture(e) {
|
|
35625
35660
|
let t = this.parser, n = t.json, r = n.textures[e];
|
|
@@ -35631,9 +35666,9 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35631
35666
|
}
|
|
35632
35667
|
return t.loadTextureImage(e, i.source, a);
|
|
35633
35668
|
}
|
|
35634
|
-
},
|
|
35669
|
+
}, QE = class {
|
|
35635
35670
|
constructor(e) {
|
|
35636
|
-
this.parser = e, this.name =
|
|
35671
|
+
this.parser = e, this.name = LE.EXT_TEXTURE_WEBP;
|
|
35637
35672
|
}
|
|
35638
35673
|
loadTexture(e) {
|
|
35639
35674
|
let t = this.name, n = this.parser, r = n.json, i = r.textures[e];
|
|
@@ -35645,9 +35680,9 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35645
35680
|
}
|
|
35646
35681
|
return n.loadTextureImage(e, a.source, s);
|
|
35647
35682
|
}
|
|
35648
|
-
},
|
|
35683
|
+
}, $E = class {
|
|
35649
35684
|
constructor(e) {
|
|
35650
|
-
this.parser = e, this.name =
|
|
35685
|
+
this.parser = e, this.name = LE.EXT_TEXTURE_AVIF;
|
|
35651
35686
|
}
|
|
35652
35687
|
loadTexture(e) {
|
|
35653
35688
|
let t = this.name, n = this.parser, r = n.json, i = r.textures[e];
|
|
@@ -35659,7 +35694,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35659
35694
|
}
|
|
35660
35695
|
return n.loadTextureImage(e, a.source, s);
|
|
35661
35696
|
}
|
|
35662
|
-
},
|
|
35697
|
+
}, eD = class {
|
|
35663
35698
|
constructor(e, t) {
|
|
35664
35699
|
this.name = t, this.parser = e;
|
|
35665
35700
|
}
|
|
@@ -35683,15 +35718,15 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35683
35718
|
}
|
|
35684
35719
|
return null;
|
|
35685
35720
|
}
|
|
35686
|
-
},
|
|
35721
|
+
}, tD = class {
|
|
35687
35722
|
constructor(e) {
|
|
35688
|
-
this.name =
|
|
35723
|
+
this.name = LE.EXT_MESH_GPU_INSTANCING, this.parser = e;
|
|
35689
35724
|
}
|
|
35690
35725
|
createNodeMesh(e) {
|
|
35691
35726
|
let t = this.parser.json, n = t.nodes[e];
|
|
35692
35727
|
if (!n.extensions || !n.extensions[this.name] || n.mesh === void 0) return null;
|
|
35693
35728
|
let r = t.meshes[n.mesh];
|
|
35694
|
-
for (let e of r.primitives) if (e.mode !==
|
|
35729
|
+
for (let e of r.primitives) if (e.mode !== fD.TRIANGLES && e.mode !== fD.TRIANGLE_STRIP && e.mode !== fD.TRIANGLE_FAN && e.mode !== void 0) return null;
|
|
35695
35730
|
let i = n.extensions[this.name].attributes, a = [], o = {};
|
|
35696
35731
|
for (let e in i) a.push(this.parser.getDependency("accessor", i[e]).then((t) => (o[e] = t, o[e])));
|
|
35697
35732
|
return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(e)), Promise.all(a).then((e) => {
|
|
@@ -35708,51 +35743,51 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35708
35743
|
return t.isGroup ? (t.clear(), t.add(...i), t) : i[0];
|
|
35709
35744
|
}));
|
|
35710
35745
|
}
|
|
35711
|
-
},
|
|
35746
|
+
}, nD = "glTF", rD = 12, iD = {
|
|
35712
35747
|
JSON: 1313821514,
|
|
35713
35748
|
BIN: 5130562
|
|
35714
|
-
},
|
|
35749
|
+
}, aD = class {
|
|
35715
35750
|
constructor(e) {
|
|
35716
|
-
this.name =
|
|
35717
|
-
let t = new DataView(e, 0,
|
|
35751
|
+
this.name = LE.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
35752
|
+
let t = new DataView(e, 0, rD), n = new TextDecoder();
|
|
35718
35753
|
if (this.header = {
|
|
35719
35754
|
magic: n.decode(new Uint8Array(e.slice(0, 4))),
|
|
35720
35755
|
version: t.getUint32(4, !0),
|
|
35721
35756
|
length: t.getUint32(8, !0)
|
|
35722
|
-
}, this.header.magic !==
|
|
35757
|
+
}, this.header.magic !== nD) throw Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
35723
35758
|
if (this.header.version < 2) throw Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
35724
|
-
let r = this.header.length -
|
|
35759
|
+
let r = this.header.length - rD, i = new DataView(e, rD), a = 0;
|
|
35725
35760
|
for (; a < r;) {
|
|
35726
35761
|
let t = i.getUint32(a, !0);
|
|
35727
35762
|
a += 4;
|
|
35728
35763
|
let r = i.getUint32(a, !0);
|
|
35729
|
-
if (a += 4, r ===
|
|
35730
|
-
let r = new Uint8Array(e,
|
|
35764
|
+
if (a += 4, r === iD.JSON) {
|
|
35765
|
+
let r = new Uint8Array(e, rD + a, t);
|
|
35731
35766
|
this.content = n.decode(r);
|
|
35732
|
-
} else if (r ===
|
|
35733
|
-
let n =
|
|
35767
|
+
} else if (r === iD.BIN) {
|
|
35768
|
+
let n = rD + a;
|
|
35734
35769
|
this.body = e.slice(n, n + t);
|
|
35735
35770
|
}
|
|
35736
35771
|
a += t;
|
|
35737
35772
|
}
|
|
35738
35773
|
if (this.content === null) throw Error("THREE.GLTFLoader: JSON content not found.");
|
|
35739
35774
|
}
|
|
35740
|
-
},
|
|
35775
|
+
}, oD = class {
|
|
35741
35776
|
constructor(e, t) {
|
|
35742
35777
|
if (!t) throw Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
|
|
35743
|
-
this.name =
|
|
35778
|
+
this.name = LE.KHR_DRACO_MESH_COMPRESSION, this.json = e, this.dracoLoader = t, this.dracoLoader.preload();
|
|
35744
35779
|
}
|
|
35745
35780
|
decodePrimitive(e, t) {
|
|
35746
35781
|
let n = this.json, r = this.dracoLoader, i = e.extensions[this.name].bufferView, a = e.extensions[this.name].attributes, o = {}, s = {}, c = {};
|
|
35747
35782
|
for (let e in a) {
|
|
35748
|
-
let t =
|
|
35783
|
+
let t = _D[e] || e.toLowerCase();
|
|
35749
35784
|
o[t] = a[e];
|
|
35750
35785
|
}
|
|
35751
35786
|
for (let t in e.attributes) {
|
|
35752
|
-
let r =
|
|
35787
|
+
let r = _D[t] || t.toLowerCase();
|
|
35753
35788
|
if (a[t] !== void 0) {
|
|
35754
35789
|
let i = n.accessors[e.attributes[t]];
|
|
35755
|
-
c[r] =
|
|
35790
|
+
c[r] = pD[i.componentType].name, s[r] = i.normalized === !0;
|
|
35756
35791
|
}
|
|
35757
35792
|
}
|
|
35758
35793
|
return t.getDependency("bufferView", i).then(function(e) {
|
|
@@ -35767,18 +35802,18 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35767
35802
|
});
|
|
35768
35803
|
});
|
|
35769
35804
|
}
|
|
35770
|
-
},
|
|
35805
|
+
}, sD = class {
|
|
35771
35806
|
constructor() {
|
|
35772
|
-
this.name =
|
|
35807
|
+
this.name = LE.KHR_TEXTURE_TRANSFORM;
|
|
35773
35808
|
}
|
|
35774
35809
|
extendTexture(e, t) {
|
|
35775
35810
|
return (t.texCoord === void 0 || t.texCoord === e.channel) && t.offset === void 0 && t.rotation === void 0 && t.scale === void 0 ? e : (e = e.clone(), t.texCoord !== void 0 && (e.channel = t.texCoord), t.offset !== void 0 && e.offset.fromArray(t.offset), t.rotation !== void 0 && (e.rotation = t.rotation), t.scale !== void 0 && e.repeat.fromArray(t.scale), e.needsUpdate = !0, e);
|
|
35776
35811
|
}
|
|
35777
|
-
},
|
|
35812
|
+
}, cD = class {
|
|
35778
35813
|
constructor() {
|
|
35779
|
-
this.name =
|
|
35814
|
+
this.name = LE.KHR_MESH_QUANTIZATION;
|
|
35780
35815
|
}
|
|
35781
|
-
},
|
|
35816
|
+
}, lD = class extends Fw {
|
|
35782
35817
|
constructor(e, t, n, r) {
|
|
35783
35818
|
super(e, t, n, r);
|
|
35784
35819
|
}
|
|
@@ -35795,12 +35830,12 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35795
35830
|
}
|
|
35796
35831
|
return i;
|
|
35797
35832
|
}
|
|
35798
|
-
},
|
|
35833
|
+
}, uD = new ax(), dD = class extends lD {
|
|
35799
35834
|
interpolate_(e, t, n, r) {
|
|
35800
35835
|
let i = super.interpolate_(e, t, n, r);
|
|
35801
|
-
return
|
|
35836
|
+
return uD.fromArray(i).normalize().toArray(i), i;
|
|
35802
35837
|
}
|
|
35803
|
-
},
|
|
35838
|
+
}, fD = {
|
|
35804
35839
|
FLOAT: 5126,
|
|
35805
35840
|
FLOAT_MAT3: 35675,
|
|
35806
35841
|
FLOAT_MAT4: 35676,
|
|
@@ -35819,25 +35854,25 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35819
35854
|
TRIANGLE_FAN: 6,
|
|
35820
35855
|
UNSIGNED_BYTE: 5121,
|
|
35821
35856
|
UNSIGNED_SHORT: 5123
|
|
35822
|
-
},
|
|
35857
|
+
}, pD = {
|
|
35823
35858
|
5120: Int8Array,
|
|
35824
35859
|
5121: Uint8Array,
|
|
35825
35860
|
5122: Int16Array,
|
|
35826
35861
|
5123: Uint16Array,
|
|
35827
35862
|
5125: Uint32Array,
|
|
35828
35863
|
5126: Float32Array
|
|
35829
|
-
},
|
|
35864
|
+
}, mD = {
|
|
35830
35865
|
9728: Tb,
|
|
35831
35866
|
9729: Ob,
|
|
35832
35867
|
9984: Eb,
|
|
35833
35868
|
9985: kb,
|
|
35834
35869
|
9986: Db,
|
|
35835
35870
|
9987: Ab
|
|
35836
|
-
},
|
|
35871
|
+
}, hD = {
|
|
35837
35872
|
33071: Cb,
|
|
35838
35873
|
33648: wb,
|
|
35839
35874
|
10497: Sb
|
|
35840
|
-
},
|
|
35875
|
+
}, gD = {
|
|
35841
35876
|
SCALAR: 1,
|
|
35842
35877
|
VEC2: 2,
|
|
35843
35878
|
VEC3: 3,
|
|
@@ -35845,7 +35880,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35845
35880
|
MAT2: 4,
|
|
35846
35881
|
MAT3: 9,
|
|
35847
35882
|
MAT4: 16
|
|
35848
|
-
},
|
|
35883
|
+
}, _D = {
|
|
35849
35884
|
POSITION: "position",
|
|
35850
35885
|
NORMAL: "normal",
|
|
35851
35886
|
TANGENT: "tangent",
|
|
@@ -35856,22 +35891,22 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35856
35891
|
COLOR_0: "color",
|
|
35857
35892
|
WEIGHTS_0: "skinWeight",
|
|
35858
35893
|
JOINTS_0: "skinIndex"
|
|
35859
|
-
},
|
|
35894
|
+
}, vD = {
|
|
35860
35895
|
scale: "scale",
|
|
35861
35896
|
translation: "position",
|
|
35862
35897
|
rotation: "quaternion",
|
|
35863
35898
|
weights: "morphTargetInfluences"
|
|
35864
|
-
},
|
|
35899
|
+
}, yD = {
|
|
35865
35900
|
CUBICSPLINE: void 0,
|
|
35866
35901
|
LINEAR: Ib,
|
|
35867
35902
|
STEP: Fb
|
|
35868
|
-
},
|
|
35903
|
+
}, bD = {
|
|
35869
35904
|
OPAQUE: "OPAQUE",
|
|
35870
35905
|
MASK: "MASK",
|
|
35871
35906
|
BLEND: "BLEND"
|
|
35872
|
-
},
|
|
35907
|
+
}, xD = new xx(), SD = class {
|
|
35873
35908
|
constructor(e = {}, t = {}) {
|
|
35874
|
-
this.json = e, this.extensions = {}, this.plugins = {}, this.options = t, this.cache = new
|
|
35909
|
+
this.json = e, this.extensions = {}, this.plugins = {}, this.options = t, this.cache = new CE(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = {
|
|
35875
35910
|
refs: {},
|
|
35876
35911
|
uses: {}
|
|
35877
35912
|
}, this.cameraCache = {
|
|
@@ -35888,7 +35923,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35888
35923
|
let t = e.match(/Version\/(\d+)/);
|
|
35889
35924
|
r = n && t ? parseInt(t[1], 10) : -1, i = e.indexOf("Firefox") > -1, a = i ? e.match(/Firefox\/([0-9]+)\./)[1] : -1;
|
|
35890
35925
|
}
|
|
35891
|
-
this.textureLoader = typeof createImageBitmap > "u" || n && r < 17 || i && a < 98 ? new
|
|
35926
|
+
this.textureLoader = typeof createImageBitmap > "u" || n && r < 17 || i && a < 98 ? new iT(this.options.manager) : new DT(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new tT(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
|
|
35892
35927
|
}
|
|
35893
35928
|
setExtensions(e) {
|
|
35894
35929
|
this.extensions = e;
|
|
@@ -35918,7 +35953,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
35918
35953
|
parser: n,
|
|
35919
35954
|
userData: {}
|
|
35920
35955
|
};
|
|
35921
|
-
return
|
|
35956
|
+
return EE(i, a, r), DE(a, r), Promise.all(n._invokeAll(function(e) {
|
|
35922
35957
|
return e.afterRoot && e.afterRoot(a);
|
|
35923
35958
|
})).then(function() {
|
|
35924
35959
|
for (let e of a.scenes) e.updateMatrixWorld();
|
|
@@ -36038,10 +36073,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36038
36073
|
loadBuffer(e) {
|
|
36039
36074
|
let t = this.json.buffers[e], n = this.fileLoader;
|
|
36040
36075
|
if (t.type && t.type !== "arraybuffer") throw Error("THREE.GLTFLoader: " + t.type + " buffer type is not supported.");
|
|
36041
|
-
if (t.uri === void 0 && e === 0) return Promise.resolve(this.extensions[
|
|
36076
|
+
if (t.uri === void 0 && e === 0) return Promise.resolve(this.extensions[LE.KHR_BINARY_GLTF].body);
|
|
36042
36077
|
let r = this.options;
|
|
36043
36078
|
return new Promise(function(e, i) {
|
|
36044
|
-
n.load(
|
|
36079
|
+
n.load(TT.resolveURL(t.uri, r.path), e, void 0, function() {
|
|
36045
36080
|
i(/* @__PURE__ */ Error("THREE.GLTFLoader: Failed to load buffer \"" + t.uri + "\"."));
|
|
36046
36081
|
});
|
|
36047
36082
|
});
|
|
@@ -36056,18 +36091,18 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36056
36091
|
loadAccessor(e) {
|
|
36057
36092
|
let t = this, n = this.json, r = this.json.accessors[e];
|
|
36058
36093
|
if (r.bufferView === void 0 && r.sparse === void 0) {
|
|
36059
|
-
let e =
|
|
36094
|
+
let e = gD[r.type], t = pD[r.componentType], n = r.normalized === !0, i = new t(r.count * e);
|
|
36060
36095
|
return Promise.resolve(new MS(i, e, n));
|
|
36061
36096
|
}
|
|
36062
36097
|
let i = [];
|
|
36063
36098
|
return r.bufferView === void 0 ? i.push(null) : i.push(this.getDependency("bufferView", r.bufferView)), r.sparse !== void 0 && (i.push(this.getDependency("bufferView", r.sparse.indices.bufferView)), i.push(this.getDependency("bufferView", r.sparse.values.bufferView))), Promise.all(i).then(function(e) {
|
|
36064
|
-
let i = e[0], a =
|
|
36099
|
+
let i = e[0], a = gD[r.type], o = pD[r.componentType], s = o.BYTES_PER_ELEMENT, c = s * a, l = r.byteOffset || 0, u = r.bufferView === void 0 ? void 0 : n.bufferViews[r.bufferView].byteStride, d = r.normalized === !0, f, p;
|
|
36065
36100
|
if (u && u !== c) {
|
|
36066
36101
|
let e = Math.floor(l / u), n = "InterleavedBuffer:" + r.bufferView + ":" + r.componentType + ":" + e + ":" + r.count, c = t.cache.get(n);
|
|
36067
36102
|
c || (f = new o(i, e * u, r.count * u / s), c = new JS(f, u / s), t.cache.add(n, c)), p = new XS(c, a, l % u / s, d);
|
|
36068
36103
|
} else f = i === null ? new o(r.count * a) : new o(i, l, r.count * a), p = new MS(f, a, d);
|
|
36069
36104
|
if (r.sparse !== void 0) {
|
|
36070
|
-
let t =
|
|
36105
|
+
let t = gD.SCALAR, n = pD[r.sparse.indices.componentType], s = r.sparse.indices.byteOffset || 0, c = r.sparse.values.byteOffset || 0, l = new n(e[1], s, r.sparse.count * t), u = new o(e[2], c, r.sparse.count * a);
|
|
36071
36106
|
i !== null && (p = new MS(p.array.slice(), p.itemSize, p.normalized)), p.normalized = !1;
|
|
36072
36107
|
for (let e = 0, t = l.length; e < t; e++) {
|
|
36073
36108
|
let t = l[e];
|
|
@@ -36092,7 +36127,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36092
36127
|
let c = this.loadImageSource(t, n).then(function(t) {
|
|
36093
36128
|
t.flipY = !1, t.name = a.name || o.name || "", t.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (t.name = o.uri);
|
|
36094
36129
|
let n = (i.samplers || {})[a.sampler] || {};
|
|
36095
|
-
return t.magFilter =
|
|
36130
|
+
return t.magFilter = mD[n.magFilter] || 1006, t.minFilter = mD[n.minFilter] || 1008, t.wrapS = hD[n.wrapS] || 1e3, t.wrapT = hD[n.wrapT] || 1e3, t.generateMipmaps = !t.isCompressedTexture && t.minFilter !== 1003 && t.minFilter !== 1006, r.associations.set(t, { textures: e }), t;
|
|
36096
36131
|
}).catch(function() {
|
|
36097
36132
|
return null;
|
|
36098
36133
|
});
|
|
@@ -36114,10 +36149,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36114
36149
|
t.isImageBitmapLoader === !0 && (a = function(e) {
|
|
36115
36150
|
let t = new yx(e);
|
|
36116
36151
|
t.needsUpdate = !0, n(t);
|
|
36117
|
-
}), t.load(
|
|
36152
|
+
}), t.load(TT.resolveURL(e, i.path), a, void 0, r);
|
|
36118
36153
|
});
|
|
36119
36154
|
}).then(function(e) {
|
|
36120
|
-
return c === !0 && o.revokeObjectURL(s),
|
|
36155
|
+
return c === !0 && o.revokeObjectURL(s), DE(e, a), e.userData.mimeType = a.mimeType || NE(a.uri), e;
|
|
36121
36156
|
}).catch(function(e) {
|
|
36122
36157
|
throw console.error("THREE.GLTFLoader: Couldn't load texture", s), e;
|
|
36123
36158
|
});
|
|
@@ -36127,11 +36162,11 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36127
36162
|
let i = this;
|
|
36128
36163
|
return this.getDependency("texture", n.index).then(function(a) {
|
|
36129
36164
|
if (!a) return null;
|
|
36130
|
-
if (n.texCoord !== void 0 && n.texCoord > 0 && (a = a.clone(), a.channel = n.texCoord), i.extensions[
|
|
36131
|
-
let e = n.extensions === void 0 ? void 0 : n.extensions[
|
|
36165
|
+
if (n.texCoord !== void 0 && n.texCoord > 0 && (a = a.clone(), a.channel = n.texCoord), i.extensions[LE.KHR_TEXTURE_TRANSFORM]) {
|
|
36166
|
+
let e = n.extensions === void 0 ? void 0 : n.extensions[LE.KHR_TEXTURE_TRANSFORM];
|
|
36132
36167
|
if (e) {
|
|
36133
36168
|
let t = i.associations.get(a);
|
|
36134
|
-
a = i.extensions[
|
|
36169
|
+
a = i.extensions[LE.KHR_TEXTURE_TRANSFORM].extendTexture(a, e), i.associations.set(a, t);
|
|
36135
36170
|
}
|
|
36136
36171
|
}
|
|
36137
36172
|
return r !== void 0 && (a.colorSpace = r), e[t] = a, a;
|
|
@@ -36155,12 +36190,12 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36155
36190
|
e.material = n;
|
|
36156
36191
|
}
|
|
36157
36192
|
getMaterialType() {
|
|
36158
|
-
return
|
|
36193
|
+
return Nw;
|
|
36159
36194
|
}
|
|
36160
36195
|
loadMaterial(e) {
|
|
36161
36196
|
let t = this, n = this.json, r = this.extensions, i = n.materials[e], a, o = {}, s = i.extensions || {}, c = [];
|
|
36162
|
-
if (s[
|
|
36163
|
-
let e = r[
|
|
36197
|
+
if (s[LE.KHR_MATERIALS_UNLIT]) {
|
|
36198
|
+
let e = r[LE.KHR_MATERIALS_UNLIT];
|
|
36164
36199
|
a = e.getMaterialType(), c.push(e.extendParams(o, i, t));
|
|
36165
36200
|
} else {
|
|
36166
36201
|
let n = i.pbrMetallicRoughness || {};
|
|
@@ -36175,8 +36210,8 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36175
36210
|
})));
|
|
36176
36211
|
}
|
|
36177
36212
|
i.doubleSided === !0 && (o.side = 2);
|
|
36178
|
-
let l = i.alphaMode ||
|
|
36179
|
-
if (l ===
|
|
36213
|
+
let l = i.alphaMode || bD.OPAQUE;
|
|
36214
|
+
if (l === bD.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, l === bD.MASK && (o.alphaTest = i.alphaCutoff === void 0 ? .5 : i.alphaCutoff)), i.normalTexture !== void 0 && a !== SC && (c.push(t.assignTexture(o, "normalMap", i.normalTexture)), o.normalScale = new ix(1, 1), i.normalTexture.scale !== void 0)) {
|
|
36180
36215
|
let e = i.normalTexture.scale;
|
|
36181
36216
|
o.normalScale.set(e, e);
|
|
36182
36217
|
}
|
|
@@ -36186,27 +36221,27 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36186
36221
|
}
|
|
36187
36222
|
return i.emissiveTexture !== void 0 && a !== SC && c.push(t.assignTexture(o, "emissiveMap", i.emissiveTexture, Ub)), Promise.all(c).then(function() {
|
|
36188
36223
|
let n = new a(o);
|
|
36189
|
-
return i.name && (n.name = i.name),
|
|
36224
|
+
return i.name && (n.name = i.name), DE(n, i), t.associations.set(n, { materials: e }), i.extensions && EE(r, n, i), n;
|
|
36190
36225
|
});
|
|
36191
36226
|
}
|
|
36192
36227
|
createUniqueName(e) {
|
|
36193
|
-
let t =
|
|
36228
|
+
let t = zT.sanitizeNodeName(e || "");
|
|
36194
36229
|
return t in this.nodeNamesUsed ? t + "_" + ++this.nodeNamesUsed[t] : (this.nodeNamesUsed[t] = 0, t);
|
|
36195
36230
|
}
|
|
36196
36231
|
loadGeometries(e) {
|
|
36197
36232
|
let t = this, n = this.extensions, r = this.primitiveCache;
|
|
36198
36233
|
function i(e) {
|
|
36199
|
-
return n[
|
|
36200
|
-
return
|
|
36234
|
+
return n[LE.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e, t).then(function(n) {
|
|
36235
|
+
return FE(n, e, t);
|
|
36201
36236
|
});
|
|
36202
36237
|
}
|
|
36203
36238
|
let a = [];
|
|
36204
36239
|
for (let n = 0, o = e.length; n < o; n++) {
|
|
36205
|
-
let o = e[n], s =
|
|
36240
|
+
let o = e[n], s = AE(o), c = r[s];
|
|
36206
36241
|
if (c) a.push(c.promise);
|
|
36207
36242
|
else {
|
|
36208
36243
|
let e;
|
|
36209
|
-
e = o.extensions && o.extensions[
|
|
36244
|
+
e = o.extensions && o.extensions[LE.KHR_DRACO_MESH_COMPRESSION] ? i(o) : FE(new qS(), o, t), r[s] = {
|
|
36210
36245
|
primitive: o,
|
|
36211
36246
|
promise: e
|
|
36212
36247
|
}, a.push(e);
|
|
@@ -36217,28 +36252,28 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36217
36252
|
loadMesh(e) {
|
|
36218
36253
|
let t = this, n = this.json, r = this.extensions, i = n.meshes[e], a = i.primitives, o = [];
|
|
36219
36254
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
36220
|
-
let t = a[e].material === void 0 ?
|
|
36255
|
+
let t = a[e].material === void 0 ? TE(this.cache) : this.getDependency("material", a[e].material);
|
|
36221
36256
|
o.push(t);
|
|
36222
36257
|
}
|
|
36223
36258
|
return o.push(t.loadGeometries(a)), Promise.all(o).then(function(n) {
|
|
36224
36259
|
let o = n.slice(0, n.length - 1), s = n[n.length - 1], c = [];
|
|
36225
36260
|
for (let n = 0, l = s.length; n < l; n++) {
|
|
36226
36261
|
let l = s[n], u = a[n], d, f = o[n];
|
|
36227
|
-
if (u.mode ===
|
|
36228
|
-
else if (u.mode ===
|
|
36229
|
-
else if (u.mode ===
|
|
36230
|
-
else if (u.mode ===
|
|
36231
|
-
else if (u.mode ===
|
|
36262
|
+
if (u.mode === fD.TRIANGLES || u.mode === fD.TRIANGLE_STRIP || u.mode === fD.TRIANGLE_FAN || u.mode === void 0) d = i.isSkinnedMesh === !0 ? new WC(l, f) : new PC(l, f), d.isSkinnedMesh === !0 && d.normalizeSkinWeights(), u.mode === fD.TRIANGLE_STRIP ? d.geometry = _E(d.geometry, 1) : u.mode === fD.TRIANGLE_FAN && (d.geometry = _E(d.geometry, 2));
|
|
36263
|
+
else if (u.mode === fD.LINES) d = new ww(l, f);
|
|
36264
|
+
else if (u.mode === fD.LINE_STRIP) d = new xw(l, f);
|
|
36265
|
+
else if (u.mode === fD.LINE_LOOP) d = new Tw(l, f);
|
|
36266
|
+
else if (u.mode === fD.POINTS) d = new jw(l, f);
|
|
36232
36267
|
else throw Error("THREE.GLTFLoader: Primitive mode unsupported: " + u.mode);
|
|
36233
|
-
Object.keys(d.geometry.morphAttributes).length > 0 &&
|
|
36268
|
+
Object.keys(d.geometry.morphAttributes).length > 0 && kE(d, i), d.name = t.createUniqueName(i.name || "mesh_" + e), DE(d, i), u.extensions && EE(r, d, u), t.assignFinalMaterial(d), c.push(d);
|
|
36234
36269
|
}
|
|
36235
36270
|
for (let n = 0, r = c.length; n < r; n++) t.associations.set(c[n], {
|
|
36236
36271
|
meshes: e,
|
|
36237
36272
|
primitives: n
|
|
36238
36273
|
});
|
|
36239
|
-
if (c.length === 1) return i.extensions &&
|
|
36274
|
+
if (c.length === 1) return i.extensions && EE(r, c[0], i), c[0];
|
|
36240
36275
|
let l = new Yx();
|
|
36241
|
-
i.extensions &&
|
|
36276
|
+
i.extensions && EE(r, l, i), t.associations.set(l, { meshes: e });
|
|
36242
36277
|
for (let e = 0, t = c.length; e < t; e++) l.add(c[e]);
|
|
36243
36278
|
return l;
|
|
36244
36279
|
});
|
|
@@ -36249,7 +36284,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36249
36284
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
36250
36285
|
return;
|
|
36251
36286
|
}
|
|
36252
|
-
return n.type === "perspective" ? t = new
|
|
36287
|
+
return n.type === "perspective" ? t = new _T(rx.radToDeg(r.yfov), r.aspectRatio || 1, r.znear || 1, r.zfar || 2e6) : n.type === "orthographic" && (t = new ST(-r.xmag, r.xmag, r.ymag, -r.ymag, r.znear, r.zfar)), n.name && (t.name = this.createUniqueName(n.name)), DE(t, n), Promise.resolve(t);
|
|
36253
36288
|
}
|
|
36254
36289
|
loadSkin(e) {
|
|
36255
36290
|
let t = this.json.skins[e], n = [];
|
|
@@ -36288,8 +36323,8 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36288
36323
|
let p = n._createAnimationTracks(r, i, u, d, f);
|
|
36289
36324
|
if (p) for (let e = 0; e < p.length; e++) l.push(p[e]);
|
|
36290
36325
|
}
|
|
36291
|
-
let u = new
|
|
36292
|
-
return
|
|
36326
|
+
let u = new Jw(i, void 0, l);
|
|
36327
|
+
return DE(u, r), u;
|
|
36293
36328
|
});
|
|
36294
36329
|
}
|
|
36295
36330
|
createNodeMesh(e) {
|
|
@@ -36312,7 +36347,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36312
36347
|
]).then(function(e) {
|
|
36313
36348
|
let t = e[0], n = e[1], r = e[2];
|
|
36314
36349
|
r !== null && t.traverse(function(e) {
|
|
36315
|
-
e.isSkinnedMesh && e.bind(r,
|
|
36350
|
+
e.isSkinnedMesh && e.bind(r, xD);
|
|
36316
36351
|
});
|
|
36317
36352
|
for (let e = 0, r = n.length; e < r; e++) t.add(n[e]);
|
|
36318
36353
|
if (t.userData.pivot !== void 0 && n.length > 0) {
|
|
@@ -36337,7 +36372,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36337
36372
|
}), this.nodeCache[e] = Promise.all(o).then(function(t) {
|
|
36338
36373
|
let o;
|
|
36339
36374
|
if (o = i.isBone === !0 ? new GC() : t.length > 1 ? new Yx() : t.length === 1 ? t[0] : new Jx(), o !== t[0]) for (let e = 0, n = t.length; e < n; e++) o.add(t[e]);
|
|
36340
|
-
if (i.name && (o.userData.name = i.name, o.name = a),
|
|
36375
|
+
if (i.name && (o.userData.name = i.name, o.name = a), DE(o, i), i.extensions && EE(n, o, i), i.matrix !== void 0) {
|
|
36341
36376
|
let e = new xx();
|
|
36342
36377
|
e.fromArray(i.matrix), o.applyMatrix4(e);
|
|
36343
36378
|
} else i.translation !== void 0 && o.position.fromArray(i.translation), i.rotation !== void 0 && o.quaternion.fromArray(i.rotation), i.scale !== void 0 && o.scale.fromArray(i.scale);
|
|
@@ -36351,13 +36386,13 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36351
36386
|
}
|
|
36352
36387
|
loadScene(e) {
|
|
36353
36388
|
let t = this.extensions, n = this.json.scenes[e], r = this, i = new Yx();
|
|
36354
|
-
n.name && (i.name = r.createUniqueName(n.name)),
|
|
36389
|
+
n.name && (i.name = r.createUniqueName(n.name)), DE(i, n), n.extensions && EE(t, i, n);
|
|
36355
36390
|
let a = n.nodes || [], o = [];
|
|
36356
36391
|
for (let e = 0, t = a.length; e < t; e++) o.push(r.getDependency("node", a[e]));
|
|
36357
36392
|
return Promise.all(o).then(function(e) {
|
|
36358
36393
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
36359
36394
|
let n = e[t];
|
|
36360
|
-
n.parent === null ? i.add(n) : i.add(
|
|
36395
|
+
n.parent === null ? i.add(n) : i.add(yE(n));
|
|
36361
36396
|
}
|
|
36362
36397
|
return r.associations = ((e) => {
|
|
36363
36398
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -36374,29 +36409,29 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36374
36409
|
function c(e) {
|
|
36375
36410
|
e.morphTargetInfluences && s.push(e.name ? e.name : e.uuid);
|
|
36376
36411
|
}
|
|
36377
|
-
|
|
36412
|
+
vD[i.path] === vD.weights ? (c(e), e.isGroup && e.children.forEach(c)) : s.push(o);
|
|
36378
36413
|
let l;
|
|
36379
|
-
switch (
|
|
36380
|
-
case
|
|
36381
|
-
l =
|
|
36414
|
+
switch (vD[i.path]) {
|
|
36415
|
+
case vD.weights:
|
|
36416
|
+
l = Uw;
|
|
36382
36417
|
break;
|
|
36383
|
-
case
|
|
36384
|
-
l =
|
|
36418
|
+
case vD.rotation:
|
|
36419
|
+
l = Gw;
|
|
36385
36420
|
break;
|
|
36386
|
-
case
|
|
36387
|
-
case
|
|
36388
|
-
l =
|
|
36421
|
+
case vD.translation:
|
|
36422
|
+
case vD.scale:
|
|
36423
|
+
l = qw;
|
|
36389
36424
|
break;
|
|
36390
36425
|
default: switch (n.itemSize) {
|
|
36391
36426
|
case 1:
|
|
36392
|
-
l =
|
|
36427
|
+
l = Uw;
|
|
36393
36428
|
break;
|
|
36394
|
-
default: l =
|
|
36429
|
+
default: l = qw;
|
|
36395
36430
|
}
|
|
36396
36431
|
}
|
|
36397
|
-
let u = r.interpolation === void 0 ? Ib :
|
|
36432
|
+
let u = r.interpolation === void 0 ? Ib : yD[r.interpolation], d = this._getArrayFromAccessor(n);
|
|
36398
36433
|
for (let e = 0, n = s.length; e < n; e++) {
|
|
36399
|
-
let n = new l(s[e] + "." +
|
|
36434
|
+
let n = new l(s[e] + "." + vD[i.path], t.array, d, u);
|
|
36400
36435
|
r.interpolation === "CUBICSPLINE" && this._createCubicSplineTrackInterpolant(n), a.push(n);
|
|
36401
36436
|
}
|
|
36402
36437
|
return a;
|
|
@@ -36404,7 +36439,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36404
36439
|
_getArrayFromAccessor(e) {
|
|
36405
36440
|
let t = e.array;
|
|
36406
36441
|
if (e.normalized) {
|
|
36407
|
-
let e =
|
|
36442
|
+
let e = ME(t.constructor), n = new Float32Array(t.length);
|
|
36408
36443
|
for (let r = 0, i = t.length; r < i; r++) n[r] = t[r] * e;
|
|
36409
36444
|
t = n;
|
|
36410
36445
|
}
|
|
@@ -36412,11 +36447,11 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
36412
36447
|
}
|
|
36413
36448
|
_createCubicSplineTrackInterpolant(e) {
|
|
36414
36449
|
e.createInterpolant = function(e) {
|
|
36415
|
-
return new (this instanceof
|
|
36450
|
+
return new (this instanceof Gw ? dD : lD)(this.times, this.values, this.getValueSize() / 3, e);
|
|
36416
36451
|
}, e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
|
|
36417
36452
|
}
|
|
36418
36453
|
};
|
|
36419
|
-
})),
|
|
36454
|
+
})), wD = /* @__PURE__ */ ze(((e) => {
|
|
36420
36455
|
e.deflate = je, e.deflateSync = Me, e.inflate = Fe, e.inflateSync = Ie, e.gzip = ze, e.compress = ze, e.gzipSync = Be, e.compressSync = Be, e.gunzip = Ue, e.gunzipSync = We, e.zlib = Ke, e.zlibSync = qe, e.unzlib = Xe, e.unzlibSync = Ze, e.gzip = ze, e.compress = ze, e.decompress = $e, e.decompressSync = et, e.strToU8 = ot, e.strFromU8 = st, e.zip = gt, e.zipSync = _t, e.unzip = bt, e.unzipSync = xt;
|
|
36421
36456
|
var t = {}, n = {};
|
|
36422
36457
|
n.default = (function(e, n, r, i, a) {
|
|
@@ -37902,9 +37937,9 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
37902
37937
|
}
|
|
37903
37938
|
return n;
|
|
37904
37939
|
}
|
|
37905
|
-
})),
|
|
37940
|
+
})), TD = /* @__PURE__ */ He((/* @__PURE__ */ ze(((e, t) => {
|
|
37906
37941
|
(function(n, r) {
|
|
37907
|
-
typeof e == "object" && typeof t < "u" ? t.exports = r(Ey(), (
|
|
37942
|
+
typeof e == "object" && typeof t < "u" ? t.exports = r(Ey(), (pE(), Ue(HT)), gE(), (CD(), Ue(SE)), wD()) : typeof define == "function" && define.amd ? define([
|
|
37908
37943
|
"three",
|
|
37909
37944
|
"three-spritetext",
|
|
37910
37945
|
"css-element-queries",
|
|
@@ -37925,7 +37960,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
37925
37960
|
e = f(e, 1), t = f(t, 1);
|
|
37926
37961
|
var p = {
|
|
37927
37962
|
name: "zincjs",
|
|
37928
|
-
version: "2.
|
|
37963
|
+
version: "2.4.0",
|
|
37929
37964
|
description: "ZincJS (Web-based-Zinc-Visualisation)",
|
|
37930
37965
|
type: "module",
|
|
37931
37966
|
main: "build/zinc.js",
|
|
@@ -37988,7 +38023,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
37988
38023
|
lodash: "^4.17.19",
|
|
37989
38024
|
"nifti-reader-js": "0.8.0",
|
|
37990
38025
|
three: "^0.185.1",
|
|
37991
|
-
"three-spritetext": "1.
|
|
38026
|
+
"three-spritetext": "1.10.0"
|
|
37992
38027
|
}
|
|
37993
38028
|
}, m = new e.Matrix4(), h = new e.Object3D(), g = new e.Vector3(), _ = new e.Vector3();
|
|
37994
38029
|
function v() {
|
|
@@ -39339,10 +39374,8 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
39339
39374
|
};
|
|
39340
39375
|
G.prototype = Object.create(U.prototype);
|
|
39341
39376
|
var K = t.default.default || t.default, xe = function(t, n) {
|
|
39342
|
-
let r = t, i, a = 500;
|
|
39343
|
-
i = n ? new K(r,
|
|
39344
|
-
let o = [i.scale.x, i.scale.y];
|
|
39345
|
-
this.getPosition = () => i ? [
|
|
39377
|
+
let r = t, i, a = 1, o = 500, s = .012;
|
|
39378
|
+
i = n ? new K(r, s, n.getStyle()) : new K(r, s), i.fontFace = "Asap", i.fontSize = 90, i.fontWeight = o, i.material.map.generateMipmaps = !0, i.material.map.anisotropy = 4, i.material.minFilter = e.LinearMipmapLinearFilter, i.material.magFilter = e.LinearFilter, i.material.sizeAttenuation = !1, i.center.x = -.05, i.center.y = 0, this.getPosition = () => i ? [
|
|
39346
39379
|
i.position.x,
|
|
39347
39380
|
i.position.y,
|
|
39348
39381
|
i.position.z
|
|
@@ -39359,11 +39392,17 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
39359
39392
|
}, this.setDepthTest = (e) => {
|
|
39360
39393
|
e && e !== i.material.depthTest && (i.material.depthTest = e);
|
|
39361
39394
|
}, this.setSize = (e) => {
|
|
39362
|
-
e > 0 && (i.
|
|
39395
|
+
e > 0 && (i.textHeight = s * e, a = e);
|
|
39363
39396
|
}, this.setFontWeight = (e) => {
|
|
39364
|
-
e && e !==
|
|
39397
|
+
e && e !== o && (i.fontWeight = e, o = e);
|
|
39365
39398
|
}, this.setText = (e) => {
|
|
39366
|
-
e && e !== i.text
|
|
39399
|
+
if (e && e !== i.text) {
|
|
39400
|
+
if (i._canvas, i.material && i.material.map && i.material.map.dispose(), i._canvas) {
|
|
39401
|
+
let e = i._canvas.getContext("2d");
|
|
39402
|
+
e && e.clearRect(0, 0, i._canvas.width, i._canvas.height), i._canvas.width = 1, i._canvas.height = 1;
|
|
39403
|
+
}
|
|
39404
|
+
i.text = e, i.textHeight = s * a, r = e, i.material && i.material.map && (i.material.map.needsUpdate = !0);
|
|
39405
|
+
}
|
|
39367
39406
|
}, this.setVisibility = (e) => {
|
|
39368
39407
|
i.visible = e;
|
|
39369
39408
|
}, this.dispose = () => {}, this.getSprite = () => i, this.getString = () => r;
|
|
@@ -44773,14 +44812,14 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44773
44812
|
}();
|
|
44774
44813
|
return cr;
|
|
44775
44814
|
});
|
|
44776
|
-
})))(), 1),
|
|
44815
|
+
})))(), 1), ED = {
|
|
44777
44816
|
SELECTED_COLOUR: "#00ff00",
|
|
44778
44817
|
HIGHLIGHTED_COLOUR: "#ff0000",
|
|
44779
44818
|
DEFAULT_RADIUS: 1,
|
|
44780
44819
|
DEFAULT_RADIAL_SEGMENTS: 8,
|
|
44781
44820
|
ZOOM_RADIUS: 5,
|
|
44782
44821
|
ZOOM_RADIAL_SEGMENTS: 12
|
|
44783
|
-
},
|
|
44822
|
+
}, DD = (e, t) => {
|
|
44784
44823
|
if (e) {
|
|
44785
44824
|
let n = "";
|
|
44786
44825
|
e.forEach((e) => {
|
|
@@ -44788,10 +44827,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44788
44827
|
});
|
|
44789
44828
|
}
|
|
44790
44829
|
return t;
|
|
44791
|
-
},
|
|
44830
|
+
}, OD = (e, t) => {
|
|
44792
44831
|
let n = e[0] - t[0], r = e[1] - t[1], i = e[2] - t[2];
|
|
44793
44832
|
return Math.sqrt(n * n + r * r + i * i);
|
|
44794
|
-
},
|
|
44833
|
+
}, kD = (e) => {
|
|
44795
44834
|
let t = e[0].data?.zincObject;
|
|
44796
44835
|
if (t && t.isEditable && t.isPointset) {
|
|
44797
44836
|
let n = e[0].extraData.intersected;
|
|
@@ -44804,20 +44843,20 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44804
44843
|
};
|
|
44805
44844
|
}
|
|
44806
44845
|
}
|
|
44807
|
-
},
|
|
44846
|
+
}, AD = (e) => {
|
|
44808
44847
|
let t = e[0].data?.zincObject;
|
|
44809
44848
|
if (t && t.isEditable) return t;
|
|
44810
|
-
},
|
|
44849
|
+
}, jD = (e) => {
|
|
44811
44850
|
let t = e[0].data?.zincObject;
|
|
44812
44851
|
if (t && t.isEditable && t.isLines2) {
|
|
44813
44852
|
let n = e[0].extraData.intersected;
|
|
44814
44853
|
if (n && n.faceIndex > -1) {
|
|
44815
44854
|
let r = t.getVerticesByFaceIndex(n.faceIndex), i = e[0].extraData.intersected.pointOnLine;
|
|
44816
|
-
if (r.length > 1) return
|
|
44855
|
+
if (r.length > 1) return OD(r[0], [
|
|
44817
44856
|
i.x,
|
|
44818
44857
|
i.y,
|
|
44819
44858
|
i.z
|
|
44820
|
-
]) >
|
|
44859
|
+
]) > OD(r[1], [
|
|
44821
44860
|
i.x,
|
|
44822
44861
|
i.y,
|
|
44823
44862
|
i.z
|
|
@@ -44834,10 +44873,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44834
44873
|
};
|
|
44835
44874
|
}
|
|
44836
44875
|
}
|
|
44837
|
-
},
|
|
44876
|
+
}, MD = (e) => {
|
|
44838
44877
|
let t = e.zincObjects;
|
|
44839
44878
|
if (t.length > 0 && t[0]) return t[0];
|
|
44840
|
-
},
|
|
44879
|
+
}, ND = (e, t, n) => {
|
|
44841
44880
|
if (e?.isEditable && e?.isPointset) {
|
|
44842
44881
|
let r = !1;
|
|
44843
44882
|
for (let e = 0; e < 3 && !r; e++) n[e] !== 0 && (r = !0);
|
|
@@ -44847,13 +44886,13 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44847
44886
|
}
|
|
44848
44887
|
}
|
|
44849
44888
|
return !1;
|
|
44850
|
-
},
|
|
44889
|
+
}, PD = (e, t) => {
|
|
44851
44890
|
if (e?.isEditable && e?.isLines2 && t > -1) {
|
|
44852
44891
|
let n = e.getVerticesByFaceIndex(t);
|
|
44853
|
-
if (n && n.length > 1) return
|
|
44892
|
+
if (n && n.length > 1) return OD(n[1], n[0]);
|
|
44854
44893
|
}
|
|
44855
44894
|
return 0;
|
|
44856
|
-
},
|
|
44895
|
+
}, FD = (e, t, n, r) => {
|
|
44857
44896
|
if (e && n !== 0 && e.isEditable && e.isLines2 && t > -1) {
|
|
44858
44897
|
let i = e.getVerticesByFaceIndex(t), a = [
|
|
44859
44898
|
i[1][0] - i[0][0],
|
|
@@ -44864,8 +44903,8 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44864
44903
|
return e.editVertices(i, t * 2), e.boundingBoxUpdateRequired = !0, !0;
|
|
44865
44904
|
}
|
|
44866
44905
|
return !1;
|
|
44867
|
-
},
|
|
44868
|
-
let n = t.getBoundingBox(), r = new
|
|
44906
|
+
}, ID = (e, t) => {
|
|
44907
|
+
let n = t.getBoundingBox(), r = new TD.THREE.Vector3().subVectors(n.max, n.min), i = new TD.THREE.BoxGeometry(r.x, r.y, r.z);
|
|
44869
44908
|
r.addVectors(n.min, n.max).multiplyScalar(.5);
|
|
44870
44909
|
let a = i.getAttribute("position"), o = a.count, s = [];
|
|
44871
44910
|
for (let e = 0; e < o; e++) s[e] = [
|
|
@@ -44874,10 +44913,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44874
44913
|
a.array[e * 3 + 2]
|
|
44875
44914
|
];
|
|
44876
44915
|
e.editVertices(s, 0), e.setPosition(r.x, r.y, r.z), i.dispose();
|
|
44877
|
-
},
|
|
44916
|
+
}, LD = (e, t) => {
|
|
44878
44917
|
let n = "";
|
|
44879
|
-
e.isRegion && (n = `__r${e.regionPath}`), e.isPrimitives && (n = `${e.regionPath}/${e.label}`), t.push(n), e.children && e.children.forEach((e) =>
|
|
44880
|
-
},
|
|
44918
|
+
e.isRegion && (n = `__r${e.regionPath}`), e.isPrimitives && (n = `${e.regionPath}/${e.label}`), t.push(n), e.children && e.children.forEach((e) => LD(e, t));
|
|
44919
|
+
}, RD = (e, t, n, r) => {
|
|
44881
44920
|
let i = e, a = [];
|
|
44882
44921
|
if (n && (i = e.findChildFromPath(n)), i) {
|
|
44883
44922
|
let e = Array.isArray(t), n = t;
|
|
@@ -44887,20 +44926,20 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44887
44926
|
});
|
|
44888
44927
|
}
|
|
44889
44928
|
return a;
|
|
44890
|
-
},
|
|
44929
|
+
}, zD = (e, t, n) => {
|
|
44891
44930
|
let r = e.findIndex((e) => e.uuid === t), i;
|
|
44892
44931
|
return r > -1 && (i = e[r], n && e.splice(r, 1)), i;
|
|
44893
|
-
},
|
|
44932
|
+
}, BD = (e, t) => {
|
|
44894
44933
|
let n = [];
|
|
44895
44934
|
if (e && t && t.length > 0) {
|
|
44896
44935
|
let r = {}, i = {}, a = [e, ...e.getChildRegions(!0)], o, s, c;
|
|
44897
44936
|
t.forEach((e) => {
|
|
44898
44937
|
let t = e.split("/");
|
|
44899
|
-
c = t[0], o =
|
|
44938
|
+
c = t[0], o = zD(a, c, !1), o && (i[c] || (i[c] = o.getFullPath()), t[1] ? (r[c] || (r[c] = o.getAllObjects(!1)), s = zD(r[c], t[1], !0), s && n.push(`${i[c]}/${s.groupName}`)) : n.push(`__r/${i[c]}`));
|
|
44900
44939
|
});
|
|
44901
44940
|
}
|
|
44902
44941
|
return n;
|
|
44903
|
-
},
|
|
44942
|
+
}, VD = (e) => {
|
|
44904
44943
|
if (e) {
|
|
44905
44944
|
let t = [];
|
|
44906
44945
|
return e.forEach((e) => {
|
|
@@ -44911,7 +44950,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44911
44950
|
}), {}));
|
|
44912
44951
|
}
|
|
44913
44952
|
return [];
|
|
44914
|
-
},
|
|
44953
|
+
}, HD = (e, t) => {
|
|
44915
44954
|
let n = {
|
|
44916
44955
|
label: "Multiple selections",
|
|
44917
44956
|
regionPath: "",
|
|
@@ -44923,12 +44962,12 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44923
44962
|
e.data.region.includes(n.regionPath) || (n.regionPath = ""), n.label !== e.data.group && (n.label = "Multiple selections");
|
|
44924
44963
|
let t = i.findChildFromPath(e.data.region);
|
|
44925
44964
|
r[t.uuid] || (r[t.uuid] = t.getAllObjects(!1));
|
|
44926
|
-
let a =
|
|
44965
|
+
let a = zD(r[t.uuid], e.data.uuid);
|
|
44927
44966
|
a && n.objects.push(a);
|
|
44928
44967
|
});
|
|
44929
44968
|
}
|
|
44930
44969
|
return n;
|
|
44931
|
-
},
|
|
44970
|
+
}, UD = (e) => {
|
|
44932
44971
|
let t = e.getMorph(), n = "position";
|
|
44933
44972
|
e.isLines2 && (n = "instanceStart");
|
|
44934
44973
|
let r = [], i = 0, a = t.geometry.getAttribute(n);
|
|
@@ -44938,12 +44977,12 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44938
44977
|
a.array[i++]
|
|
44939
44978
|
]);
|
|
44940
44979
|
return r;
|
|
44941
|
-
},
|
|
44980
|
+
}, WD = (e, t, n, r, i) => {
|
|
44942
44981
|
let a;
|
|
44943
44982
|
a = e.isPointset ? "MultiPoint" : e.isLines2 ? "MultiLineString" : "Feature";
|
|
44944
44983
|
let o = a !== "Feature", s = a === "Feature" ? "Feature annotation" : "Drawn annotation";
|
|
44945
44984
|
if (a) {
|
|
44946
|
-
let c =
|
|
44985
|
+
let c = UD(e), l = t.slice(-1) === "/" ? t : t + "/";
|
|
44947
44986
|
l += n;
|
|
44948
44987
|
let u = l, d = {
|
|
44949
44988
|
resource: r,
|
|
@@ -44966,22 +45005,22 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44966
45005
|
};
|
|
44967
45006
|
return i === "Deleted" && (d.feature = void 0), d;
|
|
44968
45007
|
}
|
|
44969
|
-
},
|
|
44970
|
-
let s =
|
|
45008
|
+
}, GD = (e, t, n, r, i, a, o) => {
|
|
45009
|
+
let s = WD(n, r, i, a, o);
|
|
44971
45010
|
if (s) return e && e.currentUser && (s.creator = { ...e.currentUser }, s.creator.orcid || (s.creator.orcid = "0000-0000-0000-0000"), e.addAnnotation(t, s).then((e) => {
|
|
44972
45011
|
e.annotationId || console.log("There is a problem with the submission, please try again later");
|
|
44973
45012
|
}).catch(() => {
|
|
44974
45013
|
console.log("There is a problem with the submission, please try again later");
|
|
44975
45014
|
})), s;
|
|
44976
|
-
},
|
|
45015
|
+
}, KD = async (e, t, n) => {
|
|
44977
45016
|
let r = n;
|
|
44978
45017
|
return await e.drawnFeatures(t, r);
|
|
44979
|
-
},
|
|
45018
|
+
}, qD = (e, t) => {
|
|
44980
45019
|
e && t.forEach((t) => {
|
|
44981
45020
|
let n = t.geometry, r = decodeURIComponent(t.id), i = r.lastIndexOf("/"), a = r.substring(0, i), o = r.substring(i + 1), s;
|
|
44982
45021
|
n.type === "MultiPoint" ? s = e.createPoints(a, o, n.coordinates, o, 8942) : n.type === "MultiLineString" && (s = e.createLines(a, o, n.coordinates, 60962)), s && (s.zincObject.isEditable = !0);
|
|
44983
45022
|
});
|
|
44984
|
-
},
|
|
45023
|
+
}, JD = function(e) {
|
|
44985
45024
|
let t = [];
|
|
44986
45025
|
for (let n = 0; n < e.length; n++) {
|
|
44987
45026
|
let r = e[n].userData;
|
|
@@ -44993,10 +45032,10 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
44993
45032
|
}
|
|
44994
45033
|
}
|
|
44995
45034
|
return t;
|
|
44996
|
-
},
|
|
45035
|
+
}, YD = (e, t) => {
|
|
44997
45036
|
let n = e.label.toUpperCase(), r = t.label.toUpperCase();
|
|
44998
45037
|
return n < r ? -1 : +(n > r);
|
|
44999
|
-
},
|
|
45038
|
+
}, XD = {
|
|
45000
45039
|
name: "ScaffoldTreeControls",
|
|
45001
45040
|
components: {
|
|
45002
45041
|
ElIconArrowLeft: tp,
|
|
@@ -45060,7 +45099,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45060
45099
|
}
|
|
45061
45100
|
},
|
|
45062
45101
|
addTreeItem: function(e, t, n) {
|
|
45063
|
-
e.some((e) => e.label === t.label) || (Object.assign(t, { activeColour: this.getColour(t) }), e.push(t), e.sort((e, t) =>
|
|
45102
|
+
e.some((e) => e.label === t.label) || (Object.assign(t, { activeColour: this.getColour(t) }), e.push(t), e.sort((e, t) => YD(e, t)), this.nodeNumbers++, this.$nextTick(() => {
|
|
45064
45103
|
!this.$refs.treeControls.$refs.regionTree.getCheckedKeys().includes(t.id) && n.getVisibility() && this.$refs.treeControls.$refs.regionTree.setChecked(t.id, !0);
|
|
45065
45104
|
}));
|
|
45066
45105
|
},
|
|
@@ -45136,23 +45175,23 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45136
45175
|
}
|
|
45137
45176
|
},
|
|
45138
45177
|
updateActiveUI: function(e) {
|
|
45139
|
-
this.active.length = 0,
|
|
45178
|
+
this.active.length = 0, DD(e, this.active);
|
|
45140
45179
|
},
|
|
45141
45180
|
changeActiveByPrimitives: function(e, t) {
|
|
45142
45181
|
e && e.length > 0 ? (this.updateActiveUI(e), this.$emit("object-selected", e, t)) : this.removeActive(t), this.removeHover(t);
|
|
45143
45182
|
},
|
|
45144
45183
|
updateHoverUI: function(e) {
|
|
45145
|
-
this.hover.length = 0,
|
|
45184
|
+
this.hover.length = 0, DD(e, this.hover);
|
|
45146
45185
|
},
|
|
45147
45186
|
changeHoverByPrimitives: function(e, t) {
|
|
45148
45187
|
e && e.length > 0 ? (this.updateHoverUI(e), this.$emit("object-hovered", e, t)) : this.removeHover(t);
|
|
45149
45188
|
},
|
|
45150
45189
|
changeActiveByNames: function(e, t, n) {
|
|
45151
|
-
let r =
|
|
45190
|
+
let r = RD(this.module.scene.getRootRegion(), e, t, !0);
|
|
45152
45191
|
this.changeActiveByPrimitives(r, n);
|
|
45153
45192
|
},
|
|
45154
45193
|
changeHoverByNames: function(e, t, n) {
|
|
45155
|
-
let r =
|
|
45194
|
+
let r = RD(this.module.scene.getRootRegion(), e, t, !0);
|
|
45156
45195
|
this.changeHoverByPrimitives(r, n);
|
|
45157
45196
|
},
|
|
45158
45197
|
changeActiveByNode: function(e, t) {
|
|
@@ -45202,7 +45241,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45202
45241
|
},
|
|
45203
45242
|
getZincObjectsFromNode: function(e, t) {
|
|
45204
45243
|
let n = this.module.scene.getRootRegion();
|
|
45205
|
-
if (e.isPrimitives) return
|
|
45244
|
+
if (e.isPrimitives) return RD(n, e.label, e.regionPath, t);
|
|
45206
45245
|
if (e.isRegion && e.regionPath) {
|
|
45207
45246
|
let r = n.findChildFromPath(e.regionPath);
|
|
45208
45247
|
if (r) return r.getAllObjects(t);
|
|
@@ -45271,7 +45310,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45271
45310
|
},
|
|
45272
45311
|
checkAllKeys: function(e = []) {
|
|
45273
45312
|
let t = [], n = [];
|
|
45274
|
-
|
|
45313
|
+
LD(this.treeData[0], t);
|
|
45275
45314
|
let r = t.filter((t) => !e.some((e) => t.includes(e)));
|
|
45276
45315
|
this.setTreeVisibilityWithFullPaths(this.treeData[0], r, n, !0), this.$refs.treeControls.$refs.regionTree.setCheckedKeys(n);
|
|
45277
45316
|
},
|
|
@@ -45281,7 +45320,7 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45281
45320
|
checkAll: !0,
|
|
45282
45321
|
version: "2.0"
|
|
45283
45322
|
} : {
|
|
45284
|
-
checkedItems:
|
|
45323
|
+
checkedItems: BD(this.module.scene.getRootRegion(), e),
|
|
45285
45324
|
version: "2.0"
|
|
45286
45325
|
};
|
|
45287
45326
|
},
|
|
@@ -45297,13 +45336,13 @@ var NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE,
|
|
|
45297
45336
|
}
|
|
45298
45337
|
}
|
|
45299
45338
|
}
|
|
45300
|
-
},
|
|
45301
|
-
function
|
|
45339
|
+
}, ZD = { class: "tree-controls-scroll" };
|
|
45340
|
+
function QD(e, t, n, r, i, a) {
|
|
45302
45341
|
let o = ie("TreeControls"), s = tp, c = _p;
|
|
45303
45342
|
return F(), u("div", { class: T(["tree-controls", {
|
|
45304
45343
|
open: e.drawerOpen,
|
|
45305
45344
|
close: !e.drawerOpen
|
|
45306
|
-
}]) }, [d("div",
|
|
45345
|
+
}]) }, [d("div", ZD, [d("div", {
|
|
45307
45346
|
class: "tree-controls-container",
|
|
45308
45347
|
style: E({ "max-height": `${a.maxHeight}px` })
|
|
45309
45348
|
}, [R(e.$slots, "treeSlot", {}, void 0, !0), m(o, {
|
|
@@ -45342,7 +45381,7 @@ function YD(e, t, n, r, i, a) {
|
|
|
45342
45381
|
_: 1
|
|
45343
45382
|
})], 6)], 2);
|
|
45344
45383
|
}
|
|
45345
|
-
var
|
|
45384
|
+
var $D = /*#__PURE__*/ yy(XD, [["render", QD], ["__scopeId", "data-v-1ea383cd"]]), eO = {
|
|
45346
45385
|
name: "LinesControls",
|
|
45347
45386
|
components: {
|
|
45348
45387
|
Button: ug,
|
|
@@ -45366,8 +45405,8 @@ var XD = /*#__PURE__*/ yy(qD, [["render", YD], ["__scopeId", "data-v-1ea383cd"]]
|
|
|
45366
45405
|
distance: 0,
|
|
45367
45406
|
newDistance: 0,
|
|
45368
45407
|
width: 1,
|
|
45369
|
-
radius:
|
|
45370
|
-
radialSegments:
|
|
45408
|
+
radius: ED.DEFAULT_RADIUS,
|
|
45409
|
+
radialSegments: ED.DEFAULT_RADIAL_SEGMENTS,
|
|
45371
45410
|
currentIndex: 0,
|
|
45372
45411
|
ElIconArrowLeft: B(tp),
|
|
45373
45412
|
ElIconArrowRight: B(np),
|
|
@@ -45381,29 +45420,29 @@ var XD = /*#__PURE__*/ yy(qD, [["render", YD], ["__scopeId", "data-v-1ea383cd"]]
|
|
|
45381
45420
|
} },
|
|
45382
45421
|
watch: { "createData.faceIndex": {
|
|
45383
45422
|
handler: function(e) {
|
|
45384
|
-
this.zincObject?.isLines2 && (this.currentIndex = e, this.distance =
|
|
45423
|
+
this.zincObject?.isLines2 && (this.currentIndex = e, this.distance = PD(this.zincObject, this.currentIndex));
|
|
45385
45424
|
},
|
|
45386
45425
|
immediate: !0
|
|
45387
45426
|
} },
|
|
45388
45427
|
methods: {
|
|
45389
45428
|
changeIndex: function(e) {
|
|
45390
|
-
e ?
|
|
45429
|
+
e ? PD(this.zincObject, this.currentIndex + 1) > 0 && (this.currentIndex++, this.reset()) : (this.currentIndex--, this.reset());
|
|
45391
45430
|
},
|
|
45392
45431
|
onLengthInput: function() {
|
|
45393
|
-
this.newDistance === 0 ? this.newDistance = this.distance : (this.distance = this.newDistance, this.edited =
|
|
45432
|
+
this.newDistance === 0 ? this.newDistance = this.distance : (this.distance = this.newDistance, this.edited = FD(this.zincObject, this.currentIndex, this.newDistance, !0) || this.edited);
|
|
45394
45433
|
},
|
|
45395
45434
|
onLengthSliding: function() {
|
|
45396
|
-
this.newDistance = 10 ** this.lengthScale * this.distance, this.edited =
|
|
45435
|
+
this.newDistance = 10 ** this.lengthScale * this.distance, this.edited = FD(this.zincObject, this.currentIndex, this.newDistance, !0) || this.edited;
|
|
45397
45436
|
},
|
|
45398
45437
|
onMoveSliding: function() {
|
|
45399
45438
|
let e = (this.adjust - this.pAdjust) * this.distance;
|
|
45400
|
-
this.edited =
|
|
45439
|
+
this.edited = FD(this.zincObject, this.currentIndex, e, !1) || this.edited, this.pAdjust = this.adjust;
|
|
45401
45440
|
},
|
|
45402
45441
|
reset: function() {
|
|
45403
|
-
this.adjust = 0, this.pAdjust = 0, this.lengthScale = 0, this.distance =
|
|
45442
|
+
this.adjust = 0, this.pAdjust = 0, this.lengthScale = 0, this.distance = PD(this.zincObject, this.currentIndex), this.newDistance = this.distance, this.edited &&= (this.$emit("primitivesUpdated", this.zincObject), !1);
|
|
45404
45443
|
},
|
|
45405
45444
|
setObject: function(e) {
|
|
45406
|
-
this.currentIndex = -1, this.distance = 0, e.isLines2 || e.isTubeLines ? (this.zincObject = S(e), this.width = this.zincObject.getMorph().material.linewidth, this.isTubeLines = e.isTubeLines, e.isEditable ? (this.currentIndex = 0, this.distance =
|
|
45445
|
+
this.currentIndex = -1, this.distance = 0, e.isLines2 || e.isTubeLines ? (this.zincObject = S(e), this.width = this.zincObject.getMorph().material.linewidth, this.isTubeLines = e.isTubeLines, e.isEditable ? (this.currentIndex = 0, this.distance = PD(e, this.currentIndex)) : e.userData?.isNerves && (this.radius = ED.ZOOM_RADIUS, this.radialSegments = ED.ZOOM_RADIAL_SEGMENTS)) : (this.zincObject = void 0, this.width = 10);
|
|
45407
45446
|
},
|
|
45408
45447
|
modifyWidth: function() {
|
|
45409
45448
|
this.zincObject.setWidth(this.width);
|
|
@@ -45413,7 +45452,7 @@ var XD = /*#__PURE__*/ yy(qD, [["render", YD], ["__scopeId", "data-v-1ea383cd"]]
|
|
|
45413
45452
|
}
|
|
45414
45453
|
}
|
|
45415
45454
|
};
|
|
45416
|
-
function
|
|
45455
|
+
function tO(e, n, r, i, a, o) {
|
|
45417
45456
|
let s = N_, d = Vv, f = gv, h = M_, g = ug, _ = ov, v = rv;
|
|
45418
45457
|
return F(), c(v, { class: "lines-container" }, {
|
|
45419
45458
|
default: W(() => [m(_, { class: "slides-block" }, {
|
|
@@ -45653,7 +45692,7 @@ function QD(e, n, r, i, a, o) {
|
|
|
45653
45692
|
_: 1
|
|
45654
45693
|
});
|
|
45655
45694
|
}
|
|
45656
|
-
var
|
|
45695
|
+
var nO = /*#__PURE__*/ yy(eO, [["render", tO], ["__scopeId", "data-v-0deb177d"]]), rO = {
|
|
45657
45696
|
name: "GlyphsControls",
|
|
45658
45697
|
components: {
|
|
45659
45698
|
Checkbox: d_,
|
|
@@ -45675,7 +45714,7 @@ var $D = /*#__PURE__*/ yy(ZD, [["render", QD], ["__scopeId", "data-v-0deb177d"]]
|
|
|
45675
45714
|
}
|
|
45676
45715
|
}
|
|
45677
45716
|
};
|
|
45678
|
-
function
|
|
45717
|
+
function iO(e, t, n, r, i, a) {
|
|
45679
45718
|
let o = d_, s = rv;
|
|
45680
45719
|
return F(), c(s, { class: "glyph-container" }, {
|
|
45681
45720
|
default: W(() => [m(o, {
|
|
@@ -45689,7 +45728,7 @@ function tO(e, t, n, r, i, a) {
|
|
|
45689
45728
|
_: 1
|
|
45690
45729
|
});
|
|
45691
45730
|
}
|
|
45692
|
-
var
|
|
45731
|
+
var aO = /*#__PURE__*/ yy(rO, [["render", iO], ["__scopeId", "data-v-fce6c6da"]]), oO = {
|
|
45693
45732
|
name: "PointsControls",
|
|
45694
45733
|
components: {
|
|
45695
45734
|
Col: N_,
|
|
@@ -45768,7 +45807,7 @@ var nO = /*#__PURE__*/ yy(eO, [["render", tO], ["__scopeId", "data-v-fce6c6da"]]
|
|
|
45768
45807
|
this.translation[1] - this.pTranslation[1],
|
|
45769
45808
|
this.translation[2] - this.pTranslation[2]
|
|
45770
45809
|
];
|
|
45771
|
-
this.edited =
|
|
45810
|
+
this.edited = ND(this.zincObject, this.currentIndex, e) || this.edited;
|
|
45772
45811
|
for (let e = 0; e < 3; e++) this.pTranslation[e] = this.translation[e];
|
|
45773
45812
|
},
|
|
45774
45813
|
reset: function() {
|
|
@@ -45793,7 +45832,7 @@ var nO = /*#__PURE__*/ yy(eO, [["render", tO], ["__scopeId", "data-v-fce6c6da"]]
|
|
|
45793
45832
|
}
|
|
45794
45833
|
}
|
|
45795
45834
|
};
|
|
45796
|
-
function
|
|
45835
|
+
function sO(e, n, r, i, a, o) {
|
|
45797
45836
|
let s = N_, d = Vv, f = gv, h = M_, g = qg, _ = Kg, v = ug, y = ov, b = rv;
|
|
45798
45837
|
return F(), c(b, { class: "pointset-container" }, {
|
|
45799
45838
|
default: W(() => [m(y, { class: "slides-block" }, {
|
|
@@ -46001,7 +46040,7 @@ function iO(e, n, r, i, a, o) {
|
|
|
46001
46040
|
_: 1
|
|
46002
46041
|
});
|
|
46003
46042
|
}
|
|
46004
|
-
var
|
|
46043
|
+
var cO = /*#__PURE__*/ yy(oO, [["render", sO], ["__scopeId", "data-v-d1de9c65"]]), lO = {
|
|
46005
46044
|
name: "TextureSlidesControls",
|
|
46006
46045
|
components: {
|
|
46007
46046
|
Checkbox: d_,
|
|
@@ -46084,7 +46123,7 @@ var aO = /*#__PURE__*/ yy(rO, [["render", iO], ["__scopeId", "data-v-d1de9c65"]]
|
|
|
46084
46123
|
}
|
|
46085
46124
|
}
|
|
46086
46125
|
};
|
|
46087
|
-
function
|
|
46126
|
+
function uO(e, n, r, i, a, o) {
|
|
46088
46127
|
let s = d_, l = M_, d = N_, f = Vv, h = gv, g = cv, _ = qg, v = Kg, y = sp, b = _p, x = ov, S = dp, C = iv, w = rv;
|
|
46089
46128
|
return F(), c(w, { class: "t-slides-container" }, {
|
|
46090
46129
|
default: W(() => [m(x, { class: "slides-block" }, {
|
|
@@ -46291,7 +46330,7 @@ function sO(e, n, r, i, a, o) {
|
|
|
46291
46330
|
_: 1
|
|
46292
46331
|
});
|
|
46293
46332
|
}
|
|
46294
|
-
var
|
|
46333
|
+
var dO = /*#__PURE__*/ yy(lO, [["render", uO], ["__scopeId", "data-v-687baffd"]]), fO = {
|
|
46295
46334
|
name: "TransformationControls",
|
|
46296
46335
|
components: {
|
|
46297
46336
|
Col: N_,
|
|
@@ -46358,7 +46397,7 @@ var cO = /*#__PURE__*/ yy(oO, [["render", sO], ["__scopeId", "data-v-687baffd"]]
|
|
|
46358
46397
|
}
|
|
46359
46398
|
}
|
|
46360
46399
|
};
|
|
46361
|
-
function
|
|
46400
|
+
function pO(e, t, n, r, i, a) {
|
|
46362
46401
|
let o = N_, s = Vv, u = gv, d = M_, f = ov, h = rv;
|
|
46363
46402
|
return F(), c(h, { class: "transformation-container" }, {
|
|
46364
46403
|
default: W(() => [m(f, { class: "slides-block" }, {
|
|
@@ -46568,7 +46607,7 @@ function uO(e, t, n, r, i, a) {
|
|
|
46568
46607
|
_: 1
|
|
46569
46608
|
});
|
|
46570
46609
|
}
|
|
46571
|
-
var
|
|
46610
|
+
var mO = /*#__PURE__*/ yy(fO, [["render", pO], ["__scopeId", "data-v-962c6314"]]), hO = {
|
|
46572
46611
|
name: "OpacityControls",
|
|
46573
46612
|
components: {
|
|
46574
46613
|
Container: rv,
|
|
@@ -46589,14 +46628,14 @@ var dO = /*#__PURE__*/ yy(lO, [["render", uO], ["__scopeId", "data-v-962c6314"]]
|
|
|
46589
46628
|
methods: { formatTooltip(e) {
|
|
46590
46629
|
return this.displayString = Math.floor(100 * e + .5) + "%", this.displayString;
|
|
46591
46630
|
} }
|
|
46592
|
-
},
|
|
46593
|
-
function
|
|
46631
|
+
}, gO = { class: "block" }, _O = { class: "display" };
|
|
46632
|
+
function vO(e, t, n, r, i, a) {
|
|
46594
46633
|
let o = Vv, s = rv;
|
|
46595
46634
|
return n.material ? (F(), c(s, {
|
|
46596
46635
|
key: 0,
|
|
46597
46636
|
class: "opacity-container"
|
|
46598
46637
|
}, {
|
|
46599
|
-
default: W(() => [d("div",
|
|
46638
|
+
default: W(() => [d("div", gO, [d("span", _O, se(e.displayString), 1), m(o, {
|
|
46600
46639
|
modelValue: n.material.opacity,
|
|
46601
46640
|
"onUpdate:modelValue": t[0] ||= (e) => n.material.opacity = e,
|
|
46602
46641
|
class: "my-slider",
|
|
@@ -46609,17 +46648,17 @@ function hO(e, t, n, r, i, a) {
|
|
|
46609
46648
|
_: 1
|
|
46610
46649
|
})) : l("", !0);
|
|
46611
46650
|
}
|
|
46612
|
-
var
|
|
46651
|
+
var yO = /*#__PURE__*/ yy(hO, [["render", vO], ["__scopeId", "data-v-7e39127d"]]), bO = {
|
|
46613
46652
|
name: "PrimitiveControls",
|
|
46614
46653
|
components: {
|
|
46615
46654
|
Collapse: Y_,
|
|
46616
46655
|
CollapseItem: X_,
|
|
46617
|
-
GlyphsControls:
|
|
46618
|
-
LinesControls:
|
|
46619
|
-
OpacityControls:
|
|
46620
|
-
PointsControls:
|
|
46621
|
-
TextureSlidesControls:
|
|
46622
|
-
TransformationControls:
|
|
46656
|
+
GlyphsControls: aO,
|
|
46657
|
+
LinesControls: nO,
|
|
46658
|
+
OpacityControls: yO,
|
|
46659
|
+
PointsControls: cO,
|
|
46660
|
+
TextureSlidesControls: dO,
|
|
46661
|
+
TransformationControls: mO,
|
|
46623
46662
|
ElIconArrowRight: np
|
|
46624
46663
|
},
|
|
46625
46664
|
props: {
|
|
@@ -46654,10 +46693,10 @@ var gO = /*#__PURE__*/ yy(fO, [["render", hO], ["__scopeId", "data-v-7e39127d"]]
|
|
|
46654
46693
|
this.zincObject = e ? S(e) : void 0, this.isEditable = !!this.zincObject?.isEditable, this.isPointset = !1, this.isTextureSlides = !1, this.isLines = !1, this.isGlyph = !1, this.activeName = "trControls", e && (e.isTextureSlides ? (this.isTextureSlides = !0, this.$refs.tSlidesControls.setObject(e), this.activeName = "tsControls") : e.isPointset ? (this.isPointset = !0, this.$refs.pointsetControls.setObject(e), this.activeName = "pControls") : e.isLines2 || e.isTubeLines && this.usageConfig?.showTubeLinesControls ? (this.isLines = !0, this.$refs.linesControls.setObject(e), this.activeName = "lControls") : e.isGlyphset && e.canShowLabel() && (this.isGlyph = !0, this.$refs.glyphControls.setObject(e), this.activeName = "gControls"), this.$refs.transformationControls.setObject(e)), this.material = e && e.getMorph() ? e.getMorph().material : void 0;
|
|
46655
46694
|
}
|
|
46656
46695
|
}
|
|
46657
|
-
},
|
|
46658
|
-
function
|
|
46659
|
-
let o =
|
|
46660
|
-
return G((F(), u("div",
|
|
46696
|
+
}, xO = { class: "my-drawer" };
|
|
46697
|
+
function SO(e, t, n, r, i, a) {
|
|
46698
|
+
let o = yO, s = X_, c = mO, l = dO, d = cO, f = aO, p = nO, h = Y_;
|
|
46699
|
+
return G((F(), u("div", xO, [m(h, {
|
|
46661
46700
|
class: "collapse",
|
|
46662
46701
|
modelValue: e.activeName,
|
|
46663
46702
|
"onUpdate:modelValue": t[3] ||= (t) => e.activeName = t,
|
|
@@ -46734,7 +46773,7 @@ function yO(e, t, n, r, i, a) {
|
|
|
46734
46773
|
_: 1
|
|
46735
46774
|
}, 8, ["modelValue"])], 512)), [[ye, a.hasValidPrimitive]]);
|
|
46736
46775
|
}
|
|
46737
|
-
var
|
|
46776
|
+
var CO = /*#__PURE__*/ yy(bO, [["render", SO], ["__scopeId", "data-v-4b7eafcb"]]), wO = Ee("main", {
|
|
46738
46777
|
state: () => ({ userProfile: { token: "" } }),
|
|
46739
46778
|
getters: { userToken(e) {
|
|
46740
46779
|
return e.userProfile.token;
|
|
@@ -46742,7 +46781,7 @@ var bO = /*#__PURE__*/ yy(_O, [["render", yO], ["__scopeId", "data-v-4b7eafcb"]]
|
|
|
46742
46781
|
actions: { setUserToken(e) {
|
|
46743
46782
|
this.userProfile.token = e;
|
|
46744
46783
|
} }
|
|
46745
|
-
}),
|
|
46784
|
+
}), TO = {
|
|
46746
46785
|
name: "ScaffoldTooltip",
|
|
46747
46786
|
components: {
|
|
46748
46787
|
Col: N_,
|
|
@@ -46814,7 +46853,7 @@ var bO = /*#__PURE__*/ yy(_O, [["render", yO], ["__scopeId", "data-v-4b7eafcb"]]
|
|
|
46814
46853
|
};
|
|
46815
46854
|
},
|
|
46816
46855
|
computed: {
|
|
46817
|
-
...De(
|
|
46856
|
+
...De(wO, ["userToken"]),
|
|
46818
46857
|
position: function() {
|
|
46819
46858
|
let e = 40;
|
|
46820
46859
|
return this.region && (e = 55), {
|
|
@@ -46862,11 +46901,11 @@ var bO = /*#__PURE__*/ yy(_O, [["render", yO], ["__scopeId", "data-v-4b7eafcb"]]
|
|
|
46862
46901
|
immediate: !0
|
|
46863
46902
|
}
|
|
46864
46903
|
}
|
|
46865
|
-
},
|
|
46904
|
+
}, EO = { class: "tooltip-text" }, DO = {
|
|
46866
46905
|
key: 0,
|
|
46867
46906
|
class: "tooltip-text"
|
|
46868
46907
|
};
|
|
46869
|
-
function
|
|
46908
|
+
function OO(e, t, n, r, i, a) {
|
|
46870
46909
|
let o = ie("CreateTooltipContent"), s = ie("Tooltip"), c = xv;
|
|
46871
46910
|
return F(), u("div", {
|
|
46872
46911
|
style: E(a.position),
|
|
@@ -46883,8 +46922,8 @@ function TO(e, t, n, r, i, a) {
|
|
|
46883
46922
|
onHide: a.hideTriggered
|
|
46884
46923
|
}, {
|
|
46885
46924
|
default: W(() => [
|
|
46886
|
-
d("div",
|
|
46887
|
-
n.region && n.region != "/" ? (F(), u("div",
|
|
46925
|
+
d("div", EO, se(n.label), 1),
|
|
46926
|
+
n.region && n.region != "/" ? (F(), u("div", DO, " Region: " + se(n.region), 1)) : l("", !0),
|
|
46888
46927
|
G(m(o, {
|
|
46889
46928
|
createData: n.createData,
|
|
46890
46929
|
onConfirmCreate: t[0] ||= (t) => e.$emit("confirm-create", t),
|
|
@@ -46903,33 +46942,33 @@ function TO(e, t, n, r, i, a) {
|
|
|
46903
46942
|
_: 1
|
|
46904
46943
|
}, 8, ["visible", "onHide"])], 4);
|
|
46905
46944
|
}
|
|
46906
|
-
var
|
|
46945
|
+
var kO = /*#__PURE__*/ yy(TO, [["render", OO], ["__scopeId", "data-v-0b62fe75"]]), AO = async (e, t, n, r, i) => await (0, TD.createPrimitivesFromNIFTI)(e, t, n, r, i), jO = {
|
|
46907
46946
|
ALL: 0,
|
|
46908
46947
|
SELECTED: 1,
|
|
46909
46948
|
HIGHLIGHTED: 2,
|
|
46910
46949
|
MOVE: 3
|
|
46911
|
-
},
|
|
46950
|
+
}, MO = function(e, t, n) {
|
|
46912
46951
|
this.eventType = e, this.identifiers = t, this.zincObjects = n;
|
|
46913
|
-
},
|
|
46952
|
+
}, NO = function(e, t, n) {
|
|
46914
46953
|
this.targetedID = [];
|
|
46915
46954
|
let r = e, i = t;
|
|
46916
46955
|
this.targetEventType = n;
|
|
46917
46956
|
let a = this;
|
|
46918
|
-
n === void 0 && (this.targetEventType =
|
|
46957
|
+
n === void 0 && (this.targetEventType = jO.ALL), this.getEventType = function() {
|
|
46919
46958
|
return n;
|
|
46920
46959
|
}, this.notify = function(e, t, n, o) {
|
|
46921
|
-
if (e !== r && (a.targetEventType ===
|
|
46922
|
-
let e = new
|
|
46960
|
+
if (e !== r && (a.targetEventType === jO.ALL || a.targetEventType === t)) {
|
|
46961
|
+
let e = new MO(t, n, o);
|
|
46923
46962
|
i(e);
|
|
46924
46963
|
}
|
|
46925
46964
|
};
|
|
46926
|
-
},
|
|
46965
|
+
}, PO = function() {
|
|
46927
46966
|
let e = [];
|
|
46928
46967
|
this.publish = function(t, n, r, i) {
|
|
46929
46968
|
for (let a = 0; a < e.length; a++) e[a].notify(t, n, r, i);
|
|
46930
46969
|
}, this.subscribe = function(t, n, r) {
|
|
46931
46970
|
if (typeof n == "function") {
|
|
46932
|
-
let i = new
|
|
46971
|
+
let i = new NO(t, n, r);
|
|
46933
46972
|
return e.push(i), i;
|
|
46934
46973
|
}
|
|
46935
46974
|
}, this.unsubscribe = function(t) {
|
|
@@ -46938,7 +46977,7 @@ var EO = /*#__PURE__*/ yy(SO, [["render", TO], ["__scopeId", "data-v-0b62fe75"]]
|
|
|
46938
46977
|
return;
|
|
46939
46978
|
}
|
|
46940
46979
|
};
|
|
46941
|
-
},
|
|
46980
|
+
}, FO = {
|
|
46942
46981
|
isWebGLAvailable: function() {
|
|
46943
46982
|
try {
|
|
46944
46983
|
var e = document.createElement("canvas");
|
|
@@ -46971,59 +47010,59 @@ var EO = /*#__PURE__*/ yy(SO, [["render", TO], ["__scopeId", "data-v-0b62fe75"]]
|
|
|
46971
47010
|
}, r = "This module requires <a href=\"http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation\" style=\"color:#008\">$1</a> support but your $0 does not seem to support it.", i = document.createElement("div");
|
|
46972
47011
|
return i.id = "webglmessage", i.style.fontFamily = "monospace", i.style.fontSize = "20px", i.style.fontWeight = "normal", i.style.textAlign = "center", i.style.background = "#fff", i.style.color = "#000", i.style.padding = "1.5em", i.style.width = "400px", i.style.margin = "5em auto 0", r = n[e] ? r.replace("$0", "graphics card") : r.replace("$0", "browser"), r = r.replace("$1", t[e]), i.innerHTML = r, i;
|
|
46973
47012
|
}
|
|
46974
|
-
},
|
|
47013
|
+
}, IO = {
|
|
46975
47014
|
ALL: 0,
|
|
46976
47015
|
DESTROYED: 1,
|
|
46977
47016
|
NAME_CHANGED: 2,
|
|
46978
47017
|
SETTINGS_CHANGED: 3
|
|
46979
|
-
},
|
|
47018
|
+
}, LO = function() {
|
|
46980
47019
|
this.typeName = "Base Module", this.instanceName = "default", this.onChangedCallbacks = [], this.eventNotifiers = [];
|
|
46981
47020
|
};
|
|
46982
|
-
|
|
47021
|
+
LO.prototype.setName = function(e) {
|
|
46983
47022
|
if (e && this.instanceName !== e) {
|
|
46984
47023
|
this.instanceName = e;
|
|
46985
47024
|
let t = this.onChangedCallbacks.slice();
|
|
46986
|
-
for (let e = 0; e < t.length; e++) t[e](this,
|
|
47025
|
+
for (let e = 0; e < t.length; e++) t[e](this, IO.NAME_CHANGED);
|
|
46987
47026
|
}
|
|
46988
|
-
},
|
|
47027
|
+
}, LO.prototype.settingsChanged = function() {
|
|
46989
47028
|
let e = this.onChangedCallbacks.slice();
|
|
46990
|
-
for (let t = 0; t < e.length; t++) e[t](this,
|
|
46991
|
-
},
|
|
47029
|
+
for (let t = 0; t < e.length; t++) e[t](this, IO.SETTINGS_CHANGED);
|
|
47030
|
+
}, LO.prototype.exportSettings = function() {
|
|
46992
47031
|
let e = {};
|
|
46993
47032
|
return e.dialog = this.typeName, e.name = this.instanceName, e;
|
|
46994
|
-
},
|
|
47033
|
+
}, LO.prototype.importSettings = function(e) {
|
|
46995
47034
|
return e.dialog == this.typeName && (this.setName(e.name), !0);
|
|
46996
|
-
},
|
|
47035
|
+
}, LO.prototype.publishChanges = function(e, t, n) {
|
|
46997
47036
|
for (let r = 0; r < this.eventNotifiers.length; r++) this.eventNotifiers[r].publish(this, t, e, n);
|
|
46998
|
-
},
|
|
47037
|
+
}, LO.prototype.getName = function() {
|
|
46999
47038
|
return this.instanceName;
|
|
47000
|
-
},
|
|
47039
|
+
}, LO.prototype.destroy = function() {
|
|
47001
47040
|
let e = this.onChangedCallbacks.slice();
|
|
47002
|
-
for (let t = 0; t < e.length; t++) e[t](this,
|
|
47041
|
+
for (let t = 0; t < e.length; t++) e[t](this, IO.DESTROYED);
|
|
47003
47042
|
delete this;
|
|
47004
|
-
},
|
|
47043
|
+
}, LO.prototype.addChangedCallback = function(e) {
|
|
47005
47044
|
this.onChangedCallbacks.includes(e) == 0 && this.onChangedCallbacks.push(e);
|
|
47006
|
-
},
|
|
47045
|
+
}, LO.prototype.removeChangedCallback = function(e) {
|
|
47007
47046
|
let t = this.onChangedCallbacks.indexOf(e);
|
|
47008
47047
|
t > -1 && this.onChangedCallbacks.splice(t, 1);
|
|
47009
|
-
},
|
|
47048
|
+
}, LO.prototype.addNotifier = function(e) {
|
|
47010
47049
|
this.eventNotifiers.push(e);
|
|
47011
47050
|
};
|
|
47012
47051
|
//#endregion
|
|
47013
47052
|
//#region src/scripts/GraphicsHighlight.js
|
|
47014
|
-
var
|
|
47053
|
+
var RO = (e, t, n, r) => {
|
|
47015
47054
|
for (let i = 0; i < e.length; i++) if (e[i] && e[i].material && e[i].material.emissive) {
|
|
47016
47055
|
let a = e[i].userData;
|
|
47017
47056
|
if (a && a.isZincObject) {
|
|
47018
47057
|
let e = t;
|
|
47019
47058
|
r === "highlight" && "highlightColour" in a.userData && (e = a.userData.highlightColour), r === "select" && "selectedColour" in a.userData && (e = a.userData.selectedColour), e && a.setEmissiveRGB(e);
|
|
47020
47059
|
} else e[i].material && e[i].material.emissive && e[i].material.emissive.setRGB(...t);
|
|
47021
|
-
n && e[i].material.depthFunc && (e[i].material.depthFunc =
|
|
47060
|
+
n && e[i].material.depthFunc && (e[i].material.depthFunc = TD.THREE.LessEqualDepth), e[i].children.forEach((e) => {
|
|
47022
47061
|
let n = e.userData;
|
|
47023
47062
|
n && n.isZincObject && e.material && e.material.emissive && e.material.emissive.setRGB(...t);
|
|
47024
47063
|
});
|
|
47025
47064
|
}
|
|
47026
|
-
},
|
|
47065
|
+
}, zO = function() {
|
|
47027
47066
|
let e = [], t = [];
|
|
47028
47067
|
this.highlightColour = [
|
|
47029
47068
|
.5,
|
|
@@ -47064,12 +47103,12 @@ var FO = (e, t, n, r) => {
|
|
|
47064
47103
|
let r = [...e];
|
|
47065
47104
|
this.setNervesStyle(r), i.resetHighlighted();
|
|
47066
47105
|
let c = o(n, t), l = s(c);
|
|
47067
|
-
return this.setNervesStyle(c,
|
|
47106
|
+
return this.setNervesStyle(c, ED.HIGHLIGHTED_COLOUR), RO(l, i.highlightColour, !1, "highlight"), e = c, a(e, r);
|
|
47068
47107
|
}, this.setSelected = function(e) {
|
|
47069
47108
|
let n = [...t];
|
|
47070
47109
|
this.setNervesStyle(n), i.resetHighlighted(), i.resetSelected();
|
|
47071
47110
|
let r = s(e);
|
|
47072
|
-
return this.setNervesStyle(e,
|
|
47111
|
+
return this.setNervesStyle(e, ED.SELECTED_COLOUR), RO(r, i.selectColour, !1, "select"), t = e, a(t, n);
|
|
47073
47112
|
};
|
|
47074
47113
|
let s = function(e) {
|
|
47075
47114
|
r.length = 0;
|
|
@@ -47077,9 +47116,9 @@ var FO = (e, t, n, r) => {
|
|
|
47077
47116
|
return r;
|
|
47078
47117
|
};
|
|
47079
47118
|
this.setNervesStyle = function(e, t) {
|
|
47080
|
-
let n =
|
|
47119
|
+
let n = JD(e);
|
|
47081
47120
|
if (n && n.length) {
|
|
47082
|
-
let e = t ?
|
|
47121
|
+
let e = t ? ED.ZOOM_RADIUS : ED.DEFAULT_RADIUS, r = t ? ED.ZOOM_RADIAL_SEGMENTS : ED.DEFAULT_RADIAL_SEGMENTS;
|
|
47083
47122
|
n.forEach((n) => {
|
|
47084
47123
|
if (n.isTubeLines && n.userData?.isNerves && !n.userData?.isGreyScale) {
|
|
47085
47124
|
n.setTubeLines(e, r);
|
|
@@ -47090,31 +47129,31 @@ var FO = (e, t, n, r) => {
|
|
|
47090
47129
|
}
|
|
47091
47130
|
}, this.resetHighlighted = function() {
|
|
47092
47131
|
let t = s(e);
|
|
47093
|
-
this.setNervesStyle(e),
|
|
47132
|
+
this.setNervesStyle(e), RO(t, i.originalColour, !0, "reset"), e = [];
|
|
47094
47133
|
}, this.resetSelected = function() {
|
|
47095
47134
|
let n = s(t);
|
|
47096
|
-
this.setNervesStyle(e),
|
|
47135
|
+
this.setNervesStyle(e), RO(n, i.originalColour, !0, "reset"), t = [];
|
|
47097
47136
|
}, this.getSelected = function() {
|
|
47098
47137
|
return t;
|
|
47099
47138
|
}, this.reset = function() {
|
|
47100
47139
|
i.resetSelected(), i.resetHighlighted();
|
|
47101
47140
|
};
|
|
47102
|
-
},
|
|
47141
|
+
}, BO = TD.default.THREE, VO = function() {
|
|
47103
47142
|
let e = document.createElement("div"), t;
|
|
47104
|
-
if (e.style.height = "100%",
|
|
47143
|
+
if (e.style.height = "100%", FO.isWebGLAvailable()) t = new TD.default.Renderer(e, window), TD.default.defaultMaterialColor = 16777116, t.initialiseVisualisation(), t.playAnimation = !1;
|
|
47105
47144
|
else {
|
|
47106
|
-
let t =
|
|
47145
|
+
let t = FO.getWebGLErrorMessage();
|
|
47107
47146
|
e.appendChild(t);
|
|
47108
47147
|
}
|
|
47109
47148
|
return {
|
|
47110
|
-
Zinc:
|
|
47149
|
+
Zinc: TD.default,
|
|
47111
47150
|
renderer: t,
|
|
47112
47151
|
container: e
|
|
47113
47152
|
};
|
|
47114
|
-
},
|
|
47115
|
-
|
|
47153
|
+
}, HO = function() {
|
|
47154
|
+
LO.call(this), this.scene = void 0, this.rendererContainer = void 0, this.displayArea = void 0, this.graphicsHighlight = new zO(), this.selectObjectOnPick = !0, this.zincRenderer = null, this.selectedScreenCoordinates = new BO.Vector3(), this.selectedCenter = void 0, this.liveUpdatesObjects = void 0, this.ignorePreviousSelected = !1;
|
|
47116
47155
|
};
|
|
47117
|
-
|
|
47156
|
+
HO.prototype = Object.create(LO.prototype), HO.prototype.getIntersectedObject = function(e) {
|
|
47118
47157
|
if (e) {
|
|
47119
47158
|
let t = e.map((e) => {
|
|
47120
47159
|
if (e && e.object && e.object.userData) {
|
|
@@ -47125,7 +47164,7 @@ zO.prototype = Object.create(PO.prototype), zO.prototype.getIntersectedObject =
|
|
|
47125
47164
|
}), n = t.indexOf(1);
|
|
47126
47165
|
return n > -1 ? e[n] : (n = t.indexOf(2), n = n > -1 ? n : t.indexOf(3), e[n]);
|
|
47127
47166
|
}
|
|
47128
|
-
},
|
|
47167
|
+
}, HO.prototype.getAnnotationsFromObjects = function(e, t) {
|
|
47129
47168
|
let n = [];
|
|
47130
47169
|
for (var r = 0; r < e.length; r++) {
|
|
47131
47170
|
let i = e[r].userData, a;
|
|
@@ -47139,36 +47178,36 @@ zO.prototype = Object.create(PO.prototype), zO.prototype.getIntersectedObject =
|
|
|
47139
47178
|
a && n.push(a);
|
|
47140
47179
|
}
|
|
47141
47180
|
return n;
|
|
47142
|
-
},
|
|
47143
|
-
let i =
|
|
47181
|
+
}, HO.prototype.setHighlightedByObjects = function(e, t, n, r) {
|
|
47182
|
+
let i = JD(e), a = this.graphicsHighlight.setHighlighted(e);
|
|
47144
47183
|
if (r) {
|
|
47145
|
-
let r =
|
|
47146
|
-
a && (r =
|
|
47184
|
+
let r = jO.MOVE;
|
|
47185
|
+
a && (r = jO.HIGHLIGHTED);
|
|
47147
47186
|
let o = this.getAnnotationsFromObjects(e, n);
|
|
47148
47187
|
o.length > 0 && (o[0].coords = t, o[0].extraData = n), this.publishChanges(o, r, i);
|
|
47149
47188
|
}
|
|
47150
47189
|
return a;
|
|
47151
|
-
},
|
|
47190
|
+
}, HO.prototype.setHighlightedByZincObjects = function(e, t, n, r) {
|
|
47152
47191
|
let i = [];
|
|
47153
47192
|
return e && e.forEach((e) => {
|
|
47154
47193
|
e && e.getMorph() && i.push(e.getMorph());
|
|
47155
47194
|
}), this.setHighlightedByObjects(i, t, n, r);
|
|
47156
|
-
},
|
|
47195
|
+
}, HO.prototype.setupLiveCoordinates = function(e) {
|
|
47157
47196
|
if (this.liveUpdatesObjects = e, e && e.length > 0) {
|
|
47158
|
-
let t = this.scene.getBoundingBoxOfZincObjects(e), n = new
|
|
47197
|
+
let t = this.scene.getBoundingBoxOfZincObjects(e), n = new BO.Vector3();
|
|
47159
47198
|
t ? (t.getCenter(n), this.selectedCenter == null ? this.selectedCenter = n : this.selectedCenter.copy(n)) : this.selectedCenter = void 0;
|
|
47160
47199
|
} else this.selectedCenter = void 0;
|
|
47161
|
-
},
|
|
47200
|
+
}, HO.prototype.setSelectedByObjects = function(e, t, n, r) {
|
|
47162
47201
|
let i = !1;
|
|
47163
47202
|
if (i = !this.selectObjectOnPick || this.graphicsHighlight.setSelected(e), i || this.ignorePreviousSelected) {
|
|
47164
|
-
let i =
|
|
47203
|
+
let i = JD(e);
|
|
47165
47204
|
if (this.selectObjectOnPick && this.setupLiveCoordinates(i), r) {
|
|
47166
|
-
let r =
|
|
47205
|
+
let r = jO.SELECTED, a = this.getAnnotationsFromObjects(e, n);
|
|
47167
47206
|
a.length > 0 && (a[0].coords = t, a[0].extraData = n), this.publishChanges(a, r, i);
|
|
47168
47207
|
}
|
|
47169
47208
|
}
|
|
47170
47209
|
return i;
|
|
47171
|
-
},
|
|
47210
|
+
}, HO.prototype.setSelectedByZincObjects = function(e, t, n, r) {
|
|
47172
47211
|
let i = [];
|
|
47173
47212
|
return e && e.forEach((e) => {
|
|
47174
47213
|
if (e) {
|
|
@@ -47176,46 +47215,46 @@ zO.prototype = Object.create(PO.prototype), zO.prototype.getIntersectedObject =
|
|
|
47176
47215
|
t && i.push(t);
|
|
47177
47216
|
}
|
|
47178
47217
|
}), this.setSelectedByObjects(i, t, n, r);
|
|
47179
|
-
},
|
|
47218
|
+
}, HO.prototype.findObjectsByGroupName = function(e) {
|
|
47180
47219
|
return this.scene.findObjectsWithGroupName(e);
|
|
47181
|
-
},
|
|
47220
|
+
}, HO.prototype.setHighlightedByGroupName = function(e, t) {
|
|
47182
47221
|
let n = this.findObjectsByGroupName(e);
|
|
47183
47222
|
return this.setHighlightedByObjects(n, void 0, {}, t);
|
|
47184
|
-
},
|
|
47223
|
+
}, HO.prototype.setSelectedByGroupName = function(e, t) {
|
|
47185
47224
|
let n = this.findObjectsByGroupName(e);
|
|
47186
47225
|
return this.setSelectedByObjects(n, void 0, {}, t);
|
|
47187
|
-
},
|
|
47188
|
-
let t = new
|
|
47226
|
+
}, HO.prototype.changeBackgroundColour = function(e) {
|
|
47227
|
+
let t = new BO.Color(e);
|
|
47189
47228
|
this.zincRenderer && this.zincRenderer.getThreeJSRenderer().setClearColor(t, 1);
|
|
47190
|
-
},
|
|
47229
|
+
}, HO.prototype.resetView = function() {
|
|
47191
47230
|
this.zincRenderer && this.zincRenderer.resetView();
|
|
47192
|
-
},
|
|
47231
|
+
}, HO.prototype.viewAll = function() {
|
|
47193
47232
|
this.zincRenderer && this.zincRenderer.viewAll();
|
|
47194
|
-
},
|
|
47233
|
+
}, HO.prototype.playAnimation = function(e) {
|
|
47195
47234
|
this.zincRenderer && (this.zincRenderer.playAnimation = e);
|
|
47196
|
-
},
|
|
47235
|
+
}, HO.prototype.setPlayRate = function(e) {
|
|
47197
47236
|
this.zincRenderer && this.zincRenderer.setPlayRate(e);
|
|
47198
|
-
},
|
|
47237
|
+
}, HO.prototype.getPlayRate = function(e) {
|
|
47199
47238
|
return this.zincRenderer ? this.zincRenderer.getPlayRate() : 0;
|
|
47200
|
-
},
|
|
47239
|
+
}, HO.prototype.initialiseRenderer = function(e) {
|
|
47201
47240
|
if (this.zincRenderer === void 0 || this.rendererContainer === void 0) {
|
|
47202
|
-
let e =
|
|
47241
|
+
let e = VO();
|
|
47203
47242
|
this.Zinc = e.Zinc, this.zincRenderer = e.renderer, this.rendererContainer = e.container;
|
|
47204
47243
|
}
|
|
47205
47244
|
e && (this.displayArea = e, this.displayArea.appendChild(this.rendererContainer), this.zincRenderer && this.zincRenderer.animate());
|
|
47206
|
-
},
|
|
47207
|
-
this.zincRenderer &&= (this.zincRenderer.dispose(), this.zincRenderer.getThreeJSRenderer().dispose(), void 0),
|
|
47245
|
+
}, HO.prototype.destroy = function() {
|
|
47246
|
+
this.zincRenderer &&= (this.zincRenderer.dispose(), this.zincRenderer.getThreeJSRenderer().dispose(), void 0), LO.prototype.destroy.call(this);
|
|
47208
47247
|
};
|
|
47209
47248
|
//#endregion
|
|
47210
47249
|
//#region src/scripts/Annotation.js
|
|
47211
|
-
var
|
|
47250
|
+
var UO = function() {
|
|
47212
47251
|
this.type = "anatomical", this.data = void 0, this.isAnnotation = !0;
|
|
47213
|
-
},
|
|
47252
|
+
}, WO = function() {
|
|
47214
47253
|
this.currentName = "", this.currentSystem = "", this.currentPart = "", this.currentSpecies = "", this.metaURL = "", this.viewURL = "", this.timeVarying = !1, this.currentTime = 0;
|
|
47215
|
-
},
|
|
47216
|
-
|
|
47254
|
+
}, GO = function(e) {
|
|
47255
|
+
HO.call(this);
|
|
47217
47256
|
let t = this;
|
|
47218
|
-
this.sceneData = new
|
|
47257
|
+
this.sceneData = new WO();
|
|
47219
47258
|
let n = [], r = [], i = [], a = [], o, s, c = e;
|
|
47220
47259
|
this.NDCCameraControl = void 0, t.typeName = "Organ Viewer";
|
|
47221
47260
|
let l = !1;
|
|
@@ -47252,7 +47291,7 @@ var BO = function() {
|
|
|
47252
47291
|
};
|
|
47253
47292
|
let d = function() {
|
|
47254
47293
|
if (t.zincRenderer.playAnimation && t.liveUpdatesObjects && t.setupLiveCoordinates(t.liveUpdatesObjects), t.selectedCenter) {
|
|
47255
|
-
let e = new
|
|
47294
|
+
let e = new TD.THREE.Vector3();
|
|
47256
47295
|
e.copy(t.selectedCenter);
|
|
47257
47296
|
let n = t.scene.vectorToScreenXY(e);
|
|
47258
47297
|
t.selectedScreenCoordinates.x = n.x, t.selectedScreenCoordinates.y = n.y;
|
|
@@ -47285,7 +47324,7 @@ var BO = function() {
|
|
|
47285
47324
|
}, this.unsetDownloadErrorCallback = function() {
|
|
47286
47325
|
s = void 0;
|
|
47287
47326
|
}, this.getNamedObjectsToScreenCoordinates = function(e, t) {
|
|
47288
|
-
let n = new
|
|
47327
|
+
let n = new TD.THREE.Vector3();
|
|
47289
47328
|
n.setFromMatrixPosition(obj.matrixWorld);
|
|
47290
47329
|
let r = width / 2, i = height / 2;
|
|
47291
47330
|
return n.project(t), n.x = n.x * r + r, n.y = -(n.y * i) + i, n;
|
|
@@ -47384,13 +47423,13 @@ var BO = function() {
|
|
|
47384
47423
|
t.changeOrganPartsVisibility(e, n);
|
|
47385
47424
|
};
|
|
47386
47425
|
}, this.changeBackgroundColour = function(e) {
|
|
47387
|
-
let n = new
|
|
47426
|
+
let n = new TD.THREE.Color(e);
|
|
47388
47427
|
t.zincRenderer && t.zincRenderer.getThreeJSRenderer().setClearColor(n, 1);
|
|
47389
47428
|
};
|
|
47390
47429
|
let v = function(e, n, r, a) {
|
|
47391
47430
|
for (let e = 0; e < i.length; e++) i[e](a, t.scene.isTimeVarying());
|
|
47392
47431
|
r && c.setGeometryColour(a, e, n);
|
|
47393
|
-
let o = new
|
|
47432
|
+
let o = new UO(), s = a.region.getFullPath();
|
|
47394
47433
|
o.data = {
|
|
47395
47434
|
species: t.sceneData.currentSpecies,
|
|
47396
47435
|
system: e,
|
|
@@ -47448,7 +47487,7 @@ var BO = function() {
|
|
|
47448
47487
|
}
|
|
47449
47488
|
return r;
|
|
47450
47489
|
}, this.getCentreAndSize = function() {
|
|
47451
|
-
let e = new
|
|
47490
|
+
let e = new TD.THREE.Vector3(), t = this.scene.getBoundingBox();
|
|
47452
47491
|
t.getCenter(e);
|
|
47453
47492
|
let n = [
|
|
47454
47493
|
e.x,
|
|
@@ -47501,10 +47540,10 @@ var BO = function() {
|
|
|
47501
47540
|
t.initialiseRenderer(void 0), t.zincRenderer && (t.zincRenderer.addPreRenderCallbackFunction(f()), t.zincRenderer.addPostRenderCallbackFunction(p()));
|
|
47502
47541
|
}();
|
|
47503
47542
|
};
|
|
47504
|
-
|
|
47543
|
+
GO.prototype = Object.create(HO.prototype);
|
|
47505
47544
|
//#endregion
|
|
47506
47545
|
//#region node_modules/minisearch/dist/es/index.js
|
|
47507
|
-
var
|
|
47546
|
+
var KO = "ENTRIES", qO = "KEYS", JO = "VALUES", YO = "", XO = class {
|
|
47508
47547
|
constructor(e, t) {
|
|
47509
47548
|
let n = e._tree, r = Array.from(n.keys());
|
|
47510
47549
|
this.set = e, this._type = t, this._path = r.length > 0 ? [{
|
|
@@ -47521,12 +47560,12 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47521
47560
|
done: !0,
|
|
47522
47561
|
value: void 0
|
|
47523
47562
|
};
|
|
47524
|
-
let { node: e, keys: t } =
|
|
47525
|
-
if (
|
|
47563
|
+
let { node: e, keys: t } = ZO(this._path);
|
|
47564
|
+
if (ZO(t) === YO) return {
|
|
47526
47565
|
done: !1,
|
|
47527
47566
|
value: this.result()
|
|
47528
47567
|
};
|
|
47529
|
-
let n = e.get(
|
|
47568
|
+
let n = e.get(ZO(t));
|
|
47530
47569
|
return this._path.push({
|
|
47531
47570
|
node: n,
|
|
47532
47571
|
keys: Array.from(n.keys())
|
|
@@ -47534,35 +47573,35 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47534
47573
|
}
|
|
47535
47574
|
backtrack() {
|
|
47536
47575
|
if (this._path.length === 0) return;
|
|
47537
|
-
let e =
|
|
47576
|
+
let e = ZO(this._path).keys;
|
|
47538
47577
|
e.pop(), !(e.length > 0) && (this._path.pop(), this.backtrack());
|
|
47539
47578
|
}
|
|
47540
47579
|
key() {
|
|
47541
|
-
return this.set._prefix + this._path.map(({ keys: e }) =>
|
|
47580
|
+
return this.set._prefix + this._path.map(({ keys: e }) => ZO(e)).filter((e) => e !== YO).join("");
|
|
47542
47581
|
}
|
|
47543
47582
|
value() {
|
|
47544
|
-
return
|
|
47583
|
+
return ZO(this._path).node.get(YO);
|
|
47545
47584
|
}
|
|
47546
47585
|
result() {
|
|
47547
47586
|
switch (this._type) {
|
|
47548
|
-
case
|
|
47549
|
-
case
|
|
47587
|
+
case JO: return this.value();
|
|
47588
|
+
case qO: return this.key();
|
|
47550
47589
|
default: return [this.key(), this.value()];
|
|
47551
47590
|
}
|
|
47552
47591
|
}
|
|
47553
47592
|
[Symbol.iterator]() {
|
|
47554
47593
|
return this;
|
|
47555
47594
|
}
|
|
47556
|
-
},
|
|
47595
|
+
}, ZO = (e) => e[e.length - 1], QO = (e, t, n) => {
|
|
47557
47596
|
let r = /* @__PURE__ */ new Map();
|
|
47558
47597
|
if (t === void 0) return r;
|
|
47559
47598
|
let i = t.length + 1, a = i + n, o = new Uint8Array(a * i).fill(n + 1);
|
|
47560
47599
|
for (let e = 0; e < i; ++e) o[e] = e;
|
|
47561
47600
|
for (let e = 1; e < a; ++e) o[e * i] = e;
|
|
47562
|
-
return
|
|
47563
|
-
},
|
|
47601
|
+
return $O(e, t, n, r, o, 1, i, ""), r;
|
|
47602
|
+
}, $O = (e, t, n, r, i, a, o, s) => {
|
|
47564
47603
|
let c = a * o;
|
|
47565
|
-
key: for (let l of e.keys()) if (l ===
|
|
47604
|
+
key: for (let l of e.keys()) if (l === YO) {
|
|
47566
47605
|
let t = i[c - 1];
|
|
47567
47606
|
t <= n && r.set(s, [e.get(l), t]);
|
|
47568
47607
|
} else {
|
|
@@ -47575,18 +47614,18 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47575
47614
|
}
|
|
47576
47615
|
if (u > n) continue key;
|
|
47577
47616
|
}
|
|
47578
|
-
|
|
47617
|
+
$O(e.get(l), t, n, r, i, c, o, s + l);
|
|
47579
47618
|
}
|
|
47580
|
-
},
|
|
47619
|
+
}, ek = class e {
|
|
47581
47620
|
constructor(e = /* @__PURE__ */ new Map(), t = "") {
|
|
47582
47621
|
this._size = void 0, this._tree = e, this._prefix = t;
|
|
47583
47622
|
}
|
|
47584
47623
|
atPrefix(t) {
|
|
47585
47624
|
if (!t.startsWith(this._prefix)) throw Error("Mismatched prefix");
|
|
47586
|
-
let [n, r] =
|
|
47625
|
+
let [n, r] = tk(this._tree, t.slice(this._prefix.length));
|
|
47587
47626
|
if (n === void 0) {
|
|
47588
|
-
let [n, i] =
|
|
47589
|
-
for (let r of n.keys()) if (r !==
|
|
47627
|
+
let [n, i] = sk(r);
|
|
47628
|
+
for (let r of n.keys()) if (r !== YO && r.startsWith(i)) {
|
|
47590
47629
|
let a = /* @__PURE__ */ new Map();
|
|
47591
47630
|
return a.set(r.slice(i.length), n.get(r)), new e(a, t);
|
|
47592
47631
|
}
|
|
@@ -47597,31 +47636,31 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47597
47636
|
this._size = void 0, this._tree.clear();
|
|
47598
47637
|
}
|
|
47599
47638
|
delete(e) {
|
|
47600
|
-
return this._size = void 0,
|
|
47639
|
+
return this._size = void 0, ik(this._tree, e);
|
|
47601
47640
|
}
|
|
47602
47641
|
entries() {
|
|
47603
|
-
return new
|
|
47642
|
+
return new XO(this, KO);
|
|
47604
47643
|
}
|
|
47605
47644
|
forEach(e) {
|
|
47606
47645
|
for (let [t, n] of this) e(t, n, this);
|
|
47607
47646
|
}
|
|
47608
47647
|
fuzzyGet(e, t) {
|
|
47609
|
-
return
|
|
47648
|
+
return QO(this._tree, e, t);
|
|
47610
47649
|
}
|
|
47611
47650
|
get(e) {
|
|
47612
|
-
let t =
|
|
47613
|
-
return t === void 0 ? void 0 : t.get(
|
|
47651
|
+
let t = nk(this._tree, e);
|
|
47652
|
+
return t === void 0 ? void 0 : t.get(YO);
|
|
47614
47653
|
}
|
|
47615
47654
|
has(e) {
|
|
47616
|
-
let t =
|
|
47617
|
-
return t !== void 0 && t.has(
|
|
47655
|
+
let t = nk(this._tree, e);
|
|
47656
|
+
return t !== void 0 && t.has(YO);
|
|
47618
47657
|
}
|
|
47619
47658
|
keys() {
|
|
47620
|
-
return new
|
|
47659
|
+
return new XO(this, qO);
|
|
47621
47660
|
}
|
|
47622
47661
|
set(e, t) {
|
|
47623
47662
|
if (typeof e != "string") throw Error("key must be a string");
|
|
47624
|
-
return this._size = void 0,
|
|
47663
|
+
return this._size = void 0, rk(this._tree, e).set(YO, t), this;
|
|
47625
47664
|
}
|
|
47626
47665
|
get size() {
|
|
47627
47666
|
if (this._size) return this._size;
|
|
@@ -47633,17 +47672,17 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47633
47672
|
update(e, t) {
|
|
47634
47673
|
if (typeof e != "string") throw Error("key must be a string");
|
|
47635
47674
|
this._size = void 0;
|
|
47636
|
-
let n =
|
|
47637
|
-
return n.set(
|
|
47675
|
+
let n = rk(this._tree, e);
|
|
47676
|
+
return n.set(YO, t(n.get(YO))), this;
|
|
47638
47677
|
}
|
|
47639
47678
|
fetch(e, t) {
|
|
47640
47679
|
if (typeof e != "string") throw Error("key must be a string");
|
|
47641
47680
|
this._size = void 0;
|
|
47642
|
-
let n =
|
|
47643
|
-
return r === void 0 && n.set(
|
|
47681
|
+
let n = rk(this._tree, e), r = n.get(YO);
|
|
47682
|
+
return r === void 0 && n.set(YO, r = t()), r;
|
|
47644
47683
|
}
|
|
47645
47684
|
values() {
|
|
47646
|
-
return new
|
|
47685
|
+
return new XO(this, JO);
|
|
47647
47686
|
}
|
|
47648
47687
|
[Symbol.iterator]() {
|
|
47649
47688
|
return this.entries();
|
|
@@ -47656,17 +47695,17 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47656
47695
|
static fromObject(t) {
|
|
47657
47696
|
return e.from(Object.entries(t));
|
|
47658
47697
|
}
|
|
47659
|
-
},
|
|
47698
|
+
}, tk = (e, t, n = []) => {
|
|
47660
47699
|
if (t.length === 0 || e == null) return [e, n];
|
|
47661
|
-
for (let r of e.keys()) if (r !==
|
|
47662
|
-
return n.push([e, t]),
|
|
47663
|
-
},
|
|
47700
|
+
for (let r of e.keys()) if (r !== YO && t.startsWith(r)) return n.push([e, r]), tk(e.get(r), t.slice(r.length), n);
|
|
47701
|
+
return n.push([e, t]), tk(void 0, "", n);
|
|
47702
|
+
}, nk = (e, t) => {
|
|
47664
47703
|
if (t.length === 0 || e == null) return e;
|
|
47665
|
-
for (let n of e.keys()) if (n !==
|
|
47666
|
-
},
|
|
47704
|
+
for (let n of e.keys()) if (n !== YO && t.startsWith(n)) return nk(e.get(n), t.slice(n.length));
|
|
47705
|
+
}, rk = (e, t) => {
|
|
47667
47706
|
let n = t.length;
|
|
47668
47707
|
outer: for (let r = 0; e && r < n;) {
|
|
47669
|
-
for (let i of e.keys()) if (i !==
|
|
47708
|
+
for (let i of e.keys()) if (i !== YO && t[r] === i[0]) {
|
|
47670
47709
|
let a = Math.min(n - r, i.length), o = 1;
|
|
47671
47710
|
for (; o < a && t[r + o] === i[o];) ++o;
|
|
47672
47711
|
let s = e.get(i);
|
|
@@ -47682,44 +47721,44 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47682
47721
|
return e.set(t.slice(r), i), i;
|
|
47683
47722
|
}
|
|
47684
47723
|
return e;
|
|
47685
|
-
},
|
|
47686
|
-
let [n, r] =
|
|
47724
|
+
}, ik = (e, t) => {
|
|
47725
|
+
let [n, r] = tk(e, t);
|
|
47687
47726
|
if (n !== void 0) {
|
|
47688
|
-
if (n.delete(
|
|
47727
|
+
if (n.delete(YO), n.size === 0) ak(r);
|
|
47689
47728
|
else if (n.size === 1) {
|
|
47690
47729
|
let [e, t] = n.entries().next().value;
|
|
47691
|
-
|
|
47730
|
+
ok(r, e, t);
|
|
47692
47731
|
}
|
|
47693
47732
|
}
|
|
47694
|
-
},
|
|
47733
|
+
}, ak = (e) => {
|
|
47695
47734
|
if (e.length === 0) return;
|
|
47696
|
-
let [t, n] =
|
|
47697
|
-
if (t.delete(n), t.size === 0)
|
|
47735
|
+
let [t, n] = sk(e);
|
|
47736
|
+
if (t.delete(n), t.size === 0) ak(e.slice(0, -1));
|
|
47698
47737
|
else if (t.size === 1) {
|
|
47699
47738
|
let [n, r] = t.entries().next().value;
|
|
47700
|
-
n !==
|
|
47739
|
+
n !== YO && ok(e.slice(0, -1), n, r);
|
|
47701
47740
|
}
|
|
47702
|
-
},
|
|
47741
|
+
}, ok = (e, t, n) => {
|
|
47703
47742
|
if (e.length === 0) return;
|
|
47704
|
-
let [r, i] =
|
|
47743
|
+
let [r, i] = sk(e);
|
|
47705
47744
|
r.set(i + t, n), r.delete(i);
|
|
47706
|
-
},
|
|
47745
|
+
}, sk = (e) => e[e.length - 1], ck = "or", lk = "and", uk = "and_not", dk = class e {
|
|
47707
47746
|
constructor(e) {
|
|
47708
47747
|
if (e?.fields == null) throw Error("MiniSearch: option \"fields\" must be provided");
|
|
47709
|
-
let t = e.autoVacuum == null || e.autoVacuum === !0 ?
|
|
47748
|
+
let t = e.autoVacuum == null || e.autoVacuum === !0 ? Sk : e.autoVacuum;
|
|
47710
47749
|
this._options = {
|
|
47711
|
-
...
|
|
47750
|
+
..._k,
|
|
47712
47751
|
...e,
|
|
47713
47752
|
autoVacuum: t,
|
|
47714
47753
|
searchOptions: {
|
|
47715
|
-
...
|
|
47754
|
+
...vk,
|
|
47716
47755
|
...e.searchOptions || {}
|
|
47717
47756
|
},
|
|
47718
47757
|
autoSuggestOptions: {
|
|
47719
|
-
...
|
|
47758
|
+
...yk,
|
|
47720
47759
|
...e.autoSuggestOptions || {}
|
|
47721
47760
|
}
|
|
47722
|
-
}, this._index = new
|
|
47761
|
+
}, this._index = new ek(), this._documentCount = 0, this._documentIds = /* @__PURE__ */ new Map(), this._idToShortId = /* @__PURE__ */ new Map(), this._fieldIds = {}, this._fieldLength = /* @__PURE__ */ new Map(), this._avgFieldLength = [], this._nextId = 0, this._storedFields = /* @__PURE__ */ new Map(), this._dirtCount = 0, this._currentVacuum = null, this._enqueuedVacuum = null, this._enqueuedVacuumConditions = xk, this.addFields(this._options.fields);
|
|
47723
47762
|
}
|
|
47724
47763
|
add(e) {
|
|
47725
47764
|
let { extractField: t, stringifyField: n, tokenize: r, processTerm: i, fields: a, idField: o } = this._options, s = t(e, o);
|
|
@@ -47776,7 +47815,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47776
47815
|
removeAll(e) {
|
|
47777
47816
|
if (e) for (let t of e) this.remove(t);
|
|
47778
47817
|
else if (arguments.length > 0) throw Error("Expected documents to be present. Omit the argument to remove all documents.");
|
|
47779
|
-
else this._index = new
|
|
47818
|
+
else this._index = new ek(), this._documentCount = 0, this._documentIds = /* @__PURE__ */ new Map(), this._idToShortId = /* @__PURE__ */ new Map(), this._fieldLength = /* @__PURE__ */ new Map(), this._avgFieldLength = [], this._storedFields = /* @__PURE__ */ new Map(), this._nextId = 0;
|
|
47780
47819
|
}
|
|
47781
47820
|
discard(e) {
|
|
47782
47821
|
let t = this._idToShortId.get(e);
|
|
@@ -47816,13 +47855,13 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47816
47855
|
conditionalVacuum(e, t) {
|
|
47817
47856
|
return this._currentVacuum ? (this._enqueuedVacuumConditions = this._enqueuedVacuumConditions && t, this._enqueuedVacuum ??= this._currentVacuum.then(() => {
|
|
47818
47857
|
let t = this._enqueuedVacuumConditions;
|
|
47819
|
-
return this._enqueuedVacuumConditions =
|
|
47858
|
+
return this._enqueuedVacuumConditions = xk, this.performVacuuming(e, t);
|
|
47820
47859
|
}), this._enqueuedVacuum) : this.vacuumConditionsMet(t) === !1 ? Promise.resolve() : (this._currentVacuum = this.performVacuuming(e), this._currentVacuum);
|
|
47821
47860
|
}
|
|
47822
47861
|
async performVacuuming(e, t) {
|
|
47823
47862
|
let n = this._dirtCount;
|
|
47824
47863
|
if (this.vacuumConditionsMet(t)) {
|
|
47825
|
-
let t = e.batchSize ||
|
|
47864
|
+
let t = e.batchSize || bk.batchSize, r = e.batchWait || bk.batchWait, i = 1;
|
|
47826
47865
|
for (let [e, n] of this._index) {
|
|
47827
47866
|
for (let [e, t] of n) for (let [r] of t) this._documentIds.has(r) || (t.size <= 1 ? n.delete(e) : t.delete(r));
|
|
47828
47867
|
this._index.get(e).size === 0 && this._index.delete(e), i % t === 0 && await new Promise((e) => setTimeout(e, r)), i += 1;
|
|
@@ -47834,7 +47873,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47834
47873
|
vacuumConditionsMet(e) {
|
|
47835
47874
|
if (e == null) return !0;
|
|
47836
47875
|
let { minDirtCount: t, minDirtFactor: n } = e;
|
|
47837
|
-
return t ||=
|
|
47876
|
+
return t ||= Sk.minDirtCount, n ||= Sk.minDirtFactor, this.dirtCount >= t && this.dirtFactor >= n;
|
|
47838
47877
|
}
|
|
47839
47878
|
get isVacuuming() {
|
|
47840
47879
|
return this._currentVacuum != null;
|
|
@@ -47867,7 +47906,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47867
47906
|
};
|
|
47868
47907
|
Object.assign(s, this._storedFields.get(e)), (i.filter == null || i.filter(s)) && o.push(s);
|
|
47869
47908
|
}
|
|
47870
|
-
return t === e.wildcard && i.boostDocument == null || o.sort(
|
|
47909
|
+
return t === e.wildcard && i.boostDocument == null || o.sort(Tk), o;
|
|
47871
47910
|
}
|
|
47872
47911
|
autoSuggest(e, t = {}) {
|
|
47873
47912
|
t = {
|
|
@@ -47889,7 +47928,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47889
47928
|
terms: i,
|
|
47890
47929
|
score: t / a
|
|
47891
47930
|
});
|
|
47892
|
-
return r.sort(
|
|
47931
|
+
return r.sort(Tk), r;
|
|
47893
47932
|
}
|
|
47894
47933
|
get documentCount() {
|
|
47895
47934
|
return this._documentCount;
|
|
@@ -47906,18 +47945,18 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47906
47945
|
return this.loadJSAsync(JSON.parse(e), t);
|
|
47907
47946
|
}
|
|
47908
47947
|
static getDefault(e) {
|
|
47909
|
-
if (
|
|
47948
|
+
if (_k.hasOwnProperty(e)) return fk(_k, e);
|
|
47910
47949
|
throw Error(`MiniSearch: unknown option "${e}"`);
|
|
47911
47950
|
}
|
|
47912
47951
|
static loadJS(e, t) {
|
|
47913
47952
|
let { index: n, documentIds: r, fieldLength: i, storedFields: a, serializationVersion: o } = e, s = this.instantiateMiniSearch(e, t);
|
|
47914
|
-
s._documentIds =
|
|
47953
|
+
s._documentIds = Dk(r), s._fieldLength = Dk(i), s._storedFields = Dk(a);
|
|
47915
47954
|
for (let [e, t] of s._documentIds) s._idToShortId.set(t, e);
|
|
47916
47955
|
for (let [e, t] of n) {
|
|
47917
47956
|
let n = /* @__PURE__ */ new Map();
|
|
47918
47957
|
for (let e of Object.keys(t)) {
|
|
47919
47958
|
let r = t[e];
|
|
47920
|
-
o === 1 && (r = r.ds), n.set(parseInt(e, 10),
|
|
47959
|
+
o === 1 && (r = r.ds), n.set(parseInt(e, 10), Dk(r));
|
|
47921
47960
|
}
|
|
47922
47961
|
s._index.set(e, n);
|
|
47923
47962
|
}
|
|
@@ -47925,16 +47964,16 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47925
47964
|
}
|
|
47926
47965
|
static async loadJSAsync(e, t) {
|
|
47927
47966
|
let { index: n, documentIds: r, fieldLength: i, storedFields: a, serializationVersion: o } = e, s = this.instantiateMiniSearch(e, t);
|
|
47928
|
-
s._documentIds = await
|
|
47967
|
+
s._documentIds = await Ok(r), s._fieldLength = await Ok(i), s._storedFields = await Ok(a);
|
|
47929
47968
|
for (let [e, t] of s._documentIds) s._idToShortId.set(t, e);
|
|
47930
47969
|
let c = 0;
|
|
47931
47970
|
for (let [e, t] of n) {
|
|
47932
47971
|
let n = /* @__PURE__ */ new Map();
|
|
47933
47972
|
for (let e of Object.keys(t)) {
|
|
47934
47973
|
let r = t[e];
|
|
47935
|
-
o === 1 && (r = r.ds), n.set(parseInt(e, 10), await
|
|
47974
|
+
o === 1 && (r = r.ds), n.set(parseInt(e, 10), await Ok(r));
|
|
47936
47975
|
}
|
|
47937
|
-
++c % 1e3 == 0 && await
|
|
47976
|
+
++c % 1e3 == 0 && await kk(0), s._index.set(e, n);
|
|
47938
47977
|
}
|
|
47939
47978
|
return s;
|
|
47940
47979
|
}
|
|
@@ -47942,7 +47981,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47942
47981
|
let { documentCount: r, nextId: i, fieldIds: a, averageFieldLength: o, dirtCount: s, serializationVersion: c } = t;
|
|
47943
47982
|
if (c !== 1 && c !== 2) throw Error("MiniSearch: cannot deserialize an index created with an incompatible version");
|
|
47944
47983
|
let l = new e(n);
|
|
47945
|
-
return l._documentCount = r, l._nextId = i, l._idToShortId = /* @__PURE__ */ new Map(), l._fieldIds = a, l._avgFieldLength = o, l._dirtCount = s || 0, l._index = new
|
|
47984
|
+
return l._documentCount = r, l._nextId = i, l._idToShortId = /* @__PURE__ */ new Map(), l._fieldIds = a, l._avgFieldLength = o, l._dirtCount = s || 0, l._index = new ek(), l;
|
|
47946
47985
|
}
|
|
47947
47986
|
executeQuery(t, n = {}) {
|
|
47948
47987
|
if (t === e.wildcard) return this.executeWildcardQuery(n);
|
|
@@ -47959,7 +47998,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47959
47998
|
processTerm: i,
|
|
47960
47999
|
...a,
|
|
47961
48000
|
...n
|
|
47962
|
-
}, { tokenize: s, processTerm: c } = o, l = s(t).flatMap((e) => c(e)).filter((e) => !!e).map(
|
|
48001
|
+
}, { tokenize: s, processTerm: c } = o, l = s(t).flatMap((e) => c(e)).filter((e) => !!e).map(gk(o)).map((e) => this.executeQuerySpec(e, o));
|
|
47963
48002
|
return this.combineResults(l, o.combineWith);
|
|
47964
48003
|
}
|
|
47965
48004
|
executeQuerySpec(e, t) {
|
|
@@ -47968,9 +48007,9 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
47968
48007
|
...t
|
|
47969
48008
|
}, r = (n.fields || this._options.fields).reduce((e, t) => ({
|
|
47970
48009
|
...e,
|
|
47971
|
-
[t]:
|
|
48010
|
+
[t]: fk(n.boost, t) || 1
|
|
47972
48011
|
}), {}), { boostDocument: i, weights: a, maxFuzzy: o, bm25: s } = n, { fuzzy: c, prefix: l } = {
|
|
47973
|
-
...
|
|
48012
|
+
...vk.weights,
|
|
47974
48013
|
...a
|
|
47975
48014
|
}, u = this._index.get(e.term), d = this.termResults(e.term, e.term, 1, e.termBoost, u, r, i, s), f, p;
|
|
47976
48015
|
if (e.prefix && (f = this._index.atPrefix(e.term)), e.fuzzy) {
|
|
@@ -48007,9 +48046,9 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
48007
48046
|
}
|
|
48008
48047
|
return t;
|
|
48009
48048
|
}
|
|
48010
|
-
combineResults(e, t =
|
|
48049
|
+
combineResults(e, t = ck) {
|
|
48011
48050
|
if (e.length === 0) return /* @__PURE__ */ new Map();
|
|
48012
|
-
let n =
|
|
48051
|
+
let n = pk[t.toLowerCase()];
|
|
48013
48052
|
if (!n) throw Error(`Invalid combination operator: ${t}`);
|
|
48014
48053
|
return e.reduce(n) || /* @__PURE__ */ new Map();
|
|
48015
48054
|
}
|
|
@@ -48046,10 +48085,10 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
48046
48085
|
}
|
|
48047
48086
|
let a = o ? o(this._documentIds.get(i), t, this._storedFields.get(i)) : 1;
|
|
48048
48087
|
if (!a) continue;
|
|
48049
|
-
let h = f.get(i), g = this._fieldLength.get(i)[d], _ =
|
|
48088
|
+
let h = f.get(i), g = this._fieldLength.get(i)[d], _ = hk(h, p, this._documentCount, g, m, s), v = n * r * u * a * _, y = c.get(i);
|
|
48050
48089
|
if (y) {
|
|
48051
|
-
y.score += v,
|
|
48052
|
-
let n =
|
|
48090
|
+
y.score += v, Ck(y.terms, e);
|
|
48091
|
+
let n = fk(y.match, t);
|
|
48053
48092
|
n ? n.push(l) : y.match[t] = [l];
|
|
48054
48093
|
} else c.set(i, {
|
|
48055
48094
|
score: v,
|
|
@@ -48061,7 +48100,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
48061
48100
|
return c;
|
|
48062
48101
|
}
|
|
48063
48102
|
addTerm(e, t, n) {
|
|
48064
|
-
let r = this._index.fetch(n,
|
|
48103
|
+
let r = this._index.fetch(n, Ek), i = r.get(e);
|
|
48065
48104
|
if (i == null) i = /* @__PURE__ */ new Map(), i.set(t, 1), r.set(e, i);
|
|
48066
48105
|
else {
|
|
48067
48106
|
let e = i.get(t);
|
|
@@ -48073,7 +48112,7 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
48073
48112
|
this.warnDocumentChanged(t, e, n);
|
|
48074
48113
|
return;
|
|
48075
48114
|
}
|
|
48076
|
-
let r = this._index.fetch(n,
|
|
48115
|
+
let r = this._index.fetch(n, Ek), i = r.get(e);
|
|
48077
48116
|
i == null || i.get(t) == null ? this.warnDocumentChanged(t, e, n) : i.get(t) <= 1 ? i.size <= 1 ? r.delete(e) : i.delete(t) : i.set(t, i.get(t) - 1), this._index.get(n).size === 0 && this._index.delete(n);
|
|
48078
48117
|
}
|
|
48079
48118
|
warnDocumentChanged(e, t, n) {
|
|
@@ -48114,26 +48153,26 @@ var UO = "ENTRIES", WO = "KEYS", GO = "VALUES", KO = "", qO = class {
|
|
|
48114
48153
|
}
|
|
48115
48154
|
}
|
|
48116
48155
|
};
|
|
48117
|
-
|
|
48118
|
-
var
|
|
48119
|
-
[
|
|
48156
|
+
dk.wildcard = Symbol("*");
|
|
48157
|
+
var fk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, pk = {
|
|
48158
|
+
[ck]: (e, t) => {
|
|
48120
48159
|
for (let n of t.keys()) {
|
|
48121
48160
|
let r = e.get(n);
|
|
48122
48161
|
if (r == null) e.set(n, t.get(n));
|
|
48123
48162
|
else {
|
|
48124
48163
|
let { score: e, terms: i, match: a } = t.get(n);
|
|
48125
|
-
r.score += e, r.match = Object.assign(r.match, a),
|
|
48164
|
+
r.score += e, r.match = Object.assign(r.match, a), wk(r.terms, i);
|
|
48126
48165
|
}
|
|
48127
48166
|
}
|
|
48128
48167
|
return e;
|
|
48129
48168
|
},
|
|
48130
|
-
[
|
|
48169
|
+
[lk]: (e, t) => {
|
|
48131
48170
|
let n = /* @__PURE__ */ new Map();
|
|
48132
48171
|
for (let r of t.keys()) {
|
|
48133
48172
|
let i = e.get(r);
|
|
48134
48173
|
if (i == null) continue;
|
|
48135
48174
|
let { score: a, terms: o, match: s } = t.get(r);
|
|
48136
|
-
|
|
48175
|
+
wk(i.terms, o), n.set(r, {
|
|
48137
48176
|
score: i.score + a,
|
|
48138
48177
|
terms: i.terms,
|
|
48139
48178
|
match: Object.assign(i.match, s)
|
|
@@ -48141,27 +48180,27 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
48141
48180
|
}
|
|
48142
48181
|
return n;
|
|
48143
48182
|
},
|
|
48144
|
-
[
|
|
48183
|
+
[uk]: (e, t) => {
|
|
48145
48184
|
for (let n of t.keys()) e.delete(n);
|
|
48146
48185
|
return e;
|
|
48147
48186
|
}
|
|
48148
|
-
},
|
|
48187
|
+
}, mk = {
|
|
48149
48188
|
k: 1.2,
|
|
48150
48189
|
b: .7,
|
|
48151
48190
|
d: .5
|
|
48152
|
-
},
|
|
48191
|
+
}, hk = (e, t, n, r, i, a) => {
|
|
48153
48192
|
let { k: o, b: s, d: c } = a;
|
|
48154
48193
|
return Math.log(1 + (n - t + .5) / (t + .5)) * (c + e * (o + 1) / (e + o * (1 - s + s * r / i)));
|
|
48155
|
-
},
|
|
48194
|
+
}, gk = (e) => (t, n, r) => ({
|
|
48156
48195
|
term: t,
|
|
48157
48196
|
fuzzy: typeof e.fuzzy == "function" ? e.fuzzy(t, n, r) : e.fuzzy || !1,
|
|
48158
48197
|
prefix: typeof e.prefix == "function" ? e.prefix(t, n, r) : e.prefix === !0,
|
|
48159
48198
|
termBoost: typeof e.boostTerm == "function" ? e.boostTerm(t, n, r) : 1
|
|
48160
|
-
}),
|
|
48199
|
+
}), _k = {
|
|
48161
48200
|
idField: "id",
|
|
48162
48201
|
extractField: (e, t) => e[t],
|
|
48163
48202
|
stringifyField: (e, t) => e.toString(),
|
|
48164
|
-
tokenize: (e) => e.split(
|
|
48203
|
+
tokenize: (e) => e.split(Ak),
|
|
48165
48204
|
processTerm: (e) => e.toLowerCase(),
|
|
48166
48205
|
fields: void 0,
|
|
48167
48206
|
searchOptions: void 0,
|
|
@@ -48170,8 +48209,8 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
48170
48209
|
typeof (console == null ? void 0 : console[e]) == "function" && console[e](t);
|
|
48171
48210
|
},
|
|
48172
48211
|
autoVacuum: !0
|
|
48173
|
-
},
|
|
48174
|
-
combineWith:
|
|
48212
|
+
}, vk = {
|
|
48213
|
+
combineWith: ck,
|
|
48175
48214
|
prefix: !1,
|
|
48176
48215
|
fuzzy: !1,
|
|
48177
48216
|
maxFuzzy: 6,
|
|
@@ -48180,34 +48219,34 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
48180
48219
|
fuzzy: .45,
|
|
48181
48220
|
prefix: .375
|
|
48182
48221
|
},
|
|
48183
|
-
bm25:
|
|
48184
|
-
},
|
|
48185
|
-
combineWith:
|
|
48222
|
+
bm25: mk
|
|
48223
|
+
}, yk = {
|
|
48224
|
+
combineWith: lk,
|
|
48186
48225
|
prefix: (e, t, n) => t === n.length - 1
|
|
48187
|
-
},
|
|
48226
|
+
}, bk = {
|
|
48188
48227
|
batchSize: 1e3,
|
|
48189
48228
|
batchWait: 10
|
|
48190
|
-
},
|
|
48229
|
+
}, xk = {
|
|
48191
48230
|
minDirtFactor: .1,
|
|
48192
48231
|
minDirtCount: 20
|
|
48193
|
-
},
|
|
48194
|
-
...
|
|
48195
|
-
...
|
|
48196
|
-
},
|
|
48232
|
+
}, Sk = {
|
|
48233
|
+
...bk,
|
|
48234
|
+
...xk
|
|
48235
|
+
}, Ck = (e, t) => {
|
|
48197
48236
|
e.includes(t) || e.push(t);
|
|
48198
|
-
},
|
|
48237
|
+
}, wk = (e, t) => {
|
|
48199
48238
|
for (let n of t) e.includes(n) || e.push(n);
|
|
48200
|
-
},
|
|
48239
|
+
}, Tk = ({ score: e }, { score: t }) => t - e, Ek = () => /* @__PURE__ */ new Map(), Dk = (e) => {
|
|
48201
48240
|
let t = /* @__PURE__ */ new Map();
|
|
48202
48241
|
for (let n of Object.keys(e)) t.set(parseInt(n, 10), e[n]);
|
|
48203
48242
|
return t;
|
|
48204
|
-
},
|
|
48243
|
+
}, Ok = async (e) => {
|
|
48205
48244
|
let t = /* @__PURE__ */ new Map(), n = 0;
|
|
48206
|
-
for (let r of Object.keys(e)) t.set(parseInt(r, 10), e[r]), ++n % 1e3 == 0 && await
|
|
48245
|
+
for (let r of Object.keys(e)) t.set(parseInt(r, 10), e[r]), ++n % 1e3 == 0 && await kk(0);
|
|
48207
48246
|
return t;
|
|
48208
|
-
},
|
|
48247
|
+
}, kk = (e) => new Promise((t) => setTimeout(t, e)), Ak = /[\n\r\p{Z}\p{P}]+/u, jk = class {
|
|
48209
48248
|
constructor() {
|
|
48210
|
-
this._searchEngine = new
|
|
48249
|
+
this._searchEngine = new dk({
|
|
48211
48250
|
fields: ["path", "name"],
|
|
48212
48251
|
storeFields: ["path"],
|
|
48213
48252
|
tokenize: (e, t) => e.split(/[\s/]+/)
|
|
@@ -48286,7 +48325,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
48286
48325
|
regionPath: void 0,
|
|
48287
48326
|
label: "Search Results for \""
|
|
48288
48327
|
};
|
|
48289
|
-
return Array.isArray(t) ? n.label += ",".join(t) : n.label += t, n.label += "\"", e.length === 1 && (e[0].isRegion ? n.regionPath = e[0].getFullPath() : e[0].isZincObject && (n.regionPath = e[0].getRegion().getFullPath(), n.label = e[0].groupName)), n.zincObjects =
|
|
48328
|
+
return Array.isArray(t) ? n.label += ",".join(t) : n.label += t, n.label += "\"", e.length === 1 && (e[0].isRegion ? n.regionPath = e[0].getFullPath() : e[0].isZincObject && (n.regionPath = e[0].getRegion().getFullPath(), n.label = e[0].groupName)), n.zincObjects = VD(e), n;
|
|
48290
48329
|
}
|
|
48291
48330
|
search(e) {
|
|
48292
48331
|
let t;
|
|
@@ -48310,7 +48349,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
48310
48349
|
let t = [];
|
|
48311
48350
|
return t = Array.isArray(e) ? this.searchTerms(e) : this.search(e), this.processResults(t, e);
|
|
48312
48351
|
}
|
|
48313
|
-
},
|
|
48352
|
+
}, Mk = [
|
|
48314
48353
|
{
|
|
48315
48354
|
id: 0,
|
|
48316
48355
|
nerve_id: "ILX:0793723",
|
|
@@ -49195,14 +49234,14 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49195
49234
|
"FMA subclasses (in human nerves)": ["FMA:6892", "FMA:6893"],
|
|
49196
49235
|
"subclass labels": ["Right T9 grey ramus communicans", "Left T9 grey ramus communicans"]
|
|
49197
49236
|
}
|
|
49198
|
-
],
|
|
49237
|
+
], Nk = () => {
|
|
49199
49238
|
let e = {};
|
|
49200
|
-
return
|
|
49239
|
+
return Mk.forEach((t) => {
|
|
49201
49240
|
t.nerve_id && t.label !== "nerve" && t["subclass labels"].forEach((n) => {
|
|
49202
49241
|
n in e || (e[n.toLowerCase()] = t.nerve_id);
|
|
49203
49242
|
});
|
|
49204
49243
|
}), e;
|
|
49205
|
-
},
|
|
49244
|
+
}, Pk = [
|
|
49206
49245
|
{
|
|
49207
49246
|
label: "urinary bladder",
|
|
49208
49247
|
anatomicalId: "UBERON:0001255"
|
|
@@ -49239,13 +49278,13 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49239
49278
|
label: "lung",
|
|
49240
49279
|
anatomicalId: "UBERON:0002048"
|
|
49241
49280
|
}
|
|
49242
|
-
],
|
|
49281
|
+
], Fk = () => {
|
|
49243
49282
|
let e = {};
|
|
49244
|
-
return
|
|
49283
|
+
return Pk.forEach((t) => {
|
|
49245
49284
|
let n = t.label.toLowerCase();
|
|
49246
49285
|
n in e || (e[n.toLowerCase()] = t.anatomicalId);
|
|
49247
49286
|
}), e;
|
|
49248
|
-
},
|
|
49287
|
+
}, Ik = Nk(), Lk = Fk(), Rk = 0, zk = {
|
|
49249
49288
|
name: "ScaffoldVuer",
|
|
49250
49289
|
components: {
|
|
49251
49290
|
Button: ug,
|
|
@@ -49263,19 +49302,23 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49263
49302
|
Tabs: ay,
|
|
49264
49303
|
MapSvgIcon: ke,
|
|
49265
49304
|
MapSvgSpriteColor: Ae,
|
|
49266
|
-
PrimitiveControls:
|
|
49267
|
-
ScaffoldTooltip:
|
|
49305
|
+
PrimitiveControls: CO,
|
|
49306
|
+
ScaffoldTooltip: kO,
|
|
49268
49307
|
ElIconWarningFilled: pp,
|
|
49269
49308
|
ElIconArrowDown: ep,
|
|
49270
49309
|
ElIconArrowLeft: tp,
|
|
49271
49310
|
DrawToolbar: Ce,
|
|
49272
|
-
ScaffoldTreeControls:
|
|
49311
|
+
ScaffoldTreeControls: $D
|
|
49273
49312
|
},
|
|
49274
49313
|
setup(e) {
|
|
49275
49314
|
let t = y("$annotator");
|
|
49276
49315
|
return t || (t = S(new je(`${e.flatmapAPI}annotator`)), I("$annotator", t)), { annotator: t };
|
|
49277
49316
|
},
|
|
49278
49317
|
props: {
|
|
49318
|
+
annotationIgnoreResource: {
|
|
49319
|
+
type: Boolean,
|
|
49320
|
+
default: !1
|
|
49321
|
+
},
|
|
49279
49322
|
annotationSidebar: {
|
|
49280
49323
|
type: Boolean,
|
|
49281
49324
|
default: !1
|
|
@@ -49693,15 +49736,15 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49693
49736
|
}
|
|
49694
49737
|
},
|
|
49695
49738
|
beforeCreate: function() {
|
|
49696
|
-
this.$module = new
|
|
49739
|
+
this.$module = new GO(), this.selectedObjects = [], this.hoveredObjects = [], this.currentBackground = "white", this._currentURL = void 0, this.availableBackground = [
|
|
49697
49740
|
"white",
|
|
49698
49741
|
"black",
|
|
49699
49742
|
"lightskyblue"
|
|
49700
|
-
], this.$_searchIndex = new
|
|
49743
|
+
], this.$_searchIndex = new jk();
|
|
49701
49744
|
},
|
|
49702
49745
|
mounted: function() {
|
|
49703
49746
|
this.openMapRef = B(this.$refs.openMapRef), this.backgroundIconRef = B(this.$refs.backgroundIconRef), this.$refs.scaffoldTreeControls.setModule(this.$module);
|
|
49704
|
-
let e = new
|
|
49747
|
+
let e = new PO();
|
|
49705
49748
|
e.subscribe(this, this.eventNotifierCallback), this.$module.addNotifier(e), this.$module.addOrganPartAddedCallback(this.zincObjectAdded), this.$module.addOrganPartRemovedCallback(this.zincObjectRemoved), this.$module.initialiseRenderer(this.$refs.display), this.toggleRendering(this.render), this.clientHeight = this.$refs.scaffoldContainer.$el.clientHeight, this.ro = new ResizeObserver(this.adjustLayout).observe(this.$refs.scaffoldContainer.$el), this.helpTextWait = [], this.helpTextWait.length = this.hoverVisibilities.length, this.defaultRate = this.$module.getPlayRate(), this.$module.zincRenderer.addPreRenderCallbackFunction(() => {
|
|
49706
49749
|
this.currentTime = this.$module.getCurrentTime();
|
|
49707
49750
|
}), this.$module.zincRenderer.addContextRestoredCallbackFunction(() => {
|
|
@@ -49712,8 +49755,8 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49712
49755
|
this.ro && this.ro.disconnect(), this.$module.destroy(), this.$module = void 0;
|
|
49713
49756
|
},
|
|
49714
49757
|
computed: {
|
|
49715
|
-
...Oe(
|
|
49716
|
-
...De(
|
|
49758
|
+
...Oe(wO),
|
|
49759
|
+
...De(wO, ["userToken"]),
|
|
49717
49760
|
annotationDisplay: function() {
|
|
49718
49761
|
return this.viewingMode === "Annotation" && this.tData.active === !0 && this.activeDrawMode !== "Point" && this.activeDrawMode !== "LineString";
|
|
49719
49762
|
},
|
|
@@ -49750,7 +49793,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49750
49793
|
zincObjectAdded: function(e) {
|
|
49751
49794
|
this.loading = !1, this.$_searchIndex.addZincObject(e, e.uuid), this.timeVarying === !1 && e.isTimeVarying() && (this.timeVarying = !0);
|
|
49752
49795
|
let t = e.groupName.toLowerCase();
|
|
49753
|
-
t in
|
|
49796
|
+
t in Lk && e.setAnatomicalId(Lk[t]);
|
|
49754
49797
|
let n = e.getGroup();
|
|
49755
49798
|
n && n.position ? e.userData.originalPos = [
|
|
49756
49799
|
n.position.x,
|
|
@@ -49764,7 +49807,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49764
49807
|
let r = this.isNerves?.regions;
|
|
49765
49808
|
if (r) {
|
|
49766
49809
|
let n = e.getRegion().getFullPath().toLowerCase();
|
|
49767
|
-
for (let i = 0; i < r.length; i++) n.includes(r[i].toLowerCase()) ? (e.userData.isNerves = !0, e.userData.defaultColour = `#${e.getColourHex()}`, e.userData.isGreyScale = !1, t in
|
|
49810
|
+
for (let i = 0; i < r.length; i++) n.includes(r[i].toLowerCase()) ? (e.userData.isNerves = !0, e.userData.defaultColour = `#${e.getColourHex()}`, e.userData.isGreyScale = !1, t in Ik && (Rk++, e.setAnatomicalId(Ik[t]))) : e.userData.isNerves = !1;
|
|
49768
49811
|
}
|
|
49769
49812
|
this.calculateBoundingBox(), this.$emit("zinc-object-added", e);
|
|
49770
49813
|
},
|
|
@@ -49815,12 +49858,12 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49815
49858
|
this.$refs.scaffoldTreeControls && this.$refs.scaffoldTreeControls.clear(), this.$_searchIndex && this.$_searchIndex.removeAll(), this.$module.scene && this.$module.scene.clearAll();
|
|
49816
49859
|
},
|
|
49817
49860
|
addAndEditAnnotations: function(e, t, n, r) {
|
|
49818
|
-
let i =
|
|
49861
|
+
let i = GD(this.annotator, this.userToken, n, e, t, this.url, r);
|
|
49819
49862
|
if (this.existDrawnFeatures = S(this.existDrawnFeatures.filter((e) => e.id !== i.item.id)), this.existDrawnFeatures.push(i.feature), this.offlineAnnotationEnabled) {
|
|
49820
49863
|
i.group = t;
|
|
49821
49864
|
let n = e;
|
|
49822
49865
|
n.slice(-1) === "/" && (n = n.slice(0, -1)), i.region = n, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [];
|
|
49823
|
-
let r = this.offlineAnnotations.find((e) => e.group === i.group && e.region === i.region && e.resource === i.resource && e.feature.geometry.type === i.feature.geometry.type);
|
|
49866
|
+
let r = this.offlineAnnotations.find((e) => e.group === i.group && e.region === i.region && (this.annotationIgnoreResource || e.resource === i.resource) && e.feature.geometry.type === i.feature.geometry.type);
|
|
49824
49867
|
r ? Object.assign(r, i) : this.offlineAnnotations.push(i), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
49825
49868
|
}
|
|
49826
49869
|
this.$emit("userPrimitivesUpdated", {
|
|
@@ -49830,10 +49873,10 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49830
49873
|
});
|
|
49831
49874
|
},
|
|
49832
49875
|
renameAnnotations: function(e, t, n, r) {
|
|
49833
|
-
let i = e.slice(-1) === "/" ? e : e + "/", a = i + r, o =
|
|
49876
|
+
let i = e.slice(-1) === "/" ? e : e + "/", a = i + r, o = GD(this.annotator, this.userToken, n, e, t, this.url, `Rename from ${a}`);
|
|
49834
49877
|
if (this.existDrawnFeatures = S(this.existDrawnFeatures.filter((e) => e.id !== a)), this.existDrawnFeatures.push(o.feature), this.offlineAnnotationEnabled) {
|
|
49835
49878
|
o.group = t, i = e, i.slice(-1) === "/" && (i = i.slice(0, -1)), o.region = i, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [];
|
|
49836
|
-
let n = this.offlineAnnotations.find((e) => e.group === r && e.region === o.region && e.resource === o.resource && e.feature.geometry.type === o.feature.geometry.type);
|
|
49879
|
+
let n = this.offlineAnnotations.find((e) => e.group === r && e.region === o.region && (this.annotationIgnoreResource || e.resource === o.resource) && e.feature.geometry.type === o.feature.geometry.type);
|
|
49837
49880
|
n && Object.assign(n, o), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
49838
49881
|
}
|
|
49839
49882
|
this.$emit("userPrimitivesUpdated", {
|
|
@@ -49883,14 +49926,14 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49883
49926
|
if (this._editingZincObject?.isEditable) {
|
|
49884
49927
|
let t = this._editingZincObject.region.getFullPath() + "/", n = this._editingZincObject.groupName, r = !0;
|
|
49885
49928
|
e.editingIndex > -1 && this._editingZincObject.isPointset && (r = 1 > this._editingZincObject.deleteVertices(e.editingIndex));
|
|
49886
|
-
let i = r ? "Deleted" : "Removed a vertex", a =
|
|
49929
|
+
let i = r ? "Deleted" : "Removed a vertex", a = GD(this.annotator, this.userToken, this._editingZincObject, t, n, this.url, i);
|
|
49887
49930
|
if (a) {
|
|
49888
49931
|
if (this.existDrawnFeatures = S(this.existDrawnFeatures.filter((e) => e.id !== a.item.id)), r && this.$module.scene.getRootRegion().findChildFromPath(t).removeZincObject(this._editingZincObject), this.offlineAnnotationEnabled) {
|
|
49889
49932
|
a.group = n;
|
|
49890
49933
|
let t = e.region;
|
|
49891
49934
|
if (t.slice(-1) === "/" && (t = t.slice(0, -1)), a.region = t, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], r) this.offlineAnnotations = this.offlineAnnotations.filter((e) => e.item.id !== a.item.id);
|
|
49892
49935
|
else {
|
|
49893
|
-
let e = this.offlineAnnotations.find((e) => e.group === n && e.region === a.region && e.resource === a.resource && e.feature.geometry.type === a.feature.geometry.type);
|
|
49936
|
+
let e = this.offlineAnnotations.find((e) => e.group === n && e.region === a.region && (this.annotationIgnoreResource || e.resource === a.resource) && e.feature.geometry.type === a.feature.geometry.type);
|
|
49894
49937
|
Object.assign(e, a), this.existDrawnFeatures.push(a.feature);
|
|
49895
49938
|
}
|
|
49896
49939
|
sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
@@ -49918,7 +49961,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49918
49961
|
fitWindow: function() {
|
|
49919
49962
|
if (this.$module.scene) {
|
|
49920
49963
|
let e = !1;
|
|
49921
|
-
this._boundingBoxGeo && (e = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (
|
|
49964
|
+
this._boundingBoxGeo && (e = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (ID(this._boundingBoxGeo, this.$module.scene), this._boundingBoxGeo.setVisibility(e));
|
|
49922
49965
|
}
|
|
49923
49966
|
},
|
|
49924
49967
|
zoomIn: function() {
|
|
@@ -49944,7 +49987,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
49944
49987
|
this.createData.drawingBox = !this.createData.drawingBox;
|
|
49945
49988
|
},
|
|
49946
49989
|
viewRegion: function(e) {
|
|
49947
|
-
let t =
|
|
49990
|
+
let t = RD(this.$module.scene.getRootRegion(), Array.isArray(e) ? e : [e], "", !0), n = this.$module.scene.getBoundingBoxOfZincObjects(t);
|
|
49948
49991
|
if (n) {
|
|
49949
49992
|
if (this.$module.isSyncControl()) this.$module.setSyncControlZoomToBox(n);
|
|
49950
49993
|
else {
|
|
@@ -50009,19 +50052,19 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50009
50052
|
}
|
|
50010
50053
|
},
|
|
50011
50054
|
activateDeleteMode: function(e) {
|
|
50012
|
-
let t =
|
|
50055
|
+
let t = AD(e);
|
|
50013
50056
|
if (t) {
|
|
50014
|
-
let n =
|
|
50057
|
+
let n = kD(e), r = n?.index === void 0 ? -1 : n.index;
|
|
50015
50058
|
this._editingZincObject = t, this.createData.faceIndex = -1, this.createData.editingIndex = r, this.createData.renaming = !1, this.createData.tempGroupName = this._editingZincObject.groupName, this.createData.regionPrefix = this._editingZincObject.region.getFullPath(), this.createData.toBeConfirmed = !0, this.createData.toBeDeleted = !0, this.tData.x = 50, this.tData.y = 200;
|
|
50016
50059
|
}
|
|
50017
50060
|
},
|
|
50018
50061
|
activateEditingMode: function(e) {
|
|
50019
|
-
let t =
|
|
50020
|
-
t ? this.activatePointEditingMode(t.zincObject, t.index, t.point) : (t =
|
|
50062
|
+
let t = kD(e);
|
|
50063
|
+
t ? this.activatePointEditingMode(t.zincObject, t.index, t.point) : (t = jD(e), t && this.activateLineEditingMode(t.zincObject, t.faceIndex, t.vertexIndex, t.point));
|
|
50021
50064
|
},
|
|
50022
50065
|
activateRenamingMode: function(e) {
|
|
50023
|
-
let t =
|
|
50024
|
-
t ||=
|
|
50066
|
+
let t = kD(e);
|
|
50067
|
+
t ||= jD(e), t && (this._editingZincObject = t.zincObject, this.createData.faceIndex = -1, this.createData.editingIndex = -1, this.createData.renaming = !0, this.createData.tempGroupName = this._editingZincObject.groupName, this.createData.regionPrefix = this._editingZincObject.region.getFullPath(), this.createData.toBeConfirmed = !0, this.createData.toBeDeleted = !1, this.showRegionTooltipWithAnnotations(e, !1, !1), this.tData.x = 50, this.tData.y = 200);
|
|
50025
50068
|
},
|
|
50026
50069
|
activateAnnotationMode: function(e, t) {
|
|
50027
50070
|
this.authorisedUser || this.offlineAnnotationEnabled ? (this.createData.toBeDeleted = !1, this.createData.shape !== "" || this.createData.editingIndex > -1 ? e.length > 0 && t.identifiers[0].coords && this.draw(t.identifiers) : (this.activeDrawMode === "Edit" ? this.activateEditingMode(t.identifiers) : this.activeDrawMode === "Delete" && this.activateDeleteMode(t.identifiers), this.activeDrawMode !== "Point" && this.activeDrawMode !== "LineString" ? this.showRegionTooltipWithAnnotations(t.identifiers, !0, !1) : this.showRegionTooltipWithAnnotations(t.identifiers, !0, !0))) : this.showRegionTooltipWithAnnotations(t.identifiers, !0, !0);
|
|
@@ -50045,10 +50088,10 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50045
50088
|
if (e.identifiers.length > 0 && e.identifiers[0] && (r = e.identifiers[0].data.id ? e.identifiers[0].data.id : e.identifiers[0].data.group, e.identifiers[0].data.region && (i = e.identifiers[0].data.region)), e.eventType == 1) {
|
|
50046
50089
|
if (this.viewingMode === "Annotation") {
|
|
50047
50090
|
this.tData.label = r, this.tData.region = i;
|
|
50048
|
-
let n =
|
|
50091
|
+
let n = MD(e);
|
|
50049
50092
|
if (this.createData.editingIndex === -1 && (this._editingZincObject = n), n) {
|
|
50050
50093
|
let e = this._editingZincObject.region.getFullPath() + "/", t = this._editingZincObject.groupName;
|
|
50051
|
-
this.annotationFeature =
|
|
50094
|
+
this.annotationFeature = WD(this._editingZincObject, e, t, this.url, "").feature;
|
|
50052
50095
|
}
|
|
50053
50096
|
this.activateAnnotationMode(t, e);
|
|
50054
50097
|
} else this.$refs.scaffoldTreeControls && (t.length > 0 ? (this.$refs.scaffoldTreeControls.updateActiveUI(n), this.updatePrimitiveControls(n)) : (this.hideRegionTooltip(), this.$refs.scaffoldTreeControls.removeActive(!1))), e.identifiers.length === 1 ? this.lastSelected = {
|
|
@@ -50148,14 +50191,14 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50148
50191
|
},
|
|
50149
50192
|
showRegionTooltip: function(e, t, n) {
|
|
50150
50193
|
if (e && this.$module.scene) {
|
|
50151
|
-
let r =
|
|
50194
|
+
let r = RD(this.$module.scene.getRootRegion(), [e], "", !0), i;
|
|
50152
50195
|
return r && r.length > 0 && (i = r[0].getRegion().getFullPath()), this.showRegionTooltipWithObjects(e, r, i, t, n);
|
|
50153
50196
|
}
|
|
50154
50197
|
return this.hideRegionTooltip(), !1;
|
|
50155
50198
|
},
|
|
50156
50199
|
showRegionTooltipWithAnnotations: function(e, t, n) {
|
|
50157
50200
|
if (this.$module.scene) {
|
|
50158
|
-
let r =
|
|
50201
|
+
let r = HD(this.$module.scene, e);
|
|
50159
50202
|
if (this._editingZincObject && (r.regionPath = this._editingZincObject.region.getFullPath() + "/", r.label = this._editingZincObject.groupName), r && r.objects.length > 0) {
|
|
50160
50203
|
if (this.annotationSidebar) {
|
|
50161
50204
|
let e = [{
|
|
@@ -50195,12 +50238,12 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50195
50238
|
if (this.offlineAnnotationEnabled) this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], e = this.offlineAnnotations.filter((e) => e.resource === this.url && e.feature.properties.drawn).map((e) => e.feature);
|
|
50196
50239
|
else {
|
|
50197
50240
|
e = [];
|
|
50198
|
-
let t = await
|
|
50241
|
+
let t = await KD(this.annotator, this.userToken, this.url);
|
|
50199
50242
|
t && t.features && (e = [...t.features]);
|
|
50200
|
-
let n = await
|
|
50243
|
+
let n = await KD(this.annotator, this.userToken, encodeURIComponent(this.url));
|
|
50201
50244
|
n && n.features && (e = [...e, ...n.features]);
|
|
50202
50245
|
}
|
|
50203
|
-
this.existDrawnFeatures = S(e),
|
|
50246
|
+
this.existDrawnFeatures = S(e), qD(this.$module.scene, e);
|
|
50204
50247
|
},
|
|
50205
50248
|
changeViewingMode: function(e) {
|
|
50206
50249
|
let t = !0;
|
|
@@ -50245,12 +50288,12 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50245
50288
|
typeof t == "number" && (r = {
|
|
50246
50289
|
number: t,
|
|
50247
50290
|
imgURL: void 0
|
|
50248
|
-
}),
|
|
50291
|
+
}), RD(this.$module.scene.getRootRegion(), [e], "", !0).forEach((e) => e.setMarkerMode(n, r));
|
|
50249
50292
|
}
|
|
50250
50293
|
},
|
|
50251
50294
|
setMarkerModeWithAnnotations: function(e, t) {
|
|
50252
50295
|
if (this.$module.scene) {
|
|
50253
|
-
let n =
|
|
50296
|
+
let n = HD(this.$module.scene, e);
|
|
50254
50297
|
n && n.objects.length > 0 && n.objects.forEach((e) => e.setMarkerMode(t));
|
|
50255
50298
|
}
|
|
50256
50299
|
},
|
|
@@ -50393,7 +50436,7 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50393
50436
|
e.item.id = i, e.feature.id = i;
|
|
50394
50437
|
});
|
|
50395
50438
|
let t = e.map((e) => e.feature);
|
|
50396
|
-
|
|
50439
|
+
qD(this.$module.scene, t), e.forEach((e) => {
|
|
50397
50440
|
this.offlineAnnotations.push({ ...e });
|
|
50398
50441
|
}), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
50399
50442
|
}
|
|
@@ -50444,15 +50487,15 @@ var lk = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, u
|
|
|
50444
50487
|
for (let [e, t] of Object.entries(this.markerLabels)) this.setMarkerModeForObjectsWithName(e, t, "on");
|
|
50445
50488
|
},
|
|
50446
50489
|
readNIFTIFromSource: async function(e, t, n, r, i) {
|
|
50447
|
-
return await
|
|
50490
|
+
return await AO(e, t, n, r, i);
|
|
50448
50491
|
}
|
|
50449
50492
|
}
|
|
50450
|
-
},
|
|
50493
|
+
}, Bk = { class: "animation-data" }, Vk = { class: "purple" }, Hk = { class: "animation-data" }, Uk = { class: "purple" }, Wk = { class: "animation-data" }, Gk = { class: "bottom-right-control control-layer" }, Kk = { class: "control-layer" }, qk = { class: "viewing-mode-container" }, Jk = { style: { "margin-bottom": "2px" } }, Yk = {
|
|
50451
50494
|
key: 0,
|
|
50452
50495
|
class: "viewing-mode-title"
|
|
50453
|
-
},
|
|
50454
|
-
function
|
|
50455
|
-
let s = ie("map-svg-sprite-color"), f =
|
|
50496
|
+
}, Xk = ["onClick"], Zk = { class: "colour-radio-container" }, Qk = { class: "outlines-radio-container" }, $k = { class: "background-colour-container" }, eA = ["onClick"];
|
|
50497
|
+
function tA(e, n, r, i, a, o) {
|
|
50498
|
+
let s = ie("map-svg-sprite-color"), f = kO, h = ie("DrawToolbar"), g = pp, _ = _p, v = xv, y = CO, b = $D, x = ie("map-svg-icon"), S = Vv, C = M_, w = oy, E = qg, D = Kg, O = ay, k = ug, A = D_, j = O_, M = Ty, N = _y;
|
|
50456
50499
|
return G((F(), c(M, {
|
|
50457
50500
|
ref: "scaffoldContainer",
|
|
50458
50501
|
class: "scaffold-container",
|
|
@@ -50657,9 +50700,9 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50657
50700
|
}), m(w, { label: "Animation data" }, {
|
|
50658
50701
|
default: W(() => [m(C, { class: "tab-content" }, {
|
|
50659
50702
|
default: W(() => [
|
|
50660
|
-
d("div",
|
|
50661
|
-
d("div",
|
|
50662
|
-
d("div",
|
|
50703
|
+
d("div", Bk, [n[35] ||= p(" Original duration: ", -1), d("div", Vk, se(e.orginalDuration), 1)]),
|
|
50704
|
+
d("div", Hk, [n[36] ||= p(" Animation duration: ", -1), d("div", Uk, se(e.animateDuration), 1)]),
|
|
50705
|
+
d("div", Wk, [n[37] ||= p(" Playback speed ", -1), m(D, {
|
|
50663
50706
|
teleported: !0,
|
|
50664
50707
|
"model-value": e.currentSpeed,
|
|
50665
50708
|
placeholder: "Select",
|
|
@@ -50683,7 +50726,7 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50683
50726
|
})], 2)) : l("", !0)]),
|
|
50684
50727
|
_: 1
|
|
50685
50728
|
}, 8, ["visible"])) : l("", !0),
|
|
50686
|
-
d("div",
|
|
50729
|
+
d("div", Gk, [
|
|
50687
50730
|
m(v, {
|
|
50688
50731
|
visible: e.hoverVisibilities[0].value,
|
|
50689
50732
|
content: "Zoom in",
|
|
@@ -50780,17 +50823,17 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50780
50823
|
"popper-class": "background-popper non-selectable h-auto",
|
|
50781
50824
|
"virtual-triggering": ""
|
|
50782
50825
|
}, {
|
|
50783
|
-
default: W(() => [d("div",
|
|
50784
|
-
d("div",
|
|
50826
|
+
default: W(() => [d("div", Kk, [
|
|
50827
|
+
d("div", qk, [m(C, { class: "backgroundText" }, {
|
|
50785
50828
|
default: W(() => [...n[39] ||= [p("Viewing Mode", -1)]]),
|
|
50786
50829
|
_: 1
|
|
50787
50830
|
}), m(C, { class: "backgroundControl" }, {
|
|
50788
50831
|
default: W(() => [
|
|
50789
|
-
d("div",
|
|
50832
|
+
d("div", Jk, [(F(!0), u(t, null, re(e.viewingModes, (n, r, i) => (F(), u(t, { key: r }, [r === e.viewingMode ? (F(), u("span", Yk, [d("b", null, se(r), 1)])) : (F(), u("span", {
|
|
50790
50833
|
key: 1,
|
|
50791
50834
|
class: "viewing-mode-unselected",
|
|
50792
50835
|
onClick: (e) => o.changeViewingMode(r)
|
|
50793
|
-
}, se(r), 9,
|
|
50836
|
+
}, se(r), 9, Xk))], 64))), 128))]),
|
|
50794
50837
|
m(C, { class: "viewing-mode-description" }, {
|
|
50795
50838
|
default: W(() => [p(se(o.modeDescription), 1)]),
|
|
50796
50839
|
_: 1
|
|
@@ -50805,7 +50848,7 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50805
50848
|
]),
|
|
50806
50849
|
_: 1
|
|
50807
50850
|
})]),
|
|
50808
|
-
d("div",
|
|
50851
|
+
d("div", Zk, [
|
|
50809
50852
|
m(C, { class: "backgroundSpacer" }),
|
|
50810
50853
|
m(C, { class: "backgroundText" }, {
|
|
50811
50854
|
default: W(() => [...n[41] ||= [p("Organs display", -1)]]),
|
|
@@ -50830,7 +50873,7 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50830
50873
|
_: 1
|
|
50831
50874
|
})
|
|
50832
50875
|
]),
|
|
50833
|
-
d("div",
|
|
50876
|
+
d("div", Qk, [
|
|
50834
50877
|
m(C, { class: "backgroundSpacer" }),
|
|
50835
50878
|
m(C, { class: "backgroundText" }, {
|
|
50836
50879
|
default: W(() => [...n[44] ||= [p("Outlines display", -1)]]),
|
|
@@ -50855,7 +50898,7 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50855
50898
|
_: 1
|
|
50856
50899
|
})
|
|
50857
50900
|
]),
|
|
50858
|
-
d("div",
|
|
50901
|
+
d("div", $k, [
|
|
50859
50902
|
m(C, { class: "backgroundSpacer" }),
|
|
50860
50903
|
m(C, { class: "backgroundText" }, {
|
|
50861
50904
|
default: W(() => [...n[47] ||= [p(" Change background ", -1)]]),
|
|
@@ -50870,7 +50913,7 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50870
50913
|
t == e.currentBackground ? "active" : ""
|
|
50871
50914
|
]),
|
|
50872
50915
|
onClick: (e) => o.backgroundChangeCallback(t)
|
|
50873
|
-
}, null, 10,
|
|
50916
|
+
}, null, 10, eA))), 128))]),
|
|
50874
50917
|
_: 1
|
|
50875
50918
|
})
|
|
50876
50919
|
])
|
|
@@ -50929,6 +50972,6 @@ function Qk(e, n, r, i, a, o) {
|
|
|
50929
50972
|
_: 3
|
|
50930
50973
|
}, 8, ["positionalRotation", "onOnRotationModeChange"])), [[N, e.loading]]);
|
|
50931
50974
|
}
|
|
50932
|
-
var
|
|
50975
|
+
var nA = /*#__PURE__*/ yy(zk, [["render", tA], ["__scopeId", "data-v-9e505335"]]);
|
|
50933
50976
|
//#endregion
|
|
50934
|
-
export {
|
|
50977
|
+
export { nA as ScaffoldVuer };
|