jessibuca-pro-occlusion-detector-demo.js 107 KB
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}var n=Object.freeze({__proto__:null,commonjsGlobal:t,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:r,createCommonjsModule:e,getCjsExportFromNamespace:function(t){return t&&t.default||t}}),o=i;function i(t,r){var e=u();return(i=function(t,r){return e[t-=233]})(t,r)}!function(t,r){for(var e=i,n=t();;)try{if(967252===-parseInt(e(247))/1+-parseInt(e(236))/2+parseInt(e(238))/3*(-parseInt(e(234))/4)+-parseInt(e(241))/5+-parseInt(e(245))/6+-parseInt(e(239))/7*(-parseInt(e(244))/8)+parseInt(e(240))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(u);var a=n[o(237)]((function(t){var r=o;t.exports=function(t,r){if(!(t instanceof r))throw new TypeError(i(233))},t[r(235)][r(243)]=!0,t[r(235)][r(242)]=t[r(235)]})),s=n[o(246)](a);function u(){var t=["exports","1893758dOkaVf","createCommonjsModule","2217tutEba","368403nVyTsK","38844846dqBGUK","2227995dagzCv","default","__esModule","232cUwJRC","6066288rlnOZM","unwrapExports","1097756jaZPkN","Cannot call a class as a function","7436BPoZul"];return(u=function(){return t})()}function c(){var t=["3uPTwoA","2965840HnYGGU","1071844WQwdxS","394877Aspgvn","symbol","iterator","1920058dBimZD","exports","function","1946833laGEPk","1550048bTVOnr","6732030uZsRGq","default","__esModule","constructor","prototype"];return(c=function(){return t})()}function f(t,r){var e=c();return(f=function(t,r){return e[t-=302]})(t,r)}!function(t,r){for(var e=f,n=t();;)try{if(890075===-parseInt(e(312))/1+parseInt(e(315))/2*(parseInt(e(309))/3)+parseInt(e(311))/4+-parseInt(e(310))/5+parseInt(e(304))/6+-parseInt(e(302))/7+-parseInt(e(303))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(c);var l=e((function(t){var r=f;function e(r){var n=f;return t[n(316)]=e=n(317)==typeof Symbol&&n(313)==typeof Symbol[n(314)]?function(t){return typeof t}:function(t){var r=n;return t&&r(317)==typeof Symbol&&t[r(307)]===Symbol&&t!==Symbol[r(308)]?r(313):typeof t},t[n(316)].__esModule=!0,t[n(316)].default=t[n(316)],e(r)}t.exports=e,t[r(316)][r(306)]=!0,t[r(316)][r(305)]=t[r(316)]})),p=r(l);function d(){var t=["936922iexyNE","@@toPrimitive must return a primitive value.","179188zFzgyI","1314929RXvdQb","call","toPrimitive","1602786WVrnGA","16DPFNiM","__esModule","string","object","3935pRxVAt","238928yVeOxU","exports","1550349oqHJiJ","default","10ZdAmiV","4710aFhNIT"];return(d=function(){return t})()}!function(t,r){for(var e=v,n=t();;)try{if(329772===parseInt(e(129))/1+-parseInt(e(135))/2+parseInt(e(123))/3+-parseInt(e(137))/4+-parseInt(e(128))/5*(-parseInt(e(134))/6)+parseInt(e(138))/7*(-parseInt(e(124))/8)+-parseInt(e(131))/9*(parseInt(e(133))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(d);var h=e((function(t){var r=v,e=l.default;t[r(130)]=function(t,r){var n=v;if(e(t)!==n(127)||null===t)return t;var o=t[Symbol[n(122)]];if(void 0!==o){var i=o[n(121)](t,r||n(132));if("object"!==e(i))return i;throw new TypeError(n(136))}return(r===n(126)?String:Number)(t)},t.exports[r(125)]=!0,t.exports.default=t[r(130)]}));function v(t,r){var e=d();return(v=function(t,r){return e[t-=121]})(t,r)}r(h);var m=g;!function(t,r){for(var e=g,n=t();;)try{if(618124===parseInt(e(221))/1*(parseInt(e(213))/2)+-parseInt(e(226))/3*(-parseInt(e(225))/4)+-parseInt(e(216))/5+-parseInt(e(212))/6*(-parseInt(e(223))/7)+-parseInt(e(214))/8+-parseInt(e(227))/9*(parseInt(e(218))/10)+parseInt(e(228))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);var y=n[m(220)]((function(t){var r=m,e=l[r(224)];t.exports=function(t){var n=h(t,r(222));return"symbol"===e(n)?n:String(n)},t[r(217)][r(215)]=!0,t[r(217)][r(224)]=t[r(217)]}));function w(){var t=["4863520XAJqKm","exports","10KaPNlj","unwrapExports","createCommonjsModule","403nMWAlt","string","5682439kLQJup","default","147528vKXONW","81OOzMlQ","8374059YPvNwo","9355170UWpLhl","6pLDIFr","3042bGnLKG","5997960XpYvIB","__esModule"];return(w=function(){return t})()}function g(t,r){var e=w();return(g=function(t,r){return e[t-=212]})(t,r)}n[m(219)](y);var b=E;function E(t,r){var e=_();return(E=function(t,r){return e[t-=318]})(t,r)}function _(){var t=["26530eczlzb","__esModule","1911936ltiCgy","70IKYCFO","writable","createCommonjsModule","length","exports","180jSsCWX","154016HgmUnd","value","122034wraIOt","enumerable","13752Gkgtds","unwrapExports","12ihsTuA","562527QWzchS","default","3059180RycnWo","prototype","11aoBUWd","defineProperty"];return(_=function(){return t})()}!function(t,r){for(var e=E,n=t();;)try{if(173991===parseInt(e(335))/1+-parseInt(e(328))/2*(parseInt(e(324))/3)+-parseInt(e(326))/4*(-parseInt(e(321))/5)+parseInt(e(337))/6+parseInt(e(338))/7*(parseInt(e(322))/8)+parseInt(e(329))/9+parseInt(e(331))/10*(-parseInt(e(333))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_);var I=n[b(318)]((function(t){var r=b;function e(t,r){for(var e=E,n=0;n<r[e(319)];n++){var o=r[n];o[e(325)]=o[e(325)]||!1,o.configurable=!0,e(323)in o&&(o[e(339)]=!0),Object[e(334)](t,y(o.key),o)}}t.exports=function(t,r,n){var o=E;return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,o(332),{writable:!1}),t},t[r(320)][r(336)]=!0,t[r(320)][r(330)]=t[r(320)]})),k=n[b(327)](I),P=C;function C(t,r){var e=S();return(C=function(t,r){return e[t-=334]})(t,r)}!function(t,r){for(var e=C,n=t();;)try{if(331855===parseInt(e(339))/1*(-parseInt(e(335))/2)+-parseInt(e(338))/3+parseInt(e(348))/4+-parseInt(e(344))/5*(parseInt(e(347))/6)+parseInt(e(336))/7*(-parseInt(e(345))/8)+parseInt(e(342))/9+parseInt(e(346))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(S);var T=n[P(343)]((function(t){var r=P;t[r(349)]=function(t){if(void 0===t)throw new ReferenceError(C(334));return t},t.exports[r(341)]=!0,t.exports[r(337)]=t[r(349)]}));function S(){var t=["default","1207527RDwBul","2781AmZkrg","unwrapExports","__esModule","4623795erRcbW","createCommonjsModule","33185OXVYlE","40GuATEH","5353490iQghmb","24SRUHej","908844dLzzbw","exports","this hasn't been initialised - super() hasn't been called","56ViibmA","612549QvUaSw"];return(S=function(){return t})()}var j=n[P(340)](T),D=F;!function(t,r){for(var e=F,n=t();;)try{if(995982===-parseInt(e(197))/1*(-parseInt(e(182))/2)+-parseInt(e(198))/3*(-parseInt(e(187))/4)+parseInt(e(191))/5+parseInt(e(184))/6*(-parseInt(e(200))/7)+-parseInt(e(192))/8*(-parseInt(e(199))/9)+parseInt(e(185))/10+parseInt(e(196))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(A);var O=n[D(186)]((function(t){var r=D;function e(r,n){var o=F;return t[o(183)]=e=Object.setPrototypeOf?Object[o(193)][o(189)]():function(t,r){return t[o(188)]=r,t},t[o(183)][o(195)]=!0,t[o(183)][o(190)]=t.exports,e(r,n)}t[r(183)]=e,t[r(183)][r(195)]=!0,t[r(183)][r(190)]=t.exports}));function F(t,r){var e=A();return(F=function(t,r){return e[t-=182]})(t,r)}function A(){var t=["exports","4722esVILh","785950woZhJF","createCommonjsModule","1760qRNcCH","__proto__","bind","default","1942555haFkFe","26480XFaGUb","setPrototypeOf","unwrapExports","__esModule","10767680HohlDl","28925fSKNfr","690gMSUQk","3294zoXdfd","17479hyINpy","14stCQNl"];return(A=function(){return t})()}function x(t,r){var e=U();return(x=function(t,r){return e[t-=325]})(t,r)}n[D(194)](O);var M=x;!function(t,r){for(var e=x,n=t();;)try{if(141019===parseInt(e(335))/1*(parseInt(e(330))/2)+parseInt(e(343))/3+parseInt(e(345))/4*(parseInt(e(337))/5)+-parseInt(e(329))/6*(parseInt(e(346))/7)+parseInt(e(344))/8+-parseInt(e(333))/9*(-parseInt(e(339))/10)+-parseInt(e(325))/11*(parseInt(e(332))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(U);var R=n[M(334)]((function(t){var r=M;t.exports=function(t,r){var e=x;if(typeof r!==e(328)&&null!==r)throw new TypeError(e(331));t.prototype=Object[e(342)](r&&r[e(326)],{constructor:{value:t,writable:!0,configurable:!0}}),Object[e(338)](t,e(326),{writable:!1}),r&&O(t,r)},t[r(327)][r(340)]=!0,t[r(327)][r(341)]=t[r(327)]})),$=n[M(336)](R);function U(){var t=["27HDylFi","createCommonjsModule","5GUkAdd","unwrapExports","1028965nSoNFD","defineProperty","261830mujEST","__esModule","default","create","629598ezbwWE","868992rRUHap","4VyHfwq","7oNGAKZ","5577zfkeRG","prototype","exports","function","353898UWgClc","87298JZDCkl","Super expression must either be null or a function","14700Uerhuu"];return(U=function(){return t})()}var N=L;function L(t,r){var e=W();return(L=function(t,r){return e[t-=201]})(t,r)}!function(t,r){for(var e=L,n=t();;)try{if(413142===-parseInt(e(216))/1+parseInt(e(205))/2+-parseInt(e(217))/3*(-parseInt(e(219))/4)+-parseInt(e(209))/5*(parseInt(e(218))/6)+-parseInt(e(202))/7*(parseInt(e(214))/8)+parseInt(e(208))/9+parseInt(e(201))/10*(parseInt(e(210))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(W);var z=n[N(206)]((function(t){var r=N,e=l[r(212)];t[r(204)]=function(t,n){var o=r;if(n&&(e(n)===o(215)||typeof n===o(211)))return n;if(void 0!==n)throw new TypeError(o(207));return T(t)},t[r(204)][r(203)]=!0,t[r(204)][r(212)]=t[r(204)]}));function W(){var t=["Derived constructors may only return object or undefined","5340537lExdQp","5GIkkMC","584639nRAQXC","function","default","unwrapExports","2136qWYmDr","object","825829sNwubo","107313gOBWbY","201498nwmyjY","32kQXTiY","170SSZphf","18977pbqDsR","__esModule","exports","426594BlmmZF","createCommonjsModule"];return(W=function(){return t})()}var B=n[N(213)](z),H=Y;function V(){var t=["16bwluwj","bind","__esModule","setPrototypeOf","__proto__","3033695PniRlN","unwrapExports","3535908sQXcwc","1222634ZxJoUz","4928949NkPrAB","4aWDzzr","145816zYTjJR","2FgvoBX","createCommonjsModule","getPrototypeOf","3135240XRWtMj","default","exports","3288UTgAYP","1398880lhqukt","14RyWEdg"];return(V=function(){return t})()}function Y(t,r){var e=V();return(Y=function(t,r){return e[t-=375]})(t,r)}!function(t,r){for(var e=Y,n=t();;)try{if(701117===-parseInt(e(382))/1*(parseInt(e(378))/2)+parseInt(e(377))/3+parseInt(e(380))/4*(-parseInt(e(375))/5)+parseInt(e(385))/6*(-parseInt(e(390))/7)+-parseInt(e(391))/8*(parseInt(e(379))/9)+-parseInt(e(389))/10+-parseInt(e(381))/11*(-parseInt(e(388))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(V);var q=n[H(383)]((function(t){var r=H;function e(r){var n=Y;return t[n(387)]=e=Object[n(394)]?Object[n(384)][n(392)]():function(t){var r=n;return t[r(395)]||Object[r(384)](t)},t.exports[n(393)]=!0,t[n(387)][n(386)]=t[n(387)],e(r)}t[r(387)]=e,t[r(387)][r(393)]=!0,t[r(387)][r(386)]=t.exports})),G=n[H(376)](q),X=K;function J(){var t=["10SpbJsj","createCommonjsModule","5753824XjMWGY","3759156vMKmZo","unwrapExports","__esModule","2698998AZccgw","11338971NIBDaN","function","102022OeKfJA","exports","indexOf","9192350bbqzGC","344427UWWoWe","29fKlmJb","toString","24AxYBYt","[native code]"];return(J=function(){return t})()}function K(t,r){var e=J();return(K=function(t,r){return e[t-=341]})(t,r)}!function(t,r){for(var e=K,n=t();;)try{if(832213===-parseInt(e(345))/1*(-parseInt(e(358))/2)+parseInt(e(344))/3*(parseInt(e(347))/4)+parseInt(e(349))/5*(-parseInt(e(355))/6)+parseInt(e(356))/7+-parseInt(e(351))/8+-parseInt(e(352))/9+-parseInt(e(343))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(J);var Z=n[X(350)]((function(t){var r=X;t.exports=function(t){var r=K;try{return-1!==Function[r(346)].call(t)[r(342)](r(348))}catch(e){return typeof t===r(357)}},t[r(341)][r(354)]=!0,t[r(341)].default=t[r(341)]}));n[X(353)](Z);var Q=tt;function tt(t,r){var e=et();return(tt=function(t,r){return e[t-=366]})(t,r)}!function(t,r){for(var e=tt,n=t();;)try{if(405180===-parseInt(e(381))/1*(parseInt(e(373))/2)+parseInt(e(379))/3+-parseInt(e(366))/4*(-parseInt(e(386))/5)+-parseInt(e(380))/6*(-parseInt(e(378))/7)+parseInt(e(367))/8*(parseInt(e(384))/9)+parseInt(e(368))/10*(parseInt(e(382))/11)+parseInt(e(371))/12*(-parseInt(e(376))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(et);var rt=n[Q(383)]((function(t){var r=Q;t.exports=function(){var t=tt;if(typeof Reflect===t(374)||!Reflect[t(385)])return!1;if(Reflect[t(385)].sham)return!1;if(typeof Proxy===t(375))return!0;try{return Boolean.prototype[t(372)].call(Reflect[t(385)](Boolean,[],(function(){}))),!0}catch(t){return!1}},t[r(377)][r(370)]=!0,t[r(377)].default=t[r(377)]}));function et(){var t=["30815CXyEpm","328OjtWIY","888tCrCwl","514070JRlNHU","unwrapExports","__esModule","74688nSwfKc","valueOf","2yJvgKs","undefined","function","1612dnvImI","exports","1024520OJemHL","2100774yxPRev","6iaFogG","291037txctZH","11pGfYMD","createCommonjsModule","5238zyOLxC","construct"];return(et=function(){return t})()}n[Q(369)](rt);var nt=ot;function ot(t,r){var e=at();return(ot=function(t,r){return e[t-=376]})(t,r)}!function(t,r){for(var e=ot,n=t();;)try{if(953876===-parseInt(e(394))/1*(-parseInt(e(389))/2)+-parseInt(e(381))/3+parseInt(e(379))/4+-parseInt(e(384))/5*(parseInt(e(388))/6)+-parseInt(e(385))/7+parseInt(e(380))/8*(-parseInt(e(386))/9)+parseInt(e(377))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);var it=n[nt(393)]((function(t){var r=nt;function e(r,n,o){var i=ot;return rt()?(t[i(391)]=e=Reflect.construct[i(383)](),t[i(391)][i(382)]=!0,t[i(391)].default=t.exports):(t[i(391)]=e=function(t,r,e){var n=i,o=[null];o[n(376)][n(378)](o,r);var a=new(Function.bind.apply(t,o));return e&&O(a,e[n(392)]),a},t[i(391)][i(382)]=!0,t[i(391)][i(387)]=t[i(391)]),e.apply(null,arguments)}t[r(391)]=e,t[r(391)][r(382)]=!0,t.exports[r(387)]=t[r(391)]}));function at(){var t=["unwrapExports","exports","prototype","createCommonjsModule","6999putXxY","push","8857340CCEYHG","apply","6572760fdudhi","368rgkXFr","323457KzGqdI","__esModule","bind","9219755GalVTK","3078425dfhJvv","19638ImEoNr","default","6dfXEvg","262qcrSNh"];return(at=function(){return t})()}n[nt(390)](it);var st=ft;!function(t,r){for(var e=ft,n=t();;)try{if(217732===parseInt(e(411))/1+-parseInt(e(412))/2+parseInt(e(424))/3*(-parseInt(e(421))/4)+-parseInt(e(423))/5+parseInt(e(409))/6*(parseInt(e(418))/7)+parseInt(e(416))/8*(-parseInt(e(415))/9)+parseInt(e(425))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(lt);var ut=n[st(419)]((function(t){var r=st;function e(r){var n=ft,o=typeof Map===n(406)?new Map:void 0;return t[n(422)]=e=function(t){var r=n;if(null===t||!Z(t))return t;if(typeof t!==r(406))throw new TypeError(r(410));if(void 0!==o){if(o[r(426)](t))return o[r(414)](t);o[r(405)](t,e)}function e(){var e=r;return it(t,arguments,q(this)[e(427)])}return e.prototype=Object[r(417)](t[r(407)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),O(e,t)},t[n(422)][n(413)]=!0,t[n(422)][n(408)]=t[n(422)],e(r)}t.exports=e,t[r(422)][r(413)]=!0,t[r(422)][r(408)]=t[r(422)]})),ct=n[st(420)](ut);function ft(t,r){var e=lt();return(ft=function(t,r){return e[t-=405]})(t,r)}function lt(){var t=["exports","496845azKzlo","3WQFtAP","3856540jjqrfG","has","constructor","set","function","prototype","default","1531938WEewMI","Super expression must either be null or a function","221560IWquQf","336856nMJSAs","__esModule","get","1395gsQGkv","8040YIcyMv","create","7HfVZXB","createCommonjsModule","unwrapExports","884932AlaFrA"];return(lt=function(){return t})()}function pt(){var t=["30280EBabVr","done","2893528ghLAlf","9759PYEEPQ","5556urOMTN","250hMnuos","apply","createCommonjsModule","exports","resolve","91592kckDYG","next","244RnDvux","1291458UHeQec","1VTrVpH","542694OTDPMM","value","945elzPDq"];return(pt=function(){return t})()}var dt=ht;function ht(t,r){var e=pt();return(ht=function(t,r){return e[t-=386]})(t,r)}!function(t,r){for(var e=ht,n=t();;)try{if(265831===-parseInt(e(395))/1*(parseInt(e(396))/2)+-parseInt(e(402))/3*(-parseInt(e(393))/4)+parseInt(e(386))/5*(-parseInt(e(403))/6)+-parseInt(e(394))/7+-parseInt(e(391))/8+-parseInt(e(398))/9*(-parseInt(e(399))/10)+parseInt(e(401))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(pt);var vt=n[dt(388)]((function(t){var r=dt;function e(t,r,e,n,o,i,a){var s=ht;try{var u=t[i](a),c=u[s(397)]}catch(t){return void e(t)}u[s(400)]?r(c):Promise[s(390)](c).then(n,o)}t[r(389)]=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=ht,s=t[a(387)](r,n);function u(t){e(s,o,i,u,c,a(392),t)}function c(t){e(s,o,i,u,c,"throw",t)}u(void 0)}))}},t[r(389)].__esModule=!0,t[r(389)].default=t.exports})),mt=r(vt),yt=wt;function wt(t,r){var e=gt();return(wt=function(t,r){return e[t-=440]})(t,r)}function gt(){var t=["continue","asyncIterator","delegate","rval","[object Generator]","value","return","completion","2DoHyIB","arg","getPrototypeOf","The iterator does not provide a '","complete","tryEntries","GeneratorFunction","illegal catch attempt","mark","iterator","push","root","normal","dispatchException","type","prototype","constructor","suspendedStart","toStringTag","resolve","142085eYOnXU","7395204nmRJFW","method","done","isGeneratorFunction","break","_sent","70128joxpRB","tryLoc","sent","async","toString","end","default","pop","defineProperty","keys","wrap","function","Generator","displayName","abrupt","prev","values","7PHRvdV","createCommonjsModule","then","forEach","create","resultName","completed","360517lzlTJP","@@iterator","hasOwnProperty","next","object","charAt","throw","11MYbxUz","reset","92XotnPD","awrap","2156802laUZwC","length","afterLoc"," is not iterable","call","unwrapExports","setPrototypeOf","@@asyncIterator","finallyLoc","40djaChB","catchLoc","exports","_invoke","781587mBwkcy","5308032JujuNo","slice","suspendedYield","@@toStringTag","__esModule","__await"];return(gt=function(){return t})()}!function(t,r){for(var e=wt,n=t();;)try{if(343152===parseInt(e(481))/1*(parseInt(e(520))/2)+-parseInt(e(457))/3+-parseInt(e(490))/4*(parseInt(e(450))/5)+-parseInt(e(492))/6*(-parseInt(e(474))/7)+-parseInt(e(506))/8+parseInt(e(505))/9*(parseInt(e(501))/10)+parseInt(e(488))/11*(parseInt(e(451))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(gt);var bt=n[yt(475)]((function(t){var r=yt,e=l[r(463)];function n(){var o=r;t[o(503)]=n=function(){return a},t[o(503)][o(510)]=!0,t.exports[o(463)]=t[o(503)];var i,a={},s=Object[o(445)],u=s[o(483)],c=Object[o(465)]||function(t,r,e){var n=o;t[r]=e[n(517)]},f=o(468)==typeof Symbol?Symbol:{},l=f.iterator||o(482),p=f[o(513)]||o(499),d=f[o(448)]||o(509);function h(t,r,e){return Object[o(465)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function v(t,r,e,n){var a,s,u,f,l=o,p=r&&r.prototype instanceof _?r:_,d=Object.create(p[l(445)]),h=new x(n||[]);return c(d,l(504),{value:(a=t,s=e,u=h,f=y,function(t,r){var e=wt;if(f===g)throw new Error("Generator is already running");if(f===b){if("throw"===t)throw r;return{value:i,done:!0}}for(u[e(452)]=t,u[e(521)]=r;;){var n=u[e(514)];if(n){var o=O(n,u);if(o){if(o===E)continue;return o}}if(e(484)===u[e(452)])u.sent=u._sent=u[e(521)];else if(e(487)===u.method){if(f===y)throw f=b,u.arg;u[e(443)](u[e(521)])}else e(518)===u[e(452)]&&u[e(471)](e(518),u[e(521)]);f=g;var c=m(a,s,u);if("normal"===c.type){if(f=u[e(453)]?b:w,c.arg===E)continue;return{value:c[e(521)],done:u.done}}e(487)===c.type&&(f=b,u[e(452)]="throw",u.arg=c[e(521)])}})}),d}function m(t,r,e){var n=o;try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:n(487),arg:t}}}a[o(467)]=v;var y=o(447),w=o(508),g="executing",b=o(480),E={};function _(){}function I(){}function k(){}var P={};h(P,l,(function(){return this}));var C=Object[o(522)],T=C&&C(C(M([])));T&&T!==s&&u[o(496)](T,l)&&(P=T);var S=k.prototype=_[o(445)]=Object[o(478)](P);function j(t){var r=o;[r(484),"throw",r(518)][r(477)]((function(r){h(t,r,(function(t){return this[wt(504)](r,t)}))}))}function D(t,r){var n,i=o;function a(n,o,i,s){var c=wt,f=m(t[n],t,o);if(c(487)!==f[c(444)]){var l=f[c(521)],p=l[c(517)];return p&&c(485)==e(p)&&u[c(496)](p,c(511))?r[c(449)](p[c(511)])[c(476)]((function(t){a(c(484),t,i,s)}),(function(t){a(c(487),t,i,s)})):r[c(449)](p)[c(476)]((function(t){l[c(517)]=t,i(l)}),(function(t){return a(c(487),t,i,s)}))}s(f[c(521)])}c(this,i(504),{value:function(t,e){function o(){return new r((function(r,n){a(t,e,r,n)}))}return n=n?n[i(476)](o,o):o()}})}function O(t,r){var e=o,n=r.method,a=t.iterator[n];if(a===i)return r[e(514)]=null,"throw"===n&&t[e(529)][e(518)]&&(r[e(452)]="return",r[e(521)]=i,O(t,r),"throw"===r[e(452)])||e(518)!==n&&(r[e(452)]=e(487),r.arg=new TypeError(e(523)+n+"' method")),E;var s=m(a,t[e(529)],r.arg);if("throw"===s.type)return r[e(452)]=e(487),r[e(521)]=s[e(521)],r[e(514)]=null,E;var u=s[e(521)];return u?u[e(453)]?(r[t[e(479)]]=u[e(517)],r[e(484)]=t.nextLoc,e(518)!==r.method&&(r.method="next",r[e(521)]=i),r.delegate=null,E):u:(r[e(452)]=e(487),r.arg=new TypeError("iterator result is not an object"),r[e(514)]=null,E)}function F(t){var r=o,e={tryLoc:t[0]};1 in t&&(e[r(502)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(494)]=t[3]),this[r(525)][r(440)](e)}function A(t){var r=o,e=t[r(519)]||{};e[r(444)]="normal",delete e[r(521)],t[r(519)]=e}function x(t){var r=o;this.tryEntries=[{tryLoc:r(441)}],t[r(477)](F,this),this[r(489)](!0)}function M(t){var r=o;if(t||""===t){var n=t[l];if(n)return n[r(496)](t);if(r(468)==typeof t[r(484)])return t;if(!isNaN(t[r(493)])){var a=-1,s=function e(){for(var n=r;++a<t[n(493)];)if(u.call(t,a))return e[n(517)]=t[a],e[n(453)]=!1,e;return e.value=i,e.done=!0,e};return s.next=s}}throw new TypeError(e(t)+r(495))}return I[o(445)]=k,c(S,o(446),{value:k,configurable:!0}),c(k,o(446),{value:I,configurable:!0}),I.displayName=h(k,d,o(526)),a[o(454)]=function(t){var r=o,e=r(468)==typeof t&&t.constructor;return!!e&&(e===I||r(526)===(e[r(470)]||e.name))},a[o(528)]=function(t){var r=o;return Object[r(498)]?Object[r(498)](t,k):(t.__proto__=k,h(t,d,r(526))),t[r(445)]=Object[r(478)](S),t},a[o(491)]=function(t){return{__await:t}},j(D[o(445)]),h(D[o(445)],p,(function(){return this})),a.AsyncIterator=D,a[o(460)]=function(t,r,e,n,i){var s=o;void 0===i&&(i=Promise);var u=new D(v(t,r,e,n),i);return a.isGeneratorFunction(r)?u:u[s(484)]().then((function(t){var r=s;return t[r(453)]?t.value:u[r(484)]()}))},j(S),h(S,d,o(469)),h(S,l,(function(){return this})),h(S,o(461),(function(){return o(516)})),a[o(466)]=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(var n=wt;e[n(493)];){var o=e[n(464)]();if(o in r)return t[n(517)]=o,t[n(453)]=!1,t}return t[n(453)]=!0,t}},a[o(473)]=M,x[o(445)]={constructor:x,reset:function(t){var r=o;if(this.prev=0,this[r(484)]=0,this[r(459)]=this[r(456)]=i,this[r(453)]=!1,this.delegate=null,this[r(452)]="next",this.arg=i,this[r(525)].forEach(A),!t)for(var e in this)"t"===e[r(486)](0)&&u.call(this,e)&&!isNaN(+e[r(507)](1))&&(this[e]=i)},stop:function(){var t=o;this[t(453)]=!0;var r=this[t(525)][0][t(519)];if(t(487)===r.type)throw r[t(521)];return this[t(515)]},dispatchException:function(t){var r=o;if(this[r(453)])throw t;var e=this;function n(n,o){var a=r;return c[a(444)]=a(487),c.arg=t,e[a(484)]=n,o&&(e[a(452)]="next",e[a(521)]=i),!!o}for(var a=this.tryEntries[r(493)]-1;a>=0;--a){var s=this[r(525)][a],c=s.completion;if(r(441)===s[r(458)])return n(r(462));if(s[r(458)]<=this[r(472)]){var f=u[r(496)](s,"catchLoc"),l=u.call(s,r(500));if(f&&l){if(this[r(472)]<s[r(502)])return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(f){if(this[r(472)]<s[r(502)])return n(s[r(502)],!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this[r(472)]<s[r(500)])return n(s.finallyLoc)}}}},abrupt:function(t,r){for(var e=o,n=this[e(525)][e(493)]-1;n>=0;--n){var i=this[e(525)][n];if(i.tryLoc<=this.prev&&u[e(496)](i,e(500))&&this[e(472)]<i[e(500)]){var a=i;break}}a&&("break"===t||e(512)===t)&&a[e(458)]<=r&&r<=a[e(500)]&&(a=null);var s=a?a[e(519)]:{};return s[e(444)]=t,s[e(521)]=r,a?(this[e(452)]=e(484),this.next=a[e(500)],E):this[e(524)](s)},complete:function(t,r){var e=o;if(e(487)===t[e(444)])throw t[e(521)];return e(455)===t[e(444)]||"continue"===t[e(444)]?this[e(484)]=t[e(521)]:"return"===t[e(444)]?(this[e(515)]=this[e(521)]=t[e(521)],this[e(452)]=e(518),this.next=e(462)):e(442)===t.type&&r&&(this[e(484)]=r),E},finish:function(t){for(var r=o,e=this.tryEntries[r(493)]-1;e>=0;--e){var n=this[r(525)][e];if(n.finallyLoc===t)return this.complete(n[r(519)],n[r(494)]),A(n),E}},catch:function(t){for(var r=o,e=this[r(525)][r(493)]-1;e>=0;--e){var n=this[r(525)][e];if(n[r(458)]===t){var i=n[r(519)];if("throw"===i[r(444)]){var a=i.arg;A(n)}return a}}throw new Error(r(527))},delegateYield:function(t,r,e){var n=o;return this[n(514)]={iterator:M(t),resultName:r,nextLoc:e},n(484)===this[n(452)]&&(this[n(521)]=i),E}},a}t.exports=n,t.exports[r(510)]=!0,t[r(503)].default=t.exports}));n[yt(497)](bt);var Et=Pt;!function(t,r){for(var e=Pt,n=t();;)try{if(351615===-parseInt(e(491))/1+parseInt(e(488))/2+parseInt(e(486))/3+parseInt(e(484))/4+parseInt(e(489))/5*(-parseInt(e(494))/6)+-parseInt(e(493))/7+parseInt(e(485))/8*(parseInt(e(490))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(kt);var _t=bt(),It=_t;try{regeneratorRuntime=_t}catch(t){typeof globalThis===Et(492)?globalThis[Et(495)]=_t:Function("r",Et(487))(_t)}function kt(){var t=["regeneratorRuntime = r","138104QIZtyw","71055xsqXAo","3302919iAUjew","533967kxyiBR","object","1184582JyhZVp","102zUjeKV","regeneratorRuntime","2098380aAUqTG","8Uyttsa","1007271uFhuth"];return(kt=function(){return t})()}function Pt(t,r){var e=kt();return(Pt=function(t,r){return e[t-=484]})(t,r)}function Ct(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=G(t);if(r){var o=G(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return B(this,e)}}var Tt,St=(Tt="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-occlusion-detector-demo.js",document.baseURI).href,mt(It.mark((function t(){var r,e,n,o,i,a,u,c,f,l,d,h,v,m,y,w,g,b,E,_,I,P,C,T,S,j,D,O,F,A,x,M,R,U,N,L,z,W,B,H,V,Y,q,G,X,J,K,Z,Q,tt,rt,et,nt,ot,it,at,st,ut,ft,lt,pt,dt,ht,vt,mt,yt,wt,gt,bt,Et,_t,kt,Pt,St,jt,Dt,Ot,Ft,At,xt,Mt,Rt,$t,Ut,Nt,Lt,zt,Wt,Bt,Ht,Vt,Yt,qt,Gt,Xt,Jt,Kt,Zt,Qt,tr,rr,er,nr,or,ir,ar,sr,ur,cr,fr,lr,pr,dr,hr,vr,mr,yr,wr,gr,br,Er,_r,Ir,kr,Pr,Cr,Tr,Sr,jr,Dr,Or,Fr,Ar,xr,Mr,Rr,$r,Ur,Nr,Lr,zr,Wr,Br,Hr,Vr,Yr,qr,Gr,Xr,Jr,Kr,Zr,Qr,te,re,ee,ne,oe,ie,ae,se,ue,ce,fe,le,pe,de,he,ve,me,ye,we,ge,be,Ee,_e,Ie,ke,Pe,Ce,Te,Se,je,De,Oe,Fe,Ae,xe,Me,Re,$e,Ue,Ne,Le,ze,We,Be,He,Ve,Ye,qe,Ge,Xe,Je,Ke,Ze,Qe,tn,rn,en,nn,on,an,sn,un,cn,fn,ln,pn,dn,hn,vn,mn,yn,wn,gn,bn,En,_n,In,kn,Pn,Cn,Tn,Sn,jn,Dn,On,Fn,An,xn,Mn,Rn,$n=arguments;return It.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Rn=function(){function t(){Mn||(Mn=!0,e.calledRun=!0,T||(B(),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),H()))}G>0||(W(),G>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))},wn=function(t,r,e,n){try{var o=fn.getStreamFromFD(t),i=yn(o,r,e);return x[n>>2]=i,0}catch(t){if(void 0===cn||"ErrnoError"!==t.name)throw t;return t.errno}},mn=function(t,r,e,n,o){var i=Oe(r,e);try{if(isNaN(i))return 61;var a=fn.getStreamFromFD(t);return cn.llseek(a,i,n),lt=[a.position>>>0,(ft=a.position,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[o>>2]=lt[0],A[o+4>>2]=lt[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0}catch(t){if(void 0===cn||"ErrnoError"!==t.name)throw t;return t.errno}},vn=function(t,r,e,n){try{var o=fn.getStreamFromFD(t),i=hn(o,r,e);return x[n>>2]=i,0}catch(t){if(void 0===cn||"ErrnoError"!==t.name)throw t;return t.errno}},dn=function(t){try{var r=fn.getStreamFromFD(t);return cn.close(r),0}catch(t){if(void 0===cn||"ErrnoError"!==t.name)throw t;return t.errno}},Je=function(t,r,e){var n=e>0?e:Kr(t)+1,o=new Array(n),i=Xr(t,o,0,o.length);return r&&(o.length=i),o},Fe=function(t,r,e){var n=Oe(t,r),o=new Date(1e3*n);A[e>>2]=o.getSeconds(),A[e+4>>2]=o.getMinutes(),A[e+8>>2]=o.getHours(),A[e+12>>2]=o.getDate(),A[e+16>>2]=o.getMonth(),A[e+20>>2]=o.getFullYear()-1900,A[e+24>>2]=o.getDay();var i=0|De(o);A[e+28>>2]=i,A[e+36>>2]=-60*o.getTimezoneOffset();var a=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),u=a.getTimezoneOffset(),c=0|(s!=u&&o.getTimezoneOffset()==Math.min(u,s));A[e+32>>2]=c},zr=function(t){return this.fromWireType(A[t>>2])},Mr=function(){this.allocated=[void 0],this.freelist=[]},xr=function(){Object.assign(Mr.prototype,{get:function(t){return this.allocated[t]},has:function(t){return void 0!==this.allocated[t]},allocate:function(t){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=t,r},free:function(t){this.allocated[t]=void 0,this.freelist.push(t)}})},Dr=function(t,r,e,n,o,i){var a=r.length;a<2&&kt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==e,u=!1,c=1;c<r.length;++c)if(null!==r[c]&&void 0===r[c].destructorFunction){u=!0;break}var f="void"!==r[0].name,l="",p="";for(c=0;c<a-2;++c)l+=(0!==c?", ":"")+"arg"+c,p+=(0!==c?", ":"")+"arg"+c+"Wired";var d="\n        return function (".concat(l,") {\n        if (arguments.length !== ").concat(a-2,") {\n          throwBindingError('function ").concat(t," called with ' + arguments.length + ' arguments, expected ").concat(a-2,"');\n        }");u&&(d+="var destructors = [];\n");var h=u?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[kt,n,o,Sr,r[0],r[1]];for(s&&(d+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<a-2;++c)d+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+r[c+2].name+"\n",v.push("argType"+c),m.push(r[c+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),d+=(f||i?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",u)d+="runDestructors(destructors);\n";else for(c=s?1:2;c<r.length;++c){var y=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==r[c].destructorFunction&&(d+=y+"_dtor("+y+"); // "+r[c].name+"\n",v.push(y+"_dtor"),m.push(r[c].destructorFunction))}f&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",v.push(d);var w=jr(Function,v).apply(null,m);return er(t,w)},jr=function(t,r){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type ".concat(p(t)," which is not a function"));var e=er(t.name||"unknownFunctionName",(function(){}));e.prototype=t.prototype;var n=new e,o=t.apply(n,r);return o instanceof Object?o:n},dr=function(t,r,e,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==r.baseClass?this.toWireType=cr:n?(this.toWireType=ur,this.destructorFunction=null):(this.toWireType=fr,this.destructorFunction=null)},lr=function(t){return this.fromWireType(x[t>>2])},fr=function(t,r){if(null===r)return this.isReference&&kt("null is not a valid ".concat(this.name)),0;r.$$||kt('Cannot pass "'.concat(Br(r),'" as a ').concat(this.name)),r.$$.ptr||kt("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&kt("Cannot convert argument of type ".concat(r.$$.ptrType.name," to parameter type ").concat(this.name));var e=r.$$.ptrType.registeredClass;return sr(r.$$.ptr,e,this.registeredClass)},cr=function(t,r){var e;if(null===r)return this.isReference&&kt("null is not a valid ".concat(this.name)),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;r.$$||kt('Cannot pass "'.concat(Br(r),'" as a ').concat(this.name)),r.$$.ptr||kt("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&kt("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));var n=r.$$.ptrType.registeredClass;if(e=sr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&kt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:kt("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var o=r.clone();e=this.rawShare(e,Lr.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:kt("Unsupporting sharing policy")}return e},ur=function(t,r){if(null===r)return this.isReference&&kt("null is not a valid ".concat(this.name)),0;r.$$||kt('Cannot pass "'.concat(Br(r),'" as a ').concat(this.name)),r.$$.ptr||kt("Cannot pass deleted object as a pointer of type ".concat(this.name));var e=r.$$.ptrType.registeredClass;return sr(r.$$.ptr,e,this.registeredClass)},ar=function(t,r,e,n,o,i,a,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]},rr=function(){},Zt=function(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=Jt(this.registeredClass,r);if(void 0!==e){if(0===e.$$.count.value)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Kt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Kt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(r),s=Lt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Nt(r,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Kt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Kt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})},Ot=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Dt(t,r,e)},Dt=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.name;if(t||kt('type "'.concat(n,'" must have a positive integer typeid pointer')),bt.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;kt("Cannot register type '".concat(n,"' twice"))}if(bt[t]=r,delete Et[t],gt.hasOwnProperty(t)){var o=gt[t];delete gt[t],o.forEach((function(t){return t()}))}},dt=function(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){x[this.ptr+4>>2]=t},this.get_type=function(){return x[this.ptr+4>>2]},this.set_destructor=function(t){x[this.ptr+8>>2]=t},this.get_destructor=function(){return x[this.ptr+8>>2]},this.set_caught=function(t){t=t?1:0,j[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=j[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,j[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=j[this.ptr+13>>0]},this.init=function(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r)},this.set_adjusted_ptr=function(t){x[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return x[this.ptr+16>>2]},this.get_exception_ptr=function(){if(xn(this.get_type()))return x[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},ut=function(){var t={a:jn};function r(t,r){return Dn=t.exports,C=Dn.L,U(),yr=Dn.P,Y(Dn.M),Q("wasm-instantiate"),Dn}if(Z("wasm-instantiate"),e.instantiateWasm)try{return e.instantiateWasm(t,r)}catch(t){I("Module.instantiateWasm callback failed with error: ".concat(t)),o(t)}return st(P,nt,t,(function(t){r(t.instance)})).catch(o),{}},st=function(t,r,e,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||rt(r)||et(r)||f||"function"!=typeof fetch?at(r,e,n):fetch(r,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(t){return I("wasm streaming compile failed: ".concat(t)),I("falling back to ArrayBuffer instantiation"),at(r,e,n)}))}))},at=function(t,r,e){return it(t).then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(e,(function(t){I("failed to asynchronously prepare wasm: ".concat(t)),tt(t)}))},it=function(t){if(!P&&(u||c)){if("function"==typeof fetch&&!et(t))return fetch(t,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+t+"'";return r.arrayBuffer()})).catch((function(){return ot(t)}));if(v)return new Promise((function(r,e){v(t,(function(t){return r(new Uint8Array(t))}),e)}))}return Promise.resolve().then((function(){return ot(t)}))},ot=function(t){if(t==nt&&P)return new Uint8Array(P);if(m)return m(t);throw"both async and sync fetching of the wasm failed"},tt=function(t){e.onAbort&&e.onAbort(t),I(t="Aborted("+t+")"),T=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw o(r),r},Q=function(t){if(G--,e.monitorRunDependencies&&e.monitorRunDependencies(G),0==G&&(null!==X&&(clearInterval(X),X=null),J)){var r=J;J=null,r()}},Z=function(t){G++,e.monitorRunDependencies&&e.monitorRunDependencies(G)},K=function(t){return t},q=function(t){z.unshift(t)},Y=function(t){L.unshift(t)},V=function(t){N.unshift(t)},H=function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)q(e.postRun.shift());pt(z)},B=function(){e.noFSInit||cn.init.initialized||cn.init(),cn.ignorePermissions=!1,Ze.init(),pt(L)},W=function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)V(e.preRun.shift());pt(N)},U=function(){var t=C.buffer;e.HEAP8=j=new Int8Array(t),e.HEAP16=O=new Int16Array(t),e.HEAPU8=D=new Uint8Array(t),e.HEAPU16=F=new Uint16Array(t),e.HEAP32=A=new Int32Array(t),e.HEAPU32=x=new Uint32Array(t),e.HEAPF32=M=new Float32Array(t),e.HEAPF64=R=new Float64Array(t)},S=function(t,r){t||tt(r)},d=function(t){return e.locateFile?e.locateFile(t,l):l+t},(e=r=$n.length>0&&void 0!==$n[0]?$n[0]:{}).ready=new Promise((function(t,r){n=t,o=r})),(e=void 0!==e?e:{}).locateFile=function(t,r){return"jessibuca-pro-occlusion-detector-decoder.wasm"==t&&"undefined"!=typeof JESSIBUCA_PRO_OCCLUSION_DETECTOR_WASM_URL&&""!=JESSIBUCA_PRO_OCCLUSION_DETECTOR_WASM_URL?JESSIBUCA_PRO_OCCLUSION_DETECTOR_WASM_URL:r+t},i=Object.assign({},e),a="./this.program",u="object"==("undefined"==typeof window?"undefined":p(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":p(process))&&"object"==p(process.versions)&&"string"==typeof process.versions.node,l="",!f){t.next=72;break}return t.next=57,import("module");case 57:y=t.sent,w=y.createRequire,g=w("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-occlusion-detector-demo.js",document.baseURI).href),b=g("fs"),E=g("path"),l=c?E.dirname(l)+"/":g("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-occlusion-detector-demo.js",document.baseURI).href)),h=function(t,r){return t=et(t)?new URL(t):E.normalize(t),b.readFileSync(t,r?void 0:"utf8")},m=function(t){var r=h(t,!0);return r.buffer||(r=new Uint8Array(r)),r},v=function(t,r,e){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=et(t)?new URL(t):E.normalize(t),b.readFile(t,n?void 0:"utf8",(function(t,o){t?e(t):r(n?o.buffer:o)}))},!e.thisProgram&&process.argv.length>1&&(a=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"},t.next=73;break;case 72:(u||c)&&(c?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),Tt&&(l=Tt),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(null),r.responseText},c&&(m=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),v=function(t,r,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?r(n.response):e()},n.onerror=e,n.send(null)});case 73:if(_=e.print||console.log.bind(console),I=e.printErr||console.error.bind(console),Object.assign(e,i),i=null,e.arguments&&e.arguments,e.thisProgram&&(a=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&(P=e.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":p(WebAssembly))&&tt("no native wasm support detected"),T=!1,N=[],L=[],z=[],G=0,X=null,J=null,rt=function(t){return t.startsWith("data:application/octet-stream;base64,")},et=function(t){return t.startsWith("file://")},e.locateFile?rt(nt="jessibuca-pro-occlusion-detector-decoder.wasm")||(nt=d(nt)):nt=new URL("jessibuca-pro-occlusion-detector-decoder.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-occlusion-detector-demo.js",document.baseURI).href).href,pt=function(t){for(;t.length>0;)t.shift()(e)},e.noExitRuntime,ht=function(t,r,e){throw new dt(t).init(r,e),t},vt=function(t,r,e,n,o){},mt=function(){for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);yt=t},wt=function(t){for(var r="",e=t;D[e];)r+=yt[D[e++]];return r},gt={},bt={},Et={},kt=function(t){throw new _t(t)},St=function(t){throw new Pt(t)},jt=function(t,r,e){function n(r){var n=e(r);n.length!==t.length&&St("Mismatched type converter count");for(var o=0;o<t.length;++o)Ot(t[o],n[o])}t.forEach((function(t){Et[t]=r}));var o=new Array(r.length),i=[],a=0;r.forEach((function(t,r){bt.hasOwnProperty(t)?o[r]=bt[t]:(i.push(t),gt.hasOwnProperty(t)||(gt[t]=[]),gt[t].push((function(){o[r]=bt[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)},Ft=function(t,r,e,n){r=wt(r),Ot(t,{name:r,fromWireType:function(t){return!!t},toWireType:function(t,r){return r?e:n},argPackAdvance:8,readValueFromPointer:function(t){return this.fromWireType(D[t])},destructorFunction:null})},At=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},xt=function(t){kt(t.$$.ptrType.registeredClass.name+" instance already deleted")},Mt=!1,Rt=function(t){},$t=function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Ut=function(t){t.count.value-=1,0===t.count.value&&$t(t)},Nt=function t(r,e,n){if(e===n)return r;if(void 0===n.baseClass)return null;var o=t(r,e,n.baseClass);return null===o?null:n.downcast(o)},Lt={},zt=function(){return Object.keys(Gt).length},Wt=function(){var t=[];for(var r in Gt)Gt.hasOwnProperty(r)&&t.push(Gt[r]);return t},Bt=[],Ht=function(){for(;Bt.length;){var t=Bt.pop();t.$$.deleteScheduled=!1,t.delete()}},Yt=function(t){Vt=t,Bt.length&&Vt&&Vt(Ht)},qt=function(){e.getInheritedInstanceCount=zt,e.getLiveInheritedInstances=Wt,e.flushPendingDeletes=Ht,e.setDelayFunction=Yt},Gt={},Xt=function(t,r){for(void 0===r&&kt("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},Jt=function(t,r){return r=Xt(t,r),Gt[r]},Kt=function(t,r){return r.ptrType&&r.ptr||St("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&St("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Qt(Object.create(t,{$$:{value:r}}))},Qt=function(t){return"undefined"==typeof FinalizationRegistry?(Qt=function(t){return t},t):(Mt=new FinalizationRegistry((function(t){Ut(t.$$)})),Qt=function(t){var r=t.$$;if(r.smartPtr){var e={$$:r};Mt.register(t,e,t)}return t},Rt=function(t){return Mt.unregister(t)},Qt(t))},tr=function(){Object.assign(rr.prototype,{isAliasOf:function(t){if(!(this instanceof rr))return!1;if(!(t instanceof rr))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,o=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&e===o},clone:function(){if(this.$$.ptr||xt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Qt(Object.create(Object.getPrototypeOf(this),{$$:{value:At(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||xt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&kt("Object already scheduled for deletion"),Rt(this),Ut(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||xt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&kt("Object already scheduled for deletion"),Bt.push(this),1===Bt.length&&Vt&&Vt(Ht),this.$$.deleteScheduled=!0,this}})},er=function(t,r){return Object.defineProperty(r,"name",{value:t})},nr=function(t,r,e){if(void 0===t[r].overloadTable){var n=t[r];t[r]=function(){return t[r].overloadTable.hasOwnProperty(arguments.length)||kt("Function '".concat(e,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(t[r].overloadTable,")!")),t[r].overloadTable[arguments.length].apply(this,arguments)},t[r].overloadTable=[],t[r].overloadTable[n.argCount]=n}},or=function(t,r,n){e.hasOwnProperty(t)?((void 0===n||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[n])&&kt("Cannot register public name '".concat(t,"' twice")),nr(e,t,t),e.hasOwnProperty(n)&&kt("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),e[t].overloadTable[n]=r):(e[t]=r,void 0!==n&&(e[t].numArguments=n))},ir=function(t){if(void 0===t)return"_unknown";var r=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_".concat(t):t},sr=function(t,r,e){for(;r!==e;)r.upcast||kt("Expected null or instance of ".concat(e.name,", got an instance of ").concat(r.name)),t=r.upcast(t),r=r.baseClass;return t},pr=function(){Object.assign(dr.prototype,{getPointee:function(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor:function(t){this.rawDestructor&&this.rawDestructor(t)},argPackAdvance:8,readValueFromPointer:lr,deleteObject:function(t){null!==t&&t.delete()},fromWireType:Zt})},hr=function(t,r,n){e.hasOwnProperty(t)||St("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==n?e[t].overloadTable[n]=r:(e[t]=r,e[t].argCount=n)},vr=function(t,r,n){var o=e["dynCall_"+t];return n&&n.length?o.apply(null,[r].concat(n)):o.call(null,r)},mr=[],wr=function(t){var r=mr[t];return r||(t>=mr.length&&(mr.length=t+1),mr[t]=r=yr.get(t)),r},gr=function(t,r,e){return t.includes("j")?vr(t,r,e):wr(r).apply(null,e)},br=function(t,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),gr(t,r,e)}},Er=function(t,r){var e=(t=wt(t)).includes("j")?br(t,r):wr(r);return"function"!=typeof e&&kt("unknown function pointer with signature ".concat(t,": ").concat(r)),e},_r=function(t,r){var e=er(r,(function(t){this.name=r,this.message=t;var e=new Error(t).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},e},kr=function(t){var r=An(t),e=wt(r);return Fn(r),e},Pr=function(t,r){var e=[],n={};throw r.forEach((function t(r){n[r]||bt[r]||(Et[r]?Et[r].forEach(t):(e.push(r),n[r]=!0))})),new Ir("".concat(t,": ")+e.map(kr).join([", "]))},Cr=function(t,r,e,n,o,i,a,s,u,c,f,l,p){f=wt(f),i=Er(o,i),s&&(s=Er(a,s)),c&&(c=Er(u,c)),p=Er(l,p);var d=ir(f);or(d,(function(){Pr("Cannot construct ".concat(f," due to unbound types"),[n])})),jt([t,r,e],n?[n]:[],(function(r){var e,o;r=r[0],o=n?(e=r.registeredClass).instancePrototype:rr.prototype;var a=er(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new _t("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new _t(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new _t("Tried to invoke ctor of ".concat(f," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(l.constructor_body).toString(),") parameters instead!"));return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var l=new ar(f,a,u,p,e,i,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new dr(f,l,!0,!1,!1),v=new dr(f+"*",l,!1,!1,!1),m=new dr(f+" const*",l,!1,!0,!1);return Lt[t]={pointerType:v,constPointerType:m},hr(d,a),[h,v,m]}))},Tr=function(t,r){for(var e=[],n=0;n<t;n++)e.push(x[r+4*n>>2]);return e},Sr=function(t){for(;t.length;){var r=t.pop();t.pop()(r)}},Or=function(t,r,e,n,o,i){var a=Tr(r,e);o=Er(n,o),jt([],[t],(function(t){t=t[0];var e="constructor ".concat(t.name);if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[r-1])throw new _t("Cannot register multiple constructors with identical number of parameters (".concat(r-1,") for class '").concat(t.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return t.registeredClass.constructor_body[r-1]=function(){Pr("Cannot construct ".concat(t.name," due to unbound types"),a)},jt([],a,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[r-1]=Dr(e,n,null,o,i),[]})),[]}))},Fr=function(t){var r=(t=t.trim()).indexOf("(");return-1!==r?t.substr(0,r):t},Ar=function(t,r,e,n,o,i,a,s,u){var c=Tr(e,n);r=wt(r),r=Fr(r),i=Er(o,i),jt([],[t],(function(t){t=t[0];var n="".concat(t.name,".").concat(r);function o(){Pr("Cannot call ".concat(n," due to unbound types"),c)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(r);var f=t.registeredClass.instancePrototype,l=f[r];return void 0===l||void 0===l.overloadTable&&l.className!==t.name&&l.argCount===e-2?(o.argCount=e-2,o.className=t.name,f[r]=o):(nr(f,r,n),f[r].overloadTable[e-2]=o),jt([],c,(function(o){var s=Dr(n,o,t,i,a,u);return void 0===f[r].overloadTable?(s.argCount=e-2,f[r]=s):f[r].overloadTable[e-2]=s,[]})),[]}))},Rr=new Mr,$r=function(t){t>=Rr.reserved&&0==--Rr.get(t).refcount&&Rr.free(t)},Ur=function(){for(var t=0,r=Rr.reserved;r<Rr.allocated.length;++r)void 0!==Rr.allocated[r]&&++t;return t},Nr=function(){Rr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Rr.reserved=Rr.allocated.length,e.count_emval_handles=Ur},Lr={toValue:function(t){return t||kt("Cannot use deleted val. handle = "+t),Rr.get(t).value},toHandle:function(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Rr.allocate({refcount:1,value:t})}}},Wr=function(t,r){r=wt(r),Ot(t,{name:r,fromWireType:function(t){var r=Lr.toValue(t);return $r(t),r},toWireType:function(t,r){return Lr.toHandle(r)},argPackAdvance:8,readValueFromPointer:zr,destructorFunction:null})},Br=function(t){if(null===t)return"null";var r=p(t);return"object"===r||"array"===r||"function"===r?t.toString():""+t},Hr=function(t,r){switch(r){case 4:return function(t){return this.fromWireType(M[t>>2])};case 8:return function(t){return this.fromWireType(R[t>>3])};default:throw new TypeError("invalid float width (".concat(r,"): ").concat(t))}},Vr=function(t,r,e){r=wt(r),Ot(t,{name:r,fromWireType:function(t){return t},toWireType:function(t,r){return r},argPackAdvance:8,readValueFromPointer:Hr(r,e),destructorFunction:null})},Yr=function(t,r,e){switch(r){case 1:return e?function(t){return j[t>>0]}:function(t){return D[t>>0]};case 2:return e?function(t){return O[t>>1]}:function(t){return F[t>>1]};case 4:return e?function(t){return A[t>>2]}:function(t){return x[t>>2]};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(t))}},qr=function(t,r,e,n,o){r=wt(r);var i=function(t){return t};if(0===n){var a=32-8*e;i=function(t){return t<<a>>>a}}var s=r.includes("unsigned");Ot(t,{name:r,fromWireType:i,toWireType:s?function(t,r){return this.name,r>>>0}:function(t,r){return this.name,r},argPackAdvance:8,readValueFromPointer:Yr(r,e,0!==n),destructorFunction:null})},Gr=function(t,r,e){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(t){var r=x[t>>2],e=x[t+4>>2];return new n(j.buffer,e,r)}e=wt(e),Ot(t,{name:e,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Xr=function(t,r,e,n){if(!(n>0))return 0;for(var o=e,i=e+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(e>=i)break;r[e++]=s}else if(s<=2047){if(e+1>=i)break;r[e++]=192|s>>6,r[e++]=128|63&s}else if(s<=65535){if(e+2>=i)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|63&s}else{if(e+3>=i)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|63&s}}return r[e]=0,e-o},Jr=function(t,r,e){return Xr(t,D,r,e)},Kr=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++e):r+=3}return r},Zr="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Qr=function(t,r,e){for(var n=r+e,o=r;t[o]&&!(o>=n);)++o;if(o-r>16&&t.buffer&&Zr)return Zr.decode(t.subarray(r,o));for(var i="";r<o;){var a=t[r++];if(128&a){var s=63&t[r++];if(192!=(224&a)){var u=63&t[r++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[r++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i},te=function(t,r){return t?Qr(D,t,r):""},re=function(t,r){var e="std::string"===(r=wt(r));Ot(t,{name:r,fromWireType:function(t){var r,n=x[t>>2],o=t+4;if(e)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==D[s]){var u=te(i,s-i);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(D[o+a]);r=c.join("")}return Fn(t),r},toWireType:function(t,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||kt("Cannot pass non-string to std::string"),n=e&&o?Kr(r):r.length;var i=On(4+n+1),a=i+4;if(x[i>>2]=n,e&&o)Jr(r,a,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Fn(a),kt("String has UTF-16 code units that do not fit in 8 bits")),D[a+s]=u}else for(s=0;s<n;++s)D[a+s]=r[s];return null!==t&&t.push(Fn,i),i},argPackAdvance:8,readValueFromPointer:lr,destructorFunction:function(t){Fn(t)}})},ee="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ne=function(t,r){for(var e=t,n=e>>1,o=n+r/2;!(n>=o)&&F[n];)++n;if((e=n<<1)-t>32&&ee)return ee.decode(D.subarray(t,e));for(var i="",a=0;!(a>=r/2);++a){var s=O[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i},oe=function(t,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var n=r,o=(e-=2)<2*t.length?e/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);O[r>>1]=a,r+=2}return O[r>>1]=0,r-n},ie=function(t){return 2*t.length},ae=function(t,r){for(var e=0,n="";!(e>=r/4);){var o=A[t+4*e>>2];if(0==o)break;if(++e,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n},se=function(t,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var n=r,o=n+e-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),A[r>>2]=a,(r+=4)+4>o)break}return A[r>>2]=0,r-n},ue=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n>=55296&&n<=57343&&++e,r+=4}return r},ce=function(t,r,e){var n,o,i,a,s;e=wt(e),2===r?(n=ne,o=oe,a=ie,i=function(){return F},s=1):4===r&&(n=ae,o=se,a=ue,i=function(){return x},s=2),Ot(t,{name:e,fromWireType:function(t){for(var e,o=x[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*r;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),u=f+r}}return Fn(t),e},toWireType:function(t,n){"string"!=typeof n&&kt("Cannot pass non-string to C++ string type ".concat(e));var i=a(n),u=On(4+i+r);return x[u>>2]=i>>s,o(n,u+4,i+r),null!==t&&t.push(Fn,u),u},argPackAdvance:8,readValueFromPointer:zr,destructorFunction:function(t){Fn(t)}})},fe=function(t,r){r=wt(r),Ot(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,r){}})},le=function(){return 1},pe={},de=function(t){var r=pe[t];return void 0===r?wt(t):r},he=[],ve=function(t,r,e,n,o){return(t=he[t])(r=Lr.toValue(r),r[e=de(e)],n,o)},me=function(t){var r=he.length;return he.push(t),r},ye=function(t,r){var e=bt[t];return void 0===e&&kt(r+" has unknown type "+kr(t)),e},we=function(t,r){for(var e=new Array(t),n=0;n<t;++n)e[n]=ye(x[r+4*n>>2],"parameter "+n);return e},ge=function(t,r,e){var n=[],o=t.toWireType(n,e);return n.length&&(x[r>>2]=Lr.toHandle(n)),o},be=function(t,r,e){var n=we(t,r),o=n.shift();t--;var i="return function (obj, func, destructorsRef, args) {\n",a=0,s=[];0===e&&s.push("obj");for(var u=["retType"],c=[o],f=0;f<t;++f)s.push("arg"+f),u.push("argType"+f),c.push(n[f]),i+="  var arg".concat(f," = argType").concat(f,".readValueFromPointer(args").concat(a?"+"+a:"",");\n"),a+=n[f].argPackAdvance;for(i+="  var rv = ".concat(1===e?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<t;++f)n[f].deleteObject&&(i+="  argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(ge),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",u.push(i);var l=jr(Function,u).apply(null,c),p="methodCaller<(".concat(n.map((function(t){return t.name})).join(", "),") => ").concat(o.name,">");return me(er(p,l))},Ee=function(t){t>4&&(Rr.get(t).refcount+=1)},_e=function(t){return Lr.toHandle(de(t))},Ie=function(){return Lr.toHandle({})},ke=function(t){var r=Lr.toValue(t);Sr(r),$r(t)},Pe=function(t,r,e){t=Lr.toValue(t),r=Lr.toValue(r),e=Lr.toValue(e),t[r]=e},Ce=function(t,r){var e=(t=ye(t,"_emval_take_value")).readValueFromPointer(r);return Lr.toHandle(e)},Te=function(t){return t%4==0&&(t%100!=0||t%400==0)},Se=[0,31,60,91,121,152,182,213,244,274,305,335],je=[0,31,59,90,120,151,181,212,243,273,304,334],De=function(t){return(Te(t.getFullYear())?Se:je)[t.getMonth()]+t.getDate()-1},Oe=function(t,r){return r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN},Ae=function(t){var r=Kr(t)+1,e=On(r);return e&&Jr(t,e,r),e},xe=function(t,r,e){var n=(new Date).getFullYear(),o=new Date(n,0,1),i=new Date(n,6,1),a=o.getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.max(a,s);function c(t){var r=t.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}x[t>>2]=60*u,A[r>>2]=Number(a!=s);var f=c(o),l=c(i),p=Ae(f),d=Ae(l);s<a?(x[e>>2]=p,x[e+4>>2]=d):(x[e>>2]=d,x[e+4>>2]=p)},Me=function(){tt("")},Re=function(){return Date.now()},$e=function(){return performance.now()},Ue=function(t,r,e){return D.copyWithin(t,r,r+e)},Ne=function(t){tt("OOM")},Le=function(t){D.length,Ne()},ze={},We=function(){return a||"./this.program"},Be=function t(){if(!t.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":p(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:We()};for(var e in ze)void 0===ze[e]?delete r[e]:r[e]=ze[e];var n=[];for(var e in r)n.push("".concat(e,"=").concat(r[e]));t.strings=n}return t.strings},He=function(t,r){for(var e=0;e<t.length;++e)j[r++>>0]=t.charCodeAt(e);j[r>>0]=0},Ve={isAbs:function(t){return"/"===t.charAt(0)},splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e;e--)t.unshift("..");return t},normalize:function(t){var r=Ve.isAbs(t),e="/"===t.substr(-1);return(t=Ve.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t},dirname:function(t){var r=Ve.splitPath(t),e=r[0],n=r[1];return e||n?(n&&(n=n.substr(0,n.length-1)),e+n):"."},basename:function(t){if("/"===t)return"/";var r=(t=(t=Ve.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?t:t.substr(r+1)},join:function(){var t=Array.prototype.slice.call(arguments);return Ve.normalize(t.join("/"))},join2:function(t,r){return Ve.normalize(t+"/"+r)}},Ye=function(){if("object"==("undefined"==typeof crypto?"undefined":p(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(f)try{var t=g("crypto");if(t.randomFillSync)return function(r){return t.randomFillSync(r)};var r=t.randomBytes;return function(t){return t.set(r(t.byteLength)),t}}catch(t){}tt("initRandomDevice")},qe=function(t){return(qe=Ye())(t)},Ge={resolve:function(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:cn.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=Ve.isAbs(n)}return(r?"/":"")+(t=Ve.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||"."},relative:function(t,r){function e(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}t=Ge.resolve(t).substr(1),r=Ge.resolve(r).substr(1);for(var n=e(t.split("/")),o=e(r.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(a))).join("/")}},Xe=[],Ke=function(){if(!Xe.length){var t=null;if(f){var r=Buffer.alloc(256),e=0,n=process.stdin.fd;try{e=b.readSync(n,r)}catch(t){if(!t.toString().includes("EOF"))throw t;e=0}t=e>0?r.slice(0,e).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;Xe=Je(t,!0)}return Xe.shift()},Ze={ttys:[],init:function(){},shutdown:function(){},register:function(t,r){Ze.ttys[t]={input:[],output:[],ops:r},cn.registerDevice(t,Ze.stream_ops)},stream_ops:{open:function(t){var r=Ze.ttys[t.node.rdev];if(!r)throw new cn.ErrnoError(43);t.tty=r,t.seekable=!1},close:function(t){t.tty.ops.fsync(t.tty)},fsync:function(t){t.tty.ops.fsync(t.tty)},read:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.get_char)throw new cn.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new cn.ErrnoError(29)}if(void 0===s&&0===i)throw new cn.ErrnoError(6);if(null==s)break;i++,r[e+a]=s}return i&&(t.node.timestamp=Date.now()),i},write:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.put_char)throw new cn.ErrnoError(60);try{for(var i=0;i<n;i++)t.tty.ops.put_char(t.tty,r[e+i])}catch(t){throw new cn.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(t){return Ke()},put_char:function(t,r){null===r||10===r?(_(Qr(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(_(Qr(t.output,0)),t.output=[])},ioctl_tcgets:function(t){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(t,r,e){return 0},ioctl_tiocgwinsz:function(t){return[24,80]}},default_tty1_ops:{put_char:function(t,r){null===r||10===r?(I(Qr(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(I(Qr(t.output,0)),t.output=[])}}},Qe=function(t){tt()},tn={ops_table:null,mount:function(t){return tn.createNode(null,"/",16895,0)},createNode:function(t,r,e,n){if(cn.isBlkdev(e)||cn.isFIFO(e))throw new cn.ErrnoError(63);tn.ops_table||(tn.ops_table={dir:{node:{getattr:tn.node_ops.getattr,setattr:tn.node_ops.setattr,lookup:tn.node_ops.lookup,mknod:tn.node_ops.mknod,rename:tn.node_ops.rename,unlink:tn.node_ops.unlink,rmdir:tn.node_ops.rmdir,readdir:tn.node_ops.readdir,symlink:tn.node_ops.symlink},stream:{llseek:tn.stream_ops.llseek}},file:{node:{getattr:tn.node_ops.getattr,setattr:tn.node_ops.setattr},stream:{llseek:tn.stream_ops.llseek,read:tn.stream_ops.read,write:tn.stream_ops.write,allocate:tn.stream_ops.allocate,mmap:tn.stream_ops.mmap,msync:tn.stream_ops.msync}},link:{node:{getattr:tn.node_ops.getattr,setattr:tn.node_ops.setattr,readlink:tn.node_ops.readlink},stream:{}},chrdev:{node:{getattr:tn.node_ops.getattr,setattr:tn.node_ops.setattr},stream:cn.chrdev_stream_ops}});var o=cn.createNode(t,r,e,n);return cn.isDir(o.mode)?(o.node_ops=tn.ops_table.dir.node,o.stream_ops=tn.ops_table.dir.stream,o.contents={}):cn.isFile(o.mode)?(o.node_ops=tn.ops_table.file.node,o.stream_ops=tn.ops_table.file.stream,o.usedBytes=0,o.contents=null):cn.isLink(o.mode)?(o.node_ops=tn.ops_table.link.node,o.stream_ops=tn.ops_table.link.stream):cn.isChrdev(o.mode)&&(o.node_ops=tn.ops_table.chrdev.node,o.stream_ops=tn.ops_table.chrdev.stream),o.timestamp=Date.now(),t&&(t.contents[r]=o,t.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,r){var e=t.contents?t.contents.length:0;if(!(e>=r)){r=Math.max(r,e*(e<1048576?2:1.125)>>>0),0!=e&&(r=Math.max(r,256));var n=t.contents;t.contents=new Uint8Array(r),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,r){if(t.usedBytes!=r)if(0==r)t.contents=null,t.usedBytes=0;else{var e=t.contents;t.contents=new Uint8Array(r),e&&t.contents.set(e.subarray(0,Math.min(r,t.usedBytes))),t.usedBytes=r}},node_ops:{getattr:function(t){var r={};return r.dev=cn.isChrdev(t.mode)?t.id:1,r.ino=t.id,r.mode=t.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=t.rdev,cn.isDir(t.mode)?r.size=4096:cn.isFile(t.mode)?r.size=t.usedBytes:cn.isLink(t.mode)?r.size=t.link.length:r.size=0,r.atime=new Date(t.timestamp),r.mtime=new Date(t.timestamp),r.ctime=new Date(t.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(t,r){void 0!==r.mode&&(t.mode=r.mode),void 0!==r.timestamp&&(t.timestamp=r.timestamp),void 0!==r.size&&tn.resizeFileStorage(t,r.size)},lookup:function(t,r){throw cn.genericErrors[44]},mknod:function(t,r,e,n){return tn.createNode(t,r,e,n)},rename:function(t,r,e){if(cn.isDir(t.mode)){var n;try{n=cn.lookupNode(r,e)}catch(t){}if(n)for(var o in n.contents)throw new cn.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=e,r.contents[e]=t,r.timestamp=t.parent.timestamp,t.parent=r},unlink:function(t,r){delete t.contents[r],t.timestamp=Date.now()},rmdir:function(t,r){var e=cn.lookupNode(t,r);for(var n in e.contents)throw new cn.ErrnoError(55);delete t.contents[r],t.timestamp=Date.now()},readdir:function(t){var r=[".",".."];for(var e in t.contents)t.contents.hasOwnProperty(e)&&r.push(e);return r},symlink:function(t,r,e){var n=tn.createNode(t,r,41471,0);return n.link=e,n},readlink:function(t){if(!cn.isLink(t.mode))throw new cn.ErrnoError(28);return t.link}},stream_ops:{read:function(t,r,e,n,o){var i=t.node.contents;if(o>=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-o,n);if(a>8&&i.subarray)r.set(i.subarray(o,o+a),e);else for(var s=0;s<a;s++)r[e+s]=i[o+s];return a},write:function(t,r,e,n,o,i){if(!n)return 0;var a=t.node;if(a.timestamp=Date.now(),r.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=r.subarray(e,e+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=r.slice(e,e+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(r.subarray(e,e+n),o),n}if(tn.expandFileStorage(a,o+n),a.contents.subarray&&r.subarray)a.contents.set(r.subarray(e,e+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=r[e+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(t,r,e){var n=r;if(1===e?n+=t.position:2===e&&cn.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new cn.ErrnoError(28);return n},allocate:function(t,r,e){tn.expandFileStorage(t.node,r+e),t.node.usedBytes=Math.max(t.node.usedBytes,r+e)},mmap:function(t,r,e,n,o){if(!cn.isFile(t.node.mode))throw new cn.ErrnoError(43);var i,a,s=t.node.contents;if(2&o||s.buffer!==j.buffer){if((e>0||e+r<s.length)&&(s=s.subarray?s.subarray(e,e+r):Array.prototype.slice.call(s,e,e+r)),a=!0,!(i=Qe()))throw new cn.ErrnoError(48);j.set(s,i)}else a=!1,i=s.byteOffset;return{ptr:i,allocated:a}},msync:function(t,r,e,n,o){return tn.stream_ops.write(t,r,0,n,e,!1),0}}},rn=function(t,r,e,n){var o=n?"":K("al ".concat(t));v(t,(function(e){S(e,'Loading data file "'.concat(t,'" failed (no arrayBuffer).')),r(new Uint8Array(e)),o&&Q(o)}),(function(r){if(!e)throw'Loading data file "'.concat(t,'" failed.');e()})),o&&Z(o)},en=function(t,r,e,n,o,i){cn.createDataFile(t,r,e,n,o,i)},nn=e.preloadPlugins||[],on=function(t,r,e,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return nn.forEach((function(i){o||i.canHandle(r)&&(i.handle(t,r,e,n),o=!0)})),o},an=function(t,r,e,n,o,i,a,s,u,c){var f=r?Ge.resolve(Ve.join2(t,r)):t,l=K("cp ".concat(f));function p(e){function p(e){c&&c(),s||en(t,r,e,n,o,u),i&&i(),Q(l)}on(e,f,p,(function(){a&&a(),Q(l)}))||p(e)}Z(l),"string"==typeof e?rn(e,(function(t){return p(t)}),a):p(e)},sn=function(t){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===r)throw new Error("Unknown file open mode: ".concat(t));return r},un=function(t,r){var e=0;return t&&(e|=365),r&&(e|=146),e},cn={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=Ge.resolve(t)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new cn.ErrnoError(32);for(var e=t.split("/").filter((function(t){return!!t})),n=cn.root,o="/",i=0;i<e.length;i++){var a=i===e.length-1;if(a&&r.parent)break;if(n=cn.lookupNode(n,e[i]),o=Ve.join2(o,e[i]),cn.isMountpoint(n)&&(!a||a&&r.follow_mount)&&(n=n.mounted.root),!a||r.follow)for(var s=0;cn.isLink(n.mode);){var u=cn.readlink(o);if(o=Ge.resolve(Ve.dirname(o),u),n=cn.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new cn.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var r;;){if(cn.isRoot(t)){var e=t.mount.mountpoint;return r?"/"!==e[e.length-1]?"".concat(e,"/").concat(r):e+r:e}r=r?"".concat(t.name,"/").concat(r):t.name,t=t.parent}},hashName:function(t,r){for(var e=0,n=0;n<r.length;n++)e=(e<<5)-e+r.charCodeAt(n)|0;return(t+e>>>0)%cn.nameTable.length},hashAddNode:function(t){var r=cn.hashName(t.parent.id,t.name);t.name_next=cn.nameTable[r],cn.nameTable[r]=t},hashRemoveNode:function(t){var r=cn.hashName(t.parent.id,t.name);if(cn.nameTable[r]===t)cn.nameTable[r]=t.name_next;else for(var e=cn.nameTable[r];e;){if(e.name_next===t){e.name_next=t.name_next;break}e=e.name_next}},lookupNode:function(t,r){var e=cn.mayLookup(t);if(e)throw new cn.ErrnoError(e,t);for(var n=cn.hashName(t.id,r),o=cn.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===t.id&&i===r)return o}return cn.lookup(t,r)},createNode:function(t,r,e,n){var o=new cn.FSNode(t,r,e,n);return cn.hashAddNode(o),o},destroyNode:function(t){cn.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagsToPermissionString:function(t){var r=["r","w","rw"][3&t];return 512&t&&(r+="w"),r},nodePermissions:function(t,r){return cn.ignorePermissions||(!r.includes("r")||292&t.mode)&&(!r.includes("w")||146&t.mode)&&(!r.includes("x")||73&t.mode)?0:2},mayLookup:function(t){var r=cn.nodePermissions(t,"x");return r||(t.node_ops.lookup?0:2)},mayCreate:function(t,r){try{return cn.lookupNode(t,r),20}catch(t){}return cn.nodePermissions(t,"wx")},mayDelete:function(t,r,e){var n;try{n=cn.lookupNode(t,r)}catch(t){return t.errno}var o=cn.nodePermissions(t,"wx");if(o)return o;if(e){if(!cn.isDir(n.mode))return 54;if(cn.isRoot(n)||cn.getPath(n)===cn.cwd())return 10}else if(cn.isDir(n.mode))return 31;return 0},mayOpen:function(t,r){return t?cn.isLink(t.mode)?32:cn.isDir(t.mode)&&("r"!==cn.flagsToPermissionString(r)||512&r)?31:cn.nodePermissions(t,cn.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=cn.MAX_OPEN_FDS;t++)if(!cn.streams[t])return t;throw new cn.ErrnoError(33)},getStreamChecked:function(t){var r=cn.getStream(t);if(!r)throw new cn.ErrnoError(8);return r},getStream:function(t){return cn.streams[t]},createStream:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return cn.FSStream||(cn.FSStream=function(){this.shared={}},cn.FSStream.prototype={},Object.defineProperties(cn.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(t){this.shared.flags=t}},position:{get:function(){return this.shared.position},set:function(t){this.shared.position=t}}})),t=Object.assign(new cn.FSStream,t),-1==r&&(r=cn.nextfd()),t.fd=r,cn.streams[r]=t,t},closeStream:function(t){cn.streams[t]=null},chrdev_stream_ops:{open:function(t){var r=cn.getDevice(t.node.rdev);t.stream_ops=r.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new cn.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,r){return t<<8|r},registerDevice:function(t,r){cn.devices[t]={stream_ops:r}},getDevice:function(t){return cn.devices[t]},getMounts:function(t){for(var r=[],e=[t];e.length;){var n=e.pop();r.push(n),e.push.apply(e,n.mounts)}return r},syncfs:function(t,r){"function"==typeof t&&(r=t,t=!1),cn.syncFSRequests++,cn.syncFSRequests>1&&I("warning: ".concat(cn.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var e=cn.getMounts(cn.root.mount),n=0;function o(t){return cn.syncFSRequests--,r(t)}function i(t){if(t)return i.errored?void 0:(i.errored=!0,o(t));++n>=e.length&&o(null)}e.forEach((function(r){if(!r.type.syncfs)return i(null);r.type.syncfs(r,t,i)}))},mount:function(t,r,e){var n,o="/"===e,i=!e;if(o&&cn.root)throw new cn.ErrnoError(10);if(!o&&!i){var a=cn.lookupPath(e,{follow_mount:!1});if(e=a.path,n=a.node,cn.isMountpoint(n))throw new cn.ErrnoError(10);if(!cn.isDir(n.mode))throw new cn.ErrnoError(54)}var s={type:t,opts:r,mountpoint:e,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?cn.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var r=cn.lookupPath(t,{follow_mount:!1});if(!cn.isMountpoint(r.node))throw new cn.ErrnoError(28);var e=r.node,n=e.mounted,o=cn.getMounts(n);Object.keys(cn.nameTable).forEach((function(t){for(var r=cn.nameTable[t];r;){var e=r.name_next;o.includes(r.mount)&&cn.destroyNode(r),r=e}})),e.mounted=null;var i=e.mount.mounts.indexOf(n);e.mount.mounts.splice(i,1)},lookup:function(t,r){return t.node_ops.lookup(t,r)},mknod:function(t,r,e){var n=cn.lookupPath(t,{parent:!0}).node,o=Ve.basename(t);if(!o||"."===o||".."===o)throw new cn.ErrnoError(28);var i=cn.mayCreate(n,o);if(i)throw new cn.ErrnoError(i);if(!n.node_ops.mknod)throw new cn.ErrnoError(63);return n.node_ops.mknod(n,o,r,e)},create:function(t,r){return r=void 0!==r?r:438,r&=4095,r|=32768,cn.mknod(t,r,0)},mkdir:function(t,r){return r=void 0!==r?r:511,r&=1023,r|=16384,cn.mknod(t,r,0)},mkdirTree:function(t,r){for(var e=t.split("/"),n="",o=0;o<e.length;++o)if(e[o]){n+="/"+e[o];try{cn.mkdir(n,r)}catch(t){if(20!=t.errno)throw t}}},mkdev:function(t,r,e){return void 0===e&&(e=r,r=438),r|=8192,cn.mknod(t,r,e)},symlink:function(t,r){if(!Ge.resolve(t))throw new cn.ErrnoError(44);var e=cn.lookupPath(r,{parent:!0}).node;if(!e)throw new cn.ErrnoError(44);var n=Ve.basename(r),o=cn.mayCreate(e,n);if(o)throw new cn.ErrnoError(o);if(!e.node_ops.symlink)throw new cn.ErrnoError(63);return e.node_ops.symlink(e,n,t)},rename:function(t,r){var e,n,o=Ve.dirname(t),i=Ve.dirname(r),a=Ve.basename(t),s=Ve.basename(r);if(e=cn.lookupPath(t,{parent:!0}).node,n=cn.lookupPath(r,{parent:!0}).node,!e||!n)throw new cn.ErrnoError(44);if(e.mount!==n.mount)throw new cn.ErrnoError(75);var u,c=cn.lookupNode(e,a),f=Ge.relative(t,i);if("."!==f.charAt(0))throw new cn.ErrnoError(28);if("."!==(f=Ge.relative(r,o)).charAt(0))throw new cn.ErrnoError(55);try{u=cn.lookupNode(n,s)}catch(t){}if(c!==u){var l=cn.isDir(c.mode),p=cn.mayDelete(e,a,l);if(p)throw new cn.ErrnoError(p);if(p=u?cn.mayDelete(n,s,l):cn.mayCreate(n,s))throw new cn.ErrnoError(p);if(!e.node_ops.rename)throw new cn.ErrnoError(63);if(cn.isMountpoint(c)||u&&cn.isMountpoint(u))throw new cn.ErrnoError(10);if(n!==e&&(p=cn.nodePermissions(e,"w")))throw new cn.ErrnoError(p);cn.hashRemoveNode(c);try{e.node_ops.rename(c,n,s)}catch(t){throw t}finally{cn.hashAddNode(c)}}},rmdir:function(t){var r=cn.lookupPath(t,{parent:!0}).node,e=Ve.basename(t),n=cn.lookupNode(r,e),o=cn.mayDelete(r,e,!0);if(o)throw new cn.ErrnoError(o);if(!r.node_ops.rmdir)throw new cn.ErrnoError(63);if(cn.isMountpoint(n))throw new cn.ErrnoError(10);r.node_ops.rmdir(r,e),cn.destroyNode(n)},readdir:function(t){var r=cn.lookupPath(t,{follow:!0}).node;if(!r.node_ops.readdir)throw new cn.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(t){var r=cn.lookupPath(t,{parent:!0}).node;if(!r)throw new cn.ErrnoError(44);var e=Ve.basename(t),n=cn.lookupNode(r,e),o=cn.mayDelete(r,e,!1);if(o)throw new cn.ErrnoError(o);if(!r.node_ops.unlink)throw new cn.ErrnoError(63);if(cn.isMountpoint(n))throw new cn.ErrnoError(10);r.node_ops.unlink(r,e),cn.destroyNode(n)},readlink:function(t){var r=cn.lookupPath(t).node;if(!r)throw new cn.ErrnoError(44);if(!r.node_ops.readlink)throw new cn.ErrnoError(28);return Ge.resolve(cn.getPath(r.parent),r.node_ops.readlink(r))},stat:function(t,r){var e=cn.lookupPath(t,{follow:!r}).node;if(!e)throw new cn.ErrnoError(44);if(!e.node_ops.getattr)throw new cn.ErrnoError(63);return e.node_ops.getattr(e)},lstat:function(t){return cn.stat(t,!0)},chmod:function(t,r,e){var n;if(!(n="string"==typeof t?cn.lookupPath(t,{follow:!e}).node:t).node_ops.setattr)throw new cn.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,r){cn.chmod(t,r,!0)},fchmod:function(t,r){var e=cn.getStreamChecked(t);cn.chmod(e.node,r)},chown:function(t,r,e,n){var o;if(!(o="string"==typeof t?cn.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new cn.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,r,e){cn.chown(t,r,e,!0)},fchown:function(t,r,e){var n=cn.getStreamChecked(t);cn.chown(n.node,r,e)},truncate:function(t,r){if(r<0)throw new cn.ErrnoError(28);var e;if(!(e="string"==typeof t?cn.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new cn.ErrnoError(63);if(cn.isDir(e.mode))throw new cn.ErrnoError(31);if(!cn.isFile(e.mode))throw new cn.ErrnoError(28);var n=cn.nodePermissions(e,"w");if(n)throw new cn.ErrnoError(n);e.node_ops.setattr(e,{size:r,timestamp:Date.now()})},ftruncate:function(t,r){var e=cn.getStreamChecked(t);if(0==(2097155&e.flags))throw new cn.ErrnoError(28);cn.truncate(e.node,r)},utime:function(t,r,e){var n=cn.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,e)})},open:function(t,r,n){if(""===t)throw new cn.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(r="string"==typeof r?sn(r):r)?4095&n|32768:0,"object"==p(t))o=t;else{t=Ve.normalize(t);try{o=cn.lookupPath(t,{follow:!(131072&r)}).node}catch(t){}}var i=!1;if(64&r)if(o){if(128&r)throw new cn.ErrnoError(20)}else o=cn.mknod(t,n,0),i=!0;if(!o)throw new cn.ErrnoError(44);if(cn.isChrdev(o.mode)&&(r&=-513),65536&r&&!cn.isDir(o.mode))throw new cn.ErrnoError(54);if(!i){var a=cn.mayOpen(o,r);if(a)throw new cn.ErrnoError(a)}512&r&&!i&&cn.truncate(o,0),r&=-131713;var s=cn.createStream({node:o,path:cn.getPath(o),flags:r,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!e.logReadFiles||1&r||(cn.readFiles||(cn.readFiles={}),t in cn.readFiles||(cn.readFiles[t]=1)),s},close:function(t){if(cn.isClosed(t))throw new cn.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{cn.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,r,e){if(cn.isClosed(t))throw new cn.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new cn.ErrnoError(70);if(0!=e&&1!=e&&2!=e)throw new cn.ErrnoError(28);return t.position=t.stream_ops.llseek(t,r,e),t.ungotten=[],t.position},read:function(t,r,e,n,o){if(n<0||o<0)throw new cn.ErrnoError(28);if(cn.isClosed(t))throw new cn.ErrnoError(8);if(1==(2097155&t.flags))throw new cn.ErrnoError(8);if(cn.isDir(t.node.mode))throw new cn.ErrnoError(31);if(!t.stream_ops.read)throw new cn.ErrnoError(28);var i=void 0!==o;if(i){if(!t.seekable)throw new cn.ErrnoError(70)}else o=t.position;var a=t.stream_ops.read(t,r,e,n,o);return i||(t.position+=a),a},write:function(t,r,e,n,o,i){if(n<0||o<0)throw new cn.ErrnoError(28);if(cn.isClosed(t))throw new cn.ErrnoError(8);if(0==(2097155&t.flags))throw new cn.ErrnoError(8);if(cn.isDir(t.node.mode))throw new cn.ErrnoError(31);if(!t.stream_ops.write)throw new cn.ErrnoError(28);t.seekable&&1024&t.flags&&cn.llseek(t,0,2);var a=void 0!==o;if(a){if(!t.seekable)throw new cn.ErrnoError(70)}else o=t.position;var s=t.stream_ops.write(t,r,e,n,o,i);return a||(t.position+=s),s},allocate:function(t,r,e){if(cn.isClosed(t))throw new cn.ErrnoError(8);if(r<0||e<=0)throw new cn.ErrnoError(28);if(0==(2097155&t.flags))throw new cn.ErrnoError(8);if(!cn.isFile(t.node.mode)&&!cn.isDir(t.node.mode))throw new cn.ErrnoError(43);if(!t.stream_ops.allocate)throw new cn.ErrnoError(138);t.stream_ops.allocate(t,r,e)},mmap:function(t,r,e,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&t.flags))throw new cn.ErrnoError(2);if(1==(2097155&t.flags))throw new cn.ErrnoError(2);if(!t.stream_ops.mmap)throw new cn.ErrnoError(43);return t.stream_ops.mmap(t,r,e,n,o)},msync:function(t,r,e,n,o){return t.stream_ops.msync?t.stream_ops.msync(t,r,e,n,o):0},munmap:function(t){return 0},ioctl:function(t,r,e){if(!t.stream_ops.ioctl)throw new cn.ErrnoError(59);return t.stream_ops.ioctl(t,r,e)},readFile:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error('Invalid encoding type "'.concat(e.encoding,'"'));var n=cn.open(t,e.flags),o=cn.stat(t).size,i=new Uint8Array(o);return cn.read(n,i,0,o,0),"utf8"===e.encoding?r=Qr(i,0):"binary"===e.encoding&&(r=i),cn.close(n),r},writeFile:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.flags=e.flags||577;var n=cn.open(t,e.flags,e.mode);if("string"==typeof r){var o=new Uint8Array(Kr(r)+1),i=Xr(r,o,0,o.length);cn.write(n,o,0,i,void 0,e.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");cn.write(n,r,0,r.byteLength,void 0,e.canOwn)}cn.close(n)},cwd:function(){return cn.currentPath},chdir:function(t){var r=cn.lookupPath(t,{follow:!0});if(null===r.node)throw new cn.ErrnoError(44);if(!cn.isDir(r.node.mode))throw new cn.ErrnoError(54);var e=cn.nodePermissions(r.node,"x");if(e)throw new cn.ErrnoError(e);cn.currentPath=r.path},createDefaultDirectories:function(){cn.mkdir("/tmp"),cn.mkdir("/home"),cn.mkdir("/home/web_user")},createDefaultDevices:function(){cn.mkdir("/dev"),cn.registerDevice(cn.makedev(1,3),{read:function(){return 0},write:function(t,r,e,n,o){return n}}),cn.mkdev("/dev/null",cn.makedev(1,3)),Ze.register(cn.makedev(5,0),Ze.default_tty_ops),Ze.register(cn.makedev(6,0),Ze.default_tty1_ops),cn.mkdev("/dev/tty",cn.makedev(5,0)),cn.mkdev("/dev/tty1",cn.makedev(6,0));var t=new Uint8Array(1024),r=0,e=function(){return 0===r&&(r=qe(t).byteLength),t[--r]};cn.createDevice("/dev","random",e),cn.createDevice("/dev","urandom",e),cn.mkdir("/dev/shm"),cn.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){cn.mkdir("/proc");var t=cn.mkdir("/proc/self");cn.mkdir("/proc/self/fd"),cn.mount({mount:function(){var r=cn.createNode(t,"fd",16895,73);return r.node_ops={lookup:function(t,r){var e=+r,n=cn.getStreamChecked(e),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams:function(){e.stdin?cn.createDevice("/dev","stdin",e.stdin):cn.symlink("/dev/tty","/dev/stdin"),e.stdout?cn.createDevice("/dev","stdout",null,e.stdout):cn.symlink("/dev/tty","/dev/stdout"),e.stderr?cn.createDevice("/dev","stderr",null,e.stderr):cn.symlink("/dev/tty1","/dev/stderr"),cn.open("/dev/stdin",0),cn.open("/dev/stdout",1),cn.open("/dev/stderr",1)},ensureErrnoError:function(){cn.ErrnoError||(cn.ErrnoError=function(t,r){this.name="ErrnoError",this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},cn.ErrnoError.prototype=new Error,cn.ErrnoError.prototype.constructor=cn.ErrnoError,[44].forEach((function(t){cn.genericErrors[t]=new cn.ErrnoError(t),cn.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){cn.ensureErrnoError(),cn.nameTable=new Array(4096),cn.mount(tn,{},"/"),cn.createDefaultDirectories(),cn.createDefaultDevices(),cn.createSpecialDirectories(),cn.filesystems={MEMFS:tn}},init:function(t,r,n){cn.init.initialized=!0,cn.ensureErrnoError(),e.stdin=t||e.stdin,e.stdout=r||e.stdout,e.stderr=n||e.stderr,cn.createStandardStreams()},quit:function(){cn.init.initialized=!1;for(var t=0;t<cn.streams.length;t++){var r=cn.streams[t];r&&cn.close(r)}},findObject:function(t,r){var e=cn.analyzePath(t,r);return e.exists?e.object:null},analyzePath:function(t,r){try{t=(n=cn.lookupPath(t,{follow:!r})).path}catch(t){}var e={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=cn.lookupPath(t,{parent:!0});e.parentExists=!0,e.parentPath=n.path,e.parentObject=n.node,e.name=Ve.basename(t),n=cn.lookupPath(t,{follow:!r}),e.exists=!0,e.path=n.path,e.object=n.node,e.name=n.node.name,e.isRoot="/"===n.path}catch(t){e.error=t.errno}return e},createPath:function(t,r,e,n){t="string"==typeof t?t:cn.getPath(t);for(var o=r.split("/").reverse();o.length;){var i=o.pop();if(i){var a=Ve.join2(t,i);try{cn.mkdir(a)}catch(t){}t=a}}return a},createFile:function(t,r,e,n,o){var i=Ve.join2("string"==typeof t?t:cn.getPath(t),r),a=un(n,o);return cn.create(i,a)},createDataFile:function(t,r,e,n,o,i){var a=r;t&&(t="string"==typeof t?t:cn.getPath(t),a=r?Ve.join2(t,r):t);var s=un(n,o),u=cn.create(a,s);if(e){if("string"==typeof e){for(var c=new Array(e.length),f=0,l=e.length;f<l;++f)c[f]=e.charCodeAt(f);e=c}cn.chmod(u,146|s);var p=cn.open(u,577);cn.write(p,e,0,e.length,0,i),cn.close(p),cn.chmod(u,s)}},createDevice:function(t,r,e,n){var o=Ve.join2("string"==typeof t?t:cn.getPath(t),r),i=un(!!e,!!n);cn.createDevice.major||(cn.createDevice.major=64);var a=cn.makedev(cn.createDevice.major++,0);return cn.registerDevice(a,{open:function(t){t.seekable=!1},close:function(t){n&&n.buffer&&n.buffer.length&&n(10)},read:function(t,r,n,o,i){for(var a=0,s=0;s<o;s++){var u;try{u=e()}catch(t){throw new cn.ErrnoError(29)}if(void 0===u&&0===a)throw new cn.ErrnoError(6);if(null==u)break;a++,r[n+s]=u}return a&&(t.node.timestamp=Date.now()),a},write:function(t,r,e,o,i){for(var a=0;a<o;a++)try{n(r[e+a])}catch(t){throw new cn.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),a}}),cn.mkdev(o,i,a)},forceLoadFile:function(t){if(t.isDevice||t.isFolder||t.link||t.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!h)throw new Error("Cannot load without read() or XMLHttpRequest.");try{t.contents=Je(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new cn.ErrnoError(29)}},createLazyFile:function(t,r,e,n,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(t){if(!(t>this.length-1||t<0)){var r=t%this.chunkSize,e=t/this.chunkSize|0;return this.getter(e)[r]}},i.prototype.setDataGetter=function(t){this.getter=t},i.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",e,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+e+". Status: "+t.status);var r,n=Number(t.getResponseHeader("Content-length")),o=(r=t.getResponseHeader("Accept-Ranges"))&&"bytes"===r,i=(r=t.getResponseHeader("Content-Encoding"))&&"gzip"===r,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(t){var r=t*a,o=(t+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,r){if(t>r)throw new Error("invalid range ("+t+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",e,!1),n!==a&&o.setRequestHeader("Range","bytes="+t+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+e+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Je(o.responseText||"",!0)}(r,o)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,_("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a=new i;Object.defineProperties(a,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:a}}else s={isDevice:!1,url:e};var u=cn.createFile(t,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var f={};function l(t,r,e,n,o){var i=t.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var s=0;s<a;s++)r[e+s]=i[o+s];else for(s=0;s<a;s++)r[e+s]=i.get(o+s);return a}return Object.keys(u.stream_ops).forEach((function(t){var r=u.stream_ops[t];f[t]=function(){return cn.forceLoadFile(u),r.apply(null,arguments)}})),f.read=function(t,r,e,n,o){return cn.forceLoadFile(u),l(t,r,e,n,o)},f.mmap=function(t,r,e,n,o){cn.forceLoadFile(u);var i=Qe();if(!i)throw new cn.ErrnoError(48);return l(t,j,i,r,e),{ptr:i,allocated:!0}},u.stream_ops=f,u}},fn={DEFAULT_POLLMASK:5,calculateAt:function(t,r,e){if(Ve.isAbs(r))return r;var n;if(n=-100===t?cn.cwd():fn.getStreamFromFD(t).path,0==r.length){if(!e)throw new cn.ErrnoError(44);return n}return Ve.join2(n,r)},doStat:function(t,r,e){try{var n=t(r)}catch(t){if(t&&t.node&&Ve.normalize(r)!==Ve.normalize(cn.getPath(t.node)))return-54;throw t}A[e>>2]=n.dev,A[e+4>>2]=n.mode,x[e+8>>2]=n.nlink,A[e+12>>2]=n.uid,A[e+16>>2]=n.gid,A[e+20>>2]=n.rdev,lt=[n.size>>>0,(ft=n.size,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[e+24>>2]=lt[0],A[e+28>>2]=lt[1],A[e+32>>2]=4096,A[e+36>>2]=n.blocks;var o=n.atime.getTime(),i=n.mtime.getTime(),a=n.ctime.getTime();return lt=[Math.floor(o/1e3)>>>0,(ft=Math.floor(o/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[e+40>>2]=lt[0],A[e+44>>2]=lt[1],x[e+48>>2]=o%1e3*1e3,lt=[Math.floor(i/1e3)>>>0,(ft=Math.floor(i/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[e+56>>2]=lt[0],A[e+60>>2]=lt[1],x[e+64>>2]=i%1e3*1e3,lt=[Math.floor(a/1e3)>>>0,(ft=Math.floor(a/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[e+72>>2]=lt[0],A[e+76>>2]=lt[1],x[e+80>>2]=a%1e3*1e3,lt=[n.ino>>>0,(ft=n.ino,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],A[e+88>>2]=lt[0],A[e+92>>2]=lt[1],0},doMsync:function(t,r,e,n,o){if(!cn.isFile(r.node.mode))throw new cn.ErrnoError(43);if(2&n)return 0;var i=D.slice(t,t+e);cn.msync(r,i,o,e,n)},varargs:void 0,get:function(){var t=A[+fn.varargs>>2];return fn.varargs+=4,t},getp:function(){return fn.get()},getStr:function(t){return te(t)},getStreamFromFD:function(t){return cn.getStreamChecked(t)}},ln=function(t,r){var e=0;return Be().forEach((function(n,o){var i=r+e;x[t+4*o>>2]=i,He(n,i),e+=n.length+1})),0},pn=function(t,r){var e=Be();x[t>>2]=e.length;var n=0;return e.forEach((function(t){return n+=t.length+1})),x[r>>2]=n,0},hn=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=x[r>>2],s=x[r+4>>2];r+=8;var u=cn.read(t,j,a,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},yn=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=x[r>>2],s=x[r+4>>2];r+=8;var u=cn.write(t,j,a,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},gn=function(t,r){for(var e=0,n=0;n<=r;e+=t[n++]);return e},bn=[31,29,31,30,31,30,31,31,30,31,30,31],En=[31,28,31,30,31,30,31,31,30,31,30,31],_n=function(t,r){for(var e=new Date(t.getTime());r>0;){var n=Te(e.getFullYear()),o=e.getMonth(),i=(n?bn:En)[o];if(!(r>i-e.getDate()))return e.setDate(e.getDate()+r),e;r-=i-e.getDate()+1,e.setDate(1),o<11?e.setMonth(o+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e},In=function(t,r){j.set(t,r)},kn=function(t,r,e,n){var o=x[n+40>>2],i={tm_sec:A[n>>2],tm_min:A[n+4>>2],tm_hour:A[n+8>>2],tm_mday:A[n+12>>2],tm_mon:A[n+16>>2],tm_year:A[n+20>>2],tm_wday:A[n+24>>2],tm_yday:A[n+28>>2],tm_isdst:A[n+32>>2],tm_gmtoff:A[n+36>>2],tm_zone:o?te(o):""},a=te(e),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,r,e){for(var n="number"==typeof t?t.toString():t||"";n.length<r;)n=e[0]+n;return n}function p(t,r){return l(t,r,"0")}function d(t,r){function e(t){return t<0?-1:t>0?1:0}var n;return 0===(n=e(t.getFullYear()-r.getFullYear()))&&0===(n=e(t.getMonth()-r.getMonth()))&&(n=e(t.getDate()-r.getDate())),n}function h(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function v(t){var r=_n(new Date(t.tm_year+1900,0,1),t.tm_yday),e=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=h(e),i=h(n);return d(o,r)<=0?d(i,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return f[t.tm_mon].substring(0,3)},"%B":function(t){return f[t.tm_mon]},"%C":function(t){return p((t.tm_year+1900)/100|0,2)},"%d":function(t){return p(t.tm_mday,2)},"%e":function(t){return l(t.tm_mday,2," ")},"%g":function(t){return v(t).toString().substring(2)},"%G":function(t){return v(t)},"%H":function(t){return p(t.tm_hour,2)},"%I":function(t){var r=t.tm_hour;return 0==r?r=12:r>12&&(r-=12),p(r,2)},"%j":function(t){return p(t.tm_mday+gn(Te(t.tm_year+1900)?bn:En,t.tm_mon-1),3)},"%m":function(t){return p(t.tm_mon+1,2)},"%M":function(t){return p(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return p(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var r=t.tm_yday+7-t.tm_wday;return p(Math.floor(r/7),2)},"%V":function(t){var r=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&r++,r){if(53==r){var e=(t.tm_wday+371-t.tm_yday)%7;4==e||3==e&&Te(t.tm_year)||(r=1)}}else{r=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&Te(t.tm_year%400-1))&&r++}return p(r,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var r=t.tm_yday+7-(t.tm_wday+6)%7;return p(Math.floor(r/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var r=t.tm_gmtoff,e=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(e?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in a=a.replace(/%%/g,"\0\0"),m)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),m[u](i)));a=a.replace(/\0\0/g,"%");var y=Je(a,!1);return y.length>r?0:(In(y,t),y.length-1)},Pn=function(t,r,e,n,o){return kn(t,r,e,n)},mt(),_t=e.BindingError=function(t){$(e,t);var r=Ct(e);function e(t){var n;return s(this,e),(n=r.call(this,t)).name="BindingError",n}return k(e)}(ct(Error)),Pt=e.InternalError=function(t){$(e,t);var r=Ct(e);function e(t){var n;return s(this,e),(n=r.call(this,t)).name="InternalError",n}return k(e)}(ct(Error)),tr(),qt(),pr(),Ir=e.UnboundTypeError=_r(Error,"UnboundTypeError"),xr(),Nr(),Cn=function(t,r,e,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=cn.nextInode++,this.name=r,this.mode=e,this.node_ops={},this.stream_ops={},this.rdev=n},Tn=365,Sn=146,Object.defineProperties(Cn.prototype,{read:{get:function(){return(this.mode&Tn)===Tn},set:function(t){t?this.mode|=Tn:this.mode&=-366}},write:{get:function(){return(this.mode&Sn)===Sn},set:function(t){t?this.mode|=Sn:this.mode&=-147}},isFolder:{get:function(){return cn.isDir(this.mode)}},isDevice:{get:function(){return cn.isChrdev(this.mode)}}}),cn.FSNode=Cn,cn.createPreloadedFile=an,cn.staticInit(),jn={c:ht,r:vt,F:Ft,l:Cr,k:Or,e:Ar,E:Wr,m:Vr,b:qr,a:Gr,n:re,f:ce,G:fe,A:le,i:ve,d:$r,h:be,o:Ee,I:_e,K:Ie,g:ke,J:Pe,H:Ce,p:Fe,u:xe,j:Me,B:Re,z:$e,C:Ue,t:Le,v:ln,w:pn,D:dn,y:vn,q:mn,x:wn,s:Pn},Dn=ut(),On=function(t){return(On=Dn.N)(t)},Fn=function(t){return(Fn=Dn.O)(t)},An=function(t){return(An=Dn.Q)(t)},xn=function(t){return(xn=Dn.R)(t)},e.dynCall_ji=function(t,r){return(e.dynCall_ji=Dn.S)(t,r)},e.dynCall_jiji=function(t,r,n,o,i){return(e.dynCall_jiji=Dn.T)(t,r,n,o,i)},e.dynCall_viijii=function(t,r,n,o,i,a,s){return(e.dynCall_viijii=Dn.U)(t,r,n,o,i,a,s)},e.dynCall_iiiiij=function(t,r,n,o,i,a,s){return(e.dynCall_iiiiij=Dn.V)(t,r,n,o,i,a,s)},e.dynCall_iiiiijj=function(t,r,n,o,i,a,s,u,c){return(e.dynCall_iiiiijj=Dn.W)(t,r,n,o,i,a,s,u,c)},e.dynCall_iiiiiijj=function(t,r,n,o,i,a,s,u,c,f){return(e.dynCall_iiiiiijj=Dn.X)(t,r,n,o,i,a,s,u,c,f)},J=function t(){Mn||Rn(),Mn||(J=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Rn(),t.abrupt("return",r.ready);case 281:case"end":return t.stop()}}),t)}))));function jt(){var t=["729304fkkxEX","18cHEavv","warn","582555KbFkXD","263518RTRWiH","3630850hJOAHM","3KTUQxN","12MfYhOv","debug","38203VcTyNw","815577vHcPsq",'"1.0.1"',"236308JHXrfF"];return(jt=function(){return t})()}var Dt=Ot;function Ot(t,r){var e=jt();return(Ot=function(t,r){return e[t-=336]})(t,r)}!function(t,r){for(var e=Ot,n=t();;)try{if(132841===parseInt(e(347))/1+parseInt(e(342))/2*(-parseInt(e(344))/3)+-parseInt(e(337))/4+-parseInt(e(341))/5+-parseInt(e(345))/6*(parseInt(e(348))/7)+-parseInt(e(338))/8+parseInt(e(339))/9*(parseInt(e(343))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(jt);var Ft={debug:Dt(346),warn:Dt(340)},At={debug:!1,debugLevel:Ft.warn,debugUuid:""},xt=Dt(336);function Mt(){var t=["apply","error","debugUuid","warn","log","[✅✅✅][imageDetector][","44984yaoAWj","2599038jTDwxk","2225365aYxnZc","JbPro","357419rjnZHZ","45463uPiSKo","19180sTECtE","length","2nTcTUt","concat","4390ENTHqV","_opt","debug","[❌❌❌][imageDetector][","[❗❗❗][imageDetector][","558dDHZBv","3932054OQKsFr","debugLevel","501SIHRBD"];return(Mt=function(){return t})()}!function(t,r){for(var e=$t,n=t();;)try{if(417553===parseInt(e(197))/1*(-parseInt(e(201))/2)+-parseInt(e(211))/3*(-parseInt(e(199))/4)+parseInt(e(195))/5+parseInt(e(194))/6+parseInt(e(209))/7+-parseInt(e(218))/8*(-parseInt(e(208))/9)+-parseInt(e(203))/10*(parseInt(e(198))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Mt);var Rt=k((function t(r){var e=$t;s(this,t),this.log=function(t){var e=$t;if(r[e(204)][e(205)]&&r._opt[e(210)]==Ft[e(205)]){for(var n,o=r._opt[e(214)]?"[".concat(r[e(204)][e(214)],"]"):"",i=arguments[e(200)],a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];(n=console)[e(216)][e(212)](n,[e(196)[e(202)](o,e(217)).concat(t,"]")].concat(a))}},this[e(215)]=function(t){var n=e;if(r[n(204)][n(205)]&&(r[n(204)][n(210)]==Ft[n(205)]||r._opt.debugLevel==Ft[n(215)])){for(var o,i=r[n(204)][n(214)]?"[".concat(r[n(204)].debugUuid,"]"):"",a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(o=console)[n(216)][n(212)](o,[n(196)[n(202)](i,n(207)).concat(t,"]")].concat(s))}},this.error=function(t){for(var n,o=e,i=r._opt[o(214)]?"["[o(202)](r[o(204)][o(214)],"]"):"",a=arguments[o(200)],s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(n=console)[o(213)].apply(n,[o(196)[o(202)](i,o(206))[o(202)](t,"]")].concat(s))}}));function $t(t,r){var e=Mt();return($t=function(t,r){return e[t-=194]})(t,r)}function Ut(){var t=["forEach","1371cMwkmg","length","7975880XCSIpY","1772RLKfRl","1146070vzpVTX","1135908fVfKkf","2413328xUIQPl","7inQACZ","push","939780pbNeqY","slice","4310AUAsXR","apply","180ScwexK","once"];return(Ut=function(){return t})()}function Nt(t,r){var e=Ut();return(Nt=function(t,r){return e[t-=259]})(t,r)}!function(t,r){for(var e=Nt,n=t();;)try{if(212479===-parseInt(e(261))/1*(-parseInt(e(259))/2)+-parseInt(e(264))/3*(parseInt(e(267))/4)+parseInt(e(268))/5+parseInt(e(269))/6+-parseInt(e(271))/7*(-parseInt(e(270))/8)+parseInt(e(273))/9+-parseInt(e(266))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ut);var Lt=function(){var t=Nt;function r(){s(this,r)}return k(r,[{key:"on",value:function(t,r,e){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:r,ctx:e}),this}},{key:t(262),value:function(t,r,e){var n=this;function o(){var i=Nt;n.off(t,o);for(var a=arguments[i(265)],s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r[i(260)](e,s)}return o._=r,this.on(t,o,e)}},{key:"emit",value:function(r){for(var e=t,n=((this.e||(this.e={}))[r]||[])[e(274)](),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var s=0;s<n.length;s+=1)n[s].fn[e(260)](n[s].ctx,i);return this}},{key:"off",value:function(r,e){var n=t,o=this.e||(this.e={});if(!r)return Object.keys(o)[n(263)]((function(t){delete o[t]})),void delete this.e;var i=o[r],a=[];if(i&&e)for(var s=0,u=i.length;s<u;s+=1)i[s].fn!==e&&i[s].fn._!==e&&a[n(272)](i[s]);return a.length?o[r]=a:delete o[r],this}}]),r}();function zt(){var t=["parse","232WBTaDm","stringify","580540UdVxBg","10440iFxcEJ","8140oVDIXA","object","3273708nEPlTx","5031288dViMMQ","4704XwgUJV","5889562hQWjpV","506aWvoFe","76258LDTEcE","31nYRImv"];return(zt=function(){return t})()}function Wt(t,r){var e=zt();return(Wt=function(t,r){return e[t-=210]})(t,r)}function Bt(){return function(t){var r=Wt,e="";if(p(t)===r(214))try{e=JSON[r(210)](t),e=JSON[r(222)](e)}catch(r){e=t}else e=t;return e}(At)}function Ht(t,r){var e=Vt();return(Ht=function(t,r){return e[t-=435]})(t,r)}function Vt(){var t=["keys","module","sham","debug","construct","_check","load","catch","destroy","isVideoOcclusion","7EODhKq",'" can not be undefined',"_isVideoOcclusion","off","startTimestamp","updateConfig","load jessibuca occlusion detector fail","5437300weYVHy","51237YhzlvF","_opt","  ","clear","concat","419964UfCOXH","33802VlJkiR","validatedFailed, please contact the author(wx:bosswancheng) to get the correct license","height","prototype","9224yNKPCm","originalOptions","3482aUmZaj","result","log","OcclusionDetector","constructor","408qqeJLu","function","timeEnd, please contact the author(wx:bosswancheng) to get the new version","length","timeEnd","apply","5cwJOQH","detector","load jessibuca occlusion detector error","name","buildTime","TAG_NAME","assign","call","error","width","2541000bTUiiL","606paCFPO","data","JbPro occlusion detector version is "];return(Vt=function(){return t})()}function Yt(t){var r=function(){var t=Ht;if("undefined"==typeof Reflect||!Reflect[t(446)])return!1;if(Reflect.construct[t(444)])return!1;if(typeof Proxy===t(478))return!0;try{return Boolean[t(469)].valueOf.call(Reflect[t(446)](Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=Ht,o=G(t);if(r){var i=G(this)[n(476)];e=Reflect[n(446)](o,arguments,i)}else e=o[n(482)](this,arguments);return B(this,e)}}!function(t,r){for(var e=Wt,n=t();;)try{if(853273===parseInt(e(221))/1*(-parseInt(e(220))/2)+parseInt(e(215))/3+-parseInt(e(216))/4+-parseInt(e(213))/5*(parseInt(e(217))/6)+parseInt(e(218))/7+-parseInt(e(223))/8*(parseInt(e(212))/9)+parseInt(e(211))/10*(parseInt(e(219))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(zt),function(t,r){for(var e=Ht,n=t();;)try{if(285277===-parseInt(e(466))/1+parseInt(e(472))/2*(-parseInt(e(439))/3)+parseInt(e(470))/4*(-parseInt(e(483))/5)+-parseInt(e(465))/6*(-parseInt(e(452))/7)+-parseInt(e(477))/8*(-parseInt(e(460))/9)+parseInt(e(459))/10+-parseInt(e(438))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Vt);var qt=function(t){var r=Ht;$(n,t);var e=Yt(n);function n(){var t,r=Ht,o=arguments[r(480)]>0&&void 0!==arguments[0]?arguments[0]:{};s(this,n),(t=e[r(435)](this))[r(461)]={},t[r(488)]=r(475),Object[r(442)](o).forEach((function(t){var e=r;if(void 0===o[t])throw new Error('JbProOcclusionDetector option "'[e(464)](t,e(453)))})),t[r(471)]=o;var i=Bt(),a=Object[r(489)]({},i,o);return t[r(461)]=a,t[r(445)]=new Rt(j(t)),t[r(443)]=null,t.detector=null,t[r(456)]=null,t[r(437)]=o[r(437)]||0,t.height=o[r(468)]||0,t[r(487)]=o[r(486)]+"-"+o[r(487)],t[r(445)][r(474)](t.TAG_NAME,"init",JSON.stringify(t._opt)),console[r(474)](r(441).concat(o.buildTime,":")[r(464)](xt,r(462))),t}return k(n,[{key:"destroy",value:function(){var t=Ht;this[t(455)](),this.detector&&(this.detector[t(463)](),this[t(484)].delete(),this[t(484)]=null),this[t(443)]&&(this[t(443)]=null),this[t(456)]=null,this[t(445)].log(this[t(488)],t(450))}},{key:r(448),value:function(){var t=this;return new Promise((function(r,e){var n=Ht;St().then((function(n){var o=Ht;t.module=n,t.module.OcclusionDetector?(t.detector=new t.module.OcclusionDetector(t),r()):e(o(458))}))[n(449)]((function(t){var r=n;console[r(436)](t),e(r(485))}))}))}},{key:r(457),value:function(){var t=r,e=arguments[t(480)]>0&&void 0!==arguments[0]?arguments[0]:{};e[t(437)]&&e[t(468)]&&(this[t(437)]=e.width,this.height=e[t(468)])}},{key:"check",value:function(t){var e=r,n=arguments[e(480)]>1&&void 0!==arguments[1]?arguments[1]:0;return this[e(454)](t[e(440)],t[e(437)],t[e(468)],n)}},{key:r(454),value:function(t,e,n,o){var i=r;return this[i(447)](i(451),t,e,n,o)}},{key:r(447),value:function(t,e,n,o,i){var a=r;if(null==e||null===this.detector)return!1;if(!t||!this[a(484)][t])return!1;if(!(n&&o||this[a(437)]&&this.height))return!1;var s=n||this[a(437)],u=o||this.height;if(null===this[a(456)]&&(this[a(456)]=Date.now()),Date.now()-this[a(456)]>6e5)return!1;var c=this[a(484)][t](e,s,u,i,this[a(487)]),f=!1;return c&&(f=c[a(473)]),f}},{key:"validatedFailed",value:function(){var t=r;this[t(445)].error(this[t(488)],t(467))}},{key:r(481),value:function(){var t=r;this.debug.error(this[t(488)],t(479))}}]),n}(Lt);window.JessibucaProOcclusionDetector=qt}));