draco_decoder_nodejs.js 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828
  1. var $jscomp = $jscomp || {};
  2. $jscomp.scope = {};
  3. $jscomp.arrayIteratorImpl = function(k) {
  4. var n = 0;
  5. return function() {
  6. return n < k.length ? { done: false, value: k[n++] } : { done: true };
  7. };
  8. };
  9. $jscomp.arrayIterator = function(k) {
  10. return { next: $jscomp.arrayIteratorImpl(k) };
  11. };
  12. $jscomp.makeIterator = function(k) {
  13. var n = "undefined" != typeof Symbol && Symbol.iterator && k[Symbol.iterator];
  14. return n ? n.call(k) : $jscomp.arrayIterator(k);
  15. };
  16. $jscomp.ASSUME_ES5 = false;
  17. $jscomp.ASSUME_NO_NATIVE_MAP = false;
  18. $jscomp.ASSUME_NO_NATIVE_SET = false;
  19. $jscomp.SIMPLE_FROUND_POLYFILL = false;
  20. $jscomp.ISOLATE_POLYFILLS = false;
  21. $jscomp.FORCE_POLYFILL_PROMISE = false;
  22. $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = false;
  23. $jscomp.getGlobal = function(k) {
  24. k = ["object" == typeof globalThis && globalThis, k, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global];
  25. for (var n = 0; n < k.length; ++n) {
  26. var l = k[n];
  27. if (l && l.Math == Math)
  28. return l;
  29. }
  30. throw Error("Cannot find global object");
  31. };
  32. $jscomp.global = $jscomp.getGlobal(this);
  33. $jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(k, n, l) {
  34. if (k == Array.prototype || k == Object.prototype)
  35. return k;
  36. k[n] = l.value;
  37. return k;
  38. };
  39. $jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x");
  40. $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
  41. $jscomp.polyfills = {};
  42. $jscomp.propertyToPolyfillSymbol = {};
  43. $jscomp.POLYFILL_PREFIX = "$jscp$";
  44. var $jscomp$lookupPolyfilledValue = function(k, n) {
  45. var l = $jscomp.propertyToPolyfillSymbol[n];
  46. if (null == l)
  47. return k[n];
  48. l = k[l];
  49. return void 0 !== l ? l : k[n];
  50. };
  51. $jscomp.polyfill = function(k, n, l, p) {
  52. n && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(k, n, l, p) : $jscomp.polyfillUnisolated(k, n, l, p));
  53. };
  54. $jscomp.polyfillUnisolated = function(k, n, l, p) {
  55. l = $jscomp.global;
  56. k = k.split(".");
  57. for (p = 0; p < k.length - 1; p++) {
  58. var h = k[p];
  59. if (!(h in l))
  60. return;
  61. l = l[h];
  62. }
  63. k = k[k.length - 1];
  64. p = l[k];
  65. n = n(p);
  66. n != p && null != n && $jscomp.defineProperty(l, k, { configurable: true, writable: true, value: n });
  67. };
  68. $jscomp.polyfillIsolated = function(k, n, l, p) {
  69. var h = k.split(".");
  70. k = 1 === h.length;
  71. p = h[0];
  72. p = !k && p in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
  73. for (var A = 0; A < h.length - 1; A++) {
  74. var f = h[A];
  75. if (!(f in p))
  76. return;
  77. p = p[f];
  78. }
  79. h = h[h.length - 1];
  80. l = $jscomp.IS_SYMBOL_NATIVE && "es6" === l ? p[h] : null;
  81. n = n(l);
  82. null != n && (k ? $jscomp.defineProperty($jscomp.polyfills, h, { configurable: true, writable: true, value: n }) : n !== l && (void 0 === $jscomp.propertyToPolyfillSymbol[h] && (l = 1e9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[h] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(h) : $jscomp.POLYFILL_PREFIX + l + "$" + h), $jscomp.defineProperty(p, $jscomp.propertyToPolyfillSymbol[h], { configurable: true, writable: true, value: n })));
  83. };
  84. $jscomp.polyfill("Promise", function(k) {
  85. function n() {
  86. this.batch_ = null;
  87. }
  88. function l(f) {
  89. return f instanceof h ? f : new h(function(q, v) {
  90. q(f);
  91. });
  92. }
  93. if (k && (!($jscomp.FORCE_POLYFILL_PROMISE || $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION && "undefined" === typeof $jscomp.global.PromiseRejectionEvent) || !$jscomp.global.Promise || -1 === $jscomp.global.Promise.toString().indexOf("[native code]")))
  94. return k;
  95. n.prototype.asyncExecute = function(f) {
  96. if (null == this.batch_) {
  97. this.batch_ = [];
  98. var q = this;
  99. this.asyncExecuteFunction(function() {
  100. q.executeBatch_();
  101. });
  102. }
  103. this.batch_.push(f);
  104. };
  105. var p = $jscomp.global.setTimeout;
  106. n.prototype.asyncExecuteFunction = function(f) {
  107. p(f, 0);
  108. };
  109. n.prototype.executeBatch_ = function() {
  110. for (; this.batch_ && this.batch_.length; ) {
  111. var f = this.batch_;
  112. this.batch_ = [];
  113. for (var q = 0; q < f.length; ++q) {
  114. var v = f[q];
  115. f[q] = null;
  116. try {
  117. v();
  118. } catch (z) {
  119. this.asyncThrow_(z);
  120. }
  121. }
  122. }
  123. this.batch_ = null;
  124. };
  125. n.prototype.asyncThrow_ = function(f) {
  126. this.asyncExecuteFunction(function() {
  127. throw f;
  128. });
  129. };
  130. var h = function(f) {
  131. this.state_ = 0;
  132. this.result_ = void 0;
  133. this.onSettledCallbacks_ = [];
  134. this.isRejectionHandled_ = false;
  135. var q = this.createResolveAndReject_();
  136. try {
  137. f(q.resolve, q.reject);
  138. } catch (v) {
  139. q.reject(v);
  140. }
  141. };
  142. h.prototype.createResolveAndReject_ = function() {
  143. function f(z) {
  144. return function(O) {
  145. v || (v = true, z.call(q, O));
  146. };
  147. }
  148. var q = this, v = false;
  149. return { resolve: f(this.resolveTo_), reject: f(this.reject_) };
  150. };
  151. h.prototype.resolveTo_ = function(f) {
  152. if (f === this)
  153. this.reject_(new TypeError("A Promise cannot resolve to itself"));
  154. else if (f instanceof h)
  155. this.settleSameAsPromise_(f);
  156. else {
  157. a:
  158. switch (typeof f) {
  159. case "object":
  160. var q = null != f;
  161. break a;
  162. case "function":
  163. q = true;
  164. break a;
  165. default:
  166. q = false;
  167. }
  168. q ? this.resolveToNonPromiseObj_(f) : this.fulfill_(f);
  169. }
  170. };
  171. h.prototype.resolveToNonPromiseObj_ = function(f) {
  172. var q = void 0;
  173. try {
  174. q = f.then;
  175. } catch (v) {
  176. this.reject_(v);
  177. return;
  178. }
  179. "function" == typeof q ? this.settleSameAsThenable_(q, f) : this.fulfill_(f);
  180. };
  181. h.prototype.reject_ = function(f) {
  182. this.settle_(2, f);
  183. };
  184. h.prototype.fulfill_ = function(f) {
  185. this.settle_(1, f);
  186. };
  187. h.prototype.settle_ = function(f, q) {
  188. if (0 != this.state_)
  189. throw Error("Cannot settle(" + f + ", " + q + "): Promise already settled in state" + this.state_);
  190. this.state_ = f;
  191. this.result_ = q;
  192. 2 === this.state_ && this.scheduleUnhandledRejectionCheck_();
  193. this.executeOnSettledCallbacks_();
  194. };
  195. h.prototype.scheduleUnhandledRejectionCheck_ = function() {
  196. var f = this;
  197. p(function() {
  198. if (f.notifyUnhandledRejection_()) {
  199. var q = $jscomp.global.console;
  200. "undefined" !== typeof q && q.error(f.result_);
  201. }
  202. }, 1);
  203. };
  204. h.prototype.notifyUnhandledRejection_ = function() {
  205. if (this.isRejectionHandled_)
  206. return false;
  207. var f = $jscomp.global.CustomEvent, q = $jscomp.global.Event, v = $jscomp.global.dispatchEvent;
  208. if ("undefined" === typeof v)
  209. return true;
  210. "function" === typeof f ? f = new f("unhandledrejection", { cancelable: true }) : "function" === typeof q ? f = new q("unhandledrejection", { cancelable: true }) : (f = $jscomp.global.document.createEvent("CustomEvent"), f.initCustomEvent("unhandledrejection", false, true, f));
  211. f.promise = this;
  212. f.reason = this.result_;
  213. return v(f);
  214. };
  215. h.prototype.executeOnSettledCallbacks_ = function() {
  216. if (null != this.onSettledCallbacks_) {
  217. for (var f = 0; f < this.onSettledCallbacks_.length; ++f)
  218. A.asyncExecute(this.onSettledCallbacks_[f]);
  219. this.onSettledCallbacks_ = null;
  220. }
  221. };
  222. var A = new n();
  223. h.prototype.settleSameAsPromise_ = function(f) {
  224. var q = this.createResolveAndReject_();
  225. f.callWhenSettled_(q.resolve, q.reject);
  226. };
  227. h.prototype.settleSameAsThenable_ = function(f, q) {
  228. var v = this.createResolveAndReject_();
  229. try {
  230. f.call(q, v.resolve, v.reject);
  231. } catch (z) {
  232. v.reject(z);
  233. }
  234. };
  235. h.prototype.then = function(f, q) {
  236. function v(t, x) {
  237. return "function" == typeof t ? function(D) {
  238. try {
  239. z(t(D));
  240. } catch (R) {
  241. O(R);
  242. }
  243. } : x;
  244. }
  245. var z, O, ba = new h(function(t, x) {
  246. z = t;
  247. O = x;
  248. });
  249. this.callWhenSettled_(v(f, z), v(q, O));
  250. return ba;
  251. };
  252. h.prototype.catch = function(f) {
  253. return this.then(void 0, f);
  254. };
  255. h.prototype.callWhenSettled_ = function(f, q) {
  256. function v() {
  257. switch (z.state_) {
  258. case 1:
  259. f(z.result_);
  260. break;
  261. case 2:
  262. q(z.result_);
  263. break;
  264. default:
  265. throw Error("Unexpected state: " + z.state_);
  266. }
  267. }
  268. var z = this;
  269. null == this.onSettledCallbacks_ ? A.asyncExecute(v) : this.onSettledCallbacks_.push(v);
  270. this.isRejectionHandled_ = true;
  271. };
  272. h.resolve = l;
  273. h.reject = function(f) {
  274. return new h(function(q, v) {
  275. v(f);
  276. });
  277. };
  278. h.race = function(f) {
  279. return new h(function(q, v) {
  280. for (var z = $jscomp.makeIterator(f), O = z.next(); !O.done; O = z.next())
  281. l(O.value).callWhenSettled_(q, v);
  282. });
  283. };
  284. h.all = function(f) {
  285. var q = $jscomp.makeIterator(f), v = q.next();
  286. return v.done ? l([]) : new h(function(z, O) {
  287. function ba(D) {
  288. return function(R) {
  289. t[D] = R;
  290. x--;
  291. 0 == x && z(t);
  292. };
  293. }
  294. var t = [], x = 0;
  295. do
  296. t.push(void 0), x++, l(v.value).callWhenSettled_(ba(t.length - 1), O), v = q.next();
  297. while (!v.done);
  298. });
  299. };
  300. return h;
  301. }, "es6", "es3");
  302. $jscomp.owns = function(k, n) {
  303. return Object.prototype.hasOwnProperty.call(k, n);
  304. };
  305. $jscomp.assign = $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.assign ? Object.assign : function(k, n) {
  306. for (var l = 1; l < arguments.length; l++) {
  307. var p = arguments[l];
  308. if (p)
  309. for (var h in p)
  310. $jscomp.owns(p, h) && (k[h] = p[h]);
  311. }
  312. return k;
  313. };
  314. $jscomp.polyfill("Object.assign", function(k) {
  315. return k || $jscomp.assign;
  316. }, "es6", "es3");
  317. $jscomp.checkStringArgs = function(k, n, l) {
  318. if (null == k)
  319. throw new TypeError("The 'this' value for String.prototype." + l + " must not be null or undefined");
  320. if (n instanceof RegExp)
  321. throw new TypeError("First argument to String.prototype." + l + " must not be a regular expression");
  322. return k + "";
  323. };
  324. $jscomp.polyfill("String.prototype.startsWith", function(k) {
  325. return k ? k : function(n, l) {
  326. var p = $jscomp.checkStringArgs(this, n, "startsWith");
  327. n += "";
  328. var h = p.length, A = n.length;
  329. l = Math.max(0, Math.min(l | 0, p.length));
  330. for (var f = 0; f < A && l < h; )
  331. if (p[l++] != n[f++])
  332. return false;
  333. return f >= A;
  334. };
  335. }, "es6", "es3");
  336. $jscomp.polyfill("Array.prototype.copyWithin", function(k) {
  337. function n(l) {
  338. l = Number(l);
  339. return Infinity === l || -Infinity === l ? l : l | 0;
  340. }
  341. return k ? k : function(l, p, h) {
  342. var A = this.length;
  343. l = n(l);
  344. p = n(p);
  345. h = void 0 === h ? A : n(h);
  346. l = 0 > l ? Math.max(A + l, 0) : Math.min(l, A);
  347. p = 0 > p ? Math.max(A + p, 0) : Math.min(p, A);
  348. h = 0 > h ? Math.max(A + h, 0) : Math.min(h, A);
  349. if (l < p)
  350. for (; p < h; )
  351. p in this ? this[l++] = this[p++] : (delete this[l++], p++);
  352. else
  353. for (h = Math.min(h, A + p - l), l += h - p; h > p; )
  354. --h in this ? this[--l] = this[h] : delete this[--l];
  355. return this;
  356. };
  357. }, "es6", "es3");
  358. $jscomp.typedArrayCopyWithin = function(k) {
  359. return k ? k : Array.prototype.copyWithin;
  360. };
  361. $jscomp.polyfill("Int8Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  362. $jscomp.polyfill("Uint8Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  363. $jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  364. $jscomp.polyfill("Int16Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  365. $jscomp.polyfill("Uint16Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  366. $jscomp.polyfill("Int32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  367. $jscomp.polyfill("Uint32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  368. $jscomp.polyfill("Float32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  369. $jscomp.polyfill("Float64Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
  370. var DracoDecoderModule = function() {
  371. var k = "undefined" !== typeof document && document.currentScript ? document.currentScript.src : void 0;
  372. "undefined" !== typeof __filename && (k = k || __filename);
  373. return function(n) {
  374. function l(e) {
  375. return a.locateFile ? a.locateFile(e, U) : U + e;
  376. }
  377. function p(e, b, c) {
  378. var d = b + c;
  379. for (c = b; e[c] && !(c >= d); )
  380. ++c;
  381. if (16 < c - b && e.buffer && va)
  382. return va.decode(e.subarray(b, c));
  383. for (d = ""; b < c; ) {
  384. var g = e[b++];
  385. if (g & 128) {
  386. var u = e[b++] & 63;
  387. if (192 == (g & 224))
  388. d += String.fromCharCode((g & 31) << 6 | u);
  389. else {
  390. var X = e[b++] & 63;
  391. g = 224 == (g & 240) ? (g & 15) << 12 | u << 6 | X : (g & 7) << 18 | u << 12 | X << 6 | e[b++] & 63;
  392. 65536 > g ? d += String.fromCharCode(g) : (g -= 65536, d += String.fromCharCode(55296 | g >> 10, 56320 | g & 1023));
  393. }
  394. } else
  395. d += String.fromCharCode(g);
  396. }
  397. return d;
  398. }
  399. function h(e, b) {
  400. return e ? p(ea, e, b) : "";
  401. }
  402. function A() {
  403. var e = ja.buffer;
  404. a.HEAP8 = Y = new Int8Array(e);
  405. a.HEAP16 = new Int16Array(e);
  406. a.HEAP32 = ca = new Int32Array(e);
  407. a.HEAPU8 = ea = new Uint8Array(e);
  408. a.HEAPU16 = new Uint16Array(e);
  409. a.HEAPU32 = V = new Uint32Array(e);
  410. a.HEAPF32 = new Float32Array(e);
  411. a.HEAPF64 = new Float64Array(e);
  412. }
  413. function f(e) {
  414. if (a.onAbort)
  415. a.onAbort(e);
  416. e = "Aborted(" + e + ")";
  417. da(e);
  418. wa = true;
  419. e = new WebAssembly.RuntimeError(e + ". Build with -sASSERTIONS for more info.");
  420. ka(e);
  421. throw e;
  422. }
  423. function q(e) {
  424. try {
  425. if (e == P && fa)
  426. return new Uint8Array(fa);
  427. if (ma)
  428. return ma(e);
  429. throw "both async and sync fetching of the wasm failed";
  430. } catch (b) {
  431. f(b);
  432. }
  433. }
  434. function v() {
  435. if (!fa && (xa || ha)) {
  436. if ("function" == typeof fetch && !P.startsWith("file://"))
  437. return fetch(P, { credentials: "same-origin" }).then(function(e) {
  438. if (!e.ok)
  439. throw "failed to load wasm binary file at '" + P + "'";
  440. return e.arrayBuffer();
  441. }).catch(function() {
  442. return q(P);
  443. });
  444. if (na)
  445. return new Promise(function(e, b) {
  446. na(P, function(c) {
  447. e(new Uint8Array(c));
  448. }, b);
  449. });
  450. }
  451. return Promise.resolve().then(function() {
  452. return q(P);
  453. });
  454. }
  455. function z(e) {
  456. for (; 0 < e.length; )
  457. e.shift()(a);
  458. }
  459. function O(e) {
  460. this.excPtr = e;
  461. this.ptr = e - 24;
  462. this.set_type = function(b) {
  463. V[this.ptr + 4 >> 2] = b;
  464. };
  465. this.get_type = function() {
  466. return V[this.ptr + 4 >> 2];
  467. };
  468. this.set_destructor = function(b) {
  469. V[this.ptr + 8 >> 2] = b;
  470. };
  471. this.get_destructor = function() {
  472. return V[this.ptr + 8 >> 2];
  473. };
  474. this.set_refcount = function(b) {
  475. ca[this.ptr >> 2] = b;
  476. };
  477. this.set_caught = function(b) {
  478. Y[this.ptr + 12 >> 0] = b ? 1 : 0;
  479. };
  480. this.get_caught = function() {
  481. return 0 != Y[this.ptr + 12 >> 0];
  482. };
  483. this.set_rethrown = function(b) {
  484. Y[this.ptr + 13 >> 0] = b ? 1 : 0;
  485. };
  486. this.get_rethrown = function() {
  487. return 0 != Y[this.ptr + 13 >> 0];
  488. };
  489. this.init = function(b, c) {
  490. this.set_adjusted_ptr(0);
  491. this.set_type(b);
  492. this.set_destructor(c);
  493. this.set_refcount(0);
  494. this.set_caught(false);
  495. this.set_rethrown(false);
  496. };
  497. this.add_ref = function() {
  498. ca[this.ptr >> 2] += 1;
  499. };
  500. this.release_ref = function() {
  501. var b = ca[this.ptr >> 2];
  502. ca[this.ptr >> 2] = b - 1;
  503. return 1 === b;
  504. };
  505. this.set_adjusted_ptr = function(b) {
  506. V[this.ptr + 16 >> 2] = b;
  507. };
  508. this.get_adjusted_ptr = function() {
  509. return V[this.ptr + 16 >> 2];
  510. };
  511. this.get_exception_ptr = function() {
  512. if (ya(this.get_type()))
  513. return V[this.excPtr >> 2];
  514. var b = this.get_adjusted_ptr();
  515. return 0 !== b ? b : this.excPtr;
  516. };
  517. }
  518. function ba() {
  519. function e() {
  520. if (!la && (la = true, a.calledRun = true, !wa)) {
  521. za = true;
  522. z(oa);
  523. Aa(a);
  524. if (a.onRuntimeInitialized)
  525. a.onRuntimeInitialized();
  526. if (a.postRun)
  527. for ("function" == typeof a.postRun && (a.postRun = [a.postRun]); a.postRun.length; )
  528. Ba.unshift(a.postRun.shift());
  529. z(Ba);
  530. }
  531. }
  532. if (!(0 < aa)) {
  533. if (a.preRun)
  534. for ("function" == typeof a.preRun && (a.preRun = [a.preRun]); a.preRun.length; )
  535. Ca.unshift(a.preRun.shift());
  536. z(Ca);
  537. 0 < aa || (a.setStatus ? (a.setStatus("Running..."), setTimeout(function() {
  538. setTimeout(function() {
  539. a.setStatus("");
  540. }, 1);
  541. e();
  542. }, 1)) : e());
  543. }
  544. }
  545. function t() {
  546. }
  547. function x(e) {
  548. return (e || t).__cache__;
  549. }
  550. function D(e, b) {
  551. var c = x(b), d = c[e];
  552. if (d)
  553. return d;
  554. d = Object.create((b || t).prototype);
  555. d.ptr = e;
  556. return c[e] = d;
  557. }
  558. function R(e) {
  559. if ("string" === typeof e) {
  560. for (var b = 0, c = 0; c < e.length; ++c) {
  561. var d = e.charCodeAt(c);
  562. 127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
  563. }
  564. b = Array(b + 1);
  565. c = 0;
  566. d = b.length;
  567. if (0 < d) {
  568. d = c + d - 1;
  569. for (var g = 0; g < e.length; ++g) {
  570. var u = e.charCodeAt(g);
  571. if (55296 <= u && 57343 >= u) {
  572. var X = e.charCodeAt(++g);
  573. u = 65536 + ((u & 1023) << 10) | X & 1023;
  574. }
  575. if (127 >= u) {
  576. if (c >= d)
  577. break;
  578. b[c++] = u;
  579. } else {
  580. if (2047 >= u) {
  581. if (c + 1 >= d)
  582. break;
  583. b[c++] = 192 | u >> 6;
  584. } else {
  585. if (65535 >= u) {
  586. if (c + 2 >= d)
  587. break;
  588. b[c++] = 224 | u >> 12;
  589. } else {
  590. if (c + 3 >= d)
  591. break;
  592. b[c++] = 240 | u >> 18;
  593. b[c++] = 128 | u >> 12 & 63;
  594. }
  595. b[c++] = 128 | u >> 6 & 63;
  596. }
  597. b[c++] = 128 | u & 63;
  598. }
  599. }
  600. b[c] = 0;
  601. }
  602. e = r.alloc(b, Y);
  603. r.copy(b, Y, e);
  604. return e;
  605. }
  606. return e;
  607. }
  608. function pa(e) {
  609. if ("object" === typeof e) {
  610. var b = r.alloc(e, Y);
  611. r.copy(e, Y, b);
  612. return b;
  613. }
  614. return e;
  615. }
  616. function Z() {
  617. throw "cannot construct a VoidPtr, no constructor in IDL";
  618. }
  619. function S() {
  620. this.ptr = Da();
  621. x(S)[this.ptr] = this;
  622. }
  623. function Q() {
  624. this.ptr = Ea();
  625. x(Q)[this.ptr] = this;
  626. }
  627. function W() {
  628. this.ptr = Fa();
  629. x(W)[this.ptr] = this;
  630. }
  631. function w() {
  632. this.ptr = Ga();
  633. x(w)[this.ptr] = this;
  634. }
  635. function C() {
  636. this.ptr = Ha();
  637. x(C)[this.ptr] = this;
  638. }
  639. function F() {
  640. this.ptr = Ia();
  641. x(F)[this.ptr] = this;
  642. }
  643. function G() {
  644. this.ptr = Ja();
  645. x(G)[this.ptr] = this;
  646. }
  647. function E() {
  648. this.ptr = Ka();
  649. x(E)[this.ptr] = this;
  650. }
  651. function T() {
  652. this.ptr = La();
  653. x(T)[this.ptr] = this;
  654. }
  655. function B() {
  656. throw "cannot construct a Status, no constructor in IDL";
  657. }
  658. function H() {
  659. this.ptr = Ma();
  660. x(H)[this.ptr] = this;
  661. }
  662. function I() {
  663. this.ptr = Na();
  664. x(I)[this.ptr] = this;
  665. }
  666. function J() {
  667. this.ptr = Oa();
  668. x(J)[this.ptr] = this;
  669. }
  670. function K() {
  671. this.ptr = Pa();
  672. x(K)[this.ptr] = this;
  673. }
  674. function L() {
  675. this.ptr = Qa();
  676. x(L)[this.ptr] = this;
  677. }
  678. function M() {
  679. this.ptr = Ra();
  680. x(M)[this.ptr] = this;
  681. }
  682. function N() {
  683. this.ptr = Sa();
  684. x(N)[this.ptr] = this;
  685. }
  686. function y() {
  687. this.ptr = Ta();
  688. x(y)[this.ptr] = this;
  689. }
  690. function m() {
  691. this.ptr = Ua();
  692. x(m)[this.ptr] = this;
  693. }
  694. n = void 0 === n ? {} : n;
  695. var a = "undefined" != typeof n ? n : {}, Aa, ka;
  696. a.ready = new Promise(function(e, b) {
  697. Aa = e;
  698. ka = b;
  699. });
  700. var Va = false, Wa = false;
  701. a.onRuntimeInitialized = function() {
  702. Va = true;
  703. if (Wa && "function" === typeof a.onModuleLoaded)
  704. a.onModuleLoaded(a);
  705. };
  706. a.onModuleParsed = function() {
  707. Wa = true;
  708. if (Va && "function" === typeof a.onModuleLoaded)
  709. a.onModuleLoaded(a);
  710. };
  711. a.isVersionSupported = function(e) {
  712. if ("string" !== typeof e)
  713. return false;
  714. e = e.split(".");
  715. return 2 > e.length || 3 < e.length ? false : 1 == e[0] && 0 <= e[1] && 5 >= e[1] ? true : 0 != e[0] || 10 < e[1] ? false : true;
  716. };
  717. var Xa = Object.assign({}, a), xa = "object" == typeof window, ha = "function" == typeof importScripts, Ya = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, U = "";
  718. if (Ya) {
  719. var Za = require("fs"), qa = require("path");
  720. U = ha ? qa.dirname(U) + "/" : __dirname + "/";
  721. var $a = function(e, b) {
  722. e = e.startsWith("file://") ? new URL(e) : qa.normalize(e);
  723. return Za.readFileSync(e, b ? void 0 : "utf8");
  724. };
  725. var ma = function(e) {
  726. e = $a(e, true);
  727. e.buffer || (e = new Uint8Array(e));
  728. return e;
  729. };
  730. var na = function(e, b, c) {
  731. e = e.startsWith("file://") ? new URL(e) : qa.normalize(e);
  732. Za.readFile(e, function(d, g) {
  733. d ? c(d) : b(g.buffer);
  734. });
  735. };
  736. 1 < process.argv.length && process.argv[1].replace(/\\/g, "/");
  737. process.argv.slice(2);
  738. a.inspect = function() {
  739. return "[Emscripten Module object]";
  740. };
  741. } else if (xa || ha)
  742. ha ? U = self.location.href : "undefined" != typeof document && document.currentScript && (U = document.currentScript.src), k && (U = k), U = 0 !== U.indexOf("blob:") ? U.substr(0, U.replace(/[?#].*/, "").lastIndexOf("/") + 1) : "", $a = function(e) {
  743. var b = new XMLHttpRequest();
  744. b.open("GET", e, false);
  745. b.send(null);
  746. return b.responseText;
  747. }, ha && (ma = function(e) {
  748. var b = new XMLHttpRequest();
  749. b.open("GET", e, false);
  750. b.responseType = "arraybuffer";
  751. b.send(null);
  752. return new Uint8Array(b.response);
  753. }), na = function(e, b, c) {
  754. var d = new XMLHttpRequest();
  755. d.open("GET", e, true);
  756. d.responseType = "arraybuffer";
  757. d.onload = function() {
  758. 200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
  759. };
  760. d.onerror = c;
  761. d.send(null);
  762. };
  763. var ud = a.print || console.log.bind(console), da = a.printErr || console.warn.bind(console);
  764. Object.assign(a, Xa);
  765. Xa = null;
  766. var fa;
  767. a.wasmBinary && (fa = a.wasmBinary);
  768. "object" != typeof WebAssembly && f("no native wasm support detected");
  769. var ja, wa = false, va = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, Y, ea, ca, V, Ca = [], oa = [], Ba = [], za = false, aa = 0, ra = null, ia = null;
  770. var P = "draco_decoder.wasm";
  771. P.startsWith("data:application/octet-stream;base64,") || (P = l(P));
  772. var vd = 0, wd = [null, [], []], xd = { b: function(e, b, c) {
  773. new O(e).init(b, c);
  774. vd++;
  775. throw e;
  776. }, a: function() {
  777. f("");
  778. }, g: function(e, b, c) {
  779. ea.copyWithin(e, b, b + c);
  780. }, e: function(e) {
  781. var b = ea.length;
  782. e >>>= 0;
  783. if (2147483648 < e)
  784. return false;
  785. for (var c = 1; 4 >= c; c *= 2) {
  786. var d = b * (1 + 0.2 / c);
  787. d = Math.min(d, e + 100663296);
  788. var g = Math;
  789. d = Math.max(e, d);
  790. g = g.min.call(g, 2147483648, d + (65536 - d % 65536) % 65536);
  791. a: {
  792. d = ja.buffer;
  793. try {
  794. ja.grow(g - d.byteLength + 65535 >>> 16);
  795. A();
  796. var u = 1;
  797. break a;
  798. } catch (X) {
  799. }
  800. u = void 0;
  801. }
  802. if (u)
  803. return true;
  804. }
  805. return false;
  806. }, f: function(e) {
  807. return 52;
  808. }, d: function(e, b, c, d, g) {
  809. return 70;
  810. }, c: function(e, b, c, d) {
  811. for (var g = 0, u = 0; u < c; u++) {
  812. var X = V[b >> 2], ab = V[b + 4 >> 2];
  813. b += 8;
  814. for (var sa = 0; sa < ab; sa++) {
  815. var ta = ea[X + sa], ua = wd[e];
  816. 0 === ta || 10 === ta ? ((1 === e ? ud : da)(p(ua, 0)), ua.length = 0) : ua.push(ta);
  817. }
  818. g += ab;
  819. }
  820. V[d >> 2] = g;
  821. return 0;
  822. } };
  823. (function() {
  824. function e(g, u) {
  825. a.asm = g.exports;
  826. ja = a.asm.h;
  827. A();
  828. oa.unshift(a.asm.i);
  829. aa--;
  830. a.monitorRunDependencies && a.monitorRunDependencies(aa);
  831. 0 == aa && (null !== ra && (clearInterval(ra), ra = null), ia && (g = ia, ia = null, g()));
  832. }
  833. function b(g) {
  834. e(g.instance);
  835. }
  836. function c(g) {
  837. return v().then(function(u) {
  838. return WebAssembly.instantiate(u, d);
  839. }).then(function(u) {
  840. return u;
  841. }).then(g, function(u) {
  842. da("failed to asynchronously prepare wasm: " + u);
  843. f(u);
  844. });
  845. }
  846. var d = { a: xd };
  847. aa++;
  848. a.monitorRunDependencies && a.monitorRunDependencies(aa);
  849. if (a.instantiateWasm)
  850. try {
  851. return a.instantiateWasm(d, e);
  852. } catch (g) {
  853. da("Module.instantiateWasm callback failed with error: " + g), ka(g);
  854. }
  855. (function() {
  856. return fa || "function" != typeof WebAssembly.instantiateStreaming || P.startsWith("data:application/octet-stream;base64,") || P.startsWith("file://") || Ya || "function" != typeof fetch ? c(b) : fetch(P, { credentials: "same-origin" }).then(function(g) {
  857. return WebAssembly.instantiateStreaming(g, d).then(b, function(u) {
  858. da("wasm streaming compile failed: " + u);
  859. da("falling back to ArrayBuffer instantiation");
  860. return c(b);
  861. });
  862. });
  863. })().catch(ka);
  864. return {};
  865. })();
  866. var bb = a._emscripten_bind_VoidPtr___destroy___0 = function() {
  867. return (bb = a._emscripten_bind_VoidPtr___destroy___0 = a.asm.k).apply(null, arguments);
  868. }, Da = a._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = function() {
  869. return (Da = a._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = a.asm.l).apply(null, arguments);
  870. }, cb = a._emscripten_bind_DecoderBuffer_Init_2 = function() {
  871. return (cb = a._emscripten_bind_DecoderBuffer_Init_2 = a.asm.m).apply(null, arguments);
  872. }, db = a._emscripten_bind_DecoderBuffer___destroy___0 = function() {
  873. return (db = a._emscripten_bind_DecoderBuffer___destroy___0 = a.asm.n).apply(null, arguments);
  874. }, Ea = a._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = function() {
  875. return (Ea = a._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = a.asm.o).apply(null, arguments);
  876. }, eb = a._emscripten_bind_AttributeTransformData_transform_type_0 = function() {
  877. return (eb = a._emscripten_bind_AttributeTransformData_transform_type_0 = a.asm.p).apply(null, arguments);
  878. }, fb = a._emscripten_bind_AttributeTransformData___destroy___0 = function() {
  879. return (fb = a._emscripten_bind_AttributeTransformData___destroy___0 = a.asm.q).apply(null, arguments);
  880. }, Fa = a._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = function() {
  881. return (Fa = a._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = a.asm.r).apply(null, arguments);
  882. }, gb = a._emscripten_bind_GeometryAttribute___destroy___0 = function() {
  883. return (gb = a._emscripten_bind_GeometryAttribute___destroy___0 = a.asm.s).apply(null, arguments);
  884. }, Ga = a._emscripten_bind_PointAttribute_PointAttribute_0 = function() {
  885. return (Ga = a._emscripten_bind_PointAttribute_PointAttribute_0 = a.asm.t).apply(null, arguments);
  886. }, hb = a._emscripten_bind_PointAttribute_size_0 = function() {
  887. return (hb = a._emscripten_bind_PointAttribute_size_0 = a.asm.u).apply(null, arguments);
  888. }, ib = a._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = function() {
  889. return (ib = a._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = a.asm.v).apply(null, arguments);
  890. }, jb = a._emscripten_bind_PointAttribute_attribute_type_0 = function() {
  891. return (jb = a._emscripten_bind_PointAttribute_attribute_type_0 = a.asm.w).apply(null, arguments);
  892. }, kb = a._emscripten_bind_PointAttribute_data_type_0 = function() {
  893. return (kb = a._emscripten_bind_PointAttribute_data_type_0 = a.asm.x).apply(null, arguments);
  894. }, lb = a._emscripten_bind_PointAttribute_num_components_0 = function() {
  895. return (lb = a._emscripten_bind_PointAttribute_num_components_0 = a.asm.y).apply(null, arguments);
  896. }, mb = a._emscripten_bind_PointAttribute_normalized_0 = function() {
  897. return (mb = a._emscripten_bind_PointAttribute_normalized_0 = a.asm.z).apply(null, arguments);
  898. }, nb = a._emscripten_bind_PointAttribute_byte_stride_0 = function() {
  899. return (nb = a._emscripten_bind_PointAttribute_byte_stride_0 = a.asm.A).apply(null, arguments);
  900. }, ob = a._emscripten_bind_PointAttribute_byte_offset_0 = function() {
  901. return (ob = a._emscripten_bind_PointAttribute_byte_offset_0 = a.asm.B).apply(null, arguments);
  902. }, pb = a._emscripten_bind_PointAttribute_unique_id_0 = function() {
  903. return (pb = a._emscripten_bind_PointAttribute_unique_id_0 = a.asm.C).apply(null, arguments);
  904. }, qb = a._emscripten_bind_PointAttribute___destroy___0 = function() {
  905. return (qb = a._emscripten_bind_PointAttribute___destroy___0 = a.asm.D).apply(null, arguments);
  906. }, Ha = a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = function() {
  907. return (Ha = a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = a.asm.E).apply(null, arguments);
  908. }, rb = a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = function() {
  909. return (rb = a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = a.asm.F).apply(null, arguments);
  910. }, sb = a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = function() {
  911. return (sb = a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = a.asm.G).apply(null, arguments);
  912. }, tb = a._emscripten_bind_AttributeQuantizationTransform_min_value_1 = function() {
  913. return (tb = a._emscripten_bind_AttributeQuantizationTransform_min_value_1 = a.asm.H).apply(null, arguments);
  914. }, ub = a._emscripten_bind_AttributeQuantizationTransform_range_0 = function() {
  915. return (ub = a._emscripten_bind_AttributeQuantizationTransform_range_0 = a.asm.I).apply(null, arguments);
  916. }, vb = a._emscripten_bind_AttributeQuantizationTransform___destroy___0 = function() {
  917. return (vb = a._emscripten_bind_AttributeQuantizationTransform___destroy___0 = a.asm.J).apply(null, arguments);
  918. }, Ia = a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = function() {
  919. return (Ia = a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = a.asm.K).apply(null, arguments);
  920. }, wb = a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = function() {
  921. return (wb = a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = a.asm.L).apply(
  922. null,
  923. arguments
  924. );
  925. }, xb = a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = function() {
  926. return (xb = a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = a.asm.M).apply(null, arguments);
  927. }, yb = a._emscripten_bind_AttributeOctahedronTransform___destroy___0 = function() {
  928. return (yb = a._emscripten_bind_AttributeOctahedronTransform___destroy___0 = a.asm.N).apply(null, arguments);
  929. }, Ja = a._emscripten_bind_PointCloud_PointCloud_0 = function() {
  930. return (Ja = a._emscripten_bind_PointCloud_PointCloud_0 = a.asm.O).apply(
  931. null,
  932. arguments
  933. );
  934. }, zb = a._emscripten_bind_PointCloud_num_attributes_0 = function() {
  935. return (zb = a._emscripten_bind_PointCloud_num_attributes_0 = a.asm.P).apply(null, arguments);
  936. }, Ab = a._emscripten_bind_PointCloud_num_points_0 = function() {
  937. return (Ab = a._emscripten_bind_PointCloud_num_points_0 = a.asm.Q).apply(null, arguments);
  938. }, Bb = a._emscripten_bind_PointCloud___destroy___0 = function() {
  939. return (Bb = a._emscripten_bind_PointCloud___destroy___0 = a.asm.R).apply(null, arguments);
  940. }, Ka = a._emscripten_bind_Mesh_Mesh_0 = function() {
  941. return (Ka = a._emscripten_bind_Mesh_Mesh_0 = a.asm.S).apply(null, arguments);
  942. }, Cb = a._emscripten_bind_Mesh_num_faces_0 = function() {
  943. return (Cb = a._emscripten_bind_Mesh_num_faces_0 = a.asm.T).apply(null, arguments);
  944. }, Db = a._emscripten_bind_Mesh_num_attributes_0 = function() {
  945. return (Db = a._emscripten_bind_Mesh_num_attributes_0 = a.asm.U).apply(null, arguments);
  946. }, Eb = a._emscripten_bind_Mesh_num_points_0 = function() {
  947. return (Eb = a._emscripten_bind_Mesh_num_points_0 = a.asm.V).apply(null, arguments);
  948. }, Fb = a._emscripten_bind_Mesh___destroy___0 = function() {
  949. return (Fb = a._emscripten_bind_Mesh___destroy___0 = a.asm.W).apply(null, arguments);
  950. }, La = a._emscripten_bind_Metadata_Metadata_0 = function() {
  951. return (La = a._emscripten_bind_Metadata_Metadata_0 = a.asm.X).apply(null, arguments);
  952. }, Gb = a._emscripten_bind_Metadata___destroy___0 = function() {
  953. return (Gb = a._emscripten_bind_Metadata___destroy___0 = a.asm.Y).apply(null, arguments);
  954. }, Hb = a._emscripten_bind_Status_code_0 = function() {
  955. return (Hb = a._emscripten_bind_Status_code_0 = a.asm.Z).apply(null, arguments);
  956. }, Ib = a._emscripten_bind_Status_ok_0 = function() {
  957. return (Ib = a._emscripten_bind_Status_ok_0 = a.asm._).apply(null, arguments);
  958. }, Jb = a._emscripten_bind_Status_error_msg_0 = function() {
  959. return (Jb = a._emscripten_bind_Status_error_msg_0 = a.asm.$).apply(null, arguments);
  960. }, Kb = a._emscripten_bind_Status___destroy___0 = function() {
  961. return (Kb = a._emscripten_bind_Status___destroy___0 = a.asm.aa).apply(null, arguments);
  962. }, Ma = a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = function() {
  963. return (Ma = a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = a.asm.ba).apply(null, arguments);
  964. }, Lb = a._emscripten_bind_DracoFloat32Array_GetValue_1 = function() {
  965. return (Lb = a._emscripten_bind_DracoFloat32Array_GetValue_1 = a.asm.ca).apply(null, arguments);
  966. }, Mb = a._emscripten_bind_DracoFloat32Array_size_0 = function() {
  967. return (Mb = a._emscripten_bind_DracoFloat32Array_size_0 = a.asm.da).apply(null, arguments);
  968. }, Nb = a._emscripten_bind_DracoFloat32Array___destroy___0 = function() {
  969. return (Nb = a._emscripten_bind_DracoFloat32Array___destroy___0 = a.asm.ea).apply(null, arguments);
  970. }, Na = a._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = function() {
  971. return (Na = a._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = a.asm.fa).apply(null, arguments);
  972. }, Ob = a._emscripten_bind_DracoInt8Array_GetValue_1 = function() {
  973. return (Ob = a._emscripten_bind_DracoInt8Array_GetValue_1 = a.asm.ga).apply(null, arguments);
  974. }, Pb = a._emscripten_bind_DracoInt8Array_size_0 = function() {
  975. return (Pb = a._emscripten_bind_DracoInt8Array_size_0 = a.asm.ha).apply(null, arguments);
  976. }, Qb = a._emscripten_bind_DracoInt8Array___destroy___0 = function() {
  977. return (Qb = a._emscripten_bind_DracoInt8Array___destroy___0 = a.asm.ia).apply(null, arguments);
  978. }, Oa = a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = function() {
  979. return (Oa = a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = a.asm.ja).apply(null, arguments);
  980. }, Rb = a._emscripten_bind_DracoUInt8Array_GetValue_1 = function() {
  981. return (Rb = a._emscripten_bind_DracoUInt8Array_GetValue_1 = a.asm.ka).apply(null, arguments);
  982. }, Sb = a._emscripten_bind_DracoUInt8Array_size_0 = function() {
  983. return (Sb = a._emscripten_bind_DracoUInt8Array_size_0 = a.asm.la).apply(null, arguments);
  984. }, Tb = a._emscripten_bind_DracoUInt8Array___destroy___0 = function() {
  985. return (Tb = a._emscripten_bind_DracoUInt8Array___destroy___0 = a.asm.ma).apply(null, arguments);
  986. }, Pa = a._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = function() {
  987. return (Pa = a._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = a.asm.na).apply(null, arguments);
  988. }, Ub = a._emscripten_bind_DracoInt16Array_GetValue_1 = function() {
  989. return (Ub = a._emscripten_bind_DracoInt16Array_GetValue_1 = a.asm.oa).apply(null, arguments);
  990. }, Vb = a._emscripten_bind_DracoInt16Array_size_0 = function() {
  991. return (Vb = a._emscripten_bind_DracoInt16Array_size_0 = a.asm.pa).apply(null, arguments);
  992. }, Wb = a._emscripten_bind_DracoInt16Array___destroy___0 = function() {
  993. return (Wb = a._emscripten_bind_DracoInt16Array___destroy___0 = a.asm.qa).apply(null, arguments);
  994. }, Qa = a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = function() {
  995. return (Qa = a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = a.asm.ra).apply(null, arguments);
  996. }, Xb = a._emscripten_bind_DracoUInt16Array_GetValue_1 = function() {
  997. return (Xb = a._emscripten_bind_DracoUInt16Array_GetValue_1 = a.asm.sa).apply(null, arguments);
  998. }, Yb = a._emscripten_bind_DracoUInt16Array_size_0 = function() {
  999. return (Yb = a._emscripten_bind_DracoUInt16Array_size_0 = a.asm.ta).apply(null, arguments);
  1000. }, Zb = a._emscripten_bind_DracoUInt16Array___destroy___0 = function() {
  1001. return (Zb = a._emscripten_bind_DracoUInt16Array___destroy___0 = a.asm.ua).apply(null, arguments);
  1002. }, Ra = a._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = function() {
  1003. return (Ra = a._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = a.asm.va).apply(null, arguments);
  1004. }, $b = a._emscripten_bind_DracoInt32Array_GetValue_1 = function() {
  1005. return ($b = a._emscripten_bind_DracoInt32Array_GetValue_1 = a.asm.wa).apply(null, arguments);
  1006. }, ac = a._emscripten_bind_DracoInt32Array_size_0 = function() {
  1007. return (ac = a._emscripten_bind_DracoInt32Array_size_0 = a.asm.xa).apply(null, arguments);
  1008. }, bc = a._emscripten_bind_DracoInt32Array___destroy___0 = function() {
  1009. return (bc = a._emscripten_bind_DracoInt32Array___destroy___0 = a.asm.ya).apply(null, arguments);
  1010. }, Sa = a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = function() {
  1011. return (Sa = a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = a.asm.za).apply(null, arguments);
  1012. }, cc = a._emscripten_bind_DracoUInt32Array_GetValue_1 = function() {
  1013. return (cc = a._emscripten_bind_DracoUInt32Array_GetValue_1 = a.asm.Aa).apply(null, arguments);
  1014. }, dc = a._emscripten_bind_DracoUInt32Array_size_0 = function() {
  1015. return (dc = a._emscripten_bind_DracoUInt32Array_size_0 = a.asm.Ba).apply(null, arguments);
  1016. }, ec = a._emscripten_bind_DracoUInt32Array___destroy___0 = function() {
  1017. return (ec = a._emscripten_bind_DracoUInt32Array___destroy___0 = a.asm.Ca).apply(null, arguments);
  1018. }, Ta = a._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = function() {
  1019. return (Ta = a._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = a.asm.Da).apply(null, arguments);
  1020. }, fc = a._emscripten_bind_MetadataQuerier_HasEntry_2 = function() {
  1021. return (fc = a._emscripten_bind_MetadataQuerier_HasEntry_2 = a.asm.Ea).apply(null, arguments);
  1022. }, gc = a._emscripten_bind_MetadataQuerier_GetIntEntry_2 = function() {
  1023. return (gc = a._emscripten_bind_MetadataQuerier_GetIntEntry_2 = a.asm.Fa).apply(null, arguments);
  1024. }, hc = a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = function() {
  1025. return (hc = a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = a.asm.Ga).apply(null, arguments);
  1026. }, ic = a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = function() {
  1027. return (ic = a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = a.asm.Ha).apply(null, arguments);
  1028. }, jc = a._emscripten_bind_MetadataQuerier_GetStringEntry_2 = function() {
  1029. return (jc = a._emscripten_bind_MetadataQuerier_GetStringEntry_2 = a.asm.Ia).apply(null, arguments);
  1030. }, kc = a._emscripten_bind_MetadataQuerier_NumEntries_1 = function() {
  1031. return (kc = a._emscripten_bind_MetadataQuerier_NumEntries_1 = a.asm.Ja).apply(null, arguments);
  1032. }, lc = a._emscripten_bind_MetadataQuerier_GetEntryName_2 = function() {
  1033. return (lc = a._emscripten_bind_MetadataQuerier_GetEntryName_2 = a.asm.Ka).apply(null, arguments);
  1034. }, mc = a._emscripten_bind_MetadataQuerier___destroy___0 = function() {
  1035. return (mc = a._emscripten_bind_MetadataQuerier___destroy___0 = a.asm.La).apply(null, arguments);
  1036. }, Ua = a._emscripten_bind_Decoder_Decoder_0 = function() {
  1037. return (Ua = a._emscripten_bind_Decoder_Decoder_0 = a.asm.Ma).apply(null, arguments);
  1038. }, nc = a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3 = function() {
  1039. return (nc = a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3 = a.asm.Na).apply(null, arguments);
  1040. }, oc = a._emscripten_bind_Decoder_DecodeArrayToMesh_3 = function() {
  1041. return (oc = a._emscripten_bind_Decoder_DecodeArrayToMesh_3 = a.asm.Oa).apply(null, arguments);
  1042. }, pc = a._emscripten_bind_Decoder_GetAttributeId_2 = function() {
  1043. return (pc = a._emscripten_bind_Decoder_GetAttributeId_2 = a.asm.Pa).apply(null, arguments);
  1044. }, qc = a._emscripten_bind_Decoder_GetAttributeIdByName_2 = function() {
  1045. return (qc = a._emscripten_bind_Decoder_GetAttributeIdByName_2 = a.asm.Qa).apply(null, arguments);
  1046. }, rc = a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = function() {
  1047. return (rc = a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = a.asm.Ra).apply(null, arguments);
  1048. }, sc = a._emscripten_bind_Decoder_GetAttribute_2 = function() {
  1049. return (sc = a._emscripten_bind_Decoder_GetAttribute_2 = a.asm.Sa).apply(null, arguments);
  1050. }, tc = a._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = function() {
  1051. return (tc = a._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = a.asm.Ta).apply(null, arguments);
  1052. }, uc = a._emscripten_bind_Decoder_GetMetadata_1 = function() {
  1053. return (uc = a._emscripten_bind_Decoder_GetMetadata_1 = a.asm.Ua).apply(null, arguments);
  1054. }, vc = a._emscripten_bind_Decoder_GetAttributeMetadata_2 = function() {
  1055. return (vc = a._emscripten_bind_Decoder_GetAttributeMetadata_2 = a.asm.Va).apply(null, arguments);
  1056. }, wc = a._emscripten_bind_Decoder_GetFaceFromMesh_3 = function() {
  1057. return (wc = a._emscripten_bind_Decoder_GetFaceFromMesh_3 = a.asm.Wa).apply(null, arguments);
  1058. }, xc = a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = function() {
  1059. return (xc = a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = a.asm.Xa).apply(null, arguments);
  1060. }, yc = a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = function() {
  1061. return (yc = a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = a.asm.Ya).apply(null, arguments);
  1062. }, zc = a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = function() {
  1063. return (zc = a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = a.asm.Za).apply(null, arguments);
  1064. }, Ac = a._emscripten_bind_Decoder_GetAttributeFloat_3 = function() {
  1065. return (Ac = a._emscripten_bind_Decoder_GetAttributeFloat_3 = a.asm._a).apply(null, arguments);
  1066. }, Bc = a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = function() {
  1067. return (Bc = a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = a.asm.$a).apply(null, arguments);
  1068. }, Cc = a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = function() {
  1069. return (Cc = a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = a.asm.ab).apply(null, arguments);
  1070. }, Dc = a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = function() {
  1071. return (Dc = a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = a.asm.bb).apply(null, arguments);
  1072. }, Ec = a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = function() {
  1073. return (Ec = a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = a.asm.cb).apply(null, arguments);
  1074. }, Fc = a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = function() {
  1075. return (Fc = a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = a.asm.db).apply(null, arguments);
  1076. }, Gc = a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = function() {
  1077. return (Gc = a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = a.asm.eb).apply(null, arguments);
  1078. }, Hc = a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = function() {
  1079. return (Hc = a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = a.asm.fb).apply(null, arguments);
  1080. }, Ic = a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = function() {
  1081. return (Ic = a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = a.asm.gb).apply(null, arguments);
  1082. }, Jc = a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5 = function() {
  1083. return (Jc = a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5 = a.asm.hb).apply(null, arguments);
  1084. }, Kc = a._emscripten_bind_Decoder_SkipAttributeTransform_1 = function() {
  1085. return (Kc = a._emscripten_bind_Decoder_SkipAttributeTransform_1 = a.asm.ib).apply(null, arguments);
  1086. }, Lc = a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1 = function() {
  1087. return (Lc = a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1 = a.asm.jb).apply(null, arguments);
  1088. }, Mc = a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = function() {
  1089. return (Mc = a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = a.asm.kb).apply(null, arguments);
  1090. }, Nc = a._emscripten_bind_Decoder_DecodeBufferToMesh_2 = function() {
  1091. return (Nc = a._emscripten_bind_Decoder_DecodeBufferToMesh_2 = a.asm.lb).apply(null, arguments);
  1092. }, Oc = a._emscripten_bind_Decoder___destroy___0 = function() {
  1093. return (Oc = a._emscripten_bind_Decoder___destroy___0 = a.asm.mb).apply(null, arguments);
  1094. }, Pc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = function() {
  1095. return (Pc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = a.asm.nb).apply(null, arguments);
  1096. }, Qc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = function() {
  1097. return (Qc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = a.asm.ob).apply(null, arguments);
  1098. }, Rc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = function() {
  1099. return (Rc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = a.asm.pb).apply(null, arguments);
  1100. }, Sc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = function() {
  1101. return (Sc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = a.asm.qb).apply(null, arguments);
  1102. }, Tc = a._emscripten_enum_draco_GeometryAttribute_Type_INVALID = function() {
  1103. return (Tc = a._emscripten_enum_draco_GeometryAttribute_Type_INVALID = a.asm.rb).apply(null, arguments);
  1104. }, Uc = a._emscripten_enum_draco_GeometryAttribute_Type_POSITION = function() {
  1105. return (Uc = a._emscripten_enum_draco_GeometryAttribute_Type_POSITION = a.asm.sb).apply(null, arguments);
  1106. }, Vc = a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = function() {
  1107. return (Vc = a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = a.asm.tb).apply(null, arguments);
  1108. }, Wc = a._emscripten_enum_draco_GeometryAttribute_Type_COLOR = function() {
  1109. return (Wc = a._emscripten_enum_draco_GeometryAttribute_Type_COLOR = a.asm.ub).apply(null, arguments);
  1110. }, Xc = a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = function() {
  1111. return (Xc = a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = a.asm.vb).apply(null, arguments);
  1112. }, Yc = a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = function() {
  1113. return (Yc = a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = a.asm.wb).apply(null, arguments);
  1114. }, Zc = a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = function() {
  1115. return (Zc = a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = a.asm.xb).apply(null, arguments);
  1116. }, $c = a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = function() {
  1117. return ($c = a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = a.asm.yb).apply(null, arguments);
  1118. }, ad = a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = function() {
  1119. return (ad = a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = a.asm.zb).apply(null, arguments);
  1120. }, bd = a._emscripten_enum_draco_DataType_DT_INVALID = function() {
  1121. return (bd = a._emscripten_enum_draco_DataType_DT_INVALID = a.asm.Ab).apply(null, arguments);
  1122. }, cd = a._emscripten_enum_draco_DataType_DT_INT8 = function() {
  1123. return (cd = a._emscripten_enum_draco_DataType_DT_INT8 = a.asm.Bb).apply(null, arguments);
  1124. }, dd = a._emscripten_enum_draco_DataType_DT_UINT8 = function() {
  1125. return (dd = a._emscripten_enum_draco_DataType_DT_UINT8 = a.asm.Cb).apply(null, arguments);
  1126. }, ed = a._emscripten_enum_draco_DataType_DT_INT16 = function() {
  1127. return (ed = a._emscripten_enum_draco_DataType_DT_INT16 = a.asm.Db).apply(null, arguments);
  1128. }, fd = a._emscripten_enum_draco_DataType_DT_UINT16 = function() {
  1129. return (fd = a._emscripten_enum_draco_DataType_DT_UINT16 = a.asm.Eb).apply(null, arguments);
  1130. }, gd = a._emscripten_enum_draco_DataType_DT_INT32 = function() {
  1131. return (gd = a._emscripten_enum_draco_DataType_DT_INT32 = a.asm.Fb).apply(null, arguments);
  1132. }, hd = a._emscripten_enum_draco_DataType_DT_UINT32 = function() {
  1133. return (hd = a._emscripten_enum_draco_DataType_DT_UINT32 = a.asm.Gb).apply(null, arguments);
  1134. }, id = a._emscripten_enum_draco_DataType_DT_INT64 = function() {
  1135. return (id = a._emscripten_enum_draco_DataType_DT_INT64 = a.asm.Hb).apply(null, arguments);
  1136. }, jd = a._emscripten_enum_draco_DataType_DT_UINT64 = function() {
  1137. return (jd = a._emscripten_enum_draco_DataType_DT_UINT64 = a.asm.Ib).apply(null, arguments);
  1138. }, kd = a._emscripten_enum_draco_DataType_DT_FLOAT32 = function() {
  1139. return (kd = a._emscripten_enum_draco_DataType_DT_FLOAT32 = a.asm.Jb).apply(
  1140. null,
  1141. arguments
  1142. );
  1143. }, ld = a._emscripten_enum_draco_DataType_DT_FLOAT64 = function() {
  1144. return (ld = a._emscripten_enum_draco_DataType_DT_FLOAT64 = a.asm.Kb).apply(null, arguments);
  1145. }, md = a._emscripten_enum_draco_DataType_DT_BOOL = function() {
  1146. return (md = a._emscripten_enum_draco_DataType_DT_BOOL = a.asm.Lb).apply(null, arguments);
  1147. }, nd = a._emscripten_enum_draco_DataType_DT_TYPES_COUNT = function() {
  1148. return (nd = a._emscripten_enum_draco_DataType_DT_TYPES_COUNT = a.asm.Mb).apply(null, arguments);
  1149. }, od = a._emscripten_enum_draco_StatusCode_OK = function() {
  1150. return (od = a._emscripten_enum_draco_StatusCode_OK = a.asm.Nb).apply(null, arguments);
  1151. }, pd = a._emscripten_enum_draco_StatusCode_DRACO_ERROR = function() {
  1152. return (pd = a._emscripten_enum_draco_StatusCode_DRACO_ERROR = a.asm.Ob).apply(null, arguments);
  1153. }, qd = a._emscripten_enum_draco_StatusCode_IO_ERROR = function() {
  1154. return (qd = a._emscripten_enum_draco_StatusCode_IO_ERROR = a.asm.Pb).apply(null, arguments);
  1155. }, rd = a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = function() {
  1156. return (rd = a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = a.asm.Qb).apply(null, arguments);
  1157. }, sd = a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = function() {
  1158. return (sd = a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = a.asm.Rb).apply(null, arguments);
  1159. }, td = a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = function() {
  1160. return (td = a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = a.asm.Sb).apply(null, arguments);
  1161. };
  1162. a._malloc = function() {
  1163. return (a._malloc = a.asm.Tb).apply(null, arguments);
  1164. };
  1165. a._free = function() {
  1166. return (a._free = a.asm.Ub).apply(null, arguments);
  1167. };
  1168. var ya = function() {
  1169. return (ya = a.asm.Vb).apply(null, arguments);
  1170. };
  1171. a.___start_em_js = 15856;
  1172. a.___stop_em_js = 15954;
  1173. var la;
  1174. ia = function b() {
  1175. la || ba();
  1176. la || (ia = b);
  1177. };
  1178. if (a.preInit)
  1179. for ("function" == typeof a.preInit && (a.preInit = [a.preInit]); 0 < a.preInit.length; )
  1180. a.preInit.pop()();
  1181. ba();
  1182. t.prototype = Object.create(t.prototype);
  1183. t.prototype.constructor = t;
  1184. t.prototype.__class__ = t;
  1185. t.__cache__ = {};
  1186. a.WrapperObject = t;
  1187. a.getCache = x;
  1188. a.wrapPointer = D;
  1189. a.castObject = function(b, c) {
  1190. return D(b.ptr, c);
  1191. };
  1192. a.NULL = D(0);
  1193. a.destroy = function(b) {
  1194. if (!b.__destroy__)
  1195. throw "Error: Cannot destroy object. (Did you create it yourself?)";
  1196. b.__destroy__();
  1197. delete x(b.__class__)[b.ptr];
  1198. };
  1199. a.compare = function(b, c) {
  1200. return b.ptr === c.ptr;
  1201. };
  1202. a.getPointer = function(b) {
  1203. return b.ptr;
  1204. };
  1205. a.getClass = function(b) {
  1206. return b.__class__;
  1207. };
  1208. var r = { buffer: 0, size: 0, pos: 0, temps: [], needed: 0, prepare: function() {
  1209. if (r.needed) {
  1210. for (var b = 0; b < r.temps.length; b++)
  1211. a._free(r.temps[b]);
  1212. r.temps.length = 0;
  1213. a._free(r.buffer);
  1214. r.buffer = 0;
  1215. r.size += r.needed;
  1216. r.needed = 0;
  1217. }
  1218. r.buffer || (r.size += 128, r.buffer = a._malloc(r.size), r.buffer || f(void 0));
  1219. r.pos = 0;
  1220. }, alloc: function(b, c) {
  1221. r.buffer || f(void 0);
  1222. b = b.length * c.BYTES_PER_ELEMENT;
  1223. b = b + 7 & -8;
  1224. r.pos + b >= r.size ? (0 < b || f(void 0), r.needed += b, c = a._malloc(b), r.temps.push(c)) : (c = r.buffer + r.pos, r.pos += b);
  1225. return c;
  1226. }, copy: function(b, c, d) {
  1227. d >>>= 0;
  1228. switch (c.BYTES_PER_ELEMENT) {
  1229. case 2:
  1230. d >>>= 1;
  1231. break;
  1232. case 4:
  1233. d >>>= 2;
  1234. break;
  1235. case 8:
  1236. d >>>= 3;
  1237. }
  1238. for (var g = 0; g < b.length; g++)
  1239. c[d + g] = b[g];
  1240. } };
  1241. Z.prototype = Object.create(t.prototype);
  1242. Z.prototype.constructor = Z;
  1243. Z.prototype.__class__ = Z;
  1244. Z.__cache__ = {};
  1245. a.VoidPtr = Z;
  1246. Z.prototype.__destroy__ = Z.prototype.__destroy__ = function() {
  1247. bb(this.ptr);
  1248. };
  1249. S.prototype = Object.create(t.prototype);
  1250. S.prototype.constructor = S;
  1251. S.prototype.__class__ = S;
  1252. S.__cache__ = {};
  1253. a.DecoderBuffer = S;
  1254. S.prototype.Init = S.prototype.Init = function(b, c) {
  1255. var d = this.ptr;
  1256. r.prepare();
  1257. "object" == typeof b && (b = pa(b));
  1258. c && "object" === typeof c && (c = c.ptr);
  1259. cb(d, b, c);
  1260. };
  1261. S.prototype.__destroy__ = S.prototype.__destroy__ = function() {
  1262. db(this.ptr);
  1263. };
  1264. Q.prototype = Object.create(t.prototype);
  1265. Q.prototype.constructor = Q;
  1266. Q.prototype.__class__ = Q;
  1267. Q.__cache__ = {};
  1268. a.AttributeTransformData = Q;
  1269. Q.prototype.transform_type = Q.prototype.transform_type = function() {
  1270. return eb(this.ptr);
  1271. };
  1272. Q.prototype.__destroy__ = Q.prototype.__destroy__ = function() {
  1273. fb(this.ptr);
  1274. };
  1275. W.prototype = Object.create(t.prototype);
  1276. W.prototype.constructor = W;
  1277. W.prototype.__class__ = W;
  1278. W.__cache__ = {};
  1279. a.GeometryAttribute = W;
  1280. W.prototype.__destroy__ = W.prototype.__destroy__ = function() {
  1281. gb(this.ptr);
  1282. };
  1283. w.prototype = Object.create(t.prototype);
  1284. w.prototype.constructor = w;
  1285. w.prototype.__class__ = w;
  1286. w.__cache__ = {};
  1287. a.PointAttribute = w;
  1288. w.prototype.size = w.prototype.size = function() {
  1289. return hb(this.ptr);
  1290. };
  1291. w.prototype.GetAttributeTransformData = w.prototype.GetAttributeTransformData = function() {
  1292. return D(ib(this.ptr), Q);
  1293. };
  1294. w.prototype.attribute_type = w.prototype.attribute_type = function() {
  1295. return jb(this.ptr);
  1296. };
  1297. w.prototype.data_type = w.prototype.data_type = function() {
  1298. return kb(this.ptr);
  1299. };
  1300. w.prototype.num_components = w.prototype.num_components = function() {
  1301. return lb(this.ptr);
  1302. };
  1303. w.prototype.normalized = w.prototype.normalized = function() {
  1304. return !!mb(this.ptr);
  1305. };
  1306. w.prototype.byte_stride = w.prototype.byte_stride = function() {
  1307. return nb(this.ptr);
  1308. };
  1309. w.prototype.byte_offset = w.prototype.byte_offset = function() {
  1310. return ob(this.ptr);
  1311. };
  1312. w.prototype.unique_id = w.prototype.unique_id = function() {
  1313. return pb(this.ptr);
  1314. };
  1315. w.prototype.__destroy__ = w.prototype.__destroy__ = function() {
  1316. qb(this.ptr);
  1317. };
  1318. C.prototype = Object.create(t.prototype);
  1319. C.prototype.constructor = C;
  1320. C.prototype.__class__ = C;
  1321. C.__cache__ = {};
  1322. a.AttributeQuantizationTransform = C;
  1323. C.prototype.InitFromAttribute = C.prototype.InitFromAttribute = function(b) {
  1324. var c = this.ptr;
  1325. b && "object" === typeof b && (b = b.ptr);
  1326. return !!rb(c, b);
  1327. };
  1328. C.prototype.quantization_bits = C.prototype.quantization_bits = function() {
  1329. return sb(this.ptr);
  1330. };
  1331. C.prototype.min_value = C.prototype.min_value = function(b) {
  1332. var c = this.ptr;
  1333. b && "object" === typeof b && (b = b.ptr);
  1334. return tb(c, b);
  1335. };
  1336. C.prototype.range = C.prototype.range = function() {
  1337. return ub(this.ptr);
  1338. };
  1339. C.prototype.__destroy__ = C.prototype.__destroy__ = function() {
  1340. vb(this.ptr);
  1341. };
  1342. F.prototype = Object.create(t.prototype);
  1343. F.prototype.constructor = F;
  1344. F.prototype.__class__ = F;
  1345. F.__cache__ = {};
  1346. a.AttributeOctahedronTransform = F;
  1347. F.prototype.InitFromAttribute = F.prototype.InitFromAttribute = function(b) {
  1348. var c = this.ptr;
  1349. b && "object" === typeof b && (b = b.ptr);
  1350. return !!wb(c, b);
  1351. };
  1352. F.prototype.quantization_bits = F.prototype.quantization_bits = function() {
  1353. return xb(this.ptr);
  1354. };
  1355. F.prototype.__destroy__ = F.prototype.__destroy__ = function() {
  1356. yb(this.ptr);
  1357. };
  1358. G.prototype = Object.create(t.prototype);
  1359. G.prototype.constructor = G;
  1360. G.prototype.__class__ = G;
  1361. G.__cache__ = {};
  1362. a.PointCloud = G;
  1363. G.prototype.num_attributes = G.prototype.num_attributes = function() {
  1364. return zb(this.ptr);
  1365. };
  1366. G.prototype.num_points = G.prototype.num_points = function() {
  1367. return Ab(this.ptr);
  1368. };
  1369. G.prototype.__destroy__ = G.prototype.__destroy__ = function() {
  1370. Bb(this.ptr);
  1371. };
  1372. E.prototype = Object.create(t.prototype);
  1373. E.prototype.constructor = E;
  1374. E.prototype.__class__ = E;
  1375. E.__cache__ = {};
  1376. a.Mesh = E;
  1377. E.prototype.num_faces = E.prototype.num_faces = function() {
  1378. return Cb(this.ptr);
  1379. };
  1380. E.prototype.num_attributes = E.prototype.num_attributes = function() {
  1381. return Db(this.ptr);
  1382. };
  1383. E.prototype.num_points = E.prototype.num_points = function() {
  1384. return Eb(this.ptr);
  1385. };
  1386. E.prototype.__destroy__ = E.prototype.__destroy__ = function() {
  1387. Fb(this.ptr);
  1388. };
  1389. T.prototype = Object.create(t.prototype);
  1390. T.prototype.constructor = T;
  1391. T.prototype.__class__ = T;
  1392. T.__cache__ = {};
  1393. a.Metadata = T;
  1394. T.prototype.__destroy__ = T.prototype.__destroy__ = function() {
  1395. Gb(this.ptr);
  1396. };
  1397. B.prototype = Object.create(t.prototype);
  1398. B.prototype.constructor = B;
  1399. B.prototype.__class__ = B;
  1400. B.__cache__ = {};
  1401. a.Status = B;
  1402. B.prototype.code = B.prototype.code = function() {
  1403. return Hb(this.ptr);
  1404. };
  1405. B.prototype.ok = B.prototype.ok = function() {
  1406. return !!Ib(this.ptr);
  1407. };
  1408. B.prototype.error_msg = B.prototype.error_msg = function() {
  1409. return h(Jb(this.ptr));
  1410. };
  1411. B.prototype.__destroy__ = B.prototype.__destroy__ = function() {
  1412. Kb(this.ptr);
  1413. };
  1414. H.prototype = Object.create(t.prototype);
  1415. H.prototype.constructor = H;
  1416. H.prototype.__class__ = H;
  1417. H.__cache__ = {};
  1418. a.DracoFloat32Array = H;
  1419. H.prototype.GetValue = H.prototype.GetValue = function(b) {
  1420. var c = this.ptr;
  1421. b && "object" === typeof b && (b = b.ptr);
  1422. return Lb(c, b);
  1423. };
  1424. H.prototype.size = H.prototype.size = function() {
  1425. return Mb(this.ptr);
  1426. };
  1427. H.prototype.__destroy__ = H.prototype.__destroy__ = function() {
  1428. Nb(this.ptr);
  1429. };
  1430. I.prototype = Object.create(t.prototype);
  1431. I.prototype.constructor = I;
  1432. I.prototype.__class__ = I;
  1433. I.__cache__ = {};
  1434. a.DracoInt8Array = I;
  1435. I.prototype.GetValue = I.prototype.GetValue = function(b) {
  1436. var c = this.ptr;
  1437. b && "object" === typeof b && (b = b.ptr);
  1438. return Ob(c, b);
  1439. };
  1440. I.prototype.size = I.prototype.size = function() {
  1441. return Pb(this.ptr);
  1442. };
  1443. I.prototype.__destroy__ = I.prototype.__destroy__ = function() {
  1444. Qb(this.ptr);
  1445. };
  1446. J.prototype = Object.create(t.prototype);
  1447. J.prototype.constructor = J;
  1448. J.prototype.__class__ = J;
  1449. J.__cache__ = {};
  1450. a.DracoUInt8Array = J;
  1451. J.prototype.GetValue = J.prototype.GetValue = function(b) {
  1452. var c = this.ptr;
  1453. b && "object" === typeof b && (b = b.ptr);
  1454. return Rb(c, b);
  1455. };
  1456. J.prototype.size = J.prototype.size = function() {
  1457. return Sb(this.ptr);
  1458. };
  1459. J.prototype.__destroy__ = J.prototype.__destroy__ = function() {
  1460. Tb(this.ptr);
  1461. };
  1462. K.prototype = Object.create(t.prototype);
  1463. K.prototype.constructor = K;
  1464. K.prototype.__class__ = K;
  1465. K.__cache__ = {};
  1466. a.DracoInt16Array = K;
  1467. K.prototype.GetValue = K.prototype.GetValue = function(b) {
  1468. var c = this.ptr;
  1469. b && "object" === typeof b && (b = b.ptr);
  1470. return Ub(c, b);
  1471. };
  1472. K.prototype.size = K.prototype.size = function() {
  1473. return Vb(this.ptr);
  1474. };
  1475. K.prototype.__destroy__ = K.prototype.__destroy__ = function() {
  1476. Wb(this.ptr);
  1477. };
  1478. L.prototype = Object.create(t.prototype);
  1479. L.prototype.constructor = L;
  1480. L.prototype.__class__ = L;
  1481. L.__cache__ = {};
  1482. a.DracoUInt16Array = L;
  1483. L.prototype.GetValue = L.prototype.GetValue = function(b) {
  1484. var c = this.ptr;
  1485. b && "object" === typeof b && (b = b.ptr);
  1486. return Xb(c, b);
  1487. };
  1488. L.prototype.size = L.prototype.size = function() {
  1489. return Yb(this.ptr);
  1490. };
  1491. L.prototype.__destroy__ = L.prototype.__destroy__ = function() {
  1492. Zb(this.ptr);
  1493. };
  1494. M.prototype = Object.create(t.prototype);
  1495. M.prototype.constructor = M;
  1496. M.prototype.__class__ = M;
  1497. M.__cache__ = {};
  1498. a.DracoInt32Array = M;
  1499. M.prototype.GetValue = M.prototype.GetValue = function(b) {
  1500. var c = this.ptr;
  1501. b && "object" === typeof b && (b = b.ptr);
  1502. return $b(c, b);
  1503. };
  1504. M.prototype.size = M.prototype.size = function() {
  1505. return ac(this.ptr);
  1506. };
  1507. M.prototype.__destroy__ = M.prototype.__destroy__ = function() {
  1508. bc(this.ptr);
  1509. };
  1510. N.prototype = Object.create(t.prototype);
  1511. N.prototype.constructor = N;
  1512. N.prototype.__class__ = N;
  1513. N.__cache__ = {};
  1514. a.DracoUInt32Array = N;
  1515. N.prototype.GetValue = N.prototype.GetValue = function(b) {
  1516. var c = this.ptr;
  1517. b && "object" === typeof b && (b = b.ptr);
  1518. return cc(c, b);
  1519. };
  1520. N.prototype.size = N.prototype.size = function() {
  1521. return dc(this.ptr);
  1522. };
  1523. N.prototype.__destroy__ = N.prototype.__destroy__ = function() {
  1524. ec(this.ptr);
  1525. };
  1526. y.prototype = Object.create(t.prototype);
  1527. y.prototype.constructor = y;
  1528. y.prototype.__class__ = y;
  1529. y.__cache__ = {};
  1530. a.MetadataQuerier = y;
  1531. y.prototype.HasEntry = y.prototype.HasEntry = function(b, c) {
  1532. var d = this.ptr;
  1533. r.prepare();
  1534. b && "object" === typeof b && (b = b.ptr);
  1535. c = c && "object" === typeof c ? c.ptr : R(c);
  1536. return !!fc(d, b, c);
  1537. };
  1538. y.prototype.GetIntEntry = y.prototype.GetIntEntry = function(b, c) {
  1539. var d = this.ptr;
  1540. r.prepare();
  1541. b && "object" === typeof b && (b = b.ptr);
  1542. c = c && "object" === typeof c ? c.ptr : R(c);
  1543. return gc(d, b, c);
  1544. };
  1545. y.prototype.GetIntEntryArray = y.prototype.GetIntEntryArray = function(b, c, d) {
  1546. var g = this.ptr;
  1547. r.prepare();
  1548. b && "object" === typeof b && (b = b.ptr);
  1549. c = c && "object" === typeof c ? c.ptr : R(c);
  1550. d && "object" === typeof d && (d = d.ptr);
  1551. hc(g, b, c, d);
  1552. };
  1553. y.prototype.GetDoubleEntry = y.prototype.GetDoubleEntry = function(b, c) {
  1554. var d = this.ptr;
  1555. r.prepare();
  1556. b && "object" === typeof b && (b = b.ptr);
  1557. c = c && "object" === typeof c ? c.ptr : R(c);
  1558. return ic(d, b, c);
  1559. };
  1560. y.prototype.GetStringEntry = y.prototype.GetStringEntry = function(b, c) {
  1561. var d = this.ptr;
  1562. r.prepare();
  1563. b && "object" === typeof b && (b = b.ptr);
  1564. c = c && "object" === typeof c ? c.ptr : R(c);
  1565. return h(jc(d, b, c));
  1566. };
  1567. y.prototype.NumEntries = y.prototype.NumEntries = function(b) {
  1568. var c = this.ptr;
  1569. b && "object" === typeof b && (b = b.ptr);
  1570. return kc(c, b);
  1571. };
  1572. y.prototype.GetEntryName = y.prototype.GetEntryName = function(b, c) {
  1573. var d = this.ptr;
  1574. b && "object" === typeof b && (b = b.ptr);
  1575. c && "object" === typeof c && (c = c.ptr);
  1576. return h(lc(d, b, c));
  1577. };
  1578. y.prototype.__destroy__ = y.prototype.__destroy__ = function() {
  1579. mc(this.ptr);
  1580. };
  1581. m.prototype = Object.create(t.prototype);
  1582. m.prototype.constructor = m;
  1583. m.prototype.__class__ = m;
  1584. m.__cache__ = {};
  1585. a.Decoder = m;
  1586. m.prototype.DecodeArrayToPointCloud = m.prototype.DecodeArrayToPointCloud = function(b, c, d) {
  1587. var g = this.ptr;
  1588. r.prepare();
  1589. "object" == typeof b && (b = pa(b));
  1590. c && "object" === typeof c && (c = c.ptr);
  1591. d && "object" === typeof d && (d = d.ptr);
  1592. return D(nc(g, b, c, d), B);
  1593. };
  1594. m.prototype.DecodeArrayToMesh = m.prototype.DecodeArrayToMesh = function(b, c, d) {
  1595. var g = this.ptr;
  1596. r.prepare();
  1597. "object" == typeof b && (b = pa(b));
  1598. c && "object" === typeof c && (c = c.ptr);
  1599. d && "object" === typeof d && (d = d.ptr);
  1600. return D(oc(g, b, c, d), B);
  1601. };
  1602. m.prototype.GetAttributeId = m.prototype.GetAttributeId = function(b, c) {
  1603. var d = this.ptr;
  1604. b && "object" === typeof b && (b = b.ptr);
  1605. c && "object" === typeof c && (c = c.ptr);
  1606. return pc(d, b, c);
  1607. };
  1608. m.prototype.GetAttributeIdByName = m.prototype.GetAttributeIdByName = function(b, c) {
  1609. var d = this.ptr;
  1610. r.prepare();
  1611. b && "object" === typeof b && (b = b.ptr);
  1612. c = c && "object" === typeof c ? c.ptr : R(c);
  1613. return qc(d, b, c);
  1614. };
  1615. m.prototype.GetAttributeIdByMetadataEntry = m.prototype.GetAttributeIdByMetadataEntry = function(b, c, d) {
  1616. var g = this.ptr;
  1617. r.prepare();
  1618. b && "object" === typeof b && (b = b.ptr);
  1619. c = c && "object" === typeof c ? c.ptr : R(c);
  1620. d = d && "object" === typeof d ? d.ptr : R(d);
  1621. return rc(g, b, c, d);
  1622. };
  1623. m.prototype.GetAttribute = m.prototype.GetAttribute = function(b, c) {
  1624. var d = this.ptr;
  1625. b && "object" === typeof b && (b = b.ptr);
  1626. c && "object" === typeof c && (c = c.ptr);
  1627. return D(sc(d, b, c), w);
  1628. };
  1629. m.prototype.GetAttributeByUniqueId = m.prototype.GetAttributeByUniqueId = function(b, c) {
  1630. var d = this.ptr;
  1631. b && "object" === typeof b && (b = b.ptr);
  1632. c && "object" === typeof c && (c = c.ptr);
  1633. return D(tc(d, b, c), w);
  1634. };
  1635. m.prototype.GetMetadata = m.prototype.GetMetadata = function(b) {
  1636. var c = this.ptr;
  1637. b && "object" === typeof b && (b = b.ptr);
  1638. return D(uc(c, b), T);
  1639. };
  1640. m.prototype.GetAttributeMetadata = m.prototype.GetAttributeMetadata = function(b, c) {
  1641. var d = this.ptr;
  1642. b && "object" === typeof b && (b = b.ptr);
  1643. c && "object" === typeof c && (c = c.ptr);
  1644. return D(vc(d, b, c), T);
  1645. };
  1646. m.prototype.GetFaceFromMesh = m.prototype.GetFaceFromMesh = function(b, c, d) {
  1647. var g = this.ptr;
  1648. b && "object" === typeof b && (b = b.ptr);
  1649. c && "object" === typeof c && (c = c.ptr);
  1650. d && "object" === typeof d && (d = d.ptr);
  1651. return !!wc(g, b, c, d);
  1652. };
  1653. m.prototype.GetTriangleStripsFromMesh = m.prototype.GetTriangleStripsFromMesh = function(b, c) {
  1654. var d = this.ptr;
  1655. b && "object" === typeof b && (b = b.ptr);
  1656. c && "object" === typeof c && (c = c.ptr);
  1657. return xc(d, b, c);
  1658. };
  1659. m.prototype.GetTrianglesUInt16Array = m.prototype.GetTrianglesUInt16Array = function(b, c, d) {
  1660. var g = this.ptr;
  1661. b && "object" === typeof b && (b = b.ptr);
  1662. c && "object" === typeof c && (c = c.ptr);
  1663. d && "object" === typeof d && (d = d.ptr);
  1664. return !!yc(g, b, c, d);
  1665. };
  1666. m.prototype.GetTrianglesUInt32Array = m.prototype.GetTrianglesUInt32Array = function(b, c, d) {
  1667. var g = this.ptr;
  1668. b && "object" === typeof b && (b = b.ptr);
  1669. c && "object" === typeof c && (c = c.ptr);
  1670. d && "object" === typeof d && (d = d.ptr);
  1671. return !!zc(g, b, c, d);
  1672. };
  1673. m.prototype.GetAttributeFloat = m.prototype.GetAttributeFloat = function(b, c, d) {
  1674. var g = this.ptr;
  1675. b && "object" === typeof b && (b = b.ptr);
  1676. c && "object" === typeof c && (c = c.ptr);
  1677. d && "object" === typeof d && (d = d.ptr);
  1678. return !!Ac(g, b, c, d);
  1679. };
  1680. m.prototype.GetAttributeFloatForAllPoints = m.prototype.GetAttributeFloatForAllPoints = function(b, c, d) {
  1681. var g = this.ptr;
  1682. b && "object" === typeof b && (b = b.ptr);
  1683. c && "object" === typeof c && (c = c.ptr);
  1684. d && "object" === typeof d && (d = d.ptr);
  1685. return !!Bc(g, b, c, d);
  1686. };
  1687. m.prototype.GetAttributeIntForAllPoints = m.prototype.GetAttributeIntForAllPoints = function(b, c, d) {
  1688. var g = this.ptr;
  1689. b && "object" === typeof b && (b = b.ptr);
  1690. c && "object" === typeof c && (c = c.ptr);
  1691. d && "object" === typeof d && (d = d.ptr);
  1692. return !!Cc(g, b, c, d);
  1693. };
  1694. m.prototype.GetAttributeInt8ForAllPoints = m.prototype.GetAttributeInt8ForAllPoints = function(b, c, d) {
  1695. var g = this.ptr;
  1696. b && "object" === typeof b && (b = b.ptr);
  1697. c && "object" === typeof c && (c = c.ptr);
  1698. d && "object" === typeof d && (d = d.ptr);
  1699. return !!Dc(g, b, c, d);
  1700. };
  1701. m.prototype.GetAttributeUInt8ForAllPoints = m.prototype.GetAttributeUInt8ForAllPoints = function(b, c, d) {
  1702. var g = this.ptr;
  1703. b && "object" === typeof b && (b = b.ptr);
  1704. c && "object" === typeof c && (c = c.ptr);
  1705. d && "object" === typeof d && (d = d.ptr);
  1706. return !!Ec(g, b, c, d);
  1707. };
  1708. m.prototype.GetAttributeInt16ForAllPoints = m.prototype.GetAttributeInt16ForAllPoints = function(b, c, d) {
  1709. var g = this.ptr;
  1710. b && "object" === typeof b && (b = b.ptr);
  1711. c && "object" === typeof c && (c = c.ptr);
  1712. d && "object" === typeof d && (d = d.ptr);
  1713. return !!Fc(g, b, c, d);
  1714. };
  1715. m.prototype.GetAttributeUInt16ForAllPoints = m.prototype.GetAttributeUInt16ForAllPoints = function(b, c, d) {
  1716. var g = this.ptr;
  1717. b && "object" === typeof b && (b = b.ptr);
  1718. c && "object" === typeof c && (c = c.ptr);
  1719. d && "object" === typeof d && (d = d.ptr);
  1720. return !!Gc(g, b, c, d);
  1721. };
  1722. m.prototype.GetAttributeInt32ForAllPoints = m.prototype.GetAttributeInt32ForAllPoints = function(b, c, d) {
  1723. var g = this.ptr;
  1724. b && "object" === typeof b && (b = b.ptr);
  1725. c && "object" === typeof c && (c = c.ptr);
  1726. d && "object" === typeof d && (d = d.ptr);
  1727. return !!Hc(g, b, c, d);
  1728. };
  1729. m.prototype.GetAttributeUInt32ForAllPoints = m.prototype.GetAttributeUInt32ForAllPoints = function(b, c, d) {
  1730. var g = this.ptr;
  1731. b && "object" === typeof b && (b = b.ptr);
  1732. c && "object" === typeof c && (c = c.ptr);
  1733. d && "object" === typeof d && (d = d.ptr);
  1734. return !!Ic(g, b, c, d);
  1735. };
  1736. m.prototype.GetAttributeDataArrayForAllPoints = m.prototype.GetAttributeDataArrayForAllPoints = function(b, c, d, g, u) {
  1737. var X = this.ptr;
  1738. b && "object" === typeof b && (b = b.ptr);
  1739. c && "object" === typeof c && (c = c.ptr);
  1740. d && "object" === typeof d && (d = d.ptr);
  1741. g && "object" === typeof g && (g = g.ptr);
  1742. u && "object" === typeof u && (u = u.ptr);
  1743. return !!Jc(X, b, c, d, g, u);
  1744. };
  1745. m.prototype.SkipAttributeTransform = m.prototype.SkipAttributeTransform = function(b) {
  1746. var c = this.ptr;
  1747. b && "object" === typeof b && (b = b.ptr);
  1748. Kc(c, b);
  1749. };
  1750. m.prototype.GetEncodedGeometryType_Deprecated = m.prototype.GetEncodedGeometryType_Deprecated = function(b) {
  1751. var c = this.ptr;
  1752. b && "object" === typeof b && (b = b.ptr);
  1753. return Lc(c, b);
  1754. };
  1755. m.prototype.DecodeBufferToPointCloud = m.prototype.DecodeBufferToPointCloud = function(b, c) {
  1756. var d = this.ptr;
  1757. b && "object" === typeof b && (b = b.ptr);
  1758. c && "object" === typeof c && (c = c.ptr);
  1759. return D(Mc(d, b, c), B);
  1760. };
  1761. m.prototype.DecodeBufferToMesh = m.prototype.DecodeBufferToMesh = function(b, c) {
  1762. var d = this.ptr;
  1763. b && "object" === typeof b && (b = b.ptr);
  1764. c && "object" === typeof c && (c = c.ptr);
  1765. return D(Nc(d, b, c), B);
  1766. };
  1767. m.prototype.__destroy__ = m.prototype.__destroy__ = function() {
  1768. Oc(this.ptr);
  1769. };
  1770. (function() {
  1771. function b() {
  1772. a.ATTRIBUTE_INVALID_TRANSFORM = Pc();
  1773. a.ATTRIBUTE_NO_TRANSFORM = Qc();
  1774. a.ATTRIBUTE_QUANTIZATION_TRANSFORM = Rc();
  1775. a.ATTRIBUTE_OCTAHEDRON_TRANSFORM = Sc();
  1776. a.INVALID = Tc();
  1777. a.POSITION = Uc();
  1778. a.NORMAL = Vc();
  1779. a.COLOR = Wc();
  1780. a.TEX_COORD = Xc();
  1781. a.GENERIC = Yc();
  1782. a.INVALID_GEOMETRY_TYPE = Zc();
  1783. a.POINT_CLOUD = $c();
  1784. a.TRIANGULAR_MESH = ad();
  1785. a.DT_INVALID = bd();
  1786. a.DT_INT8 = cd();
  1787. a.DT_UINT8 = dd();
  1788. a.DT_INT16 = ed();
  1789. a.DT_UINT16 = fd();
  1790. a.DT_INT32 = gd();
  1791. a.DT_UINT32 = hd();
  1792. a.DT_INT64 = id();
  1793. a.DT_UINT64 = jd();
  1794. a.DT_FLOAT32 = kd();
  1795. a.DT_FLOAT64 = ld();
  1796. a.DT_BOOL = md();
  1797. a.DT_TYPES_COUNT = nd();
  1798. a.OK = od();
  1799. a.DRACO_ERROR = pd();
  1800. a.IO_ERROR = qd();
  1801. a.INVALID_PARAMETER = rd();
  1802. a.UNSUPPORTED_VERSION = sd();
  1803. a.UNKNOWN_VERSION = td();
  1804. }
  1805. za ? b() : oa.unshift(b);
  1806. })();
  1807. if ("function" === typeof a.onModuleParsed)
  1808. a.onModuleParsed();
  1809. a.Decoder.prototype.GetEncodedGeometryType = function(b) {
  1810. if (b.__class__ && b.__class__ === a.DecoderBuffer)
  1811. return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);
  1812. if (8 > b.byteLength)
  1813. return a.INVALID_GEOMETRY_TYPE;
  1814. switch (b[7]) {
  1815. case 0:
  1816. return a.POINT_CLOUD;
  1817. case 1:
  1818. return a.TRIANGULAR_MESH;
  1819. default:
  1820. return a.INVALID_GEOMETRY_TYPE;
  1821. }
  1822. };
  1823. return n.ready;
  1824. };
  1825. }();
  1826. "object" === typeof exports && "object" === typeof module ? module.exports = DracoDecoderModule : "function" === typeof define && define.amd ? define([], function() {
  1827. return DracoDecoderModule;
  1828. }) : "object" === typeof exports && (exports.DracoDecoderModule = DracoDecoderModule);