@needle-tools/engine 4.8.0 → 4.8.2-alpha

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{generateMeshBVH.worker-BaNp_Xtp.js → generateMeshBVH.worker-2qGLkQjg.js} +1 -1
  3. package/dist/{gltf-progressive-DvKoBHYV.min.js → gltf-progressive-B--ZfCTJ.min.js} +4 -4
  4. package/dist/{gltf-progressive-Dz8fohdH.umd.cjs → gltf-progressive-CHV7_60B.umd.cjs} +6 -6
  5. package/dist/{gltf-progressive-CBWvONCe.js → gltf-progressive-Do1XJNMG.js} +64 -63
  6. package/dist/{loader.worker-D5fjeWJO.js → loader.worker-CrU5fNbR.js} +1 -1
  7. package/dist/{needle-engine.bundle-DKSZcou6.umd.cjs → needle-engine.bundle-8cc_elhp.umd.cjs} +78 -78
  8. package/dist/{needle-engine.bundle--2AVZfsj.min.js → needle-engine.bundle-C0Hmw0lL.min.js} +86 -86
  9. package/dist/{needle-engine.bundle-jox-VaUx.js → needle-engine.bundle-e1rkwlcW.js} +1169 -1163
  10. package/dist/needle-engine.js +3 -3
  11. package/dist/needle-engine.min.js +1 -1
  12. package/dist/needle-engine.umd.cjs +1 -1
  13. package/dist/{postprocessing-DtxaELce.umd.cjs → postprocessing-BgC7XZwK.umd.cjs} +1 -1
  14. package/dist/{postprocessing-DElbMQgB.js → postprocessing-DddlM3CK.js} +1 -1
  15. package/dist/rapier--oeYP_h7.umd.cjs +1 -0
  16. package/dist/{rapier-CU5cp-KB.js → rapier-B3xpyPtq.js} +88 -88
  17. package/dist/{three-examples-CM6Iip03.js → three-examples-BIuXQPSf.js} +6 -6
  18. package/dist/{three-examples-BhQvv1B9.umd.cjs → three-examples-CNRuT27G.umd.cjs} +2 -2
  19. package/dist/{vendor-ClB-U1Hn.js → vendor-CGONwIc0.js} +73 -73
  20. package/dist/vendor-Cty8Dnri.umd.cjs +1121 -0
  21. package/lib/engine/engine_context.js +1 -1
  22. package/lib/engine/engine_context.js.map +1 -1
  23. package/lib/engine/engine_lightdata.js +2 -0
  24. package/lib/engine/engine_lightdata.js.map +1 -1
  25. package/lib/engine/engine_lods.d.ts +2 -0
  26. package/lib/engine/engine_lods.js +2 -0
  27. package/lib/engine/engine_lods.js.map +1 -1
  28. package/lib/engine/engine_utils_format.js +8 -2
  29. package/lib/engine/engine_utils_format.js.map +1 -1
  30. package/package.json +2 -2
  31. package/src/engine/engine_context.ts +1 -1
  32. package/src/engine/engine_lightdata.ts +2 -0
  33. package/src/engine/engine_lods.ts +4 -0
  34. package/src/engine/engine_utils_format.ts +9 -2
  35. package/dist/rapier-CUe6_xwE.umd.cjs +0 -1
  36. package/dist/vendor-bOWOWClg.umd.cjs +0 -1121
@@ -831,21 +831,21 @@ function Yr(n) {
831
831
  }
832
832
  var sn = { exports: {} }, Ms;
