@netless/app-slide 0.2.48 → 0.2.50

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/main.es.js CHANGED
@@ -1039,7 +1039,7 @@ var Slide = function(t) {
1039
1039
  }, e2;
1040
1040
  }(x);
1041
1041
  h.push(E, A, b, w, S, m, T, y);
1042
- var C = function(t2) {
1042
+ var R = function(t2) {
1043
1043
  function e2() {
1044
1044
  return t2 !== null && t2.apply(this, arguments) || this;
1045
1045
  }
@@ -1049,7 +1049,7 @@ var Slide = function(t) {
1049
1049
  var o2 = e3.realWidth, s2 = e3.realHeight;
1050
1050
  return i2.width === o2 && i2.height === s2 ? n2.texSubImage2D(e3.target, 0, 0, 0, o2, s2, e3.format, i2.type, this.data) : (i2.width = o2, i2.height = s2, n2.texImage2D(e3.target, 0, i2.internalFormat, o2, s2, 0, e3.format, i2.type, this.data)), true;
1051
1051
  }, e2;
1052
- }(m), R = function() {
1052
+ }(m), C = function() {
1053
1053
  function t2(t3, e2) {
1054
1054
  this.width = Math.round(t3 || 100), this.height = Math.round(e2 || 100), this.stencil = false, this.depth = false, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new s.a("disposeFramebuffer"), this.multisample = r.l.NONE;
1055
1055
  }
@@ -1058,7 +1058,7 @@ var Slide = function(t) {
1058
1058
  }, enumerable: false, configurable: true }), t2.prototype.addColorTexture = function(t3, e2) {
1059
1059
  return t3 === void 0 && (t3 = 0), this.colorTextures[t3] = e2 || new v(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
1060
1060
  }, t2.prototype.addDepthTexture = function(t3) {
1061
- return this.depthTexture = t3 || new v(new C(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
1061
+ return this.depthTexture = t3 || new v(new R(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
1062
1062
  }, t2.prototype.enableDepth = function() {
1063
1063
  return this.depth = true, this.dirtyId++, this.dirtyFormat++, this;
1064
1064
  }, t2.prototype.enableStencil = function() {
@@ -1088,7 +1088,7 @@ var Slide = function(t) {
1088
1088
  var n2 = arguments[0], o2 = arguments[1], s2 = arguments[2], a2 = arguments[3];
1089
1089
  e3 = { width: n2, height: o2, scaleMode: s2, resolution: a2 };
1090
1090
  }
1091
- return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : r.l.NONE, (i2 = t2.call(this, null, e3) || this).mipmap = r.k.OFF, i2.valid = true, i2.clearColor = [0, 0, 0, 0], i2.framebuffer = new R(i2.realWidth, i2.realHeight).addColorTexture(0, i2), i2.framebuffer.multisample = e3.multisample, i2.maskStack = [], i2.filterStack = [{}], i2;
1091
+ return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : r.l.NONE, (i2 = t2.call(this, null, e3) || this).mipmap = r.k.OFF, i2.valid = true, i2.clearColor = [0, 0, 0, 0], i2.framebuffer = new C(i2.realWidth, i2.realHeight).addColorTexture(0, i2), i2.framebuffer.multisample = e3.multisample, i2.maskStack = [], i2.filterStack = [{}], i2;
1092
1092
  }
1093
1093
  return d(e2, t2), e2.prototype.resize = function(t3, e3) {
1094
1094
  this.framebuffer.resize(t3 * this.resolution, e3 * this.resolution), this.setRealSize(this.framebuffer.width, this.framebuffer.height);
@@ -1643,7 +1643,7 @@ var Slide = function(t) {
1643
1643
  this.framebuffer = t2, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = r.l.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
1644
1644
  }, rt = new l.j(), ot = function() {
1645
1645
  function t2(t3) {
1646
- this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new R(10, 10), this.msaaSamples = null;
1646
+ this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new C(10, 10), this.msaaSamples = null;
1647
1647
  }
1648
1648
  return t2.prototype.contextChange = function() {
1649
1649
  var t3 = this.gl = this.renderer.gl;
@@ -1731,7 +1731,7 @@ var Slide = function(t) {
1731
1731
  var l2 = n2.colorTextures[0];
1732
1732
  if (!l2)
1733
1733
  return;
1734
- a2.blitFramebuffer || (a2.blitFramebuffer = new R(n2.width, n2.height), a2.blitFramebuffer.addColorTexture(0, l2)), (t3 = a2.blitFramebuffer).colorTextures[0] !== l2 && (t3.colorTextures[0] = l2, t3.dirtyId++, t3.dirtyFormat++), t3.width === n2.width && t3.height === n2.height || (t3.width = n2.width, t3.height = n2.height, t3.dirtyId++, t3.dirtySize++);
1734
+ a2.blitFramebuffer || (a2.blitFramebuffer = new C(n2.width, n2.height), a2.blitFramebuffer.addColorTexture(0, l2)), (t3 = a2.blitFramebuffer).colorTextures[0] !== l2 && (t3.colorTextures[0] = l2, t3.dirtyId++, t3.dirtyFormat++), t3.width === n2.width && t3.height === n2.height || (t3.width = n2.width, t3.height = n2.height, t3.dirtyId++, t3.dirtySize++);
1735
1735
  }
1736
1736
  e2 || ((e2 = rt).width = n2.width, e2.height = n2.height), i2 || (i2 = e2);
1737
1737
  var h2 = e2.width === i2.width && e2.height === i2.height;
@@ -2055,14 +2055,14 @@ var Slide = function(t) {
2055
2055
  return '\n cv = ud["' + t2 + '"].value;\n v = uv["' + t2 + '"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["' + t2 + '"].location, v[0], v[1], v[2], v[3])\n }';
2056
2056
  } }], St = { float: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }", vec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }", vec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }", vec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }", int: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }", ivec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", ivec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", ivec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", uint: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }", uvec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }", uvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }", uvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }", bool: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }", bvec2: "\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", bvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", bvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", mat2: "gl.uniformMatrix2fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", sampler2D: "gl.uniform1i(location, v)", samplerCube: "gl.uniform1i(location, v)", sampler2DArray: "gl.uniform1i(location, v)" }, wt = { float: "gl.uniform1fv(location, v)", vec2: "gl.uniform2fv(location, v)", vec3: "gl.uniform3fv(location, v)", vec4: "gl.uniform4fv(location, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat2: "gl.uniformMatrix2fv(location, false, v)", int: "gl.uniform1iv(location, v)", ivec2: "gl.uniform2iv(location, v)", ivec3: "gl.uniform3iv(location, v)", ivec4: "gl.uniform4iv(location, v)", uint: "gl.uniform1uiv(location, v)", uvec2: "gl.uniform2uiv(location, v)", uvec3: "gl.uniform3uiv(location, v)", uvec4: "gl.uniform4uiv(location, v)", bool: "gl.uniform1iv(location, v)", bvec2: "gl.uniform2iv(location, v)", bvec3: "gl.uniform3iv(location, v)", bvec4: "gl.uniform4iv(location, v)", sampler2D: "gl.uniform1iv(location, v)", samplerCube: "gl.uniform1iv(location, v)", sampler2DArray: "gl.uniform1iv(location, v)" };
2057
2057
  var At, Mt = ["precision mediump float;", "void main(void){", "float test = 0.1;", "%forloop%", "gl_FragColor = vec4(0.0);", "}"].join("\n");
2058
- function Ct(t2) {
2058
+ function Rt(t2) {
2059
2059
  for (var e2 = "", i2 = 0; i2 < t2; ++i2)
2060
2060
  i2 > 0 && (e2 += "\nelse "), i2 < t2 - 1 && (e2 += "if(test == " + i2 + ".0){}");
2061
2061
  return e2;
2062
2062
  }
2063
- var Rt = 0, It = {}, Pt = function() {
2063
+ var Ct = 0, It = {}, Pt = function() {
2064
2064
  function t2(e2, i2, o2) {
2065
- o2 === void 0 && (o2 = "pixi-shader"), this.id = Rt++, this.vertexSrc = e2 || t2.defaultVertexSrc, this.fragmentSrc = i2 || t2.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), It[o2] ? (It[o2]++, o2 += "-" + It[o2]) : It[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = vt(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = vt(this.fragmentSrc, n.b.PRECISION_FRAGMENT, gt())), this.glPrograms = {}, this.syncUniforms = null;
2065
+ o2 === void 0 && (o2 = "pixi-shader"), this.id = Ct++, this.vertexSrc = e2 || t2.defaultVertexSrc, this.fragmentSrc = i2 || t2.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), It[o2] ? (It[o2]++, o2 += "-" + It[o2]) : It[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = vt(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = vt(this.fragmentSrc, n.b.PRECISION_FRAGMENT, gt())), this.glPrograms = {}, this.syncUniforms = null;
2066
2066
  }
2067
2067
  return Object.defineProperty(t2, "defaultVertexSrc", { get: function() {
2068
2068
  return "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
@@ -2937,7 +2937,7 @@ var Slide = function(t) {
2937
2937
  if (t4 === 0)
2938
2938
  throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
2939
2939
  for (var i2 = e4.createShader(e4.FRAGMENT_SHADER); ; ) {
2940
- var n2 = Mt.replace(/%forloop%/gi, Ct(t4));
2940
+ var n2 = Mt.replace(/%forloop%/gi, Rt(t4));
2941
2941
  if (e4.shaderSource(i2, n2), e4.compileShader(i2), e4.getShaderParameter(i2, e4.COMPILE_STATUS))
2942
2942
  break;
2943
2943
  t4 = t4 / 2 | 0;
@@ -3098,7 +3098,7 @@ var Slide = function(t) {
3098
3098
  }), i.d(e, "hex2string", function() {
3099
3099
  return _;
3100
3100
  }), i.d(e, "interleaveTypedArrays", function() {
3101
- return R;
3101
+ return C;
3102
3102
  }), i.d(e, "isPow2", function() {
3103
3103
  return P;
3104
3104
  }), i.d(e, "isWebGLSupported", function() {
@@ -3237,14 +3237,14 @@ var Slide = function(t) {
3237
3237
  return "Uint8Array";
3238
3238
  return null;
3239
3239
  }
3240
- var C = { Float32Array, Uint32Array, Int32Array, Uint8Array };
3241
- function R(t2, e2) {
3240
+ var R = { Float32Array, Uint32Array, Int32Array, Uint8Array };
3241
+ function C(t2, e2) {
3242
3242
  for (var i2 = 0, n2 = 0, r2 = {}, o2 = 0; o2 < t2.length; o2++)
3243
3243
  n2 += e2[o2], i2 += t2[o2].length;
3244
3244
  var s2 = new ArrayBuffer(4 * i2), a2 = null, l2 = 0;
3245
3245
  for (o2 = 0; o2 < t2.length; o2++) {
3246
3246
  var h2 = e2[o2], u2 = t2[o2], c2 = M(u2);
3247
- r2[c2] || (r2[c2] = new C[c2](s2)), a2 = r2[c2];
3247
+ r2[c2] || (r2[c2] = new R[c2](s2)), a2 = r2[c2];
3248
3248
  for (var d2 = 0; d2 < u2.length; d2++) {
3249
3249
  a2[(d2 / h2 | 0) * n2 + l2 + d2 % h2] = u2[d2];
3250
3250
  }
@@ -3359,7 +3359,7 @@ var Slide = function(t) {
3359
3359
  * @pixi/settings is licensed under the MIT License.
3360
3360
  * http://www.opensource.org/licenses/mit-license
3361
3361
  */
3362
- var y, x, b, T, E, S, w, A, M, C, R, I, P, O, N, L, D, F, B, U = function(t2) {
3362
+ var y, x, b, T, E, S, w, A, M, R, C, I, P, O, N, L, D, F, B, U = function(t2) {
3363
3363
  var e2 = { userAgent: "", platform: "", maxTouchPoints: 0 };
3364
3364
  t2 || typeof navigator == "undefined" ? typeof t2 == "string" ? e2.userAgent = t2 : t2 && t2.userAgent && (e2 = { userAgent: t2.userAgent, platform: t2.platform, maxTouchPoints: t2.maxTouchPoints || 0 }) : e2 = { userAgent: navigator.userAgent, platform: navigator.platform, maxTouchPoints: navigator.maxTouchPoints || 0 };
3365
3365
  var i2 = e2.userAgent, y2 = i2.split("[FBAN");
@@ -3391,9 +3391,9 @@ var Slide = function(t) {
3391
3391
  t2[t2.FLOAT = 0] = "FLOAT", t2[t2.INT = 1] = "INT", t2[t2.UINT = 2] = "UINT";
3392
3392
  }(M || (M = {})), function(t2) {
3393
3393
  t2[t2.NEAREST = 0] = "NEAREST", t2[t2.LINEAR = 1] = "LINEAR";
3394
- }(C || (C = {})), function(t2) {
3395
- t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
3396
3394
  }(R || (R = {})), function(t2) {
3395
+ t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
3396
+ }(C || (C = {})), function(t2) {
3397
3397
  t2[t2.OFF = 0] = "OFF", t2[t2.POW2 = 1] = "POW2", t2[t2.ON = 2] = "ON", t2[t2.ON_MANUAL = 3] = "ON_MANUAL";
3398
3398
  }(I || (I = {})), function(t2) {
3399
3399
  t2[t2.NPM = 0] = "NPM", t2[t2.UNPACK = 1] = "UNPACK", t2[t2.PMA = 2] = "PMA", t2[t2.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", t2[t2.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", t2[t2.PREMULTIPLY_ALPHA = 2] = "PREMULTIPLY_ALPHA", t2[t2.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA";
@@ -3424,16 +3424,16 @@ var Slide = function(t) {
3424
3424
  }
3425
3425
  }
3426
3426
  return e2 ? t2 : 4;
3427
- }(32), SPRITE_BATCH_SIZE: 4096, RENDER_OPTIONS: { view: null, antialias: false, autoDensity: false, backgroundColor: 0, backgroundAlpha: 1, useContextAlpha: true, clearBeforeRender: true, preserveDrawingBuffer: false, width: 800, height: 600, legacy: false }, GC_MODE: N.AUTO, GC_MAX_IDLE: 3600, GC_MAX_CHECK_COUNT: 600, WRAP_MODE: R.CLAMP, SCALE_MODE: C.LINEAR, PRECISION_VERTEX: L.HIGH, PRECISION_FRAGMENT: U.apple.device ? L.HIGH : L.MEDIUM, CAN_UPLOAD_SAME_BUFFER: !U.apple.device, CREATE_IMAGE_BITMAP: false, ROUND_PIXELS: false };
3427
+ }(32), SPRITE_BATCH_SIZE: 4096, RENDER_OPTIONS: { view: null, antialias: false, autoDensity: false, backgroundColor: 0, backgroundAlpha: 1, useContextAlpha: true, clearBeforeRender: true, preserveDrawingBuffer: false, width: 800, height: 600, legacy: false }, GC_MODE: N.AUTO, GC_MAX_IDLE: 3600, GC_MAX_CHECK_COUNT: 600, WRAP_MODE: C.CLAMP, SCALE_MODE: R.LINEAR, PRECISION_VERTEX: L.HIGH, PRECISION_FRAGMENT: U.apple.device ? L.HIGH : L.MEDIUM, CAN_UPLOAD_SAME_BUFFER: !U.apple.device, CREATE_IMAGE_BITMAP: false, ROUND_PIXELS: false };
3428
3428
  }, function(t, e, i) {
3429
3429
  i.d(e, "a", function() {
3430
3430
  return s;
3431
3431
  }), i.d(e, "b", function() {
3432
3432
  return P;
3433
3433
  }), i.d(e, "c", function() {
3434
- return C;
3435
- }), i.d(e, "d", function() {
3436
3434
  return R;
3435
+ }), i.d(e, "d", function() {
3436
+ return C;
3437
3437
  });
3438
3438
  var n = i(4), r = i(1), o = i(3);
3439
3439
  /*!
@@ -3532,7 +3532,7 @@ var Slide = function(t) {
3532
3532
  }
3533
3533
  a(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
3534
3534
  }
3535
- var h, u, c, d, p, f, m, g, v, _, y, x, b, T, E, S, w, A, M, C = function(t2) {
3535
+ var h, u, c, d, p, f, m, g, v, _, y, x, b, T, E, S, w, A, M, R = function(t2) {
3536
3536
  function e2() {
3537
3537
  var e3 = t2.call(this) || this;
3538
3538
  return e3.tempDisplayObjectParent = null, e3.transform = new r.m(), e3.alpha = 1, e3.visible = true, e3.renderable = true, e3.cullable = false, e3.cullArea = null, e3.parent = null, e3.worldAlpha = 1, e3._lastSortedIndex = 0, e3._zIndex = 0, e3.filterArea = null, e3.filters = null, e3._enabledFilters = null, e3._bounds = new s(), e3._localBounds = null, e3._boundsID = 0, e3._boundsRect = null, e3._localBoundsRect = null, e3._mask = null, e3._maskRefCount = 0, e3._destroyed = false, e3.isSprite = false, e3.isMask = false, e3;
@@ -3571,7 +3571,7 @@ var Slide = function(t) {
3571
3571
  }, e2.prototype.destroy = function(t3) {
3572
3572
  this.parent && this.parent.removeChild(this), this._destroyed = true, this.transform = null, this.parent = null, this._bounds = null, this.mask = null, this.cullArea = null, this.filters = null, this.filterArea = null, this.hitArea = null, this.interactive = false, this.interactiveChildren = false, this.emit("destroyed"), this.removeAllListeners();
3573
3573
  }, Object.defineProperty(e2.prototype, "_tempDisplayObjectParent", { get: function() {
3574
- return this.tempDisplayObjectParent === null && (this.tempDisplayObjectParent = new R()), this.tempDisplayObjectParent;
3574
+ return this.tempDisplayObjectParent === null && (this.tempDisplayObjectParent = new C()), this.tempDisplayObjectParent;
3575
3575
  }, enumerable: false, configurable: true }), e2.prototype.enableTempParent = function() {
3576
3576
  var t3 = this.parent;
3577
3577
  return this.parent = this._tempDisplayObjectParent, t3;
@@ -3636,17 +3636,17 @@ var Slide = function(t) {
3636
3636
  (e3 = this._mask.maskObject || this._mask)._maskRefCount === 0 && (e3.renderable = false, e3.isMask = true), e3._maskRefCount++;
3637
3637
  }
3638
3638
  }, enumerable: false, configurable: true }), e2;
3639
- }(o.EventEmitter), R = function(t2) {
3639
+ }(o.EventEmitter), C = function(t2) {
3640
3640
  function e2() {
3641
3641
  var e3 = t2 !== null && t2.apply(this, arguments) || this;
3642
3642
  return e3.sortDirty = null, e3;
3643
3643
  }
3644
3644
  return l(e2, t2), e2;
3645
- }(C);
3645
+ }(R);
3646
3646
  function I(t2, e2) {
3647
3647
  return t2.zIndex === e2.zIndex ? t2._lastSortedIndex - e2._lastSortedIndex : t2.zIndex - e2.zIndex;
3648
3648
  }
3649
- C.prototype.displayObjectUpdateTransform = C.prototype.updateTransform, function(t2) {
3649
+ R.prototype.displayObjectUpdateTransform = R.prototype.updateTransform, function(t2) {
3650
3650
  t2[t2.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", t2[t2.WEBGL = 1] = "WEBGL", t2[t2.WEBGL2 = 2] = "WEBGL2";
3651
3651
  }(h || (h = {})), function(t2) {
3652
3652
  t2[t2.UNKNOWN = 0] = "UNKNOWN", t2[t2.WEBGL = 1] = "WEBGL", t2[t2.CANVAS = 2] = "CANVAS";
@@ -3849,7 +3849,7 @@ var Slide = function(t) {
3849
3849
  var e3 = this.getLocalBounds().height;
3850
3850
  this.scale.y = e3 !== 0 ? t3 / e3 : 1, this._height = t3;
3851
3851
  }, enumerable: false, configurable: true }), e2;
3852
- }(C);
3852
+ }(R);
3853
3853
  P.prototype.containerUpdateTransform = P.prototype.updateTransform;
3854
3854
  }, function(t, e, i) {
3855
3855
  var n = Object.prototype.hasOwnProperty, r = "~";
@@ -4338,8 +4338,8 @@ var Slide = function(t) {
4338
4338
  var g = 2 * a2.width, v = 2 * a2.height, _ = a2.x - g / 2, y = a2.y - v / 2, x = g / 2 * 0.5522848, b = v / 2 * 0.5522848, T = _ + g, E = y + v, S = _ + g / 2, w = y + v / 2;
4339
4339
  e2.moveTo(_, w), e2.bezierCurveTo(_, w - b, S - x, y, S, y), e2.bezierCurveTo(S + x, y, T, w - b, T, w), e2.bezierCurveTo(T, w + b, S + x, E, S, E), e2.bezierCurveTo(S - x, E, _, w + b, _, w), e2.closePath();
4340
4340
  } else if (a2.type === o.l.RREC) {
4341
- var A = a2.x, M = a2.y, C = a2.width, R = a2.height, I = a2.radius, P = Math.min(C, R) / 2;
4342
- I = I > P ? P : I, e2.moveTo(A, M + I), e2.lineTo(A, M + R - I), e2.quadraticCurveTo(A, M + R, A + I, M + R), e2.lineTo(A + C - I, M + R), e2.quadraticCurveTo(A + C, M + R, A + C, M + R - I), e2.lineTo(A + C, M + I), e2.quadraticCurveTo(A + C, M, A + C - I, M), e2.lineTo(A + I, M), e2.quadraticCurveTo(A, M, A, M + I), e2.closePath();
4341
+ var A = a2.x, M = a2.y, R = a2.width, C = a2.height, I = a2.radius, P = Math.min(R, C) / 2;
4342
+ I = I > P ? P : I, e2.moveTo(A, M + I), e2.lineTo(A, M + C - I), e2.quadraticCurveTo(A, M + C, A + I, M + C), e2.lineTo(A + R - I, M + C), e2.quadraticCurveTo(A + R, M + C, A + R, M + C - I), e2.lineTo(A + R, M + I), e2.quadraticCurveTo(A + R, M, A + R - I, M), e2.lineTo(A + I, M), e2.quadraticCurveTo(A, M, A, M + I), e2.closePath();
4343
4343
  }
4344
4344
  }
4345
4345
  }, t2.prototype.popMask = function(t3) {
@@ -5498,7 +5498,7 @@ var Slide = function(t) {
5498
5498
  } else
5499
5499
  n2 = s.reject("Invalid arguments");
5500
5500
  return a(n2, e4), n2;
5501
- } }, M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", C = /^~~local_forage_type~([^~]+)~/, R = "__lfsc__:".length, I = R + "arbf".length, P = Object.prototype.toString;
5501
+ } }, M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, C = "__lfsc__:".length, I = C + "arbf".length, P = Object.prototype.toString;
5502
5502
  function O(t3) {
5503
5503
  var e4, i3, n2, r2, o2, s2 = 0.75 * t3.length, a2 = t3.length, l2 = 0;
5504
5504
  t3[t3.length - 1] === "=" && (s2--, t3[t3.length - 2] === "=" && s2--);
@@ -5531,11 +5531,11 @@ var Slide = function(t) {
5531
5531
  console.error("Couldn't convert value into a JSON string: ", t3), e4(null, i4);
5532
5532
  }
5533
5533
  }, deserialize: function(t3) {
5534
- if (t3.substring(0, R) !== "__lfsc__:")
5534
+ if (t3.substring(0, C) !== "__lfsc__:")
5535
5535
  return JSON.parse(t3);
5536
- var e4, i3 = t3.substring(I), n2 = t3.substring(R, I);
5537
- if (n2 === "blob" && C.test(i3)) {
5538
- var r2 = i3.match(C);
5536
+ var e4, i3 = t3.substring(I), n2 = t3.substring(C, I);
5537
+ if (n2 === "blob" && R.test(i3)) {
5538
+ var r2 = i3.match(R);
5539
5539
  e4 = r2[1], i3 = i3.substring(r2[0].length);
5540
5540
  }
5541
5541
  var s2 = O(i3);
@@ -6401,7 +6401,7 @@ var Slide = function(t) {
6401
6401
  function S() {
6402
6402
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
6403
6403
  }
6404
- var w = /^([a-z0-9.+-]+:)/i, A = /:[0-9]*$/, M = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, C = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", " "]), R = ["'"].concat(C), I = ["%", "/", "?", ";", "#"].concat(R), P = ["/", "?", "#"], O = /^[+a-z0-9A-Z_-]{0,63}$/, N = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, L = { javascript: true, "javascript:": true }, D = { javascript: true, "javascript:": true }, F = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true };
6404
+ var w = /^([a-z0-9.+-]+:)/i, A = /:[0-9]*$/, M = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, R = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", " "]), C = ["'"].concat(R), I = ["%", "/", "?", ";", "#"].concat(C), P = ["/", "?", "#"], O = /^[+a-z0-9A-Z_-]{0,63}$/, N = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, L = { javascript: true, "javascript:": true }, D = { javascript: true, "javascript:": true }, F = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true };
6405
6405
  function B(t3, e2, i2) {
6406
6406
  if (t3 && p(t3) && t3 instanceof S)
6407
6407
  return t3;
@@ -6446,8 +6446,8 @@ var Slide = function(t) {
6446
6446
  for (var E2 = "", S2 = 0, A2 = T2.length; S2 < A2; S2++)
6447
6447
  T2.charCodeAt(S2) > 127 ? E2 += "x" : E2 += T2[S2];
6448
6448
  if (!E2.match(O)) {
6449
- var C2 = y2.slice(0, g2), B2 = y2.slice(g2 + 1), U2 = T2.match(N);
6450
- U2 && (C2.push(U2[1]), B2.unshift(U2[2])), B2.length && (s2 = "/" + B2.join(".") + s2), this.hostname = C2.join(".");
6449
+ var R2 = y2.slice(0, g2), B2 = y2.slice(g2 + 1), U2 = T2.match(N);
6450
+ U2 && (R2.push(U2[1]), B2.unshift(U2[2])), B2.length && (s2 = "/" + B2.join(".") + s2), this.hostname = R2.join(".");
6451
6451
  break;
6452
6452
  }
6453
6453
  }
@@ -6457,8 +6457,8 @@ var Slide = function(t) {
6457
6457
  this.host = G2 + k2, this.href += this.host, _2 && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s2[0] !== "/" && (s2 = "/" + s2));
6458
6458
  }
6459
6459
  if (!L[h2])
6460
- for (g2 = 0, b2 = R.length; g2 < b2; g2++) {
6461
- var H2 = R[g2];
6460
+ for (g2 = 0, b2 = C.length; g2 < b2; g2++) {
6461
+ var H2 = C[g2];
6462
6462
  if (s2.indexOf(H2) !== -1) {
6463
6463
  var j2 = encodeURIComponent(H2);
6464
6464
  j2 === H2 && (j2 = escape(H2)), s2 = s2.split(H2).join(j2);
@@ -6530,19 +6530,19 @@ var Slide = function(t) {
6530
6530
  T2 || (T2 = []), T2.pop(), T2 = T2.concat(p2), i2.search = t3.search, i2.query = t3.query;
6531
6531
  else if (!m(t3.search)) {
6532
6532
  if (E2)
6533
- i2.hostname = i2.host = T2.shift(), (R2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R2.shift(), i2.host = i2.hostname = R2.shift());
6533
+ i2.hostname = i2.host = T2.shift(), (C2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C2.shift(), i2.host = i2.hostname = C2.shift());
6534
6534
  return i2.search = t3.search, i2.query = t3.query, f(i2.pathname) && f(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.href = i2.format(), i2;
6535
6535
  }
6536
6536
  if (!T2.length)
6537
6537
  return i2.pathname = null, i2.search ? i2.path = "/" + i2.search : i2.path = null, i2.href = i2.format(), i2;
6538
- for (var w2 = T2.slice(-1)[0], A2 = (i2.host || t3.host || T2.length > 1) && (w2 === "." || w2 === "..") || w2 === "", M2 = 0, C2 = T2.length; C2 >= 0; C2--)
6539
- (w2 = T2[C2]) === "." ? T2.splice(C2, 1) : w2 === ".." ? (T2.splice(C2, 1), M2++) : M2 && (T2.splice(C2, 1), M2--);
6538
+ for (var w2 = T2.slice(-1)[0], A2 = (i2.host || t3.host || T2.length > 1) && (w2 === "." || w2 === "..") || w2 === "", M2 = 0, R2 = T2.length; R2 >= 0; R2--)
6539
+ (w2 = T2[R2]) === "." ? T2.splice(R2, 1) : w2 === ".." ? (T2.splice(R2, 1), M2++) : M2 && (T2.splice(R2, 1), M2--);
6540
6540
  if (!x2 && !b2)
6541
6541
  for (; M2--; M2)
6542
6542
  T2.unshift("..");
6543
6543
  !x2 || T2[0] === "" || T2[0] && T2[0].charAt(0) === "/" || T2.unshift(""), A2 && T2.join("/").substr(-1) !== "/" && T2.push("");
6544
- var R2, I2 = T2[0] === "" || T2[0] && T2[0].charAt(0) === "/";
6545
- E2 && (i2.hostname = i2.host = I2 ? "" : T2.length ? T2.shift() : "", (R2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R2.shift(), i2.host = i2.hostname = R2.shift()));
6544
+ var C2, I2 = T2[0] === "" || T2[0] && T2[0].charAt(0) === "/";
6545
+ E2 && (i2.hostname = i2.host = I2 ? "" : T2.length ? T2.shift() : "", (C2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C2.shift(), i2.host = i2.hostname = C2.shift()));
6546
6546
  return (x2 = x2 || i2.host && T2.length) && !I2 && T2.unshift(""), T2.length ? i2.pathname = T2.join("/") : (i2.pathname = null, i2.path = null), f(i2.pathname) && f(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.auth = t3.auth || i2.auth, i2.slashes = i2.slashes || t3.slashes, i2.href = i2.format(), i2;
6547
6547
  }, S.prototype.parseHost = function() {
6548
6548
  var t3 = this.host, e2 = A.exec(t3);
@@ -7117,7 +7117,7 @@ var Slide = function(t) {
7117
7117
  }, e2.test = function(t4) {
7118
7118
  return t4 instanceof Float32Array || t4 instanceof Uint8Array || t4 instanceof Uint32Array;
7119
7119
  }, e2;
7120
- }(At), Ct = { scaleMode: r.p.NEAREST, format: r.h.RGBA, alphaMode: r.a.NPM }, Rt = function(t3) {
7120
+ }(At), Rt = { scaleMode: r.p.NEAREST, format: r.h.RGBA, alphaMode: r.a.NPM }, Ct = function(t3) {
7121
7121
  function e2(e3, i2) {
7122
7122
  e3 === void 0 && (e3 = null), i2 === void 0 && (i2 = null);
7123
7123
  var o2 = t3.call(this) || this, s2 = (i2 = i2 || {}).alphaMode, a2 = i2.mipmap, l2 = i2.anisotropicLevel, h2 = i2.scaleMode, u2 = i2.width, c2 = i2.height, d2 = i2.wrapMode, p2 = i2.format, f2 = i2.type, m2 = i2.target, g2 = i2.resolution, v2 = i2.resourceOptions;
@@ -7186,7 +7186,7 @@ var Slide = function(t) {
7186
7186
  }, e2.fromBuffer = function(t4, i2, n2, o2) {
7187
7187
  t4 = t4 || new Float32Array(i2 * n2 * 4);
7188
7188
  var s2 = new Mt(t4, { width: i2, height: n2 }), a2 = t4 instanceof Float32Array ? r.r.FLOAT : r.r.UNSIGNED_BYTE;
7189
- return new e2(s2, Object.assign(Ct, o2 || { width: i2, height: n2, type: a2 }));
7189
+ return new e2(s2, Object.assign(Rt, o2 || { width: i2, height: n2, type: a2 }));
7190
7190
  }, e2.addToCache = function(t4, e3) {
7191
7191
  e3 && (t4.textureCacheIds.indexOf(e3) === -1 && t4.textureCacheIds.push(e3), $[e3] && console.warn("BaseTexture added to the cache with an id [" + e3 + "] that already had an entry"), $[e3] = t4);
7192
7192
  }, e2.removeFromCache = function(t4) {
@@ -7208,7 +7208,7 @@ var Slide = function(t) {
7208
7208
  var n2 = this, r2 = i2 || {}, o2 = r2.width, s2 = r2.height;
7209
7209
  (n2 = t3.call(this, o2, s2) || this).items = [], n2.itemDirtyIds = [];
7210
7210
  for (var a2 = 0; a2 < e3; a2++) {
7211
- var l2 = new Rt();
7211
+ var l2 = new Ct();
7212
7212
  n2.items.push(l2), n2.itemDirtyIds.push(-2);
7213
7213
  }
7214
7214
  return n2.length = e3, n2._load = null, n2.baseTexture = null, n2;
@@ -7516,9 +7516,9 @@ var Slide = function(t) {
7516
7516
  return Object.defineProperty(t3.prototype, "colorTexture", { get: function() {
7517
7517
  return this.colorTextures[0];
7518
7518
  }, enumerable: false, configurable: true }), t3.prototype.addColorTexture = function(t4, e2) {
7519
- return t4 === void 0 && (t4 = 0), this.colorTextures[t4] = e2 || new Rt(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
7519
+ return t4 === void 0 && (t4 = 0), this.colorTextures[t4] = e2 || new Ct(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
7520
7520
  }, t3.prototype.addDepthTexture = function(t4) {
7521
- return this.depthTexture = t4 || new Rt(new Gt(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
7521
+ return this.depthTexture = t4 || new Ct(new Gt(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
7522
7522
  }, t3.prototype.enableDepth = function() {
7523
7523
  return this.depth = true, this.dirtyId++, this.dirtyFormat++, this;
7524
7524
  }, t3.prototype.enableStencil = function() {
@@ -7557,7 +7557,7 @@ var Slide = function(t) {
7557
7557
  }, e2.prototype.destroy = function() {
7558
7558
  t3.prototype.destroy.call(this), this.framebuffer.destroyDepthTexture(), this.framebuffer = null;
7559
7559
  }, e2;
7560
- }(Rt), zt = function() {
7560
+ }(Ct), zt = function() {
7561
7561
  function t3() {
7562
7562
  this.x0 = 0, this.y0 = 0, this.x1 = 1, this.y1 = 0, this.x2 = 1, this.y2 = 1, this.x3 = 0, this.y3 = 1, this.uvsFloat32 = new Float32Array(8);
7563
7563
  }
@@ -7618,10 +7618,10 @@ var Slide = function(t) {
7618
7618
  var o2 = typeof t4 == "string", s2 = null;
7619
7619
  if (o2)
7620
7620
  s2 = t4;
7621
- else if (t4 instanceof Rt) {
7621
+ else if (t4 instanceof Ct) {
7622
7622
  if (!t4.cacheId) {
7623
7623
  var a2 = i2 && i2.pixiIdPrefix || "pixiid";
7624
- t4.cacheId = a2 + "-" + Y(), Rt.addToCache(t4, t4.cacheId);
7624
+ t4.cacheId = a2 + "-" + Y(), Ct.addToCache(t4, t4.cacheId);
7625
7625
  }
7626
7626
  s2 = t4.cacheId;
7627
7627
  } else {
@@ -7634,19 +7634,19 @@ var Slide = function(t) {
7634
7634
  var l2 = Q[s2];
7635
7635
  if (o2 && r2 && !l2)
7636
7636
  throw new Error('The cacheId "' + s2 + '" does not exist in TextureCache.');
7637
- return l2 || t4 instanceof Rt ? !l2 && t4 instanceof Rt && (l2 = new e2(t4), e2.addToCache(l2, s2)) : (i2.resolution || (i2.resolution = et(t4)), (l2 = new e2(new Rt(t4, i2))).baseTexture.cacheId = s2, Rt.addToCache(l2.baseTexture, s2), e2.addToCache(l2, s2)), l2;
7637
+ return l2 || t4 instanceof Ct ? !l2 && t4 instanceof Ct && (l2 = new e2(t4), e2.addToCache(l2, s2)) : (i2.resolution || (i2.resolution = et(t4)), (l2 = new e2(new Ct(t4, i2))).baseTexture.cacheId = s2, Ct.addToCache(l2.baseTexture, s2), e2.addToCache(l2, s2)), l2;
7638
7638
  }, e2.fromURL = function(t4, i2) {
7639
7639
  var n2 = Object.assign({ autoLoad: false }, i2 == null ? void 0 : i2.resourceOptions), r2 = e2.from(t4, Object.assign({ resourceOptions: n2 }, i2), false), o2 = r2.baseTexture.resource;
7640
7640
  return r2.baseTexture.valid ? Promise.resolve(r2) : o2.load().then(function() {
7641
7641
  return Promise.resolve(r2);
7642
7642
  });
7643
7643
  }, e2.fromBuffer = function(t4, i2, n2, r2) {
7644
- return new e2(Rt.fromBuffer(t4, i2, n2, r2));
7644
+ return new e2(Ct.fromBuffer(t4, i2, n2, r2));
7645
7645
  }, e2.fromLoader = function(t4, i2, r2, o2) {
7646
- var s2 = new Rt(t4, Object.assign({ scaleMode: n.b.SCALE_MODE, resolution: et(i2) }, o2)), a2 = s2.resource;
7646
+ var s2 = new Ct(t4, Object.assign({ scaleMode: n.b.SCALE_MODE, resolution: et(i2) }, o2)), a2 = s2.resource;
7647
7647
  a2 instanceof Dt && (a2.url = i2);
7648
7648
  var l2 = new e2(s2);
7649
- return r2 || (r2 = i2), Rt.addToCache(l2.baseTexture, r2), e2.addToCache(l2, r2), r2 !== i2 && (Rt.addToCache(l2.baseTexture, i2), e2.addToCache(l2, i2)), l2.baseTexture.valid ? Promise.resolve(l2) : new Promise(function(t5) {
7649
+ return r2 || (r2 = i2), Ct.addToCache(l2.baseTexture, r2), e2.addToCache(l2, r2), r2 !== i2 && (Ct.addToCache(l2.baseTexture, i2), e2.addToCache(l2, i2)), l2.baseTexture.valid ? Promise.resolve(l2) : new Promise(function(t5) {
7650
7650
  l2.baseTexture.once("loaded", function() {
7651
7651
  return t5(l2);
7652
7652
  });
@@ -7689,11 +7689,11 @@ var Slide = function(t) {
7689
7689
  }, enumerable: false, configurable: true }), e2.prototype.castToBaseTexture = function() {
7690
7690
  return this.baseTexture;
7691
7691
  }, Object.defineProperty(e2, "EMPTY", { get: function() {
7692
- return e2._EMPTY || (e2._EMPTY = new e2(new Rt()), Xt(e2._EMPTY), Xt(e2._EMPTY.baseTexture)), e2._EMPTY;
7692
+ return e2._EMPTY || (e2._EMPTY = new e2(new Ct()), Xt(e2._EMPTY), Xt(e2._EMPTY.baseTexture)), e2._EMPTY;
7693
7693
  }, enumerable: false, configurable: true }), Object.defineProperty(e2, "WHITE", { get: function() {
7694
7694
  if (!e2._WHITE) {
7695
7695
  var t4 = document.createElement("canvas"), i2 = t4.getContext("2d");
7696
- t4.width = 16, t4.height = 16, i2.fillStyle = "white", i2.fillRect(0, 0, 16, 16), e2._WHITE = new e2(new Rt(new Nt(t4))), Xt(e2._WHITE), Xt(e2._WHITE.baseTexture);
7696
+ t4.width = 16, t4.height = 16, i2.fillStyle = "white", i2.fillRect(0, 0, 16, 16), e2._WHITE = new e2(new Ct(new Nt(t4))), Xt(e2._WHITE), Xt(e2._WHITE.baseTexture);
7697
7697
  }
7698
7698
  return e2._WHITE;
7699
7699
  }, enumerable: false, configurable: true }), e2;
@@ -8439,7 +8439,7 @@ var Slide = function(t) {
8439
8439
  return null;
8440
8440
  }
8441
8441
  var we, Ae = {}, Me = Ae;
8442
- function Ce() {
8442
+ function Re() {
8443
8443
  if (!we) {
8444
8444
  we = r.m.MEDIUM;
8445
8445
  var t3 = function() {
@@ -8456,7 +8456,7 @@ var Slide = function(t) {
8456
8456
  }
8457
8457
  return we;
8458
8458
  }
8459
- function Re(t3, e2, i2) {
8459
+ function Ce(t3, e2, i2) {
8460
8460
  if (t3.substring(0, 9) !== "precision") {
8461
8461
  var n2 = e2;
8462
8462
  return e2 === r.m.HIGH && i2 !== r.m.HIGH && (n2 = r.m.MEDIUM), "precision " + n2 + " float;\n" + t3;
@@ -8522,7 +8522,7 @@ var Slide = function(t) {
8522
8522
  }
8523
8523
  var He = 0, je = {}, ze = function() {
8524
8524
  function t3(e2, i2, o2) {
8525
- o2 === void 0 && (o2 = "pixi-shader"), this.id = He++, this.vertexSrc = e2 || t3.defaultVertexSrc, this.fragmentSrc = i2 || t3.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), je[o2] ? (je[o2]++, o2 += "-" + je[o2]) : je[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = Re(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = Re(this.fragmentSrc, n.b.PRECISION_FRAGMENT, Ce())), this.glPrograms = {}, this.syncUniforms = null;
8525
+ o2 === void 0 && (o2 = "pixi-shader"), this.id = He++, this.vertexSrc = e2 || t3.defaultVertexSrc, this.fragmentSrc = i2 || t3.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), je[o2] ? (je[o2]++, o2 += "-" + je[o2]) : je[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = Ce(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = Ce(this.fragmentSrc, n.b.PRECISION_FRAGMENT, Re())), this.glPrograms = {}, this.syncUniforms = null;
8526
8526
  }
8527
8527
  return Object.defineProperty(t3, "defaultVertexSrc", { get: function() {
8528
8528
  return "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
@@ -9098,7 +9098,7 @@ var Slide = function(t) {
9098
9098
  this.texture = t3, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = false, this.wrapMode = 33071, this.type = r.r.UNSIGNED_BYTE, this.internalFormat = r.h.RGBA, this.samplerType = 0;
9099
9099
  }, vi = function() {
9100
9100
  function t3(t4) {
9101
- this.renderer = t4, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = false, this.unknownTexture = new Rt(), this.hasIntegerTextures = false;
9101
+ this.renderer = t4, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = false, this.unknownTexture = new Ct(), this.hasIntegerTextures = false;
9102
9102
  }
9103
9103
  return t3.prototype.contextChange = function() {
9104
9104
  var t4 = this.gl = this.renderer.gl;
@@ -9452,7 +9452,7 @@ var Slide = function(t) {
9452
9452
  }, e2.prototype.render = function(t4) {
9453
9453
  t4._texture.valid && (this._vertexCount + t4.vertexData.length / 2 > this.size && this.flush(), this._vertexCount += t4.vertexData.length / 2, this._indexCount += t4.indices.length, this._bufferedTextures[this._bufferSize] = t4._texture.baseTexture, this._bufferedElements[this._bufferSize++] = t4);
9454
9454
  }, e2.prototype.buildTexturesAndDrawCalls = function() {
9455
- var t4 = this._bufferedTextures, i2 = this.MAX_TEXTURES, n2 = e2._textureArrayPool, r2 = this.renderer.batch, o2 = this._tempBoundTextures, s2 = this.renderer.textureGC.count, a2 = ++Rt._globalBatch, l2 = 0, h2 = n2[0], u2 = 0;
9455
+ var t4 = this._bufferedTextures, i2 = this.MAX_TEXTURES, n2 = e2._textureArrayPool, r2 = this.renderer.batch, o2 = this._tempBoundTextures, s2 = this.renderer.textureGC.count, a2 = ++Ct._globalBatch, l2 = 0, h2 = n2[0], u2 = 0;
9456
9456
  r2.copyBoundTextures(o2, i2);
9457
9457
  for (var c2 = 0; c2 < this._bufferSize; ++c2) {
9458
9458
  var d2 = t4[c2];
@@ -9461,7 +9461,7 @@ var Slide = function(t) {
9461
9461
  h2.count > 0 && (r2.boundArray(h2, o2, a2, i2), this.buildDrawCalls(h2, u2, this._bufferSize), ++l2, ++a2);
9462
9462
  for (c2 = 0; c2 < o2.length; c2++)
9463
9463
  o2[c2] = null;
9464
- Rt._globalBatch = a2;
9464
+ Ct._globalBatch = a2;
9465
9465
  }, e2.prototype.buildDrawCalls = function(t4, i2, n2) {
9466
9466
  var r2 = this._bufferedElements, o2 = this._attributeBuffer, s2 = this._indexBuffer, a2 = this.vertexSize, l2 = e2._drawCallPool, h2 = this._dcIndex, u2 = this._aIndex, c2 = this._iIndex, d2 = l2[h2];
9467
9467
  d2.start = this._iIndex, d2.texArray = t4;
@@ -9539,19 +9539,19 @@ var Slide = function(t) {
9539
9539
  i2 > 0 && (e2 += "\nelse "), i2 < t4 - 1 && (e2 += "if(vTextureId < " + i2 + ".5)"), e2 += "\n{", e2 += "\n color = texture2D(uSamplers[" + i2 + "], vTextureCoord);", e2 += "\n}";
9540
9540
  return e2 += "\n", e2 += "\n";
9541
9541
  }, t3;
9542
- }(), Ci = function(t3) {
9542
+ }(), Ri = function(t3) {
9543
9543
  function e2(e3) {
9544
9544
  e3 === void 0 && (e3 = false);
9545
9545
  var i2 = t3.call(this) || this;
9546
9546
  return i2._buffer = new Kt(null, e3, false), i2._indexBuffer = new Kt(null, e3, true), i2.addAttribute("aVertexPosition", i2._buffer, 2, false, r.r.FLOAT).addAttribute("aTextureCoord", i2._buffer, 2, false, r.r.FLOAT).addAttribute("aColor", i2._buffer, 4, true, r.r.UNSIGNED_BYTE).addAttribute("aTextureId", i2._buffer, 1, true, r.r.FLOAT).addIndex(i2._indexBuffer), i2;
9547
9547
  }
9548
9548
  return St(e2, t3), e2;
9549
- }(ie), Ri = "precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n", Ii = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n";
9549
+ }(ie), Ci = "precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n", Ii = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n";
9550
9550
  (function() {
9551
9551
  function t3() {
9552
9552
  }
9553
9553
  return t3.create = function(t4) {
9554
- var e2 = Object.assign({ vertex: Ri, fragment: Ii, geometryClass: Ci, vertexSize: 6 }, t4), i2 = e2.vertex, n2 = e2.fragment, r2 = e2.vertexSize, o2 = e2.geometryClass;
9554
+ var e2 = Object.assign({ vertex: Ci, fragment: Ii, geometryClass: Ri, vertexSize: 6 }, t4), i2 = e2.vertex, n2 = e2.fragment, r2 = e2.vertexSize, o2 = e2.geometryClass;
9555
9555
  return function(t5) {
9556
9556
  function e3(e4) {
9557
9557
  var s2 = t5.call(this, e4) || this;
@@ -9560,7 +9560,7 @@ var Slide = function(t) {
9560
9560
  return St(e3, t5), e3;
9561
9561
  }(Ai);
9562
9562
  }, Object.defineProperty(t3, "defaultVertexSrc", { get: function() {
9563
- return Ri;
9563
+ return Ci;
9564
9564
  }, enumerable: false, configurable: true }), Object.defineProperty(t3, "defaultFragmentTemplate", { get: function() {
9565
9565
  return Ii;
9566
9566
  }, enumerable: false, configurable: true }), t3;
@@ -9589,8 +9589,8 @@ var Slide = function(t) {
9589
9589
  h2 && t4._cachedTint !== t4.tint && (t4._cachedTint = t4.tint, t4._cachedTexture = t4._cachedTexture || new Wt(u2), t4._tintedCanvas = o.b.getTintedCanvas({ texture: t4._cachedTexture }, t4.tint));
9590
9590
  var p2 = h2 ? t4._tintedCanvas : u2.getDrawableSource(), f2 = a2[e2] * u2.width, m2 = a2[i2] * u2.width, g2 = a2[n2] * u2.width, v2 = a2[e2 + 1] * u2.height, _2 = a2[i2 + 1] * u2.height, y2 = a2[n2 + 1] * u2.height, x2 = s2[e2], b2 = s2[i2], T2 = s2[n2], E2 = s2[e2 + 1], S2 = s2[i2 + 1], w2 = s2[n2 + 1], A2 = t4.canvasPadding / this.renderer.resolution;
9591
9591
  if (A2 > 0) {
9592
- var M2 = t4.worldTransform, C2 = M2.a, R2 = M2.b, I2 = M2.c, P2 = M2.d, O2 = (x2 + b2 + T2) / 3, N2 = (E2 + S2 + w2) / 3, L2 = x2 - O2, D2 = E2 - N2, F2 = C2 * L2 + I2 * D2, B2 = R2 * L2 + P2 * D2, U2 = Math.sqrt(F2 * F2 + B2 * B2), k2 = 1 + A2 / U2;
9593
- x2 = O2 + L2 * k2, E2 = N2 + D2 * k2, F2 = C2 * (L2 = b2 - O2) + I2 * (D2 = S2 - N2), B2 = R2 * L2 + P2 * D2, b2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), S2 = N2 + D2 * k2, F2 = C2 * (L2 = T2 - O2) + I2 * (D2 = w2 - N2), B2 = R2 * L2 + P2 * D2, T2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), w2 = N2 + D2 * k2;
9592
+ var M2 = t4.worldTransform, R2 = M2.a, C2 = M2.b, I2 = M2.c, P2 = M2.d, O2 = (x2 + b2 + T2) / 3, N2 = (E2 + S2 + w2) / 3, L2 = x2 - O2, D2 = E2 - N2, F2 = R2 * L2 + I2 * D2, B2 = C2 * L2 + P2 * D2, U2 = Math.sqrt(F2 * F2 + B2 * B2), k2 = 1 + A2 / U2;
9593
+ x2 = O2 + L2 * k2, E2 = N2 + D2 * k2, F2 = R2 * (L2 = b2 - O2) + I2 * (D2 = S2 - N2), B2 = C2 * L2 + P2 * D2, b2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), S2 = N2 + D2 * k2, F2 = R2 * (L2 = T2 - O2) + I2 * (D2 = w2 - N2), B2 = C2 * L2 + P2 * D2, T2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), w2 = N2 + D2 * k2;
9594
9594
  }
9595
9595
  r2.save(), r2.beginPath(), r2.moveTo(x2, E2), r2.lineTo(b2, S2), r2.lineTo(T2, w2), r2.closePath(), r2.clip();
9596
9596
  var G2 = f2 * _2 + v2 * g2 + m2 * y2 - _2 * g2 - v2 * m2 - f2 * y2, H2 = x2 * _2 + v2 * T2 + b2 * y2 - _2 * T2 - v2 * b2 - x2 * y2, j2 = f2 * b2 + x2 * g2 + m2 * T2 - b2 * g2 - x2 * m2 - f2 * T2, z2 = f2 * _2 * T2 + v2 * b2 * g2 + x2 * m2 * y2 - x2 * _2 * g2 - v2 * m2 * T2 - f2 * b2 * y2, V2 = E2 * _2 + v2 * w2 + S2 * y2 - _2 * w2 - v2 * S2 - E2 * y2, X2 = f2 * S2 + E2 * g2 + m2 * w2 - S2 * g2 - E2 * m2 - f2 * w2, W2 = f2 * _2 * w2 + v2 * S2 * g2 + E2 * m2 * y2 - E2 * _2 * g2 - v2 * m2 * w2 - f2 * S2 * y2;
@@ -9683,16 +9683,16 @@ var Slide = function(t) {
9683
9683
  }
9684
9684
  if (!g[b] && (E || b && !v[b])) {
9685
9685
  for (var S, w, A = -1, M = 0; M < d.length; M++) {
9686
- (C = y2.indexOf(d[M])) !== -1 && (A === -1 || C < A) && (A = C);
9686
+ (R = y2.indexOf(d[M])) !== -1 && (A === -1 || R < A) && (A = R);
9687
9687
  }
9688
9688
  (w = A === -1 ? y2.lastIndexOf("@") : y2.lastIndexOf("@", A)) !== -1 && (S = y2.slice(0, w), y2 = y2.slice(w + 1), this.auth = decodeURIComponent(S)), A = -1;
9689
9689
  for (M = 0; M < c.length; M++) {
9690
- var C;
9691
- (C = y2.indexOf(c[M])) !== -1 && (A === -1 || C < A) && (A = C);
9690
+ var R;
9691
+ (R = y2.indexOf(c[M])) !== -1 && (A === -1 || R < A) && (A = R);
9692
9692
  }
9693
9693
  A === -1 && (A = y2.length), this.host = y2.slice(0, A), y2 = y2.slice(A), this.parseHost(), this.hostname = this.hostname || "";
9694
- var R = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
9695
- if (!R)
9694
+ var C = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
9695
+ if (!C)
9696
9696
  for (var I = this.hostname.split(/\./), P = (M = 0, I.length); M < P; M++) {
9697
9697
  var O = I[M];
9698
9698
  if (O && !O.match(p)) {
@@ -9705,9 +9705,9 @@ var Slide = function(t) {
9705
9705
  }
9706
9706
  }
9707
9707
  }
9708
- this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), R || (this.hostname = n.toASCII(this.hostname));
9708
+ this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), C || (this.hostname = n.toASCII(this.hostname));
9709
9709
  var k = this.port ? ":" + this.port : "", G = this.hostname || "";
9710
- this.host = G + k, this.href += this.host, R && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
9710
+ this.host = G + k, this.href += this.host, C && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
9711
9711
  }
9712
9712
  if (!m[T])
9713
9713
  for (M = 0, P = u.length; M < P; M++) {
@@ -9783,19 +9783,19 @@ var Slide = function(t) {
9783
9783
  E || (E = []), E.pop(), E = E.concat(f2), i2.search = t2.search, i2.query = t2.query;
9784
9784
  else if (!r.isNullOrUndefined(t2.search)) {
9785
9785
  if (S)
9786
- i2.hostname = i2.host = E.shift(), (R = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R.shift(), i2.host = i2.hostname = R.shift());
9786
+ i2.hostname = i2.host = E.shift(), (C = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C.shift(), i2.host = i2.hostname = C.shift());
9787
9787
  return i2.search = t2.search, i2.query = t2.query, r.isNull(i2.pathname) && r.isNull(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.href = i2.format(), i2;
9788
9788
  }
9789
9789
  if (!E.length)
9790
9790
  return i2.pathname = null, i2.search ? i2.path = "/" + i2.search : i2.path = null, i2.href = i2.format(), i2;
9791
- for (var w = E.slice(-1)[0], A = (i2.host || t2.host || E.length > 1) && (w === "." || w === "..") || w === "", M = 0, C = E.length; C >= 0; C--)
9792
- (w = E[C]) === "." ? E.splice(C, 1) : w === ".." ? (E.splice(C, 1), M++) : M && (E.splice(C, 1), M--);
9791
+ for (var w = E.slice(-1)[0], A = (i2.host || t2.host || E.length > 1) && (w === "." || w === "..") || w === "", M = 0, R = E.length; R >= 0; R--)
9792
+ (w = E[R]) === "." ? E.splice(R, 1) : w === ".." ? (E.splice(R, 1), M++) : M && (E.splice(R, 1), M--);
9793
9793
  if (!b && !T)
9794
9794
  for (; M--; M)
9795
9795
  E.unshift("..");
9796
9796
  !b || E[0] === "" || E[0] && E[0].charAt(0) === "/" || E.unshift(""), A && E.join("/").substr(-1) !== "/" && E.push("");
9797
- var R, I = E[0] === "" || E[0] && E[0].charAt(0) === "/";
9798
- S && (i2.hostname = i2.host = I ? "" : E.length ? E.shift() : "", (R = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R.shift(), i2.host = i2.hostname = R.shift()));
9797
+ var C, I = E[0] === "" || E[0] && E[0].charAt(0) === "/";
9798
+ S && (i2.hostname = i2.host = I ? "" : E.length ? E.shift() : "", (C = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C.shift(), i2.host = i2.hostname = C.shift()));
9799
9799
  return (b = b || i2.host && E.length) && !I && E.unshift(""), E.length ? i2.pathname = E.join("/") : (i2.pathname = null, i2.path = null), r.isNull(i2.pathname) && r.isNull(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.auth = t2.auth || i2.auth, i2.slashes = i2.slashes || t2.slashes, i2.href = i2.format(), i2;
9800
9800
  }, o.prototype.parseHost = function() {
9801
9801
  var t2 = this.host, e2 = a.exec(t2);
@@ -10066,7 +10066,7 @@ var Slide = function(t) {
10066
10066
  }
10067
10067
  function r(t2, e2, i2, n2, r2) {
10068
10068
  var o2, s2;
10069
- if (r2 === C(t2, e2, i2, n2) > 0)
10069
+ if (r2 === R(t2, e2, i2, n2) > 0)
10070
10070
  for (o2 = e2; o2 < i2; o2 += n2)
10071
10071
  s2 = w(o2, t2[o2], t2[o2 + 1], s2);
10072
10072
  else
@@ -10269,17 +10269,17 @@ var Slide = function(t) {
10269
10269
  function M(t2, e2, i2) {
10270
10270
  this.i = t2, this.x = e2, this.y = i2, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = false;
10271
10271
  }
10272
- function C(t2, e2, i2, n2) {
10272
+ function R(t2, e2, i2, n2) {
10273
10273
  for (var r2 = 0, o2 = e2, s2 = i2 - n2; o2 < i2; o2 += n2)
10274
10274
  r2 += (t2[s2] - t2[o2]) * (t2[o2 + 1] + t2[s2 + 1]), s2 = o2;
10275
10275
  return r2;
10276
10276
  }
10277
10277
  t.exports = n, t.exports.default = n, n.deviation = function(t2, e2, i2, n2) {
10278
- var r2 = e2 && e2.length, o2 = r2 ? e2[0] * i2 : t2.length, s2 = Math.abs(C(t2, 0, o2, i2));
10278
+ var r2 = e2 && e2.length, o2 = r2 ? e2[0] * i2 : t2.length, s2 = Math.abs(R(t2, 0, o2, i2));
10279
10279
  if (r2)
10280
10280
  for (var a2 = 0, l2 = e2.length; a2 < l2; a2++) {
10281
10281
  var h2 = e2[a2] * i2, u2 = a2 < l2 - 1 ? e2[a2 + 1] * i2 : t2.length;
10282
- s2 -= Math.abs(C(t2, h2, u2, i2));
10282
+ s2 -= Math.abs(R(t2, h2, u2, i2));
10283
10283
  }
10284
10284
  var c2 = 0;
10285
10285
  for (a2 = 0; a2 < n2.length; a2 += 3) {
@@ -12414,9 +12414,9 @@ var Slide = function(t) {
12414
12414
  };
12415
12415
  }, function(t, e, i) {
12416
12416
  var n = i(54), r = i(206), o = i(68), s = i(208), a = i(209), l = i(212), h = i(213), u = i(214), c = i(215), d = i(59), p = i(216), f = i(31), m = i(217), g = i(218), v = i(223), _ = i(30), y = i(40), x = i(225), b = i(21), T = i(227), E = i(39), S = i(44), w = {};
12417
- w["[object Arguments]"] = w["[object Array]"] = w["[object ArrayBuffer]"] = w["[object DataView]"] = w["[object Boolean]"] = w["[object Date]"] = w["[object Float32Array]"] = w["[object Float64Array]"] = w["[object Int8Array]"] = w["[object Int16Array]"] = w["[object Int32Array]"] = w["[object Map]"] = w["[object Number]"] = w["[object Object]"] = w["[object RegExp]"] = w["[object Set]"] = w["[object String]"] = w["[object Symbol]"] = w["[object Uint8Array]"] = w["[object Uint8ClampedArray]"] = w["[object Uint16Array]"] = w["[object Uint32Array]"] = true, w["[object Error]"] = w["[object Function]"] = w["[object WeakMap]"] = false, t.exports = function t2(e2, i2, A, M, C, R) {
12417
+ w["[object Arguments]"] = w["[object Array]"] = w["[object ArrayBuffer]"] = w["[object DataView]"] = w["[object Boolean]"] = w["[object Date]"] = w["[object Float32Array]"] = w["[object Float64Array]"] = w["[object Int8Array]"] = w["[object Int16Array]"] = w["[object Int32Array]"] = w["[object Map]"] = w["[object Number]"] = w["[object Object]"] = w["[object RegExp]"] = w["[object Set]"] = w["[object String]"] = w["[object Symbol]"] = w["[object Uint8Array]"] = w["[object Uint8ClampedArray]"] = w["[object Uint16Array]"] = w["[object Uint32Array]"] = true, w["[object Error]"] = w["[object Function]"] = w["[object WeakMap]"] = false, t.exports = function t2(e2, i2, A, M, R, C) {
12418
12418
  var I, P = 1 & i2, O = 2 & i2, N = 4 & i2;
12419
- if (A && (I = C ? A(e2, M, C, R) : A(e2)), I !== void 0)
12419
+ if (A && (I = R ? A(e2, M, R, C) : A(e2)), I !== void 0)
12420
12420
  return I;
12421
12421
  if (!b(e2))
12422
12422
  return e2;
@@ -12428,27 +12428,27 @@ var Slide = function(t) {
12428
12428
  var D = f(e2), F = D == "[object Function]" || D == "[object GeneratorFunction]";
12429
12429
  if (y(e2))
12430
12430
  return l(e2, P);
12431
- if (D == "[object Object]" || D == "[object Arguments]" || F && !C) {
12431
+ if (D == "[object Object]" || D == "[object Arguments]" || F && !R) {
12432
12432
  if (I = O || F ? {} : v(e2), !P)
12433
12433
  return O ? c(e2, a(I, e2)) : u(e2, s(I, e2));
12434
12434
  } else {
12435
12435
  if (!w[D])
12436
- return C ? e2 : {};
12436
+ return R ? e2 : {};
12437
12437
  I = g(e2, D, P);
12438
12438
  }
12439
12439
  }
12440
- R || (R = new n());
12441
- var B = R.get(e2);
12440
+ C || (C = new n());
12441
+ var B = C.get(e2);
12442
12442
  if (B)
12443
12443
  return B;
12444
- R.set(e2, I), T(e2) ? e2.forEach(function(n2) {
12445
- I.add(t2(n2, i2, A, n2, e2, R));
12444
+ C.set(e2, I), T(e2) ? e2.forEach(function(n2) {
12445
+ I.add(t2(n2, i2, A, n2, e2, C));
12446
12446
  }) : x(e2) && e2.forEach(function(n2, r2) {
12447
- I.set(r2, t2(n2, i2, A, r2, e2, R));
12447
+ I.set(r2, t2(n2, i2, A, r2, e2, C));
12448
12448
  });
12449
12449
  var U = L ? void 0 : (N ? O ? p : d : O ? S : E)(e2);
12450
12450
  return r(U || e2, function(n2, r2) {
12451
- U && (n2 = e2[r2 = n2]), o(I, r2, t2(n2, i2, A, r2, e2, R));
12451
+ U && (n2 = e2[r2 = n2]), o(I, r2, t2(n2, i2, A, r2, e2, C));
12452
12452
  }), I;
12453
12453
  };
12454
12454
  }, function(t, e) {
@@ -13614,10 +13614,10 @@ var Slide = function(t) {
13614
13614
  return this.x = t2.x * e2.x, this.y = t2.y * e2.y, this.z = t2.z * e2.z, this;
13615
13615
  }
13616
13616
  applyEuler(t2) {
13617
- return t2 && t2.isEuler || console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."), this.applyQuaternion(R.setFromEuler(t2));
13617
+ return t2 && t2.isEuler || console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."), this.applyQuaternion(C.setFromEuler(t2));
13618
13618
  }
13619
13619
  applyAxisAngle(t2, e2) {
13620
- return this.applyQuaternion(R.setFromAxisAngle(t2, e2));
13620
+ return this.applyQuaternion(C.setFromAxisAngle(t2, e2));
13621
13621
  }
13622
13622
  applyMatrix3(t2) {
13623
13623
  const e2 = this.x, i2 = this.y, n2 = this.z, r2 = t2.elements;
@@ -13720,10 +13720,10 @@ var Slide = function(t) {
13720
13720
  return this.copy(t2).multiplyScalar(i2);
13721
13721
  }
13722
13722
  projectOnPlane(t2) {
13723
- return C.copy(this).projectOnVector(t2), this.sub(C);
13723
+ return R.copy(this).projectOnVector(t2), this.sub(R);
13724
13724
  }
13725
13725
  reflect(t2) {
13726
- return this.sub(C.copy(t2).multiplyScalar(2 * this.dot(t2)));
13726
+ return this.sub(R.copy(t2).multiplyScalar(2 * this.dot(t2)));
13727
13727
  }
13728
13728
  angleTo(t2) {
13729
13729
  const e2 = Math.sqrt(this.lengthSq() * t2.lengthSq());
@@ -13786,7 +13786,7 @@ var Slide = function(t) {
13786
13786
  }
13787
13787
  }
13788
13788
  M.prototype.isVector3 = true;
13789
- const C = new M(), R = new A();
13789
+ const R = new M(), C = new A();
13790
13790
  class I {
13791
13791
  constructor(t2 = new M(1 / 0, 1 / 0, 1 / 0), e2 = new M(-1 / 0, -1 / 0, -1 / 0)) {
13792
13792
  this.min = t2, this.max = e2;
@@ -14190,8 +14190,8 @@ var Slide = function(t) {
14190
14190
  return this.multiplyMatrices(t2, this);
14191
14191
  }
14192
14192
  multiplyMatrices(t2, e2) {
14193
- const i2 = t2.elements, n2 = e2.elements, r2 = this.elements, o2 = i2[0], s2 = i2[4], a2 = i2[8], l2 = i2[12], h2 = i2[1], u2 = i2[5], c2 = i2[9], d2 = i2[13], p2 = i2[2], f2 = i2[6], m2 = i2[10], g2 = i2[14], v2 = i2[3], _2 = i2[7], y2 = i2[11], x2 = i2[15], b2 = n2[0], T2 = n2[4], E2 = n2[8], S2 = n2[12], w2 = n2[1], A2 = n2[5], M2 = n2[9], C2 = n2[13], R2 = n2[2], I2 = n2[6], P2 = n2[10], O2 = n2[14], N2 = n2[3], L2 = n2[7], D2 = n2[11], F2 = n2[15];
14194
- return r2[0] = o2 * b2 + s2 * w2 + a2 * R2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * I2 + l2 * L2, r2[8] = o2 * E2 + s2 * M2 + a2 * P2 + l2 * D2, r2[12] = o2 * S2 + s2 * C2 + a2 * O2 + l2 * F2, r2[1] = h2 * b2 + u2 * w2 + c2 * R2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * I2 + d2 * L2, r2[9] = h2 * E2 + u2 * M2 + c2 * P2 + d2 * D2, r2[13] = h2 * S2 + u2 * C2 + c2 * O2 + d2 * F2, r2[2] = p2 * b2 + f2 * w2 + m2 * R2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * I2 + g2 * L2, r2[10] = p2 * E2 + f2 * M2 + m2 * P2 + g2 * D2, r2[14] = p2 * S2 + f2 * C2 + m2 * O2 + g2 * F2, r2[3] = v2 * b2 + _2 * w2 + y2 * R2 + x2 * N2, r2[7] = v2 * T2 + _2 * A2 + y2 * I2 + x2 * L2, r2[11] = v2 * E2 + _2 * M2 + y2 * P2 + x2 * D2, r2[15] = v2 * S2 + _2 * C2 + y2 * O2 + x2 * F2, this;
14193
+ const i2 = t2.elements, n2 = e2.elements, r2 = this.elements, o2 = i2[0], s2 = i2[4], a2 = i2[8], l2 = i2[12], h2 = i2[1], u2 = i2[5], c2 = i2[9], d2 = i2[13], p2 = i2[2], f2 = i2[6], m2 = i2[10], g2 = i2[14], v2 = i2[3], _2 = i2[7], y2 = i2[11], x2 = i2[15], b2 = n2[0], T2 = n2[4], E2 = n2[8], S2 = n2[12], w2 = n2[1], A2 = n2[5], M2 = n2[9], R2 = n2[13], C2 = n2[2], I2 = n2[6], P2 = n2[10], O2 = n2[14], N2 = n2[3], L2 = n2[7], D2 = n2[11], F2 = n2[15];
14194
+ return r2[0] = o2 * b2 + s2 * w2 + a2 * C2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * I2 + l2 * L2, r2[8] = o2 * E2 + s2 * M2 + a2 * P2 + l2 * D2, r2[12] = o2 * S2 + s2 * R2 + a2 * O2 + l2 * F2, r2[1] = h2 * b2 + u2 * w2 + c2 * C2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * I2 + d2 * L2, r2[9] = h2 * E2 + u2 * M2 + c2 * P2 + d2 * D2, r2[13] = h2 * S2 + u2 * R2 + c2 * O2 + d2 * F2, r2[2] = p2 * b2 + f2 * w2 + m2 * C2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * I2 + g2 * L2, r2[10] = p2 * E2 + f2 * M2 + m2 * P2 + g2 * D2, r2[14] = p2 * S2 + f2 * R2 + m2 * O2 + g2 * F2, r2[3] = v2 * b2 + _2 * w2 + y2 * C2 + x2 * N2, r2[7] = v2 * T2 + _2 * A2 + y2 * I2 + x2 * L2, r2[11] = v2 * E2 + _2 * M2 + y2 * P2 + x2 * D2, r2[15] = v2 * S2 + _2 * R2 + y2 * O2 + x2 * F2, this;
14195
14195
  }
14196
14196
  multiplyScalar(t2) {
14197
14197
  const e2 = this.elements;
@@ -14408,16 +14408,16 @@ var Slide = function(t) {
14408
14408
  }
14409
14409
  }
14410
14410
  let gt = 0;
14411
- const vt = new M(), _t = new A(), yt = new rt(), xt = new M(), bt = new M(), Tt = new M(), Et = new A(), St = new M(1, 0, 0), wt = new M(0, 1, 0), At = new M(0, 0, 1), Mt = { type: "added" }, Ct = { type: "removed" };
14412
- class Rt extends s {
14411
+ const vt = new M(), _t = new A(), yt = new rt(), xt = new M(), bt = new M(), Tt = new M(), Et = new A(), St = new M(1, 0, 0), wt = new M(0, 1, 0), At = new M(0, 0, 1), Mt = { type: "added" }, Rt = { type: "removed" };
14412
+ class Ct extends s {
14413
14413
  constructor() {
14414
- super(), Object.defineProperty(this, "id", { value: gt++ }), this.uuid = u(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Rt.DefaultUp.clone();
14414
+ super(), Object.defineProperty(this, "id", { value: gt++ }), this.uuid = u(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ct.DefaultUp.clone();
14415
14415
  const t2 = new M(), e2 = new ft(), i2 = new A(), n2 = new M(1, 1, 1);
14416
14416
  e2._onChange(function() {
14417
14417
  i2.setFromEuler(e2, false);
14418
14418
  }), i2._onChange(function() {
14419
14419
  e2.setFromQuaternion(i2, void 0, false);
14420
- }), Object.defineProperties(this, { position: { configurable: true, enumerable: true, value: t2 }, rotation: { configurable: true, enumerable: true, value: e2 }, quaternion: { configurable: true, enumerable: true, value: i2 }, scale: { configurable: true, enumerable: true, value: n2 }, modelViewMatrix: { value: new rt() }, normalMatrix: { value: new v() } }), this.matrix = new rt(), this.matrixWorld = new rt(), this.matrixAutoUpdate = Rt.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = false, this.layers = new mt(), this.visible = true, this.castShadow = false, this.receiveShadow = false, this.frustumCulled = true, this.renderOrder = 0, this.animations = [], this.userData = {};
14420
+ }), Object.defineProperties(this, { position: { configurable: true, enumerable: true, value: t2 }, rotation: { configurable: true, enumerable: true, value: e2 }, quaternion: { configurable: true, enumerable: true, value: i2 }, scale: { configurable: true, enumerable: true, value: n2 }, modelViewMatrix: { value: new rt() }, normalMatrix: { value: new v() } }), this.matrix = new rt(), this.matrixWorld = new rt(), this.matrixAutoUpdate = Ct.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = false, this.layers = new mt(), this.visible = true, this.castShadow = false, this.receiveShadow = false, this.frustumCulled = true, this.renderOrder = 0, this.animations = [], this.userData = {};
14421
14421
  }
14422
14422
  onBeforeRender() {
14423
14423
  }
@@ -14494,7 +14494,7 @@ var Slide = function(t) {
14494
14494
  return this;
14495
14495
  }
14496
14496
  const e2 = this.children.indexOf(t2);
14497
- return e2 !== -1 && (t2.parent = null, this.children.splice(e2, 1), t2.dispatchEvent(Ct)), this;
14497
+ return e2 !== -1 && (t2.parent = null, this.children.splice(e2, 1), t2.dispatchEvent(Rt)), this;
14498
14498
  }
14499
14499
  removeFromParent() {
14500
14500
  const t2 = this.parent;
@@ -14503,7 +14503,7 @@ var Slide = function(t) {
14503
14503
  clear() {
14504
14504
  for (let t2 = 0; t2 < this.children.length; t2++) {
14505
14505
  const e2 = this.children[t2];
14506
- e2.parent = null, e2.dispatchEvent(Ct);
14506
+ e2.parent = null, e2.dispatchEvent(Rt);
14507
14507
  }
14508
14508
  return this.children.length = 0, this;
14509
14509
  }
@@ -14645,7 +14645,7 @@ var Slide = function(t) {
14645
14645
  return this;
14646
14646
  }
14647
14647
  }
14648
- Rt.DefaultUp = new M(0, 1, 0), Rt.DefaultMatrixAutoUpdate = true, Rt.prototype.isObject3D = true;
14648
+ Ct.DefaultUp = new M(0, 1, 0), Ct.DefaultMatrixAutoUpdate = true, Ct.prototype.isObject3D = true;
14649
14649
  const It = new M(), Pt = new M(), Ot = new M(), Nt = new M(), Lt = new M(), Dt = new M(), Ft = new M(), Bt = new M(), Ut = new M(), kt = new M();
14650
14650
  class Gt {
14651
14651
  constructor(t2 = new M(), e2 = new M(), i2 = new M()) {
@@ -15172,7 +15172,7 @@ var Slide = function(t) {
15172
15172
  return e2;
15173
15173
  }
15174
15174
  let oe = 0;
15175
- const se = new rt(), ae = new Rt(), le = new M(), he = new I(), ue = new I(), ce = new M();
15175
+ const se = new rt(), ae = new Ct(), le = new M(), he = new I(), ue = new I(), ce = new M();
15176
15176
  class de extends s {
15177
15177
  constructor() {
15178
15178
  super(), Object.defineProperty(this, "id", { value: oe++ }), this.uuid = u(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = false, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
@@ -15469,8 +15469,8 @@ var Slide = function(t) {
15469
15469
  }
15470
15470
  }
15471
15471
  de.prototype.isBufferGeometry = true;
15472
- const pe = new rt(), fe = new nt(), me = new Z(), ge = new M(), ve = new M(), _e = new M(), ye = new M(), xe = new M(), be = new M(), Te = new M(), Ee = new M(), Se = new M(), we = new g(), Ae = new g(), Me = new g(), Ce = new M(), Re = new M();
15473
- class Ie extends Rt {
15472
+ const pe = new rt(), fe = new nt(), me = new Z(), ge = new M(), ve = new M(), _e = new M(), ye = new M(), xe = new M(), be = new M(), Te = new M(), Ee = new M(), Se = new M(), we = new g(), Ae = new g(), Me = new g(), Re = new M(), Ce = new M();
15473
+ class Ie extends Ct {
15474
15474
  constructor(t2 = new de(), e2 = new Jt()) {
15475
15475
  super(), this.type = "Mesh", this.geometry = t2, this.material = e2, this.updateMorphTargets();
15476
15476
  }
@@ -15555,12 +15555,12 @@ var Slide = function(t) {
15555
15555
  let l3;
15556
15556
  if (l3 = e3.side === 1 ? n3.intersectTriangle(s3, o3, r3, true, a3) : n3.intersectTriangle(r3, o3, s3, e3.side !== 2, a3), l3 === null)
15557
15557
  return null;
15558
- Re.copy(a3), Re.applyMatrix4(t3.matrixWorld);
15559
- const h3 = i3.ray.origin.distanceTo(Re);
15560
- return h3 < i3.near || h3 > i3.far ? null : { distance: h3, point: Re.clone(), object: t3 };
15561
- }(t2, e2, i2, n2, ge, ve, _e, Ce);
15558
+ Ce.copy(a3), Ce.applyMatrix4(t3.matrixWorld);
15559
+ const h3 = i3.ray.origin.distanceTo(Ce);
15560
+ return h3 < i3.near || h3 > i3.far ? null : { distance: h3, point: Ce.clone(), object: t3 };
15561
+ }(t2, e2, i2, n2, ge, ve, _e, Re);
15562
15562
  if (p2) {
15563
- a2 && (we.fromBufferAttribute(a2, h2), Ae.fromBufferAttribute(a2, u2), Me.fromBufferAttribute(a2, c2), p2.uv = Gt.getUV(Ce, ge, ve, _e, we, Ae, Me, new g())), l2 && (we.fromBufferAttribute(l2, h2), Ae.fromBufferAttribute(l2, u2), Me.fromBufferAttribute(l2, c2), p2.uv2 = Gt.getUV(Ce, ge, ve, _e, we, Ae, Me, new g()));
15563
+ a2 && (we.fromBufferAttribute(a2, h2), Ae.fromBufferAttribute(a2, u2), Me.fromBufferAttribute(a2, c2), p2.uv = Gt.getUV(Re, ge, ve, _e, we, Ae, Me, new g())), l2 && (we.fromBufferAttribute(l2, h2), Ae.fromBufferAttribute(l2, u2), Me.fromBufferAttribute(l2, c2), p2.uv2 = Gt.getUV(Re, ge, ve, _e, we, Ae, Me, new g()));
15564
15564
  const t3 = { a: h2, b: u2, c: c2, normal: new M(), materialIndex: 0 };
15565
15565
  Gt.getNormal(ge, ve, _e, t3.normal), p2.face = t3;
15566
15566
  }
@@ -15577,12 +15577,12 @@ var Slide = function(t) {
15577
15577
  function p2(t3, e3, i3, n3, r3, o3, p3, f2, m2, g2, v2) {
15578
15578
  const _2 = o3 / m2, y2 = p3 / g2, x2 = o3 / 2, b2 = p3 / 2, T2 = f2 / 2, E2 = m2 + 1, S2 = g2 + 1;
15579
15579
  let w2 = 0, A2 = 0;
15580
- const C2 = new M();
15580
+ const R2 = new M();
15581
15581
  for (let o4 = 0; o4 < S2; o4++) {
15582
15582
  const s3 = o4 * y2 - b2;
15583
15583
  for (let a3 = 0; a3 < E2; a3++) {
15584
15584
  const c3 = a3 * _2 - x2;
15585
- C2[t3] = c3 * n3, C2[e3] = s3 * r3, C2[i3] = T2, l2.push(C2.x, C2.y, C2.z), C2[t3] = 0, C2[e3] = 0, C2[i3] = f2 > 0 ? 1 : -1, h2.push(C2.x, C2.y, C2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), w2 += 1;
15585
+ R2[t3] = c3 * n3, R2[e3] = s3 * r3, R2[i3] = T2, l2.push(R2.x, R2.y, R2.z), R2[t3] = 0, R2[e3] = 0, R2[i3] = f2 > 0 ? 1 : -1, h2.push(R2.x, R2.y, R2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), w2 += 1;
15586
15586
  }
15587
15587
  }
15588
15588
  for (let t4 = 0; t4 < g2; t4++)
@@ -15641,7 +15641,7 @@ var Slide = function(t) {
15641
15641
  }
15642
15642
  }
15643
15643
  Fe.prototype.isShaderMaterial = true;
15644
- class Be extends Rt {
15644
+ class Be extends Ct {
15645
15645
  constructor() {
15646
15646
  super(), this.type = "Camera", this.matrixWorldInverse = new rt(), this.projectionMatrix = new rt(), this.projectionMatrixInverse = new rt();
15647
15647
  }
@@ -15711,7 +15711,7 @@ var Slide = function(t) {
15711
15711
  }
15712
15712
  }
15713
15713
  Ue.prototype.isPerspectiveCamera = true;
15714
- class ke extends Rt {
15714
+ class ke extends Ct {
15715
15715
  constructor(t2, e2, i2) {
15716
15716
  if (super(), this.type = "CubeCamera", i2.isWebGLCubeRenderTarget !== true)
15717
15717
  return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");
@@ -16495,11 +16495,11 @@ var Slide = function(t) {
16495
16495
  return false;
16496
16496
  return true;
16497
16497
  }
16498
- function Ci(t2, e2) {
16498
+ function Ri(t2, e2) {
16499
16499
  for (let i2 = 0, n2 = e2.length; i2 < n2; i2++)
16500
16500
  t2[i2] = e2[i2];
16501
16501
  }
16502
- function Ri(t2, e2) {
16502
+ function Ci(t2, e2) {
16503
16503
  let i2 = Ti[e2];
16504
16504
  i2 === void 0 && (i2 = new Int32Array(e2), Ti[e2] = i2);
16505
16505
  for (let n2 = 0; n2 !== e2; ++n2)
@@ -16517,7 +16517,7 @@ var Slide = function(t) {
16517
16517
  else {
16518
16518
  if (Mi(i2, e2))
16519
16519
  return;
16520
- t2.uniform2fv(this.addr, e2), Ci(i2, e2);
16520
+ t2.uniform2fv(this.addr, e2), Ri(i2, e2);
16521
16521
  }
16522
16522
  }
16523
16523
  function Oi(t2, e2) {
@@ -16529,7 +16529,7 @@ var Slide = function(t) {
16529
16529
  else {
16530
16530
  if (Mi(i2, e2))
16531
16531
  return;
16532
- t2.uniform3fv(this.addr, e2), Ci(i2, e2);
16532
+ t2.uniform3fv(this.addr, e2), Ri(i2, e2);
16533
16533
  }
16534
16534
  }
16535
16535
  function Ni(t2, e2) {
@@ -16539,7 +16539,7 @@ var Slide = function(t) {
16539
16539
  else {
16540
16540
  if (Mi(i2, e2))
16541
16541
  return;
16542
- t2.uniform4fv(this.addr, e2), Ci(i2, e2);
16542
+ t2.uniform4fv(this.addr, e2), Ri(i2, e2);
16543
16543
  }
16544
16544
  }
16545
16545
  function Li(t2, e2) {
@@ -16547,11 +16547,11 @@ var Slide = function(t) {
16547
16547
  if (n2 === void 0) {
16548
16548
  if (Mi(i2, e2))
16549
16549
  return;
16550
- t2.uniformMatrix2fv(this.addr, false, e2), Ci(i2, e2);
16550
+ t2.uniformMatrix2fv(this.addr, false, e2), Ri(i2, e2);
16551
16551
  } else {
16552
16552
  if (Mi(i2, n2))
16553
16553
  return;
16554
- wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi), Ci(i2, n2);
16554
+ wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi), Ri(i2, n2);
16555
16555
  }
16556
16556
  }
16557
16557
  function Di(t2, e2) {
@@ -16559,11 +16559,11 @@ var Slide = function(t) {
16559
16559
  if (n2 === void 0) {
16560
16560
  if (Mi(i2, e2))
16561
16561
  return;
16562
- t2.uniformMatrix3fv(this.addr, false, e2), Ci(i2, e2);
16562
+ t2.uniformMatrix3fv(this.addr, false, e2), Ri(i2, e2);
16563
16563
  } else {
16564
16564
  if (Mi(i2, n2))
16565
16565
  return;
16566
- Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si), Ci(i2, n2);
16566
+ Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si), Ri(i2, n2);
16567
16567
  }
16568
16568
  }
16569
16569
  function Fi(t2, e2) {
@@ -16571,11 +16571,11 @@ var Slide = function(t) {
16571
16571
  if (n2 === void 0) {
16572
16572
  if (Mi(i2, e2))
16573
16573
  return;
16574
- t2.uniformMatrix4fv(this.addr, false, e2), Ci(i2, e2);
16574
+ t2.uniformMatrix4fv(this.addr, false, e2), Ri(i2, e2);
16575
16575
  } else {
16576
16576
  if (Mi(i2, n2))
16577
16577
  return;
16578
- Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei), Ci(i2, n2);
16578
+ Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei), Ri(i2, n2);
16579
16579
  }
16580
16580
  }
16581
16581
  function Bi(t2, e2) {
@@ -16584,15 +16584,15 @@ var Slide = function(t) {
16584
16584
  }
16585
16585
  function Ui(t2, e2) {
16586
16586
  const i2 = this.cache;
16587
- Mi(i2, e2) || (t2.uniform2iv(this.addr, e2), Ci(i2, e2));
16587
+ Mi(i2, e2) || (t2.uniform2iv(this.addr, e2), Ri(i2, e2));
16588
16588
  }
16589
16589
  function ki(t2, e2) {
16590
16590
  const i2 = this.cache;
16591
- Mi(i2, e2) || (t2.uniform3iv(this.addr, e2), Ci(i2, e2));
16591
+ Mi(i2, e2) || (t2.uniform3iv(this.addr, e2), Ri(i2, e2));
16592
16592
  }
16593
16593
  function Gi(t2, e2) {
16594
16594
  const i2 = this.cache;
16595
- Mi(i2, e2) || (t2.uniform4iv(this.addr, e2), Ci(i2, e2));
16595
+ Mi(i2, e2) || (t2.uniform4iv(this.addr, e2), Ri(i2, e2));
16596
16596
  }
16597
16597
  function Hi(t2, e2) {
16598
16598
  const i2 = this.cache;
@@ -16600,15 +16600,15 @@ var Slide = function(t) {
16600
16600
  }
16601
16601
  function ji(t2, e2) {
16602
16602
  const i2 = this.cache;
16603
- Mi(i2, e2) || (t2.uniform2uiv(this.addr, e2), Ci(i2, e2));
16603
+ Mi(i2, e2) || (t2.uniform2uiv(this.addr, e2), Ri(i2, e2));
16604
16604
  }
16605
16605
  function zi(t2, e2) {
16606
16606
  const i2 = this.cache;
16607
- Mi(i2, e2) || (t2.uniform3uiv(this.addr, e2), Ci(i2, e2));
16607
+ Mi(i2, e2) || (t2.uniform3uiv(this.addr, e2), Ri(i2, e2));
16608
16608
  }
16609
16609
  function Vi(t2, e2) {
16610
16610
  const i2 = this.cache;
16611
- Mi(i2, e2) || (t2.uniform4uiv(this.addr, e2), Ci(i2, e2));
16611
+ Mi(i2, e2) || (t2.uniform4uiv(this.addr, e2), Ri(i2, e2));
16612
16612
  }
16613
16613
  function Xi(t2, e2, i2) {
16614
16614
  const n2 = this.cache, r2 = i2.allocateTextureUnit();
@@ -16678,13 +16678,13 @@ var Slide = function(t) {
16678
16678
  t2.uniform4uiv(this.addr, e2);
16679
16679
  }
16680
16680
  function cn(t2, e2, i2) {
16681
- const n2 = e2.length, r2 = Ri(i2, n2);
16681
+ const n2 = e2.length, r2 = Ci(i2, n2);
16682
16682
  t2.uniform1iv(this.addr, r2);
16683
16683
  for (let t3 = 0; t3 !== n2; ++t3)
16684
16684
  i2.safeSetTexture2D(e2[t3] || vi, r2[t3]);
16685
16685
  }
16686
16686
  function dn(t2, e2, i2) {
16687
- const n2 = e2.length, r2 = Ri(i2, n2);
16687
+ const n2 = e2.length, r2 = Ci(i2, n2);
16688
16688
  t2.uniform1iv(this.addr, r2);
16689
16689
  for (let t3 = 0; t3 !== n2; ++t3)
16690
16690
  i2.safeSetTextureCube(e2[t3] || xi, r2[t3]);
@@ -16805,7 +16805,7 @@ var Slide = function(t) {
16805
16805
  }
16806
16806
  fn.prototype.updateCache = function(t2) {
16807
16807
  const e2 = this.cache;
16808
- t2 instanceof Float32Array && e2.length !== t2.length && (this.cache = new Float32Array(t2.length)), Ci(e2, t2);
16808
+ t2 instanceof Float32Array && e2.length !== t2.length && (this.cache = new Float32Array(t2.length)), Ri(e2, t2);
16809
16809
  }, mn.prototype.setValue = function(t2, e2, i2) {
16810
16810
  const n2 = this.seq;
16811
16811
  for (let r2 = 0, o2 = n2.length; r2 !== o2; ++r2) {
@@ -16932,10 +16932,10 @@ var Slide = function(t) {
16932
16932
  function Mn(t2) {
16933
16933
  return t2 !== "";
16934
16934
  }
16935
- function Cn(t2, e2) {
16935
+ function Rn(t2, e2) {
16936
16936
  return t2.replace(/NUM_DIR_LIGHTS/g, e2.numDirLights).replace(/NUM_SPOT_LIGHTS/g, e2.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g, e2.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, e2.numPointLights).replace(/NUM_HEMI_LIGHTS/g, e2.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, e2.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g, e2.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, e2.numPointLightShadows);
16937
16937
  }
16938
- function Rn(t2, e2) {
16938
+ function Cn(t2, e2) {
16939
16939
  return t2.replace(/NUM_CLIPPING_PLANES/g, e2.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e2.numClippingPlanes - e2.numClipIntersection);
16940
16940
  }
16941
16941
  const In = /^[ \t]*#include +<([\w\d./]+)>/gm;
@@ -17018,7 +17018,7 @@ var Slide = function(t) {
17018
17018
  return e3.join("\n");
17019
17019
  }(o2), m2 = r2.createProgram();
17020
17020
  let g2, v2, _2 = i2.glslVersion ? "#version " + i2.glslVersion + "\n" : "";
17021
- i2.isRawShaderMaterial ? (g2 = [f2].filter(Mn).join("\n"), g2.length > 0 && (g2 += "\n"), v2 = [p2, f2].filter(Mn).join("\n"), v2.length > 0 && (v2 += "\n")) : (g2 = [Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.instancing ? "#define USE_INSTANCING" : "", i2.instancingColor ? "#define USE_INSTANCING_COLOR" : "", i2.supportsVertexTextures ? "#define VERTEX_TEXTURES" : "", "#define GAMMA_FACTOR " + d2, "#define MAX_BONES " + i2.maxBones, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + u2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.displacementMap && i2.supportsVertexTextures ? "#define USE_DISPLACEMENTMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.skinning ? "#define USE_SKINNING" : "", i2.useVertexTexture ? "#define BONE_TEXTURE" : "", i2.morphTargets ? "#define USE_MORPHTARGETS" : "", i2.morphNormals && i2.flatShading === false ? "#define USE_MORPHNORMALS" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.sizeAttenuation ? "#define USE_SIZEATTENUATION" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", "uniform mat4 modelMatrix;", "uniform mat4 modelViewMatrix;", "uniform mat4 projectionMatrix;", "uniform mat4 viewMatrix;", "uniform mat3 normalMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", "#ifdef USE_INSTANCING", " attribute mat4 instanceMatrix;", "#endif", "#ifdef USE_INSTANCING_COLOR", " attribute vec3 instanceColor;", "#endif", "attribute vec3 position;", "attribute vec3 normal;", "attribute vec2 uv;", "#ifdef USE_TANGENT", " attribute vec4 tangent;", "#endif", "#if defined( USE_COLOR_ALPHA )", " attribute vec4 color;", "#elif defined( USE_COLOR )", " attribute vec3 color;", "#endif", "#ifdef USE_MORPHTARGETS", " attribute vec3 morphTarget0;", " attribute vec3 morphTarget1;", " attribute vec3 morphTarget2;", " attribute vec3 morphTarget3;", " #ifdef USE_MORPHNORMALS", " attribute vec3 morphNormal0;", " attribute vec3 morphNormal1;", " attribute vec3 morphNormal2;", " attribute vec3 morphNormal3;", " #else", " attribute vec3 morphTarget4;", " attribute vec3 morphTarget5;", " attribute vec3 morphTarget6;", " attribute vec3 morphTarget7;", " #endif", "#endif", "#ifdef USE_SKINNING", " attribute vec4 skinIndex;", " attribute vec4 skinWeight;", "#endif", "\n"].filter(Mn).join("\n"), v2 = [p2, Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.alphaTest ? "#define ALPHATEST " + i2.alphaTest + (i2.alphaTest % 1 ? "" : ".0") : "", "#define GAMMA_FACTOR " + d2, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.matcap ? "#define USE_MATCAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + h2 : "", i2.envMap ? "#define " + u2 : "", i2.envMap ? "#define " + c2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.sheen ? "#define USE_SHEEN" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors || i2.instancingColor ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.gradientMap ? "#define USE_GRADIENTMAP" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.premultipliedAlpha ? "#define PREMULTIPLIED_ALPHA" : "", i2.physicallyCorrectLights ? "#define PHYSICALLY_CORRECT_LIGHTS" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", (i2.extensionShaderTextureLOD || i2.envMap) && i2.rendererExtensionShaderTextureLod ? "#define TEXTURE_LOD_EXT" : "", "uniform mat4 viewMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", i2.toneMapping !== 0 ? "#define TONE_MAPPING" : "", i2.toneMapping !== 0 ? Qe.tonemapping_pars_fragment : "", i2.toneMapping !== 0 ? An("toneMapping", i2.toneMapping) : "", i2.dithering ? "#define DITHERING" : "", Qe.encodings_pars_fragment, i2.map ? Sn("mapTexelToLinear", i2.mapEncoding) : "", i2.matcap ? Sn("matcapTexelToLinear", i2.matcapEncoding) : "", i2.envMap ? Sn("envMapTexelToLinear", i2.envMapEncoding) : "", i2.emissiveMap ? Sn("emissiveMapTexelToLinear", i2.emissiveMapEncoding) : "", i2.lightMap ? Sn("lightMapTexelToLinear", i2.lightMapEncoding) : "", wn("linearToOutputTexel", i2.outputEncoding), i2.depthPacking ? "#define DEPTH_PACKING " + i2.depthPacking : "", "\n"].filter(Mn).join("\n")), s2 = Pn(s2), s2 = Cn(s2, i2), s2 = Rn(s2, i2), a2 = Pn(a2), a2 = Cn(a2, i2), a2 = Rn(a2, i2), s2 = Dn(s2), a2 = Dn(a2), i2.isWebGL2 && i2.isRawShaderMaterial !== true && (_2 = "#version 300 es\n", g2 = ["#define attribute in", "#define varying out", "#define texture2D texture"].join("\n") + "\n" + g2, v2 = ["#define varying in", i2.glslVersion === "300 es" ? "" : "out highp vec4 pc_fragColor;", i2.glslVersion === "300 es" ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", "#define texture2DProj textureProj", "#define texture2DLodEXT textureLod", "#define texture2DProjLodEXT textureProjLod", "#define textureCubeLodEXT textureLod", "#define texture2DGradEXT textureGrad", "#define texture2DProjGradEXT textureProjGrad", "#define textureCubeGradEXT textureGrad"].join("\n") + "\n" + v2);
17021
+ i2.isRawShaderMaterial ? (g2 = [f2].filter(Mn).join("\n"), g2.length > 0 && (g2 += "\n"), v2 = [p2, f2].filter(Mn).join("\n"), v2.length > 0 && (v2 += "\n")) : (g2 = [Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.instancing ? "#define USE_INSTANCING" : "", i2.instancingColor ? "#define USE_INSTANCING_COLOR" : "", i2.supportsVertexTextures ? "#define VERTEX_TEXTURES" : "", "#define GAMMA_FACTOR " + d2, "#define MAX_BONES " + i2.maxBones, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + u2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.displacementMap && i2.supportsVertexTextures ? "#define USE_DISPLACEMENTMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.skinning ? "#define USE_SKINNING" : "", i2.useVertexTexture ? "#define BONE_TEXTURE" : "", i2.morphTargets ? "#define USE_MORPHTARGETS" : "", i2.morphNormals && i2.flatShading === false ? "#define USE_MORPHNORMALS" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.sizeAttenuation ? "#define USE_SIZEATTENUATION" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", "uniform mat4 modelMatrix;", "uniform mat4 modelViewMatrix;", "uniform mat4 projectionMatrix;", "uniform mat4 viewMatrix;", "uniform mat3 normalMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", "#ifdef USE_INSTANCING", " attribute mat4 instanceMatrix;", "#endif", "#ifdef USE_INSTANCING_COLOR", " attribute vec3 instanceColor;", "#endif", "attribute vec3 position;", "attribute vec3 normal;", "attribute vec2 uv;", "#ifdef USE_TANGENT", " attribute vec4 tangent;", "#endif", "#if defined( USE_COLOR_ALPHA )", " attribute vec4 color;", "#elif defined( USE_COLOR )", " attribute vec3 color;", "#endif", "#ifdef USE_MORPHTARGETS", " attribute vec3 morphTarget0;", " attribute vec3 morphTarget1;", " attribute vec3 morphTarget2;", " attribute vec3 morphTarget3;", " #ifdef USE_MORPHNORMALS", " attribute vec3 morphNormal0;", " attribute vec3 morphNormal1;", " attribute vec3 morphNormal2;", " attribute vec3 morphNormal3;", " #else", " attribute vec3 morphTarget4;", " attribute vec3 morphTarget5;", " attribute vec3 morphTarget6;", " attribute vec3 morphTarget7;", " #endif", "#endif", "#ifdef USE_SKINNING", " attribute vec4 skinIndex;", " attribute vec4 skinWeight;", "#endif", "\n"].filter(Mn).join("\n"), v2 = [p2, Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.alphaTest ? "#define ALPHATEST " + i2.alphaTest + (i2.alphaTest % 1 ? "" : ".0") : "", "#define GAMMA_FACTOR " + d2, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.matcap ? "#define USE_MATCAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + h2 : "", i2.envMap ? "#define " + u2 : "", i2.envMap ? "#define " + c2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.sheen ? "#define USE_SHEEN" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors || i2.instancingColor ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.gradientMap ? "#define USE_GRADIENTMAP" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.premultipliedAlpha ? "#define PREMULTIPLIED_ALPHA" : "", i2.physicallyCorrectLights ? "#define PHYSICALLY_CORRECT_LIGHTS" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", (i2.extensionShaderTextureLOD || i2.envMap) && i2.rendererExtensionShaderTextureLod ? "#define TEXTURE_LOD_EXT" : "", "uniform mat4 viewMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", i2.toneMapping !== 0 ? "#define TONE_MAPPING" : "", i2.toneMapping !== 0 ? Qe.tonemapping_pars_fragment : "", i2.toneMapping !== 0 ? An("toneMapping", i2.toneMapping) : "", i2.dithering ? "#define DITHERING" : "", Qe.encodings_pars_fragment, i2.map ? Sn("mapTexelToLinear", i2.mapEncoding) : "", i2.matcap ? Sn("matcapTexelToLinear", i2.matcapEncoding) : "", i2.envMap ? Sn("envMapTexelToLinear", i2.envMapEncoding) : "", i2.emissiveMap ? Sn("emissiveMapTexelToLinear", i2.emissiveMapEncoding) : "", i2.lightMap ? Sn("lightMapTexelToLinear", i2.lightMapEncoding) : "", wn("linearToOutputTexel", i2.outputEncoding), i2.depthPacking ? "#define DEPTH_PACKING " + i2.depthPacking : "", "\n"].filter(Mn).join("\n")), s2 = Pn(s2), s2 = Rn(s2, i2), s2 = Cn(s2, i2), a2 = Pn(a2), a2 = Rn(a2, i2), a2 = Cn(a2, i2), s2 = Dn(s2), a2 = Dn(a2), i2.isWebGL2 && i2.isRawShaderMaterial !== true && (_2 = "#version 300 es\n", g2 = ["#define attribute in", "#define varying out", "#define texture2D texture"].join("\n") + "\n" + g2, v2 = ["#define varying in", i2.glslVersion === "300 es" ? "" : "out highp vec4 pc_fragColor;", i2.glslVersion === "300 es" ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", "#define texture2DProj textureProj", "#define texture2DLodEXT textureLod", "#define texture2DProjLodEXT textureProjLod", "#define textureCubeLodEXT textureLod", "#define texture2DGradEXT textureGrad", "#define texture2DProjGradEXT textureProjGrad", "#define textureCubeGradEXT textureGrad"].join("\n") + "\n" + v2);
17022
17022
  const y2 = _2 + v2 + a2, x2 = xn(r2, 35633, _2 + g2 + s2), b2 = xn(r2, 35632, y2);
17023
17023
  if (r2.attachShader(m2, x2), r2.attachShader(m2, b2), i2.index0AttributeName !== void 0 ? r2.bindAttribLocation(m2, 0, i2.index0AttributeName) : i2.morphTargets === true && r2.bindAttribLocation(m2, 0, "position"), r2.linkProgram(m2), t2.debug.checkShaderErrors) {
17024
17024
  const t3 = r2.getProgramInfoLog(m2).trim(), e3 = r2.getShaderInfoLog(x2).trim(), i3 = r2.getShaderInfoLog(b2).trim();
@@ -17509,9 +17509,9 @@ var Slide = function(t) {
17509
17509
  }();
17510
17510
  let a2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, _2 = null, y2 = false, x2 = null, b2 = null, T2 = null, S2 = null, w2 = null;
17511
17511
  const A2 = t2.getParameter(35661);
17512
- let M2 = false, C2 = 0;
17513
- const R2 = t2.getParameter(7938);
17514
- R2.indexOf("WebGL") !== -1 ? (C2 = parseFloat(/^WebGL (\d)/.exec(R2)[1]), M2 = C2 >= 1) : R2.indexOf("OpenGL ES") !== -1 && (C2 = parseFloat(/^OpenGL ES (\d)/.exec(R2)[1]), M2 = C2 >= 2);
17512
+ let M2 = false, R2 = 0;
17513
+ const C2 = t2.getParameter(7938);
17514
+ C2.indexOf("WebGL") !== -1 ? (R2 = parseFloat(/^WebGL (\d)/.exec(C2)[1]), M2 = R2 >= 1) : C2.indexOf("OpenGL ES") !== -1 && (R2 = parseFloat(/^OpenGL ES (\d)/.exec(C2)[1]), M2 = R2 >= 2);
17515
17515
  let I2 = null, P2 = {};
17516
17516
  const O2 = t2.getParameter(3088), N2 = t2.getParameter(2978), L2 = new E().fromArray(O2), D2 = new E().fromArray(N2);
17517
17517
  function F2(e3, i3, n3) {
@@ -17738,7 +17738,7 @@ var Slide = function(t) {
17738
17738
  }
17739
17739
  i2.activeTexture(33984 + e3), i2.bindTexture(3553, r3.__webglTexture);
17740
17740
  }
17741
- function C2(e3, r3) {
17741
+ function R2(e3, r3) {
17742
17742
  const s3 = n2.get(e3);
17743
17743
  e3.version > 0 && s3.__version !== e3.version ? function(e4, n3, r4) {
17744
17744
  if (n3.image.length !== 6)
@@ -17780,9 +17780,9 @@ var Slide = function(t) {
17780
17780
  e4.__version = n3.version, n3.onUpdate && n3.onUpdate(n3);
17781
17781
  }(s3, e3, r3) : (i2.activeTexture(33984 + r3), i2.bindTexture(34067, s3.__webglTexture));
17782
17782
  }
17783
- const R2 = { 1e3: 10497, 1001: 33071, 1002: 33648 }, I2 = { 1003: 9728, 1004: 9984, 1005: 9986, 1006: 9729, 1007: 9985, 1008: 9987 };
17783
+ const C2 = { 1e3: 10497, 1001: 33071, 1002: 33648 }, I2 = { 1003: 9728, 1004: 9984, 1005: 9986, 1006: 9729, 1007: 9985, 1008: 9987 };
17784
17784
  function P2(i3, o3, s3) {
17785
- if (s3 ? (t2.texParameteri(i3, 10242, R2[o3.wrapS]), t2.texParameteri(i3, 10243, R2[o3.wrapT]), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, R2[o3.wrapR]), t2.texParameteri(i3, 10240, I2[o3.magFilter]), t2.texParameteri(i3, 10241, I2[o3.minFilter])) : (t2.texParameteri(i3, 10242, 33071), t2.texParameteri(i3, 10243, 33071), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, 33071), o3.wrapS === 1001 && o3.wrapT === 1001 || console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t2.texParameteri(i3, 10240, E2(o3.magFilter)), t2.texParameteri(i3, 10241, E2(o3.minFilter)), o3.minFilter !== 1003 && o3.minFilter !== 1006 && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e2.has("EXT_texture_filter_anisotropic") === true) {
17785
+ if (s3 ? (t2.texParameteri(i3, 10242, C2[o3.wrapS]), t2.texParameteri(i3, 10243, C2[o3.wrapT]), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, C2[o3.wrapR]), t2.texParameteri(i3, 10240, I2[o3.magFilter]), t2.texParameteri(i3, 10241, I2[o3.minFilter])) : (t2.texParameteri(i3, 10242, 33071), t2.texParameteri(i3, 10243, 33071), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, 33071), o3.wrapS === 1001 && o3.wrapT === 1001 || console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t2.texParameteri(i3, 10240, E2(o3.magFilter)), t2.texParameteri(i3, 10241, E2(o3.minFilter)), o3.minFilter !== 1003 && o3.minFilter !== 1006 && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e2.has("EXT_texture_filter_anisotropic") === true) {
17786
17786
  const s4 = e2.get("EXT_texture_filter_anisotropic");
17787
17787
  if (o3.type === 1015 && e2.has("OES_texture_float_linear") === false)
17788
17788
  return;
@@ -17903,7 +17903,7 @@ var Slide = function(t) {
17903
17903
  }, this.setTexture3D = function(t3, e3) {
17904
17904
  const r3 = n2.get(t3);
17905
17905
  t3.version > 0 && r3.__version !== t3.version ? N2(r3, t3, e3) : (i2.activeTexture(33984 + e3), i2.bindTexture(32879, r3.__webglTexture));
17906
- }, this.setTextureCube = C2, this.setupRenderTarget = function(e3) {
17906
+ }, this.setTextureCube = R2, this.setupRenderTarget = function(e3) {
17907
17907
  const l3 = e3.texture, h3 = n2.get(e3), u3 = n2.get(l3);
17908
17908
  e3.addEventListener("dispose", w2), e3.isWebGLMultipleRenderTargets !== true && (u3.__webglTexture = t2.createTexture(), u3.__version = l3.version, s2.memory.textures++);
17909
17909
  const c3 = e3.isWebGLCubeRenderTarget === true, d3 = e3.isWebGLMultipleRenderTargets === true, p3 = e3.isWebGLMultisampleRenderTarget === true, f2 = l3.isDataTexture3D || l3.isDataTexture2DArray, m2 = y2(e3) || a2;
@@ -17971,7 +17971,7 @@ var Slide = function(t) {
17971
17971
  }, this.safeSetTexture2D = function(t3, e3) {
17972
17972
  t3 && t3.isWebGLRenderTarget && (U2 === false && (console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."), U2 = true), t3 = t3.texture), M2(t3, e3);
17973
17973
  }, this.safeSetTextureCube = function(t3, e3) {
17974
- t3 && t3.isWebGLCubeRenderTarget && (k2 === false && (console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."), k2 = true), t3 = t3.texture), C2(t3, e3);
17974
+ t3 && t3.isWebGLCubeRenderTarget && (k2 === false && (console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."), k2 = true), t3 = t3.texture), R2(t3, e3);
17975
17975
  };
17976
17976
  }
17977
17977
  function nr(t2, e2, i2) {
@@ -18067,7 +18067,7 @@ var Slide = function(t) {
18067
18067
  }
18068
18068
  }
18069
18069
  rr.prototype.isArrayCamera = true;
18070
- class or extends Rt {
18070
+ class or extends Ct {
18071
18071
  constructor() {
18072
18072
  super(), this.type = "Group";
18073
18073
  }
@@ -18134,7 +18134,7 @@ var Slide = function(t) {
18134
18134
  function b2() {
18135
18135
  p2.forEach(function(t3, e3) {
18136
18136
  t3.disconnect(e3);
18137
- }), p2.clear(), _2 = null, y2 = null, n2.bindXRFramebuffer(null), t2.setRenderTarget(t2.getRenderTarget()), R2.stop(), i2.isPresenting = false, i2.dispatchEvent({ type: "sessionend" });
18137
+ }), p2.clear(), _2 = null, y2 = null, n2.bindXRFramebuffer(null), t2.setRenderTarget(t2.getRenderTarget()), C2.stop(), i2.isPresenting = false, i2.dispatchEvent({ type: "sessionend" });
18138
18138
  }
18139
18139
  function T2(t3) {
18140
18140
  const e3 = r2.inputSources;
@@ -18179,7 +18179,7 @@ var Slide = function(t) {
18179
18179
  const n3 = { colorFormat: t4.alpha ? 6408 : 6407, depthFormat: i3, scaleFactor: o2 };
18180
18180
  h2 = new XRWebGLBinding(r2, e2), c2 = h2.createProjectionLayer(n3), u2 = e2.createFramebuffer(), r2.updateRenderState({ layers: [c2] });
18181
18181
  }
18182
- s2 = await r2.requestReferenceSpace(a2), R2.setContext(r2), R2.start(), i2.isPresenting = true, i2.dispatchEvent({ type: "sessionstart" });
18182
+ s2 = await r2.requestReferenceSpace(a2), C2.setContext(r2), C2.start(), i2.isPresenting = true, i2.dispatchEvent({ type: "sessionstart" });
18183
18183
  }
18184
18184
  };
18185
18185
  const S2 = new M(), w2 = new M();
@@ -18208,9 +18208,9 @@ var Slide = function(t) {
18208
18208
  }, this.getCamera = function() {
18209
18209
  return v2;
18210
18210
  };
18211
- let C2 = null;
18212
- const R2 = new Ze();
18213
- R2.setAnimationLoop(function(t3, i3) {
18211
+ let R2 = null;
18212
+ const C2 = new Ze();
18213
+ C2.setAnimationLoop(function(t3, i3) {
18214
18214
  if (l2 = i3.getViewerPose(s2), l2 !== null) {
18215
18215
  const t4 = l2.views, i4 = r2.renderState.baseLayer;
18216
18216
  r2.renderState.layers === void 0 && n2.bindXRFramebuffer(i4.framebuffer);
@@ -18234,9 +18234,9 @@ var Slide = function(t) {
18234
18234
  const e3 = d2[t4], n3 = o3[t4];
18235
18235
  e3.update(n3, i3, s2);
18236
18236
  }
18237
- C2 && C2(t3, i3);
18237
+ R2 && R2(t3, i3);
18238
18238
  }), this.setAnimationLoop = function(t3) {
18239
- C2 = t3;
18239
+ R2 = t3;
18240
18240
  }, this.dispose = function() {
18241
18241
  };
18242
18242
  }
@@ -18326,8 +18326,8 @@ var Slide = function(t) {
18326
18326
  const m2 = this;
18327
18327
  let g2 = false, v2 = 0, _2 = 0, y2 = null, x2 = -1, b2 = null;
18328
18328
  const T2 = new E(), A2 = new E();
18329
- let C2 = null, R2 = e2.width, I2 = e2.height, P2 = 1, O2 = null, N2 = null;
18330
- const L2 = new E(0, 0, R2, I2), D2 = new E(0, 0, R2, I2);
18329
+ let R2 = null, C2 = e2.width, I2 = e2.height, P2 = 1, O2 = null, N2 = null;
18330
+ const L2 = new E(0, 0, C2, I2), D2 = new E(0, 0, C2, I2);
18331
18331
  let F2 = false;
18332
18332
  const B2 = [], U2 = new qe();
18333
18333
  let k2 = false, G2 = false, H2 = null;
@@ -18394,15 +18394,15 @@ var Slide = function(t) {
18394
18394
  }, this.getPixelRatio = function() {
18395
18395
  return P2;
18396
18396
  }, this.setPixelRatio = function(t3) {
18397
- t3 !== void 0 && (P2 = t3, this.setSize(R2, I2, false));
18397
+ t3 !== void 0 && (P2 = t3, this.setSize(C2, I2, false));
18398
18398
  }, this.getSize = function(t3) {
18399
- return t3.set(R2, I2);
18399
+ return t3.set(C2, I2);
18400
18400
  }, this.setSize = function(t3, i3, n3) {
18401
- _t2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (R2 = t3, I2 = i3, e2.width = Math.floor(t3 * P2), e2.height = Math.floor(i3 * P2), n3 !== false && (e2.style.width = t3 + "px", e2.style.height = i3 + "px"), this.setViewport(0, 0, t3, i3));
18401
+ _t2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (C2 = t3, I2 = i3, e2.width = Math.floor(t3 * P2), e2.height = Math.floor(i3 * P2), n3 !== false && (e2.style.width = t3 + "px", e2.style.height = i3 + "px"), this.setViewport(0, 0, t3, i3));
18402
18402
  }, this.getDrawingBufferSize = function(t3) {
18403
- return t3.set(R2 * P2, I2 * P2).floor();
18403
+ return t3.set(C2 * P2, I2 * P2).floor();
18404
18404
  }, this.setDrawingBufferSize = function(t3, i3, n3) {
18405
- R2 = t3, I2 = i3, P2 = n3, e2.width = Math.floor(t3 * n3), e2.height = Math.floor(i3 * n3), this.setViewport(0, 0, t3, i3);
18405
+ C2 = t3, I2 = i3, P2 = n3, e2.width = Math.floor(t3 * n3), e2.height = Math.floor(i3 * n3), this.setViewport(0, 0, t3, i3);
18406
18406
  }, this.getCurrentViewport = function(t3) {
18407
18407
  return t3.copy(T2);
18408
18408
  }, this.getViewport = function(t3) {
@@ -18486,10 +18486,10 @@ var Slide = function(t) {
18486
18486
  if (i3)
18487
18487
  if (Array.isArray(i3))
18488
18488
  for (let n3 = 0; n3 < i3.length; n3++) {
18489
- Ct2(i3[n3], t3, e4);
18489
+ Rt2(i3[n3], t3, e4);
18490
18490
  }
18491
18491
  else
18492
- Ct2(i3, t3, e4);
18492
+ Rt2(i3, t3, e4);
18493
18493
  });
18494
18494
  };
18495
18495
  let Tt2 = null;
@@ -18526,7 +18526,7 @@ var Slide = function(t) {
18526
18526
  r3.transparent === true && r3.side === 2 ? (r3.side = 1, r3.needsUpdate = true, m2.renderBufferDirect(i3, e3, n3, r3, t3, o3), r3.side = 0, r3.needsUpdate = true, m2.renderBufferDirect(i3, e3, n3, r3, t3, o3), r3.side = 2) : m2.renderBufferDirect(i3, e3, n3, r3, t3, o3);
18527
18527
  t3.onAfterRender(m2, e3, i3, n3, r3, o3);
18528
18528
  }
18529
- function Ct2(t3, e3, i3) {
18529
+ function Rt2(t3, e3, i3) {
18530
18530
  e3.isScene !== true && (e3 = V2);
18531
18531
  const n3 = J2.get(t3), r3 = d2.state.lights, o3 = d2.state.shadowsArray, s3 = r3.state.version, a3 = it2.getParameters(t3, r3.state, o3, e3, i3), l3 = it2.getProgramCacheKey(a3);
18532
18532
  let h3 = n3.programs;
@@ -18534,17 +18534,17 @@ var Slide = function(t) {
18534
18534
  let u3 = h3.get(l3);
18535
18535
  if (u3 !== void 0) {
18536
18536
  if (n3.currentProgram === u3 && n3.lightsStateVersion === s3)
18537
- return Rt2(t3, a3), u3;
18537
+ return Ct2(t3, a3), u3;
18538
18538
  } else
18539
18539
  a3.uniforms = it2.getUniforms(t3), t3.onBuild(a3, m2), t3.onBeforeCompile(a3, m2), u3 = it2.acquireProgram(a3, l3), h3.set(l3, u3), n3.uniforms = a3.uniforms;
18540
18540
  const c3 = n3.uniforms;
18541
- (t3.isShaderMaterial || t3.isRawShaderMaterial) && t3.clipping !== true || (c3.clippingPlanes = at2.uniform), Rt2(t3, a3), n3.needsLights = function(t4) {
18541
+ (t3.isShaderMaterial || t3.isRawShaderMaterial) && t3.clipping !== true || (c3.clippingPlanes = at2.uniform), Ct2(t3, a3), n3.needsLights = function(t4) {
18542
18542
  return t4.isMeshLambertMaterial || t4.isMeshToonMaterial || t4.isMeshPhongMaterial || t4.isMeshStandardMaterial || t4.isShadowMaterial || t4.isShaderMaterial && t4.lights === true;
18543
18543
  }(t3), n3.lightsStateVersion = s3, n3.needsLights && (c3.ambientLightColor.value = r3.state.ambient, c3.lightProbe.value = r3.state.probe, c3.directionalLights.value = r3.state.directional, c3.directionalLightShadows.value = r3.state.directionalShadow, c3.spotLights.value = r3.state.spot, c3.spotLightShadows.value = r3.state.spotShadow, c3.rectAreaLights.value = r3.state.rectArea, c3.ltc_1.value = r3.state.rectAreaLTC1, c3.ltc_2.value = r3.state.rectAreaLTC2, c3.pointLights.value = r3.state.point, c3.pointLightShadows.value = r3.state.pointShadow, c3.hemisphereLights.value = r3.state.hemi, c3.directionalShadowMap.value = r3.state.directionalShadowMap, c3.directionalShadowMatrix.value = r3.state.directionalShadowMatrix, c3.spotShadowMap.value = r3.state.spotShadowMap, c3.spotShadowMatrix.value = r3.state.spotShadowMatrix, c3.pointShadowMap.value = r3.state.pointShadowMap, c3.pointShadowMatrix.value = r3.state.pointShadowMatrix);
18544
18544
  const p3 = u3.getUniforms(), f3 = yn.seqWithValue(p3.seq, c3);
18545
18545
  return n3.currentProgram = u3, n3.uniformsList = f3, u3;
18546
18546
  }
18547
- function Rt2(t3, e3) {
18547
+ function Ct2(t3, e3) {
18548
18548
  const i3 = J2.get(t3);
18549
18549
  i3.outputEncoding = e3.outputEncoding, i3.instancing = e3.instancing, i3.skinning = e3.skinning, i3.numClippingPlanes = e3.numClippingPlanes, i3.numIntersection = e3.numClipIntersection, i3.vertexAlphas = e3.vertexAlphas;
18550
18550
  }
@@ -18558,7 +18558,7 @@ var Slide = function(t) {
18558
18558
  let c3 = false;
18559
18559
  i3.version === h3.__version ? h3.needsLights && h3.lightsStateVersion !== u3.state.version || h3.outputEncoding !== s3 || n3.isInstancedMesh && h3.instancing === false ? c3 = true : n3.isInstancedMesh || h3.instancing !== true ? n3.isSkinnedMesh && h3.skinning === false ? c3 = true : n3.isSkinnedMesh || h3.skinning !== true ? h3.envMap !== a3 || i3.fog && h3.fog !== r3 ? c3 = true : h3.numClippingPlanes === void 0 || h3.numClippingPlanes === at2.numPlanes && h3.numIntersection === at2.numIntersection ? h3.vertexAlphas !== l3 && (c3 = true) : c3 = true : c3 = true : c3 = true : (c3 = true, h3.__version = i3.version);
18560
18560
  let p3 = h3.currentProgram;
18561
- c3 === true && (p3 = Ct2(i3, e3, n3));
18561
+ c3 === true && (p3 = Rt2(i3, e3, n3));
18562
18562
  let f3 = false, g3 = false, v3 = false;
18563
18563
  const _3 = p3.getUniforms(), T3 = h3.uniforms;
18564
18564
  if (q2.useProgram(p3.program) && (f3 = true, g3 = true, v3 = true), i3.id !== x2 && (x2 = i3.id, g3 = true), f3 || b2 !== t3) {
@@ -18646,9 +18646,9 @@ var Slide = function(t) {
18646
18646
  const i4 = t3.texture;
18647
18647
  (i4.isDataTexture3D || i4.isDataTexture2DArray) && (o3 = true);
18648
18648
  const s3 = J2.get(t3).__webglFramebuffer;
18649
- t3.isWebGLCubeRenderTarget ? (n3 = s3[e3], r3 = true) : n3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), A2.copy(t3.scissor), C2 = t3.scissorTest;
18649
+ t3.isWebGLCubeRenderTarget ? (n3 = s3[e3], r3 = true) : n3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), A2.copy(t3.scissor), R2 = t3.scissorTest;
18650
18650
  } else
18651
- T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(), C2 = F2;
18651
+ T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(), R2 = F2;
18652
18652
  if (q2.bindFramebuffer(36160, n3) && Y2.drawBuffers) {
18653
18653
  let e4 = false;
18654
18654
  if (t3)
@@ -18665,7 +18665,7 @@ var Slide = function(t) {
18665
18665
  B2.length === 1 && B2[0] === 1029 || (B2[0] = 1029, B2.length = 1, e4 = true);
18666
18666
  e4 && (Y2.isWebGL2 ? mt2.drawBuffers(B2) : W2.get("WEBGL_draw_buffers").drawBuffersWEBGL(B2));
18667
18667
  }
18668
- if (q2.viewport(T2), q2.scissor(A2), q2.setScissorTest(C2), r3) {
18668
+ if (q2.viewport(T2), q2.scissor(A2), q2.setScissorTest(R2), r3) {
18669
18669
  const n4 = J2.get(t3.texture);
18670
18670
  mt2.framebufferTexture2D(36160, 36064, 34069 + e3, n4.__webglTexture, i3);
18671
18671
  } else if (o3) {
@@ -18721,7 +18721,7 @@ var Slide = function(t) {
18721
18721
  }
18722
18722
  (class extends ur {
18723
18723
  }).prototype.isWebGL1Renderer = true;
18724
- class pr extends Rt {
18724
+ class pr extends Ct {
18725
18725
  constructor() {
18726
18726
  super(), this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.overrideMaterial = null, this.autoUpdate = true, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
18727
18727
  }
@@ -18871,8 +18871,8 @@ var Slide = function(t) {
18871
18871
  }
18872
18872
  let _r;
18873
18873
  vr.prototype.isSpriteMaterial = true;
18874
- const yr = new M(), xr = new M(), br = new M(), Tr = new g(), Er = new g(), Sr = new rt(), wr = new M(), Ar = new M(), Mr = new M(), Cr = new g(), Rr = new g(), Ir = new g();
18875
- class Pr extends Rt {
18874
+ const yr = new M(), xr = new M(), br = new M(), Tr = new g(), Er = new g(), Sr = new rt(), wr = new M(), Ar = new M(), Mr = new M(), Rr = new g(), Cr = new g(), Ir = new g();
18875
+ class Pr extends Ct {
18876
18876
  constructor(t2) {
18877
18877
  if (super(), this.type = "Sprite", _r === void 0) {
18878
18878
  _r = new de();
@@ -18887,12 +18887,12 @@ var Slide = function(t) {
18887
18887
  let n2, r2;
18888
18888
  i2 !== 0 && (r2 = Math.cos(i2), n2 = Math.sin(i2));
18889
18889
  const o2 = this.center;
18890
- Or(wr.set(-0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Ar.set(0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Mr.set(0.5, 0.5, 0), br, o2, xr, n2, r2), Cr.set(0, 0), Rr.set(1, 0), Ir.set(1, 1);
18890
+ Or(wr.set(-0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Ar.set(0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Mr.set(0.5, 0.5, 0), br, o2, xr, n2, r2), Rr.set(0, 0), Cr.set(1, 0), Ir.set(1, 1);
18891
18891
  let s2 = t2.ray.intersectTriangle(wr, Ar, Mr, false, yr);
18892
- if (s2 === null && (Or(Ar.set(-0.5, 0.5, 0), br, o2, xr, n2, r2), Rr.set(0, 1), s2 = t2.ray.intersectTriangle(wr, Mr, Ar, false, yr), s2 === null))
18892
+ if (s2 === null && (Or(Ar.set(-0.5, 0.5, 0), br, o2, xr, n2, r2), Cr.set(0, 1), s2 = t2.ray.intersectTriangle(wr, Mr, Ar, false, yr), s2 === null))
18893
18893
  return;
18894
18894
  const a2 = t2.ray.origin.distanceTo(yr);
18895
- a2 < t2.near || a2 > t2.far || e2.push({ distance: a2, point: yr.clone(), uv: Gt.getUV(yr, wr, Ar, Mr, Cr, Rr, Ir, new g()), face: null, object: this });
18895
+ a2 < t2.near || a2 > t2.far || e2.push({ distance: a2, point: yr.clone(), uv: Gt.getUV(yr, wr, Ar, Mr, Rr, Cr, Ir, new g()), face: null, object: this });
18896
18896
  }
18897
18897
  copy(t2) {
18898
18898
  return super.copy(t2), t2.center !== void 0 && this.center.copy(t2.center), this.material = t2.material, this;
@@ -18941,7 +18941,7 @@ var Slide = function(t) {
18941
18941
  }
18942
18942
  }
18943
18943
  Ur.prototype.isSkinnedMesh = true;
18944
- class kr extends Rt {
18944
+ class kr extends Ct {
18945
18945
  constructor() {
18946
18946
  super(), this.type = "Bone";
18947
18947
  }
@@ -19002,7 +19002,7 @@ var Slide = function(t) {
19002
19002
  }
19003
19003
  Wr.prototype.isLineBasicMaterial = true;
19004
19004
  const Yr = new M(), qr = new M(), Zr = new rt(), Jr = new nt(), Kr = new Z();
19005
- class Qr extends Rt {
19005
+ class Qr extends Ct {
19006
19006
  constructor(t2 = new de(), e2 = new Wr()) {
19007
19007
  super(), this.type = "Line", this.geometry = t2, this.material = e2, this.updateMorphTargets();
19008
19008
  }
@@ -19112,7 +19112,7 @@ var Slide = function(t) {
19112
19112
  }
19113
19113
  no.prototype.isPointsMaterial = true;
19114
19114
  const ro = new rt(), oo = new nt(), so = new Z(), ao = new M();
19115
- class lo extends Rt {
19115
+ class lo extends Ct {
19116
19116
  constructor(t2 = new de(), e2 = new no()) {
19117
19117
  super(), this.type = "Points", this.geometry = t2, this.material = e2, this.updateMorphTargets();
19118
19118
  }
@@ -19532,7 +19532,7 @@ var Slide = function(t) {
19532
19532
  }
19533
19533
  }
19534
19534
  Mo.prototype.isQuadraticBezierCurve = true;
19535
- class Co extends co {
19535
+ class Ro extends co {
19536
19536
  constructor(t2 = new M(), e2 = new M(), i2 = new M()) {
19537
19537
  super(), this.type = "QuadraticBezierCurve3", this.v0 = t2, this.v1 = e2, this.v2 = i2;
19538
19538
  }
@@ -19551,8 +19551,8 @@ var Slide = function(t) {
19551
19551
  return super.fromJSON(t2), this.v0.fromArray(t2.v0), this.v1.fromArray(t2.v1), this.v2.fromArray(t2.v2), this;
19552
19552
  }
19553
19553
  }
19554
- Co.prototype.isQuadraticBezierCurve3 = true;
19555
- class Ro extends co {
19554
+ Ro.prototype.isQuadraticBezierCurve3 = true;
19555
+ class Co extends co {
19556
19556
  constructor(t2 = []) {
19557
19557
  super(), this.type = "SplineCurve", this.points = t2;
19558
19558
  }
@@ -19586,7 +19586,7 @@ var Slide = function(t) {
19586
19586
  return this;
19587
19587
  }
19588
19588
  }
19589
- Ro.prototype.isSplineCurve = true;
19589
+ Co.prototype.isSplineCurve = true;
19590
19590
  var Io = Object.freeze({ __proto__: null, ArcCurve: fo, CatmullRomCurve3: xo, CubicBezierCurve: So, CubicBezierCurve3: wo, EllipseCurve: po, LineCurve: Ao, LineCurve3: class extends co {
19591
19591
  constructor(t2 = new M(), e2 = new M()) {
19592
19592
  super(), this.type = "LineCurve3", this.isLineCurve3 = true, this.v1 = t2, this.v2 = e2;
@@ -19608,7 +19608,7 @@ var Slide = function(t) {
19608
19608
  fromJSON(t2) {
19609
19609
  return super.fromJSON(t2), this.v1.fromArray(t2.v1), this.v2.fromArray(t2.v2), this;
19610
19610
  }
19611
- }, QuadraticBezierCurve: Mo, QuadraticBezierCurve3: Co, SplineCurve: Ro });
19611
+ }, QuadraticBezierCurve: Mo, QuadraticBezierCurve3: Ro, SplineCurve: Co });
19612
19612
  const Po = function(t2, e2, i2 = 2) {
19613
19613
  const n2 = e2 && e2.length, r2 = n2 ? e2[0] * i2 : t2.length;
19614
19614
  let o2 = Oo(t2, 0, r2, i2, true);
@@ -19915,12 +19915,12 @@ var Slide = function(t) {
19915
19915
  is.isClockWise(e4) && (w2[t4] = e4.reverse());
19916
19916
  }
19917
19917
  }
19918
- const A2 = is.triangulateShape(S2, w2), C2 = S2;
19918
+ const A2 = is.triangulateShape(S2, w2), R2 = S2;
19919
19919
  for (let t4 = 0, e3 = w2.length; t4 < e3; t4++) {
19920
19920
  const e4 = w2[t4];
19921
19921
  S2 = S2.concat(e4);
19922
19922
  }
19923
- function R2(t4, e3, i3) {
19923
+ function C2(t4, e3, i3) {
19924
19924
  return e3 || console.error("THREE.ExtrudeGeometry: vec does not exist"), e3.clone().multiplyScalar(i3).add(t4);
19925
19925
  }
19926
19926
  const I2 = S2.length, P2 = A2.length;
@@ -19941,8 +19941,8 @@ var Slide = function(t) {
19941
19941
  return new g(n3 / o4, r3 / o4);
19942
19942
  }
19943
19943
  const N2 = [];
19944
- for (let t4 = 0, e3 = C2.length, i3 = e3 - 1, n3 = t4 + 1; t4 < e3; t4++, i3++, n3++)
19945
- i3 === e3 && (i3 = 0), n3 === e3 && (n3 = 0), N2[t4] = O2(C2[t4], C2[i3], C2[n3]);
19944
+ for (let t4 = 0, e3 = R2.length, i3 = e3 - 1, n3 = t4 + 1; t4 < e3; t4++, i3++, n3++)
19945
+ i3 === e3 && (i3 = 0), n3 === e3 && (n3 = 0), N2[t4] = O2(R2[t4], R2[i3], R2[n3]);
19946
19946
  const L2 = [];
19947
19947
  let D2, F2 = N2.concat();
19948
19948
  for (let t4 = 0, e3 = w2.length; t4 < e3; t4++) {
@@ -19954,40 +19954,40 @@ var Slide = function(t) {
19954
19954
  }
19955
19955
  for (let t4 = 0; t4 < p2; t4++) {
19956
19956
  const e3 = t4 / p2, i3 = u2 * Math.cos(e3 * Math.PI / 2), n3 = c2 * Math.sin(e3 * Math.PI / 2) + d2;
19957
- for (let t5 = 0, e4 = C2.length; t5 < e4; t5++) {
19958
- const e5 = R2(C2[t5], N2[t5], n3);
19957
+ for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
19958
+ const e5 = C2(R2[t5], N2[t5], n3);
19959
19959
  k2(e5.x, e5.y, -i3);
19960
19960
  }
19961
19961
  for (let t5 = 0, e4 = w2.length; t5 < e4; t5++) {
19962
19962
  const e5 = w2[t5];
19963
19963
  D2 = L2[t5];
19964
19964
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
19965
- const r4 = R2(e5[t6], D2[t6], n3);
19965
+ const r4 = C2(e5[t6], D2[t6], n3);
19966
19966
  k2(r4.x, r4.y, -i3);
19967
19967
  }
19968
19968
  }
19969
19969
  }
19970
19970
  const B2 = c2 + d2;
19971
19971
  for (let t4 = 0; t4 < I2; t4++) {
19972
- const e3 = h2 ? R2(S2[t4], F2[t4], B2) : S2[t4];
19972
+ const e3 = h2 ? C2(S2[t4], F2[t4], B2) : S2[t4];
19973
19973
  T2 ? (x2.copy(_2.normals[0]).multiplyScalar(e3.x), y2.copy(_2.binormals[0]).multiplyScalar(e3.y), b2.copy(v2[0]).add(x2).add(y2), k2(b2.x, b2.y, b2.z)) : k2(e3.x, e3.y, 0);
19974
19974
  }
19975
19975
  for (let t4 = 1; t4 <= a2; t4++)
19976
19976
  for (let e3 = 0; e3 < I2; e3++) {
19977
- const i3 = h2 ? R2(S2[e3], F2[e3], B2) : S2[e3];
19977
+ const i3 = h2 ? C2(S2[e3], F2[e3], B2) : S2[e3];
19978
19978
  T2 ? (x2.copy(_2.normals[t4]).multiplyScalar(i3.x), y2.copy(_2.binormals[t4]).multiplyScalar(i3.y), b2.copy(v2[t4]).add(x2).add(y2), k2(b2.x, b2.y, b2.z)) : k2(i3.x, i3.y, l2 / a2 * t4);
19979
19979
  }
19980
19980
  for (let t4 = p2 - 1; t4 >= 0; t4--) {
19981
19981
  const e3 = t4 / p2, i3 = u2 * Math.cos(e3 * Math.PI / 2), n3 = c2 * Math.sin(e3 * Math.PI / 2) + d2;
19982
- for (let t5 = 0, e4 = C2.length; t5 < e4; t5++) {
19983
- const e5 = R2(C2[t5], N2[t5], n3);
19982
+ for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
19983
+ const e5 = C2(R2[t5], N2[t5], n3);
19984
19984
  k2(e5.x, e5.y, l2 + i3);
19985
19985
  }
19986
19986
  for (let t5 = 0, e4 = w2.length; t5 < e4; t5++) {
19987
19987
  const e5 = w2[t5];
19988
19988
  D2 = L2[t5];
19989
19989
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
19990
- const r4 = R2(e5[t6], D2[t6], n3);
19990
+ const r4 = C2(e5[t6], D2[t6], n3);
19991
19991
  T2 ? k2(r4.x, r4.y + v2[a2 - 1].y, v2[a2 - 1].x + i3) : k2(r4.x, r4.y, l2 + i3);
19992
19992
  }
19993
19993
  }
@@ -20050,7 +20050,7 @@ var Slide = function(t) {
20050
20050
  }(), function() {
20051
20051
  const t4 = n2.length / 3;
20052
20052
  let e3 = 0;
20053
- U2(C2, e3), e3 += C2.length;
20053
+ U2(R2, e3), e3 += R2.length;
20054
20054
  for (let t5 = 0, i3 = w2.length; t5 < i3; t5++) {
20055
20055
  const i4 = w2[t5];
20056
20056
  U2(i4, e3), e3 += i4.length;
@@ -20668,15 +20668,15 @@ var Slide = function(t) {
20668
20668
  return r2;
20669
20669
  }
20670
20670
  }
20671
- class Cs extends Es {
20671
+ class Rs extends Es {
20672
20672
  InterpolantFactoryMethodLinear(t2) {
20673
20673
  return new Ms(this.times, this.values, this.getValueSize(), t2);
20674
20674
  }
20675
20675
  }
20676
- Cs.prototype.ValueTypeName = "quaternion", Cs.prototype.DefaultInterpolation = 2301, Cs.prototype.InterpolantFactoryMethodSmooth = void 0;
20677
- class Rs extends Es {
20676
+ Rs.prototype.ValueTypeName = "quaternion", Rs.prototype.DefaultInterpolation = 2301, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
20677
+ class Cs extends Es {
20678
20678
  }
20679
- Rs.prototype.ValueTypeName = "string", Rs.prototype.ValueBufferType = Array, Rs.prototype.DefaultInterpolation = 2300, Rs.prototype.InterpolantFactoryMethodLinear = void 0, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
20679
+ Cs.prototype.ValueTypeName = "string", Cs.prototype.ValueBufferType = Array, Cs.prototype.DefaultInterpolation = 2300, Cs.prototype.InterpolantFactoryMethodLinear = void 0, Cs.prototype.InterpolantFactoryMethodSmooth = void 0;
20680
20680
  class Is extends Es {
20681
20681
  }
20682
20682
  Is.prototype.ValueTypeName = "vector";
@@ -20765,7 +20765,7 @@ var Slide = function(t) {
20765
20765
  a2 = t4.length * (o2 || 1);
20766
20766
  } else {
20767
20767
  const o3 = ".bones[" + e2[t3].name + "]";
20768
- i2(Is, o3 + ".position", r3, "pos", n2), i2(Cs, o3 + ".quaternion", r3, "rot", n2), i2(Is, o3 + ".scale", r3, "scl", n2);
20768
+ i2(Is, o3 + ".position", r3, "pos", n2), i2(Rs, o3 + ".quaternion", r3, "rot", n2), i2(Is, o3 + ".scale", r3, "scl", n2);
20769
20769
  }
20770
20770
  }
20771
20771
  if (n2.length === 0)
@@ -20825,12 +20825,12 @@ var Slide = function(t) {
20825
20825
  case "color":
20826
20826
  return ws;
20827
20827
  case "quaternion":
20828
- return Cs;
20828
+ return Rs;
20829
20829
  case "bool":
20830
20830
  case "boolean":
20831
20831
  return Ss;
20832
20832
  case "string":
20833
- return Rs;
20833
+ return Cs;
20834
20834
  }
20835
20835
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + t3);
20836
20836
  }(t2.type);
@@ -21174,7 +21174,7 @@ var Slide = function(t) {
21174
21174
  return this.curves.push(s2), this.currentPoint.set(r2, o2), this;
21175
21175
  }
21176
21176
  splineThru(t2) {
21177
- const e2 = [this.currentPoint.clone()].concat(t2), i2 = new Ro(e2);
21177
+ const e2 = [this.currentPoint.clone()].concat(t2), i2 = new Co(e2);
21178
21178
  return this.curves.push(i2), this.currentPoint.copy(t2[t2.length - 1]), this;
21179
21179
  }
21180
21180
  arc(t2, e2, i2, n2, r2, o2) {
@@ -21248,7 +21248,7 @@ var Slide = function(t) {
21248
21248
  return this;
21249
21249
  }
21250
21250
  }
21251
- class Xs extends Rt {
21251
+ class Xs extends Ct {
21252
21252
  constructor(t2, e2 = 1) {
21253
21253
  super(), this.type = "Light", this.color = new Zt(t2), this.intensity = e2;
21254
21254
  }
@@ -21265,7 +21265,7 @@ var Slide = function(t) {
21265
21265
  Xs.prototype.isLight = true;
21266
21266
  class Ws extends Xs {
21267
21267
  constructor(t2, e2, i2) {
21268
- super(t2, i2), this.type = "HemisphereLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.groundColor = new Zt(e2);
21268
+ super(t2, i2), this.type = "HemisphereLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.groundColor = new Zt(e2);
21269
21269
  }
21270
21270
  copy(t2) {
21271
21271
  return Xs.prototype.copy.call(this, t2), this.groundColor.copy(t2.groundColor), this;
@@ -21322,7 +21322,7 @@ var Slide = function(t) {
21322
21322
  Ks.prototype.isSpotLightShadow = true;
21323
21323
  class Qs extends Xs {
21324
21324
  constructor(t2, e2, i2 = 0, n2 = Math.PI / 3, r2 = 0, o2 = 1) {
21325
- super(t2, e2), this.type = "SpotLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.target = new Rt(), this.distance = i2, this.angle = n2, this.penumbra = r2, this.decay = o2, this.shadow = new Ks();
21325
+ super(t2, e2), this.type = "SpotLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.target = new Ct(), this.distance = i2, this.angle = n2, this.penumbra = r2, this.decay = o2, this.shadow = new Ks();
21326
21326
  }
21327
21327
  get power() {
21328
21328
  return this.intensity * Math.PI;
@@ -21403,7 +21403,7 @@ var Slide = function(t) {
21403
21403
  oa.prototype.isDirectionalLightShadow = true;
21404
21404
  class sa extends Xs {
21405
21405
  constructor(t2, e2) {
21406
- super(t2, e2), this.type = "DirectionalLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.target = new Rt(), this.shadow = new oa();
21406
+ super(t2, e2), this.type = "DirectionalLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.target = new Ct(), this.shadow = new oa();
21407
21407
  }
21408
21408
  dispose() {
21409
21409
  this.shadow.dispose();
@@ -21631,7 +21631,7 @@ var Slide = function(t) {
21631
21631
  this.sh.coefficients[0].set(i2.r, i2.g, i2.b).multiplyScalar(2 * Math.sqrt(Math.PI));
21632
21632
  }
21633
21633
  }).prototype.isAmbientLightProbe = true;
21634
- class xa extends Rt {
21634
+ class xa extends Ct {
21635
21635
  constructor(t2) {
21636
21636
  super(), this.type = "Audio", this.listener = t2, this.context = t2.context, this.gain = this.context.createGain(), this.gain.connect(t2.getInput()), this.autoplay = false, this.buffer = null, this.detune = 0, this.loop = false, this.loopStart = 0, this.loopEnd = 0, this.offset = 0, this.duration = void 0, this.playbackRate = 1, this.isPlaying = false, this.hasPlaybackControl = true, this.source = null, this.sourceType = "empty", this._startedAt = 0, this._progress = 0, this._connected = false, this.filters = [];
21637
21637
  }
@@ -21837,7 +21837,7 @@ var Slide = function(t) {
21837
21837
  }
21838
21838
  }
21839
21839
  }
21840
- const Ta = new RegExp("[\\[\\]\\.:\\/]", "g"), Ea = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Sa = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), wa = /(WCOD+)?/.source.replace("WCOD", Ea), Aa = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ma = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ca = new RegExp("^" + Sa + wa + Aa + Ma + "$"), Ra = ["material", "materials", "bones"];
21840
+ const Ta = new RegExp("[\\[\\]\\.:\\/]", "g"), Ea = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Sa = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), wa = /(WCOD+)?/.source.replace("WCOD", Ea), Aa = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ma = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ra = new RegExp("^" + Sa + wa + Aa + Ma + "$"), Ca = ["material", "materials", "bones"];
21841
21841
  class Ia {
21842
21842
  constructor(t2, e2, i2) {
21843
21843
  this.path = e2, this.parsedPath = i2 || Ia.parseTrackName(e2), this.node = Ia.findNode(t2, this.parsedPath.nodeName) || t2, this.rootNode = t2, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
@@ -21849,13 +21849,13 @@ var Slide = function(t) {
21849
21849
  return t2.replace(/\s/g, "_").replace(Ta, "");
21850
21850
  }
21851
21851
  static parseTrackName(t2) {
21852
- const e2 = Ca.exec(t2);
21852
+ const e2 = Ra.exec(t2);
21853
21853
  if (!e2)
21854
21854
  throw new Error("PropertyBinding: Cannot parse trackName: " + t2);
21855
21855
  const i2 = { nodeName: e2[2], objectName: e2[3], objectIndex: e2[4], propertyName: e2[5], propertyIndex: e2[6] }, n2 = i2.nodeName && i2.nodeName.lastIndexOf(".");
21856
21856
  if (n2 !== void 0 && n2 !== -1) {
21857
21857
  const t3 = i2.nodeName.substring(n2 + 1);
21858
- Ra.indexOf(t3) !== -1 && (i2.nodeName = i2.nodeName.substring(0, n2), i2.objectName = t3);
21858
+ Ca.indexOf(t3) !== -1 && (i2.nodeName = i2.nodeName.substring(0, n2), i2.objectName = t3);
21859
21859
  }
21860
21860
  if (i2.propertyName === null || i2.propertyName.length === 0)
21861
21861
  throw new Error("PropertyBinding: can not parse propertyName from trackName: " + t2);
@@ -22463,7 +22463,7 @@ var Slide = function(t) {
22463
22463
  new g();
22464
22464
  new M();
22465
22465
  new M();
22466
- (class extends Rt {
22466
+ (class extends Ct {
22467
22467
  constructor(t2) {
22468
22468
  super(), this.material = t2, this.render = function() {
22469
22469
  }, this.hasPositions = false, this.hasNormals = false, this.hasColors = false, this.hasUvs = false, this.positionArray = null, this.normalArray = null, this.colorArray = null, this.uvArray = null, this.count = 0;
@@ -22670,17 +22670,17 @@ var Slide = function(t) {
22670
22670
  return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t2, e2, i2);
22671
22671
  }, E.prototype.lengthManhattan = function() {
22672
22672
  return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength();
22673
- }, Rt.prototype.getChildByName = function(t2) {
22673
+ }, Ct.prototype.getChildByName = function(t2) {
22674
22674
  return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t2);
22675
- }, Rt.prototype.renderDepth = function() {
22675
+ }, Ct.prototype.renderDepth = function() {
22676
22676
  console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.");
22677
- }, Rt.prototype.translate = function(t2, e2) {
22677
+ }, Ct.prototype.translate = function(t2, e2) {
22678
22678
  return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."), this.translateOnAxis(e2, t2);
22679
- }, Rt.prototype.getWorldRotation = function() {
22679
+ }, Ct.prototype.getWorldRotation = function() {
22680
22680
  console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.");
22681
- }, Rt.prototype.applyMatrix = function(t2) {
22681
+ }, Ct.prototype.applyMatrix = function(t2) {
22682
22682
  return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t2);
22683
- }, Object.defineProperties(Rt.prototype, { eulerOrder: { get: function() {
22683
+ }, Object.defineProperties(Ct.prototype, { eulerOrder: { get: function() {
22684
22684
  return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order;
22685
22685
  }, set: function(t2) {
22686
22686
  console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order = t2;
@@ -22996,7 +22996,7 @@ var Slide = function(t) {
22996
22996
  var Tl = i(81), El = i.n(Tl);
22997
22997
  var Sl = i(82), wl = i.n(Sl);
22998
22998
  var Al = i(83), Ml = i.n(Al);
22999
- var Cl = i(84), Rl = i.n(Cl);
22999
+ var Rl = i(84), Cl = i.n(Rl);
23000
23000
  var Il = i(85), Pl = i.n(Il);
23001
23001
  class Ol {
23002
23002
  constructor() {
@@ -23089,8 +23089,8 @@ var Slide = function(t) {
23089
23089
  var mh = i(103), gh = i.n(mh), vh = i(104), _h = i.n(vh);
23090
23090
  var yh = i(105), xh = i.n(yh);
23091
23091
  var bh = i(46), Th = i.n(bh), Eh = i(47), Sh = i.n(Eh);
23092
- var wh = i(106), Ah = i.n(wh), Mh = i(107), Ch = i.n(Mh);
23093
- const Rh = { RandomLines: class extends nl {
23092
+ var wh = i(106), Ah = i.n(wh), Mh = i(107), Rh = i.n(Mh);
23093
+ const Ch = { RandomLines: class extends nl {
23094
23094
  constructor() {
23095
23095
  super(...arguments), this.duration = 1e3, this.fragmentShader = al.a, this.options = [{ name: "dir", value: "horz" }];
23096
23096
  }
@@ -23223,7 +23223,7 @@ var Slide = function(t) {
23223
23223
  }
23224
23224
  }, Cover: class extends nl {
23225
23225
  constructor() {
23226
- super(...arguments), this.duration = 1e3, this.fragmentShader = Rl.a, this.options = [], this.defaultDir = "right", this.optionsMap = { [this.defaultDir]: 0, d: 1, r: 2, u: 3, ld: 4, lu: 5, rd: 6, ru: 7 }, this.selfOptionsList = [{ x: -1, y: 0 }, { x: 0, y: -1 }, { x: 1, y: 0 }, { x: 0, y: 1 }, { x: -1, y: -1 }, { x: -1, y: 1 }, { x: 1, y: -1 }, { x: 1, y: 1 }];
23226
+ super(...arguments), this.duration = 1e3, this.fragmentShader = Cl.a, this.options = [], this.defaultDir = "right", this.optionsMap = { [this.defaultDir]: 0, d: 1, r: 2, u: 3, ld: 4, lu: 5, rd: 6, ru: 7 }, this.selfOptionsList = [{ x: -1, y: 0 }, { x: 0, y: -1 }, { x: 1, y: 0 }, { x: 0, y: 1 }, { x: -1, y: -1 }, { x: -1, y: 1 }, { x: 1, y: -1 }, { x: 1, y: 1 }];
23227
23227
  }
23228
23228
  applyOptions(t2) {
23229
23229
  var e2;
@@ -23506,7 +23506,7 @@ var Slide = function(t) {
23506
23506
  }
23507
23507
  }, Doors: class {
23508
23508
  constructor() {
23509
- this.camera = new Ol(), this.duration = 1600, this.options = [], this.width = 100, this.preMaterial = new Fe({ fragmentShader: Ch.a, vertexShader: Ah.a, uniforms: { prevTexture: { value: il }, timePercent: { value: 0 }, offset: { value: 0 } } }), this.prevGeometry = new de(), this.prevMesh = new Ie(), this.nextMesh = new Ie();
23509
+ this.camera = new Ol(), this.duration = 1600, this.options = [], this.width = 100, this.preMaterial = new Fe({ fragmentShader: Rh.a, vertexShader: Ah.a, uniforms: { prevTexture: { value: il }, timePercent: { value: 0 }, offset: { value: 0 } } }), this.prevGeometry = new de(), this.prevMesh = new Ie(), this.nextMesh = new Ie();
23510
23510
  }
23511
23511
  addObjects(t2) {
23512
23512
  this.prevMesh.material = this.preMaterial, this.prevMesh.geometry = this.prevGeometry, this.prevMesh.material.transparent = true, t2.add(this.prevMesh), t2.add(this.nextMesh);
@@ -23543,7 +23543,7 @@ var Slide = function(t) {
23543
23543
  };
23544
23544
  }
23545
23545
  initPlayer(t2) {
23546
- this.config = t2, this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = el[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Rh[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
23546
+ this.config = t2, this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = el[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Ch[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
23547
23547
  }
23548
23548
  setPrevTexture(t2) {
23549
23549
  var e2, i2, n2, r2;
@@ -24014,7 +24014,7 @@ var Slide = function(t) {
24014
24014
  * @pixi/settings is licensed under the MIT License.
24015
24015
  * http://www.opensource.org/licenses/mit-license
24016
24016
  */
24017
- var hu, uu, cu, du, pu, fu, mu, gu, vu, _u, yu, xu, bu, Tu, Eu, Su, wu, Au, Mu, Cu = function(t2) {
24017
+ var hu, uu, cu, du, pu, fu, mu, gu, vu, _u, yu, xu, bu, Tu, Eu, Su, wu, Au, Mu, Ru = function(t2) {
24018
24018
  var e2 = { userAgent: "", platform: "", maxTouchPoints: 0 };
24019
24019
  t2 || typeof navigator == "undefined" ? typeof t2 == "string" ? e2.userAgent = t2 : t2 && t2.userAgent && (e2 = { userAgent: t2.userAgent, platform: t2.platform, maxTouchPoints: t2.maxTouchPoints || 0 }) : e2 = { userAgent: navigator.userAgent, platform: navigator.platform, maxTouchPoints: navigator.maxTouchPoints || 0 };
24020
24020
  var i2 = e2.userAgent, n2 = i2.split("[FBAN");
@@ -24065,7 +24065,7 @@ var Slide = function(t) {
24065
24065
  }(Au || (Au = {})), function(t2) {
24066
24066
  t2[t2.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t2[t2.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t2[t2.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
24067
24067
  }(Mu || (Mu = {}));
24068
- var Ru = {
24068
+ var Cu = {
24069
24069
  MIPMAP_TEXTURES: xu.POW2,
24070
24070
  ANISOTROPIC_LEVEL: 0,
24071
24071
  RESOLUTION: 1,
@@ -24073,13 +24073,13 @@ var Slide = function(t) {
24073
24073
  FILTER_MULTISAMPLE: Au.NONE,
24074
24074
  SPRITE_MAX_TEXTURES: function(t2) {
24075
24075
  var e2 = true;
24076
- if (Cu.tablet || Cu.phone) {
24076
+ if (Ru.tablet || Ru.phone) {
24077
24077
  var i2;
24078
- if (Cu.apple.device) {
24078
+ if (Ru.apple.device) {
24079
24079
  if (i2 = navigator.userAgent.match(/OS (\d+)_(\d+)?/))
24080
24080
  parseInt(i2[1], 10) < 11 && (e2 = false);
24081
24081
  }
24082
- if (Cu.android.device) {
24082
+ if (Ru.android.device) {
24083
24083
  if (i2 = navigator.userAgent.match(/Android\s([0-9.]*)/))
24084
24084
  parseInt(i2[1], 10) < 7 && (e2 = false);
24085
24085
  }
@@ -24094,8 +24094,8 @@ var Slide = function(t) {
24094
24094
  WRAP_MODE: yu.CLAMP,
24095
24095
  SCALE_MODE: _u.LINEAR,
24096
24096
  PRECISION_VERTEX: Su.HIGH,
24097
- PRECISION_FRAGMENT: Cu.apple.device ? Su.HIGH : Su.MEDIUM,
24098
- CAN_UPLOAD_SAME_BUFFER: !Cu.apple.device,
24097
+ PRECISION_FRAGMENT: Ru.apple.device ? Su.HIGH : Su.MEDIUM,
24098
+ CAN_UPLOAD_SAME_BUFFER: !Ru.apple.device,
24099
24099
  CREATE_IMAGE_BITMAP: false,
24100
24100
  ROUND_PIXELS: false,
24101
24101
  SORTABLE_CHILDREN: false
@@ -24329,7 +24329,7 @@ var Slide = function(t) {
24329
24329
  var ec = function(t2) {
24330
24330
  function e2() {
24331
24331
  var e3 = t2.call(this) || this;
24332
- return e3.children = [], e3.sortableChildren = Ru.SORTABLE_CHILDREN, e3.sortDirty = false, e3;
24332
+ return e3.children = [], e3.sortableChildren = Cu.SORTABLE_CHILDREN, e3.sortDirty = false, e3;
24333
24333
  }
24334
24334
  return Ou(e2, t2), e2.prototype.onChildrenChange = function(t3) {
24335
24335
  }, e2.prototype.addChild = function() {
@@ -25055,7 +25055,7 @@ var Slide = function(t) {
25055
25055
  }
25056
25056
  Ac(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
25057
25057
  }
25058
- function Cc(t2, e2) {
25058
+ function Rc(t2, e2) {
25059
25059
  var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
25060
25060
  if (1 & r2[0])
25061
25061
  throw r2[1];
@@ -25119,7 +25119,7 @@ var Slide = function(t) {
25119
25119
  };
25120
25120
  }
25121
25121
  }
25122
- var Rc, Ic, Pc = function(t2) {
25122
+ var Cc, Ic, Pc = function(t2) {
25123
25123
  function e2(i2, n2) {
25124
25124
  var r2 = t2.call(this, i2, n2) || this;
25125
25125
  return r2.format = n2.format, r2.levels = n2.levels || 1, r2._width = n2.width, r2._height = n2.height, r2._extension = e2._formatToExtension(r2.format), (n2.levelBuffers || r2.buffer) && (r2._levelBuffers = n2.levelBuffers || e2._createLevelBuffers(i2 instanceof Uint8Array ? i2 : r2.buffer.uint8View, r2.format, r2.levels, 4, 4, r2.width, r2.height)), r2;
@@ -25164,7 +25164,7 @@ var Slide = function(t) {
25164
25164
  }, e2.prototype.load = function() {
25165
25165
  return t3 = this, e3 = void 0, n2 = function() {
25166
25166
  var t4;
25167
- return Cc(this, function(e4) {
25167
+ return Rc(this, function(e4) {
25168
25168
  switch (e4.label) {
25169
25169
  case 0:
25170
25170
  return [4, fetch(this.origin)];
@@ -25264,7 +25264,7 @@ var Slide = function(t) {
25264
25264
  }(Lc || (Lc = {})), function(t2) {
25265
25265
  t2[t2.DDS_DIMENSION_TEXTURE1D = 2] = "DDS_DIMENSION_TEXTURE1D", t2[t2.DDS_DIMENSION_TEXTURE2D = 3] = "DDS_DIMENSION_TEXTURE2D", t2[t2.DDS_DIMENSION_TEXTURE3D = 6] = "DDS_DIMENSION_TEXTURE3D";
25266
25266
  }(Dc || (Dc = {}));
25267
- var Xc, Wc, Yc, qc = ((Rc = {})[827611204] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Rc[861165636] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Rc[894720068] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Rc), Zc = ((Ic = {})[Lc.DXGI_FORMAT_BC1_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, Ic), Jc = function() {
25267
+ var Xc, Wc, Yc, qc = ((Cc = {})[827611204] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Cc[861165636] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Cc[894720068] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Cc), Zc = ((Ic = {})[Lc.DXGI_FORMAT_BC1_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, Ic), Jc = function() {
25268
25268
  function t2() {
25269
25269
  }
25270
25270
  return t2.use = function(e2, i2) {
@@ -25359,11 +25359,11 @@ var Slide = function(t) {
25359
25359
  if (o2 === 0 && (y2 = g2 * v2), (m2 = o2 !== 0 ? hd[o2] ? hd[o2] * ud[s2] : cd[o2] : wc[a2]) === void 0)
25360
25360
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
25361
25361
  for (var x2 = t2.loadKeyValueData ? t2.parseKvData(n2, f2, r2) : null, b2 = y2 * m2, T2 = l2, E2 = h2, S2 = g2, w2 = v2, A2 = 64 + f2, M2 = 0; M2 < p2; M2++) {
25362
- for (var C2 = n2.getUint32(A2, r2), R2 = A2 + 4, I2 = 0; I2 < c2; I2++) {
25362
+ for (var R2 = n2.getUint32(A2, r2), C2 = A2 + 4, I2 = 0; I2 < c2; I2++) {
25363
25363
  var P2 = _2[I2];
25364
- P2 || (P2 = _2[I2] = new Array(p2)), P2[M2] = { levelID: M2, levelWidth: p2 > 1 || o2 !== 0 ? T2 : S2, levelHeight: p2 > 1 || o2 !== 0 ? E2 : w2, levelBuffer: new Uint8Array(i2, R2, b2) }, R2 += b2;
25364
+ P2 || (P2 = _2[I2] = new Array(p2)), P2[M2] = { levelID: M2, levelWidth: p2 > 1 || o2 !== 0 ? T2 : S2, levelHeight: p2 > 1 || o2 !== 0 ? E2 : w2, levelBuffer: new Uint8Array(i2, C2, b2) }, C2 += b2;
25365
25365
  }
25366
- A2 = (A2 += C2 + 4) % 4 != 0 ? A2 + 4 - A2 % 4 : A2, b2 = (S2 = (T2 = T2 >> 1 || 1) + 4 - 1 & -4) * (w2 = (E2 = E2 >> 1 || 1) + 4 - 1 & -4) * m2;
25366
+ A2 = (A2 += R2 + 4) % 4 != 0 ? A2 + 4 - A2 % 4 : A2, b2 = (S2 = (T2 = T2 >> 1 || 1) + 4 - 1 & -4) * (w2 = (E2 = E2 >> 1 || 1) + 4 - 1 & -4) * m2;
25367
25367
  }
25368
25368
  return o2 !== 0 ? { uncompressed: _2.map(function(e3) {
25369
25369
  var i3 = e3[0].levelBuffer, n3 = false;
@@ -25680,20 +25680,20 @@ var Slide = function(t) {
25680
25680
  for (var d2 = 2; d2 < r2.length; d2 += 2)
25681
25681
  o2.push(r2[d2], r2[d2 + 1]), s2.push(a2++, l2, a2);
25682
25682
  s2.push(l2 + 1, l2, a2);
25683
- } }, Cd = { build: function(t2) {
25683
+ } }, Rd = { build: function(t2) {
25684
25684
  var e2 = t2.shape, i2 = e2.x, n2 = e2.y, r2 = e2.width, o2 = e2.height, s2 = t2.points;
25685
25685
  s2.length = 0, s2.push(i2, n2, i2 + r2, n2, i2 + r2, n2 + o2, i2, n2 + o2);
25686
25686
  }, triangulate: function(t2, e2) {
25687
25687
  var i2 = t2.points, n2 = e2.points, r2 = n2.length / 2;
25688
25688
  n2.push(i2[0], i2[1], i2[2], i2[3], i2[6], i2[7], i2[4], i2[5]), e2.indices.push(r2, r2 + 1, r2 + 2, r2 + 1, r2 + 2, r2 + 3);
25689
25689
  } };
25690
- function Rd(t2, e2, i2) {
25690
+ function Cd(t2, e2, i2) {
25691
25691
  return t2 + (e2 - t2) * i2;
25692
25692
  }
25693
25693
  function Id(t2, e2, i2, n2, r2, o2, s2) {
25694
25694
  s2 === void 0 && (s2 = []);
25695
25695
  for (var a2 = s2, l2 = 0, h2 = 0, u2 = 0, c2 = 0, d2 = 0, p2 = 0, f2 = 0, m2 = 0; f2 <= 20; ++f2)
25696
- l2 = Rd(t2, i2, m2 = f2 / 20), h2 = Rd(e2, n2, m2), u2 = Rd(i2, r2, m2), c2 = Rd(n2, o2, m2), d2 = Rd(l2, u2, m2), p2 = Rd(h2, c2, m2), f2 === 0 && a2[a2.length - 2] === d2 && a2[a2.length - 1] === p2 || a2.push(d2, p2);
25696
+ l2 = Cd(t2, i2, m2 = f2 / 20), h2 = Cd(e2, n2, m2), u2 = Cd(i2, r2, m2), c2 = Cd(n2, o2, m2), d2 = Cd(l2, u2, m2), p2 = Cd(h2, c2, m2), f2 === 0 && a2[a2.length - 2] === d2 && a2[a2.length - 1] === p2 || a2.push(d2, p2);
25697
25697
  return a2;
25698
25698
  }
25699
25699
  var Pd = { build: function(t2) {
@@ -25754,21 +25754,21 @@ var Slide = function(t) {
25754
25754
  var u2 = 0.5 * (s2.x + a2.x), c2 = 0.5 * (a2.y + s2.y);
25755
25755
  n2.unshift(u2, c2), n2.push(u2, c2);
25756
25756
  }
25757
- var d2 = e3.points, p2 = n2.length / 2, f2 = n2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, _2 = o2.miterLimit * o2.miterLimit, y2 = n2[0], x2 = n2[1], b2 = n2[2], T2 = n2[3], E2 = 0, S2 = 0, w2 = -(x2 - T2), A2 = y2 - b2, M2 = 0, C2 = 0, R2 = Math.sqrt(w2 * w2 + A2 * A2);
25758
- w2 /= R2, A2 /= R2, w2 *= g2, A2 *= g2;
25757
+ var d2 = e3.points, p2 = n2.length / 2, f2 = n2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, _2 = o2.miterLimit * o2.miterLimit, y2 = n2[0], x2 = n2[1], b2 = n2[2], T2 = n2[3], E2 = 0, S2 = 0, w2 = -(x2 - T2), A2 = y2 - b2, M2 = 0, R2 = 0, C2 = Math.sqrt(w2 * w2 + A2 * A2);
25758
+ w2 /= C2, A2 /= C2, w2 *= g2, A2 *= g2;
25759
25759
  var I2 = o2.alignment, P2 = 2 * (1 - I2), O2 = 2 * I2;
25760
25760
  l2 || (o2.cap === gd.ROUND ? f2 += Nd(y2 - w2 * (P2 - O2) * 0.5, x2 - A2 * (P2 - O2) * 0.5, y2 - w2 * P2, x2 - A2 * P2, y2 + w2 * O2, x2 + A2 * O2, d2, true) + 2 : o2.cap === gd.SQUARE && (f2 += Od(y2, x2, w2, A2, P2, O2, true, d2))), d2.push(y2 - w2 * P2, x2 - A2 * P2), d2.push(y2 + w2 * O2, x2 + A2 * O2);
25761
25761
  for (var N2 = 1; N2 < p2 - 1; ++N2) {
25762
- y2 = n2[2 * (N2 - 1)], x2 = n2[2 * (N2 - 1) + 1], b2 = n2[2 * N2], T2 = n2[2 * N2 + 1], E2 = n2[2 * (N2 + 1)], S2 = n2[2 * (N2 + 1) + 1], w2 = -(x2 - T2), A2 = y2 - b2, w2 /= R2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= R2, w2 *= g2, A2 *= g2, M2 = -(T2 - S2), C2 = b2 - E2, M2 /= R2 = Math.sqrt(M2 * M2 + C2 * C2), C2 /= R2, M2 *= g2, C2 *= g2;
25762
+ y2 = n2[2 * (N2 - 1)], x2 = n2[2 * (N2 - 1) + 1], b2 = n2[2 * N2], T2 = n2[2 * N2 + 1], E2 = n2[2 * (N2 + 1)], S2 = n2[2 * (N2 + 1) + 1], w2 = -(x2 - T2), A2 = y2 - b2, w2 /= C2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= C2, w2 *= g2, A2 *= g2, M2 = -(T2 - S2), R2 = b2 - E2, M2 /= C2 = Math.sqrt(M2 * M2 + R2 * R2), R2 /= C2, M2 *= g2, R2 *= g2;
25763
25763
  var L2 = b2 - y2, D2 = x2 - T2, F2 = b2 - E2, B2 = S2 - T2, U2 = D2 * F2 - B2 * L2, k2 = U2 < 0;
25764
25764
  if (Math.abs(U2) < 0.1)
25765
25765
  d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2);
25766
25766
  else {
25767
- var G2 = (-w2 + y2) * (-A2 + T2) - (-w2 + b2) * (-A2 + x2), H2 = (-M2 + E2) * (-C2 + T2) - (-M2 + b2) * (-C2 + S2), j2 = (L2 * H2 - F2 * G2) / U2, z2 = (B2 * G2 - D2 * H2) / U2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), X2 = b2 + (j2 - b2) * P2, W2 = T2 + (z2 - T2) * P2, Y2 = b2 - (j2 - b2) * O2, q2 = T2 - (z2 - T2) * O2, Z2 = k2 ? P2 : O2;
25768
- V2 <= Math.min(L2 * L2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o2.join === md.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + C2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(Y2, q2)), f2 += 2) : o2.join === md.ROUND ? k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), f2 += Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + C2 * O2, d2, true) + 4, d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + C2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), f2 += Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - C2 * P2, d2, false) + 4, d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(Y2, q2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), o2.join === md.ROUND ? f2 += k2 ? Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + C2 * O2, d2, true) + 2 : Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - C2 * P2, d2, false) + 2 : o2.join === md.MITER && V2 / v2 <= _2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(X2, W2)), f2 += 2), d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(b2 + M2 * O2, T2 + C2 * O2), f2 += 2);
25767
+ var G2 = (-w2 + y2) * (-A2 + T2) - (-w2 + b2) * (-A2 + x2), H2 = (-M2 + E2) * (-R2 + T2) - (-M2 + b2) * (-R2 + S2), j2 = (L2 * H2 - F2 * G2) / U2, z2 = (B2 * G2 - D2 * H2) / U2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), X2 = b2 + (j2 - b2) * P2, W2 = T2 + (z2 - T2) * P2, Y2 = b2 - (j2 - b2) * O2, q2 = T2 - (z2 - T2) * O2, Z2 = k2 ? P2 : O2;
25768
+ V2 <= Math.min(L2 * L2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o2.join === md.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + R2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(Y2, q2)), f2 += 2) : o2.join === md.ROUND ? k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), f2 += Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + R2 * O2, d2, true) + 4, d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + R2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), f2 += Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - R2 * P2, d2, false) + 4, d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(Y2, q2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), o2.join === md.ROUND ? f2 += k2 ? Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + R2 * O2, d2, true) + 2 : Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - R2 * P2, d2, false) + 2 : o2.join === md.MITER && V2 / v2 <= _2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(X2, W2)), f2 += 2), d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(b2 + M2 * O2, T2 + R2 * O2), f2 += 2);
25769
25769
  }
25770
25770
  }
25771
- y2 = n2[2 * (p2 - 2)], x2 = n2[2 * (p2 - 2) + 1], b2 = n2[2 * (p2 - 1)], w2 = -(x2 - (T2 = n2[2 * (p2 - 1) + 1])), A2 = y2 - b2, w2 /= R2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= R2, w2 *= g2, A2 *= g2, d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), l2 || (o2.cap === gd.ROUND ? f2 += Nd(b2 - w2 * (P2 - O2) * 0.5, T2 - A2 * (P2 - O2) * 0.5, b2 - w2 * P2, T2 - A2 * P2, b2 + w2 * O2, T2 + A2 * O2, d2, false) + 2 : o2.cap === gd.SQUARE && (f2 += Od(b2, T2, w2, A2, P2, O2, false, d2)));
25771
+ y2 = n2[2 * (p2 - 2)], x2 = n2[2 * (p2 - 2) + 1], b2 = n2[2 * (p2 - 1)], w2 = -(x2 - (T2 = n2[2 * (p2 - 1) + 1])), A2 = y2 - b2, w2 /= C2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= C2, w2 *= g2, A2 *= g2, d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), l2 || (o2.cap === gd.ROUND ? f2 += Nd(b2 - w2 * (P2 - O2) * 0.5, T2 - A2 * (P2 - O2) * 0.5, b2 - w2 * P2, T2 - A2 * P2, b2 + w2 * O2, T2 + A2 * O2, d2, false) + 2 : o2.cap === gd.SQUARE && (f2 += Od(b2, T2, w2, A2, P2, O2, false, d2)));
25772
25772
  var J2 = e3.indices, K2 = bd.epsilon * bd.epsilon;
25773
25773
  for (N2 = m2; N2 < f2 + m2 - 2; ++N2)
25774
25774
  y2 = d2[2 * N2], x2 = d2[2 * N2 + 1], b2 = d2[2 * (N2 + 1)], T2 = d2[2 * (N2 + 1) + 1], E2 = d2[2 * (N2 + 2)], S2 = d2[2 * (N2 + 2) + 1], Math.abs(y2 * (T2 - S2) + b2 * (S2 - x2) + E2 * (x2 - T2)) < K2 || J2.push(N2, N2 + 1, N2 + 2);
@@ -25828,7 +25828,7 @@ var Slide = function(t) {
25828
25828
  }, t2.prototype.reset = function() {
25829
25829
  this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
25830
25830
  }, t2;
25831
- }(), Gd = ((Dd = {})[Lh.l.POLY] = Ad, Dd[Lh.l.CIRC] = Md, Dd[Lh.l.ELIP] = Md, Dd[Lh.l.RECT] = Cd, Dd[Lh.l.RREC] = Pd, Dd), Hd = [], jd = [], zd = function() {
25831
+ }(), Gd = ((Dd = {})[Lh.l.POLY] = Ad, Dd[Lh.l.CIRC] = Md, Dd[Lh.l.ELIP] = Md, Dd[Lh.l.RECT] = Rd, Dd[Lh.l.RREC] = Pd, Dd), Hd = [], jd = [], zd = function() {
25832
25832
  function t2(t3, e2, i2, n2) {
25833
25833
  e2 === void 0 && (e2 = null), i2 === void 0 && (i2 = null), n2 === void 0 && (n2 = null), this.points = [], this.holes = [], this.shape = t3, this.lineStyle = i2, this.fillStyle = e2, this.matrix = n2, this.type = t3.type;
25834
25834
  }
@@ -26528,8 +26528,8 @@ var Slide = function(t) {
26528
26528
  }
26529
26529
  else {
26530
26530
  s2.length > 0 && (a2 += t2.addLine(s2), s2 = "", o2 = 0);
26531
- var C2 = g2 === m2.length - 1;
26532
- a2 += t2.addLine(v2, !C2), p2 = false, s2 = "", o2 = 0;
26531
+ var R2 = g2 === m2.length - 1;
26532
+ a2 += t2.addLine(v2, !R2), p2 = false, s2 = "", o2 = 0;
26533
26533
  }
26534
26534
  else
26535
26535
  x2 + o2 > f2 && (p2 = false, a2 += t2.addLine(s2), s2 = "", o2 = 0), (s2.length > 0 || !t2.isBreakingSpace(v2) || p2) && (s2 += v2, o2 += x2);
@@ -26994,19 +26994,19 @@ var Slide = function(t) {
26994
26994
  }, t2.getResourcePath = function(t3, e2) {
26995
26995
  return t3.isDataUrl ? t3.data.meta.image : Ph.url.resolve(t3.url.replace(e2, ""), t3.data.meta.image);
26996
26996
  }, t2;
26997
- }(), Cp = function(t2, e2) {
26998
- return (Cp = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
26997
+ }(), Rp = function(t2, e2) {
26998
+ return (Rp = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
26999
26999
  t3.__proto__ = e3;
27000
27000
  } || function(t3, e3) {
27001
27001
  for (var i2 in e3)
27002
27002
  e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
27003
27003
  })(t2, e2);
27004
27004
  };
27005
- function Rp(t2, e2) {
27005
+ function Cp(t2, e2) {
27006
27006
  function i2() {
27007
27007
  this.constructor = t2;
27008
27008
  }
27009
- Cp(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
27009
+ Rp(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
27010
27010
  }
27011
27011
  var Ip = new Lh.g(), Pp = function(t2) {
27012
27012
  function e2(e3, i2, n2) {
@@ -27014,7 +27014,7 @@ var Slide = function(t) {
27014
27014
  var r2 = t2.call(this, e3) || this;
27015
27015
  return r2.tileTransform = new Lh.m(), r2._width = i2, r2._height = n2, r2.uvMatrix = r2.texture.uvMatrix || new Vh.u(e3), r2.pluginName = "tilingSprite", r2.uvRespectAnchor = false, r2;
27016
27016
  }
27017
- return Rp(e2, t2), Object.defineProperty(e2.prototype, "clampMargin", { get: function() {
27017
+ return Cp(e2, t2), Object.defineProperty(e2.prototype, "clampMargin", { get: function() {
27018
27018
  return this.uvMatrix.clampMargin;
27019
27019
  }, set: function(t3) {
27020
27020
  this.uvMatrix.clampMargin = t3, this.uvMatrix.update(true);
@@ -27063,7 +27063,7 @@ var Slide = function(t) {
27063
27063
  var i2 = t2.call(this, e3) || this;
27064
27064
  return e3.runners.contextChange.add(i2), i2.quad = new Vh.o(), i2.state = Vh.s.for2d(), i2;
27065
27065
  }
27066
- return Rp(e2, t2), e2.prototype.contextChange = function() {
27066
+ return Cp(e2, t2), e2.prototype.contextChange = function() {
27067
27067
  var t3 = this.renderer, e3 = { globals: t3.globalUniforms };
27068
27068
  this.simpleShader = Vh.r.from(Op, "#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n", e3), this.shader = t3.context.webGLVersion > 1 ? Vh.r.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n", "#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n", e3) : Vh.r.from(Op, "#version 100\n#ifdef GL_EXT_shader_texture_lod\n #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n #ifdef GL_EXT_shader_texture_lod\n vec4 texSample = unclamped == coord\n ? texture2D(uSampler, coord) \n : texture2DLodEXT(uSampler, coord, 0);\n #else\n vec4 texSample = texture2D(uSampler, coord);\n #endif\n\n gl_FragColor = texSample * uColor;\n}\n", e3);
27069
27069
  }, e2.prototype.render = function(t3) {
@@ -27217,8 +27217,8 @@ var Slide = function(t) {
27217
27217
  this.chars[p2] = { xOffset: T2, yOffset: E2, xAdvance: S2, kerning: {}, texture: new Vh.t(u2[g2].baseTexture, w2), page: g2 };
27218
27218
  }
27219
27219
  for (c2 = 0; c2 < t3.kerning.length; c2++) {
27220
- var A2 = t3.kerning[c2], M2 = A2.first, C2 = A2.second, R2 = A2.amount;
27221
- M2 /= h2, C2 /= h2, R2 /= h2, this.chars[C2] && (this.chars[C2].kerning[M2] = R2);
27220
+ var A2 = t3.kerning[c2], M2 = A2.first, R2 = A2.second, C2 = A2.amount;
27221
+ M2 /= h2, R2 /= h2, C2 /= h2, this.chars[R2] && (this.chars[R2].kerning[M2] = C2);
27222
27222
  }
27223
27223
  this.distanceFieldRange = l2 == null ? void 0 : l2.distanceRange, this.distanceFieldType = (r2 = (n2 = l2 == null ? void 0 : l2.fieldType) === null || n2 === void 0 ? void 0 : n2.toLowerCase()) !== null && r2 !== void 0 ? r2 : "none";
27224
27224
  }
@@ -27286,9 +27286,9 @@ var Slide = function(t) {
27286
27286
  }
27287
27287
  b2 = 0;
27288
27288
  for (var M2 = u2.length; b2 < M2; b2++)
27289
- for (var C2 = u2[b2], R2 = 0; R2 < M2; R2++) {
27290
- var I2 = u2[R2], P2 = m2.measureText(C2).width, O2 = m2.measureText(I2).width, N2 = m2.measureText(C2 + I2).width - (P2 + O2);
27291
- N2 && p2.kerning.push({ first: Xp(C2), second: Xp(I2), amount: N2 });
27289
+ for (var R2 = u2[b2], C2 = 0; C2 < M2; C2++) {
27290
+ var I2 = u2[C2], P2 = m2.measureText(R2).width, O2 = m2.measureText(I2).width, N2 = m2.measureText(R2 + I2).width - (P2 + O2);
27291
+ N2 && p2.kerning.push({ first: Xp(R2), second: Xp(I2), amount: N2 });
27292
27292
  }
27293
27293
  var L2 = new t2(p2, x2, true);
27294
27294
  return t2.available[e2] !== void 0 && t2.uninstall(e2), t2.available[e2] = L2, L2;
@@ -27330,9 +27330,9 @@ var Slide = function(t) {
27330
27330
  var w2 = 0;
27331
27331
  this._align === "right" ? w2 = d2 - o2[y2] : this._align === "center" ? w2 = (d2 - o2[y2]) / 2 : this._align === "justify" && (w2 = s2[y2] < 0 ? 0 : (d2 - o2[y2]) / s2[y2]), S2.push(w2);
27332
27332
  }
27333
- var A2 = r2.length, M2 = {}, C2 = [], R2 = this._activePagesMeshData;
27334
- for (y2 = 0; y2 < R2.length; y2++)
27335
- h2.push(R2[y2]);
27333
+ var A2 = r2.length, M2 = {}, R2 = [], C2 = this._activePagesMeshData;
27334
+ for (y2 = 0; y2 < C2.length; y2++)
27335
+ h2.push(C2[y2]);
27336
27336
  for (y2 = 0; y2 < A2; y2++) {
27337
27337
  var I2 = (j2 = r2[y2].texture).baseTexture.uid;
27338
27338
  if (!M2[I2]) {
@@ -27344,15 +27344,15 @@ var Slide = function(t) {
27344
27344
  }
27345
27345
  Z2.index = 0, Z2.indexCount = 0, Z2.vertexCount = 0, Z2.uvsCount = 0, Z2.total = 0;
27346
27346
  var D2 = this._textureCache;
27347
- D2[I2] = D2[I2] || new Vh.t(j2.baseTexture), Z2.mesh.texture = D2[I2], Z2.mesh.tint = this._tint, C2.push(Z2), M2[I2] = Z2;
27347
+ D2[I2] = D2[I2] || new Vh.t(j2.baseTexture), Z2.mesh.texture = D2[I2], Z2.mesh.tint = this._tint, R2.push(Z2), M2[I2] = Z2;
27348
27348
  }
27349
27349
  M2[I2].total++;
27350
27350
  }
27351
- for (y2 = 0; y2 < R2.length; y2++)
27352
- C2.indexOf(R2[y2]) === -1 && this.removeChild(R2[y2].mesh);
27353
27351
  for (y2 = 0; y2 < C2.length; y2++)
27354
- C2[y2].mesh.parent !== this && this.addChild(C2[y2].mesh);
27355
- for (var y2 in this._activePagesMeshData = C2, M2) {
27352
+ R2.indexOf(C2[y2]) === -1 && this.removeChild(C2[y2].mesh);
27353
+ for (y2 = 0; y2 < R2.length; y2++)
27354
+ R2[y2].mesh.parent !== this && this.addChild(R2[y2].mesh);
27355
+ for (var y2 in this._activePagesMeshData = R2, M2) {
27356
27356
  var F2 = (Z2 = M2[y2]).total;
27357
27357
  if (!(((t3 = Z2.indices) === null || t3 === void 0 ? void 0 : t3.length) > 6 * F2) || Z2.vertices.length < 2 * Dp.a.BATCHABLE_SIZE)
27358
27358
  Z2.vertices = new Float32Array(8 * F2), Z2.uvs = new Float32Array(8 * F2), Z2.indices = new Uint16Array(6 * F2);
@@ -27764,7 +27764,7 @@ var Slide = function(t) {
27764
27764
  e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
27765
27765
  })(t2, e2);
27766
27766
  };
27767
- var Cf = function(t2) {
27767
+ var Rf = function(t2) {
27768
27768
  function e2(e3, i2) {
27769
27769
  var n2 = this, r2 = new Lh.d();
27770
27770
  return e3.renderable = false, (n2 = t2.call(this, "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n", "varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n", { mapSampler: e3._texture, filterMatrix: r2, scale: { x: 1, y: 1 }, rotation: new Float32Array([1, 0, 0, 1]) }) || this).maskSprite = e3, n2.maskMatrix = r2, i2 == null && (i2 = 20), n2.scale = new Lh.g(i2, i2), n2;
@@ -27783,8 +27783,8 @@ var Slide = function(t) {
27783
27783
  }, set: function(t3) {
27784
27784
  this.uniforms.mapSampler = t3;
27785
27785
  }, enumerable: false, configurable: true }), e2;
27786
- }(Vh.k), Rf = function(t2, e2) {
27787
- return (Rf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
27786
+ }(Vh.k), Cf = function(t2, e2) {
27787
+ return (Cf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
27788
27788
  t3.__proto__ = e3;
27789
27789
  } || function(t3, e3) {
27790
27790
  for (var i2 in e3)
@@ -27920,7 +27920,7 @@ void main() {
27920
27920
  function i2() {
27921
27921
  this.constructor = t3;
27922
27922
  }
27923
- Rf(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (i2.prototype = e3.prototype, new i2());
27923
+ Cf(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (i2.prototype = e3.prototype, new i2());
27924
27924
  }(e2, t2), e2;
27925
27925
  }(Vh.k), Pf = function(t2, e2) {
27926
27926
  return (Pf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
@@ -28157,7 +28157,7 @@ void main() {
28157
28157
  * http://www.opensource.org/licenses/mit-license
28158
28158
  */
28159
28159
  Vh.q.registerPlugin("accessibility", Nh), Vh.q.registerPlugin("extract", nc), Vh.q.registerPlugin("interaction", zh), Vh.q.registerPlugin("particle", yd), Vh.q.registerPlugin("prepare", wp), Vh.q.registerPlugin("batch", Vh.f), Vh.q.registerPlugin("tilingSprite", Lp), yc.registerPlugin(Jp), yc.registerPlugin(Oc), yc.registerPlugin(Jc), yc.registerPlugin(dd), yc.registerPlugin(Mp), Xh.registerPlugin(Dh.b), Xh.registerPlugin(xc);
28160
- var nm, rm = { AlphaFilter: Qp, BlurFilter: Sf, BlurFilterPass: Ef, ColorMatrixFilter: Af, DisplacementFilter: Cf, FXAAFilter: If, NoiseFilter: Kf }, om = i(10), sm = i(34), am = function() {
28160
+ var nm, rm = { AlphaFilter: Qp, BlurFilter: Sf, BlurFilterPass: Ef, ColorMatrixFilter: Af, DisplacementFilter: Rf, FXAAFilter: If, NoiseFilter: Kf }, om = i(10), sm = i(34), am = function() {
28161
28161
  function t2() {
28162
28162
  }
28163
28163
  return t2.offsetPolygon = function(e2, i2) {
@@ -28207,16 +28207,16 @@ void main() {
28207
28207
  }
28208
28208
  if (i2.lineWidth = m2.width, i2.lineCap = m2.cap, i2.lineJoin = m2.join, i2.miterLimit = m2.miterLimit, d2.type === Lh.l.POLY) {
28209
28209
  i2.beginPath();
28210
- var x2 = (R2 = p2).points, b2 = d2.holes, T2 = void 0, E2 = void 0, S2 = void 0, w2 = void 0, A2 = void 0;
28210
+ var x2 = (C2 = p2).points, b2 = d2.holes, T2 = void 0, E2 = void 0, S2 = void 0, w2 = void 0, A2 = void 0;
28211
28211
  i2.moveTo(x2[0], x2[1]);
28212
28212
  for (var M2 = 2; M2 < x2.length; M2 += 2)
28213
28213
  i2.lineTo(x2[M2], x2[M2 + 1]);
28214
- if (R2.closeStroke && i2.closePath(), b2.length > 0) {
28214
+ if (C2.closeStroke && i2.closePath(), b2.length > 0) {
28215
28215
  A2 = [], T2 = 0, S2 = x2[0], w2 = x2[1];
28216
28216
  for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
28217
28217
  T2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
28218
- for (var C2 = 0; C2 < b2.length; C2++)
28219
- if (x2 = b2[C2].shape.points) {
28218
+ for (var R2 = 0; R2 < b2.length; R2++)
28219
+ if (x2 = b2[R2].shape.points) {
28220
28220
  E2 = 0, S2 = x2[0], w2 = x2[1];
28221
28221
  for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
28222
28222
  E2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
@@ -28229,48 +28229,48 @@ void main() {
28229
28229
  for (M2 = x2.length - 4; M2 >= 0; M2 -= 2)
28230
28230
  i2.lineTo(x2[M2], x2[M2 + 1]);
28231
28231
  }
28232
- b2[C2].shape.closeStroke && i2.closePath(), A2[C2] = E2 * T2 < 0;
28232
+ b2[R2].shape.closeStroke && i2.closePath(), A2[R2] = E2 * T2 < 0;
28233
28233
  }
28234
28234
  }
28235
- f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible && this.paintPolygonStroke(R2, m2, s2, b2, A2, n2, i2);
28235
+ f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible && this.paintPolygonStroke(C2, m2, s2, b2, A2, n2, i2);
28236
28236
  } else if (d2.type === Lh.l.RECT) {
28237
- var R2 = p2;
28238
- if (f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fillRect(R2.x, R2.y, R2.width, R2.height)), m2.visible) {
28239
- var I2 = m2.width * (0.5 - (1 - m2.alignment)), P2 = R2.width + 2 * I2, O2 = R2.height + 2 * I2;
28240
- i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.strokeRect(R2.x - I2, R2.y - I2, P2, O2);
28237
+ var C2 = p2;
28238
+ if (f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fillRect(C2.x, C2.y, C2.width, C2.height)), m2.visible) {
28239
+ var I2 = m2.width * (0.5 - (1 - m2.alignment)), P2 = C2.width + 2 * I2, O2 = C2.height + 2 * I2;
28240
+ i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.strokeRect(C2.x - I2, C2.y - I2, P2, O2);
28241
28241
  }
28242
28242
  } else if (d2.type === Lh.l.CIRC) {
28243
- R2 = p2;
28244
- if (i2.beginPath(), i2.arc(R2.x, R2.y, R2.radius, 0, 2 * Math.PI), i2.closePath(), f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible) {
28243
+ C2 = p2;
28244
+ if (i2.beginPath(), i2.arc(C2.x, C2.y, C2.radius, 0, 2 * Math.PI), i2.closePath(), f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible) {
28245
28245
  if (m2.alignment !== 0.5) {
28246
28246
  I2 = m2.width * (0.5 - (1 - m2.alignment));
28247
- i2.beginPath(), i2.arc(R2.x, R2.y, R2.radius + I2, 0, 2 * Math.PI), i2.closePath();
28247
+ i2.beginPath(), i2.arc(C2.x, C2.y, C2.radius + I2, 0, 2 * Math.PI), i2.closePath();
28248
28248
  }
28249
28249
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28250
28250
  }
28251
28251
  } else if (d2.type === Lh.l.ELIP) {
28252
- R2 = p2;
28253
- if ((z2 = m2.alignment === 1) || this.paintEllipse(R2, f2, m2, o2, n2, i2), m2.visible) {
28252
+ C2 = p2;
28253
+ if ((z2 = m2.alignment === 1) || this.paintEllipse(C2, f2, m2, o2, n2, i2), m2.visible) {
28254
28254
  if (m2.alignment !== 0.5) {
28255
28255
  I2 = m2.width * (0.5 - (1 - m2.alignment));
28256
- var N2 = 2 * (R2.width + I2), L2 = 2 * (R2.height + I2), D2 = R2.x - N2 / 2, F2 = R2.y - L2 / 2, B2 = N2 / 2 * 0.5522848, U2 = L2 / 2 * 0.5522848, k2 = D2 + N2, G2 = F2 + L2, H2 = D2 + N2 / 2, j2 = F2 + L2 / 2;
28256
+ var N2 = 2 * (C2.width + I2), L2 = 2 * (C2.height + I2), D2 = C2.x - N2 / 2, F2 = C2.y - L2 / 2, B2 = N2 / 2 * 0.5522848, U2 = L2 / 2 * 0.5522848, k2 = D2 + N2, G2 = F2 + L2, H2 = D2 + N2 / 2, j2 = F2 + L2 / 2;
28257
28257
  i2.beginPath(), i2.moveTo(D2, j2), i2.bezierCurveTo(D2, j2 - U2, H2 - B2, F2, H2, F2), i2.bezierCurveTo(H2 + B2, F2, k2, j2 - U2, k2, j2), i2.bezierCurveTo(k2, j2 + U2, H2 + B2, G2, H2, G2), i2.bezierCurveTo(H2 - B2, G2, D2, j2 + U2, D2, j2), i2.closePath();
28258
28258
  }
28259
28259
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28260
28260
  }
28261
- z2 && this.paintEllipse(R2, f2, m2, o2, n2, i2);
28261
+ z2 && this.paintEllipse(C2, f2, m2, o2, n2, i2);
28262
28262
  } else if (d2.type === Lh.l.RREC) {
28263
28263
  var z2;
28264
- R2 = p2;
28265
- if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(R2, f2, m2, o2, n2, i2), m2.visible) {
28264
+ C2 = p2;
28265
+ if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2), m2.visible) {
28266
28266
  if (m2.alignment !== 0.5) {
28267
- P2 = R2.width, O2 = R2.height, I2 = m2.width * (0.5 - (1 - m2.alignment));
28268
- var V2 = R2.x - I2, X2 = R2.y - I2, W2 = R2.width + 2 * I2, Y2 = R2.height + 2 * I2, q2 = I2 * (m2.alignment >= 1 ? Math.min(W2 / P2, Y2 / O2) : Math.min(P2 / W2, O2 / Y2)), Z2 = R2.radius + q2, J2 = Math.min(W2, Y2) / 2;
28267
+ P2 = C2.width, O2 = C2.height, I2 = m2.width * (0.5 - (1 - m2.alignment));
28268
+ var V2 = C2.x - I2, X2 = C2.y - I2, W2 = C2.width + 2 * I2, Y2 = C2.height + 2 * I2, q2 = I2 * (m2.alignment >= 1 ? Math.min(W2 / P2, Y2 / O2) : Math.min(P2 / W2, O2 / Y2)), Z2 = C2.radius + q2, J2 = Math.min(W2, Y2) / 2;
28269
28269
  Z2 = Z2 > J2 ? J2 : Z2, i2.beginPath(), i2.moveTo(V2, X2 + Z2), i2.lineTo(V2, X2 + Y2 - Z2), i2.quadraticCurveTo(V2, X2 + Y2, V2 + Z2, X2 + Y2), i2.lineTo(V2 + W2 - Z2, X2 + Y2), i2.quadraticCurveTo(V2 + W2, X2 + Y2, V2 + W2, X2 + Y2 - Z2), i2.lineTo(V2 + W2, X2 + Z2), i2.quadraticCurveTo(V2 + W2, X2, V2 + W2 - Z2, X2), i2.lineTo(V2 + Z2, X2), i2.quadraticCurveTo(V2, X2, V2, X2 + Z2), i2.closePath();
28270
28270
  }
28271
28271
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28272
28272
  }
28273
- z2 && this.paintRoundedRectangle(R2, f2, m2, o2, n2, i2);
28273
+ z2 && this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2);
28274
28274
  }
28275
28275
  }
28276
28276
  }, t2.prototype.paintPolygonStroke = function(t3, e2, i2, n2, r2, o2, s2) {
@@ -28537,25 +28537,25 @@ void main() {
28537
28537
  function Mm() {
28538
28538
  return r();
28539
28539
  }
28540
- const Cm = "__delay_resolve_result__";
28541
- function Rm(t2) {
28540
+ const Rm = "__delay_resolve_result__";
28541
+ function Cm(t2) {
28542
28542
  return new Promise((e2) => {
28543
28543
  setTimeout(() => {
28544
- e2(Cm);
28544
+ e2(Rm);
28545
28545
  }, t2);
28546
28546
  });
28547
28547
  }
28548
28548
  function Im(t2, e2) {
28549
28549
  return Am(this, void 0, void 0, function* () {
28550
- const i2 = yield Promise.race([t2(), Rm(e2)]);
28551
- return i2 === Cm ? Cm : i2;
28550
+ const i2 = yield Promise.race([t2(), Cm(e2)]);
28551
+ return i2 === Rm ? Rm : i2;
28552
28552
  });
28553
28553
  }
28554
28554
  function Pm(t2, e2) {
28555
28555
  return Am(this, void 0, void 0, function* () {
28556
28556
  const i2 = Date.now();
28557
28557
  for (; !t2() && Date.now() - i2 < e2; )
28558
- yield Rm(16);
28558
+ yield Cm(16);
28559
28559
  });
28560
28560
  }
28561
28561
  var Om = function(t2, e2, i2, n2) {
@@ -28586,7 +28586,7 @@ void main() {
28586
28586
  function Nm(t2, e2) {
28587
28587
  return Om(this, void 0, void 0, function* () {
28588
28588
  const i2 = yield Im(() => fetch(t2), e2);
28589
- if (i2 === Cm)
28589
+ if (i2 === Rm)
28590
28590
  throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
28591
28591
  if (!i2.ok)
28592
28592
  throw new Tm(gm.ResourceError, `"${t2}" loaded failed with status "${i2.status}"`);
@@ -28594,69 +28594,90 @@ void main() {
28594
28594
  });
28595
28595
  }
28596
28596
  class Lm {
28597
- constructor(t2, e2, i2, n2, r2, o2) {
28598
- this.timeout = 15e3, this.useCache = false, this.taskId = "", this.delegate = null, this.urlInterrupter = null, this.useCache = e2, this.localStorage = t2, this.logger = i2, this.timeout = n2, this.delegate = r2 || null, this.urlInterrupter = o2 || null;
28597
+ constructor(t2, e2, i2, n2, r2, o2, s2) {
28598
+ this.timeout = 15e3, this.useCache = false, this.taskId = "", this.delegate = null, this.urlInterrupter = null, this.useCache = e2, this.localStorage = t2, this.logger = i2, this.tracker = n2, this.timeout = r2, this.delegate = o2 || null, this.urlInterrupter = s2 || null;
28599
28599
  }
28600
28600
  attachTaskId(t2) {
28601
28601
  this.taskId = t2;
28602
28602
  }
28603
28603
  fetchJson(t2) {
28604
28604
  return Om(this, void 0, void 0, function* () {
28605
- let e2 = t2;
28606
- const i2 = t2;
28605
+ const e2 = Date.now();
28606
+ let i2 = t2;
28607
+ const n2 = t2;
28607
28608
  if (this.urlInterrupter && typeof this.urlInterrupter == "function") {
28608
28609
  const t3 = Date.now();
28609
- e2 = yield this.urlInterrupter(e2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
28610
+ i2 = yield this.urlInterrupter(i2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
28610
28611
  }
28611
- let n2;
28612
- if (this.useCache && (this.logger.info("load resource from cache. " + i2, this.taskId || ""), n2 = yield this.localStorage.getItem(i2)), n2)
28613
- return this.logger.info("cache hit. " + i2, this.taskId || ""), n2;
28612
+ let r2;
28613
+ if (this.useCache && (this.logger.info("load resource from cache. " + n2, this.taskId || ""), r2 = yield this.localStorage.getItem(n2)), r2)
28614
+ return this.logger.info("cache hit. " + n2, this.taskId || ""), this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "cache" } }), r2;
28614
28615
  {
28615
28616
  let t3;
28616
28617
  if (this.delegate) {
28617
- this.logger.info("load resource by delegate. " + i2, this.taskId || "");
28618
- const n3 = Date.now(), r2 = yield Im(() => this.delegate.loadJson(e2), this.timeout);
28619
- if (this.logger.info(`load resource by delegate end. ${i2}, time: ${Date.now() - n3}`, this.taskId || ""), r2 === Cm)
28620
- throw new Tm(gm.ResourceError, `"${i2}" loaded timeout"`);
28621
- t3 = JSON.parse(r2);
28618
+ this.logger.info("load resource by delegate. " + n2, this.taskId || "");
28619
+ const r3 = Date.now();
28620
+ try {
28621
+ const o2 = yield Im(() => this.delegate.loadJson(i2), this.timeout);
28622
+ if (this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - r3}`, this.taskId || ""), o2 === Rm)
28623
+ throw new Tm(gm.ResourceError, `"${n2}" loaded timeout"`);
28624
+ t3 = JSON.parse(o2), this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "delegate" } });
28625
+ } catch (t4) {
28626
+ this.tracker({ name: "slideResourceLoad", result: "fail", reason: t4 + "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "delegate" } });
28627
+ }
28622
28628
  } else {
28623
- this.logger.info("load resource from server. " + i2, this.taskId || "");
28624
- const n3 = Date.now();
28625
- t3 = yield (yield Nm("" + e2, this.timeout)).json(), this.logger.info(`load resource from server end. ${i2}, time: ${Date.now() - n3}`, this.taskId || "");
28629
+ this.logger.info("load resource from server. " + n2, this.taskId || "");
28630
+ const r3 = Date.now();
28631
+ try {
28632
+ t3 = yield (yield Nm("" + i2, this.timeout)).json();
28633
+ } catch (t4) {
28634
+ throw this.tracker({ name: "slideResourceLoad", result: "fail", reason: t4 + "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "fetch" } }), t4;
28635
+ }
28636
+ this.logger.info(`load resource from server end. ${n2}, time: ${Date.now() - r3}`, this.taskId || ""), this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "fetch" } });
28626
28637
  }
28627
- return this.logger.info("load end. " + i2, this.taskId || ""), this.useCache && this.localStorage.setItem(i2, t3).catch(() => {
28638
+ return this.logger.info("load end. " + n2, this.taskId || ""), this.useCache && this.localStorage.setItem(n2, t3).catch(() => {
28628
28639
  }), t3;
28629
28640
  }
28630
28641
  });
28631
28642
  }
28632
28643
  fetchPng(t2, e2) {
28633
28644
  return Om(this, void 0, void 0, function* () {
28634
- let i2 = t2;
28635
- const n2 = t2;
28645
+ const i2 = Date.now();
28646
+ let n2 = t2;
28647
+ const r2 = t2;
28636
28648
  if (this.urlInterrupter && typeof this.urlInterrupter == "function") {
28637
28649
  const t3 = Date.now();
28638
- i2 = yield this.urlInterrupter(i2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
28650
+ n2 = yield this.urlInterrupter(n2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
28639
28651
  }
28640
- let r2;
28641
- const o2 = n2 + "-v2";
28642
- if (this.useCache && (this.logger.info("load resource from cache. " + n2, this.taskId || ""), r2 = yield this.localStorage.getItem(o2)), r2) {
28643
- const { scale: t3, scaledBase64: e3 } = r2;
28644
- this.logger.info("cache hit. " + n2, this.taskId || "");
28645
- return { baseTexture: new Vh.c(e3, { resolution: 1 }), scale: t3 };
28652
+ let o2;
28653
+ const s2 = r2 + "-v2";
28654
+ if (this.useCache && (this.logger.info("load resource from cache. " + r2, this.taskId || ""), o2 = yield this.localStorage.getItem(s2)), o2) {
28655
+ const { scale: t3, scaledBase64: e3 } = o2;
28656
+ this.logger.info("cache hit. " + r2, this.taskId || "");
28657
+ const s3 = new Vh.c(e3, { resolution: 1 });
28658
+ return this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "cache" } }), { baseTexture: s3, scale: t3 };
28646
28659
  }
28647
28660
  {
28648
28661
  let t3;
28649
- if (this.delegate) {
28650
- this.logger.info("load resource by delegate. " + n2, this.taskId || "");
28651
- const e3 = Date.now();
28652
- if (t3 = yield Im(() => this.delegate.loadImage(i2), this.timeout), this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 === Cm)
28653
- throw new Tm(gm.ResourceError, `"${n2}" loaded timeout"`);
28654
- } else {
28655
- this.logger.info("load resource from server. " + n2, this.taskId || "");
28656
- const e3 = Date.now(), r3 = yield Nm(i2, this.timeout);
28657
- this.logger.info(`load resource from server end. ${n2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 = yield r3.blob();
28658
- }
28659
- r2 = yield function(t4) {
28662
+ if (this.delegate)
28663
+ try {
28664
+ this.logger.info("load resource by delegate. " + r2, this.taskId || "");
28665
+ const e3 = Date.now();
28666
+ if (t3 = yield Im(() => this.delegate.loadImage(n2), this.timeout), this.logger.info(`load resource by delegate end. ${r2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 === Rm)
28667
+ throw new Tm(gm.ResourceError, `"${r2}" loaded timeout"`);
28668
+ this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "delegate" } });
28669
+ } catch (t4) {
28670
+ this.tracker({ name: "slideResourceLoad", result: "fail", reason: t4 + "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "delegate" } });
28671
+ }
28672
+ else
28673
+ try {
28674
+ this.logger.info("load resource from server. " + r2, this.taskId || "");
28675
+ const e3 = Date.now(), o3 = yield Nm(n2, this.timeout);
28676
+ this.logger.info(`load resource from server end. ${r2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 = yield o3.blob(), this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "fetch" } });
28677
+ } catch (t4) {
28678
+ this.tracker({ name: "slideResourceLoad", result: "fail", reason: t4 + "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "fetch" } });
28679
+ }
28680
+ o2 = yield function(t4) {
28660
28681
  return new Promise((e3, i3) => {
28661
28682
  const n3 = new FileReader();
28662
28683
  n3.onload = () => {
@@ -28666,23 +28687,23 @@ void main() {
28666
28687
  }, n3.readAsDataURL(t4);
28667
28688
  });
28668
28689
  }(t3);
28669
- const s2 = document.createElement("img");
28670
- s2.src = r2, yield new Promise((t4, e3) => {
28671
- s2.onload = () => t4(""), s2.onerror = () => e3(new Error("load sprite image failed"));
28690
+ const a2 = document.createElement("img");
28691
+ a2.src = o2, yield new Promise((t4, e3) => {
28692
+ a2.onload = () => t4(""), a2.onerror = () => e3(new Error("load sprite image failed"));
28672
28693
  });
28673
- let a2 = e2;
28674
- const l2 = s2.width || 1, h2 = s2.height || 1, u2 = 2048, c2 = 2048;
28675
- if (l2 > u2 || h2 > c2) {
28676
- a2 *= u2 / l2;
28677
- const t4 = a2 * h2;
28678
- t4 > c2 && (a2 *= h2 / t4);
28679
- }
28680
- const d2 = document.createElement("canvas"), p2 = Math.ceil(s2.width * a2), f2 = Math.ceil(s2.height * a2);
28681
- d2.width = p2, d2.height = f2;
28682
- d2.getContext("2d").drawImage(s2, 0, 0, p2, f2);
28683
- const m2 = d2.toDataURL("image/png"), g2 = new Vh.c(m2, { resolution: 1 });
28684
- return this.logger.info("load end. " + n2, this.taskId || ""), this.useCache && this.localStorage.setItem(o2, { scale: a2, scaledBase64: m2 }).catch(() => {
28685
- }), { baseTexture: g2, scale: a2 };
28694
+ let l2 = e2;
28695
+ const h2 = a2.width || 1, u2 = a2.height || 1, c2 = 2048, d2 = 2048;
28696
+ if (h2 > c2 || u2 > d2) {
28697
+ l2 *= c2 / h2;
28698
+ const t4 = l2 * u2;
28699
+ t4 > d2 && (l2 *= u2 / t4);
28700
+ }
28701
+ const p2 = document.createElement("canvas"), f2 = Math.ceil(a2.width * l2), m2 = Math.ceil(a2.height * l2);
28702
+ p2.width = f2, p2.height = m2;
28703
+ p2.getContext("2d").drawImage(a2, 0, 0, f2, m2);
28704
+ const g2 = p2.toDataURL("image/png"), v2 = new Vh.c(g2, { resolution: 1 });
28705
+ return this.logger.info("load end. " + r2, this.taskId || ""), this.useCache && this.localStorage.setItem(s2, { scale: l2, scaledBase64: g2 }).catch(() => {
28706
+ }), { baseTexture: v2, scale: l2 };
28686
28707
  }
28687
28708
  });
28688
28709
  }
@@ -29242,7 +29263,7 @@ void main() {
29242
29263
  class hg {
29243
29264
  constructor(t2, e2, i2) {
29244
29265
  var n2, r2, o2, s2, a2, l2;
29245
- this.scaleExt = { x: 1, y: 1 }, this.scaleOrigin = { x: 1, y: 1 }, this.designScale = { x: 1, y: 1 }, this.bound = new Lh.j(0, 0, 1, 1), this.pptX = 0, this.pptY = 0, this.presetSubType = 0, this.designWidth = 0, this.designHeight = 0, this.designX = 0, this.designY = 0, this.hasPreset = false, this.container = new Oh.b(), this.animationFilterQueue = [], this.ctx = e2, this.style = new rg(this.container, !!t2.hardHidden, t2.rotation || 0), this.designGlobalPosition = { x: i2.parentGlobalPos.x + ((r2 = (n2 = t2.position) === null || n2 === void 0 ? void 0 : n2.x) !== null && r2 !== void 0 ? r2 : 0), y: i2.parentGlobalPos.y + ((s2 = (o2 = t2.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) }, (t2.hlinkClick || t2.hlinkHover) && (this.hyperlink = new og(this.container, this.ctx), t2.hlinkHover && ((a2 = this.hyperlink) === null || a2 === void 0 || a2.addAction(t2.hlinkHover, "hover")), t2.hlinkClick && ((l2 = this.hyperlink) === null || l2 === void 0 || l2.addAction(t2.hlinkClick, "click"))), this.ctx.clock.waitUntil(() => {
29266
+ this.scaleExt = { x: 1, y: 1 }, this.scaleOrigin = { x: 1, y: 1 }, this.designScale = { x: 1, y: 1 }, this.bound = new Lh.j(0, 0, 1, 1), this.pptX = 0, this.pptY = 0, this.presetSubType = 0, this.designWidth = 0, this.designHeight = 0, this.designX = 0, this.designY = 0, this.hasPreset = false, this.container = new Oh.b(), this.ctx = e2, this.style = new rg(this.container, !!t2.hardHidden, t2.rotation || 0), this.designGlobalPosition = { x: i2.parentGlobalPos.x + ((r2 = (n2 = t2.position) === null || n2 === void 0 ? void 0 : n2.x) !== null && r2 !== void 0 ? r2 : 0), y: i2.parentGlobalPos.y + ((s2 = (o2 = t2.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) }, (t2.hlinkClick || t2.hlinkHover) && (this.hyperlink = new og(this.container, this.ctx), t2.hlinkHover && ((a2 = this.hyperlink) === null || a2 === void 0 || a2.addAction(t2.hlinkHover, "hover")), t2.hlinkClick && ((l2 = this.hyperlink) === null || l2 === void 0 || l2.addAction(t2.hlinkClick, "click"))), this.ctx.clock.waitUntil(() => {
29246
29267
  try {
29247
29268
  return !!this.container.width;
29248
29269
  } catch (t3) {
@@ -29279,16 +29300,6 @@ void main() {
29279
29300
  const p2 = new Jd();
29280
29301
  p2.drawRect(0, 0, this.designWidth, this.designHeight), this.container.addChild(p2), this.json.hardHidden && (this.container.visible = false), this.bound.x = c2, this.bound.y = d2, this.bound.width = this.designWidth, this.bound.height = this.designHeight;
29281
29302
  }
29282
- addToAnimationFilterQueue(t2) {
29283
- this.animationFilterQueue.push(t2);
29284
- }
29285
- removeAnimationFilterQueue(t2) {
29286
- const e2 = this.animationFilterQueue.findIndex((e3) => e3 === t2);
29287
- e2 < 0 || this.animationFilterQueue.splice(e2, 1);
29288
- }
29289
- getFirstAnimationFilter() {
29290
- return this.animationFilterQueue.length > 0 ? this.animationFilterQueue[0] : null;
29291
- }
29292
29303
  get scale() {
29293
29304
  return this.scaleOrigin;
29294
29305
  }
@@ -29545,16 +29556,16 @@ void main() {
29545
29556
  s2 = o2 + u2, l2 = s2 - o2, a2 = o2 - (s2 - l2) + (u2 - l2), u2 = n2[++d2], o2 = s2, a2 !== 0 && (r2[p2++] = a2);
29546
29557
  return o2 === 0 && p2 !== 0 || (r2[p2++] = o2), p2;
29547
29558
  }
29548
- function Cg(t2, e2) {
29559
+ function Rg(t2, e2) {
29549
29560
  let i2 = e2[0];
29550
29561
  for (let n2 = 1; n2 < t2; n2++)
29551
29562
  i2 += e2[n2];
29552
29563
  return i2;
29553
29564
  }
29554
- function Rg(t2) {
29565
+ function Cg(t2) {
29555
29566
  return new Float64Array(t2);
29556
29567
  }
29557
- const Ig = Rg(4), Pg = Rg(8), Og = Rg(12), Ng = Rg(16), Lg = Rg(4);
29568
+ const Ig = Cg(4), Pg = Cg(8), Og = Cg(12), Ng = Cg(16), Lg = Cg(4);
29558
29569
  function Dg(t2, e2, i2, n2, r2, o2) {
29559
29570
  const s2 = (e2 - o2) * (i2 - r2), a2 = (t2 - r2) * (n2 - o2), l2 = s2 - a2;
29560
29571
  if (s2 === 0 || a2 === 0 || s2 > 0 != a2 > 0)
@@ -29562,16 +29573,16 @@ void main() {
29562
29573
  const h2 = Math.abs(s2 + a2);
29563
29574
  return Math.abs(l2) >= 33306690738754716e-32 * h2 ? l2 : -function(t3, e3, i3, n3, r3, o3, s3) {
29564
29575
  let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, E2, S2;
29565
- const w2 = t3 - r3, A2 = i3 - r3, M2 = e3 - o3, C2 = n3 - o3;
29566
- x2 = w2 * C2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * C2, m2 = d2 - (d2 - C2), g2 = C2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ig[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ig[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ig[2] = _2 - (S2 - c2) + (v2 - c2), Ig[3] = S2;
29567
- let R2 = Cg(4, Ig), I2 = 22204460492503146e-32 * s3;
29568
- if (R2 >= I2 || -R2 >= I2)
29569
- return R2;
29570
- if (c2 = t3 - w2, a3 = t3 - (w2 + c2) + (c2 - r3), c2 = i3 - A2, h3 = i3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = n3 - C2, u2 = n3 - (C2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
29571
- return R2;
29572
- if (I2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(R2), R2 += w2 * u2 + C2 * a3 - (M2 * h3 + A2 * l3), R2 >= I2 || -R2 >= I2)
29573
- return R2;
29574
- x2 = a3 * C2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * C2, m2 = d2 - (d2 - C2), g2 = C2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29576
+ const w2 = t3 - r3, A2 = i3 - r3, M2 = e3 - o3, R2 = n3 - o3;
29577
+ x2 = w2 * R2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ig[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ig[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ig[2] = _2 - (S2 - c2) + (v2 - c2), Ig[3] = S2;
29578
+ let C2 = Rg(4, Ig), I2 = 22204460492503146e-32 * s3;
29579
+ if (C2 >= I2 || -C2 >= I2)
29580
+ return C2;
29581
+ if (c2 = t3 - w2, a3 = t3 - (w2 + c2) + (c2 - r3), c2 = i3 - A2, h3 = i3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = n3 - R2, u2 = n3 - (R2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
29582
+ return C2;
29583
+ if (I2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(C2), C2 += w2 * u2 + R2 * a3 - (M2 * h3 + A2 * l3), C2 >= I2 || -C2 >= I2)
29584
+ return C2;
29585
+ x2 = a3 * R2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29575
29586
  const P2 = Mg(4, Ig, 4, Lg, Pg);
29576
29587
  x2 = w2 * u2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29577
29588
  const O2 = Mg(P2, Pg, 4, Lg, Og);
@@ -30157,7 +30168,7 @@ void main(void){
30157
30168
  super(gv.a, Av.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
30158
30169
  }
30159
30170
  }
30160
- class Cv extends xv {
30171
+ class Rv extends xv {
30161
30172
  constructor(t2, e2, i2, n2, r2) {
30162
30173
  super(), this.order = 2, this.outputSprite = new ep(), this.outputTexture = Vh.t.WHITE, this.frameTextures = [], this.json = t2, this.shapeScaleX = n2, this.effectContainer = e2, this.rotation = i2, this.ctx = r2, this.outputSprite.anchor.x = 0.5, this.outputSprite.anchor.y = 0.5;
30163
30174
  const o2 = this.effectContainer.getBounds();
@@ -30175,7 +30186,7 @@ void main(void){
30175
30186
  this.outputSprite.position.x = o2.x + t2, this.outputSprite.position.y = o2.y + e2;
30176
30187
  }
30177
30188
  }
30178
- var Rv = i(118), Iv = i.n(Rv);
30189
+ var Cv = i(118), Iv = i.n(Cv);
30179
30190
  class Pv extends hv {
30180
30191
  constructor(t2) {
30181
30192
  super(gv.a, Iv.a, {}), this.priority = 1, this.json = t2;
@@ -30227,7 +30238,7 @@ void main(void){
30227
30238
  this.effects.push(new fv(i3));
30228
30239
  break;
30229
30240
  case "reflection":
30230
- this.attachs.push(new Cv(i3, t2, r2, o2.x, this.ctx));
30241
+ this.attachs.push(new Rv(i3, t2, r2, o2.x, this.ctx));
30231
30242
  break;
30232
30243
  case "outerShadow":
30233
30244
  this.attachs.push(new Sv(i3, t2, o2));
@@ -31005,6 +31016,13 @@ void main(void){
31005
31016
  }
31006
31017
  getTextElement(t2, e2) {
31007
31018
  var i2, n2;
31019
+ if (this.json.isMathFallback) {
31020
+ if (!this.json.textBody)
31021
+ return this;
31022
+ const t3 = () => this.json.textBody.paragraphs[0].lines.length <= 1, e3 = () => this.json.textBody.paragraphs[0].lines[0].textUnits.length <= 1, i3 = () => this.json.textBody.paragraphs[0].lines[0].textUnits[0].content.trim() === "";
31023
+ if ((() => this.json.textBody.paragraphs.length <= 1)() && t3() && e3() && i3())
31024
+ return this;
31025
+ }
31008
31026
  return (n2 = (i2 = this.text) === null || i2 === void 0 ? void 0 : i2.getTextElement(t2, e2)) !== null && n2 !== void 0 ? n2 : null;
31009
31027
  }
31010
31028
  getBgElement() {
@@ -32096,11 +32114,7 @@ void main(void){
32096
32114
  function T_(t2, e2) {
32097
32115
  if (!e2)
32098
32116
  return null;
32099
- return e2.split(".").reduce((i2, n2) => {
32100
- if (i2)
32101
- return i2[n2];
32102
- console.warn(`${t2} not support ${e2}`);
32103
- }, t2);
32117
+ return e2.split(".").reduce((i2, n2) => i2 ? i2[n2] : (console.warn(`${t2} not support ${e2}`), null), t2);
32104
32118
  }
32105
32119
  class E_ {
32106
32120
  constructor(t2) {
@@ -32184,21 +32198,21 @@ void main(void){
32184
32198
  }
32185
32199
  }
32186
32200
  w_([Em()], M_.prototype, "interpolationFrom", null);
32187
- class C_ extends A_ {
32201
+ class R_ extends A_ {
32188
32202
  constructor(t2, e2) {
32189
32203
  var i2;
32190
32204
  super(t2, e2), this.value = (i2 = t2.val) === null || i2 === void 0 ? void 0 : i2.value;
32191
32205
  }
32192
32206
  interpolationFrom(t2, e2, i2) {
32193
32207
  let n2 = t2.resolveValue(i2);
32194
- return e2 > this.time && (n2 = this.resolveValue()), n2;
32208
+ return e2 > this.time && ["hidden", "visible"].indexOf(n2) < 0 && (n2 = this.resolveValue()), n2;
32195
32209
  }
32196
32210
  resolveValue() {
32197
32211
  return this.value || "";
32198
32212
  }
32199
32213
  }
32200
- w_([Em()], C_.prototype, "interpolationFrom", null);
32201
- class R_ extends A_ {
32214
+ w_([Em()], R_.prototype, "interpolationFrom", null);
32215
+ class C_ extends A_ {
32202
32216
  constructor(t2, e2) {
32203
32217
  super(t2, e2), this.fn = this.parseFmla(this.val);
32204
32218
  }
@@ -32210,7 +32224,7 @@ void main(void){
32210
32224
  return t2.fmla ? t2.fmla(i2, this.math, r2) : r2;
32211
32225
  }
32212
32226
  }
32213
- w_([Em()], R_.prototype, "interpolationFrom", null);
32227
+ w_([Em()], C_.prototype, "interpolationFrom", null);
32214
32228
  class I_ extends A_ {
32215
32229
  constructor(t2, e2) {
32216
32230
  super(t2, e2), this.value = t2.val.value;
@@ -32225,7 +32239,7 @@ void main(void){
32225
32239
  w_([Em()], I_.prototype, "interpolationFrom", null);
32226
32240
  class P_ extends E_ {
32227
32241
  constructor(t2) {
32228
- super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
32242
+ super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.createVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
32229
32243
  this.timingTarget && (this.startVal = T_(this.timingTarget, this.json.cBhvr.attrList[0]));
32230
32244
  }, this.updateVars = () => {
32231
32245
  var t3, e2, i2, n2;
@@ -32242,7 +32256,9 @@ void main(void){
32242
32256
  this.startVal !== null && this.timingTarget && b_(this.timingTarget, this.json.cBhvr.attrList[0], this.startVal);
32243
32257
  }, this.onSeekToEnd = () => {
32244
32258
  this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
32245
- }, this.initKeyFrames(), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timelineStart", this.updateVars), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart);
32259
+ }, this.onDestroy = () => {
32260
+ this.createVal !== null && this.timingTarget && b_(this.timingTarget, this.json.cBhvr.attrList[0], this.createVal);
32261
+ }, this.initKeyFrames(), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timelineStart", this.updateVars), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeDestroy", this.onDestroy), this.createVal = T_(this.timingTarget, this.json.cBhvr.attrList[0]);
32246
32262
  }
32247
32263
  get modifyAttrKey() {
32248
32264
  return this.json.cBhvr.attrList[0];
@@ -32255,24 +32271,24 @@ void main(void){
32255
32271
  if (this.json.from || this.startVal) {
32256
32272
  const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
32257
32273
  if (e2 === "num" && this.timingTarget) {
32258
- const e3 = new R_(t4, this.timingTarget);
32274
+ const e3 = new C_(t4, this.timingTarget);
32259
32275
  this.keyFrames.push([t4.time, e3]);
32260
32276
  }
32261
32277
  }
32262
32278
  const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
32263
32279
  if (e2 === "num" && this.timingTarget) {
32264
- const e3 = new R_(t3, this.timingTarget);
32280
+ const e3 = new C_(t3, this.timingTarget);
32265
32281
  this.keyFrames.push([t3.time, e3]);
32266
32282
  }
32267
32283
  } else if (this.json.by) {
32268
32284
  const i2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
32269
32285
  if (e2 === "num" && this.timingTarget) {
32270
- const t3 = new R_(i2, this.timingTarget);
32286
+ const t3 = new C_(i2, this.timingTarget);
32271
32287
  this.keyFrames.push([i2.time, t3]);
32272
32288
  }
32273
32289
  const n2 = { time: 1, val: { type: "string", value: (((t2 = i2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
32274
32290
  if (e2 === "num" && this.timingTarget) {
32275
- const t3 = new R_(n2, this.timingTarget);
32291
+ const t3 = new C_(n2, this.timingTarget);
32276
32292
  this.keyFrames.push([n2.time, t3]);
32277
32293
  }
32278
32294
  }
@@ -32281,7 +32297,7 @@ void main(void){
32281
32297
  for (const t3 of this.json.tavLst)
32282
32298
  if (t3.val && this.timingTarget) {
32283
32299
  let i2 = null;
32284
- t3.val.type === "string" ? e2 === "num" ? i2 = new R_(t3, this.timingTarget) : e2 === "str" && (i2 = new C_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new M_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new I_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
32300
+ t3.val.type === "string" ? e2 === "num" ? i2 = new C_(t3, this.timingTarget) : e2 === "str" && (i2 = new R_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new M_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new I_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
32285
32301
  }
32286
32302
  }
32287
32303
  }
@@ -32391,20 +32407,17 @@ void main(void){
32391
32407
  t4 && (this.filter.uniforms.uBoundRect = new Float32Array([t4.x, t4.y, t4.width, t4.height]));
32392
32408
  }
32393
32409
  n3 >= 1 && this.timingTarget && this.ctx.clock.setTimeout(() => {
32394
- var t4;
32395
- if (((t4 = this.timingTarget) === null || t4 === void 0 ? void 0 : t4.container.filters) && this.filter) {
32396
- this.timingTarget.removeAnimationFilterQueue(this.filter);
32397
- const t5 = this.timingTarget.getFirstAnimationFilter();
32398
- this.timingTarget.container.filters = t5 ? [t5] : [];
32399
- }
32410
+ this.removeFilter();
32400
32411
  });
32401
32412
  }, this.onSeekToStart = () => {
32402
- this.timingTarget && (this.timingTarget.container.filters = [], this.filter && this.timingTarget.removeAnimationFilterQueue(this.filter));
32413
+ this.timingTarget && this.removeFilter();
32403
32414
  }, this.onSeekToEnd = () => {
32404
- this.timingTarget && (this.timingTarget.container.filters = [], this.filter && this.timingTarget.removeAnimationFilterQueue(this.filter));
32415
+ this.timingTarget && this.removeFilter();
32416
+ }, this.onDestroy = () => {
32417
+ this.removeFilter();
32405
32418
  }, this.commonTimeNode.on("timelineStart", () => {
32406
- this.filter && this.timingTarget && (this.timingTarget.addToAnimationFilterQueue(this.filter), this.timingTarget.container.filters && this.timingTarget.container.filters.length !== 0 || (this.timingTarget.container.filters = [this.filter]));
32407
- }), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate);
32419
+ this.filter && this.timingTarget && (this.timingTarget.container.filters && this.timingTarget.container.filters.length !== 0 ? this.timingTarget.container.filters.push(this.filter) : this.timingTarget.container.filters = [this.filter]);
32420
+ }), this.commonTimeNode.on("timeNodeDestroy", this.onDestroy), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate);
32408
32421
  let i2 = 1;
32409
32422
  t2.json.transition === "out" && (i2 = -1);
32410
32423
  const n2 = (e2 = t2.json.filter) === null || e2 === void 0 ? void 0 : e2.match(/^([a-zA-Z]+)(\((.+)\))?/);
@@ -32416,6 +32429,13 @@ void main(void){
32416
32429
  get modifyAttrKey() {
32417
32430
  return this.filterType;
32418
32431
  }
32432
+ removeFilter() {
32433
+ var t2;
32434
+ if (!((t2 = this.timingTarget) === null || t2 === void 0 ? void 0 : t2.container.filters) || !this.filter)
32435
+ return;
32436
+ const e2 = this.timingTarget.container.filters.findIndex((t3) => t3 === this.filter);
32437
+ e2 >= 0 && this.timingTarget.container.filters.splice(e2, 1);
32438
+ }
32419
32439
  }
32420
32440
  class fy extends E_ {
32421
32441
  constructor(t2) {
@@ -32472,11 +32492,12 @@ void main(void){
32472
32492
  }
32473
32493
  class my extends E_ {
32474
32494
  constructor(t2) {
32475
- super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.onTimelineStart = (t3) => {
32495
+ var e2;
32496
+ super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.createVal = null, this.onTimelineStart = (t3) => {
32476
32497
  t3.isReverse || this.updateCurrentValue();
32477
- }, this.onTimeUpdate = ({ duration: t3, delta: e2 }) => {
32498
+ }, this.onTimeUpdate = ({ duration: t3, delta: e3 }) => {
32478
32499
  var i2, n2, r2, o2, s2;
32479
- const a2 = e2 / t3, l2 = { x: 1, y: 1 };
32500
+ const a2 = e3 / t3, l2 = { x: 1, y: 1 };
32480
32501
  if (this.to) {
32481
32502
  const t4 = (i2 = this.from) !== null && i2 !== void 0 ? i2 : { x: (r2 = (n2 = this.startVal) === null || n2 === void 0 ? void 0 : n2.x) !== null && r2 !== void 0 ? r2 : 1, y: (s2 = (o2 = this.startVal) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 1 };
32482
32503
  l2.x = t4.x + (this.to.x - t4.x) * a2, l2.y = t4.y + (this.to.y - t4.y) * a2;
@@ -32491,7 +32512,9 @@ void main(void){
32491
32512
  this.timingTarget && this.startVal && (this.timingTarget.scale = this.startVal);
32492
32513
  }, this.onSeekToEnd = () => {
32493
32514
  this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
32494
- }, this.from = t2.json.from, this.to = t2.json.to, this.by = t2.json.by, this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeDestroy", this.onSeekToStart);
32515
+ }, this.onDestroy = () => {
32516
+ this.createVal !== null && this.timingTarget && (this.timingTarget.scale = this.createVal);
32517
+ }, this.from = t2.json.from, this.to = t2.json.to, this.by = t2.json.by, this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeDestroy", this.onSeekToStart), ((e2 = this.timingTarget) === null || e2 === void 0 ? void 0 : e2.scale.x) && (this.createVal = { x: this.timingTarget.scale.x, y: this.timingTarget.scale.y });
32495
32518
  }
32496
32519
  get modifyAttrKey() {
32497
32520
  return "scale";
@@ -32557,7 +32580,7 @@ void main(void){
32557
32580
  }
32558
32581
  class vy extends E_ {
32559
32582
  constructor(t2) {
32560
- super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.lastVal = null, this.onTimelineStart = (t3) => {
32583
+ super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.createVal = null, this.lastVal = null, this.onTimelineStart = (t3) => {
32561
32584
  this.lastVal = null, t3.isReverse || this.updateCurrentValue();
32562
32585
  }, this.onTimeUpdate = ({ duration: t3, delta: e2 }) => {
32563
32586
  const i2 = e2 / t3;
@@ -32571,6 +32594,9 @@ void main(void){
32571
32594
  const t4 = this.by * i2 - this.lastVal;
32572
32595
  this.lastVal = this.by * i2, this.timingTarget && (this.timingTarget.r += t4);
32573
32596
  }
32597
+ }, this.onTimeNodeCreate = () => {
32598
+ var t3;
32599
+ Vm()((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.r) && (this.createVal = this.timingTarget.r);
32574
32600
  }, this.onTimeNodeStart = () => {
32575
32601
  var t3;
32576
32602
  Vm()((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.r) && (this.startVal = this.timingTarget.r);
@@ -32578,7 +32604,9 @@ void main(void){
32578
32604
  this.timingTarget && this.startVal !== null && (this.timingTarget.r = this.startVal);
32579
32605
  }, this.onSeekToEnd = () => {
32580
32606
  this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
32581
- }, this.from = this.json.from, this.to = this.json.to, this.by = this.json.by, this.by ? this.isConflict = false : this.isConflict = true, this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timeNodeDestroy", this.onSeekToStart);
32607
+ }, this.onDestroy = () => {
32608
+ this.timingTarget && this.createVal !== null && (this.timingTarget.r = this.createVal), this.startVal = null;
32609
+ }, this.from = this.json.from, this.to = this.json.to, this.by = this.json.by, this.by ? this.isConflict = false : this.isConflict = true, this.onTimeNodeCreate(), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timeNodeDestroy", this.onDestroy);
32582
32610
  }
32583
32611
  get modifyAttrKey() {
32584
32612
  return "rotate";
@@ -33214,7 +33242,7 @@ void main(void){
33214
33242
  i2 && i2.seek(e2);
33215
33243
  }
33216
33244
  }
33217
- class Cy {
33245
+ class Ry {
33218
33246
  constructor(t2) {
33219
33247
  this.ticker = t2, this.tasks = [], this.couldRunning = false, this.applyNext = () => {
33220
33248
  const t3 = this.tasks[0];
@@ -33237,7 +33265,7 @@ void main(void){
33237
33265
  this.couldRunning = false;
33238
33266
  }
33239
33267
  }
33240
- var Ry = function(t2, e2, i2, n2) {
33268
+ var Cy = function(t2, e2, i2, n2) {
33241
33269
  return new (i2 || (i2 = Promise))(function(r2, o2) {
33242
33270
  function s2(t3) {
33243
33271
  try {
@@ -33295,7 +33323,7 @@ void main(void){
33295
33323
  }));
33296
33324
  }
33297
33325
  applyAll() {
33298
- return Ry(this, void 0, void 0, function* () {
33326
+ return Cy(this, void 0, void 0, function* () {
33299
33327
  for (; !this.tasks.every((t2) => t2.state === "finish"); )
33300
33328
  if (this.tasks.some((t2) => t2.state === "running"))
33301
33329
  yield Iy(16);
@@ -33307,7 +33335,7 @@ void main(void){
33307
33335
  if (t2) {
33308
33336
  t2.state = "running";
33309
33337
  try {
33310
- if ((yield Im(() => t2.fn.apply(null), 6e4)) === Cm)
33338
+ if ((yield Im(() => t2.fn.apply(null), 6e4)) === Rm)
33311
33339
  throw new Tm(gm.RuntimeError, `subtask ${t2.name} apply timeout`);
33312
33340
  if (t2.state = "finish", t2.sub.length > 0) {
33313
33341
  const e2 = this.tasks.findIndex((e3) => e3 === t2);
@@ -33504,7 +33532,7 @@ void main(void){
33504
33532
  };
33505
33533
  class Dy {
33506
33534
  constructor(t2, e2, i2, n2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2, g2) {
33507
- this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.urlInterrupter = c2, this.isPlayerPaused = d2, this.maxResolution = p2, this.volumeAdjuster = f2, this.forceCanvas = m2, this.globalEventHub = g2, this.currentStageIndex = 0, this.cacheCount = r_.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new Cy(n2), this.sdfManager = new Ny(i2, l2);
33535
+ this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.urlInterrupter = c2, this.isPlayerPaused = d2, this.maxResolution = p2, this.volumeAdjuster = f2, this.forceCanvas = m2, this.globalEventHub = g2, this.currentStageIndex = 0, this.cacheCount = r_.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new Ry(n2), this.sdfManager = new Ny(i2, l2);
33508
33536
  }
33509
33537
  setResourceData(t2, e2) {
33510
33538
  this.taskId = t2, this.url = e2;
@@ -33667,7 +33695,7 @@ void main(void){
33667
33695
  e2 = yield Im(() => By.localCache.getItem(`${this.taskId}/${t2}`), 500);
33668
33696
  } catch (t3) {
33669
33697
  }
33670
- return e2 = e2 === Cm ? null : e2, e2 || this.memoryCache.get(t2) || null;
33698
+ return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
33671
33699
  });
33672
33700
  }
33673
33701
  setItem(t2, e2, i2 = false) {
@@ -33682,7 +33710,7 @@ void main(void){
33682
33710
  }), 500);
33683
33711
  } catch (t3) {
33684
33712
  }
33685
- n2 !== Cm && n2 !== null || !i2 || this.memoryCache.set(t2, e2);
33713
+ n2 !== Rm && n2 !== null || !i2 || this.memoryCache.set(t2, e2);
33686
33714
  }
33687
33715
  });
33688
33716
  }
@@ -33823,9 +33851,9 @@ void main(void){
33823
33851
  }, this.onRequestCancelFullscreenVideo = (t3 = false) => {
33824
33852
  var e3, i3;
33825
33853
  this.globalVideoSprite.texture.destroy(false), this.globalVideoBackground.removeChild(this.globalVideoSprite), this.app.stage.removeChild(this.globalVideoBackground), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex, targetId: (e3 = this.currentStage) === null || e3 === void 0 ? void 0 : e3.ctx.latestChangeFullscreenTargetId }), this.clearFullscreenEventListenersWithAppView(), t3 && this.emit(zy.changeLocalFullscreenState, { status: false, slideIndex: this.currentIndex, targetId: (i3 = this.currentStage) === null || i3 === void 0 ? void 0 : i3.ctx.latestChangeFullscreenTargetId });
33826
- }, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new By(this.logger), this.cachedExtract = new ky(this.localStorage), this.config = { minFPS: $a()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: $a()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: $a()(e2.resolution) ? 1 : e2.resolution, autoFPS: !$a()(e2.autoFPS) && e2.autoFPS, autoResolution: !$a()(e2.autoResolution) && e2.autoResolution, transactionBgColor: $a()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !$a()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !$a()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate, t2.urlInterrupter);
33854
+ }, this.logger = t2.logger, this.tracker = t2.tracker, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new By(this.logger), this.cachedExtract = new ky(this.localStorage), this.config = { minFPS: $a()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: $a()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: $a()(e2.resolution) ? 1 : e2.resolution, autoFPS: !$a()(e2.autoFPS) && e2.autoFPS, autoResolution: !$a()(e2.autoResolution) && e2.autoResolution, transactionBgColor: $a()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !$a()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !$a()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, this.tracker, t2.resourceTimeout, t2.loadDelegate, t2.urlInterrupter);
33827
33855
  const i2 = Ph.isWebGLSupported();
33828
- this.app = new Xh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !i2 }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33856
+ this.app = new Xh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !i2 }), this.tracker({ name: "slidePlayerCreate", result: "", reason: "", payload: { webgl: i2, resolution: this.config.resolution, minFPS: this.config.minFPS, maxFPS: this.config.maxFPS, maxResolutionLevel: this.config.maxResolutionLevel, forceCanvas: this.config.forceCanvas } }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33829
33857
  const n2 = this.app.renderer;
33830
33858
  if (n2.gl) {
33831
33859
  const { drawElements: t3 } = n2.gl, e3 = n2.gl.getExtension("WEBGL_debug_renderer_info"), i3 = n2.gl.getParameter(e3.UNMASKED_RENDERER_WEBGL);
@@ -33899,25 +33927,25 @@ void main(void){
33899
33927
  return Hy(this, void 0, void 0, function* () {
33900
33928
  if (this._isPaused)
33901
33929
  return void this.logger.info("ppt play prevent render slide with paused state", this.taskId);
33902
- const r2 = Date.now();
33930
+ const r2 = this.currentIndex, o2 = Date.now();
33903
33931
  this.logger.info("render slide " + t2, this.taskId), this.emit(zy.renderStart, t2);
33904
- const o2 = yield this.stagePool.getStage(t2), s2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, a2 = yield this.localStorage.getItem(s2);
33905
- if (!o2)
33932
+ const s2 = yield this.stagePool.getStage(t2), a2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, l2 = yield this.localStorage.getItem(a2);
33933
+ if (!s2)
33906
33934
  return;
33907
- o2.ctx.isRendering = true, this.translateEvent(o2.ctx.eventHub, [zy.mainSeqStepChange, zy.mainSeqStateChange, zy.hyperlinkTrigger, zy.interactiveSeqAction, zy.mainSeqStepStart, zy.mainSeqStepEnd, zy.animateStart, zy.animateEnd, zy.mediaPlay, zy.mediaPause, zy.mediaSeek, zy.mediaStop, zy.requestGotoSlide, zy.requestOpenUrl, zy.requestNextSlide, zy.requestPrevSlide, zy.interactiveSeqStateChange, zy.userInput, zy.fullscreenChange, zy.changeLocalFullscreenState]), this.currentIndex = Number(t2);
33908
- const { width: l2, height: h2, slideCount: u2 } = o2.json;
33909
- this.slideCount = u2, this.designWidth = l2, this.designHeight = h2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
33910
- const c2 = this.currentStage;
33911
- this.currentStage = o2, o2.initOnReuse(), o2.createTiming(), o2.container.visible = true, o2.collectMainSeqStartValue(), this.isForward ? o2.setMainSeqStep(0, "start") : o2.setMainSeqStep(-1, "end"), this.onRequestCancelFullscreenVideo(true);
33912
- let d2 = false;
33913
- if (Ph.isWebGLSupported() && !this.config.forceCanvas && o2.json.transition && o2.json.transition.type && this.app.stage.children.length > 0 && this.view && c2) {
33914
- let { transition: t3 } = o2.json;
33915
- !this.isForward && (c2 == null ? void 0 : c2.json.transition) && (t3 = c2.json.transition);
33916
- const e3 = this.getTransactionTexture(c2, this.view, null, null);
33917
- this.initTransactionPlayer(t3), (i2 = this.transactionPlayer) === null || i2 === void 0 || i2.setPrevTexture(e3), d2 = true;
33918
- }
33919
- if (this.app.stage.addChild(o2.container), this.updateResolution(this.config.resolution * this.scale), c2 && (c2.clearOnTransactionEnd(), this.app.stage.removeChild(c2.container)), o2.json.transition && o2.json.transition.type && this.app.stage.children.length > 0 && this.view && this.transactionPlayer && d2) {
33920
- const t3 = yield this.getTransactionTexture(o2, this.view, s2, a2);
33935
+ s2.ctx.isRendering = true, this.translateEvent(s2.ctx.eventHub, [zy.mainSeqStepChange, zy.mainSeqStateChange, zy.hyperlinkTrigger, zy.interactiveSeqAction, zy.mainSeqStepStart, zy.mainSeqStepEnd, zy.animateStart, zy.animateEnd, zy.mediaPlay, zy.mediaPause, zy.mediaSeek, zy.mediaStop, zy.requestGotoSlide, zy.requestOpenUrl, zy.requestNextSlide, zy.requestPrevSlide, zy.interactiveSeqStateChange, zy.userInput, zy.fullscreenChange, zy.changeLocalFullscreenState]), this.currentIndex = Number(t2);
33936
+ const { width: h2, height: u2, slideCount: c2 } = s2.json;
33937
+ this.slideCount = c2, this.designWidth = h2, this.designHeight = u2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
33938
+ const d2 = this.currentStage;
33939
+ this.currentStage = s2, s2.initOnReuse(), s2.createTiming(), s2.container.visible = true, s2.collectMainSeqStartValue(), this.isForward ? s2.setMainSeqStep(0, "start") : s2.setMainSeqStep(-1, "end"), this.onRequestCancelFullscreenVideo(true);
33940
+ let p2 = false;
33941
+ if (Ph.isWebGLSupported() && !this.config.forceCanvas && s2.json.transition && s2.json.transition.type && this.app.stage.children.length > 0 && this.view && d2) {
33942
+ let { transition: t3 } = s2.json;
33943
+ !this.isForward && (d2 == null ? void 0 : d2.json.transition) && (t3 = d2.json.transition);
33944
+ const e3 = this.getTransactionTexture(d2, this.view, null, null);
33945
+ this.initTransactionPlayer(t3), (i2 = this.transactionPlayer) === null || i2 === void 0 || i2.setPrevTexture(e3), p2 = true;
33946
+ }
33947
+ if (this.app.stage.addChild(s2.container), this.updateResolution(this.config.resolution * this.scale), d2 && (d2.clearOnTransactionEnd(), this.app.stage.removeChild(d2.container)), s2.json.transition && s2.json.transition.type && this.app.stage.children.length > 0 && this.view && this.transactionPlayer && p2) {
33948
+ const t3 = yield this.getTransactionTexture(s2, this.view, a2, l2);
33921
33949
  this.transactionPlayer.setNextTexture(t3), yield this.transactionPlayer.play();
33922
33950
  const e3 = this.transactionPlayer.renderer.domElement;
33923
33951
  if (this.view.parentElement && e3)
@@ -33927,11 +33955,11 @@ void main(void){
33927
33955
  }
33928
33956
  (n2 = this.transactionPlayer) === null || n2 === void 0 || n2.dispose();
33929
33957
  }
33930
- this.isForward ? yield o2.startTiming() : o2.setMainSeqApplied(), o2.ctx.slideScopeEventHub.emit("slide-render", o2.ctx.slideIndex), this.emit(zy.renderEnd, t2), this.emit(zy.slideChange, t2), o2.ctx.isRendering = false, this.preload(t2 + 1).catch((e3) => {
33958
+ this.isForward ? yield s2.startTiming() : s2.setMainSeqApplied(), s2.ctx.slideScopeEventHub.emit("slide-render", s2.ctx.slideIndex), this.emit(zy.renderEnd, t2), this.emit(zy.slideChange, t2), s2.ctx.isRendering = false, this.preload(t2 + 1).catch((e3) => {
33931
33959
  this.errorChannel.emit("error", Tm.transform(e3), t2 + 1);
33932
33960
  }), this.preload(t2 - 1).catch((e3) => {
33933
33961
  this.errorChannel.emit("error", Tm.transform(e3), t2 - 1);
33934
- }), this.logger.info(`render slide ${t2} done, time: ${Date.now() - r2}ms`, this.taskId);
33962
+ }), this.logger.info(`render slide ${t2} done, time: ${Date.now() - o2}ms`, this.taskId), this.tracker({ name: "slidePageChange", reason: "", result: "", payload: { duration: Date.now() - o2, from: r2, to: t2 } });
33935
33963
  });
33936
33964
  }
33937
33965
  getTransactionTexture(t2, e2, i2, n2) {
@@ -34134,17 +34162,7 @@ void main(void){
34134
34162
  destroy() {
34135
34163
  var t2, e2;
34136
34164
  try {
34137
- this.app.view.removeEventListener("webglcontextlost", this.onWebGLLost);
34138
- try {
34139
- this.app.renderer.filter.texturePool.clear(true);
34140
- } catch (t3) {
34141
- }
34142
- qm.collectObjectByGroup(this.objPoolGroup), Zm.collectObjectByGroup(this.objPoolGroup), (t2 = this.transactionPlayer) === null || t2 === void 0 || t2.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage(), this.stagePool.destroy();
34143
- try {
34144
- this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext();
34145
- } catch (t3) {
34146
- }
34147
- this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = Ny.worker) === null || e2 === void 0 || e2.terminate();
34165
+ this.app.view.removeEventListener("webglcontextlost", this.onWebGLLost), this.app.renderer.filter.texturePool.clear(true), qm.collectObjectByGroup(this.objPoolGroup), Zm.collectObjectByGroup(this.objPoolGroup), (t2 = this.transactionPlayer) === null || t2 === void 0 || t2.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage(), this.stagePool.destroy(), this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext(), this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = Ny.worker) === null || e2 === void 0 || e2.terminate(), this.tracker({ name: "slidePlayerDestroy", result: "", reason: "", payload: {} });
34148
34166
  } catch (t3) {
34149
34167
  }
34150
34168
  }
@@ -34258,9 +34276,9 @@ void main(void){
34258
34276
  };
34259
34277
  }
34260
34278
  Ex.push(t2), ex();
34261
- }, wx = 0, Ax = { attributes: true, characterData: true, childList: true, subtree: true }, Mx = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Cx = function(t2) {
34279
+ }, wx = 0, Ax = { attributes: true, characterData: true, childList: true, subtree: true }, Mx = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Rx = function(t2) {
34262
34280
  return t2 === void 0 && (t2 = 0), Date.now() + t2;
34263
- }, Rx = false, Ix = new (function() {
34281
+ }, Cx = false, Ix = new (function() {
34264
34282
  function t2() {
34265
34283
  var t3 = this;
34266
34284
  this.stopped = true, this.listener = function() {
@@ -34269,15 +34287,15 @@ void main(void){
34269
34287
  }
34270
34288
  return t2.prototype.run = function(t3) {
34271
34289
  var e2 = this;
34272
- if (t3 === void 0 && (t3 = 250), !Rx) {
34273
- Rx = true;
34274
- var i2, n2 = Cx(t3);
34290
+ if (t3 === void 0 && (t3 = 250), !Cx) {
34291
+ Cx = true;
34292
+ var i2, n2 = Rx(t3);
34275
34293
  i2 = function() {
34276
34294
  var i3 = false;
34277
34295
  try {
34278
34296
  i3 = Tx();
34279
34297
  } finally {
34280
- if (Rx = false, t3 = n2 - Cx(), !wx)
34298
+ if (Cx = false, t3 = n2 - Rx(), !wx)
34281
34299
  return;
34282
34300
  i3 ? e2.run(1e3) : t3 > 0 ? e2.run(t3) : e2.start();
34283
34301
  }
@@ -35103,7 +35121,7 @@ void main(void){
35103
35121
  };
35104
35122
  var Mb = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
35105
35123
  setTimeout(t2, 1e3 / 60);
35106
- }, Cb = function() {
35124
+ }, Rb = function() {
35107
35125
  function t2() {
35108
35126
  $x(this, t2), this.backgroundElement = document.createElement("div"), Xx.extend(this.backgroundElement.style, { backgroundColor: "rgba(0,0,0,0.8)", top: 0, left: 0, display: "none", zIndex: "1000", opacity: 0, WebkitTransition: "opacity 0.2s linear", transition: "opacity 0.2s linear" }), cb.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), Xx.extend(this.domElement.style, { position: "fixed", display: "none", zIndex: "1001", opacity: 0, WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear", transition: "transform 0.2s ease-out, opacity 0.2s linear" }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
35109
35127
  var e2 = this;
@@ -35131,7 +35149,7 @@ void main(void){
35131
35149
  return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
35132
35150
  }
35133
35151
  }(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
35134
- var Rb = function() {
35152
+ var Cb = function() {
35135
35153
  try {
35136
35154
  return !!window.localStorage;
35137
35155
  } catch (t2) {
@@ -35140,7 +35158,7 @@ void main(void){
35140
35158
  }(), Ib = void 0, Pb = true, Ob = void 0, Nb = false, Lb = [], Db = function t2(e2) {
35141
35159
  var i2 = this, n2 = e2 || {};
35142
35160
  this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), cb.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], n2 = Xx.defaults(n2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), n2 = Xx.defaults(n2, { resizable: n2.autoPlace, hideable: n2.autoPlace }), Xx.isUndefined(n2.load) ? n2.load = { preset: "Default" } : n2.preset && (n2.load.preset = n2.preset), Xx.isUndefined(n2.parent) && n2.hideable && Lb.push(this), n2.resizable = Xx.isUndefined(n2.parent) && n2.resizable, n2.autoPlace && Xx.isUndefined(n2.scrollable) && (n2.scrollable = true);
35143
- var r2, o2 = Rb && localStorage.getItem(Hb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
35161
+ var r2, o2 = Cb && localStorage.getItem(Hb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
35144
35162
  if (Object.defineProperties(this, { parent: { get: function() {
35145
35163
  return n2.parent;
35146
35164
  } }, scrollable: { get: function() {
@@ -35173,9 +35191,9 @@ void main(void){
35173
35191
  } }, useLocalStorage: { get: function() {
35174
35192
  return o2;
35175
35193
  }, set: function(t3) {
35176
- Rb && (o2 = t3, t3 ? cb.bind(window, "unload", s2) : cb.unbind(window, "unload", s2), localStorage.setItem(Hb(i2, "isLocal"), t3));
35194
+ Cb && (o2 = t3, t3 ? cb.bind(window, "unload", s2) : cb.unbind(window, "unload", s2), localStorage.setItem(Hb(i2, "isLocal"), t3));
35177
35195
  } } }), Xx.isUndefined(n2.parent)) {
35178
- if (this.closed = n2.closed || false, cb.addClass(this.domElement, t2.CLASS_MAIN), cb.makeSelectable(this.domElement, false), Rb && o2) {
35196
+ if (this.closed = n2.closed || false, cb.addClass(this.domElement, t2.CLASS_MAIN), cb.makeSelectable(this.domElement, false), Cb && o2) {
35179
35197
  i2.useLocalStorage = true;
35180
35198
  var l2 = localStorage.getItem(Hb(this, "gui"));
35181
35199
  l2 && (n2.load = JSON.parse(l2));
@@ -35194,7 +35212,7 @@ void main(void){
35194
35212
  n2.autoPlace && (Xx.isUndefined(n2.parent) && (Pb && (Ob = document.createElement("div"), cb.addClass(Ob, "dg"), cb.addClass(Ob, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(Ob), Pb = false), Ob.appendChild(this.domElement), cb.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || Wb(i2, n2.width)), this.__resizeHandler = function() {
35195
35213
  i2.onResizeDebounced();
35196
35214
  }, cb.bind(window, "resize", this.__resizeHandler), cb.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), cb.bind(this.__ul, "transitionend", this.__resizeHandler), cb.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), n2.resizable && Xb(this), s2 = function() {
35197
- Rb && localStorage.getItem(Hb(i2, "isLocal")) === "true" && localStorage.setItem(Hb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
35215
+ Cb && localStorage.getItem(Hb(i2, "isLocal")) === "true" && localStorage.setItem(Hb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
35198
35216
  }, this.saveToLocalStorageIfPossible = s2, n2.parent || ((r2 = i2.getRoot()).width += 1, Xx.defer(function() {
35199
35217
  r2.width -= 1;
35200
35218
  }));
@@ -35329,7 +35347,7 @@ void main(void){
35329
35347
  for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
35330
35348
  t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
35331
35349
  t2.preset = this.value;
35332
- }), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Rb) {
35350
+ }), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Cb) {
35333
35351
  var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
35334
35352
  document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(Hb(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), zb(t2, a2), cb.bind(l2, "change", function() {
35335
35353
  t2.useLocalStorage = !t2.useLocalStorage, zb(t2, a2);
@@ -35437,7 +35455,7 @@ void main(void){
35437
35455
  }, onResizeDebounced: Xx.debounce(function() {
35438
35456
  this.onResize();
35439
35457
  }, 50), remember: function() {
35440
- if (Xx.isUndefined(Ib) && ((Ib = new Cb()).domElement.innerHTML = wb), this.parent)
35458
+ if (Xx.isUndefined(Ib) && ((Ib = new Rb()).domElement.innerHTML = wb), this.parent)
35441
35459
  throw new Error("You can only call remember on a top level GUI.");
35442
35460
  var t2 = this;
35443
35461
  Xx.each(Array.prototype.slice.call(arguments), function(e2) {
@@ -35990,7 +36008,7 @@ void main(void){
35990
36008
  }
35991
36009
  var fT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, mT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, gT = "";
35992
36010
  try {
35993
- gT = "1.1.9";
36011
+ gT = "1.1.12";
35994
36012
  } catch (t2) {
35995
36013
  gT = "dev -";
35996
36014
  }
@@ -36082,7 +36100,9 @@ void main(void){
36082
36100
  n3.renderSlide(t3, e3);
36083
36101
  } else
36084
36102
  t3 === -1 && n3.renderSlide(n3.slideCount, true);
36085
- }, e2.instances.push(n3), n3.config = n3.initSlideConfig(i3), e2.trackLogger.setEnable(!!n3.config.enableTracking), n3.logger = { info: function(t3, i4) {
36103
+ }, e2.instances.push(n3), n3.config = n3.initSlideConfig(i3), n3.tracker = function(t3) {
36104
+ i3.whiteTracker && i3.whiteTracker.commit({ name: t3.name, reason: t3.reason, result: t3.result, payload: aT(aT({}, t3.payload), { slideId: n3.randomId, taskId: n3.taskId }) }, { slideVersion: n3.version || "" });
36105
+ }, e2.trackLogger.setEnable(!!n3.config.enableTracking), n3.logger = { info: function(t3, i4) {
36086
36106
  var r2;
36087
36107
  e2.appendLogString("INFO - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n"), e2.trackLogger.addLog(t3, "info", i4, n3.randomId);
36088
36108
  var o2 = (r2 = n3.config.logger) === null || r2 === void 0 ? void 0 : r2.info;
@@ -36097,14 +36117,14 @@ void main(void){
36097
36117
  e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n"), e2.trackLogger.addLog(t3, "error", i4, n3.randomId);
36098
36118
  var o2 = (r2 = n3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
36099
36119
  o2 && o2("[" + i4 + "] " + t3);
36100
- } }, n3.logger.info("new slide with clientId: " + n3.config.clientId + ", version: " + n3.version, n3.taskId), n3.anchor = n3.config.anchor, n3.syncQueue = new Kb(n3.receiveSyncHandler), n3.lock = new Qb(n3.mode === "interactive"), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frameResizeObserver.observe(n3.frame), n3.on(fT.syncReceive, function(t3) {
36120
+ } }, n3.logger.info("new slide with clientId: " + n3.config.clientId + ", version: " + n3.version, n3.taskId), n3.tracker({ name: "initSlide", result: "", reason: "", payload: { taskId: n3.taskId } }), n3.anchor = n3.config.anchor, n3.syncQueue = new Kb(n3.receiveSyncHandler), n3.lock = new Qb(n3.mode === "interactive"), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frameResizeObserver.observe(n3.frame), n3.on(fT.syncReceive, function(t3) {
36101
36121
  n3.lock.unlock(t3.type, t3.uuid), n3.syncQueue.addTask(t3);
36102
36122
  }), n3.renderingTaskManager.eventHub.on("task-error", function(t3) {
36103
36123
  var e3 = t3.error, i4 = t3.task, r2 = Tm.transform(e3);
36104
36124
  r2.errorType === gm.RuntimeWarn ? n3.logger.warn(r2.message, n3.taskId) : n3.logger.error(r2.message, n3.taskId), n3.isLoading = false, n3.reportError(r2, i4.slideIndex);
36105
36125
  }), window.addEventListener("__slide_ref__", n3.handleSlideRef), n3.resizeView = Jy()(n3.resizeView.bind(n3), 50), n3.player = n3.initPlayer(n3.config), n3.config.controller && n3.createController(), n3.player.view && n3.canvasContainer.appendChild(n3.player.view), n3.handleViewClick = Jy()(n3.handleViewClick, 300), n3.player.errorChannel.on("error", function(t3, e3) {
36106
36126
  var i4 = Tm.transform(t3);
36107
- i4.errorType === gm.RuntimeWarn ? n3.logger.warn(i4.message, n3.taskId) : n3.logger.error(i4.message, n3.taskId), n3.isLoading = false, n3.reportError(t3, e3);
36127
+ i4.errorType === gm.RuntimeWarn ? n3.logger.warn(i4.message, n3.taskId) : n3.logger.error(i4.message, n3.taskId), n3.isLoading = false, n3.reportError(t3, e3), n3.tracker({ name: "slideError", reason: i4.errorMsg, result: "", payload: { code: i4.errorType } });
36108
36128
  }), window.addEventListener("message", n3.recoverHandler), e2.volumeAdjuster.on("update", n3._updateVolumeByStaticAdjuster), n3.volumeAdjuster.volume = e2.volumeAdjuster.volume, n3;
36109
36129
  }
36110
36130
  var i2, n2;
@@ -36183,7 +36203,7 @@ void main(void){
36183
36203
  }, e2.prototype.initSlideConfig = function(t3) {
36184
36204
  return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (Vy.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !$a()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
36185
36205
  }, e2.prototype.initPlayer = function(t3) {
36186
- var e3, i3, n3, r2 = this, o2 = new Vy({ mode: this.mode, useLocalCache: !!$a()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: $a()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster, urlInterrupter: this.config.urlInterrupter }, t3.renderOptions);
36206
+ var e3, i3, n3, r2 = this, o2 = new Vy({ mode: this.mode, useLocalCache: !!$a()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: $a()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster, urlInterrupter: this.config.urlInterrupter, tracker: this.tracker }, t3.renderOptions);
36187
36207
  return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(zy.renderStart, function(t4) {
36188
36208
  r2.isLoading = true, r2.emit(fT.renderStart, t4), window.postMessage({ type: "@slide/_render_start_", taskId: r2.taskId, index: t4 }, "*");
36189
36209
  }), o2.on(zy.renderEnd, function(t4) {
@@ -36476,7 +36496,7 @@ void main(void){
36476
36496
  return uT(this, function(o2) {
36477
36497
  switch (o2.label) {
36478
36498
  case 0:
36479
- return this.logger.info("frozen with player[" + !!this.player + "]", this.taskId), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
36499
+ return this.logger.info("frozen with player[" + !!this.player + "]", this.taskId), this.tracker({ name: "frozenSlide", reason: "", result: "", payload: { taskId: this.taskId } }), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
36480
36500
  return !r2.isLoading;
36481
36501
  }, 6e4)] : [3, 2];
36482
36502
  case 1:
@@ -36500,7 +36520,7 @@ void main(void){
36500
36520
  return uT(this, function(s2) {
36501
36521
  switch (s2.label) {
36502
36522
  case 0:
36503
- if (this.logger.info("do release slide", this.taskId), this.player)
36523
+ if (this.logger.info("do release slide", this.taskId), this.tracker({ name: "releaseSlide", reason: "", result: "", payload: { taskId: this.taskId } }), this.player)
36504
36524
  return [2];
36505
36525
  for (n3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), i3 = this.__slideState, this.__slideState = Qy()(mT), i3.mediaState)
36506
36526
  (r2 = i3.mediaState[n3]).type === "play" && (o2 = Math.max((e3 = r2.frozenTime) !== null && e3 !== void 0 ? e3 : 0, r2.time), r2.time = this.timestamp() - (o2 - r2.time), r2.frozenTime = void 0);
@@ -36524,7 +36544,7 @@ void main(void){
36524
36544
  });
36525
36545
  }, e2.prototype._doDestroy = function() {
36526
36546
  var t3, i3, n3, r2, o2 = this;
36527
- this.logger.info("do destroy slide", this.taskId);
36547
+ this.logger.info("do destroy slide", this.taskId), this.tracker({ name: "destroySlide", reason: "", result: "", payload: { taskId: this.taskId } });
36528
36548
  var s2 = e2.instances.findIndex(function(t4) {
36529
36549
  return t4.randomId === o2.randomId;
36530
36550
  });
@@ -37290,6 +37310,9 @@ function cachedGetBgColor(el) {
37290
37310
  }
37291
37311
  return cachedBgColor;
37292
37312
  }
37313
+ const getRoomTracker = (displayer) => {
37314
+ return displayer.tracker;
37315
+ };
37293
37316
  function createDocsViewerPages(slide) {
37294
37317
  const { width, height, slideCount, slideState } = slide;
37295
37318
  const { taskId, url } = slideState;
@@ -37453,7 +37476,9 @@ class SlideController {
37453
37476
  this.room = context.getRoom();
37454
37477
  this.player = this.room ? void 0 : context.getDisplayer();
37455
37478
  setRoomLogger(this.room || this.player);
37456
- this.slide = this.createSlide(anchor);
37479
+ this.slide = this.createSlide(anchor, {
37480
+ whiteTracker: getRoomTracker(context.getDisplayer())
37481
+ });
37457
37482
  this.syncStateOnceFlag = !this.context.isAddApp;
37458
37483
  this.visible = document.visibilityState === "visible";
37459
37484
  this.savedIsFrozen = false;
@@ -37533,7 +37558,7 @@ class SlideController {
37533
37558
  get page() {
37534
37559
  return this.slide.slideState.currentSlideIndex;
37535
37560
  }
37536
- createSlide(anchor) {
37561
+ createSlide(anchor, defaults = {}) {
37537
37562
  var _a, _b, _c;
37538
37563
  const options = this.context.getAppOptions() || {};
37539
37564
  const slide = new Slide.Slide({
@@ -37561,6 +37586,7 @@ class SlideController {
37561
37586
  rtcAudio: options.rtcAudio,
37562
37587
  useLocalCache: options.useLocalCache,
37563
37588
  logger: options.logger,
37589
+ whiteTracker: defaults.whiteTracker,
37564
37590
  timestamp: this.timestamp
37565
37591
  });
37566
37592
  return slide;
@@ -38299,7 +38325,7 @@ if (runningOnBrowser) {
38299
38325
  autoInitialize(LazyLoad, window.lazyLoadOptions);
38300
38326
  }
38301
38327
  class DocsViewer {
38302
- constructor({ readonly, onNewPageIndex, onPlay, urlInterrupter }) {
38328
+ constructor({ readonly, onNewPageIndex, onPlay, onPagesReady, urlInterrupter }) {
38303
38329
  this._pages = [];
38304
38330
  this.pageIndex = 0;
38305
38331
  this.setPaused = () => {
@@ -38315,6 +38341,7 @@ class DocsViewer {
38315
38341
  this.readonly = readonly;
38316
38342
  this.onNewPageIndex = onNewPageIndex;
38317
38343
  this.onPlay = onPlay;
38344
+ this.onPagesReady = onPagesReady;
38318
38345
  this.urlInterrupter = urlInterrupter || ((url) => url);
38319
38346
  this.render();
38320
38347
  }
@@ -38322,6 +38349,9 @@ class DocsViewer {
38322
38349
  this._pages = value;
38323
38350
  this.refreshPreview().then(this.refreshBtnSidebar.bind(this));
38324
38351
  this.refreshTotalPage();
38352
+ if (this.onPagesReady) {
38353
+ this.onPagesReady(value);
38354
+ }
38325
38355
  }
38326
38356
  get pages() {
38327
38357
  return this._pages;
@@ -38584,7 +38614,8 @@ class SlideDocsViewer {
38584
38614
  mountWhiteboard,
38585
38615
  baseScenePath,
38586
38616
  appId,
38587
- urlInterrupter
38617
+ urlInterrupter,
38618
+ onPagesReady
38588
38619
  }) {
38589
38620
  this.slideController = null;
38590
38621
  this.isViewMounted = false;
@@ -38746,7 +38777,8 @@ class SlideDocsViewer {
38746
38777
  readonly: box.readonly,
38747
38778
  onNewPageIndex: this.onNewPageIndex,
38748
38779
  onPlay: this.onPlay,
38749
- urlInterrupter
38780
+ urlInterrupter,
38781
+ onPagesReady
38750
38782
  });
38751
38783
  this.sideEffect.add(() => {
38752
38784
  const handler = (readonly) => {
@@ -39112,7 +39144,7 @@ class SlidePreviewer {
39112
39144
  }
39113
39145
  }
39114
39146
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39115
- const version = "0.2.48";
39147
+ const version = "0.2.50";
39116
39148
  const SlideApp = {
39117
39149
  kind: "Slide",
39118
39150
  setup(context) {
@@ -39149,6 +39181,10 @@ const SlideApp = {
39149
39181
  docsViewer.viewer.setPageIndex(page - 1);
39150
39182
  docsViewer.viewer.setPaused();
39151
39183
  docsViewer.onPageChanged();
39184
+ const length = docsViewer.viewer.pages.length;
39185
+ if (length > 0) {
39186
+ context.dispatchAppEvent("pageStateChange", { index: page - 1, length });
39187
+ }
39152
39188
  }
39153
39189
  };
39154
39190
  const mountSlideController = (options) => {
@@ -39183,7 +39219,11 @@ const SlideApp = {
39183
39219
  mountWhiteboard: context.mountView.bind(context),
39184
39220
  baseScenePath,
39185
39221
  appId: context.appId,
39186
- urlInterrupter: (_a = context.getAppOptions()) == null ? void 0 : _a.urlInterrupter
39222
+ urlInterrupter: (_a = context.getAppOptions()) == null ? void 0 : _a.urlInterrupter,
39223
+ onPagesReady: ({ length }) => {
39224
+ const index = (docsViewer == null ? void 0 : docsViewer.viewer.pageIndex) || 0;
39225
+ context.dispatchAppEvent("pageStateChange", { index, length });
39226
+ }
39187
39227
  });
39188
39228
  const room = context.getRoom();
39189
39229
  const sideEffect = new SideEffectManager();