draco_wasm_wrapper_new.js 80 KB

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