833
833
  function Ps() {
834
- return Ms || (Ms = 1, function(n) {
834
+ return Ms || (Ms = 1, (function(n) {
835
835
  var t = {};
836
- t.useBlobBuilder = function() {
836
+ t.useBlobBuilder = (function() {
837
837
  try {
838
838
  return new Blob([]), !1;
839
839
  } catch {
840
840
  return !0;
841
841
  }
842
- }(), t.useArrayBufferView = !t.useBlobBuilder && function() {
842
+ })(), t.useArrayBufferView = !t.useBlobBuilder && (function() {
843
843
  try {
844
844
  return new Blob([new Uint8Array([])]).size === 0;
845
845
  } catch {
846
846
  return !0;
847
847
  }
848
- }(), n.exports.binaryFeatures = t;
848
+ })(), n.exports.binaryFeatures = t;
849
849
  var e = n.exports.BlobBuilder;
850
850
  typeof window < "u" && (e = n.exports.BlobBuilder = window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder || window.BlobBuilder);
851
851
  function i() {
@@ -866,7 +866,7 @@ function Ps() {
866
866
  } else
867
867
  return new Blob(this._parts);
868
868
  }, n.exports.BufferBuilder = i;
869
- }(sn)), sn.exports;
869
+ })(sn)), sn.exports;
870
870
  }
871
871
  var on, ws;
