From 60c94d5eb9316fa9ab704a8d103ca50293094f4e Mon Sep 17 00:00:00 2001 From: "allen.chen" Date: Fri, 22 May 2020 17:50:25 +0800 Subject: [PATCH] oem_ipc: update prebuilt web applicantion for v0.3.8 1.delete gender all in add func 2.in snap, add member in the end of db Change-Id: Iacf2e7e7ebd214a6d34df1ee2060b021b8a5cbfe Signed-off-by: allen.chen --- .../1-es2015.4b2e1cd8143a3888ff7a.worker.js | 1 + .../1-es2015.ffe62d9977f350377aaf.worker.js | 1 - .../www/1-es5.4b2e1cd8143a3888ff7a.worker.js | 1 + .../www/1-es5.ffe62d9977f350377aaf.worker.js | 1 - oem/oem_ipc/www/assets/i18n/en-US.json | 3 ++- oem/oem_ipc/www/assets/i18n/zh-CN.json | 3 ++- oem/oem_ipc/www/assets/wasmdecoder.wasm.map | 1 + oem/oem_ipc/www/index.html | 2 +- ...js => main-es2015.35cc9da536fd814a9468.js} | 2 +- ...d8.js => main-es5.35cc9da536fd814a9468.js} | 2 +- oem/oem_ipc/www/wasmdecoder.wasm | Bin 2376290 -> 3122915 bytes 11 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 oem/oem_ipc/www/1-es2015.4b2e1cd8143a3888ff7a.worker.js delete mode 100644 oem/oem_ipc/www/1-es2015.ffe62d9977f350377aaf.worker.js create mode 100644 oem/oem_ipc/www/1-es5.4b2e1cd8143a3888ff7a.worker.js delete mode 100644 oem/oem_ipc/www/1-es5.ffe62d9977f350377aaf.worker.js create mode 100644 oem/oem_ipc/www/assets/wasmdecoder.wasm.map rename oem/oem_ipc/www/{main-es2015.21f1c298786271a9c9d8.js => main-es2015.35cc9da536fd814a9468.js} (52%) rename oem/oem_ipc/www/{main-es5.21f1c298786271a9c9d8.js => main-es5.35cc9da536fd814a9468.js} (52%) diff --git a/oem/oem_ipc/www/1-es2015.4b2e1cd8143a3888ff7a.worker.js b/oem/oem_ipc/www/1-es2015.4b2e1cd8143a3888ff7a.worker.js new file mode 100644 index 0000000..8e85bf8 --- /dev/null +++ b/oem/oem_ipc/www/1-es2015.4b2e1cd8143a3888ff7a.worker.js @@ -0,0 +1 @@ +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="1H3u")}({"1H3u":function(e,t,r){"use strict";r.r(t);class n{constructor(e){this.module=e}log(e){console.log("["+this.currentTimeStr()+"]["+this.module+"]"+e)}error(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][E] "+e)}info(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][I] "+e)}debug(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][D] "+e)}currentTimeStr(){var e=new Date(Date.now());return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+":"+e.getMilliseconds()}}var o,i=function(e){return e[e.kInitDecoderReq=0]="kInitDecoderReq",e[e.kUninitDecoderReq=1]="kUninitDecoderReq",e[e.kOpenDecoderReq=2]="kOpenDecoderReq",e[e.kCloseDecoderReq=3]="kCloseDecoderReq",e[e.kFeedDataReq=4]="kFeedDataReq",e[e.kStartDecodingReq=5]="kStartDecodingReq",e[e.kPauseDecodingReq=6]="kPauseDecodingReq",e[e.kSeekToReq=7]="kSeekToReq",e}({}),a=function(e){return e[e.kInitDecoderRsp=0]="kInitDecoderRsp",e[e.kUninitDecoderRsp=1]="kUninitDecoderRsp",e[e.kOpenDecoderRsp=2]="kOpenDecoderRsp",e[e.kCloseDecoderRsp=3]="kCloseDecoderRsp",e[e.kVideoFrame=4]="kVideoFrame",e[e.kAudioFrame=5]="kAudioFrame",e[e.kStartDecodingRsp=6]="kStartDecodingRsp",e[e.kPauseDecodingRsp=7]="kPauseDecodingRsp",e[e.kDecodeFinishedEvt=8]="kDecodeFinishedEvt",e[e.kRequestDataEvt=9]="kRequestDataEvt",e[e.kSeekToRsp=10]="kSeekToRsp",e}({});class s{constructor(e,t){this.type=e,this.data=t}static getInstance(e){const{type:t,data:r}=e;return new s(t,r)}}let c=(o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),function(e){var t,n,i=void 0!==(e=e||{})?e:{};i.ready=new Promise((function(e,r){t=e,n=r})),Object.getOwnPropertyDescriptor(i.ready,"_initDecoder")||(Object.defineProperty(i.ready,"_initDecoder",{configurable:!0,get:function(){Ve("You are getting _initDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_initDecoder",{configurable:!0,set:function(){Ve("You are setting _initDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_uninitDecoder")||(Object.defineProperty(i.ready,"_uninitDecoder",{configurable:!0,get:function(){Ve("You are getting _uninitDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_uninitDecoder",{configurable:!0,set:function(){Ve("You are setting _uninitDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_openDecoder")||(Object.defineProperty(i.ready,"_openDecoder",{configurable:!0,get:function(){Ve("You are getting _openDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_openDecoder",{configurable:!0,set:function(){Ve("You are setting _openDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_closeDecoder")||(Object.defineProperty(i.ready,"_closeDecoder",{configurable:!0,get:function(){Ve("You are getting _closeDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_closeDecoder",{configurable:!0,set:function(){Ve("You are setting _closeDecoder on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_sendData")||(Object.defineProperty(i.ready,"_sendData",{configurable:!0,get:function(){Ve("You are getting _sendData on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_sendData",{configurable:!0,set:function(){Ve("You are setting _sendData on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_decodeOnePacket")||(Object.defineProperty(i.ready,"_decodeOnePacket",{configurable:!0,get:function(){Ve("You are getting _decodeOnePacket on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_decodeOnePacket",{configurable:!0,set:function(){Ve("You are setting _decodeOnePacket on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_seekTo")||(Object.defineProperty(i.ready,"_seekTo",{configurable:!0,get:function(){Ve("You are getting _seekTo on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_seekTo",{configurable:!0,set:function(){Ve("You are setting _seekTo on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_main")||(Object.defineProperty(i.ready,"_main",{configurable:!0,get:function(){Ve("You are getting _main on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_main",{configurable:!0,set:function(){Ve("You are setting _main on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_malloc")||(Object.defineProperty(i.ready,"_malloc",{configurable:!0,get:function(){Ve("You are getting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_malloc",{configurable:!0,set:function(){Ve("You are setting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_free")||(Object.defineProperty(i.ready,"_free",{configurable:!0,get:function(){Ve("You are getting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_free",{configurable:!0,set:function(){Ve("You are setting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"___data_end")||(Object.defineProperty(i.ready,"___data_end",{configurable:!0,get:function(){Ve("You are getting ___data_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"___data_end",{configurable:!0,set:function(){Ve("You are setting ___data_end on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"___wasm_call_ctors")||(Object.defineProperty(i.ready,"___wasm_call_ctors",{configurable:!0,get:function(){Ve("You are getting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"___wasm_call_ctors",{configurable:!0,set:function(){Ve("You are setting ___wasm_call_ctors on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_fflush")||(Object.defineProperty(i.ready,"_fflush",{configurable:!0,get:function(){Ve("You are getting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_fflush",{configurable:!0,set:function(){Ve("You are setting _fflush on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"___errno_location")||(Object.defineProperty(i.ready,"___errno_location",{configurable:!0,get:function(){Ve("You are getting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"___errno_location",{configurable:!0,set:function(){Ve("You are setting ___errno_location on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"__get_tzname")||(Object.defineProperty(i.ready,"__get_tzname",{configurable:!0,get:function(){Ve("You are getting __get_tzname on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"__get_tzname",{configurable:!0,set:function(){Ve("You are setting __get_tzname on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"__get_daylight")||(Object.defineProperty(i.ready,"__get_daylight",{configurable:!0,get:function(){Ve("You are getting __get_daylight on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"__get_daylight",{configurable:!0,set:function(){Ve("You are setting __get_daylight on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"__get_timezone")||(Object.defineProperty(i.ready,"__get_timezone",{configurable:!0,get:function(){Ve("You are getting __get_timezone on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"__get_timezone",{configurable:!0,set:function(){Ve("You are setting __get_timezone on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_memalign")||(Object.defineProperty(i.ready,"_memalign",{configurable:!0,get:function(){Ve("You are getting _memalign on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_memalign",{configurable:!0,set:function(){Ve("You are setting _memalign on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"_memset")||(Object.defineProperty(i.ready,"_memset",{configurable:!0,get:function(){Ve("You are getting _memset on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"_memset",{configurable:!0,set:function(){Ve("You are setting _memset on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(i.ready,"onRuntimeInitialized")||(Object.defineProperty(i.ready,"onRuntimeInitialized",{configurable:!0,get:function(){Ve("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(i.ready,"onRuntimeInitialized",{configurable:!0,set:function(){Ve("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}));var a,s={};for(a in i)i.hasOwnProperty(a)&&(s[a]=i[a]);var c=[],d="./this.program",u=function(e,t){throw t},l=!1,f=!1,p=!1,h=!1;if(l="object"==typeof window,f="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h=!l&&!p&&!f,i.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var m,E,g,_,y="";function w(e){return i.locateFile?i.locateFile(e,y):y+e}if(p)y=f?r("oyvS").dirname(y)+"/":__dirname+"/",m=function(e,t){return g||(g=r("mw/K")),_||(_=r("oyvS")),e=_.normalize(e),g.readFileSync(e,t?null:"utf8")},E=function(e){var t=m(e,!0);return t.buffer||(t=new Uint8Array(t)),z(t.buffer),t},process.argv.length>1&&(d=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof kr))throw e})),process.on("unhandledRejection",Ve),u=function(e){process.exit(e)},i.inspect=function(){return"[Emscripten Module object]"};else if(h)"undefined"!=typeof read&&(m=function(e){return read(e)}),E=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(z("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"function"==typeof quit&&(u=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);else{if(!l&&!f)throw new Error("environment detection error");f?y=self.location.href:document.currentScript&&(y=document.currentScript.src),o&&(y=o),y=0!==y.indexOf("blob:")?y.substr(0,y.lastIndexOf("/")+1):"",m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f&&(E=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var T=i.print||console.log.bind(console),O=i.printErr||console.warn.bind(console);for(a in s)s.hasOwnProperty(a)&&(i[a]=s[a]);function b(e){z(Ee);var t=ae[Ee>>2],r=t+e+15&-16;return z(r<=ne.length,"failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly"),ae[Ee>>2]=r,t}function D(e){D.shown||(D.shown={}),D.shown[e]||(D.shown[e]=1,O(e))}function v(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},o=1;o>0]=t;break;case"i16":ie[e>>1]=t;break;case"i32":ae[e>>2]=t;break;case"i64":rt=[t>>>0,(tt=t,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)],ae[e>>2]=rt[0],ae[e+4>>2]=rt[1];break;case"float":ce[e>>2]=t;break;case"double":de[e>>3]=t;break;default:Ve("invalid type for setValue: "+r)}else switch(r){case"i1":case"i8":j(0|e,0|t,1);break;case"i16":j(0|e,0|t,2);break;case"i32":j(0|e,0|t,4);break;case"i64":j(0|e,0|(rt=[t>>>0,(tt=t,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(e+4|0,0|rt[1],4);break;case"float":X(0|e,Ce(t),4);break;case"double":X(0|e,+t,8);break;default:Ve("invalid type for setValue: "+r)}}function U(e,t,r){if("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),r)switch(t){case"i1":case"i8":return ne[e>>0];case"i16":return ie[e>>1];case"i32":case"i64":return ae[e>>2];case"float":return ce[e>>2];case"double":return de[e>>3];default:Ve("invalid type for getValue: "+t)}else switch(t){case"i1":case"i8":return 0|L(0|e,1,0);case"i16":return 0|L(0|e,2,0);case"i32":return 0|L(0|e,4,0);case"i64":return 0|L(0|e,8,0);case"float":return Ce(C(0|e,4,0));case"double":return+C(0|e,8,0);default:Ve("invalid type for getValue: "+t)}return null}function x(e,t){switch(e){case 1:return"i8";case 2:return"i16";case 4:return t?"float":"i32";case 8:return"double";default:z(0)}}function j(e,t,r,n){e<=0&&Ve("segmentation fault storing "+r+" bytes to address "+e),e%r!=0&&Ve("alignment error storing to address "+e+", which was expected to be aligned to a multiple of "+r),e+r>se[Ee>>2]&&Ve("segmentation fault, exceeded the top of the available dynamic heap when storing "+r+" bytes to address "+e+". DYNAMICTOP="+ae[Ee>>2]),z(Ee),z(ae[Ee>>2]<=ne.length),F(e,t,x(r,n),1)}function X(e,t,r){j(e,t,r,!0)}function L(e,t,r,n){e<=0&&Ve("segmentation fault loading "+t+" bytes from address "+e),e%t!=0&&Ve("alignment error loading from address "+e+", which was expected to be aligned to a multiple of "+t),e+t>se[Ee>>2]&&Ve("segmentation fault, exceeded the top of the available dynamic heap when loading "+t+" bytes from address "+e+". DYNAMICTOP="+ae[Ee>>2]),z(Ee),z(ae[Ee>>2]<=ne.length);var o=x(t,n),i=U(e,o,1);return r&&(i=xe(i,parseInt(o.substr(1),10))),i}function C(e,t,r){return L(e,t,r,!0)}function H(){Ve("segmentation fault")}function Q(){Ve("alignment fault")}i.wasmBinary&&(k=i.wasmBinary),Object.getOwnPropertyDescriptor(i,"wasmBinary")||Object.defineProperty(i,"wasmBinary",{configurable:!0,get:function(){Ve("Module.wasmBinary has been replaced with plain wasmBinary")}}),i.noExitRuntime&&(S=i.noExitRuntime),Object.getOwnPropertyDescriptor(i,"noExitRuntime")||Object.defineProperty(i,"noExitRuntime",{configurable:!0,get:function(){Ve("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!=typeof WebAssembly&&Ve("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var B=new WebAssembly.Table({initial:1880,maximum:1894,element:"anyfunc"}),Y=!1;function z(e,t){e||Ve("Assertion failed: "+t)}function W(e){return Me?vr(e):b(e)}var q="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function G(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&q)return q.decode(e.subarray(t,o));for(var i="";t>10,56320|1023&d)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function V(e,t){return e?G(oe,e,t):""}function Z(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;s>=2097152&&D("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function K(e,t,r){return z("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Z(e,oe,t,r)}function J(e){for(var t=0,r=0;r=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function $(e){var t=J(e)+1,r=vr(t);return r&&Z(e,ne,r,t),r}function ee(e,t){z(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),ne.set(e,t)}function te(e,t,r){for(var n=0;n0&&(e+=t-e%t),e}function fe(e){re=e,i.HEAP8=ne=new Int8Array(e),i.HEAP16=ie=new Int16Array(e),i.HEAP32=ae=new Int32Array(e),i.HEAPU8=oe=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=se=new Uint32Array(e),i.HEAPF32=ce=new Float32Array(e),i.HEAPF64=de=new Float64Array(e)}var pe=6823776,he=1580896,me=6823776,Ee=1580736;z(pe%16==0,"stack must start aligned"),z(me%16==0,"heap must start aligned");var ge=5242880;i.TOTAL_STACK&&z(ge===i.TOTAL_STACK,"the stack size can no longer be determined at runtime");var _e=i.INITIAL_MEMORY||67108864;function ye(){z(0==(3&he)),se[1+(he>>2)]=34821223,se[2+(he>>2)]=2310721022,ae[0]=1668509029}function we(){var e=se[1+(he>>2)],t=se[2+(he>>2)];34821223==e&&2310721022==t||Ve("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+t.toString(16)+" "+e.toString(16)),1668509029!==ae[0]&&Ve("Runtime error: The application has corrupted its heap memory area (address zero)!")}function Te(e){Ve("Stack overflow! Attempted to allocate "+e+" bytes on the stack, but stack has only "+(he-Ar()+e)+" bytes available!")}function Oe(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?i.dynCall_v(r):i.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t(i)}}Object.getOwnPropertyDescriptor(i,"INITIAL_MEMORY")||Object.defineProperty(i,"INITIAL_MEMORY",{configurable:!0,get:function(){Ve("Module.INITIAL_MEMORY has been replaced with plain INITIAL_INITIAL_MEMORY")}}),z(_e>=ge,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+_e+"! (TOTAL_STACK="+ge+")"),z("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),(I=i.wasmMemory?i.wasmMemory:new WebAssembly.Memory({initial:_e/ue,maximum:2147483648/ue}))&&(re=I.buffer),z((_e=re.byteLength)%ue==0),z(65536%ue==0),fe(re),ae[Ee>>2]=me,function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian!"}();var be=[],De=[],ve=[],Re=[],Me=!1,Pe=!1;function Ae(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)Fe(i.preRun.shift());Oe(be)}function ke(){we(),z(!Me),Me=!0,i.noFSInit||wt.init.initialized||wt.init(),Et.init(),Oe(De)}function Se(){we(),wt.ignorePermissions=!1,Oe(ve)}function Ie(){we(),Pe=!0}function Ne(){if(we(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)Ue(i.postRun.shift());Oe(Re)}function Fe(e){be.unshift(e)}function Ue(e){Re.unshift(e)}function xe(e,t,r){return e>=0?e:t<=32?2*Math.abs(1<=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=ft.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return ft.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return ft.normalize(e.join("/"))},join2:function(e,t){return ft.normalize(e+"/"+t)}};function pt(e){return j(0|Dr(),0|e,4),e}var ht,mt={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:wt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t="/"===n.charAt(0)}return(t?"/":"")+(e=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=mt.resolve(e).substr(1),t=mt.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s0?r.slice(0,n).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;e.input=yr(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(T(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(T(G(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(O(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(G(e.output,0)),e.output=[])}}},gt={ops_table:null,mount:function(e){return gt.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(wt.isBlkdev(r)||wt.isFIFO(r))throw new wt.ErrnoError(63);gt.ops_table||(gt.ops_table={dir:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr,lookup:gt.node_ops.lookup,mknod:gt.node_ops.mknod,rename:gt.node_ops.rename,unlink:gt.node_ops.unlink,rmdir:gt.node_ops.rmdir,readdir:gt.node_ops.readdir,symlink:gt.node_ops.symlink},stream:{llseek:gt.stream_ops.llseek}},file:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr},stream:{llseek:gt.stream_ops.llseek,read:gt.stream_ops.read,write:gt.stream_ops.write,allocate:gt.stream_ops.allocate,mmap:gt.stream_ops.mmap,msync:gt.stream_ops.msync}},link:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr,readlink:gt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr},stream:wt.chrdev_stream_ops}});var o=wt.createNode(e,t,r,n);return wt.isDir(o.mode)?(o.node_ops=gt.ops_table.dir.node,o.stream_ops=gt.ops_table.dir.stream,o.contents={}):wt.isFile(o.mode)?(o.node_ops=gt.ops_table.file.node,o.stream_ops=gt.ops_table.file.stream,o.usedBytes=0,o.contents=null):wt.isLink(o.mode)?(o.node_ops=gt.ops_table.link.node,o.stream_ops=gt.ops_table.link.stream):wt.isChrdev(o.mode)&&(o.node_ops=gt.ops_table.chrdev.node,o.stream_ops=gt.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o),o},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var t=[],r=0;r=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t){if(0==t)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var r=e.contents;return e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),void(e.usedBytes=t)}if(e.contents||(e.contents=[]),e.contents.length>t)e.contents.length=t;else for(;e.contents.length=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(z(a>=0),a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var s=0;s0||o+n8)throw new wt.ErrnoError(32);for(var o=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),i=wt.root,a="/",s=0;s40)throw new wt.ErrnoError(32)}}return{path:a,node:i}},getPath:function(e){for(var t;;){if(wt.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?r+"/"+t:r+t:r}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var r=0,n=0;n>>0)%wt.nameTable.length},hashAddNode:function(e){var t=wt.hashName(e.parent.id,e.name);e.name_next=wt.nameTable[t],wt.nameTable[t]=e},hashRemoveNode:function(e){var t=wt.hashName(e.parent.id,e.name);if(wt.nameTable[t]===e)wt.nameTable[t]=e.name_next;else for(var r=wt.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:function(e,t){var r=wt.mayLookup(e);if(r)throw new wt.ErrnoError(r,e);for(var n=wt.hashName(e.id,t),o=wt.nameTable[n];o;o=o.name_next)if(o.parent.id===e.id&&o.name===t)return o;return wt.lookup(e,t)},createNode:function(e,t,r,n){var o=new wt.FSNode(e,t,r,n);return wt.hashAddNode(o),o},destroyNode:function(e){wt.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var t=wt.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return wt.ignorePermissions?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){return wt.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{return wt.lookupNode(e,t),20}catch(r){}return wt.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=wt.lookupNode(e,t)}catch(i){return i.errno}var o=wt.nodePermissions(e,"wx");if(o)return o;if(r){if(!wt.isDir(n.mode))return 54;if(wt.isRoot(n)||wt.getPath(n)===wt.cwd())return 10}else if(wt.isDir(n.mode))return 31;return 0},mayOpen:function(e,t){return e?wt.isLink(e.mode)?32:wt.isDir(e.mode)&&("r"!==wt.flagsToPermissionString(t)||512&t)?31:wt.nodePermissions(e,wt.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(e,t){t=t||wt.MAX_OPEN_FDS;for(var r=e=e||0;r<=t;r++)if(!wt.streams[r])return r;throw new wt.ErrnoError(33)},getStream:function(e){return wt.streams[e]},createStream:function(e,t,r){wt.FSStream||(wt.FSStream=function(){},wt.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new wt.FSStream;for(var o in e)n[o]=e[o];e=n;var i=wt.nextfd(t,r);return e.fd=i,wt.streams[i]=e,e},closeStream:function(e){wt.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=wt.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new wt.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){wt.devices[e]={stream_ops:t}},getDevice:function(e){return wt.devices[e]},getMounts:function(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),wt.syncFSRequests++,wt.syncFSRequests>1&&O("warning: "+wt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=wt.getMounts(wt.root.mount),n=0;function o(e){return z(wt.syncFSRequests>0),wt.syncFSRequests--,t(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((function(t){if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:function(e,t,r){if("string"==typeof e)throw e;var n,o="/"===r,i=!r;if(o&&wt.root)throw new wt.ErrnoError(10);if(!o&&!i){var a=wt.lookupPath(r,{follow_mount:!1});if(r=a.path,wt.isMountpoint(n=a.node))throw new wt.ErrnoError(10);if(!wt.isDir(n.mode))throw new wt.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,o?wt.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount:function(e){var t=wt.lookupPath(e,{follow_mount:!1});if(!wt.isMountpoint(t.node))throw new wt.ErrnoError(28);var r=t.node,n=r.mounted,o=wt.getMounts(n);Object.keys(wt.nameTable).forEach((function(e){for(var t=wt.nameTable[e];t;){var r=t.name_next;-1!==o.indexOf(t.mount)&&wt.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);z(-1!==i),r.mount.mounts.splice(i,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,r){var n=wt.lookupPath(e,{parent:!0}).node,o=ft.basename(e);if(!o||"."===o||".."===o)throw new wt.ErrnoError(28);var i=wt.mayCreate(n,o);if(i)throw new wt.ErrnoError(i);if(!n.node_ops.mknod)throw new wt.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,wt.mknod(e,t|=32768,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,wt.mknod(e,t|=16384,0)},mkdirTree:function(e,t){for(var r=e.split("/"),n="",o=0;othis.length-1||e<0)){var t=e%this.chunkSize;return this.getter(e/this.chunkSize|0)[t]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(e){var t=e*a,o=(e+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==a&&o.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(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 "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):yr(o.responseText||"",!0)}(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,T("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(!f)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:r};var c=wt.createFile(e,t,s,n,o);s.contents?c.contents=s.contents:s.url&&(c.contents=null,c.url=s.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var d={};return Object.keys(c.stream_ops).forEach((function(e){var t=c.stream_ops[e];d[e]=function(){if(!wt.forceLoadFile(c))throw new wt.ErrnoError(29);return t.apply(null,arguments)}})),d.read=function(e,t,r,n,o){if(!wt.forceLoadFile(c))throw new wt.ErrnoError(29);var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(z(a>=0),i.slice)for(var s=0;s>>0,(tt=n.size,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(r+44|0,0|rt[1],4),j(r+48|0,4096,4),j(r+52|0,0|n.blocks,4),j(r+56|0,0|n.atime.getTime()/1e3,4),j(r+60|0,0,4),j(r+64|0,0|n.mtime.getTime()/1e3,4),j(r+68|0,0,4),j(r+72|0,0|n.ctime.getTime()/1e3,4),j(r+76|0,0,4),j(r+80|0,0|(rt=[n.ino>>>0,(tt=n.ino,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(r+84|0,0|rt[1],4),0},doMsync:function(e,t,r,n,o){var i=oe.slice(e,e+r);wt.msync(t,i,o,r,n)},doMkdir:function(e,t){return"/"===(e=ft.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),wt.mkdir(e,t,0),0},doMknod:function(e,t,r){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return wt.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-28;var n=wt.readlink(e),o=Math.min(r,J(n)),i=ne[t+o];return K(n,t,r+1),ne[t+o]=i,o},doAccess:function(e,t){if(-8&t)return-28;var r;if(!(r=wt.lookupPath(e,{follow:!0}).node))return-44;var n="";return 4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),n&&wt.nodePermissions(r,n)?-2:0},doDup:function(e,t,r){var n=wt.getStream(r);return n&&wt.close(n),wt.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var o=0,i=0;i=0?0===t:-1===t),e}};function Ot(e,t){try{return e=Tt.getStr(e),Tt.doAccess(e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function bt(e,t,r){Tt.varargs=r;try{var n=Tt.getStreamFromFD(e);switch(t){case 0:return(o=Tt.get())<0?-28:wt.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=Tt.get();return n.flags|=o,0;case 12:return j((o=Tt.get())+0|0,2,2),0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return pt(28),-1;default:return-28}}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function Dt(e,t){try{var r=Tt.getStreamFromFD(e);return Tt.doStat(wt.stat,r.path,t)}catch(n){return void 0!==wt&&n instanceof wt.ErrnoError||Ve(n),-n.errno}}function vt(e,t,r){try{var n=Tt.getStreamFromFD(e);n.getdents||(n.getdents=wt.readdir(n.path));for(var o=0,i=wt.llseek(n,0,1),a=Math.floor(i/280);a>>0,(tt=s,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(t+o+4|0,0|rt[1],4),j(t+o+8|0,0|(rt=[280*(a+1)>>>0,(tt=280*(a+1),+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(t+o+12|0,0|rt[1],4),j(t+o+16|0,280,2),j(t+o+18|0,0|c,1),K(d,t+o+19,256),o+=280,a+=1}return wt.llseek(n,280*a,0),o}catch(l){return void 0!==wt&&l instanceof wt.ErrnoError||Ve(l),-l.errno}}function Rt(e,t,r){Tt.varargs=r;try{var n=Tt.getStreamFromFD(e);switch(t){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:return n.tty?(j(0|(o=Tt.get()),0,4),0):-59;case 21520:return n.tty?-28:-59;case 21531:var o=Tt.get();return wt.ioctl(n,t,o);case 21523:case 21524:return n.tty?0:-59;default:Ve("bad ioctl syscall "+t)}}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function Mt(e,t){try{return e=Tt.getStr(e),Tt.doStat(wt.lstat,e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function Pt(e,t,r){Tt.varargs=r;try{var n=Tt.getStr(e),o=Tt.get();return wt.open(n,t,o).fd}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function At(e,t,r){try{var n=Tt.getStreamFromFD(e);return wt.read(n,ne,t,r)}catch(o){return void 0!==wt&&o instanceof wt.ErrnoError||Ve(o),-o.errno}}function kt(e,t){try{return e=Tt.getStr(e),t=Tt.getStr(t),wt.rename(e,t),0}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function St(e){try{return e=Tt.getStr(e),wt.rmdir(e),0}catch(t){return void 0!==wt&&t instanceof wt.ErrnoError||Ve(t),-t.errno}}function It(e,t){try{return e=Tt.getStr(e),Tt.doStat(wt.stat,e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function Nt(e){try{return e=Tt.getStr(e),wt.unlink(e),0}catch(t){return void 0!==wt&&t instanceof wt.ErrnoError||Ve(t),-t.errno}}function Ft(){Ve()}function Ut(){return void 0===Ut.start&&(Ut.start=Date.now()),1e3*(Date.now()-Ut.start)|0}ht=p?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var xt=!0;function jt(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!xt)return pt(28),-1;r=ht()}return j(0|t,0|r/1e3,4),j(t+4|0,0|r%1e3*1e3*1e3,4),0}function Xt(){return 1580736}function Lt(e,t,r){oe.copyWithin(e,t,t+r)}function Ct(){return oe.length}function Ht(e){try{return I.grow(e-re.byteLength+65535>>>16),fe(I.buffer),1}catch(t){console.error("emscripten_realloc_buffer: Attempted to grow heap from "+re.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Qt(e){e>>>=0;var t=Ct();if(z(e>t),e>2147483648)return O("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var r=1;r<=4;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var o=Math.min(2147483648,le(Math.max(16777216,e,n),65536)),i=ht(),a=Ht(o),s=ht();if(console.log("Heap resize call from "+t+" to "+o+" took "+(s-i)+" msecs. Success: "+!!a),a)return!0}return O("Failed to grow the heap from "+t+" bytes to "+o+" bytes, not enough memory!"),!1}var Bt={};function Yt(){return d||"./this.program"}function zt(){if(!zt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Yt()};for(var t in Bt)e[t]=Bt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);zt.strings=r}return zt.strings}function Wt(e,t){var r=0;return zt().forEach((function(n,o){var i=t+r;j(e+4*o|0,0|i,4),te(n,i),r+=n.length+1})),0}function qt(e,t){var r=zt();j(0|e,0|r.length,4);var n=0;return r.forEach((function(e){n+=e.length+1})),j(0|t,0|n,4),0}function Gt(e){try{var t=Tt.getStreamFromFD(e);return wt.close(t),0}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),r.errno}}function Vt(e,t){try{var r=Tt.getStreamFromFD(e);return j(0|t,0|(r.tty?2:wt.isDir(r.mode)?3:wt.isLink(r.mode)?7:4),1),0}catch(n){return void 0!==wt&&n instanceof wt.ErrnoError||Ve(n),n.errno}}function Zt(e,t,r,n){try{var o=Tt.getStreamFromFD(e);return j(0|n,0|Tt.doReadv(o,t,r),4),0}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),i.errno}}function Kt(e,t,r,n,o){try{var i=Tt.getStreamFromFD(e),a=4294967296*r+(t>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(wt.llseek(i,a,n),j(0|o,0|(rt=[i.position>>>0,(tt=i.position,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(o+4|0,0|rt[1],4),i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(s){return void 0!==wt&&s instanceof wt.ErrnoError||Ve(s),s.errno}}function Jt(e,t,r,n){try{var o=Tt.getStreamFromFD(e);return j(0|n,0|Tt.doWritev(o,t,r),4),0}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),i.errno}}function $t(e){var t=Date.now();return j(0|e,0|t/1e3,4),j(e+4|0,t%1e3|0,2),j(e+6|0,0,2),j(e+8|0,0,2),0}function er(e){var t=Date.now();return j(0|e,0|t/1e3,4),j(e+4|0,0|t%1e3*1e3,4),0}var tr=(K("GMT",1580800,4),1580800);function rr(e,t){var r=new Date(1e3*(0|L(0|e,4,0)));j(0|t,0|r.getUTCSeconds(),4),j(t+4|0,0|r.getUTCMinutes(),4),j(t+8|0,0|r.getUTCHours(),4),j(t+12|0,0|r.getUTCDate(),4),j(t+16|0,0|r.getUTCMonth(),4),j(t+20|0,r.getUTCFullYear()-1900|0,4),j(t+24|0,0|r.getUTCDay(),4),j(t+36|0,0,4),j(t+32|0,0,4);var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0);return j(t+28|0,0|(r.getTime()-n)/864e5,4),j(t+40|0,0|tr,4),t}function nr(){if(!nr.called){nr.called=!0,j(0|Pr(),60*(new Date).getTimezoneOffset()|0,4);var e=(new Date).getFullYear(),t=new Date(e,0,1),r=new Date(e,6,1);j(0|Mr(),0|Number(t.getTimezoneOffset()!=r.getTimezoneOffset()),4);var n=s(t),o=s(r),i=$(n),a=$(o);r.getTimezoneOffset()0!=(s==n)){var c=Math.max(a,i),d=r>0?s:c;t.setTime(t.getTime()+6e4*(d-n))}return j(e+24|0,0|t.getDay(),4),j(e+28|0,0|(t.getTime()-o.getTime())/864e5,4),t.getTime()/1e3|0}function ar(e){for(var t=ht();ht()-t999999999||r<0?(pt(28),-1):(0!==t&&(j(0|t,0,4),j(t+4|0,0,4)),ar(1e6*r+n/1e3))}function cr(e){return(e=+e)>=0?+Le(e+.5):+Xe(e-.5)}function dr(e){N(0|e)}function ur(e){return e%4==0&&(e%100!=0||e%400==0)}function lr(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var fr=[31,29,31,30,31,30,31,31,30,31,30,31],pr=[31,28,31,30,31,30,31,31,30,31,30,31];function hr(e,t){for(var r=new Date(e.getTime());t>0;){var n=ur(r.getFullYear()),o=r.getMonth(),i=(n?fr:pr)[o];if(!(t>i-r.getDate()))return r.setDate(r.getDate()+t),r;t-=i-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function mr(e,t,r,n){var o=0|L(n+40|0,4,0),i={tm_sec:0|L(0|n,4,0),tm_min:0|L(n+4|0,4,0),tm_hour:0|L(n+8|0,4,0),tm_mday:0|L(n+12|0,4,0),tm_mon:0|L(n+16|0,4,0),tm_year:0|L(n+20|0,4,0),tm_wday:0|L(n+24|0,4,0),tm_yday:0|L(n+28|0,4,0),tm_isdst:0|L(n+32|0,4,0),tm_gmtoff:0|L(n+36|0,4,0),tm_zone:o?V(o):""},a=V(r),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 c in s)a=a.replace(new RegExp(c,"g"),s[c]);var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var t=hr(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=h(r),i=h(n);return p(o,t)<=0?p(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var E={"%a":function(e){return d[e.tm_wday].substring(0,3)},"%A":function(e){return d[e.tm_wday]},"%b":function(e){return u[e.tm_mon].substring(0,3)},"%B":function(e){return u[e.tm_mon]},"%C":function(e){return f((e.tm_year+1900)/100|0,2)},"%d":function(e){return f(e.tm_mday,2)},"%e":function(e){return l(e.tm_mday,2," ")},"%g":function(e){return m(e).toString().substring(2)},"%G":function(e){return m(e)},"%H":function(e){return f(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":function(e){return f(e.tm_mday+lr(ur(e.tm_year+1900)?fr:pr,e.tm_mon-1),3)},"%m":function(e){return f(e.tm_mon+1,2)},"%M":function(e){return f(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return f(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),r=0===t.getDay()?t:hr(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(p(r,n)<0){var o=lr(ur(n.getFullYear())?fr:pr,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return f(Math.ceil(i/7),2)}return 0===p(r,t)?"01":"00"},"%V":function(e){var t,r=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),o=h(r),i=h(n),a=hr(new Date(e.tm_year+1900,0,1),e.tm_yday);return p(a,o)<0?"53":p(i,a)<=0?"01":(t=o.getFullYear()=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var c in E)a.indexOf(c)>=0&&(a=a.replace(new RegExp(c,"g"),E[c](i)));var g=yr(a,!1);return g.length>t?0:(ee(g,e),g.length-1)}var Er=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=wt.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},gr=365,_r=146;function yr(e,t,r){var n=r>0?r:J(e)+1,o=new Array(n),i=Z(e,o,0,o.length);return t&&(o.length=i),o}Object.defineProperties(Er.prototype,{read:{get:function(){return(this.mode&gr)===gr},set:function(e){e?this.mode|=gr:this.mode&=~gr}},write:{get:function(){return(this.mode&_r)===_r},set:function(e){e?this.mode|=_r:this.mode&=~_r}},isFolder:{get:function(){return wt.isDir(this.mode)}},isDevice:{get:function(){return wt.isChrdev(this.mode)}}}),wt.FSNode=Er,wt.staticInit(),i.FS_createFolder=wt.createFolder,i.FS_createPath=wt.createPath,i.FS_createDataFile=wt.createDataFile,i.FS_createPreloadedFile=wt.createPreloadedFile,i.FS_createLazyFile=wt.createLazyFile,i.FS_createLink=wt.createLink,i.FS_createDevice=wt.createDevice,i.FS_unlink=wt.unlink;var wr={__handle_stack_overflow:lt,__sys_access:Ot,__sys_fcntl64:bt,__sys_fstat64:Dt,__sys_getdents64:vt,__sys_ioctl:Rt,__sys_lstat64:Mt,__sys_open:Pt,__sys_read:At,__sys_rename:kt,__sys_rmdir:St,__sys_stat64:It,__sys_unlink:Nt,abort:Ft,alignfault:Q,clock:Ut,clock_gettime:jt,emscripten_get_sbrk_ptr:Xt,emscripten_memcpy_big:Lt,emscripten_resize_heap:Qt,environ_get:Wt,environ_sizes_get:qt,fd_close:Gt,fd_fdstat_get:Vt,fd_read:Zt,fd_seek:Kt,fd_write:Jt,ftime:$t,gettimeofday:er,gmtime_r:rr,localtime_r:or,memory:I,mktime:ir,nanosleep:sr,round:cr,segfault:H,setTempRet0:dr,strftime:mr,table:B},Tr=at();i.asm=Tr;var Or,br=i.___wasm_call_ctors=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__wasm_call_ctors.apply(null,arguments)},Dr=(i._memset=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.memset.apply(null,arguments)},i._initDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.initDecoder.apply(null,arguments)},i.___errno_location=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__errno_location.apply(null,arguments)}),vr=(i._uninitDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.uninitDecoder.apply(null,arguments)},i._openDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.openDecoder.apply(null,arguments)},i._closeDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.closeDecoder.apply(null,arguments)},i._sendData=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.sendData.apply(null,arguments)},i._decodeOnePacket=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.decodeOnePacket.apply(null,arguments)},i._seekTo=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.seekTo.apply(null,arguments)},i._main=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.main.apply(null,arguments)},i._free=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.free.apply(null,arguments)},i._malloc=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.malloc.apply(null,arguments)}),Rr=(i._fflush=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.fflush.apply(null,arguments)},i.__get_tzname=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_tzname.apply(null,arguments)}),Mr=i.__get_daylight=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_daylight.apply(null,arguments)},Pr=i.__get_timezone=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_timezone.apply(null,arguments)},Ar=(i._memalign=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.memalign.apply(null,arguments)},i.___set_stack_limit=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__set_stack_limit.apply(null,arguments)},i.stackSave=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackSave.apply(null,arguments)});function kr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Sr(e){z(0==Qe,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),z(0==be.length,"cannot call main when preRun functions remain to be called");var t=i._main;try{i.___set_stack_limit(he),Fr(t(0,0),!0)}catch(n){if(n instanceof kr)return;if("unwind"==n)return void(S=!0);var r=n;n&&"object"==typeof n&&n.stack&&(r=[n,n.stack]),O("exception thrown: "+r),u(1,n)}}function Ir(e){function r(){Or||(Or=!0,i.calledRun=!0,Y||(ke(),Se(),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),Ur&&Sr(),Ne()))}e=e||c,Qe>0||(ye(),Ae(),Qe>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r(),we()))}function Nr(){var e=T,t=O,r=!1;T=O=function(e){r=!0};try{var n=i._fflush;n&&n(0),["stdout","stderr"].forEach((function(e){var t=wt.analyzePath("/dev/"+e);if(t){var n=Et.ttys[t.object.rdev];n&&n.output&&n.output.length&&(r=!0)}}))}catch(o){}T=e,O=t,r&&D("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the FAQ), or make sure to emit a newline when you printf etc.")}function Fr(e,t){Nr(),t&&S&&0===e||(S?t||n("program exited (with status: "+e+"), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)"):(Y=!0,Ie(),i.onExit&&i.onExit(e)),u(e,new kr(e)))}if(i.stackAlloc=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackAlloc.apply(null,arguments)},i.stackRestore=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackRestore.apply(null,arguments)},i.__growWasmMemory=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__growWasmMemory.apply(null,arguments)},i.dynCall_viiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiii.apply(null,arguments)},i.dynCall_iiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiii.apply(null,arguments)},i.dynCall_jiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiji.apply(null,arguments)},i.dynCall_ii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_ii.apply(null,arguments)},i.dynCall_iii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iii.apply(null,arguments)},i.dynCall_jiiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiiji.apply(null,arguments)},i.dynCall_iiiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiji.apply(null,arguments)},i.dynCall_iiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiii.apply(null,arguments)},i.dynCall_viii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viii.apply(null,arguments)},i.dynCall_iiiiij=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiij.apply(null,arguments)},i.dynCall_jiiij=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiiij.apply(null,arguments)},i.dynCall_vii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_vii.apply(null,arguments)},i.dynCall_iiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiii.apply(null,arguments)},i.dynCall_viiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiii.apply(null,arguments)},i.dynCall_vi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_vi.apply(null,arguments)},i.dynCall_viiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiii.apply(null,arguments)},i.dynCall_viiiiiifi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiifi.apply(null,arguments)},i.dynCall_iiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiiii.apply(null,arguments)},i.dynCall_v=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_v.apply(null,arguments)},i.dynCall_viiiifii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiifii.apply(null,arguments)},i.dynCall_fii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_fii.apply(null,arguments)},i.dynCall_viiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiii.apply(null,arguments)},i.dynCall_viifi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viifi.apply(null,arguments)},i.dynCall_fiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_fiii.apply(null,arguments)},i.dynCall_viidi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viidi.apply(null,arguments)},i.dynCall_dd=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_dd.apply(null,arguments)},i.dynCall_iidiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iidiiii.apply(null,arguments)},i._ff_h264_cabac_tables=134373,i.asm=Tr,Object.getOwnPropertyDescriptor(i,"intArrayFromString")||(i.intArrayFromString=function(){Ve("'intArrayFromString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"intArrayToString")||(i.intArrayToString=function(){Ve("'intArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ccall")||(i.ccall=function(){Ve("'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"cwrap")||(i.cwrap=function(){Ve("'cwrap' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setValue")||(i.setValue=function(){Ve("'setValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getValue")||(i.getValue=function(){Ve("'getValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocate")||(i.allocate=function(){Ve("'allocate' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.getMemory=W,Object.getOwnPropertyDescriptor(i,"UTF8ArrayToString")||(i.UTF8ArrayToString=function(){Ve("'UTF8ArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF8ToString")||(i.UTF8ToString=function(){Ve("'UTF8ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF8Array")||(i.stringToUTF8Array=function(){Ve("'stringToUTF8Array' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF8")||(i.stringToUTF8=function(){Ve("'stringToUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF8")||(i.lengthBytesUTF8=function(){Ve("'lengthBytesUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=function(){Ve("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPreRun")||(i.addOnPreRun=function(){Ve("'addOnPreRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnInit")||(i.addOnInit=function(){Ve("'addOnInit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPreMain")||(i.addOnPreMain=function(){Ve("'addOnPreMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnExit")||(i.addOnExit=function(){Ve("'addOnExit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPostRun")||(i.addOnPostRun=function(){Ve("'addOnPostRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeStringToMemory")||(i.writeStringToMemory=function(){Ve("'writeStringToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeArrayToMemory")||(i.writeArrayToMemory=function(){Ve("'writeArrayToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeAsciiToMemory")||(i.writeAsciiToMemory=function(){Ve("'writeAsciiToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.addRunDependency=qe,i.removeRunDependency=Ge,i.FS_createFolder=wt.createFolder,i.FS_createPath=wt.createPath,i.FS_createDataFile=wt.createDataFile,i.FS_createPreloadedFile=wt.createPreloadedFile,i.FS_createLazyFile=wt.createLazyFile,i.FS_createLink=wt.createLink,i.FS_createDevice=wt.createDevice,i.FS_unlink=wt.unlink,Object.getOwnPropertyDescriptor(i,"dynamicAlloc")||(i.dynamicAlloc=function(){Ve("'dynamicAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"loadDynamicLibrary")||(i.loadDynamicLibrary=function(){Ve("'loadDynamicLibrary' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"loadWebAssemblyModule")||(i.loadWebAssemblyModule=function(){Ve("'loadWebAssemblyModule' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getLEB")||(i.getLEB=function(){Ve("'getLEB' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getFunctionTables")||(i.getFunctionTables=function(){Ve("'getFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"alignFunctionTables")||(i.alignFunctionTables=function(){Ve("'alignFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"registerFunctions")||(i.registerFunctions=function(){Ve("'registerFunctions' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.addFunction=A,Object.getOwnPropertyDescriptor(i,"removeFunction")||(i.removeFunction=function(){Ve("'removeFunction' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=function(){Ve("'getFuncWrapper' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"prettyPrint")||(i.prettyPrint=function(){Ve("'prettyPrint' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"makeBigInt")||(i.makeBigInt=function(){Ve("'makeBigInt' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=function(){Ve("'dynCall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getCompilerSetting")||(i.getCompilerSetting=function(){Ve("'getCompilerSetting' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"print")||(i.print=function(){Ve("'print' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"printErr")||(i.printErr=function(){Ve("'printErr' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getTempRet0")||(i.getTempRet0=function(){Ve("'getTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setTempRet0")||(i.setTempRet0=function(){Ve("'setTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"callMain")||(i.callMain=function(){Ve("'callMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"abort")||(i.abort=function(){Ve("'abort' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToNewUTF8")||(i.stringToNewUTF8=function(){Ve("'stringToNewUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscripten_realloc_buffer")||(i.emscripten_realloc_buffer=function(){Ve("'emscripten_realloc_buffer' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ENV")||(i.ENV=function(){Ve("'ENV' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setjmpId")||(i.setjmpId=function(){Ve("'setjmpId' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ERRNO_CODES")||(i.ERRNO_CODES=function(){Ve("'ERRNO_CODES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ERRNO_MESSAGES")||(i.ERRNO_MESSAGES=function(){Ve("'ERRNO_MESSAGES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setErrNo")||(i.setErrNo=function(){Ve("'setErrNo' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"DNS")||(i.DNS=function(){Ve("'DNS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GAI_ERRNO_MESSAGES")||(i.GAI_ERRNO_MESSAGES=function(){Ve("'GAI_ERRNO_MESSAGES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Protocols")||(i.Protocols=function(){Ve("'Protocols' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Sockets")||(i.Sockets=function(){Ve("'Sockets' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UNWIND_CACHE")||(i.UNWIND_CACHE=function(){Ve("'UNWIND_CACHE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readAsmConstArgs")||(i.readAsmConstArgs=function(){Ve("'readAsmConstArgs' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jstoi_q")||(i.jstoi_q=function(){Ve("'jstoi_q' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jstoi_s")||(i.jstoi_s=function(){Ve("'jstoi_s' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"reallyNegative")||(i.reallyNegative=function(){Ve("'reallyNegative' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"formatString")||(i.formatString=function(){Ve("'formatString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PATH")||(i.PATH=function(){Ve("'PATH' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PATH_FS")||(i.PATH_FS=function(){Ve("'PATH_FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SYSCALLS")||(i.SYSCALLS=function(){Ve("'SYSCALLS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"syscallMmap2")||(i.syscallMmap2=function(){Ve("'syscallMmap2' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"syscallMunmap")||(i.syscallMunmap=function(){Ve("'syscallMunmap' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"JSEvents")||(i.JSEvents=function(){Ve("'JSEvents' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"specialHTMLTargets")||(i.specialHTMLTargets=function(){Ve("'specialHTMLTargets' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"demangle")||(i.demangle=function(){Ve("'demangle' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"demangleAll")||(i.demangleAll=function(){Ve("'demangleAll' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jsStackTrace")||(i.jsStackTrace=function(){Ve("'jsStackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=function(){Ve("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getEnvStrings")||(i.getEnvStrings=function(){Ve("'getEnvStrings' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64")||(i.writeI53ToI64=function(){Ve("'writeI53ToI64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Clamped")||(i.writeI53ToI64Clamped=function(){Ve("'writeI53ToI64Clamped' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Signaling")||(i.writeI53ToI64Signaling=function(){Ve("'writeI53ToI64Signaling' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Clamped")||(i.writeI53ToU64Clamped=function(){Ve("'writeI53ToU64Clamped' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Signaling")||(i.writeI53ToU64Signaling=function(){Ve("'writeI53ToU64Signaling' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readI53FromI64")||(i.readI53FromI64=function(){Ve("'readI53FromI64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readI53FromU64")||(i.readI53FromU64=function(){Ve("'readI53FromU64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"convertI32PairToI53")||(i.convertI32PairToI53=function(){Ve("'convertI32PairToI53' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"convertU32PairToI53")||(i.convertU32PairToI53=function(){Ve("'convertU32PairToI53' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Browser")||(i.Browser=function(){Ve("'Browser' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"FS")||(i.FS=function(){Ve("'FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"MEMFS")||(i.MEMFS=function(){Ve("'MEMFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"TTY")||(i.TTY=function(){Ve("'TTY' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PIPEFS")||(i.PIPEFS=function(){Ve("'PIPEFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SOCKFS")||(i.SOCKFS=function(){Ve("'SOCKFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GL")||(i.GL=function(){Ve("'GL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGet")||(i.emscriptenWebGLGet=function(){Ve("'emscriptenWebGLGet' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetTexPixelData")||(i.emscriptenWebGLGetTexPixelData=function(){Ve("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetUniform")||(i.emscriptenWebGLGetUniform=function(){Ve("'emscriptenWebGLGetUniform' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetVertexAttrib")||(i.emscriptenWebGLGetVertexAttrib=function(){Ve("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"AL")||(i.AL=function(){Ve("'AL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_unicode")||(i.SDL_unicode=function(){Ve("'SDL_unicode' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_ttfContext")||(i.SDL_ttfContext=function(){Ve("'SDL_ttfContext' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_audio")||(i.SDL_audio=function(){Ve("'SDL_audio' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL")||(i.SDL=function(){Ve("'SDL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_gfx")||(i.SDL_gfx=function(){Ve("'SDL_gfx' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLUT")||(i.GLUT=function(){Ve("'GLUT' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"EGL")||(i.EGL=function(){Ve("'EGL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLFW_Window")||(i.GLFW_Window=function(){Ve("'GLFW_Window' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLFW")||(i.GLFW=function(){Ve("'GLFW' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLEW")||(i.GLEW=function(){Ve("'GLEW' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"IDBStore")||(i.IDBStore=function(){Ve("'IDBStore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"runAndAbortIfError")||(i.runAndAbortIfError=function(){Ve("'runAndAbortIfError' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"warnOnce")||(i.warnOnce=function(){Ve("'warnOnce' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackSave")||(i.stackSave=function(){Ve("'stackSave' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackRestore")||(i.stackRestore=function(){Ve("'stackRestore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackAlloc")||(i.stackAlloc=function(){Ve("'stackAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"AsciiToString")||(i.AsciiToString=function(){Ve("'AsciiToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToAscii")||(i.stringToAscii=function(){Ve("'stringToAscii' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF16ToString")||(i.UTF16ToString=function(){Ve("'UTF16ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF16")||(i.stringToUTF16=function(){Ve("'stringToUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF16")||(i.lengthBytesUTF16=function(){Ve("'lengthBytesUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF32ToString")||(i.UTF32ToString=function(){Ve("'UTF32ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF32")||(i.stringToUTF32=function(){Ve("'stringToUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF32")||(i.lengthBytesUTF32=function(){Ve("'lengthBytesUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocateUTF8")||(i.allocateUTF8=function(){Ve("'allocateUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocateUTF8OnStack")||(i.allocateUTF8OnStack=function(){Ve("'allocateUTF8OnStack' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.writeStackCookie=ye,i.checkStackCookie=we,i.abortStackOverflow=Te,Object.getOwnPropertyDescriptor(i,"ALLOC_NORMAL")||Object.defineProperty(i,"ALLOC_NORMAL",{configurable:!0,get:function(){Ve("'ALLOC_NORMAL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_STACK")||Object.defineProperty(i,"ALLOC_STACK",{configurable:!0,get:function(){Ve("'ALLOC_STACK' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_DYNAMIC")||Object.defineProperty(i,"ALLOC_DYNAMIC",{configurable:!0,get:function(){Ve("'ALLOC_DYNAMIC' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_NONE")||Object.defineProperty(i,"ALLOC_NONE",{configurable:!0,get:function(){Ve("'ALLOC_NONE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Ye=function e(){Or||Ir(),Or||(Ye=e)},i.run=Ir,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();var Ur=!0;return i.noInitialRun&&(Ur=!1),S=!0,Ir(),e.ready})({onRuntimeInitialized:()=>{console.log("onWasmLoaded"),d?d.onWasmLoaded():console.log("[ER] No decoder!")}}),d=new class{constructor(){this.logger=new n("Decoder"),this.coreLogLevel=1,this.accurateSeek=!0,this.wasmLoaded=!1,this.tmpReqQue=[],this.cacheBuffer=null,this.decodeTimer=null,this.videoCallback=null,this.audioCallback=null}initDecoder(e,t){let r=c._initDecoder(e,this.coreLogLevel);this.logger.info("initDecoder return "+r+"."),0==r&&(this.cacheBuffer=c._malloc(t)),postMessage(new s(a.kInitDecoderRsp,{e:r}))}uninitDecoder(){let e=c._uninitDecoder();this.logger.info("Uninit ffmpeg decoder return "+e+"."),null!=this.cacheBuffer&&(c._free(this.cacheBuffer),this.cacheBuffer=null)}openDecoder(){let e=c._malloc(28);console.log(this.videoCallback,this.audioCallback,this.requestCallback);let t=c._openDecoder(e,7,this.videoCallback,this.audioCallback,this.requestCallback);if(this.logger.info("openDecoder return "+t),0==t){let r=e>>2,n=new Uint32Array(c.HEAP32.subarray(r,r+7));postMessage({type:a.kOpenDecoderRsp,data:{e:t,v:{d:n[0],p:n[1],w:n[2],h:n[3]},a:{sampleFormat:n[4],channelCount:n[5],sampleRate:n[6]}}})}else postMessage(new s(a.kOpenDecoderRsp,{e:t}));c._free(e)}closeDecoder(){this.logger.info("closeDecoder."),this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null,this.logger.info("Decode timer stopped."));let e=c._closeDecoder();this.logger.info("Close ffmpeg decoder return "+e+"."),postMessage(new s(a.kCloseDecoderRsp,{e:0}))}startDecoding(e){this.decodeTimer&&clearInterval(this.decodeTimer),this.decodeTimer=setInterval(this.decode,e)}pauseDecoding(){this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null)}decode(){let e=c._decodeOnePacket();for(7==e&&(d.logger.info("Decoder finished."),d.pauseDecoding(),postMessage(new s(a.kDecodeFinishedEvt,null)));9==e;)e=c._decodeOnePacket()}sendData(e){let t=new Uint8Array(e);c.HEAPU8.set(t,this.cacheBuffer),c._sendData(this.cacheBuffer,t.length)}seekTo(e){let t=c._seekTo(e,this.accurateSeek?1:0);postMessage(new s(a.kSeekToRsp,{r:t}))}processReq(e){switch(e.type){case i.kInitDecoderReq:this.initDecoder(e.data.s,e.data.c);break;case i.kUninitDecoderReq:this.uninitDecoder();break;case i.kOpenDecoderReq:this.openDecoder();break;case i.kCloseDecoderReq:this.closeDecoder();break;case i.kStartDecodingReq:this.startDecoding(e.data.i);break;case i.kPauseDecodingReq:this.pauseDecoding();break;case i.kFeedDataReq:this.sendData(e.data);break;case a.kSeekToRsp:this.seekTo(e.data.ms);default:this.logger.error("Unsupport messsage "+e.type)}}cacheReq(e){e&&(this.logger.info("Cache req : "+e.type),this.tmpReqQue.push(e))}onWasmLoaded(){this.logger.info("Wasm loaded."),this.wasmLoaded=!0,c.then(e=>{for(c=e,this.videoCallback=c.addFunction((function(e,t,r){let n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kVideoFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.audioCallback=c.addFunction((function(e,t,r){let n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kAudioFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.requestCallback=c.addFunction((function(e,t){let r={type:a.kRequestDataEvt,data:{o:e,a:t}};console.log("request callback",e,t),postMessage(r)}),"vii");this.tmpReqQue.length>0;){let e=this.tmpReqQue.shift();this.processReq(e)}})}onWasmLoadedOld(){for(this.logger.info("Wasm loaded."),this.wasmLoaded=!0,this.videoCallback=c.addFunction((function(e,t,r){let n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kVideoFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.audioCallback=c.addFunction((function(e,t,r){let n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kAudioFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.requestCallback=c.addFunction((function(e,t){postMessage({type:a.kRequestDataEvt,data:{o:e,a:t}})}),"vii");this.tmpReqQue.length>0;){let e=this.tmpReqQue.shift();this.processReq(e)}}};addEventListener("message",({data:e})=>{if(!d)return void console.log("[ER] Decoder not initialized!");let t=e;if(!d.wasmLoaded)return d.cacheReq(t),void d.logger.info("Temp cache req "+t.type+".");d.processReq(t)})},PJMN:function(e,t){e.exports=require("crypto")},"mw/K":function(e,t){e.exports=require("fs")},oyvS:function(e,t){e.exports=require("path")}}); \ No newline at end of file diff --git a/oem/oem_ipc/www/1-es2015.ffe62d9977f350377aaf.worker.js b/oem/oem_ipc/www/1-es2015.ffe62d9977f350377aaf.worker.js deleted file mode 100644 index b119c50..0000000 --- a/oem/oem_ipc/www/1-es2015.ffe62d9977f350377aaf.worker.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,(function(r){return e[r]}).bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="1H3u")}({"1H3u":function(e,r,t){"use strict";t.r(r);class n{constructor(e){this.module=e}log(e){console.log("["+this.currentTimeStr()+"]["+this.module+"]"+e)}error(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][E] "+e)}info(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][I] "+e)}debug(e){console.log("["+this.currentTimeStr()+"]["+this.module+"][D] "+e)}currentTimeStr(){var e=new Date(Date.now());return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+":"+e.getMilliseconds()}}var o,a=function(e){return e[e.kInitDecoderReq=0]="kInitDecoderReq",e[e.kUninitDecoderReq=1]="kUninitDecoderReq",e[e.kOpenDecoderReq=2]="kOpenDecoderReq",e[e.kCloseDecoderReq=3]="kCloseDecoderReq",e[e.kFeedDataReq=4]="kFeedDataReq",e[e.kStartDecodingReq=5]="kStartDecodingReq",e[e.kPauseDecodingReq=6]="kPauseDecodingReq",e[e.kSeekToReq=7]="kSeekToReq",e}({}),i=function(e){return e[e.kInitDecoderRsp=0]="kInitDecoderRsp",e[e.kUninitDecoderRsp=1]="kUninitDecoderRsp",e[e.kOpenDecoderRsp=2]="kOpenDecoderRsp",e[e.kCloseDecoderRsp=3]="kCloseDecoderRsp",e[e.kVideoFrame=4]="kVideoFrame",e[e.kAudioFrame=5]="kAudioFrame",e[e.kStartDecodingRsp=6]="kStartDecodingRsp",e[e.kPauseDecodingRsp=7]="kPauseDecodingRsp",e[e.kDecodeFinishedEvt=8]="kDecodeFinishedEvt",e[e.kRequestDataEvt=9]="kRequestDataEvt",e[e.kSeekToRsp=10]="kSeekToRsp",e}({});class s{constructor(e,r){this.type=e,this.data=r}static getInstance(e){const{type:r,data:t}=e;return new s(r,t)}}let u=(o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),function(e){var r,n=void 0!==(e=e||{})?e:{};n.ready=new Promise((function(e,t){r=e}));var a,i={};for(a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);var s=[],u="./this.program",c=function(e,r){throw r},l=!1,f=!1,d=!1,m=!1;l="object"==typeof window,f="function"==typeof importScripts,d="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m=!l&&!d&&!f;var h,p,g,w,v="";function y(e){return n.locateFile?n.locateFile(e,v):v+e}d?(v=f?t("oyvS").dirname(v)+"/":__dirname+"/",h=function(e,r){return g||(g=t("mw/K")),w||(w=t("oyvS")),e=w.normalize(e),g.readFileSync(e,r?null:"utf8")},p=function(e){var r=h(e,!0);return r.buffer||(r=new Uint8Array(r)),O(r.buffer),r},process.argv.length>1&&(u=process.argv[1].replace(/\\/g,"/")),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Xr))throw e})),process.on("unhandledRejection",_e),c=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):m?("undefined"!=typeof read&&(h=function(e){return read(e)}),p=function(e){var r;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(O("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&(c=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||f)&&(f?v=self.location.href:document.currentScript&&(v=document.currentScript.src),o&&(v=o),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",h=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},f&&(p=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var E=n.print||console.log.bind(console),_=n.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(n[a]=i[a]);function k(e){var r=G[Z>>2];return G[Z>>2]=r+e+15&-16,r}function D(e,r){if("function"==typeof WebAssembly.Function){for(var t={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==r[0]?[]:[t[r[0]]]},o=1;o=n);)++o;if(o-r>16&&e.subarray&&z)return z.decode(e.subarray(r,o));for(var a="";r>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function q(e,r){return e?B(V,e,r):""}function L(e,r,t,n){if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o}function N(e,r,t){return L(e,V,r,t)}function j(e){for(var r=0,t=0;t=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++t)),n<=127?++r:r+=n<=2047?2:n<=65535?3:4}return r}function U(e){var r=j(e)+1,t=Hr(r);return t&&L(e,Y,t,r),t}function I(e,r){Y.set(e,r)}function H(e,r,t){for(var n=0;n>0]=e.charCodeAt(n);t||(Y[r>>0]=0)}var W,Y,V,X,G,K=65536;function Q(e){W=e,n.HEAP8=Y=new Int8Array(e),n.HEAP16=X=new Int16Array(e),n.HEAP32=G=new Int32Array(e),n.HEAPU8=V=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=new Float32Array(e),n.HEAPF64=new Float64Array(e)}var J=6798592,Z=1555552,$=n.INITIAL_MEMORY||67108864;function ee(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?n.dynCall_v(t):n.dynCall_vi(t,r.arg):t(void 0===r.arg?null:r.arg)}else r(n)}}(R=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:$/K,maximum:$/K}))&&(W=R.buffer),$=W.byteLength,Q(W),G[Z>>2]=J;var re=[],te=[],ne=[],oe=[],ae=!1;function ie(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)le(n.preRun.shift());ee(re)}function se(){ae=!0,n.noFSInit||Ie.init.initialized||Ie.init(),je.init(),ee(te)}function ue(){Ie.ignorePermissions=!1,ee(ne)}function ce(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)fe(n.postRun.shift());ee(oe)}function le(e){re.unshift(e)}function fe(e){oe.unshift(e)}var de=Math.abs,me=Math.ceil,he=Math.floor,pe=Math.min,ge=0,we=null,ve=null;function ye(e){ge++,n.monitorRunDependencies&&n.monitorRunDependencies(ge)}function Ee(e){if(ge--,n.monitorRunDependencies&&n.monitorRunDependencies(ge),0==ge&&(null!==we&&(clearInterval(we),we=null),ve)){var r=ve;ve=null,r()}}function _e(e){throw n.onAbort&&n.onAbort(e),E(e+=""),_(e),x=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}function ke(e,r){return String.prototype.startsWith?e.startsWith(r):0===e.indexOf(r)}n.preloadedImages={},n.preloadedAudios={};var De="data:application/octet-stream;base64,";function be(e){return ke(e,De)}var Fe="file://";function Se(e){return ke(e,Fe)}var Re,Pe,Me="wasmdecoder.wasm";function Ae(){try{if(F)return new Uint8Array(F);if(p)return p(Me);throw"both async and sync fetching of the wasm failed"}catch(_){_e(_)}}function Te(){return F||!l&&!f||"function"!=typeof fetch||Se(Me)?new Promise((function(e,r){e(Ae())})):fetch(Me,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Me+"'";return e.arrayBuffer()})).catch((function(){return Ae()}))}function xe(){var e={a:Lr};function r(e,r){n.asm=e.exports,Ee()}function t(e){r(e.instance)}function o(r){return Te().then((function(r){return WebAssembly.instantiate(r,e)})).then(r,(function(e){_("failed to asynchronously prepare wasm: "+e),_e(e)}))}if(ye(),n.instantiateWasm)try{return n.instantiateWasm(e,r)}catch(a){return _("Module.instantiateWasm callback failed with error: "+a),!1}return function(){if(F||"function"!=typeof WebAssembly.instantiateStreaming||be(Me)||Se(Me)||"function"!=typeof fetch)return o(t);fetch(Me,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,e).then(t,(function(e){_("wasm streaming compile failed: "+e),_("falling back to ArrayBuffer instantiation"),o(t)}))}))}(),{}}function Oe(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){return e==e?e:e+" ["+e+"]"}))}function Ce(){var e=new Error;if(!e.stack){try{throw new Error}catch(r){e=r}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function ze(){var e=Ce();return n.extraStackTrace&&(e+="\n"+n.extraStackTrace()),Oe(e)}be(Me)||(Me=y(Me)),te.push({func:function(){Ur()}});var Be={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,r){for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:function(e){var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:function(e){var r=Be.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:function(e){if("/"===e)return"/";var r=e.lastIndexOf("/");return-1===r?e:e.substr(r+1)},extname:function(e){return Be.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return Be.normalize(e.join("/"))},join2:function(e,r){return Be.normalize(e+"/"+r)}};function qe(e){return G[Ir()>>2]=e,e}var Le,Ne={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:Ie.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r="/"===n.charAt(0)}return(r?"/":"")+(e=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||"."},relative:function(e,r){function t(e){for(var r=0;r=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=Ne.resolve(e).substr(1),r=Ne.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s0?t.slice(0,n).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n");if(!r)return null;e.input=qr(r,!0)}return e.input.shift()},put_char:function(e,r){null===r||10===r?(E(B(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(E(B(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,r){null===r||10===r?(_(B(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(_(B(e.output,0)),e.output=[])}}},Ue={ops_table:null,mount:function(e){return Ue.createNode(null,"/",16895,0)},createNode:function(e,r,t,n){if(Ie.isBlkdev(t)||Ie.isFIFO(t))throw new Ie.ErrnoError(63);Ue.ops_table||(Ue.ops_table={dir:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr,lookup:Ue.node_ops.lookup,mknod:Ue.node_ops.mknod,rename:Ue.node_ops.rename,unlink:Ue.node_ops.unlink,rmdir:Ue.node_ops.rmdir,readdir:Ue.node_ops.readdir,symlink:Ue.node_ops.symlink},stream:{llseek:Ue.stream_ops.llseek}},file:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr},stream:{llseek:Ue.stream_ops.llseek,read:Ue.stream_ops.read,write:Ue.stream_ops.write,allocate:Ue.stream_ops.allocate,mmap:Ue.stream_ops.mmap,msync:Ue.stream_ops.msync}},link:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr,readlink:Ue.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr},stream:Ie.chrdev_stream_ops}});var o=Ie.createNode(e,r,t,n);return Ie.isDir(o.mode)?(o.node_ops=Ue.ops_table.dir.node,o.stream_ops=Ue.ops_table.dir.stream,o.contents={}):Ie.isFile(o.mode)?(o.node_ops=Ue.ops_table.file.node,o.stream_ops=Ue.ops_table.file.stream,o.usedBytes=0,o.contents=null):Ie.isLink(o.mode)?(o.node_ops=Ue.ops_table.link.node,o.stream_ops=Ue.ops_table.link.stream):Ie.isChrdev(o.mode)&&(o.node_ops=Ue.ops_table.chrdev.node,o.stream_ops=Ue.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o),o},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var r=[],t=0;t=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,r){if(e.usedBytes!=r){if(0==r)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var t=e.contents;return e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),void(e.usedBytes=r)}if(e.contents||(e.contents=[]),e.contents.length>r)e.contents.length=r;else for(;e.contents.length=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s0||o+n8)throw new Ie.ErrnoError(32);for(var o=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),a=Ie.root,i="/",s=0;s40)throw new Ie.ErrnoError(32)}}return{path:i,node:a}},getPath:function(e){for(var r;;){if(Ie.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?t+"/"+r:t+r:t}r=r?e.name+"/"+r:e.name,e=e.parent}},hashName:function(e,r){for(var t=0,n=0;n>>0)%Ie.nameTable.length},hashAddNode:function(e){var r=Ie.hashName(e.parent.id,e.name);e.name_next=Ie.nameTable[r],Ie.nameTable[r]=e},hashRemoveNode:function(e){var r=Ie.hashName(e.parent.id,e.name);if(Ie.nameTable[r]===e)Ie.nameTable[r]=e.name_next;else for(var t=Ie.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode:function(e,r){var t=Ie.mayLookup(e);if(t)throw new Ie.ErrnoError(t,e);for(var n=Ie.hashName(e.id,r),o=Ie.nameTable[n];o;o=o.name_next)if(o.parent.id===e.id&&o.name===r)return o;return Ie.lookup(e,r)},createNode:function(e,r,t,n){var o=new Ie.FSNode(e,r,t,n);return Ie.hashAddNode(o),o},destroyNode:function(e){Ie.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var r=Ie.flagModes[e];if(void 0===r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:function(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:function(e,r){return Ie.ignorePermissions?0:(-1===r.indexOf("r")||292&e.mode)&&(-1===r.indexOf("w")||146&e.mode)&&(-1===r.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){return Ie.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,r){try{return Ie.lookupNode(e,r),20}catch(t){}return Ie.nodePermissions(e,"wx")},mayDelete:function(e,r,t){var n;try{n=Ie.lookupNode(e,r)}catch(a){return a.errno}var o=Ie.nodePermissions(e,"wx");if(o)return o;if(t){if(!Ie.isDir(n.mode))return 54;if(Ie.isRoot(n)||Ie.getPath(n)===Ie.cwd())return 10}else if(Ie.isDir(n.mode))return 31;return 0},mayOpen:function(e,r){return e?Ie.isLink(e.mode)?32:Ie.isDir(e.mode)&&("r"!==Ie.flagsToPermissionString(r)||512&r)?31:Ie.nodePermissions(e,Ie.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(e,r){r=r||Ie.MAX_OPEN_FDS;for(var t=e=e||0;t<=r;t++)if(!Ie.streams[t])return t;throw new Ie.ErrnoError(33)},getStream:function(e){return Ie.streams[e]},createStream:function(e,r,t){Ie.FSStream||(Ie.FSStream=function(){},Ie.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new Ie.FSStream;for(var o in e)n[o]=e[o];e=n;var a=Ie.nextfd(r,t);return e.fd=a,Ie.streams[a]=e,e},closeStream:function(e){Ie.streams[e]=null},chrdev_stream_ops:{open:function(e){var r=Ie.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new Ie.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,r){return e<<8|r},registerDevice:function(e,r){Ie.devices[e]={stream_ops:r}},getDevice:function(e){return Ie.devices[e]},getMounts:function(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs:function(e,r){"function"==typeof e&&(r=e,e=!1),Ie.syncFSRequests++,Ie.syncFSRequests>1&&_("warning: "+Ie.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=Ie.getMounts(Ie.root.mount),n=0;function o(e){return Ie.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((function(r){if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount:function(e,r,t){var n,o="/"===t,a=!t;if(o&&Ie.root)throw new Ie.ErrnoError(10);if(!o&&!a){var i=Ie.lookupPath(t,{follow_mount:!1});if(t=i.path,Ie.isMountpoint(n=i.node))throw new Ie.ErrnoError(10);if(!Ie.isDir(n.mode))throw new Ie.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?Ie.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(e){var r=Ie.lookupPath(e,{follow_mount:!1});if(!Ie.isMountpoint(r.node))throw new Ie.ErrnoError(28);var t=r.node,n=t.mounted,o=Ie.getMounts(n);Object.keys(Ie.nameTable).forEach((function(e){for(var r=Ie.nameTable[e];r;){var t=r.name_next;-1!==o.indexOf(r.mount)&&Ie.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:function(e,r){return e.node_ops.lookup(e,r)},mknod:function(e,r,t){var n=Ie.lookupPath(e,{parent:!0}).node,o=Be.basename(e);if(!o||"."===o||".."===o)throw new Ie.ErrnoError(28);var a=Ie.mayCreate(n,o);if(a)throw new Ie.ErrnoError(a);if(!n.node_ops.mknod)throw new Ie.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:function(e,r){return r=void 0!==r?r:438,r&=4095,Ie.mknod(e,r|=32768,0)},mkdir:function(e,r){return r=void 0!==r?r:511,r&=1023,Ie.mknod(e,r|=16384,0)},mkdirTree:function(e,r){for(var t=e.split("/"),n="",o=0;othis.length-1||e<0)){var r=e%this.chunkSize;return this.getter(e/this.chunkSize|0)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((function(e){var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,r){if(e>r)throw new Error("invalid range ("+e+", "+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",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),"undefined"!=typeof Uint8Array&&(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 "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):qr(o.responseText||"",!0)}(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!f)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{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:i}}else s={isDevice:!1,url:t};var u=Ie.createFile(e,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 c={};return Object.keys(u.stream_ops).forEach((function(e){var r=u.stream_ops[e];c[e]=function(){if(!Ie.forceLoadFile(u))throw new Ie.ErrnoError(29);return r.apply(null,arguments)}})),c.read=function(e,r,t,n,o){if(!Ie.forceLoadFile(u))throw new Ie.ErrnoError(29);var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s>2]=n.dev,G[t+4>>2]=0,G[t+8>>2]=n.ino,G[t+12>>2]=n.mode,G[t+16>>2]=n.nlink,G[t+20>>2]=n.uid,G[t+24>>2]=n.gid,G[t+28>>2]=n.rdev,G[t+32>>2]=0,Pe=[n.size>>>0,(Re=n.size,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[t+40>>2]=Pe[0],G[t+44>>2]=Pe[1],G[t+48>>2]=4096,G[t+52>>2]=n.blocks,G[t+56>>2]=n.atime.getTime()/1e3|0,G[t+60>>2]=0,G[t+64>>2]=n.mtime.getTime()/1e3|0,G[t+68>>2]=0,G[t+72>>2]=n.ctime.getTime()/1e3|0,G[t+76>>2]=0,Pe=[n.ino>>>0,(Re=n.ino,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[t+80>>2]=Pe[0],G[t+84>>2]=Pe[1],0},doMsync:function(e,r,t,n,o){var a=V.slice(e,e+t);Ie.msync(r,a,o,t,n)},doMkdir:function(e,r){return"/"===(e=Be.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),Ie.mkdir(e,r,0),0},doMknod:function(e,r,t){switch(61440&r){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return Ie.mknod(e,r,t),0},doReadlink:function(e,r,t){if(t<=0)return-28;var n=Ie.readlink(e),o=Math.min(t,j(n)),a=Y[r+o];return N(n,r,t+1),Y[r+o]=a,o},doAccess:function(e,r){if(-8&r)return-28;var t;if(!(t=Ie.lookupPath(e,{follow:!0}).node))return-44;var n="";return 4&r&&(n+="r"),2&r&&(n+="w"),1&r&&(n+="x"),n&&Ie.nodePermissions(t,n)?-2:0},doDup:function(e,r,t){var n=Ie.getStream(t);return n&&Ie.close(n),Ie.open(e,r,0,t,t).fd},doReadv:function(e,r,t,n){for(var o=0,a=0;a>2],s=Ie.read(e,Y,G[r+8*a>>2],i,n);if(s<0)return-1;if(o+=s,s>2],G[r+(8*a+4)>>2],n);if(i<0)return-1;o+=i}return o},varargs:void 0,get:function(){return He.varargs+=4,G[He.varargs-4>>2]},getStr:function(e){return q(e)},getStreamFromFD:function(e){var r=Ie.getStream(e);if(!r)throw new Ie.ErrnoError(8);return r},get64:function(e,r){return e}};function We(e,r){try{return e=He.getStr(e),He.doAccess(e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||_e(t),-t.errno}}function Ye(e,r,t){He.varargs=t;try{var n=He.getStreamFromFD(e);switch(r){case 0:return(o=He.get())<0?-28:Ie.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=He.get();return n.flags|=o,0;case 12:return o=He.get(),X[o+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return qe(28),-1;default:return-28}}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||_e(a),-a.errno}}function Ve(e,r){try{var t=He.getStreamFromFD(e);return He.doStat(Ie.stat,t.path,r)}catch(n){return void 0!==Ie&&n instanceof Ie.ErrnoError||_e(n),-n.errno}}function Xe(e,r,t){try{var n=He.getStreamFromFD(e);n.getdents||(n.getdents=Ie.readdir(n.path));for(var o=0,a=Ie.llseek(n,0,1),i=Math.floor(a/280);i>>0,(Re=s,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[r+o>>2]=Pe[0],G[r+o+4>>2]=Pe[1],Pe=[280*(i+1)>>>0,(Re=280*(i+1),+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[r+o+8>>2]=Pe[0],G[r+o+12>>2]=Pe[1],X[r+o+16>>1]=280,Y[r+o+18>>0]=u,N(c,r+o+19,256),o+=280,i+=1}return Ie.llseek(n,280*i,0),o}catch(f){return void 0!==Ie&&f instanceof Ie.ErrnoError||_e(f),-f.errno}}function Ge(e,r,t){He.varargs=t;try{var n=He.getStreamFromFD(e);switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=He.get();return G[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=He.get(),Ie.ioctl(n,r,o);case 21523:case 21524:return n.tty?0:-59;default:_e("bad ioctl syscall "+r)}}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||_e(a),-a.errno}}function Ke(e,r){try{return e=He.getStr(e),He.doStat(Ie.lstat,e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||_e(t),-t.errno}}function Qe(e,r,t){He.varargs=t;try{var n=He.getStr(e),o=He.get();return Ie.open(n,r,o).fd}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||_e(a),-a.errno}}function Je(e,r,t){try{var n=He.getStreamFromFD(e);return Ie.read(n,Y,r,t)}catch(o){return void 0!==Ie&&o instanceof Ie.ErrnoError||_e(o),-o.errno}}function Ze(e,r){try{return e=He.getStr(e),r=He.getStr(r),Ie.rename(e,r),0}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||_e(t),-t.errno}}function $e(e){try{return e=He.getStr(e),Ie.rmdir(e),0}catch(r){return void 0!==Ie&&r instanceof Ie.ErrnoError||_e(r),-r.errno}}function er(e,r){try{return e=He.getStr(e),He.doStat(Ie.stat,e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||_e(t),-t.errno}}function rr(e){try{return e=He.getStr(e),Ie.unlink(e),0}catch(r){return void 0!==Ie&&r instanceof Ie.ErrnoError||_e(r),-r.errno}}function tr(){_e()}function nr(){return void 0===nr.start&&(nr.start=Date.now()),1e3*(Date.now()-nr.start)|0}Le=d?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var or=!0;function ar(e,r){var t;if(0===e)t=Date.now();else{if(1!==e&&4!==e||!or)return qe(28),-1;t=Le()}return G[r>>2]=t/1e3|0,G[r+4>>2]=t%1e3*1e3*1e3|0,0}function ir(e,r,t){V.copyWithin(e,r,r+t)}function sr(e){_e("OOM")}function ur(e){sr()}var cr={};function lr(){return u||"./this.program"}function fr(){if(!fr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:lr()};for(var r in cr)e[r]=cr[r];var t=[];for(var r in e)t.push(r+"="+e[r]);fr.strings=t}return fr.strings}function dr(e,r){var t=0;return fr().forEach((function(n,o){var a=r+t;G[e+4*o>>2]=a,H(n,a),t+=n.length+1})),0}function mr(e,r){var t=fr();G[e>>2]=t.length;var n=0;return t.forEach((function(e){n+=e.length+1})),G[r>>2]=n,0}function hr(e){try{var r=He.getStreamFromFD(e);return Ie.close(r),0}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||_e(t),t.errno}}function pr(e,r){try{var t=He.getStreamFromFD(e),n=t.tty?2:Ie.isDir(t.mode)?3:Ie.isLink(t.mode)?7:4;return Y[r>>0]=n,0}catch(o){return void 0!==Ie&&o instanceof Ie.ErrnoError||_e(o),o.errno}}function gr(e,r,t,n){try{var o=He.getStreamFromFD(e),a=He.doReadv(o,r,t);return G[n>>2]=a,0}catch(i){return void 0!==Ie&&i instanceof Ie.ErrnoError||_e(i),i.errno}}function wr(e,r,t,n,o){try{var a=He.getStreamFromFD(e),i=4294967296*t+(r>>>0);return i<=-9007199254740992||i>=9007199254740992?-61:(Ie.llseek(a,i,n),Pe=[a.position>>>0,(Re=a.position,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[o>>2]=Pe[0],G[o+4>>2]=Pe[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0)}catch(s){return void 0!==Ie&&s instanceof Ie.ErrnoError||_e(s),s.errno}}function vr(e,r,t,n){try{var o=He.getStreamFromFD(e),a=He.doWritev(o,r,t);return G[n>>2]=a,0}catch(i){return void 0!==Ie&&i instanceof Ie.ErrnoError||_e(i),i.errno}}function yr(e){var r=Date.now();return G[e>>2]=r/1e3|0,X[e+4>>1]=r%1e3,X[e+6>>1]=0,X[e+8>>1]=0,0}function Er(e){var r=Date.now();return G[e>>2]=r/1e3|0,G[e+4>>2]=r%1e3*1e3|0,0}var _r=(N("GMT",1555616,4),1555616);function kr(e,r){var t=new Date(1e3*G[e>>2]);G[r>>2]=t.getUTCSeconds(),G[r+4>>2]=t.getUTCMinutes(),G[r+8>>2]=t.getUTCHours(),G[r+12>>2]=t.getUTCDate(),G[r+16>>2]=t.getUTCMonth(),G[r+20>>2]=t.getUTCFullYear()-1900,G[r+24>>2]=t.getUTCDay(),G[r+36>>2]=0,G[r+32>>2]=0;var n=Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0),o=(t.getTime()-n)/864e5|0;return G[r+28>>2]=o,G[r+40>>2]=_r,r}function Dr(){if(!Dr.called){Dr.called=!0,G[Vr()>>2]=60*(new Date).getTimezoneOffset();var e=(new Date).getFullYear(),r=new Date(e,0,1),t=new Date(e,6,1);G[Yr()>>2]=Number(r.getTimezoneOffset()!=t.getTimezoneOffset());var n=s(r),o=s(t),a=U(n),i=U(o);t.getTimezoneOffset()>2]=a,G[Wr()+4>>2]=i):(G[Wr()>>2]=i,G[Wr()+4>>2]=a)}function s(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}}function br(e,r){Dr();var t=new Date(1e3*G[e>>2]);G[r>>2]=t.getSeconds(),G[r+4>>2]=t.getMinutes(),G[r+8>>2]=t.getHours(),G[r+12>>2]=t.getDate(),G[r+16>>2]=t.getMonth(),G[r+20>>2]=t.getFullYear()-1900,G[r+24>>2]=t.getDay();var n=new Date(t.getFullYear(),0,1),o=(t.getTime()-n.getTime())/864e5|0;G[r+28>>2]=o,G[r+36>>2]=-60*t.getTimezoneOffset();var a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=n.getTimezoneOffset(),s=0|(a!=i&&t.getTimezoneOffset()==Math.min(i,a));G[r+32>>2]=s;var u=G[Wr()+(s?4:0)>>2];return G[r+40>>2]=u,r}function Fr(e){for(var r=Le();Le()-r>2],n=G[e+4>>2];return n<0||n>999999999||t<0?(qe(28),-1):(0!==r&&(G[r>>2]=0,G[r+4>>2]=0),Fr(1e6*t+n/1e3))}function Rr(e){return(e=+e)>=0?+he(e+.5):+me(e-.5)}function Pr(e){return e%4==0&&(e%100!=0||e%400==0)}function Mr(e,r){for(var t=0,n=0;n<=r;t+=e[n++]);return t}var Ar=[31,29,31,30,31,30,31,31,30,31,30,31],Tr=[31,28,31,30,31,30,31,31,30,31,30,31];function xr(e,r){for(var t=new Date(e.getTime());r>0;){var n=Pr(t.getFullYear()),o=t.getMonth(),a=(n?Ar:Tr)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t}function Or(e,r,t,n){var o=G[n+40>>2],a={tm_sec:G[n>>2],tm_min:G[n+4>>2],tm_hour:G[n+8>>2],tm_mday:G[n+12>>2],tm_mon:G[n+16>>2],tm_year:G[n+20>>2],tm_wday:G[n+24>>2],tm_yday:G[n+28>>2],tm_isdst:G[n+32>>2],tm_gmtoff:G[n+36>>2],tm_zone:o?q(o):""},i=q(t),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)i=i.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var r=xr(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=h(t),a=h(n);return m(o,r)<=0?m(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var g={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return d((e.tm_year+1900)/100|0,2)},"%d":function(e){return d(e.tm_mday,2)},"%e":function(e){return f(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return d(e.tm_hour,2)},"%I":function(e){var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":function(e){return d(e.tm_mday+Mr(Pr(e.tm_year+1900)?Ar:Tr,e.tm_mon-1),3)},"%m":function(e){return d(e.tm_mon+1,2)},"%M":function(e){return d(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return d(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var r=new Date(e.tm_year+1900,0,1),t=0===r.getDay()?r:xr(r,7-r.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(m(t,n)<0){var o=Mr(Pr(n.getFullYear())?Ar:Tr,n.getMonth()-1)-31,a=31-t.getDate()+o+n.getDate();return d(Math.ceil(a/7),2)}return 0===m(t,r)?"01":"00"},"%V":function(e){var r,t=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),o=h(t),a=h(n),i=xr(new Date(e.tm_year+1900,0,1),e.tm_yday);return m(i,o)<0?"53":m(a,i)<=0?"01":(r=o.getFullYear()=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in g)i.indexOf(u)>=0&&(i=i.replace(new RegExp(u,"g"),g[u](a)));var w=qr(i,!1);return w.length>r?0:(I(w,e),w.length-1)}var Cr=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Ie.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},zr=365,Br=146;function qr(e,r,t){var n=t>0?t:j(e)+1,o=new Array(n),a=L(e,o,0,o.length);return r&&(o.length=a),o}Object.defineProperties(Cr.prototype,{read:{get:function(){return(this.mode&zr)===zr},set:function(e){e?this.mode|=zr:this.mode&=~zr}},write:{get:function(){return(this.mode&Br)===Br},set:function(e){e?this.mode|=Br:this.mode&=~Br}},isFolder:{get:function(){return Ie.isDir(this.mode)}},isDevice:{get:function(){return Ie.isChrdev(this.mode)}}}),Ie.FSNode=Cr,Ie.staticInit(),n.FS_createFolder=Ie.createFolder,n.FS_createPath=Ie.createPath,n.FS_createDataFile=Ie.createDataFile,n.FS_createPreloadedFile=Ie.createPreloadedFile,n.FS_createLazyFile=Ie.createLazyFile,n.FS_createLink=Ie.createLink,n.FS_createDevice=Ie.createDevice,n.FS_unlink=Ie.unlink;var Lr={z:We,d:Ye,C:Ve,A:Xe,x:Ge,D:Ke,j:Qe,y:Je,v:Ze,i:$e,B:er,g:rr,a:tr,n:nr,k:ar,r:ir,s:ur,t:dr,u:mr,b:hr,f:pr,w:gr,q:wr,c:vr,E:yr,m:Er,p:kr,h:br,memory:R,l:Sr,o:Rr,e:Or,table:T},Nr=xe();n.asm=Nr;var jr,Ur=n.___wasm_call_ctors=function(){return(Ur=n.___wasm_call_ctors=n.asm.F).apply(null,arguments)},Ir=(n._initDecoder=function(){return(n._initDecoder=n.asm.G).apply(null,arguments)},n.___errno_location=function(){return(Ir=n.___errno_location=n.asm.H).apply(null,arguments)}),Hr=(n._uninitDecoder=function(){return(n._uninitDecoder=n.asm.I).apply(null,arguments)},n._openDecoder=function(){return(n._openDecoder=n.asm.J).apply(null,arguments)},n._closeDecoder=function(){return(n._closeDecoder=n.asm.K).apply(null,arguments)},n._sendData=function(){return(n._sendData=n.asm.L).apply(null,arguments)},n._decodeOnePacket=function(){return(n._decodeOnePacket=n.asm.M).apply(null,arguments)},n._seekTo=function(){return(n._seekTo=n.asm.N).apply(null,arguments)},n._main=function(){return(n._main=n.asm.O).apply(null,arguments)},n._free=function(){return(n._free=n.asm.P).apply(null,arguments)},n._malloc=function(){return(Hr=n._malloc=n.asm.Q).apply(null,arguments)}),Wr=n.__get_tzname=function(){return(Wr=n.__get_tzname=n.asm.R).apply(null,arguments)},Yr=n.__get_daylight=function(){return(Yr=n.__get_daylight=n.asm.S).apply(null,arguments)},Vr=n.__get_timezone=function(){return(Vr=n.__get_timezone=n.asm.T).apply(null,arguments)};function Xr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Gr(e){var r=n._main;try{Qr(r(0,0),!0)}catch(o){if(o instanceof Xr)return;if("unwind"==o)return void(S=!0);var t=o;o&&"object"==typeof o&&o.stack&&(t=[o,o.stack]),_("exception thrown: "+t),c(1,o)}}function Kr(e){function t(){jr||(jr=!0,n.calledRun=!0,x||(se(),ue(),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Jr&&Gr(),ce()))}e=e||s,ge>0||(ie(),ge>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Qr(e,r){r&&S&&0===e||(S||(x=!0,n.onExit&&n.onExit(e)),c(e,new Xr(e)))}if(n.dynCall_vi=function(){return(n.dynCall_vi=n.asm.U).apply(null,arguments)},n.dynCall_v=function(){return(n.dynCall_v=n.asm.V).apply(null,arguments)},n._ff_h264_cabac_tables=134277,n.asm=Nr,n.getMemory=C,n.addRunDependency=ye,n.removeRunDependency=Ee,n.FS_createFolder=Ie.createFolder,n.FS_createPath=Ie.createPath,n.FS_createDataFile=Ie.createDataFile,n.FS_createPreloadedFile=Ie.createPreloadedFile,n.FS_createLazyFile=Ie.createLazyFile,n.FS_createLink=Ie.createLink,n.FS_createDevice=Ie.createDevice,n.FS_unlink=Ie.unlink,n.addFunction=A,ve=function e(){jr||Kr(),jr||(ve=e)},n.run=Kr,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Jr=!0;return n.noInitialRun&&(Jr=!1),S=!0,Kr(),e.ready})({onRuntimeInitialized:()=>{console.log("onWasmLoaded"),c?c.onWasmLoaded():console.log("[ER] No decoder!")}}),c=new class{constructor(){this.logger=new n("Decoder"),this.coreLogLevel=1,this.accurateSeek=!0,this.wasmLoaded=!1,this.tmpReqQue=[],this.cacheBuffer=null,this.decodeTimer=null,this.videoCallback=null,this.audioCallback=null}initDecoder(e,r){let t=u._initDecoder(e,this.coreLogLevel);this.logger.info("initDecoder return "+t+"."),0==t&&(this.cacheBuffer=u._malloc(r)),postMessage(new s(i.kInitDecoderRsp,{e:t}))}uninitDecoder(){let e=u._uninitDecoder();this.logger.info("Uninit ffmpeg decoder return "+e+"."),null!=this.cacheBuffer&&(u._free(this.cacheBuffer),this.cacheBuffer=null)}openDecoder(){let e=u._malloc(28),r=u._openDecoder(e,7,this.videoCallback,this.audioCallback,this.requestCallback);if(this.logger.info("openDecoder return "+r),0==r){let t=e>>2,n=new Uint32Array(u.HEAP32.subarray(t,t+7));postMessage({type:i.kOpenDecoderRsp,data:{e:r,v:{d:n[0],p:n[1],w:n[2],h:n[3]},a:{sampleFormat:n[4],channelCount:n[5],sampleRate:n[6]}}})}else postMessage(new s(i.kOpenDecoderRsp,{e:r}));u._free(e)}closeDecoder(){this.logger.info("closeDecoder."),this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null,this.logger.info("Decode timer stopped."));let e=u._closeDecoder();this.logger.info("Close ffmpeg decoder return "+e+"."),postMessage(new s(i.kCloseDecoderRsp,{e:0}))}startDecoding(e){this.decodeTimer&&clearInterval(this.decodeTimer),this.decodeTimer=setInterval(this.decode,e)}pauseDecoding(){this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null)}decode(){let e=u._decodeOnePacket();for(7==e&&(c.logger.info("Decoder finished."),c.pauseDecoding(),postMessage(new s(i.kDecodeFinishedEvt,null)));9==e;)e=u._decodeOnePacket()}sendData(e){let r=new Uint8Array(e);u.HEAPU8.set(r,this.cacheBuffer),u._sendData(this.cacheBuffer,r.length)}seekTo(e){let r=u._seekTo(e,this.accurateSeek?1:0);postMessage(new s(i.kSeekToRsp,{r}))}processReq(e){switch(e.type){case a.kInitDecoderReq:this.initDecoder(e.data.s,e.data.c);break;case a.kUninitDecoderReq:this.uninitDecoder();break;case a.kOpenDecoderReq:this.openDecoder();break;case a.kCloseDecoderReq:this.closeDecoder();break;case a.kStartDecodingReq:this.startDecoding(e.data.i);break;case a.kPauseDecodingReq:this.pauseDecoding();break;case a.kFeedDataReq:this.sendData(e.data);break;case i.kSeekToRsp:this.seekTo(e.data.ms);default:this.logger.error("Unsupport messsage "+e.type)}}cacheReq(e){e&&(this.logger.info("Cache req : "+e.type),this.tmpReqQue.push(e))}onWasmLoaded(){this.logger.info("Wasm loaded."),this.wasmLoaded=!0,u.then(e=>{for(u=e,this.videoCallback=u.addFunction((function(e,r,t){let n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kVideoFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.audioCallback=u.addFunction((function(e,r,t){let n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kAudioFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.requestCallback=u.addFunction((function(e,r){postMessage({type:i.kRequestDataEvt,data:{o:e,a:r}})}),"vii");this.tmpReqQue.length>0;){let e=this.tmpReqQue.shift();this.processReq(e)}})}onWasmLoadedOld(){for(this.logger.info("Wasm loaded."),this.wasmLoaded=!0,this.videoCallback=u.addFunction((function(e,r,t){let n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kVideoFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.audioCallback=u.addFunction((function(e,r,t){let n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kAudioFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.requestCallback=u.addFunction((function(e,r){postMessage({type:i.kRequestDataEvt,data:{o:e,a:r}})}),"vii");this.tmpReqQue.length>0;){let e=this.tmpReqQue.shift();this.processReq(e)}}};addEventListener("message",({data:e})=>{if(!c)return void console.log("[ER] Decoder not initialized!");let r=e;if(!c.wasmLoaded)return c.cacheReq(r),void c.logger.info("Temp cache req "+r.type+".");c.processReq(r)})},PJMN:function(e,r){e.exports=require("crypto")},"mw/K":function(e,r){e.exports=require("fs")},oyvS:function(e,r){e.exports=require("path")}}); \ No newline at end of file diff --git a/oem/oem_ipc/www/1-es5.4b2e1cd8143a3888ff7a.worker.js b/oem/oem_ipc/www/1-es5.4b2e1cd8143a3888ff7a.worker.js new file mode 100644 index 0000000..823155f --- /dev/null +++ b/oem/oem_ipc/www/1-es5.4b2e1cd8143a3888ff7a.worker.js @@ -0,0 +1 @@ +function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r1&&(u=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof kr))throw e})),process.on("unhandledRejection",Ve),d=function(e){process.exit(e)},i.inspect=function(){return"[Emscripten Module object]"};else if(h)"undefined"!=typeof read&&(m=function(e){return read(e)}),E=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(z("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);else{if(!l&&!f)throw new Error("environment detection error");f?_=self.location.href:document.currentScript&&(_=document.currentScript.src),n&&(_=n),_=0!==_.indexOf("blob:")?_.substr(0,_.lastIndexOf("/")+1):"",m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f&&(E=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var T=i.print||console.log.bind(console),O=i.printErr||console.warn.bind(console);for(a in s)s.hasOwnProperty(a)&&(i[a]=s[a]);function b(e){z(Ee);var t=ae[Ee>>2],r=t+e+15&-16;return z(r<=ne.length,"failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly"),ae[Ee>>2]=r,t}function D(e){D.shown||(D.shown={}),D.shown[e]||(D.shown[e]=1,O(e))}function v(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},o=1;o>0]=t;break;case"i16":ie[e>>1]=t;break;case"i32":ae[e>>2]=t;break;case"i64":rt=[t>>>0,(tt=t,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)],ae[e>>2]=rt[0],ae[e+4>>2]=rt[1];break;case"float":ce[e>>2]=t;break;case"double":ue[e>>3]=t;break;default:Ve("invalid type for setValue: "+r)}else switch(r){case"i1":case"i8":j(0|e,0|t,1);break;case"i16":j(0|e,0|t,2);break;case"i32":j(0|e,0|t,4);break;case"i64":j(0|e,0|(rt=[t>>>0,(tt=t,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(e+4|0,0|rt[1],4);break;case"float":X(0|e,Ce(t),4);break;case"double":X(0|e,+t,8);break;default:Ve("invalid type for setValue: "+r)}}function U(e,t,r){if("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),r)switch(t){case"i1":case"i8":return ne[e>>0];case"i16":return ie[e>>1];case"i32":case"i64":return ae[e>>2];case"float":return ce[e>>2];case"double":return ue[e>>3];default:Ve("invalid type for getValue: "+t)}else switch(t){case"i1":case"i8":return 0|L(0|e,1,0);case"i16":return 0|L(0|e,2,0);case"i32":return 0|L(0|e,4,0);case"i64":return 0|L(0|e,8,0);case"float":return Ce(C(0|e,4,0));case"double":return+C(0|e,8,0);default:Ve("invalid type for getValue: "+t)}return null}function x(e,t){switch(e){case 1:return"i8";case 2:return"i16";case 4:return t?"float":"i32";case 8:return"double";default:z(0)}}function j(e,t,r,n){e<=0&&Ve("segmentation fault storing "+r+" bytes to address "+e),e%r!=0&&Ve("alignment error storing to address "+e+", which was expected to be aligned to a multiple of "+r),e+r>se[Ee>>2]&&Ve("segmentation fault, exceeded the top of the available dynamic heap when storing "+r+" bytes to address "+e+". DYNAMICTOP="+ae[Ee>>2]),z(Ee),z(ae[Ee>>2]<=ne.length),F(e,t,x(r,n),1)}function X(e,t,r){j(e,t,r,!0)}function L(e,t,r,n){e<=0&&Ve("segmentation fault loading "+t+" bytes from address "+e),e%t!=0&&Ve("alignment error loading from address "+e+", which was expected to be aligned to a multiple of "+t),e+t>se[Ee>>2]&&Ve("segmentation fault, exceeded the top of the available dynamic heap when loading "+t+" bytes from address "+e+". DYNAMICTOP="+ae[Ee>>2]),z(Ee),z(ae[Ee>>2]<=ne.length);var o=x(t,n),i=U(e,o,1);return r&&(i=xe(i,parseInt(o.substr(1),10))),i}function C(e,t,r){return L(e,t,r,!0)}function H(){Ve("segmentation fault")}function Q(){Ve("alignment fault")}i.wasmBinary&&(k=i.wasmBinary),Object.getOwnPropertyDescriptor(i,"wasmBinary")||Object.defineProperty(i,"wasmBinary",{configurable:!0,get:function(){Ve("Module.wasmBinary has been replaced with plain wasmBinary")}}),i.noExitRuntime&&(S=i.noExitRuntime),Object.getOwnPropertyDescriptor(i,"noExitRuntime")||Object.defineProperty(i,"noExitRuntime",{configurable:!0,get:function(){Ve("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!=typeof WebAssembly&&Ve("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var B=new WebAssembly.Table({initial:1880,maximum:1894,element:"anyfunc"}),Y=!1;function z(e,t){e||Ve("Assertion failed: "+t)}function W(e){return Me?vr(e):b(e)}var q="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function G(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&q)return q.decode(e.subarray(t,o));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function V(e,t){return e?G(oe,e,t):""}function Z(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;s>=2097152&&D("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function K(e,t,r){return z("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Z(e,oe,t,r)}function J(e){for(var t=0,r=0;r=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function $(e){var t=J(e)+1,r=vr(t);return r&&Z(e,ne,r,t),r}function ee(e,t){z(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),ne.set(e,t)}function te(e,t,r){for(var n=0;n0&&(e+=t-e%t),e}function fe(e){re=e,i.HEAP8=ne=new Int8Array(e),i.HEAP16=ie=new Int16Array(e),i.HEAP32=ae=new Int32Array(e),i.HEAPU8=oe=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=se=new Uint32Array(e),i.HEAPF32=ce=new Float32Array(e),i.HEAPF64=ue=new Float64Array(e)}var pe=6823776,he=1580896,me=6823776,Ee=1580736;z(pe%16==0,"stack must start aligned"),z(me%16==0,"heap must start aligned");var ge=5242880;i.TOTAL_STACK&&z(ge===i.TOTAL_STACK,"the stack size can no longer be determined at runtime");var ye=i.INITIAL_MEMORY||67108864;function _e(){z(0==(3&he)),se[1+(he>>2)]=34821223,se[2+(he>>2)]=2310721022,ae[0]=1668509029}function we(){var e=se[1+(he>>2)],t=se[2+(he>>2)];34821223==e&&2310721022==t||Ve("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+t.toString(16)+" "+e.toString(16)),1668509029!==ae[0]&&Ve("Runtime error: The application has corrupted its heap memory area (address zero)!")}function Te(e){Ve("Stack overflow! Attempted to allocate "+e+" bytes on the stack, but stack has only "+(he-Ar()+e)+" bytes available!")}function Oe(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?i.dynCall_v(r):i.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t(i)}}Object.getOwnPropertyDescriptor(i,"INITIAL_MEMORY")||Object.defineProperty(i,"INITIAL_MEMORY",{configurable:!0,get:function(){Ve("Module.INITIAL_MEMORY has been replaced with plain INITIAL_INITIAL_MEMORY")}}),z(ye>=ge,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+ye+"! (TOTAL_STACK="+ge+")"),z("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),(I=i.wasmMemory?i.wasmMemory:new WebAssembly.Memory({initial:ye/de,maximum:2147483648/de}))&&(re=I.buffer),z((ye=re.byteLength)%de==0),z(65536%de==0),fe(re),ae[Ee>>2]=me,function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian!"}();var be=[],De=[],ve=[],Re=[],Me=!1,Pe=!1;function Ae(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)Fe(i.preRun.shift());Oe(be)}function ke(){we(),z(!Me),Me=!0,i.noFSInit||wt.init.initialized||wt.init(),Et.init(),Oe(De)}function Se(){we(),wt.ignorePermissions=!1,Oe(ve)}function Ie(){we(),Pe=!0}function Ne(){if(we(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)Ue(i.postRun.shift());Oe(Re)}function Fe(e){be.unshift(e)}function Ue(e){Re.unshift(e)}function xe(e,t,r){return e>=0?e:t<=32?2*Math.abs(1<=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=ft.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return ft.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return ft.normalize(e.join("/"))},join2:function(e,t){return ft.normalize(e+"/"+t)}};function pt(e){return j(0|Dr(),0|e,4),e}var ht,mt={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:wt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t="/"===n.charAt(0)}return(t?"/":"")+(e=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=mt.resolve(e).substr(1),t=mt.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s0?r.slice(0,n).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;e.input=_r(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(T(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(T(G(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(O(G(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(G(e.output,0)),e.output=[])}}},gt={ops_table:null,mount:function(e){return gt.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(wt.isBlkdev(r)||wt.isFIFO(r))throw new wt.ErrnoError(63);gt.ops_table||(gt.ops_table={dir:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr,lookup:gt.node_ops.lookup,mknod:gt.node_ops.mknod,rename:gt.node_ops.rename,unlink:gt.node_ops.unlink,rmdir:gt.node_ops.rmdir,readdir:gt.node_ops.readdir,symlink:gt.node_ops.symlink},stream:{llseek:gt.stream_ops.llseek}},file:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr},stream:{llseek:gt.stream_ops.llseek,read:gt.stream_ops.read,write:gt.stream_ops.write,allocate:gt.stream_ops.allocate,mmap:gt.stream_ops.mmap,msync:gt.stream_ops.msync}},link:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr,readlink:gt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:gt.node_ops.getattr,setattr:gt.node_ops.setattr},stream:wt.chrdev_stream_ops}});var o=wt.createNode(e,t,r,n);return wt.isDir(o.mode)?(o.node_ops=gt.ops_table.dir.node,o.stream_ops=gt.ops_table.dir.stream,o.contents={}):wt.isFile(o.mode)?(o.node_ops=gt.ops_table.file.node,o.stream_ops=gt.ops_table.file.stream,o.usedBytes=0,o.contents=null):wt.isLink(o.mode)?(o.node_ops=gt.ops_table.link.node,o.stream_ops=gt.ops_table.link.stream):wt.isChrdev(o.mode)&&(o.node_ops=gt.ops_table.chrdev.node,o.stream_ops=gt.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o),o},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var t=[],r=0;r=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t){if(0==t)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var r=e.contents;return e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),void(e.usedBytes=t)}if(e.contents||(e.contents=[]),e.contents.length>t)e.contents.length=t;else for(;e.contents.length=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(z(a>=0),a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var s=0;s0||o+n8)throw new wt.ErrnoError(32);for(var o=ft.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),i=wt.root,a="/",s=0;s40)throw new wt.ErrnoError(32)}}return{path:a,node:i}},getPath:function(e){for(var t;;){if(wt.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?r+"/"+t:r+t:r}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var r=0,n=0;n>>0)%wt.nameTable.length},hashAddNode:function(e){var t=wt.hashName(e.parent.id,e.name);e.name_next=wt.nameTable[t],wt.nameTable[t]=e},hashRemoveNode:function(e){var t=wt.hashName(e.parent.id,e.name);if(wt.nameTable[t]===e)wt.nameTable[t]=e.name_next;else for(var r=wt.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:function(e,t){var r=wt.mayLookup(e);if(r)throw new wt.ErrnoError(r,e);for(var n=wt.hashName(e.id,t),o=wt.nameTable[n];o;o=o.name_next)if(o.parent.id===e.id&&o.name===t)return o;return wt.lookup(e,t)},createNode:function(e,t,r,n){var o=new wt.FSNode(e,t,r,n);return wt.hashAddNode(o),o},destroyNode:function(e){wt.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var t=wt.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return wt.ignorePermissions?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){return wt.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{return wt.lookupNode(e,t),20}catch(r){}return wt.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=wt.lookupNode(e,t)}catch(i){return i.errno}var o=wt.nodePermissions(e,"wx");if(o)return o;if(r){if(!wt.isDir(n.mode))return 54;if(wt.isRoot(n)||wt.getPath(n)===wt.cwd())return 10}else if(wt.isDir(n.mode))return 31;return 0},mayOpen:function(e,t){return e?wt.isLink(e.mode)?32:wt.isDir(e.mode)&&("r"!==wt.flagsToPermissionString(t)||512&t)?31:wt.nodePermissions(e,wt.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(e,t){t=t||wt.MAX_OPEN_FDS;for(var r=e=e||0;r<=t;r++)if(!wt.streams[r])return r;throw new wt.ErrnoError(33)},getStream:function(e){return wt.streams[e]},createStream:function(e,t,r){wt.FSStream||(wt.FSStream=function(){},wt.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new wt.FSStream;for(var o in e)n[o]=e[o];e=n;var i=wt.nextfd(t,r);return e.fd=i,wt.streams[i]=e,e},closeStream:function(e){wt.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=wt.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new wt.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){wt.devices[e]={stream_ops:t}},getDevice:function(e){return wt.devices[e]},getMounts:function(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),wt.syncFSRequests++,wt.syncFSRequests>1&&O("warning: "+wt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=wt.getMounts(wt.root.mount),n=0;function o(e){return z(wt.syncFSRequests>0),wt.syncFSRequests--,t(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((function(t){if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:function(e,t,r){if("string"==typeof e)throw e;var n,o="/"===r,i=!r;if(o&&wt.root)throw new wt.ErrnoError(10);if(!o&&!i){var a=wt.lookupPath(r,{follow_mount:!1});if(r=a.path,wt.isMountpoint(n=a.node))throw new wt.ErrnoError(10);if(!wt.isDir(n.mode))throw new wt.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,o?wt.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount:function(e){var t=wt.lookupPath(e,{follow_mount:!1});if(!wt.isMountpoint(t.node))throw new wt.ErrnoError(28);var r=t.node,n=r.mounted,o=wt.getMounts(n);Object.keys(wt.nameTable).forEach((function(e){for(var t=wt.nameTable[e];t;){var r=t.name_next;-1!==o.indexOf(t.mount)&&wt.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);z(-1!==i),r.mount.mounts.splice(i,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,r){var n=wt.lookupPath(e,{parent:!0}).node,o=ft.basename(e);if(!o||"."===o||".."===o)throw new wt.ErrnoError(28);var i=wt.mayCreate(n,o);if(i)throw new wt.ErrnoError(i);if(!n.node_ops.mknod)throw new wt.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,wt.mknod(e,t|=32768,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,wt.mknod(e,t|=16384,0)},mkdirTree:function(e,t){for(var r=e.split("/"),n="",o=0;othis.length-1||e<0)){var t=e%this.chunkSize;return this.getter(e/this.chunkSize|0)[t]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(e){var t=e*a,o=(e+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==a&&o.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(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 "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):_r(o.responseText||"",!0)}(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,T("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(!f)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:r};var c=wt.createFile(e,t,s,n,o);s.contents?c.contents=s.contents:s.url&&(c.contents=null,c.url=s.url),Object.defineProperties(c,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(c.stream_ops).forEach((function(e){var t=c.stream_ops[e];u[e]=function(){if(!wt.forceLoadFile(c))throw new wt.ErrnoError(29);return t.apply(null,arguments)}})),u.read=function(e,t,r,n,o){if(!wt.forceLoadFile(c))throw new wt.ErrnoError(29);var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(z(a>=0),i.slice)for(var s=0;s>>0,(tt=n.size,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(r+44|0,0|rt[1],4),j(r+48|0,4096,4),j(r+52|0,0|n.blocks,4),j(r+56|0,0|n.atime.getTime()/1e3,4),j(r+60|0,0,4),j(r+64|0,0|n.mtime.getTime()/1e3,4),j(r+68|0,0,4),j(r+72|0,0|n.ctime.getTime()/1e3,4),j(r+76|0,0,4),j(r+80|0,0|(rt=[n.ino>>>0,(tt=n.ino,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(r+84|0,0|rt[1],4),0},doMsync:function(e,t,r,n,o){var i=oe.slice(e,e+r);wt.msync(t,i,o,r,n)},doMkdir:function(e,t){return"/"===(e=ft.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),wt.mkdir(e,t,0),0},doMknod:function(e,t,r){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return wt.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-28;var n=wt.readlink(e),o=Math.min(r,J(n)),i=ne[t+o];return K(n,t,r+1),ne[t+o]=i,o},doAccess:function(e,t){if(-8&t)return-28;var r;if(!(r=wt.lookupPath(e,{follow:!0}).node))return-44;var n="";return 4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),n&&wt.nodePermissions(r,n)?-2:0},doDup:function(e,t,r){var n=wt.getStream(r);return n&&wt.close(n),wt.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var o=0,i=0;i=0?0===t:-1===t),e}};function Ot(e,t){try{return e=Tt.getStr(e),Tt.doAccess(e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function bt(e,t,r){Tt.varargs=r;try{var n=Tt.getStreamFromFD(e);switch(t){case 0:return(o=Tt.get())<0?-28:wt.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=Tt.get();return n.flags|=o,0;case 12:return j((o=Tt.get())+0|0,2,2),0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return pt(28),-1;default:return-28}}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function Dt(e,t){try{var r=Tt.getStreamFromFD(e);return Tt.doStat(wt.stat,r.path,t)}catch(n){return void 0!==wt&&n instanceof wt.ErrnoError||Ve(n),-n.errno}}function vt(e,t,r){try{var n=Tt.getStreamFromFD(e);n.getdents||(n.getdents=wt.readdir(n.path));for(var o=0,i=wt.llseek(n,0,1),a=Math.floor(i/280);a>>0,(tt=s,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(t+o+4|0,0|rt[1],4),j(t+o+8|0,0|(rt=[280*(a+1)>>>0,(tt=280*(a+1),+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(t+o+12|0,0|rt[1],4),j(t+o+16|0,280,2),j(t+o+18|0,0|c,1),K(u,t+o+19,256),o+=280,a+=1}return wt.llseek(n,280*a,0),o}catch(l){return void 0!==wt&&l instanceof wt.ErrnoError||Ve(l),-l.errno}}function Rt(e,t,r){Tt.varargs=r;try{var n=Tt.getStreamFromFD(e);switch(t){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:return n.tty?(j(0|(o=Tt.get()),0,4),0):-59;case 21520:return n.tty?-28:-59;case 21531:var o=Tt.get();return wt.ioctl(n,t,o);case 21523:case 21524:return n.tty?0:-59;default:Ve("bad ioctl syscall "+t)}}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function Mt(e,t){try{return e=Tt.getStr(e),Tt.doStat(wt.lstat,e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function Pt(e,t,r){Tt.varargs=r;try{var n=Tt.getStr(e),o=Tt.get();return wt.open(n,t,o).fd}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),-i.errno}}function At(e,t,r){try{var n=Tt.getStreamFromFD(e);return wt.read(n,ne,t,r)}catch(o){return void 0!==wt&&o instanceof wt.ErrnoError||Ve(o),-o.errno}}function kt(e,t){try{return e=Tt.getStr(e),t=Tt.getStr(t),wt.rename(e,t),0}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function St(e){try{return e=Tt.getStr(e),wt.rmdir(e),0}catch(t){return void 0!==wt&&t instanceof wt.ErrnoError||Ve(t),-t.errno}}function It(e,t){try{return e=Tt.getStr(e),Tt.doStat(wt.stat,e,t)}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),-r.errno}}function Nt(e){try{return e=Tt.getStr(e),wt.unlink(e),0}catch(t){return void 0!==wt&&t instanceof wt.ErrnoError||Ve(t),-t.errno}}function Ft(){Ve()}function Ut(){return void 0===Ut.start&&(Ut.start=Date.now()),1e3*(Date.now()-Ut.start)|0}ht=p?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var xt=!0;function jt(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!xt)return pt(28),-1;r=ht()}return j(0|t,0|r/1e3,4),j(t+4|0,0|r%1e3*1e3*1e3,4),0}function Xt(){return 1580736}function Lt(e,t,r){oe.copyWithin(e,t,t+r)}function Ct(){return oe.length}function Ht(e){try{return I.grow(e-re.byteLength+65535>>>16),fe(I.buffer),1}catch(t){console.error("emscripten_realloc_buffer: Attempted to grow heap from "+re.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Qt(e){e>>>=0;var t=Ct();if(z(e>t),e>2147483648)return O("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var r=1;r<=4;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var o=Math.min(2147483648,le(Math.max(16777216,e,n),65536)),i=ht(),a=Ht(o),s=ht();if(console.log("Heap resize call from "+t+" to "+o+" took "+(s-i)+" msecs. Success: "+!!a),a)return!0}return O("Failed to grow the heap from "+t+" bytes to "+o+" bytes, not enough memory!"),!1}var Bt={};function Yt(){return u||"./this.program"}function zt(){if(!zt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Yt()};for(var t in Bt)e[t]=Bt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);zt.strings=r}return zt.strings}function Wt(e,t){var r=0;return zt().forEach((function(n,o){var i=t+r;j(e+4*o|0,0|i,4),te(n,i),r+=n.length+1})),0}function qt(e,t){var r=zt();j(0|e,0|r.length,4);var n=0;return r.forEach((function(e){n+=e.length+1})),j(0|t,0|n,4),0}function Gt(e){try{var t=Tt.getStreamFromFD(e);return wt.close(t),0}catch(r){return void 0!==wt&&r instanceof wt.ErrnoError||Ve(r),r.errno}}function Vt(e,t){try{var r=Tt.getStreamFromFD(e);return j(0|t,0|(r.tty?2:wt.isDir(r.mode)?3:wt.isLink(r.mode)?7:4),1),0}catch(n){return void 0!==wt&&n instanceof wt.ErrnoError||Ve(n),n.errno}}function Zt(e,t,r,n){try{var o=Tt.getStreamFromFD(e);return j(0|n,0|Tt.doReadv(o,t,r),4),0}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),i.errno}}function Kt(e,t,r,n,o){try{var i=Tt.getStreamFromFD(e),a=4294967296*r+(t>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(wt.llseek(i,a,n),j(0|o,0|(rt=[i.position>>>0,(tt=i.position,+je(tt)>=1?tt>0?(0|He(+Le(tt/4294967296),4294967295))>>>0:~~+Xe((tt-+(~~tt>>>0))/4294967296)>>>0:0)])[0],4),j(o+4|0,0|rt[1],4),i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(s){return void 0!==wt&&s instanceof wt.ErrnoError||Ve(s),s.errno}}function Jt(e,t,r,n){try{var o=Tt.getStreamFromFD(e);return j(0|n,0|Tt.doWritev(o,t,r),4),0}catch(i){return void 0!==wt&&i instanceof wt.ErrnoError||Ve(i),i.errno}}function $t(e){var t=Date.now();return j(0|e,0|t/1e3,4),j(e+4|0,t%1e3|0,2),j(e+6|0,0,2),j(e+8|0,0,2),0}function er(e){var t=Date.now();return j(0|e,0|t/1e3,4),j(e+4|0,0|t%1e3*1e3,4),0}var tr=(K("GMT",1580800,4),1580800);function rr(e,t){var r=new Date(1e3*(0|L(0|e,4,0)));j(0|t,0|r.getUTCSeconds(),4),j(t+4|0,0|r.getUTCMinutes(),4),j(t+8|0,0|r.getUTCHours(),4),j(t+12|0,0|r.getUTCDate(),4),j(t+16|0,0|r.getUTCMonth(),4),j(t+20|0,r.getUTCFullYear()-1900|0,4),j(t+24|0,0|r.getUTCDay(),4),j(t+36|0,0,4),j(t+32|0,0,4);var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0);return j(t+28|0,0|(r.getTime()-n)/864e5,4),j(t+40|0,0|tr,4),t}function nr(){if(!nr.called){nr.called=!0,j(0|Pr(),60*(new Date).getTimezoneOffset()|0,4);var e=(new Date).getFullYear(),t=new Date(e,0,1),r=new Date(e,6,1);j(0|Mr(),0|Number(t.getTimezoneOffset()!=r.getTimezoneOffset()),4);var n=s(t),o=s(r),i=$(n),a=$(o);r.getTimezoneOffset()0!=(s==n)){var c=Math.max(a,i),u=r>0?s:c;t.setTime(t.getTime()+6e4*(u-n))}return j(e+24|0,0|t.getDay(),4),j(e+28|0,0|(t.getTime()-o.getTime())/864e5,4),t.getTime()/1e3|0}function ar(e){for(var t=ht();ht()-t999999999||r<0?(pt(28),-1):(0!==t&&(j(0|t,0,4),j(t+4|0,0,4)),ar(1e6*r+n/1e3))}function cr(e){return(e=+e)>=0?+Le(e+.5):+Xe(e-.5)}function ur(e){N(0|e)}function dr(e){return e%4==0&&(e%100!=0||e%400==0)}function lr(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var fr=[31,29,31,30,31,30,31,31,30,31,30,31],pr=[31,28,31,30,31,30,31,31,30,31,30,31];function hr(e,t){for(var r=new Date(e.getTime());t>0;){var n=dr(r.getFullYear()),o=r.getMonth(),i=(n?fr:pr)[o];if(!(t>i-r.getDate()))return r.setDate(r.getDate()+t),r;t-=i-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function mr(e,t,r,n){var o=0|L(n+40|0,4,0),i={tm_sec:0|L(0|n,4,0),tm_min:0|L(n+4|0,4,0),tm_hour:0|L(n+8|0,4,0),tm_mday:0|L(n+12|0,4,0),tm_mon:0|L(n+16|0,4,0),tm_year:0|L(n+20|0,4,0),tm_wday:0|L(n+24|0,4,0),tm_yday:0|L(n+28|0,4,0),tm_isdst:0|L(n+32|0,4,0),tm_gmtoff:0|L(n+36|0,4,0),tm_zone:o?V(o):""},a=V(r),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 c in s)a=a.replace(new RegExp(c,"g"),s[c]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var t=hr(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=h(r),i=h(n);return p(o,t)<=0?p(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var E={"%a":function(e){return u[e.tm_wday].substring(0,3)},"%A":function(e){return u[e.tm_wday]},"%b":function(e){return d[e.tm_mon].substring(0,3)},"%B":function(e){return d[e.tm_mon]},"%C":function(e){return f((e.tm_year+1900)/100|0,2)},"%d":function(e){return f(e.tm_mday,2)},"%e":function(e){return l(e.tm_mday,2," ")},"%g":function(e){return m(e).toString().substring(2)},"%G":function(e){return m(e)},"%H":function(e){return f(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),f(t,2)},"%j":function(e){return f(e.tm_mday+lr(dr(e.tm_year+1900)?fr:pr,e.tm_mon-1),3)},"%m":function(e){return f(e.tm_mon+1,2)},"%M":function(e){return f(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return f(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),r=0===t.getDay()?t:hr(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(p(r,n)<0){var o=lr(dr(n.getFullYear())?fr:pr,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return f(Math.ceil(i/7),2)}return 0===p(r,t)?"01":"00"},"%V":function(e){var t,r=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),o=h(r),i=h(n),a=hr(new Date(e.tm_year+1900,0,1),e.tm_yday);return p(a,o)<0?"53":p(i,a)<=0?"01":(t=o.getFullYear()=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var c in E)a.indexOf(c)>=0&&(a=a.replace(new RegExp(c,"g"),E[c](i)));var g=_r(a,!1);return g.length>t?0:(ee(g,e),g.length-1)}var Er=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=wt.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},gr=365,yr=146;function _r(e,t,r){var n=r>0?r:J(e)+1,o=new Array(n),i=Z(e,o,0,o.length);return t&&(o.length=i),o}Object.defineProperties(Er.prototype,{read:{get:function(){return(this.mode&gr)===gr},set:function(e){e?this.mode|=gr:this.mode&=~gr}},write:{get:function(){return(this.mode&yr)===yr},set:function(e){e?this.mode|=yr:this.mode&=~yr}},isFolder:{get:function(){return wt.isDir(this.mode)}},isDevice:{get:function(){return wt.isChrdev(this.mode)}}}),wt.FSNode=Er,wt.staticInit(),i.FS_createFolder=wt.createFolder,i.FS_createPath=wt.createPath,i.FS_createDataFile=wt.createDataFile,i.FS_createPreloadedFile=wt.createPreloadedFile,i.FS_createLazyFile=wt.createLazyFile,i.FS_createLink=wt.createLink,i.FS_createDevice=wt.createDevice,i.FS_unlink=wt.unlink;var wr={__handle_stack_overflow:lt,__sys_access:Ot,__sys_fcntl64:bt,__sys_fstat64:Dt,__sys_getdents64:vt,__sys_ioctl:Rt,__sys_lstat64:Mt,__sys_open:Pt,__sys_read:At,__sys_rename:kt,__sys_rmdir:St,__sys_stat64:It,__sys_unlink:Nt,abort:Ft,alignfault:Q,clock:Ut,clock_gettime:jt,emscripten_get_sbrk_ptr:Xt,emscripten_memcpy_big:Lt,emscripten_resize_heap:Qt,environ_get:Wt,environ_sizes_get:qt,fd_close:Gt,fd_fdstat_get:Vt,fd_read:Zt,fd_seek:Kt,fd_write:Jt,ftime:$t,gettimeofday:er,gmtime_r:rr,localtime_r:or,memory:I,mktime:ir,nanosleep:sr,round:cr,segfault:H,setTempRet0:ur,strftime:mr,table:B},Tr=at();i.asm=Tr;var Or,br=i.___wasm_call_ctors=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__wasm_call_ctors.apply(null,arguments)},Dr=(i._memset=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.memset.apply(null,arguments)},i._initDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.initDecoder.apply(null,arguments)},i.___errno_location=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__errno_location.apply(null,arguments)}),vr=(i._uninitDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.uninitDecoder.apply(null,arguments)},i._openDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.openDecoder.apply(null,arguments)},i._closeDecoder=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.closeDecoder.apply(null,arguments)},i._sendData=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.sendData.apply(null,arguments)},i._decodeOnePacket=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.decodeOnePacket.apply(null,arguments)},i._seekTo=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.seekTo.apply(null,arguments)},i._main=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.main.apply(null,arguments)},i._free=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.free.apply(null,arguments)},i._malloc=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.malloc.apply(null,arguments)}),Rr=(i._fflush=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.fflush.apply(null,arguments)},i.__get_tzname=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_tzname.apply(null,arguments)}),Mr=i.__get_daylight=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_daylight.apply(null,arguments)},Pr=i.__get_timezone=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm._get_timezone.apply(null,arguments)},Ar=(i._memalign=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.memalign.apply(null,arguments)},i.___set_stack_limit=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__set_stack_limit.apply(null,arguments)},i.stackSave=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackSave.apply(null,arguments)});function kr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Sr(e){z(0==Qe,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),z(0==be.length,"cannot call main when preRun functions remain to be called");var t=i._main;try{i.___set_stack_limit(he),Fr(t(0,0),!0)}catch(n){if(n instanceof kr)return;if("unwind"==n)return void(S=!0);var r=n;n&&"object"==typeof n&&n.stack&&(r=[n,n.stack]),O("exception thrown: "+r),d(1,n)}}function Ir(e){function r(){Or||(Or=!0,i.calledRun=!0,Y||(ke(),Se(),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),Ur&&Sr(),Ne()))}e=e||c,Qe>0||(_e(),Ae(),Qe>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r(),we()))}function Nr(){var e=T,t=O,r=!1;T=O=function(e){r=!0};try{var n=i._fflush;n&&n(0),["stdout","stderr"].forEach((function(e){var t=wt.analyzePath("/dev/"+e);if(t){var n=Et.ttys[t.object.rdev];n&&n.output&&n.output.length&&(r=!0)}}))}catch(o){}T=e,O=t,r&&D("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the FAQ), or make sure to emit a newline when you printf etc.")}function Fr(e,t){Nr(),t&&S&&0===e||(S?t||o("program exited (with status: "+e+"), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)"):(Y=!0,Ie(),i.onExit&&i.onExit(e)),d(e,new kr(e)))}if(i.stackAlloc=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackAlloc.apply(null,arguments)},i.stackRestore=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.stackRestore.apply(null,arguments)},i.__growWasmMemory=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.__growWasmMemory.apply(null,arguments)},i.dynCall_viiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiii.apply(null,arguments)},i.dynCall_iiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiii.apply(null,arguments)},i.dynCall_jiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiji.apply(null,arguments)},i.dynCall_ii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_ii.apply(null,arguments)},i.dynCall_iii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iii.apply(null,arguments)},i.dynCall_jiiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiiji.apply(null,arguments)},i.dynCall_iiiji=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiji.apply(null,arguments)},i.dynCall_iiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiii.apply(null,arguments)},i.dynCall_viii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viii.apply(null,arguments)},i.dynCall_iiiiij=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiij.apply(null,arguments)},i.dynCall_jiiij=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_jiiij.apply(null,arguments)},i.dynCall_vii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_vii.apply(null,arguments)},i.dynCall_iiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiii.apply(null,arguments)},i.dynCall_viiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiii.apply(null,arguments)},i.dynCall_vi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_vi.apply(null,arguments)},i.dynCall_viiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiii.apply(null,arguments)},i.dynCall_viiiiiifi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiifi.apply(null,arguments)},i.dynCall_iiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiii.apply(null,arguments)},i.dynCall_viiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiii.apply(null,arguments)},i.dynCall_viiiiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiiiii.apply(null,arguments)},i.dynCall_v=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_v.apply(null,arguments)},i.dynCall_viiiifii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiifii.apply(null,arguments)},i.dynCall_fii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_fii.apply(null,arguments)},i.dynCall_viiiiiiiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viiiiiiiiii.apply(null,arguments)},i.dynCall_viifi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viifi.apply(null,arguments)},i.dynCall_fiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_fiii.apply(null,arguments)},i.dynCall_viidi=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_viidi.apply(null,arguments)},i.dynCall_dd=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_dd.apply(null,arguments)},i.dynCall_iidiiii=function(){return z(Me,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),z(!Pe,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),i.asm.dynCall_iidiiii.apply(null,arguments)},i._ff_h264_cabac_tables=134373,i.asm=Tr,Object.getOwnPropertyDescriptor(i,"intArrayFromString")||(i.intArrayFromString=function(){Ve("'intArrayFromString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"intArrayToString")||(i.intArrayToString=function(){Ve("'intArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ccall")||(i.ccall=function(){Ve("'ccall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"cwrap")||(i.cwrap=function(){Ve("'cwrap' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setValue")||(i.setValue=function(){Ve("'setValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getValue")||(i.getValue=function(){Ve("'getValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocate")||(i.allocate=function(){Ve("'allocate' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.getMemory=W,Object.getOwnPropertyDescriptor(i,"UTF8ArrayToString")||(i.UTF8ArrayToString=function(){Ve("'UTF8ArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF8ToString")||(i.UTF8ToString=function(){Ve("'UTF8ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF8Array")||(i.stringToUTF8Array=function(){Ve("'stringToUTF8Array' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF8")||(i.stringToUTF8=function(){Ve("'stringToUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF8")||(i.lengthBytesUTF8=function(){Ve("'lengthBytesUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=function(){Ve("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPreRun")||(i.addOnPreRun=function(){Ve("'addOnPreRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnInit")||(i.addOnInit=function(){Ve("'addOnInit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPreMain")||(i.addOnPreMain=function(){Ve("'addOnPreMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnExit")||(i.addOnExit=function(){Ve("'addOnExit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"addOnPostRun")||(i.addOnPostRun=function(){Ve("'addOnPostRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeStringToMemory")||(i.writeStringToMemory=function(){Ve("'writeStringToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeArrayToMemory")||(i.writeArrayToMemory=function(){Ve("'writeArrayToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeAsciiToMemory")||(i.writeAsciiToMemory=function(){Ve("'writeAsciiToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.addRunDependency=qe,i.removeRunDependency=Ge,i.FS_createFolder=wt.createFolder,i.FS_createPath=wt.createPath,i.FS_createDataFile=wt.createDataFile,i.FS_createPreloadedFile=wt.createPreloadedFile,i.FS_createLazyFile=wt.createLazyFile,i.FS_createLink=wt.createLink,i.FS_createDevice=wt.createDevice,i.FS_unlink=wt.unlink,Object.getOwnPropertyDescriptor(i,"dynamicAlloc")||(i.dynamicAlloc=function(){Ve("'dynamicAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"loadDynamicLibrary")||(i.loadDynamicLibrary=function(){Ve("'loadDynamicLibrary' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"loadWebAssemblyModule")||(i.loadWebAssemblyModule=function(){Ve("'loadWebAssemblyModule' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getLEB")||(i.getLEB=function(){Ve("'getLEB' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getFunctionTables")||(i.getFunctionTables=function(){Ve("'getFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"alignFunctionTables")||(i.alignFunctionTables=function(){Ve("'alignFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"registerFunctions")||(i.registerFunctions=function(){Ve("'registerFunctions' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.addFunction=A,Object.getOwnPropertyDescriptor(i,"removeFunction")||(i.removeFunction=function(){Ve("'removeFunction' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=function(){Ve("'getFuncWrapper' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"prettyPrint")||(i.prettyPrint=function(){Ve("'prettyPrint' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"makeBigInt")||(i.makeBigInt=function(){Ve("'makeBigInt' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=function(){Ve("'dynCall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getCompilerSetting")||(i.getCompilerSetting=function(){Ve("'getCompilerSetting' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"print")||(i.print=function(){Ve("'print' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"printErr")||(i.printErr=function(){Ve("'printErr' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getTempRet0")||(i.getTempRet0=function(){Ve("'getTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setTempRet0")||(i.setTempRet0=function(){Ve("'setTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"callMain")||(i.callMain=function(){Ve("'callMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"abort")||(i.abort=function(){Ve("'abort' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToNewUTF8")||(i.stringToNewUTF8=function(){Ve("'stringToNewUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscripten_realloc_buffer")||(i.emscripten_realloc_buffer=function(){Ve("'emscripten_realloc_buffer' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ENV")||(i.ENV=function(){Ve("'ENV' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setjmpId")||(i.setjmpId=function(){Ve("'setjmpId' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ERRNO_CODES")||(i.ERRNO_CODES=function(){Ve("'ERRNO_CODES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"ERRNO_MESSAGES")||(i.ERRNO_MESSAGES=function(){Ve("'ERRNO_MESSAGES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"setErrNo")||(i.setErrNo=function(){Ve("'setErrNo' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"DNS")||(i.DNS=function(){Ve("'DNS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GAI_ERRNO_MESSAGES")||(i.GAI_ERRNO_MESSAGES=function(){Ve("'GAI_ERRNO_MESSAGES' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Protocols")||(i.Protocols=function(){Ve("'Protocols' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Sockets")||(i.Sockets=function(){Ve("'Sockets' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UNWIND_CACHE")||(i.UNWIND_CACHE=function(){Ve("'UNWIND_CACHE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readAsmConstArgs")||(i.readAsmConstArgs=function(){Ve("'readAsmConstArgs' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jstoi_q")||(i.jstoi_q=function(){Ve("'jstoi_q' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jstoi_s")||(i.jstoi_s=function(){Ve("'jstoi_s' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"reallyNegative")||(i.reallyNegative=function(){Ve("'reallyNegative' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"formatString")||(i.formatString=function(){Ve("'formatString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PATH")||(i.PATH=function(){Ve("'PATH' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PATH_FS")||(i.PATH_FS=function(){Ve("'PATH_FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SYSCALLS")||(i.SYSCALLS=function(){Ve("'SYSCALLS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"syscallMmap2")||(i.syscallMmap2=function(){Ve("'syscallMmap2' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"syscallMunmap")||(i.syscallMunmap=function(){Ve("'syscallMunmap' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"JSEvents")||(i.JSEvents=function(){Ve("'JSEvents' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"specialHTMLTargets")||(i.specialHTMLTargets=function(){Ve("'specialHTMLTargets' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"demangle")||(i.demangle=function(){Ve("'demangle' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"demangleAll")||(i.demangleAll=function(){Ve("'demangleAll' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"jsStackTrace")||(i.jsStackTrace=function(){Ve("'jsStackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=function(){Ve("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"getEnvStrings")||(i.getEnvStrings=function(){Ve("'getEnvStrings' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64")||(i.writeI53ToI64=function(){Ve("'writeI53ToI64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Clamped")||(i.writeI53ToI64Clamped=function(){Ve("'writeI53ToI64Clamped' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Signaling")||(i.writeI53ToI64Signaling=function(){Ve("'writeI53ToI64Signaling' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Clamped")||(i.writeI53ToU64Clamped=function(){Ve("'writeI53ToU64Clamped' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Signaling")||(i.writeI53ToU64Signaling=function(){Ve("'writeI53ToU64Signaling' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readI53FromI64")||(i.readI53FromI64=function(){Ve("'readI53FromI64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"readI53FromU64")||(i.readI53FromU64=function(){Ve("'readI53FromU64' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"convertI32PairToI53")||(i.convertI32PairToI53=function(){Ve("'convertI32PairToI53' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"convertU32PairToI53")||(i.convertU32PairToI53=function(){Ve("'convertU32PairToI53' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"Browser")||(i.Browser=function(){Ve("'Browser' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"FS")||(i.FS=function(){Ve("'FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"MEMFS")||(i.MEMFS=function(){Ve("'MEMFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"TTY")||(i.TTY=function(){Ve("'TTY' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"PIPEFS")||(i.PIPEFS=function(){Ve("'PIPEFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SOCKFS")||(i.SOCKFS=function(){Ve("'SOCKFS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GL")||(i.GL=function(){Ve("'GL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGet")||(i.emscriptenWebGLGet=function(){Ve("'emscriptenWebGLGet' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetTexPixelData")||(i.emscriptenWebGLGetTexPixelData=function(){Ve("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetUniform")||(i.emscriptenWebGLGetUniform=function(){Ve("'emscriptenWebGLGetUniform' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetVertexAttrib")||(i.emscriptenWebGLGetVertexAttrib=function(){Ve("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"AL")||(i.AL=function(){Ve("'AL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_unicode")||(i.SDL_unicode=function(){Ve("'SDL_unicode' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_ttfContext")||(i.SDL_ttfContext=function(){Ve("'SDL_ttfContext' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_audio")||(i.SDL_audio=function(){Ve("'SDL_audio' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL")||(i.SDL=function(){Ve("'SDL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"SDL_gfx")||(i.SDL_gfx=function(){Ve("'SDL_gfx' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLUT")||(i.GLUT=function(){Ve("'GLUT' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"EGL")||(i.EGL=function(){Ve("'EGL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLFW_Window")||(i.GLFW_Window=function(){Ve("'GLFW_Window' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLFW")||(i.GLFW=function(){Ve("'GLFW' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"GLEW")||(i.GLEW=function(){Ve("'GLEW' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"IDBStore")||(i.IDBStore=function(){Ve("'IDBStore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"runAndAbortIfError")||(i.runAndAbortIfError=function(){Ve("'runAndAbortIfError' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"warnOnce")||(i.warnOnce=function(){Ve("'warnOnce' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackSave")||(i.stackSave=function(){Ve("'stackSave' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackRestore")||(i.stackRestore=function(){Ve("'stackRestore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stackAlloc")||(i.stackAlloc=function(){Ve("'stackAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"AsciiToString")||(i.AsciiToString=function(){Ve("'AsciiToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToAscii")||(i.stringToAscii=function(){Ve("'stringToAscii' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF16ToString")||(i.UTF16ToString=function(){Ve("'UTF16ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF16")||(i.stringToUTF16=function(){Ve("'stringToUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF16")||(i.lengthBytesUTF16=function(){Ve("'lengthBytesUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"UTF32ToString")||(i.UTF32ToString=function(){Ve("'UTF32ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"stringToUTF32")||(i.stringToUTF32=function(){Ve("'stringToUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF32")||(i.lengthBytesUTF32=function(){Ve("'lengthBytesUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocateUTF8")||(i.allocateUTF8=function(){Ve("'allocateUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(i,"allocateUTF8OnStack")||(i.allocateUTF8OnStack=function(){Ve("'allocateUTF8OnStack' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),i.writeStackCookie=_e,i.checkStackCookie=we,i.abortStackOverflow=Te,Object.getOwnPropertyDescriptor(i,"ALLOC_NORMAL")||Object.defineProperty(i,"ALLOC_NORMAL",{configurable:!0,get:function(){Ve("'ALLOC_NORMAL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_STACK")||Object.defineProperty(i,"ALLOC_STACK",{configurable:!0,get:function(){Ve("'ALLOC_STACK' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_DYNAMIC")||Object.defineProperty(i,"ALLOC_DYNAMIC",{configurable:!0,get:function(){Ve("'ALLOC_DYNAMIC' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_NONE")||Object.defineProperty(i,"ALLOC_NONE",{configurable:!0,get:function(){Ve("'ALLOC_NONE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Ye=function e(){Or||Ir(),Or||(Ye=e)},i.run=Ir,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();var Ur=!0;return i.noInitialRun&&(Ur=!1),S=!0,Ir(),e.ready})({onRuntimeInitialized:function(){console.log("onWasmLoaded"),u?u.onWasmLoaded():console.log("[ER] No decoder!")}}),u=new(function(){function e(){_classCallCheck(this,e),this.logger=new o("Decoder"),this.coreLogLevel=1,this.accurateSeek=!0,this.wasmLoaded=!1,this.tmpReqQue=[],this.cacheBuffer=null,this.decodeTimer=null,this.videoCallback=null,this.audioCallback=null}return _createClass(e,[{key:"initDecoder",value:function(e,t){var r=c._initDecoder(e,this.coreLogLevel);this.logger.info("initDecoder return "+r+"."),0==r&&(this.cacheBuffer=c._malloc(t)),postMessage(new s(a.kInitDecoderRsp,{e:r}))}},{key:"uninitDecoder",value:function(){var e=c._uninitDecoder();this.logger.info("Uninit ffmpeg decoder return "+e+"."),null!=this.cacheBuffer&&(c._free(this.cacheBuffer),this.cacheBuffer=null)}},{key:"openDecoder",value:function(){var e=c._malloc(28);console.log(this.videoCallback,this.audioCallback,this.requestCallback);var t=c._openDecoder(e,7,this.videoCallback,this.audioCallback,this.requestCallback);if(this.logger.info("openDecoder return "+t),0==t){var r=e>>2,n=new Uint32Array(c.HEAP32.subarray(r,r+7));postMessage({type:a.kOpenDecoderRsp,data:{e:t,v:{d:n[0],p:n[1],w:n[2],h:n[3]},a:{sampleFormat:n[4],channelCount:n[5],sampleRate:n[6]}}})}else postMessage(new s(a.kOpenDecoderRsp,{e:t}));c._free(e)}},{key:"closeDecoder",value:function(){this.logger.info("closeDecoder."),this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null,this.logger.info("Decode timer stopped."));var e=c._closeDecoder();this.logger.info("Close ffmpeg decoder return "+e+"."),postMessage(new s(a.kCloseDecoderRsp,{e:0}))}},{key:"startDecoding",value:function(e){this.decodeTimer&&clearInterval(this.decodeTimer),this.decodeTimer=setInterval(this.decode,e)}},{key:"pauseDecoding",value:function(){this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null)}},{key:"decode",value:function(){var e=c._decodeOnePacket();for(7==e&&(u.logger.info("Decoder finished."),u.pauseDecoding(),postMessage(new s(a.kDecodeFinishedEvt,null)));9==e;)e=c._decodeOnePacket()}},{key:"sendData",value:function(e){var t=new Uint8Array(e);c.HEAPU8.set(t,this.cacheBuffer),c._sendData(this.cacheBuffer,t.length)}},{key:"seekTo",value:function(e){var t=c._seekTo(e,this.accurateSeek?1:0);postMessage(new s(a.kSeekToRsp,{r:t}))}},{key:"processReq",value:function(e){switch(e.type){case i.kInitDecoderReq:this.initDecoder(e.data.s,e.data.c);break;case i.kUninitDecoderReq:this.uninitDecoder();break;case i.kOpenDecoderReq:this.openDecoder();break;case i.kCloseDecoderReq:this.closeDecoder();break;case i.kStartDecodingReq:this.startDecoding(e.data.i);break;case i.kPauseDecodingReq:this.pauseDecoding();break;case i.kFeedDataReq:this.sendData(e.data);break;case a.kSeekToRsp:this.seekTo(e.data.ms);default:this.logger.error("Unsupport messsage "+e.type)}}},{key:"cacheReq",value:function(e){e&&(this.logger.info("Cache req : "+e.type),this.tmpReqQue.push(e))}},{key:"onWasmLoaded",value:function(){var e=this;this.logger.info("Wasm loaded."),this.wasmLoaded=!0,c.then((function(t){for(c=t,e.videoCallback=c.addFunction((function(e,t,r){var n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kVideoFrame,{s:r,d:n}),[n.buffer])}),"viid"),e.audioCallback=c.addFunction((function(e,t,r){var n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kAudioFrame,{s:r,d:n}),[n.buffer])}),"viid"),e.requestCallback=c.addFunction((function(e,t){var r={type:a.kRequestDataEvt,data:{o:e,a:t}};console.log("request callback",e,t),postMessage(r)}),"vii");e.tmpReqQue.length>0;){var r=e.tmpReqQue.shift();e.processReq(r)}}))}},{key:"onWasmLoadedOld",value:function(){for(this.logger.info("Wasm loaded."),this.wasmLoaded=!0,this.videoCallback=c.addFunction((function(e,t,r){var n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kVideoFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.audioCallback=c.addFunction((function(e,t,r){var n=new Uint8Array(c.HEAPU8.subarray(e,e+t));postMessage(new s(a.kAudioFrame,{s:r,d:n}),[n.buffer])}),"viid"),this.requestCallback=c.addFunction((function(e,t){postMessage({type:a.kRequestDataEvt,data:{o:e,a:t}})}),"vii");this.tmpReqQue.length>0;){var e=this.tmpReqQue.shift();this.processReq(e)}}}]),e}());addEventListener("message",(function(e){var t=e.data;if(u){var r=t;if(!u.wasmLoaded)return u.cacheReq(r),void u.logger.info("Temp cache req "+r.type+".");u.processReq(r)}else console.log("[ER] Decoder not initialized!")}))},PJMN:function(e,t){e.exports=require("crypto")},"mw/K":function(e,t){e.exports=require("fs")},oyvS:function(e,t){e.exports=require("path")}}); \ No newline at end of file diff --git a/oem/oem_ipc/www/1-es5.ffe62d9977f350377aaf.worker.js b/oem/oem_ipc/www/1-es5.ffe62d9977f350377aaf.worker.js deleted file mode 100644 index 79f0b1a..0000000 --- a/oem/oem_ipc/www/1-es5.ffe62d9977f350377aaf.worker.js +++ /dev/null @@ -1 +0,0 @@ -function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t1&&(u=process.argv[1].replace(/\\/g,"/")),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Xr))throw e})),process.on("unhandledRejection",ke),c=function(e){process.exit(e)},o.inspect=function(){return"[Emscripten Module object]"}):m?("undefined"!=typeof read&&(h=function(e){return read(e)}),p=function(e){var r;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(O("object"==typeof(r=read(e,"binary"))),r)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&(c=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(f||l)&&(l?w=self.location.href:document.currentScript&&(w=document.currentScript.src),n&&(w=n),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",h=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},l&&(p=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var E=o.print||console.log.bind(console),k=o.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(o[a]=i[a]);function _(e){var r=G[Z>>2];return G[Z>>2]=r+e+15&-16,r}function D(e,r){if("function"==typeof WebAssembly.Function){for(var t={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==r[0]?[]:[t[r[0]]]},o=1;o=n);)++o;if(o-r>16&&e.subarray&&z)return z.decode(e.subarray(r,o));for(var a="";r>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function q(e,r){return e?B(V,e,r):""}function L(e,r,t,n){if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o}function j(e,r,t){return L(e,V,r,t)}function N(e){for(var r=0,t=0;t=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++t)),n<=127?++r:r+=n<=2047?2:n<=65535?3:4}return r}function U(e){var r=N(e)+1,t=Hr(r);return t&&L(e,Y,t,r),t}function I(e,r){Y.set(e,r)}function H(e,r,t){for(var n=0;n>0]=e.charCodeAt(n);t||(Y[r>>0]=0)}var W,Y,V,X,G,K=65536;function Q(e){W=e,o.HEAP8=Y=new Int8Array(e),o.HEAP16=X=new Int16Array(e),o.HEAP32=G=new Int32Array(e),o.HEAPU8=V=new Uint8Array(e),o.HEAPU16=new Uint16Array(e),o.HEAPU32=new Uint32Array(e),o.HEAPF32=new Float32Array(e),o.HEAPF64=new Float64Array(e)}var J=6798592,Z=1555552,$=o.INITIAL_MEMORY||67108864;function ee(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var t=r.func;"number"==typeof t?void 0===r.arg?o.dynCall_v(t):o.dynCall_vi(t,r.arg):t(void 0===r.arg?null:r.arg)}else r(o)}}(R=o.wasmMemory?o.wasmMemory:new WebAssembly.Memory({initial:$/K,maximum:$/K}))&&(W=R.buffer),$=W.byteLength,Q(W),G[Z>>2]=J;var re=[],te=[],ne=[],oe=[],ae=!1;function ie(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)fe(o.preRun.shift());ee(re)}function se(){ae=!0,o.noFSInit||Ie.init.initialized||Ie.init(),Ne.init(),ee(te)}function ue(){Ie.ignorePermissions=!1,ee(ne)}function ce(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)le(o.postRun.shift());ee(oe)}function fe(e){re.unshift(e)}function le(e){oe.unshift(e)}var de=Math.abs,me=Math.ceil,he=Math.floor,pe=Math.min,ge=0,ve=null,we=null;function ye(e){ge++,o.monitorRunDependencies&&o.monitorRunDependencies(ge)}function Ee(e){if(ge--,o.monitorRunDependencies&&o.monitorRunDependencies(ge),0==ge&&(null!==ve&&(clearInterval(ve),ve=null),we)){var r=we;we=null,r()}}function ke(e){throw o.onAbort&&o.onAbort(e),E(e+=""),k(e),x=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}function _e(e,r){return String.prototype.startsWith?e.startsWith(r):0===e.indexOf(r)}o.preloadedImages={},o.preloadedAudios={};var De="data:application/octet-stream;base64,";function be(e){return _e(e,De)}var Fe="file://";function Se(e){return _e(e,Fe)}var Re,Pe,Me="wasmdecoder.wasm";function Ae(){try{if(F)return new Uint8Array(F);if(p)return p(Me);throw"both async and sync fetching of the wasm failed"}catch(k){ke(k)}}function Te(){return F||!f&&!l||"function"!=typeof fetch||Se(Me)?new Promise((function(e,r){e(Ae())})):fetch(Me,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Me+"'";return e.arrayBuffer()})).catch((function(){return Ae()}))}function xe(){var e={a:Lr};function r(e,r){o.asm=e.exports,Ee()}function t(e){r(e.instance)}function n(r){return Te().then((function(r){return WebAssembly.instantiate(r,e)})).then(r,(function(e){k("failed to asynchronously prepare wasm: "+e),ke(e)}))}if(ye(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(a){return k("Module.instantiateWasm callback failed with error: "+a),!1}return function(){if(F||"function"!=typeof WebAssembly.instantiateStreaming||be(Me)||Se(Me)||"function"!=typeof fetch)return n(t);fetch(Me,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,e).then(t,(function(e){k("wasm streaming compile failed: "+e),k("falling back to ArrayBuffer instantiation"),n(t)}))}))}(),{}}function Oe(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){return e==e?e:e+" ["+e+"]"}))}function Ce(){var e=new Error;if(!e.stack){try{throw new Error}catch(r){e=r}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function ze(){var e=Ce();return o.extraStackTrace&&(e+="\n"+o.extraStackTrace()),Oe(e)}be(Me)||(Me=y(Me)),te.push({func:function(){Ur()}});var Be={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,r){for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:function(e){var r="/"===e.charAt(0),t="/"===e.substr(-1);return(e=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:function(e){var r=Be.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:function(e){if("/"===e)return"/";var r=e.lastIndexOf("/");return-1===r?e:e.substr(r+1)},extname:function(e){return Be.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return Be.normalize(e.join("/"))},join2:function(e,r){return Be.normalize(e+"/"+r)}};function qe(e){return G[Ir()>>2]=e,e}var Le,je={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:Ie.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r="/"===n.charAt(0)}return(r?"/":"")+(e=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!r).join("/"))||"."},relative:function(e,r){function t(e){for(var r=0;r=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=je.resolve(e).substr(1),r=je.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s0?t.slice(0,n).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n");if(!r)return null;e.input=qr(r,!0)}return e.input.shift()},put_char:function(e,r){null===r||10===r?(E(B(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(E(B(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,r){null===r||10===r?(k(B(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(k(B(e.output,0)),e.output=[])}}},Ue={ops_table:null,mount:function(e){return Ue.createNode(null,"/",16895,0)},createNode:function(e,r,t,n){if(Ie.isBlkdev(t)||Ie.isFIFO(t))throw new Ie.ErrnoError(63);Ue.ops_table||(Ue.ops_table={dir:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr,lookup:Ue.node_ops.lookup,mknod:Ue.node_ops.mknod,rename:Ue.node_ops.rename,unlink:Ue.node_ops.unlink,rmdir:Ue.node_ops.rmdir,readdir:Ue.node_ops.readdir,symlink:Ue.node_ops.symlink},stream:{llseek:Ue.stream_ops.llseek}},file:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr},stream:{llseek:Ue.stream_ops.llseek,read:Ue.stream_ops.read,write:Ue.stream_ops.write,allocate:Ue.stream_ops.allocate,mmap:Ue.stream_ops.mmap,msync:Ue.stream_ops.msync}},link:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr,readlink:Ue.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ue.node_ops.getattr,setattr:Ue.node_ops.setattr},stream:Ie.chrdev_stream_ops}});var o=Ie.createNode(e,r,t,n);return Ie.isDir(o.mode)?(o.node_ops=Ue.ops_table.dir.node,o.stream_ops=Ue.ops_table.dir.stream,o.contents={}):Ie.isFile(o.mode)?(o.node_ops=Ue.ops_table.file.node,o.stream_ops=Ue.ops_table.file.stream,o.usedBytes=0,o.contents=null):Ie.isLink(o.mode)?(o.node_ops=Ue.ops_table.link.node,o.stream_ops=Ue.ops_table.link.stream):Ie.isChrdev(o.mode)&&(o.node_ops=Ue.ops_table.chrdev.node,o.stream_ops=Ue.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o),o},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var r=[],t=0;t=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,r){if(e.usedBytes!=r){if(0==r)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var t=e.contents;return e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),void(e.usedBytes=r)}if(e.contents||(e.contents=[]),e.contents.length>r)e.contents.length=r;else for(;e.contents.length=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s0||o+n8)throw new Ie.ErrnoError(32);for(var o=Be.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),a=Ie.root,i="/",s=0;s40)throw new Ie.ErrnoError(32)}}return{path:i,node:a}},getPath:function(e){for(var r;;){if(Ie.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?t+"/"+r:t+r:t}r=r?e.name+"/"+r:e.name,e=e.parent}},hashName:function(e,r){for(var t=0,n=0;n>>0)%Ie.nameTable.length},hashAddNode:function(e){var r=Ie.hashName(e.parent.id,e.name);e.name_next=Ie.nameTable[r],Ie.nameTable[r]=e},hashRemoveNode:function(e){var r=Ie.hashName(e.parent.id,e.name);if(Ie.nameTable[r]===e)Ie.nameTable[r]=e.name_next;else for(var t=Ie.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode:function(e,r){var t=Ie.mayLookup(e);if(t)throw new Ie.ErrnoError(t,e);for(var n=Ie.hashName(e.id,r),o=Ie.nameTable[n];o;o=o.name_next)if(o.parent.id===e.id&&o.name===r)return o;return Ie.lookup(e,r)},createNode:function(e,r,t,n){var o=new Ie.FSNode(e,r,t,n);return Ie.hashAddNode(o),o},destroyNode:function(e){Ie.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var r=Ie.flagModes[e];if(void 0===r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:function(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:function(e,r){return Ie.ignorePermissions?0:(-1===r.indexOf("r")||292&e.mode)&&(-1===r.indexOf("w")||146&e.mode)&&(-1===r.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){return Ie.nodePermissions(e,"x")||(e.node_ops.lookup?0:2)},mayCreate:function(e,r){try{return Ie.lookupNode(e,r),20}catch(t){}return Ie.nodePermissions(e,"wx")},mayDelete:function(e,r,t){var n;try{n=Ie.lookupNode(e,r)}catch(a){return a.errno}var o=Ie.nodePermissions(e,"wx");if(o)return o;if(t){if(!Ie.isDir(n.mode))return 54;if(Ie.isRoot(n)||Ie.getPath(n)===Ie.cwd())return 10}else if(Ie.isDir(n.mode))return 31;return 0},mayOpen:function(e,r){return e?Ie.isLink(e.mode)?32:Ie.isDir(e.mode)&&("r"!==Ie.flagsToPermissionString(r)||512&r)?31:Ie.nodePermissions(e,Ie.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(e,r){r=r||Ie.MAX_OPEN_FDS;for(var t=e=e||0;t<=r;t++)if(!Ie.streams[t])return t;throw new Ie.ErrnoError(33)},getStream:function(e){return Ie.streams[e]},createStream:function(e,r,t){Ie.FSStream||(Ie.FSStream=function(){},Ie.FSStream.prototype={object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new Ie.FSStream;for(var o in e)n[o]=e[o];e=n;var a=Ie.nextfd(r,t);return e.fd=a,Ie.streams[a]=e,e},closeStream:function(e){Ie.streams[e]=null},chrdev_stream_ops:{open:function(e){var r=Ie.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new Ie.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,r){return e<<8|r},registerDevice:function(e,r){Ie.devices[e]={stream_ops:r}},getDevice:function(e){return Ie.devices[e]},getMounts:function(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs:function(e,r){"function"==typeof e&&(r=e,e=!1),Ie.syncFSRequests++,Ie.syncFSRequests>1&&k("warning: "+Ie.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var t=Ie.getMounts(Ie.root.mount),n=0;function o(e){return Ie.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((function(r){if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount:function(e,r,t){var n,o="/"===t,a=!t;if(o&&Ie.root)throw new Ie.ErrnoError(10);if(!o&&!a){var i=Ie.lookupPath(t,{follow_mount:!1});if(t=i.path,Ie.isMountpoint(n=i.node))throw new Ie.ErrnoError(10);if(!Ie.isDir(n.mode))throw new Ie.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?Ie.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(e){var r=Ie.lookupPath(e,{follow_mount:!1});if(!Ie.isMountpoint(r.node))throw new Ie.ErrnoError(28);var t=r.node,n=t.mounted,o=Ie.getMounts(n);Object.keys(Ie.nameTable).forEach((function(e){for(var r=Ie.nameTable[e];r;){var t=r.name_next;-1!==o.indexOf(r.mount)&&Ie.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:function(e,r){return e.node_ops.lookup(e,r)},mknod:function(e,r,t){var n=Ie.lookupPath(e,{parent:!0}).node,o=Be.basename(e);if(!o||"."===o||".."===o)throw new Ie.ErrnoError(28);var a=Ie.mayCreate(n,o);if(a)throw new Ie.ErrnoError(a);if(!n.node_ops.mknod)throw new Ie.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:function(e,r){return r=void 0!==r?r:438,r&=4095,Ie.mknod(e,r|=32768,0)},mkdir:function(e,r){return r=void 0!==r?r:511,r&=1023,Ie.mknod(e,r|=16384,0)},mkdirTree:function(e,r){for(var t=e.split("/"),n="",o=0;othis.length-1||e<0)){var r=e%this.chunkSize;return this.getter(e/this.chunkSize|0)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((function(e){var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=function(e,r){if(e>r)throw new Error("invalid range ("+e+", "+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",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),"undefined"!=typeof Uint8Array&&(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 "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):qr(o.responseText||"",!0)}(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!l)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{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:i}}else s={isDevice:!1,url:t};var u=Ie.createFile(e,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 c={};return Object.keys(u.stream_ops).forEach((function(e){var r=u.stream_ops[e];c[e]=function(){if(!Ie.forceLoadFile(u))throw new Ie.ErrnoError(29);return r.apply(null,arguments)}})),c.read=function(e,r,t,n,o){if(!Ie.forceLoadFile(u))throw new Ie.ErrnoError(29);var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s>2]=n.dev,G[t+4>>2]=0,G[t+8>>2]=n.ino,G[t+12>>2]=n.mode,G[t+16>>2]=n.nlink,G[t+20>>2]=n.uid,G[t+24>>2]=n.gid,G[t+28>>2]=n.rdev,G[t+32>>2]=0,Pe=[n.size>>>0,(Re=n.size,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[t+40>>2]=Pe[0],G[t+44>>2]=Pe[1],G[t+48>>2]=4096,G[t+52>>2]=n.blocks,G[t+56>>2]=n.atime.getTime()/1e3|0,G[t+60>>2]=0,G[t+64>>2]=n.mtime.getTime()/1e3|0,G[t+68>>2]=0,G[t+72>>2]=n.ctime.getTime()/1e3|0,G[t+76>>2]=0,Pe=[n.ino>>>0,(Re=n.ino,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[t+80>>2]=Pe[0],G[t+84>>2]=Pe[1],0},doMsync:function(e,r,t,n,o){var a=V.slice(e,e+t);Ie.msync(r,a,o,t,n)},doMkdir:function(e,r){return"/"===(e=Be.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),Ie.mkdir(e,r,0),0},doMknod:function(e,r,t){switch(61440&r){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return Ie.mknod(e,r,t),0},doReadlink:function(e,r,t){if(t<=0)return-28;var n=Ie.readlink(e),o=Math.min(t,N(n)),a=Y[r+o];return j(n,r,t+1),Y[r+o]=a,o},doAccess:function(e,r){if(-8&r)return-28;var t;if(!(t=Ie.lookupPath(e,{follow:!0}).node))return-44;var n="";return 4&r&&(n+="r"),2&r&&(n+="w"),1&r&&(n+="x"),n&&Ie.nodePermissions(t,n)?-2:0},doDup:function(e,r,t){var n=Ie.getStream(t);return n&&Ie.close(n),Ie.open(e,r,0,t,t).fd},doReadv:function(e,r,t,n){for(var o=0,a=0;a>2],s=Ie.read(e,Y,G[r+8*a>>2],i,n);if(s<0)return-1;if(o+=s,s>2],G[r+(8*a+4)>>2],n);if(i<0)return-1;o+=i}return o},varargs:void 0,get:function(){return He.varargs+=4,G[He.varargs-4>>2]},getStr:function(e){return q(e)},getStreamFromFD:function(e){var r=Ie.getStream(e);if(!r)throw new Ie.ErrnoError(8);return r},get64:function(e,r){return e}};function We(e,r){try{return e=He.getStr(e),He.doAccess(e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||ke(t),-t.errno}}function Ye(e,r,t){He.varargs=t;try{var n=He.getStreamFromFD(e);switch(r){case 0:return(o=He.get())<0?-28:Ie.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=He.get();return n.flags|=o,0;case 12:return o=He.get(),X[o+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return qe(28),-1;default:return-28}}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||ke(a),-a.errno}}function Ve(e,r){try{var t=He.getStreamFromFD(e);return He.doStat(Ie.stat,t.path,r)}catch(n){return void 0!==Ie&&n instanceof Ie.ErrnoError||ke(n),-n.errno}}function Xe(e,r,t){try{var n=He.getStreamFromFD(e);n.getdents||(n.getdents=Ie.readdir(n.path));for(var o=0,a=Ie.llseek(n,0,1),i=Math.floor(a/280);i>>0,(Re=s,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[r+o>>2]=Pe[0],G[r+o+4>>2]=Pe[1],Pe=[280*(i+1)>>>0,(Re=280*(i+1),+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[r+o+8>>2]=Pe[0],G[r+o+12>>2]=Pe[1],X[r+o+16>>1]=280,Y[r+o+18>>0]=u,j(c,r+o+19,256),o+=280,i+=1}return Ie.llseek(n,280*i,0),o}catch(l){return void 0!==Ie&&l instanceof Ie.ErrnoError||ke(l),-l.errno}}function Ge(e,r,t){He.varargs=t;try{var n=He.getStreamFromFD(e);switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=He.get();return G[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=He.get(),Ie.ioctl(n,r,o);case 21523:case 21524:return n.tty?0:-59;default:ke("bad ioctl syscall "+r)}}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||ke(a),-a.errno}}function Ke(e,r){try{return e=He.getStr(e),He.doStat(Ie.lstat,e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||ke(t),-t.errno}}function Qe(e,r,t){He.varargs=t;try{var n=He.getStr(e),o=He.get();return Ie.open(n,r,o).fd}catch(a){return void 0!==Ie&&a instanceof Ie.ErrnoError||ke(a),-a.errno}}function Je(e,r,t){try{var n=He.getStreamFromFD(e);return Ie.read(n,Y,r,t)}catch(o){return void 0!==Ie&&o instanceof Ie.ErrnoError||ke(o),-o.errno}}function Ze(e,r){try{return e=He.getStr(e),r=He.getStr(r),Ie.rename(e,r),0}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||ke(t),-t.errno}}function $e(e){try{return e=He.getStr(e),Ie.rmdir(e),0}catch(r){return void 0!==Ie&&r instanceof Ie.ErrnoError||ke(r),-r.errno}}function er(e,r){try{return e=He.getStr(e),He.doStat(Ie.stat,e,r)}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||ke(t),-t.errno}}function rr(e){try{return e=He.getStr(e),Ie.unlink(e),0}catch(r){return void 0!==Ie&&r instanceof Ie.ErrnoError||ke(r),-r.errno}}function tr(){ke()}function nr(){return void 0===nr.start&&(nr.start=Date.now()),1e3*(Date.now()-nr.start)|0}Le=d?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var or=!0;function ar(e,r){var t;if(0===e)t=Date.now();else{if(1!==e&&4!==e||!or)return qe(28),-1;t=Le()}return G[r>>2]=t/1e3|0,G[r+4>>2]=t%1e3*1e3*1e3|0,0}function ir(e,r,t){V.copyWithin(e,r,r+t)}function sr(e){ke("OOM")}function ur(e){sr()}var cr={};function fr(){return u||"./this.program"}function lr(){if(!lr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:fr()};for(var r in cr)e[r]=cr[r];var t=[];for(var r in e)t.push(r+"="+e[r]);lr.strings=t}return lr.strings}function dr(e,r){var t=0;return lr().forEach((function(n,o){var a=r+t;G[e+4*o>>2]=a,H(n,a),t+=n.length+1})),0}function mr(e,r){var t=lr();G[e>>2]=t.length;var n=0;return t.forEach((function(e){n+=e.length+1})),G[r>>2]=n,0}function hr(e){try{var r=He.getStreamFromFD(e);return Ie.close(r),0}catch(t){return void 0!==Ie&&t instanceof Ie.ErrnoError||ke(t),t.errno}}function pr(e,r){try{var t=He.getStreamFromFD(e),n=t.tty?2:Ie.isDir(t.mode)?3:Ie.isLink(t.mode)?7:4;return Y[r>>0]=n,0}catch(o){return void 0!==Ie&&o instanceof Ie.ErrnoError||ke(o),o.errno}}function gr(e,r,t,n){try{var o=He.getStreamFromFD(e),a=He.doReadv(o,r,t);return G[n>>2]=a,0}catch(i){return void 0!==Ie&&i instanceof Ie.ErrnoError||ke(i),i.errno}}function vr(e,r,t,n,o){try{var a=He.getStreamFromFD(e),i=4294967296*t+(r>>>0);return i<=-9007199254740992||i>=9007199254740992?-61:(Ie.llseek(a,i,n),Pe=[a.position>>>0,(Re=a.position,+de(Re)>=1?Re>0?(0|pe(+he(Re/4294967296),4294967295))>>>0:~~+me((Re-+(~~Re>>>0))/4294967296)>>>0:0)],G[o>>2]=Pe[0],G[o+4>>2]=Pe[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0)}catch(s){return void 0!==Ie&&s instanceof Ie.ErrnoError||ke(s),s.errno}}function wr(e,r,t,n){try{var o=He.getStreamFromFD(e),a=He.doWritev(o,r,t);return G[n>>2]=a,0}catch(i){return void 0!==Ie&&i instanceof Ie.ErrnoError||ke(i),i.errno}}function yr(e){var r=Date.now();return G[e>>2]=r/1e3|0,X[e+4>>1]=r%1e3,X[e+6>>1]=0,X[e+8>>1]=0,0}function Er(e){var r=Date.now();return G[e>>2]=r/1e3|0,G[e+4>>2]=r%1e3*1e3|0,0}var kr=(j("GMT",1555616,4),1555616);function _r(e,r){var t=new Date(1e3*G[e>>2]);G[r>>2]=t.getUTCSeconds(),G[r+4>>2]=t.getUTCMinutes(),G[r+8>>2]=t.getUTCHours(),G[r+12>>2]=t.getUTCDate(),G[r+16>>2]=t.getUTCMonth(),G[r+20>>2]=t.getUTCFullYear()-1900,G[r+24>>2]=t.getUTCDay(),G[r+36>>2]=0,G[r+32>>2]=0;var n=Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0),o=(t.getTime()-n)/864e5|0;return G[r+28>>2]=o,G[r+40>>2]=kr,r}function Dr(){if(!Dr.called){Dr.called=!0,G[Vr()>>2]=60*(new Date).getTimezoneOffset();var e=(new Date).getFullYear(),r=new Date(e,0,1),t=new Date(e,6,1);G[Yr()>>2]=Number(r.getTimezoneOffset()!=t.getTimezoneOffset());var n=s(r),o=s(t),a=U(n),i=U(o);t.getTimezoneOffset()>2]=a,G[Wr()+4>>2]=i):(G[Wr()>>2]=i,G[Wr()+4>>2]=a)}function s(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}}function br(e,r){Dr();var t=new Date(1e3*G[e>>2]);G[r>>2]=t.getSeconds(),G[r+4>>2]=t.getMinutes(),G[r+8>>2]=t.getHours(),G[r+12>>2]=t.getDate(),G[r+16>>2]=t.getMonth(),G[r+20>>2]=t.getFullYear()-1900,G[r+24>>2]=t.getDay();var n=new Date(t.getFullYear(),0,1),o=(t.getTime()-n.getTime())/864e5|0;G[r+28>>2]=o,G[r+36>>2]=-60*t.getTimezoneOffset();var a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=n.getTimezoneOffset(),s=0|(a!=i&&t.getTimezoneOffset()==Math.min(i,a));G[r+32>>2]=s;var u=G[Wr()+(s?4:0)>>2];return G[r+40>>2]=u,r}function Fr(e){for(var r=Le();Le()-r>2],n=G[e+4>>2];return n<0||n>999999999||t<0?(qe(28),-1):(0!==r&&(G[r>>2]=0,G[r+4>>2]=0),Fr(1e6*t+n/1e3))}function Rr(e){return(e=+e)>=0?+he(e+.5):+me(e-.5)}function Pr(e){return e%4==0&&(e%100!=0||e%400==0)}function Mr(e,r){for(var t=0,n=0;n<=r;t+=e[n++]);return t}var Ar=[31,29,31,30,31,30,31,31,30,31,30,31],Tr=[31,28,31,30,31,30,31,31,30,31,30,31];function xr(e,r){for(var t=new Date(e.getTime());r>0;){var n=Pr(t.getFullYear()),o=t.getMonth(),a=(n?Ar:Tr)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t}function Or(e,r,t,n){var o=G[n+40>>2],a={tm_sec:G[n>>2],tm_min:G[n+4>>2],tm_hour:G[n+8>>2],tm_mday:G[n+12>>2],tm_mon:G[n+16>>2],tm_year:G[n+20>>2],tm_wday:G[n+24>>2],tm_yday:G[n+28>>2],tm_isdst:G[n+32>>2],tm_gmtoff:G[n+36>>2],tm_zone:o?q(o):""},i=q(t),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)i=i.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(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var r=xr(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=h(t),a=h(n);return m(o,r)<=0?m(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var g={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return f[e.tm_mon].substring(0,3)},"%B":function(e){return f[e.tm_mon]},"%C":function(e){return d((e.tm_year+1900)/100|0,2)},"%d":function(e){return d(e.tm_mday,2)},"%e":function(e){return l(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return d(e.tm_hour,2)},"%I":function(e){var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":function(e){return d(e.tm_mday+Mr(Pr(e.tm_year+1900)?Ar:Tr,e.tm_mon-1),3)},"%m":function(e){return d(e.tm_mon+1,2)},"%M":function(e){return d(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return d(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var r=new Date(e.tm_year+1900,0,1),t=0===r.getDay()?r:xr(r,7-r.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(m(t,n)<0){var o=Mr(Pr(n.getFullYear())?Ar:Tr,n.getMonth()-1)-31,a=31-t.getDate()+o+n.getDate();return d(Math.ceil(a/7),2)}return 0===m(t,r)?"01":"00"},"%V":function(e){var r,t=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),o=h(t),a=h(n),i=xr(new Date(e.tm_year+1900,0,1),e.tm_yday);return m(i,o)<0?"53":m(a,i)<=0?"01":(r=o.getFullYear()=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in g)i.indexOf(u)>=0&&(i=i.replace(new RegExp(u,"g"),g[u](a)));var v=qr(i,!1);return v.length>r?0:(I(v,e),v.length-1)}var Cr=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Ie.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},zr=365,Br=146;function qr(e,r,t){var n=t>0?t:N(e)+1,o=new Array(n),a=L(e,o,0,o.length);return r&&(o.length=a),o}Object.defineProperties(Cr.prototype,{read:{get:function(){return(this.mode&zr)===zr},set:function(e){e?this.mode|=zr:this.mode&=~zr}},write:{get:function(){return(this.mode&Br)===Br},set:function(e){e?this.mode|=Br:this.mode&=~Br}},isFolder:{get:function(){return Ie.isDir(this.mode)}},isDevice:{get:function(){return Ie.isChrdev(this.mode)}}}),Ie.FSNode=Cr,Ie.staticInit(),o.FS_createFolder=Ie.createFolder,o.FS_createPath=Ie.createPath,o.FS_createDataFile=Ie.createDataFile,o.FS_createPreloadedFile=Ie.createPreloadedFile,o.FS_createLazyFile=Ie.createLazyFile,o.FS_createLink=Ie.createLink,o.FS_createDevice=Ie.createDevice,o.FS_unlink=Ie.unlink;var Lr={z:We,d:Ye,C:Ve,A:Xe,x:Ge,D:Ke,j:Qe,y:Je,v:Ze,i:$e,B:er,g:rr,a:tr,n:nr,k:ar,r:ir,s:ur,t:dr,u:mr,b:hr,f:pr,w:gr,q:vr,c:wr,E:yr,m:Er,p:_r,h:br,memory:R,l:Sr,o:Rr,e:Or,table:T},jr=xe();o.asm=jr;var Nr,Ur=o.___wasm_call_ctors=function(){return(Ur=o.___wasm_call_ctors=o.asm.F).apply(null,arguments)},Ir=(o._initDecoder=function(){return(o._initDecoder=o.asm.G).apply(null,arguments)},o.___errno_location=function(){return(Ir=o.___errno_location=o.asm.H).apply(null,arguments)}),Hr=(o._uninitDecoder=function(){return(o._uninitDecoder=o.asm.I).apply(null,arguments)},o._openDecoder=function(){return(o._openDecoder=o.asm.J).apply(null,arguments)},o._closeDecoder=function(){return(o._closeDecoder=o.asm.K).apply(null,arguments)},o._sendData=function(){return(o._sendData=o.asm.L).apply(null,arguments)},o._decodeOnePacket=function(){return(o._decodeOnePacket=o.asm.M).apply(null,arguments)},o._seekTo=function(){return(o._seekTo=o.asm.N).apply(null,arguments)},o._main=function(){return(o._main=o.asm.O).apply(null,arguments)},o._free=function(){return(o._free=o.asm.P).apply(null,arguments)},o._malloc=function(){return(Hr=o._malloc=o.asm.Q).apply(null,arguments)}),Wr=o.__get_tzname=function(){return(Wr=o.__get_tzname=o.asm.R).apply(null,arguments)},Yr=o.__get_daylight=function(){return(Yr=o.__get_daylight=o.asm.S).apply(null,arguments)},Vr=o.__get_timezone=function(){return(Vr=o.__get_timezone=o.asm.T).apply(null,arguments)};function Xr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Gr(e){var r=o._main;try{Qr(r(0,0),!0)}catch(n){if(n instanceof Xr)return;if("unwind"==n)return void(S=!0);var t=n;n&&"object"==typeof n&&n.stack&&(t=[n,n.stack]),k("exception thrown: "+t),c(1,n)}}function Kr(e){function t(){Nr||(Nr=!0,o.calledRun=!0,x||(se(),ue(),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),Jr&&Gr(),ce()))}e=e||s,ge>0||(ie(),ge>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t()))}function Qr(e,r){r&&S&&0===e||(S||(x=!0,o.onExit&&o.onExit(e)),c(e,new Xr(e)))}if(o.dynCall_vi=function(){return(o.dynCall_vi=o.asm.U).apply(null,arguments)},o.dynCall_v=function(){return(o.dynCall_v=o.asm.V).apply(null,arguments)},o._ff_h264_cabac_tables=134277,o.asm=jr,o.getMemory=C,o.addRunDependency=ye,o.removeRunDependency=Ee,o.FS_createFolder=Ie.createFolder,o.FS_createPath=Ie.createPath,o.FS_createDataFile=Ie.createDataFile,o.FS_createPreloadedFile=Ie.createPreloadedFile,o.FS_createLazyFile=Ie.createLazyFile,o.FS_createLink=Ie.createLink,o.FS_createDevice=Ie.createDevice,o.FS_unlink=Ie.unlink,o.addFunction=A,we=function e(){Nr||Kr(),Nr||(we=e)},o.run=Kr,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();var Jr=!0;return o.noInitialRun&&(Jr=!1),S=!0,Kr(),e.ready})({onRuntimeInitialized:function(){console.log("onWasmLoaded"),c?c.onWasmLoaded():console.log("[ER] No decoder!")}}),c=new(function(){function e(){_classCallCheck(this,e),this.logger=new o("Decoder"),this.coreLogLevel=1,this.accurateSeek=!0,this.wasmLoaded=!1,this.tmpReqQue=[],this.cacheBuffer=null,this.decodeTimer=null,this.videoCallback=null,this.audioCallback=null}return _createClass(e,[{key:"initDecoder",value:function(e,r){var t=u._initDecoder(e,this.coreLogLevel);this.logger.info("initDecoder return "+t+"."),0==t&&(this.cacheBuffer=u._malloc(r)),postMessage(new s(i.kInitDecoderRsp,{e:t}))}},{key:"uninitDecoder",value:function(){var e=u._uninitDecoder();this.logger.info("Uninit ffmpeg decoder return "+e+"."),null!=this.cacheBuffer&&(u._free(this.cacheBuffer),this.cacheBuffer=null)}},{key:"openDecoder",value:function(){var e=u._malloc(28),r=u._openDecoder(e,7,this.videoCallback,this.audioCallback,this.requestCallback);if(this.logger.info("openDecoder return "+r),0==r){var t=e>>2,n=new Uint32Array(u.HEAP32.subarray(t,t+7));postMessage({type:i.kOpenDecoderRsp,data:{e:r,v:{d:n[0],p:n[1],w:n[2],h:n[3]},a:{sampleFormat:n[4],channelCount:n[5],sampleRate:n[6]}}})}else postMessage(new s(i.kOpenDecoderRsp,{e:r}));u._free(e)}},{key:"closeDecoder",value:function(){this.logger.info("closeDecoder."),this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null,this.logger.info("Decode timer stopped."));var e=u._closeDecoder();this.logger.info("Close ffmpeg decoder return "+e+"."),postMessage(new s(i.kCloseDecoderRsp,{e:0}))}},{key:"startDecoding",value:function(e){this.decodeTimer&&clearInterval(this.decodeTimer),this.decodeTimer=setInterval(this.decode,e)}},{key:"pauseDecoding",value:function(){this.decodeTimer&&(clearInterval(this.decodeTimer),this.decodeTimer=null)}},{key:"decode",value:function(){var e=u._decodeOnePacket();for(7==e&&(c.logger.info("Decoder finished."),c.pauseDecoding(),postMessage(new s(i.kDecodeFinishedEvt,null)));9==e;)e=u._decodeOnePacket()}},{key:"sendData",value:function(e){var r=new Uint8Array(e);u.HEAPU8.set(r,this.cacheBuffer),u._sendData(this.cacheBuffer,r.length)}},{key:"seekTo",value:function(e){var r=u._seekTo(e,this.accurateSeek?1:0);postMessage(new s(i.kSeekToRsp,{r:r}))}},{key:"processReq",value:function(e){switch(e.type){case a.kInitDecoderReq:this.initDecoder(e.data.s,e.data.c);break;case a.kUninitDecoderReq:this.uninitDecoder();break;case a.kOpenDecoderReq:this.openDecoder();break;case a.kCloseDecoderReq:this.closeDecoder();break;case a.kStartDecodingReq:this.startDecoding(e.data.i);break;case a.kPauseDecodingReq:this.pauseDecoding();break;case a.kFeedDataReq:this.sendData(e.data);break;case i.kSeekToRsp:this.seekTo(e.data.ms);default:this.logger.error("Unsupport messsage "+e.type)}}},{key:"cacheReq",value:function(e){e&&(this.logger.info("Cache req : "+e.type),this.tmpReqQue.push(e))}},{key:"onWasmLoaded",value:function(){var e=this;this.logger.info("Wasm loaded."),this.wasmLoaded=!0,u.then((function(r){for(u=r,e.videoCallback=u.addFunction((function(e,r,t){var n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kVideoFrame,{s:t,d:n}),[n.buffer])}),"viid"),e.audioCallback=u.addFunction((function(e,r,t){var n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kAudioFrame,{s:t,d:n}),[n.buffer])}),"viid"),e.requestCallback=u.addFunction((function(e,r){postMessage({type:i.kRequestDataEvt,data:{o:e,a:r}})}),"vii");e.tmpReqQue.length>0;){var t=e.tmpReqQue.shift();e.processReq(t)}}))}},{key:"onWasmLoadedOld",value:function(){for(this.logger.info("Wasm loaded."),this.wasmLoaded=!0,this.videoCallback=u.addFunction((function(e,r,t){var n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kVideoFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.audioCallback=u.addFunction((function(e,r,t){var n=new Uint8Array(u.HEAPU8.subarray(e,e+r));postMessage(new s(i.kAudioFrame,{s:t,d:n}),[n.buffer])}),"viid"),this.requestCallback=u.addFunction((function(e,r){postMessage({type:i.kRequestDataEvt,data:{o:e,a:r}})}),"vii");this.tmpReqQue.length>0;){var e=this.tmpReqQue.shift();this.processReq(e)}}}]),e}());addEventListener("message",(function(e){var r=e.data;if(c){var t=r;if(!c.wasmLoaded)return c.cacheReq(t),void c.logger.info("Temp cache req "+t.type+".");c.processReq(t)}else console.log("[ER] Decoder not initialized!")}))},PJMN:function(e,r){e.exports=require("crypto")},"mw/K":function(e,r){e.exports=require("fs")},oyvS:function(e,r){e.exports=require("path")}}); \ No newline at end of file diff --git a/oem/oem_ipc/www/assets/i18n/en-US.json b/oem/oem_ipc/www/assets/i18n/en-US.json index 3206673..95223f0 100644 --- a/oem/oem_ipc/www/assets/i18n/en-US.json +++ b/oem/oem_ipc/www/assets/i18n/en-US.json @@ -810,5 +810,6 @@ "fileError": "File has error", "fileAbort": "File is aborted", "noWlanInfo": "Get no wlan info!", - "noLanInfo": "Get no lan info!" + "noLanInfo": "Get no lan info!", + "failure": "Failure" } diff --git a/oem/oem_ipc/www/assets/i18n/zh-CN.json b/oem/oem_ipc/www/assets/i18n/zh-CN.json index 6155830..6d46299 100644 --- a/oem/oem_ipc/www/assets/i18n/zh-CN.json +++ b/oem/oem_ipc/www/assets/i18n/zh-CN.json @@ -818,5 +818,6 @@ "fileError": "文件错误", "fileAbort": "文件中断", "noWlanInfo": "未获取到wlan信息!", - "noLanInfo": "未获取到lan信息!" + "noLanInfo": "未获取到lan信息!", + "failure": "失败" } diff --git a/oem/oem_ipc/www/assets/wasmdecoder.wasm.map b/oem/oem_ipc/www/assets/wasmdecoder.wasm.map new file mode 100644 index 0000000..d3fa082 --- /dev/null +++ b/oem/oem_ipc/www/assets/wasmdecoder.wasm.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../home/yuyz/work/puma/app/wasm-video-player/decoder.c","dist/include/libavutil/rational.h"],"names":[],"mappings":"88SAuFA,yBACQ,WAIC,MAJD,SAKC,8CAOL,QACA,aAOwB,AAGpB,OAHoB,WACA,AAEpB,OAFoB,WACA,AACpB,OADoB,UAJC,AAKrB,IALqB,WACA,AAIrB,IAJqB,WAHA,AAOrB,IAPqB,eACD,AAMpB,IANoB,cAMpB,kBAGW,uCAKX,SACA,AALS,SAKS,AALT,GAKS,GAAlB,QAIJ,WACJ,uBAEA,yBAIS,cAEU,QACL,OAAN,SAII,cAGK,cAC4C,eACnC,YAC4C,AAAX,EAAW,YAAtD,uCAGQ,UAA8D,AAAL,EAAK,YAA9E,kBAAc,QAA6B,AAA7B,GAA6B,GAA3C,eAbM,OAIF,UAYR,AAAiB,UAAF,MAA6B,AAA7B,GAA6B,GAA5C,QACA,AAAkB,AAAb,QAAa,QAAlB,KACA,oBACJ,uBAEA,yBAMsB,YAER,sBAEqC,AAAvC,IAAuC,QAAvC,UAKS,AAAR,AAAQ,OAAR,gCAIwC,OAAoC,AAA7E,IAA6E,gBAA7E,0BAKM,AAAF,IAAE,UACN,KACsD,AAAtD,IAAsD,QAAtD,iBAKkD,AAA3C,EAA2C,eACkB,AAApE,KAAoE,QAApE,iBAIJ,kBAEyB,AAAd,AAAc,OAAd,WAC+B,AAAtC,IAAsC,QAAtC,iBAIO,SACW,UAAtB,KAGJ,yBAyFJ,8BAI0B,OACd,mBACS,YACA,YAKA,IAAmB,AAAnB,iBAAmB,KAA8B,oBAE1D,uBA1EC,YAAmB,UAAmB,UAAvC,iBAOA,mBAFU,OAGN,WAFE,EAEF,AADJ,EADyB,AAAnB,OAAmB,AAAE,OAAF,IACzB,KACI,KAHM,AAAW,OAAX,MAMS,OAAT,OAAd,WACU,EAEF,AADJ,EADyB,AAAnB,OAAmB,AAAE,OAAF,IACzB,KACI,KAHM,AAAe,OAAf,MAAd,IAOU,EAEF,AADJ,EADyB,AAAnB,OAAmB,AAAE,OAAF,IACzB,KACI,KAHM,AAAe,OAAf,OA0Ea,AAAM,AAAkD,AAA3C,qBAA2C,wBAAlD,YAAN,YAEd,UAAa,IAAwB,AAAX,EAAW,YAKzC,AAAuB,OAAoB,OAApD,EAAS,UAAT,KAEJ,wBAGJ,0BAUY,cAKiC,AAAxB,AAAwB,yBAAxB,KAAwB,AAEjC,GAFiC,IAEjC,OAuBmB,AAAT,EAXD,AADgC,AAChC,EAdwB,mBAOjC,SACA,oBAAmB,SAEnB,qBAFA,sBAKyC,AAAX,AAAX,UAAW,GAAW,mBAGzC,kBA7EsB,AA6EtB,IA7EsB,aA6EtB,OAI8B,AAA9B,aAA8B,KACb,UADjB,mBAEmB,AAFnB,aAEmB,KAGA,aAAT,MAAd,IAC+B,EAAmB,AAAnB,aAAmB,KAA9C,WACoB,EAAhB,AAA0B,AAAV,OAAU,GAA0B,AAAhB,aAAgB,GAApD,MACO,OAF+C,iCADvC,WAAT,AAAsB,OAAtB,OAOa,AAAM,AAAkD,AAAlC,YAAkC,wBAAlD,YAAN,YAEd,UAAa,IAAwB,AAAX,EAAW,YAA9C,IAKS,YACT,AAAgC,OAAhC,UAGR,wBAGJ,wBAKoB,YACZ,cAMqB,AAFb,IAEa,KAIG,IAMtB,AANsB,EAJnB,AAAgB,AAAhB,SAAgB,mBACG,gBAEa,OAAZ,KACD,mBAMtB,YAMN,MACU,8BACF,qBAIW,OAAJ,IAIwD,AAJxD,gBAIwD,MACzD,GAfV,yBAKM,8BACF,qBAIW,OAAJ,IAIW,AAJX,gBAIW,MACZ,GAJN,wBAYZ,wBAkDA,SAIY,gBAIa,YAIF,UA7BF,aAII,YAMI,eAArB,EADa,YACQ,MAsBzB,IAzDiB,YAII,AAAiC,AAAxB,QAAwB,cAAjC,KAOU,AAF3B,EAAmB,GAEQ,MAA3B,EADa,cACc,kBACH,AADG,cACH,AAAH,QAAG,QA6C5B,KAGJ,0BAMY,gBAAgB,eAAY,YAAqB,YAAjD,AAIA,gBACe,aAQb,EAAmB,GAAnB,UAKe,yBAAf,AAAe,iBAAf,QACsC,AAAW,QAAX,MAGZ,UADA,UADA,UAKnB,SAyET,OAIS,WACM,aAAmB,QA9ElC,SACA,4BAIiB,mBAKrB,cAA4B,YAC5B,IAkEa,UACM,AAAT,EAAS,cAAmB,QAEK,AAAxB,QAAwB,aArE3C,MAEJ,wBA2BJ,0BAGY,yBAKgB,EACN,AADM,OACN,KAAV,KADgB,wBAKH,SADI,KAEK,SACH,AAHL,OAGK,MAAnB,UACA,AAAsB,QAAtB,MAEqC,AAArC,IAAqC,kBAArC,UACa,AADwB,eACxB,QACT,oBAKoB,eAAtB,IAAsB,QAEhC,wBAoBJ,wBAIiB,wBAMD,iBACK,EADL,KAEgB,AAAF,KAAE,MA7iB5B,AA6iB0B,EA7iB1B,QACU,AA6iBF,IA7iBE,AAAkC,YAAlC,eA6iBF,AAAQ,KAAR,YACc,AAAM,YAAN,QAAF,AAAQ,aAAR,KACR,IAC8D,AAA9D,IAA8D,WAAnB,AAA3C,IAA2C,QAA3C,UAEQ,uBACA,OAIM,aADA,oBAEJ,AAdV,YAcU,MAGtB,gBACA,uBAGJ,GACQ,aAOa,EANA,WACT,MACA,kBACO,SADP,uBAIA,UAIJ,QAXA,KAgBJ,GAhBI,MAiBJ,GAGJ,2BAWY,AAPJ,QAOI,KAPJ,iCAOI,AALJ,GAKI,IAHJ,EACA,GAEI,cACA,MAGuB,KAAF,AAJrB,WAIqB,cACD,AALpB,WAKoB,SAEC,MAPrB,IAOqB,EAPrB,EAOqB,SAUrB,UAIK,AAAT,qBAAS,MAAoB,SAA7B,AAGI,EAHJ,WAMS,8CACL,AADK,EACL,YACA,sCARJ,AAYA,GAZA,yBAiBI,wBAMY,AAFhB,GAEgB,+BACc,eADd,AACZ,eADY,KAAF,AAAyC,OAAzC,OAAd,AAQc,AAJV,IAGU,KACA,SAGV,0CAKS,AADb,KACa,UADb,+CAKgC,UADnB,AADb,KACa,UADb,8BAUc,AAVd,gBAOa,EAEC,KACA,SAGV,sBAKA,kBAAS,AADb,IACa,UADb,mBACI,0BAK4B,UADA,UADnB,AADb,IACa,UADb,qCAMuB,AARnB,cAQmB,UAwBS,AAhC5B,sBA+B4B,QACA,aAEH,AAlCzB,aAkCyB,UALV,SAMmB,OAAnB,AAnCf,WAmCe,KACA,KAAF,AApCb,aAoCa,KAEA,AAAP,KAAO,AAA6B,AAAjB,aAAiB,IAA7B,iBACI,AAAX,KAAW,kBACmB,AAA9B,KAA8B,WACA,AAA9B,KAA8B,WACnB,AAAX,KAAW,oBACmB,AAA9B,KAA8B,WACA,AAA9B,KAA8B,WAGpC,OACqB,MACT,AAAF,KAAE,SAGO,cACnB,AACkB,QADlB,UAKJ,IAEyB,AAFzB,aAEyB,KADF,SADA,SAIyD,AAAhF,IAAgF,UAAhF,uBAG6B,YAC7B,QAEJ,yBAGJ,GAGY,gBAA4B,YA0BhC,EAV2B,EANd,EANA,WACwE,gBA/nBtD,AAAW,OAAX,KAI/B,AAAQ,OAAR,kBACA,MA2nBI,YAA2B,SAC3B,+BAI2B,cAzoBZ,cAIY,AAAW,OAAX,KAI/B,AAAQ,OAAR,kBACA,MAioBI,YAIc,AAJa,IAIb,KAHd,GAGc,mCAMsB,EAJ5B,SAAJ,QAEA,kBAEe,YAAiB,OAIlB,AAHlB,GAGkB,sBACtB,gBACA,GADA,IAWa,EAJA,EAPb,kBAGI,QAHJ,sBAOI,QAIA,+BAGJ,QAzCI,EA2CR,GAGJ,SAKY,oBAKa,UAKF,UAAW,QAE9B,IA1ViB,YAKQ,AAAS,AAAW,AAApB,QAAoB,aAAX,SAOC,AAD/B,EAAmB,GACY,MAA/B,EAFgB,oBAEe,kBACT,AADS,cACT,eA6U1B,KAGJ,yBAQY,AANJ,KAMI,KAFR,SAEQ,gBAKsB,EAlTb,UACM,aAAmB,QAEK,AAAxB,QAAwB,aA+SjB,KAKd,aAGR,AAAc,cAAd,gBAAc,AAMZ,EANY,KAMR,qBAKA,gBACF,eAQQ,iBACA,uBACK,SAEzB,KACA,yBAGJ,2BAG0B,AAAtB,cAAsB,KAChB,AAA4B,oBAFpB,SAER,SADN,iBAOA,oCACQ,OAAJ,OARJ,kCAgBI,QACA,AAjBJ,cAiBI,SAE2B,AAnB/B,YAmB+B,iBAGnC,wBAEA,GAEI"} \ No newline at end of file diff --git a/oem/oem_ipc/www/index.html b/oem/oem_ipc/www/index.html index da1615e..bfef48c 100644 --- a/oem/oem_ipc/www/index.html +++ b/oem/oem_ipc/www/index.html @@ -10,5 +10,5 @@ - + diff --git a/oem/oem_ipc/www/main-es2015.21f1c298786271a9c9d8.js b/oem/oem_ipc/www/main-es2015.35cc9da536fd814a9468.js similarity index 52% rename from oem/oem_ipc/www/main-es2015.21f1c298786271a9c9d8.js rename to oem/oem_ipc/www/main-es2015.35cc9da536fd814a9468.js index f1e1b1f..f626b7d 100644 --- a/oem/oem_ipc/www/main-es2015.21f1c298786271a9c9d8.js +++ b/oem/oem_ipc/www/main-es2015.35cc9da536fd814a9468.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+9CB":function(t,e,i){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};t.exports={isLikelyAacData:function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},parseId3TagSize:function(t,e){var i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?i+20:i+10},parseAdtsSize:function(t,e){return 6144&t[e+3]|t[e+4]<<3|(224&t[e+5])>>5},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5>>2];e++}return null},parseAacTimestamp:function(t){var e,i,n;e=10,64&t[5]&&(e+=4,e+=r(t.subarray(10,14)));do{if((i=r(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){n=t.subarray(e+10,e+i+10);for(var s=0;s>>2;return(a*=4)+(3&o[7])}break}}e+=10,e+=i}while(e=0&&t<=100}t.exports=function(){var t=100,e=3,r=0,s=100,o=0,a=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!n(t))throw new Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!n(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e=function(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");c=e}}})}},"+qE3":function(t,e,i){"use strict";var n,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var r,s,o;if(l(i),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=u(t))>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function f(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)s(c,this,e);else{var l=c.length,u=b(c,l);for(i=0;i=0;s--)if(i[s]===e||i[s].listener===e){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},a.prototype.listeners=function(t){return f(this,t,!0)},a.prototype.rawListeners=function(t){return f(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},0:function(t,e,i){t.exports=i("zUnb")},"0CSc":function(t,e,i){"use strict";var n=i("IdCN"),r=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=function(t,e,i){for(var n=0,r=t.length;n=3&&(s=i),"[object Array]"===r.call(t)?o(t,e,s):"string"==typeof t?a(t,e,s):c(t,e,s)}},"0CxO":function(t,e){var i=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function r(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function s(){this.values=i(null)}function o(t,e,i,n){var r=n?t.split(n):[t];for(var s in r)if("string"==typeof r[s]){var o=r[s].split(i);2===o.length&&e(o[0],o[1])}}function a(t,e,i){var a=t;function c(){var e=r(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+a);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function l(){t=t.replace(/^\s+/,"")}if(l(),e.startTime=c(),l(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);t=t.substr(3),l(),e.endTime=c(),l(),function(t,e){var n=new s;o(t,(function(t,e){switch(t){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),o=s[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===s.length&&n.alt("lineAlign",s[1],["start","middle","end"]);break;case"position":s=e.split(","),n.percent(t,s[0]),2===s.length&&n.alt("positionAlign",s[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}(n.prototype=i(Error.prototype)).constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var c={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\xa0"},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^<]*)(<[^>]*>?)?/);return e=e.substr((t=i[1]?i[1]:i[2]).length),t}function n(t){return c[t]}function s(t){for(;v=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],n);return t}function o(t,e){return!h[e.localName]||h[e.localName]===t.localName}function a(e,i){var n=l[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var s=u[e];return s&&i&&(r[s]=i.trim()),r}for(var d,p=t.document.createElement("div"),f=p,m=[];null!==(d=i());)if("<"!==d[0])f.appendChild(t.document.createTextNode(s(d)));else{if("/"===d[1]){m.length&&m[m.length-1]===d.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var b,g=r(d.substr(1,d.length-2));if(g){b=t.document.createProcessingInstruction("timestamp",g),f.appendChild(b);continue}var v=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(b=a(v[1],v[3])))continue;if(!o(f,b))continue;v[2]&&(b.className=v[2].substr(1).replace("."," ")),m.push(v[1]),f.appendChild(b),f=b}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function f(t){for(var e=0;e=i[0]&&t<=i[1])return!0}return!1}function m(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(t.length=0,s[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;rh&&(u=u<0?-1:1,u*=Math.ceil(h/l)*l),o<0&&(u+=""===s.vertical?i.height:i.width,a=a.reverse()),r.move(d,u)}else{var p=r.lineHeight/i.height*100;switch(s.lineAlign){case"middle":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],r=new v(e)}var f=function(t,e){for(var r,s=new v(t),o=1,a=0;ac&&(r=new v(t),o=c),t=new v(s)}return r||s}(r,a);e.move(f.toCSSCompatValues(i))}function w(){}b.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(g.prototype=i(b.prototype)).constructor=g,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null},w.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e=2?function(i){return Object(o.a)(Object(n.a)(t,e),Object(r.a)(1),Object(s.a)(e))(i)}:function(e){return Object(o.a)(Object(n.a)((e,i,n)=>t(e,i,n+1)),Object(r.a)(1))(e)}}},"1KsK":function(t,e,i){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e=n.call(t),i="[object Arguments]"===e;return i||(i="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),i}},"1seS":function(t,e,i){"use strict";var n=Array.prototype.slice,r=i("1KsK"),s=Object.keys,o=s?function(t){return s(t)}:i("sYn3"),a=Object.keys;o.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return r(t)?a(n.call(t)):a(t)}):Object.keys=o,Object.keys||o},t.exports=o},"27QW":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("fXoL"),r=i("qXBG");let s=(()=>{class t{constructor(t){this.auth=t,this.errorDict={401:{"token verification failed":"logout"}},this.checkStatus=!1}analyseResp(t){return t.subscribe(t=>{if(t.error){const e=t.error.code;let i=t.error.message;const n=/^(.*?):.*?$/.exec(i);n&&(i=n[1]);const r=this.errorDict[e][i];if(r)switch(this.checkStatus=!0,r){case"logout":this.auth.logout()}}else this.checkStatus=!1}),t}analyseRes(t){if(t.error){const e=t.error.code;let i=t.error.message;const n=/^(.*?):.*?$/.exec(i);n&&(i=n[1]);const r=this.errorDict[e][i];if(r)switch(this.checkStatus=!0,r){case"logout":this.auth.logout()}}else this.checkStatus=!1}getCheckStatus(){return this.checkStatus}}return t.\u0275fac=function(e){return new(e||t)(n.Vb(r.a))},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"2QA8":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("XNiG"),r=i("9ppp");class s extends n.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));let n=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},"3D7k":function(t,e,i){"use strict";var n=i("rnXk"),r=i("JW/Y").handleRollover,s={};s.ts=i("Qj6V"),s.aac=i("+9CB");var o=function(t,e,i){for(var n,r,o,a,c=0,l=188,u=!1;l<=t.byteLength;)if(71!==t[c]||71!==t[l]&&l!==t.byteLength)c++,l++;else{switch(n=t.subarray(c,l),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),o=s.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&o&&(a=s.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),u=!0)}if(u)break;c+=188,l+=188}for(c=(l=t.byteLength)-188,u=!1;c>=0;)if(71!==t[c]||71!==t[l]&&l!==t.byteLength)c--,l--;else{switch(n=t.subarray(c,l),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),o=s.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&o&&(a=s.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),u=!0)}if(u)break;c-=188,l-=188}},a=function(t,e,i){for(var n,r,o,a,c,l,u,h=0,d=188,p=!1,f={data:[],size:0};d=0;)if(71!==t[h]||71!==t[d])h--,d--;else{switch(n=t.subarray(h,d),s.ts.parseType(n,e.pid)){case"pes":r=s.ts.parsePesType(n,e.table),o=s.ts.parsePayloadUnitStartIndicator(n),"video"===r&&o&&(a=s.ts.parsePesTime(n))&&(a.type="video",i.video.push(a),p=!0)}if(p)break;h-=188,d-=188}};t.exports={inspect:function(t,e){var i;return(i=s.aac.isLikelyAacData(t)?function(t){for(var e,i=!1,n=0,r=null,o=null,a=0,c=0;t.length-c>=3;){switch(s.aac.parseType(t,c)){case"timed-metadata":if(t.length-c<10){i=!0;break}if((a=s.aac.parseId3TagSize(t,c))>t.length){i=!0;break}null===o&&(e=t.subarray(c,c+a),o=s.aac.parseAacTimestamp(e)),c+=a;break;case"audio":if(t.length-c<7){i=!0;break}if((a=s.aac.parseAdtsSize(t,c))>t.length){i=!0;break}null===r&&(e=t.subarray(c,c+a),r=s.aac.parseSampleRate(e)),n++,c+=a;break;default:c++}if(i)return null}if(null===r||null===o)return null;var l=9e4/r;return{audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*n*l,pts:o+1024*n*l}]}}(t):function(t){var e={pid:null,table:null},i={};for(var r in function(t,e){for(var i,n=0,r=188;r{const n=t.length;if(0===n)return void i.complete();const r=new Array(n);let s=0,o=0;for(let a=0;a{u||(u=!0,o++),r[a]=t},error:t=>i.error(t),complete:()=>{s++,s!==n&&u||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=r[i],t),{}):r),i.complete())}}))}})}i.d(e,"a",(function(){return p})),i.d(e,"b",(function(){return b})),i.d(e,"c",(function(){return Ft})),i.d(e,"d",(function(){return Ht})),i.d(e,"e",(function(){return gt})),i.d(e,"f",(function(){return Qt})),i.d(e,"g",(function(){return Mt})),i.d(e,"h",(function(){return Dt})),i.d(e,"i",(function(){return qt})),i.d(e,"j",(function(){return R})),i.d(e,"k",(function(){return T})),i.d(e,"l",(function(){return S})),i.d(e,"m",(function(){return Ct})),i.d(e,"n",(function(){return Pt})),i.d(e,"o",(function(){return Y})),i.d(e,"p",(function(){return D})),i.d(e,"q",(function(){return z})),i.d(e,"r",(function(){return Q})),i.d(e,"s",(function(){return Wt})),i.d(e,"t",(function(){return Vt})),i.d(e,"u",(function(){return $})),i.d(e,"v",(function(){return E})),i.d(e,"w",(function(){return J})),i.d(e,"x",(function(){return It}));const h=new n.q("NgValueAccessor"),d={provide:h,useExisting:Object(n.S)(()=>p),multi:!0};let p=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([d])]}),t})();const f={provide:h,useExisting:Object(n.S)(()=>b),multi:!0},m=new n.q("CompositionEventMode");let b=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.t)()?Object(r.t)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l),n.Mb(m,8))},t.\u0275dir=n.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.Zb("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(t){return e.onTouched()}))("compositionstart",(function(t){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[n.yb([f])]}),t})(),g=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t}),t})(),v=(()=>{class t extends g{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return y(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.wb]}),t})();const y=n.Tb(v);function w(){throw new Error("unimplemented")}class _ extends g{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return w()}get asyncValidator(){return w()}}class C{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let T=(()=>{class t extends C{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(_,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.wb]}),t})(),S=(()=>{class t extends C{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,2))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.wb]}),t})();function k(t){return null==t||0===t.length}const R=new n.q("NgValidators"),x=new n.q("NgAsyncValidators"),O=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class E{static min(t){return e=>{if(k(e.value)||k(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(k(e.value)||k(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return k(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return k(t.value)?null:O.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(k(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return E.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(k(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(P);return 0==e.length?null:function(t){return A(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(P);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(o.a)(e))return u(e,null);if(Object(c.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(o.a)(t[0])?t[0]:t,null).pipe(Object(a.a)(t=>e(...t)))}return u(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(I)).pipe(Object(a.a)(A))}}}function P(t){return null!=t}function I(t){const e=Object(n.qb)(t)?Object(l.a)(t):t;if(!Object(n.pb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function A(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function N(t){return t.validate?e=>t.validate(e):t}function M(t){return t.validate?e=>t.validate(e):t}const j={provide:h,useExisting:Object(n.S)(()=>D),multi:!0};let D=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([j])]}),t})();const L={provide:h,useExisting:Object(n.S)(()=>z),multi:!0};let F=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l),n.Mb(F),n.Mb(n.r))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange()}))("blur",(function(t){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.yb([L])]}),t})();const U={provide:h,useExisting:Object(n.S)(()=>Q),multi:!0};let Q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[n.yb([U])]}),t})();const B='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',V='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',G='\n
\n
\n \n
\n
';class H{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${B}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${V}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${G}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${B}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${V}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const q={provide:h,useExisting:Object(n.S)(()=>$),multi:!0};function W(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let $=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=n.rb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=W(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.D),n.Mb(n.l))},t.\u0275dir=n.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.Zb("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[n.yb([q])]}),t})(),Y=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(W(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.D),n.Mb($,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Z={provide:h,useExisting:Object(n.S)(()=>K),multi:!0};function X(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=n.rb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(X(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(X(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(n.l),n.Mb(n.D),n.Mb(K,9))},t.\u0275dir=n.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function tt(t,e){return[...e.path,t]}function et(t,e){t||st(e,"Cannot find control with"),e.valueAccessor||st(e,"No value accessor for form control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&it(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&it(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function it(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nt(t,e){null==t&&st(e,"Cannot find control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator])}function rt(t){return st(t,"There is no FormControl instance attached to form control element with")}function st(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function ot(t){return null!=t?E.compose(t.map(N)):null}function at(t){return null!=t?E.composeAsync(t.map(M)):null}function ct(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(n.rb)(e,i.currentValue)}const lt=[p,Q,D,$,K,z];function ut(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ht(t,e){if(!e)return null;Array.isArray(e)||st(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,r=void 0;return e.forEach(e=>{var s;e.constructor===b?i=e:(s=e,lt.some(t=>s.constructor===t)?(n&&st(t,"More than one built-in value accessor matches form control with"),n=e):(r&&st(t,"More than one custom value accessor matches form control with"),r=e))}),r||n||i||(st(t,"No valid value accessor for form control with"),null)}function dt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function pt(t){const e=mt(t)?t.validators:t;return Array.isArray(e)?ot(e):e||null}function ft(t,e){const i=mt(e)?e.asyncValidators:t;return Array.isArray(i)?at(i):i||null}function mt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class bt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=pt(t)}setAsyncValidators(t){this.asyncValidator=ft(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=I(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof vt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof yt&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.n,this.statusChanges=new n.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){mt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class gt extends bt{constructor(t=null,e,i){super(pt(e),ft(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vt extends bt{constructor(t,e,i){super(pt(e),ft(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof gt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class yt extends bt{constructor(t,e,i){super(pt(e),ft(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const wt={provide:v,useExisting:Object(n.S)(()=>Ct)},_t=(()=>Promise.resolve(null))();let Ct=(()=>{class t extends v{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.n,this.form=new vt({},ot(t),at(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_t.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),et(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){_t.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),dt(this._directives,t)})}addFormGroup(t){_t.then(()=>{const e=this._findContainer(t.path),i=new vt({});nt(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_t.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){_t.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ut(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(R,10),n.Mb(x,10))},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.yb([wt]),n.wb]}),t})(),Tt=(()=>{class t extends v{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ot(this._validators)}get asyncValidator(){return at(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return St(e||t)},t.\u0275dir=n.Hb({type:t,features:[n.wb]}),t})();const St=n.Tb(Tt);class kt{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${B}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${V}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${G}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${V}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${G}`)}}const Rt={provide:v,useExisting:Object(n.S)(()=>xt)};let xt=(()=>{class t extends Tt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ct||kt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,5),n.Mb(R,10),n.Mb(x,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.yb([Rt]),n.wb]}),t})();const Ot={provide:_,useExisting:Object(n.S)(()=>Pt)},Et=(()=>Promise.resolve(null))();let Pt=(()=>{class t extends _{constructor(t,e,i,r){super(),this.control=new gt,this._registered=!1,this.update=new n.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=ht(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ct(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?tt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ot(this._rawValidators)}get asyncValidator(){return at(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){et(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof xt)&&this._parent instanceof Tt?kt.formGroupNameException():this._parent instanceof xt||this._parent instanceof Ct||kt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||kt.missingNameException()}_updateValue(t){Et.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Et.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,9),n.Mb(R,10),n.Mb(x,10),n.Mb(h,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.yb([Ot]),n.wb,n.xb()]}),t})(),It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const At=new n.q("NgModelWithFormControlWarning"),Nt={provide:v,useExisting:Object(n.S)(()=>Mt)};let Mt=(()=>{class t extends v{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.n}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return et(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){dt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);nt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ut(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>rt(e)),e.valueAccessor.registerOnTouched(()=>rt(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&et(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=ot(this._validators);this.form.validator=E.compose([this.form.validator,t]);const e=at(this._asyncValidators);this.form.asyncValidator=E.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||H.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(R,10),n.Mb(x,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.yb([Nt]),n.wb,n.xb()]}),t})();const jt={provide:v,useExisting:Object(n.S)(()=>Dt)};let Dt=(()=>{class t extends Tt{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){zt(this._parent)&&H.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(R,10),n.Mb(x,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.yb([jt]),n.wb]}),t})();const Lt={provide:v,useExisting:Object(n.S)(()=>Ft)};let Ft=(()=>{class t extends v{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return ot(this._validators)}get asyncValidator(){return at(this._asyncValidators)}_checkParentType(){zt(this._parent)&&H.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(R,10),n.Mb(x,10))},t.\u0275dir=n.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.yb([Lt]),n.wb]}),t})();function zt(t){return!(t instanceof Dt||t instanceof Mt||t instanceof Ft)}const Ut={provide:_,useExisting:Object(n.S)(()=>Qt)};let Qt=(()=>{class t extends _{constructor(t,e,i,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new n.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=ht(this,r)}set isDisabled(t){H.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),ct(e,this.viewModel)&&(function(t,e,i,r){Object(n.T)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||i._ngModelWarningSent)||(H.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return tt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ot(this._rawValidators)}get asyncValidator(){return at(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Dt)&&this._parent instanceof Tt?H.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof Mt||this._parent instanceof Ft||H.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Mb(v,13),n.Mb(R,10),n.Mb(x,10),n.Mb(h,10),n.Mb(At,8))},t.\u0275dir=n.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.yb([Ut]),n.wb,n.xb()]}),t._ngModelWarningSentOnce=!1,t})();const Bt={provide:R,useExisting:Object(n.S)(()=>Vt),multi:!0};let Vt=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?E.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Ab("required",e.required?"":null)},inputs:{required:"required"},features:[n.yb([Bt])]}),t})(),Gt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)}}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new vt(i,{asyncValidators:r,updateOn:s,validators:n})}control(t,e,i){return new gt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new yt(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof gt||t instanceof vt||t instanceof yt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Ib({token:t,factory:t.\u0275fac}),t})(),qt=(()=>{class t{}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[F],imports:[Gt]}),t})(),Wt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:At,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Kb({type:t}),t.\u0275inj=n.Jb({factory:function(e){return new(e||t)},providers:[Ht,F],imports:[Gt]}),t})()},"3zPy":function(t,e){function i(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return o[t];var i,s=String(t);return(i=n[s.toLowerCase()])?i:(i=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}i.isEventKey=function(t,e){if(t&&"object"==typeof t){var i=t.which||t.keyCode||t.charCode;if(null==i)return!1;if("string"==typeof e){var s;if(s=n[e.toLowerCase()])return s===i;if(s=r[e.toLowerCase()])return s===i}else if("number"==typeof e)return e===i;return!1}};var n=(e=t.exports=i).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(s=97;s<123;s++)n[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)n[s-48]=s;for(s=1;s<13;s++)n["f"+s]=s+111;for(s=0;s<10;s++)n["numpad "+s]=s+96;var o=e.names=e.title={};for(s in n)o[n[s]]=s;for(var a in r)n[a]=r[a]},"49sm":function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},"4I5i":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4npW":function(t,e,i){!function(t){t.parser=function(t,e){return new r(t,e)},t.SAXParser=r,t.SAXStream=o,t.createStream=function(t,e){return new o(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(e,i){if(!(this instanceof r))return new r(e,i);!function(t){for(var e=0,i=n.length;e"===c?(S(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=_.TEXT):f(c)?(this.state=_.SGML_DECL_QUOTED,this.sgmlDecl+=c):this.sgmlDecl+=c;continue;case _.SGML_DECL_QUOTED:c===this.q&&(this.state=_.SGML_DECL,this.q=""),this.sgmlDecl+=c;continue;case _.DOCTYPE:">"===c?(this.state=_.TEXT,S(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=c,"["===c?this.state=_.DOCTYPE_DTD:f(c)&&(this.state=_.DOCTYPE_QUOTED,this.q=c));continue;case _.DOCTYPE_QUOTED:this.doctype+=c,c===this.q&&(this.q="",this.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:this.doctype+=c,"]"===c?this.state=_.DOCTYPE:f(c)&&(this.state=_.DOCTYPE_DTD_QUOTED,this.q=c);continue;case _.DOCTYPE_DTD_QUOTED:this.doctype+=c,c===this.q&&(this.state=_.DOCTYPE_DTD,this.q="");continue;case _.COMMENT:"-"===c?this.state=_.COMMENT_ENDING:this.comment+=c;continue;case _.COMMENT_ENDING:"-"===c?(this.state=_.COMMENT_ENDED,this.comment=R(this.opt,this.comment),this.comment&&S(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+c,this.state=_.COMMENT);continue;case _.COMMENT_ENDED:">"!==c?(E(this,"Malformed comment"),this.comment+="--"+c,this.state=_.COMMENT):this.state=_.TEXT;continue;case _.CDATA:"]"===c?this.state=_.CDATA_ENDING:this.cdata+=c;continue;case _.CDATA_ENDING:"]"===c?this.state=_.CDATA_ENDING_2:(this.cdata+="]"+c,this.state=_.CDATA);continue;case _.CDATA_ENDING_2:">"===c?(this.cdata&&S(this,"oncdata",this.cdata),S(this,"onclosecdata"),this.cdata="",this.state=_.TEXT):"]"===c?this.cdata+="]":(this.cdata+="]]"+c,this.state=_.CDATA);continue;case _.PROC_INST:"?"===c?this.state=_.PROC_INST_ENDING:p(c)?this.state=_.PROC_INST_BODY:this.procInstName+=c;continue;case _.PROC_INST_BODY:if(!this.procInstBody&&p(c))continue;"?"===c?this.state=_.PROC_INST_ENDING:this.procInstBody+=c;continue;case _.PROC_INST_ENDING:">"===c?(S(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=_.TEXT):(this.procInstBody+="?"+c,this.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:b(u,c)?this.tagName+=c:(P(this),">"===c?N(this):"/"===c?this.state=_.OPEN_TAG_SLASH:(p(c)||E(this,"Invalid character in tag name"),this.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:">"===c?(N(this,!0),M(this)):(E(this,"Forward-slash in opening tag not followed by >"),this.state=_.ATTRIB);continue;case _.ATTRIB:if(p(c))continue;">"===c?N(this):"/"===c?this.state=_.OPEN_TAG_SLASH:b(l,c)?(this.attribName=c,this.attribValue="",this.state=_.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case _.ATTRIB_NAME:"="===c?this.state=_.ATTRIB_VALUE:">"===c?(E(this,"Attribute without value"),this.attribValue=this.attribName,A(this),N(this)):p(c)?this.state=_.ATTRIB_NAME_SAW_WHITE:b(u,c)?this.attribName+=c:E(this,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if("="===c)this.state=_.ATTRIB_VALUE;else{if(p(c))continue;E(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",S(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===c?N(this):b(l,c)?(this.attribName=c,this.state=_.ATTRIB_NAME):(E(this,"Invalid attribute name"),this.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(p(c))continue;f(c)?(this.q=c,this.state=_.ATTRIB_VALUE_QUOTED):(E(this,"Unquoted attribute value"),this.state=_.ATTRIB_VALUE_UNQUOTED,this.attribValue=c);continue;case _.ATTRIB_VALUE_QUOTED:if(c!==this.q){"&"===c?this.state=_.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=c;continue}A(this),this.q="",this.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:p(c)?this.state=_.ATTRIB:">"===c?N(this):"/"===c?this.state=_.OPEN_TAG_SLASH:b(l,c)?(E(this,"No whitespace between attributes"),this.attribName=c,this.attribValue="",this.state=_.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!m(c)){"&"===c?this.state=_.ATTRIB_VALUE_ENTITY_U:this.attribValue+=c;continue}A(this),">"===c?N(this):this.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(this.tagName)">"===c?M(this):b(u,c)?this.tagName+=c:this.script?(this.script+=""===c?M(this):E(this,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var y,w;switch(this.state){case _.TEXT_ENTITY:y=_.TEXT,w="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:y=_.ATTRIB_VALUE_QUOTED,w="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:y=_.ATTRIB_VALUE_UNQUOTED,w="attribValue"}";"===c?(this[w]+=(i=void 0,r=void 0,void 0,o=void 0,s=(r=this.entity).toLowerCase(),o="",this.ENTITIES[r]?this.ENTITIES[r]:this.ENTITIES[s]?this.ENTITIES[s]:("#"===(r=s).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),o=(i=parseInt(r,16)).toString(16)):(r=r.slice(1),o=(i=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(i)||o.toLowerCase()!==r?(E(this,"Invalid character entity"),"&"+this.entity+";"):String.fromCodePoint(i))),this.entity="",this.state=y):b(this.entity.length?d:h,c)?this.entity+=c:(E(this,"Invalid character in entity name"),this[w]+="&"+this.entity+c,this.entity="",this.state=y);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var i=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,s=0,o=n.length;si)switch(n[s]){case"textNode":k(e);break;case"cdata":S(e,"oncdata",e.cdata),e.cdata="";break;case"script":S(e,"onscript",e.script),e.script="";break;default:x(e,"Max buffer length exceeded: "+n[s])}r=Math.max(r,a)}e.bufferCheckPosition=t.MAX_BUFFER_LENGTH-r+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){k(this),""!==this.cdata&&(S(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(S(this,"onscript",this.script),this.script="")}};try{e=i("DD3b").Stream}catch(L){e=function(){}}var s=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function o(t,i){if(!(this instanceof o))return new o(t,i);e.apply(this),this._parser=new r(t,i),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,s.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}(o.prototype=Object.create(e.prototype,{constructor:{value:o}})).write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=i("fXKp").StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(t,i){var n=this;return n._parser["on"+t]||-1===s.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,i)};var a="http://www.w3.org/XML/1998/namespace",c={xml:a,xmlns:"http://www.w3.org/2000/xmlns/"},l=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,u=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function p(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function f(t){return'"'===t||"'"===t}function m(t){return">"===t||p(t)}function b(t,e){return t.test(e)}function g(t,e){return!b(t,e)}var v,y,w,_=0;for(var C in t.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var i=t.ENTITIES[e],n="number"==typeof i?String.fromCharCode(i):i;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[C]]=C;function T(t,e,i){t[e]&&t[e](i)}function S(t,e,i){t.textNode&&k(t),T(t,e,i)}function k(t){t.textNode=R(t.opt,t.textNode),t.textNode&&T(t,"ontext",t.textNode),t.textNode=""}function R(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function x(t,e){return k(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,T(t,"onerror",e),t}function O(t){return t.sawRoot&&!t.closedRoot&&E(t,"Unclosed root tag"),t.state!==_.BEGIN&&t.state!==_.BEGIN_WHITESPACE&&t.state!==_.TEXT&&x(t,"Unexpected end"),k(t),t.c="",t.closed=!0,T(t,"onend"),r.call(t,t.strict,t.opt),t}function E(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&x(t,e)}function P(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,i=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(i.ns=e.ns),t.attribList.length=0,S(t,"onopentagstart",i)}function I(t,e){var i=t.indexOf(":")<0?["",t]:t.split(":"),n=i[0],r=i[1];return e&&"xmlns"===t&&(n="xmlns",r=""),{prefix:n,local:r}}function A(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=I(t.attribName,!0),i=e.local;if("xmlns"===e.prefix)if("xml"===i&&t.attribValue!==a)E(t,"xml: prefix must be bound to "+a+"\nActual: "+t.attribValue);else if("xmlns"===i&&"http://www.w3.org/2000/xmlns/"!==t.attribValue)E(t,"xmlns: prefix must be bound to http://www.w3.org/2000/xmlns/\nActual: "+t.attribValue);else{var n=t.tag,r=t.tags[t.tags.length-1]||t;n.ns===r.ns&&(n.ns=Object.create(r.ns)),n.ns[i]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,S(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function N(t,e){if(t.opt.xmlns){var i=t.tag,n=I(t.tagName);i.prefix=n.prefix,i.local=n.local,i.uri=i.ns[n.prefix]||"",i.prefix&&!i.uri&&(E(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=n.prefix),i.ns&&(t.tags[t.tags.length-1]||t).ns!==i.ns&&Object.keys(i.ns).forEach((function(e){S(t,"onopennamespace",{prefix:e,uri:i.ns[e]})}));for(var r=0,s=t.attribList.length;r",t.tagName="",void(t.state=_.SCRIPT);S(t,"onscript",t.script),t.script=""}var e=t.tags.length,i=t.tagName;t.strict||(i=i[t.looseCase]());for(var n=i;e--&&t.tags[e].name!==n;)E(t,"Unexpected close tag");if(e<0)return E(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=_.TEXT);t.tagName=i;for(var r=t.tags.length;r-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,S(t,"onclosetag",t.tagName);var o={};for(var a in s.ns)o[a]=s.ns[a];t.opt.xmlns&&s.ns!==(t.tags[t.tags.length-1]||t).ns&&Object.keys(s.ns).forEach((function(e){S(t,"onclosenamespace",{prefix:e,uri:s.ns[e]})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=_.TEXT}function j(t,e){"<"===e?(t.state=_.OPEN_WAKA,t.startTagPosition=t.position):p(e)||(E(t,"Non-whitespace before first tag."),t.textNode=e,t.state=_.TEXT)}function D(t,e){var i="";return e1114111||y(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?e.push(s):e.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||e.length>t)&&(r+=v.apply(null,e),e.length=0)}return r},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:w,configurable:!0,writable:!0}):String.fromCodePoint=w)}(e)},"5+tZ":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("ZUHj"),r=i("l7GE"),s=i("51Dv"),o=i("lJxs"),a=i("Cfvw");function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>Object(a.a)(t(i,n)).pipe(Object(o.a)((t,r)=>e(i,t,n,r))),i)):("number"==typeof e&&(i=e),e=>e.lift(new l(t,i)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends r.a{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("7o/Q");class r extends n.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"62BN":function(t,e){e.every=function(t){return new r(t)};var i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(var n in i)"millisecond"===n?i.ms=i[n]:i[n.charAt(0)]=i[n],i[n+"s"]=i[n];function r(t){this.count=0;var e=function(t){var e=t.match(s);return e&&i[e[2]]?e.slice(1):null}(t);e&&(this.time=Number(e[0])*i[e[1]],this.type=e[1])}r.prototype.do=function(t){this.time&&(this.interval=setInterval((function(){e.count++,t.call(e)}),this.time));var e=this;return this},r.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var s=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/},"6MUB":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,r){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(r){var s=encodeURIComponent(n(r))+i;return Array.isArray(t[r])?t[r].map((function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[r]))})).join(e):r?encodeURIComponent(n(r))+i+encodeURIComponent(n(t)):""}},"6ayh":function(t,e,i){"use strict";var n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,s=Object.getPrototypeOf||function(t){return t.__proto__},o="undefined"==typeof Uint8Array?void 0:s(Uint8Array),a={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?s([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?s(s([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?s((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?s((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?s(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":o,"$ %TypedArrayPrototype%":o?o.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};t.exports=function(t,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var i="$ "+t;if(!(i in a))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===a[i]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return a[i]}},"6bNy":function(t,e){var i;i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t.exports=i},"7ZPM":function(t,e){t.exports={clearDtsInfo:function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(t,e){var i,n=t.minSegmentDts;return e||(n-=t.timelineStartInfo.dts),i=t.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===t.type&&(i*=t.samplerate/9e4,i=Math.floor(i)),i},collectDtsInfo:function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),t.minSegmentPts=void 0===t.minSegmentPts?e.pts:Math.min(t.minSegmentPts,e.pts),t.maxSegmentPts=void 0===t.maxSegmentPts?e.pts:Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),t.minSegmentDts=void 0===t.minSegmentDts?e.dts:Math.min(t.minSegmentDts,e.dts),t.maxSegmentDts=void 0===t.maxSegmentDts?e.dts:Math.max(t.maxSegmentDts,e.dts))}}},"7o/Q":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("n6bG"),r=i("gRHU"),s=i("quSY"),o=i("2QA8"),a=i("2fFW"),c=i("NJ4a");class l extends s.a{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,i)}}[o.a](){return this}static create(t,e,i){const n=new l(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,i,s){let o;super(),this._parentSubscriber=t;let a=this;Object(n.a)(e)?o=e:e&&(o=e.next,i=e.error,s=e.complete,e!==r.a&&(a=Object.create(e),Object(n.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.a;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw i;Object(c.a)(i)}}__tryOrSetError(t,e,i){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(c.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"7sSp":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("ofXK"),r=i("sYmb"),s=i("tk/3"),o=i("mqiu"),a=i("fXoL");function c(t){return new o.a(t)}let l=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[n.c,r.b.forRoot({loader:{provide:r.a,useFactory:c,deps:[s.b]}})]]}),t})()},"7sdD":function(t,e,i){"use strict";var n=i("6bNy"),r=i("g2LC"),s=i("ZESv"),o=i("U6jy");function a(t,e,i){var n=t;return r(e)?(i=e,"string"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=i,n}function c(t,e,i){return l(e=a(t,e,i))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){return"document"===t.responseType?t.responseXML:""!==t.responseType||t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName?null:t.responseXML}(u),g)try{t=JSON.parse(t)}catch(e){}return t}function r(t){return clearTimeout(h),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function o(){if(!l){var e;clearTimeout(h);var r=v,o=null;return 0!==(e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status)?(r={body:n(),statusCode:e,method:p,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(r.headers=s(u.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),i(o,r,r.body)}}var a,l,u=t.xhr||null;u||(u=t.cors||t.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var h,d=u.url=t.uri||t.url,p=u.method=t.method||"GET",f=t.body||t.data,m=u.headers=t.headers||{},b=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:u};if("json"in t&&!1!==t.json&&(g=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(o,0)},u.onload=o,u.onerror=r,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=r,u.open(p,d,!b,t.username,t.password),b||(u.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(h=setTimeout((function(){if(!l){l=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),u.setRequestHeader)for(a in m)m.hasOwnProperty(a)&&u.setRequestHeader(a,m[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(f||null),u}t.exports=c,c.XMLHttpRequest=n.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i2?arguments[2]:{},s=n(e);r&&(s=o.call(s,Object.getOwnPropertySymbols(e)));for(var a=0;a-1},e.trigger=function(t){var e,i,n,r=this.listeners[t];if(r)if(2===arguments.length)for(i=r.length,e=0;e-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(C),S=function(t){for(var e,i=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((e=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},k=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}w(e,t);var i=e.prototype;return i.push=function(t){var e,i,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,i){var n=i(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var r=0;r0&&(o.duration=t.duration),0===t.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):n=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,l=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){i={},t.uri&&(i.uri=t.uri),t.byterange&&(i.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes?(o.attributes||(o.attributes={}),y(o.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var i=this.manifest.mediaGroups[t.attributes.TYPE];i[t.attributes["GROUP-ID"]]=i[t.attributes["GROUP-ID"]]||{},e=i[t.attributes["GROUP-ID"]],(u={default:/yes/i.test(t.attributes.DEFAULT)}).autoselect=!!u.default||/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(u.language=t.attributes.LANGUAGE),t.attributes.URI&&(u.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(u.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(u.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(u.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=u}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){l+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),o.dateTimeString=t.dateTimeString,o.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=t.data},"cue-out-cont":function(){o.cueOutCont=t.data},"cue-in":function(){o.cueIn=t.data}}[t.tagType]||a).call(r)},uri:function(){o.uri=t.uri,s.push(o),!this.manifest.targetDuration||"duration"in o||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),n&&(o.key=n),o.timeline=l,i&&(o.map=i),o={}},comment:function(){},custom:function(){t.segment?(o.custom=o.custom||{},o.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(r)})),e}w(e,t);var i=e.prototype;return i.push=function(t){this.lineStream.push(t)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(t){this.parseStream.addParser(t)},i.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(C),x=i("vgmO"),O=i.n(x),E=function(t){return!!t&&"object"==typeof t},P=function t(){for(var e=arguments.length,i=new Array(e),n=0;nm&&(m=w);var _=void 0;if(y<0){var C=b+1;_=C===e.length?"dynamic"===n&&s>0&&a.indexOf("$Number$")>0?G(t,m,v):(c*u-m)/v:(e[C].t-m)/v}else _=y+1;for(var T=d+f.length+_,S=d+f.length;S=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},$=function(t,e){var i={RepresentationID:t.id,Bandwidth:t.bandwidth||0},n=t.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=j({baseUrl:t.baseUrl,source:W(r.sourceURL,i),range:r.range});return function(t,e){return t.duration||e?t.duration?L(t):H(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map((function(e){i.Number=e.number,i.Time=e.time;var n=W(t.media||"",i);return{uri:n,timeline:e.timeline,duration:e.duration,resolvedUri:M(t.baseUrl||"",n),map:s,number:e.number}}))},Y=function(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n;if(!i&&!e||i&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");var s,o=r.map((function(e){return function(t,e){var i=t.baseUrl,n=t.initialization,r=void 0===n?{}:n,s=j({baseUrl:i,source:r.sourceURL,range:r.range}),o=j({baseUrl:i,source:e.media,range:e.mediaRange});return o.map=s,o}(t,e)}));return i&&(s=L(t)),e&&(s=H(t,e)),s.map((function(t,e){if(o[e]){var i=o[e];return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i}})).filter((function(t){return t}))},Z=function(t){var e,i,n=t.attributes,r=t.segmentInfo;r.template?(i=$,e=P(n,r.template)):r.base?(i=F,e=P(n,r.base)):r.list&&(i=Y,e=P(n,r.list));var s={attributes:n};if(!i)return s;var o=i(e,r.timeline);if(e.duration){var a=e.timescale;e.duration=e.duration/(void 0===a?1:a)}else e.duration=o.length?o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):0;return s.attributes=e,s.segments=o,r.base&&e.indexRange&&(s.sidx=o[0],s.segments=[]),s},X=function(t,e){return A(t.childNodes).filter((function(t){return t.tagName===e}))},K=function(t){return t.textContent.trim()},J=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var i=e.slice(1),n=i[1],r=i[2],s=i[3],o=i[4],a=i[5];return 31536e3*parseFloat(i[0]||0)+2592e3*parseFloat(n||0)+86400*parseFloat(r||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(a||0)},tt={mediaPresentationDuration:function(t){return J(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return J(t)},timeShiftBufferDepth:function(t){return J(t)},start:function(t){return J(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?J(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},et=function(t){return t&&t.attributes?A(t.attributes).reduce((function(t,e){return t[e.name]=(tt[e.name]||tt.DEFAULT)(e.value),t}),{}):{}},it={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},nt=function(t,e){return e.length?I(t.map((function(t){return e.map((function(e){return M(t,K(e))}))}))):t},rt=function(t){var e=X(t,"SegmentTemplate")[0],i=X(t,"SegmentList")[0],n=i&&X(i,"SegmentURL").map((function(t){return P({tag:"SegmentURL"},et(t))})),r=X(t,"SegmentBase")[0],s=i||e,o=s&&X(s,"SegmentTimeline")[0],a=i||r||e,c=a&&X(a,"Initialization")[0],l=e&&et(e);l&&c?l.initialization=c&&et(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var u={template:l,timeline:o&&X(o,"S").map((function(t){return et(t)})),list:i&&P(et(i),{segmentUrls:n,initialization:et(c)}),base:r&&P(et(r),{initialization:et(c)})};return Object.keys(u).forEach((function(t){u[t]||delete u[t]})),u},st=function(t){if(""===t)throw new Error("DASH_EMPTY_MANIFEST");var e=(new O.a.DOMParser).parseFromString(t,"application/xml"),i=e&&"MPD"===e.documentElement.tagName?e.documentElement:null;if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i},ot=function(t,e){return void 0===e&&(e={}),function(t,e){var i;if(void 0===e&&(e={}),!t.length)return{};var n=t[0].attributes,r=n.sourceDuration,s=n.minimumUpdatePeriod,o=void 0===s?0:s,a=U(t.filter((function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video"===e.contentType}))).map(V),c=U(t.filter((function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio"===e.contentType}))),l=t.filter((function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType})),u={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:r,playlists:Q(a,e),minimumUpdatePeriod:1e3*o};return c.length&&(u.mediaGroups.AUDIO.audio=function(t,e){var i;void 0===e&&(e={});var n=t.reduce((function(t,n){var r=n.attributes.role&&n.attributes.role.value||"",s=n.attributes.lang||"",o="main";return s&&(o=n.attributes.lang+(r?" ("+r+")":"")),t[o]&&t[o].playlists[0].attributes.BANDWIDTH>n.attributes.bandwidth?t:(t[o]={language:s,autoselect:!0,default:"main"===r,playlists:Q([B(n)],e),uri:""},void 0===i&&"main"===r&&((i=n).default=!0),t)}),{});return i||(n[Object.keys(n)[0]].default=!0),n}(c,e)),l.length&&(u.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce((function(t,i){var n,r,s,o,a=i.attributes.lang||"text";return t[a]?t:(t[a]={language:a,default:!1,autoselect:!1,playlists:Q([(n=i,s=n.attributes,o=n.segments,void 0===o&&(o=[{uri:s.baseUrl,timeline:s.periodIndex,resolvedUri:s.baseUrl||"",duration:s.sourceDuration,number:0}],s.duration=s.sourceDuration),{attributes:(r={NAME:s.id,BANDWIDTH:s.bandwidth},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===(s.type||"static"),timeline:s.periodIndex,resolvedUri:s.baseUrl||"",targetDuration:s.duration,segments:o,mediaSequence:o.length?o[0].number:1})],e),uri:""},t)}),{})}(l,e)),u}(function(t,e){void 0===e&&(e={});var i=e,n=i.manifestUri,r=void 0===n?"":n,s=i.NOW,o=void 0===s?Date.now():s,a=i.clientOffset,c=void 0===a?0:a,l=X(t,"Period");if(!l.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var u=et(t),h=nt([r],X(t,"BaseURL"));return u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=o,u.clientOffset=c,I(l.map(function(t,e){return function(i,n){var r=nt(e,X(i,"BaseURL")),s=et(i),o=parseInt(s.id,10),a=O.a.isNaN(o)?n:o,c=P(t,{periodIndex:a}),l=X(i,"AdaptationSet"),u=rt(i);return I(l.map(function(t,e,i){return function(n){var r=et(n),s=nt(e,X(n,"BaseURL")),o=X(n,"Role")[0],a={role:et(o)},c=P(t,r,a),l=X(n,"ContentProtection").reduce((function(t,e){var i=et(e),n=it[i.schemeIdUri];if(n){t[n]={attributes:i};var r=X(e,"cenc:pssh")[0];if(r){var s=K(r),o=s&&function(t){for(var e=O.a.atob(t),i=new Uint8Array(e.length),n=0;n>7))^s]=s;for(o=a=0;!n[o];o^=u||1,a=l[a]||1)for(n[o]=d=(d=a^a<<1^a<<2^a<<3^a<<4)>>8^255&d^99,r[d]=o,f=16843009*c[h=c[u=c[o]]]^65537*h^257*u^16843008*o,p=257*c[d]^16843008*d,s=0;s<4;s++)e[s][o]=p=p<<24^p>>>8,i[s][d]=f=f<<24^f>>>8;for(s=0;s<5;s++)e[s]=e[s].slice(0),i[s]=i[s].slice(0);return t}()),this._tables=[[bt[0][0].slice(),bt[0][1].slice(),bt[0][2].slice(),bt[0][3].slice(),bt[0][4].slice()],[bt[1][0].slice(),bt[1][1].slice(),bt[1][2].slice(),bt[1][3].slice(),bt[1][4].slice()]];var i=void 0,n=void 0,r=void 0,s=void 0,o=void 0,a=this._tables[0][4],c=this._tables[1],l=e.length,u=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");for(s=e.slice(0),this._key=[s,o=[]],i=l;i<4*l+28;i++)r=s[i-1],(i%l==0||8===l&&i%l==4)&&(r=a[r>>>24]<<24^a[r>>16&255]<<16^a[r>>8&255]<<8^a[255&r],i%l==0&&(r=r<<8^r>>>24^u<<24,u=u<<1^283*(u>>7))),s[i]=s[i-l]^r;for(n=0;i;n++,i--)r=s[3&n?i:i-4],o[n]=i<=4||n<4?r:c[0][a[r>>>24]]^c[1][a[r>>16&255]]^c[2][a[r>>8&255]]^c[3][a[255&r]]}return t.prototype.decrypt=function(t,e,i,n,r,s){var o=this._key[1],a=t^o[0],c=n^o[1],l=i^o[2],u=e^o[3],h=void 0,d=void 0,p=void 0,f=o.length/4-2,m=void 0,b=4,g=this._tables[1],v=g[0],y=g[1],w=g[2],_=g[3],C=g[4];for(m=0;m>>24]^y[c>>16&255]^w[l>>8&255]^_[255&u]^o[b],d=v[c>>>24]^y[l>>16&255]^w[u>>8&255]^_[255&a]^o[b+1],p=v[l>>>24]^y[u>>16&255]^w[a>>8&255]^_[255&c]^o[b+2],u=v[u>>>24]^y[a>>16&255]^w[c>>8&255]^_[255&l]^o[b+3],b+=4,a=h,c=d,l=p;for(m=0;m<4;m++)r[(3&-m)+s]=C[a>>>24]<<24^C[c>>16&255]<<16^C[l>>8&255]<<8^C[255&u]^o[b++],h=a,a=c,c=l,l=u,u=h},t}(),vt=function(){function t(){ft(this,t),this.listeners={}}return t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i>-1},t.prototype.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n>8|t>>>24},_t=function(t,e,i){var n=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new gt(Array.prototype.slice.call(e)),s=new Uint8Array(t.byteLength),o=new Int32Array(s.buffer),a=void 0,c=void 0,l=void 0,u=void 0,h=void 0,d=void 0,p=void 0,f=void 0,m=void 0;for(a=i[0],c=i[1],l=i[2],u=i[3],m=0;m1?e-1:0),n=1;n0)for(var i=t.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,s=i[n].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(s=null!==s),e[r]=s}return e}function ee(t,e){return t.getAttribute(e)}function ie(t,e,i){t.setAttribute(e,i)}function ne(t,e){t.removeAttribute(e)}function re(){o.a.body.focus(),o.a.onselectstart=function(){return!1}}function se(){o.a.onselectstart=function(){return!0}}function oe(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(i[t]=e[t])})),i.height||(i.height=parseFloat(Ft(t,"height"))),i.width||(i.width=parseFloat(Ft(t,"width"))),i}}function ae(t){var e;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=o.a.documentElement,n=o.a.body,s=e.top+(r.a.pageYOffset||n.scrollTop)-(i.clientTop||n.clientTop||0);return{left:Math.round(e.left+(r.a.pageXOffset||n.scrollLeft)-(i.clientLeft||n.clientLeft||0)),top:Math.round(s)}}function ce(t,e){var i={},n=ae(t),r=t.offsetWidth,s=t.offsetHeight,o=n.left,a=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,a=e.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(n.top-a+s)/s)),i.x=Math.max(0,Math.min(1,(c-o)/r)),i}function le(t){return Dt(t)&&3===t.nodeType}function ue(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function he(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),Vt(t)||le(t)?t:"string"==typeof t&&/\S/.test(t)?o.a.createTextNode(t):void 0})).filter((function(t){return t}))}function de(t,e){return he(e).forEach((function(e){return t.appendChild(e)})),t}function pe(t,e){return de(ue(t),e)}function fe(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var me=Ht("querySelector"),be=Ht("querySelectorAll"),ge=Object.freeze({isReal:Bt,isEl:Vt,isInFrame:Gt,createEl:qt,textContent:Wt,prependTo:$t,hasClass:Yt,addClass:Zt,removeClass:Xt,toggleClass:Kt,setAttributes:Jt,getAttributes:te,getAttribute:ee,setAttribute:ie,removeAttribute:ne,blockTextSelection:re,unblockTextSelection:se,getBoundingClientRect:oe,findPosition:ae,getPointerPosition:ce,isTextNode:le,emptyEl:ue,normalizeContent:he,appendContent:de,insertContent:pe,isSingleLeftClick:fe,$:me,$$:be}),ve=1;function ye(){return ve++}var we={},_e="vdata"+Math.floor(r.a.performance&&r.a.performance.now()||Date.now());function Ce(t){var e=t[_e];return e||(e=t[_e]=ye()),we[e]||(we[e]={}),we[e]}function Te(t){var e=t[_e];return!!e&&!!Object.getOwnPropertyNames(we[e]).length}function Se(t){var e=t[_e];if(e){delete we[e];try{delete t[_e]}catch(i){t.removeAttribute?t.removeAttribute(_e):t[_e]=null}}}function ke(t,e){var i=Ce(t);0===i.handlers[e].length&&(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&Se(t)}function Re(t,e,i,n){i.forEach((function(i){t(e,i,n)}))}function xe(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||r.a.event;for(var s in t={},n)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&n.preventDefault||(t[s]=n[s]));if(t.target||(t.target=t.srcElement||o.a),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!=t.clientX){var a=o.a.documentElement,c=o.a.body;t.pageX=t.clientX+(a&&a.scrollLeft||c&&c.scrollLeft||0)-(a&&a.clientLeft||c&&c.clientLeft||0),t.pageY=t.clientY+(a&&a.scrollTop||c&&c.scrollTop||0)-(a&&a.clientTop||c&&c.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var Oe=!1;!function(){try{var t=Object.defineProperty({},"passive",{get:function(){Oe=!0}});r.a.addEventListener("test",null,t),r.a.removeEventListener("test",null,t)}catch(e){}}();var Ee=["touchstart","touchmove"];function Pe(t,e,i){if(Array.isArray(e))return Re(Pe,t,e,i);var n=Ce(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=ye()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=xe(e);var r=n.handlers[e.type];if(r)for(var s=r.slice(0),o=0,a=s.length;o-1&&(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,n.dispatcher)}function Ie(t,e,i){if(Te(t)){var n=Ce(t);if(n.handlers){if(Array.isArray(e))return Re(Ie,t,e,i);var r=function(t,e){n.handlers[e]=[],ke(t,e)};if(void 0!==e){var s=n.handlers[e];if(s)if(i){if(i.guid)for(var o=0;o0)for(var r=0,s=n.length;r=e&&(t.apply(void 0,arguments),i=n)}},He=function(){};He.prototype.allowedEvents_={},He.prototype.addEventListener=He.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Pe(this,t,e),this.addEventListener=i},He.prototype.removeEventListener=He.prototype.off=function(t,e){Ie(this,t,e)},He.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Ne(this,t,e),this.addEventListener=i},He.prototype.any=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},Me(this,t,e),this.addEventListener=i},He.prototype.dispatchEvent=He.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=xe(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ae(this,t)},He.prototype.queueTrigger=function(t){var e=this;Ue||(Ue=new Map);var i=t.type||t,n=Ue.get(this);n||(n=new Map,Ue.set(this,n));var s=n.get(i);n.delete(i),r.a.clearTimeout(s);var o=r.a.setTimeout((function(){0===n.size&&(n=null,Ue.delete(e)),e.trigger(t)}),0);n.set(i,o)};var qe=function(t){return t instanceof He||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},We=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},$e=function(t){if(!t.nodeName&&!qe(t))throw new Error("Invalid target; must be a DOM node or evented object.")},Ye=function(t){if(!We(t))throw new Error("Invalid event type; must be a non-empty string or array.")},Ze=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},Xe=function(t,e){var i,n,r,s=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return s?(i=t.eventBusEl_,e.length>=3&&e.shift(),n=e[0],r=e[1]):(i=e[0],n=e[1],r=e[2]),$e(i),Ye(n),Ze(r),{isTargetingSelf:s,target:i,type:n,listener:r=Ve(t,r)}},Ke=function(t,e,i,n){$e(t),t.nodeName?De[e](t,i,n):t[e](i,n)},Je={on:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Se(this.el_),this.el_=null),this.player_=null},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=ri(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,i){return qt(t,e,i)},e.localize=function(t,e,i){void 0===i&&(i=t);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[n],o=n&&n.split("-")[0],a=r&&r[o],c=i;return s&&s[t]?c=s[t]:a&&a[t]&&(c=a[t]),e&&(c=c.replace(/\{(\d+)\}/g,(function(t,i){var n=e[i-1],r=n;return void 0===n&&(r=t),r}))),c},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return t=ni(t),this.childNameIndex_[t]},e.addChild=function(e,i,n){var r,s;if(void 0===i&&(i={}),void 0===n&&(n=this.children_.length),"string"==typeof e){s=ni(e);var o=i.componentClass||s;i.name=s;var a=t.getComponent(o);if(!a)throw new Error("Component "+o+" does not exist");if("function"!=typeof a)return null;r=new a(this.player_||this,i)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&ni(r.name()))&&(this.childNameIndex_[s]=r),"function"==typeof r.el&&r.el()){var c=this.contentEl().children[n]||null;this.contentEl().insertBefore(r.el(),c)}return r},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,i=this.options_.children;if(i){var n,r=this.options_,s=t.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter((function(t){return!n.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var n,r;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}})).filter((function(e){var i=t.getComponent(e.opts.componentClass||ni(e.name));return i&&!s.isTech(i)})).forEach((function(t){var i=t.name,n=t.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=e.options_.playerOptions;var s=e.addChild(i,n);s&&(e[i]=s)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return me(t,e||this.contentEl())},e.$$=function(t,e){return be(t,e||this.contentEl())},e.hasClass=function(t){return Yt(this.el_,t)},e.addClass=function(t){Zt(this.el_,t)},e.removeClass=function(t){Xt(this.el_,t)},e.toggleClass=function(t,e){Kt(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return ee(this.el_,t)},e.setAttribute=function(t,e){ie(this.el_,t,e)},e.removeAttribute=function(t){ne(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,i){if(void 0!==e)return null!==e&&e==e||(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+ni(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof r.a.getComputedStyle){var i=r.a.getComputedStyle(this.el_);e=i.getPropertyValue(t)||i[t]}if(0===(e=parseFloat(e))){var n="offset"+ni(t);e=this.el_[n]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,i=null;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=r.a.performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(i){var n=e.touches[0].pageX-i.pageX,r=e.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(t=!1)}}));var n=function(){t=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){i=null,!0===t&&r.a.performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=Ve(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}},e.setTimeout=function(t,e){var i,n,s=this;return t=Ve(this,t),i=r.a.setTimeout((function(){s.off("dispose",n),t()}),e),(n=function(){return s.clearTimeout(i)}).guid="vjs-timeout-"+i,this.on("dispose",n),i},e.clearTimeout=function(t){r.a.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},e.setInterval=function(t,e){var i=this;t=Ve(this,t);var n=r.a.setInterval(t,e),s=function(){return i.clearInterval(n)};return s.guid="vjs-interval-"+n,this.on("dispose",s),n},e.clearInterval=function(t){r.a.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},e.requestAnimationFrame=function(t){var e,i,n=this;return this.supportsRaf_?(t=Ve(this,t),e=r.a.requestAnimationFrame((function(){n.off("dispose",i),t()})),(i=function(){return n.cancelAnimationFrame(e)}).guid="vjs-raf-"+e,this.on("dispose",i),e):this.setTimeout(t,1e3/60)},e.cancelAnimationFrame=function(t){if(this.supportsRaf_){r.a.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&&n.isTech(i),s=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!s)throw new Error('Illegal component, "'+e+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");e=ni(e),t.components_||(t.components_={});var o=t.getComponent("Player");if("Player"===e&&o&&o.players){var a=o.players,c=Object.keys(a);if(a&&c.length>0&&c.map((function(t){return a[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,i},t.getComponent=function(e){if(e)return e=ni(e),t.components_&&t.components_[e]?t.components_[e]:void 0},t}();si.prototype.supportsRaf_="function"==typeof r.a.requestAnimationFrame&&"function"==typeof r.a.cancelAnimationFrame,si.registerComponent("Component",si);var oi,ai,ci,li=r.a.navigator&&r.a.navigator.userAgent||"",ui=/AppleWebKit\/([\d.]+)/i.exec(li),hi=ui?parseFloat(ui.pop()):null,di=/iPad/i.test(li),pi=/iPhone/i.test(li)&&!di,fi=/iPod/i.test(li),mi=pi||di||fi,bi=(oi=li.match(/OS (\d+)_/i))&&oi[1]?oi[1]:null,gi=/Android/i.test(li),vi=function(){var t=li.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return e&&i?parseFloat(t[1]+"."+t[2]):e||null}(),yi=gi&&vi<5&&hi<537,wi=/Firefox/i.test(li),_i=/Edge/i.test(li),Ci=!_i&&(/Chrome/i.test(li)||/CriOS/i.test(li)),Ti=function(){var t=li.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),Si=(!(ci=(ai=/MSIE\s(\d+)\.\d/.exec(li))&&parseFloat(ai[1]))&&/Trident\/7.0/i.test(li)&&/rv:11.0/.test(li)&&(ci=11),ci),ki=/Safari/i.test(li)&&!Ci&&!gi&&!_i,Ri=(ki||mi)&&!Ci,xi=/Windows/i.test(li),Oi=Bt()&&("ontouchstart"in r.a||r.a.navigator.maxTouchPoints||r.a.DocumentTouch&&r.a.document instanceof r.a.DocumentTouch),Ei=Object.freeze({IS_IPAD:di,IS_IPHONE:pi,IS_IPOD:fi,IS_IOS:mi,IOS_VERSION:bi,IS_ANDROID:gi,ANDROID_VERSION:vi,IS_NATIVE_ANDROID:yi,IS_FIREFOX:wi,IS_EDGE:_i,IS_CHROME:Ci,CHROME_VERSION:Ti,IE_VERSION:Si,IS_SAFARI:ki,IS_ANY_SAFARI:Ri,IS_WINDOWS:xi,TOUCH_ENABLED:Oi});function Pi(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e<0||e>i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function Ii(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Pi.bind(null,"start",0,t),end:Pi.bind(null,"end",1,t)}}function Ai(t,e){return Array.isArray(t)?Ii(t):void 0===t||void 0===e?Ii():Ii([[t,e]])}function Ni(t,e){var i,n,r=0;if(!e)return 0;t&&t.length||(t=Ai(0,0));for(var s=0;se&&(n=e),r+=n-i;return r/e}for(var Mi,ji={prefixed:!0},Di=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Li=Di[0],Fi=0;Fi=0;n--)if(e[n].enabled){$i(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,i}Tt(e,t);var i=e.prototype;return i.addTrack=function(e){var i=this;e.enabled&&$i(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){i.changing_||(i.changing_=!0,$i(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},i.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(qi),Zi=function(t,e){for(var i=0;i=0;n--)if(e[n].selected){Zi(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,Object.defineProperty(xt(i),"selectedIndex",{get:function(){for(var t=0;t',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),o.a.body.appendChild(n));for(var a={},c=0;cx',t=e.firstChild.href}return t},ln=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},un=function(t){var e=r.a.location,i=an(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},hn=Object.freeze({parseUrl:an,getAbsoluteURL:cn,getFileExtension:ln,isCrossOrigin:un}),dn=function(t,e){var i=new r.a.WebVTT.Parser(r.a,r.a.vttjs,r.a.WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length>0&&(r.a.console&&r.a.console.groupCollapsed&&r.a.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach((function(t){return Pt.error(t)})),r.a.console&&r.a.console.groupEnd&&r.a.console.groupEnd()),i.flush()},pn=function(t){function e(e){var i;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var n=ri(e,{kind:rn[e.kind]||"subtitles",language:e.language||e.srclang||""}),s=sn[n.mode]||"disabled",o=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(s="hidden"),(i=t.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[];var a=new tn(i.cues_),c=new tn(i.activeCues_),l=!1,u=Ve(xt(i),(function(){this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1)}));return"disabled"!==s&&i.tech_.ready((function(){i.tech_.on("timeupdate",u)}),!0),Object.defineProperties(xt(i),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return s},set:function(t){var e=this;sn[t]&&("disabled"!==(s=t)?this.tech_.ready((function(){e.tech_.on("timeupdate",u)}),!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return c;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i=t?e.push(r):r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t&&e.push(r)}if(l=!1,e.length!==this.activeCues_.length)l=!0;else for(var s=0;s0)return void this.trigger("vttjsloaded");var e=o.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),r.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},o=function(){s();for(var t=0;t=0;r--){var s=t[r];s[e]&&s[e](n,i)}}(t,i,a,o),a}var kn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1,volume:1},Rn={setCurrentTime:1,setVolume:1},xn={play:1,pause:1};function On(t){return function(e,i){return e===Tn?Tn:i[t]?i[t](e):e}}var En={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Pn=function(t){void 0===t&&(t="");var e=ln(t);return En[e.toLowerCase()]||""};function In(t){var e=Pn(t.src);return!t.type&&e&&(t.type=e),t}var An=function(t){function e(e,i,n){var r,s=ri({createEl:!1},i);if(r=t.call(this,e,s,n)||this,i.playerOptions.sources&&0!==i.playerOptions.sources.length)e.src(i.playerOptions.sources);else for(var o=0,a=i.playerOptions.techOrder;o