!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}});function o(){var t=["167881vklewM","3433035qXeGiB","3565460mwGbie","246LwjBCm","1798eFAWhd","unwrapExports","2310792RITiZI","__esModule","4fGgYxm","exports","27450900mabZgE","856dbkwAR","Cannot call a class as a function","default","775539FNDGGu"];return(o=function(){return t})()}var i=a;function a(t,r){var e=o();return(a=function(t,r){return e[t-=185]})(t,r)}!function(t,r){for(var e=a,n=t();;)try{if(726392===parseInt(e(188))/1*(-parseInt(e(195))/2)+parseInt(e(185))/3*(-parseInt(e(192))/4)+-parseInt(e(186))/5+parseInt(e(187))/6*(parseInt(e(199))/7)+-parseInt(e(190))/8+-parseInt(e(198))/9+parseInt(e(194))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(o);var s=e((function(t){var r=a;t[r(193)]=function(t,r){if(!(t instanceof r))throw new TypeError(a(196))},t.exports[r(191)]=!0,t[r(193)][r(197)]=t[r(193)]})),u=n[i(189)](s);function c(){var t=["unwrapExports","__esModule","1480450BaUIMi","153163QJrEkm","1118138QKNEsD","function","exports","2678928JhTgKA","3087390PsqJYw","141WHFRrZ","2571233kpynEg","22332ujoDUK","default","constructor","symbol"];return(c=function(){return t})()}var f=l;function l(t,r){var e=c();return(l=function(t,r){return e[t-=476]})(t,r)}!function(t,r){for(var e=l,n=t();;)try{if(329527===-parseInt(e(489))/1+parseInt(e(490))/2+parseInt(e(480))/3*(-parseInt(e(482))/4)+-parseInt(e(488))/5+parseInt(e(479))/6+-parseInt(e(481))/7+parseInt(e(478))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(c);var p=e((function(t){var r=l;function e(r){var n=l;return t.exports=e=n(476)==typeof Symbol&&n(485)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=n;return t&&"function"==typeof Symbol&&t[r(484)]===Symbol&&t!==Symbol.prototype?r(485):typeof t},t[n(477)][n(487)]=!0,t[n(477)][n(483)]=t[n(477)],e(r)}t[r(477)]=e,t[r(477)][r(487)]=!0,t[r(477)][r(483)]=t[r(477)]})),d=n[f(486)](p),h=y;function v(){var t=["toPrimitive","464472DCWFCA","1310JqGXak","1168824ayOosK","12rwKIjC","object","unwrapExports","exports","340334zFfgPi","148040uMRPvL","string","225exOACt","createCommonjsModule","402105QjTxDI","@@toPrimitive must return a primitive value.","default","44627NSuqXN","1501356nIVEaU","__esModule","7REMfnw"];return(v=function(){return t})()}!function(t,r){for(var e=y,n=t();;)try{if(322836===parseInt(e(399))/1+parseInt(e(386))/2+-parseInt(e(401))/3+-parseInt(e(382))/4*(parseInt(e(391))/5)+parseInt(e(395))/6*(parseInt(e(397))/7)+-parseInt(e(387))/8*(parseInt(e(389))/9)+-parseInt(e(400))/10*(-parseInt(e(394))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(v);var m=n[h(390)]((function(t){var r=h,e=p[r(393)];t.exports=function(t,n){var o=r;if(e(t)!==o(383)||null===t)return t;var i=t[Symbol[o(398)]];if(void 0!==i){var a=i.call(t,n||o(393));if(e(a)!==o(383))return a;throw new TypeError(o(392))}return(n===o(388)?String:Number)(t)},t.exports[r(396)]=!0,t[r(385)][r(393)]=t[r(385)]}));function y(t,r){var e=v();return(y=function(t,r){return e[t-=382]})(t,r)}n[h(384)](m);var w=b;function g(){var t=["exports","2aJxgBi","createCommonjsModule","30iXRMoN","973NLtadC","1825417DfjdSt","3384KAXhwa","2865528EnMtie","string","symbol","438691sctxIh","72hwrtbr","566199qYhaOL","158725rNReoz","5521059UqvZhk"];return(g=function(){return t})()}function b(t,r){var e=g();return(b=function(t,r){return e[t-=310]})(t,r)}!function(t,r){for(var e=b,n=t();;)try{if(376991===parseInt(e(312))/1+-parseInt(e(318))/2*(-parseInt(e(314))/3)+parseInt(e(313))/4*(-parseInt(e(315))/5)+-parseInt(e(323))/6*(-parseInt(e(321))/7)+parseInt(e(324))/8+-parseInt(e(316))/9+parseInt(e(320))/10*(parseInt(e(322))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g);var E=n[w(319)]((function(t){var r=w,e=p.default;t[r(317)]=function(t){var r=b,n=m(t,r(310));return e(n)===r(311)?n:String(n)},t[r(317)].__esModule=!0,t[r(317)].default=t[r(317)]}));r(E);var _=P;!function(t,r){for(var e=P,n=t();;)try{if(404786===-parseInt(e(184))/1*(parseInt(e(190))/2)+parseInt(e(179))/3+parseInt(e(172))/4*(-parseInt(e(182))/5)+-parseInt(e(169))/6+parseInt(e(191))/7*(-parseInt(e(187))/8)+-parseInt(e(177))/9+-parseInt(e(175))/10*(-parseInt(e(181))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(k);var I=n[_(171)]((function(t){var r=_;function e(t,r){for(var e=P,n=0;n<r[e(176)];n++){var o=r[n];o[e(188)]=o[e(188)]||!1,o[e(174)]=!0,e(178)in o&&(o[e(185)]=!0),Object[e(180)](t,E(o[e(186)]),o)}}t.exports=function(t,r,n){var o=P;return r&&e(t[o(189)],r),n&&e(t,n),Object[o(180)](t,"prototype",{writable:!1}),t},t[r(183)][r(173)]=!0,t[r(183)].default=t[r(183)]}));function k(){var t=["70NQFtXc","9492kRMEAw","21540mHwWuv","unwrapExports","createCommonjsModule","2507268xnAplP","__esModule","configurable","4525890GqnrhC","length","3637962TYFVel","value","1646328rJiLgw","defineProperty","44hJNEGw","5zcCPNk","exports","8611psMqXl","writable","key","3648xLzwLx","enumerable","prototype"];return(k=function(){return t})()}function P(t,r){var e=k();return(P=function(t,r){return e[t-=169]})(t,r)}var C=n[_(170)](I);function T(t,r){var e=F();return(T=function(t,r){return e[t-=226]})(t,r)}var S=T;!function(t,r){for(var e=T,n=t();;)try{if(173035===parseInt(e(227))/1*(parseInt(e(240))/2)+parseInt(e(236))/3*(-parseInt(e(229))/4)+-parseInt(e(238))/5+parseInt(e(237))/6*(-parseInt(e(232))/7)+parseInt(e(239))/8+-parseInt(e(234))/9+parseInt(e(233))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(F);var j=e((function(t){var r=T;t[r(235)]=function(t){if(void 0===t)throw new ReferenceError(T(228));return t},t[r(235)][r(231)]=!0,t[r(235)][r(226)]=t[r(235)]})),A=n[S(230)](j);function F(){var t=["default","9694sPjZau","this hasn't been initialised - super() hasn't been called","89788IKaJDy","unwrapExports","__esModule","7tNcvNy","4183790tZGDpu","2479572qTGIrX","exports","3GZFiaZ","1070700eAxtHm","244670mUaoNP","2162408ShpwCq","2USYezn"];return(F=function(){return t})()}var D=O;function x(){var t=["374220tgHXds","__proto__","unwrapExports","createCommonjsModule","629113zWopfM","__esModule","2542673RoGyci","1804368lJeIom","3633855aoONsP","exports","default","setPrototypeOf","34674HtAgVI","bind","1352676uWapTO","268hOqRyn"];return(x=function(){return t})()}function O(t,r){var e=x();return(O=function(t,r){return e[t-=199]})(t,r)}!function(t,r){for(var e=O,n=t();;)try{if(701911===parseInt(e(214))/1+parseInt(e(208))/2+-parseInt(e(206))/3*(-parseInt(e(209))/4)+-parseInt(e(202))/5+-parseInt(e(210))/6+-parseInt(e(200))/7+-parseInt(e(201))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(x);var M=n[D(213)]((function(t){var r=D;function e(r,n){var o=O;return t[o(203)]=e=Object[o(205)]?Object[o(205)][o(207)]():function(t,r){return t[o(211)]=r,t},t[o(203)][o(199)]=!0,t[o(203)].default=t[o(203)],e(r,n)}t[r(203)]=e,t[r(203)].__esModule=!0,t[r(203)][r(204)]=t[r(203)]}));n[D(212)](M);var R=N;function $(){var t=["937612joWuBb","exports","111054CjSLoI","create","prototype","259926eUDgMN","Super expression must either be null or a function","20ZIBJRi","2431107UnVZac","2781394UVHZdq","5015679PekXfc","function","5LtSwSG","32IQVgAw","createCommonjsModule","3622986ZScErP","unwrapExports"];return($=function(){return t})()}!function(t,r){for(var e=N,n=t();;)try{if(953554===parseInt(e(282))/1+-parseInt(e(275))/2+parseInt(e(287))/3+-parseInt(e(277))/4+parseInt(e(289))/5*(parseInt(e(279))/6)+-parseInt(e(286))/7*(-parseInt(e(290))/8)+-parseInt(e(285))/9*(parseInt(e(284))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($);var L=n[R(291)]((function(t){var r=R;t[r(278)]=function(t,r){var e=N;if(typeof r!==e(288)&&null!==r)throw new TypeError(e(283));t[e(281)]=Object[e(280)](r&&r[e(281)],{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,e(281),{writable:!1}),r&&M(t,r)},t.exports.__esModule=!0,t[r(278)].default=t[r(278)]}));function N(t,r){var e=$();return(N=function(t,r){return e[t-=275]})(t,r)}var U=n[R(276)](L),z=H;function H(t,r){var e=B();return(H=function(t,r){return e[t-=232]})(t,r)}!function(t,r){for(var e=H,n=t();;)try{if(579845===-parseInt(e(236))/1*(-parseInt(e(235))/2)+-parseInt(e(247))/3+-parseInt(e(250))/4+-parseInt(e(234))/5*(-parseInt(e(237))/6)+-parseInt(e(244))/7*(parseInt(e(233))/8)+-parseInt(e(239))/9*(parseInt(e(243))/10)+parseInt(e(238))/11*(parseInt(e(232))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(B);var W=n[z(246)]((function(t){var r=z,e=p[r(240)];t[r(245)]=function(t,n){var o=r;if(n&&(e(n)===o(242)||typeof n===o(249)))return n;if(void 0!==n)throw new TypeError(o(241));return j(t)},t[r(245)].__esModule=!0,t.exports[r(240)]=t[r(245)]}));function B(){var t=["6ESnDTd","12585991gnadKi","20529CIVqAG","default","Derived constructors may only return object or undefined","object","1030nnJUgz","7SzYMqz","exports","createCommonjsModule","2627019eHilFp","unwrapExports","function","3544600nAdiFa","24HkcuLx","5001192jYoQUH","1424705fToqPU","2wDBWWU","628457lJzVdW"];return(B=function(){return t})()}var G=n[z(248)](W);function V(){var t=["bind","exports","397010XSleyJ","32arMhrH","357551YnYcLK","25947456TPdHoz","210COAfJM","83867RoyVCH","120SIidkK","4PoamRP","__proto__","setPrototypeOf","12488sdoPzQ","getPrototypeOf","__esModule","1911249EJHGdB","603fzxSUh","458007EdNNmo"];return(V=function(){return t})()}function q(t,r){var e=V();return(q=function(t,r){return e[t-=151]})(t,r)}!function(t,r){for(var e=q,n=t();;)try{if(359783===parseInt(e(164))/1*(-parseInt(e(151))/2)+-parseInt(e(157))/3+-parseInt(e(163))/4*(parseInt(e(162))/5)+parseInt(e(166))/6*(-parseInt(e(167))/7)+parseInt(e(154))/8*(parseInt(e(158))/9)+parseInt(e(168))/10*(parseInt(e(159))/11)+parseInt(e(165))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(V);var Y=e((function(t){var r=q;function e(r){var n=q;return t[n(161)]=e=Object[n(153)]?Object[n(155)][n(160)]():function(t){var r=n;return t[r(152)]||Object[r(155)](t)},t[n(161)][n(156)]=!0,t[n(161)].default=t.exports,e(r)}t.exports=e,t[r(161)][r(156)]=!0,t[r(161)].default=t[r(161)]})),J=r(Y),X=Z;function Z(t,r){var e=K();return(Z=function(t,r){return e[t-=141]})(t,r)}function K(){var t=["__esModule","4142853YFtbzZ","default","unwrapExports","176356mewlMC","2nYHLex","1661370ckKltJ","createCommonjsModule","526360NTNFtq","652656RMvqOr","[native code]","indexOf","exports","234027iytLPS","193680MjcwTb","function","21PrKylY"];return(K=function(){return t})()}!function(t,r){for(var e=Z,n=t();;)try{if(159594===-parseInt(e(144))/1+parseInt(e(152))/2*(-parseInt(e(143))/3)+parseInt(e(151))/4+-parseInt(e(155))/5+parseInt(e(153))/6+parseInt(e(146))/7*(-parseInt(e(156))/8)+parseInt(e(148))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(K);var Q=n[X(154)]((function(t){var r=X;t[r(142)]=function(t){var r=Z;try{return-1!==Function.toString.call(t)[r(141)](r(157))}catch(e){return typeof t===r(145)}},t[r(142)][r(147)]=!0,t[r(142)][r(149)]=t[r(142)]}));function tt(t,r){var e=nt();return(tt=function(t,r){return e[t-=183]})(t,r)}n[X(150)](Q);var rt=tt;!function(t,r){for(var e=tt,n=t();;)try{if(798567===parseInt(e(200))/1+-parseInt(e(189))/2*(-parseInt(e(199))/3)+-parseInt(e(190))/4+parseInt(e(196))/5+-parseInt(e(192))/6+-parseInt(e(201))/7*(-parseInt(e(187))/8)+parseInt(e(198))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);var et=n[rt(194)]((function(t){var r=rt;t[r(183)]=function(){var t=tt;if(typeof Reflect===t(191)||!Reflect[t(197)])return!1;if(Reflect[t(197)].sham)return!1;if(typeof Proxy===t(186))return!0;try{return Boolean.prototype[t(185)][t(184)](Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports[r(188)]=!0,t.exports[r(195)]=t.exports}));function nt(){var t=["5011140EeaxHw","undefined","4048506cDqePR","unwrapExports","createCommonjsModule","default","2949260ypJcVQ","construct","1374012WPavan","91122xfgTeQ","624004hIoaGj","7qoomAt","exports","call","valueOf","function","9175688CqhmpU","__esModule","14AXCVDU"];return(nt=function(){return t})()}n[rt(193)](et);var ot=st;function it(){var t=["default","4856ncGjHC","2169nfPPlm","8bXQqPb","unwrapExports","244923uFPXks","bind","apply","exports","425649cyIWZY","11065494GLxOGd","71922nxeKto","createCommonjsModule","260385NfrbLj","1965330YlrDYL","push","construct","6ShBthM","__esModule","6oDskGp"];return(it=function(){return t})()}!function(t,r){for(var e=st,n=t();;)try{if(146514===-parseInt(e(191))/1*(parseInt(e(177))/2)+parseInt(e(189))/3*(-parseInt(e(183))/4)+-parseInt(e(193))/5+-parseInt(e(179))/6*(-parseInt(e(185))/7)+parseInt(e(181))/8*(-parseInt(e(182))/9)+-parseInt(e(194))/10+parseInt(e(190))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(it);var at=n[ot(192)]((function(t){var r=ot;function e(r,n,o){var i=st;return et()?(t.exports=e=Reflect[i(176)][i(186)](),t[i(188)][i(178)]=!0,t[i(188)].default=t[i(188)]):(t[i(188)]=e=function(t,r,e){var n=i,o=[null];o[n(175)][n(187)](o,r);var a=new(Function.bind[n(187)](t,o));return e&&M(a,e.prototype),a},t[i(188)][i(178)]=!0,t.exports[i(180)]=t[i(188)]),e[i(187)](null,arguments)}t.exports=e,t.exports[r(178)]=!0,t[r(188)][r(180)]=t.exports}));function st(t,r){var e=it();return(st=function(t,r){return e[t-=175]})(t,r)}n[ot(184)](at);var ut=lt;function ct(){var t=["63tSgaHE","create","function","2626560oXxRUd","871968GITNVJ","7082339VXuNAw","get","4CIsJHV","63950YiEGqr","10nbIWKP","exports","prototype","6526881GJvKMe","unwrapExports","set","332022ZQYopc","12MyOYAY","constructor","312NkVGsy","__esModule","Super expression must either be null or a function","undefined","366117XTcKUo","default"];return(ct=function(){return t})()}!function(t,r){for(var e=lt,n=t();;)try{if(770263===-parseInt(e(480))/1*(-parseInt(e(489))/2)+parseInt(e(486))/3+parseInt(e(476))/4*(-parseInt(e(490))/5)+-parseInt(e(497))/6*(-parseInt(e(482))/7)+parseInt(e(485))/8+parseInt(e(494))/9*(-parseInt(e(491))/10)+parseInt(e(487))/11*(parseInt(e(498))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);var ft=e((function(t){var r=lt;function e(r){var n=lt,o=typeof Map===n(484)?new Map:void 0;return t[n(492)]=e=function(t){var r=n;if(null===t||!Q(t))return t;if(typeof t!==r(484))throw new TypeError(r(478));if(typeof o!==r(479)){if(o.has(t))return o[r(488)](t);o[r(496)](t,e)}function e(){var e=r;return at(t,arguments,Y(this)[e(475)])}return e[r(493)]=Object[r(483)](t[r(493)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),M(e,t)},t[n(492)].__esModule=!0,t[n(492)][n(481)]=t[n(492)],e(r)}t[r(492)]=e,t[r(492)][r(477)]=!0,t[r(492)][r(481)]=t[r(492)]}));function lt(t,r){var e=ct();return(lt=function(t,r){return e[t-=475]})(t,r)}var pt=n[ut(495)](ft);function dt(){var t=["3426872ahusIi","5NmcNUv","680463HlqLFd","then","next","exports","resolve","780696paYZLQ","86804BLGndu","__esModule","550508MZDdVn","1172490OVSZgX","apply","value","205138HQjAFG","unwrapExports","createCommonjsModule"];return(dt=function(){return t})()}var ht=vt;function vt(t,r){var e=dt();return(vt=function(t,r){return e[t-=493]})(t,r)}!function(t,r){for(var e=vt,n=t();;)try{if(205697===-parseInt(e(505))/1+-parseInt(e(499))/2+parseInt(e(502))/3+parseInt(e(501))/4*(-parseInt(e(509))/5)+-parseInt(e(498))/6+-parseInt(e(493))/7+parseInt(e(508))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(dt);var mt=n[ht(507)]((function(t){var r=ht;function e(t,r,e,n,o,i,a){var s=vt;try{var u=t[i](a),c=u[s(504)]}catch(t){return void e(t)}u.done?r(c):Promise[s(497)](c)[s(494)](n,o)}t[r(496)]=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=vt,s=t[a(503)](r,n);function u(t){e(s,o,i,u,c,a(495),t)}function c(t){e(s,o,i,u,c,"throw",t)}u(void 0)}))}},t[r(496)][r(500)]=!0,t[r(496)].default=t[r(496)]})),yt=n[ht(506)](mt),wt=bt;function gt(){var t=["prev","[object Generator]","end","nextLoc","delegate","1ZnEZbL","resolve","142212UTfNoV","throw","unwrapExports","next","@@iterator","normal","displayName","AsyncIterator","iterator result is not an object","complete","@@asyncIterator","tryEntries","setPrototypeOf","1322868ZhCNuy","4bLcNxn","__proto__","exports","completion","value","then","getPrototypeOf","call","break","_sent","forEach","prototype","done","toString","push","tryLoc","toStringTag","rval","function","mark","catchLoc","reverse","create","defineProperty","completed","return","values","async","10191600FzoTlb","length","iterator","resultName","Generator is already running","__await","349490eICGxE","try statement without catch or finally","suspendedYield","hasOwnProperty","__esModule","dispatchException","isGeneratorFunction","1269075zMufwq","finallyLoc","135832bfFYZk","type","method","91SpXhoy","charAt","arg","sent","188127TUQNBy","constructor","root","@@toStringTag","' method","continue","pop","default"];return(gt=function(){return t})()}function bt(t,r){var e=gt();return(bt=function(t,r){return e[t-=159]})(t,r)}!function(t,r){for(var e=bt,n=t();;)try{if(175896===-parseInt(e(175))/1*(parseInt(e(225))/2)+parseInt(e(177))/3+-parseInt(e(191))/4*(parseInt(e(232))/5)+-parseInt(e(190))/6+parseInt(e(237))/7*(-parseInt(e(234))/8)+-parseInt(e(162))/9+parseInt(e(219))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(gt);var Et=e((function(t){var r=bt,e=p[r(169)];function n(){var o=r;t[o(193)]=n=function(){return a},t[o(193)][o(229)]=!0,t[o(193)][o(169)]=t[o(193)];var i,a={},s=Object[o(202)],u=s[o(228)],c=Object[o(214)]||function(t,r,e){var n=o;t[r]=e[n(195)]},f="function"==typeof Symbol?Symbol:{},l=f[o(221)]||o(181),p=f.asyncIterator||o(187),d=f[o(207)]||o(165);function h(t,r,e){return Object[o(214)](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[l(202)]instanceof _?r:_,d=Object[l(213)](p.prototype),h=new O(n||[]);return c(d,"_invoke",{value:(a=t,s=e,u=h,f=y,function(t,r){var e=bt;if(f===g)throw new Error(e(223));if(f===b){if(e(178)===t)throw r;return{value:i,done:!0}}for(u[e(236)]=t,u[e(160)]=r;;){var n=u.delegate;if(n){var o=F(n,u);if(o){if(o===E)continue;return o}}if(e(180)===u[e(236)])u[e(161)]=u._sent=u[e(160)];else if(e(178)===u[e(236)]){if(f===y)throw f=b,u.arg;u[e(230)](u[e(160)])}else e(216)===u[e(236)]&&u.abrupt(e(216),u[e(160)]);f=g;var c=m(a,s,u);if("normal"===c[e(235)]){if(f=u[e(203)]?b:w,c[e(160)]===E)continue;return{value:c[e(160)],done:u[e(203)]}}e(178)===c[e(235)]&&(f=b,u[e(236)]=e(178),u[e(160)]=c[e(160)])}})}),d}function m(t,r,e){var n=o;try{return{type:n(182),arg:t[n(198)](r,e)}}catch(t){return{type:n(178),arg:t}}}a.wrap=v;var y="suspendedStart",w=o(227),g="executing",b=o(215),E={};function _(){}function I(){}function k(){}var P={};h(P,l,(function(){return this}));var C=Object[o(197)],T=C&&C(C(M([])));T&&T!==s&&u[o(198)](T,l)&&(P=T);var S=k[o(202)]=_[o(202)]=Object[o(213)](P);function j(t){var r=o;[r(180),r(178),"return"][r(201)]((function(r){h(t,r,(function(t){return this._invoke(r,t)}))}))}function A(t,r){function n(o,i,a,s){var c=bt,f=m(t[o],t,i);if("throw"!==f[c(235)]){var l=f.arg,p=l[c(195)];return p&&"object"==e(p)&&u[c(198)](p,c(224))?r[c(176)](p.__await)[c(196)]((function(t){n(c(180),t,a,s)}),(function(t){n(c(178),t,a,s)})):r[c(176)](p)[c(196)]((function(t){l[c(195)]=t,a(l)}),(function(t){return n(c(178),t,a,s)}))}s(f.arg)}var o;c(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o[bt(196)](i,i):i()}})}function F(t,r){var e=o,n=r[e(236)],a=t[e(221)][n];if(a===i)return r.delegate=null,"throw"===n&&t.iterator[e(216)]&&(r.method=e(216),r[e(160)]=i,F(t,r),e(178)===r[e(236)])||e(216)!==n&&(r[e(236)]=e(178),r[e(160)]=new TypeError("The iterator does not provide a '"+n+e(166))),E;var s=m(a,t[e(221)],r[e(160)]);if(e(178)===s.type)return r[e(236)]=e(178),r[e(160)]=s[e(160)],r[e(174)]=null,E;var u=s[e(160)];return u?u.done?(r[t[e(222)]]=u[e(195)],r[e(180)]=t[e(173)],"return"!==r[e(236)]&&(r.method=e(180),r[e(160)]=i),r.delegate=null,E):u:(r.method=e(178),r[e(160)]=new TypeError(e(185)),r[e(174)]=null,E)}function D(t){var r=o,e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e[r(233)]=t[2],e.afterLoc=t[3]),this[r(188)].push(e)}function x(t){var r=o,e=t[r(194)]||{};e[r(235)]=r(182),delete e[r(160)],t[r(194)]=e}function O(t){var r=o;this[r(188)]=[{tryLoc:r(164)}],t[r(201)](D,this),this.reset(!0)}function M(t){var r=o;if(t||""===t){var n=t[l];if(n)return n[r(198)](t);if(r(209)==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function e(){for(var n=r;++a<t[n(220)];)if(u.call(t,a))return e.value=t[a],e.done=!1,e;return e[n(195)]=i,e[n(203)]=!0,e};return s[r(180)]=s}}throw new TypeError(e(t)+" is not iterable")}return I.prototype=k,c(S,"constructor",{value:k,configurable:!0}),c(k,"constructor",{value:I,configurable:!0}),I[o(183)]=h(k,d,"GeneratorFunction"),a[o(231)]=function(t){var r=o,e=r(209)==typeof t&&t[r(163)];return!!e&&(e===I||"GeneratorFunction"===(e[r(183)]||e.name))},a[o(210)]=function(t){var r=o;return Object[r(189)]?Object[r(189)](t,k):(t[r(192)]=k,h(t,d,"GeneratorFunction")),t[r(202)]=Object.create(S),t},a.awrap=function(t){return{__await:t}},j(A[o(202)]),h(A[o(202)],p,(function(){return this})),a[o(184)]=A,a[o(218)]=function(t,r,e,n,i){var s=o;void 0===i&&(i=Promise);var u=new A(v(t,r,e,n),i);return a[s(231)](r)?u:u[s(180)]().then((function(t){var r=s;return t[r(203)]?t[r(195)]:u.next()}))},j(S),h(S,d,"Generator"),h(S,l,(function(){return this})),h(S,o(204),(function(){return o(171)})),a.keys=function(t){var r=o,e=Object(t),n=[];for(var i in e)n[r(205)](i);return n[r(212)](),function t(){for(var o=r;n[o(220)];){var i=n[o(168)]();if(i in e)return t.value=i,t[o(203)]=!1,t}return t[o(203)]=!0,t}},a[o(217)]=M,O.prototype={constructor:O,reset:function(t){var r=o;if(this[r(170)]=0,this.next=0,this[r(161)]=this[r(200)]=i,this[r(203)]=!1,this[r(174)]=null,this.method=r(180),this[r(160)]=i,this.tryEntries[r(201)](x),!t)for(var e in this)"t"===e[r(159)](0)&&u[r(198)](this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},stop:function(){var t=o;this[t(203)]=!0;var r=this.tryEntries[0][t(194)];if(t(178)===r[t(235)])throw r.arg;return this[t(208)]},dispatchException:function(t){var r=o;if(this[r(203)])throw t;var e=this;function n(n,o){var a=r;return c[a(235)]="throw",c.arg=t,e[a(180)]=n,o&&(e[a(236)]=a(180),e[a(160)]=i),!!o}for(var a=this[r(188)][r(220)]-1;a>=0;--a){var s=this.tryEntries[a],c=s[r(194)];if("root"===s[r(206)])return n(r(172));if(s.tryLoc<=this[r(170)]){var f=u[r(198)](s,r(211)),l=u[r(198)](s,r(233));if(f&&l){if(this[r(170)]<s[r(211)])return n(s.catchLoc,!0);if(this[r(170)]<s[r(233)])return n(s[r(233)])}else if(f){if(this[r(170)]<s[r(211)])return n(s[r(211)],!0)}else{if(!l)throw new Error(r(226));if(this[r(170)]<s[r(233)])return n(s[r(233)])}}}},abrupt:function(t,r){for(var e=o,n=this[e(188)].length-1;n>=0;--n){var i=this[e(188)][n];if(i[e(206)]<=this[e(170)]&&u[e(198)](i,e(233))&&this[e(170)]<i[e(233)]){var a=i;break}}a&&("break"===t||e(167)===t)&&a[e(206)]<=r&&r<=a[e(233)]&&(a=null);var s=a?a[e(194)]:{};return s[e(235)]=t,s[e(160)]=r,a?(this.method=e(180),this.next=a.finallyLoc,E):this[e(186)](s)},complete:function(t,r){var e=o;if(e(178)===t[e(235)])throw t[e(160)];return e(199)===t.type||e(167)===t[e(235)]?this[e(180)]=t[e(160)]:e(216)===t[e(235)]?(this[e(208)]=this[e(160)]=t[e(160)],this[e(236)]=e(216),this[e(180)]="end"):e(182)===t[e(235)]&&r&&(this[e(180)]=r),E},finish:function(t){for(var r=o,e=this[r(188)][r(220)]-1;e>=0;--e){var n=this[r(188)][e];if(n[r(233)]===t)return this[r(186)](n[r(194)],n.afterLoc),x(n),E}},catch:function(t){for(var r=o,e=this.tryEntries[r(220)]-1;e>=0;--e){var n=this.tryEntries[e];if(n[r(206)]===t){var i=n.completion;if(r(178)===i[r(235)]){var a=i[r(160)];x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){var n=o;return this[n(174)]={iterator:M(t),resultName:r,nextLoc:e},n(180)===this[n(236)]&&(this[n(160)]=i),E}},a}t.exports=n,t.exports.__esModule=!0,t[r(193)][r(169)]=t[r(193)]}));n[wt(179)](Et);var _t=Pt;!function(t,r){for(var e=Pt,n=t();;)try{if(313900===parseInt(e(121))/1*(-parseInt(e(120))/2)+parseInt(e(123))/3+parseInt(e(122))/4*(parseInt(e(117))/5)+-parseInt(e(119))/6*(parseInt(e(118))/7)+parseInt(e(113))/8*(parseInt(e(114))/9)+-parseInt(e(115))/10+parseInt(e(116))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ct);var It=Et(),kt=It;try{regeneratorRuntime=It}catch(t){typeof globalThis===_t(112)?globalThis.regeneratorRuntime=It:Function("r","regeneratorRuntime = r")(It)}function Pt(t,r){var e=Ct();return(Pt=function(t,r){return e[t-=112]})(t,r)}function Ct(){var t=["object","232TgMnnO","156609GPfwZU","2438530Dcyyha","2689027ipZaGb","76530WrDmtI","147JrToyS","132234ThcTHe","1252414BWdnHd","1bHaGRw","108ujtZWe","1453293oihALO"];return(Ct=function(){return t})()}function Tt(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=J(t);if(r){var o=J(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return G(this,e)}}var St,jt=(St="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,yt(kt.mark((function t(){var r,e,n,o,i,a,s,c,f,l,p,h,v,m,y,w,g,b,E,_,I,k,P,T,S,j,A,F,D,x,O,M,R,$,L,N,z,H,W,B,G,V,q,Y,J,X,Z,K,Q,tt,rt,et,nt,ot,it,at,st,ut,ct,ft,lt,dt,ht,vt,mt,yt,wt,gt,bt,Et,_t,It,Pt,Ct,jt,At,Ft,Dt,xt,Ot,Mt,Rt,$t,Lt,Nt,Ut,zt,Ht,Wt,Bt,Gt,Vt,qt,Yt,Jt,Xt,Zt,Kt,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,Ar,Fr,Dr,xr,Or,Mr,Rr,$r,Lr,Nr,Ur,zr,Hr,Wr,Br,Gr,Vr,qr,Yr,Jr,Xr,Zr,Kr,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,Ae,Fe,De,xe,Oe,Me,Re,$e,Le,Ne,Ue,ze,He,We,Be,Ge,Ve,qe,Ye,Je,Xe,Ze,Ke,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,An=arguments;return kt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(jn=function(){function t(){Sn||(Sn=!0,e.calledRun=!0,T||(W(),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),B()))}Y>0||(H(),Y>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))},fn=function(t,r,e,n){try{var o=tn.getStreamFromFD(t),i=cn(o,r,e);return O[n>>2]=i,0}catch(t){if(void 0===Qe||"ErrnoError"!==t.name)throw t;return t.errno}},un=function(t,r,e,n,o){var i=sn(r,e);try{if(isNaN(i))return 61;var a=tn.getStreamFromFD(t);return Qe.llseek(a,i,n),ft=[a.position>>>0,(ct=a.position,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[o>>2]=ft[0],x[o+4>>2]=ft[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0}catch(t){if(void 0===Qe||"ErrnoError"!==t.name)throw t;return t.errno}},an=function(t,r,e,n){try{var o=tn.getStreamFromFD(t),i=on(o,r,e);return O[n>>2]=i,0}catch(t){if(void 0===Qe||"ErrnoError"!==t.name)throw t;return t.errno}},nn=function(t){try{var r=tn.getStreamFromFD(t);return Qe.close(r),0}catch(t){if(void 0===Qe||"ErrnoError"!==t.name)throw t;return t.errno}},ze=function(t,r,e){var n=e>0?e:Zr(t)+1,o=new Array(n),i=Jr(t,o,0,o.length);return r&&(o.length=i),o},zr=function(t){return this.fromWireType(x[t>>2])},Mr=function(){this.allocated=[void 0],this.freelist=[]},Or=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)}})},Ar=function(t,r,e,n,o,i){var a=r.length;a<2&&It("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=[It,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(d(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(O[t>>2])},fr=function(t,r){if(null===r)return this.isReference&&It("null is not a valid ".concat(this.name)),0;r.$$||It('Cannot pass "'.concat(Wr(r),'" as a ').concat(this.name)),r.$$.ptr||It("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&It("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&&It("null is not a valid ".concat(this.name)),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;r.$$||It('Cannot pass "'.concat(Wr(r),'" as a ').concat(this.name)),r.$$.ptr||It("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&It("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&&It("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:It("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,Ur.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:It("Unsupporting sharing policy")}return e},ur=function(t,r){if(null===r)return this.isReference&&It("null is not a valid ".concat(this.name)),0;r.$$||It('Cannot pass "'.concat(Wr(r),'" as a ').concat(this.name)),r.$$.ptr||It("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(){},Kt=function(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=Xt(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?Zt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Zt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(r),s=Ut[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?Zt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Zt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})},Ft=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 At(t,r,e)},At=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.name;if(t||It('type "'.concat(n,'" must have a positive integer typeid pointer')),bt.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;It("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){O[this.ptr+4>>2]=t},this.get_type=function(){return O[this.ptr+4>>2]},this.set_destructor=function(t){O[this.ptr+8>>2]=t},this.get_destructor=function(){return O[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){O[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return O[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Tn(this.get_type()))return O[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},ut=function(){var t={a:_n};function r(t,r){return In=t.exports,P=In.I,$(),yr=In.M,V(In.J),Q("wasm-instantiate"),In}if(K("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(k,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(!k&&(s||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&&k)return new Uint8Array(k);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(Y--,e.monitorRunDependencies&&e.monitorRunDependencies(Y),0==Y&&(null!==J&&(clearInterval(J),J=null),X)){var r=X;X=null,r()}},K=function(t){Y++,e.monitorRunDependencies&&e.monitorRunDependencies(Y)},Z=function(t){return t},q=function(t){z.unshift(t)},V=function(t){N.unshift(t)},G=function(t){L.unshift(t)},B=function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)q(e.postRun.shift());lt(z)},W=function(){e.noFSInit||Qe.init.initialized||Qe.init(),Qe.ignorePermissions=!1,We.init(),lt(N)},H=function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)G(e.preRun.shift());lt(L)},$=function(){var t=P.buffer;e.HEAP8=j=new Int8Array(t),e.HEAP16=F=new Int16Array(t),e.HEAPU8=A=new Uint8Array(t),e.HEAPU16=D=new Uint16Array(t),e.HEAP32=x=new Int32Array(t),e.HEAPU32=O=new Uint32Array(t),e.HEAPF32=M=new Float32Array(t),e.HEAPF64=R=new Float64Array(t)},S=function(t,r){t||tt(r)},p=function(t){return e.locateFile?e.locateFile(t,l):l+t},(e=r=An.length>0&&void 0!==An[0]?An[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",s="object"==("undefined"==typeof window?"undefined":d(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":d(process))&&"object"==d(process.versions)&&"string"==typeof process.versions.node,l="",!f){t.next=71;break}return t.next=56,import("module");case 56: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=72;break;case 71:(s||c)&&(c?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),St&&(l=St),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 72: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&&(k=e.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":d(WebAssembly))&&tt("no native wasm support detected"),T=!1,L=[],N=[],z=[],Y=0,J=null,X=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=p(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,lt=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;A[e];)r+=yt[A[e++]];return r},gt={},bt={},Et={},It=function(t){throw new _t(t)},Ct=function(t){throw new Pt(t)},jt=function(t,r,e){function n(r){var n=e(r);n.length!==t.length&&Ct("Mismatched type converter count");for(var o=0;o<t.length;++o)Ft(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)},Dt=function(t,r,e,n){r=wt(r),Ft(t,{name:r,fromWireType:function(t){return!!t},toWireType:function(t,r){return r?e:n},argPackAdvance:8,readValueFromPointer:function(t){return this.fromWireType(A[t])},destructorFunction:null})},xt=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},Ot=function(t){It(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)},Lt=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)},Ut={},zt=function(){return Object.keys(Yt).length},Ht=function(){var t=[];for(var r in Yt)Yt.hasOwnProperty(r)&&t.push(Yt[r]);return t},Wt=[],Bt=function(){for(;Wt.length;){var t=Wt.pop();t.$$.deleteScheduled=!1,t.delete()}},Vt=function(t){Gt=t,Wt.length&&Gt&&Gt(Bt)},qt=function(){e.getInheritedInstanceCount=zt,e.getLiveInheritedInstances=Ht,e.flushPendingDeletes=Bt,e.setDelayFunction=Vt},Yt={},Jt=function(t,r){for(void 0===r&&It("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},Xt=function(t,r){return r=Jt(t,r),Yt[r]},Zt=function(t,r){return r.ptrType&&r.ptr||Ct("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&Ct("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){Lt(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||Ot(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Qt(Object.create(Object.getPrototypeOf(this),{$$:{value:xt(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||Ot(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&It("Object already scheduled for deletion"),Rt(this),Lt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||Ot(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&It("Object already scheduled for deletion"),Wt.push(this),1===Wt.length&&Gt&&Gt(Bt),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)||It("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])&&It("Cannot register public name '".concat(t,"' twice")),nr(e,t,t),e.hasOwnProperty(n)&&It("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||It("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:Kt})},hr=function(t,r,n){e.hasOwnProperty(t)||Ct("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&&It("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=Cn(t),e=wt(r);return Pn(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 Ut[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(O[r+4*n>>2]);return e},Sr=function(t){for(;t.length;){var r=t.pop();t.pop()(r)}},Fr=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]=Ar(e,n,null,o,i),[]})),[]}))},Dr=function(t){var r=(t=t.trim()).indexOf("(");return-1!==r?t.substr(0,r):t},xr=function(t,r,e,n,o,i,a,s,u){var c=Tr(e,n);r=wt(r),r=Dr(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=Ar(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)},Lr=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=Lr},Ur={toValue:function(t){return t||It("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})}}},Hr=function(t,r){r=wt(r),Ft(t,{name:r,fromWireType:function(t){var r=Ur.toValue(t);return $r(t),r},toWireType:function(t,r){return Ur.toHandle(r)},argPackAdvance:8,readValueFromPointer:zr,destructorFunction:null})},Wr=function(t){if(null===t)return"null";var r=d(t);return"object"===r||"array"===r||"function"===r?t.toString():""+t},Br=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))}},Gr=function(t,r,e){r=wt(r),Ft(t,{name:r,fromWireType:function(t){return t},toWireType:function(t,r){return r},argPackAdvance:8,readValueFromPointer:Br(r,e),destructorFunction:null})},Vr=function(t,r,e){switch(r){case 1:return e?function(t){return j[t>>0]}:function(t){return A[t>>0]};case 2:return e?function(t){return F[t>>1]}:function(t){return D[t>>1]};case 4:return e?function(t){return x[t>>2]}:function(t){return O[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");Ft(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:Vr(r,e,0!==n),destructorFunction:null})},Yr=function(t,r,e){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(t){var r=O[t>>2],e=O[t+4>>2];return new n(j.buffer,e,r)}e=wt(e),Ft(t,{name:e,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Jr=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},Xr=function(t,r,e){return Jr(t,A,r,e)},Zr=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},Kr="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&&Kr)return Kr.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(A,t,r):""},re=function(t,r){var e="std::string"===(r=wt(r));Ft(t,{name:r,fromWireType:function(t){var r,n=O[t>>2],o=t+4;if(e)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==A[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(A[o+a]);r=c.join("")}return Pn(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||It("Cannot pass non-string to std::string"),n=e&&o?Zr(r):r.length;var i=kn(4+n+1),a=i+4;if(O[i>>2]=n,e&&o)Xr(r,a,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Pn(a),It("String has UTF-16 code units that do not fit in 8 bits")),A[a+s]=u}else for(s=0;s<n;++s)A[a+s]=r[s];return null!==t&&t.push(Pn,i),i},argPackAdvance:8,readValueFromPointer:lr,destructorFunction:function(t){Pn(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)&&D[n];)++n;if((e=n<<1)-t>32&&ee)return ee.decode(A.subarray(t,e));for(var i="",a=0;!(a>=r/2);++a){var s=F[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);F[r>>1]=a,r+=2}return F[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=x[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)),x[r>>2]=a,(r+=4)+4>o)break}return x[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 D},s=1):4===r&&(n=ae,o=se,a=ue,i=function(){return O},s=2),Ft(t,{name:e,fromWireType:function(t){for(var e,o=O[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 Pn(t),e},toWireType:function(t,n){"string"!=typeof n&&It("Cannot pass non-string to C++ string type ".concat(e));var i=a(n),u=kn(4+i+r);return O[u>>2]=i>>s,o(n,u+4,i+r),null!==t&&t.push(Pn,u),u},argPackAdvance:8,readValueFromPointer:zr,destructorFunction:function(t){Pn(t)}})},fe=function(t,r){r=wt(r),Ft(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=Ur.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&&It(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(O[r+4*n>>2],"parameter "+n);return e},ge=function(t,r,e){var n=[],o=t.toWireType(n,e);return n.length&&(O[r>>2]=Ur.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 Ur.toHandle(de(t))},Ie=function(){return Ur.toHandle({})},ke=function(t){var r=Ur.toValue(t);Sr(r),$r(t)},Pe=function(t,r,e){t=Ur.toValue(t),r=Ur.toValue(r),e=Ur.toValue(e),t[r]=e},Ce=function(t,r){var e=(t=ye(t,"_emval_take_value")).readValueFromPointer(r);return Ur.toHandle(e)},Te=function(){tt("")},Se=function(){return performance.now()},je=function(t,r,e){return A.copyWithin(t,r,r+e)},Ae=function(t){tt("OOM")},Fe=function(t){A.length,Ae()},De={},xe=function(){return a||"./this.program"},Oe=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":d(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:xe()};for(var e in De)void 0===De[e]?delete r[e]:r[e]=De[e];var n=[];for(var e in r)n.push("".concat(e,"=").concat(r[e]));t.strings=n}return t.strings},Me=function(t,r){for(var e=0;e<t.length;++e)j[r++>>0]=t.charCodeAt(e);j[r>>0]=0},Re={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=Re.isAbs(t),e="/"===t.substr(-1);return(t=Re.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t},dirname:function(t){var r=Re.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=Re.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?t:t.substr(r+1)},join:function(){var t=Array.prototype.slice.call(arguments);return Re.normalize(t.join("/"))},join2:function(t,r){return Re.normalize(t+"/"+r)}},$e=function(){if("object"==("undefined"==typeof crypto?"undefined":d(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")},Le=function(t){return(Le=$e())(t)},Ne={resolve:function(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:Qe.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=Re.isAbs(n)}return(r?"/":"")+(t=Re.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=Ne.resolve(t).substr(1),r=Ne.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("/")}},Ue=[],He=function(){if(!Ue.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;Ue=ze(t,!0)}return Ue.shift()},We={ttys:[],init:function(){},shutdown:function(){},register:function(t,r){We.ttys[t]={input:[],output:[],ops:r},Qe.registerDevice(t,We.stream_ops)},stream_ops:{open:function(t){var r=We.ttys[t.node.rdev];if(!r)throw new Qe.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 Qe.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 Qe.ErrnoError(29)}if(void 0===s&&0===i)throw new Qe.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 Qe.ErrnoError(60);try{for(var i=0;i<n;i++)t.tty.ops.put_char(t.tty,r[e+i])}catch(t){throw new Qe.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(t){return He()},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=[])}}},Be=function(t){tt()},Ge={ops_table:null,mount:function(t){return Ge.createNode(null,"/",16895,0)},createNode:function(t,r,e,n){if(Qe.isBlkdev(e)||Qe.isFIFO(e))throw new Qe.ErrnoError(63);Ge.ops_table||(Ge.ops_table={dir:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr,lookup:Ge.node_ops.lookup,mknod:Ge.node_ops.mknod,rename:Ge.node_ops.rename,unlink:Ge.node_ops.unlink,rmdir:Ge.node_ops.rmdir,readdir:Ge.node_ops.readdir,symlink:Ge.node_ops.symlink},stream:{llseek:Ge.stream_ops.llseek}},file:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr},stream:{llseek:Ge.stream_ops.llseek,read:Ge.stream_ops.read,write:Ge.stream_ops.write,allocate:Ge.stream_ops.allocate,mmap:Ge.stream_ops.mmap,msync:Ge.stream_ops.msync}},link:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr,readlink:Ge.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr},stream:Qe.chrdev_stream_ops}});var o=Qe.createNode(t,r,e,n);return Qe.isDir(o.mode)?(o.node_ops=Ge.ops_table.dir.node,o.stream_ops=Ge.ops_table.dir.stream,o.contents={}):Qe.isFile(o.mode)?(o.node_ops=Ge.ops_table.file.node,o.stream_ops=Ge.ops_table.file.stream,o.usedBytes=0,o.contents=null):Qe.isLink(o.mode)?(o.node_ops=Ge.ops_table.link.node,o.stream_ops=Ge.ops_table.link.stream):Qe.isChrdev(o.mode)&&(o.node_ops=Ge.ops_table.chrdev.node,o.stream_ops=Ge.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=Qe.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,Qe.isDir(t.mode)?r.size=4096:Qe.isFile(t.mode)?r.size=t.usedBytes:Qe.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&&Ge.resizeFileStorage(t,r.size)},lookup:function(t,r){throw Qe.genericErrors[44]},mknod:function(t,r,e,n){return Ge.createNode(t,r,e,n)},rename:function(t,r,e){if(Qe.isDir(t.mode)){var n;try{n=Qe.lookupNode(r,e)}catch(t){}if(n)for(var o in n.contents)throw new Qe.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=Qe.lookupNode(t,r);for(var n in e.contents)throw new Qe.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=Ge.createNode(t,r,41471,0);return n.link=e,n},readlink:function(t){if(!Qe.isLink(t.mode))throw new Qe.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(Ge.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&&Qe.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new Qe.ErrnoError(28);return n},allocate:function(t,r,e){Ge.expandFileStorage(t.node,r+e),t.node.usedBytes=Math.max(t.node.usedBytes,r+e)},mmap:function(t,r,e,n,o){if(!Qe.isFile(t.node.mode))throw new Qe.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=Be()))throw new Qe.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 Ge.stream_ops.write(t,r,0,n,e,!1),0}}},Ve=function(t,r,e,n){var o=n?"":Z("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&&K(o)},qe=function(t,r,e,n,o,i){Qe.createDataFile(t,r,e,n,o,i)},Ye=e.preloadPlugins||[],Je=function(t,r,e,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return Ye.forEach((function(i){o||i.canHandle(r)&&(i.handle(t,r,e,n),o=!0)})),o},Xe=function(t,r,e,n,o,i,a,s,u,c){var f=r?Ne.resolve(Re.join2(t,r)):t,l=Z("cp ".concat(f));function p(e){function p(e){c&&c(),s||qe(t,r,e,n,o,u),i&&i(),Q(l)}Je(e,f,p,(function(){a&&a(),Q(l)}))||p(e)}K(l),"string"==typeof e?Ve(e,(function(t){return p(t)}),a):p(e)},Ze=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},Ke=function(t,r){var e=0;return t&&(e|=365),r&&(e|=146),e},Qe={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=Ne.resolve(t)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new Qe.ErrnoError(32);for(var e=t.split("/").filter((function(t){return!!t})),n=Qe.root,o="/",i=0;i<e.length;i++){var a=i===e.length-1;if(a&&r.parent)break;if(n=Qe.lookupNode(n,e[i]),o=Re.join2(o,e[i]),Qe.isMountpoint(n)&&(!a||a&&r.follow_mount)&&(n=n.mounted.root),!a||r.follow)for(var s=0;Qe.isLink(n.mode);){var u=Qe.readlink(o);if(o=Ne.resolve(Re.dirname(o),u),n=Qe.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new Qe.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var r;;){if(Qe.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)%Qe.nameTable.length},hashAddNode:function(t){var r=Qe.hashName(t.parent.id,t.name);t.name_next=Qe.nameTable[r],Qe.nameTable[r]=t},hashRemoveNode:function(t){var r=Qe.hashName(t.parent.id,t.name);if(Qe.nameTable[r]===t)Qe.nameTable[r]=t.name_next;else for(var e=Qe.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=Qe.mayLookup(t);if(e)throw new Qe.ErrnoError(e,t);for(var n=Qe.hashName(t.id,r),o=Qe.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===t.id&&i===r)return o}return Qe.lookup(t,r)},createNode:function(t,r,e,n){var o=new Qe.FSNode(t,r,e,n);return Qe.hashAddNode(o),o},destroyNode:function(t){Qe.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 Qe.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=Qe.nodePermissions(t,"x");return r||(t.node_ops.lookup?0:2)},mayCreate:function(t,r){try{return Qe.lookupNode(t,r),20}catch(t){}return Qe.nodePermissions(t,"wx")},mayDelete:function(t,r,e){var n;try{n=Qe.lookupNode(t,r)}catch(t){return t.errno}var o=Qe.nodePermissions(t,"wx");if(o)return o;if(e){if(!Qe.isDir(n.mode))return 54;if(Qe.isRoot(n)||Qe.getPath(n)===Qe.cwd())return 10}else if(Qe.isDir(n.mode))return 31;return 0},mayOpen:function(t,r){return t?Qe.isLink(t.mode)?32:Qe.isDir(t.mode)&&("r"!==Qe.flagsToPermissionString(r)||512&r)?31:Qe.nodePermissions(t,Qe.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=Qe.MAX_OPEN_FDS;t++)if(!Qe.streams[t])return t;throw new Qe.ErrnoError(33)},getStreamChecked:function(t){var r=Qe.getStream(t);if(!r)throw new Qe.ErrnoError(8);return r},getStream:function(t){return Qe.streams[t]},createStream:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Qe.FSStream||(Qe.FSStream=function(){this.shared={}},Qe.FSStream.prototype={},Object.defineProperties(Qe.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 Qe.FSStream,t),-1==r&&(r=Qe.nextfd()),t.fd=r,Qe.streams[r]=t,t},closeStream:function(t){Qe.streams[t]=null},chrdev_stream_ops:{open:function(t){var r=Qe.getDevice(t.node.rdev);t.stream_ops=r.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new Qe.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){Qe.devices[t]={stream_ops:r}},getDevice:function(t){return Qe.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),Qe.syncFSRequests++,Qe.syncFSRequests>1&&I("warning: ".concat(Qe.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var e=Qe.getMounts(Qe.root.mount),n=0;function o(t){return Qe.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&&Qe.root)throw new Qe.ErrnoError(10);if(!o&&!i){var a=Qe.lookupPath(e,{follow_mount:!1});if(e=a.path,n=a.node,Qe.isMountpoint(n))throw new Qe.ErrnoError(10);if(!Qe.isDir(n.mode))throw new Qe.ErrnoError(54)}var s={type:t,opts:r,mountpoint:e,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?Qe.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var r=Qe.lookupPath(t,{follow_mount:!1});if(!Qe.isMountpoint(r.node))throw new Qe.ErrnoError(28);var e=r.node,n=e.mounted,o=Qe.getMounts(n);Object.keys(Qe.nameTable).forEach((function(t){for(var r=Qe.nameTable[t];r;){var e=r.name_next;o.includes(r.mount)&&Qe.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=Qe.lookupPath(t,{parent:!0}).node,o=Re.basename(t);if(!o||"."===o||".."===o)throw new Qe.ErrnoError(28);var i=Qe.mayCreate(n,o);if(i)throw new Qe.ErrnoError(i);if(!n.node_ops.mknod)throw new Qe.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,Qe.mknod(t,r,0)},mkdir:function(t,r){return r=void 0!==r?r:511,r&=1023,r|=16384,Qe.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{Qe.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,Qe.mknod(t,r,e)},symlink:function(t,r){if(!Ne.resolve(t))throw new Qe.ErrnoError(44);var e=Qe.lookupPath(r,{parent:!0}).node;if(!e)throw new Qe.ErrnoError(44);var n=Re.basename(r),o=Qe.mayCreate(e,n);if(o)throw new Qe.ErrnoError(o);if(!e.node_ops.symlink)throw new Qe.ErrnoError(63);return e.node_ops.symlink(e,n,t)},rename:function(t,r){var e,n,o=Re.dirname(t),i=Re.dirname(r),a=Re.basename(t),s=Re.basename(r);if(e=Qe.lookupPath(t,{parent:!0}).node,n=Qe.lookupPath(r,{parent:!0}).node,!e||!n)throw new Qe.ErrnoError(44);if(e.mount!==n.mount)throw new Qe.ErrnoError(75);var u,c=Qe.lookupNode(e,a),f=Ne.relative(t,i);if("."!==f.charAt(0))throw new Qe.ErrnoError(28);if("."!==(f=Ne.relative(r,o)).charAt(0))throw new Qe.ErrnoError(55);try{u=Qe.lookupNode(n,s)}catch(t){}if(c!==u){var l=Qe.isDir(c.mode),p=Qe.mayDelete(e,a,l);if(p)throw new Qe.ErrnoError(p);if(p=u?Qe.mayDelete(n,s,l):Qe.mayCreate(n,s))throw new Qe.ErrnoError(p);if(!e.node_ops.rename)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(c)||u&&Qe.isMountpoint(u))throw new Qe.ErrnoError(10);if(n!==e&&(p=Qe.nodePermissions(e,"w")))throw new Qe.ErrnoError(p);Qe.hashRemoveNode(c);try{e.node_ops.rename(c,n,s)}catch(t){throw t}finally{Qe.hashAddNode(c)}}},rmdir:function(t){var r=Qe.lookupPath(t,{parent:!0}).node,e=Re.basename(t),n=Qe.lookupNode(r,e),o=Qe.mayDelete(r,e,!0);if(o)throw new Qe.ErrnoError(o);if(!r.node_ops.rmdir)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(n))throw new Qe.ErrnoError(10);r.node_ops.rmdir(r,e),Qe.destroyNode(n)},readdir:function(t){var r=Qe.lookupPath(t,{follow:!0}).node;if(!r.node_ops.readdir)throw new Qe.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(t){var r=Qe.lookupPath(t,{parent:!0}).node;if(!r)throw new Qe.ErrnoError(44);var e=Re.basename(t),n=Qe.lookupNode(r,e),o=Qe.mayDelete(r,e,!1);if(o)throw new Qe.ErrnoError(o);if(!r.node_ops.unlink)throw new Qe.ErrnoError(63);if(Qe.isMountpoint(n))throw new Qe.ErrnoError(10);r.node_ops.unlink(r,e),Qe.destroyNode(n)},readlink:function(t){var r=Qe.lookupPath(t).node;if(!r)throw new Qe.ErrnoError(44);if(!r.node_ops.readlink)throw new Qe.ErrnoError(28);return Ne.resolve(Qe.getPath(r.parent),r.node_ops.readlink(r))},stat:function(t,r){var e=Qe.lookupPath(t,{follow:!r}).node;if(!e)throw new Qe.ErrnoError(44);if(!e.node_ops.getattr)throw new Qe.ErrnoError(63);return e.node_ops.getattr(e)},lstat:function(t){return Qe.stat(t,!0)},chmod:function(t,r,e){var n;if(!(n="string"==typeof t?Qe.lookupPath(t,{follow:!e}).node:t).node_ops.setattr)throw new Qe.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,r){Qe.chmod(t,r,!0)},fchmod:function(t,r){var e=Qe.getStreamChecked(t);Qe.chmod(e.node,r)},chown:function(t,r,e,n){var o;if(!(o="string"==typeof t?Qe.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new Qe.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,r,e){Qe.chown(t,r,e,!0)},fchown:function(t,r,e){var n=Qe.getStreamChecked(t);Qe.chown(n.node,r,e)},truncate:function(t,r){if(r<0)throw new Qe.ErrnoError(28);var e;if(!(e="string"==typeof t?Qe.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new Qe.ErrnoError(63);if(Qe.isDir(e.mode))throw new Qe.ErrnoError(31);if(!Qe.isFile(e.mode))throw new Qe.ErrnoError(28);var n=Qe.nodePermissions(e,"w");if(n)throw new Qe.ErrnoError(n);e.node_ops.setattr(e,{size:r,timestamp:Date.now()})},ftruncate:function(t,r){var e=Qe.getStreamChecked(t);if(0==(2097155&e.flags))throw new Qe.ErrnoError(28);Qe.truncate(e.node,r)},utime:function(t,r,e){var n=Qe.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,e)})},open:function(t,r,n){if(""===t)throw new Qe.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(r="string"==typeof r?Ze(r):r)?4095&n|32768:0,"object"==d(t))o=t;else{t=Re.normalize(t);try{o=Qe.lookupPath(t,{follow:!(131072&r)}).node}catch(t){}}var i=!1;if(64&r)if(o){if(128&r)throw new Qe.ErrnoError(20)}else o=Qe.mknod(t,n,0),i=!0;if(!o)throw new Qe.ErrnoError(44);if(Qe.isChrdev(o.mode)&&(r&=-513),65536&r&&!Qe.isDir(o.mode))throw new Qe.ErrnoError(54);if(!i){var a=Qe.mayOpen(o,r);if(a)throw new Qe.ErrnoError(a)}512&r&&!i&&Qe.truncate(o,0),r&=-131713;var s=Qe.createStream({node:o,path:Qe.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||(Qe.readFiles||(Qe.readFiles={}),t in Qe.readFiles||(Qe.readFiles[t]=1)),s},close:function(t){if(Qe.isClosed(t))throw new Qe.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{Qe.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,r,e){if(Qe.isClosed(t))throw new Qe.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new Qe.ErrnoError(70);if(0!=e&&1!=e&&2!=e)throw new Qe.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 Qe.ErrnoError(28);if(Qe.isClosed(t))throw new Qe.ErrnoError(8);if(1==(2097155&t.flags))throw new Qe.ErrnoError(8);if(Qe.isDir(t.node.mode))throw new Qe.ErrnoError(31);if(!t.stream_ops.read)throw new Qe.ErrnoError(28);var i=void 0!==o;if(i){if(!t.seekable)throw new Qe.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 Qe.ErrnoError(28);if(Qe.isClosed(t))throw new Qe.ErrnoError(8);if(0==(2097155&t.flags))throw new Qe.ErrnoError(8);if(Qe.isDir(t.node.mode))throw new Qe.ErrnoError(31);if(!t.stream_ops.write)throw new Qe.ErrnoError(28);t.seekable&&1024&t.flags&&Qe.llseek(t,0,2);var a=void 0!==o;if(a){if(!t.seekable)throw new Qe.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(Qe.isClosed(t))throw new Qe.ErrnoError(8);if(r<0||e<=0)throw new Qe.ErrnoError(28);if(0==(2097155&t.flags))throw new Qe.ErrnoError(8);if(!Qe.isFile(t.node.mode)&&!Qe.isDir(t.node.mode))throw new Qe.ErrnoError(43);if(!t.stream_ops.allocate)throw new Qe.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 Qe.ErrnoError(2);if(1==(2097155&t.flags))throw new Qe.ErrnoError(2);if(!t.stream_ops.mmap)throw new Qe.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 Qe.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=Qe.open(t,e.flags),o=Qe.stat(t).size,i=new Uint8Array(o);return Qe.read(n,i,0,o,0),"utf8"===e.encoding?r=Qr(i,0):"binary"===e.encoding&&(r=i),Qe.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=Qe.open(t,e.flags,e.mode);if("string"==typeof r){var o=new Uint8Array(Zr(r)+1),i=Jr(r,o,0,o.length);Qe.write(n,o,0,i,void 0,e.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");Qe.write(n,r,0,r.byteLength,void 0,e.canOwn)}Qe.close(n)},cwd:function(){return Qe.currentPath},chdir:function(t){var r=Qe.lookupPath(t,{follow:!0});if(null===r.node)throw new Qe.ErrnoError(44);if(!Qe.isDir(r.node.mode))throw new Qe.ErrnoError(54);var e=Qe.nodePermissions(r.node,"x");if(e)throw new Qe.ErrnoError(e);Qe.currentPath=r.path},createDefaultDirectories:function(){Qe.mkdir("/tmp"),Qe.mkdir("/home"),Qe.mkdir("/home/web_user")},createDefaultDevices:function(){Qe.mkdir("/dev"),Qe.registerDevice(Qe.makedev(1,3),{read:function(){return 0},write:function(t,r,e,n,o){return n}}),Qe.mkdev("/dev/null",Qe.makedev(1,3)),We.register(Qe.makedev(5,0),We.default_tty_ops),We.register(Qe.makedev(6,0),We.default_tty1_ops),Qe.mkdev("/dev/tty",Qe.makedev(5,0)),Qe.mkdev("/dev/tty1",Qe.makedev(6,0));var t=new Uint8Array(1024),r=0,e=function(){return 0===r&&(r=Le(t).byteLength),t[--r]};Qe.createDevice("/dev","random",e),Qe.createDevice("/dev","urandom",e),Qe.mkdir("/dev/shm"),Qe.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Qe.mkdir("/proc");var t=Qe.mkdir("/proc/self");Qe.mkdir("/proc/self/fd"),Qe.mount({mount:function(){var r=Qe.createNode(t,"fd",16895,73);return r.node_ops={lookup:function(t,r){var e=+r,n=Qe.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?Qe.createDevice("/dev","stdin",e.stdin):Qe.symlink("/dev/tty","/dev/stdin"),e.stdout?Qe.createDevice("/dev","stdout",null,e.stdout):Qe.symlink("/dev/tty","/dev/stdout"),e.stderr?Qe.createDevice("/dev","stderr",null,e.stderr):Qe.symlink("/dev/tty1","/dev/stderr"),Qe.open("/dev/stdin",0),Qe.open("/dev/stdout",1),Qe.open("/dev/stderr",1)},ensureErrnoError:function(){Qe.ErrnoError||(Qe.ErrnoError=function(t,r){this.name="ErrnoError",this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},Qe.ErrnoError.prototype=new Error,Qe.ErrnoError.prototype.constructor=Qe.ErrnoError,[44].forEach((function(t){Qe.genericErrors[t]=new Qe.ErrnoError(t),Qe.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){Qe.ensureErrnoError(),Qe.nameTable=new Array(4096),Qe.mount(Ge,{},"/"),Qe.createDefaultDirectories(),Qe.createDefaultDevices(),Qe.createSpecialDirectories(),Qe.filesystems={MEMFS:Ge}},init:function(t,r,n){Qe.init.initialized=!0,Qe.ensureErrnoError(),e.stdin=t||e.stdin,e.stdout=r||e.stdout,e.stderr=n||e.stderr,Qe.createStandardStreams()},quit:function(){Qe.init.initialized=!1;for(var t=0;t<Qe.streams.length;t++){var r=Qe.streams[t];r&&Qe.close(r)}},findObject:function(t,r){var e=Qe.analyzePath(t,r);return e.exists?e.object:null},analyzePath:function(t,r){try{t=(n=Qe.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=Qe.lookupPath(t,{parent:!0});e.parentExists=!0,e.parentPath=n.path,e.parentObject=n.node,e.name=Re.basename(t),n=Qe.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:Qe.getPath(t);for(var o=r.split("/").reverse();o.length;){var i=o.pop();if(i){var a=Re.join2(t,i);try{Qe.mkdir(a)}catch(t){}t=a}}return a},createFile:function(t,r,e,n,o){var i=Re.join2("string"==typeof t?t:Qe.getPath(t),r),a=Ke(n,o);return Qe.create(i,a)},createDataFile:function(t,r,e,n,o,i){var a=r;t&&(t="string"==typeof t?t:Qe.getPath(t),a=r?Re.join2(t,r):t);var s=Ke(n,o),u=Qe.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}Qe.chmod(u,146|s);var p=Qe.open(u,577);Qe.write(p,e,0,e.length,0,i),Qe.close(p),Qe.chmod(u,s)}},createDevice:function(t,r,e,n){var o=Re.join2("string"==typeof t?t:Qe.getPath(t),r),i=Ke(!!e,!!n);Qe.createDevice.major||(Qe.createDevice.major=64);var a=Qe.makedev(Qe.createDevice.major++,0);return Qe.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 Qe.ErrnoError(29)}if(void 0===u&&0===a)throw new Qe.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 Qe.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),a}}),Qe.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=ze(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new Qe.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||[]):ze(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=Qe.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 Qe.forceLoadFile(u),r.apply(null,arguments)}})),f.read=function(t,r,e,n,o){return Qe.forceLoadFile(u),l(t,r,e,n,o)},f.mmap=function(t,r,e,n,o){Qe.forceLoadFile(u);var i=Be();if(!i)throw new Qe.ErrnoError(48);return l(t,j,i,r,e),{ptr:i,allocated:!0}},u.stream_ops=f,u}},tn={DEFAULT_POLLMASK:5,calculateAt:function(t,r,e){if(Re.isAbs(r))return r;var n;if(n=-100===t?Qe.cwd():tn.getStreamFromFD(t).path,0==r.length){if(!e)throw new Qe.ErrnoError(44);return n}return Re.join2(n,r)},doStat:function(t,r,e){try{var n=t(r)}catch(t){if(t&&t.node&&Re.normalize(r)!==Re.normalize(Qe.getPath(t.node)))return-54;throw t}x[e>>2]=n.dev,x[e+4>>2]=n.mode,O[e+8>>2]=n.nlink,x[e+12>>2]=n.uid,x[e+16>>2]=n.gid,x[e+20>>2]=n.rdev,ft=[n.size>>>0,(ct=n.size,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[e+24>>2]=ft[0],x[e+28>>2]=ft[1],x[e+32>>2]=4096,x[e+36>>2]=n.blocks;var o=n.atime.getTime(),i=n.mtime.getTime(),a=n.ctime.getTime();return ft=[Math.floor(o/1e3)>>>0,(ct=Math.floor(o/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[e+40>>2]=ft[0],x[e+44>>2]=ft[1],O[e+48>>2]=o%1e3*1e3,ft=[Math.floor(i/1e3)>>>0,(ct=Math.floor(i/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[e+56>>2]=ft[0],x[e+60>>2]=ft[1],O[e+64>>2]=i%1e3*1e3,ft=[Math.floor(a/1e3)>>>0,(ct=Math.floor(a/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[e+72>>2]=ft[0],x[e+76>>2]=ft[1],O[e+80>>2]=a%1e3*1e3,ft=[n.ino>>>0,(ct=n.ino,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],x[e+88>>2]=ft[0],x[e+92>>2]=ft[1],0},doMsync:function(t,r,e,n,o){if(!Qe.isFile(r.node.mode))throw new Qe.ErrnoError(43);if(2&n)return 0;var i=A.slice(t,t+e);Qe.msync(r,i,o,e,n)},varargs:void 0,get:function(){var t=x[+tn.varargs>>2];return tn.varargs+=4,t},getp:function(){return tn.get()},getStr:function(t){return te(t)},getStreamFromFD:function(t){return Qe.getStreamChecked(t)}},rn=function(t,r){var e=0;return Oe().forEach((function(n,o){var i=r+e;O[t+4*o>>2]=i,Me(n,i),e+=n.length+1})),0},en=function(t,r){var e=Oe();O[t>>2]=e.length;var n=0;return e.forEach((function(t){return n+=t.length+1})),O[r>>2]=n,0},on=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=O[r>>2],s=O[r+4>>2];r+=8;var u=Qe.read(t,j,a,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},sn=function(t,r){return r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN},cn=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=O[r>>2],s=O[r+4>>2];r+=8;var u=Qe.write(t,j,a,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},ln=function(t){return t%4==0&&(t%100!=0||t%400==0)},pn=function(t,r){for(var e=0,n=0;n<=r;e+=t[n++]);return e},dn=[31,29,31,30,31,30,31,31,30,31,30,31],hn=[31,28,31,30,31,30,31,31,30,31,30,31],vn=function(t,r){for(var e=new Date(t.getTime());r>0;){var n=ln(e.getFullYear()),o=e.getMonth(),i=(n?dn:hn)[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},mn=function(t,r){j.set(t,r)},yn=function(t,r,e,n){var o=O[n+40>>2],i={tm_sec:x[n>>2],tm_min:x[n+4>>2],tm_hour:x[n+8>>2],tm_mday:x[n+12>>2],tm_mon:x[n+16>>2],tm_year:x[n+20>>2],tm_wday:x[n+24>>2],tm_yday:x[n+28>>2],tm_isdst:x[n+32>>2],tm_gmtoff:x[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=vn(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+pn(ln(t.tm_year+1900)?dn:hn,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&&ln(t.tm_year)||(r=1)}}else{r=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&ln(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=ze(a,!1);return y.length>r?0:(mn(y,t),y.length-1)},wn=function(t,r,e,n,o){return yn(t,r,e,n)},mt(),_t=e.BindingError=function(t){U(e,t);var r=Tt(e);function e(t){var n;return u(this,e),(n=r.call(this,t)).name="BindingError",n}return C(e)}(pt(Error)),Pt=e.InternalError=function(t){U(e,t);var r=Tt(e);function e(t){var n;return u(this,e),(n=r.call(this,t)).name="InternalError",n}return C(e)}(pt(Error)),tr(),qt(),pr(),Ir=e.UnboundTypeError=_r(Error,"UnboundTypeError"),Or(),Nr(),gn=function(t,r,e,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=Qe.nextInode++,this.name=r,this.mode=e,this.node_ops={},this.stream_ops={},this.rdev=n},bn=365,En=146,Object.defineProperties(gn.prototype,{read:{get:function(){return(this.mode&bn)===bn},set:function(t){t?this.mode|=bn:this.mode&=-366}},write:{get:function(){return(this.mode&En)===En},set:function(t){t?this.mode|=En:this.mode&=-147}},isFolder:{get:function(){return Qe.isDir(this.mode)}},isDevice:{get:function(){return Qe.isChrdev(this.mode)}}}),Qe.FSNode=gn,Qe.createPreloadedFile=Xe,Qe.staticInit(),_n={c:ht,q:vt,C:Dt,i:Cr,h:Fr,e:xr,B:Hr,j:Gr,b:qr,a:Yr,k:re,f:ce,D:fe,y:le,n:ve,d:$r,m:be,o:Ee,F:_e,H:Ie,l:ke,G:Pe,E:Ce,g:Te,x:Se,z:je,s:Fe,t:rn,u:en,A:nn,w:an,p:un,v:fn,r:wn},In=ut(),kn=function(t){return(kn=In.K)(t)},Pn=function(t){return(Pn=In.L)(t)},Cn=function(t){return(Cn=In.N)(t)},Tn=function(t){return(Tn=In.O)(t)},e.dynCall_ji=function(t,r){return(e.dynCall_ji=In.P)(t,r)},e.dynCall_jiji=function(t,r,n,o,i){return(e.dynCall_jiji=In.Q)(t,r,n,o,i)},e.dynCall_viijii=function(t,r,n,o,i,a,s){return(e.dynCall_viijii=In.R)(t,r,n,o,i,a,s)},e.dynCall_iiiiij=function(t,r,n,o,i,a,s){return(e.dynCall_iiiiij=In.S)(t,r,n,o,i,a,s)},e.dynCall_iiiiijj=function(t,r,n,o,i,a,s,u,c){return(e.dynCall_iiiiijj=In.T)(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=In.U)(t,r,n,o,i,a,s,u,c,f)},X=function t(){Sn||jn(),Sn||(X=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return jn(),t.abrupt("return",r.ready);case 274:case"end":return t.stop()}}),t)})))),At=xt;!function(t,r){for(var e=xt,n=t();;)try{if(222231===-parseInt(e(189))/1+parseInt(e(192))/2+-parseInt(e(193))/3+parseInt(e(191))/4+parseInt(e(195))/5*(-parseInt(e(194))/6)+-parseInt(e(188))/7+parseInt(e(187))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ot);var Ft={debug:"debug",warn:At(190)},Dt={debug:!1,debugLevel:Ft[At(190)],debugUuid:""};function xt(t,r){var e=Ot();return(xt=function(t,r){return e[t-=187]})(t,r)}function Ot(){var t=["664700NwGlfp","398934QoaIYs","1285002ArLPkx","5gqwyHQ","3368744RFkSdK","2173570uQLPXw","176826wxXpmB","warn","1213076PTLXcL"];return(Ot=function(){return t})()}function Mt(t,r){var e=$t();return(Mt=function(t,r){return e[t-=322]})(t,r)}!function(t,r){for(var e=Mt,n=t();;)try{if(965730===parseInt(e(347))/1*(-parseInt(e(325))/2)+-parseInt(e(334))/3+-parseInt(e(331))/4*(parseInt(e(339))/5)+parseInt(e(327))/6+-parseInt(e(337))/7*(parseInt(e(340))/8)+-parseInt(e(343))/9*(-parseInt(e(322))/10)+-parseInt(e(338))/11*(-parseInt(e(332))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($t);var Rt=C((function t(r){var e=Mt;u(this,t),this.log=function(t){var e=Mt;if(r[e(335)][e(324)]&&r._opt[e(333)]==Ft[e(324)]){for(var n,o=r[e(335)][e(344)]?"["[e(346)](r[e(335)].debugUuid,"]"):"",i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];(n=console)[e(323)][e(341)](n,[e(345).concat(o,e(336))[e(346)](t,"]")].concat(a))}},this[e(328)]=function(t){var n=e;if(r[n(335)][n(324)]&&(r[n(335)][n(333)]==Ft[n(324)]||r[n(335)][n(333)]==Ft[n(328)])){for(var o,i=r[n(335)][n(344)]?"["[n(346)](r[n(335)][n(344)],"]"):"",a=arguments[n(326)],s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(o=console)[n(323)][n(341)](o,[n(345)[n(346)](i,n(330))[n(346)](t,"]")][n(346)](s))}},this.error=function(t){for(var n,o=e,i=r._opt[o(344)]?"["[o(346)](r[o(335)].debugUuid,"]"):"",a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(n=console)[o(342)][o(341)](n,[o(345)[o(346)](i,o(329))[o(346)](t,"]")][o(346)](s))}}));function $t(){var t=["warn","[❌❌❌][imageDetector][","[❗❗❗][imageDetector][","1828iFLawf","28254948iilTSR","debugLevel","1006686iMwjNs","_opt","[✅✅✅][imageDetector][","434NfIsaa","11XydMaZ","4990zvQTrY","243976jxQHtJ","apply","error","9xmhgzf","debugUuid","JbPro","concat","26CbiZTN","8356090ppuGpe","log","debug","22370bfbLRl","length","4492884xhKiqJ"];return($t=function(){return t})()}!function(t,r){for(var e=Nt,n=t();;)try{if(609840===-parseInt(e(298))/1+-parseInt(e(297))/2+-parseInt(e(292))/3*(-parseInt(e(284))/4)+parseInt(e(283))/5*(-parseInt(e(287))/6)+-parseInt(e(291))/7+parseInt(e(285))/8*(parseInt(e(295))/9)+parseInt(e(299))/10*(parseInt(e(289))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ut);var Lt=function(){var t=Nt;function r(){u(this,r)}return C(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(294),value:function(t,r,e){var n=this;function o(){var i=Nt;n[i(286)](t,o);for(var a=arguments[i(288)],s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r[i(300)](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(296)](),o=arguments[e(288)],i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var s=0;s<n[e(288)];s+=1)n[s].fn[e(300)](n[s].ctx,i);return this}},{key:t(286),value:function(r,e){var n=t,o=this.e||(this.e={});if(!r)return Object[n(290)](o)[n(293)]((function(t){delete o[t]})),void delete this.e;var i=o[r],a=[];if(i&&e)for(var s=0,u=i[n(288)];s<u;s+=1)i[s].fn!==e&&i[s].fn._!==e&&a.push(i[s]);return a[n(288)]?o[r]=a:delete o[r],this}}]),r}();function Nt(t,r){var e=Ut();return(Nt=function(t,r){return e[t-=283]})(t,r)}function Ut(){var t=["17551787VoAqSQ","keys","1900668iNSPMH","9wJfglI","forEach","once","9GpvQsg","slice","1361756RGmfvk","64349JwmawN","10UqKyAK","apply","3825CZVpwh","791152qwjSnf","4846120JbmDHT","off","9162JdLYAS","length"];return(Ut=function(){return t})()}function zt(t,r){var e=Ht();return(zt=function(t,r){return e[t-=414]})(t,r)}function Ht(){var t=["5oTlZTP","parse","29151080ktHUfD","2679592mCuVSW","34OiVSpi","275864FgbfAB","38383tkjrcx","object","745857wnhfjH","2173983vBVIFL","18tYIAJf","keys","4126218gjlFBo"];return(Ht=function(){return t})()}function Wt(){return function(t){var r=zt,e="";if(d(t)===r(421))try{e=JSON.stringify(t),e=JSON[r(415)](e)}catch(r){e=t}else e=t;return e}(Dt)}!function(t,r){for(var e=zt,n=t();;)try{if(414774===parseInt(e(420))/1*(-parseInt(e(418))/2)+-parseInt(e(422))/3+-parseInt(e(417))/4+parseInt(e(414))/5*(-parseInt(e(426))/6)+-parseInt(e(423))/7+-parseInt(e(419))/8*(-parseInt(e(424))/9)+parseInt(e(416))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ht);var Bt=Vt;function Gt(t){var r=function(){var t=Vt;if(typeof Reflect===t(234)||!Reflect[t(217)])return!1;if(Reflect[t(217)][t(207)])return!1;if(typeof Proxy===t(219))return!0;try{return Boolean[t(189)].valueOf[t(241)](Reflect[t(217)](Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=Vt,o=J(t);if(r){var i=J(this)[n(235)];e=Reflect[n(217)](o,arguments,i)}else e=o.apply(this,arguments);return G(this,e)}}function Vt(t,r){var e=qt();return(Vt=function(t,r){return e[t-=189]})(t,r)}function qt(){var t=["function","width","concat","then","module","19AzdVPs","destroy","clear","buildTime","_opt","78436awmMyI","JbPro occlusion detector version is ","check","_isVideoOcclusion","TAG_NAME","undefined","constructor","detector","6419384MDbYAk","load","log"," and is Trial Version[试用版本]","call","delete","9bwUaOi","prototype","data","startTimestamp","originalOptions","debug","forEach","44rbEbxd","4068127wgPuHu","8441280NCyPjT","2068914AhqnnQ","height","error","keys","JessibucaProOcclusionDetector","off","name","load jessibuca occlusion detector error","2118915VgRJGr","sham","_check","OcclusionDetector","catch","updateConfig","validatedFailed, please contact the author to get the correct license","now","result","4615YMeVUi","length","construct","stringify"];return(qt=function(){return t})()}!function(t,r){for(var e=Vt,n=t();;)try{if(421293===parseInt(e(224))/1*(-parseInt(e(229))/2)+-parseInt(e(206))/3+parseInt(e(195))/4*(-parseInt(e(215))/5)+-parseInt(e(198))/6+parseInt(e(196))/7+parseInt(e(237))/8*(parseInt(e(243))/9)+parseInt(e(197))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(qt);var Yt=function(t){var r=Vt;U(n,t);var e=Gt(n);function n(){var t,r=Vt,o=arguments[r(216)]>0&&void 0!==arguments[0]?arguments[0]:{};u(this,n),(t=e[r(241)](this))._opt={},t.TAG_NAME="OcclusionDetector",Object[r(201)](o)[r(194)]((function(t){var e=r;if(void 0===o[t])throw new Error('JbProOcclusionDetector option "'[e(221)](t,'" can not be undefined'))})),t[r(192)]=o;var i=Wt(),a=Object.assign({},i,o);return t._opt=a,t[r(193)]=new Rt(A(t)),t.module=null,t[r(236)]=null,t[r(191)]=null,t[r(220)]=o[r(220)]||0,t[r(199)]=o[r(199)]||0,t[r(227)]=o[r(204)]+"-"+o[r(227)],t[r(193)].log(t[r(233)],"init",JSON[r(218)](t[r(228)])),console.log(r(230)[r(221)](o[r(227)],":").concat('"1.0.0"',r(240))),t}return C(n,[{key:r(225),value:function(){var t=r;this[t(203)](),this[t(236)]&&(this[t(236)][t(226)](),this[t(236)][t(242)](),this[t(236)]=null),this[t(223)]&&(this[t(223)]=null),this[t(191)]=null,this[t(193)][t(239)](this.TAG_NAME,t(225))}},{key:r(238),value:function(){var t=this;return new Promise((function(r,e){var n=Vt;jt()[n(222)]((function(o){var i=n;t[i(223)]=o,t[i(223)][i(209)]?(t[i(236)]=new(t[i(223)].OcclusionDetector)(t),r()):e("load jessibuca occlusion detector fail")}))[n(210)]((function(t){var r=n;console[r(200)](t),e(r(205))}))}))}},{key:r(211),value:function(){var t=r,e=arguments[t(216)]>0&&void 0!==arguments[0]?arguments[0]:{};e[t(220)]&&e[t(199)]&&(this[t(220)]=e[t(220)],this[t(199)]=e[t(199)])}},{key:r(231),value:function(t){var e=r;return this._isVideoOcclusion(t[e(190)],t[e(220)],t[e(199)])}},{key:r(232),value:function(t,e,n){return this[r(208)]("isVideoOcclusion",t,e,n)}},{key:r(208),value:function(t,e,n,o){var i=r;if(null==e||null===this[i(236)])return!1;if(!t||!this[i(236)][t])return!1;if(!(n&&o||this[i(220)]&&this.height))return!1;var a=n||this[i(220)],s=o||this[i(199)];if(null===this[i(191)]&&(this[i(191)]=Date[i(213)]()),Date.now()-this[i(191)]>6e5)return!1;var u=this[i(236)][t](e,a,s,this[i(227)]),c=!1;return u&&(c=u[i(214)]),c}},{key:"validatedFailed",value:function(){var t=r;this.debug.error(this[t(233)],t(212))}}]),n}(Lt);window[Bt(202)]=Yt}));