872
872
  function Ka() {
@@ -1806,7 +1806,7 @@ function sc(n, t) {
1806
1806
  }
1807
1807
  var an = { exports: {} }, Os;
1808
1808
  function Xo() {
1809
- return Os || (Os = 1, function(n) {
1809
+ return Os || (Os = 1, (function(n) {
1810
1810
  var t = {};
1811
1811
  t.generateIdentifier = function() {
1812
1812
  return Math.random().toString(36).substr(2, 10);
@@ -2216,7 +2216,7 @@ t=0 0\r
2216
2216
  return !1;
2217
2217
  return !0;
2218
2218
  }, n.exports = t;
2219
- }(an)), an.exports;
2219
+ })(an)), an.exports;
2220
2220
  }
2221
2221
  var cn, Bs;
2222
2222
  function oc() {
@@ -3813,7 +3813,7 @@ var ln = (
3813
3813
  //@ts-ignore
3814
3814
  Fs.default || Fs
3815
3815
  ), ci = new /** @class */
3816
- (function() {
3816
+ ((function() {
3817
3817
  function n() {
3818
3818
  this.isIOS = [
3819
3819
  "iPad",
@@ -3856,7 +3856,7 @@ var ln = (
3856
3856
  isBrowserSupported:`).concat(this.isBrowserSupported(), `
3857
3857
  isUnifiedPlanSupported:`).concat(this.isUnifiedPlanSupported());
3858
3858
  }, n;
3859
- }())(), Ds = {
3859
+ })())(), Ds = {
3860
3860
  iceServers: [
3861
3861
  {
3862
3862
  urls: "stun:stun.l.google.com:19302"
@@ -3873,12 +3873,12 @@ var ln = (
3873
3873
  sdpSemantics: "unified-plan"
3874
3874
  }, dc = (
3875
3875
  /** @class */
3876
- function() {
3876
+ (function() {
3877
3877
  function n() {
3878
3878
  this.CLOUD_HOST = "0.peerjs.com", this.CLOUD_PORT = 443, this.chunkedBrowsers = {
3879
3879
  Chrome: 1,
3880
3880
  chrome: 1
3881
- }, this.chunkedMTU = 16300, this.defaultConfig = Ds, this.browser = ci.getBrowser(), this.browserVersion = ci.getVersion(), this.supports = function() {
3881
+ }, this.chunkedMTU = 16300, this.defaultConfig = Ds, this.browser = ci.getBrowser(), this.browserVersion = ci.getVersion(), this.supports = (function() {
3882
3882
  var t = {
3883
3883
  browser: ci.isBrowserSupported(),
3884
3884
  webRTC: ci.isWebRTCSupported(),
@@ -3909,7 +3909,7 @@ var ln = (
3909
3909
  e && e.close();
3910
3910
  }
3911
3911
  return t;
3912
- }(), this.pack = Es.pack, this.unpack = Es.unpack, this._dataCount = 1;
3912
+ })(), this.pack = Es.pack, this.unpack = Es.unpack, this._dataCount = 1;
3913
3913
  }
3914
3914
  return n.prototype.noop = function() {
3915
3915
  }, n.prototype.validateId = function(t) {
@@ -3938,7 +3938,7 @@ var ln = (
3938
3938
  }, n.prototype.isSecure = function() {
3939
3939
  return location.protocol === "https:";
3940
3940
  }, n;
3941
- }()
3941
+ })()
3942
3942
  ), D = new dc(), ya = {};
3943
3943
  te(ya, "Peer", () => Xn, (n) => Xn = n);
3944
3944
  var ar = {}, pc = Object.prototype.hasOwnProperty, _t = "~";
@@ -4085,7 +4085,7 @@ var we = function(n, t) {
4085
4085
  })(bt || (bt = {}));
4086
4086
  var gc = (
4087
4087
  /** @class */
4088
- function() {
4088
+ (function() {
4089
4089
  function n() {
4090
4090
  this._logLevel = bt.Disabled;
4091
4091
  }
@@ -4127,7 +4127,7 @@ var gc = (
4127
4127
  "ERROR"
4128
4128
  ], we(r), !1));
4129
4129
  }, n;
4130
- }()
4130
+ })()
4131
4131
  ), Ls = new gc(), va = {};
4132
4132
  te(va, "Socket", () => Vs, (n) => Vs = n);
4133
4133
  var Vt;
@@ -4152,7 +4152,7 @@ var ut;
4152
4152
  })(ut || (ut = {}));
4153
4153
  var us = {};
4154
4154
  us = JSON.parse('{"name":"peerjs","version":"1.4.7","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","types":"dist/types.d.ts","engines":{"node":">= 10"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"mocha -r ts-node/register -r jsdom-global/register test/**/*.ts","format":"prettier --write .","semantic-release":"semantic-release"},"devDependencies":{"@parcel/config-default":"^2.5.0","@parcel/packager-ts":"^2.5.0","@parcel/transformer-typescript-tsc":"^2.5.0","@parcel/transformer-typescript-types":"^2.5.0","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.18","chai":"^4.3.6","git-authors-cli":"^1.0.40","jsdom":"^19.0.0","jsdom-global":"^3.0.2","mocha":"^9.2.0","mock-socket":"8.0.5","parcel":"^2.5.0","parcel-transformer-tsc-sourcemaps":"^1.0.2","prettier":"^2.6.2","semantic-release":"^19.0.2","standard":"^16.0.4","ts-node":"^10.5.0","typescript":"^4.5.5"},"dependencies":{"@swc/helpers":"^0.3.13","eventemitter3":"^4.0.7","peerjs-js-binarypack":"1.0.1","webrtc-adapter":"^7.7.1"}}');
4155
- var vc = /* @__PURE__ */ function() {
4155
+ var vc = /* @__PURE__ */ (function() {
4156
4156
  var n = function(t, e) {
4157
4157
  return n = Object.setPrototypeOf || {
4158
4158
  __proto__: []
@@ -4170,7 +4170,7 @@ var vc = /* @__PURE__ */ function() {
4170
4170
  }
4171
4171
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
4172
4172
  };
4173
- }(), _c = function(n, t) {
4173
+ })(), _c = function(n, t) {
4174
4174
  var e = typeof Symbol == "function" && n[Symbol.iterator];
4175
4175
  if (!e) return n;
4176
4176
  var i = e.call(n), r, s = [], a;
@@ -4206,7 +4206,7 @@ var vc = /* @__PURE__ */ function() {
4206
4206
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4207
4207
  }, Vs = (
4208
4208
  /** @class */
4209
- function(n) {
4209
+ (function(n) {
4210
4210
  vc(t, n);
4211
4211
  function t(e, i, r, s, a, o) {
4212
4212
  o === void 0 && (o = 5e3);
@@ -4288,7 +4288,7 @@ var vc = /* @__PURE__ */ function() {
4288
4288
  }, t.prototype._cleanup = function() {
4289
4289
  this._socket && (this._socket.onopen = this._socket.onmessage = this._socket.onclose = null, this._socket.close(), this._socket = void 0), clearTimeout(this._wsPingTimer);
4290
4290
  }, t;
4291
- }(ar.EventEmitter)
4291
+ })(ar.EventEmitter)
4292
4292
  ), $n = {};
4293
4293
  te($n, "MediaConnection", () => js, (n) => js = n);
4294
4294
  var fs = {};
@@ -4414,7 +4414,7 @@ var Jr = function() {
4414
4414
  }
4415
4415
  }, Js = (
4416
4416
  /** @class */
4417
- function() {
4417
+ (function() {
4418
4418
  function n(t) {
4419
4419
  this.connection = t;
4420
4420
  }
@@ -4715,10 +4715,10 @@ var Jr = function() {
4715
4715
  }, n.prototype._addStreamToMediaConnection = function(t, e) {
4716
4716
  O.default.log("add stream ".concat(t.id, " to media connection ").concat(e.connectionId)), e.addStream(t);
4717
4717
  }, n;
4718
- }()
4718
+ })()
4719
4719
  ), ds = {};
4720
4720
  te(ds, "BaseConnection", () => Gs, (n) => Gs = n);
4721
- var bc = /* @__PURE__ */ function() {
4721
+ var bc = /* @__PURE__ */ (function() {
4722
4722
  var n = function(t, e) {
4723
4723
  return n = Object.setPrototypeOf || {
4724
4724
  __proto__: []
@@ -4736,9 +4736,9 @@ var bc = /* @__PURE__ */ function() {
4736
4736
  }
4737
4737
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
4738
4738
  };
4739
- }(), Gs = (
4739
+ })(), Gs = (
4740
4740
  /** @class */
4741
- function(n) {
4741
+ (function(n) {
4742
4742
  bc(t, n);
4743
4743
  function t(e, i, r) {
4744
4744
  var s = n.call(this) || this;
@@ -4751,8 +4751,8 @@ var bc = /* @__PURE__ */ function() {
4751
4751
  enumerable: !1,
4752
4752
  configurable: !0
4753
4753
  }), t;
4754
- }(ar.EventEmitter)
4755
- ), Tc = /* @__PURE__ */ function() {
4754
+ })(ar.EventEmitter)
4755
+ ), Tc = /* @__PURE__ */ (function() {
4756
4756
  var n = function(t, e) {
4757
4757
  return n = Object.setPrototypeOf || {
4758
4758
  __proto__: []
@@ -4770,7 +4770,7 @@ var bc = /* @__PURE__ */ function() {
4770
4770
  }
4771
4771
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
4772
4772
  };
4773
- }(), Gr = function() {
4773
+ })(), Gr = function() {
4774
4774
  return Gr = Object.assign || function(n) {
4775
4775
  for (var t, e = 1, i = arguments.length; e < i; e++) {
4776
4776
  t = arguments[e];
@@ -4792,7 +4792,7 @@ var bc = /* @__PURE__ */ function() {
4792
4792
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4793
4793
  }, js = (
4794
4794
  /** @class */
4795
- function(n) {
4795
+ (function(n) {
4796
4796
  Tc(t, n);
4797
4797
  function t(e, i, r) {
4798
4798
  var s = n.call(this, e, i, r) || this;
@@ -4864,12 +4864,12 @@ var bc = /* @__PURE__ */ function() {
4864
4864
  }, t.prototype.close = function() {
4865
4865
  this._negotiator && (this._negotiator.cleanup(), this._negotiator = null), this._localStream = null, this._remoteStream = null, this.provider && (this.provider._removeConnection(this), this.provider = null), this.options && this.options._stream && (this.options._stream = null), this.open && (this._open = !1, n.prototype.emit.call(this, "close"));
4866
4866
  }, t.ID_PREFIX = "mc_", t;
4867
- }(ds.BaseConnection)
4867
+ })(ds.BaseConnection)
4868
4868
  ), qn = {};
4869
4869
  te(qn, "DataConnection", () => qs, (n) => qs = n);
4870
4870
  var _a = {};
4871
4871
  te(_a, "EncodingQueue", () => $s, (n) => $s = n);
4872
- var Mc = /* @__PURE__ */ function() {
4872
+ var Mc = /* @__PURE__ */ (function() {
4873
4873
  var n = function(t, e) {
4874
4874
  return n = Object.setPrototypeOf || {
4875
4875
  __proto__: []
@@ -4887,9 +4887,9 @@ var Mc = /* @__PURE__ */ function() {
4887
4887
  }
4888
4888
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
4889
4889
  };
4890
- }(), $s = (
4890
+ })(), $s = (
4891
4891
  /** @class */
4892
- function(n) {
4892
+ (function(n) {
4893
4893
  Mc(t, n);
4894
4894
  function t() {
4895
4895
  var e = n.call(this) || this;
@@ -4924,8 +4924,8 @@ var Mc = /* @__PURE__ */ function() {
4924
4924
  }, t.prototype.doNextTask = function() {
4925
4925
  this.size !== 0 && (this.processing || (this._processing = !0, this.fileReader.readAsArrayBuffer(this.queue.shift())));
4926
4926
  }, t;
4927
- }(ar.EventEmitter)
4928
- ), Pc = /* @__PURE__ */ function() {
4927
+ })(ar.EventEmitter)
4928
+ ), Pc = /* @__PURE__ */ (function() {
4929
4929
  var n = function(t, e) {
4930
4930
  return n = Object.setPrototypeOf || {
4931
4931
  __proto__: []
@@ -4943,7 +4943,7 @@ var Mc = /* @__PURE__ */ function() {
4943
4943
  }
4944
4944
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
4945
4945
  };
4946
- }(), wc = function(n) {
4946
+ })(), wc = function(n) {
4947
4947
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], i = 0;
4948
4948
  if (e) return e.call(n);
4949
4949
  if (n && typeof n.length == "number") return {
@@ -4957,7 +4957,7 @@ var Mc = /* @__PURE__ */ function() {
4957
4957
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4958
4958
  }, qs = (
4959
4959
  /** @class */
4960
- function(n) {
4960
+ (function(n) {
4961
4961
  Pc(t, n);
4962
4962
  function t(e, i, r) {
4963
4963
  var s = n.call(this, e, i, r) || this;
@@ -5100,7 +5100,7 @@ var Mc = /* @__PURE__ */ function() {
5100
5100
  break;
5101
5101
  }
5102
5102
  }, t.ID_PREFIX = "dc_", t.MAX_BUFFERED_AMOUNT = 8388608, t;
5103
- }(ds.BaseConnection)
5103
+ })(ds.BaseConnection)
5104
5104
  ), xa = {};
5105
5105
  te(xa, "API", () => Hs, (n) => Hs = n);
5106
5106
  var Xs = function(n, t, e, i) {
@@ -5216,7 +5216,7 @@ var Xs = function(n, t, e, i) {
5216
5216
  }
5217
5217
  }, Hs = (
5218
5218
  /** @class */
5219
- function() {
5219
+ (function() {
5220
5220
  function n(t) {
5221
5221
  this._options = t;
5222
5222
  }
@@ -5289,8 +5289,8 @@ var Xs = function(n, t, e, i) {
5289
5289
  });
5290
5290
  });
5291
5291
  }, n;
5292
- }()
5293
- ), Ec = /* @__PURE__ */ function() {
5292
+ })()
5293
+ ), Ec = /* @__PURE__ */ (function() {
5294
5294
  var n = function(t, e) {
5295
5295
  return n = Object.setPrototypeOf || {
5296
5296
  __proto__: []
@@ -5308,7 +5308,7 @@ var Xs = function(n, t, e, i) {
5308
5308
  }
5309
5309
  t.prototype = e === null ? Object.create(e) : (i.prototype = e.prototype, new i());
5310
5310
  };
5311
- }(), Mi = function() {
5311
+ })(), Mi = function() {
5312
5312
  return Mi = Object.assign || function(n) {
5313
5313
  for (var t, e = 1, i = arguments.length; e < i; e++) {
5314
5314
  t = arguments[e];
@@ -5348,7 +5348,7 @@ var Xs = function(n, t, e, i) {
5348
5348
  return s;
5349
5349
  }, Xn = (
5350
5350
  /** @class */
5351
- function(n) {
5351
+ (function(n) {
5352
5352
  Ec(t, n);
5353
5353
  function t(e, i) {
5354
5354
  var r = n.call(this) || this;
@@ -5654,7 +5654,7 @@ var Xs = function(n, t, e, i) {
5654
5654
  return i._abort(K.ServerError, r);
5655
5655
  });
5656
5656
  }, t.DEFAULT_KEY = "peerjs", t;
5657
- }(ar.EventEmitter)
5657
+ })(ar.EventEmitter)
5658
5658
  ), Ac = ya.Peer;
5659
5659
  const _u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5660
5660
  __proto__: null,
@@ -5758,7 +5758,7 @@ function Lc(n) {
5758
5758
  const xu = Fc("v5", 80, Lc);
5759
5759
  var un = { exports: {} }, fn = { exports: {} }, Ys;
5760
5760
  function Vc() {
5761
- return Ys || (Ys = 1, function() {
5761
+ return Ys || (Ys = 1, (function() {
5762
5762
  var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = {
5763
5763
  // Bit-wise rotation left
5764
5764
  rotl: function(e, i) {
@@ -5822,7 +5822,7 @@ function Vc() {
5822
5822
  }
5823
5823
  };
5824
5824
  fn.exports = t;
5825
- }()), fn.exports;
5825
+ })()), fn.exports;
5826
5826
  }
5827
5827
  var dn, Zs;
5828
5828
  function Qs() {
@@ -5880,7 +5880,7 @@ function Jc() {
5880
5880
  }
5881
5881
  var to;
5882
5882
  function Gc() {
5883
- return to || (to = 1, function() {
5883
+ return to || (to = 1, (function() {
5884
5884
  var n = Vc(), t = Qs().utf8, e = Jc(), i = Qs().bin, r = function(s, a) {
5885
5885
  s.constructor == String ? a && a.encoding === "binary" ? s = i.stringToBytes(s) : s = t.stringToBytes(s) : e(s) ? s = Array.prototype.slice.call(s, 0) : !Array.isArray(s) && s.constructor !== Uint8Array && (s = s.toString());
5886
5886
  for (var o = n.bytesToWords(s), c = s.length * 8, l = 1732584193, h = -271733879, u = -1732584194, f = 271733878, d = 0; d < o.length; d++)
@@ -5910,7 +5910,7 @@ function Gc() {
5910
5910
  var o = n.wordsToBytes(r(s, a));
5911
5911
  return a && a.asBytes ? o : a && a.asString ? i.bytesToString(o) : n.bytesToHex(o);
5912
5912
  };
5913
- }()), un.exports;
5913
+ })()), un.exports;
5914
5914
  }
5915
5915
  var jc = Gc();
5916
5916
  const Su = /* @__PURE__ */ Yr(jc), ft = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
@@ -12393,7 +12393,7 @@ class ye {
12393
12393
  return this.min > t.max || t.min > this.max;
12394
12394
  }
12395
12395
  }
12396
- ye.prototype.setFromBox = function() {
12396
+ ye.prototype.setFromBox = (function() {
12397
12397
  const n = new N();
12398
12398
  return function(e, i) {
12399
12399
  const r = i.min, s = i.max;
@@ -12407,8 +12407,8 @@ ye.prototype.setFromBox = function() {
12407
12407
  }
12408
12408
  this.min = a, this.max = o;
12409
12409
  };
12410
- }();
12411
- const _h = function() {
12410
+ })();
12411
+ const _h = (function() {
12412
12412
  const n = new N(), t = new N(), e = new N();
12413
12413
  return function(r, s, a) {
12414
12414
  const o = r.start, c = n, l = s.start, h = t;
@@ -12417,7 +12417,7 @@ const _h = function() {
12417
12417
  let m, g;
12418
12418
  p !== 0 ? m = (u * f - y * d) / p : m = 0, g = (u + m * f) / d, a.x = m, a.y = g;
12419
12419
  };
12420
- }(), _s = function() {
12420
+ })(), _s = (function() {
12421
12421
  const n = new Ye(), t = new N(), e = new N();
12422
12422
  return function(r, s, a, o) {
12423
12423
  _h(r, s, n);
@@ -12446,7 +12446,7 @@ const _h = function() {
12446
12446
  }
12447
12447
  }
12448
12448
  };
12449
- }(), xh = function() {
12449
+ })(), xh = (function() {
12450
12450
  const n = new N(), t = new N(), e = new Ro(), i = new pe();
12451
12451
  return function(s, a) {
12452
12452
  const { radius: o, center: c } = s, { a: l, b: h, c: u } = a;
@@ -12458,7 +12458,7 @@ const _h = function() {
12458
12458
  }
12459
12459
  return !1;
12460
12460
  };
12461
- }(), Sh = 1e-15;
12461
+ })(), Sh = 1e-15;
12462
12462
  function wn(n) {
12463
12463
  return Math.abs(n) < Sh;
12464
12464
  }
@@ -12480,7 +12480,7 @@ class zt extends Ie {
12480
12480
  d.subVectors(i, t), y.setFromPoints(d, r), this.sphere.setFromPoints(this.points), this.plane.setFromNormalAndCoplanarPoint(o, t), this.needsUpdate = !1;
12481
12481
  }
12482
12482
  }
12483
- zt.prototype.closestPointToSegment = function() {
12483
+ zt.prototype.closestPointToSegment = (function() {
12484
12484
  const n = new N(), t = new N(), e = new pe();
12485
12485
  return function(r, s = null, a = null) {
12486
12486
  const { start: o, end: c } = r, l = this.points;
@@ -12491,8 +12491,8 @@ zt.prototype.closestPointToSegment = function() {
12491
12491
  }
12492
12492
  return this.closestPointToPoint(o, n), h = o.distanceToSquared(n), h < u && (u = h, s && s.copy(n), a && a.copy(o)), this.closestPointToPoint(c, n), h = c.distanceToSquared(n), h < u && (u = h, s && s.copy(n), a && a.copy(c)), Math.sqrt(u);
12493
12493
  };
12494
- }();
12495
- zt.prototype.intersectsTriangle = function() {
12494
+ })();
12495
+ zt.prototype.intersectsTriangle = (function() {
12496
12496
  const n = new zt(), t = new Array(3), e = new Array(3), i = new ye(), r = new ye(), s = new N(), a = new N(), o = new N(), c = new N(), l = new N(), h = new pe(), u = new pe(), f = new pe(), d = new N();
12497
12497
  function y(_, p, m) {
12498
12498
  const g = _.points;
@@ -12562,14 +12562,14 @@ zt.prototype.intersectsTriangle = function() {
12562
12562
  return T !== M && C !== P && E === w ? !1 : (m && (l.subVectors(u.start, f.start), l.dot(o) > 0 ? m.start.copy(u.start) : m.start.copy(f.start), l.subVectors(u.end, f.end), l.dot(o) < 0 ? m.end.copy(u.end) : m.end.copy(f.end)), !0);
12563
12563
  }
12564
12564
  };
12565
- }();
12566
- zt.prototype.distanceToPoint = function() {
12565
+ })();
12566
+ zt.prototype.distanceToPoint = (function() {
12567
12567
  const n = new N();
12568
12568
  return function(e) {
12569
12569
  return this.closestPointToPoint(e, n), e.distanceTo(n);
12570
12570
  };
12571
- }();
12572
- zt.prototype.distanceToTriangle = function() {
12571
+ })();
12572
+ zt.prototype.distanceToTriangle = (function() {
12573
12573
  const n = new N(), t = new N(), e = ["a", "b", "c"], i = new pe(), r = new pe();
12574
12574
  return function(a, o = null, c = null) {
12575
12575
  const l = o || c ? i : null;
@@ -12595,7 +12595,7 @@ zt.prototype.distanceToTriangle = function() {
12595
12595
  }
12596
12596
  return Math.sqrt(h);
12597
12597
  };
12598
- }();
12598
+ })();
12599
12599
  class pt {
12600
12600
  constructor(t, e, i) {
12601
12601
  this.isOrientedBox = !0, this.min = new N(), this.max = new N(), this.matrix = new Jt(), this.invMatrix = new Jt(), this.points = new Array(8).fill().map(() => new N()), this.satAxes = new Array(3).fill().map(() => new N()), this.satBounds = new Array(3).fill().map(() => new ye()), this.alignedSatBounds = new Array(3).fill().map(() => new ye()), this.needsUpdate = !1, t && this.min.copy(t), e && this.max.copy(e), i && this.matrix.copy(i);
@@ -12607,7 +12607,7 @@ class pt {
12607
12607
  this.min.copy(t.min), this.max.copy(t.max), this.matrix.copy(t.matrix), this.needsUpdate = !0;
12608
12608
  }
12609
12609
  }
12610
- pt.prototype.update = /* @__PURE__ */ function() {
12610
+ pt.prototype.update = /* @__PURE__ */ (function() {
12611
12611
  return function() {
12612
12612
  const t = this.matrix, e = this.min, i = this.max, r = this.points;
12613
12613
  for (let l = 0; l <= 1; l++)
@@ -12624,8 +12624,8 @@ pt.prototype.update = /* @__PURE__ */ function() {
12624
12624
  const c = this.alignedSatBounds;
12625
12625
  c[0].setFromPointsField(r, "x"), c[1].setFromPointsField(r, "y"), c[2].setFromPointsField(r, "z"), this.invMatrix.copy(this.matrix).invert(), this.needsUpdate = !1;
12626
12626
  };
12627
- }();
12628
- pt.prototype.intersectsBox = function() {
12627
+ })();
12628
+ pt.prototype.intersectsBox = (function() {
12629
12629
  const n = new ye();
12630
12630
  return function(e) {
12631
12631
  this.needsUpdate && this.update();
@@ -12637,8 +12637,8 @@ pt.prototype.intersectsBox = function() {
12637
12637
  }
12638
12638
  return !0;
12639
12639
  };
12640
- }();
12641
- pt.prototype.intersectsTriangle = function() {
12640
+ })();
12641
+ pt.prototype.intersectsTriangle = (function() {
12642
12642
  const n = new zt(), t = new Array(3), e = new ye(), i = new ye(), r = new N();
12643
12643
  return function(a) {
12644
12644
  this.needsUpdate && this.update(), a.isExtendedTriangle ? a.needsUpdate && a.update() : (n.copy(a), n.update(), a = n);
@@ -12662,19 +12662,19 @@ pt.prototype.intersectsTriangle = function() {
12662
12662
  }
12663
12663
  return !0;
12664
12664
  };
12665
- }();
12666
- pt.prototype.closestPointToPoint = /* @__PURE__ */ function() {
12665
+ })();
12666
+ pt.prototype.closestPointToPoint = /* @__PURE__ */ (function() {
12667
12667
  return function(t, e) {
12668
12668
  return this.needsUpdate && this.update(), e.copy(t).applyMatrix4(this.invMatrix).clamp(this.min, this.max).applyMatrix4(this.matrix), e;
12669
12669
  };
12670
- }();
12671
- pt.prototype.distanceToPoint = function() {
12670
+ })();
12671
+ pt.prototype.distanceToPoint = (function() {
12672
12672
  const n = new N();
12673
12673
  return function(e) {
12674
12674
  return this.closestPointToPoint(e, n), e.distanceTo(n);
12675
12675
  };
12676
- }();
12677
- pt.prototype.distanceToBox = function() {
12676
+ })();
12677
+ pt.prototype.distanceToBox = (function() {
12678
12678
  const n = ["x", "y", "z"], t = new Array(12).fill().map(() => new pe()), e = new Array(12).fill().map(() => new pe()), i = new N(), r = new N();
12679
12679
  return function(a, o = 0, c = null, l = null) {
12680
12680
  if (this.needsUpdate && this.update(), this.intersectsBox(a))
@@ -12717,7 +12717,7 @@ pt.prototype.distanceToBox = function() {
12717
12717
  }
12718
12718
  return Math.sqrt(y);
12719
12719
  };
12720
- }();
12720
+ })();
12721
12721
  class xs {
12722
12722
  constructor(t) {
12723
12723
  this._getNewPrimitive = t, this._primitives = [];