draco_wasm_wrapper_new.js 79 KB

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